configure 661 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.15.1+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='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.15.1+2'
  496. PACKAGE_STRING='aria2c 0.15.1+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. LIBARES_LIBS
  658. LIBARES_CPPFLAGS
  659. LIBZ_LIBS
  660. LIBZ_CPPFLAGS
  661. ENABLE_MESSAGE_DIGEST_TRUE
  662. ENABLE_MESSAGE_DIGEST_FALSE
  663. ENABLE_BITTORRENT_TRUE
  664. ENABLE_BITTORRENT_FALSE
  665. ENABLE_METALINK_TRUE
  666. ENABLE_METALINK_FALSE
  667. ENABLE_LIBXML2_TRUE
  668. ENABLE_LIBXML2_FALSE
  669. ENABLE_LIBEXPAT_TRUE
  670. ENABLE_LIBEXPAT_FALSE
  671. ENABLE_ASYNC_DNS_TRUE
  672. ENABLE_ASYNC_DNS_FALSE
  673. HAVE_LIBZ_TRUE
  674. HAVE_LIBZ_FALSE
  675. HAVE_SQLITE3_TRUE
  676. HAVE_SQLITE3_FALSE
  677. ALLOCA
  678. USE_NLS
  679. GETTEXT_MACRO_VERSION
  680. MSGFMT
  681. GMSGFMT
  682. MSGFMT_015
  683. GMSGFMT_015
  684. XGETTEXT
  685. XGETTEXT_015
  686. MSGMERGE
  687. XGETTEXT_EXTRA_OPTIONS
  688. GLIBC2
  689. CFLAG_VISIBILITY
  690. HAVE_VISIBILITY
  691. PRI_MACROS_BROKEN
  692. LIBPTH
  693. LTLIBPTH
  694. LIBPTH_PREFIX
  695. LIBTHREAD
  696. LTLIBTHREAD
  697. LIBMULTITHREAD
  698. LTLIBMULTITHREAD
  699. LIBICONV
  700. LTLIBICONV
  701. INTLBISON
  702. GLIBC21
  703. INTL_MACOSX_LIBS
  704. HAVE_POSIX_PRINTF
  705. HAVE_ASPRINTF
  706. HAVE_SNPRINTF
  707. HAVE_WPRINTF
  708. WOE32DLL
  709. WOE32
  710. WINDRES
  711. LTLIBC
  712. BUILD_INCLUDED_LIBINTL
  713. USE_INCLUDED_LIBINTL
  714. CATOBJEXT
  715. DATADIRNAME
  716. INSTOBJEXT
  717. GENCAT
  718. INTLOBJS
  719. INTL_LIBTOOL_SUFFIX_PREFIX
  720. INTLLIBS
  721. LIBINTL
  722. LTLIBINTL
  723. POSUB
  724. LIBOBJS
  725. HAVE_ASCTIME_R_TRUE
  726. HAVE_ASCTIME_R_FALSE
  727. HAVE_BASENAME_TRUE
  728. HAVE_BASENAME_FALSE
  729. HAVE_GAI_STRERROR_TRUE
  730. HAVE_GAI_STRERROR_FALSE
  731. HAVE_GETADDRINFO_TRUE
  732. HAVE_GETADDRINFO_FALSE
  733. HAVE_GETTIMEOFDAY_TRUE
  734. HAVE_GETTIMEOFDAY_FALSE
  735. HAVE_INET_ATON_TRUE
  736. HAVE_INET_ATON_FALSE
  737. HAVE_LOCALTIME_R_TRUE
  738. HAVE_LOCALTIME_R_FALSE
  739. HAVE_STRPTIME_TRUE
  740. HAVE_STRPTIME_FALSE
  741. HAVE_TIMEGM_TRUE
  742. HAVE_TIMEGM_FALSE
  743. LTLIBOBJS'
  744. ac_subst_files=''
  745. ac_precious_vars='build_alias
  746. host_alias
  747. target_alias
  748. CXX
  749. CXXFLAGS
  750. LDFLAGS
  751. LIBS
  752. CPPFLAGS
  753. CCC
  754. CC
  755. CFLAGS
  756. YACC
  757. YFLAGS
  758. CXXCPP'
  759. # Initialize some variables set by options.
  760. ac_init_help=
  761. ac_init_version=false
  762. # The variables have the same names as the options, with
  763. # dashes changed to underlines.
  764. cache_file=/dev/null
  765. exec_prefix=NONE
  766. no_create=
  767. no_recursion=
  768. prefix=NONE
  769. program_prefix=NONE
  770. program_suffix=NONE
  771. program_transform_name=s,x,x,
  772. silent=
  773. site=
  774. srcdir=
  775. verbose=
  776. x_includes=NONE
  777. x_libraries=NONE
  778. # Installation directory options.
  779. # These are left unexpanded so users can "make install exec_prefix=/foo"
  780. # and all the variables that are supposed to be based on exec_prefix
  781. # by default will actually change.
  782. # Use braces instead of parens because sh, perl, etc. also accept them.
  783. # (The list follows the same order as the GNU Coding Standards.)
  784. bindir='${exec_prefix}/bin'
  785. sbindir='${exec_prefix}/sbin'
  786. libexecdir='${exec_prefix}/libexec'
  787. datarootdir='${prefix}/share'
  788. datadir='${datarootdir}'
  789. sysconfdir='${prefix}/etc'
  790. sharedstatedir='${prefix}/com'
  791. localstatedir='${prefix}/var'
  792. includedir='${prefix}/include'
  793. oldincludedir='/usr/include'
  794. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  795. infodir='${datarootdir}/info'
  796. htmldir='${docdir}'
  797. dvidir='${docdir}'
  798. pdfdir='${docdir}'
  799. psdir='${docdir}'
  800. libdir='${exec_prefix}/lib'
  801. localedir='${datarootdir}/locale'
  802. mandir='${datarootdir}/man'
  803. ac_prev=
  804. ac_dashdash=
  805. for ac_option
  806. do
  807. # If the previous option needs an argument, assign it.
  808. if test -n "$ac_prev"; then
  809. eval $ac_prev=\$ac_option
  810. ac_prev=
  811. continue
  812. fi
  813. case $ac_option in
  814. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  815. *) ac_optarg=yes ;;
  816. esac
  817. # Accept the important Cygnus configure options, so we can diagnose typos.
  818. case $ac_dashdash$ac_option in
  819. --)
  820. ac_dashdash=yes ;;
  821. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  822. ac_prev=bindir ;;
  823. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  824. bindir=$ac_optarg ;;
  825. -build | --build | --buil | --bui | --bu)
  826. ac_prev=build_alias ;;
  827. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  828. build_alias=$ac_optarg ;;
  829. -cache-file | --cache-file | --cache-fil | --cache-fi \
  830. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  831. ac_prev=cache_file ;;
  832. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  833. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  834. cache_file=$ac_optarg ;;
  835. --config-cache | -C)
  836. cache_file=config.cache ;;
  837. -datadir | --datadir | --datadi | --datad)
  838. ac_prev=datadir ;;
  839. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  840. datadir=$ac_optarg ;;
  841. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  842. | --dataroo | --dataro | --datar)
  843. ac_prev=datarootdir ;;
  844. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  845. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  846. datarootdir=$ac_optarg ;;
  847. -disable-* | --disable-*)
  848. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  849. # Reject names that are not valid shell variable names.
  850. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  851. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  852. { (exit 1); exit 1; }; }
  853. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  854. eval enable_$ac_feature=no ;;
  855. -docdir | --docdir | --docdi | --doc | --do)
  856. ac_prev=docdir ;;
  857. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  858. docdir=$ac_optarg ;;
  859. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  860. ac_prev=dvidir ;;
  861. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  862. dvidir=$ac_optarg ;;
  863. -enable-* | --enable-*)
  864. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  865. # Reject names that are not valid shell variable names.
  866. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  867. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  868. { (exit 1); exit 1; }; }
  869. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  870. eval enable_$ac_feature=\$ac_optarg ;;
  871. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  872. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  873. | --exec | --exe | --ex)
  874. ac_prev=exec_prefix ;;
  875. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  876. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  877. | --exec=* | --exe=* | --ex=*)
  878. exec_prefix=$ac_optarg ;;
  879. -gas | --gas | --ga | --g)
  880. # Obsolete; use --with-gas.
  881. with_gas=yes ;;
  882. -help | --help | --hel | --he | -h)
  883. ac_init_help=long ;;
  884. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  885. ac_init_help=recursive ;;
  886. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  887. ac_init_help=short ;;
  888. -host | --host | --hos | --ho)
  889. ac_prev=host_alias ;;
  890. -host=* | --host=* | --hos=* | --ho=*)
  891. host_alias=$ac_optarg ;;
  892. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  893. ac_prev=htmldir ;;
  894. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  895. | --ht=*)
  896. htmldir=$ac_optarg ;;
  897. -includedir | --includedir | --includedi | --included | --include \
  898. | --includ | --inclu | --incl | --inc)
  899. ac_prev=includedir ;;
  900. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  901. | --includ=* | --inclu=* | --incl=* | --inc=*)
  902. includedir=$ac_optarg ;;
  903. -infodir | --infodir | --infodi | --infod | --info | --inf)
  904. ac_prev=infodir ;;
  905. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  906. infodir=$ac_optarg ;;
  907. -libdir | --libdir | --libdi | --libd)
  908. ac_prev=libdir ;;
  909. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  910. libdir=$ac_optarg ;;
  911. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  912. | --libexe | --libex | --libe)
  913. ac_prev=libexecdir ;;
  914. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  915. | --libexe=* | --libex=* | --libe=*)
  916. libexecdir=$ac_optarg ;;
  917. -localedir | --localedir | --localedi | --localed | --locale)
  918. ac_prev=localedir ;;
  919. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  920. localedir=$ac_optarg ;;
  921. -localstatedir | --localstatedir | --localstatedi | --localstated \
  922. | --localstate | --localstat | --localsta | --localst | --locals)
  923. ac_prev=localstatedir ;;
  924. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  925. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  926. localstatedir=$ac_optarg ;;
  927. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  928. ac_prev=mandir ;;
  929. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  930. mandir=$ac_optarg ;;
  931. -nfp | --nfp | --nf)
  932. # Obsolete; use --without-fp.
  933. with_fp=no ;;
  934. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  935. | --no-cr | --no-c | -n)
  936. no_create=yes ;;
  937. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  938. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  939. no_recursion=yes ;;
  940. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  941. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  942. | --oldin | --oldi | --old | --ol | --o)
  943. ac_prev=oldincludedir ;;
  944. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  945. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  946. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  947. oldincludedir=$ac_optarg ;;
  948. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  949. ac_prev=prefix ;;
  950. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  951. prefix=$ac_optarg ;;
  952. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  953. | --program-pre | --program-pr | --program-p)
  954. ac_prev=program_prefix ;;
  955. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  956. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  957. program_prefix=$ac_optarg ;;
  958. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  959. | --program-suf | --program-su | --program-s)
  960. ac_prev=program_suffix ;;
  961. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  962. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  963. program_suffix=$ac_optarg ;;
  964. -program-transform-name | --program-transform-name \
  965. | --program-transform-nam | --program-transform-na \
  966. | --program-transform-n | --program-transform- \
  967. | --program-transform | --program-transfor \
  968. | --program-transfo | --program-transf \
  969. | --program-trans | --program-tran \
  970. | --progr-tra | --program-tr | --program-t)
  971. ac_prev=program_transform_name ;;
  972. -program-transform-name=* | --program-transform-name=* \
  973. | --program-transform-nam=* | --program-transform-na=* \
  974. | --program-transform-n=* | --program-transform-=* \
  975. | --program-transform=* | --program-transfor=* \
  976. | --program-transfo=* | --program-transf=* \
  977. | --program-trans=* | --program-tran=* \
  978. | --progr-tra=* | --program-tr=* | --program-t=*)
  979. program_transform_name=$ac_optarg ;;
  980. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  981. ac_prev=pdfdir ;;
  982. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  983. pdfdir=$ac_optarg ;;
  984. -psdir | --psdir | --psdi | --psd | --ps)
  985. ac_prev=psdir ;;
  986. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  987. psdir=$ac_optarg ;;
  988. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  989. | -silent | --silent | --silen | --sile | --sil)
  990. silent=yes ;;
  991. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  992. ac_prev=sbindir ;;
  993. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  994. | --sbi=* | --sb=*)
  995. sbindir=$ac_optarg ;;
  996. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  997. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  998. | --sharedst | --shareds | --shared | --share | --shar \
  999. | --sha | --sh)
  1000. ac_prev=sharedstatedir ;;
  1001. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1002. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1003. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1004. | --sha=* | --sh=*)
  1005. sharedstatedir=$ac_optarg ;;
  1006. -site | --site | --sit)
  1007. ac_prev=site ;;
  1008. -site=* | --site=* | --sit=*)
  1009. site=$ac_optarg ;;
  1010. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1011. ac_prev=srcdir ;;
  1012. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1013. srcdir=$ac_optarg ;;
  1014. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1015. | --syscon | --sysco | --sysc | --sys | --sy)
  1016. ac_prev=sysconfdir ;;
  1017. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1018. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1019. sysconfdir=$ac_optarg ;;
  1020. -target | --target | --targe | --targ | --tar | --ta | --t)
  1021. ac_prev=target_alias ;;
  1022. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1023. target_alias=$ac_optarg ;;
  1024. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1025. verbose=yes ;;
  1026. -version | --version | --versio | --versi | --vers | -V)
  1027. ac_init_version=: ;;
  1028. -with-* | --with-*)
  1029. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1030. # Reject names that are not valid shell variable names.
  1031. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1032. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1033. { (exit 1); exit 1; }; }
  1034. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1035. eval with_$ac_package=\$ac_optarg ;;
  1036. -without-* | --without-*)
  1037. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1038. # Reject names that are not valid shell variable names.
  1039. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1040. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1041. { (exit 1); exit 1; }; }
  1042. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1043. eval with_$ac_package=no ;;
  1044. --x)
  1045. # Obsolete; use --with-x.
  1046. with_x=yes ;;
  1047. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1048. | --x-incl | --x-inc | --x-in | --x-i)
  1049. ac_prev=x_includes ;;
  1050. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1051. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1052. x_includes=$ac_optarg ;;
  1053. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1054. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1055. ac_prev=x_libraries ;;
  1056. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1057. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1058. x_libraries=$ac_optarg ;;
  1059. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1060. Try \`$0 --help' for more information." >&2
  1061. { (exit 1); exit 1; }; }
  1062. ;;
  1063. *=*)
  1064. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1065. # Reject names that are not valid shell variable names.
  1066. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1067. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1068. { (exit 1); exit 1; }; }
  1069. eval $ac_envvar=\$ac_optarg
  1070. export $ac_envvar ;;
  1071. *)
  1072. # FIXME: should be removed in autoconf 3.0.
  1073. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1074. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1075. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1076. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1077. ;;
  1078. esac
  1079. done
  1080. if test -n "$ac_prev"; then
  1081. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1082. { echo "$as_me: error: missing argument to $ac_option" >&2
  1083. { (exit 1); exit 1; }; }
  1084. fi
  1085. # Be sure to have absolute directory names.
  1086. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1087. datadir sysconfdir sharedstatedir localstatedir includedir \
  1088. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1089. libdir localedir mandir
  1090. do
  1091. eval ac_val=\$$ac_var
  1092. case $ac_val in
  1093. [\\/$]* | ?:[\\/]* ) continue;;
  1094. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1095. esac
  1096. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1097. { (exit 1); exit 1; }; }
  1098. done
  1099. # There might be people who depend on the old broken behavior: `$host'
  1100. # used to hold the argument of --host etc.
  1101. # FIXME: To remove some day.
  1102. build=$build_alias
  1103. host=$host_alias
  1104. target=$target_alias
  1105. # FIXME: To remove some day.
  1106. if test "x$host_alias" != x; then
  1107. if test "x$build_alias" = x; then
  1108. cross_compiling=maybe
  1109. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1110. If a cross compiler is detected then cross compile mode will be used." >&2
  1111. elif test "x$build_alias" != "x$host_alias"; then
  1112. cross_compiling=yes
  1113. fi
  1114. fi
  1115. ac_tool_prefix=
  1116. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1117. test "$silent" = yes && exec 6>/dev/null
  1118. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1119. ac_ls_di=`ls -di .` &&
  1120. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1121. { echo "$as_me: error: Working directory cannot be determined" >&2
  1122. { (exit 1); exit 1; }; }
  1123. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1124. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1125. { (exit 1); exit 1; }; }
  1126. # Find the source files, if location was not specified.
  1127. if test -z "$srcdir"; then
  1128. ac_srcdir_defaulted=yes
  1129. # Try the directory containing this script, then the parent directory.
  1130. ac_confdir=`$as_dirname -- "$0" ||
  1131. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1132. X"$0" : 'X\(//\)[^/]' \| \
  1133. X"$0" : 'X\(//\)$' \| \
  1134. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1135. echo X"$0" |
  1136. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1137. s//\1/
  1138. q
  1139. }
  1140. /^X\(\/\/\)[^/].*/{
  1141. s//\1/
  1142. q
  1143. }
  1144. /^X\(\/\/\)$/{
  1145. s//\1/
  1146. q
  1147. }
  1148. /^X\(\/\).*/{
  1149. s//\1/
  1150. q
  1151. }
  1152. s/.*/./; q'`
  1153. srcdir=$ac_confdir
  1154. if test ! -r "$srcdir/$ac_unique_file"; then
  1155. srcdir=..
  1156. fi
  1157. else
  1158. ac_srcdir_defaulted=no
  1159. fi
  1160. if test ! -r "$srcdir/$ac_unique_file"; then
  1161. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1162. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1163. { (exit 1); exit 1; }; }
  1164. fi
  1165. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1166. ac_abs_confdir=`(
  1167. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1168. { (exit 1); exit 1; }; }
  1169. pwd)`
  1170. # When building in place, set srcdir=.
  1171. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1172. srcdir=.
  1173. fi
  1174. # Remove unnecessary trailing slashes from srcdir.
  1175. # Double slashes in file names in object file debugging info
  1176. # mess up M-x gdb in Emacs.
  1177. case $srcdir in
  1178. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1179. esac
  1180. for ac_var in $ac_precious_vars; do
  1181. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1182. eval ac_env_${ac_var}_value=\$${ac_var}
  1183. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1184. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1185. done
  1186. #
  1187. # Report the --help message.
  1188. #
  1189. if test "$ac_init_help" = "long"; then
  1190. # Omit some internal or obsolete options to make the list less imposing.
  1191. # This message is too long to be a string in the A/UX 3.1 sh.
  1192. cat <<_ACEOF
  1193. \`configure' configures aria2c 0.15.1+2 to adapt to many kinds of systems.
  1194. Usage: $0 [OPTION]... [VAR=VALUE]...
  1195. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1196. VAR=VALUE. See below for descriptions of some of the useful variables.
  1197. Defaults for the options are specified in brackets.
  1198. Configuration:
  1199. -h, --help display this help and exit
  1200. --help=short display options specific to this package
  1201. --help=recursive display the short help of all the included packages
  1202. -V, --version display version information and exit
  1203. -q, --quiet, --silent do not print \`checking...' messages
  1204. --cache-file=FILE cache test results in FILE [disabled]
  1205. -C, --config-cache alias for \`--cache-file=config.cache'
  1206. -n, --no-create do not create output files
  1207. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1208. Installation directories:
  1209. --prefix=PREFIX install architecture-independent files in PREFIX
  1210. [$ac_default_prefix]
  1211. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1212. [PREFIX]
  1213. By default, \`make install' will install all the files in
  1214. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1215. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1216. for instance \`--prefix=\$HOME'.
  1217. For better control, use the options below.
  1218. Fine tuning of the installation directories:
  1219. --bindir=DIR user executables [EPREFIX/bin]
  1220. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1221. --libexecdir=DIR program executables [EPREFIX/libexec]
  1222. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1223. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1224. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1225. --libdir=DIR object code libraries [EPREFIX/lib]
  1226. --includedir=DIR C header files [PREFIX/include]
  1227. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1228. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1229. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1230. --infodir=DIR info documentation [DATAROOTDIR/info]
  1231. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1232. --mandir=DIR man documentation [DATAROOTDIR/man]
  1233. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1234. --htmldir=DIR html documentation [DOCDIR]
  1235. --dvidir=DIR dvi documentation [DOCDIR]
  1236. --pdfdir=DIR pdf documentation [DOCDIR]
  1237. --psdir=DIR ps documentation [DOCDIR]
  1238. _ACEOF
  1239. cat <<\_ACEOF
  1240. Program names:
  1241. --program-prefix=PREFIX prepend PREFIX to installed program names
  1242. --program-suffix=SUFFIX append SUFFIX to installed program names
  1243. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1244. System types:
  1245. --build=BUILD configure for building on BUILD [guessed]
  1246. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1247. --target=TARGET configure for building compilers for TARGET [HOST]
  1248. _ACEOF
  1249. fi
  1250. if test -n "$ac_init_help"; then
  1251. case $ac_init_help in
  1252. short | recursive ) echo "Configuration of aria2c 0.15.1+2:";;
  1253. esac
  1254. cat <<\_ACEOF
  1255. Optional Features:
  1256. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1257. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1258. --enable-bittorrent enable bittorrent support.
  1259. --enable-metalink enable metalink support.
  1260. --enable-epoll enable epoll support.
  1261. --disable-dependency-tracking speeds up one-time build
  1262. --enable-dependency-tracking do not reject slow dependency extractors
  1263. --disable-xmltest Do not try to compile and run a test LIBXML program
  1264. --disable-largefile omit support for large files
  1265. --disable-nls do not use Native Language Support
  1266. --enable-threads={posix|solaris|pth|win32}
  1267. specify multithreading API
  1268. --disable-threads build without multithread safety
  1269. --disable-rpath do not hardcode runtime library paths
  1270. Optional Packages:
  1271. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1272. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1273. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1274. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1275. --with-gnutls use gnutls if it is installed.
  1276. --with-openssl use openssl if it is installed.
  1277. --with-sqlite3 use sqlite3 if it is installed.
  1278. --with-libxml2 use libxml2 if it is installed.
  1279. --with-libexpat use libexpat if it is installed.
  1280. --with-libares use libares if it is installed.
  1281. --with-libcares use libcares if it is installed.
  1282. --with-libz use libz if it is installed.
  1283. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1284. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1285. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1286. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1287. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1288. --with-libgcrypt-prefix=PFX
  1289. prefix where LIBGCRYPT is installed (optional)
  1290. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1291. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1292. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1293. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1294. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1295. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1296. --without-libpth-prefix don't search for libpth in includedir and libdir
  1297. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1298. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1299. --with-included-gettext use the GNU gettext library included here
  1300. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1301. --without-libintl-prefix don't search for libintl in includedir and libdir
  1302. Some influential environment variables:
  1303. CXX C++ compiler command
  1304. CXXFLAGS C++ compiler flags
  1305. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1306. nonstandard directory <lib dir>
  1307. LIBS libraries to pass to the linker, e.g. -l<library>
  1308. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1309. you have headers in a nonstandard directory <include dir>
  1310. CC C compiler command
  1311. CFLAGS C compiler flags
  1312. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1313. the first program found out of: `bison -y', `byacc', `yacc'.
  1314. YFLAGS The list of arguments that will be passed by default to $YACC.
  1315. This script will default YFLAGS to the empty string to avoid a
  1316. default value of `-d' given by some make applications.
  1317. CXXCPP C++ preprocessor
  1318. Use these variables to override the choices made by `configure' or to help
  1319. it to find libraries and programs with nonstandard names/locations.
  1320. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1321. _ACEOF
  1322. ac_status=$?
  1323. fi
  1324. if test "$ac_init_help" = "recursive"; then
  1325. # If there are subdirs, report their specific --help.
  1326. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1327. test -d "$ac_dir" || continue
  1328. ac_builddir=.
  1329. case "$ac_dir" in
  1330. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1331. *)
  1332. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1333. # A ".." for each directory in $ac_dir_suffix.
  1334. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1335. case $ac_top_builddir_sub in
  1336. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1337. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1338. esac ;;
  1339. esac
  1340. ac_abs_top_builddir=$ac_pwd
  1341. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1342. # for backward compatibility:
  1343. ac_top_builddir=$ac_top_build_prefix
  1344. case $srcdir in
  1345. .) # We are building in place.
  1346. ac_srcdir=.
  1347. ac_top_srcdir=$ac_top_builddir_sub
  1348. ac_abs_top_srcdir=$ac_pwd ;;
  1349. [\\/]* | ?:[\\/]* ) # Absolute name.
  1350. ac_srcdir=$srcdir$ac_dir_suffix;
  1351. ac_top_srcdir=$srcdir
  1352. ac_abs_top_srcdir=$srcdir ;;
  1353. *) # Relative name.
  1354. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1355. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1356. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1357. esac
  1358. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1359. cd "$ac_dir" || { ac_status=$?; continue; }
  1360. # Check for guested configure.
  1361. if test -f "$ac_srcdir/configure.gnu"; then
  1362. echo &&
  1363. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1364. elif test -f "$ac_srcdir/configure"; then
  1365. echo &&
  1366. $SHELL "$ac_srcdir/configure" --help=recursive
  1367. else
  1368. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1369. fi || ac_status=$?
  1370. cd "$ac_pwd" || { ac_status=$?; break; }
  1371. done
  1372. fi
  1373. test -n "$ac_init_help" && exit $ac_status
  1374. if $ac_init_version; then
  1375. cat <<\_ACEOF
  1376. aria2c configure 0.15.1+2
  1377. generated by GNU Autoconf 2.61
  1378. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1379. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1380. This configure script is free software; the Free Software Foundation
  1381. gives unlimited permission to copy, distribute and modify it.
  1382. _ACEOF
  1383. exit
  1384. fi
  1385. cat >config.log <<_ACEOF
  1386. This file contains any messages produced by compilers while
  1387. running configure, to aid debugging if configure makes a mistake.
  1388. It was created by aria2c $as_me 0.15.1+2, which was
  1389. generated by GNU Autoconf 2.61. Invocation command line was
  1390. $ $0 $@
  1391. _ACEOF
  1392. exec 5>>config.log
  1393. {
  1394. cat <<_ASUNAME
  1395. ## --------- ##
  1396. ## Platform. ##
  1397. ## --------- ##
  1398. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1399. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1400. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1401. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1402. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1403. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1404. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1405. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1406. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1407. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1408. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1409. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1410. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1411. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1412. _ASUNAME
  1413. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1414. for as_dir in $PATH
  1415. do
  1416. IFS=$as_save_IFS
  1417. test -z "$as_dir" && as_dir=.
  1418. echo "PATH: $as_dir"
  1419. done
  1420. IFS=$as_save_IFS
  1421. } >&5
  1422. cat >&5 <<_ACEOF
  1423. ## ----------- ##
  1424. ## Core tests. ##
  1425. ## ----------- ##
  1426. _ACEOF
  1427. # Keep a trace of the command line.
  1428. # Strip out --no-create and --no-recursion so they do not pile up.
  1429. # Strip out --silent because we don't want to record it for future runs.
  1430. # Also quote any args containing shell meta-characters.
  1431. # Make two passes to allow for proper duplicate-argument suppression.
  1432. ac_configure_args=
  1433. ac_configure_args0=
  1434. ac_configure_args1=
  1435. ac_must_keep_next=false
  1436. for ac_pass in 1 2
  1437. do
  1438. for ac_arg
  1439. do
  1440. case $ac_arg in
  1441. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1442. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1443. | -silent | --silent | --silen | --sile | --sil)
  1444. continue ;;
  1445. *\'*)
  1446. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1447. esac
  1448. case $ac_pass in
  1449. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1450. 2)
  1451. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1452. if test $ac_must_keep_next = true; then
  1453. ac_must_keep_next=false # Got value, back to normal.
  1454. else
  1455. case $ac_arg in
  1456. *=* | --config-cache | -C | -disable-* | --disable-* \
  1457. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1458. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1459. | -with-* | --with-* | -without-* | --without-* | --x)
  1460. case "$ac_configure_args0 " in
  1461. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1462. esac
  1463. ;;
  1464. -* ) ac_must_keep_next=true ;;
  1465. esac
  1466. fi
  1467. ac_configure_args="$ac_configure_args '$ac_arg'"
  1468. ;;
  1469. esac
  1470. done
  1471. done
  1472. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1473. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1474. # When interrupted or exit'd, cleanup temporary files, and complete
  1475. # config.log. We remove comments because anyway the quotes in there
  1476. # would cause problems or look ugly.
  1477. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1478. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1479. trap 'exit_status=$?
  1480. # Save into config.log some information that might help in debugging.
  1481. {
  1482. echo
  1483. cat <<\_ASBOX
  1484. ## ---------------- ##
  1485. ## Cache variables. ##
  1486. ## ---------------- ##
  1487. _ASBOX
  1488. echo
  1489. # The following way of writing the cache mishandles newlines in values,
  1490. (
  1491. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1492. eval ac_val=\$$ac_var
  1493. case $ac_val in #(
  1494. *${as_nl}*)
  1495. case $ac_var in #(
  1496. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1497. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1498. esac
  1499. case $ac_var in #(
  1500. _ | IFS | as_nl) ;; #(
  1501. *) $as_unset $ac_var ;;
  1502. esac ;;
  1503. esac
  1504. done
  1505. (set) 2>&1 |
  1506. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1507. *${as_nl}ac_space=\ *)
  1508. sed -n \
  1509. "s/'\''/'\''\\\\'\'''\''/g;
  1510. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1511. ;; #(
  1512. *)
  1513. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1514. ;;
  1515. esac |
  1516. sort
  1517. )
  1518. echo
  1519. cat <<\_ASBOX
  1520. ## ----------------- ##
  1521. ## Output variables. ##
  1522. ## ----------------- ##
  1523. _ASBOX
  1524. echo
  1525. for ac_var in $ac_subst_vars
  1526. do
  1527. eval ac_val=\$$ac_var
  1528. case $ac_val in
  1529. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1530. esac
  1531. echo "$ac_var='\''$ac_val'\''"
  1532. done | sort
  1533. echo
  1534. if test -n "$ac_subst_files"; then
  1535. cat <<\_ASBOX
  1536. ## ------------------- ##
  1537. ## File substitutions. ##
  1538. ## ------------------- ##
  1539. _ASBOX
  1540. echo
  1541. for ac_var in $ac_subst_files
  1542. do
  1543. eval ac_val=\$$ac_var
  1544. case $ac_val in
  1545. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1546. esac
  1547. echo "$ac_var='\''$ac_val'\''"
  1548. done | sort
  1549. echo
  1550. fi
  1551. if test -s confdefs.h; then
  1552. cat <<\_ASBOX
  1553. ## ----------- ##
  1554. ## confdefs.h. ##
  1555. ## ----------- ##
  1556. _ASBOX
  1557. echo
  1558. cat confdefs.h
  1559. echo
  1560. fi
  1561. test "$ac_signal" != 0 &&
  1562. echo "$as_me: caught signal $ac_signal"
  1563. echo "$as_me: exit $exit_status"
  1564. } >&5
  1565. rm -f core *.core core.conftest.* &&
  1566. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1567. exit $exit_status
  1568. ' 0
  1569. for ac_signal in 1 2 13 15; do
  1570. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1571. done
  1572. ac_signal=0
  1573. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1574. rm -f -r conftest* confdefs.h
  1575. # Predefined preprocessor variables.
  1576. cat >>confdefs.h <<_ACEOF
  1577. #define PACKAGE_NAME "$PACKAGE_NAME"
  1578. _ACEOF
  1579. cat >>confdefs.h <<_ACEOF
  1580. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1581. _ACEOF
  1582. cat >>confdefs.h <<_ACEOF
  1583. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1584. _ACEOF
  1585. cat >>confdefs.h <<_ACEOF
  1586. #define PACKAGE_STRING "$PACKAGE_STRING"
  1587. _ACEOF
  1588. cat >>confdefs.h <<_ACEOF
  1589. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1590. _ACEOF
  1591. # Let the site file select an alternate cache file if it wants to.
  1592. # Prefer explicitly selected file to automatically selected ones.
  1593. if test -n "$CONFIG_SITE"; then
  1594. set x "$CONFIG_SITE"
  1595. elif test "x$prefix" != xNONE; then
  1596. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1597. else
  1598. set x "$ac_default_prefix/share/config.site" \
  1599. "$ac_default_prefix/etc/config.site"
  1600. fi
  1601. shift
  1602. for ac_site_file
  1603. do
  1604. if test -r "$ac_site_file"; then
  1605. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1606. echo "$as_me: loading site script $ac_site_file" >&6;}
  1607. sed 's/^/| /' "$ac_site_file" >&5
  1608. . "$ac_site_file"
  1609. fi
  1610. done
  1611. if test -r "$cache_file"; then
  1612. # Some versions of bash will fail to source /dev/null (special
  1613. # files actually), so we avoid doing that.
  1614. if test -f "$cache_file"; then
  1615. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1616. echo "$as_me: loading cache $cache_file" >&6;}
  1617. case $cache_file in
  1618. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1619. *) . "./$cache_file";;
  1620. esac
  1621. fi
  1622. else
  1623. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1624. echo "$as_me: creating cache $cache_file" >&6;}
  1625. >$cache_file
  1626. fi
  1627. gt_needs="$gt_needs "
  1628. ac_header_list="$ac_header_list sys/time.h"
  1629. ac_header_list="$ac_header_list unistd.h"
  1630. ac_func_list="$ac_func_list alarm"
  1631. # Check that the precious variables saved in the cache have kept the same
  1632. # value.
  1633. ac_cache_corrupted=false
  1634. for ac_var in $ac_precious_vars; do
  1635. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1636. eval ac_new_set=\$ac_env_${ac_var}_set
  1637. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1638. eval ac_new_val=\$ac_env_${ac_var}_value
  1639. case $ac_old_set,$ac_new_set in
  1640. set,)
  1641. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1642. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1643. ac_cache_corrupted=: ;;
  1644. ,set)
  1645. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1646. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1647. ac_cache_corrupted=: ;;
  1648. ,);;
  1649. *)
  1650. if test "x$ac_old_val" != "x$ac_new_val"; then
  1651. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1652. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1653. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1654. echo "$as_me: former value: $ac_old_val" >&2;}
  1655. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1656. echo "$as_me: current value: $ac_new_val" >&2;}
  1657. ac_cache_corrupted=:
  1658. fi;;
  1659. esac
  1660. # Pass precious variables to config.status.
  1661. if test "$ac_new_set" = set; then
  1662. case $ac_new_val in
  1663. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1664. *) ac_arg=$ac_var=$ac_new_val ;;
  1665. esac
  1666. case " $ac_configure_args " in
  1667. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1668. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1669. esac
  1670. fi
  1671. done
  1672. if $ac_cache_corrupted; then
  1673. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1674. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1675. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1676. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1677. { (exit 1); exit 1; }; }
  1678. fi
  1679. ac_ext=c
  1680. ac_cpp='$CPP $CPPFLAGS'
  1681. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1682. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1683. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1684. ac_aux_dir=
  1685. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1686. if test -f "$ac_dir/install-sh"; then
  1687. ac_aux_dir=$ac_dir
  1688. ac_install_sh="$ac_aux_dir/install-sh -c"
  1689. break
  1690. elif test -f "$ac_dir/install.sh"; then
  1691. ac_aux_dir=$ac_dir
  1692. ac_install_sh="$ac_aux_dir/install.sh -c"
  1693. break
  1694. elif test -f "$ac_dir/shtool"; then
  1695. ac_aux_dir=$ac_dir
  1696. ac_install_sh="$ac_aux_dir/shtool install -c"
  1697. break
  1698. fi
  1699. done
  1700. if test -z "$ac_aux_dir"; then
  1701. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1702. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1703. { (exit 1); exit 1; }; }
  1704. fi
  1705. # These three variables are undocumented and unsupported,
  1706. # and are intended to be withdrawn in a future Autoconf release.
  1707. # They can cause serious problems if a builder's source tree is in a directory
  1708. # whose full name contains unusual characters.
  1709. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1710. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1711. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1712. # Make sure we can run config.sub.
  1713. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1714. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1715. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1716. { (exit 1); exit 1; }; }
  1717. { echo "$as_me:$LINENO: checking build system type" >&5
  1718. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1719. if test "${ac_cv_build+set}" = set; then
  1720. echo $ECHO_N "(cached) $ECHO_C" >&6
  1721. else
  1722. ac_build_alias=$build_alias
  1723. test "x$ac_build_alias" = x &&
  1724. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1725. test "x$ac_build_alias" = x &&
  1726. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1727. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1728. { (exit 1); exit 1; }; }
  1729. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1730. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1731. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1732. { (exit 1); exit 1; }; }
  1733. fi
  1734. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1735. echo "${ECHO_T}$ac_cv_build" >&6; }
  1736. case $ac_cv_build in
  1737. *-*-*) ;;
  1738. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1739. echo "$as_me: error: invalid value of canonical build" >&2;}
  1740. { (exit 1); exit 1; }; };;
  1741. esac
  1742. build=$ac_cv_build
  1743. ac_save_IFS=$IFS; IFS='-'
  1744. set x $ac_cv_build
  1745. shift
  1746. build_cpu=$1
  1747. build_vendor=$2
  1748. shift; shift
  1749. # Remember, the first character of IFS is used to create $*,
  1750. # except with old shells:
  1751. build_os=$*
  1752. IFS=$ac_save_IFS
  1753. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1754. { echo "$as_me:$LINENO: checking host system type" >&5
  1755. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1756. if test "${ac_cv_host+set}" = set; then
  1757. echo $ECHO_N "(cached) $ECHO_C" >&6
  1758. else
  1759. if test "x$host_alias" = x; then
  1760. ac_cv_host=$ac_cv_build
  1761. else
  1762. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1763. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1764. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1765. { (exit 1); exit 1; }; }
  1766. fi
  1767. fi
  1768. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1769. echo "${ECHO_T}$ac_cv_host" >&6; }
  1770. case $ac_cv_host in
  1771. *-*-*) ;;
  1772. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1773. echo "$as_me: error: invalid value of canonical host" >&2;}
  1774. { (exit 1); exit 1; }; };;
  1775. esac
  1776. host=$ac_cv_host
  1777. ac_save_IFS=$IFS; IFS='-'
  1778. set x $ac_cv_host
  1779. shift
  1780. host_cpu=$1
  1781. host_vendor=$2
  1782. shift; shift
  1783. # Remember, the first character of IFS is used to create $*,
  1784. # except with old shells:
  1785. host_os=$*
  1786. IFS=$ac_save_IFS
  1787. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1788. { echo "$as_me:$LINENO: checking target system type" >&5
  1789. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1790. if test "${ac_cv_target+set}" = set; then
  1791. echo $ECHO_N "(cached) $ECHO_C" >&6
  1792. else
  1793. if test "x$target_alias" = x; then
  1794. ac_cv_target=$ac_cv_host
  1795. else
  1796. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1797. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1798. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1799. { (exit 1); exit 1; }; }
  1800. fi
  1801. fi
  1802. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1803. echo "${ECHO_T}$ac_cv_target" >&6; }
  1804. case $ac_cv_target in
  1805. *-*-*) ;;
  1806. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1807. echo "$as_me: error: invalid value of canonical target" >&2;}
  1808. { (exit 1); exit 1; }; };;
  1809. esac
  1810. target=$ac_cv_target
  1811. ac_save_IFS=$IFS; IFS='-'
  1812. set x $ac_cv_target
  1813. shift
  1814. target_cpu=$1
  1815. target_vendor=$2
  1816. shift; shift
  1817. # Remember, the first character of IFS is used to create $*,
  1818. # except with old shells:
  1819. target_os=$*
  1820. IFS=$ac_save_IFS
  1821. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1822. # The aliases save the names the user supplied, while $host etc.
  1823. # will get canonicalized.
  1824. test -n "$target_alias" &&
  1825. test "$program_prefix$program_suffix$program_transform_name" = \
  1826. NONENONEs,x,x, &&
  1827. program_prefix=${target_alias}-
  1828. am__api_version='1.10'
  1829. # Find a good install program. We prefer a C program (faster),
  1830. # so one script is as good as another. But avoid the broken or
  1831. # incompatible versions:
  1832. # SysV /etc/install, /usr/sbin/install
  1833. # SunOS /usr/etc/install
  1834. # IRIX /sbin/install
  1835. # AIX /bin/install
  1836. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1837. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1838. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1839. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1840. # OS/2's system install, which has a completely different semantic
  1841. # ./install, which can be erroneously created by make from ./install.sh.
  1842. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1843. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1844. if test -z "$INSTALL"; then
  1845. if test "${ac_cv_path_install+set}" = set; then
  1846. echo $ECHO_N "(cached) $ECHO_C" >&6
  1847. else
  1848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1849. for as_dir in $PATH
  1850. do
  1851. IFS=$as_save_IFS
  1852. test -z "$as_dir" && as_dir=.
  1853. # Account for people who put trailing slashes in PATH elements.
  1854. case $as_dir/ in
  1855. ./ | .// | /cC/* | \
  1856. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1857. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1858. /usr/ucb/* ) ;;
  1859. *)
  1860. # OSF1 and SCO ODT 3.0 have their own names for install.
  1861. # Don't use installbsd from OSF since it installs stuff as root
  1862. # by default.
  1863. for ac_prog in ginstall scoinst install; do
  1864. for ac_exec_ext in '' $ac_executable_extensions; do
  1865. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1866. if test $ac_prog = install &&
  1867. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1868. # AIX install. It has an incompatible calling convention.
  1869. :
  1870. elif test $ac_prog = install &&
  1871. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1872. # program-specific install script used by HP pwplus--don't use.
  1873. :
  1874. else
  1875. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1876. break 3
  1877. fi
  1878. fi
  1879. done
  1880. done
  1881. ;;
  1882. esac
  1883. done
  1884. IFS=$as_save_IFS
  1885. fi
  1886. if test "${ac_cv_path_install+set}" = set; then
  1887. INSTALL=$ac_cv_path_install
  1888. else
  1889. # As a last resort, use the slow shell script. Don't cache a
  1890. # value for INSTALL within a source directory, because that will
  1891. # break other packages using the cache if that directory is
  1892. # removed, or if the value is a relative name.
  1893. INSTALL=$ac_install_sh
  1894. fi
  1895. fi
  1896. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1897. echo "${ECHO_T}$INSTALL" >&6; }
  1898. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1899. # It thinks the first close brace ends the variable substitution.
  1900. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1901. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1902. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1903. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1904. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1905. # Just in case
  1906. sleep 1
  1907. echo timestamp > conftest.file
  1908. # Do `set' in a subshell so we don't clobber the current shell's
  1909. # arguments. Must try -L first in case configure is actually a
  1910. # symlink; some systems play weird games with the mod time of symlinks
  1911. # (eg FreeBSD returns the mod time of the symlink's containing
  1912. # directory).
  1913. if (
  1914. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1915. if test "$*" = "X"; then
  1916. # -L didn't work.
  1917. set X `ls -t $srcdir/configure conftest.file`
  1918. fi
  1919. rm -f conftest.file
  1920. if test "$*" != "X $srcdir/configure conftest.file" \
  1921. && test "$*" != "X conftest.file $srcdir/configure"; then
  1922. # If neither matched, then we have a broken ls. This can happen
  1923. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1924. # broken ls alias from the environment. This has actually
  1925. # happened. Such a system could not be considered "sane".
  1926. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1927. alias in your environment" >&5
  1928. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1929. alias in your environment" >&2;}
  1930. { (exit 1); exit 1; }; }
  1931. fi
  1932. test "$2" = conftest.file
  1933. )
  1934. then
  1935. # Ok.
  1936. :
  1937. else
  1938. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1939. Check your system clock" >&5
  1940. echo "$as_me: error: newly created file is older than distributed files!
  1941. Check your system clock" >&2;}
  1942. { (exit 1); exit 1; }; }
  1943. fi
  1944. { echo "$as_me:$LINENO: result: yes" >&5
  1945. echo "${ECHO_T}yes" >&6; }
  1946. test "$program_prefix" != NONE &&
  1947. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1948. # Use a double $ so make ignores it.
  1949. test "$program_suffix" != NONE &&
  1950. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1951. # Double any \ or $. echo might interpret backslashes.
  1952. # By default was `s,x,x', remove it if useless.
  1953. cat <<\_ACEOF >conftest.sed
  1954. s/[\\$]/&&/g;s/;s,x,x,$//
  1955. _ACEOF
  1956. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1957. rm -f conftest.sed
  1958. # expand $ac_aux_dir to an absolute path
  1959. am_aux_dir=`cd $ac_aux_dir && pwd`
  1960. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1961. # Use eval to expand $SHELL
  1962. if eval "$MISSING --run true"; then
  1963. am_missing_run="$MISSING --run "
  1964. else
  1965. am_missing_run=
  1966. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1967. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1968. fi
  1969. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1970. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1971. if test -z "$MKDIR_P"; then
  1972. if test "${ac_cv_path_mkdir+set}" = set; then
  1973. echo $ECHO_N "(cached) $ECHO_C" >&6
  1974. else
  1975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1976. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1977. do
  1978. IFS=$as_save_IFS
  1979. test -z "$as_dir" && as_dir=.
  1980. for ac_prog in mkdir gmkdir; do
  1981. for ac_exec_ext in '' $ac_executable_extensions; do
  1982. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1983. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1984. 'mkdir (GNU coreutils) '* | \
  1985. 'mkdir (coreutils) '* | \
  1986. 'mkdir (fileutils) '4.1*)
  1987. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1988. break 3;;
  1989. esac
  1990. done
  1991. done
  1992. done
  1993. IFS=$as_save_IFS
  1994. fi
  1995. if test "${ac_cv_path_mkdir+set}" = set; then
  1996. MKDIR_P="$ac_cv_path_mkdir -p"
  1997. else
  1998. # As a last resort, use the slow shell script. Don't cache a
  1999. # value for MKDIR_P within a source directory, because that will
  2000. # break other packages using the cache if that directory is
  2001. # removed, or if the value is a relative name.
  2002. test -d ./--version && rmdir ./--version
  2003. MKDIR_P="$ac_install_sh -d"
  2004. fi
  2005. fi
  2006. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2007. echo "${ECHO_T}$MKDIR_P" >&6; }
  2008. mkdir_p="$MKDIR_P"
  2009. case $mkdir_p in
  2010. [\\/$]* | ?:[\\/]*) ;;
  2011. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2012. esac
  2013. for ac_prog in gawk mawk nawk awk
  2014. do
  2015. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2016. set dummy $ac_prog; ac_word=$2
  2017. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2018. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2019. if test "${ac_cv_prog_AWK+set}" = set; then
  2020. echo $ECHO_N "(cached) $ECHO_C" >&6
  2021. else
  2022. if test -n "$AWK"; then
  2023. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2024. else
  2025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2026. for as_dir in $PATH
  2027. do
  2028. IFS=$as_save_IFS
  2029. test -z "$as_dir" && as_dir=.
  2030. for ac_exec_ext in '' $ac_executable_extensions; do
  2031. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2032. ac_cv_prog_AWK="$ac_prog"
  2033. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2034. break 2
  2035. fi
  2036. done
  2037. done
  2038. IFS=$as_save_IFS
  2039. fi
  2040. fi
  2041. AWK=$ac_cv_prog_AWK
  2042. if test -n "$AWK"; then
  2043. { echo "$as_me:$LINENO: result: $AWK" >&5
  2044. echo "${ECHO_T}$AWK" >&6; }
  2045. else
  2046. { echo "$as_me:$LINENO: result: no" >&5
  2047. echo "${ECHO_T}no" >&6; }
  2048. fi
  2049. test -n "$AWK" && break
  2050. done
  2051. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2052. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2053. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2054. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2055. echo $ECHO_N "(cached) $ECHO_C" >&6
  2056. else
  2057. cat >conftest.make <<\_ACEOF
  2058. SHELL = /bin/sh
  2059. all:
  2060. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2061. _ACEOF
  2062. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2063. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2064. *@@@%%%=?*=@@@%%%*)
  2065. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2066. *)
  2067. eval ac_cv_prog_make_${ac_make}_set=no;;
  2068. esac
  2069. rm -f conftest.make
  2070. fi
  2071. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2072. { echo "$as_me:$LINENO: result: yes" >&5
  2073. echo "${ECHO_T}yes" >&6; }
  2074. SET_MAKE=
  2075. else
  2076. { echo "$as_me:$LINENO: result: no" >&5
  2077. echo "${ECHO_T}no" >&6; }
  2078. SET_MAKE="MAKE=${MAKE-make}"
  2079. fi
  2080. rm -rf .tst 2>/dev/null
  2081. mkdir .tst 2>/dev/null
  2082. if test -d .tst; then
  2083. am__leading_dot=.
  2084. else
  2085. am__leading_dot=_
  2086. fi
  2087. rmdir .tst 2>/dev/null
  2088. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2089. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2090. # is not polluted with repeated "-I."
  2091. am__isrc=' -I$(srcdir)'
  2092. # test to see if srcdir already configured
  2093. if test -f $srcdir/config.status; then
  2094. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2095. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2096. { (exit 1); exit 1; }; }
  2097. fi
  2098. fi
  2099. # test whether we have cygpath
  2100. if test -z "$CYGPATH_W"; then
  2101. if (cygpath --version) >/dev/null 2>/dev/null; then
  2102. CYGPATH_W='cygpath -w'
  2103. else
  2104. CYGPATH_W=echo
  2105. fi
  2106. fi
  2107. # Define the identity of the package.
  2108. PACKAGE='aria2c'
  2109. VERSION='0.15.1+2'
  2110. cat >>confdefs.h <<_ACEOF
  2111. #define PACKAGE "$PACKAGE"
  2112. _ACEOF
  2113. cat >>confdefs.h <<_ACEOF
  2114. #define VERSION "$VERSION"
  2115. _ACEOF
  2116. # Some tools Automake needs.
  2117. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2118. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2119. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2120. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2121. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2122. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2123. # Installed binaries are usually stripped using `strip' when the user
  2124. # run `make install-strip'. However `strip' might not be the right
  2125. # tool to use in cross-compilation environments, therefore Automake
  2126. # will honor the `STRIP' environment variable to overrule this program.
  2127. if test "$cross_compiling" != no; then
  2128. if test -n "$ac_tool_prefix"; then
  2129. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2130. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2131. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2132. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2133. if test "${ac_cv_prog_STRIP+set}" = set; then
  2134. echo $ECHO_N "(cached) $ECHO_C" >&6
  2135. else
  2136. if test -n "$STRIP"; then
  2137. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2138. else
  2139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2140. for as_dir in $PATH
  2141. do
  2142. IFS=$as_save_IFS
  2143. test -z "$as_dir" && as_dir=.
  2144. for ac_exec_ext in '' $ac_executable_extensions; do
  2145. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2146. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2147. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2148. break 2
  2149. fi
  2150. done
  2151. done
  2152. IFS=$as_save_IFS
  2153. fi
  2154. fi
  2155. STRIP=$ac_cv_prog_STRIP
  2156. if test -n "$STRIP"; then
  2157. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2158. echo "${ECHO_T}$STRIP" >&6; }
  2159. else
  2160. { echo "$as_me:$LINENO: result: no" >&5
  2161. echo "${ECHO_T}no" >&6; }
  2162. fi
  2163. fi
  2164. if test -z "$ac_cv_prog_STRIP"; then
  2165. ac_ct_STRIP=$STRIP
  2166. # Extract the first word of "strip", so it can be a program name with args.
  2167. set dummy strip; ac_word=$2
  2168. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2169. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2170. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2171. echo $ECHO_N "(cached) $ECHO_C" >&6
  2172. else
  2173. if test -n "$ac_ct_STRIP"; then
  2174. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2175. else
  2176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2177. for as_dir in $PATH
  2178. do
  2179. IFS=$as_save_IFS
  2180. test -z "$as_dir" && as_dir=.
  2181. for ac_exec_ext in '' $ac_executable_extensions; do
  2182. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2183. ac_cv_prog_ac_ct_STRIP="strip"
  2184. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2185. break 2
  2186. fi
  2187. done
  2188. done
  2189. IFS=$as_save_IFS
  2190. fi
  2191. fi
  2192. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2193. if test -n "$ac_ct_STRIP"; then
  2194. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2195. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2196. else
  2197. { echo "$as_me:$LINENO: result: no" >&5
  2198. echo "${ECHO_T}no" >&6; }
  2199. fi
  2200. if test "x$ac_ct_STRIP" = x; then
  2201. STRIP=":"
  2202. else
  2203. case $cross_compiling:$ac_tool_warned in
  2204. yes:)
  2205. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2206. whose name does not start with the host triplet. If you think this
  2207. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2208. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2209. whose name does not start with the host triplet. If you think this
  2210. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2211. ac_tool_warned=yes ;;
  2212. esac
  2213. STRIP=$ac_ct_STRIP
  2214. fi
  2215. else
  2216. STRIP="$ac_cv_prog_STRIP"
  2217. fi
  2218. fi
  2219. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2220. # We need awk for the "check" target. The system "awk" is bad on
  2221. # some platforms.
  2222. # Always define AMTAR for backward compatibility.
  2223. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2224. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2225. # Check whether --with-cppunit-prefix was given.
  2226. if test "${with_cppunit_prefix+set}" = set; then
  2227. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2228. else
  2229. cppunit_config_prefix=""
  2230. fi
  2231. # Check whether --with-cppunit-exec-prefix was given.
  2232. if test "${with_cppunit_exec_prefix+set}" = set; then
  2233. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2234. else
  2235. cppunit_config_exec_prefix=""
  2236. fi
  2237. if test x$cppunit_config_exec_prefix != x ; then
  2238. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2239. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2240. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2241. fi
  2242. fi
  2243. if test x$cppunit_config_prefix != x ; then
  2244. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2245. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2246. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2247. fi
  2248. fi
  2249. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2250. set dummy cppunit-config; ac_word=$2
  2251. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2252. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2253. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2254. echo $ECHO_N "(cached) $ECHO_C" >&6
  2255. else
  2256. case $CPPUNIT_CONFIG in
  2257. [\\/]* | ?:[\\/]*)
  2258. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2259. ;;
  2260. *)
  2261. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2262. for as_dir in $PATH
  2263. do
  2264. IFS=$as_save_IFS
  2265. test -z "$as_dir" && as_dir=.
  2266. for ac_exec_ext in '' $ac_executable_extensions; do
  2267. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2268. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2269. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2270. break 2
  2271. fi
  2272. done
  2273. done
  2274. IFS=$as_save_IFS
  2275. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2276. ;;
  2277. esac
  2278. fi
  2279. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2280. if test -n "$CPPUNIT_CONFIG"; then
  2281. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2282. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2283. else
  2284. { echo "$as_me:$LINENO: result: no" >&5
  2285. echo "${ECHO_T}no" >&6; }
  2286. fi
  2287. cppunit_version_min=1.10.2
  2288. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2289. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2290. no_cppunit=""
  2291. if test "$CPPUNIT_CONFIG" = "no" ; then
  2292. { echo "$as_me:$LINENO: result: no" >&5
  2293. echo "${ECHO_T}no" >&6; }
  2294. no_cppunit=yes
  2295. else
  2296. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2297. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2298. cppunit_version=`$CPPUNIT_CONFIG --version`
  2299. cppunit_major_version=`echo $cppunit_version | \
  2300. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2301. cppunit_minor_version=`echo $cppunit_version | \
  2302. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2303. cppunit_micro_version=`echo $cppunit_version | \
  2304. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2305. cppunit_major_min=`echo $cppunit_version_min | \
  2306. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2307. if test "x${cppunit_major_min}" = "x" ; then
  2308. cppunit_major_min=0
  2309. fi
  2310. cppunit_minor_min=`echo $cppunit_version_min | \
  2311. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2312. if test "x${cppunit_minor_min}" = "x" ; then
  2313. cppunit_minor_min=0
  2314. fi
  2315. cppunit_micro_min=`echo $cppunit_version_min | \
  2316. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2317. if test "x${cppunit_micro_min}" = "x" ; then
  2318. cppunit_micro_min=0
  2319. fi
  2320. cppunit_version_proper=`expr \
  2321. $cppunit_major_version \> $cppunit_major_min \| \
  2322. $cppunit_major_version \= $cppunit_major_min \& \
  2323. $cppunit_minor_version \> $cppunit_minor_min \| \
  2324. $cppunit_major_version \= $cppunit_major_min \& \
  2325. $cppunit_minor_version \= $cppunit_minor_min \& \
  2326. $cppunit_micro_version \>= $cppunit_micro_min `
  2327. if test "$cppunit_version_proper" = "1" ; then
  2328. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2329. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2330. else
  2331. { echo "$as_me:$LINENO: result: no" >&5
  2332. echo "${ECHO_T}no" >&6; }
  2333. no_cppunit=yes
  2334. fi
  2335. fi
  2336. if test "x$no_cppunit" = x ; then
  2337. :
  2338. else
  2339. CPPUNIT_CFLAGS=""
  2340. CPPUNIT_LIBS=""
  2341. :
  2342. fi
  2343. ac_config_headers="$ac_config_headers config.h"
  2344. case "$target" in
  2345. *mingw*|*cygwin*)
  2346. WINSOCK_LIBS="-lws2_32 -lpthread"
  2347. ;;
  2348. esac
  2349. cat >>confdefs.h <<_ACEOF
  2350. #define TARGET "$target"
  2351. _ACEOF
  2352. # Set localedir
  2353. localedir=${datadir}/locale
  2354. # Checks for arguments.
  2355. # Check whether --with-gnutls was given.
  2356. if test "${with_gnutls+set}" = set; then
  2357. withval=$with_gnutls; with_gnutls=$withval
  2358. else
  2359. with_gnutls=yes
  2360. fi
  2361. # Check whether --with-openssl was given.
  2362. if test "${with_openssl+set}" = set; then
  2363. withval=$with_openssl; with_openssl=$withval
  2364. else
  2365. with_openssl=yes
  2366. fi
  2367. # Check whether --with-sqlite3 was given.
  2368. if test "${with_sqlite3+set}" = set; then
  2369. withval=$with_sqlite3; with_sqlite3=$withval
  2370. else
  2371. with_sqlite3=yes
  2372. fi
  2373. # Check whether --with-libxml2 was given.
  2374. if test "${with_libxml2+set}" = set; then
  2375. withval=$with_libxml2; with_libxml2=$withval
  2376. else
  2377. with_libxml2=yes
  2378. fi
  2379. # Check whether --with-libexpat was given.
  2380. if test "${with_libexpat+set}" = set; then
  2381. withval=$with_libexpat; with_libexpat=$withval
  2382. else
  2383. with_libexpat=yes
  2384. fi
  2385. # Check whether --with-libares was given.
  2386. if test "${with_libares+set}" = set; then
  2387. withval=$with_libares; with_libares=$withval
  2388. else
  2389. with_libares=yes
  2390. fi
  2391. # Check whether --with-libcares was given.
  2392. if test "${with_libcares+set}" = set; then
  2393. withval=$with_libcares; with_libcares=$withval
  2394. else
  2395. with_libcares=yes
  2396. fi
  2397. # Check whether --with-libz was given.
  2398. if test "${with_libz+set}" = set; then
  2399. withval=$with_libz; with_libz=$withval
  2400. else
  2401. with_libz=yes
  2402. fi
  2403. # Check whether --enable-bittorrent was given.
  2404. if test "${enable_bittorrent+set}" = set; then
  2405. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2406. else
  2407. enable_bittorrent=yes
  2408. fi
  2409. # Check whether --enable-metalink was given.
  2410. if test "${enable_metalink+set}" = set; then
  2411. enableval=$enable_metalink; enable_metalink=$enableval
  2412. else
  2413. enable_metalink=yes
  2414. fi
  2415. # Check whether --enable-epoll was given.
  2416. if test "${enable_epoll+set}" = set; then
  2417. enableval=$enable_epoll; enable_epoll=$enableval
  2418. else
  2419. enable_epoll=yes
  2420. fi
  2421. # Checks for programs.
  2422. ac_ext=cpp
  2423. ac_cpp='$CXXCPP $CPPFLAGS'
  2424. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2425. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2426. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2427. if test -z "$CXX"; then
  2428. if test -n "$CCC"; then
  2429. CXX=$CCC
  2430. else
  2431. if test -n "$ac_tool_prefix"; then
  2432. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2433. do
  2434. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2435. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2436. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2437. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2438. if test "${ac_cv_prog_CXX+set}" = set; then
  2439. echo $ECHO_N "(cached) $ECHO_C" >&6
  2440. else
  2441. if test -n "$CXX"; then
  2442. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2443. else
  2444. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2445. for as_dir in $PATH
  2446. do
  2447. IFS=$as_save_IFS
  2448. test -z "$as_dir" && as_dir=.
  2449. for ac_exec_ext in '' $ac_executable_extensions; do
  2450. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2451. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2452. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2453. break 2
  2454. fi
  2455. done
  2456. done
  2457. IFS=$as_save_IFS
  2458. fi
  2459. fi
  2460. CXX=$ac_cv_prog_CXX
  2461. if test -n "$CXX"; then
  2462. { echo "$as_me:$LINENO: result: $CXX" >&5
  2463. echo "${ECHO_T}$CXX" >&6; }
  2464. else
  2465. { echo "$as_me:$LINENO: result: no" >&5
  2466. echo "${ECHO_T}no" >&6; }
  2467. fi
  2468. test -n "$CXX" && break
  2469. done
  2470. fi
  2471. if test -z "$CXX"; then
  2472. ac_ct_CXX=$CXX
  2473. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2474. do
  2475. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2476. set dummy $ac_prog; ac_word=$2
  2477. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2478. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2479. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2480. echo $ECHO_N "(cached) $ECHO_C" >&6
  2481. else
  2482. if test -n "$ac_ct_CXX"; then
  2483. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2484. else
  2485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2486. for as_dir in $PATH
  2487. do
  2488. IFS=$as_save_IFS
  2489. test -z "$as_dir" && as_dir=.
  2490. for ac_exec_ext in '' $ac_executable_extensions; do
  2491. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2492. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2493. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2494. break 2
  2495. fi
  2496. done
  2497. done
  2498. IFS=$as_save_IFS
  2499. fi
  2500. fi
  2501. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2502. if test -n "$ac_ct_CXX"; then
  2503. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2504. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2505. else
  2506. { echo "$as_me:$LINENO: result: no" >&5
  2507. echo "${ECHO_T}no" >&6; }
  2508. fi
  2509. test -n "$ac_ct_CXX" && break
  2510. done
  2511. if test "x$ac_ct_CXX" = x; then
  2512. CXX="g++"
  2513. else
  2514. case $cross_compiling:$ac_tool_warned in
  2515. yes:)
  2516. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2517. whose name does not start with the host triplet. If you think this
  2518. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2519. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2520. whose name does not start with the host triplet. If you think this
  2521. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2522. ac_tool_warned=yes ;;
  2523. esac
  2524. CXX=$ac_ct_CXX
  2525. fi
  2526. fi
  2527. fi
  2528. fi
  2529. # Provide some information about the compiler.
  2530. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2531. ac_compiler=`set X $ac_compile; echo $2`
  2532. { (ac_try="$ac_compiler --version >&5"
  2533. case "(($ac_try" in
  2534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2535. *) ac_try_echo=$ac_try;;
  2536. esac
  2537. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2538. (eval "$ac_compiler --version >&5") 2>&5
  2539. ac_status=$?
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); }
  2542. { (ac_try="$ac_compiler -v >&5"
  2543. case "(($ac_try" in
  2544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2545. *) ac_try_echo=$ac_try;;
  2546. esac
  2547. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2548. (eval "$ac_compiler -v >&5") 2>&5
  2549. ac_status=$?
  2550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2551. (exit $ac_status); }
  2552. { (ac_try="$ac_compiler -V >&5"
  2553. case "(($ac_try" in
  2554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2555. *) ac_try_echo=$ac_try;;
  2556. esac
  2557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2558. (eval "$ac_compiler -V >&5") 2>&5
  2559. ac_status=$?
  2560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2561. (exit $ac_status); }
  2562. cat >conftest.$ac_ext <<_ACEOF
  2563. /* confdefs.h. */
  2564. _ACEOF
  2565. cat confdefs.h >>conftest.$ac_ext
  2566. cat >>conftest.$ac_ext <<_ACEOF
  2567. /* end confdefs.h. */
  2568. int
  2569. main ()
  2570. {
  2571. ;
  2572. return 0;
  2573. }
  2574. _ACEOF
  2575. ac_clean_files_save=$ac_clean_files
  2576. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2577. # Try to create an executable without -o first, disregard a.out.
  2578. # It will help us diagnose broken compilers, and finding out an intuition
  2579. # of exeext.
  2580. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2581. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2582. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2583. #
  2584. # List of possible output files, starting from the most likely.
  2585. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2586. # only as a last resort. b.out is created by i960 compilers.
  2587. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2588. #
  2589. # The IRIX 6 linker writes into existing files which may not be
  2590. # executable, retaining their permissions. Remove them first so a
  2591. # subsequent execution test works.
  2592. ac_rmfiles=
  2593. for ac_file in $ac_files
  2594. do
  2595. case $ac_file in
  2596. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2597. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2598. esac
  2599. done
  2600. rm -f $ac_rmfiles
  2601. if { (ac_try="$ac_link_default"
  2602. case "(($ac_try" in
  2603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2604. *) ac_try_echo=$ac_try;;
  2605. esac
  2606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2607. (eval "$ac_link_default") 2>&5
  2608. ac_status=$?
  2609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2610. (exit $ac_status); }; then
  2611. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2612. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2613. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2614. # so that the user can short-circuit this test for compilers unknown to
  2615. # Autoconf.
  2616. for ac_file in $ac_files ''
  2617. do
  2618. test -f "$ac_file" || continue
  2619. case $ac_file in
  2620. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2621. ;;
  2622. [ab].out )
  2623. # We found the default executable, but exeext='' is most
  2624. # certainly right.
  2625. break;;
  2626. *.* )
  2627. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2628. then :; else
  2629. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2630. fi
  2631. # We set ac_cv_exeext here because the later test for it is not
  2632. # safe: cross compilers may not add the suffix if given an `-o'
  2633. # argument, so we may need to know it at that point already.
  2634. # Even if this section looks crufty: it has the advantage of
  2635. # actually working.
  2636. break;;
  2637. * )
  2638. break;;
  2639. esac
  2640. done
  2641. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2642. else
  2643. ac_file=''
  2644. fi
  2645. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2646. echo "${ECHO_T}$ac_file" >&6; }
  2647. if test -z "$ac_file"; then
  2648. echo "$as_me: failed program was:" >&5
  2649. sed 's/^/| /' conftest.$ac_ext >&5
  2650. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2651. See \`config.log' for more details." >&5
  2652. echo "$as_me: error: C++ compiler cannot create executables
  2653. See \`config.log' for more details." >&2;}
  2654. { (exit 77); exit 77; }; }
  2655. fi
  2656. ac_exeext=$ac_cv_exeext
  2657. # Check that the compiler produces executables we can run. If not, either
  2658. # the compiler is broken, or we cross compile.
  2659. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2660. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2661. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2662. # If not cross compiling, check that we can run a simple program.
  2663. if test "$cross_compiling" != yes; then
  2664. if { ac_try='./$ac_file'
  2665. { (case "(($ac_try" in
  2666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2667. *) ac_try_echo=$ac_try;;
  2668. esac
  2669. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2670. (eval "$ac_try") 2>&5
  2671. ac_status=$?
  2672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2673. (exit $ac_status); }; }; then
  2674. cross_compiling=no
  2675. else
  2676. if test "$cross_compiling" = maybe; then
  2677. cross_compiling=yes
  2678. else
  2679. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2680. If you meant to cross compile, use \`--host'.
  2681. See \`config.log' for more details." >&5
  2682. echo "$as_me: error: cannot run C++ compiled programs.
  2683. If you meant to cross compile, use \`--host'.
  2684. See \`config.log' for more details." >&2;}
  2685. { (exit 1); exit 1; }; }
  2686. fi
  2687. fi
  2688. fi
  2689. { echo "$as_me:$LINENO: result: yes" >&5
  2690. echo "${ECHO_T}yes" >&6; }
  2691. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2692. ac_clean_files=$ac_clean_files_save
  2693. # Check that the compiler produces executables we can run. If not, either
  2694. # the compiler is broken, or we cross compile.
  2695. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2696. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2697. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2698. echo "${ECHO_T}$cross_compiling" >&6; }
  2699. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2700. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2701. if { (ac_try="$ac_link"
  2702. case "(($ac_try" in
  2703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2704. *) ac_try_echo=$ac_try;;
  2705. esac
  2706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2707. (eval "$ac_link") 2>&5
  2708. ac_status=$?
  2709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2710. (exit $ac_status); }; then
  2711. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2712. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2713. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2714. # `rm'.
  2715. for ac_file in conftest.exe conftest conftest.*; do
  2716. test -f "$ac_file" || continue
  2717. case $ac_file in
  2718. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2719. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2720. break;;
  2721. * ) break;;
  2722. esac
  2723. done
  2724. else
  2725. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2726. See \`config.log' for more details." >&5
  2727. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2728. See \`config.log' for more details." >&2;}
  2729. { (exit 1); exit 1; }; }
  2730. fi
  2731. rm -f conftest$ac_cv_exeext
  2732. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2733. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2734. rm -f conftest.$ac_ext
  2735. EXEEXT=$ac_cv_exeext
  2736. ac_exeext=$EXEEXT
  2737. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2738. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2739. if test "${ac_cv_objext+set}" = set; then
  2740. echo $ECHO_N "(cached) $ECHO_C" >&6
  2741. else
  2742. cat >conftest.$ac_ext <<_ACEOF
  2743. /* confdefs.h. */
  2744. _ACEOF
  2745. cat confdefs.h >>conftest.$ac_ext
  2746. cat >>conftest.$ac_ext <<_ACEOF
  2747. /* end confdefs.h. */
  2748. int
  2749. main ()
  2750. {
  2751. ;
  2752. return 0;
  2753. }
  2754. _ACEOF
  2755. rm -f conftest.o conftest.obj
  2756. if { (ac_try="$ac_compile"
  2757. case "(($ac_try" in
  2758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2759. *) ac_try_echo=$ac_try;;
  2760. esac
  2761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2762. (eval "$ac_compile") 2>&5
  2763. ac_status=$?
  2764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2765. (exit $ac_status); }; then
  2766. for ac_file in conftest.o conftest.obj conftest.*; do
  2767. test -f "$ac_file" || continue;
  2768. case $ac_file in
  2769. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2770. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2771. break;;
  2772. esac
  2773. done
  2774. else
  2775. echo "$as_me: failed program was:" >&5
  2776. sed 's/^/| /' conftest.$ac_ext >&5
  2777. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2778. See \`config.log' for more details." >&5
  2779. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2780. See \`config.log' for more details." >&2;}
  2781. { (exit 1); exit 1; }; }
  2782. fi
  2783. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2784. fi
  2785. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2786. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2787. OBJEXT=$ac_cv_objext
  2788. ac_objext=$OBJEXT
  2789. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2790. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2791. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2792. echo $ECHO_N "(cached) $ECHO_C" >&6
  2793. else
  2794. cat >conftest.$ac_ext <<_ACEOF
  2795. /* confdefs.h. */
  2796. _ACEOF
  2797. cat confdefs.h >>conftest.$ac_ext
  2798. cat >>conftest.$ac_ext <<_ACEOF
  2799. /* end confdefs.h. */
  2800. int
  2801. main ()
  2802. {
  2803. #ifndef __GNUC__
  2804. choke me
  2805. #endif
  2806. ;
  2807. return 0;
  2808. }
  2809. _ACEOF
  2810. rm -f conftest.$ac_objext
  2811. if { (ac_try="$ac_compile"
  2812. case "(($ac_try" in
  2813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2814. *) ac_try_echo=$ac_try;;
  2815. esac
  2816. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2817. (eval "$ac_compile") 2>conftest.er1
  2818. ac_status=$?
  2819. grep -v '^ *+' conftest.er1 >conftest.err
  2820. rm -f conftest.er1
  2821. cat conftest.err >&5
  2822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2823. (exit $ac_status); } && {
  2824. test -z "$ac_cxx_werror_flag" ||
  2825. test ! -s conftest.err
  2826. } && test -s conftest.$ac_objext; then
  2827. ac_compiler_gnu=yes
  2828. else
  2829. echo "$as_me: failed program was:" >&5
  2830. sed 's/^/| /' conftest.$ac_ext >&5
  2831. ac_compiler_gnu=no
  2832. fi
  2833. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2834. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2835. fi
  2836. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2837. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2838. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2839. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2840. ac_save_CXXFLAGS=$CXXFLAGS
  2841. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2842. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2843. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2844. echo $ECHO_N "(cached) $ECHO_C" >&6
  2845. else
  2846. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2847. ac_cxx_werror_flag=yes
  2848. ac_cv_prog_cxx_g=no
  2849. CXXFLAGS="-g"
  2850. cat >conftest.$ac_ext <<_ACEOF
  2851. /* confdefs.h. */
  2852. _ACEOF
  2853. cat confdefs.h >>conftest.$ac_ext
  2854. cat >>conftest.$ac_ext <<_ACEOF
  2855. /* end confdefs.h. */
  2856. int
  2857. main ()
  2858. {
  2859. ;
  2860. return 0;
  2861. }
  2862. _ACEOF
  2863. rm -f conftest.$ac_objext
  2864. if { (ac_try="$ac_compile"
  2865. case "(($ac_try" in
  2866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2867. *) ac_try_echo=$ac_try;;
  2868. esac
  2869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2870. (eval "$ac_compile") 2>conftest.er1
  2871. ac_status=$?
  2872. grep -v '^ *+' conftest.er1 >conftest.err
  2873. rm -f conftest.er1
  2874. cat conftest.err >&5
  2875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2876. (exit $ac_status); } && {
  2877. test -z "$ac_cxx_werror_flag" ||
  2878. test ! -s conftest.err
  2879. } && test -s conftest.$ac_objext; then
  2880. ac_cv_prog_cxx_g=yes
  2881. else
  2882. echo "$as_me: failed program was:" >&5
  2883. sed 's/^/| /' conftest.$ac_ext >&5
  2884. CXXFLAGS=""
  2885. cat >conftest.$ac_ext <<_ACEOF
  2886. /* confdefs.h. */
  2887. _ACEOF
  2888. cat confdefs.h >>conftest.$ac_ext
  2889. cat >>conftest.$ac_ext <<_ACEOF
  2890. /* end confdefs.h. */
  2891. int
  2892. main ()
  2893. {
  2894. ;
  2895. return 0;
  2896. }
  2897. _ACEOF
  2898. rm -f conftest.$ac_objext
  2899. if { (ac_try="$ac_compile"
  2900. case "(($ac_try" in
  2901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2902. *) ac_try_echo=$ac_try;;
  2903. esac
  2904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2905. (eval "$ac_compile") 2>conftest.er1
  2906. ac_status=$?
  2907. grep -v '^ *+' conftest.er1 >conftest.err
  2908. rm -f conftest.er1
  2909. cat conftest.err >&5
  2910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2911. (exit $ac_status); } && {
  2912. test -z "$ac_cxx_werror_flag" ||
  2913. test ! -s conftest.err
  2914. } && test -s conftest.$ac_objext; then
  2915. :
  2916. else
  2917. echo "$as_me: failed program was:" >&5
  2918. sed 's/^/| /' conftest.$ac_ext >&5
  2919. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2920. CXXFLAGS="-g"
  2921. cat >conftest.$ac_ext <<_ACEOF
  2922. /* confdefs.h. */
  2923. _ACEOF
  2924. cat confdefs.h >>conftest.$ac_ext
  2925. cat >>conftest.$ac_ext <<_ACEOF
  2926. /* end confdefs.h. */
  2927. int
  2928. main ()
  2929. {
  2930. ;
  2931. return 0;
  2932. }
  2933. _ACEOF
  2934. rm -f conftest.$ac_objext
  2935. if { (ac_try="$ac_compile"
  2936. case "(($ac_try" in
  2937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2938. *) ac_try_echo=$ac_try;;
  2939. esac
  2940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2941. (eval "$ac_compile") 2>conftest.er1
  2942. ac_status=$?
  2943. grep -v '^ *+' conftest.er1 >conftest.err
  2944. rm -f conftest.er1
  2945. cat conftest.err >&5
  2946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2947. (exit $ac_status); } && {
  2948. test -z "$ac_cxx_werror_flag" ||
  2949. test ! -s conftest.err
  2950. } && test -s conftest.$ac_objext; then
  2951. ac_cv_prog_cxx_g=yes
  2952. else
  2953. echo "$as_me: failed program was:" >&5
  2954. sed 's/^/| /' conftest.$ac_ext >&5
  2955. fi
  2956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2957. fi
  2958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2959. fi
  2960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2961. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2962. fi
  2963. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2964. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2965. if test "$ac_test_CXXFLAGS" = set; then
  2966. CXXFLAGS=$ac_save_CXXFLAGS
  2967. elif test $ac_cv_prog_cxx_g = yes; then
  2968. if test "$GXX" = yes; then
  2969. CXXFLAGS="-g -O2"
  2970. else
  2971. CXXFLAGS="-g"
  2972. fi
  2973. else
  2974. if test "$GXX" = yes; then
  2975. CXXFLAGS="-O2"
  2976. else
  2977. CXXFLAGS=
  2978. fi
  2979. fi
  2980. ac_ext=c
  2981. ac_cpp='$CPP $CPPFLAGS'
  2982. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2983. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2984. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2985. DEPDIR="${am__leading_dot}deps"
  2986. ac_config_commands="$ac_config_commands depfiles"
  2987. am_make=${MAKE-make}
  2988. cat > confinc << 'END'
  2989. am__doit:
  2990. @echo done
  2991. .PHONY: am__doit
  2992. END
  2993. # If we don't find an include directive, just comment out the code.
  2994. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2995. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2996. am__include="#"
  2997. am__quote=
  2998. _am_result=none
  2999. # First try GNU make style include.
  3000. echo "include confinc" > confmf
  3001. # We grep out `Entering directory' and `Leaving directory'
  3002. # messages which can occur if `w' ends up in MAKEFLAGS.
  3003. # In particular we don't look at `^make:' because GNU make might
  3004. # be invoked under some other name (usually "gmake"), in which
  3005. # case it prints its new name instead of `make'.
  3006. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3007. am__include=include
  3008. am__quote=
  3009. _am_result=GNU
  3010. fi
  3011. # Now try BSD make style include.
  3012. if test "$am__include" = "#"; then
  3013. echo '.include "confinc"' > confmf
  3014. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3015. am__include=.include
  3016. am__quote="\""
  3017. _am_result=BSD
  3018. fi
  3019. fi
  3020. { echo "$as_me:$LINENO: result: $_am_result" >&5
  3021. echo "${ECHO_T}$_am_result" >&6; }
  3022. rm -f confinc confmf
  3023. # Check whether --enable-dependency-tracking was given.
  3024. if test "${enable_dependency_tracking+set}" = set; then
  3025. enableval=$enable_dependency_tracking;
  3026. fi
  3027. if test "x$enable_dependency_tracking" != xno; then
  3028. am_depcomp="$ac_aux_dir/depcomp"
  3029. AMDEPBACKSLASH='\'
  3030. fi
  3031. if test "x$enable_dependency_tracking" != xno; then
  3032. AMDEP_TRUE=
  3033. AMDEP_FALSE='#'
  3034. else
  3035. AMDEP_TRUE='#'
  3036. AMDEP_FALSE=
  3037. fi
  3038. depcc="$CXX" am_compiler_list=
  3039. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3040. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3041. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3042. echo $ECHO_N "(cached) $ECHO_C" >&6
  3043. else
  3044. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3045. # We make a subdir and do the tests there. Otherwise we can end up
  3046. # making bogus files that we don't know about and never remove. For
  3047. # instance it was reported that on HP-UX the gcc test will end up
  3048. # making a dummy file named `D' -- because `-MD' means `put the output
  3049. # in D'.
  3050. mkdir conftest.dir
  3051. # Copy depcomp to subdir because otherwise we won't find it if we're
  3052. # using a relative directory.
  3053. cp "$am_depcomp" conftest.dir
  3054. cd conftest.dir
  3055. # We will build objects and dependencies in a subdirectory because
  3056. # it helps to detect inapplicable dependency modes. For instance
  3057. # both Tru64's cc and ICC support -MD to output dependencies as a
  3058. # side effect of compilation, but ICC will put the dependencies in
  3059. # the current directory while Tru64 will put them in the object
  3060. # directory.
  3061. mkdir sub
  3062. am_cv_CXX_dependencies_compiler_type=none
  3063. if test "$am_compiler_list" = ""; then
  3064. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3065. fi
  3066. for depmode in $am_compiler_list; do
  3067. # Setup a source with many dependencies, because some compilers
  3068. # like to wrap large dependency lists on column 80 (with \), and
  3069. # we should not choose a depcomp mode which is confused by this.
  3070. #
  3071. # We need to recreate these files for each test, as the compiler may
  3072. # overwrite some of them when testing with obscure command lines.
  3073. # This happens at least with the AIX C compiler.
  3074. : > sub/conftest.c
  3075. for i in 1 2 3 4 5 6; do
  3076. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3077. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3078. # Solaris 8's {/usr,}/bin/sh.
  3079. touch sub/conftst$i.h
  3080. done
  3081. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3082. case $depmode in
  3083. nosideeffect)
  3084. # after this tag, mechanisms are not by side-effect, so they'll
  3085. # only be used when explicitly requested
  3086. if test "x$enable_dependency_tracking" = xyes; then
  3087. continue
  3088. else
  3089. break
  3090. fi
  3091. ;;
  3092. none) break ;;
  3093. esac
  3094. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3095. # mode. It turns out that the SunPro C++ compiler does not properly
  3096. # handle `-M -o', and we need to detect this.
  3097. if depmode=$depmode \
  3098. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3099. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3100. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3101. >/dev/null 2>conftest.err &&
  3102. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3103. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3104. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3105. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3106. # icc doesn't choke on unknown options, it will just issue warnings
  3107. # or remarks (even with -Werror). So we grep stderr for any message
  3108. # that says an option was ignored or not supported.
  3109. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3110. # icc: Command line warning: ignoring option '-M'; no argument required
  3111. # The diagnosis changed in icc 8.0:
  3112. # icc: Command line remark: option '-MP' not supported
  3113. if (grep 'ignoring option' conftest.err ||
  3114. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3115. am_cv_CXX_dependencies_compiler_type=$depmode
  3116. break
  3117. fi
  3118. fi
  3119. done
  3120. cd ..
  3121. rm -rf conftest.dir
  3122. else
  3123. am_cv_CXX_dependencies_compiler_type=none
  3124. fi
  3125. fi
  3126. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3127. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3128. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3129. if
  3130. test "x$enable_dependency_tracking" != xno \
  3131. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3132. am__fastdepCXX_TRUE=
  3133. am__fastdepCXX_FALSE='#'
  3134. else
  3135. am__fastdepCXX_TRUE='#'
  3136. am__fastdepCXX_FALSE=
  3137. fi
  3138. ac_ext=c
  3139. ac_cpp='$CPP $CPPFLAGS'
  3140. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3141. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3142. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3143. if test -n "$ac_tool_prefix"; then
  3144. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3145. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3146. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3147. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3148. if test "${ac_cv_prog_CC+set}" = set; then
  3149. echo $ECHO_N "(cached) $ECHO_C" >&6
  3150. else
  3151. if test -n "$CC"; then
  3152. ac_cv_prog_CC="$CC" # Let the user override the test.
  3153. else
  3154. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3155. for as_dir in $PATH
  3156. do
  3157. IFS=$as_save_IFS
  3158. test -z "$as_dir" && as_dir=.
  3159. for ac_exec_ext in '' $ac_executable_extensions; do
  3160. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3161. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3162. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3163. break 2
  3164. fi
  3165. done
  3166. done
  3167. IFS=$as_save_IFS
  3168. fi
  3169. fi
  3170. CC=$ac_cv_prog_CC
  3171. if test -n "$CC"; then
  3172. { echo "$as_me:$LINENO: result: $CC" >&5
  3173. echo "${ECHO_T}$CC" >&6; }
  3174. else
  3175. { echo "$as_me:$LINENO: result: no" >&5
  3176. echo "${ECHO_T}no" >&6; }
  3177. fi
  3178. fi
  3179. if test -z "$ac_cv_prog_CC"; then
  3180. ac_ct_CC=$CC
  3181. # Extract the first word of "gcc", so it can be a program name with args.
  3182. set dummy gcc; ac_word=$2
  3183. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3184. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3185. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3186. echo $ECHO_N "(cached) $ECHO_C" >&6
  3187. else
  3188. if test -n "$ac_ct_CC"; then
  3189. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3190. else
  3191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3192. for as_dir in $PATH
  3193. do
  3194. IFS=$as_save_IFS
  3195. test -z "$as_dir" && as_dir=.
  3196. for ac_exec_ext in '' $ac_executable_extensions; do
  3197. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3198. ac_cv_prog_ac_ct_CC="gcc"
  3199. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3200. break 2
  3201. fi
  3202. done
  3203. done
  3204. IFS=$as_save_IFS
  3205. fi
  3206. fi
  3207. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3208. if test -n "$ac_ct_CC"; then
  3209. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3210. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3211. else
  3212. { echo "$as_me:$LINENO: result: no" >&5
  3213. echo "${ECHO_T}no" >&6; }
  3214. fi
  3215. if test "x$ac_ct_CC" = x; then
  3216. CC=""
  3217. else
  3218. case $cross_compiling:$ac_tool_warned in
  3219. yes:)
  3220. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3221. whose name does not start with the host triplet. If you think this
  3222. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3223. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3224. whose name does not start with the host triplet. If you think this
  3225. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3226. ac_tool_warned=yes ;;
  3227. esac
  3228. CC=$ac_ct_CC
  3229. fi
  3230. else
  3231. CC="$ac_cv_prog_CC"
  3232. fi
  3233. if test -z "$CC"; then
  3234. if test -n "$ac_tool_prefix"; then
  3235. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3236. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3237. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3238. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3239. if test "${ac_cv_prog_CC+set}" = set; then
  3240. echo $ECHO_N "(cached) $ECHO_C" >&6
  3241. else
  3242. if test -n "$CC"; then
  3243. ac_cv_prog_CC="$CC" # Let the user override the test.
  3244. else
  3245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3246. for as_dir in $PATH
  3247. do
  3248. IFS=$as_save_IFS
  3249. test -z "$as_dir" && as_dir=.
  3250. for ac_exec_ext in '' $ac_executable_extensions; do
  3251. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3252. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3253. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3254. break 2
  3255. fi
  3256. done
  3257. done
  3258. IFS=$as_save_IFS
  3259. fi
  3260. fi
  3261. CC=$ac_cv_prog_CC
  3262. if test -n "$CC"; then
  3263. { echo "$as_me:$LINENO: result: $CC" >&5
  3264. echo "${ECHO_T}$CC" >&6; }
  3265. else
  3266. { echo "$as_me:$LINENO: result: no" >&5
  3267. echo "${ECHO_T}no" >&6; }
  3268. fi
  3269. fi
  3270. fi
  3271. if test -z "$CC"; then
  3272. # Extract the first word of "cc", so it can be a program name with args.
  3273. set dummy cc; ac_word=$2
  3274. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3275. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3276. if test "${ac_cv_prog_CC+set}" = set; then
  3277. echo $ECHO_N "(cached) $ECHO_C" >&6
  3278. else
  3279. if test -n "$CC"; then
  3280. ac_cv_prog_CC="$CC" # Let the user override the test.
  3281. else
  3282. ac_prog_rejected=no
  3283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3284. for as_dir in $PATH
  3285. do
  3286. IFS=$as_save_IFS
  3287. test -z "$as_dir" && as_dir=.
  3288. for ac_exec_ext in '' $ac_executable_extensions; do
  3289. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3290. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3291. ac_prog_rejected=yes
  3292. continue
  3293. fi
  3294. ac_cv_prog_CC="cc"
  3295. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3296. break 2
  3297. fi
  3298. done
  3299. done
  3300. IFS=$as_save_IFS
  3301. if test $ac_prog_rejected = yes; then
  3302. # We found a bogon in the path, so make sure we never use it.
  3303. set dummy $ac_cv_prog_CC
  3304. shift
  3305. if test $# != 0; then
  3306. # We chose a different compiler from the bogus one.
  3307. # However, it has the same basename, so the bogon will be chosen
  3308. # first if we set CC to just the basename; use the full file name.
  3309. shift
  3310. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3311. fi
  3312. fi
  3313. fi
  3314. fi
  3315. CC=$ac_cv_prog_CC
  3316. if test -n "$CC"; then
  3317. { echo "$as_me:$LINENO: result: $CC" >&5
  3318. echo "${ECHO_T}$CC" >&6; }
  3319. else
  3320. { echo "$as_me:$LINENO: result: no" >&5
  3321. echo "${ECHO_T}no" >&6; }
  3322. fi
  3323. fi
  3324. if test -z "$CC"; then
  3325. if test -n "$ac_tool_prefix"; then
  3326. for ac_prog in cl.exe
  3327. do
  3328. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3329. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3330. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3331. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3332. if test "${ac_cv_prog_CC+set}" = set; then
  3333. echo $ECHO_N "(cached) $ECHO_C" >&6
  3334. else
  3335. if test -n "$CC"; then
  3336. ac_cv_prog_CC="$CC" # Let the user override the test.
  3337. else
  3338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3339. for as_dir in $PATH
  3340. do
  3341. IFS=$as_save_IFS
  3342. test -z "$as_dir" && as_dir=.
  3343. for ac_exec_ext in '' $ac_executable_extensions; do
  3344. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3345. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3346. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3347. break 2
  3348. fi
  3349. done
  3350. done
  3351. IFS=$as_save_IFS
  3352. fi
  3353. fi
  3354. CC=$ac_cv_prog_CC
  3355. if test -n "$CC"; then
  3356. { echo "$as_me:$LINENO: result: $CC" >&5
  3357. echo "${ECHO_T}$CC" >&6; }
  3358. else
  3359. { echo "$as_me:$LINENO: result: no" >&5
  3360. echo "${ECHO_T}no" >&6; }
  3361. fi
  3362. test -n "$CC" && break
  3363. done
  3364. fi
  3365. if test -z "$CC"; then
  3366. ac_ct_CC=$CC
  3367. for ac_prog in cl.exe
  3368. do
  3369. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3370. set dummy $ac_prog; ac_word=$2
  3371. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3372. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3373. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3374. echo $ECHO_N "(cached) $ECHO_C" >&6
  3375. else
  3376. if test -n "$ac_ct_CC"; then
  3377. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3378. else
  3379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3380. for as_dir in $PATH
  3381. do
  3382. IFS=$as_save_IFS
  3383. test -z "$as_dir" && as_dir=.
  3384. for ac_exec_ext in '' $ac_executable_extensions; do
  3385. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3386. ac_cv_prog_ac_ct_CC="$ac_prog"
  3387. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3388. break 2
  3389. fi
  3390. done
  3391. done
  3392. IFS=$as_save_IFS
  3393. fi
  3394. fi
  3395. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3396. if test -n "$ac_ct_CC"; then
  3397. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3398. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3399. else
  3400. { echo "$as_me:$LINENO: result: no" >&5
  3401. echo "${ECHO_T}no" >&6; }
  3402. fi
  3403. test -n "$ac_ct_CC" && break
  3404. done
  3405. if test "x$ac_ct_CC" = x; then
  3406. CC=""
  3407. else
  3408. case $cross_compiling:$ac_tool_warned in
  3409. yes:)
  3410. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3411. whose name does not start with the host triplet. If you think this
  3412. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3413. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3414. whose name does not start with the host triplet. If you think this
  3415. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3416. ac_tool_warned=yes ;;
  3417. esac
  3418. CC=$ac_ct_CC
  3419. fi
  3420. fi
  3421. fi
  3422. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3423. See \`config.log' for more details." >&5
  3424. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3425. See \`config.log' for more details." >&2;}
  3426. { (exit 1); exit 1; }; }
  3427. # Provide some information about the compiler.
  3428. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3429. ac_compiler=`set X $ac_compile; echo $2`
  3430. { (ac_try="$ac_compiler --version >&5"
  3431. case "(($ac_try" in
  3432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3433. *) ac_try_echo=$ac_try;;
  3434. esac
  3435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3436. (eval "$ac_compiler --version >&5") 2>&5
  3437. ac_status=$?
  3438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3439. (exit $ac_status); }
  3440. { (ac_try="$ac_compiler -v >&5"
  3441. case "(($ac_try" in
  3442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3443. *) ac_try_echo=$ac_try;;
  3444. esac
  3445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3446. (eval "$ac_compiler -v >&5") 2>&5
  3447. ac_status=$?
  3448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3449. (exit $ac_status); }
  3450. { (ac_try="$ac_compiler -V >&5"
  3451. case "(($ac_try" in
  3452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3453. *) ac_try_echo=$ac_try;;
  3454. esac
  3455. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3456. (eval "$ac_compiler -V >&5") 2>&5
  3457. ac_status=$?
  3458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3459. (exit $ac_status); }
  3460. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3461. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3462. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3463. echo $ECHO_N "(cached) $ECHO_C" >&6
  3464. else
  3465. cat >conftest.$ac_ext <<_ACEOF
  3466. /* confdefs.h. */
  3467. _ACEOF
  3468. cat confdefs.h >>conftest.$ac_ext
  3469. cat >>conftest.$ac_ext <<_ACEOF
  3470. /* end confdefs.h. */
  3471. int
  3472. main ()
  3473. {
  3474. #ifndef __GNUC__
  3475. choke me
  3476. #endif
  3477. ;
  3478. return 0;
  3479. }
  3480. _ACEOF
  3481. rm -f conftest.$ac_objext
  3482. if { (ac_try="$ac_compile"
  3483. case "(($ac_try" in
  3484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3485. *) ac_try_echo=$ac_try;;
  3486. esac
  3487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3488. (eval "$ac_compile") 2>conftest.er1
  3489. ac_status=$?
  3490. grep -v '^ *+' conftest.er1 >conftest.err
  3491. rm -f conftest.er1
  3492. cat conftest.err >&5
  3493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3494. (exit $ac_status); } && {
  3495. test -z "$ac_c_werror_flag" ||
  3496. test ! -s conftest.err
  3497. } && test -s conftest.$ac_objext; then
  3498. ac_compiler_gnu=yes
  3499. else
  3500. echo "$as_me: failed program was:" >&5
  3501. sed 's/^/| /' conftest.$ac_ext >&5
  3502. ac_compiler_gnu=no
  3503. fi
  3504. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3505. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3506. fi
  3507. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3508. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3509. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3510. ac_test_CFLAGS=${CFLAGS+set}
  3511. ac_save_CFLAGS=$CFLAGS
  3512. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3513. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3514. if test "${ac_cv_prog_cc_g+set}" = set; then
  3515. echo $ECHO_N "(cached) $ECHO_C" >&6
  3516. else
  3517. ac_save_c_werror_flag=$ac_c_werror_flag
  3518. ac_c_werror_flag=yes
  3519. ac_cv_prog_cc_g=no
  3520. CFLAGS="-g"
  3521. cat >conftest.$ac_ext <<_ACEOF
  3522. /* confdefs.h. */
  3523. _ACEOF
  3524. cat confdefs.h >>conftest.$ac_ext
  3525. cat >>conftest.$ac_ext <<_ACEOF
  3526. /* end confdefs.h. */
  3527. int
  3528. main ()
  3529. {
  3530. ;
  3531. return 0;
  3532. }
  3533. _ACEOF
  3534. rm -f conftest.$ac_objext
  3535. if { (ac_try="$ac_compile"
  3536. case "(($ac_try" in
  3537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3538. *) ac_try_echo=$ac_try;;
  3539. esac
  3540. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3541. (eval "$ac_compile") 2>conftest.er1
  3542. ac_status=$?
  3543. grep -v '^ *+' conftest.er1 >conftest.err
  3544. rm -f conftest.er1
  3545. cat conftest.err >&5
  3546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3547. (exit $ac_status); } && {
  3548. test -z "$ac_c_werror_flag" ||
  3549. test ! -s conftest.err
  3550. } && test -s conftest.$ac_objext; then
  3551. ac_cv_prog_cc_g=yes
  3552. else
  3553. echo "$as_me: failed program was:" >&5
  3554. sed 's/^/| /' conftest.$ac_ext >&5
  3555. CFLAGS=""
  3556. cat >conftest.$ac_ext <<_ACEOF
  3557. /* confdefs.h. */
  3558. _ACEOF
  3559. cat confdefs.h >>conftest.$ac_ext
  3560. cat >>conftest.$ac_ext <<_ACEOF
  3561. /* end confdefs.h. */
  3562. int
  3563. main ()
  3564. {
  3565. ;
  3566. return 0;
  3567. }
  3568. _ACEOF
  3569. rm -f conftest.$ac_objext
  3570. if { (ac_try="$ac_compile"
  3571. case "(($ac_try" in
  3572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3573. *) ac_try_echo=$ac_try;;
  3574. esac
  3575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3576. (eval "$ac_compile") 2>conftest.er1
  3577. ac_status=$?
  3578. grep -v '^ *+' conftest.er1 >conftest.err
  3579. rm -f conftest.er1
  3580. cat conftest.err >&5
  3581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3582. (exit $ac_status); } && {
  3583. test -z "$ac_c_werror_flag" ||
  3584. test ! -s conftest.err
  3585. } && test -s conftest.$ac_objext; then
  3586. :
  3587. else
  3588. echo "$as_me: failed program was:" >&5
  3589. sed 's/^/| /' conftest.$ac_ext >&5
  3590. ac_c_werror_flag=$ac_save_c_werror_flag
  3591. CFLAGS="-g"
  3592. cat >conftest.$ac_ext <<_ACEOF
  3593. /* confdefs.h. */
  3594. _ACEOF
  3595. cat confdefs.h >>conftest.$ac_ext
  3596. cat >>conftest.$ac_ext <<_ACEOF
  3597. /* end confdefs.h. */
  3598. int
  3599. main ()
  3600. {
  3601. ;
  3602. return 0;
  3603. }
  3604. _ACEOF
  3605. rm -f conftest.$ac_objext
  3606. if { (ac_try="$ac_compile"
  3607. case "(($ac_try" in
  3608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3609. *) ac_try_echo=$ac_try;;
  3610. esac
  3611. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3612. (eval "$ac_compile") 2>conftest.er1
  3613. ac_status=$?
  3614. grep -v '^ *+' conftest.er1 >conftest.err
  3615. rm -f conftest.er1
  3616. cat conftest.err >&5
  3617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3618. (exit $ac_status); } && {
  3619. test -z "$ac_c_werror_flag" ||
  3620. test ! -s conftest.err
  3621. } && test -s conftest.$ac_objext; then
  3622. ac_cv_prog_cc_g=yes
  3623. else
  3624. echo "$as_me: failed program was:" >&5
  3625. sed 's/^/| /' conftest.$ac_ext >&5
  3626. fi
  3627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3628. fi
  3629. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3630. fi
  3631. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3632. ac_c_werror_flag=$ac_save_c_werror_flag
  3633. fi
  3634. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3635. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3636. if test "$ac_test_CFLAGS" = set; then
  3637. CFLAGS=$ac_save_CFLAGS
  3638. elif test $ac_cv_prog_cc_g = yes; then
  3639. if test "$GCC" = yes; then
  3640. CFLAGS="-g -O2"
  3641. else
  3642. CFLAGS="-g"
  3643. fi
  3644. else
  3645. if test "$GCC" = yes; then
  3646. CFLAGS="-O2"
  3647. else
  3648. CFLAGS=
  3649. fi
  3650. fi
  3651. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3652. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3653. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3654. echo $ECHO_N "(cached) $ECHO_C" >&6
  3655. else
  3656. ac_cv_prog_cc_c89=no
  3657. ac_save_CC=$CC
  3658. cat >conftest.$ac_ext <<_ACEOF
  3659. /* confdefs.h. */
  3660. _ACEOF
  3661. cat confdefs.h >>conftest.$ac_ext
  3662. cat >>conftest.$ac_ext <<_ACEOF
  3663. /* end confdefs.h. */
  3664. #include <stdarg.h>
  3665. #include <stdio.h>
  3666. #include <sys/types.h>
  3667. #include <sys/stat.h>
  3668. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3669. struct buf { int x; };
  3670. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3671. static char *e (p, i)
  3672. char **p;
  3673. int i;
  3674. {
  3675. return p[i];
  3676. }
  3677. static char *f (char * (*g) (char **, int), char **p, ...)
  3678. {
  3679. char *s;
  3680. va_list v;
  3681. va_start (v,p);
  3682. s = g (p, va_arg (v,int));
  3683. va_end (v);
  3684. return s;
  3685. }
  3686. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3687. function prototypes and stuff, but not '\xHH' hex character constants.
  3688. These don't provoke an error unfortunately, instead are silently treated
  3689. as 'x'. The following induces an error, until -std is added to get
  3690. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3691. array size at least. It's necessary to write '\x00'==0 to get something
  3692. that's true only with -std. */
  3693. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3694. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3695. inside strings and character constants. */
  3696. #define FOO(x) 'x'
  3697. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3698. int test (int i, double x);
  3699. struct s1 {int (*f) (int a);};
  3700. struct s2 {int (*f) (double a);};
  3701. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3702. int argc;
  3703. char **argv;
  3704. int
  3705. main ()
  3706. {
  3707. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3708. ;
  3709. return 0;
  3710. }
  3711. _ACEOF
  3712. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3713. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3714. do
  3715. CC="$ac_save_CC $ac_arg"
  3716. rm -f conftest.$ac_objext
  3717. if { (ac_try="$ac_compile"
  3718. case "(($ac_try" in
  3719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3720. *) ac_try_echo=$ac_try;;
  3721. esac
  3722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3723. (eval "$ac_compile") 2>conftest.er1
  3724. ac_status=$?
  3725. grep -v '^ *+' conftest.er1 >conftest.err
  3726. rm -f conftest.er1
  3727. cat conftest.err >&5
  3728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3729. (exit $ac_status); } && {
  3730. test -z "$ac_c_werror_flag" ||
  3731. test ! -s conftest.err
  3732. } && test -s conftest.$ac_objext; then
  3733. ac_cv_prog_cc_c89=$ac_arg
  3734. else
  3735. echo "$as_me: failed program was:" >&5
  3736. sed 's/^/| /' conftest.$ac_ext >&5
  3737. fi
  3738. rm -f core conftest.err conftest.$ac_objext
  3739. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3740. done
  3741. rm -f conftest.$ac_ext
  3742. CC=$ac_save_CC
  3743. fi
  3744. # AC_CACHE_VAL
  3745. case "x$ac_cv_prog_cc_c89" in
  3746. x)
  3747. { echo "$as_me:$LINENO: result: none needed" >&5
  3748. echo "${ECHO_T}none needed" >&6; } ;;
  3749. xno)
  3750. { echo "$as_me:$LINENO: result: unsupported" >&5
  3751. echo "${ECHO_T}unsupported" >&6; } ;;
  3752. *)
  3753. CC="$CC $ac_cv_prog_cc_c89"
  3754. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3755. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3756. esac
  3757. ac_ext=c
  3758. ac_cpp='$CPP $CPPFLAGS'
  3759. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3760. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3761. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3762. depcc="$CC" am_compiler_list=
  3763. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3764. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3765. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3766. echo $ECHO_N "(cached) $ECHO_C" >&6
  3767. else
  3768. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3769. # We make a subdir and do the tests there. Otherwise we can end up
  3770. # making bogus files that we don't know about and never remove. For
  3771. # instance it was reported that on HP-UX the gcc test will end up
  3772. # making a dummy file named `D' -- because `-MD' means `put the output
  3773. # in D'.
  3774. mkdir conftest.dir
  3775. # Copy depcomp to subdir because otherwise we won't find it if we're
  3776. # using a relative directory.
  3777. cp "$am_depcomp" conftest.dir
  3778. cd conftest.dir
  3779. # We will build objects and dependencies in a subdirectory because
  3780. # it helps to detect inapplicable dependency modes. For instance
  3781. # both Tru64's cc and ICC support -MD to output dependencies as a
  3782. # side effect of compilation, but ICC will put the dependencies in
  3783. # the current directory while Tru64 will put them in the object
  3784. # directory.
  3785. mkdir sub
  3786. am_cv_CC_dependencies_compiler_type=none
  3787. if test "$am_compiler_list" = ""; then
  3788. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3789. fi
  3790. for depmode in $am_compiler_list; do
  3791. # Setup a source with many dependencies, because some compilers
  3792. # like to wrap large dependency lists on column 80 (with \), and
  3793. # we should not choose a depcomp mode which is confused by this.
  3794. #
  3795. # We need to recreate these files for each test, as the compiler may
  3796. # overwrite some of them when testing with obscure command lines.
  3797. # This happens at least with the AIX C compiler.
  3798. : > sub/conftest.c
  3799. for i in 1 2 3 4 5 6; do
  3800. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3801. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3802. # Solaris 8's {/usr,}/bin/sh.
  3803. touch sub/conftst$i.h
  3804. done
  3805. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3806. case $depmode in
  3807. nosideeffect)
  3808. # after this tag, mechanisms are not by side-effect, so they'll
  3809. # only be used when explicitly requested
  3810. if test "x$enable_dependency_tracking" = xyes; then
  3811. continue
  3812. else
  3813. break
  3814. fi
  3815. ;;
  3816. none) break ;;
  3817. esac
  3818. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3819. # mode. It turns out that the SunPro C++ compiler does not properly
  3820. # handle `-M -o', and we need to detect this.
  3821. if depmode=$depmode \
  3822. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3823. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3824. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3825. >/dev/null 2>conftest.err &&
  3826. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3827. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3828. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3829. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3830. # icc doesn't choke on unknown options, it will just issue warnings
  3831. # or remarks (even with -Werror). So we grep stderr for any message
  3832. # that says an option was ignored or not supported.
  3833. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3834. # icc: Command line warning: ignoring option '-M'; no argument required
  3835. # The diagnosis changed in icc 8.0:
  3836. # icc: Command line remark: option '-MP' not supported
  3837. if (grep 'ignoring option' conftest.err ||
  3838. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3839. am_cv_CC_dependencies_compiler_type=$depmode
  3840. break
  3841. fi
  3842. fi
  3843. done
  3844. cd ..
  3845. rm -rf conftest.dir
  3846. else
  3847. am_cv_CC_dependencies_compiler_type=none
  3848. fi
  3849. fi
  3850. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3851. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3852. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3853. if
  3854. test "x$enable_dependency_tracking" != xno \
  3855. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3856. am__fastdepCC_TRUE=
  3857. am__fastdepCC_FALSE='#'
  3858. else
  3859. am__fastdepCC_TRUE='#'
  3860. am__fastdepCC_FALSE=
  3861. fi
  3862. # Find a good install program. We prefer a C program (faster),
  3863. # so one script is as good as another. But avoid the broken or
  3864. # incompatible versions:
  3865. # SysV /etc/install, /usr/sbin/install
  3866. # SunOS /usr/etc/install
  3867. # IRIX /sbin/install
  3868. # AIX /bin/install
  3869. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3870. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3871. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3872. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3873. # OS/2's system install, which has a completely different semantic
  3874. # ./install, which can be erroneously created by make from ./install.sh.
  3875. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3876. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3877. if test -z "$INSTALL"; then
  3878. if test "${ac_cv_path_install+set}" = set; then
  3879. echo $ECHO_N "(cached) $ECHO_C" >&6
  3880. else
  3881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3882. for as_dir in $PATH
  3883. do
  3884. IFS=$as_save_IFS
  3885. test -z "$as_dir" && as_dir=.
  3886. # Account for people who put trailing slashes in PATH elements.
  3887. case $as_dir/ in
  3888. ./ | .// | /cC/* | \
  3889. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3890. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3891. /usr/ucb/* ) ;;
  3892. *)
  3893. # OSF1 and SCO ODT 3.0 have their own names for install.
  3894. # Don't use installbsd from OSF since it installs stuff as root
  3895. # by default.
  3896. for ac_prog in ginstall scoinst install; do
  3897. for ac_exec_ext in '' $ac_executable_extensions; do
  3898. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3899. if test $ac_prog = install &&
  3900. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3901. # AIX install. It has an incompatible calling convention.
  3902. :
  3903. elif test $ac_prog = install &&
  3904. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3905. # program-specific install script used by HP pwplus--don't use.
  3906. :
  3907. else
  3908. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3909. break 3
  3910. fi
  3911. fi
  3912. done
  3913. done
  3914. ;;
  3915. esac
  3916. done
  3917. IFS=$as_save_IFS
  3918. fi
  3919. if test "${ac_cv_path_install+set}" = set; then
  3920. INSTALL=$ac_cv_path_install
  3921. else
  3922. # As a last resort, use the slow shell script. Don't cache a
  3923. # value for INSTALL within a source directory, because that will
  3924. # break other packages using the cache if that directory is
  3925. # removed, or if the value is a relative name.
  3926. INSTALL=$ac_install_sh
  3927. fi
  3928. fi
  3929. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3930. echo "${ECHO_T}$INSTALL" >&6; }
  3931. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3932. # It thinks the first close brace ends the variable substitution.
  3933. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3934. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3935. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3936. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  3937. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  3938. if test -z "$MKDIR_P"; then
  3939. if test "${ac_cv_path_mkdir+set}" = set; then
  3940. echo $ECHO_N "(cached) $ECHO_C" >&6
  3941. else
  3942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3943. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3944. do
  3945. IFS=$as_save_IFS
  3946. test -z "$as_dir" && as_dir=.
  3947. for ac_prog in mkdir gmkdir; do
  3948. for ac_exec_ext in '' $ac_executable_extensions; do
  3949. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3950. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3951. 'mkdir (GNU coreutils) '* | \
  3952. 'mkdir (coreutils) '* | \
  3953. 'mkdir (fileutils) '4.1*)
  3954. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3955. break 3;;
  3956. esac
  3957. done
  3958. done
  3959. done
  3960. IFS=$as_save_IFS
  3961. fi
  3962. if test "${ac_cv_path_mkdir+set}" = set; then
  3963. MKDIR_P="$ac_cv_path_mkdir -p"
  3964. else
  3965. # As a last resort, use the slow shell script. Don't cache a
  3966. # value for MKDIR_P within a source directory, because that will
  3967. # break other packages using the cache if that directory is
  3968. # removed, or if the value is a relative name.
  3969. test -d ./--version && rmdir ./--version
  3970. MKDIR_P="$ac_install_sh -d"
  3971. fi
  3972. fi
  3973. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  3974. echo "${ECHO_T}$MKDIR_P" >&6; }
  3975. if test -n "$ac_tool_prefix"; then
  3976. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3977. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3978. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3979. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3980. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3981. echo $ECHO_N "(cached) $ECHO_C" >&6
  3982. else
  3983. if test -n "$RANLIB"; then
  3984. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3985. else
  3986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3987. for as_dir in $PATH
  3988. do
  3989. IFS=$as_save_IFS
  3990. test -z "$as_dir" && as_dir=.
  3991. for ac_exec_ext in '' $ac_executable_extensions; do
  3992. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3993. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3994. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3995. break 2
  3996. fi
  3997. done
  3998. done
  3999. IFS=$as_save_IFS
  4000. fi
  4001. fi
  4002. RANLIB=$ac_cv_prog_RANLIB
  4003. if test -n "$RANLIB"; then
  4004. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  4005. echo "${ECHO_T}$RANLIB" >&6; }
  4006. else
  4007. { echo "$as_me:$LINENO: result: no" >&5
  4008. echo "${ECHO_T}no" >&6; }
  4009. fi
  4010. fi
  4011. if test -z "$ac_cv_prog_RANLIB"; then
  4012. ac_ct_RANLIB=$RANLIB
  4013. # Extract the first word of "ranlib", so it can be a program name with args.
  4014. set dummy ranlib; ac_word=$2
  4015. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4016. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4017. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4018. echo $ECHO_N "(cached) $ECHO_C" >&6
  4019. else
  4020. if test -n "$ac_ct_RANLIB"; then
  4021. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4022. else
  4023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4024. for as_dir in $PATH
  4025. do
  4026. IFS=$as_save_IFS
  4027. test -z "$as_dir" && as_dir=.
  4028. for ac_exec_ext in '' $ac_executable_extensions; do
  4029. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4030. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4031. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4032. break 2
  4033. fi
  4034. done
  4035. done
  4036. IFS=$as_save_IFS
  4037. fi
  4038. fi
  4039. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4040. if test -n "$ac_ct_RANLIB"; then
  4041. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4042. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4043. else
  4044. { echo "$as_me:$LINENO: result: no" >&5
  4045. echo "${ECHO_T}no" >&6; }
  4046. fi
  4047. if test "x$ac_ct_RANLIB" = x; then
  4048. RANLIB=":"
  4049. else
  4050. case $cross_compiling:$ac_tool_warned in
  4051. yes:)
  4052. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4053. whose name does not start with the host triplet. If you think this
  4054. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4055. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4056. whose name does not start with the host triplet. If you think this
  4057. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4058. ac_tool_warned=yes ;;
  4059. esac
  4060. RANLIB=$ac_ct_RANLIB
  4061. fi
  4062. else
  4063. RANLIB="$ac_cv_prog_RANLIB"
  4064. fi
  4065. for ac_prog in 'bison -y' byacc
  4066. do
  4067. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4068. set dummy $ac_prog; ac_word=$2
  4069. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4070. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4071. if test "${ac_cv_prog_YACC+set}" = set; then
  4072. echo $ECHO_N "(cached) $ECHO_C" >&6
  4073. else
  4074. if test -n "$YACC"; then
  4075. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4076. else
  4077. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4078. for as_dir in $PATH
  4079. do
  4080. IFS=$as_save_IFS
  4081. test -z "$as_dir" && as_dir=.
  4082. for ac_exec_ext in '' $ac_executable_extensions; do
  4083. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4084. ac_cv_prog_YACC="$ac_prog"
  4085. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4086. break 2
  4087. fi
  4088. done
  4089. done
  4090. IFS=$as_save_IFS
  4091. fi
  4092. fi
  4093. YACC=$ac_cv_prog_YACC
  4094. if test -n "$YACC"; then
  4095. { echo "$as_me:$LINENO: result: $YACC" >&5
  4096. echo "${ECHO_T}$YACC" >&6; }
  4097. else
  4098. { echo "$as_me:$LINENO: result: no" >&5
  4099. echo "${ECHO_T}no" >&6; }
  4100. fi
  4101. test -n "$YACC" && break
  4102. done
  4103. test -n "$YACC" || YACC="yacc"
  4104. # Setting language choice
  4105. ac_ext=cpp
  4106. ac_cpp='$CXXCPP $CPPFLAGS'
  4107. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4108. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4109. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4110. # Check for GNU library
  4111. cat >>confdefs.h <<\_ACEOF
  4112. #define _GNU_SOURCE 1
  4113. _ACEOF
  4114. # Enable system extensions
  4115. ac_ext=cpp
  4116. ac_cpp='$CXXCPP $CPPFLAGS'
  4117. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4118. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4119. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4120. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4121. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4122. if test -z "$CXXCPP"; then
  4123. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4124. echo $ECHO_N "(cached) $ECHO_C" >&6
  4125. else
  4126. # Double quotes because CXXCPP needs to be expanded
  4127. for CXXCPP in "$CXX -E" "/lib/cpp"
  4128. do
  4129. ac_preproc_ok=false
  4130. for ac_cxx_preproc_warn_flag in '' yes
  4131. do
  4132. # Use a header file that comes with gcc, so configuring glibc
  4133. # with a fresh cross-compiler works.
  4134. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4135. # <limits.h> exists even on freestanding compilers.
  4136. # On the NeXT, cc -E runs the code through the compiler's parser,
  4137. # not just through cpp. "Syntax error" is here to catch this case.
  4138. cat >conftest.$ac_ext <<_ACEOF
  4139. /* confdefs.h. */
  4140. _ACEOF
  4141. cat confdefs.h >>conftest.$ac_ext
  4142. cat >>conftest.$ac_ext <<_ACEOF
  4143. /* end confdefs.h. */
  4144. #ifdef __STDC__
  4145. # include <limits.h>
  4146. #else
  4147. # include <assert.h>
  4148. #endif
  4149. Syntax error
  4150. _ACEOF
  4151. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4152. case "(($ac_try" in
  4153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4154. *) ac_try_echo=$ac_try;;
  4155. esac
  4156. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4157. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4158. ac_status=$?
  4159. grep -v '^ *+' conftest.er1 >conftest.err
  4160. rm -f conftest.er1
  4161. cat conftest.err >&5
  4162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4163. (exit $ac_status); } >/dev/null && {
  4164. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4165. test ! -s conftest.err
  4166. }; then
  4167. :
  4168. else
  4169. echo "$as_me: failed program was:" >&5
  4170. sed 's/^/| /' conftest.$ac_ext >&5
  4171. # Broken: fails on valid input.
  4172. continue
  4173. fi
  4174. rm -f conftest.err conftest.$ac_ext
  4175. # OK, works on sane cases. Now check whether nonexistent headers
  4176. # can be detected and how.
  4177. cat >conftest.$ac_ext <<_ACEOF
  4178. /* confdefs.h. */
  4179. _ACEOF
  4180. cat confdefs.h >>conftest.$ac_ext
  4181. cat >>conftest.$ac_ext <<_ACEOF
  4182. /* end confdefs.h. */
  4183. #include <ac_nonexistent.h>
  4184. _ACEOF
  4185. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4186. case "(($ac_try" in
  4187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4188. *) ac_try_echo=$ac_try;;
  4189. esac
  4190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4191. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4192. ac_status=$?
  4193. grep -v '^ *+' conftest.er1 >conftest.err
  4194. rm -f conftest.er1
  4195. cat conftest.err >&5
  4196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4197. (exit $ac_status); } >/dev/null && {
  4198. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4199. test ! -s conftest.err
  4200. }; then
  4201. # Broken: success on invalid input.
  4202. continue
  4203. else
  4204. echo "$as_me: failed program was:" >&5
  4205. sed 's/^/| /' conftest.$ac_ext >&5
  4206. # Passes both tests.
  4207. ac_preproc_ok=:
  4208. break
  4209. fi
  4210. rm -f conftest.err conftest.$ac_ext
  4211. done
  4212. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4213. rm -f conftest.err conftest.$ac_ext
  4214. if $ac_preproc_ok; then
  4215. break
  4216. fi
  4217. done
  4218. ac_cv_prog_CXXCPP=$CXXCPP
  4219. fi
  4220. CXXCPP=$ac_cv_prog_CXXCPP
  4221. else
  4222. ac_cv_prog_CXXCPP=$CXXCPP
  4223. fi
  4224. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4225. echo "${ECHO_T}$CXXCPP" >&6; }
  4226. ac_preproc_ok=false
  4227. for ac_cxx_preproc_warn_flag in '' yes
  4228. do
  4229. # Use a header file that comes with gcc, so configuring glibc
  4230. # with a fresh cross-compiler works.
  4231. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4232. # <limits.h> exists even on freestanding compilers.
  4233. # On the NeXT, cc -E runs the code through the compiler's parser,
  4234. # not just through cpp. "Syntax error" is here to catch this case.
  4235. cat >conftest.$ac_ext <<_ACEOF
  4236. /* confdefs.h. */
  4237. _ACEOF
  4238. cat confdefs.h >>conftest.$ac_ext
  4239. cat >>conftest.$ac_ext <<_ACEOF
  4240. /* end confdefs.h. */
  4241. #ifdef __STDC__
  4242. # include <limits.h>
  4243. #else
  4244. # include <assert.h>
  4245. #endif
  4246. Syntax error
  4247. _ACEOF
  4248. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4249. case "(($ac_try" in
  4250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4251. *) ac_try_echo=$ac_try;;
  4252. esac
  4253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4254. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4255. ac_status=$?
  4256. grep -v '^ *+' conftest.er1 >conftest.err
  4257. rm -f conftest.er1
  4258. cat conftest.err >&5
  4259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4260. (exit $ac_status); } >/dev/null && {
  4261. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4262. test ! -s conftest.err
  4263. }; then
  4264. :
  4265. else
  4266. echo "$as_me: failed program was:" >&5
  4267. sed 's/^/| /' conftest.$ac_ext >&5
  4268. # Broken: fails on valid input.
  4269. continue
  4270. fi
  4271. rm -f conftest.err conftest.$ac_ext
  4272. # OK, works on sane cases. Now check whether nonexistent headers
  4273. # can be detected and how.
  4274. cat >conftest.$ac_ext <<_ACEOF
  4275. /* confdefs.h. */
  4276. _ACEOF
  4277. cat confdefs.h >>conftest.$ac_ext
  4278. cat >>conftest.$ac_ext <<_ACEOF
  4279. /* end confdefs.h. */
  4280. #include <ac_nonexistent.h>
  4281. _ACEOF
  4282. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4283. case "(($ac_try" in
  4284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4285. *) ac_try_echo=$ac_try;;
  4286. esac
  4287. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4288. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4289. ac_status=$?
  4290. grep -v '^ *+' conftest.er1 >conftest.err
  4291. rm -f conftest.er1
  4292. cat conftest.err >&5
  4293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4294. (exit $ac_status); } >/dev/null && {
  4295. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4296. test ! -s conftest.err
  4297. }; then
  4298. # Broken: success on invalid input.
  4299. continue
  4300. else
  4301. echo "$as_me: failed program was:" >&5
  4302. sed 's/^/| /' conftest.$ac_ext >&5
  4303. # Passes both tests.
  4304. ac_preproc_ok=:
  4305. break
  4306. fi
  4307. rm -f conftest.err conftest.$ac_ext
  4308. done
  4309. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4310. rm -f conftest.err conftest.$ac_ext
  4311. if $ac_preproc_ok; then
  4312. :
  4313. else
  4314. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4315. See \`config.log' for more details." >&5
  4316. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4317. See \`config.log' for more details." >&2;}
  4318. { (exit 1); exit 1; }; }
  4319. fi
  4320. ac_ext=cpp
  4321. ac_cpp='$CXXCPP $CPPFLAGS'
  4322. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4323. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4324. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4325. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4326. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4327. if test "${ac_cv_path_GREP+set}" = set; then
  4328. echo $ECHO_N "(cached) $ECHO_C" >&6
  4329. else
  4330. # Extract the first word of "grep ggrep" to use in msg output
  4331. if test -z "$GREP"; then
  4332. set dummy grep ggrep; ac_prog_name=$2
  4333. if test "${ac_cv_path_GREP+set}" = set; then
  4334. echo $ECHO_N "(cached) $ECHO_C" >&6
  4335. else
  4336. ac_path_GREP_found=false
  4337. # Loop through the user's path and test for each of PROGNAME-LIST
  4338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4339. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4340. do
  4341. IFS=$as_save_IFS
  4342. test -z "$as_dir" && as_dir=.
  4343. for ac_prog in grep ggrep; do
  4344. for ac_exec_ext in '' $ac_executable_extensions; do
  4345. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4346. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4347. # Check for GNU ac_path_GREP and select it if it is found.
  4348. # Check for GNU $ac_path_GREP
  4349. case `"$ac_path_GREP" --version 2>&1` in
  4350. *GNU*)
  4351. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4352. *)
  4353. ac_count=0
  4354. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4355. while :
  4356. do
  4357. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4358. mv "conftest.tmp" "conftest.in"
  4359. cp "conftest.in" "conftest.nl"
  4360. echo 'GREP' >> "conftest.nl"
  4361. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4362. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4363. ac_count=`expr $ac_count + 1`
  4364. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4365. # Best one so far, save it but keep looking for a better one
  4366. ac_cv_path_GREP="$ac_path_GREP"
  4367. ac_path_GREP_max=$ac_count
  4368. fi
  4369. # 10*(2^10) chars as input seems more than enough
  4370. test $ac_count -gt 10 && break
  4371. done
  4372. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4373. esac
  4374. $ac_path_GREP_found && break 3
  4375. done
  4376. done
  4377. done
  4378. IFS=$as_save_IFS
  4379. fi
  4380. GREP="$ac_cv_path_GREP"
  4381. if test -z "$GREP"; then
  4382. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4383. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4384. { (exit 1); exit 1; }; }
  4385. fi
  4386. else
  4387. ac_cv_path_GREP=$GREP
  4388. fi
  4389. fi
  4390. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4391. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4392. GREP="$ac_cv_path_GREP"
  4393. { echo "$as_me:$LINENO: checking for egrep" >&5
  4394. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4395. if test "${ac_cv_path_EGREP+set}" = set; then
  4396. echo $ECHO_N "(cached) $ECHO_C" >&6
  4397. else
  4398. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4399. then ac_cv_path_EGREP="$GREP -E"
  4400. else
  4401. # Extract the first word of "egrep" to use in msg output
  4402. if test -z "$EGREP"; then
  4403. set dummy egrep; ac_prog_name=$2
  4404. if test "${ac_cv_path_EGREP+set}" = set; then
  4405. echo $ECHO_N "(cached) $ECHO_C" >&6
  4406. else
  4407. ac_path_EGREP_found=false
  4408. # Loop through the user's path and test for each of PROGNAME-LIST
  4409. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4410. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4411. do
  4412. IFS=$as_save_IFS
  4413. test -z "$as_dir" && as_dir=.
  4414. for ac_prog in egrep; do
  4415. for ac_exec_ext in '' $ac_executable_extensions; do
  4416. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4417. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4418. # Check for GNU ac_path_EGREP and select it if it is found.
  4419. # Check for GNU $ac_path_EGREP
  4420. case `"$ac_path_EGREP" --version 2>&1` in
  4421. *GNU*)
  4422. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4423. *)
  4424. ac_count=0
  4425. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4426. while :
  4427. do
  4428. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4429. mv "conftest.tmp" "conftest.in"
  4430. cp "conftest.in" "conftest.nl"
  4431. echo 'EGREP' >> "conftest.nl"
  4432. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4433. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4434. ac_count=`expr $ac_count + 1`
  4435. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4436. # Best one so far, save it but keep looking for a better one
  4437. ac_cv_path_EGREP="$ac_path_EGREP"
  4438. ac_path_EGREP_max=$ac_count
  4439. fi
  4440. # 10*(2^10) chars as input seems more than enough
  4441. test $ac_count -gt 10 && break
  4442. done
  4443. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4444. esac
  4445. $ac_path_EGREP_found && break 3
  4446. done
  4447. done
  4448. done
  4449. IFS=$as_save_IFS
  4450. fi
  4451. EGREP="$ac_cv_path_EGREP"
  4452. if test -z "$EGREP"; then
  4453. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4454. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4455. { (exit 1); exit 1; }; }
  4456. fi
  4457. else
  4458. ac_cv_path_EGREP=$EGREP
  4459. fi
  4460. fi
  4461. fi
  4462. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4463. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4464. EGREP="$ac_cv_path_EGREP"
  4465. { echo "$as_me:$LINENO: checking for AIX" >&5
  4466. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4467. cat >conftest.$ac_ext <<_ACEOF
  4468. /* confdefs.h. */
  4469. _ACEOF
  4470. cat confdefs.h >>conftest.$ac_ext
  4471. cat >>conftest.$ac_ext <<_ACEOF
  4472. /* end confdefs.h. */
  4473. #ifdef _AIX
  4474. yes
  4475. #endif
  4476. _ACEOF
  4477. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4478. $EGREP "yes" >/dev/null 2>&1; then
  4479. { echo "$as_me:$LINENO: result: yes" >&5
  4480. echo "${ECHO_T}yes" >&6; }
  4481. cat >>confdefs.h <<\_ACEOF
  4482. #define _ALL_SOURCE 1
  4483. _ACEOF
  4484. else
  4485. { echo "$as_me:$LINENO: result: no" >&5
  4486. echo "${ECHO_T}no" >&6; }
  4487. fi
  4488. rm -f conftest*
  4489. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4490. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4491. if test "${ac_cv_header_stdc+set}" = set; then
  4492. echo $ECHO_N "(cached) $ECHO_C" >&6
  4493. else
  4494. cat >conftest.$ac_ext <<_ACEOF
  4495. /* confdefs.h. */
  4496. _ACEOF
  4497. cat confdefs.h >>conftest.$ac_ext
  4498. cat >>conftest.$ac_ext <<_ACEOF
  4499. /* end confdefs.h. */
  4500. #include <stdlib.h>
  4501. #include <stdarg.h>
  4502. #include <string.h>
  4503. #include <float.h>
  4504. int
  4505. main ()
  4506. {
  4507. ;
  4508. return 0;
  4509. }
  4510. _ACEOF
  4511. rm -f conftest.$ac_objext
  4512. if { (ac_try="$ac_compile"
  4513. case "(($ac_try" in
  4514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4515. *) ac_try_echo=$ac_try;;
  4516. esac
  4517. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4518. (eval "$ac_compile") 2>conftest.er1
  4519. ac_status=$?
  4520. grep -v '^ *+' conftest.er1 >conftest.err
  4521. rm -f conftest.er1
  4522. cat conftest.err >&5
  4523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4524. (exit $ac_status); } && {
  4525. test -z "$ac_cxx_werror_flag" ||
  4526. test ! -s conftest.err
  4527. } && test -s conftest.$ac_objext; then
  4528. ac_cv_header_stdc=yes
  4529. else
  4530. echo "$as_me: failed program was:" >&5
  4531. sed 's/^/| /' conftest.$ac_ext >&5
  4532. ac_cv_header_stdc=no
  4533. fi
  4534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4535. if test $ac_cv_header_stdc = yes; then
  4536. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4537. cat >conftest.$ac_ext <<_ACEOF
  4538. /* confdefs.h. */
  4539. _ACEOF
  4540. cat confdefs.h >>conftest.$ac_ext
  4541. cat >>conftest.$ac_ext <<_ACEOF
  4542. /* end confdefs.h. */
  4543. #include <string.h>
  4544. _ACEOF
  4545. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4546. $EGREP "memchr" >/dev/null 2>&1; then
  4547. :
  4548. else
  4549. ac_cv_header_stdc=no
  4550. fi
  4551. rm -f conftest*
  4552. fi
  4553. if test $ac_cv_header_stdc = yes; then
  4554. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4555. cat >conftest.$ac_ext <<_ACEOF
  4556. /* confdefs.h. */
  4557. _ACEOF
  4558. cat confdefs.h >>conftest.$ac_ext
  4559. cat >>conftest.$ac_ext <<_ACEOF
  4560. /* end confdefs.h. */
  4561. #include <stdlib.h>
  4562. _ACEOF
  4563. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4564. $EGREP "free" >/dev/null 2>&1; then
  4565. :
  4566. else
  4567. ac_cv_header_stdc=no
  4568. fi
  4569. rm -f conftest*
  4570. fi
  4571. if test $ac_cv_header_stdc = yes; then
  4572. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4573. if test "$cross_compiling" = yes; then
  4574. :
  4575. else
  4576. cat >conftest.$ac_ext <<_ACEOF
  4577. /* confdefs.h. */
  4578. _ACEOF
  4579. cat confdefs.h >>conftest.$ac_ext
  4580. cat >>conftest.$ac_ext <<_ACEOF
  4581. /* end confdefs.h. */
  4582. #include <ctype.h>
  4583. #include <stdlib.h>
  4584. #if ((' ' & 0x0FF) == 0x020)
  4585. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4586. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4587. #else
  4588. # define ISLOWER(c) \
  4589. (('a' <= (c) && (c) <= 'i') \
  4590. || ('j' <= (c) && (c) <= 'r') \
  4591. || ('s' <= (c) && (c) <= 'z'))
  4592. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4593. #endif
  4594. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4595. int
  4596. main ()
  4597. {
  4598. int i;
  4599. for (i = 0; i < 256; i++)
  4600. if (XOR (islower (i), ISLOWER (i))
  4601. || toupper (i) != TOUPPER (i))
  4602. return 2;
  4603. return 0;
  4604. }
  4605. _ACEOF
  4606. rm -f conftest$ac_exeext
  4607. if { (ac_try="$ac_link"
  4608. case "(($ac_try" in
  4609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4610. *) ac_try_echo=$ac_try;;
  4611. esac
  4612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4613. (eval "$ac_link") 2>&5
  4614. ac_status=$?
  4615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4616. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4617. { (case "(($ac_try" in
  4618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4619. *) ac_try_echo=$ac_try;;
  4620. esac
  4621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4622. (eval "$ac_try") 2>&5
  4623. ac_status=$?
  4624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4625. (exit $ac_status); }; }; then
  4626. :
  4627. else
  4628. echo "$as_me: program exited with status $ac_status" >&5
  4629. echo "$as_me: failed program was:" >&5
  4630. sed 's/^/| /' conftest.$ac_ext >&5
  4631. ( exit $ac_status )
  4632. ac_cv_header_stdc=no
  4633. fi
  4634. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4635. fi
  4636. fi
  4637. fi
  4638. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4639. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4640. if test $ac_cv_header_stdc = yes; then
  4641. cat >>confdefs.h <<\_ACEOF
  4642. #define STDC_HEADERS 1
  4643. _ACEOF
  4644. fi
  4645. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4646. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4647. inttypes.h stdint.h unistd.h
  4648. do
  4649. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4650. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4651. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4652. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4653. echo $ECHO_N "(cached) $ECHO_C" >&6
  4654. else
  4655. cat >conftest.$ac_ext <<_ACEOF
  4656. /* confdefs.h. */
  4657. _ACEOF
  4658. cat confdefs.h >>conftest.$ac_ext
  4659. cat >>conftest.$ac_ext <<_ACEOF
  4660. /* end confdefs.h. */
  4661. $ac_includes_default
  4662. #include <$ac_header>
  4663. _ACEOF
  4664. rm -f conftest.$ac_objext
  4665. if { (ac_try="$ac_compile"
  4666. case "(($ac_try" in
  4667. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4668. *) ac_try_echo=$ac_try;;
  4669. esac
  4670. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4671. (eval "$ac_compile") 2>conftest.er1
  4672. ac_status=$?
  4673. grep -v '^ *+' conftest.er1 >conftest.err
  4674. rm -f conftest.er1
  4675. cat conftest.err >&5
  4676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4677. (exit $ac_status); } && {
  4678. test -z "$ac_cxx_werror_flag" ||
  4679. test ! -s conftest.err
  4680. } && test -s conftest.$ac_objext; then
  4681. eval "$as_ac_Header=yes"
  4682. else
  4683. echo "$as_me: failed program was:" >&5
  4684. sed 's/^/| /' conftest.$ac_ext >&5
  4685. eval "$as_ac_Header=no"
  4686. fi
  4687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4688. fi
  4689. ac_res=`eval echo '${'$as_ac_Header'}'`
  4690. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4691. echo "${ECHO_T}$ac_res" >&6; }
  4692. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4693. cat >>confdefs.h <<_ACEOF
  4694. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4695. _ACEOF
  4696. fi
  4697. done
  4698. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4699. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4700. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4701. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4702. echo $ECHO_N "(cached) $ECHO_C" >&6
  4703. fi
  4704. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4705. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4706. else
  4707. # Is the header compilable?
  4708. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4709. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4710. cat >conftest.$ac_ext <<_ACEOF
  4711. /* confdefs.h. */
  4712. _ACEOF
  4713. cat confdefs.h >>conftest.$ac_ext
  4714. cat >>conftest.$ac_ext <<_ACEOF
  4715. /* end confdefs.h. */
  4716. $ac_includes_default
  4717. #include <minix/config.h>
  4718. _ACEOF
  4719. rm -f conftest.$ac_objext
  4720. if { (ac_try="$ac_compile"
  4721. case "(($ac_try" in
  4722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4723. *) ac_try_echo=$ac_try;;
  4724. esac
  4725. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4726. (eval "$ac_compile") 2>conftest.er1
  4727. ac_status=$?
  4728. grep -v '^ *+' conftest.er1 >conftest.err
  4729. rm -f conftest.er1
  4730. cat conftest.err >&5
  4731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4732. (exit $ac_status); } && {
  4733. test -z "$ac_cxx_werror_flag" ||
  4734. test ! -s conftest.err
  4735. } && test -s conftest.$ac_objext; then
  4736. ac_header_compiler=yes
  4737. else
  4738. echo "$as_me: failed program was:" >&5
  4739. sed 's/^/| /' conftest.$ac_ext >&5
  4740. ac_header_compiler=no
  4741. fi
  4742. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4743. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4744. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4745. # Is the header present?
  4746. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4747. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4748. cat >conftest.$ac_ext <<_ACEOF
  4749. /* confdefs.h. */
  4750. _ACEOF
  4751. cat confdefs.h >>conftest.$ac_ext
  4752. cat >>conftest.$ac_ext <<_ACEOF
  4753. /* end confdefs.h. */
  4754. #include <minix/config.h>
  4755. _ACEOF
  4756. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4757. case "(($ac_try" in
  4758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4759. *) ac_try_echo=$ac_try;;
  4760. esac
  4761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4762. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4763. ac_status=$?
  4764. grep -v '^ *+' conftest.er1 >conftest.err
  4765. rm -f conftest.er1
  4766. cat conftest.err >&5
  4767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4768. (exit $ac_status); } >/dev/null && {
  4769. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4770. test ! -s conftest.err
  4771. }; then
  4772. ac_header_preproc=yes
  4773. else
  4774. echo "$as_me: failed program was:" >&5
  4775. sed 's/^/| /' conftest.$ac_ext >&5
  4776. ac_header_preproc=no
  4777. fi
  4778. rm -f conftest.err conftest.$ac_ext
  4779. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4780. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4781. # So? What about this header?
  4782. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4783. yes:no: )
  4784. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4785. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4786. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4787. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4788. ac_header_preproc=yes
  4789. ;;
  4790. no:yes:* )
  4791. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4792. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4793. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4794. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4795. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4796. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4797. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4798. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4799. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4800. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4801. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4802. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4803. ( cat <<\_ASBOX
  4804. ## ----------------------------------------------- ##
  4805. ## Report this to t-tujikawa@users.sourceforge.net ##
  4806. ## ----------------------------------------------- ##
  4807. _ASBOX
  4808. ) | sed "s/^/$as_me: WARNING: /" >&2
  4809. ;;
  4810. esac
  4811. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4812. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4813. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4814. echo $ECHO_N "(cached) $ECHO_C" >&6
  4815. else
  4816. ac_cv_header_minix_config_h=$ac_header_preproc
  4817. fi
  4818. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4819. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4820. fi
  4821. if test $ac_cv_header_minix_config_h = yes; then
  4822. MINIX=yes
  4823. else
  4824. MINIX=
  4825. fi
  4826. if test "$MINIX" = yes; then
  4827. cat >>confdefs.h <<\_ACEOF
  4828. #define _POSIX_SOURCE 1
  4829. _ACEOF
  4830. cat >>confdefs.h <<\_ACEOF
  4831. #define _POSIX_1_SOURCE 2
  4832. _ACEOF
  4833. cat >>confdefs.h <<\_ACEOF
  4834. #define _MINIX 1
  4835. _ACEOF
  4836. fi
  4837. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4838. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4839. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4840. echo $ECHO_N "(cached) $ECHO_C" >&6
  4841. else
  4842. cat >conftest.$ac_ext <<_ACEOF
  4843. /* confdefs.h. */
  4844. _ACEOF
  4845. cat confdefs.h >>conftest.$ac_ext
  4846. cat >>conftest.$ac_ext <<_ACEOF
  4847. /* end confdefs.h. */
  4848. # define __EXTENSIONS__ 1
  4849. $ac_includes_default
  4850. int
  4851. main ()
  4852. {
  4853. ;
  4854. return 0;
  4855. }
  4856. _ACEOF
  4857. rm -f conftest.$ac_objext
  4858. if { (ac_try="$ac_compile"
  4859. case "(($ac_try" in
  4860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4861. *) ac_try_echo=$ac_try;;
  4862. esac
  4863. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4864. (eval "$ac_compile") 2>conftest.er1
  4865. ac_status=$?
  4866. grep -v '^ *+' conftest.er1 >conftest.err
  4867. rm -f conftest.er1
  4868. cat conftest.err >&5
  4869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4870. (exit $ac_status); } && {
  4871. test -z "$ac_cxx_werror_flag" ||
  4872. test ! -s conftest.err
  4873. } && test -s conftest.$ac_objext; then
  4874. ac_cv_safe_to_define___extensions__=yes
  4875. else
  4876. echo "$as_me: failed program was:" >&5
  4877. sed 's/^/| /' conftest.$ac_ext >&5
  4878. ac_cv_safe_to_define___extensions__=no
  4879. fi
  4880. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4881. fi
  4882. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4883. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4884. test $ac_cv_safe_to_define___extensions__ = yes &&
  4885. cat >>confdefs.h <<\_ACEOF
  4886. #define __EXTENSIONS__ 1
  4887. _ACEOF
  4888. cat >>confdefs.h <<\_ACEOF
  4889. #define _POSIX_PTHREAD_SEMANTICS 1
  4890. _ACEOF
  4891. cat >>confdefs.h <<\_ACEOF
  4892. #define _TANDEM_SOURCE 1
  4893. _ACEOF
  4894. # Checks for libraries.
  4895. if test "x$with_libxml2" = "xyes"; then
  4896. # Check whether --with-xml-prefix was given.
  4897. if test "${with_xml_prefix+set}" = set; then
  4898. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4899. else
  4900. xml_config_prefix=""
  4901. fi
  4902. # Check whether --with-xml-exec-prefix was given.
  4903. if test "${with_xml_exec_prefix+set}" = set; then
  4904. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4905. else
  4906. xml_config_exec_prefix=""
  4907. fi
  4908. # Check whether --enable-xmltest was given.
  4909. if test "${enable_xmltest+set}" = set; then
  4910. enableval=$enable_xmltest;
  4911. else
  4912. enable_xmltest=yes
  4913. fi
  4914. if test x$xml_config_exec_prefix != x ; then
  4915. xml_config_args="$xml_config_args"
  4916. if test x${XML2_CONFIG+set} != xset ; then
  4917. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4918. fi
  4919. fi
  4920. if test x$xml_config_prefix != x ; then
  4921. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4922. if test x${XML2_CONFIG+set} != xset ; then
  4923. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4924. fi
  4925. fi
  4926. # Extract the first word of "xml2-config", so it can be a program name with args.
  4927. set dummy xml2-config; ac_word=$2
  4928. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4929. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4930. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4931. echo $ECHO_N "(cached) $ECHO_C" >&6
  4932. else
  4933. case $XML2_CONFIG in
  4934. [\\/]* | ?:[\\/]*)
  4935. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4936. ;;
  4937. *)
  4938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4939. for as_dir in $PATH
  4940. do
  4941. IFS=$as_save_IFS
  4942. test -z "$as_dir" && as_dir=.
  4943. for ac_exec_ext in '' $ac_executable_extensions; do
  4944. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4945. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4946. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4947. break 2
  4948. fi
  4949. done
  4950. done
  4951. IFS=$as_save_IFS
  4952. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4953. ;;
  4954. esac
  4955. fi
  4956. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4957. if test -n "$XML2_CONFIG"; then
  4958. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4959. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4960. else
  4961. { echo "$as_me:$LINENO: result: no" >&5
  4962. echo "${ECHO_T}no" >&6; }
  4963. fi
  4964. min_xml_version=2.6.24
  4965. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4966. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4967. no_xml=""
  4968. if test "$XML2_CONFIG" = "no" ; then
  4969. no_xml=yes
  4970. else
  4971. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4972. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4973. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4974. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4975. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4976. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4977. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4978. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4979. if test "x$enable_xmltest" = "xyes" ; then
  4980. ac_save_CPPFLAGS="$CPPFLAGS"
  4981. ac_save_LIBS="$LIBS"
  4982. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4983. LIBS="$XML_LIBS $LIBS"
  4984. rm -f conf.xmltest
  4985. if test "$cross_compiling" = yes; then
  4986. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4987. else
  4988. cat >conftest.$ac_ext <<_ACEOF
  4989. /* confdefs.h. */
  4990. _ACEOF
  4991. cat confdefs.h >>conftest.$ac_ext
  4992. cat >>conftest.$ac_ext <<_ACEOF
  4993. /* end confdefs.h. */
  4994. #include <stdlib.h>
  4995. #include <stdio.h>
  4996. #include <string.h>
  4997. #include <libxml/xmlversion.h>
  4998. int
  4999. main()
  5000. {
  5001. int xml_major_version, xml_minor_version, xml_micro_version;
  5002. int major, minor, micro;
  5003. char *tmp_version;
  5004. system("touch conf.xmltest");
  5005. /* Capture xml2-config output via autoconf/configure variables */
  5006. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5007. tmp_version = (char *)strdup("$min_xml_version");
  5008. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5009. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5010. exit(1);
  5011. }
  5012. free(tmp_version);
  5013. /* Capture the version information from the header files */
  5014. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5015. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5016. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5017. exit(1);
  5018. }
  5019. free(tmp_version);
  5020. /* Compare xml2-config output to the libxml headers */
  5021. if ((xml_major_version != $xml_config_major_version) ||
  5022. (xml_minor_version != $xml_config_minor_version) ||
  5023. (xml_micro_version != $xml_config_micro_version))
  5024. {
  5025. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5026. xml_major_version, xml_minor_version, xml_micro_version);
  5027. printf("*** xml2-config (version %d.%d.%d)\n",
  5028. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5029. return 1;
  5030. }
  5031. /* Compare the headers to the library to make sure we match */
  5032. /* Less than ideal -- doesn't provide us with return value feedback,
  5033. * only exits if there's a serious mismatch between header and library.
  5034. */
  5035. LIBXML_TEST_VERSION;
  5036. /* Test that the library is greater than our minimum version */
  5037. if ((xml_major_version > major) ||
  5038. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5039. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5040. (xml_micro_version >= micro)))
  5041. {
  5042. return 0;
  5043. }
  5044. else
  5045. {
  5046. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5047. xml_major_version, xml_minor_version, xml_micro_version);
  5048. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5049. major, minor, micro);
  5050. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5051. printf("***\n");
  5052. printf("*** If you have already installed a sufficiently new version, this error\n");
  5053. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5054. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5055. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5056. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5057. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5058. printf("*** so that the correct libraries are found at run-time))\n");
  5059. }
  5060. return 1;
  5061. }
  5062. _ACEOF
  5063. rm -f conftest$ac_exeext
  5064. if { (ac_try="$ac_link"
  5065. case "(($ac_try" in
  5066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5067. *) ac_try_echo=$ac_try;;
  5068. esac
  5069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5070. (eval "$ac_link") 2>&5
  5071. ac_status=$?
  5072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5073. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5074. { (case "(($ac_try" in
  5075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5076. *) ac_try_echo=$ac_try;;
  5077. esac
  5078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5079. (eval "$ac_try") 2>&5
  5080. ac_status=$?
  5081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5082. (exit $ac_status); }; }; then
  5083. :
  5084. else
  5085. echo "$as_me: program exited with status $ac_status" >&5
  5086. echo "$as_me: failed program was:" >&5
  5087. sed 's/^/| /' conftest.$ac_ext >&5
  5088. ( exit $ac_status )
  5089. no_xml=yes
  5090. fi
  5091. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5092. fi
  5093. CPPFLAGS="$ac_save_CPPFLAGS"
  5094. LIBS="$ac_save_LIBS"
  5095. fi
  5096. fi
  5097. if test "x$no_xml" = x ; then
  5098. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5099. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5100. have_libxml2=yes
  5101. else
  5102. { echo "$as_me:$LINENO: result: no" >&5
  5103. echo "${ECHO_T}no" >&6; }
  5104. if test "$XML2_CONFIG" = "no" ; then
  5105. echo "*** The xml2-config script installed by LIBXML could not be found"
  5106. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5107. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5108. echo "*** full path to xml2-config."
  5109. else
  5110. if test -f conf.xmltest ; then
  5111. :
  5112. else
  5113. echo "*** Could not run libxml test program, checking why..."
  5114. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5115. LIBS="$LIBS $XML_LIBS"
  5116. cat >conftest.$ac_ext <<_ACEOF
  5117. /* confdefs.h. */
  5118. _ACEOF
  5119. cat confdefs.h >>conftest.$ac_ext
  5120. cat >>conftest.$ac_ext <<_ACEOF
  5121. /* end confdefs.h. */
  5122. #include <libxml/xmlversion.h>
  5123. #include <stdio.h>
  5124. int
  5125. main ()
  5126. {
  5127. LIBXML_TEST_VERSION; return 0;
  5128. ;
  5129. return 0;
  5130. }
  5131. _ACEOF
  5132. rm -f conftest.$ac_objext conftest$ac_exeext
  5133. if { (ac_try="$ac_link"
  5134. case "(($ac_try" in
  5135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5136. *) ac_try_echo=$ac_try;;
  5137. esac
  5138. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5139. (eval "$ac_link") 2>conftest.er1
  5140. ac_status=$?
  5141. grep -v '^ *+' conftest.er1 >conftest.err
  5142. rm -f conftest.er1
  5143. cat conftest.err >&5
  5144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5145. (exit $ac_status); } && {
  5146. test -z "$ac_cxx_werror_flag" ||
  5147. test ! -s conftest.err
  5148. } && test -s conftest$ac_exeext &&
  5149. $as_test_x conftest$ac_exeext; then
  5150. echo "*** The test program compiled, but did not run. This usually means"
  5151. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5152. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5153. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5154. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5155. echo "*** is required on your system"
  5156. echo "***"
  5157. echo "*** If you have an old version installed, it is best to remove it, although"
  5158. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5159. else
  5160. echo "$as_me: failed program was:" >&5
  5161. sed 's/^/| /' conftest.$ac_ext >&5
  5162. echo "*** The test program failed to compile or link. See the file config.log for the"
  5163. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5164. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5165. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5166. fi
  5167. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5168. conftest$ac_exeext conftest.$ac_ext
  5169. CPPFLAGS="$ac_save_CPPFLAGS"
  5170. LIBS="$ac_save_LIBS"
  5171. fi
  5172. fi
  5173. XML_CPPFLAGS=""
  5174. XML_LIBS=""
  5175. :
  5176. fi
  5177. rm -f conf.xmltest
  5178. if test "x$have_libxml2" = "xyes"; then
  5179. cat >>confdefs.h <<\_ACEOF
  5180. #define HAVE_LIBXML2 1
  5181. _ACEOF
  5182. fi
  5183. fi
  5184. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5185. # Check whether --with-libexpat-prefix was given.
  5186. if test "${with_libexpat_prefix+set}" = set; then
  5187. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5188. else
  5189. libexpat_prefix=""
  5190. fi
  5191. if test "x$libexpat_prefix" = "x"; then
  5192. libexpat_prefix="/usr"
  5193. fi
  5194. libexpat_prefix_lib=$libexpat_prefix/lib
  5195. libexpat_prefix_include=$libexpat_prefix/include
  5196. LIBS_save=$LIBS
  5197. CPPFLAGS_save=$CPPFLAGS
  5198. LIBS="-L$libexpat_prefix_lib $LIBS"
  5199. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5200. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5201. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5202. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5203. echo $ECHO_N "(cached) $ECHO_C" >&6
  5204. else
  5205. ac_check_lib_save_LIBS=$LIBS
  5206. LIBS="-lexpat $LIBS"
  5207. cat >conftest.$ac_ext <<_ACEOF
  5208. /* confdefs.h. */
  5209. _ACEOF
  5210. cat confdefs.h >>conftest.$ac_ext
  5211. cat >>conftest.$ac_ext <<_ACEOF
  5212. /* end confdefs.h. */
  5213. /* Override any GCC internal prototype to avoid an error.
  5214. Use char because int might match the return type of a GCC
  5215. builtin and then its argument prototype would still apply. */
  5216. #ifdef __cplusplus
  5217. extern "C"
  5218. #endif
  5219. char XML_ParserCreate ();
  5220. int
  5221. main ()
  5222. {
  5223. return XML_ParserCreate ();
  5224. ;
  5225. return 0;
  5226. }
  5227. _ACEOF
  5228. rm -f conftest.$ac_objext conftest$ac_exeext
  5229. if { (ac_try="$ac_link"
  5230. case "(($ac_try" in
  5231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5232. *) ac_try_echo=$ac_try;;
  5233. esac
  5234. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5235. (eval "$ac_link") 2>conftest.er1
  5236. ac_status=$?
  5237. grep -v '^ *+' conftest.er1 >conftest.err
  5238. rm -f conftest.er1
  5239. cat conftest.err >&5
  5240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5241. (exit $ac_status); } && {
  5242. test -z "$ac_cxx_werror_flag" ||
  5243. test ! -s conftest.err
  5244. } && test -s conftest$ac_exeext &&
  5245. $as_test_x conftest$ac_exeext; then
  5246. ac_cv_lib_expat_XML_ParserCreate=yes
  5247. else
  5248. echo "$as_me: failed program was:" >&5
  5249. sed 's/^/| /' conftest.$ac_ext >&5
  5250. ac_cv_lib_expat_XML_ParserCreate=no
  5251. fi
  5252. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5253. conftest$ac_exeext conftest.$ac_ext
  5254. LIBS=$ac_check_lib_save_LIBS
  5255. fi
  5256. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5257. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5258. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5259. have_libexpat=yes
  5260. fi
  5261. if test "x$have_libexpat" = "xyes"; then
  5262. cat >>confdefs.h <<\_ACEOF
  5263. #define HAVE_LIBEXPAT 1
  5264. _ACEOF
  5265. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5266. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5267. fi
  5268. LIBS=$LIBS_save
  5269. CPPFLAGS=$CPPFLAGS_save
  5270. fi
  5271. if test "x$with_sqlite3" = "xyes"; then
  5272. # Check whether --with-sqlite3-prefix was given.
  5273. if test "${with_sqlite3_prefix+set}" = set; then
  5274. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5275. else
  5276. sqlite3_prefix=""
  5277. fi
  5278. if test "x$sqlite3_prefix" = "x"; then
  5279. sqlite3_prefix="/usr"
  5280. fi
  5281. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5282. sqlite3_prefix_include=$sqlite3_prefix/include
  5283. LIBS_save=$LIBS
  5284. CPPFLAGS_save=$CPPFLAGS
  5285. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5286. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5287. { echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
  5288. echo $ECHO_N "checking for sqlite3_open in -lsqlite3... $ECHO_C" >&6; }
  5289. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
  5290. echo $ECHO_N "(cached) $ECHO_C" >&6
  5291. else
  5292. ac_check_lib_save_LIBS=$LIBS
  5293. LIBS="-lsqlite3 $LIBS"
  5294. cat >conftest.$ac_ext <<_ACEOF
  5295. /* confdefs.h. */
  5296. _ACEOF
  5297. cat confdefs.h >>conftest.$ac_ext
  5298. cat >>conftest.$ac_ext <<_ACEOF
  5299. /* end confdefs.h. */
  5300. /* Override any GCC internal prototype to avoid an error.
  5301. Use char because int might match the return type of a GCC
  5302. builtin and then its argument prototype would still apply. */
  5303. #ifdef __cplusplus
  5304. extern "C"
  5305. #endif
  5306. char sqlite3_open ();
  5307. int
  5308. main ()
  5309. {
  5310. return sqlite3_open ();
  5311. ;
  5312. return 0;
  5313. }
  5314. _ACEOF
  5315. rm -f conftest.$ac_objext conftest$ac_exeext
  5316. if { (ac_try="$ac_link"
  5317. case "(($ac_try" in
  5318. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5319. *) ac_try_echo=$ac_try;;
  5320. esac
  5321. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5322. (eval "$ac_link") 2>conftest.er1
  5323. ac_status=$?
  5324. grep -v '^ *+' conftest.er1 >conftest.err
  5325. rm -f conftest.er1
  5326. cat conftest.err >&5
  5327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5328. (exit $ac_status); } && {
  5329. test -z "$ac_cxx_werror_flag" ||
  5330. test ! -s conftest.err
  5331. } && test -s conftest$ac_exeext &&
  5332. $as_test_x conftest$ac_exeext; then
  5333. ac_cv_lib_sqlite3_sqlite3_open=yes
  5334. else
  5335. echo "$as_me: failed program was:" >&5
  5336. sed 's/^/| /' conftest.$ac_ext >&5
  5337. ac_cv_lib_sqlite3_sqlite3_open=no
  5338. fi
  5339. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5340. conftest$ac_exeext conftest.$ac_ext
  5341. LIBS=$ac_check_lib_save_LIBS
  5342. fi
  5343. { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5344. echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5345. if test $ac_cv_lib_sqlite3_sqlite3_open = yes; then
  5346. have_sqlite3=yes
  5347. fi
  5348. if test "x$have_sqlite3" = "xyes"; then
  5349. cat >>confdefs.h <<\_ACEOF
  5350. #define HAVE_SQLITE3 1
  5351. _ACEOF
  5352. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5353. SQLITE3_CPPFLAGS="-I$sqlite3_prefix_include"
  5354. fi
  5355. LIBS=$LIBS_save
  5356. CPPFLAGS=$CPPFLAGS_save
  5357. fi
  5358. if test "x$with_gnutls" = "xyes"; then
  5359. # Check whether --with-libgnutls-prefix was given.
  5360. if test "${with_libgnutls_prefix+set}" = set; then
  5361. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5362. else
  5363. libgnutls_config_prefix=""
  5364. fi
  5365. if test x$libgnutls_config_prefix != x ; then
  5366. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5367. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5368. fi
  5369. fi
  5370. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5371. set dummy libgnutls-config; ac_word=$2
  5372. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5373. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5374. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5375. echo $ECHO_N "(cached) $ECHO_C" >&6
  5376. else
  5377. case $LIBGNUTLS_CONFIG in
  5378. [\\/]* | ?:[\\/]*)
  5379. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5380. ;;
  5381. *)
  5382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5383. for as_dir in $PATH
  5384. do
  5385. IFS=$as_save_IFS
  5386. test -z "$as_dir" && as_dir=.
  5387. for ac_exec_ext in '' $ac_executable_extensions; do
  5388. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5389. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5390. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5391. break 2
  5392. fi
  5393. done
  5394. done
  5395. IFS=$as_save_IFS
  5396. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5397. ;;
  5398. esac
  5399. fi
  5400. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5401. if test -n "$LIBGNUTLS_CONFIG"; then
  5402. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5403. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5404. else
  5405. { echo "$as_me:$LINENO: result: no" >&5
  5406. echo "${ECHO_T}no" >&6; }
  5407. fi
  5408. min_libgnutls_version=1.2.9
  5409. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5410. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5411. no_libgnutls=""
  5412. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5413. no_libgnutls=yes
  5414. else
  5415. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5416. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5417. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5418. ac_save_CFLAGS="$CFLAGS"
  5419. ac_save_LIBS="$LIBS"
  5420. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5421. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5422. rm -f conf.libgnutlstest
  5423. if test "$cross_compiling" = yes; then
  5424. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5425. else
  5426. cat >conftest.$ac_ext <<_ACEOF
  5427. /* confdefs.h. */
  5428. _ACEOF
  5429. cat confdefs.h >>conftest.$ac_ext
  5430. cat >>conftest.$ac_ext <<_ACEOF
  5431. /* end confdefs.h. */
  5432. #include <stdio.h>
  5433. #include <stdlib.h>
  5434. #include <string.h>
  5435. #include <gnutls/gnutls.h>
  5436. int
  5437. main ()
  5438. {
  5439. system ("touch conf.libgnutlstest");
  5440. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5441. {
  5442. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5443. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5444. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5445. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5446. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5447. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5448. printf("*** required on your system.\n");
  5449. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5450. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5451. printf("*** before re-running configure\n");
  5452. }
  5453. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5454. {
  5455. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5456. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5457. }
  5458. else
  5459. {
  5460. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5461. {
  5462. return 0;
  5463. }
  5464. else
  5465. {
  5466. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5467. gnutls_check_version(NULL) );
  5468. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5469. "$min_libgnutls_version" );
  5470. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5471. printf("*** \n");
  5472. printf("*** If you have already installed a sufficiently new version, this error\n");
  5473. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5474. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5475. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5476. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5477. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5478. printf("*** so that the correct libraries are found at run-time))\n");
  5479. }
  5480. }
  5481. return 1;
  5482. }
  5483. _ACEOF
  5484. rm -f conftest$ac_exeext
  5485. if { (ac_try="$ac_link"
  5486. case "(($ac_try" in
  5487. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5488. *) ac_try_echo=$ac_try;;
  5489. esac
  5490. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5491. (eval "$ac_link") 2>&5
  5492. ac_status=$?
  5493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5494. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5495. { (case "(($ac_try" in
  5496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5497. *) ac_try_echo=$ac_try;;
  5498. esac
  5499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5500. (eval "$ac_try") 2>&5
  5501. ac_status=$?
  5502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5503. (exit $ac_status); }; }; then
  5504. :
  5505. else
  5506. echo "$as_me: program exited with status $ac_status" >&5
  5507. echo "$as_me: failed program was:" >&5
  5508. sed 's/^/| /' conftest.$ac_ext >&5
  5509. ( exit $ac_status )
  5510. no_libgnutls=yes
  5511. fi
  5512. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5513. fi
  5514. CFLAGS="$ac_save_CFLAGS"
  5515. LIBS="$ac_save_LIBS"
  5516. fi
  5517. if test "x$no_libgnutls" = x ; then
  5518. { echo "$as_me:$LINENO: result: yes" >&5
  5519. echo "${ECHO_T}yes" >&6; }
  5520. have_libgnutls=yes
  5521. else
  5522. if test -f conf.libgnutlstest ; then
  5523. :
  5524. else
  5525. { echo "$as_me:$LINENO: result: no" >&5
  5526. echo "${ECHO_T}no" >&6; }
  5527. fi
  5528. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5529. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5530. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5531. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5532. echo "*** full path to libgnutls-config."
  5533. else
  5534. if test -f conf.libgnutlstest ; then
  5535. :
  5536. else
  5537. echo "*** Could not run libgnutls test program, checking why..."
  5538. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5539. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5540. cat >conftest.$ac_ext <<_ACEOF
  5541. /* confdefs.h. */
  5542. _ACEOF
  5543. cat confdefs.h >>conftest.$ac_ext
  5544. cat >>conftest.$ac_ext <<_ACEOF
  5545. /* end confdefs.h. */
  5546. #include <stdio.h>
  5547. #include <stdlib.h>
  5548. #include <string.h>
  5549. #include <gnutls/gnutls.h>
  5550. int
  5551. main ()
  5552. {
  5553. return !!gnutls_check_version(NULL);
  5554. ;
  5555. return 0;
  5556. }
  5557. _ACEOF
  5558. rm -f conftest.$ac_objext conftest$ac_exeext
  5559. if { (ac_try="$ac_link"
  5560. case "(($ac_try" in
  5561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5562. *) ac_try_echo=$ac_try;;
  5563. esac
  5564. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5565. (eval "$ac_link") 2>conftest.er1
  5566. ac_status=$?
  5567. grep -v '^ *+' conftest.er1 >conftest.err
  5568. rm -f conftest.er1
  5569. cat conftest.err >&5
  5570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5571. (exit $ac_status); } && {
  5572. test -z "$ac_cxx_werror_flag" ||
  5573. test ! -s conftest.err
  5574. } && test -s conftest$ac_exeext &&
  5575. $as_test_x conftest$ac_exeext; then
  5576. echo "*** The test program compiled, but did not run. This usually means"
  5577. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5578. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5579. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5580. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5581. echo "*** is required on your system"
  5582. echo "***"
  5583. echo "*** If you have an old version installed, it is best to remove it, although"
  5584. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5585. echo "***"
  5586. else
  5587. echo "$as_me: failed program was:" >&5
  5588. sed 's/^/| /' conftest.$ac_ext >&5
  5589. echo "*** The test program failed to compile or link. See the file config.log for the"
  5590. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5591. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5592. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5593. fi
  5594. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5595. conftest$ac_exeext conftest.$ac_ext
  5596. CFLAGS="$ac_save_CFLAGS"
  5597. LIBS="$ac_save_LIBS"
  5598. fi
  5599. fi
  5600. LIBGNUTLS_CFLAGS=""
  5601. LIBGNUTLS_LIBS=""
  5602. :
  5603. fi
  5604. rm -f conf.libgnutlstest
  5605. if test "x$have_libgnutls" = "xyes"; then
  5606. cat >>confdefs.h <<\_ACEOF
  5607. #define HAVE_LIBGNUTLS 1
  5608. _ACEOF
  5609. fi
  5610. fi
  5611. if test "x$have_libgnutls" = "xyes"; then
  5612. # Check whether --with-libgcrypt-prefix was given.
  5613. if test "${with_libgcrypt_prefix+set}" = set; then
  5614. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5615. else
  5616. libgcrypt_config_prefix=""
  5617. fi
  5618. if test x$libgcrypt_config_prefix != x ; then
  5619. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5620. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5621. fi
  5622. fi
  5623. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5624. set dummy libgcrypt-config; ac_word=$2
  5625. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5626. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5627. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5628. echo $ECHO_N "(cached) $ECHO_C" >&6
  5629. else
  5630. case $LIBGCRYPT_CONFIG in
  5631. [\\/]* | ?:[\\/]*)
  5632. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5633. ;;
  5634. *)
  5635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5636. for as_dir in $PATH
  5637. do
  5638. IFS=$as_save_IFS
  5639. test -z "$as_dir" && as_dir=.
  5640. for ac_exec_ext in '' $ac_executable_extensions; do
  5641. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5642. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5643. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5644. break 2
  5645. fi
  5646. done
  5647. done
  5648. IFS=$as_save_IFS
  5649. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5650. ;;
  5651. esac
  5652. fi
  5653. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5654. if test -n "$LIBGCRYPT_CONFIG"; then
  5655. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5656. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5657. else
  5658. { echo "$as_me:$LINENO: result: no" >&5
  5659. echo "${ECHO_T}no" >&6; }
  5660. fi
  5661. tmp=1.2.2
  5662. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5663. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5664. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5665. else
  5666. req_libgcrypt_api=0
  5667. min_libgcrypt_version="$tmp"
  5668. fi
  5669. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5670. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5671. ok=no
  5672. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5673. req_major=`echo $min_libgcrypt_version | \
  5674. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5675. req_minor=`echo $min_libgcrypt_version | \
  5676. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5677. req_micro=`echo $min_libgcrypt_version | \
  5678. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5679. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5680. major=`echo $libgcrypt_config_version | \
  5681. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5682. minor=`echo $libgcrypt_config_version | \
  5683. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5684. micro=`echo $libgcrypt_config_version | \
  5685. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5686. if test "$major" -gt "$req_major"; then
  5687. ok=yes
  5688. else
  5689. if test "$major" -eq "$req_major"; then
  5690. if test "$minor" -gt "$req_minor"; then
  5691. ok=yes
  5692. else
  5693. if test "$minor" -eq "$req_minor"; then
  5694. if test "$micro" -ge "$req_micro"; then
  5695. ok=yes
  5696. fi
  5697. fi
  5698. fi
  5699. fi
  5700. fi
  5701. fi
  5702. if test $ok = yes; then
  5703. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5704. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5705. else
  5706. { echo "$as_me:$LINENO: result: no" >&5
  5707. echo "${ECHO_T}no" >&6; }
  5708. fi
  5709. if test $ok = yes; then
  5710. # If we have a recent libgcrypt, we should also check that the
  5711. # API is compatible
  5712. if test "$req_libgcrypt_api" -gt 0 ; then
  5713. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5714. if test "$tmp" -gt 0 ; then
  5715. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5716. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5717. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5718. { echo "$as_me:$LINENO: result: okay" >&5
  5719. echo "${ECHO_T}okay" >&6; }
  5720. else
  5721. ok=no
  5722. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5723. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5724. fi
  5725. fi
  5726. fi
  5727. fi
  5728. if test $ok = yes; then
  5729. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5730. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5731. have_libgcrypt=yes
  5732. else
  5733. LIBGCRYPT_CFLAGS=""
  5734. LIBGCRYPT_LIBS=""
  5735. :
  5736. fi
  5737. if test "x$have_libgcrypt" = "xyes"; then
  5738. cat >>confdefs.h <<\_ACEOF
  5739. #define HAVE_LIBGCRYPT 1
  5740. _ACEOF
  5741. fi
  5742. fi
  5743. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5744. # Check whether --with-openssl-prefix was given.
  5745. if test "${with_openssl_prefix+set}" = set; then
  5746. withval=$with_openssl_prefix; openssl_prefix=$withval
  5747. else
  5748. openssl_prefix=""
  5749. fi
  5750. if test "x$openssl_prefix" = "x"; then
  5751. openssl_prefix="/usr/local"
  5752. fi
  5753. openssl_prefix_lib=$openssl_prefix/lib
  5754. openssl_prefix_include=$openssl_prefix/include
  5755. LIBS_save=$LIBS
  5756. CPPFLAGS_save=$CPPFLAGS
  5757. LIBS="-L$openssl_prefix_lib $LIBS"
  5758. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5759. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5760. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5761. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5762. echo $ECHO_N "(cached) $ECHO_C" >&6
  5763. else
  5764. ac_check_lib_save_LIBS=$LIBS
  5765. LIBS="-lssl $LIBS"
  5766. cat >conftest.$ac_ext <<_ACEOF
  5767. /* confdefs.h. */
  5768. _ACEOF
  5769. cat confdefs.h >>conftest.$ac_ext
  5770. cat >>conftest.$ac_ext <<_ACEOF
  5771. /* end confdefs.h. */
  5772. /* Override any GCC internal prototype to avoid an error.
  5773. Use char because int might match the return type of a GCC
  5774. builtin and then its argument prototype would still apply. */
  5775. #ifdef __cplusplus
  5776. extern "C"
  5777. #endif
  5778. char SSL_library_init ();
  5779. int
  5780. main ()
  5781. {
  5782. return SSL_library_init ();
  5783. ;
  5784. return 0;
  5785. }
  5786. _ACEOF
  5787. rm -f conftest.$ac_objext conftest$ac_exeext
  5788. if { (ac_try="$ac_link"
  5789. case "(($ac_try" in
  5790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5791. *) ac_try_echo=$ac_try;;
  5792. esac
  5793. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5794. (eval "$ac_link") 2>conftest.er1
  5795. ac_status=$?
  5796. grep -v '^ *+' conftest.er1 >conftest.err
  5797. rm -f conftest.er1
  5798. cat conftest.err >&5
  5799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5800. (exit $ac_status); } && {
  5801. test -z "$ac_cxx_werror_flag" ||
  5802. test ! -s conftest.err
  5803. } && test -s conftest$ac_exeext &&
  5804. $as_test_x conftest$ac_exeext; then
  5805. ac_cv_lib_ssl_SSL_library_init=yes
  5806. else
  5807. echo "$as_me: failed program was:" >&5
  5808. sed 's/^/| /' conftest.$ac_ext >&5
  5809. ac_cv_lib_ssl_SSL_library_init=no
  5810. fi
  5811. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5812. conftest$ac_exeext conftest.$ac_ext
  5813. LIBS=$ac_check_lib_save_LIBS
  5814. fi
  5815. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5816. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5817. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5818. have_openssl=yes; LIBS="-lssl $LIBS"
  5819. fi
  5820. if test "x$have_openssl" = "xyes"; then
  5821. have_openssl=no
  5822. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5823. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5824. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5825. echo $ECHO_N "(cached) $ECHO_C" >&6
  5826. else
  5827. ac_check_lib_save_LIBS=$LIBS
  5828. LIBS="-lcrypto $LIBS"
  5829. cat >conftest.$ac_ext <<_ACEOF
  5830. /* confdefs.h. */
  5831. _ACEOF
  5832. cat confdefs.h >>conftest.$ac_ext
  5833. cat >>conftest.$ac_ext <<_ACEOF
  5834. /* end confdefs.h. */
  5835. int
  5836. main ()
  5837. {
  5838. return main ();
  5839. ;
  5840. return 0;
  5841. }
  5842. _ACEOF
  5843. rm -f conftest.$ac_objext conftest$ac_exeext
  5844. if { (ac_try="$ac_link"
  5845. case "(($ac_try" in
  5846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5847. *) ac_try_echo=$ac_try;;
  5848. esac
  5849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5850. (eval "$ac_link") 2>conftest.er1
  5851. ac_status=$?
  5852. grep -v '^ *+' conftest.er1 >conftest.err
  5853. rm -f conftest.er1
  5854. cat conftest.err >&5
  5855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5856. (exit $ac_status); } && {
  5857. test -z "$ac_cxx_werror_flag" ||
  5858. test ! -s conftest.err
  5859. } && test -s conftest$ac_exeext &&
  5860. $as_test_x conftest$ac_exeext; then
  5861. ac_cv_lib_crypto_main=yes
  5862. else
  5863. echo "$as_me: failed program was:" >&5
  5864. sed 's/^/| /' conftest.$ac_ext >&5
  5865. ac_cv_lib_crypto_main=no
  5866. fi
  5867. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5868. conftest$ac_exeext conftest.$ac_ext
  5869. LIBS=$ac_check_lib_save_LIBS
  5870. fi
  5871. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  5872. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  5873. if test $ac_cv_lib_crypto_main = yes; then
  5874. have_openssl=yes; LIBS="-lcrypto $LIBS"
  5875. fi
  5876. if test "x$have_openssl" = "xyes"; then
  5877. cat >>confdefs.h <<\_ACEOF
  5878. #define HAVE_LIBSSL 1
  5879. _ACEOF
  5880. for ac_func in EVP_DigestInit_ex
  5881. do
  5882. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5883. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5884. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5885. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5886. echo $ECHO_N "(cached) $ECHO_C" >&6
  5887. else
  5888. cat >conftest.$ac_ext <<_ACEOF
  5889. /* confdefs.h. */
  5890. _ACEOF
  5891. cat confdefs.h >>conftest.$ac_ext
  5892. cat >>conftest.$ac_ext <<_ACEOF
  5893. /* end confdefs.h. */
  5894. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5895. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5896. #define $ac_func innocuous_$ac_func
  5897. /* System header to define __stub macros and hopefully few prototypes,
  5898. which can conflict with char $ac_func (); below.
  5899. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5900. <limits.h> exists even on freestanding compilers. */
  5901. #ifdef __STDC__
  5902. # include <limits.h>
  5903. #else
  5904. # include <assert.h>
  5905. #endif
  5906. #undef $ac_func
  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 $ac_func ();
  5914. /* The GNU C library defines this for functions which it implements
  5915. to always fail with ENOSYS. Some functions are actually named
  5916. something starting with __ and the normal name is an alias. */
  5917. #if defined __stub_$ac_func || defined __stub___$ac_func
  5918. choke me
  5919. #endif
  5920. int
  5921. main ()
  5922. {
  5923. return $ac_func ();
  5924. ;
  5925. return 0;
  5926. }
  5927. _ACEOF
  5928. rm -f conftest.$ac_objext conftest$ac_exeext
  5929. if { (ac_try="$ac_link"
  5930. case "(($ac_try" in
  5931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5932. *) ac_try_echo=$ac_try;;
  5933. esac
  5934. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5935. (eval "$ac_link") 2>conftest.er1
  5936. ac_status=$?
  5937. grep -v '^ *+' conftest.er1 >conftest.err
  5938. rm -f conftest.er1
  5939. cat conftest.err >&5
  5940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5941. (exit $ac_status); } && {
  5942. test -z "$ac_cxx_werror_flag" ||
  5943. test ! -s conftest.err
  5944. } && test -s conftest$ac_exeext &&
  5945. $as_test_x conftest$ac_exeext; then
  5946. eval "$as_ac_var=yes"
  5947. else
  5948. echo "$as_me: failed program was:" >&5
  5949. sed 's/^/| /' conftest.$ac_ext >&5
  5950. eval "$as_ac_var=no"
  5951. fi
  5952. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5953. conftest$ac_exeext conftest.$ac_ext
  5954. fi
  5955. ac_res=`eval echo '${'$as_ac_var'}'`
  5956. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5957. echo "${ECHO_T}$ac_res" >&6; }
  5958. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5959. cat >>confdefs.h <<_ACEOF
  5960. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5961. _ACEOF
  5962. have_digestinit_ex=yes
  5963. fi
  5964. done
  5965. if test "x$have_digestinit_ex" = "x"; then
  5966. cat >>confdefs.h <<\_ACEOF
  5967. #define HAVE_OLD_LIBSSL 1
  5968. _ACEOF
  5969. fi
  5970. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  5971. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  5972. for ac_func in EVP_sha256
  5973. do
  5974. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5975. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5976. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5977. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5978. echo $ECHO_N "(cached) $ECHO_C" >&6
  5979. else
  5980. cat >conftest.$ac_ext <<_ACEOF
  5981. /* confdefs.h. */
  5982. _ACEOF
  5983. cat confdefs.h >>conftest.$ac_ext
  5984. cat >>conftest.$ac_ext <<_ACEOF
  5985. /* end confdefs.h. */
  5986. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5987. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5988. #define $ac_func innocuous_$ac_func
  5989. /* System header to define __stub macros and hopefully few prototypes,
  5990. which can conflict with char $ac_func (); below.
  5991. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5992. <limits.h> exists even on freestanding compilers. */
  5993. #ifdef __STDC__
  5994. # include <limits.h>
  5995. #else
  5996. # include <assert.h>
  5997. #endif
  5998. #undef $ac_func
  5999. /* Override any GCC internal prototype to avoid an error.
  6000. Use char because int might match the return type of a GCC
  6001. builtin and then its argument prototype would still apply. */
  6002. #ifdef __cplusplus
  6003. extern "C"
  6004. #endif
  6005. char $ac_func ();
  6006. /* The GNU C library defines this for functions which it implements
  6007. to always fail with ENOSYS. Some functions are actually named
  6008. something starting with __ and the normal name is an alias. */
  6009. #if defined __stub_$ac_func || defined __stub___$ac_func
  6010. choke me
  6011. #endif
  6012. int
  6013. main ()
  6014. {
  6015. return $ac_func ();
  6016. ;
  6017. return 0;
  6018. }
  6019. _ACEOF
  6020. rm -f conftest.$ac_objext conftest$ac_exeext
  6021. if { (ac_try="$ac_link"
  6022. case "(($ac_try" in
  6023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6024. *) ac_try_echo=$ac_try;;
  6025. esac
  6026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6027. (eval "$ac_link") 2>conftest.er1
  6028. ac_status=$?
  6029. grep -v '^ *+' conftest.er1 >conftest.err
  6030. rm -f conftest.er1
  6031. cat conftest.err >&5
  6032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6033. (exit $ac_status); } && {
  6034. test -z "$ac_cxx_werror_flag" ||
  6035. test ! -s conftest.err
  6036. } && test -s conftest$ac_exeext &&
  6037. $as_test_x conftest$ac_exeext; then
  6038. eval "$as_ac_var=yes"
  6039. else
  6040. echo "$as_me: failed program was:" >&5
  6041. sed 's/^/| /' conftest.$ac_ext >&5
  6042. eval "$as_ac_var=no"
  6043. fi
  6044. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6045. conftest$ac_exeext conftest.$ac_ext
  6046. fi
  6047. ac_res=`eval echo '${'$as_ac_var'}'`
  6048. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6049. echo "${ECHO_T}$ac_res" >&6; }
  6050. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6051. cat >>confdefs.h <<_ACEOF
  6052. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6053. _ACEOF
  6054. fi
  6055. done
  6056. fi
  6057. fi
  6058. LIBS=$LIBS_save
  6059. CPPFLAGS=$CPPFLAGS_save
  6060. fi
  6061. if test "x$with_libcares" = "xyes"; then
  6062. # Check whether --with-libcares-prefix was given.
  6063. if test "${with_libcares_prefix+set}" = set; then
  6064. withval=$with_libcares_prefix; libcares_prefix=$withval
  6065. else
  6066. libcares_prefix=""
  6067. fi
  6068. if test "x$libcares_prefix" = "x"; then
  6069. libcares_prefix="/usr"
  6070. fi
  6071. libcares_prefix_lib=$libcares_prefix/lib
  6072. libcares_prefix_include=$libcares_prefix/include
  6073. LIBS_save=$LIBS
  6074. CPPFLAGS_save=$CPPFLAGS
  6075. LIBS="-L$libcares_prefix_lib $LIBS"
  6076. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6077. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6078. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  6079. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6080. echo $ECHO_N "(cached) $ECHO_C" >&6
  6081. else
  6082. ac_check_lib_save_LIBS=$LIBS
  6083. LIBS="-lcares $LIBS"
  6084. cat >conftest.$ac_ext <<_ACEOF
  6085. /* confdefs.h. */
  6086. _ACEOF
  6087. cat confdefs.h >>conftest.$ac_ext
  6088. cat >>conftest.$ac_ext <<_ACEOF
  6089. /* end confdefs.h. */
  6090. /* Override any GCC internal prototype to avoid an error.
  6091. Use char because int might match the return type of a GCC
  6092. builtin and then its argument prototype would still apply. */
  6093. #ifdef __cplusplus
  6094. extern "C"
  6095. #endif
  6096. char ares_init ();
  6097. int
  6098. main ()
  6099. {
  6100. return ares_init ();
  6101. ;
  6102. return 0;
  6103. }
  6104. _ACEOF
  6105. rm -f conftest.$ac_objext conftest$ac_exeext
  6106. if { (ac_try="$ac_link"
  6107. case "(($ac_try" in
  6108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6109. *) ac_try_echo=$ac_try;;
  6110. esac
  6111. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6112. (eval "$ac_link") 2>conftest.er1
  6113. ac_status=$?
  6114. grep -v '^ *+' conftest.er1 >conftest.err
  6115. rm -f conftest.er1
  6116. cat conftest.err >&5
  6117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6118. (exit $ac_status); } && {
  6119. test -z "$ac_cxx_werror_flag" ||
  6120. test ! -s conftest.err
  6121. } && test -s conftest$ac_exeext &&
  6122. $as_test_x conftest$ac_exeext; then
  6123. ac_cv_lib_cares_ares_init=yes
  6124. else
  6125. echo "$as_me: failed program was:" >&5
  6126. sed 's/^/| /' conftest.$ac_ext >&5
  6127. ac_cv_lib_cares_ares_init=no
  6128. fi
  6129. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6130. conftest$ac_exeext conftest.$ac_ext
  6131. LIBS=$ac_check_lib_save_LIBS
  6132. fi
  6133. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6134. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6135. if test $ac_cv_lib_cares_ares_init = yes; then
  6136. have_libcares=yes
  6137. fi
  6138. if test "x$have_libcares" = "xyes"; then
  6139. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6140. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6141. cat >conftest.$ac_ext <<_ACEOF
  6142. /* confdefs.h. */
  6143. _ACEOF
  6144. cat confdefs.h >>conftest.$ac_ext
  6145. cat >>conftest.$ac_ext <<_ACEOF
  6146. /* end confdefs.h. */
  6147. #include <ares.h>
  6148. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6149. int
  6150. main ()
  6151. {
  6152. ares_channel channel;
  6153. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6154. ;
  6155. return 0;
  6156. }
  6157. _ACEOF
  6158. rm -f conftest.$ac_objext
  6159. if { (ac_try="$ac_compile"
  6160. case "(($ac_try" in
  6161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6162. *) ac_try_echo=$ac_try;;
  6163. esac
  6164. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6165. (eval "$ac_compile") 2>conftest.er1
  6166. ac_status=$?
  6167. grep -v '^ *+' conftest.er1 >conftest.err
  6168. rm -f conftest.er1
  6169. cat conftest.err >&5
  6170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6171. (exit $ac_status); } && {
  6172. test -z "$ac_cxx_werror_flag" ||
  6173. test ! -s conftest.err
  6174. } && test -s conftest.$ac_objext; then
  6175. have_libcares1_5=yes
  6176. else
  6177. echo "$as_me: failed program was:" >&5
  6178. sed 's/^/| /' conftest.$ac_ext >&5
  6179. have_libcares1_5=no
  6180. fi
  6181. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6182. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6183. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6184. if test "x$have_libcares1_5" = "xyes"; then
  6185. cat >>confdefs.h <<\_ACEOF
  6186. #define HAVE_LIBCARES1_5 1
  6187. _ACEOF
  6188. fi
  6189. cat >>confdefs.h <<\_ACEOF
  6190. #define HAVE_LIBCARES 1
  6191. _ACEOF
  6192. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6193. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6194. fi
  6195. LIBS=$LIBS_save
  6196. CPPFLAGS=$CPPFLAGS_save
  6197. fi
  6198. if test "x$have_libcares" = "x"; then
  6199. if test "x$with_libares" = "xyes"; then
  6200. # Check whether --with-libares-prefix was given.
  6201. if test "${with_libares_prefix+set}" = set; then
  6202. withval=$with_libares_prefix; libares_prefix=$withval
  6203. else
  6204. libares_prefix=""
  6205. fi
  6206. if test "x$libares_prefix" = "x"; then
  6207. libares_prefix="/usr"
  6208. fi
  6209. libares_prefix_lib=$libares_prefix/lib
  6210. libares_prefix_include=$libares_prefix/include
  6211. LIBS_save=$LIBS
  6212. CPPFLAGS_save=$CPPFLAGS
  6213. LIBS="-L$libares_prefix_lib $LIBS"
  6214. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  6215. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  6216. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  6217. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  6218. echo $ECHO_N "(cached) $ECHO_C" >&6
  6219. else
  6220. ac_check_lib_save_LIBS=$LIBS
  6221. LIBS="-lares $LIBS"
  6222. cat >conftest.$ac_ext <<_ACEOF
  6223. /* confdefs.h. */
  6224. _ACEOF
  6225. cat confdefs.h >>conftest.$ac_ext
  6226. cat >>conftest.$ac_ext <<_ACEOF
  6227. /* end confdefs.h. */
  6228. /* Override any GCC internal prototype to avoid an error.
  6229. Use char because int might match the return type of a GCC
  6230. builtin and then its argument prototype would still apply. */
  6231. #ifdef __cplusplus
  6232. extern "C"
  6233. #endif
  6234. char ares_init ();
  6235. int
  6236. main ()
  6237. {
  6238. return ares_init ();
  6239. ;
  6240. return 0;
  6241. }
  6242. _ACEOF
  6243. rm -f conftest.$ac_objext conftest$ac_exeext
  6244. if { (ac_try="$ac_link"
  6245. case "(($ac_try" in
  6246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6247. *) ac_try_echo=$ac_try;;
  6248. esac
  6249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6250. (eval "$ac_link") 2>conftest.er1
  6251. ac_status=$?
  6252. grep -v '^ *+' conftest.er1 >conftest.err
  6253. rm -f conftest.er1
  6254. cat conftest.err >&5
  6255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6256. (exit $ac_status); } && {
  6257. test -z "$ac_cxx_werror_flag" ||
  6258. test ! -s conftest.err
  6259. } && test -s conftest$ac_exeext &&
  6260. $as_test_x conftest$ac_exeext; then
  6261. ac_cv_lib_ares_ares_init=yes
  6262. else
  6263. echo "$as_me: failed program was:" >&5
  6264. sed 's/^/| /' conftest.$ac_ext >&5
  6265. ac_cv_lib_ares_ares_init=no
  6266. fi
  6267. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6268. conftest$ac_exeext conftest.$ac_ext
  6269. LIBS=$ac_check_lib_save_LIBS
  6270. fi
  6271. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  6272. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  6273. if test $ac_cv_lib_ares_ares_init = yes; then
  6274. have_libares=yes
  6275. fi
  6276. if test "x$have_libares" = "xyes"; then
  6277. cat >>confdefs.h <<\_ACEOF
  6278. #define HAVE_LIBARES 1
  6279. _ACEOF
  6280. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  6281. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  6282. fi
  6283. LIBS=$LIBS_save
  6284. CPPFLAGS=$CPPFLAGS_save
  6285. fi
  6286. fi
  6287. # Check availability of libz
  6288. if test "x$with_libz" = "xyes"; then
  6289. # Check whether --with-libz-prefix was given.
  6290. if test "${with_libz_prefix+set}" = set; then
  6291. withval=$with_libz_prefix; libz_prefix=$withval
  6292. else
  6293. libz_prefix=""
  6294. fi
  6295. if test "x$libz_prefix" = "x"; then
  6296. libz_prefix="/usr"
  6297. fi
  6298. libz_prefix_lib=$libz_prefix/lib
  6299. libz_prefix_include=$libz_prefix/include
  6300. LIBS_save=$LIBS
  6301. CPPFLAGS_save=$CPPFLAGS
  6302. LIBS="-L$libz_prefix_lib $LIBS"
  6303. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6304. { echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6305. echo $ECHO_N "checking for zlibVersion in -lz... $ECHO_C" >&6; }
  6306. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6307. echo $ECHO_N "(cached) $ECHO_C" >&6
  6308. else
  6309. ac_check_lib_save_LIBS=$LIBS
  6310. LIBS="-lz $LIBS"
  6311. cat >conftest.$ac_ext <<_ACEOF
  6312. /* confdefs.h. */
  6313. _ACEOF
  6314. cat confdefs.h >>conftest.$ac_ext
  6315. cat >>conftest.$ac_ext <<_ACEOF
  6316. /* end confdefs.h. */
  6317. /* Override any GCC internal prototype to avoid an error.
  6318. Use char because int might match the return type of a GCC
  6319. builtin and then its argument prototype would still apply. */
  6320. #ifdef __cplusplus
  6321. extern "C"
  6322. #endif
  6323. char zlibVersion ();
  6324. int
  6325. main ()
  6326. {
  6327. return zlibVersion ();
  6328. ;
  6329. return 0;
  6330. }
  6331. _ACEOF
  6332. rm -f conftest.$ac_objext conftest$ac_exeext
  6333. if { (ac_try="$ac_link"
  6334. case "(($ac_try" in
  6335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6336. *) ac_try_echo=$ac_try;;
  6337. esac
  6338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6339. (eval "$ac_link") 2>conftest.er1
  6340. ac_status=$?
  6341. grep -v '^ *+' conftest.er1 >conftest.err
  6342. rm -f conftest.er1
  6343. cat conftest.err >&5
  6344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6345. (exit $ac_status); } && {
  6346. test -z "$ac_cxx_werror_flag" ||
  6347. test ! -s conftest.err
  6348. } && test -s conftest$ac_exeext &&
  6349. $as_test_x conftest$ac_exeext; then
  6350. ac_cv_lib_z_zlibVersion=yes
  6351. else
  6352. echo "$as_me: failed program was:" >&5
  6353. sed 's/^/| /' conftest.$ac_ext >&5
  6354. ac_cv_lib_z_zlibVersion=no
  6355. fi
  6356. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6357. conftest$ac_exeext conftest.$ac_ext
  6358. LIBS=$ac_check_lib_save_LIBS
  6359. fi
  6360. { echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6361. echo "${ECHO_T}$ac_cv_lib_z_zlibVersion" >&6; }
  6362. if test $ac_cv_lib_z_zlibVersion = yes; then
  6363. have_libz=yes
  6364. fi
  6365. if test "x$have_libz" = "xyes"; then
  6366. cat >>confdefs.h <<\_ACEOF
  6367. #define HAVE_LIBZ 1
  6368. _ACEOF
  6369. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6370. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6371. fi
  6372. LIBS=$LIBS_save
  6373. CPPFLAGS=$CPPFLAGS_save
  6374. fi
  6375. # Define variables based on the result of the checks for libraries.
  6376. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6377. cat >>confdefs.h <<\_ACEOF
  6378. #define ENABLE_SSL 1
  6379. _ACEOF
  6380. fi
  6381. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6382. cat >>confdefs.h <<\_ACEOF
  6383. #define ENABLE_MESSAGE_DIGEST 1
  6384. _ACEOF
  6385. if true; then
  6386. ENABLE_MESSAGE_DIGEST_TRUE=
  6387. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6388. else
  6389. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6390. ENABLE_MESSAGE_DIGEST_FALSE=
  6391. fi
  6392. enable_message_digest=yes
  6393. else
  6394. if false; then
  6395. ENABLE_MESSAGE_DIGEST_TRUE=
  6396. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6397. else
  6398. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6399. ENABLE_MESSAGE_DIGEST_FALSE=
  6400. fi
  6401. fi
  6402. if test "x$enable_bittorrent" = "xyes" &&
  6403. test "x$enable_message_digest" = "xyes"; then
  6404. cat >>confdefs.h <<\_ACEOF
  6405. #define ENABLE_BITTORRENT 1
  6406. _ACEOF
  6407. if true; then
  6408. ENABLE_BITTORRENT_TRUE=
  6409. ENABLE_BITTORRENT_FALSE='#'
  6410. else
  6411. ENABLE_BITTORRENT_TRUE='#'
  6412. ENABLE_BITTORRENT_FALSE=
  6413. fi
  6414. else
  6415. enable_bittorrent=no
  6416. if false; then
  6417. ENABLE_BITTORRENT_TRUE=
  6418. ENABLE_BITTORRENT_FALSE='#'
  6419. else
  6420. ENABLE_BITTORRENT_TRUE='#'
  6421. ENABLE_BITTORRENT_FALSE=
  6422. fi
  6423. fi
  6424. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6425. test "x$enable_metalink" = "xyes"; then
  6426. cat >>confdefs.h <<\_ACEOF
  6427. #define ENABLE_METALINK 1
  6428. _ACEOF
  6429. if true; then
  6430. ENABLE_METALINK_TRUE=
  6431. ENABLE_METALINK_FALSE='#'
  6432. else
  6433. ENABLE_METALINK_TRUE='#'
  6434. ENABLE_METALINK_FALSE=
  6435. fi
  6436. else
  6437. enable_metalink=no
  6438. if false; then
  6439. ENABLE_METALINK_TRUE=
  6440. ENABLE_METALINK_FALSE='#'
  6441. else
  6442. ENABLE_METALINK_TRUE='#'
  6443. ENABLE_METALINK_FALSE=
  6444. fi
  6445. fi
  6446. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6447. ENABLE_LIBXML2_TRUE=
  6448. ENABLE_LIBXML2_FALSE='#'
  6449. else
  6450. ENABLE_LIBXML2_TRUE='#'
  6451. ENABLE_LIBXML2_FALSE=
  6452. fi
  6453. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6454. ENABLE_LIBEXPAT_TRUE=
  6455. ENABLE_LIBEXPAT_FALSE='#'
  6456. else
  6457. ENABLE_LIBEXPAT_TRUE='#'
  6458. ENABLE_LIBEXPAT_FALSE=
  6459. fi
  6460. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6461. cat >>confdefs.h <<\_ACEOF
  6462. #define ENABLE_ASYNC_DNS 1
  6463. _ACEOF
  6464. if true; then
  6465. ENABLE_ASYNC_DNS_TRUE=
  6466. ENABLE_ASYNC_DNS_FALSE='#'
  6467. else
  6468. ENABLE_ASYNC_DNS_TRUE='#'
  6469. ENABLE_ASYNC_DNS_FALSE=
  6470. fi
  6471. else
  6472. if false; then
  6473. ENABLE_ASYNC_DNS_TRUE=
  6474. ENABLE_ASYNC_DNS_FALSE='#'
  6475. else
  6476. ENABLE_ASYNC_DNS_TRUE='#'
  6477. ENABLE_ASYNC_DNS_FALSE=
  6478. fi
  6479. fi
  6480. # Set conditional for libz
  6481. if test "x$have_libz" = "xyes"; then
  6482. HAVE_LIBZ_TRUE=
  6483. HAVE_LIBZ_FALSE='#'
  6484. else
  6485. HAVE_LIBZ_TRUE='#'
  6486. HAVE_LIBZ_FALSE=
  6487. fi
  6488. # Set conditional for sqlite3
  6489. if test "x$have_sqlite3" = "xyes"; then
  6490. HAVE_SQLITE3_TRUE=
  6491. HAVE_SQLITE3_FALSE='#'
  6492. else
  6493. HAVE_SQLITE3_TRUE='#'
  6494. HAVE_SQLITE3_FALSE=
  6495. fi
  6496. # Checks for header files.
  6497. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6498. # for constant arguments. Useless!
  6499. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6500. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6501. if test "${ac_cv_working_alloca_h+set}" = set; then
  6502. echo $ECHO_N "(cached) $ECHO_C" >&6
  6503. else
  6504. cat >conftest.$ac_ext <<_ACEOF
  6505. /* confdefs.h. */
  6506. _ACEOF
  6507. cat confdefs.h >>conftest.$ac_ext
  6508. cat >>conftest.$ac_ext <<_ACEOF
  6509. /* end confdefs.h. */
  6510. #include <alloca.h>
  6511. int
  6512. main ()
  6513. {
  6514. char *p = (char *) alloca (2 * sizeof (int));
  6515. if (p) return 0;
  6516. ;
  6517. return 0;
  6518. }
  6519. _ACEOF
  6520. rm -f conftest.$ac_objext conftest$ac_exeext
  6521. if { (ac_try="$ac_link"
  6522. case "(($ac_try" in
  6523. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6524. *) ac_try_echo=$ac_try;;
  6525. esac
  6526. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6527. (eval "$ac_link") 2>conftest.er1
  6528. ac_status=$?
  6529. grep -v '^ *+' conftest.er1 >conftest.err
  6530. rm -f conftest.er1
  6531. cat conftest.err >&5
  6532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6533. (exit $ac_status); } && {
  6534. test -z "$ac_cxx_werror_flag" ||
  6535. test ! -s conftest.err
  6536. } && test -s conftest$ac_exeext &&
  6537. $as_test_x conftest$ac_exeext; then
  6538. ac_cv_working_alloca_h=yes
  6539. else
  6540. echo "$as_me: failed program was:" >&5
  6541. sed 's/^/| /' conftest.$ac_ext >&5
  6542. ac_cv_working_alloca_h=no
  6543. fi
  6544. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6545. conftest$ac_exeext conftest.$ac_ext
  6546. fi
  6547. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6548. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6549. if test $ac_cv_working_alloca_h = yes; then
  6550. cat >>confdefs.h <<\_ACEOF
  6551. #define HAVE_ALLOCA_H 1
  6552. _ACEOF
  6553. fi
  6554. { echo "$as_me:$LINENO: checking for alloca" >&5
  6555. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6556. if test "${ac_cv_func_alloca_works+set}" = set; then
  6557. echo $ECHO_N "(cached) $ECHO_C" >&6
  6558. else
  6559. cat >conftest.$ac_ext <<_ACEOF
  6560. /* confdefs.h. */
  6561. _ACEOF
  6562. cat confdefs.h >>conftest.$ac_ext
  6563. cat >>conftest.$ac_ext <<_ACEOF
  6564. /* end confdefs.h. */
  6565. #ifdef __GNUC__
  6566. # define alloca __builtin_alloca
  6567. #else
  6568. # ifdef _MSC_VER
  6569. # include <malloc.h>
  6570. # define alloca _alloca
  6571. # else
  6572. # ifdef HAVE_ALLOCA_H
  6573. # include <alloca.h>
  6574. # else
  6575. # ifdef _AIX
  6576. #pragma alloca
  6577. # else
  6578. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6579. char *alloca ();
  6580. # endif
  6581. # endif
  6582. # endif
  6583. # endif
  6584. #endif
  6585. int
  6586. main ()
  6587. {
  6588. char *p = (char *) alloca (1);
  6589. if (p) return 0;
  6590. ;
  6591. return 0;
  6592. }
  6593. _ACEOF
  6594. rm -f conftest.$ac_objext conftest$ac_exeext
  6595. if { (ac_try="$ac_link"
  6596. case "(($ac_try" in
  6597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6598. *) ac_try_echo=$ac_try;;
  6599. esac
  6600. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6601. (eval "$ac_link") 2>conftest.er1
  6602. ac_status=$?
  6603. grep -v '^ *+' conftest.er1 >conftest.err
  6604. rm -f conftest.er1
  6605. cat conftest.err >&5
  6606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6607. (exit $ac_status); } && {
  6608. test -z "$ac_cxx_werror_flag" ||
  6609. test ! -s conftest.err
  6610. } && test -s conftest$ac_exeext &&
  6611. $as_test_x conftest$ac_exeext; then
  6612. ac_cv_func_alloca_works=yes
  6613. else
  6614. echo "$as_me: failed program was:" >&5
  6615. sed 's/^/| /' conftest.$ac_ext >&5
  6616. ac_cv_func_alloca_works=no
  6617. fi
  6618. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6619. conftest$ac_exeext conftest.$ac_ext
  6620. fi
  6621. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6622. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6623. if test $ac_cv_func_alloca_works = yes; then
  6624. cat >>confdefs.h <<\_ACEOF
  6625. #define HAVE_ALLOCA 1
  6626. _ACEOF
  6627. else
  6628. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6629. # that cause trouble. Some versions do not even contain alloca or
  6630. # contain a buggy version. If you still want to use their alloca,
  6631. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6632. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6633. cat >>confdefs.h <<\_ACEOF
  6634. #define C_ALLOCA 1
  6635. _ACEOF
  6636. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6637. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6638. if test "${ac_cv_os_cray+set}" = set; then
  6639. echo $ECHO_N "(cached) $ECHO_C" >&6
  6640. else
  6641. cat >conftest.$ac_ext <<_ACEOF
  6642. /* confdefs.h. */
  6643. _ACEOF
  6644. cat confdefs.h >>conftest.$ac_ext
  6645. cat >>conftest.$ac_ext <<_ACEOF
  6646. /* end confdefs.h. */
  6647. #if defined CRAY && ! defined CRAY2
  6648. webecray
  6649. #else
  6650. wenotbecray
  6651. #endif
  6652. _ACEOF
  6653. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6654. $EGREP "webecray" >/dev/null 2>&1; then
  6655. ac_cv_os_cray=yes
  6656. else
  6657. ac_cv_os_cray=no
  6658. fi
  6659. rm -f conftest*
  6660. fi
  6661. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6662. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6663. if test $ac_cv_os_cray = yes; then
  6664. for ac_func in _getb67 GETB67 getb67; do
  6665. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6666. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6667. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6668. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6669. echo $ECHO_N "(cached) $ECHO_C" >&6
  6670. else
  6671. cat >conftest.$ac_ext <<_ACEOF
  6672. /* confdefs.h. */
  6673. _ACEOF
  6674. cat confdefs.h >>conftest.$ac_ext
  6675. cat >>conftest.$ac_ext <<_ACEOF
  6676. /* end confdefs.h. */
  6677. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6678. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6679. #define $ac_func innocuous_$ac_func
  6680. /* System header to define __stub macros and hopefully few prototypes,
  6681. which can conflict with char $ac_func (); below.
  6682. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6683. <limits.h> exists even on freestanding compilers. */
  6684. #ifdef __STDC__
  6685. # include <limits.h>
  6686. #else
  6687. # include <assert.h>
  6688. #endif
  6689. #undef $ac_func
  6690. /* Override any GCC internal prototype to avoid an error.
  6691. Use char because int might match the return type of a GCC
  6692. builtin and then its argument prototype would still apply. */
  6693. #ifdef __cplusplus
  6694. extern "C"
  6695. #endif
  6696. char $ac_func ();
  6697. /* The GNU C library defines this for functions which it implements
  6698. to always fail with ENOSYS. Some functions are actually named
  6699. something starting with __ and the normal name is an alias. */
  6700. #if defined __stub_$ac_func || defined __stub___$ac_func
  6701. choke me
  6702. #endif
  6703. int
  6704. main ()
  6705. {
  6706. return $ac_func ();
  6707. ;
  6708. return 0;
  6709. }
  6710. _ACEOF
  6711. rm -f conftest.$ac_objext conftest$ac_exeext
  6712. if { (ac_try="$ac_link"
  6713. case "(($ac_try" in
  6714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6715. *) ac_try_echo=$ac_try;;
  6716. esac
  6717. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6718. (eval "$ac_link") 2>conftest.er1
  6719. ac_status=$?
  6720. grep -v '^ *+' conftest.er1 >conftest.err
  6721. rm -f conftest.er1
  6722. cat conftest.err >&5
  6723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6724. (exit $ac_status); } && {
  6725. test -z "$ac_cxx_werror_flag" ||
  6726. test ! -s conftest.err
  6727. } && test -s conftest$ac_exeext &&
  6728. $as_test_x conftest$ac_exeext; then
  6729. eval "$as_ac_var=yes"
  6730. else
  6731. echo "$as_me: failed program was:" >&5
  6732. sed 's/^/| /' conftest.$ac_ext >&5
  6733. eval "$as_ac_var=no"
  6734. fi
  6735. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6736. conftest$ac_exeext conftest.$ac_ext
  6737. fi
  6738. ac_res=`eval echo '${'$as_ac_var'}'`
  6739. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6740. echo "${ECHO_T}$ac_res" >&6; }
  6741. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6742. cat >>confdefs.h <<_ACEOF
  6743. #define CRAY_STACKSEG_END $ac_func
  6744. _ACEOF
  6745. break
  6746. fi
  6747. done
  6748. fi
  6749. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6750. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6751. if test "${ac_cv_c_stack_direction+set}" = set; then
  6752. echo $ECHO_N "(cached) $ECHO_C" >&6
  6753. else
  6754. if test "$cross_compiling" = yes; then
  6755. ac_cv_c_stack_direction=0
  6756. else
  6757. cat >conftest.$ac_ext <<_ACEOF
  6758. /* confdefs.h. */
  6759. _ACEOF
  6760. cat confdefs.h >>conftest.$ac_ext
  6761. cat >>conftest.$ac_ext <<_ACEOF
  6762. /* end confdefs.h. */
  6763. $ac_includes_default
  6764. int
  6765. find_stack_direction ()
  6766. {
  6767. static char *addr = 0;
  6768. auto char dummy;
  6769. if (addr == 0)
  6770. {
  6771. addr = &dummy;
  6772. return find_stack_direction ();
  6773. }
  6774. else
  6775. return (&dummy > addr) ? 1 : -1;
  6776. }
  6777. int
  6778. main ()
  6779. {
  6780. return find_stack_direction () < 0;
  6781. }
  6782. _ACEOF
  6783. rm -f conftest$ac_exeext
  6784. if { (ac_try="$ac_link"
  6785. case "(($ac_try" in
  6786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6787. *) ac_try_echo=$ac_try;;
  6788. esac
  6789. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6790. (eval "$ac_link") 2>&5
  6791. ac_status=$?
  6792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6793. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6794. { (case "(($ac_try" in
  6795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6796. *) ac_try_echo=$ac_try;;
  6797. esac
  6798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6799. (eval "$ac_try") 2>&5
  6800. ac_status=$?
  6801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6802. (exit $ac_status); }; }; then
  6803. ac_cv_c_stack_direction=1
  6804. else
  6805. echo "$as_me: program exited with status $ac_status" >&5
  6806. echo "$as_me: failed program was:" >&5
  6807. sed 's/^/| /' conftest.$ac_ext >&5
  6808. ( exit $ac_status )
  6809. ac_cv_c_stack_direction=-1
  6810. fi
  6811. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6812. fi
  6813. fi
  6814. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6815. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6816. cat >>confdefs.h <<_ACEOF
  6817. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6818. _ACEOF
  6819. fi
  6820. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6821. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6822. if test "${ac_cv_header_stdc+set}" = set; then
  6823. echo $ECHO_N "(cached) $ECHO_C" >&6
  6824. else
  6825. cat >conftest.$ac_ext <<_ACEOF
  6826. /* confdefs.h. */
  6827. _ACEOF
  6828. cat confdefs.h >>conftest.$ac_ext
  6829. cat >>conftest.$ac_ext <<_ACEOF
  6830. /* end confdefs.h. */
  6831. #include <stdlib.h>
  6832. #include <stdarg.h>
  6833. #include <string.h>
  6834. #include <float.h>
  6835. int
  6836. main ()
  6837. {
  6838. ;
  6839. return 0;
  6840. }
  6841. _ACEOF
  6842. rm -f conftest.$ac_objext
  6843. if { (ac_try="$ac_compile"
  6844. case "(($ac_try" in
  6845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6846. *) ac_try_echo=$ac_try;;
  6847. esac
  6848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6849. (eval "$ac_compile") 2>conftest.er1
  6850. ac_status=$?
  6851. grep -v '^ *+' conftest.er1 >conftest.err
  6852. rm -f conftest.er1
  6853. cat conftest.err >&5
  6854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6855. (exit $ac_status); } && {
  6856. test -z "$ac_cxx_werror_flag" ||
  6857. test ! -s conftest.err
  6858. } && test -s conftest.$ac_objext; then
  6859. ac_cv_header_stdc=yes
  6860. else
  6861. echo "$as_me: failed program was:" >&5
  6862. sed 's/^/| /' conftest.$ac_ext >&5
  6863. ac_cv_header_stdc=no
  6864. fi
  6865. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6866. if test $ac_cv_header_stdc = yes; then
  6867. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6868. cat >conftest.$ac_ext <<_ACEOF
  6869. /* confdefs.h. */
  6870. _ACEOF
  6871. cat confdefs.h >>conftest.$ac_ext
  6872. cat >>conftest.$ac_ext <<_ACEOF
  6873. /* end confdefs.h. */
  6874. #include <string.h>
  6875. _ACEOF
  6876. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6877. $EGREP "memchr" >/dev/null 2>&1; then
  6878. :
  6879. else
  6880. ac_cv_header_stdc=no
  6881. fi
  6882. rm -f conftest*
  6883. fi
  6884. if test $ac_cv_header_stdc = yes; then
  6885. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6886. cat >conftest.$ac_ext <<_ACEOF
  6887. /* confdefs.h. */
  6888. _ACEOF
  6889. cat confdefs.h >>conftest.$ac_ext
  6890. cat >>conftest.$ac_ext <<_ACEOF
  6891. /* end confdefs.h. */
  6892. #include <stdlib.h>
  6893. _ACEOF
  6894. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6895. $EGREP "free" >/dev/null 2>&1; then
  6896. :
  6897. else
  6898. ac_cv_header_stdc=no
  6899. fi
  6900. rm -f conftest*
  6901. fi
  6902. if test $ac_cv_header_stdc = yes; then
  6903. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6904. if test "$cross_compiling" = yes; then
  6905. :
  6906. else
  6907. cat >conftest.$ac_ext <<_ACEOF
  6908. /* confdefs.h. */
  6909. _ACEOF
  6910. cat confdefs.h >>conftest.$ac_ext
  6911. cat >>conftest.$ac_ext <<_ACEOF
  6912. /* end confdefs.h. */
  6913. #include <ctype.h>
  6914. #include <stdlib.h>
  6915. #if ((' ' & 0x0FF) == 0x020)
  6916. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6917. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6918. #else
  6919. # define ISLOWER(c) \
  6920. (('a' <= (c) && (c) <= 'i') \
  6921. || ('j' <= (c) && (c) <= 'r') \
  6922. || ('s' <= (c) && (c) <= 'z'))
  6923. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6924. #endif
  6925. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6926. int
  6927. main ()
  6928. {
  6929. int i;
  6930. for (i = 0; i < 256; i++)
  6931. if (XOR (islower (i), ISLOWER (i))
  6932. || toupper (i) != TOUPPER (i))
  6933. return 2;
  6934. return 0;
  6935. }
  6936. _ACEOF
  6937. rm -f conftest$ac_exeext
  6938. if { (ac_try="$ac_link"
  6939. case "(($ac_try" in
  6940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6941. *) ac_try_echo=$ac_try;;
  6942. esac
  6943. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6944. (eval "$ac_link") 2>&5
  6945. ac_status=$?
  6946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6947. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6948. { (case "(($ac_try" in
  6949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6950. *) ac_try_echo=$ac_try;;
  6951. esac
  6952. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6953. (eval "$ac_try") 2>&5
  6954. ac_status=$?
  6955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6956. (exit $ac_status); }; }; then
  6957. :
  6958. else
  6959. echo "$as_me: program exited with status $ac_status" >&5
  6960. echo "$as_me: failed program was:" >&5
  6961. sed 's/^/| /' conftest.$ac_ext >&5
  6962. ( exit $ac_status )
  6963. ac_cv_header_stdc=no
  6964. fi
  6965. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6966. fi
  6967. fi
  6968. fi
  6969. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6970. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  6971. if test $ac_cv_header_stdc = yes; then
  6972. cat >>confdefs.h <<\_ACEOF
  6973. #define STDC_HEADERS 1
  6974. _ACEOF
  6975. fi
  6976. for ac_header in winsock2.h \
  6977. ws2tcpip.h \
  6978. argz.h \
  6979. arpa/inet.h \
  6980. fcntl.h \
  6981. float.h \
  6982. inttypes.h \
  6983. io.h \
  6984. langinfo.h \
  6985. libintl.h \
  6986. limits.h \
  6987. locale.h \
  6988. malloc.h \
  6989. netdb.h \
  6990. netinet/in.h \
  6991. stddef.h \
  6992. stdint.h \
  6993. stdio_ext.h \
  6994. stdlib.h \
  6995. string.h \
  6996. strings.h \
  6997. sys/ioctl.h \
  6998. sys/param.h \
  6999. sys/socket.h \
  7000. sys/time.h \
  7001. termios.h \
  7002. unistd.h \
  7003. wchar.h
  7004. do
  7005. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7006. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7007. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7008. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7009. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7010. echo $ECHO_N "(cached) $ECHO_C" >&6
  7011. fi
  7012. ac_res=`eval echo '${'$as_ac_Header'}'`
  7013. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7014. echo "${ECHO_T}$ac_res" >&6; }
  7015. else
  7016. # Is the header compilable?
  7017. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7018. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7019. cat >conftest.$ac_ext <<_ACEOF
  7020. /* confdefs.h. */
  7021. _ACEOF
  7022. cat confdefs.h >>conftest.$ac_ext
  7023. cat >>conftest.$ac_ext <<_ACEOF
  7024. /* end confdefs.h. */
  7025. $ac_includes_default
  7026. #include <$ac_header>
  7027. _ACEOF
  7028. rm -f conftest.$ac_objext
  7029. if { (ac_try="$ac_compile"
  7030. case "(($ac_try" in
  7031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7032. *) ac_try_echo=$ac_try;;
  7033. esac
  7034. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7035. (eval "$ac_compile") 2>conftest.er1
  7036. ac_status=$?
  7037. grep -v '^ *+' conftest.er1 >conftest.err
  7038. rm -f conftest.er1
  7039. cat conftest.err >&5
  7040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7041. (exit $ac_status); } && {
  7042. test -z "$ac_cxx_werror_flag" ||
  7043. test ! -s conftest.err
  7044. } && test -s conftest.$ac_objext; then
  7045. ac_header_compiler=yes
  7046. else
  7047. echo "$as_me: failed program was:" >&5
  7048. sed 's/^/| /' conftest.$ac_ext >&5
  7049. ac_header_compiler=no
  7050. fi
  7051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7052. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7053. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7054. # Is the header present?
  7055. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7056. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7057. cat >conftest.$ac_ext <<_ACEOF
  7058. /* confdefs.h. */
  7059. _ACEOF
  7060. cat confdefs.h >>conftest.$ac_ext
  7061. cat >>conftest.$ac_ext <<_ACEOF
  7062. /* end confdefs.h. */
  7063. #include <$ac_header>
  7064. _ACEOF
  7065. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7066. case "(($ac_try" in
  7067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7068. *) ac_try_echo=$ac_try;;
  7069. esac
  7070. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7071. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7072. ac_status=$?
  7073. grep -v '^ *+' conftest.er1 >conftest.err
  7074. rm -f conftest.er1
  7075. cat conftest.err >&5
  7076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7077. (exit $ac_status); } >/dev/null && {
  7078. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7079. test ! -s conftest.err
  7080. }; then
  7081. ac_header_preproc=yes
  7082. else
  7083. echo "$as_me: failed program was:" >&5
  7084. sed 's/^/| /' conftest.$ac_ext >&5
  7085. ac_header_preproc=no
  7086. fi
  7087. rm -f conftest.err conftest.$ac_ext
  7088. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7089. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7090. # So? What about this header?
  7091. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7092. yes:no: )
  7093. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7094. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7095. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7096. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7097. ac_header_preproc=yes
  7098. ;;
  7099. no:yes:* )
  7100. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7101. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7102. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7103. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7104. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7105. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7106. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7107. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7108. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7109. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7110. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7111. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7112. ( cat <<\_ASBOX
  7113. ## ----------------------------------------------- ##
  7114. ## Report this to t-tujikawa@users.sourceforge.net ##
  7115. ## ----------------------------------------------- ##
  7116. _ASBOX
  7117. ) | sed "s/^/$as_me: WARNING: /" >&2
  7118. ;;
  7119. esac
  7120. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7121. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7122. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7123. echo $ECHO_N "(cached) $ECHO_C" >&6
  7124. else
  7125. eval "$as_ac_Header=\$ac_header_preproc"
  7126. fi
  7127. ac_res=`eval echo '${'$as_ac_Header'}'`
  7128. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7129. echo "${ECHO_T}$ac_res" >&6; }
  7130. fi
  7131. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7132. cat >>confdefs.h <<_ACEOF
  7133. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7134. _ACEOF
  7135. fi
  7136. done
  7137. # Checks for typedefs, structures, and compiler characteristics.
  7138. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7139. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  7140. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7141. echo $ECHO_N "(cached) $ECHO_C" >&6
  7142. else
  7143. cat >conftest.$ac_ext <<_ACEOF
  7144. /* confdefs.h. */
  7145. _ACEOF
  7146. cat confdefs.h >>conftest.$ac_ext
  7147. cat >>conftest.$ac_ext <<_ACEOF
  7148. /* end confdefs.h. */
  7149. #include <stdbool.h>
  7150. #ifndef bool
  7151. "error: bool is not defined"
  7152. #endif
  7153. #ifndef false
  7154. "error: false is not defined"
  7155. #endif
  7156. #if false
  7157. "error: false is not 0"
  7158. #endif
  7159. #ifndef true
  7160. "error: true is not defined"
  7161. #endif
  7162. #if true != 1
  7163. "error: true is not 1"
  7164. #endif
  7165. #ifndef __bool_true_false_are_defined
  7166. "error: __bool_true_false_are_defined is not defined"
  7167. #endif
  7168. struct s { _Bool s: 1; _Bool t; } s;
  7169. char a[true == 1 ? 1 : -1];
  7170. char b[false == 0 ? 1 : -1];
  7171. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7172. char d[(bool) 0.5 == true ? 1 : -1];
  7173. bool e = &s;
  7174. char f[(_Bool) 0.0 == false ? 1 : -1];
  7175. char g[true];
  7176. char h[sizeof (_Bool)];
  7177. char i[sizeof s.t];
  7178. enum { j = false, k = true, l = false * true, m = true * 256 };
  7179. _Bool n[m];
  7180. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7181. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7182. # if defined __xlc__ || defined __GNUC__
  7183. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7184. reported by James Lemley on 2005-10-05; see
  7185. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7186. This test is not quite right, since xlc is allowed to
  7187. reject this program, as the initializer for xlcbug is
  7188. not one of the forms that C requires support for.
  7189. However, doing the test right would require a runtime
  7190. test, and that would make cross-compilation harder.
  7191. Let us hope that IBM fixes the xlc bug, and also adds
  7192. support for this kind of constant expression. In the
  7193. meantime, this test will reject xlc, which is OK, since
  7194. our stdbool.h substitute should suffice. We also test
  7195. this with GCC, where it should work, to detect more
  7196. quickly whether someone messes up the test in the
  7197. future. */
  7198. char digs[] = "0123456789";
  7199. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7200. # endif
  7201. /* Catch a bug in an HP-UX C compiler. See
  7202. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7203. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7204. */
  7205. _Bool q = true;
  7206. _Bool *pq = &q;
  7207. int
  7208. main ()
  7209. {
  7210. *pq |= q;
  7211. *pq |= ! q;
  7212. /* Refer to every declared value, to avoid compiler optimizations. */
  7213. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7214. + !m + !n + !o + !p + !q + !pq);
  7215. ;
  7216. return 0;
  7217. }
  7218. _ACEOF
  7219. rm -f conftest.$ac_objext
  7220. if { (ac_try="$ac_compile"
  7221. case "(($ac_try" in
  7222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7223. *) ac_try_echo=$ac_try;;
  7224. esac
  7225. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7226. (eval "$ac_compile") 2>conftest.er1
  7227. ac_status=$?
  7228. grep -v '^ *+' conftest.er1 >conftest.err
  7229. rm -f conftest.er1
  7230. cat conftest.err >&5
  7231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7232. (exit $ac_status); } && {
  7233. test -z "$ac_cxx_werror_flag" ||
  7234. test ! -s conftest.err
  7235. } && test -s conftest.$ac_objext; then
  7236. ac_cv_header_stdbool_h=yes
  7237. else
  7238. echo "$as_me: failed program was:" >&5
  7239. sed 's/^/| /' conftest.$ac_ext >&5
  7240. ac_cv_header_stdbool_h=no
  7241. fi
  7242. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7243. fi
  7244. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7245. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  7246. { echo "$as_me:$LINENO: checking for _Bool" >&5
  7247. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  7248. if test "${ac_cv_type__Bool+set}" = set; then
  7249. echo $ECHO_N "(cached) $ECHO_C" >&6
  7250. else
  7251. cat >conftest.$ac_ext <<_ACEOF
  7252. /* confdefs.h. */
  7253. _ACEOF
  7254. cat confdefs.h >>conftest.$ac_ext
  7255. cat >>conftest.$ac_ext <<_ACEOF
  7256. /* end confdefs.h. */
  7257. $ac_includes_default
  7258. typedef _Bool ac__type_new_;
  7259. int
  7260. main ()
  7261. {
  7262. if ((ac__type_new_ *) 0)
  7263. return 0;
  7264. if (sizeof (ac__type_new_))
  7265. return 0;
  7266. ;
  7267. return 0;
  7268. }
  7269. _ACEOF
  7270. rm -f conftest.$ac_objext
  7271. if { (ac_try="$ac_compile"
  7272. case "(($ac_try" in
  7273. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7274. *) ac_try_echo=$ac_try;;
  7275. esac
  7276. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7277. (eval "$ac_compile") 2>conftest.er1
  7278. ac_status=$?
  7279. grep -v '^ *+' conftest.er1 >conftest.err
  7280. rm -f conftest.er1
  7281. cat conftest.err >&5
  7282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7283. (exit $ac_status); } && {
  7284. test -z "$ac_cxx_werror_flag" ||
  7285. test ! -s conftest.err
  7286. } && test -s conftest.$ac_objext; then
  7287. ac_cv_type__Bool=yes
  7288. else
  7289. echo "$as_me: failed program was:" >&5
  7290. sed 's/^/| /' conftest.$ac_ext >&5
  7291. ac_cv_type__Bool=no
  7292. fi
  7293. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7294. fi
  7295. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7296. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7297. if test $ac_cv_type__Bool = yes; then
  7298. cat >>confdefs.h <<_ACEOF
  7299. #define HAVE__BOOL 1
  7300. _ACEOF
  7301. fi
  7302. if test $ac_cv_header_stdbool_h = yes; then
  7303. cat >>confdefs.h <<\_ACEOF
  7304. #define HAVE_STDBOOL_H 1
  7305. _ACEOF
  7306. fi
  7307. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7308. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7309. if test "${ac_cv_c_const+set}" = set; then
  7310. echo $ECHO_N "(cached) $ECHO_C" >&6
  7311. else
  7312. cat >conftest.$ac_ext <<_ACEOF
  7313. /* confdefs.h. */
  7314. _ACEOF
  7315. cat confdefs.h >>conftest.$ac_ext
  7316. cat >>conftest.$ac_ext <<_ACEOF
  7317. /* end confdefs.h. */
  7318. int
  7319. main ()
  7320. {
  7321. /* FIXME: Include the comments suggested by Paul. */
  7322. #ifndef __cplusplus
  7323. /* Ultrix mips cc rejects this. */
  7324. typedef int charset[2];
  7325. const charset cs;
  7326. /* SunOS 4.1.1 cc rejects this. */
  7327. char const *const *pcpcc;
  7328. char **ppc;
  7329. /* NEC SVR4.0.2 mips cc rejects this. */
  7330. struct point {int x, y;};
  7331. static struct point const zero = {0,0};
  7332. /* AIX XL C 1.02.0.0 rejects this.
  7333. It does not let you subtract one const X* pointer from another in
  7334. an arm of an if-expression whose if-part is not a constant
  7335. expression */
  7336. const char *g = "string";
  7337. pcpcc = &g + (g ? g-g : 0);
  7338. /* HPUX 7.0 cc rejects these. */
  7339. ++pcpcc;
  7340. ppc = (char**) pcpcc;
  7341. pcpcc = (char const *const *) ppc;
  7342. { /* SCO 3.2v4 cc rejects this. */
  7343. char *t;
  7344. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7345. *t++ = 0;
  7346. if (s) return 0;
  7347. }
  7348. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7349. int x[] = {25, 17};
  7350. const int *foo = &x[0];
  7351. ++foo;
  7352. }
  7353. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7354. typedef const int *iptr;
  7355. iptr p = 0;
  7356. ++p;
  7357. }
  7358. { /* AIX XL C 1.02.0.0 rejects this saying
  7359. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7360. struct s { int j; const int *ap[3]; };
  7361. struct s *b; b->j = 5;
  7362. }
  7363. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7364. const int foo = 10;
  7365. if (!foo) return 0;
  7366. }
  7367. return !cs[0] && !zero.x;
  7368. #endif
  7369. ;
  7370. return 0;
  7371. }
  7372. _ACEOF
  7373. rm -f conftest.$ac_objext
  7374. if { (ac_try="$ac_compile"
  7375. case "(($ac_try" in
  7376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7377. *) ac_try_echo=$ac_try;;
  7378. esac
  7379. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7380. (eval "$ac_compile") 2>conftest.er1
  7381. ac_status=$?
  7382. grep -v '^ *+' conftest.er1 >conftest.err
  7383. rm -f conftest.er1
  7384. cat conftest.err >&5
  7385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7386. (exit $ac_status); } && {
  7387. test -z "$ac_cxx_werror_flag" ||
  7388. test ! -s conftest.err
  7389. } && test -s conftest.$ac_objext; then
  7390. ac_cv_c_const=yes
  7391. else
  7392. echo "$as_me: failed program was:" >&5
  7393. sed 's/^/| /' conftest.$ac_ext >&5
  7394. ac_cv_c_const=no
  7395. fi
  7396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7397. fi
  7398. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7399. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7400. if test $ac_cv_c_const = no; then
  7401. cat >>confdefs.h <<\_ACEOF
  7402. #define const
  7403. _ACEOF
  7404. fi
  7405. { echo "$as_me:$LINENO: checking for inline" >&5
  7406. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7407. if test "${ac_cv_c_inline+set}" = set; then
  7408. echo $ECHO_N "(cached) $ECHO_C" >&6
  7409. else
  7410. ac_cv_c_inline=no
  7411. for ac_kw in inline __inline__ __inline; do
  7412. cat >conftest.$ac_ext <<_ACEOF
  7413. /* confdefs.h. */
  7414. _ACEOF
  7415. cat confdefs.h >>conftest.$ac_ext
  7416. cat >>conftest.$ac_ext <<_ACEOF
  7417. /* end confdefs.h. */
  7418. #ifndef __cplusplus
  7419. typedef int foo_t;
  7420. static $ac_kw foo_t static_foo () {return 0; }
  7421. $ac_kw foo_t foo () {return 0; }
  7422. #endif
  7423. _ACEOF
  7424. rm -f conftest.$ac_objext
  7425. if { (ac_try="$ac_compile"
  7426. case "(($ac_try" in
  7427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7428. *) ac_try_echo=$ac_try;;
  7429. esac
  7430. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7431. (eval "$ac_compile") 2>conftest.er1
  7432. ac_status=$?
  7433. grep -v '^ *+' conftest.er1 >conftest.err
  7434. rm -f conftest.er1
  7435. cat conftest.err >&5
  7436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7437. (exit $ac_status); } && {
  7438. test -z "$ac_cxx_werror_flag" ||
  7439. test ! -s conftest.err
  7440. } && test -s conftest.$ac_objext; then
  7441. ac_cv_c_inline=$ac_kw
  7442. else
  7443. echo "$as_me: failed program was:" >&5
  7444. sed 's/^/| /' conftest.$ac_ext >&5
  7445. fi
  7446. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7447. test "$ac_cv_c_inline" != no && break
  7448. done
  7449. fi
  7450. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7451. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7452. case $ac_cv_c_inline in
  7453. inline | yes) ;;
  7454. *)
  7455. case $ac_cv_c_inline in
  7456. no) ac_val=;;
  7457. *) ac_val=$ac_cv_c_inline;;
  7458. esac
  7459. cat >>confdefs.h <<_ACEOF
  7460. #ifndef __cplusplus
  7461. #define inline $ac_val
  7462. #endif
  7463. _ACEOF
  7464. ;;
  7465. esac
  7466. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7467. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7468. if test "${ac_cv_c_int16_t+set}" = set; then
  7469. echo $ECHO_N "(cached) $ECHO_C" >&6
  7470. else
  7471. ac_cv_c_int16_t=no
  7472. for ac_type in 'int16_t' 'int' 'long int' \
  7473. 'long long int' 'short int' 'signed char'; do
  7474. cat >conftest.$ac_ext <<_ACEOF
  7475. /* confdefs.h. */
  7476. _ACEOF
  7477. cat confdefs.h >>conftest.$ac_ext
  7478. cat >>conftest.$ac_ext <<_ACEOF
  7479. /* end confdefs.h. */
  7480. $ac_includes_default
  7481. int
  7482. main ()
  7483. {
  7484. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7485. test_array [0] = 0
  7486. ;
  7487. return 0;
  7488. }
  7489. _ACEOF
  7490. rm -f conftest.$ac_objext
  7491. if { (ac_try="$ac_compile"
  7492. case "(($ac_try" in
  7493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7494. *) ac_try_echo=$ac_try;;
  7495. esac
  7496. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7497. (eval "$ac_compile") 2>conftest.er1
  7498. ac_status=$?
  7499. grep -v '^ *+' conftest.er1 >conftest.err
  7500. rm -f conftest.er1
  7501. cat conftest.err >&5
  7502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7503. (exit $ac_status); } && {
  7504. test -z "$ac_cxx_werror_flag" ||
  7505. test ! -s conftest.err
  7506. } && test -s conftest.$ac_objext; then
  7507. cat >conftest.$ac_ext <<_ACEOF
  7508. /* confdefs.h. */
  7509. _ACEOF
  7510. cat confdefs.h >>conftest.$ac_ext
  7511. cat >>conftest.$ac_ext <<_ACEOF
  7512. /* end confdefs.h. */
  7513. $ac_includes_default
  7514. int
  7515. main ()
  7516. {
  7517. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7518. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7519. test_array [0] = 0
  7520. ;
  7521. return 0;
  7522. }
  7523. _ACEOF
  7524. rm -f conftest.$ac_objext
  7525. if { (ac_try="$ac_compile"
  7526. case "(($ac_try" in
  7527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7528. *) ac_try_echo=$ac_try;;
  7529. esac
  7530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7531. (eval "$ac_compile") 2>conftest.er1
  7532. ac_status=$?
  7533. grep -v '^ *+' conftest.er1 >conftest.err
  7534. rm -f conftest.er1
  7535. cat conftest.err >&5
  7536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7537. (exit $ac_status); } && {
  7538. test -z "$ac_cxx_werror_flag" ||
  7539. test ! -s conftest.err
  7540. } && test -s conftest.$ac_objext; then
  7541. :
  7542. else
  7543. echo "$as_me: failed program was:" >&5
  7544. sed 's/^/| /' conftest.$ac_ext >&5
  7545. case $ac_type in
  7546. int16_t) ac_cv_c_int16_t=yes ;;
  7547. *) ac_cv_c_int16_t=$ac_type ;;
  7548. esac
  7549. fi
  7550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7551. else
  7552. echo "$as_me: failed program was:" >&5
  7553. sed 's/^/| /' conftest.$ac_ext >&5
  7554. fi
  7555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7556. test "$ac_cv_c_int16_t" != no && break
  7557. done
  7558. fi
  7559. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7560. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7561. case $ac_cv_c_int16_t in #(
  7562. no|yes) ;; #(
  7563. *)
  7564. cat >>confdefs.h <<_ACEOF
  7565. #define int16_t $ac_cv_c_int16_t
  7566. _ACEOF
  7567. ;;
  7568. esac
  7569. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7570. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7571. if test "${ac_cv_c_int32_t+set}" = set; then
  7572. echo $ECHO_N "(cached) $ECHO_C" >&6
  7573. else
  7574. ac_cv_c_int32_t=no
  7575. for ac_type in 'int32_t' 'int' 'long int' \
  7576. 'long long int' 'short int' 'signed char'; do
  7577. cat >conftest.$ac_ext <<_ACEOF
  7578. /* confdefs.h. */
  7579. _ACEOF
  7580. cat confdefs.h >>conftest.$ac_ext
  7581. cat >>conftest.$ac_ext <<_ACEOF
  7582. /* end confdefs.h. */
  7583. $ac_includes_default
  7584. int
  7585. main ()
  7586. {
  7587. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7588. test_array [0] = 0
  7589. ;
  7590. return 0;
  7591. }
  7592. _ACEOF
  7593. rm -f conftest.$ac_objext
  7594. if { (ac_try="$ac_compile"
  7595. case "(($ac_try" in
  7596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7597. *) ac_try_echo=$ac_try;;
  7598. esac
  7599. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7600. (eval "$ac_compile") 2>conftest.er1
  7601. ac_status=$?
  7602. grep -v '^ *+' conftest.er1 >conftest.err
  7603. rm -f conftest.er1
  7604. cat conftest.err >&5
  7605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7606. (exit $ac_status); } && {
  7607. test -z "$ac_cxx_werror_flag" ||
  7608. test ! -s conftest.err
  7609. } && test -s conftest.$ac_objext; then
  7610. cat >conftest.$ac_ext <<_ACEOF
  7611. /* confdefs.h. */
  7612. _ACEOF
  7613. cat confdefs.h >>conftest.$ac_ext
  7614. cat >>conftest.$ac_ext <<_ACEOF
  7615. /* end confdefs.h. */
  7616. $ac_includes_default
  7617. int
  7618. main ()
  7619. {
  7620. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7621. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7622. test_array [0] = 0
  7623. ;
  7624. return 0;
  7625. }
  7626. _ACEOF
  7627. rm -f conftest.$ac_objext
  7628. if { (ac_try="$ac_compile"
  7629. case "(($ac_try" in
  7630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7631. *) ac_try_echo=$ac_try;;
  7632. esac
  7633. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7634. (eval "$ac_compile") 2>conftest.er1
  7635. ac_status=$?
  7636. grep -v '^ *+' conftest.er1 >conftest.err
  7637. rm -f conftest.er1
  7638. cat conftest.err >&5
  7639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7640. (exit $ac_status); } && {
  7641. test -z "$ac_cxx_werror_flag" ||
  7642. test ! -s conftest.err
  7643. } && test -s conftest.$ac_objext; then
  7644. :
  7645. else
  7646. echo "$as_me: failed program was:" >&5
  7647. sed 's/^/| /' conftest.$ac_ext >&5
  7648. case $ac_type in
  7649. int32_t) ac_cv_c_int32_t=yes ;;
  7650. *) ac_cv_c_int32_t=$ac_type ;;
  7651. esac
  7652. fi
  7653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7654. else
  7655. echo "$as_me: failed program was:" >&5
  7656. sed 's/^/| /' conftest.$ac_ext >&5
  7657. fi
  7658. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7659. test "$ac_cv_c_int32_t" != no && break
  7660. done
  7661. fi
  7662. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7663. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7664. case $ac_cv_c_int32_t in #(
  7665. no|yes) ;; #(
  7666. *)
  7667. cat >>confdefs.h <<_ACEOF
  7668. #define int32_t $ac_cv_c_int32_t
  7669. _ACEOF
  7670. ;;
  7671. esac
  7672. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7673. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7674. if test "${ac_cv_c_int64_t+set}" = set; then
  7675. echo $ECHO_N "(cached) $ECHO_C" >&6
  7676. else
  7677. ac_cv_c_int64_t=no
  7678. for ac_type in 'int64_t' 'int' 'long int' \
  7679. 'long long int' 'short int' 'signed char'; do
  7680. cat >conftest.$ac_ext <<_ACEOF
  7681. /* confdefs.h. */
  7682. _ACEOF
  7683. cat confdefs.h >>conftest.$ac_ext
  7684. cat >>conftest.$ac_ext <<_ACEOF
  7685. /* end confdefs.h. */
  7686. $ac_includes_default
  7687. int
  7688. main ()
  7689. {
  7690. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7691. test_array [0] = 0
  7692. ;
  7693. return 0;
  7694. }
  7695. _ACEOF
  7696. rm -f conftest.$ac_objext
  7697. if { (ac_try="$ac_compile"
  7698. case "(($ac_try" in
  7699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7700. *) ac_try_echo=$ac_try;;
  7701. esac
  7702. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7703. (eval "$ac_compile") 2>conftest.er1
  7704. ac_status=$?
  7705. grep -v '^ *+' conftest.er1 >conftest.err
  7706. rm -f conftest.er1
  7707. cat conftest.err >&5
  7708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7709. (exit $ac_status); } && {
  7710. test -z "$ac_cxx_werror_flag" ||
  7711. test ! -s conftest.err
  7712. } && test -s conftest.$ac_objext; then
  7713. cat >conftest.$ac_ext <<_ACEOF
  7714. /* confdefs.h. */
  7715. _ACEOF
  7716. cat confdefs.h >>conftest.$ac_ext
  7717. cat >>conftest.$ac_ext <<_ACEOF
  7718. /* end confdefs.h. */
  7719. $ac_includes_default
  7720. int
  7721. main ()
  7722. {
  7723. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  7724. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  7725. test_array [0] = 0
  7726. ;
  7727. return 0;
  7728. }
  7729. _ACEOF
  7730. rm -f conftest.$ac_objext
  7731. if { (ac_try="$ac_compile"
  7732. case "(($ac_try" in
  7733. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7734. *) ac_try_echo=$ac_try;;
  7735. esac
  7736. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7737. (eval "$ac_compile") 2>conftest.er1
  7738. ac_status=$?
  7739. grep -v '^ *+' conftest.er1 >conftest.err
  7740. rm -f conftest.er1
  7741. cat conftest.err >&5
  7742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7743. (exit $ac_status); } && {
  7744. test -z "$ac_cxx_werror_flag" ||
  7745. test ! -s conftest.err
  7746. } && test -s conftest.$ac_objext; then
  7747. :
  7748. else
  7749. echo "$as_me: failed program was:" >&5
  7750. sed 's/^/| /' conftest.$ac_ext >&5
  7751. case $ac_type in
  7752. int64_t) ac_cv_c_int64_t=yes ;;
  7753. *) ac_cv_c_int64_t=$ac_type ;;
  7754. esac
  7755. fi
  7756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7757. else
  7758. echo "$as_me: failed program was:" >&5
  7759. sed 's/^/| /' conftest.$ac_ext >&5
  7760. fi
  7761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7762. test "$ac_cv_c_int64_t" != no && break
  7763. done
  7764. fi
  7765. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  7766. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  7767. case $ac_cv_c_int64_t in #(
  7768. no|yes) ;; #(
  7769. *)
  7770. cat >>confdefs.h <<_ACEOF
  7771. #define int64_t $ac_cv_c_int64_t
  7772. _ACEOF
  7773. ;;
  7774. esac
  7775. { echo "$as_me:$LINENO: checking for int8_t" >&5
  7776. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  7777. if test "${ac_cv_c_int8_t+set}" = set; then
  7778. echo $ECHO_N "(cached) $ECHO_C" >&6
  7779. else
  7780. ac_cv_c_int8_t=no
  7781. for ac_type in 'int8_t' 'int' 'long int' \
  7782. 'long long int' 'short int' 'signed char'; do
  7783. cat >conftest.$ac_ext <<_ACEOF
  7784. /* confdefs.h. */
  7785. _ACEOF
  7786. cat confdefs.h >>conftest.$ac_ext
  7787. cat >>conftest.$ac_ext <<_ACEOF
  7788. /* end confdefs.h. */
  7789. $ac_includes_default
  7790. int
  7791. main ()
  7792. {
  7793. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  7794. test_array [0] = 0
  7795. ;
  7796. return 0;
  7797. }
  7798. _ACEOF
  7799. rm -f conftest.$ac_objext
  7800. if { (ac_try="$ac_compile"
  7801. case "(($ac_try" in
  7802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7803. *) ac_try_echo=$ac_try;;
  7804. esac
  7805. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7806. (eval "$ac_compile") 2>conftest.er1
  7807. ac_status=$?
  7808. grep -v '^ *+' conftest.er1 >conftest.err
  7809. rm -f conftest.er1
  7810. cat conftest.err >&5
  7811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7812. (exit $ac_status); } && {
  7813. test -z "$ac_cxx_werror_flag" ||
  7814. test ! -s conftest.err
  7815. } && test -s conftest.$ac_objext; then
  7816. cat >conftest.$ac_ext <<_ACEOF
  7817. /* confdefs.h. */
  7818. _ACEOF
  7819. cat confdefs.h >>conftest.$ac_ext
  7820. cat >>conftest.$ac_ext <<_ACEOF
  7821. /* end confdefs.h. */
  7822. $ac_includes_default
  7823. int
  7824. main ()
  7825. {
  7826. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  7827. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  7828. test_array [0] = 0
  7829. ;
  7830. return 0;
  7831. }
  7832. _ACEOF
  7833. rm -f conftest.$ac_objext
  7834. if { (ac_try="$ac_compile"
  7835. case "(($ac_try" in
  7836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7837. *) ac_try_echo=$ac_try;;
  7838. esac
  7839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7840. (eval "$ac_compile") 2>conftest.er1
  7841. ac_status=$?
  7842. grep -v '^ *+' conftest.er1 >conftest.err
  7843. rm -f conftest.er1
  7844. cat conftest.err >&5
  7845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7846. (exit $ac_status); } && {
  7847. test -z "$ac_cxx_werror_flag" ||
  7848. test ! -s conftest.err
  7849. } && test -s conftest.$ac_objext; then
  7850. :
  7851. else
  7852. echo "$as_me: failed program was:" >&5
  7853. sed 's/^/| /' conftest.$ac_ext >&5
  7854. case $ac_type in
  7855. int8_t) ac_cv_c_int8_t=yes ;;
  7856. *) ac_cv_c_int8_t=$ac_type ;;
  7857. esac
  7858. fi
  7859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7860. else
  7861. echo "$as_me: failed program was:" >&5
  7862. sed 's/^/| /' conftest.$ac_ext >&5
  7863. fi
  7864. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7865. test "$ac_cv_c_int8_t" != no && break
  7866. done
  7867. fi
  7868. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  7869. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  7870. case $ac_cv_c_int8_t in #(
  7871. no|yes) ;; #(
  7872. *)
  7873. cat >>confdefs.h <<_ACEOF
  7874. #define int8_t $ac_cv_c_int8_t
  7875. _ACEOF
  7876. ;;
  7877. esac
  7878. { echo "$as_me:$LINENO: checking for mode_t" >&5
  7879. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  7880. if test "${ac_cv_type_mode_t+set}" = set; then
  7881. echo $ECHO_N "(cached) $ECHO_C" >&6
  7882. else
  7883. cat >conftest.$ac_ext <<_ACEOF
  7884. /* confdefs.h. */
  7885. _ACEOF
  7886. cat confdefs.h >>conftest.$ac_ext
  7887. cat >>conftest.$ac_ext <<_ACEOF
  7888. /* end confdefs.h. */
  7889. $ac_includes_default
  7890. typedef mode_t ac__type_new_;
  7891. int
  7892. main ()
  7893. {
  7894. if ((ac__type_new_ *) 0)
  7895. return 0;
  7896. if (sizeof (ac__type_new_))
  7897. return 0;
  7898. ;
  7899. return 0;
  7900. }
  7901. _ACEOF
  7902. rm -f conftest.$ac_objext
  7903. if { (ac_try="$ac_compile"
  7904. case "(($ac_try" in
  7905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7906. *) ac_try_echo=$ac_try;;
  7907. esac
  7908. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7909. (eval "$ac_compile") 2>conftest.er1
  7910. ac_status=$?
  7911. grep -v '^ *+' conftest.er1 >conftest.err
  7912. rm -f conftest.er1
  7913. cat conftest.err >&5
  7914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7915. (exit $ac_status); } && {
  7916. test -z "$ac_cxx_werror_flag" ||
  7917. test ! -s conftest.err
  7918. } && test -s conftest.$ac_objext; then
  7919. ac_cv_type_mode_t=yes
  7920. else
  7921. echo "$as_me: failed program was:" >&5
  7922. sed 's/^/| /' conftest.$ac_ext >&5
  7923. ac_cv_type_mode_t=no
  7924. fi
  7925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7926. fi
  7927. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  7928. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  7929. if test $ac_cv_type_mode_t = yes; then
  7930. :
  7931. else
  7932. cat >>confdefs.h <<_ACEOF
  7933. #define mode_t int
  7934. _ACEOF
  7935. fi
  7936. { echo "$as_me:$LINENO: checking for off_t" >&5
  7937. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7938. if test "${ac_cv_type_off_t+set}" = set; then
  7939. echo $ECHO_N "(cached) $ECHO_C" >&6
  7940. else
  7941. cat >conftest.$ac_ext <<_ACEOF
  7942. /* confdefs.h. */
  7943. _ACEOF
  7944. cat confdefs.h >>conftest.$ac_ext
  7945. cat >>conftest.$ac_ext <<_ACEOF
  7946. /* end confdefs.h. */
  7947. $ac_includes_default
  7948. typedef off_t ac__type_new_;
  7949. int
  7950. main ()
  7951. {
  7952. if ((ac__type_new_ *) 0)
  7953. return 0;
  7954. if (sizeof (ac__type_new_))
  7955. return 0;
  7956. ;
  7957. return 0;
  7958. }
  7959. _ACEOF
  7960. rm -f conftest.$ac_objext
  7961. if { (ac_try="$ac_compile"
  7962. case "(($ac_try" in
  7963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7964. *) ac_try_echo=$ac_try;;
  7965. esac
  7966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7967. (eval "$ac_compile") 2>conftest.er1
  7968. ac_status=$?
  7969. grep -v '^ *+' conftest.er1 >conftest.err
  7970. rm -f conftest.er1
  7971. cat conftest.err >&5
  7972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7973. (exit $ac_status); } && {
  7974. test -z "$ac_cxx_werror_flag" ||
  7975. test ! -s conftest.err
  7976. } && test -s conftest.$ac_objext; then
  7977. ac_cv_type_off_t=yes
  7978. else
  7979. echo "$as_me: failed program was:" >&5
  7980. sed 's/^/| /' conftest.$ac_ext >&5
  7981. ac_cv_type_off_t=no
  7982. fi
  7983. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7984. fi
  7985. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7986. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7987. if test $ac_cv_type_off_t = yes; then
  7988. :
  7989. else
  7990. cat >>confdefs.h <<_ACEOF
  7991. #define off_t long int
  7992. _ACEOF
  7993. fi
  7994. { echo "$as_me:$LINENO: checking for size_t" >&5
  7995. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  7996. if test "${ac_cv_type_size_t+set}" = set; then
  7997. echo $ECHO_N "(cached) $ECHO_C" >&6
  7998. else
  7999. cat >conftest.$ac_ext <<_ACEOF
  8000. /* confdefs.h. */
  8001. _ACEOF
  8002. cat confdefs.h >>conftest.$ac_ext
  8003. cat >>conftest.$ac_ext <<_ACEOF
  8004. /* end confdefs.h. */
  8005. $ac_includes_default
  8006. typedef size_t ac__type_new_;
  8007. int
  8008. main ()
  8009. {
  8010. if ((ac__type_new_ *) 0)
  8011. return 0;
  8012. if (sizeof (ac__type_new_))
  8013. return 0;
  8014. ;
  8015. return 0;
  8016. }
  8017. _ACEOF
  8018. rm -f conftest.$ac_objext
  8019. if { (ac_try="$ac_compile"
  8020. case "(($ac_try" in
  8021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8022. *) ac_try_echo=$ac_try;;
  8023. esac
  8024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8025. (eval "$ac_compile") 2>conftest.er1
  8026. ac_status=$?
  8027. grep -v '^ *+' conftest.er1 >conftest.err
  8028. rm -f conftest.er1
  8029. cat conftest.err >&5
  8030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8031. (exit $ac_status); } && {
  8032. test -z "$ac_cxx_werror_flag" ||
  8033. test ! -s conftest.err
  8034. } && test -s conftest.$ac_objext; then
  8035. ac_cv_type_size_t=yes
  8036. else
  8037. echo "$as_me: failed program was:" >&5
  8038. sed 's/^/| /' conftest.$ac_ext >&5
  8039. ac_cv_type_size_t=no
  8040. fi
  8041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8042. fi
  8043. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8044. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  8045. if test $ac_cv_type_size_t = yes; then
  8046. :
  8047. else
  8048. cat >>confdefs.h <<_ACEOF
  8049. #define size_t unsigned int
  8050. _ACEOF
  8051. fi
  8052. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  8053. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  8054. if test "${ac_cv_type_ssize_t+set}" = set; then
  8055. echo $ECHO_N "(cached) $ECHO_C" >&6
  8056. else
  8057. cat >conftest.$ac_ext <<_ACEOF
  8058. /* confdefs.h. */
  8059. _ACEOF
  8060. cat confdefs.h >>conftest.$ac_ext
  8061. cat >>conftest.$ac_ext <<_ACEOF
  8062. /* end confdefs.h. */
  8063. $ac_includes_default
  8064. typedef ssize_t ac__type_new_;
  8065. int
  8066. main ()
  8067. {
  8068. if ((ac__type_new_ *) 0)
  8069. return 0;
  8070. if (sizeof (ac__type_new_))
  8071. return 0;
  8072. ;
  8073. return 0;
  8074. }
  8075. _ACEOF
  8076. rm -f conftest.$ac_objext
  8077. if { (ac_try="$ac_compile"
  8078. case "(($ac_try" in
  8079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8080. *) ac_try_echo=$ac_try;;
  8081. esac
  8082. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8083. (eval "$ac_compile") 2>conftest.er1
  8084. ac_status=$?
  8085. grep -v '^ *+' conftest.er1 >conftest.err
  8086. rm -f conftest.er1
  8087. cat conftest.err >&5
  8088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8089. (exit $ac_status); } && {
  8090. test -z "$ac_cxx_werror_flag" ||
  8091. test ! -s conftest.err
  8092. } && test -s conftest.$ac_objext; then
  8093. ac_cv_type_ssize_t=yes
  8094. else
  8095. echo "$as_me: failed program was:" >&5
  8096. sed 's/^/| /' conftest.$ac_ext >&5
  8097. ac_cv_type_ssize_t=no
  8098. fi
  8099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8100. fi
  8101. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  8102. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  8103. if test $ac_cv_type_ssize_t = yes; then
  8104. :
  8105. else
  8106. cat >>confdefs.h <<_ACEOF
  8107. #define ssize_t int
  8108. _ACEOF
  8109. fi
  8110. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8111. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  8112. if test "${ac_cv_header_time+set}" = set; then
  8113. echo $ECHO_N "(cached) $ECHO_C" >&6
  8114. else
  8115. cat >conftest.$ac_ext <<_ACEOF
  8116. /* confdefs.h. */
  8117. _ACEOF
  8118. cat confdefs.h >>conftest.$ac_ext
  8119. cat >>conftest.$ac_ext <<_ACEOF
  8120. /* end confdefs.h. */
  8121. #include <sys/types.h>
  8122. #include <sys/time.h>
  8123. #include <time.h>
  8124. int
  8125. main ()
  8126. {
  8127. if ((struct tm *) 0)
  8128. return 0;
  8129. ;
  8130. return 0;
  8131. }
  8132. _ACEOF
  8133. rm -f conftest.$ac_objext
  8134. if { (ac_try="$ac_compile"
  8135. case "(($ac_try" in
  8136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8137. *) ac_try_echo=$ac_try;;
  8138. esac
  8139. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8140. (eval "$ac_compile") 2>conftest.er1
  8141. ac_status=$?
  8142. grep -v '^ *+' conftest.er1 >conftest.err
  8143. rm -f conftest.er1
  8144. cat conftest.err >&5
  8145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8146. (exit $ac_status); } && {
  8147. test -z "$ac_cxx_werror_flag" ||
  8148. test ! -s conftest.err
  8149. } && test -s conftest.$ac_objext; then
  8150. ac_cv_header_time=yes
  8151. else
  8152. echo "$as_me: failed program was:" >&5
  8153. sed 's/^/| /' conftest.$ac_ext >&5
  8154. ac_cv_header_time=no
  8155. fi
  8156. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8157. fi
  8158. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8159. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  8160. if test $ac_cv_header_time = yes; then
  8161. cat >>confdefs.h <<\_ACEOF
  8162. #define TIME_WITH_SYS_TIME 1
  8163. _ACEOF
  8164. fi
  8165. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8166. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  8167. if test "${ac_cv_struct_tm+set}" = set; then
  8168. echo $ECHO_N "(cached) $ECHO_C" >&6
  8169. else
  8170. cat >conftest.$ac_ext <<_ACEOF
  8171. /* confdefs.h. */
  8172. _ACEOF
  8173. cat confdefs.h >>conftest.$ac_ext
  8174. cat >>conftest.$ac_ext <<_ACEOF
  8175. /* end confdefs.h. */
  8176. #include <sys/types.h>
  8177. #include <time.h>
  8178. int
  8179. main ()
  8180. {
  8181. struct tm tm;
  8182. int *p = &tm.tm_sec;
  8183. return !p;
  8184. ;
  8185. return 0;
  8186. }
  8187. _ACEOF
  8188. rm -f conftest.$ac_objext
  8189. if { (ac_try="$ac_compile"
  8190. case "(($ac_try" in
  8191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8192. *) ac_try_echo=$ac_try;;
  8193. esac
  8194. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8195. (eval "$ac_compile") 2>conftest.er1
  8196. ac_status=$?
  8197. grep -v '^ *+' conftest.er1 >conftest.err
  8198. rm -f conftest.er1
  8199. cat conftest.err >&5
  8200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8201. (exit $ac_status); } && {
  8202. test -z "$ac_cxx_werror_flag" ||
  8203. test ! -s conftest.err
  8204. } && test -s conftest.$ac_objext; then
  8205. ac_cv_struct_tm=time.h
  8206. else
  8207. echo "$as_me: failed program was:" >&5
  8208. sed 's/^/| /' conftest.$ac_ext >&5
  8209. ac_cv_struct_tm=sys/time.h
  8210. fi
  8211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8212. fi
  8213. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8214. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  8215. if test $ac_cv_struct_tm = sys/time.h; then
  8216. cat >>confdefs.h <<\_ACEOF
  8217. #define TM_IN_SYS_TIME 1
  8218. _ACEOF
  8219. fi
  8220. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  8221. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  8222. if test "${ac_cv_c_uint16_t+set}" = set; then
  8223. echo $ECHO_N "(cached) $ECHO_C" >&6
  8224. else
  8225. ac_cv_c_uint16_t=no
  8226. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8227. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8228. cat >conftest.$ac_ext <<_ACEOF
  8229. /* confdefs.h. */
  8230. _ACEOF
  8231. cat confdefs.h >>conftest.$ac_ext
  8232. cat >>conftest.$ac_ext <<_ACEOF
  8233. /* end confdefs.h. */
  8234. $ac_includes_default
  8235. int
  8236. main ()
  8237. {
  8238. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8239. test_array [0] = 0
  8240. ;
  8241. return 0;
  8242. }
  8243. _ACEOF
  8244. rm -f conftest.$ac_objext
  8245. if { (ac_try="$ac_compile"
  8246. case "(($ac_try" in
  8247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8248. *) ac_try_echo=$ac_try;;
  8249. esac
  8250. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8251. (eval "$ac_compile") 2>conftest.er1
  8252. ac_status=$?
  8253. grep -v '^ *+' conftest.er1 >conftest.err
  8254. rm -f conftest.er1
  8255. cat conftest.err >&5
  8256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8257. (exit $ac_status); } && {
  8258. test -z "$ac_cxx_werror_flag" ||
  8259. test ! -s conftest.err
  8260. } && test -s conftest.$ac_objext; then
  8261. case $ac_type in
  8262. uint16_t) ac_cv_c_uint16_t=yes ;;
  8263. *) ac_cv_c_uint16_t=$ac_type ;;
  8264. esac
  8265. else
  8266. echo "$as_me: failed program was:" >&5
  8267. sed 's/^/| /' conftest.$ac_ext >&5
  8268. fi
  8269. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8270. test "$ac_cv_c_uint16_t" != no && break
  8271. done
  8272. fi
  8273. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8274. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8275. case $ac_cv_c_uint16_t in #(
  8276. no|yes) ;; #(
  8277. *)
  8278. cat >>confdefs.h <<_ACEOF
  8279. #define uint16_t $ac_cv_c_uint16_t
  8280. _ACEOF
  8281. ;;
  8282. esac
  8283. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8284. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8285. if test "${ac_cv_c_uint32_t+set}" = set; then
  8286. echo $ECHO_N "(cached) $ECHO_C" >&6
  8287. else
  8288. ac_cv_c_uint32_t=no
  8289. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8290. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8291. cat >conftest.$ac_ext <<_ACEOF
  8292. /* confdefs.h. */
  8293. _ACEOF
  8294. cat confdefs.h >>conftest.$ac_ext
  8295. cat >>conftest.$ac_ext <<_ACEOF
  8296. /* end confdefs.h. */
  8297. $ac_includes_default
  8298. int
  8299. main ()
  8300. {
  8301. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8302. test_array [0] = 0
  8303. ;
  8304. return 0;
  8305. }
  8306. _ACEOF
  8307. rm -f conftest.$ac_objext
  8308. if { (ac_try="$ac_compile"
  8309. case "(($ac_try" in
  8310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8311. *) ac_try_echo=$ac_try;;
  8312. esac
  8313. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8314. (eval "$ac_compile") 2>conftest.er1
  8315. ac_status=$?
  8316. grep -v '^ *+' conftest.er1 >conftest.err
  8317. rm -f conftest.er1
  8318. cat conftest.err >&5
  8319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8320. (exit $ac_status); } && {
  8321. test -z "$ac_cxx_werror_flag" ||
  8322. test ! -s conftest.err
  8323. } && test -s conftest.$ac_objext; then
  8324. case $ac_type in
  8325. uint32_t) ac_cv_c_uint32_t=yes ;;
  8326. *) ac_cv_c_uint32_t=$ac_type ;;
  8327. esac
  8328. else
  8329. echo "$as_me: failed program was:" >&5
  8330. sed 's/^/| /' conftest.$ac_ext >&5
  8331. fi
  8332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8333. test "$ac_cv_c_uint32_t" != no && break
  8334. done
  8335. fi
  8336. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8337. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8338. case $ac_cv_c_uint32_t in #(
  8339. no|yes) ;; #(
  8340. *)
  8341. cat >>confdefs.h <<\_ACEOF
  8342. #define _UINT32_T 1
  8343. _ACEOF
  8344. cat >>confdefs.h <<_ACEOF
  8345. #define uint32_t $ac_cv_c_uint32_t
  8346. _ACEOF
  8347. ;;
  8348. esac
  8349. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8350. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8351. if test "${ac_cv_c_uint64_t+set}" = set; then
  8352. echo $ECHO_N "(cached) $ECHO_C" >&6
  8353. else
  8354. ac_cv_c_uint64_t=no
  8355. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8356. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8357. cat >conftest.$ac_ext <<_ACEOF
  8358. /* confdefs.h. */
  8359. _ACEOF
  8360. cat confdefs.h >>conftest.$ac_ext
  8361. cat >>conftest.$ac_ext <<_ACEOF
  8362. /* end confdefs.h. */
  8363. $ac_includes_default
  8364. int
  8365. main ()
  8366. {
  8367. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8368. test_array [0] = 0
  8369. ;
  8370. return 0;
  8371. }
  8372. _ACEOF
  8373. rm -f conftest.$ac_objext
  8374. if { (ac_try="$ac_compile"
  8375. case "(($ac_try" in
  8376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8377. *) ac_try_echo=$ac_try;;
  8378. esac
  8379. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8380. (eval "$ac_compile") 2>conftest.er1
  8381. ac_status=$?
  8382. grep -v '^ *+' conftest.er1 >conftest.err
  8383. rm -f conftest.er1
  8384. cat conftest.err >&5
  8385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8386. (exit $ac_status); } && {
  8387. test -z "$ac_cxx_werror_flag" ||
  8388. test ! -s conftest.err
  8389. } && test -s conftest.$ac_objext; then
  8390. case $ac_type in
  8391. uint64_t) ac_cv_c_uint64_t=yes ;;
  8392. *) ac_cv_c_uint64_t=$ac_type ;;
  8393. esac
  8394. else
  8395. echo "$as_me: failed program was:" >&5
  8396. sed 's/^/| /' conftest.$ac_ext >&5
  8397. fi
  8398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8399. test "$ac_cv_c_uint64_t" != no && break
  8400. done
  8401. fi
  8402. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8403. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8404. case $ac_cv_c_uint64_t in #(
  8405. no|yes) ;; #(
  8406. *)
  8407. cat >>confdefs.h <<\_ACEOF
  8408. #define _UINT64_T 1
  8409. _ACEOF
  8410. cat >>confdefs.h <<_ACEOF
  8411. #define uint64_t $ac_cv_c_uint64_t
  8412. _ACEOF
  8413. ;;
  8414. esac
  8415. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8416. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8417. if test "${ac_cv_c_uint8_t+set}" = set; then
  8418. echo $ECHO_N "(cached) $ECHO_C" >&6
  8419. else
  8420. ac_cv_c_uint8_t=no
  8421. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8422. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8423. cat >conftest.$ac_ext <<_ACEOF
  8424. /* confdefs.h. */
  8425. _ACEOF
  8426. cat confdefs.h >>conftest.$ac_ext
  8427. cat >>conftest.$ac_ext <<_ACEOF
  8428. /* end confdefs.h. */
  8429. $ac_includes_default
  8430. int
  8431. main ()
  8432. {
  8433. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8434. test_array [0] = 0
  8435. ;
  8436. return 0;
  8437. }
  8438. _ACEOF
  8439. rm -f conftest.$ac_objext
  8440. if { (ac_try="$ac_compile"
  8441. case "(($ac_try" in
  8442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8443. *) ac_try_echo=$ac_try;;
  8444. esac
  8445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8446. (eval "$ac_compile") 2>conftest.er1
  8447. ac_status=$?
  8448. grep -v '^ *+' conftest.er1 >conftest.err
  8449. rm -f conftest.er1
  8450. cat conftest.err >&5
  8451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8452. (exit $ac_status); } && {
  8453. test -z "$ac_cxx_werror_flag" ||
  8454. test ! -s conftest.err
  8455. } && test -s conftest.$ac_objext; then
  8456. case $ac_type in
  8457. uint8_t) ac_cv_c_uint8_t=yes ;;
  8458. *) ac_cv_c_uint8_t=$ac_type ;;
  8459. esac
  8460. else
  8461. echo "$as_me: failed program was:" >&5
  8462. sed 's/^/| /' conftest.$ac_ext >&5
  8463. fi
  8464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8465. test "$ac_cv_c_uint8_t" != no && break
  8466. done
  8467. fi
  8468. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8469. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8470. case $ac_cv_c_uint8_t in #(
  8471. no|yes) ;; #(
  8472. *)
  8473. cat >>confdefs.h <<\_ACEOF
  8474. #define _UINT8_T 1
  8475. _ACEOF
  8476. cat >>confdefs.h <<_ACEOF
  8477. #define uint8_t $ac_cv_c_uint8_t
  8478. _ACEOF
  8479. ;;
  8480. esac
  8481. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8482. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8483. if test "${ac_cv_c_volatile+set}" = set; then
  8484. echo $ECHO_N "(cached) $ECHO_C" >&6
  8485. else
  8486. cat >conftest.$ac_ext <<_ACEOF
  8487. /* confdefs.h. */
  8488. _ACEOF
  8489. cat confdefs.h >>conftest.$ac_ext
  8490. cat >>conftest.$ac_ext <<_ACEOF
  8491. /* end confdefs.h. */
  8492. int
  8493. main ()
  8494. {
  8495. volatile int x;
  8496. int * volatile y = (int *) 0;
  8497. return !x && !y;
  8498. ;
  8499. return 0;
  8500. }
  8501. _ACEOF
  8502. rm -f conftest.$ac_objext
  8503. if { (ac_try="$ac_compile"
  8504. case "(($ac_try" in
  8505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8506. *) ac_try_echo=$ac_try;;
  8507. esac
  8508. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8509. (eval "$ac_compile") 2>conftest.er1
  8510. ac_status=$?
  8511. grep -v '^ *+' conftest.er1 >conftest.err
  8512. rm -f conftest.er1
  8513. cat conftest.err >&5
  8514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8515. (exit $ac_status); } && {
  8516. test -z "$ac_cxx_werror_flag" ||
  8517. test ! -s conftest.err
  8518. } && test -s conftest.$ac_objext; then
  8519. ac_cv_c_volatile=yes
  8520. else
  8521. echo "$as_me: failed program was:" >&5
  8522. sed 's/^/| /' conftest.$ac_ext >&5
  8523. ac_cv_c_volatile=no
  8524. fi
  8525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8526. fi
  8527. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8528. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8529. if test $ac_cv_c_volatile = no; then
  8530. cat >>confdefs.h <<\_ACEOF
  8531. #define volatile
  8532. _ACEOF
  8533. fi
  8534. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8535. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8536. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8537. echo $ECHO_N "(cached) $ECHO_C" >&6
  8538. else
  8539. cat >conftest.$ac_ext <<_ACEOF
  8540. /* confdefs.h. */
  8541. _ACEOF
  8542. cat confdefs.h >>conftest.$ac_ext
  8543. cat >>conftest.$ac_ext <<_ACEOF
  8544. /* end confdefs.h. */
  8545. $ac_includes_default
  8546. typedef ptrdiff_t ac__type_new_;
  8547. int
  8548. main ()
  8549. {
  8550. if ((ac__type_new_ *) 0)
  8551. return 0;
  8552. if (sizeof (ac__type_new_))
  8553. return 0;
  8554. ;
  8555. return 0;
  8556. }
  8557. _ACEOF
  8558. rm -f conftest.$ac_objext
  8559. if { (ac_try="$ac_compile"
  8560. case "(($ac_try" in
  8561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8562. *) ac_try_echo=$ac_try;;
  8563. esac
  8564. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8565. (eval "$ac_compile") 2>conftest.er1
  8566. ac_status=$?
  8567. grep -v '^ *+' conftest.er1 >conftest.err
  8568. rm -f conftest.er1
  8569. cat conftest.err >&5
  8570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8571. (exit $ac_status); } && {
  8572. test -z "$ac_cxx_werror_flag" ||
  8573. test ! -s conftest.err
  8574. } && test -s conftest.$ac_objext; then
  8575. ac_cv_type_ptrdiff_t=yes
  8576. else
  8577. echo "$as_me: failed program was:" >&5
  8578. sed 's/^/| /' conftest.$ac_ext >&5
  8579. ac_cv_type_ptrdiff_t=no
  8580. fi
  8581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8582. fi
  8583. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8584. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8585. if test $ac_cv_type_ptrdiff_t = yes; then
  8586. cat >>confdefs.h <<_ACEOF
  8587. #define HAVE_PTRDIFF_T 1
  8588. _ACEOF
  8589. fi
  8590. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  8591. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  8592. if test "${ac_cv_c_bigendian+set}" = set; then
  8593. echo $ECHO_N "(cached) $ECHO_C" >&6
  8594. else
  8595. # See if sys/param.h defines the BYTE_ORDER macro.
  8596. cat >conftest.$ac_ext <<_ACEOF
  8597. /* confdefs.h. */
  8598. _ACEOF
  8599. cat confdefs.h >>conftest.$ac_ext
  8600. cat >>conftest.$ac_ext <<_ACEOF
  8601. /* end confdefs.h. */
  8602. #include <sys/types.h>
  8603. #include <sys/param.h>
  8604. int
  8605. main ()
  8606. {
  8607. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  8608. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  8609. bogus endian macros
  8610. #endif
  8611. ;
  8612. return 0;
  8613. }
  8614. _ACEOF
  8615. rm -f conftest.$ac_objext
  8616. if { (ac_try="$ac_compile"
  8617. case "(($ac_try" in
  8618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8619. *) ac_try_echo=$ac_try;;
  8620. esac
  8621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8622. (eval "$ac_compile") 2>conftest.er1
  8623. ac_status=$?
  8624. grep -v '^ *+' conftest.er1 >conftest.err
  8625. rm -f conftest.er1
  8626. cat conftest.err >&5
  8627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8628. (exit $ac_status); } && {
  8629. test -z "$ac_cxx_werror_flag" ||
  8630. test ! -s conftest.err
  8631. } && test -s conftest.$ac_objext; then
  8632. # It does; now see whether it defined to BIG_ENDIAN or not.
  8633. cat >conftest.$ac_ext <<_ACEOF
  8634. /* confdefs.h. */
  8635. _ACEOF
  8636. cat confdefs.h >>conftest.$ac_ext
  8637. cat >>conftest.$ac_ext <<_ACEOF
  8638. /* end confdefs.h. */
  8639. #include <sys/types.h>
  8640. #include <sys/param.h>
  8641. int
  8642. main ()
  8643. {
  8644. #if BYTE_ORDER != BIG_ENDIAN
  8645. not big endian
  8646. #endif
  8647. ;
  8648. return 0;
  8649. }
  8650. _ACEOF
  8651. rm -f conftest.$ac_objext
  8652. if { (ac_try="$ac_compile"
  8653. case "(($ac_try" in
  8654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8655. *) ac_try_echo=$ac_try;;
  8656. esac
  8657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8658. (eval "$ac_compile") 2>conftest.er1
  8659. ac_status=$?
  8660. grep -v '^ *+' conftest.er1 >conftest.err
  8661. rm -f conftest.er1
  8662. cat conftest.err >&5
  8663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8664. (exit $ac_status); } && {
  8665. test -z "$ac_cxx_werror_flag" ||
  8666. test ! -s conftest.err
  8667. } && test -s conftest.$ac_objext; then
  8668. ac_cv_c_bigendian=yes
  8669. else
  8670. echo "$as_me: failed program was:" >&5
  8671. sed 's/^/| /' conftest.$ac_ext >&5
  8672. ac_cv_c_bigendian=no
  8673. fi
  8674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8675. else
  8676. echo "$as_me: failed program was:" >&5
  8677. sed 's/^/| /' conftest.$ac_ext >&5
  8678. # It does not; compile a test program.
  8679. if test "$cross_compiling" = yes; then
  8680. # try to guess the endianness by grepping values into an object file
  8681. ac_cv_c_bigendian=unknown
  8682. cat >conftest.$ac_ext <<_ACEOF
  8683. /* confdefs.h. */
  8684. _ACEOF
  8685. cat confdefs.h >>conftest.$ac_ext
  8686. cat >>conftest.$ac_ext <<_ACEOF
  8687. /* end confdefs.h. */
  8688. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  8689. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  8690. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  8691. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  8692. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  8693. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  8694. int
  8695. main ()
  8696. {
  8697. _ascii (); _ebcdic ();
  8698. ;
  8699. return 0;
  8700. }
  8701. _ACEOF
  8702. rm -f conftest.$ac_objext
  8703. if { (ac_try="$ac_compile"
  8704. case "(($ac_try" in
  8705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8706. *) ac_try_echo=$ac_try;;
  8707. esac
  8708. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8709. (eval "$ac_compile") 2>conftest.er1
  8710. ac_status=$?
  8711. grep -v '^ *+' conftest.er1 >conftest.err
  8712. rm -f conftest.er1
  8713. cat conftest.err >&5
  8714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8715. (exit $ac_status); } && {
  8716. test -z "$ac_cxx_werror_flag" ||
  8717. test ! -s conftest.err
  8718. } && test -s conftest.$ac_objext; then
  8719. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  8720. ac_cv_c_bigendian=yes
  8721. fi
  8722. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  8723. if test "$ac_cv_c_bigendian" = unknown; then
  8724. ac_cv_c_bigendian=no
  8725. else
  8726. # finding both strings is unlikely to happen, but who knows?
  8727. ac_cv_c_bigendian=unknown
  8728. fi
  8729. fi
  8730. else
  8731. echo "$as_me: failed program was:" >&5
  8732. sed 's/^/| /' conftest.$ac_ext >&5
  8733. fi
  8734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8735. else
  8736. cat >conftest.$ac_ext <<_ACEOF
  8737. /* confdefs.h. */
  8738. _ACEOF
  8739. cat confdefs.h >>conftest.$ac_ext
  8740. cat >>conftest.$ac_ext <<_ACEOF
  8741. /* end confdefs.h. */
  8742. $ac_includes_default
  8743. int
  8744. main ()
  8745. {
  8746. /* Are we little or big endian? From Harbison&Steele. */
  8747. union
  8748. {
  8749. long int l;
  8750. char c[sizeof (long int)];
  8751. } u;
  8752. u.l = 1;
  8753. return u.c[sizeof (long int) - 1] == 1;
  8754. ;
  8755. return 0;
  8756. }
  8757. _ACEOF
  8758. rm -f conftest$ac_exeext
  8759. if { (ac_try="$ac_link"
  8760. case "(($ac_try" in
  8761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8762. *) ac_try_echo=$ac_try;;
  8763. esac
  8764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8765. (eval "$ac_link") 2>&5
  8766. ac_status=$?
  8767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8768. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8769. { (case "(($ac_try" in
  8770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8771. *) ac_try_echo=$ac_try;;
  8772. esac
  8773. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8774. (eval "$ac_try") 2>&5
  8775. ac_status=$?
  8776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8777. (exit $ac_status); }; }; then
  8778. ac_cv_c_bigendian=no
  8779. else
  8780. echo "$as_me: program exited with status $ac_status" >&5
  8781. echo "$as_me: failed program was:" >&5
  8782. sed 's/^/| /' conftest.$ac_ext >&5
  8783. ( exit $ac_status )
  8784. ac_cv_c_bigendian=yes
  8785. fi
  8786. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8787. fi
  8788. fi
  8789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8790. fi
  8791. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  8792. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  8793. case $ac_cv_c_bigendian in
  8794. yes)
  8795. cat >>confdefs.h <<\_ACEOF
  8796. #define WORDS_BIGENDIAN 1
  8797. _ACEOF
  8798. ;;
  8799. no)
  8800. ;;
  8801. *)
  8802. { { echo "$as_me:$LINENO: error: unknown endianness
  8803. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  8804. echo "$as_me: error: unknown endianness
  8805. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  8806. { (exit 1); exit 1; }; } ;;
  8807. esac
  8808. # Check whether --enable-largefile was given.
  8809. if test "${enable_largefile+set}" = set; then
  8810. enableval=$enable_largefile;
  8811. fi
  8812. if test "$enable_largefile" != no; then
  8813. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  8814. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  8815. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  8816. echo $ECHO_N "(cached) $ECHO_C" >&6
  8817. else
  8818. ac_cv_sys_largefile_CC=no
  8819. if test "$GCC" != yes; then
  8820. ac_save_CC=$CC
  8821. while :; do
  8822. # IRIX 6.2 and later do not support large files by default,
  8823. # so use the C compiler's -n32 option if that helps.
  8824. cat >conftest.$ac_ext <<_ACEOF
  8825. /* confdefs.h. */
  8826. _ACEOF
  8827. cat confdefs.h >>conftest.$ac_ext
  8828. cat >>conftest.$ac_ext <<_ACEOF
  8829. /* end confdefs.h. */
  8830. #include <sys/types.h>
  8831. /* Check that off_t can represent 2**63 - 1 correctly.
  8832. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8833. since some C++ compilers masquerading as C compilers
  8834. incorrectly reject 9223372036854775807. */
  8835. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8836. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8837. && LARGE_OFF_T % 2147483647 == 1)
  8838. ? 1 : -1];
  8839. int
  8840. main ()
  8841. {
  8842. ;
  8843. return 0;
  8844. }
  8845. _ACEOF
  8846. rm -f conftest.$ac_objext
  8847. if { (ac_try="$ac_compile"
  8848. case "(($ac_try" in
  8849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8850. *) ac_try_echo=$ac_try;;
  8851. esac
  8852. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8853. (eval "$ac_compile") 2>conftest.er1
  8854. ac_status=$?
  8855. grep -v '^ *+' conftest.er1 >conftest.err
  8856. rm -f conftest.er1
  8857. cat conftest.err >&5
  8858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8859. (exit $ac_status); } && {
  8860. test -z "$ac_cxx_werror_flag" ||
  8861. test ! -s conftest.err
  8862. } && test -s conftest.$ac_objext; then
  8863. break
  8864. else
  8865. echo "$as_me: failed program was:" >&5
  8866. sed 's/^/| /' conftest.$ac_ext >&5
  8867. fi
  8868. rm -f core conftest.err conftest.$ac_objext
  8869. CC="$CC -n32"
  8870. rm -f conftest.$ac_objext
  8871. if { (ac_try="$ac_compile"
  8872. case "(($ac_try" in
  8873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8874. *) ac_try_echo=$ac_try;;
  8875. esac
  8876. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8877. (eval "$ac_compile") 2>conftest.er1
  8878. ac_status=$?
  8879. grep -v '^ *+' conftest.er1 >conftest.err
  8880. rm -f conftest.er1
  8881. cat conftest.err >&5
  8882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8883. (exit $ac_status); } && {
  8884. test -z "$ac_cxx_werror_flag" ||
  8885. test ! -s conftest.err
  8886. } && test -s conftest.$ac_objext; then
  8887. ac_cv_sys_largefile_CC=' -n32'; break
  8888. else
  8889. echo "$as_me: failed program was:" >&5
  8890. sed 's/^/| /' conftest.$ac_ext >&5
  8891. fi
  8892. rm -f core conftest.err conftest.$ac_objext
  8893. break
  8894. done
  8895. CC=$ac_save_CC
  8896. rm -f conftest.$ac_ext
  8897. fi
  8898. fi
  8899. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  8900. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  8901. if test "$ac_cv_sys_largefile_CC" != no; then
  8902. CC=$CC$ac_cv_sys_largefile_CC
  8903. fi
  8904. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  8905. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  8906. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  8907. echo $ECHO_N "(cached) $ECHO_C" >&6
  8908. else
  8909. while :; do
  8910. cat >conftest.$ac_ext <<_ACEOF
  8911. /* confdefs.h. */
  8912. _ACEOF
  8913. cat confdefs.h >>conftest.$ac_ext
  8914. cat >>conftest.$ac_ext <<_ACEOF
  8915. /* end confdefs.h. */
  8916. #include <sys/types.h>
  8917. /* Check that off_t can represent 2**63 - 1 correctly.
  8918. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8919. since some C++ compilers masquerading as C compilers
  8920. incorrectly reject 9223372036854775807. */
  8921. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8922. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8923. && LARGE_OFF_T % 2147483647 == 1)
  8924. ? 1 : -1];
  8925. int
  8926. main ()
  8927. {
  8928. ;
  8929. return 0;
  8930. }
  8931. _ACEOF
  8932. rm -f conftest.$ac_objext
  8933. if { (ac_try="$ac_compile"
  8934. case "(($ac_try" in
  8935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8936. *) ac_try_echo=$ac_try;;
  8937. esac
  8938. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8939. (eval "$ac_compile") 2>conftest.er1
  8940. ac_status=$?
  8941. grep -v '^ *+' conftest.er1 >conftest.err
  8942. rm -f conftest.er1
  8943. cat conftest.err >&5
  8944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8945. (exit $ac_status); } && {
  8946. test -z "$ac_cxx_werror_flag" ||
  8947. test ! -s conftest.err
  8948. } && test -s conftest.$ac_objext; then
  8949. ac_cv_sys_file_offset_bits=no; break
  8950. else
  8951. echo "$as_me: failed program was:" >&5
  8952. sed 's/^/| /' conftest.$ac_ext >&5
  8953. fi
  8954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8955. cat >conftest.$ac_ext <<_ACEOF
  8956. /* confdefs.h. */
  8957. _ACEOF
  8958. cat confdefs.h >>conftest.$ac_ext
  8959. cat >>conftest.$ac_ext <<_ACEOF
  8960. /* end confdefs.h. */
  8961. #define _FILE_OFFSET_BITS 64
  8962. #include <sys/types.h>
  8963. /* Check that off_t can represent 2**63 - 1 correctly.
  8964. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8965. since some C++ compilers masquerading as C compilers
  8966. incorrectly reject 9223372036854775807. */
  8967. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8968. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8969. && LARGE_OFF_T % 2147483647 == 1)
  8970. ? 1 : -1];
  8971. int
  8972. main ()
  8973. {
  8974. ;
  8975. return 0;
  8976. }
  8977. _ACEOF
  8978. rm -f conftest.$ac_objext
  8979. if { (ac_try="$ac_compile"
  8980. case "(($ac_try" in
  8981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8982. *) ac_try_echo=$ac_try;;
  8983. esac
  8984. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8985. (eval "$ac_compile") 2>conftest.er1
  8986. ac_status=$?
  8987. grep -v '^ *+' conftest.er1 >conftest.err
  8988. rm -f conftest.er1
  8989. cat conftest.err >&5
  8990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8991. (exit $ac_status); } && {
  8992. test -z "$ac_cxx_werror_flag" ||
  8993. test ! -s conftest.err
  8994. } && test -s conftest.$ac_objext; then
  8995. ac_cv_sys_file_offset_bits=64; break
  8996. else
  8997. echo "$as_me: failed program was:" >&5
  8998. sed 's/^/| /' conftest.$ac_ext >&5
  8999. fi
  9000. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9001. ac_cv_sys_file_offset_bits=unknown
  9002. break
  9003. done
  9004. fi
  9005. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  9006. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  9007. case $ac_cv_sys_file_offset_bits in #(
  9008. no | unknown) ;;
  9009. *)
  9010. cat >>confdefs.h <<_ACEOF
  9011. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9012. _ACEOF
  9013. ;;
  9014. esac
  9015. rm -f conftest*
  9016. if test $ac_cv_sys_file_offset_bits = unknown; then
  9017. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  9018. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  9019. if test "${ac_cv_sys_large_files+set}" = set; then
  9020. echo $ECHO_N "(cached) $ECHO_C" >&6
  9021. else
  9022. while :; do
  9023. cat >conftest.$ac_ext <<_ACEOF
  9024. /* confdefs.h. */
  9025. _ACEOF
  9026. cat confdefs.h >>conftest.$ac_ext
  9027. cat >>conftest.$ac_ext <<_ACEOF
  9028. /* end confdefs.h. */
  9029. #include <sys/types.h>
  9030. /* Check that off_t can represent 2**63 - 1 correctly.
  9031. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9032. since some C++ compilers masquerading as C compilers
  9033. incorrectly reject 9223372036854775807. */
  9034. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9035. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9036. && LARGE_OFF_T % 2147483647 == 1)
  9037. ? 1 : -1];
  9038. int
  9039. main ()
  9040. {
  9041. ;
  9042. return 0;
  9043. }
  9044. _ACEOF
  9045. rm -f conftest.$ac_objext
  9046. if { (ac_try="$ac_compile"
  9047. case "(($ac_try" in
  9048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9049. *) ac_try_echo=$ac_try;;
  9050. esac
  9051. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9052. (eval "$ac_compile") 2>conftest.er1
  9053. ac_status=$?
  9054. grep -v '^ *+' conftest.er1 >conftest.err
  9055. rm -f conftest.er1
  9056. cat conftest.err >&5
  9057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9058. (exit $ac_status); } && {
  9059. test -z "$ac_cxx_werror_flag" ||
  9060. test ! -s conftest.err
  9061. } && test -s conftest.$ac_objext; then
  9062. ac_cv_sys_large_files=no; break
  9063. else
  9064. echo "$as_me: failed program was:" >&5
  9065. sed 's/^/| /' conftest.$ac_ext >&5
  9066. fi
  9067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9068. cat >conftest.$ac_ext <<_ACEOF
  9069. /* confdefs.h. */
  9070. _ACEOF
  9071. cat confdefs.h >>conftest.$ac_ext
  9072. cat >>conftest.$ac_ext <<_ACEOF
  9073. /* end confdefs.h. */
  9074. #define _LARGE_FILES 1
  9075. #include <sys/types.h>
  9076. /* Check that off_t can represent 2**63 - 1 correctly.
  9077. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9078. since some C++ compilers masquerading as C compilers
  9079. incorrectly reject 9223372036854775807. */
  9080. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9081. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9082. && LARGE_OFF_T % 2147483647 == 1)
  9083. ? 1 : -1];
  9084. int
  9085. main ()
  9086. {
  9087. ;
  9088. return 0;
  9089. }
  9090. _ACEOF
  9091. rm -f conftest.$ac_objext
  9092. if { (ac_try="$ac_compile"
  9093. case "(($ac_try" in
  9094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9095. *) ac_try_echo=$ac_try;;
  9096. esac
  9097. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9098. (eval "$ac_compile") 2>conftest.er1
  9099. ac_status=$?
  9100. grep -v '^ *+' conftest.er1 >conftest.err
  9101. rm -f conftest.er1
  9102. cat conftest.err >&5
  9103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9104. (exit $ac_status); } && {
  9105. test -z "$ac_cxx_werror_flag" ||
  9106. test ! -s conftest.err
  9107. } && test -s conftest.$ac_objext; then
  9108. ac_cv_sys_large_files=1; break
  9109. else
  9110. echo "$as_me: failed program was:" >&5
  9111. sed 's/^/| /' conftest.$ac_ext >&5
  9112. fi
  9113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9114. ac_cv_sys_large_files=unknown
  9115. break
  9116. done
  9117. fi
  9118. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  9119. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  9120. case $ac_cv_sys_large_files in #(
  9121. no | unknown) ;;
  9122. *)
  9123. cat >>confdefs.h <<_ACEOF
  9124. #define _LARGE_FILES $ac_cv_sys_large_files
  9125. _ACEOF
  9126. ;;
  9127. esac
  9128. rm -f conftest*
  9129. fi
  9130. fi
  9131. # Checks for library functions.
  9132. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9133. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9134. # Check whether --enable-nls was given.
  9135. if test "${enable_nls+set}" = set; then
  9136. enableval=$enable_nls; USE_NLS=$enableval
  9137. else
  9138. USE_NLS=yes
  9139. fi
  9140. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9141. echo "${ECHO_T}$USE_NLS" >&6; }
  9142. GETTEXT_MACRO_VERSION=0.17
  9143. # Prepare PATH_SEPARATOR.
  9144. # The user is always right.
  9145. if test "${PATH_SEPARATOR+set}" != set; then
  9146. echo "#! /bin/sh" >conf$$.sh
  9147. echo "exit 0" >>conf$$.sh
  9148. chmod +x conf$$.sh
  9149. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9150. PATH_SEPARATOR=';'
  9151. else
  9152. PATH_SEPARATOR=:
  9153. fi
  9154. rm -f conf$$.sh
  9155. fi
  9156. # Find out how to test for executable files. Don't use a zero-byte file,
  9157. # as systems may use methods other than mode bits to determine executability.
  9158. cat >conf$$.file <<_ASEOF
  9159. #! /bin/sh
  9160. exit 0
  9161. _ASEOF
  9162. chmod +x conf$$.file
  9163. if test -x conf$$.file >/dev/null 2>&1; then
  9164. ac_executable_p="test -x"
  9165. else
  9166. ac_executable_p="test -f"
  9167. fi
  9168. rm -f conf$$.file
  9169. # Extract the first word of "msgfmt", so it can be a program name with args.
  9170. set dummy msgfmt; ac_word=$2
  9171. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9172. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9173. if test "${ac_cv_path_MSGFMT+set}" = set; then
  9174. echo $ECHO_N "(cached) $ECHO_C" >&6
  9175. else
  9176. case "$MSGFMT" in
  9177. [\\/]* | ?:[\\/]*)
  9178. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  9179. ;;
  9180. *)
  9181. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9182. for ac_dir in $PATH; do
  9183. IFS="$ac_save_IFS"
  9184. test -z "$ac_dir" && ac_dir=.
  9185. for ac_exec_ext in '' $ac_executable_extensions; do
  9186. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9187. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9188. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  9189. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  9190. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  9191. break 2
  9192. fi
  9193. fi
  9194. done
  9195. done
  9196. IFS="$ac_save_IFS"
  9197. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  9198. ;;
  9199. esac
  9200. fi
  9201. MSGFMT="$ac_cv_path_MSGFMT"
  9202. if test "$MSGFMT" != ":"; then
  9203. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  9204. echo "${ECHO_T}$MSGFMT" >&6; }
  9205. else
  9206. { echo "$as_me:$LINENO: result: no" >&5
  9207. echo "${ECHO_T}no" >&6; }
  9208. fi
  9209. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  9210. set dummy gmsgfmt; ac_word=$2
  9211. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9212. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9213. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  9214. echo $ECHO_N "(cached) $ECHO_C" >&6
  9215. else
  9216. case $GMSGFMT in
  9217. [\\/]* | ?:[\\/]*)
  9218. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  9219. ;;
  9220. *)
  9221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9222. for as_dir in $PATH
  9223. do
  9224. IFS=$as_save_IFS
  9225. test -z "$as_dir" && as_dir=.
  9226. for ac_exec_ext in '' $ac_executable_extensions; do
  9227. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9228. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  9229. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9230. break 2
  9231. fi
  9232. done
  9233. done
  9234. IFS=$as_save_IFS
  9235. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  9236. ;;
  9237. esac
  9238. fi
  9239. GMSGFMT=$ac_cv_path_GMSGFMT
  9240. if test -n "$GMSGFMT"; then
  9241. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  9242. echo "${ECHO_T}$GMSGFMT" >&6; }
  9243. else
  9244. { echo "$as_me:$LINENO: result: no" >&5
  9245. echo "${ECHO_T}no" >&6; }
  9246. fi
  9247. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9248. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  9249. *) MSGFMT_015=$MSGFMT ;;
  9250. esac
  9251. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9252. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  9253. *) GMSGFMT_015=$GMSGFMT ;;
  9254. esac
  9255. # Prepare PATH_SEPARATOR.
  9256. # The user is always right.
  9257. if test "${PATH_SEPARATOR+set}" != set; then
  9258. echo "#! /bin/sh" >conf$$.sh
  9259. echo "exit 0" >>conf$$.sh
  9260. chmod +x conf$$.sh
  9261. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9262. PATH_SEPARATOR=';'
  9263. else
  9264. PATH_SEPARATOR=:
  9265. fi
  9266. rm -f conf$$.sh
  9267. fi
  9268. # Find out how to test for executable files. Don't use a zero-byte file,
  9269. # as systems may use methods other than mode bits to determine executability.
  9270. cat >conf$$.file <<_ASEOF
  9271. #! /bin/sh
  9272. exit 0
  9273. _ASEOF
  9274. chmod +x conf$$.file
  9275. if test -x conf$$.file >/dev/null 2>&1; then
  9276. ac_executable_p="test -x"
  9277. else
  9278. ac_executable_p="test -f"
  9279. fi
  9280. rm -f conf$$.file
  9281. # Extract the first word of "xgettext", so it can be a program name with args.
  9282. set dummy xgettext; ac_word=$2
  9283. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9284. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9285. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  9286. echo $ECHO_N "(cached) $ECHO_C" >&6
  9287. else
  9288. case "$XGETTEXT" in
  9289. [\\/]* | ?:[\\/]*)
  9290. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  9291. ;;
  9292. *)
  9293. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9294. for ac_dir in $PATH; do
  9295. IFS="$ac_save_IFS"
  9296. test -z "$ac_dir" && ac_dir=.
  9297. for ac_exec_ext in '' $ac_executable_extensions; do
  9298. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9299. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9300. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  9301. (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
  9302. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  9303. break 2
  9304. fi
  9305. fi
  9306. done
  9307. done
  9308. IFS="$ac_save_IFS"
  9309. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  9310. ;;
  9311. esac
  9312. fi
  9313. XGETTEXT="$ac_cv_path_XGETTEXT"
  9314. if test "$XGETTEXT" != ":"; then
  9315. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  9316. echo "${ECHO_T}$XGETTEXT" >&6; }
  9317. else
  9318. { echo "$as_me:$LINENO: result: no" >&5
  9319. echo "${ECHO_T}no" >&6; }
  9320. fi
  9321. rm -f messages.po
  9322. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  9323. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  9324. *) XGETTEXT_015=$XGETTEXT ;;
  9325. esac
  9326. # Prepare PATH_SEPARATOR.
  9327. # The user is always right.
  9328. if test "${PATH_SEPARATOR+set}" != set; then
  9329. echo "#! /bin/sh" >conf$$.sh
  9330. echo "exit 0" >>conf$$.sh
  9331. chmod +x conf$$.sh
  9332. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9333. PATH_SEPARATOR=';'
  9334. else
  9335. PATH_SEPARATOR=:
  9336. fi
  9337. rm -f conf$$.sh
  9338. fi
  9339. # Find out how to test for executable files. Don't use a zero-byte file,
  9340. # as systems may use methods other than mode bits to determine executability.
  9341. cat >conf$$.file <<_ASEOF
  9342. #! /bin/sh
  9343. exit 0
  9344. _ASEOF
  9345. chmod +x conf$$.file
  9346. if test -x conf$$.file >/dev/null 2>&1; then
  9347. ac_executable_p="test -x"
  9348. else
  9349. ac_executable_p="test -f"
  9350. fi
  9351. rm -f conf$$.file
  9352. # Extract the first word of "msgmerge", so it can be a program name with args.
  9353. set dummy msgmerge; ac_word=$2
  9354. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9355. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9356. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  9357. echo $ECHO_N "(cached) $ECHO_C" >&6
  9358. else
  9359. case "$MSGMERGE" in
  9360. [\\/]* | ?:[\\/]*)
  9361. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  9362. ;;
  9363. *)
  9364. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  9365. for ac_dir in $PATH; do
  9366. IFS="$ac_save_IFS"
  9367. test -z "$ac_dir" && ac_dir=.
  9368. for ac_exec_ext in '' $ac_executable_extensions; do
  9369. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  9370. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  9371. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  9372. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  9373. break 2
  9374. fi
  9375. fi
  9376. done
  9377. done
  9378. IFS="$ac_save_IFS"
  9379. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  9380. ;;
  9381. esac
  9382. fi
  9383. MSGMERGE="$ac_cv_path_MSGMERGE"
  9384. if test "$MSGMERGE" != ":"; then
  9385. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  9386. echo "${ECHO_T}$MSGMERGE" >&6; }
  9387. else
  9388. { echo "$as_me:$LINENO: result: no" >&5
  9389. echo "${ECHO_T}no" >&6; }
  9390. fi
  9391. test -n "$localedir" || localedir='${datadir}/locale'
  9392. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  9393. ac_config_commands="$ac_config_commands po-directories"
  9394. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  9395. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  9396. if test "${ac_cv_gnu_library_2+set}" = set; then
  9397. echo $ECHO_N "(cached) $ECHO_C" >&6
  9398. else
  9399. cat >conftest.$ac_ext <<_ACEOF
  9400. /* confdefs.h. */
  9401. _ACEOF
  9402. cat confdefs.h >>conftest.$ac_ext
  9403. cat >>conftest.$ac_ext <<_ACEOF
  9404. /* end confdefs.h. */
  9405. #include <features.h>
  9406. #ifdef __GNU_LIBRARY__
  9407. #if (__GLIBC__ >= 2)
  9408. Lucky GNU user
  9409. #endif
  9410. #endif
  9411. _ACEOF
  9412. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9413. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  9414. ac_cv_gnu_library_2=yes
  9415. else
  9416. ac_cv_gnu_library_2=no
  9417. fi
  9418. rm -f conftest*
  9419. fi
  9420. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  9421. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  9422. GLIBC2="$ac_cv_gnu_library_2"
  9423. CFLAG_VISIBILITY=
  9424. HAVE_VISIBILITY=0
  9425. if test -n "$GCC"; then
  9426. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  9427. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  9428. if test "${gl_cv_cc_visibility+set}" = set; then
  9429. echo $ECHO_N "(cached) $ECHO_C" >&6
  9430. else
  9431. gl_save_CFLAGS="$CFLAGS"
  9432. CFLAGS="$CFLAGS -fvisibility=hidden"
  9433. cat >conftest.$ac_ext <<_ACEOF
  9434. /* confdefs.h. */
  9435. _ACEOF
  9436. cat confdefs.h >>conftest.$ac_ext
  9437. cat >>conftest.$ac_ext <<_ACEOF
  9438. /* end confdefs.h. */
  9439. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  9440. extern __attribute__((__visibility__("default"))) int exportedvar;
  9441. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  9442. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  9443. int
  9444. main ()
  9445. {
  9446. ;
  9447. return 0;
  9448. }
  9449. _ACEOF
  9450. rm -f conftest.$ac_objext
  9451. if { (ac_try="$ac_compile"
  9452. case "(($ac_try" in
  9453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9454. *) ac_try_echo=$ac_try;;
  9455. esac
  9456. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9457. (eval "$ac_compile") 2>conftest.er1
  9458. ac_status=$?
  9459. grep -v '^ *+' conftest.er1 >conftest.err
  9460. rm -f conftest.er1
  9461. cat conftest.err >&5
  9462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9463. (exit $ac_status); } && {
  9464. test -z "$ac_cxx_werror_flag" ||
  9465. test ! -s conftest.err
  9466. } && test -s conftest.$ac_objext; then
  9467. gl_cv_cc_visibility=yes
  9468. else
  9469. echo "$as_me: failed program was:" >&5
  9470. sed 's/^/| /' conftest.$ac_ext >&5
  9471. gl_cv_cc_visibility=no
  9472. fi
  9473. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9474. CFLAGS="$gl_save_CFLAGS"
  9475. fi
  9476. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9477. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9478. if test $gl_cv_cc_visibility = yes; then
  9479. CFLAG_VISIBILITY="-fvisibility=hidden"
  9480. HAVE_VISIBILITY=1
  9481. fi
  9482. fi
  9483. cat >>confdefs.h <<_ACEOF
  9484. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9485. _ACEOF
  9486. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9487. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9488. if test "${gl_cv_header_stdint_h+set}" = set; then
  9489. echo $ECHO_N "(cached) $ECHO_C" >&6
  9490. else
  9491. cat >conftest.$ac_ext <<_ACEOF
  9492. /* confdefs.h. */
  9493. _ACEOF
  9494. cat confdefs.h >>conftest.$ac_ext
  9495. cat >>conftest.$ac_ext <<_ACEOF
  9496. /* end confdefs.h. */
  9497. #include <sys/types.h>
  9498. #include <stdint.h>
  9499. int
  9500. main ()
  9501. {
  9502. uintmax_t i = (uintmax_t) -1; return !i;
  9503. ;
  9504. return 0;
  9505. }
  9506. _ACEOF
  9507. rm -f conftest.$ac_objext
  9508. if { (ac_try="$ac_compile"
  9509. case "(($ac_try" in
  9510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9511. *) ac_try_echo=$ac_try;;
  9512. esac
  9513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9514. (eval "$ac_compile") 2>conftest.er1
  9515. ac_status=$?
  9516. grep -v '^ *+' conftest.er1 >conftest.err
  9517. rm -f conftest.er1
  9518. cat conftest.err >&5
  9519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9520. (exit $ac_status); } && {
  9521. test -z "$ac_cxx_werror_flag" ||
  9522. test ! -s conftest.err
  9523. } && test -s conftest.$ac_objext; then
  9524. gl_cv_header_stdint_h=yes
  9525. else
  9526. echo "$as_me: failed program was:" >&5
  9527. sed 's/^/| /' conftest.$ac_ext >&5
  9528. gl_cv_header_stdint_h=no
  9529. fi
  9530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9531. fi
  9532. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9533. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9534. if test $gl_cv_header_stdint_h = yes; then
  9535. cat >>confdefs.h <<_ACEOF
  9536. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9537. _ACEOF
  9538. fi
  9539. for ac_header in stdlib.h unistd.h
  9540. do
  9541. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9542. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9543. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9544. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9545. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9546. echo $ECHO_N "(cached) $ECHO_C" >&6
  9547. fi
  9548. ac_res=`eval echo '${'$as_ac_Header'}'`
  9549. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9550. echo "${ECHO_T}$ac_res" >&6; }
  9551. else
  9552. # Is the header compilable?
  9553. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9554. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9555. cat >conftest.$ac_ext <<_ACEOF
  9556. /* confdefs.h. */
  9557. _ACEOF
  9558. cat confdefs.h >>conftest.$ac_ext
  9559. cat >>conftest.$ac_ext <<_ACEOF
  9560. /* end confdefs.h. */
  9561. $ac_includes_default
  9562. #include <$ac_header>
  9563. _ACEOF
  9564. rm -f conftest.$ac_objext
  9565. if { (ac_try="$ac_compile"
  9566. case "(($ac_try" in
  9567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9568. *) ac_try_echo=$ac_try;;
  9569. esac
  9570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9571. (eval "$ac_compile") 2>conftest.er1
  9572. ac_status=$?
  9573. grep -v '^ *+' conftest.er1 >conftest.err
  9574. rm -f conftest.er1
  9575. cat conftest.err >&5
  9576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9577. (exit $ac_status); } && {
  9578. test -z "$ac_cxx_werror_flag" ||
  9579. test ! -s conftest.err
  9580. } && test -s conftest.$ac_objext; then
  9581. ac_header_compiler=yes
  9582. else
  9583. echo "$as_me: failed program was:" >&5
  9584. sed 's/^/| /' conftest.$ac_ext >&5
  9585. ac_header_compiler=no
  9586. fi
  9587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9588. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9589. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9590. # Is the header present?
  9591. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9592. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9593. cat >conftest.$ac_ext <<_ACEOF
  9594. /* confdefs.h. */
  9595. _ACEOF
  9596. cat confdefs.h >>conftest.$ac_ext
  9597. cat >>conftest.$ac_ext <<_ACEOF
  9598. /* end confdefs.h. */
  9599. #include <$ac_header>
  9600. _ACEOF
  9601. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9602. case "(($ac_try" in
  9603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9604. *) ac_try_echo=$ac_try;;
  9605. esac
  9606. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9607. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9608. ac_status=$?
  9609. grep -v '^ *+' conftest.er1 >conftest.err
  9610. rm -f conftest.er1
  9611. cat conftest.err >&5
  9612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9613. (exit $ac_status); } >/dev/null && {
  9614. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9615. test ! -s conftest.err
  9616. }; then
  9617. ac_header_preproc=yes
  9618. else
  9619. echo "$as_me: failed program was:" >&5
  9620. sed 's/^/| /' conftest.$ac_ext >&5
  9621. ac_header_preproc=no
  9622. fi
  9623. rm -f conftest.err conftest.$ac_ext
  9624. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9625. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9626. # So? What about this header?
  9627. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9628. yes:no: )
  9629. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9630. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9631. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9632. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9633. ac_header_preproc=yes
  9634. ;;
  9635. no:yes:* )
  9636. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9637. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9638. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9639. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9640. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9641. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9642. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9643. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9644. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9645. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9646. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9647. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9648. ( cat <<\_ASBOX
  9649. ## ----------------------------------------------- ##
  9650. ## Report this to t-tujikawa@users.sourceforge.net ##
  9651. ## ----------------------------------------------- ##
  9652. _ASBOX
  9653. ) | sed "s/^/$as_me: WARNING: /" >&2
  9654. ;;
  9655. esac
  9656. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9657. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9658. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9659. echo $ECHO_N "(cached) $ECHO_C" >&6
  9660. else
  9661. eval "$as_ac_Header=\$ac_header_preproc"
  9662. fi
  9663. ac_res=`eval echo '${'$as_ac_Header'}'`
  9664. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9665. echo "${ECHO_T}$ac_res" >&6; }
  9666. fi
  9667. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9668. cat >>confdefs.h <<_ACEOF
  9669. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9670. _ACEOF
  9671. fi
  9672. done
  9673. for ac_func in getpagesize
  9674. do
  9675. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9676. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9677. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9678. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9679. echo $ECHO_N "(cached) $ECHO_C" >&6
  9680. else
  9681. cat >conftest.$ac_ext <<_ACEOF
  9682. /* confdefs.h. */
  9683. _ACEOF
  9684. cat confdefs.h >>conftest.$ac_ext
  9685. cat >>conftest.$ac_ext <<_ACEOF
  9686. /* end confdefs.h. */
  9687. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9688. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9689. #define $ac_func innocuous_$ac_func
  9690. /* System header to define __stub macros and hopefully few prototypes,
  9691. which can conflict with char $ac_func (); below.
  9692. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9693. <limits.h> exists even on freestanding compilers. */
  9694. #ifdef __STDC__
  9695. # include <limits.h>
  9696. #else
  9697. # include <assert.h>
  9698. #endif
  9699. #undef $ac_func
  9700. /* Override any GCC internal prototype to avoid an error.
  9701. Use char because int might match the return type of a GCC
  9702. builtin and then its argument prototype would still apply. */
  9703. #ifdef __cplusplus
  9704. extern "C"
  9705. #endif
  9706. char $ac_func ();
  9707. /* The GNU C library defines this for functions which it implements
  9708. to always fail with ENOSYS. Some functions are actually named
  9709. something starting with __ and the normal name is an alias. */
  9710. #if defined __stub_$ac_func || defined __stub___$ac_func
  9711. choke me
  9712. #endif
  9713. int
  9714. main ()
  9715. {
  9716. return $ac_func ();
  9717. ;
  9718. return 0;
  9719. }
  9720. _ACEOF
  9721. rm -f conftest.$ac_objext conftest$ac_exeext
  9722. if { (ac_try="$ac_link"
  9723. case "(($ac_try" in
  9724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9725. *) ac_try_echo=$ac_try;;
  9726. esac
  9727. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9728. (eval "$ac_link") 2>conftest.er1
  9729. ac_status=$?
  9730. grep -v '^ *+' conftest.er1 >conftest.err
  9731. rm -f conftest.er1
  9732. cat conftest.err >&5
  9733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9734. (exit $ac_status); } && {
  9735. test -z "$ac_cxx_werror_flag" ||
  9736. test ! -s conftest.err
  9737. } && test -s conftest$ac_exeext &&
  9738. $as_test_x conftest$ac_exeext; then
  9739. eval "$as_ac_var=yes"
  9740. else
  9741. echo "$as_me: failed program was:" >&5
  9742. sed 's/^/| /' conftest.$ac_ext >&5
  9743. eval "$as_ac_var=no"
  9744. fi
  9745. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9746. conftest$ac_exeext conftest.$ac_ext
  9747. fi
  9748. ac_res=`eval echo '${'$as_ac_var'}'`
  9749. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9750. echo "${ECHO_T}$ac_res" >&6; }
  9751. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9752. cat >>confdefs.h <<_ACEOF
  9753. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9754. _ACEOF
  9755. fi
  9756. done
  9757. { echo "$as_me:$LINENO: checking for working mmap" >&5
  9758. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  9759. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9760. echo $ECHO_N "(cached) $ECHO_C" >&6
  9761. else
  9762. if test "$cross_compiling" = yes; then
  9763. ac_cv_func_mmap_fixed_mapped=no
  9764. else
  9765. cat >conftest.$ac_ext <<_ACEOF
  9766. /* confdefs.h. */
  9767. _ACEOF
  9768. cat confdefs.h >>conftest.$ac_ext
  9769. cat >>conftest.$ac_ext <<_ACEOF
  9770. /* end confdefs.h. */
  9771. $ac_includes_default
  9772. /* malloc might have been renamed as rpl_malloc. */
  9773. #undef malloc
  9774. /* Thanks to Mike Haertel and Jim Avera for this test.
  9775. Here is a matrix of mmap possibilities:
  9776. mmap private not fixed
  9777. mmap private fixed at somewhere currently unmapped
  9778. mmap private fixed at somewhere already mapped
  9779. mmap shared not fixed
  9780. mmap shared fixed at somewhere currently unmapped
  9781. mmap shared fixed at somewhere already mapped
  9782. For private mappings, we should verify that changes cannot be read()
  9783. back from the file, nor mmap's back from the file at a different
  9784. address. (There have been systems where private was not correctly
  9785. implemented like the infamous i386 svr4.0, and systems where the
  9786. VM page cache was not coherent with the file system buffer cache
  9787. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9788. For shared mappings, we should conversely verify that changes get
  9789. propagated back to all the places they're supposed to be.
  9790. Grep wants private fixed already mapped.
  9791. The main things grep needs to know about mmap are:
  9792. * does it exist and is it safe to write into the mmap'd area
  9793. * how to use it (BSD variants) */
  9794. #include <fcntl.h>
  9795. #include <sys/mman.h>
  9796. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9797. char *malloc ();
  9798. #endif
  9799. /* This mess was copied from the GNU getpagesize.h. */
  9800. #ifndef HAVE_GETPAGESIZE
  9801. /* Assume that all systems that can run configure have sys/param.h. */
  9802. # ifndef HAVE_SYS_PARAM_H
  9803. # define HAVE_SYS_PARAM_H 1
  9804. # endif
  9805. # ifdef _SC_PAGESIZE
  9806. # define getpagesize() sysconf(_SC_PAGESIZE)
  9807. # else /* no _SC_PAGESIZE */
  9808. # ifdef HAVE_SYS_PARAM_H
  9809. # include <sys/param.h>
  9810. # ifdef EXEC_PAGESIZE
  9811. # define getpagesize() EXEC_PAGESIZE
  9812. # else /* no EXEC_PAGESIZE */
  9813. # ifdef NBPG
  9814. # define getpagesize() NBPG * CLSIZE
  9815. # ifndef CLSIZE
  9816. # define CLSIZE 1
  9817. # endif /* no CLSIZE */
  9818. # else /* no NBPG */
  9819. # ifdef NBPC
  9820. # define getpagesize() NBPC
  9821. # else /* no NBPC */
  9822. # ifdef PAGESIZE
  9823. # define getpagesize() PAGESIZE
  9824. # endif /* PAGESIZE */
  9825. # endif /* no NBPC */
  9826. # endif /* no NBPG */
  9827. # endif /* no EXEC_PAGESIZE */
  9828. # else /* no HAVE_SYS_PARAM_H */
  9829. # define getpagesize() 8192 /* punt totally */
  9830. # endif /* no HAVE_SYS_PARAM_H */
  9831. # endif /* no _SC_PAGESIZE */
  9832. #endif /* no HAVE_GETPAGESIZE */
  9833. int
  9834. main ()
  9835. {
  9836. char *data, *data2, *data3;
  9837. int i, pagesize;
  9838. int fd;
  9839. pagesize = getpagesize ();
  9840. /* First, make a file with some known garbage in it. */
  9841. data = (char *) malloc (pagesize);
  9842. if (!data)
  9843. return 1;
  9844. for (i = 0; i < pagesize; ++i)
  9845. *(data + i) = rand ();
  9846. umask (0);
  9847. fd = creat ("conftest.mmap", 0600);
  9848. if (fd < 0)
  9849. return 1;
  9850. if (write (fd, data, pagesize) != pagesize)
  9851. return 1;
  9852. close (fd);
  9853. /* Next, try to mmap the file at a fixed address which already has
  9854. something else allocated at it. If we can, also make sure that
  9855. we see the same garbage. */
  9856. fd = open ("conftest.mmap", O_RDWR);
  9857. if (fd < 0)
  9858. return 1;
  9859. data2 = (char *) malloc (2 * pagesize);
  9860. if (!data2)
  9861. return 1;
  9862. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9863. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9864. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9865. return 1;
  9866. for (i = 0; i < pagesize; ++i)
  9867. if (*(data + i) != *(data2 + i))
  9868. return 1;
  9869. /* Finally, make sure that changes to the mapped area do not
  9870. percolate back to the file as seen by read(). (This is a bug on
  9871. some variants of i386 svr4.0.) */
  9872. for (i = 0; i < pagesize; ++i)
  9873. *(data2 + i) = *(data2 + i) + 1;
  9874. data3 = (char *) malloc (pagesize);
  9875. if (!data3)
  9876. return 1;
  9877. if (read (fd, data3, pagesize) != pagesize)
  9878. return 1;
  9879. for (i = 0; i < pagesize; ++i)
  9880. if (*(data + i) != *(data3 + i))
  9881. return 1;
  9882. close (fd);
  9883. return 0;
  9884. }
  9885. _ACEOF
  9886. rm -f conftest$ac_exeext
  9887. if { (ac_try="$ac_link"
  9888. case "(($ac_try" in
  9889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9890. *) ac_try_echo=$ac_try;;
  9891. esac
  9892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9893. (eval "$ac_link") 2>&5
  9894. ac_status=$?
  9895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9896. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9897. { (case "(($ac_try" in
  9898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9899. *) ac_try_echo=$ac_try;;
  9900. esac
  9901. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9902. (eval "$ac_try") 2>&5
  9903. ac_status=$?
  9904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9905. (exit $ac_status); }; }; then
  9906. ac_cv_func_mmap_fixed_mapped=yes
  9907. else
  9908. echo "$as_me: program exited with status $ac_status" >&5
  9909. echo "$as_me: failed program was:" >&5
  9910. sed 's/^/| /' conftest.$ac_ext >&5
  9911. ( exit $ac_status )
  9912. ac_cv_func_mmap_fixed_mapped=no
  9913. fi
  9914. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9915. fi
  9916. fi
  9917. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9918. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  9919. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9920. cat >>confdefs.h <<\_ACEOF
  9921. #define HAVE_MMAP 1
  9922. _ACEOF
  9923. fi
  9924. rm -f conftest.mmap
  9925. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  9926. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  9927. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  9928. echo $ECHO_N "(cached) $ECHO_C" >&6
  9929. else
  9930. gt_cv_int_divbyzero_sigfpe=
  9931. case "$host_os" in
  9932. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  9933. # On MacOS X 10.2 or newer, just assume the same as when cross-
  9934. # compiling. If we were to perform the real test, 1 Crash Report
  9935. # dialog window would pop up.
  9936. case "$host_cpu" in
  9937. i[34567]86 | x86_64)
  9938. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  9939. esac
  9940. ;;
  9941. esac
  9942. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  9943. if test "$cross_compiling" = yes; then
  9944. # Guess based on the CPU.
  9945. case "$host_cpu" in
  9946. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  9947. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  9948. *)
  9949. gt_cv_int_divbyzero_sigfpe="guessing no";;
  9950. esac
  9951. else
  9952. cat >conftest.$ac_ext <<_ACEOF
  9953. /* confdefs.h. */
  9954. _ACEOF
  9955. cat confdefs.h >>conftest.$ac_ext
  9956. cat >>conftest.$ac_ext <<_ACEOF
  9957. /* end confdefs.h. */
  9958. #include <stdlib.h>
  9959. #include <signal.h>
  9960. static void
  9961. sigfpe_handler (int sig)
  9962. {
  9963. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  9964. exit (sig != SIGFPE);
  9965. }
  9966. int x = 1;
  9967. int y = 0;
  9968. int z;
  9969. int nan;
  9970. int main ()
  9971. {
  9972. signal (SIGFPE, sigfpe_handler);
  9973. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  9974. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  9975. signal (SIGTRAP, sigfpe_handler);
  9976. #endif
  9977. /* Linux/SPARC yields signal SIGILL. */
  9978. #if defined (__sparc__) && defined (__linux__)
  9979. signal (SIGILL, sigfpe_handler);
  9980. #endif
  9981. z = x / y;
  9982. nan = y / y;
  9983. exit (1);
  9984. }
  9985. _ACEOF
  9986. rm -f conftest$ac_exeext
  9987. if { (ac_try="$ac_link"
  9988. case "(($ac_try" in
  9989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9990. *) ac_try_echo=$ac_try;;
  9991. esac
  9992. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9993. (eval "$ac_link") 2>&5
  9994. ac_status=$?
  9995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9996. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9997. { (case "(($ac_try" in
  9998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9999. *) ac_try_echo=$ac_try;;
  10000. esac
  10001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10002. (eval "$ac_try") 2>&5
  10003. ac_status=$?
  10004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10005. (exit $ac_status); }; }; then
  10006. gt_cv_int_divbyzero_sigfpe=yes
  10007. else
  10008. echo "$as_me: program exited with status $ac_status" >&5
  10009. echo "$as_me: failed program was:" >&5
  10010. sed 's/^/| /' conftest.$ac_ext >&5
  10011. ( exit $ac_status )
  10012. gt_cv_int_divbyzero_sigfpe=no
  10013. fi
  10014. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10015. fi
  10016. fi
  10017. fi
  10018. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  10019. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  10020. case "$gt_cv_int_divbyzero_sigfpe" in
  10021. *yes) value=1;;
  10022. *) value=0;;
  10023. esac
  10024. cat >>confdefs.h <<_ACEOF
  10025. #define INTDIV0_RAISES_SIGFPE $value
  10026. _ACEOF
  10027. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  10028. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  10029. if test "${gl_cv_header_inttypes_h+set}" = set; then
  10030. echo $ECHO_N "(cached) $ECHO_C" >&6
  10031. else
  10032. cat >conftest.$ac_ext <<_ACEOF
  10033. /* confdefs.h. */
  10034. _ACEOF
  10035. cat confdefs.h >>conftest.$ac_ext
  10036. cat >>conftest.$ac_ext <<_ACEOF
  10037. /* end confdefs.h. */
  10038. #include <sys/types.h>
  10039. #include <inttypes.h>
  10040. int
  10041. main ()
  10042. {
  10043. uintmax_t i = (uintmax_t) -1; return !i;
  10044. ;
  10045. return 0;
  10046. }
  10047. _ACEOF
  10048. rm -f conftest.$ac_objext
  10049. if { (ac_try="$ac_compile"
  10050. case "(($ac_try" in
  10051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10052. *) ac_try_echo=$ac_try;;
  10053. esac
  10054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10055. (eval "$ac_compile") 2>conftest.er1
  10056. ac_status=$?
  10057. grep -v '^ *+' conftest.er1 >conftest.err
  10058. rm -f conftest.er1
  10059. cat conftest.err >&5
  10060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10061. (exit $ac_status); } && {
  10062. test -z "$ac_cxx_werror_flag" ||
  10063. test ! -s conftest.err
  10064. } && test -s conftest.$ac_objext; then
  10065. gl_cv_header_inttypes_h=yes
  10066. else
  10067. echo "$as_me: failed program was:" >&5
  10068. sed 's/^/| /' conftest.$ac_ext >&5
  10069. gl_cv_header_inttypes_h=no
  10070. fi
  10071. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10072. fi
  10073. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  10074. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  10075. if test $gl_cv_header_inttypes_h = yes; then
  10076. cat >>confdefs.h <<_ACEOF
  10077. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  10078. _ACEOF
  10079. fi
  10080. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  10081. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  10082. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  10083. echo $ECHO_N "(cached) $ECHO_C" >&6
  10084. else
  10085. cat >conftest.$ac_ext <<_ACEOF
  10086. /* confdefs.h. */
  10087. _ACEOF
  10088. cat confdefs.h >>conftest.$ac_ext
  10089. cat >>conftest.$ac_ext <<_ACEOF
  10090. /* end confdefs.h. */
  10091. /* Test preprocessor. */
  10092. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10093. error in preprocessor;
  10094. #endif
  10095. #if ! (18446744073709551615ULL <= -1ull)
  10096. error in preprocessor;
  10097. #endif
  10098. /* Test literals. */
  10099. long long int ll = 9223372036854775807ll;
  10100. long long int nll = -9223372036854775807LL;
  10101. unsigned long long int ull = 18446744073709551615ULL;
  10102. /* Test constant expressions. */
  10103. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10104. ? 1 : -1)];
  10105. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10106. ? 1 : -1)];
  10107. int i = 63;
  10108. int
  10109. main ()
  10110. {
  10111. /* Test availability of runtime routines for shift and division. */
  10112. long long int llmax = 9223372036854775807ll;
  10113. unsigned long long int ullmax = 18446744073709551615ull;
  10114. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10115. | (llmax / ll) | (llmax % ll)
  10116. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10117. | (ullmax / ull) | (ullmax % ull));
  10118. ;
  10119. return 0;
  10120. }
  10121. _ACEOF
  10122. rm -f conftest.$ac_objext conftest$ac_exeext
  10123. if { (ac_try="$ac_link"
  10124. case "(($ac_try" in
  10125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10126. *) ac_try_echo=$ac_try;;
  10127. esac
  10128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10129. (eval "$ac_link") 2>conftest.er1
  10130. ac_status=$?
  10131. grep -v '^ *+' conftest.er1 >conftest.err
  10132. rm -f conftest.er1
  10133. cat conftest.err >&5
  10134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10135. (exit $ac_status); } && {
  10136. test -z "$ac_cxx_werror_flag" ||
  10137. test ! -s conftest.err
  10138. } && test -s conftest$ac_exeext &&
  10139. $as_test_x conftest$ac_exeext; then
  10140. ac_cv_type_unsigned_long_long_int=yes
  10141. else
  10142. echo "$as_me: failed program was:" >&5
  10143. sed 's/^/| /' conftest.$ac_ext >&5
  10144. ac_cv_type_unsigned_long_long_int=no
  10145. fi
  10146. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10147. conftest$ac_exeext conftest.$ac_ext
  10148. fi
  10149. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  10150. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  10151. if test $ac_cv_type_unsigned_long_long_int = yes; then
  10152. cat >>confdefs.h <<\_ACEOF
  10153. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  10154. _ACEOF
  10155. fi
  10156. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  10157. test $ac_cv_type_unsigned_long_long_int = yes \
  10158. && ac_type='unsigned long long' \
  10159. || ac_type='unsigned long'
  10160. cat >>confdefs.h <<_ACEOF
  10161. #define uintmax_t $ac_type
  10162. _ACEOF
  10163. else
  10164. cat >>confdefs.h <<\_ACEOF
  10165. #define HAVE_UINTMAX_T 1
  10166. _ACEOF
  10167. fi
  10168. for ac_header in inttypes.h
  10169. do
  10170. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10171. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10172. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10173. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10174. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10175. echo $ECHO_N "(cached) $ECHO_C" >&6
  10176. fi
  10177. ac_res=`eval echo '${'$as_ac_Header'}'`
  10178. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10179. echo "${ECHO_T}$ac_res" >&6; }
  10180. else
  10181. # Is the header compilable?
  10182. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10183. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10184. cat >conftest.$ac_ext <<_ACEOF
  10185. /* confdefs.h. */
  10186. _ACEOF
  10187. cat confdefs.h >>conftest.$ac_ext
  10188. cat >>conftest.$ac_ext <<_ACEOF
  10189. /* end confdefs.h. */
  10190. $ac_includes_default
  10191. #include <$ac_header>
  10192. _ACEOF
  10193. rm -f conftest.$ac_objext
  10194. if { (ac_try="$ac_compile"
  10195. case "(($ac_try" in
  10196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10197. *) ac_try_echo=$ac_try;;
  10198. esac
  10199. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10200. (eval "$ac_compile") 2>conftest.er1
  10201. ac_status=$?
  10202. grep -v '^ *+' conftest.er1 >conftest.err
  10203. rm -f conftest.er1
  10204. cat conftest.err >&5
  10205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10206. (exit $ac_status); } && {
  10207. test -z "$ac_cxx_werror_flag" ||
  10208. test ! -s conftest.err
  10209. } && test -s conftest.$ac_objext; then
  10210. ac_header_compiler=yes
  10211. else
  10212. echo "$as_me: failed program was:" >&5
  10213. sed 's/^/| /' conftest.$ac_ext >&5
  10214. ac_header_compiler=no
  10215. fi
  10216. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10217. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10218. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10219. # Is the header present?
  10220. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10221. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10222. cat >conftest.$ac_ext <<_ACEOF
  10223. /* confdefs.h. */
  10224. _ACEOF
  10225. cat confdefs.h >>conftest.$ac_ext
  10226. cat >>conftest.$ac_ext <<_ACEOF
  10227. /* end confdefs.h. */
  10228. #include <$ac_header>
  10229. _ACEOF
  10230. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10231. case "(($ac_try" in
  10232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10233. *) ac_try_echo=$ac_try;;
  10234. esac
  10235. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10236. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10237. ac_status=$?
  10238. grep -v '^ *+' conftest.er1 >conftest.err
  10239. rm -f conftest.er1
  10240. cat conftest.err >&5
  10241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10242. (exit $ac_status); } >/dev/null && {
  10243. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10244. test ! -s conftest.err
  10245. }; then
  10246. ac_header_preproc=yes
  10247. else
  10248. echo "$as_me: failed program was:" >&5
  10249. sed 's/^/| /' conftest.$ac_ext >&5
  10250. ac_header_preproc=no
  10251. fi
  10252. rm -f conftest.err conftest.$ac_ext
  10253. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10254. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10255. # So? What about this header?
  10256. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10257. yes:no: )
  10258. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10259. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10260. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10261. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10262. ac_header_preproc=yes
  10263. ;;
  10264. no:yes:* )
  10265. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10266. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10267. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10268. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10269. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10270. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10271. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10272. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10273. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10274. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10275. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10276. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10277. ( cat <<\_ASBOX
  10278. ## ----------------------------------------------- ##
  10279. ## Report this to t-tujikawa@users.sourceforge.net ##
  10280. ## ----------------------------------------------- ##
  10281. _ASBOX
  10282. ) | sed "s/^/$as_me: WARNING: /" >&2
  10283. ;;
  10284. esac
  10285. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10286. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10287. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10288. echo $ECHO_N "(cached) $ECHO_C" >&6
  10289. else
  10290. eval "$as_ac_Header=\$ac_header_preproc"
  10291. fi
  10292. ac_res=`eval echo '${'$as_ac_Header'}'`
  10293. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10294. echo "${ECHO_T}$ac_res" >&6; }
  10295. fi
  10296. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10297. cat >>confdefs.h <<_ACEOF
  10298. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10299. _ACEOF
  10300. fi
  10301. done
  10302. if test $ac_cv_header_inttypes_h = yes; then
  10303. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  10304. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  10305. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  10306. echo $ECHO_N "(cached) $ECHO_C" >&6
  10307. else
  10308. cat >conftest.$ac_ext <<_ACEOF
  10309. /* confdefs.h. */
  10310. _ACEOF
  10311. cat confdefs.h >>conftest.$ac_ext
  10312. cat >>conftest.$ac_ext <<_ACEOF
  10313. /* end confdefs.h. */
  10314. #include <inttypes.h>
  10315. #ifdef PRId32
  10316. char *p = PRId32;
  10317. #endif
  10318. int
  10319. main ()
  10320. {
  10321. ;
  10322. return 0;
  10323. }
  10324. _ACEOF
  10325. rm -f conftest.$ac_objext
  10326. if { (ac_try="$ac_compile"
  10327. case "(($ac_try" in
  10328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10329. *) ac_try_echo=$ac_try;;
  10330. esac
  10331. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10332. (eval "$ac_compile") 2>conftest.er1
  10333. ac_status=$?
  10334. grep -v '^ *+' conftest.er1 >conftest.err
  10335. rm -f conftest.er1
  10336. cat conftest.err >&5
  10337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10338. (exit $ac_status); } && {
  10339. test -z "$ac_cxx_werror_flag" ||
  10340. test ! -s conftest.err
  10341. } && test -s conftest.$ac_objext; then
  10342. gt_cv_inttypes_pri_broken=no
  10343. else
  10344. echo "$as_me: failed program was:" >&5
  10345. sed 's/^/| /' conftest.$ac_ext >&5
  10346. gt_cv_inttypes_pri_broken=yes
  10347. fi
  10348. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10349. fi
  10350. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  10351. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  10352. fi
  10353. if test "$gt_cv_inttypes_pri_broken" = yes; then
  10354. cat >>confdefs.h <<_ACEOF
  10355. #define PRI_MACROS_BROKEN 1
  10356. _ACEOF
  10357. PRI_MACROS_BROKEN=1
  10358. else
  10359. PRI_MACROS_BROKEN=0
  10360. fi
  10361. # Check whether --enable-threads was given.
  10362. if test "${enable_threads+set}" = set; then
  10363. enableval=$enable_threads; gl_use_threads=$enableval
  10364. else
  10365. case "$host_os" in
  10366. osf*) gl_use_threads=no ;;
  10367. *) gl_use_threads=yes ;;
  10368. esac
  10369. fi
  10370. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10371. # For using <pthread.h>:
  10372. case "$host_os" in
  10373. osf*)
  10374. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  10375. # groks <pthread.h>. cc also understands the flag -pthread, but
  10376. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  10377. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  10378. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  10379. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  10380. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  10381. ;;
  10382. esac
  10383. # Some systems optimize for single-threaded programs by default, and
  10384. # need special flags to disable these optimizations. For example, the
  10385. # definition of 'errno' in <errno.h>.
  10386. case "$host_os" in
  10387. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  10388. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  10389. esac
  10390. fi
  10391. if test "X$prefix" = "XNONE"; then
  10392. acl_final_prefix="$ac_default_prefix"
  10393. else
  10394. acl_final_prefix="$prefix"
  10395. fi
  10396. if test "X$exec_prefix" = "XNONE"; then
  10397. acl_final_exec_prefix='${prefix}'
  10398. else
  10399. acl_final_exec_prefix="$exec_prefix"
  10400. fi
  10401. acl_save_prefix="$prefix"
  10402. prefix="$acl_final_prefix"
  10403. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  10404. prefix="$acl_save_prefix"
  10405. # Check whether --with-gnu-ld was given.
  10406. if test "${with_gnu_ld+set}" = set; then
  10407. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10408. else
  10409. with_gnu_ld=no
  10410. fi
  10411. # Prepare PATH_SEPARATOR.
  10412. # The user is always right.
  10413. if test "${PATH_SEPARATOR+set}" != set; then
  10414. echo "#! /bin/sh" >conf$$.sh
  10415. echo "exit 0" >>conf$$.sh
  10416. chmod +x conf$$.sh
  10417. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10418. PATH_SEPARATOR=';'
  10419. else
  10420. PATH_SEPARATOR=:
  10421. fi
  10422. rm -f conf$$.sh
  10423. fi
  10424. ac_prog=ld
  10425. if test "$GCC" = yes; then
  10426. # Check if gcc -print-prog-name=ld gives a path.
  10427. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  10428. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  10429. case $host in
  10430. *-*-mingw*)
  10431. # gcc leaves a trailing carriage return which upsets mingw
  10432. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10433. *)
  10434. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10435. esac
  10436. case $ac_prog in
  10437. # Accept absolute paths.
  10438. [\\/]* | [A-Za-z]:[\\/]*)
  10439. re_direlt='/[^/][^/]*/\.\./'
  10440. # Canonicalize the path of ld
  10441. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  10442. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  10443. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  10444. done
  10445. test -z "$LD" && LD="$ac_prog"
  10446. ;;
  10447. "")
  10448. # If it fails, then pretend we aren't using GCC.
  10449. ac_prog=ld
  10450. ;;
  10451. *)
  10452. # If it is relative, then search for the first ld in PATH.
  10453. with_gnu_ld=unknown
  10454. ;;
  10455. esac
  10456. elif test "$with_gnu_ld" = yes; then
  10457. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  10458. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  10459. else
  10460. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  10461. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  10462. fi
  10463. if test "${acl_cv_path_LD+set}" = set; then
  10464. echo $ECHO_N "(cached) $ECHO_C" >&6
  10465. else
  10466. if test -z "$LD"; then
  10467. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  10468. for ac_dir in $PATH; do
  10469. test -z "$ac_dir" && ac_dir=.
  10470. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10471. acl_cv_path_LD="$ac_dir/$ac_prog"
  10472. # Check to see if the program is GNU ld. I'd rather use --version,
  10473. # but apparently some GNU ld's only accept -v.
  10474. # Break only if it was the GNU/non-GNU ld that we prefer.
  10475. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10476. *GNU* | *'with BFD'*)
  10477. test "$with_gnu_ld" != no && break ;;
  10478. *)
  10479. test "$with_gnu_ld" != yes && break ;;
  10480. esac
  10481. fi
  10482. done
  10483. IFS="$ac_save_ifs"
  10484. else
  10485. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10486. fi
  10487. fi
  10488. LD="$acl_cv_path_LD"
  10489. if test -n "$LD"; then
  10490. { echo "$as_me:$LINENO: result: $LD" >&5
  10491. echo "${ECHO_T}$LD" >&6; }
  10492. else
  10493. { echo "$as_me:$LINENO: result: no" >&5
  10494. echo "${ECHO_T}no" >&6; }
  10495. fi
  10496. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10497. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10498. { (exit 1); exit 1; }; }
  10499. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10500. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10501. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10502. echo $ECHO_N "(cached) $ECHO_C" >&6
  10503. else
  10504. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10505. case `$LD -v 2>&1 </dev/null` in
  10506. *GNU* | *'with BFD'*)
  10507. acl_cv_prog_gnu_ld=yes ;;
  10508. *)
  10509. acl_cv_prog_gnu_ld=no ;;
  10510. esac
  10511. fi
  10512. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10513. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10514. with_gnu_ld=$acl_cv_prog_gnu_ld
  10515. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10516. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10517. if test "${acl_cv_rpath+set}" = set; then
  10518. echo $ECHO_N "(cached) $ECHO_C" >&6
  10519. else
  10520. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10521. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10522. . ./conftest.sh
  10523. rm -f ./conftest.sh
  10524. acl_cv_rpath=done
  10525. fi
  10526. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10527. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10528. wl="$acl_cv_wl"
  10529. acl_libext="$acl_cv_libext"
  10530. acl_shlibext="$acl_cv_shlibext"
  10531. acl_libname_spec="$acl_cv_libname_spec"
  10532. acl_library_names_spec="$acl_cv_library_names_spec"
  10533. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10534. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10535. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10536. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10537. # Check whether --enable-rpath was given.
  10538. if test "${enable_rpath+set}" = set; then
  10539. enableval=$enable_rpath; :
  10540. else
  10541. enable_rpath=yes
  10542. fi
  10543. acl_libdirstem=lib
  10544. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10545. if test -n "$searchpath"; then
  10546. acl_save_IFS="${IFS= }"; IFS=":"
  10547. for searchdir in $searchpath; do
  10548. if test -d "$searchdir"; then
  10549. case "$searchdir" in
  10550. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10551. *) searchdir=`cd "$searchdir" && pwd`
  10552. case "$searchdir" in
  10553. */lib64 ) acl_libdirstem=lib64 ;;
  10554. esac ;;
  10555. esac
  10556. fi
  10557. done
  10558. IFS="$acl_save_IFS"
  10559. fi
  10560. gl_threads_api=none
  10561. LIBTHREAD=
  10562. LTLIBTHREAD=
  10563. LIBMULTITHREAD=
  10564. LTLIBMULTITHREAD=
  10565. if test "$gl_use_threads" != no; then
  10566. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10567. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10568. gl_have_weak=no
  10569. cat >conftest.$ac_ext <<_ACEOF
  10570. /* confdefs.h. */
  10571. _ACEOF
  10572. cat confdefs.h >>conftest.$ac_ext
  10573. cat >>conftest.$ac_ext <<_ACEOF
  10574. /* end confdefs.h. */
  10575. extern void xyzzy ();
  10576. #pragma weak xyzzy
  10577. int
  10578. main ()
  10579. {
  10580. xyzzy();
  10581. ;
  10582. return 0;
  10583. }
  10584. _ACEOF
  10585. rm -f conftest.$ac_objext conftest$ac_exeext
  10586. if { (ac_try="$ac_link"
  10587. case "(($ac_try" in
  10588. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10589. *) ac_try_echo=$ac_try;;
  10590. esac
  10591. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10592. (eval "$ac_link") 2>conftest.er1
  10593. ac_status=$?
  10594. grep -v '^ *+' conftest.er1 >conftest.err
  10595. rm -f conftest.er1
  10596. cat conftest.err >&5
  10597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10598. (exit $ac_status); } && {
  10599. test -z "$ac_cxx_werror_flag" ||
  10600. test ! -s conftest.err
  10601. } && test -s conftest$ac_exeext &&
  10602. $as_test_x conftest$ac_exeext; then
  10603. gl_have_weak=yes
  10604. else
  10605. echo "$as_me: failed program was:" >&5
  10606. sed 's/^/| /' conftest.$ac_ext >&5
  10607. fi
  10608. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10609. conftest$ac_exeext conftest.$ac_ext
  10610. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10611. echo "${ECHO_T}$gl_have_weak" >&6; }
  10612. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10613. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10614. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10615. if test "${ac_cv_header_pthread_h+set}" = set; then
  10616. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10617. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10618. if test "${ac_cv_header_pthread_h+set}" = set; then
  10619. echo $ECHO_N "(cached) $ECHO_C" >&6
  10620. fi
  10621. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10622. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10623. else
  10624. # Is the header compilable?
  10625. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10626. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10627. cat >conftest.$ac_ext <<_ACEOF
  10628. /* confdefs.h. */
  10629. _ACEOF
  10630. cat confdefs.h >>conftest.$ac_ext
  10631. cat >>conftest.$ac_ext <<_ACEOF
  10632. /* end confdefs.h. */
  10633. $ac_includes_default
  10634. #include <pthread.h>
  10635. _ACEOF
  10636. rm -f conftest.$ac_objext
  10637. if { (ac_try="$ac_compile"
  10638. case "(($ac_try" in
  10639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10640. *) ac_try_echo=$ac_try;;
  10641. esac
  10642. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10643. (eval "$ac_compile") 2>conftest.er1
  10644. ac_status=$?
  10645. grep -v '^ *+' conftest.er1 >conftest.err
  10646. rm -f conftest.er1
  10647. cat conftest.err >&5
  10648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10649. (exit $ac_status); } && {
  10650. test -z "$ac_cxx_werror_flag" ||
  10651. test ! -s conftest.err
  10652. } && test -s conftest.$ac_objext; then
  10653. ac_header_compiler=yes
  10654. else
  10655. echo "$as_me: failed program was:" >&5
  10656. sed 's/^/| /' conftest.$ac_ext >&5
  10657. ac_header_compiler=no
  10658. fi
  10659. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10660. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10661. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10662. # Is the header present?
  10663. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10664. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10665. cat >conftest.$ac_ext <<_ACEOF
  10666. /* confdefs.h. */
  10667. _ACEOF
  10668. cat confdefs.h >>conftest.$ac_ext
  10669. cat >>conftest.$ac_ext <<_ACEOF
  10670. /* end confdefs.h. */
  10671. #include <pthread.h>
  10672. _ACEOF
  10673. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10674. case "(($ac_try" in
  10675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10676. *) ac_try_echo=$ac_try;;
  10677. esac
  10678. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10679. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10680. ac_status=$?
  10681. grep -v '^ *+' conftest.er1 >conftest.err
  10682. rm -f conftest.er1
  10683. cat conftest.err >&5
  10684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10685. (exit $ac_status); } >/dev/null && {
  10686. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10687. test ! -s conftest.err
  10688. }; then
  10689. ac_header_preproc=yes
  10690. else
  10691. echo "$as_me: failed program was:" >&5
  10692. sed 's/^/| /' conftest.$ac_ext >&5
  10693. ac_header_preproc=no
  10694. fi
  10695. rm -f conftest.err conftest.$ac_ext
  10696. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10697. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10698. # So? What about this header?
  10699. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10700. yes:no: )
  10701. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10702. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10703. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10704. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10705. ac_header_preproc=yes
  10706. ;;
  10707. no:yes:* )
  10708. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10709. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10710. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10711. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10712. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10713. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10714. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10715. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10716. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  10717. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  10718. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  10719. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  10720. ( cat <<\_ASBOX
  10721. ## ----------------------------------------------- ##
  10722. ## Report this to t-tujikawa@users.sourceforge.net ##
  10723. ## ----------------------------------------------- ##
  10724. _ASBOX
  10725. ) | sed "s/^/$as_me: WARNING: /" >&2
  10726. ;;
  10727. esac
  10728. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10729. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10730. if test "${ac_cv_header_pthread_h+set}" = set; then
  10731. echo $ECHO_N "(cached) $ECHO_C" >&6
  10732. else
  10733. ac_cv_header_pthread_h=$ac_header_preproc
  10734. fi
  10735. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10736. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10737. fi
  10738. if test $ac_cv_header_pthread_h = yes; then
  10739. gl_have_pthread_h=yes
  10740. else
  10741. gl_have_pthread_h=no
  10742. fi
  10743. if test "$gl_have_pthread_h" = yes; then
  10744. # Other possible tests:
  10745. # -lpthreads (FSU threads, PCthreads)
  10746. # -lgthreads
  10747. gl_have_pthread=
  10748. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  10749. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  10750. # the second one only in libpthread, and lock.c needs it.
  10751. cat >conftest.$ac_ext <<_ACEOF
  10752. /* confdefs.h. */
  10753. _ACEOF
  10754. cat confdefs.h >>conftest.$ac_ext
  10755. cat >>conftest.$ac_ext <<_ACEOF
  10756. /* end confdefs.h. */
  10757. #include <pthread.h>
  10758. int
  10759. main ()
  10760. {
  10761. pthread_mutex_lock((pthread_mutex_t*)0);
  10762. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  10763. ;
  10764. return 0;
  10765. }
  10766. _ACEOF
  10767. rm -f conftest.$ac_objext conftest$ac_exeext
  10768. if { (ac_try="$ac_link"
  10769. case "(($ac_try" in
  10770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10771. *) ac_try_echo=$ac_try;;
  10772. esac
  10773. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10774. (eval "$ac_link") 2>conftest.er1
  10775. ac_status=$?
  10776. grep -v '^ *+' conftest.er1 >conftest.err
  10777. rm -f conftest.er1
  10778. cat conftest.err >&5
  10779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10780. (exit $ac_status); } && {
  10781. test -z "$ac_cxx_werror_flag" ||
  10782. test ! -s conftest.err
  10783. } && test -s conftest$ac_exeext &&
  10784. $as_test_x conftest$ac_exeext; then
  10785. gl_have_pthread=yes
  10786. else
  10787. echo "$as_me: failed program was:" >&5
  10788. sed 's/^/| /' conftest.$ac_ext >&5
  10789. fi
  10790. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10791. conftest$ac_exeext conftest.$ac_ext
  10792. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  10793. # since it is defined as a macro on OSF/1.)
  10794. if test -n "$gl_have_pthread"; then
  10795. # The program links fine without libpthread. But it may actually
  10796. # need to link with libpthread in order to create multiple threads.
  10797. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10798. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10799. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10800. echo $ECHO_N "(cached) $ECHO_C" >&6
  10801. else
  10802. ac_check_lib_save_LIBS=$LIBS
  10803. LIBS="-lpthread $LIBS"
  10804. cat >conftest.$ac_ext <<_ACEOF
  10805. /* confdefs.h. */
  10806. _ACEOF
  10807. cat confdefs.h >>conftest.$ac_ext
  10808. cat >>conftest.$ac_ext <<_ACEOF
  10809. /* end confdefs.h. */
  10810. /* Override any GCC internal prototype to avoid an error.
  10811. Use char because int might match the return type of a GCC
  10812. builtin and then its argument prototype would still apply. */
  10813. #ifdef __cplusplus
  10814. extern "C"
  10815. #endif
  10816. char pthread_kill ();
  10817. int
  10818. main ()
  10819. {
  10820. return pthread_kill ();
  10821. ;
  10822. return 0;
  10823. }
  10824. _ACEOF
  10825. rm -f conftest.$ac_objext conftest$ac_exeext
  10826. if { (ac_try="$ac_link"
  10827. case "(($ac_try" in
  10828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10829. *) ac_try_echo=$ac_try;;
  10830. esac
  10831. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10832. (eval "$ac_link") 2>conftest.er1
  10833. ac_status=$?
  10834. grep -v '^ *+' conftest.er1 >conftest.err
  10835. rm -f conftest.er1
  10836. cat conftest.err >&5
  10837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10838. (exit $ac_status); } && {
  10839. test -z "$ac_cxx_werror_flag" ||
  10840. test ! -s conftest.err
  10841. } && test -s conftest$ac_exeext &&
  10842. $as_test_x conftest$ac_exeext; then
  10843. ac_cv_lib_pthread_pthread_kill=yes
  10844. else
  10845. echo "$as_me: failed program was:" >&5
  10846. sed 's/^/| /' conftest.$ac_ext >&5
  10847. ac_cv_lib_pthread_pthread_kill=no
  10848. fi
  10849. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10850. conftest$ac_exeext conftest.$ac_ext
  10851. LIBS=$ac_check_lib_save_LIBS
  10852. fi
  10853. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10854. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10855. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10856. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10857. # On Solaris and HP-UX, most pthread functions exist also in libc.
  10858. # Therefore pthread_in_use() needs to actually try to create a
  10859. # thread: pthread_create from libc will fail, whereas
  10860. # pthread_create will actually create a thread.
  10861. case "$host_os" in
  10862. solaris* | hpux*)
  10863. cat >>confdefs.h <<\_ACEOF
  10864. #define PTHREAD_IN_USE_DETECTION_HARD 1
  10865. _ACEOF
  10866. esac
  10867. fi
  10868. else
  10869. # Some library is needed. Try libpthread and libc_r.
  10870. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10871. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10872. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10873. echo $ECHO_N "(cached) $ECHO_C" >&6
  10874. else
  10875. ac_check_lib_save_LIBS=$LIBS
  10876. LIBS="-lpthread $LIBS"
  10877. cat >conftest.$ac_ext <<_ACEOF
  10878. /* confdefs.h. */
  10879. _ACEOF
  10880. cat confdefs.h >>conftest.$ac_ext
  10881. cat >>conftest.$ac_ext <<_ACEOF
  10882. /* end confdefs.h. */
  10883. /* Override any GCC internal prototype to avoid an error.
  10884. Use char because int might match the return type of a GCC
  10885. builtin and then its argument prototype would still apply. */
  10886. #ifdef __cplusplus
  10887. extern "C"
  10888. #endif
  10889. char pthread_kill ();
  10890. int
  10891. main ()
  10892. {
  10893. return pthread_kill ();
  10894. ;
  10895. return 0;
  10896. }
  10897. _ACEOF
  10898. rm -f conftest.$ac_objext conftest$ac_exeext
  10899. if { (ac_try="$ac_link"
  10900. case "(($ac_try" in
  10901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10902. *) ac_try_echo=$ac_try;;
  10903. esac
  10904. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10905. (eval "$ac_link") 2>conftest.er1
  10906. ac_status=$?
  10907. grep -v '^ *+' conftest.er1 >conftest.err
  10908. rm -f conftest.er1
  10909. cat conftest.err >&5
  10910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10911. (exit $ac_status); } && {
  10912. test -z "$ac_cxx_werror_flag" ||
  10913. test ! -s conftest.err
  10914. } && test -s conftest$ac_exeext &&
  10915. $as_test_x conftest$ac_exeext; then
  10916. ac_cv_lib_pthread_pthread_kill=yes
  10917. else
  10918. echo "$as_me: failed program was:" >&5
  10919. sed 's/^/| /' conftest.$ac_ext >&5
  10920. ac_cv_lib_pthread_pthread_kill=no
  10921. fi
  10922. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10923. conftest$ac_exeext conftest.$ac_ext
  10924. LIBS=$ac_check_lib_save_LIBS
  10925. fi
  10926. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10927. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10928. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10929. gl_have_pthread=yes
  10930. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  10931. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10932. fi
  10933. if test -z "$gl_have_pthread"; then
  10934. # For FreeBSD 4.
  10935. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  10936. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  10937. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  10938. echo $ECHO_N "(cached) $ECHO_C" >&6
  10939. else
  10940. ac_check_lib_save_LIBS=$LIBS
  10941. LIBS="-lc_r $LIBS"
  10942. cat >conftest.$ac_ext <<_ACEOF
  10943. /* confdefs.h. */
  10944. _ACEOF
  10945. cat confdefs.h >>conftest.$ac_ext
  10946. cat >>conftest.$ac_ext <<_ACEOF
  10947. /* end confdefs.h. */
  10948. /* Override any GCC internal prototype to avoid an error.
  10949. Use char because int might match the return type of a GCC
  10950. builtin and then its argument prototype would still apply. */
  10951. #ifdef __cplusplus
  10952. extern "C"
  10953. #endif
  10954. char pthread_kill ();
  10955. int
  10956. main ()
  10957. {
  10958. return pthread_kill ();
  10959. ;
  10960. return 0;
  10961. }
  10962. _ACEOF
  10963. rm -f conftest.$ac_objext conftest$ac_exeext
  10964. if { (ac_try="$ac_link"
  10965. case "(($ac_try" in
  10966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10967. *) ac_try_echo=$ac_try;;
  10968. esac
  10969. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10970. (eval "$ac_link") 2>conftest.er1
  10971. ac_status=$?
  10972. grep -v '^ *+' conftest.er1 >conftest.err
  10973. rm -f conftest.er1
  10974. cat conftest.err >&5
  10975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10976. (exit $ac_status); } && {
  10977. test -z "$ac_cxx_werror_flag" ||
  10978. test ! -s conftest.err
  10979. } && test -s conftest$ac_exeext &&
  10980. $as_test_x conftest$ac_exeext; then
  10981. ac_cv_lib_c_r_pthread_kill=yes
  10982. else
  10983. echo "$as_me: failed program was:" >&5
  10984. sed 's/^/| /' conftest.$ac_ext >&5
  10985. ac_cv_lib_c_r_pthread_kill=no
  10986. fi
  10987. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10988. conftest$ac_exeext conftest.$ac_ext
  10989. LIBS=$ac_check_lib_save_LIBS
  10990. fi
  10991. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  10992. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  10993. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  10994. gl_have_pthread=yes
  10995. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  10996. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  10997. fi
  10998. fi
  10999. fi
  11000. if test -n "$gl_have_pthread"; then
  11001. gl_threads_api=posix
  11002. cat >>confdefs.h <<\_ACEOF
  11003. #define USE_POSIX_THREADS 1
  11004. _ACEOF
  11005. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11006. if test $gl_have_weak = yes; then
  11007. cat >>confdefs.h <<\_ACEOF
  11008. #define USE_POSIX_THREADS_WEAK 1
  11009. _ACEOF
  11010. LIBTHREAD=
  11011. LTLIBTHREAD=
  11012. fi
  11013. fi
  11014. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  11015. # pthread_rwlock_* functions.
  11016. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  11017. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  11018. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  11019. echo $ECHO_N "(cached) $ECHO_C" >&6
  11020. else
  11021. cat >conftest.$ac_ext <<_ACEOF
  11022. /* confdefs.h. */
  11023. _ACEOF
  11024. cat confdefs.h >>conftest.$ac_ext
  11025. cat >>conftest.$ac_ext <<_ACEOF
  11026. /* end confdefs.h. */
  11027. #include <pthread.h>
  11028. typedef pthread_rwlock_t ac__type_new_;
  11029. int
  11030. main ()
  11031. {
  11032. if ((ac__type_new_ *) 0)
  11033. return 0;
  11034. if (sizeof (ac__type_new_))
  11035. return 0;
  11036. ;
  11037. return 0;
  11038. }
  11039. _ACEOF
  11040. rm -f conftest.$ac_objext
  11041. if { (ac_try="$ac_compile"
  11042. case "(($ac_try" in
  11043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11044. *) ac_try_echo=$ac_try;;
  11045. esac
  11046. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11047. (eval "$ac_compile") 2>conftest.er1
  11048. ac_status=$?
  11049. grep -v '^ *+' conftest.er1 >conftest.err
  11050. rm -f conftest.er1
  11051. cat conftest.err >&5
  11052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11053. (exit $ac_status); } && {
  11054. test -z "$ac_cxx_werror_flag" ||
  11055. test ! -s conftest.err
  11056. } && test -s conftest.$ac_objext; then
  11057. ac_cv_type_pthread_rwlock_t=yes
  11058. else
  11059. echo "$as_me: failed program was:" >&5
  11060. sed 's/^/| /' conftest.$ac_ext >&5
  11061. ac_cv_type_pthread_rwlock_t=no
  11062. fi
  11063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11064. fi
  11065. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  11066. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  11067. if test $ac_cv_type_pthread_rwlock_t = yes; then
  11068. cat >>confdefs.h <<\_ACEOF
  11069. #define HAVE_PTHREAD_RWLOCK 1
  11070. _ACEOF
  11071. fi
  11072. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  11073. cat >conftest.$ac_ext <<_ACEOF
  11074. /* confdefs.h. */
  11075. _ACEOF
  11076. cat confdefs.h >>conftest.$ac_ext
  11077. cat >>conftest.$ac_ext <<_ACEOF
  11078. /* end confdefs.h. */
  11079. #include <pthread.h>
  11080. int
  11081. main ()
  11082. {
  11083. #if __FreeBSD__ == 4
  11084. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  11085. #else
  11086. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  11087. return !x;
  11088. #endif
  11089. ;
  11090. return 0;
  11091. }
  11092. _ACEOF
  11093. rm -f conftest.$ac_objext
  11094. if { (ac_try="$ac_compile"
  11095. case "(($ac_try" in
  11096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11097. *) ac_try_echo=$ac_try;;
  11098. esac
  11099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11100. (eval "$ac_compile") 2>conftest.er1
  11101. ac_status=$?
  11102. grep -v '^ *+' conftest.er1 >conftest.err
  11103. rm -f conftest.er1
  11104. cat conftest.err >&5
  11105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11106. (exit $ac_status); } && {
  11107. test -z "$ac_cxx_werror_flag" ||
  11108. test ! -s conftest.err
  11109. } && test -s conftest.$ac_objext; then
  11110. cat >>confdefs.h <<\_ACEOF
  11111. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  11112. _ACEOF
  11113. else
  11114. echo "$as_me: failed program was:" >&5
  11115. sed 's/^/| /' conftest.$ac_ext >&5
  11116. fi
  11117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11118. fi
  11119. fi
  11120. fi
  11121. if test -z "$gl_have_pthread"; then
  11122. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  11123. gl_have_solaristhread=
  11124. gl_save_LIBS="$LIBS"
  11125. LIBS="$LIBS -lthread"
  11126. cat >conftest.$ac_ext <<_ACEOF
  11127. /* confdefs.h. */
  11128. _ACEOF
  11129. cat confdefs.h >>conftest.$ac_ext
  11130. cat >>conftest.$ac_ext <<_ACEOF
  11131. /* end confdefs.h. */
  11132. #include <thread.h>
  11133. #include <synch.h>
  11134. int
  11135. main ()
  11136. {
  11137. thr_self();
  11138. ;
  11139. return 0;
  11140. }
  11141. _ACEOF
  11142. rm -f conftest.$ac_objext conftest$ac_exeext
  11143. if { (ac_try="$ac_link"
  11144. case "(($ac_try" in
  11145. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11146. *) ac_try_echo=$ac_try;;
  11147. esac
  11148. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11149. (eval "$ac_link") 2>conftest.er1
  11150. ac_status=$?
  11151. grep -v '^ *+' conftest.er1 >conftest.err
  11152. rm -f conftest.er1
  11153. cat conftest.err >&5
  11154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11155. (exit $ac_status); } && {
  11156. test -z "$ac_cxx_werror_flag" ||
  11157. test ! -s conftest.err
  11158. } && test -s conftest$ac_exeext &&
  11159. $as_test_x conftest$ac_exeext; then
  11160. gl_have_solaristhread=yes
  11161. else
  11162. echo "$as_me: failed program was:" >&5
  11163. sed 's/^/| /' conftest.$ac_ext >&5
  11164. fi
  11165. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11166. conftest$ac_exeext conftest.$ac_ext
  11167. LIBS="$gl_save_LIBS"
  11168. if test -n "$gl_have_solaristhread"; then
  11169. gl_threads_api=solaris
  11170. LIBTHREAD=-lthread
  11171. LTLIBTHREAD=-lthread
  11172. LIBMULTITHREAD="$LIBTHREAD"
  11173. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11174. cat >>confdefs.h <<\_ACEOF
  11175. #define USE_SOLARIS_THREADS 1
  11176. _ACEOF
  11177. if test $gl_have_weak = yes; then
  11178. cat >>confdefs.h <<\_ACEOF
  11179. #define USE_SOLARIS_THREADS_WEAK 1
  11180. _ACEOF
  11181. LIBTHREAD=
  11182. LTLIBTHREAD=
  11183. fi
  11184. fi
  11185. fi
  11186. fi
  11187. if test "$gl_use_threads" = pth; then
  11188. gl_save_CPPFLAGS="$CPPFLAGS"
  11189. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  11190. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  11191. if test "${ac_cv_libpth_libs+set}" = set; then
  11192. echo $ECHO_N "(cached) $ECHO_C" >&6
  11193. else
  11194. use_additional=yes
  11195. acl_save_prefix="$prefix"
  11196. prefix="$acl_final_prefix"
  11197. acl_save_exec_prefix="$exec_prefix"
  11198. exec_prefix="$acl_final_exec_prefix"
  11199. eval additional_includedir=\"$includedir\"
  11200. eval additional_libdir=\"$libdir\"
  11201. exec_prefix="$acl_save_exec_prefix"
  11202. prefix="$acl_save_prefix"
  11203. # Check whether --with-libpth-prefix was given.
  11204. if test "${with_libpth_prefix+set}" = set; then
  11205. withval=$with_libpth_prefix;
  11206. if test "X$withval" = "Xno"; then
  11207. use_additional=no
  11208. else
  11209. if test "X$withval" = "X"; then
  11210. acl_save_prefix="$prefix"
  11211. prefix="$acl_final_prefix"
  11212. acl_save_exec_prefix="$exec_prefix"
  11213. exec_prefix="$acl_final_exec_prefix"
  11214. eval additional_includedir=\"$includedir\"
  11215. eval additional_libdir=\"$libdir\"
  11216. exec_prefix="$acl_save_exec_prefix"
  11217. prefix="$acl_save_prefix"
  11218. else
  11219. additional_includedir="$withval/include"
  11220. additional_libdir="$withval/$acl_libdirstem"
  11221. fi
  11222. fi
  11223. fi
  11224. LIBPTH=
  11225. LTLIBPTH=
  11226. INCPTH=
  11227. LIBPTH_PREFIX=
  11228. rpathdirs=
  11229. ltrpathdirs=
  11230. names_already_handled=
  11231. names_next_round='pth '
  11232. while test -n "$names_next_round"; do
  11233. names_this_round="$names_next_round"
  11234. names_next_round=
  11235. for name in $names_this_round; do
  11236. already_handled=
  11237. for n in $names_already_handled; do
  11238. if test "$n" = "$name"; then
  11239. already_handled=yes
  11240. break
  11241. fi
  11242. done
  11243. if test -z "$already_handled"; then
  11244. names_already_handled="$names_already_handled $name"
  11245. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11246. eval value=\"\$HAVE_LIB$uppername\"
  11247. if test -n "$value"; then
  11248. if test "$value" = yes; then
  11249. eval value=\"\$LIB$uppername\"
  11250. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  11251. eval value=\"\$LTLIB$uppername\"
  11252. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  11253. else
  11254. :
  11255. fi
  11256. else
  11257. found_dir=
  11258. found_la=
  11259. found_so=
  11260. found_a=
  11261. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11262. if test -n "$acl_shlibext"; then
  11263. shrext=".$acl_shlibext" # typically: shrext=.so
  11264. else
  11265. shrext=
  11266. fi
  11267. if test $use_additional = yes; then
  11268. dir="$additional_libdir"
  11269. if test -n "$acl_shlibext"; then
  11270. if test -f "$dir/$libname$shrext"; then
  11271. found_dir="$dir"
  11272. found_so="$dir/$libname$shrext"
  11273. else
  11274. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11275. ver=`(cd "$dir" && \
  11276. for f in "$libname$shrext".*; do echo "$f"; done \
  11277. | sed -e "s,^$libname$shrext\\\\.,," \
  11278. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11279. | sed 1q ) 2>/dev/null`
  11280. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11281. found_dir="$dir"
  11282. found_so="$dir/$libname$shrext.$ver"
  11283. fi
  11284. else
  11285. eval library_names=\"$acl_library_names_spec\"
  11286. for f in $library_names; do
  11287. if test -f "$dir/$f"; then
  11288. found_dir="$dir"
  11289. found_so="$dir/$f"
  11290. break
  11291. fi
  11292. done
  11293. fi
  11294. fi
  11295. fi
  11296. if test "X$found_dir" = "X"; then
  11297. if test -f "$dir/$libname.$acl_libext"; then
  11298. found_dir="$dir"
  11299. found_a="$dir/$libname.$acl_libext"
  11300. fi
  11301. fi
  11302. if test "X$found_dir" != "X"; then
  11303. if test -f "$dir/$libname.la"; then
  11304. found_la="$dir/$libname.la"
  11305. fi
  11306. fi
  11307. fi
  11308. if test "X$found_dir" = "X"; then
  11309. for x in $LDFLAGS $LTLIBPTH; do
  11310. acl_save_prefix="$prefix"
  11311. prefix="$acl_final_prefix"
  11312. acl_save_exec_prefix="$exec_prefix"
  11313. exec_prefix="$acl_final_exec_prefix"
  11314. eval x=\"$x\"
  11315. exec_prefix="$acl_save_exec_prefix"
  11316. prefix="$acl_save_prefix"
  11317. case "$x" in
  11318. -L*)
  11319. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11320. if test -n "$acl_shlibext"; then
  11321. if test -f "$dir/$libname$shrext"; then
  11322. found_dir="$dir"
  11323. found_so="$dir/$libname$shrext"
  11324. else
  11325. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11326. ver=`(cd "$dir" && \
  11327. for f in "$libname$shrext".*; do echo "$f"; done \
  11328. | sed -e "s,^$libname$shrext\\\\.,," \
  11329. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11330. | sed 1q ) 2>/dev/null`
  11331. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11332. found_dir="$dir"
  11333. found_so="$dir/$libname$shrext.$ver"
  11334. fi
  11335. else
  11336. eval library_names=\"$acl_library_names_spec\"
  11337. for f in $library_names; do
  11338. if test -f "$dir/$f"; then
  11339. found_dir="$dir"
  11340. found_so="$dir/$f"
  11341. break
  11342. fi
  11343. done
  11344. fi
  11345. fi
  11346. fi
  11347. if test "X$found_dir" = "X"; then
  11348. if test -f "$dir/$libname.$acl_libext"; then
  11349. found_dir="$dir"
  11350. found_a="$dir/$libname.$acl_libext"
  11351. fi
  11352. fi
  11353. if test "X$found_dir" != "X"; then
  11354. if test -f "$dir/$libname.la"; then
  11355. found_la="$dir/$libname.la"
  11356. fi
  11357. fi
  11358. ;;
  11359. esac
  11360. if test "X$found_dir" != "X"; then
  11361. break
  11362. fi
  11363. done
  11364. fi
  11365. if test "X$found_dir" != "X"; then
  11366. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  11367. if test "X$found_so" != "X"; then
  11368. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11369. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11370. else
  11371. haveit=
  11372. for x in $ltrpathdirs; do
  11373. if test "X$x" = "X$found_dir"; then
  11374. haveit=yes
  11375. break
  11376. fi
  11377. done
  11378. if test -z "$haveit"; then
  11379. ltrpathdirs="$ltrpathdirs $found_dir"
  11380. fi
  11381. if test "$acl_hardcode_direct" = yes; then
  11382. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11383. else
  11384. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11385. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11386. haveit=
  11387. for x in $rpathdirs; do
  11388. if test "X$x" = "X$found_dir"; then
  11389. haveit=yes
  11390. break
  11391. fi
  11392. done
  11393. if test -z "$haveit"; then
  11394. rpathdirs="$rpathdirs $found_dir"
  11395. fi
  11396. else
  11397. haveit=
  11398. for x in $LDFLAGS $LIBPTH; do
  11399. acl_save_prefix="$prefix"
  11400. prefix="$acl_final_prefix"
  11401. acl_save_exec_prefix="$exec_prefix"
  11402. exec_prefix="$acl_final_exec_prefix"
  11403. eval x=\"$x\"
  11404. exec_prefix="$acl_save_exec_prefix"
  11405. prefix="$acl_save_prefix"
  11406. if test "X$x" = "X-L$found_dir"; then
  11407. haveit=yes
  11408. break
  11409. fi
  11410. done
  11411. if test -z "$haveit"; then
  11412. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  11413. fi
  11414. if test "$acl_hardcode_minus_L" != no; then
  11415. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  11416. else
  11417. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11418. fi
  11419. fi
  11420. fi
  11421. fi
  11422. else
  11423. if test "X$found_a" != "X"; then
  11424. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  11425. else
  11426. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  11427. fi
  11428. fi
  11429. additional_includedir=
  11430. case "$found_dir" in
  11431. */$acl_libdirstem | */$acl_libdirstem/)
  11432. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11433. LIBPTH_PREFIX="$basedir"
  11434. additional_includedir="$basedir/include"
  11435. ;;
  11436. esac
  11437. if test "X$additional_includedir" != "X"; then
  11438. if test "X$additional_includedir" != "X/usr/include"; then
  11439. haveit=
  11440. if test "X$additional_includedir" = "X/usr/local/include"; then
  11441. if test -n "$GCC"; then
  11442. case $host_os in
  11443. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11444. esac
  11445. fi
  11446. fi
  11447. if test -z "$haveit"; then
  11448. for x in $CPPFLAGS $INCPTH; do
  11449. acl_save_prefix="$prefix"
  11450. prefix="$acl_final_prefix"
  11451. acl_save_exec_prefix="$exec_prefix"
  11452. exec_prefix="$acl_final_exec_prefix"
  11453. eval x=\"$x\"
  11454. exec_prefix="$acl_save_exec_prefix"
  11455. prefix="$acl_save_prefix"
  11456. if test "X$x" = "X-I$additional_includedir"; then
  11457. haveit=yes
  11458. break
  11459. fi
  11460. done
  11461. if test -z "$haveit"; then
  11462. if test -d "$additional_includedir"; then
  11463. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  11464. fi
  11465. fi
  11466. fi
  11467. fi
  11468. fi
  11469. if test -n "$found_la"; then
  11470. save_libdir="$libdir"
  11471. case "$found_la" in
  11472. */* | *\\*) . "$found_la" ;;
  11473. *) . "./$found_la" ;;
  11474. esac
  11475. libdir="$save_libdir"
  11476. for dep in $dependency_libs; do
  11477. case "$dep" in
  11478. -L*)
  11479. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11480. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11481. haveit=
  11482. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11483. if test -n "$GCC"; then
  11484. case $host_os in
  11485. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11486. esac
  11487. fi
  11488. fi
  11489. if test -z "$haveit"; then
  11490. haveit=
  11491. for x in $LDFLAGS $LIBPTH; do
  11492. acl_save_prefix="$prefix"
  11493. prefix="$acl_final_prefix"
  11494. acl_save_exec_prefix="$exec_prefix"
  11495. exec_prefix="$acl_final_exec_prefix"
  11496. eval x=\"$x\"
  11497. exec_prefix="$acl_save_exec_prefix"
  11498. prefix="$acl_save_prefix"
  11499. if test "X$x" = "X-L$additional_libdir"; then
  11500. haveit=yes
  11501. break
  11502. fi
  11503. done
  11504. if test -z "$haveit"; then
  11505. if test -d "$additional_libdir"; then
  11506. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11507. fi
  11508. fi
  11509. haveit=
  11510. for x in $LDFLAGS $LTLIBPTH; do
  11511. acl_save_prefix="$prefix"
  11512. prefix="$acl_final_prefix"
  11513. acl_save_exec_prefix="$exec_prefix"
  11514. exec_prefix="$acl_final_exec_prefix"
  11515. eval x=\"$x\"
  11516. exec_prefix="$acl_save_exec_prefix"
  11517. prefix="$acl_save_prefix"
  11518. if test "X$x" = "X-L$additional_libdir"; then
  11519. haveit=yes
  11520. break
  11521. fi
  11522. done
  11523. if test -z "$haveit"; then
  11524. if test -d "$additional_libdir"; then
  11525. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11526. fi
  11527. fi
  11528. fi
  11529. fi
  11530. ;;
  11531. -R*)
  11532. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11533. if test "$enable_rpath" != no; then
  11534. haveit=
  11535. for x in $rpathdirs; do
  11536. if test "X$x" = "X$dir"; then
  11537. haveit=yes
  11538. break
  11539. fi
  11540. done
  11541. if test -z "$haveit"; then
  11542. rpathdirs="$rpathdirs $dir"
  11543. fi
  11544. haveit=
  11545. for x in $ltrpathdirs; do
  11546. if test "X$x" = "X$dir"; then
  11547. haveit=yes
  11548. break
  11549. fi
  11550. done
  11551. if test -z "$haveit"; then
  11552. ltrpathdirs="$ltrpathdirs $dir"
  11553. fi
  11554. fi
  11555. ;;
  11556. -l*)
  11557. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11558. ;;
  11559. *.la)
  11560. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11561. ;;
  11562. *)
  11563. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11564. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11565. ;;
  11566. esac
  11567. done
  11568. fi
  11569. else
  11570. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11571. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11572. fi
  11573. fi
  11574. fi
  11575. done
  11576. done
  11577. if test "X$rpathdirs" != "X"; then
  11578. if test -n "$acl_hardcode_libdir_separator"; then
  11579. alldirs=
  11580. for found_dir in $rpathdirs; do
  11581. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11582. done
  11583. acl_save_libdir="$libdir"
  11584. libdir="$alldirs"
  11585. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11586. libdir="$acl_save_libdir"
  11587. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11588. else
  11589. for found_dir in $rpathdirs; do
  11590. acl_save_libdir="$libdir"
  11591. libdir="$found_dir"
  11592. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11593. libdir="$acl_save_libdir"
  11594. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11595. done
  11596. fi
  11597. fi
  11598. if test "X$ltrpathdirs" != "X"; then
  11599. for found_dir in $ltrpathdirs; do
  11600. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11601. done
  11602. fi
  11603. ac_cv_libpth_libs="$LIBPTH"
  11604. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11605. ac_cv_libpth_cppflags="$INCPTH"
  11606. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11607. fi
  11608. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11609. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11610. LIBPTH="$ac_cv_libpth_libs"
  11611. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11612. INCPTH="$ac_cv_libpth_cppflags"
  11613. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11614. for element in $INCPTH; do
  11615. haveit=
  11616. for x in $CPPFLAGS; do
  11617. acl_save_prefix="$prefix"
  11618. prefix="$acl_final_prefix"
  11619. acl_save_exec_prefix="$exec_prefix"
  11620. exec_prefix="$acl_final_exec_prefix"
  11621. eval x=\"$x\"
  11622. exec_prefix="$acl_save_exec_prefix"
  11623. prefix="$acl_save_prefix"
  11624. if test "X$x" = "X$element"; then
  11625. haveit=yes
  11626. break
  11627. fi
  11628. done
  11629. if test -z "$haveit"; then
  11630. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11631. fi
  11632. done
  11633. HAVE_LIBPTH=yes
  11634. gl_have_pth=
  11635. gl_save_LIBS="$LIBS"
  11636. LIBS="$LIBS -lpth"
  11637. cat >conftest.$ac_ext <<_ACEOF
  11638. /* confdefs.h. */
  11639. _ACEOF
  11640. cat confdefs.h >>conftest.$ac_ext
  11641. cat >>conftest.$ac_ext <<_ACEOF
  11642. /* end confdefs.h. */
  11643. #include <pth.h>
  11644. int
  11645. main ()
  11646. {
  11647. pth_self();
  11648. ;
  11649. return 0;
  11650. }
  11651. _ACEOF
  11652. rm -f conftest.$ac_objext conftest$ac_exeext
  11653. if { (ac_try="$ac_link"
  11654. case "(($ac_try" in
  11655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11656. *) ac_try_echo=$ac_try;;
  11657. esac
  11658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11659. (eval "$ac_link") 2>conftest.er1
  11660. ac_status=$?
  11661. grep -v '^ *+' conftest.er1 >conftest.err
  11662. rm -f conftest.er1
  11663. cat conftest.err >&5
  11664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11665. (exit $ac_status); } && {
  11666. test -z "$ac_cxx_werror_flag" ||
  11667. test ! -s conftest.err
  11668. } && test -s conftest$ac_exeext &&
  11669. $as_test_x conftest$ac_exeext; then
  11670. gl_have_pth=yes
  11671. else
  11672. echo "$as_me: failed program was:" >&5
  11673. sed 's/^/| /' conftest.$ac_ext >&5
  11674. fi
  11675. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11676. conftest$ac_exeext conftest.$ac_ext
  11677. LIBS="$gl_save_LIBS"
  11678. if test -n "$gl_have_pth"; then
  11679. gl_threads_api=pth
  11680. LIBTHREAD="$LIBPTH"
  11681. LTLIBTHREAD="$LTLIBPTH"
  11682. LIBMULTITHREAD="$LIBTHREAD"
  11683. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11684. cat >>confdefs.h <<\_ACEOF
  11685. #define USE_PTH_THREADS 1
  11686. _ACEOF
  11687. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11688. if test $gl_have_weak = yes; then
  11689. cat >>confdefs.h <<\_ACEOF
  11690. #define USE_PTH_THREADS_WEAK 1
  11691. _ACEOF
  11692. LIBTHREAD=
  11693. LTLIBTHREAD=
  11694. fi
  11695. fi
  11696. else
  11697. CPPFLAGS="$gl_save_CPPFLAGS"
  11698. fi
  11699. fi
  11700. if test -z "$gl_have_pthread"; then
  11701. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11702. if { case "$host_os" in
  11703. mingw*) true;;
  11704. *) false;;
  11705. esac
  11706. }; then
  11707. gl_threads_api=win32
  11708. cat >>confdefs.h <<\_ACEOF
  11709. #define USE_WIN32_THREADS 1
  11710. _ACEOF
  11711. fi
  11712. fi
  11713. fi
  11714. fi
  11715. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11716. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  11717. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  11718. echo "${ECHO_T}$gl_threads_api" >&6; }
  11719. use_additional=yes
  11720. acl_save_prefix="$prefix"
  11721. prefix="$acl_final_prefix"
  11722. acl_save_exec_prefix="$exec_prefix"
  11723. exec_prefix="$acl_final_exec_prefix"
  11724. eval additional_includedir=\"$includedir\"
  11725. eval additional_libdir=\"$libdir\"
  11726. exec_prefix="$acl_save_exec_prefix"
  11727. prefix="$acl_save_prefix"
  11728. # Check whether --with-libiconv-prefix was given.
  11729. if test "${with_libiconv_prefix+set}" = set; then
  11730. withval=$with_libiconv_prefix;
  11731. if test "X$withval" = "Xno"; then
  11732. use_additional=no
  11733. else
  11734. if test "X$withval" = "X"; then
  11735. acl_save_prefix="$prefix"
  11736. prefix="$acl_final_prefix"
  11737. acl_save_exec_prefix="$exec_prefix"
  11738. exec_prefix="$acl_final_exec_prefix"
  11739. eval additional_includedir=\"$includedir\"
  11740. eval additional_libdir=\"$libdir\"
  11741. exec_prefix="$acl_save_exec_prefix"
  11742. prefix="$acl_save_prefix"
  11743. else
  11744. additional_includedir="$withval/include"
  11745. additional_libdir="$withval/$acl_libdirstem"
  11746. fi
  11747. fi
  11748. fi
  11749. LIBICONV=
  11750. LTLIBICONV=
  11751. INCICONV=
  11752. LIBICONV_PREFIX=
  11753. rpathdirs=
  11754. ltrpathdirs=
  11755. names_already_handled=
  11756. names_next_round='iconv '
  11757. while test -n "$names_next_round"; do
  11758. names_this_round="$names_next_round"
  11759. names_next_round=
  11760. for name in $names_this_round; do
  11761. already_handled=
  11762. for n in $names_already_handled; do
  11763. if test "$n" = "$name"; then
  11764. already_handled=yes
  11765. break
  11766. fi
  11767. done
  11768. if test -z "$already_handled"; then
  11769. names_already_handled="$names_already_handled $name"
  11770. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11771. eval value=\"\$HAVE_LIB$uppername\"
  11772. if test -n "$value"; then
  11773. if test "$value" = yes; then
  11774. eval value=\"\$LIB$uppername\"
  11775. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11776. eval value=\"\$LTLIB$uppername\"
  11777. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11778. else
  11779. :
  11780. fi
  11781. else
  11782. found_dir=
  11783. found_la=
  11784. found_so=
  11785. found_a=
  11786. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11787. if test -n "$acl_shlibext"; then
  11788. shrext=".$acl_shlibext" # typically: shrext=.so
  11789. else
  11790. shrext=
  11791. fi
  11792. if test $use_additional = yes; then
  11793. dir="$additional_libdir"
  11794. if test -n "$acl_shlibext"; then
  11795. if test -f "$dir/$libname$shrext"; then
  11796. found_dir="$dir"
  11797. found_so="$dir/$libname$shrext"
  11798. else
  11799. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11800. ver=`(cd "$dir" && \
  11801. for f in "$libname$shrext".*; do echo "$f"; done \
  11802. | sed -e "s,^$libname$shrext\\\\.,," \
  11803. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11804. | sed 1q ) 2>/dev/null`
  11805. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11806. found_dir="$dir"
  11807. found_so="$dir/$libname$shrext.$ver"
  11808. fi
  11809. else
  11810. eval library_names=\"$acl_library_names_spec\"
  11811. for f in $library_names; do
  11812. if test -f "$dir/$f"; then
  11813. found_dir="$dir"
  11814. found_so="$dir/$f"
  11815. break
  11816. fi
  11817. done
  11818. fi
  11819. fi
  11820. fi
  11821. if test "X$found_dir" = "X"; then
  11822. if test -f "$dir/$libname.$acl_libext"; then
  11823. found_dir="$dir"
  11824. found_a="$dir/$libname.$acl_libext"
  11825. fi
  11826. fi
  11827. if test "X$found_dir" != "X"; then
  11828. if test -f "$dir/$libname.la"; then
  11829. found_la="$dir/$libname.la"
  11830. fi
  11831. fi
  11832. fi
  11833. if test "X$found_dir" = "X"; then
  11834. for x in $LDFLAGS $LTLIBICONV; do
  11835. acl_save_prefix="$prefix"
  11836. prefix="$acl_final_prefix"
  11837. acl_save_exec_prefix="$exec_prefix"
  11838. exec_prefix="$acl_final_exec_prefix"
  11839. eval x=\"$x\"
  11840. exec_prefix="$acl_save_exec_prefix"
  11841. prefix="$acl_save_prefix"
  11842. case "$x" in
  11843. -L*)
  11844. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11845. if test -n "$acl_shlibext"; then
  11846. if test -f "$dir/$libname$shrext"; then
  11847. found_dir="$dir"
  11848. found_so="$dir/$libname$shrext"
  11849. else
  11850. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11851. ver=`(cd "$dir" && \
  11852. for f in "$libname$shrext".*; do echo "$f"; done \
  11853. | sed -e "s,^$libname$shrext\\\\.,," \
  11854. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11855. | sed 1q ) 2>/dev/null`
  11856. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11857. found_dir="$dir"
  11858. found_so="$dir/$libname$shrext.$ver"
  11859. fi
  11860. else
  11861. eval library_names=\"$acl_library_names_spec\"
  11862. for f in $library_names; do
  11863. if test -f "$dir/$f"; then
  11864. found_dir="$dir"
  11865. found_so="$dir/$f"
  11866. break
  11867. fi
  11868. done
  11869. fi
  11870. fi
  11871. fi
  11872. if test "X$found_dir" = "X"; then
  11873. if test -f "$dir/$libname.$acl_libext"; then
  11874. found_dir="$dir"
  11875. found_a="$dir/$libname.$acl_libext"
  11876. fi
  11877. fi
  11878. if test "X$found_dir" != "X"; then
  11879. if test -f "$dir/$libname.la"; then
  11880. found_la="$dir/$libname.la"
  11881. fi
  11882. fi
  11883. ;;
  11884. esac
  11885. if test "X$found_dir" != "X"; then
  11886. break
  11887. fi
  11888. done
  11889. fi
  11890. if test "X$found_dir" != "X"; then
  11891. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  11892. if test "X$found_so" != "X"; then
  11893. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11894. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11895. else
  11896. haveit=
  11897. for x in $ltrpathdirs; do
  11898. if test "X$x" = "X$found_dir"; then
  11899. haveit=yes
  11900. break
  11901. fi
  11902. done
  11903. if test -z "$haveit"; then
  11904. ltrpathdirs="$ltrpathdirs $found_dir"
  11905. fi
  11906. if test "$acl_hardcode_direct" = yes; then
  11907. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11908. else
  11909. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11910. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11911. haveit=
  11912. for x in $rpathdirs; do
  11913. if test "X$x" = "X$found_dir"; then
  11914. haveit=yes
  11915. break
  11916. fi
  11917. done
  11918. if test -z "$haveit"; then
  11919. rpathdirs="$rpathdirs $found_dir"
  11920. fi
  11921. else
  11922. haveit=
  11923. for x in $LDFLAGS $LIBICONV; do
  11924. acl_save_prefix="$prefix"
  11925. prefix="$acl_final_prefix"
  11926. acl_save_exec_prefix="$exec_prefix"
  11927. exec_prefix="$acl_final_exec_prefix"
  11928. eval x=\"$x\"
  11929. exec_prefix="$acl_save_exec_prefix"
  11930. prefix="$acl_save_prefix"
  11931. if test "X$x" = "X-L$found_dir"; then
  11932. haveit=yes
  11933. break
  11934. fi
  11935. done
  11936. if test -z "$haveit"; then
  11937. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  11938. fi
  11939. if test "$acl_hardcode_minus_L" != no; then
  11940. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11941. else
  11942. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11943. fi
  11944. fi
  11945. fi
  11946. fi
  11947. else
  11948. if test "X$found_a" != "X"; then
  11949. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  11950. else
  11951. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  11952. fi
  11953. fi
  11954. additional_includedir=
  11955. case "$found_dir" in
  11956. */$acl_libdirstem | */$acl_libdirstem/)
  11957. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11958. LIBICONV_PREFIX="$basedir"
  11959. additional_includedir="$basedir/include"
  11960. ;;
  11961. esac
  11962. if test "X$additional_includedir" != "X"; then
  11963. if test "X$additional_includedir" != "X/usr/include"; then
  11964. haveit=
  11965. if test "X$additional_includedir" = "X/usr/local/include"; then
  11966. if test -n "$GCC"; then
  11967. case $host_os in
  11968. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11969. esac
  11970. fi
  11971. fi
  11972. if test -z "$haveit"; then
  11973. for x in $CPPFLAGS $INCICONV; do
  11974. acl_save_prefix="$prefix"
  11975. prefix="$acl_final_prefix"
  11976. acl_save_exec_prefix="$exec_prefix"
  11977. exec_prefix="$acl_final_exec_prefix"
  11978. eval x=\"$x\"
  11979. exec_prefix="$acl_save_exec_prefix"
  11980. prefix="$acl_save_prefix"
  11981. if test "X$x" = "X-I$additional_includedir"; then
  11982. haveit=yes
  11983. break
  11984. fi
  11985. done
  11986. if test -z "$haveit"; then
  11987. if test -d "$additional_includedir"; then
  11988. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  11989. fi
  11990. fi
  11991. fi
  11992. fi
  11993. fi
  11994. if test -n "$found_la"; then
  11995. save_libdir="$libdir"
  11996. case "$found_la" in
  11997. */* | *\\*) . "$found_la" ;;
  11998. *) . "./$found_la" ;;
  11999. esac
  12000. libdir="$save_libdir"
  12001. for dep in $dependency_libs; do
  12002. case "$dep" in
  12003. -L*)
  12004. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12005. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12006. haveit=
  12007. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12008. if test -n "$GCC"; then
  12009. case $host_os in
  12010. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12011. esac
  12012. fi
  12013. fi
  12014. if test -z "$haveit"; then
  12015. haveit=
  12016. for x in $LDFLAGS $LIBICONV; do
  12017. acl_save_prefix="$prefix"
  12018. prefix="$acl_final_prefix"
  12019. acl_save_exec_prefix="$exec_prefix"
  12020. exec_prefix="$acl_final_exec_prefix"
  12021. eval x=\"$x\"
  12022. exec_prefix="$acl_save_exec_prefix"
  12023. prefix="$acl_save_prefix"
  12024. if test "X$x" = "X-L$additional_libdir"; then
  12025. haveit=yes
  12026. break
  12027. fi
  12028. done
  12029. if test -z "$haveit"; then
  12030. if test -d "$additional_libdir"; then
  12031. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  12032. fi
  12033. fi
  12034. haveit=
  12035. for x in $LDFLAGS $LTLIBICONV; do
  12036. acl_save_prefix="$prefix"
  12037. prefix="$acl_final_prefix"
  12038. acl_save_exec_prefix="$exec_prefix"
  12039. exec_prefix="$acl_final_exec_prefix"
  12040. eval x=\"$x\"
  12041. exec_prefix="$acl_save_exec_prefix"
  12042. prefix="$acl_save_prefix"
  12043. if test "X$x" = "X-L$additional_libdir"; then
  12044. haveit=yes
  12045. break
  12046. fi
  12047. done
  12048. if test -z "$haveit"; then
  12049. if test -d "$additional_libdir"; then
  12050. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  12051. fi
  12052. fi
  12053. fi
  12054. fi
  12055. ;;
  12056. -R*)
  12057. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12058. if test "$enable_rpath" != no; then
  12059. haveit=
  12060. for x in $rpathdirs; do
  12061. if test "X$x" = "X$dir"; then
  12062. haveit=yes
  12063. break
  12064. fi
  12065. done
  12066. if test -z "$haveit"; then
  12067. rpathdirs="$rpathdirs $dir"
  12068. fi
  12069. haveit=
  12070. for x in $ltrpathdirs; do
  12071. if test "X$x" = "X$dir"; then
  12072. haveit=yes
  12073. break
  12074. fi
  12075. done
  12076. if test -z "$haveit"; then
  12077. ltrpathdirs="$ltrpathdirs $dir"
  12078. fi
  12079. fi
  12080. ;;
  12081. -l*)
  12082. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12083. ;;
  12084. *.la)
  12085. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12086. ;;
  12087. *)
  12088. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  12089. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  12090. ;;
  12091. esac
  12092. done
  12093. fi
  12094. else
  12095. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12096. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  12097. fi
  12098. fi
  12099. fi
  12100. done
  12101. done
  12102. if test "X$rpathdirs" != "X"; then
  12103. if test -n "$acl_hardcode_libdir_separator"; then
  12104. alldirs=
  12105. for found_dir in $rpathdirs; do
  12106. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12107. done
  12108. acl_save_libdir="$libdir"
  12109. libdir="$alldirs"
  12110. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12111. libdir="$acl_save_libdir"
  12112. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12113. else
  12114. for found_dir in $rpathdirs; do
  12115. acl_save_libdir="$libdir"
  12116. libdir="$found_dir"
  12117. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12118. libdir="$acl_save_libdir"
  12119. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  12120. done
  12121. fi
  12122. fi
  12123. if test "X$ltrpathdirs" != "X"; then
  12124. for found_dir in $ltrpathdirs; do
  12125. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  12126. done
  12127. fi
  12128. cat >conftest.$ac_ext <<_ACEOF
  12129. /* confdefs.h. */
  12130. _ACEOF
  12131. cat confdefs.h >>conftest.$ac_ext
  12132. cat >>conftest.$ac_ext <<_ACEOF
  12133. /* end confdefs.h. */
  12134. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  12135. int
  12136. main ()
  12137. {
  12138. ;
  12139. return 0;
  12140. }
  12141. _ACEOF
  12142. rm -f conftest.$ac_objext conftest$ac_exeext
  12143. if { (ac_try="$ac_link"
  12144. case "(($ac_try" in
  12145. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12146. *) ac_try_echo=$ac_try;;
  12147. esac
  12148. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12149. (eval "$ac_link") 2>conftest.er1
  12150. ac_status=$?
  12151. grep -v '^ *+' conftest.er1 >conftest.err
  12152. rm -f conftest.er1
  12153. cat conftest.err >&5
  12154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12155. (exit $ac_status); } && {
  12156. test -z "$ac_cxx_werror_flag" ||
  12157. test ! -s conftest.err
  12158. } && test -s conftest$ac_exeext &&
  12159. $as_test_x conftest$ac_exeext; then
  12160. cat >>confdefs.h <<\_ACEOF
  12161. #define HAVE_BUILTIN_EXPECT 1
  12162. _ACEOF
  12163. else
  12164. echo "$as_me: failed program was:" >&5
  12165. sed 's/^/| /' conftest.$ac_ext >&5
  12166. fi
  12167. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12168. conftest$ac_exeext conftest.$ac_ext
  12169. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  12170. do
  12171. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12172. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12173. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12174. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12175. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12176. echo $ECHO_N "(cached) $ECHO_C" >&6
  12177. fi
  12178. ac_res=`eval echo '${'$as_ac_Header'}'`
  12179. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12180. echo "${ECHO_T}$ac_res" >&6; }
  12181. else
  12182. # Is the header compilable?
  12183. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12184. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12185. cat >conftest.$ac_ext <<_ACEOF
  12186. /* confdefs.h. */
  12187. _ACEOF
  12188. cat confdefs.h >>conftest.$ac_ext
  12189. cat >>conftest.$ac_ext <<_ACEOF
  12190. /* end confdefs.h. */
  12191. $ac_includes_default
  12192. #include <$ac_header>
  12193. _ACEOF
  12194. rm -f conftest.$ac_objext
  12195. if { (ac_try="$ac_compile"
  12196. case "(($ac_try" in
  12197. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12198. *) ac_try_echo=$ac_try;;
  12199. esac
  12200. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12201. (eval "$ac_compile") 2>conftest.er1
  12202. ac_status=$?
  12203. grep -v '^ *+' conftest.er1 >conftest.err
  12204. rm -f conftest.er1
  12205. cat conftest.err >&5
  12206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12207. (exit $ac_status); } && {
  12208. test -z "$ac_cxx_werror_flag" ||
  12209. test ! -s conftest.err
  12210. } && test -s conftest.$ac_objext; then
  12211. ac_header_compiler=yes
  12212. else
  12213. echo "$as_me: failed program was:" >&5
  12214. sed 's/^/| /' conftest.$ac_ext >&5
  12215. ac_header_compiler=no
  12216. fi
  12217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12218. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12219. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12220. # Is the header present?
  12221. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12222. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12223. cat >conftest.$ac_ext <<_ACEOF
  12224. /* confdefs.h. */
  12225. _ACEOF
  12226. cat confdefs.h >>conftest.$ac_ext
  12227. cat >>conftest.$ac_ext <<_ACEOF
  12228. /* end confdefs.h. */
  12229. #include <$ac_header>
  12230. _ACEOF
  12231. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12232. case "(($ac_try" in
  12233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12234. *) ac_try_echo=$ac_try;;
  12235. esac
  12236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12237. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12238. ac_status=$?
  12239. grep -v '^ *+' conftest.er1 >conftest.err
  12240. rm -f conftest.er1
  12241. cat conftest.err >&5
  12242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12243. (exit $ac_status); } >/dev/null && {
  12244. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12245. test ! -s conftest.err
  12246. }; then
  12247. ac_header_preproc=yes
  12248. else
  12249. echo "$as_me: failed program was:" >&5
  12250. sed 's/^/| /' conftest.$ac_ext >&5
  12251. ac_header_preproc=no
  12252. fi
  12253. rm -f conftest.err conftest.$ac_ext
  12254. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12255. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12256. # So? What about this header?
  12257. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12258. yes:no: )
  12259. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12260. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12261. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12262. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12263. ac_header_preproc=yes
  12264. ;;
  12265. no:yes:* )
  12266. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12267. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12268. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12269. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12270. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12271. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12272. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12273. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12274. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12275. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12276. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12277. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12278. ( cat <<\_ASBOX
  12279. ## ----------------------------------------------- ##
  12280. ## Report this to t-tujikawa@users.sourceforge.net ##
  12281. ## ----------------------------------------------- ##
  12282. _ASBOX
  12283. ) | sed "s/^/$as_me: WARNING: /" >&2
  12284. ;;
  12285. esac
  12286. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12287. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12288. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12289. echo $ECHO_N "(cached) $ECHO_C" >&6
  12290. else
  12291. eval "$as_ac_Header=\$ac_header_preproc"
  12292. fi
  12293. ac_res=`eval echo '${'$as_ac_Header'}'`
  12294. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12295. echo "${ECHO_T}$ac_res" >&6; }
  12296. fi
  12297. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12298. cat >>confdefs.h <<_ACEOF
  12299. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12300. _ACEOF
  12301. fi
  12302. done
  12303. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  12304. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  12305. argz_next __fsetlocking
  12306. do
  12307. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12308. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12309. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12310. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12311. echo $ECHO_N "(cached) $ECHO_C" >&6
  12312. else
  12313. cat >conftest.$ac_ext <<_ACEOF
  12314. /* confdefs.h. */
  12315. _ACEOF
  12316. cat confdefs.h >>conftest.$ac_ext
  12317. cat >>conftest.$ac_ext <<_ACEOF
  12318. /* end confdefs.h. */
  12319. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12320. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12321. #define $ac_func innocuous_$ac_func
  12322. /* System header to define __stub macros and hopefully few prototypes,
  12323. which can conflict with char $ac_func (); below.
  12324. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12325. <limits.h> exists even on freestanding compilers. */
  12326. #ifdef __STDC__
  12327. # include <limits.h>
  12328. #else
  12329. # include <assert.h>
  12330. #endif
  12331. #undef $ac_func
  12332. /* Override any GCC internal prototype to avoid an error.
  12333. Use char because int might match the return type of a GCC
  12334. builtin and then its argument prototype would still apply. */
  12335. #ifdef __cplusplus
  12336. extern "C"
  12337. #endif
  12338. char $ac_func ();
  12339. /* The GNU C library defines this for functions which it implements
  12340. to always fail with ENOSYS. Some functions are actually named
  12341. something starting with __ and the normal name is an alias. */
  12342. #if defined __stub_$ac_func || defined __stub___$ac_func
  12343. choke me
  12344. #endif
  12345. int
  12346. main ()
  12347. {
  12348. return $ac_func ();
  12349. ;
  12350. return 0;
  12351. }
  12352. _ACEOF
  12353. rm -f conftest.$ac_objext conftest$ac_exeext
  12354. if { (ac_try="$ac_link"
  12355. case "(($ac_try" in
  12356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12357. *) ac_try_echo=$ac_try;;
  12358. esac
  12359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12360. (eval "$ac_link") 2>conftest.er1
  12361. ac_status=$?
  12362. grep -v '^ *+' conftest.er1 >conftest.err
  12363. rm -f conftest.er1
  12364. cat conftest.err >&5
  12365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12366. (exit $ac_status); } && {
  12367. test -z "$ac_cxx_werror_flag" ||
  12368. test ! -s conftest.err
  12369. } && test -s conftest$ac_exeext &&
  12370. $as_test_x conftest$ac_exeext; then
  12371. eval "$as_ac_var=yes"
  12372. else
  12373. echo "$as_me: failed program was:" >&5
  12374. sed 's/^/| /' conftest.$ac_ext >&5
  12375. eval "$as_ac_var=no"
  12376. fi
  12377. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12378. conftest$ac_exeext conftest.$ac_ext
  12379. fi
  12380. ac_res=`eval echo '${'$as_ac_var'}'`
  12381. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12382. echo "${ECHO_T}$ac_res" >&6; }
  12383. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12384. cat >>confdefs.h <<_ACEOF
  12385. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12386. _ACEOF
  12387. fi
  12388. done
  12389. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  12390. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  12391. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  12392. echo $ECHO_N "(cached) $ECHO_C" >&6
  12393. else
  12394. cat >conftest.$ac_ext <<_ACEOF
  12395. /* confdefs.h. */
  12396. _ACEOF
  12397. cat confdefs.h >>conftest.$ac_ext
  12398. cat >>conftest.$ac_ext <<_ACEOF
  12399. /* end confdefs.h. */
  12400. #include <stdio.h>
  12401. int
  12402. main ()
  12403. {
  12404. #ifndef feof_unlocked
  12405. char *p = (char *) feof_unlocked;
  12406. #endif
  12407. ;
  12408. return 0;
  12409. }
  12410. _ACEOF
  12411. rm -f conftest.$ac_objext
  12412. if { (ac_try="$ac_compile"
  12413. case "(($ac_try" in
  12414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12415. *) ac_try_echo=$ac_try;;
  12416. esac
  12417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12418. (eval "$ac_compile") 2>conftest.er1
  12419. ac_status=$?
  12420. grep -v '^ *+' conftest.er1 >conftest.err
  12421. rm -f conftest.er1
  12422. cat conftest.err >&5
  12423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12424. (exit $ac_status); } && {
  12425. test -z "$ac_cxx_werror_flag" ||
  12426. test ! -s conftest.err
  12427. } && test -s conftest.$ac_objext; then
  12428. ac_cv_have_decl_feof_unlocked=yes
  12429. else
  12430. echo "$as_me: failed program was:" >&5
  12431. sed 's/^/| /' conftest.$ac_ext >&5
  12432. ac_cv_have_decl_feof_unlocked=no
  12433. fi
  12434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12435. fi
  12436. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  12437. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  12438. if test $ac_cv_have_decl_feof_unlocked = yes; then
  12439. gt_value=1
  12440. else
  12441. gt_value=0
  12442. fi
  12443. cat >>confdefs.h <<_ACEOF
  12444. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  12445. _ACEOF
  12446. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  12447. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  12448. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  12449. echo $ECHO_N "(cached) $ECHO_C" >&6
  12450. else
  12451. cat >conftest.$ac_ext <<_ACEOF
  12452. /* confdefs.h. */
  12453. _ACEOF
  12454. cat confdefs.h >>conftest.$ac_ext
  12455. cat >>conftest.$ac_ext <<_ACEOF
  12456. /* end confdefs.h. */
  12457. #include <stdio.h>
  12458. int
  12459. main ()
  12460. {
  12461. #ifndef fgets_unlocked
  12462. char *p = (char *) fgets_unlocked;
  12463. #endif
  12464. ;
  12465. return 0;
  12466. }
  12467. _ACEOF
  12468. rm -f conftest.$ac_objext
  12469. if { (ac_try="$ac_compile"
  12470. case "(($ac_try" in
  12471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12472. *) ac_try_echo=$ac_try;;
  12473. esac
  12474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12475. (eval "$ac_compile") 2>conftest.er1
  12476. ac_status=$?
  12477. grep -v '^ *+' conftest.er1 >conftest.err
  12478. rm -f conftest.er1
  12479. cat conftest.err >&5
  12480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12481. (exit $ac_status); } && {
  12482. test -z "$ac_cxx_werror_flag" ||
  12483. test ! -s conftest.err
  12484. } && test -s conftest.$ac_objext; then
  12485. ac_cv_have_decl_fgets_unlocked=yes
  12486. else
  12487. echo "$as_me: failed program was:" >&5
  12488. sed 's/^/| /' conftest.$ac_ext >&5
  12489. ac_cv_have_decl_fgets_unlocked=no
  12490. fi
  12491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12492. fi
  12493. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12494. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12495. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12496. gt_value=1
  12497. else
  12498. gt_value=0
  12499. fi
  12500. cat >>confdefs.h <<_ACEOF
  12501. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12502. _ACEOF
  12503. am_save_CPPFLAGS="$CPPFLAGS"
  12504. for element in $INCICONV; do
  12505. haveit=
  12506. for x in $CPPFLAGS; do
  12507. acl_save_prefix="$prefix"
  12508. prefix="$acl_final_prefix"
  12509. acl_save_exec_prefix="$exec_prefix"
  12510. exec_prefix="$acl_final_exec_prefix"
  12511. eval x=\"$x\"
  12512. exec_prefix="$acl_save_exec_prefix"
  12513. prefix="$acl_save_prefix"
  12514. if test "X$x" = "X$element"; then
  12515. haveit=yes
  12516. break
  12517. fi
  12518. done
  12519. if test -z "$haveit"; then
  12520. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12521. fi
  12522. done
  12523. { echo "$as_me:$LINENO: checking for iconv" >&5
  12524. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12525. if test "${am_cv_func_iconv+set}" = set; then
  12526. echo $ECHO_N "(cached) $ECHO_C" >&6
  12527. else
  12528. am_cv_func_iconv="no, consider installing GNU libiconv"
  12529. am_cv_lib_iconv=no
  12530. cat >conftest.$ac_ext <<_ACEOF
  12531. /* confdefs.h. */
  12532. _ACEOF
  12533. cat confdefs.h >>conftest.$ac_ext
  12534. cat >>conftest.$ac_ext <<_ACEOF
  12535. /* end confdefs.h. */
  12536. #include <stdlib.h>
  12537. #include <iconv.h>
  12538. int
  12539. main ()
  12540. {
  12541. iconv_t cd = iconv_open("","");
  12542. iconv(cd,NULL,NULL,NULL,NULL);
  12543. iconv_close(cd);
  12544. ;
  12545. return 0;
  12546. }
  12547. _ACEOF
  12548. rm -f conftest.$ac_objext conftest$ac_exeext
  12549. if { (ac_try="$ac_link"
  12550. case "(($ac_try" in
  12551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12552. *) ac_try_echo=$ac_try;;
  12553. esac
  12554. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12555. (eval "$ac_link") 2>conftest.er1
  12556. ac_status=$?
  12557. grep -v '^ *+' conftest.er1 >conftest.err
  12558. rm -f conftest.er1
  12559. cat conftest.err >&5
  12560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12561. (exit $ac_status); } && {
  12562. test -z "$ac_cxx_werror_flag" ||
  12563. test ! -s conftest.err
  12564. } && test -s conftest$ac_exeext &&
  12565. $as_test_x conftest$ac_exeext; then
  12566. am_cv_func_iconv=yes
  12567. else
  12568. echo "$as_me: failed program was:" >&5
  12569. sed 's/^/| /' conftest.$ac_ext >&5
  12570. fi
  12571. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12572. conftest$ac_exeext conftest.$ac_ext
  12573. if test "$am_cv_func_iconv" != yes; then
  12574. am_save_LIBS="$LIBS"
  12575. LIBS="$LIBS $LIBICONV"
  12576. cat >conftest.$ac_ext <<_ACEOF
  12577. /* confdefs.h. */
  12578. _ACEOF
  12579. cat confdefs.h >>conftest.$ac_ext
  12580. cat >>conftest.$ac_ext <<_ACEOF
  12581. /* end confdefs.h. */
  12582. #include <stdlib.h>
  12583. #include <iconv.h>
  12584. int
  12585. main ()
  12586. {
  12587. iconv_t cd = iconv_open("","");
  12588. iconv(cd,NULL,NULL,NULL,NULL);
  12589. iconv_close(cd);
  12590. ;
  12591. return 0;
  12592. }
  12593. _ACEOF
  12594. rm -f conftest.$ac_objext conftest$ac_exeext
  12595. if { (ac_try="$ac_link"
  12596. case "(($ac_try" in
  12597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12598. *) ac_try_echo=$ac_try;;
  12599. esac
  12600. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12601. (eval "$ac_link") 2>conftest.er1
  12602. ac_status=$?
  12603. grep -v '^ *+' conftest.er1 >conftest.err
  12604. rm -f conftest.er1
  12605. cat conftest.err >&5
  12606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12607. (exit $ac_status); } && {
  12608. test -z "$ac_cxx_werror_flag" ||
  12609. test ! -s conftest.err
  12610. } && test -s conftest$ac_exeext &&
  12611. $as_test_x conftest$ac_exeext; then
  12612. am_cv_lib_iconv=yes
  12613. am_cv_func_iconv=yes
  12614. else
  12615. echo "$as_me: failed program was:" >&5
  12616. sed 's/^/| /' conftest.$ac_ext >&5
  12617. fi
  12618. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12619. conftest$ac_exeext conftest.$ac_ext
  12620. LIBS="$am_save_LIBS"
  12621. fi
  12622. fi
  12623. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12624. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12625. if test "$am_cv_func_iconv" = yes; then
  12626. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12627. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12628. if test "${am_cv_func_iconv_works+set}" = set; then
  12629. echo $ECHO_N "(cached) $ECHO_C" >&6
  12630. else
  12631. am_save_LIBS="$LIBS"
  12632. if test $am_cv_lib_iconv = yes; then
  12633. LIBS="$LIBS $LIBICONV"
  12634. fi
  12635. if test "$cross_compiling" = yes; then
  12636. case "$host_os" in
  12637. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12638. *) am_cv_func_iconv_works="guessing yes" ;;
  12639. esac
  12640. else
  12641. cat >conftest.$ac_ext <<_ACEOF
  12642. /* confdefs.h. */
  12643. _ACEOF
  12644. cat confdefs.h >>conftest.$ac_ext
  12645. cat >>conftest.$ac_ext <<_ACEOF
  12646. /* end confdefs.h. */
  12647. #include <iconv.h>
  12648. #include <string.h>
  12649. int main ()
  12650. {
  12651. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12652. returns. */
  12653. {
  12654. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12655. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12656. {
  12657. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12658. char buf[10];
  12659. const char *inptr = input;
  12660. size_t inbytesleft = strlen (input);
  12661. char *outptr = buf;
  12662. size_t outbytesleft = sizeof (buf);
  12663. size_t res = iconv (cd_utf8_to_88591,
  12664. (char **) &inptr, &inbytesleft,
  12665. &outptr, &outbytesleft);
  12666. if (res == 0)
  12667. return 1;
  12668. }
  12669. }
  12670. #if 0 /* This bug could be worked around by the caller. */
  12671. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12672. {
  12673. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12674. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12675. {
  12676. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12677. char buf[50];
  12678. const char *inptr = input;
  12679. size_t inbytesleft = strlen (input);
  12680. char *outptr = buf;
  12681. size_t outbytesleft = sizeof (buf);
  12682. size_t res = iconv (cd_88591_to_utf8,
  12683. (char **) &inptr, &inbytesleft,
  12684. &outptr, &outbytesleft);
  12685. if ((int)res > 0)
  12686. return 1;
  12687. }
  12688. }
  12689. #endif
  12690. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12691. provided. */
  12692. if (/* Try standardized names. */
  12693. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12694. /* Try IRIX, OSF/1 names. */
  12695. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12696. /* Try AIX names. */
  12697. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12698. /* Try HP-UX names. */
  12699. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12700. return 1;
  12701. return 0;
  12702. }
  12703. _ACEOF
  12704. rm -f conftest$ac_exeext
  12705. if { (ac_try="$ac_link"
  12706. case "(($ac_try" in
  12707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12708. *) ac_try_echo=$ac_try;;
  12709. esac
  12710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12711. (eval "$ac_link") 2>&5
  12712. ac_status=$?
  12713. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12714. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12715. { (case "(($ac_try" in
  12716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12717. *) ac_try_echo=$ac_try;;
  12718. esac
  12719. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12720. (eval "$ac_try") 2>&5
  12721. ac_status=$?
  12722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12723. (exit $ac_status); }; }; then
  12724. am_cv_func_iconv_works=yes
  12725. else
  12726. echo "$as_me: program exited with status $ac_status" >&5
  12727. echo "$as_me: failed program was:" >&5
  12728. sed 's/^/| /' conftest.$ac_ext >&5
  12729. ( exit $ac_status )
  12730. am_cv_func_iconv_works=no
  12731. fi
  12732. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12733. fi
  12734. LIBS="$am_save_LIBS"
  12735. fi
  12736. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  12737. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  12738. case "$am_cv_func_iconv_works" in
  12739. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  12740. *) am_func_iconv=yes ;;
  12741. esac
  12742. else
  12743. am_func_iconv=no am_cv_lib_iconv=no
  12744. fi
  12745. if test "$am_func_iconv" = yes; then
  12746. cat >>confdefs.h <<\_ACEOF
  12747. #define HAVE_ICONV 1
  12748. _ACEOF
  12749. fi
  12750. if test "$am_cv_lib_iconv" = yes; then
  12751. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  12752. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  12753. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  12754. echo "${ECHO_T}$LIBICONV" >&6; }
  12755. else
  12756. CPPFLAGS="$am_save_CPPFLAGS"
  12757. LIBICONV=
  12758. LTLIBICONV=
  12759. fi
  12760. if test "$am_cv_func_iconv" = yes; then
  12761. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  12762. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  12763. if test "${am_cv_proto_iconv+set}" = set; then
  12764. echo $ECHO_N "(cached) $ECHO_C" >&6
  12765. else
  12766. cat >conftest.$ac_ext <<_ACEOF
  12767. /* confdefs.h. */
  12768. _ACEOF
  12769. cat confdefs.h >>conftest.$ac_ext
  12770. cat >>conftest.$ac_ext <<_ACEOF
  12771. /* end confdefs.h. */
  12772. #include <stdlib.h>
  12773. #include <iconv.h>
  12774. extern
  12775. #ifdef __cplusplus
  12776. "C"
  12777. #endif
  12778. #if defined(__STDC__) || defined(__cplusplus)
  12779. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12780. #else
  12781. size_t iconv();
  12782. #endif
  12783. int
  12784. main ()
  12785. {
  12786. ;
  12787. return 0;
  12788. }
  12789. _ACEOF
  12790. rm -f conftest.$ac_objext
  12791. if { (ac_try="$ac_compile"
  12792. case "(($ac_try" in
  12793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12794. *) ac_try_echo=$ac_try;;
  12795. esac
  12796. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12797. (eval "$ac_compile") 2>conftest.er1
  12798. ac_status=$?
  12799. grep -v '^ *+' conftest.er1 >conftest.err
  12800. rm -f conftest.er1
  12801. cat conftest.err >&5
  12802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12803. (exit $ac_status); } && {
  12804. test -z "$ac_cxx_werror_flag" ||
  12805. test ! -s conftest.err
  12806. } && test -s conftest.$ac_objext; then
  12807. am_cv_proto_iconv_arg1=""
  12808. else
  12809. echo "$as_me: failed program was:" >&5
  12810. sed 's/^/| /' conftest.$ac_ext >&5
  12811. am_cv_proto_iconv_arg1="const"
  12812. fi
  12813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12814. 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);"
  12815. fi
  12816. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  12817. { echo "$as_me:$LINENO: result: ${ac_t:-
  12818. }$am_cv_proto_iconv" >&5
  12819. echo "${ECHO_T}${ac_t:-
  12820. }$am_cv_proto_iconv" >&6; }
  12821. cat >>confdefs.h <<_ACEOF
  12822. #define ICONV_CONST $am_cv_proto_iconv_arg1
  12823. _ACEOF
  12824. fi
  12825. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  12826. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  12827. if test "${gt_cv_nl_locale_name+set}" = set; then
  12828. echo $ECHO_N "(cached) $ECHO_C" >&6
  12829. else
  12830. cat >conftest.$ac_ext <<_ACEOF
  12831. /* confdefs.h. */
  12832. _ACEOF
  12833. cat confdefs.h >>conftest.$ac_ext
  12834. cat >>conftest.$ac_ext <<_ACEOF
  12835. /* end confdefs.h. */
  12836. #include <langinfo.h>
  12837. #include <locale.h>
  12838. int
  12839. main ()
  12840. {
  12841. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  12842. return !cs;
  12843. ;
  12844. return 0;
  12845. }
  12846. _ACEOF
  12847. rm -f conftest.$ac_objext conftest$ac_exeext
  12848. if { (ac_try="$ac_link"
  12849. case "(($ac_try" in
  12850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12851. *) ac_try_echo=$ac_try;;
  12852. esac
  12853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12854. (eval "$ac_link") 2>conftest.er1
  12855. ac_status=$?
  12856. grep -v '^ *+' conftest.er1 >conftest.err
  12857. rm -f conftest.er1
  12858. cat conftest.err >&5
  12859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12860. (exit $ac_status); } && {
  12861. test -z "$ac_cxx_werror_flag" ||
  12862. test ! -s conftest.err
  12863. } && test -s conftest$ac_exeext &&
  12864. $as_test_x conftest$ac_exeext; then
  12865. gt_cv_nl_locale_name=yes
  12866. else
  12867. echo "$as_me: failed program was:" >&5
  12868. sed 's/^/| /' conftest.$ac_ext >&5
  12869. gt_cv_nl_locale_name=no
  12870. fi
  12871. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12872. conftest$ac_exeext conftest.$ac_ext
  12873. fi
  12874. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  12875. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  12876. if test $gt_cv_nl_locale_name = yes; then
  12877. cat >>confdefs.h <<\_ACEOF
  12878. #define HAVE_NL_LOCALE_NAME 1
  12879. _ACEOF
  12880. fi
  12881. for ac_prog in bison
  12882. do
  12883. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12884. set dummy $ac_prog; ac_word=$2
  12885. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12886. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12887. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  12888. echo $ECHO_N "(cached) $ECHO_C" >&6
  12889. else
  12890. if test -n "$INTLBISON"; then
  12891. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  12892. else
  12893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12894. for as_dir in $PATH
  12895. do
  12896. IFS=$as_save_IFS
  12897. test -z "$as_dir" && as_dir=.
  12898. for ac_exec_ext in '' $ac_executable_extensions; do
  12899. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12900. ac_cv_prog_INTLBISON="$ac_prog"
  12901. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12902. break 2
  12903. fi
  12904. done
  12905. done
  12906. IFS=$as_save_IFS
  12907. fi
  12908. fi
  12909. INTLBISON=$ac_cv_prog_INTLBISON
  12910. if test -n "$INTLBISON"; then
  12911. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  12912. echo "${ECHO_T}$INTLBISON" >&6; }
  12913. else
  12914. { echo "$as_me:$LINENO: result: no" >&5
  12915. echo "${ECHO_T}no" >&6; }
  12916. fi
  12917. test -n "$INTLBISON" && break
  12918. done
  12919. if test -z "$INTLBISON"; then
  12920. ac_verc_fail=yes
  12921. else
  12922. { echo "$as_me:$LINENO: checking version of bison" >&5
  12923. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  12924. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  12925. case $ac_prog_version in
  12926. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  12927. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  12928. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  12929. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  12930. esac
  12931. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  12932. echo "${ECHO_T}$ac_prog_version" >&6; }
  12933. fi
  12934. if test $ac_verc_fail = yes; then
  12935. INTLBISON=:
  12936. fi
  12937. { echo "$as_me:$LINENO: checking for long long int" >&5
  12938. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  12939. if test "${ac_cv_type_long_long_int+set}" = set; then
  12940. echo $ECHO_N "(cached) $ECHO_C" >&6
  12941. else
  12942. cat >conftest.$ac_ext <<_ACEOF
  12943. /* confdefs.h. */
  12944. _ACEOF
  12945. cat confdefs.h >>conftest.$ac_ext
  12946. cat >>conftest.$ac_ext <<_ACEOF
  12947. /* end confdefs.h. */
  12948. /* Test preprocessor. */
  12949. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12950. error in preprocessor;
  12951. #endif
  12952. #if ! (18446744073709551615ULL <= -1ull)
  12953. error in preprocessor;
  12954. #endif
  12955. /* Test literals. */
  12956. long long int ll = 9223372036854775807ll;
  12957. long long int nll = -9223372036854775807LL;
  12958. unsigned long long int ull = 18446744073709551615ULL;
  12959. /* Test constant expressions. */
  12960. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12961. ? 1 : -1)];
  12962. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  12963. ? 1 : -1)];
  12964. int i = 63;
  12965. int
  12966. main ()
  12967. {
  12968. /* Test availability of runtime routines for shift and division. */
  12969. long long int llmax = 9223372036854775807ll;
  12970. unsigned long long int ullmax = 18446744073709551615ull;
  12971. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  12972. | (llmax / ll) | (llmax % ll)
  12973. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  12974. | (ullmax / ull) | (ullmax % ull));
  12975. ;
  12976. return 0;
  12977. }
  12978. _ACEOF
  12979. rm -f conftest.$ac_objext conftest$ac_exeext
  12980. if { (ac_try="$ac_link"
  12981. case "(($ac_try" in
  12982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12983. *) ac_try_echo=$ac_try;;
  12984. esac
  12985. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12986. (eval "$ac_link") 2>conftest.er1
  12987. ac_status=$?
  12988. grep -v '^ *+' conftest.er1 >conftest.err
  12989. rm -f conftest.er1
  12990. cat conftest.err >&5
  12991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12992. (exit $ac_status); } && {
  12993. test -z "$ac_cxx_werror_flag" ||
  12994. test ! -s conftest.err
  12995. } && test -s conftest$ac_exeext &&
  12996. $as_test_x conftest$ac_exeext; then
  12997. if test "$cross_compiling" = yes; then
  12998. ac_cv_type_long_long_int=yes
  12999. else
  13000. cat >conftest.$ac_ext <<_ACEOF
  13001. /* confdefs.h. */
  13002. _ACEOF
  13003. cat confdefs.h >>conftest.$ac_ext
  13004. cat >>conftest.$ac_ext <<_ACEOF
  13005. /* end confdefs.h. */
  13006. #include <limits.h>
  13007. #ifndef LLONG_MAX
  13008. # define HALF \
  13009. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  13010. # define LLONG_MAX (HALF - 1 + HALF)
  13011. #endif
  13012. int
  13013. main ()
  13014. {
  13015. long long int n = 1;
  13016. int i;
  13017. for (i = 0; ; i++)
  13018. {
  13019. long long int m = n << i;
  13020. if (m >> i != n)
  13021. return 1;
  13022. if (LLONG_MAX / 2 < m)
  13023. break;
  13024. }
  13025. return 0;
  13026. ;
  13027. return 0;
  13028. }
  13029. _ACEOF
  13030. rm -f conftest$ac_exeext
  13031. if { (ac_try="$ac_link"
  13032. case "(($ac_try" in
  13033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13034. *) ac_try_echo=$ac_try;;
  13035. esac
  13036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13037. (eval "$ac_link") 2>&5
  13038. ac_status=$?
  13039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13040. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13041. { (case "(($ac_try" in
  13042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13043. *) ac_try_echo=$ac_try;;
  13044. esac
  13045. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13046. (eval "$ac_try") 2>&5
  13047. ac_status=$?
  13048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13049. (exit $ac_status); }; }; then
  13050. ac_cv_type_long_long_int=yes
  13051. else
  13052. echo "$as_me: program exited with status $ac_status" >&5
  13053. echo "$as_me: failed program was:" >&5
  13054. sed 's/^/| /' conftest.$ac_ext >&5
  13055. ( exit $ac_status )
  13056. ac_cv_type_long_long_int=no
  13057. fi
  13058. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13059. fi
  13060. else
  13061. echo "$as_me: failed program was:" >&5
  13062. sed 's/^/| /' conftest.$ac_ext >&5
  13063. ac_cv_type_long_long_int=no
  13064. fi
  13065. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13066. conftest$ac_exeext conftest.$ac_ext
  13067. fi
  13068. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  13069. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  13070. if test $ac_cv_type_long_long_int = yes; then
  13071. cat >>confdefs.h <<\_ACEOF
  13072. #define HAVE_LONG_LONG_INT 1
  13073. _ACEOF
  13074. fi
  13075. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  13076. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  13077. if test "${gt_cv_c_wchar_t+set}" = set; then
  13078. echo $ECHO_N "(cached) $ECHO_C" >&6
  13079. else
  13080. cat >conftest.$ac_ext <<_ACEOF
  13081. /* confdefs.h. */
  13082. _ACEOF
  13083. cat confdefs.h >>conftest.$ac_ext
  13084. cat >>conftest.$ac_ext <<_ACEOF
  13085. /* end confdefs.h. */
  13086. #include <stddef.h>
  13087. wchar_t foo = (wchar_t)'\0';
  13088. int
  13089. main ()
  13090. {
  13091. ;
  13092. return 0;
  13093. }
  13094. _ACEOF
  13095. rm -f conftest.$ac_objext
  13096. if { (ac_try="$ac_compile"
  13097. case "(($ac_try" in
  13098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13099. *) ac_try_echo=$ac_try;;
  13100. esac
  13101. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13102. (eval "$ac_compile") 2>conftest.er1
  13103. ac_status=$?
  13104. grep -v '^ *+' conftest.er1 >conftest.err
  13105. rm -f conftest.er1
  13106. cat conftest.err >&5
  13107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13108. (exit $ac_status); } && {
  13109. test -z "$ac_cxx_werror_flag" ||
  13110. test ! -s conftest.err
  13111. } && test -s conftest.$ac_objext; then
  13112. gt_cv_c_wchar_t=yes
  13113. else
  13114. echo "$as_me: failed program was:" >&5
  13115. sed 's/^/| /' conftest.$ac_ext >&5
  13116. gt_cv_c_wchar_t=no
  13117. fi
  13118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13119. fi
  13120. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  13121. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  13122. if test $gt_cv_c_wchar_t = yes; then
  13123. cat >>confdefs.h <<\_ACEOF
  13124. #define HAVE_WCHAR_T 1
  13125. _ACEOF
  13126. fi
  13127. { echo "$as_me:$LINENO: checking for wint_t" >&5
  13128. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  13129. if test "${gt_cv_c_wint_t+set}" = set; then
  13130. echo $ECHO_N "(cached) $ECHO_C" >&6
  13131. else
  13132. cat >conftest.$ac_ext <<_ACEOF
  13133. /* confdefs.h. */
  13134. _ACEOF
  13135. cat confdefs.h >>conftest.$ac_ext
  13136. cat >>conftest.$ac_ext <<_ACEOF
  13137. /* end confdefs.h. */
  13138. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  13139. <wchar.h>.
  13140. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  13141. before <wchar.h>. */
  13142. #include <stddef.h>
  13143. #include <stdio.h>
  13144. #include <time.h>
  13145. #include <wchar.h>
  13146. wint_t foo = (wchar_t)'\0';
  13147. int
  13148. main ()
  13149. {
  13150. ;
  13151. return 0;
  13152. }
  13153. _ACEOF
  13154. rm -f conftest.$ac_objext
  13155. if { (ac_try="$ac_compile"
  13156. case "(($ac_try" in
  13157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13158. *) ac_try_echo=$ac_try;;
  13159. esac
  13160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13161. (eval "$ac_compile") 2>conftest.er1
  13162. ac_status=$?
  13163. grep -v '^ *+' conftest.er1 >conftest.err
  13164. rm -f conftest.er1
  13165. cat conftest.err >&5
  13166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13167. (exit $ac_status); } && {
  13168. test -z "$ac_cxx_werror_flag" ||
  13169. test ! -s conftest.err
  13170. } && test -s conftest.$ac_objext; then
  13171. gt_cv_c_wint_t=yes
  13172. else
  13173. echo "$as_me: failed program was:" >&5
  13174. sed 's/^/| /' conftest.$ac_ext >&5
  13175. gt_cv_c_wint_t=no
  13176. fi
  13177. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13178. fi
  13179. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  13180. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  13181. if test $gt_cv_c_wint_t = yes; then
  13182. cat >>confdefs.h <<\_ACEOF
  13183. #define HAVE_WINT_T 1
  13184. _ACEOF
  13185. fi
  13186. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  13187. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  13188. if test "${gt_cv_c_intmax_t+set}" = set; then
  13189. echo $ECHO_N "(cached) $ECHO_C" >&6
  13190. else
  13191. cat >conftest.$ac_ext <<_ACEOF
  13192. /* confdefs.h. */
  13193. _ACEOF
  13194. cat confdefs.h >>conftest.$ac_ext
  13195. cat >>conftest.$ac_ext <<_ACEOF
  13196. /* end confdefs.h. */
  13197. #include <stddef.h>
  13198. #include <stdlib.h>
  13199. #if HAVE_STDINT_H_WITH_UINTMAX
  13200. #include <stdint.h>
  13201. #endif
  13202. #if HAVE_INTTYPES_H_WITH_UINTMAX
  13203. #include <inttypes.h>
  13204. #endif
  13205. int
  13206. main ()
  13207. {
  13208. intmax_t x = -1;
  13209. return !x;
  13210. ;
  13211. return 0;
  13212. }
  13213. _ACEOF
  13214. rm -f conftest.$ac_objext
  13215. if { (ac_try="$ac_compile"
  13216. case "(($ac_try" in
  13217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13218. *) ac_try_echo=$ac_try;;
  13219. esac
  13220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13221. (eval "$ac_compile") 2>conftest.er1
  13222. ac_status=$?
  13223. grep -v '^ *+' conftest.er1 >conftest.err
  13224. rm -f conftest.er1
  13225. cat conftest.err >&5
  13226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13227. (exit $ac_status); } && {
  13228. test -z "$ac_cxx_werror_flag" ||
  13229. test ! -s conftest.err
  13230. } && test -s conftest.$ac_objext; then
  13231. gt_cv_c_intmax_t=yes
  13232. else
  13233. echo "$as_me: failed program was:" >&5
  13234. sed 's/^/| /' conftest.$ac_ext >&5
  13235. gt_cv_c_intmax_t=no
  13236. fi
  13237. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13238. fi
  13239. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  13240. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  13241. if test $gt_cv_c_intmax_t = yes; then
  13242. cat >>confdefs.h <<\_ACEOF
  13243. #define HAVE_INTMAX_T 1
  13244. _ACEOF
  13245. fi
  13246. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  13247. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  13248. if test "${gt_cv_func_printf_posix+set}" = set; then
  13249. echo $ECHO_N "(cached) $ECHO_C" >&6
  13250. else
  13251. if test "$cross_compiling" = yes; then
  13252. cat >conftest.$ac_ext <<_ACEOF
  13253. /* confdefs.h. */
  13254. _ACEOF
  13255. cat confdefs.h >>conftest.$ac_ext
  13256. cat >>conftest.$ac_ext <<_ACEOF
  13257. /* end confdefs.h. */
  13258. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  13259. notposix
  13260. #endif
  13261. _ACEOF
  13262. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13263. $EGREP "notposix" >/dev/null 2>&1; then
  13264. gt_cv_func_printf_posix="guessing no"
  13265. else
  13266. gt_cv_func_printf_posix="guessing yes"
  13267. fi
  13268. rm -f conftest*
  13269. else
  13270. cat >conftest.$ac_ext <<_ACEOF
  13271. /* confdefs.h. */
  13272. _ACEOF
  13273. cat confdefs.h >>conftest.$ac_ext
  13274. cat >>conftest.$ac_ext <<_ACEOF
  13275. /* end confdefs.h. */
  13276. #include <stdio.h>
  13277. #include <string.h>
  13278. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  13279. dollar expansion (possibly an autoconf bug). */
  13280. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  13281. static char buf[100];
  13282. int main ()
  13283. {
  13284. sprintf (buf, format, 33, 55);
  13285. return (strcmp (buf, "55 33") != 0);
  13286. }
  13287. _ACEOF
  13288. rm -f conftest$ac_exeext
  13289. if { (ac_try="$ac_link"
  13290. case "(($ac_try" in
  13291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13292. *) ac_try_echo=$ac_try;;
  13293. esac
  13294. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13295. (eval "$ac_link") 2>&5
  13296. ac_status=$?
  13297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13298. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13299. { (case "(($ac_try" in
  13300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13301. *) ac_try_echo=$ac_try;;
  13302. esac
  13303. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13304. (eval "$ac_try") 2>&5
  13305. ac_status=$?
  13306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13307. (exit $ac_status); }; }; then
  13308. gt_cv_func_printf_posix=yes
  13309. else
  13310. echo "$as_me: program exited with status $ac_status" >&5
  13311. echo "$as_me: failed program was:" >&5
  13312. sed 's/^/| /' conftest.$ac_ext >&5
  13313. ( exit $ac_status )
  13314. gt_cv_func_printf_posix=no
  13315. fi
  13316. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13317. fi
  13318. fi
  13319. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  13320. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  13321. case $gt_cv_func_printf_posix in
  13322. *yes)
  13323. cat >>confdefs.h <<\_ACEOF
  13324. #define HAVE_POSIX_PRINTF 1
  13325. _ACEOF
  13326. ;;
  13327. esac
  13328. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  13329. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  13330. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  13331. echo $ECHO_N "(cached) $ECHO_C" >&6
  13332. else
  13333. cat >conftest.$ac_ext <<_ACEOF
  13334. /* confdefs.h. */
  13335. _ACEOF
  13336. cat confdefs.h >>conftest.$ac_ext
  13337. cat >>conftest.$ac_ext <<_ACEOF
  13338. /* end confdefs.h. */
  13339. #include <features.h>
  13340. #ifdef __GNU_LIBRARY__
  13341. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  13342. Lucky GNU user
  13343. #endif
  13344. #endif
  13345. _ACEOF
  13346. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13347. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  13348. ac_cv_gnu_library_2_1=yes
  13349. else
  13350. ac_cv_gnu_library_2_1=no
  13351. fi
  13352. rm -f conftest*
  13353. fi
  13354. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  13355. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  13356. GLIBC21="$ac_cv_gnu_library_2_1"
  13357. for ac_header in stdint.h
  13358. do
  13359. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13360. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13361. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13362. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13363. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13364. echo $ECHO_N "(cached) $ECHO_C" >&6
  13365. fi
  13366. ac_res=`eval echo '${'$as_ac_Header'}'`
  13367. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13368. echo "${ECHO_T}$ac_res" >&6; }
  13369. else
  13370. # Is the header compilable?
  13371. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13372. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13373. cat >conftest.$ac_ext <<_ACEOF
  13374. /* confdefs.h. */
  13375. _ACEOF
  13376. cat confdefs.h >>conftest.$ac_ext
  13377. cat >>conftest.$ac_ext <<_ACEOF
  13378. /* end confdefs.h. */
  13379. $ac_includes_default
  13380. #include <$ac_header>
  13381. _ACEOF
  13382. rm -f conftest.$ac_objext
  13383. if { (ac_try="$ac_compile"
  13384. case "(($ac_try" in
  13385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13386. *) ac_try_echo=$ac_try;;
  13387. esac
  13388. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13389. (eval "$ac_compile") 2>conftest.er1
  13390. ac_status=$?
  13391. grep -v '^ *+' conftest.er1 >conftest.err
  13392. rm -f conftest.er1
  13393. cat conftest.err >&5
  13394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13395. (exit $ac_status); } && {
  13396. test -z "$ac_cxx_werror_flag" ||
  13397. test ! -s conftest.err
  13398. } && test -s conftest.$ac_objext; then
  13399. ac_header_compiler=yes
  13400. else
  13401. echo "$as_me: failed program was:" >&5
  13402. sed 's/^/| /' conftest.$ac_ext >&5
  13403. ac_header_compiler=no
  13404. fi
  13405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13406. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13407. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13408. # Is the header present?
  13409. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13410. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13411. cat >conftest.$ac_ext <<_ACEOF
  13412. /* confdefs.h. */
  13413. _ACEOF
  13414. cat confdefs.h >>conftest.$ac_ext
  13415. cat >>conftest.$ac_ext <<_ACEOF
  13416. /* end confdefs.h. */
  13417. #include <$ac_header>
  13418. _ACEOF
  13419. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13420. case "(($ac_try" in
  13421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13422. *) ac_try_echo=$ac_try;;
  13423. esac
  13424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13425. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13426. ac_status=$?
  13427. grep -v '^ *+' conftest.er1 >conftest.err
  13428. rm -f conftest.er1
  13429. cat conftest.err >&5
  13430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13431. (exit $ac_status); } >/dev/null && {
  13432. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13433. test ! -s conftest.err
  13434. }; then
  13435. ac_header_preproc=yes
  13436. else
  13437. echo "$as_me: failed program was:" >&5
  13438. sed 's/^/| /' conftest.$ac_ext >&5
  13439. ac_header_preproc=no
  13440. fi
  13441. rm -f conftest.err conftest.$ac_ext
  13442. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13443. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13444. # So? What about this header?
  13445. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13446. yes:no: )
  13447. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13448. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13449. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13450. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13451. ac_header_preproc=yes
  13452. ;;
  13453. no:yes:* )
  13454. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13455. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13456. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13457. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13458. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13459. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13460. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13461. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13462. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13463. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13464. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13465. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13466. ( cat <<\_ASBOX
  13467. ## ----------------------------------------------- ##
  13468. ## Report this to t-tujikawa@users.sourceforge.net ##
  13469. ## ----------------------------------------------- ##
  13470. _ASBOX
  13471. ) | sed "s/^/$as_me: WARNING: /" >&2
  13472. ;;
  13473. esac
  13474. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13475. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13476. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13477. echo $ECHO_N "(cached) $ECHO_C" >&6
  13478. else
  13479. eval "$as_ac_Header=\$ac_header_preproc"
  13480. fi
  13481. ac_res=`eval echo '${'$as_ac_Header'}'`
  13482. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13483. echo "${ECHO_T}$ac_res" >&6; }
  13484. fi
  13485. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13486. cat >>confdefs.h <<_ACEOF
  13487. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13488. _ACEOF
  13489. fi
  13490. done
  13491. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13492. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13493. if test "${gl_cv_size_max+set}" = set; then
  13494. echo $ECHO_N "(cached) $ECHO_C" >&6
  13495. else
  13496. gl_cv_size_max=
  13497. cat >conftest.$ac_ext <<_ACEOF
  13498. /* confdefs.h. */
  13499. _ACEOF
  13500. cat confdefs.h >>conftest.$ac_ext
  13501. cat >>conftest.$ac_ext <<_ACEOF
  13502. /* end confdefs.h. */
  13503. #include <limits.h>
  13504. #if HAVE_STDINT_H
  13505. #include <stdint.h>
  13506. #endif
  13507. #ifdef SIZE_MAX
  13508. Found it
  13509. #endif
  13510. _ACEOF
  13511. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13512. $EGREP "Found it" >/dev/null 2>&1; then
  13513. gl_cv_size_max=yes
  13514. fi
  13515. rm -f conftest*
  13516. if test -z "$gl_cv_size_max"; then
  13517. if test "$cross_compiling" = yes; then
  13518. # Depending upon the size, compute the lo and hi bounds.
  13519. cat >conftest.$ac_ext <<_ACEOF
  13520. /* confdefs.h. */
  13521. _ACEOF
  13522. cat confdefs.h >>conftest.$ac_ext
  13523. cat >>conftest.$ac_ext <<_ACEOF
  13524. /* end confdefs.h. */
  13525. #include <stddef.h>
  13526. #include <limits.h>
  13527. int
  13528. main ()
  13529. {
  13530. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13531. test_array [0] = 0
  13532. ;
  13533. return 0;
  13534. }
  13535. _ACEOF
  13536. rm -f conftest.$ac_objext
  13537. if { (ac_try="$ac_compile"
  13538. case "(($ac_try" in
  13539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13540. *) ac_try_echo=$ac_try;;
  13541. esac
  13542. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13543. (eval "$ac_compile") 2>conftest.er1
  13544. ac_status=$?
  13545. grep -v '^ *+' conftest.er1 >conftest.err
  13546. rm -f conftest.er1
  13547. cat conftest.err >&5
  13548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13549. (exit $ac_status); } && {
  13550. test -z "$ac_cxx_werror_flag" ||
  13551. test ! -s conftest.err
  13552. } && test -s conftest.$ac_objext; then
  13553. ac_lo=0 ac_mid=0
  13554. while :; do
  13555. cat >conftest.$ac_ext <<_ACEOF
  13556. /* confdefs.h. */
  13557. _ACEOF
  13558. cat confdefs.h >>conftest.$ac_ext
  13559. cat >>conftest.$ac_ext <<_ACEOF
  13560. /* end confdefs.h. */
  13561. #include <stddef.h>
  13562. #include <limits.h>
  13563. int
  13564. main ()
  13565. {
  13566. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13567. test_array [0] = 0
  13568. ;
  13569. return 0;
  13570. }
  13571. _ACEOF
  13572. rm -f conftest.$ac_objext
  13573. if { (ac_try="$ac_compile"
  13574. case "(($ac_try" in
  13575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13576. *) ac_try_echo=$ac_try;;
  13577. esac
  13578. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13579. (eval "$ac_compile") 2>conftest.er1
  13580. ac_status=$?
  13581. grep -v '^ *+' conftest.er1 >conftest.err
  13582. rm -f conftest.er1
  13583. cat conftest.err >&5
  13584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13585. (exit $ac_status); } && {
  13586. test -z "$ac_cxx_werror_flag" ||
  13587. test ! -s conftest.err
  13588. } && test -s conftest.$ac_objext; then
  13589. ac_hi=$ac_mid; break
  13590. else
  13591. echo "$as_me: failed program was:" >&5
  13592. sed 's/^/| /' conftest.$ac_ext >&5
  13593. ac_lo=`expr $ac_mid + 1`
  13594. if test $ac_lo -le $ac_mid; then
  13595. ac_lo= ac_hi=
  13596. break
  13597. fi
  13598. ac_mid=`expr 2 '*' $ac_mid + 1`
  13599. fi
  13600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13601. done
  13602. else
  13603. echo "$as_me: failed program was:" >&5
  13604. sed 's/^/| /' conftest.$ac_ext >&5
  13605. cat >conftest.$ac_ext <<_ACEOF
  13606. /* confdefs.h. */
  13607. _ACEOF
  13608. cat confdefs.h >>conftest.$ac_ext
  13609. cat >>conftest.$ac_ext <<_ACEOF
  13610. /* end confdefs.h. */
  13611. #include <stddef.h>
  13612. #include <limits.h>
  13613. int
  13614. main ()
  13615. {
  13616. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13617. test_array [0] = 0
  13618. ;
  13619. return 0;
  13620. }
  13621. _ACEOF
  13622. rm -f conftest.$ac_objext
  13623. if { (ac_try="$ac_compile"
  13624. case "(($ac_try" in
  13625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13626. *) ac_try_echo=$ac_try;;
  13627. esac
  13628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13629. (eval "$ac_compile") 2>conftest.er1
  13630. ac_status=$?
  13631. grep -v '^ *+' conftest.er1 >conftest.err
  13632. rm -f conftest.er1
  13633. cat conftest.err >&5
  13634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13635. (exit $ac_status); } && {
  13636. test -z "$ac_cxx_werror_flag" ||
  13637. test ! -s conftest.err
  13638. } && test -s conftest.$ac_objext; then
  13639. ac_hi=-1 ac_mid=-1
  13640. while :; do
  13641. cat >conftest.$ac_ext <<_ACEOF
  13642. /* confdefs.h. */
  13643. _ACEOF
  13644. cat confdefs.h >>conftest.$ac_ext
  13645. cat >>conftest.$ac_ext <<_ACEOF
  13646. /* end confdefs.h. */
  13647. #include <stddef.h>
  13648. #include <limits.h>
  13649. int
  13650. main ()
  13651. {
  13652. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13653. test_array [0] = 0
  13654. ;
  13655. return 0;
  13656. }
  13657. _ACEOF
  13658. rm -f conftest.$ac_objext
  13659. if { (ac_try="$ac_compile"
  13660. case "(($ac_try" in
  13661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13662. *) ac_try_echo=$ac_try;;
  13663. esac
  13664. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13665. (eval "$ac_compile") 2>conftest.er1
  13666. ac_status=$?
  13667. grep -v '^ *+' conftest.er1 >conftest.err
  13668. rm -f conftest.er1
  13669. cat conftest.err >&5
  13670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13671. (exit $ac_status); } && {
  13672. test -z "$ac_cxx_werror_flag" ||
  13673. test ! -s conftest.err
  13674. } && test -s conftest.$ac_objext; then
  13675. ac_lo=$ac_mid; break
  13676. else
  13677. echo "$as_me: failed program was:" >&5
  13678. sed 's/^/| /' conftest.$ac_ext >&5
  13679. ac_hi=`expr '(' $ac_mid ')' - 1`
  13680. if test $ac_mid -le $ac_hi; then
  13681. ac_lo= ac_hi=
  13682. break
  13683. fi
  13684. ac_mid=`expr 2 '*' $ac_mid`
  13685. fi
  13686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13687. done
  13688. else
  13689. echo "$as_me: failed program was:" >&5
  13690. sed 's/^/| /' conftest.$ac_ext >&5
  13691. ac_lo= ac_hi=
  13692. fi
  13693. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13694. fi
  13695. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13696. # Binary search between lo and hi bounds.
  13697. while test "x$ac_lo" != "x$ac_hi"; do
  13698. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13699. cat >conftest.$ac_ext <<_ACEOF
  13700. /* confdefs.h. */
  13701. _ACEOF
  13702. cat confdefs.h >>conftest.$ac_ext
  13703. cat >>conftest.$ac_ext <<_ACEOF
  13704. /* end confdefs.h. */
  13705. #include <stddef.h>
  13706. #include <limits.h>
  13707. int
  13708. main ()
  13709. {
  13710. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13711. test_array [0] = 0
  13712. ;
  13713. return 0;
  13714. }
  13715. _ACEOF
  13716. rm -f conftest.$ac_objext
  13717. if { (ac_try="$ac_compile"
  13718. case "(($ac_try" in
  13719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13720. *) ac_try_echo=$ac_try;;
  13721. esac
  13722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13723. (eval "$ac_compile") 2>conftest.er1
  13724. ac_status=$?
  13725. grep -v '^ *+' conftest.er1 >conftest.err
  13726. rm -f conftest.er1
  13727. cat conftest.err >&5
  13728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13729. (exit $ac_status); } && {
  13730. test -z "$ac_cxx_werror_flag" ||
  13731. test ! -s conftest.err
  13732. } && test -s conftest.$ac_objext; then
  13733. ac_hi=$ac_mid
  13734. else
  13735. echo "$as_me: failed program was:" >&5
  13736. sed 's/^/| /' conftest.$ac_ext >&5
  13737. ac_lo=`expr '(' $ac_mid ')' + 1`
  13738. fi
  13739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13740. done
  13741. case $ac_lo in
  13742. ?*) size_t_bits_minus_1=$ac_lo;;
  13743. '') size_t_bits_minus_1= ;;
  13744. esac
  13745. else
  13746. cat >conftest.$ac_ext <<_ACEOF
  13747. /* confdefs.h. */
  13748. _ACEOF
  13749. cat confdefs.h >>conftest.$ac_ext
  13750. cat >>conftest.$ac_ext <<_ACEOF
  13751. /* end confdefs.h. */
  13752. #include <stddef.h>
  13753. #include <limits.h>
  13754. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13755. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13756. #include <stdio.h>
  13757. #include <stdlib.h>
  13758. int
  13759. main ()
  13760. {
  13761. FILE *f = fopen ("conftest.val", "w");
  13762. if (! f)
  13763. return 1;
  13764. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  13765. {
  13766. long int i = longval ();
  13767. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13768. return 1;
  13769. fprintf (f, "%ld\n", i);
  13770. }
  13771. else
  13772. {
  13773. unsigned long int i = ulongval ();
  13774. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13775. return 1;
  13776. fprintf (f, "%lu\n", i);
  13777. }
  13778. return ferror (f) || fclose (f) != 0;
  13779. ;
  13780. return 0;
  13781. }
  13782. _ACEOF
  13783. rm -f conftest$ac_exeext
  13784. if { (ac_try="$ac_link"
  13785. case "(($ac_try" in
  13786. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13787. *) ac_try_echo=$ac_try;;
  13788. esac
  13789. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13790. (eval "$ac_link") 2>&5
  13791. ac_status=$?
  13792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13793. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13794. { (case "(($ac_try" in
  13795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13796. *) ac_try_echo=$ac_try;;
  13797. esac
  13798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13799. (eval "$ac_try") 2>&5
  13800. ac_status=$?
  13801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13802. (exit $ac_status); }; }; then
  13803. size_t_bits_minus_1=`cat conftest.val`
  13804. else
  13805. echo "$as_me: program exited with status $ac_status" >&5
  13806. echo "$as_me: failed program was:" >&5
  13807. sed 's/^/| /' conftest.$ac_ext >&5
  13808. ( exit $ac_status )
  13809. size_t_bits_minus_1=
  13810. fi
  13811. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13812. fi
  13813. rm -f conftest.val
  13814. if test "$cross_compiling" = yes; then
  13815. # Depending upon the size, compute the lo and hi bounds.
  13816. cat >conftest.$ac_ext <<_ACEOF
  13817. /* confdefs.h. */
  13818. _ACEOF
  13819. cat confdefs.h >>conftest.$ac_ext
  13820. cat >>conftest.$ac_ext <<_ACEOF
  13821. /* end confdefs.h. */
  13822. #include <stddef.h>
  13823. int
  13824. main ()
  13825. {
  13826. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  13827. test_array [0] = 0
  13828. ;
  13829. return 0;
  13830. }
  13831. _ACEOF
  13832. rm -f conftest.$ac_objext
  13833. if { (ac_try="$ac_compile"
  13834. case "(($ac_try" in
  13835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13836. *) ac_try_echo=$ac_try;;
  13837. esac
  13838. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13839. (eval "$ac_compile") 2>conftest.er1
  13840. ac_status=$?
  13841. grep -v '^ *+' conftest.er1 >conftest.err
  13842. rm -f conftest.er1
  13843. cat conftest.err >&5
  13844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13845. (exit $ac_status); } && {
  13846. test -z "$ac_cxx_werror_flag" ||
  13847. test ! -s conftest.err
  13848. } && test -s conftest.$ac_objext; then
  13849. ac_lo=0 ac_mid=0
  13850. while :; do
  13851. cat >conftest.$ac_ext <<_ACEOF
  13852. /* confdefs.h. */
  13853. _ACEOF
  13854. cat confdefs.h >>conftest.$ac_ext
  13855. cat >>conftest.$ac_ext <<_ACEOF
  13856. /* end confdefs.h. */
  13857. #include <stddef.h>
  13858. int
  13859. main ()
  13860. {
  13861. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13862. test_array [0] = 0
  13863. ;
  13864. return 0;
  13865. }
  13866. _ACEOF
  13867. rm -f conftest.$ac_objext
  13868. if { (ac_try="$ac_compile"
  13869. case "(($ac_try" in
  13870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13871. *) ac_try_echo=$ac_try;;
  13872. esac
  13873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13874. (eval "$ac_compile") 2>conftest.er1
  13875. ac_status=$?
  13876. grep -v '^ *+' conftest.er1 >conftest.err
  13877. rm -f conftest.er1
  13878. cat conftest.err >&5
  13879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13880. (exit $ac_status); } && {
  13881. test -z "$ac_cxx_werror_flag" ||
  13882. test ! -s conftest.err
  13883. } && test -s conftest.$ac_objext; then
  13884. ac_hi=$ac_mid; break
  13885. else
  13886. echo "$as_me: failed program was:" >&5
  13887. sed 's/^/| /' conftest.$ac_ext >&5
  13888. ac_lo=`expr $ac_mid + 1`
  13889. if test $ac_lo -le $ac_mid; then
  13890. ac_lo= ac_hi=
  13891. break
  13892. fi
  13893. ac_mid=`expr 2 '*' $ac_mid + 1`
  13894. fi
  13895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13896. done
  13897. else
  13898. echo "$as_me: failed program was:" >&5
  13899. sed 's/^/| /' conftest.$ac_ext >&5
  13900. cat >conftest.$ac_ext <<_ACEOF
  13901. /* confdefs.h. */
  13902. _ACEOF
  13903. cat confdefs.h >>conftest.$ac_ext
  13904. cat >>conftest.$ac_ext <<_ACEOF
  13905. /* end confdefs.h. */
  13906. #include <stddef.h>
  13907. int
  13908. main ()
  13909. {
  13910. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  13911. test_array [0] = 0
  13912. ;
  13913. return 0;
  13914. }
  13915. _ACEOF
  13916. rm -f conftest.$ac_objext
  13917. if { (ac_try="$ac_compile"
  13918. case "(($ac_try" in
  13919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13920. *) ac_try_echo=$ac_try;;
  13921. esac
  13922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13923. (eval "$ac_compile") 2>conftest.er1
  13924. ac_status=$?
  13925. grep -v '^ *+' conftest.er1 >conftest.err
  13926. rm -f conftest.er1
  13927. cat conftest.err >&5
  13928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13929. (exit $ac_status); } && {
  13930. test -z "$ac_cxx_werror_flag" ||
  13931. test ! -s conftest.err
  13932. } && test -s conftest.$ac_objext; then
  13933. ac_hi=-1 ac_mid=-1
  13934. while :; do
  13935. cat >conftest.$ac_ext <<_ACEOF
  13936. /* confdefs.h. */
  13937. _ACEOF
  13938. cat confdefs.h >>conftest.$ac_ext
  13939. cat >>conftest.$ac_ext <<_ACEOF
  13940. /* end confdefs.h. */
  13941. #include <stddef.h>
  13942. int
  13943. main ()
  13944. {
  13945. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  13946. test_array [0] = 0
  13947. ;
  13948. return 0;
  13949. }
  13950. _ACEOF
  13951. rm -f conftest.$ac_objext
  13952. if { (ac_try="$ac_compile"
  13953. case "(($ac_try" in
  13954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13955. *) ac_try_echo=$ac_try;;
  13956. esac
  13957. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13958. (eval "$ac_compile") 2>conftest.er1
  13959. ac_status=$?
  13960. grep -v '^ *+' conftest.er1 >conftest.err
  13961. rm -f conftest.er1
  13962. cat conftest.err >&5
  13963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13964. (exit $ac_status); } && {
  13965. test -z "$ac_cxx_werror_flag" ||
  13966. test ! -s conftest.err
  13967. } && test -s conftest.$ac_objext; then
  13968. ac_lo=$ac_mid; break
  13969. else
  13970. echo "$as_me: failed program was:" >&5
  13971. sed 's/^/| /' conftest.$ac_ext >&5
  13972. ac_hi=`expr '(' $ac_mid ')' - 1`
  13973. if test $ac_mid -le $ac_hi; then
  13974. ac_lo= ac_hi=
  13975. break
  13976. fi
  13977. ac_mid=`expr 2 '*' $ac_mid`
  13978. fi
  13979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13980. done
  13981. else
  13982. echo "$as_me: failed program was:" >&5
  13983. sed 's/^/| /' conftest.$ac_ext >&5
  13984. ac_lo= ac_hi=
  13985. fi
  13986. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13987. fi
  13988. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13989. # Binary search between lo and hi bounds.
  13990. while test "x$ac_lo" != "x$ac_hi"; do
  13991. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13992. cat >conftest.$ac_ext <<_ACEOF
  13993. /* confdefs.h. */
  13994. _ACEOF
  13995. cat confdefs.h >>conftest.$ac_ext
  13996. cat >>conftest.$ac_ext <<_ACEOF
  13997. /* end confdefs.h. */
  13998. #include <stddef.h>
  13999. int
  14000. main ()
  14001. {
  14002. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14003. test_array [0] = 0
  14004. ;
  14005. return 0;
  14006. }
  14007. _ACEOF
  14008. rm -f conftest.$ac_objext
  14009. if { (ac_try="$ac_compile"
  14010. case "(($ac_try" in
  14011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14012. *) ac_try_echo=$ac_try;;
  14013. esac
  14014. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14015. (eval "$ac_compile") 2>conftest.er1
  14016. ac_status=$?
  14017. grep -v '^ *+' conftest.er1 >conftest.err
  14018. rm -f conftest.er1
  14019. cat conftest.err >&5
  14020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14021. (exit $ac_status); } && {
  14022. test -z "$ac_cxx_werror_flag" ||
  14023. test ! -s conftest.err
  14024. } && test -s conftest.$ac_objext; then
  14025. ac_hi=$ac_mid
  14026. else
  14027. echo "$as_me: failed program was:" >&5
  14028. sed 's/^/| /' conftest.$ac_ext >&5
  14029. ac_lo=`expr '(' $ac_mid ')' + 1`
  14030. fi
  14031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14032. done
  14033. case $ac_lo in
  14034. ?*) fits_in_uint=$ac_lo;;
  14035. '') fits_in_uint= ;;
  14036. esac
  14037. else
  14038. cat >conftest.$ac_ext <<_ACEOF
  14039. /* confdefs.h. */
  14040. _ACEOF
  14041. cat confdefs.h >>conftest.$ac_ext
  14042. cat >>conftest.$ac_ext <<_ACEOF
  14043. /* end confdefs.h. */
  14044. #include <stddef.h>
  14045. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14046. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  14047. #include <stdio.h>
  14048. #include <stdlib.h>
  14049. int
  14050. main ()
  14051. {
  14052. FILE *f = fopen ("conftest.val", "w");
  14053. if (! f)
  14054. return 1;
  14055. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  14056. {
  14057. long int i = longval ();
  14058. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14059. return 1;
  14060. fprintf (f, "%ld\n", i);
  14061. }
  14062. else
  14063. {
  14064. unsigned long int i = ulongval ();
  14065. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  14066. return 1;
  14067. fprintf (f, "%lu\n", i);
  14068. }
  14069. return ferror (f) || fclose (f) != 0;
  14070. ;
  14071. return 0;
  14072. }
  14073. _ACEOF
  14074. rm -f conftest$ac_exeext
  14075. if { (ac_try="$ac_link"
  14076. case "(($ac_try" in
  14077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14078. *) ac_try_echo=$ac_try;;
  14079. esac
  14080. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14081. (eval "$ac_link") 2>&5
  14082. ac_status=$?
  14083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14084. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14085. { (case "(($ac_try" in
  14086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14087. *) ac_try_echo=$ac_try;;
  14088. esac
  14089. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14090. (eval "$ac_try") 2>&5
  14091. ac_status=$?
  14092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14093. (exit $ac_status); }; }; then
  14094. fits_in_uint=`cat conftest.val`
  14095. else
  14096. echo "$as_me: program exited with status $ac_status" >&5
  14097. echo "$as_me: failed program was:" >&5
  14098. sed 's/^/| /' conftest.$ac_ext >&5
  14099. ( exit $ac_status )
  14100. fits_in_uint=
  14101. fi
  14102. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14103. fi
  14104. rm -f conftest.val
  14105. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  14106. if test $fits_in_uint = 1; then
  14107. cat >conftest.$ac_ext <<_ACEOF
  14108. /* confdefs.h. */
  14109. _ACEOF
  14110. cat confdefs.h >>conftest.$ac_ext
  14111. cat >>conftest.$ac_ext <<_ACEOF
  14112. /* end confdefs.h. */
  14113. #include <stddef.h>
  14114. extern size_t foo;
  14115. extern unsigned long foo;
  14116. int
  14117. main ()
  14118. {
  14119. ;
  14120. return 0;
  14121. }
  14122. _ACEOF
  14123. rm -f conftest.$ac_objext
  14124. if { (ac_try="$ac_compile"
  14125. case "(($ac_try" in
  14126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14127. *) ac_try_echo=$ac_try;;
  14128. esac
  14129. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14130. (eval "$ac_compile") 2>conftest.er1
  14131. ac_status=$?
  14132. grep -v '^ *+' conftest.er1 >conftest.err
  14133. rm -f conftest.er1
  14134. cat conftest.err >&5
  14135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14136. (exit $ac_status); } && {
  14137. test -z "$ac_cxx_werror_flag" ||
  14138. test ! -s conftest.err
  14139. } && test -s conftest.$ac_objext; then
  14140. fits_in_uint=0
  14141. else
  14142. echo "$as_me: failed program was:" >&5
  14143. sed 's/^/| /' conftest.$ac_ext >&5
  14144. fi
  14145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14146. fi
  14147. if test $fits_in_uint = 1; then
  14148. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14149. else
  14150. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  14151. fi
  14152. else
  14153. gl_cv_size_max='((size_t)~(size_t)0)'
  14154. fi
  14155. fi
  14156. fi
  14157. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  14158. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  14159. if test "$gl_cv_size_max" != yes; then
  14160. cat >>confdefs.h <<_ACEOF
  14161. #define SIZE_MAX $gl_cv_size_max
  14162. _ACEOF
  14163. fi
  14164. for ac_header in stdint.h
  14165. do
  14166. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14167. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14168. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14169. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14170. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14171. echo $ECHO_N "(cached) $ECHO_C" >&6
  14172. fi
  14173. ac_res=`eval echo '${'$as_ac_Header'}'`
  14174. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14175. echo "${ECHO_T}$ac_res" >&6; }
  14176. else
  14177. # Is the header compilable?
  14178. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14179. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14180. cat >conftest.$ac_ext <<_ACEOF
  14181. /* confdefs.h. */
  14182. _ACEOF
  14183. cat confdefs.h >>conftest.$ac_ext
  14184. cat >>conftest.$ac_ext <<_ACEOF
  14185. /* end confdefs.h. */
  14186. $ac_includes_default
  14187. #include <$ac_header>
  14188. _ACEOF
  14189. rm -f conftest.$ac_objext
  14190. if { (ac_try="$ac_compile"
  14191. case "(($ac_try" in
  14192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14193. *) ac_try_echo=$ac_try;;
  14194. esac
  14195. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14196. (eval "$ac_compile") 2>conftest.er1
  14197. ac_status=$?
  14198. grep -v '^ *+' conftest.er1 >conftest.err
  14199. rm -f conftest.er1
  14200. cat conftest.err >&5
  14201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14202. (exit $ac_status); } && {
  14203. test -z "$ac_cxx_werror_flag" ||
  14204. test ! -s conftest.err
  14205. } && test -s conftest.$ac_objext; then
  14206. ac_header_compiler=yes
  14207. else
  14208. echo "$as_me: failed program was:" >&5
  14209. sed 's/^/| /' conftest.$ac_ext >&5
  14210. ac_header_compiler=no
  14211. fi
  14212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14213. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14214. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14215. # Is the header present?
  14216. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14217. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  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 <$ac_header>
  14225. _ACEOF
  14226. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14227. case "(($ac_try" in
  14228. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14229. *) ac_try_echo=$ac_try;;
  14230. esac
  14231. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14232. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14233. ac_status=$?
  14234. grep -v '^ *+' conftest.er1 >conftest.err
  14235. rm -f conftest.er1
  14236. cat conftest.err >&5
  14237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14238. (exit $ac_status); } >/dev/null && {
  14239. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14240. test ! -s conftest.err
  14241. }; then
  14242. ac_header_preproc=yes
  14243. else
  14244. echo "$as_me: failed program was:" >&5
  14245. sed 's/^/| /' conftest.$ac_ext >&5
  14246. ac_header_preproc=no
  14247. fi
  14248. rm -f conftest.err conftest.$ac_ext
  14249. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14250. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14251. # So? What about this header?
  14252. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14253. yes:no: )
  14254. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14255. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14256. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14257. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14258. ac_header_preproc=yes
  14259. ;;
  14260. no:yes:* )
  14261. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14262. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14263. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14264. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14265. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14266. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14267. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14268. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14269. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14270. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14271. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14272. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14273. ( cat <<\_ASBOX
  14274. ## ----------------------------------------------- ##
  14275. ## Report this to t-tujikawa@users.sourceforge.net ##
  14276. ## ----------------------------------------------- ##
  14277. _ASBOX
  14278. ) | sed "s/^/$as_me: WARNING: /" >&2
  14279. ;;
  14280. esac
  14281. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14282. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14283. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14284. echo $ECHO_N "(cached) $ECHO_C" >&6
  14285. else
  14286. eval "$as_ac_Header=\$ac_header_preproc"
  14287. fi
  14288. ac_res=`eval echo '${'$as_ac_Header'}'`
  14289. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14290. echo "${ECHO_T}$ac_res" >&6; }
  14291. fi
  14292. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14293. cat >>confdefs.h <<_ACEOF
  14294. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14295. _ACEOF
  14296. fi
  14297. done
  14298. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14299. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14300. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14301. echo $ECHO_N "(cached) $ECHO_C" >&6
  14302. else
  14303. gt_save_LIBS="$LIBS"
  14304. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14305. cat >conftest.$ac_ext <<_ACEOF
  14306. /* confdefs.h. */
  14307. _ACEOF
  14308. cat confdefs.h >>conftest.$ac_ext
  14309. cat >>conftest.$ac_ext <<_ACEOF
  14310. /* end confdefs.h. */
  14311. #include <CoreFoundation/CFPreferences.h>
  14312. int
  14313. main ()
  14314. {
  14315. CFPreferencesCopyAppValue(NULL, NULL)
  14316. ;
  14317. return 0;
  14318. }
  14319. _ACEOF
  14320. rm -f conftest.$ac_objext conftest$ac_exeext
  14321. if { (ac_try="$ac_link"
  14322. case "(($ac_try" in
  14323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14324. *) ac_try_echo=$ac_try;;
  14325. esac
  14326. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14327. (eval "$ac_link") 2>conftest.er1
  14328. ac_status=$?
  14329. grep -v '^ *+' conftest.er1 >conftest.err
  14330. rm -f conftest.er1
  14331. cat conftest.err >&5
  14332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14333. (exit $ac_status); } && {
  14334. test -z "$ac_cxx_werror_flag" ||
  14335. test ! -s conftest.err
  14336. } && test -s conftest$ac_exeext &&
  14337. $as_test_x conftest$ac_exeext; then
  14338. gt_cv_func_CFPreferencesCopyAppValue=yes
  14339. else
  14340. echo "$as_me: failed program was:" >&5
  14341. sed 's/^/| /' conftest.$ac_ext >&5
  14342. gt_cv_func_CFPreferencesCopyAppValue=no
  14343. fi
  14344. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14345. conftest$ac_exeext conftest.$ac_ext
  14346. LIBS="$gt_save_LIBS"
  14347. fi
  14348. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14349. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14350. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14351. cat >>confdefs.h <<\_ACEOF
  14352. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14353. _ACEOF
  14354. fi
  14355. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14356. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14357. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14358. echo $ECHO_N "(cached) $ECHO_C" >&6
  14359. else
  14360. gt_save_LIBS="$LIBS"
  14361. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14362. cat >conftest.$ac_ext <<_ACEOF
  14363. /* confdefs.h. */
  14364. _ACEOF
  14365. cat confdefs.h >>conftest.$ac_ext
  14366. cat >>conftest.$ac_ext <<_ACEOF
  14367. /* end confdefs.h. */
  14368. #include <CoreFoundation/CFLocale.h>
  14369. int
  14370. main ()
  14371. {
  14372. CFLocaleCopyCurrent();
  14373. ;
  14374. return 0;
  14375. }
  14376. _ACEOF
  14377. rm -f conftest.$ac_objext conftest$ac_exeext
  14378. if { (ac_try="$ac_link"
  14379. case "(($ac_try" in
  14380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14381. *) ac_try_echo=$ac_try;;
  14382. esac
  14383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14384. (eval "$ac_link") 2>conftest.er1
  14385. ac_status=$?
  14386. grep -v '^ *+' conftest.er1 >conftest.err
  14387. rm -f conftest.er1
  14388. cat conftest.err >&5
  14389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14390. (exit $ac_status); } && {
  14391. test -z "$ac_cxx_werror_flag" ||
  14392. test ! -s conftest.err
  14393. } && test -s conftest$ac_exeext &&
  14394. $as_test_x conftest$ac_exeext; then
  14395. gt_cv_func_CFLocaleCopyCurrent=yes
  14396. else
  14397. echo "$as_me: failed program was:" >&5
  14398. sed 's/^/| /' conftest.$ac_ext >&5
  14399. gt_cv_func_CFLocaleCopyCurrent=no
  14400. fi
  14401. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14402. conftest$ac_exeext conftest.$ac_ext
  14403. LIBS="$gt_save_LIBS"
  14404. fi
  14405. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14406. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14407. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14408. cat >>confdefs.h <<\_ACEOF
  14409. #define HAVE_CFLOCALECOPYCURRENT 1
  14410. _ACEOF
  14411. fi
  14412. INTL_MACOSX_LIBS=
  14413. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14414. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14415. fi
  14416. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  14417. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  14418. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  14419. echo $ECHO_N "(cached) $ECHO_C" >&6
  14420. else
  14421. cat >conftest.$ac_ext <<_ACEOF
  14422. /* confdefs.h. */
  14423. _ACEOF
  14424. cat confdefs.h >>conftest.$ac_ext
  14425. cat >>conftest.$ac_ext <<_ACEOF
  14426. /* end confdefs.h. */
  14427. $ac_includes_default
  14428. typedef ptrdiff_t ac__type_new_;
  14429. int
  14430. main ()
  14431. {
  14432. if ((ac__type_new_ *) 0)
  14433. return 0;
  14434. if (sizeof (ac__type_new_))
  14435. return 0;
  14436. ;
  14437. return 0;
  14438. }
  14439. _ACEOF
  14440. rm -f conftest.$ac_objext
  14441. if { (ac_try="$ac_compile"
  14442. case "(($ac_try" in
  14443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14444. *) ac_try_echo=$ac_try;;
  14445. esac
  14446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14447. (eval "$ac_compile") 2>conftest.er1
  14448. ac_status=$?
  14449. grep -v '^ *+' conftest.er1 >conftest.err
  14450. rm -f conftest.er1
  14451. cat conftest.err >&5
  14452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14453. (exit $ac_status); } && {
  14454. test -z "$ac_cxx_werror_flag" ||
  14455. test ! -s conftest.err
  14456. } && test -s conftest.$ac_objext; then
  14457. ac_cv_type_ptrdiff_t=yes
  14458. else
  14459. echo "$as_me: failed program was:" >&5
  14460. sed 's/^/| /' conftest.$ac_ext >&5
  14461. ac_cv_type_ptrdiff_t=no
  14462. fi
  14463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14464. fi
  14465. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  14466. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  14467. if test $ac_cv_type_ptrdiff_t = yes; then
  14468. :
  14469. else
  14470. cat >>confdefs.h <<\_ACEOF
  14471. #define ptrdiff_t long
  14472. _ACEOF
  14473. fi
  14474. for ac_header in stddef.h stdlib.h string.h
  14475. do
  14476. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14477. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14478. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14479. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14480. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14481. echo $ECHO_N "(cached) $ECHO_C" >&6
  14482. fi
  14483. ac_res=`eval echo '${'$as_ac_Header'}'`
  14484. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14485. echo "${ECHO_T}$ac_res" >&6; }
  14486. else
  14487. # Is the header compilable?
  14488. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14489. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14490. cat >conftest.$ac_ext <<_ACEOF
  14491. /* confdefs.h. */
  14492. _ACEOF
  14493. cat confdefs.h >>conftest.$ac_ext
  14494. cat >>conftest.$ac_ext <<_ACEOF
  14495. /* end confdefs.h. */
  14496. $ac_includes_default
  14497. #include <$ac_header>
  14498. _ACEOF
  14499. rm -f conftest.$ac_objext
  14500. if { (ac_try="$ac_compile"
  14501. case "(($ac_try" in
  14502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14503. *) ac_try_echo=$ac_try;;
  14504. esac
  14505. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14506. (eval "$ac_compile") 2>conftest.er1
  14507. ac_status=$?
  14508. grep -v '^ *+' conftest.er1 >conftest.err
  14509. rm -f conftest.er1
  14510. cat conftest.err >&5
  14511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14512. (exit $ac_status); } && {
  14513. test -z "$ac_cxx_werror_flag" ||
  14514. test ! -s conftest.err
  14515. } && test -s conftest.$ac_objext; then
  14516. ac_header_compiler=yes
  14517. else
  14518. echo "$as_me: failed program was:" >&5
  14519. sed 's/^/| /' conftest.$ac_ext >&5
  14520. ac_header_compiler=no
  14521. fi
  14522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14523. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14524. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14525. # Is the header present?
  14526. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14527. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14528. cat >conftest.$ac_ext <<_ACEOF
  14529. /* confdefs.h. */
  14530. _ACEOF
  14531. cat confdefs.h >>conftest.$ac_ext
  14532. cat >>conftest.$ac_ext <<_ACEOF
  14533. /* end confdefs.h. */
  14534. #include <$ac_header>
  14535. _ACEOF
  14536. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14537. case "(($ac_try" in
  14538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14539. *) ac_try_echo=$ac_try;;
  14540. esac
  14541. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14542. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14543. ac_status=$?
  14544. grep -v '^ *+' conftest.er1 >conftest.err
  14545. rm -f conftest.er1
  14546. cat conftest.err >&5
  14547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14548. (exit $ac_status); } >/dev/null && {
  14549. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14550. test ! -s conftest.err
  14551. }; then
  14552. ac_header_preproc=yes
  14553. else
  14554. echo "$as_me: failed program was:" >&5
  14555. sed 's/^/| /' conftest.$ac_ext >&5
  14556. ac_header_preproc=no
  14557. fi
  14558. rm -f conftest.err conftest.$ac_ext
  14559. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14560. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14561. # So? What about this header?
  14562. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14563. yes:no: )
  14564. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14565. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14566. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14567. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14568. ac_header_preproc=yes
  14569. ;;
  14570. no:yes:* )
  14571. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14572. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14573. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14574. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14575. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14576. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14577. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14578. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14579. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14580. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14581. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14582. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14583. ( cat <<\_ASBOX
  14584. ## ----------------------------------------------- ##
  14585. ## Report this to t-tujikawa@users.sourceforge.net ##
  14586. ## ----------------------------------------------- ##
  14587. _ASBOX
  14588. ) | sed "s/^/$as_me: WARNING: /" >&2
  14589. ;;
  14590. esac
  14591. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14592. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14593. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14594. echo $ECHO_N "(cached) $ECHO_C" >&6
  14595. else
  14596. eval "$as_ac_Header=\$ac_header_preproc"
  14597. fi
  14598. ac_res=`eval echo '${'$as_ac_Header'}'`
  14599. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14600. echo "${ECHO_T}$ac_res" >&6; }
  14601. fi
  14602. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14603. cat >>confdefs.h <<_ACEOF
  14604. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14605. _ACEOF
  14606. fi
  14607. done
  14608. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14609. do
  14610. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14611. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14612. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14613. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14614. echo $ECHO_N "(cached) $ECHO_C" >&6
  14615. else
  14616. cat >conftest.$ac_ext <<_ACEOF
  14617. /* confdefs.h. */
  14618. _ACEOF
  14619. cat confdefs.h >>conftest.$ac_ext
  14620. cat >>conftest.$ac_ext <<_ACEOF
  14621. /* end confdefs.h. */
  14622. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14623. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14624. #define $ac_func innocuous_$ac_func
  14625. /* System header to define __stub macros and hopefully few prototypes,
  14626. which can conflict with char $ac_func (); below.
  14627. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14628. <limits.h> exists even on freestanding compilers. */
  14629. #ifdef __STDC__
  14630. # include <limits.h>
  14631. #else
  14632. # include <assert.h>
  14633. #endif
  14634. #undef $ac_func
  14635. /* Override any GCC internal prototype to avoid an error.
  14636. Use char because int might match the return type of a GCC
  14637. builtin and then its argument prototype would still apply. */
  14638. #ifdef __cplusplus
  14639. extern "C"
  14640. #endif
  14641. char $ac_func ();
  14642. /* The GNU C library defines this for functions which it implements
  14643. to always fail with ENOSYS. Some functions are actually named
  14644. something starting with __ and the normal name is an alias. */
  14645. #if defined __stub_$ac_func || defined __stub___$ac_func
  14646. choke me
  14647. #endif
  14648. int
  14649. main ()
  14650. {
  14651. return $ac_func ();
  14652. ;
  14653. return 0;
  14654. }
  14655. _ACEOF
  14656. rm -f conftest.$ac_objext conftest$ac_exeext
  14657. if { (ac_try="$ac_link"
  14658. case "(($ac_try" in
  14659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14660. *) ac_try_echo=$ac_try;;
  14661. esac
  14662. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14663. (eval "$ac_link") 2>conftest.er1
  14664. ac_status=$?
  14665. grep -v '^ *+' conftest.er1 >conftest.err
  14666. rm -f conftest.er1
  14667. cat conftest.err >&5
  14668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14669. (exit $ac_status); } && {
  14670. test -z "$ac_cxx_werror_flag" ||
  14671. test ! -s conftest.err
  14672. } && test -s conftest$ac_exeext &&
  14673. $as_test_x conftest$ac_exeext; then
  14674. eval "$as_ac_var=yes"
  14675. else
  14676. echo "$as_me: failed program was:" >&5
  14677. sed 's/^/| /' conftest.$ac_ext >&5
  14678. eval "$as_ac_var=no"
  14679. fi
  14680. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14681. conftest$ac_exeext conftest.$ac_ext
  14682. fi
  14683. ac_res=`eval echo '${'$as_ac_var'}'`
  14684. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14685. echo "${ECHO_T}$ac_res" >&6; }
  14686. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14687. cat >>confdefs.h <<_ACEOF
  14688. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14689. _ACEOF
  14690. fi
  14691. done
  14692. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14693. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14694. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14695. echo $ECHO_N "(cached) $ECHO_C" >&6
  14696. else
  14697. cat >conftest.$ac_ext <<_ACEOF
  14698. /* confdefs.h. */
  14699. _ACEOF
  14700. cat confdefs.h >>conftest.$ac_ext
  14701. cat >>conftest.$ac_ext <<_ACEOF
  14702. /* end confdefs.h. */
  14703. #include <stdio.h>
  14704. int
  14705. main ()
  14706. {
  14707. #ifndef _snprintf
  14708. char *p = (char *) _snprintf;
  14709. #endif
  14710. ;
  14711. return 0;
  14712. }
  14713. _ACEOF
  14714. rm -f conftest.$ac_objext
  14715. if { (ac_try="$ac_compile"
  14716. case "(($ac_try" in
  14717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14718. *) ac_try_echo=$ac_try;;
  14719. esac
  14720. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14721. (eval "$ac_compile") 2>conftest.er1
  14722. ac_status=$?
  14723. grep -v '^ *+' conftest.er1 >conftest.err
  14724. rm -f conftest.er1
  14725. cat conftest.err >&5
  14726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14727. (exit $ac_status); } && {
  14728. test -z "$ac_cxx_werror_flag" ||
  14729. test ! -s conftest.err
  14730. } && test -s conftest.$ac_objext; then
  14731. ac_cv_have_decl__snprintf=yes
  14732. else
  14733. echo "$as_me: failed program was:" >&5
  14734. sed 's/^/| /' conftest.$ac_ext >&5
  14735. ac_cv_have_decl__snprintf=no
  14736. fi
  14737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14738. fi
  14739. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  14740. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  14741. if test $ac_cv_have_decl__snprintf = yes; then
  14742. gt_value=1
  14743. else
  14744. gt_value=0
  14745. fi
  14746. cat >>confdefs.h <<_ACEOF
  14747. #define HAVE_DECL__SNPRINTF $gt_value
  14748. _ACEOF
  14749. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  14750. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  14751. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  14752. echo $ECHO_N "(cached) $ECHO_C" >&6
  14753. else
  14754. cat >conftest.$ac_ext <<_ACEOF
  14755. /* confdefs.h. */
  14756. _ACEOF
  14757. cat confdefs.h >>conftest.$ac_ext
  14758. cat >>conftest.$ac_ext <<_ACEOF
  14759. /* end confdefs.h. */
  14760. #include <stdio.h>
  14761. int
  14762. main ()
  14763. {
  14764. #ifndef _snwprintf
  14765. char *p = (char *) _snwprintf;
  14766. #endif
  14767. ;
  14768. return 0;
  14769. }
  14770. _ACEOF
  14771. rm -f conftest.$ac_objext
  14772. if { (ac_try="$ac_compile"
  14773. case "(($ac_try" in
  14774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14775. *) ac_try_echo=$ac_try;;
  14776. esac
  14777. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14778. (eval "$ac_compile") 2>conftest.er1
  14779. ac_status=$?
  14780. grep -v '^ *+' conftest.er1 >conftest.err
  14781. rm -f conftest.er1
  14782. cat conftest.err >&5
  14783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14784. (exit $ac_status); } && {
  14785. test -z "$ac_cxx_werror_flag" ||
  14786. test ! -s conftest.err
  14787. } && test -s conftest.$ac_objext; then
  14788. ac_cv_have_decl__snwprintf=yes
  14789. else
  14790. echo "$as_me: failed program was:" >&5
  14791. sed 's/^/| /' conftest.$ac_ext >&5
  14792. ac_cv_have_decl__snwprintf=no
  14793. fi
  14794. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14795. fi
  14796. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  14797. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  14798. if test $ac_cv_have_decl__snwprintf = yes; then
  14799. gt_value=1
  14800. else
  14801. gt_value=0
  14802. fi
  14803. cat >>confdefs.h <<_ACEOF
  14804. #define HAVE_DECL__SNWPRINTF $gt_value
  14805. _ACEOF
  14806. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  14807. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  14808. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  14809. echo $ECHO_N "(cached) $ECHO_C" >&6
  14810. else
  14811. cat >conftest.$ac_ext <<_ACEOF
  14812. /* confdefs.h. */
  14813. _ACEOF
  14814. cat confdefs.h >>conftest.$ac_ext
  14815. cat >>conftest.$ac_ext <<_ACEOF
  14816. /* end confdefs.h. */
  14817. #include <stdio.h>
  14818. int
  14819. main ()
  14820. {
  14821. #ifndef getc_unlocked
  14822. char *p = (char *) getc_unlocked;
  14823. #endif
  14824. ;
  14825. return 0;
  14826. }
  14827. _ACEOF
  14828. rm -f conftest.$ac_objext
  14829. if { (ac_try="$ac_compile"
  14830. case "(($ac_try" in
  14831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14832. *) ac_try_echo=$ac_try;;
  14833. esac
  14834. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14835. (eval "$ac_compile") 2>conftest.er1
  14836. ac_status=$?
  14837. grep -v '^ *+' conftest.er1 >conftest.err
  14838. rm -f conftest.er1
  14839. cat conftest.err >&5
  14840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14841. (exit $ac_status); } && {
  14842. test -z "$ac_cxx_werror_flag" ||
  14843. test ! -s conftest.err
  14844. } && test -s conftest.$ac_objext; then
  14845. ac_cv_have_decl_getc_unlocked=yes
  14846. else
  14847. echo "$as_me: failed program was:" >&5
  14848. sed 's/^/| /' conftest.$ac_ext >&5
  14849. ac_cv_have_decl_getc_unlocked=no
  14850. fi
  14851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14852. fi
  14853. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  14854. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  14855. if test $ac_cv_have_decl_getc_unlocked = yes; then
  14856. gt_value=1
  14857. else
  14858. gt_value=0
  14859. fi
  14860. cat >>confdefs.h <<_ACEOF
  14861. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  14862. _ACEOF
  14863. case $gt_cv_func_printf_posix in
  14864. *yes) HAVE_POSIX_PRINTF=1 ;;
  14865. *) HAVE_POSIX_PRINTF=0 ;;
  14866. esac
  14867. if test "$ac_cv_func_asprintf" = yes; then
  14868. HAVE_ASPRINTF=1
  14869. else
  14870. HAVE_ASPRINTF=0
  14871. fi
  14872. if test "$ac_cv_func_snprintf" = yes; then
  14873. HAVE_SNPRINTF=1
  14874. else
  14875. HAVE_SNPRINTF=0
  14876. fi
  14877. if test "$ac_cv_func_wprintf" = yes; then
  14878. HAVE_WPRINTF=1
  14879. else
  14880. HAVE_WPRINTF=0
  14881. fi
  14882. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  14883. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  14884. if test "${am_cv_langinfo_codeset+set}" = set; then
  14885. echo $ECHO_N "(cached) $ECHO_C" >&6
  14886. else
  14887. cat >conftest.$ac_ext <<_ACEOF
  14888. /* confdefs.h. */
  14889. _ACEOF
  14890. cat confdefs.h >>conftest.$ac_ext
  14891. cat >>conftest.$ac_ext <<_ACEOF
  14892. /* end confdefs.h. */
  14893. #include <langinfo.h>
  14894. int
  14895. main ()
  14896. {
  14897. char* cs = nl_langinfo(CODESET); return !cs;
  14898. ;
  14899. return 0;
  14900. }
  14901. _ACEOF
  14902. rm -f conftest.$ac_objext conftest$ac_exeext
  14903. if { (ac_try="$ac_link"
  14904. case "(($ac_try" in
  14905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14906. *) ac_try_echo=$ac_try;;
  14907. esac
  14908. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14909. (eval "$ac_link") 2>conftest.er1
  14910. ac_status=$?
  14911. grep -v '^ *+' conftest.er1 >conftest.err
  14912. rm -f conftest.er1
  14913. cat conftest.err >&5
  14914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14915. (exit $ac_status); } && {
  14916. test -z "$ac_cxx_werror_flag" ||
  14917. test ! -s conftest.err
  14918. } && test -s conftest$ac_exeext &&
  14919. $as_test_x conftest$ac_exeext; then
  14920. am_cv_langinfo_codeset=yes
  14921. else
  14922. echo "$as_me: failed program was:" >&5
  14923. sed 's/^/| /' conftest.$ac_ext >&5
  14924. am_cv_langinfo_codeset=no
  14925. fi
  14926. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14927. conftest$ac_exeext conftest.$ac_ext
  14928. fi
  14929. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  14930. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  14931. if test $am_cv_langinfo_codeset = yes; then
  14932. cat >>confdefs.h <<\_ACEOF
  14933. #define HAVE_LANGINFO_CODESET 1
  14934. _ACEOF
  14935. fi
  14936. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  14937. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  14938. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  14939. echo $ECHO_N "(cached) $ECHO_C" >&6
  14940. else
  14941. cat >conftest.$ac_ext <<_ACEOF
  14942. /* confdefs.h. */
  14943. _ACEOF
  14944. cat confdefs.h >>conftest.$ac_ext
  14945. cat >>conftest.$ac_ext <<_ACEOF
  14946. /* end confdefs.h. */
  14947. #include <locale.h>
  14948. int
  14949. main ()
  14950. {
  14951. return LC_MESSAGES
  14952. ;
  14953. return 0;
  14954. }
  14955. _ACEOF
  14956. rm -f conftest.$ac_objext conftest$ac_exeext
  14957. if { (ac_try="$ac_link"
  14958. case "(($ac_try" in
  14959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14960. *) ac_try_echo=$ac_try;;
  14961. esac
  14962. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14963. (eval "$ac_link") 2>conftest.er1
  14964. ac_status=$?
  14965. grep -v '^ *+' conftest.er1 >conftest.err
  14966. rm -f conftest.er1
  14967. cat conftest.err >&5
  14968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14969. (exit $ac_status); } && {
  14970. test -z "$ac_cxx_werror_flag" ||
  14971. test ! -s conftest.err
  14972. } && test -s conftest$ac_exeext &&
  14973. $as_test_x conftest$ac_exeext; then
  14974. gt_cv_val_LC_MESSAGES=yes
  14975. else
  14976. echo "$as_me: failed program was:" >&5
  14977. sed 's/^/| /' conftest.$ac_ext >&5
  14978. gt_cv_val_LC_MESSAGES=no
  14979. fi
  14980. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14981. conftest$ac_exeext conftest.$ac_ext
  14982. fi
  14983. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  14984. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  14985. if test $gt_cv_val_LC_MESSAGES = yes; then
  14986. cat >>confdefs.h <<\_ACEOF
  14987. #define HAVE_LC_MESSAGES 1
  14988. _ACEOF
  14989. fi
  14990. if test "$enable_shared" = yes; then
  14991. case "$host_os" in
  14992. mingw* | cygwin*) is_woe32dll=yes ;;
  14993. *) is_woe32dll=no ;;
  14994. esac
  14995. else
  14996. is_woe32dll=no
  14997. fi
  14998. WOE32DLL=$is_woe32dll
  14999. case "$host_os" in
  15000. mingw* | cygwin*) is_woe32=yes ;;
  15001. *) is_woe32=no ;;
  15002. esac
  15003. WOE32=$is_woe32
  15004. if test $WOE32 = yes; then
  15005. if test -n "$ac_tool_prefix"; then
  15006. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  15007. set dummy ${ac_tool_prefix}windres; ac_word=$2
  15008. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15009. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15010. if test "${ac_cv_prog_WINDRES+set}" = set; then
  15011. echo $ECHO_N "(cached) $ECHO_C" >&6
  15012. else
  15013. if test -n "$WINDRES"; then
  15014. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  15015. else
  15016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15017. for as_dir in $PATH
  15018. do
  15019. IFS=$as_save_IFS
  15020. test -z "$as_dir" && as_dir=.
  15021. for ac_exec_ext in '' $ac_executable_extensions; do
  15022. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15023. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  15024. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15025. break 2
  15026. fi
  15027. done
  15028. done
  15029. IFS=$as_save_IFS
  15030. fi
  15031. fi
  15032. WINDRES=$ac_cv_prog_WINDRES
  15033. if test -n "$WINDRES"; then
  15034. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  15035. echo "${ECHO_T}$WINDRES" >&6; }
  15036. else
  15037. { echo "$as_me:$LINENO: result: no" >&5
  15038. echo "${ECHO_T}no" >&6; }
  15039. fi
  15040. fi
  15041. if test -z "$ac_cv_prog_WINDRES"; then
  15042. ac_ct_WINDRES=$WINDRES
  15043. # Extract the first word of "windres", so it can be a program name with args.
  15044. set dummy windres; ac_word=$2
  15045. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  15046. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  15047. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  15048. echo $ECHO_N "(cached) $ECHO_C" >&6
  15049. else
  15050. if test -n "$ac_ct_WINDRES"; then
  15051. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  15052. else
  15053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15054. for as_dir in $PATH
  15055. do
  15056. IFS=$as_save_IFS
  15057. test -z "$as_dir" && as_dir=.
  15058. for ac_exec_ext in '' $ac_executable_extensions; do
  15059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  15060. ac_cv_prog_ac_ct_WINDRES="windres"
  15061. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  15062. break 2
  15063. fi
  15064. done
  15065. done
  15066. IFS=$as_save_IFS
  15067. fi
  15068. fi
  15069. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  15070. if test -n "$ac_ct_WINDRES"; then
  15071. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  15072. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  15073. else
  15074. { echo "$as_me:$LINENO: result: no" >&5
  15075. echo "${ECHO_T}no" >&6; }
  15076. fi
  15077. if test "x$ac_ct_WINDRES" = x; then
  15078. WINDRES=""
  15079. else
  15080. case $cross_compiling:$ac_tool_warned in
  15081. yes:)
  15082. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  15083. whose name does not start with the host triplet. If you think this
  15084. configuration is useful to you, please write to autoconf@gnu.org." >&5
  15085. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  15086. whose name does not start with the host triplet. If you think this
  15087. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  15088. ac_tool_warned=yes ;;
  15089. esac
  15090. WINDRES=$ac_ct_WINDRES
  15091. fi
  15092. else
  15093. WINDRES="$ac_cv_prog_WINDRES"
  15094. fi
  15095. fi
  15096. case "$host_os" in
  15097. hpux*) LTLIBC="" ;;
  15098. *) LTLIBC="-lc" ;;
  15099. esac
  15100. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15101. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  15102. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15103. echo $ECHO_N "(cached) $ECHO_C" >&6
  15104. else
  15105. gt_save_LIBS="$LIBS"
  15106. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15107. cat >conftest.$ac_ext <<_ACEOF
  15108. /* confdefs.h. */
  15109. _ACEOF
  15110. cat confdefs.h >>conftest.$ac_ext
  15111. cat >>conftest.$ac_ext <<_ACEOF
  15112. /* end confdefs.h. */
  15113. #include <CoreFoundation/CFPreferences.h>
  15114. int
  15115. main ()
  15116. {
  15117. CFPreferencesCopyAppValue(NULL, NULL)
  15118. ;
  15119. return 0;
  15120. }
  15121. _ACEOF
  15122. rm -f conftest.$ac_objext conftest$ac_exeext
  15123. if { (ac_try="$ac_link"
  15124. case "(($ac_try" in
  15125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15126. *) ac_try_echo=$ac_try;;
  15127. esac
  15128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15129. (eval "$ac_link") 2>conftest.er1
  15130. ac_status=$?
  15131. grep -v '^ *+' conftest.er1 >conftest.err
  15132. rm -f conftest.er1
  15133. cat conftest.err >&5
  15134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15135. (exit $ac_status); } && {
  15136. test -z "$ac_cxx_werror_flag" ||
  15137. test ! -s conftest.err
  15138. } && test -s conftest$ac_exeext &&
  15139. $as_test_x conftest$ac_exeext; then
  15140. gt_cv_func_CFPreferencesCopyAppValue=yes
  15141. else
  15142. echo "$as_me: failed program was:" >&5
  15143. sed 's/^/| /' conftest.$ac_ext >&5
  15144. gt_cv_func_CFPreferencesCopyAppValue=no
  15145. fi
  15146. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15147. conftest$ac_exeext conftest.$ac_ext
  15148. LIBS="$gt_save_LIBS"
  15149. fi
  15150. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15151. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15152. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15153. cat >>confdefs.h <<\_ACEOF
  15154. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15155. _ACEOF
  15156. fi
  15157. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15158. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  15159. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15160. echo $ECHO_N "(cached) $ECHO_C" >&6
  15161. else
  15162. gt_save_LIBS="$LIBS"
  15163. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15164. cat >conftest.$ac_ext <<_ACEOF
  15165. /* confdefs.h. */
  15166. _ACEOF
  15167. cat confdefs.h >>conftest.$ac_ext
  15168. cat >>conftest.$ac_ext <<_ACEOF
  15169. /* end confdefs.h. */
  15170. #include <CoreFoundation/CFLocale.h>
  15171. int
  15172. main ()
  15173. {
  15174. CFLocaleCopyCurrent();
  15175. ;
  15176. return 0;
  15177. }
  15178. _ACEOF
  15179. rm -f conftest.$ac_objext conftest$ac_exeext
  15180. if { (ac_try="$ac_link"
  15181. case "(($ac_try" in
  15182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15183. *) ac_try_echo=$ac_try;;
  15184. esac
  15185. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15186. (eval "$ac_link") 2>conftest.er1
  15187. ac_status=$?
  15188. grep -v '^ *+' conftest.er1 >conftest.err
  15189. rm -f conftest.er1
  15190. cat conftest.err >&5
  15191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15192. (exit $ac_status); } && {
  15193. test -z "$ac_cxx_werror_flag" ||
  15194. test ! -s conftest.err
  15195. } && test -s conftest$ac_exeext &&
  15196. $as_test_x conftest$ac_exeext; then
  15197. gt_cv_func_CFLocaleCopyCurrent=yes
  15198. else
  15199. echo "$as_me: failed program was:" >&5
  15200. sed 's/^/| /' conftest.$ac_ext >&5
  15201. gt_cv_func_CFLocaleCopyCurrent=no
  15202. fi
  15203. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15204. conftest$ac_exeext conftest.$ac_ext
  15205. LIBS="$gt_save_LIBS"
  15206. fi
  15207. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15208. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15209. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15210. cat >>confdefs.h <<\_ACEOF
  15211. #define HAVE_CFLOCALECOPYCURRENT 1
  15212. _ACEOF
  15213. fi
  15214. INTL_MACOSX_LIBS=
  15215. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15216. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15217. fi
  15218. BUILD_INCLUDED_LIBINTL=no
  15219. USE_INCLUDED_LIBINTL=no
  15220. LIBINTL=
  15221. LTLIBINTL=
  15222. POSUB=
  15223. case " $gt_needs " in
  15224. *" need-formatstring-macros "*) gt_api_version=3 ;;
  15225. *" need-ngettext "*) gt_api_version=2 ;;
  15226. *) gt_api_version=1 ;;
  15227. esac
  15228. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  15229. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  15230. if test "$USE_NLS" = "yes"; then
  15231. gt_use_preinstalled_gnugettext=no
  15232. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  15233. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  15234. # Check whether --with-included-gettext was given.
  15235. if test "${with_included_gettext+set}" = set; then
  15236. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  15237. else
  15238. nls_cv_force_use_gnu_gettext=no
  15239. fi
  15240. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  15241. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  15242. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  15243. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  15244. if test $gt_api_version -ge 3; then
  15245. gt_revision_test_code='
  15246. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  15247. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  15248. #endif
  15249. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  15250. '
  15251. else
  15252. gt_revision_test_code=
  15253. fi
  15254. if test $gt_api_version -ge 2; then
  15255. gt_expression_test_code=' + * ngettext ("", "", 0)'
  15256. else
  15257. gt_expression_test_code=
  15258. fi
  15259. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  15260. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  15261. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  15262. echo $ECHO_N "(cached) $ECHO_C" >&6
  15263. else
  15264. cat >conftest.$ac_ext <<_ACEOF
  15265. /* confdefs.h. */
  15266. _ACEOF
  15267. cat confdefs.h >>conftest.$ac_ext
  15268. cat >>conftest.$ac_ext <<_ACEOF
  15269. /* end confdefs.h. */
  15270. #include <libintl.h>
  15271. $gt_revision_test_code
  15272. extern int _nl_msg_cat_cntr;
  15273. extern int *_nl_domain_bindings;
  15274. int
  15275. main ()
  15276. {
  15277. bindtextdomain ("", "");
  15278. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  15279. ;
  15280. return 0;
  15281. }
  15282. _ACEOF
  15283. rm -f conftest.$ac_objext conftest$ac_exeext
  15284. if { (ac_try="$ac_link"
  15285. case "(($ac_try" in
  15286. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15287. *) ac_try_echo=$ac_try;;
  15288. esac
  15289. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15290. (eval "$ac_link") 2>conftest.er1
  15291. ac_status=$?
  15292. grep -v '^ *+' conftest.er1 >conftest.err
  15293. rm -f conftest.er1
  15294. cat conftest.err >&5
  15295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15296. (exit $ac_status); } && {
  15297. test -z "$ac_cxx_werror_flag" ||
  15298. test ! -s conftest.err
  15299. } && test -s conftest$ac_exeext &&
  15300. $as_test_x conftest$ac_exeext; then
  15301. eval "$gt_func_gnugettext_libc=yes"
  15302. else
  15303. echo "$as_me: failed program was:" >&5
  15304. sed 's/^/| /' conftest.$ac_ext >&5
  15305. eval "$gt_func_gnugettext_libc=no"
  15306. fi
  15307. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15308. conftest$ac_exeext conftest.$ac_ext
  15309. fi
  15310. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  15311. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15312. echo "${ECHO_T}$ac_res" >&6; }
  15313. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  15314. use_additional=yes
  15315. acl_save_prefix="$prefix"
  15316. prefix="$acl_final_prefix"
  15317. acl_save_exec_prefix="$exec_prefix"
  15318. exec_prefix="$acl_final_exec_prefix"
  15319. eval additional_includedir=\"$includedir\"
  15320. eval additional_libdir=\"$libdir\"
  15321. exec_prefix="$acl_save_exec_prefix"
  15322. prefix="$acl_save_prefix"
  15323. # Check whether --with-libintl-prefix was given.
  15324. if test "${with_libintl_prefix+set}" = set; then
  15325. withval=$with_libintl_prefix;
  15326. if test "X$withval" = "Xno"; then
  15327. use_additional=no
  15328. else
  15329. if test "X$withval" = "X"; then
  15330. acl_save_prefix="$prefix"
  15331. prefix="$acl_final_prefix"
  15332. acl_save_exec_prefix="$exec_prefix"
  15333. exec_prefix="$acl_final_exec_prefix"
  15334. eval additional_includedir=\"$includedir\"
  15335. eval additional_libdir=\"$libdir\"
  15336. exec_prefix="$acl_save_exec_prefix"
  15337. prefix="$acl_save_prefix"
  15338. else
  15339. additional_includedir="$withval/include"
  15340. additional_libdir="$withval/$acl_libdirstem"
  15341. fi
  15342. fi
  15343. fi
  15344. LIBINTL=
  15345. LTLIBINTL=
  15346. INCINTL=
  15347. LIBINTL_PREFIX=
  15348. rpathdirs=
  15349. ltrpathdirs=
  15350. names_already_handled=
  15351. names_next_round='intl '
  15352. while test -n "$names_next_round"; do
  15353. names_this_round="$names_next_round"
  15354. names_next_round=
  15355. for name in $names_this_round; do
  15356. already_handled=
  15357. for n in $names_already_handled; do
  15358. if test "$n" = "$name"; then
  15359. already_handled=yes
  15360. break
  15361. fi
  15362. done
  15363. if test -z "$already_handled"; then
  15364. names_already_handled="$names_already_handled $name"
  15365. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  15366. eval value=\"\$HAVE_LIB$uppername\"
  15367. if test -n "$value"; then
  15368. if test "$value" = yes; then
  15369. eval value=\"\$LIB$uppername\"
  15370. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  15371. eval value=\"\$LTLIB$uppername\"
  15372. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  15373. else
  15374. :
  15375. fi
  15376. else
  15377. found_dir=
  15378. found_la=
  15379. found_so=
  15380. found_a=
  15381. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  15382. if test -n "$acl_shlibext"; then
  15383. shrext=".$acl_shlibext" # typically: shrext=.so
  15384. else
  15385. shrext=
  15386. fi
  15387. if test $use_additional = yes; then
  15388. dir="$additional_libdir"
  15389. if test -n "$acl_shlibext"; then
  15390. if test -f "$dir/$libname$shrext"; then
  15391. found_dir="$dir"
  15392. found_so="$dir/$libname$shrext"
  15393. else
  15394. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15395. ver=`(cd "$dir" && \
  15396. for f in "$libname$shrext".*; do echo "$f"; done \
  15397. | sed -e "s,^$libname$shrext\\\\.,," \
  15398. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15399. | sed 1q ) 2>/dev/null`
  15400. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15401. found_dir="$dir"
  15402. found_so="$dir/$libname$shrext.$ver"
  15403. fi
  15404. else
  15405. eval library_names=\"$acl_library_names_spec\"
  15406. for f in $library_names; do
  15407. if test -f "$dir/$f"; then
  15408. found_dir="$dir"
  15409. found_so="$dir/$f"
  15410. break
  15411. fi
  15412. done
  15413. fi
  15414. fi
  15415. fi
  15416. if test "X$found_dir" = "X"; then
  15417. if test -f "$dir/$libname.$acl_libext"; then
  15418. found_dir="$dir"
  15419. found_a="$dir/$libname.$acl_libext"
  15420. fi
  15421. fi
  15422. if test "X$found_dir" != "X"; then
  15423. if test -f "$dir/$libname.la"; then
  15424. found_la="$dir/$libname.la"
  15425. fi
  15426. fi
  15427. fi
  15428. if test "X$found_dir" = "X"; then
  15429. for x in $LDFLAGS $LTLIBINTL; do
  15430. acl_save_prefix="$prefix"
  15431. prefix="$acl_final_prefix"
  15432. acl_save_exec_prefix="$exec_prefix"
  15433. exec_prefix="$acl_final_exec_prefix"
  15434. eval x=\"$x\"
  15435. exec_prefix="$acl_save_exec_prefix"
  15436. prefix="$acl_save_prefix"
  15437. case "$x" in
  15438. -L*)
  15439. dir=`echo "X$x" | sed -e 's/^X-L//'`
  15440. if test -n "$acl_shlibext"; then
  15441. if test -f "$dir/$libname$shrext"; then
  15442. found_dir="$dir"
  15443. found_so="$dir/$libname$shrext"
  15444. else
  15445. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  15446. ver=`(cd "$dir" && \
  15447. for f in "$libname$shrext".*; do echo "$f"; done \
  15448. | sed -e "s,^$libname$shrext\\\\.,," \
  15449. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  15450. | sed 1q ) 2>/dev/null`
  15451. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  15452. found_dir="$dir"
  15453. found_so="$dir/$libname$shrext.$ver"
  15454. fi
  15455. else
  15456. eval library_names=\"$acl_library_names_spec\"
  15457. for f in $library_names; do
  15458. if test -f "$dir/$f"; then
  15459. found_dir="$dir"
  15460. found_so="$dir/$f"
  15461. break
  15462. fi
  15463. done
  15464. fi
  15465. fi
  15466. fi
  15467. if test "X$found_dir" = "X"; then
  15468. if test -f "$dir/$libname.$acl_libext"; then
  15469. found_dir="$dir"
  15470. found_a="$dir/$libname.$acl_libext"
  15471. fi
  15472. fi
  15473. if test "X$found_dir" != "X"; then
  15474. if test -f "$dir/$libname.la"; then
  15475. found_la="$dir/$libname.la"
  15476. fi
  15477. fi
  15478. ;;
  15479. esac
  15480. if test "X$found_dir" != "X"; then
  15481. break
  15482. fi
  15483. done
  15484. fi
  15485. if test "X$found_dir" != "X"; then
  15486. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15487. if test "X$found_so" != "X"; then
  15488. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15489. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15490. else
  15491. haveit=
  15492. for x in $ltrpathdirs; do
  15493. if test "X$x" = "X$found_dir"; then
  15494. haveit=yes
  15495. break
  15496. fi
  15497. done
  15498. if test -z "$haveit"; then
  15499. ltrpathdirs="$ltrpathdirs $found_dir"
  15500. fi
  15501. if test "$acl_hardcode_direct" = yes; then
  15502. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15503. else
  15504. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15505. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15506. haveit=
  15507. for x in $rpathdirs; do
  15508. if test "X$x" = "X$found_dir"; then
  15509. haveit=yes
  15510. break
  15511. fi
  15512. done
  15513. if test -z "$haveit"; then
  15514. rpathdirs="$rpathdirs $found_dir"
  15515. fi
  15516. else
  15517. haveit=
  15518. for x in $LDFLAGS $LIBINTL; do
  15519. acl_save_prefix="$prefix"
  15520. prefix="$acl_final_prefix"
  15521. acl_save_exec_prefix="$exec_prefix"
  15522. exec_prefix="$acl_final_exec_prefix"
  15523. eval x=\"$x\"
  15524. exec_prefix="$acl_save_exec_prefix"
  15525. prefix="$acl_save_prefix"
  15526. if test "X$x" = "X-L$found_dir"; then
  15527. haveit=yes
  15528. break
  15529. fi
  15530. done
  15531. if test -z "$haveit"; then
  15532. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15533. fi
  15534. if test "$acl_hardcode_minus_L" != no; then
  15535. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15536. else
  15537. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15538. fi
  15539. fi
  15540. fi
  15541. fi
  15542. else
  15543. if test "X$found_a" != "X"; then
  15544. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15545. else
  15546. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15547. fi
  15548. fi
  15549. additional_includedir=
  15550. case "$found_dir" in
  15551. */$acl_libdirstem | */$acl_libdirstem/)
  15552. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15553. LIBINTL_PREFIX="$basedir"
  15554. additional_includedir="$basedir/include"
  15555. ;;
  15556. esac
  15557. if test "X$additional_includedir" != "X"; then
  15558. if test "X$additional_includedir" != "X/usr/include"; then
  15559. haveit=
  15560. if test "X$additional_includedir" = "X/usr/local/include"; then
  15561. if test -n "$GCC"; then
  15562. case $host_os in
  15563. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15564. esac
  15565. fi
  15566. fi
  15567. if test -z "$haveit"; then
  15568. for x in $CPPFLAGS $INCINTL; do
  15569. acl_save_prefix="$prefix"
  15570. prefix="$acl_final_prefix"
  15571. acl_save_exec_prefix="$exec_prefix"
  15572. exec_prefix="$acl_final_exec_prefix"
  15573. eval x=\"$x\"
  15574. exec_prefix="$acl_save_exec_prefix"
  15575. prefix="$acl_save_prefix"
  15576. if test "X$x" = "X-I$additional_includedir"; then
  15577. haveit=yes
  15578. break
  15579. fi
  15580. done
  15581. if test -z "$haveit"; then
  15582. if test -d "$additional_includedir"; then
  15583. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15584. fi
  15585. fi
  15586. fi
  15587. fi
  15588. fi
  15589. if test -n "$found_la"; then
  15590. save_libdir="$libdir"
  15591. case "$found_la" in
  15592. */* | *\\*) . "$found_la" ;;
  15593. *) . "./$found_la" ;;
  15594. esac
  15595. libdir="$save_libdir"
  15596. for dep in $dependency_libs; do
  15597. case "$dep" in
  15598. -L*)
  15599. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15600. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15601. haveit=
  15602. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15603. if test -n "$GCC"; then
  15604. case $host_os in
  15605. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15606. esac
  15607. fi
  15608. fi
  15609. if test -z "$haveit"; then
  15610. haveit=
  15611. for x in $LDFLAGS $LIBINTL; do
  15612. acl_save_prefix="$prefix"
  15613. prefix="$acl_final_prefix"
  15614. acl_save_exec_prefix="$exec_prefix"
  15615. exec_prefix="$acl_final_exec_prefix"
  15616. eval x=\"$x\"
  15617. exec_prefix="$acl_save_exec_prefix"
  15618. prefix="$acl_save_prefix"
  15619. if test "X$x" = "X-L$additional_libdir"; then
  15620. haveit=yes
  15621. break
  15622. fi
  15623. done
  15624. if test -z "$haveit"; then
  15625. if test -d "$additional_libdir"; then
  15626. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15627. fi
  15628. fi
  15629. haveit=
  15630. for x in $LDFLAGS $LTLIBINTL; do
  15631. acl_save_prefix="$prefix"
  15632. prefix="$acl_final_prefix"
  15633. acl_save_exec_prefix="$exec_prefix"
  15634. exec_prefix="$acl_final_exec_prefix"
  15635. eval x=\"$x\"
  15636. exec_prefix="$acl_save_exec_prefix"
  15637. prefix="$acl_save_prefix"
  15638. if test "X$x" = "X-L$additional_libdir"; then
  15639. haveit=yes
  15640. break
  15641. fi
  15642. done
  15643. if test -z "$haveit"; then
  15644. if test -d "$additional_libdir"; then
  15645. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15646. fi
  15647. fi
  15648. fi
  15649. fi
  15650. ;;
  15651. -R*)
  15652. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15653. if test "$enable_rpath" != no; then
  15654. haveit=
  15655. for x in $rpathdirs; do
  15656. if test "X$x" = "X$dir"; then
  15657. haveit=yes
  15658. break
  15659. fi
  15660. done
  15661. if test -z "$haveit"; then
  15662. rpathdirs="$rpathdirs $dir"
  15663. fi
  15664. haveit=
  15665. for x in $ltrpathdirs; do
  15666. if test "X$x" = "X$dir"; then
  15667. haveit=yes
  15668. break
  15669. fi
  15670. done
  15671. if test -z "$haveit"; then
  15672. ltrpathdirs="$ltrpathdirs $dir"
  15673. fi
  15674. fi
  15675. ;;
  15676. -l*)
  15677. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15678. ;;
  15679. *.la)
  15680. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15681. ;;
  15682. *)
  15683. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15684. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15685. ;;
  15686. esac
  15687. done
  15688. fi
  15689. else
  15690. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15691. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15692. fi
  15693. fi
  15694. fi
  15695. done
  15696. done
  15697. if test "X$rpathdirs" != "X"; then
  15698. if test -n "$acl_hardcode_libdir_separator"; then
  15699. alldirs=
  15700. for found_dir in $rpathdirs; do
  15701. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15702. done
  15703. acl_save_libdir="$libdir"
  15704. libdir="$alldirs"
  15705. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15706. libdir="$acl_save_libdir"
  15707. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15708. else
  15709. for found_dir in $rpathdirs; do
  15710. acl_save_libdir="$libdir"
  15711. libdir="$found_dir"
  15712. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15713. libdir="$acl_save_libdir"
  15714. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15715. done
  15716. fi
  15717. fi
  15718. if test "X$ltrpathdirs" != "X"; then
  15719. for found_dir in $ltrpathdirs; do
  15720. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  15721. done
  15722. fi
  15723. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  15724. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  15725. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  15726. echo $ECHO_N "(cached) $ECHO_C" >&6
  15727. else
  15728. gt_save_CPPFLAGS="$CPPFLAGS"
  15729. CPPFLAGS="$CPPFLAGS $INCINTL"
  15730. gt_save_LIBS="$LIBS"
  15731. LIBS="$LIBS $LIBINTL"
  15732. cat >conftest.$ac_ext <<_ACEOF
  15733. /* confdefs.h. */
  15734. _ACEOF
  15735. cat confdefs.h >>conftest.$ac_ext
  15736. cat >>conftest.$ac_ext <<_ACEOF
  15737. /* end confdefs.h. */
  15738. #include <libintl.h>
  15739. $gt_revision_test_code
  15740. extern int _nl_msg_cat_cntr;
  15741. extern
  15742. #ifdef __cplusplus
  15743. "C"
  15744. #endif
  15745. const char *_nl_expand_alias (const char *);
  15746. int
  15747. main ()
  15748. {
  15749. bindtextdomain ("", "");
  15750. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15751. ;
  15752. return 0;
  15753. }
  15754. _ACEOF
  15755. rm -f conftest.$ac_objext conftest$ac_exeext
  15756. if { (ac_try="$ac_link"
  15757. case "(($ac_try" in
  15758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15759. *) ac_try_echo=$ac_try;;
  15760. esac
  15761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15762. (eval "$ac_link") 2>conftest.er1
  15763. ac_status=$?
  15764. grep -v '^ *+' conftest.er1 >conftest.err
  15765. rm -f conftest.er1
  15766. cat conftest.err >&5
  15767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15768. (exit $ac_status); } && {
  15769. test -z "$ac_cxx_werror_flag" ||
  15770. test ! -s conftest.err
  15771. } && test -s conftest$ac_exeext &&
  15772. $as_test_x conftest$ac_exeext; then
  15773. eval "$gt_func_gnugettext_libintl=yes"
  15774. else
  15775. echo "$as_me: failed program was:" >&5
  15776. sed 's/^/| /' conftest.$ac_ext >&5
  15777. eval "$gt_func_gnugettext_libintl=no"
  15778. fi
  15779. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15780. conftest$ac_exeext conftest.$ac_ext
  15781. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  15782. LIBS="$LIBS $LIBICONV"
  15783. cat >conftest.$ac_ext <<_ACEOF
  15784. /* confdefs.h. */
  15785. _ACEOF
  15786. cat confdefs.h >>conftest.$ac_ext
  15787. cat >>conftest.$ac_ext <<_ACEOF
  15788. /* end confdefs.h. */
  15789. #include <libintl.h>
  15790. $gt_revision_test_code
  15791. extern int _nl_msg_cat_cntr;
  15792. extern
  15793. #ifdef __cplusplus
  15794. "C"
  15795. #endif
  15796. const char *_nl_expand_alias (const char *);
  15797. int
  15798. main ()
  15799. {
  15800. bindtextdomain ("", "");
  15801. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15802. ;
  15803. return 0;
  15804. }
  15805. _ACEOF
  15806. rm -f conftest.$ac_objext conftest$ac_exeext
  15807. if { (ac_try="$ac_link"
  15808. case "(($ac_try" in
  15809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15810. *) ac_try_echo=$ac_try;;
  15811. esac
  15812. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15813. (eval "$ac_link") 2>conftest.er1
  15814. ac_status=$?
  15815. grep -v '^ *+' conftest.er1 >conftest.err
  15816. rm -f conftest.er1
  15817. cat conftest.err >&5
  15818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15819. (exit $ac_status); } && {
  15820. test -z "$ac_cxx_werror_flag" ||
  15821. test ! -s conftest.err
  15822. } && test -s conftest$ac_exeext &&
  15823. $as_test_x conftest$ac_exeext; then
  15824. LIBINTL="$LIBINTL $LIBICONV"
  15825. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  15826. eval "$gt_func_gnugettext_libintl=yes"
  15827. else
  15828. echo "$as_me: failed program was:" >&5
  15829. sed 's/^/| /' conftest.$ac_ext >&5
  15830. fi
  15831. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15832. conftest$ac_exeext conftest.$ac_ext
  15833. fi
  15834. CPPFLAGS="$gt_save_CPPFLAGS"
  15835. LIBS="$gt_save_LIBS"
  15836. fi
  15837. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  15838. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15839. echo "${ECHO_T}$ac_res" >&6; }
  15840. fi
  15841. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  15842. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  15843. && test "$PACKAGE" != gettext-runtime \
  15844. && test "$PACKAGE" != gettext-tools; }; then
  15845. gt_use_preinstalled_gnugettext=yes
  15846. else
  15847. LIBINTL=
  15848. LTLIBINTL=
  15849. INCINTL=
  15850. fi
  15851. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  15852. nls_cv_use_gnu_gettext=yes
  15853. fi
  15854. fi
  15855. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  15856. BUILD_INCLUDED_LIBINTL=yes
  15857. USE_INCLUDED_LIBINTL=yes
  15858. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  15859. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  15860. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  15861. fi
  15862. CATOBJEXT=
  15863. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15864. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15865. CATOBJEXT=.gmo
  15866. fi
  15867. if test -n "$INTL_MACOSX_LIBS"; then
  15868. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15869. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15870. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  15871. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  15872. fi
  15873. fi
  15874. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15875. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15876. cat >>confdefs.h <<\_ACEOF
  15877. #define ENABLE_NLS 1
  15878. _ACEOF
  15879. else
  15880. USE_NLS=no
  15881. fi
  15882. fi
  15883. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  15884. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  15885. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  15886. echo "${ECHO_T}$USE_NLS" >&6; }
  15887. if test "$USE_NLS" = "yes"; then
  15888. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  15889. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  15890. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15891. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15892. gt_source="external libintl"
  15893. else
  15894. gt_source="libc"
  15895. fi
  15896. else
  15897. gt_source="included intl directory"
  15898. fi
  15899. { echo "$as_me:$LINENO: result: $gt_source" >&5
  15900. echo "${ECHO_T}$gt_source" >&6; }
  15901. fi
  15902. if test "$USE_NLS" = "yes"; then
  15903. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15904. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15905. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  15906. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  15907. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  15908. echo "${ECHO_T}$LIBINTL" >&6; }
  15909. for element in $INCINTL; do
  15910. haveit=
  15911. for x in $CPPFLAGS; do
  15912. acl_save_prefix="$prefix"
  15913. prefix="$acl_final_prefix"
  15914. acl_save_exec_prefix="$exec_prefix"
  15915. exec_prefix="$acl_final_exec_prefix"
  15916. eval x=\"$x\"
  15917. exec_prefix="$acl_save_exec_prefix"
  15918. prefix="$acl_save_prefix"
  15919. if test "X$x" = "X$element"; then
  15920. haveit=yes
  15921. break
  15922. fi
  15923. done
  15924. if test -z "$haveit"; then
  15925. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  15926. fi
  15927. done
  15928. fi
  15929. cat >>confdefs.h <<\_ACEOF
  15930. #define HAVE_GETTEXT 1
  15931. _ACEOF
  15932. cat >>confdefs.h <<\_ACEOF
  15933. #define HAVE_DCGETTEXT 1
  15934. _ACEOF
  15935. fi
  15936. POSUB=po
  15937. fi
  15938. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  15939. BUILD_INCLUDED_LIBINTL=yes
  15940. fi
  15941. nls_cv_header_intl=
  15942. nls_cv_header_libgt=
  15943. DATADIRNAME=share
  15944. INSTOBJEXT=.mo
  15945. GENCAT=gencat
  15946. INTLOBJS=
  15947. if test "$USE_INCLUDED_LIBINTL" = yes; then
  15948. INTLOBJS="\$(GETTOBJS)"
  15949. fi
  15950. INTL_LIBTOOL_SUFFIX_PREFIX=
  15951. INTLLIBS="$LIBINTL"
  15952. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  15953. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  15954. if test "${ac_cv_lib_error_at_line+set}" = set; then
  15955. echo $ECHO_N "(cached) $ECHO_C" >&6
  15956. else
  15957. cat >conftest.$ac_ext <<_ACEOF
  15958. /* confdefs.h. */
  15959. _ACEOF
  15960. cat confdefs.h >>conftest.$ac_ext
  15961. cat >>conftest.$ac_ext <<_ACEOF
  15962. /* end confdefs.h. */
  15963. #include <error.h>
  15964. int
  15965. main ()
  15966. {
  15967. error_at_line (0, 0, "", 0, "an error occurred");
  15968. ;
  15969. return 0;
  15970. }
  15971. _ACEOF
  15972. rm -f conftest.$ac_objext conftest$ac_exeext
  15973. if { (ac_try="$ac_link"
  15974. case "(($ac_try" in
  15975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15976. *) ac_try_echo=$ac_try;;
  15977. esac
  15978. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15979. (eval "$ac_link") 2>conftest.er1
  15980. ac_status=$?
  15981. grep -v '^ *+' conftest.er1 >conftest.err
  15982. rm -f conftest.er1
  15983. cat conftest.err >&5
  15984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15985. (exit $ac_status); } && {
  15986. test -z "$ac_cxx_werror_flag" ||
  15987. test ! -s conftest.err
  15988. } && test -s conftest$ac_exeext &&
  15989. $as_test_x conftest$ac_exeext; then
  15990. ac_cv_lib_error_at_line=yes
  15991. else
  15992. echo "$as_me: failed program was:" >&5
  15993. sed 's/^/| /' conftest.$ac_ext >&5
  15994. ac_cv_lib_error_at_line=no
  15995. fi
  15996. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15997. conftest$ac_exeext conftest.$ac_ext
  15998. fi
  15999. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  16000. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  16001. if test $ac_cv_lib_error_at_line = no; then
  16002. case " $LIBOBJS " in
  16003. *" error.$ac_objext "* ) ;;
  16004. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  16005. ;;
  16006. esac
  16007. fi
  16008. if test $ac_cv_c_compiler_gnu = yes; then
  16009. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  16010. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  16011. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  16012. echo $ECHO_N "(cached) $ECHO_C" >&6
  16013. else
  16014. ac_pattern="Autoconf.*'x'"
  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 <sgtty.h>
  16022. Autoconf TIOCGETP
  16023. _ACEOF
  16024. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16025. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16026. ac_cv_prog_gcc_traditional=yes
  16027. else
  16028. ac_cv_prog_gcc_traditional=no
  16029. fi
  16030. rm -f conftest*
  16031. if test $ac_cv_prog_gcc_traditional = no; then
  16032. cat >conftest.$ac_ext <<_ACEOF
  16033. /* confdefs.h. */
  16034. _ACEOF
  16035. cat confdefs.h >>conftest.$ac_ext
  16036. cat >>conftest.$ac_ext <<_ACEOF
  16037. /* end confdefs.h. */
  16038. #include <termio.h>
  16039. Autoconf TCGETA
  16040. _ACEOF
  16041. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  16042. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  16043. ac_cv_prog_gcc_traditional=yes
  16044. fi
  16045. rm -f conftest*
  16046. fi
  16047. fi
  16048. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  16049. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  16050. if test $ac_cv_prog_gcc_traditional = yes; then
  16051. CC="$CC -traditional"
  16052. fi
  16053. fi
  16054. case "$target" in
  16055. *mingw*)
  16056. ;;
  16057. *)
  16058. for ac_header in stdlib.h
  16059. do
  16060. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16061. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16062. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16063. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16064. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16065. echo $ECHO_N "(cached) $ECHO_C" >&6
  16066. fi
  16067. ac_res=`eval echo '${'$as_ac_Header'}'`
  16068. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16069. echo "${ECHO_T}$ac_res" >&6; }
  16070. else
  16071. # Is the header compilable?
  16072. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16073. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16074. cat >conftest.$ac_ext <<_ACEOF
  16075. /* confdefs.h. */
  16076. _ACEOF
  16077. cat confdefs.h >>conftest.$ac_ext
  16078. cat >>conftest.$ac_ext <<_ACEOF
  16079. /* end confdefs.h. */
  16080. $ac_includes_default
  16081. #include <$ac_header>
  16082. _ACEOF
  16083. rm -f conftest.$ac_objext
  16084. if { (ac_try="$ac_compile"
  16085. case "(($ac_try" in
  16086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16087. *) ac_try_echo=$ac_try;;
  16088. esac
  16089. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16090. (eval "$ac_compile") 2>conftest.er1
  16091. ac_status=$?
  16092. grep -v '^ *+' conftest.er1 >conftest.err
  16093. rm -f conftest.er1
  16094. cat conftest.err >&5
  16095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16096. (exit $ac_status); } && {
  16097. test -z "$ac_cxx_werror_flag" ||
  16098. test ! -s conftest.err
  16099. } && test -s conftest.$ac_objext; then
  16100. ac_header_compiler=yes
  16101. else
  16102. echo "$as_me: failed program was:" >&5
  16103. sed 's/^/| /' conftest.$ac_ext >&5
  16104. ac_header_compiler=no
  16105. fi
  16106. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16107. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16108. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16109. # Is the header present?
  16110. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16111. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16112. cat >conftest.$ac_ext <<_ACEOF
  16113. /* confdefs.h. */
  16114. _ACEOF
  16115. cat confdefs.h >>conftest.$ac_ext
  16116. cat >>conftest.$ac_ext <<_ACEOF
  16117. /* end confdefs.h. */
  16118. #include <$ac_header>
  16119. _ACEOF
  16120. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16121. case "(($ac_try" in
  16122. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16123. *) ac_try_echo=$ac_try;;
  16124. esac
  16125. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16126. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16127. ac_status=$?
  16128. grep -v '^ *+' conftest.er1 >conftest.err
  16129. rm -f conftest.er1
  16130. cat conftest.err >&5
  16131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16132. (exit $ac_status); } >/dev/null && {
  16133. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16134. test ! -s conftest.err
  16135. }; then
  16136. ac_header_preproc=yes
  16137. else
  16138. echo "$as_me: failed program was:" >&5
  16139. sed 's/^/| /' conftest.$ac_ext >&5
  16140. ac_header_preproc=no
  16141. fi
  16142. rm -f conftest.err conftest.$ac_ext
  16143. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16144. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16145. # So? What about this header?
  16146. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16147. yes:no: )
  16148. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16149. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16150. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16151. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16152. ac_header_preproc=yes
  16153. ;;
  16154. no:yes:* )
  16155. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16156. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16157. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16158. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16159. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16160. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16161. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16162. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16163. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16164. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16165. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16166. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16167. ( cat <<\_ASBOX
  16168. ## ----------------------------------------------- ##
  16169. ## Report this to t-tujikawa@users.sourceforge.net ##
  16170. ## ----------------------------------------------- ##
  16171. _ASBOX
  16172. ) | sed "s/^/$as_me: WARNING: /" >&2
  16173. ;;
  16174. esac
  16175. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16176. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16177. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16178. echo $ECHO_N "(cached) $ECHO_C" >&6
  16179. else
  16180. eval "$as_ac_Header=\$ac_header_preproc"
  16181. fi
  16182. ac_res=`eval echo '${'$as_ac_Header'}'`
  16183. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16184. echo "${ECHO_T}$ac_res" >&6; }
  16185. fi
  16186. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16187. cat >>confdefs.h <<_ACEOF
  16188. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16189. _ACEOF
  16190. fi
  16191. done
  16192. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  16193. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  16194. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  16195. echo $ECHO_N "(cached) $ECHO_C" >&6
  16196. else
  16197. if test "$cross_compiling" = yes; then
  16198. ac_cv_func_malloc_0_nonnull=no
  16199. else
  16200. cat >conftest.$ac_ext <<_ACEOF
  16201. /* confdefs.h. */
  16202. _ACEOF
  16203. cat confdefs.h >>conftest.$ac_ext
  16204. cat >>conftest.$ac_ext <<_ACEOF
  16205. /* end confdefs.h. */
  16206. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16207. # include <stdlib.h>
  16208. #else
  16209. char *malloc ();
  16210. #endif
  16211. int
  16212. main ()
  16213. {
  16214. return ! malloc (0);
  16215. ;
  16216. return 0;
  16217. }
  16218. _ACEOF
  16219. rm -f conftest$ac_exeext
  16220. if { (ac_try="$ac_link"
  16221. case "(($ac_try" in
  16222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16223. *) ac_try_echo=$ac_try;;
  16224. esac
  16225. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16226. (eval "$ac_link") 2>&5
  16227. ac_status=$?
  16228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16229. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16230. { (case "(($ac_try" in
  16231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16232. *) ac_try_echo=$ac_try;;
  16233. esac
  16234. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16235. (eval "$ac_try") 2>&5
  16236. ac_status=$?
  16237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16238. (exit $ac_status); }; }; then
  16239. ac_cv_func_malloc_0_nonnull=yes
  16240. else
  16241. echo "$as_me: program exited with status $ac_status" >&5
  16242. echo "$as_me: failed program was:" >&5
  16243. sed 's/^/| /' conftest.$ac_ext >&5
  16244. ( exit $ac_status )
  16245. ac_cv_func_malloc_0_nonnull=no
  16246. fi
  16247. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16248. fi
  16249. fi
  16250. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  16251. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  16252. if test $ac_cv_func_malloc_0_nonnull = yes; then
  16253. cat >>confdefs.h <<\_ACEOF
  16254. #define HAVE_MALLOC 1
  16255. _ACEOF
  16256. else
  16257. cat >>confdefs.h <<\_ACEOF
  16258. #define HAVE_MALLOC 0
  16259. _ACEOF
  16260. case " $LIBOBJS " in
  16261. *" malloc.$ac_objext "* ) ;;
  16262. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  16263. ;;
  16264. esac
  16265. cat >>confdefs.h <<\_ACEOF
  16266. #define malloc rpl_malloc
  16267. _ACEOF
  16268. fi
  16269. for ac_header in stdlib.h
  16270. do
  16271. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16272. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16273. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16274. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16275. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16276. echo $ECHO_N "(cached) $ECHO_C" >&6
  16277. fi
  16278. ac_res=`eval echo '${'$as_ac_Header'}'`
  16279. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16280. echo "${ECHO_T}$ac_res" >&6; }
  16281. else
  16282. # Is the header compilable?
  16283. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16284. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16285. cat >conftest.$ac_ext <<_ACEOF
  16286. /* confdefs.h. */
  16287. _ACEOF
  16288. cat confdefs.h >>conftest.$ac_ext
  16289. cat >>conftest.$ac_ext <<_ACEOF
  16290. /* end confdefs.h. */
  16291. $ac_includes_default
  16292. #include <$ac_header>
  16293. _ACEOF
  16294. rm -f conftest.$ac_objext
  16295. if { (ac_try="$ac_compile"
  16296. case "(($ac_try" in
  16297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16298. *) ac_try_echo=$ac_try;;
  16299. esac
  16300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16301. (eval "$ac_compile") 2>conftest.er1
  16302. ac_status=$?
  16303. grep -v '^ *+' conftest.er1 >conftest.err
  16304. rm -f conftest.er1
  16305. cat conftest.err >&5
  16306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16307. (exit $ac_status); } && {
  16308. test -z "$ac_cxx_werror_flag" ||
  16309. test ! -s conftest.err
  16310. } && test -s conftest.$ac_objext; then
  16311. ac_header_compiler=yes
  16312. else
  16313. echo "$as_me: failed program was:" >&5
  16314. sed 's/^/| /' conftest.$ac_ext >&5
  16315. ac_header_compiler=no
  16316. fi
  16317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16318. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16319. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16320. # Is the header present?
  16321. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16322. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16323. cat >conftest.$ac_ext <<_ACEOF
  16324. /* confdefs.h. */
  16325. _ACEOF
  16326. cat confdefs.h >>conftest.$ac_ext
  16327. cat >>conftest.$ac_ext <<_ACEOF
  16328. /* end confdefs.h. */
  16329. #include <$ac_header>
  16330. _ACEOF
  16331. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16332. case "(($ac_try" in
  16333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16334. *) ac_try_echo=$ac_try;;
  16335. esac
  16336. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16337. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16338. ac_status=$?
  16339. grep -v '^ *+' conftest.er1 >conftest.err
  16340. rm -f conftest.er1
  16341. cat conftest.err >&5
  16342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16343. (exit $ac_status); } >/dev/null && {
  16344. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16345. test ! -s conftest.err
  16346. }; then
  16347. ac_header_preproc=yes
  16348. else
  16349. echo "$as_me: failed program was:" >&5
  16350. sed 's/^/| /' conftest.$ac_ext >&5
  16351. ac_header_preproc=no
  16352. fi
  16353. rm -f conftest.err conftest.$ac_ext
  16354. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16355. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16356. # So? What about this header?
  16357. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16358. yes:no: )
  16359. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16360. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16361. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16362. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16363. ac_header_preproc=yes
  16364. ;;
  16365. no:yes:* )
  16366. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16367. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16368. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16369. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16370. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16371. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16372. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16373. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16374. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16375. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16376. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16377. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16378. ( cat <<\_ASBOX
  16379. ## ----------------------------------------------- ##
  16380. ## Report this to t-tujikawa@users.sourceforge.net ##
  16381. ## ----------------------------------------------- ##
  16382. _ASBOX
  16383. ) | sed "s/^/$as_me: WARNING: /" >&2
  16384. ;;
  16385. esac
  16386. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16387. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16388. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16389. echo $ECHO_N "(cached) $ECHO_C" >&6
  16390. else
  16391. eval "$as_ac_Header=\$ac_header_preproc"
  16392. fi
  16393. ac_res=`eval echo '${'$as_ac_Header'}'`
  16394. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16395. echo "${ECHO_T}$ac_res" >&6; }
  16396. fi
  16397. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16398. cat >>confdefs.h <<_ACEOF
  16399. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16400. _ACEOF
  16401. fi
  16402. done
  16403. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  16404. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  16405. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  16406. echo $ECHO_N "(cached) $ECHO_C" >&6
  16407. else
  16408. if test "$cross_compiling" = yes; then
  16409. ac_cv_func_realloc_0_nonnull=no
  16410. else
  16411. cat >conftest.$ac_ext <<_ACEOF
  16412. /* confdefs.h. */
  16413. _ACEOF
  16414. cat confdefs.h >>conftest.$ac_ext
  16415. cat >>conftest.$ac_ext <<_ACEOF
  16416. /* end confdefs.h. */
  16417. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  16418. # include <stdlib.h>
  16419. #else
  16420. char *realloc ();
  16421. #endif
  16422. int
  16423. main ()
  16424. {
  16425. return ! realloc (0, 0);
  16426. ;
  16427. return 0;
  16428. }
  16429. _ACEOF
  16430. rm -f conftest$ac_exeext
  16431. if { (ac_try="$ac_link"
  16432. case "(($ac_try" in
  16433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16434. *) ac_try_echo=$ac_try;;
  16435. esac
  16436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16437. (eval "$ac_link") 2>&5
  16438. ac_status=$?
  16439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16440. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16441. { (case "(($ac_try" in
  16442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16443. *) ac_try_echo=$ac_try;;
  16444. esac
  16445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16446. (eval "$ac_try") 2>&5
  16447. ac_status=$?
  16448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16449. (exit $ac_status); }; }; then
  16450. ac_cv_func_realloc_0_nonnull=yes
  16451. else
  16452. echo "$as_me: program exited with status $ac_status" >&5
  16453. echo "$as_me: failed program was:" >&5
  16454. sed 's/^/| /' conftest.$ac_ext >&5
  16455. ( exit $ac_status )
  16456. ac_cv_func_realloc_0_nonnull=no
  16457. fi
  16458. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16459. fi
  16460. fi
  16461. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  16462. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  16463. if test $ac_cv_func_realloc_0_nonnull = yes; then
  16464. cat >>confdefs.h <<\_ACEOF
  16465. #define HAVE_REALLOC 1
  16466. _ACEOF
  16467. else
  16468. cat >>confdefs.h <<\_ACEOF
  16469. #define HAVE_REALLOC 0
  16470. _ACEOF
  16471. case " $LIBOBJS " in
  16472. *" realloc.$ac_objext "* ) ;;
  16473. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16474. ;;
  16475. esac
  16476. cat >>confdefs.h <<\_ACEOF
  16477. #define realloc rpl_realloc
  16478. _ACEOF
  16479. fi
  16480. ;;
  16481. esac
  16482. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16483. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16484. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16485. echo $ECHO_N "(cached) $ECHO_C" >&6
  16486. else
  16487. if test "$cross_compiling" = yes; then
  16488. ac_cv_func_memcmp_working=no
  16489. else
  16490. cat >conftest.$ac_ext <<_ACEOF
  16491. /* confdefs.h. */
  16492. _ACEOF
  16493. cat confdefs.h >>conftest.$ac_ext
  16494. cat >>conftest.$ac_ext <<_ACEOF
  16495. /* end confdefs.h. */
  16496. $ac_includes_default
  16497. int
  16498. main ()
  16499. {
  16500. /* Some versions of memcmp are not 8-bit clean. */
  16501. char c0 = '\100', c1 = '\200', c2 = '\201';
  16502. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16503. return 1;
  16504. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16505. or more and with at least one buffer not starting on a 4-byte boundary.
  16506. William Lewis provided this test program. */
  16507. {
  16508. char foo[21];
  16509. char bar[21];
  16510. int i;
  16511. for (i = 0; i < 4; i++)
  16512. {
  16513. char *a = foo + i;
  16514. char *b = bar + i;
  16515. strcpy (a, "--------01111111");
  16516. strcpy (b, "--------10000000");
  16517. if (memcmp (a, b, 16) >= 0)
  16518. return 1;
  16519. }
  16520. return 0;
  16521. }
  16522. ;
  16523. return 0;
  16524. }
  16525. _ACEOF
  16526. rm -f conftest$ac_exeext
  16527. if { (ac_try="$ac_link"
  16528. case "(($ac_try" in
  16529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16530. *) ac_try_echo=$ac_try;;
  16531. esac
  16532. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16533. (eval "$ac_link") 2>&5
  16534. ac_status=$?
  16535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16536. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16537. { (case "(($ac_try" in
  16538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16539. *) ac_try_echo=$ac_try;;
  16540. esac
  16541. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16542. (eval "$ac_try") 2>&5
  16543. ac_status=$?
  16544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16545. (exit $ac_status); }; }; then
  16546. ac_cv_func_memcmp_working=yes
  16547. else
  16548. echo "$as_me: program exited with status $ac_status" >&5
  16549. echo "$as_me: failed program was:" >&5
  16550. sed 's/^/| /' conftest.$ac_ext >&5
  16551. ( exit $ac_status )
  16552. ac_cv_func_memcmp_working=no
  16553. fi
  16554. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16555. fi
  16556. fi
  16557. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16558. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16559. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16560. *" memcmp.$ac_objext "* ) ;;
  16561. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16562. ;;
  16563. esac
  16564. for ac_header in $ac_header_list
  16565. do
  16566. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16567. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16568. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16569. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16570. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16571. echo $ECHO_N "(cached) $ECHO_C" >&6
  16572. fi
  16573. ac_res=`eval echo '${'$as_ac_Header'}'`
  16574. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16575. echo "${ECHO_T}$ac_res" >&6; }
  16576. else
  16577. # Is the header compilable?
  16578. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16579. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16580. cat >conftest.$ac_ext <<_ACEOF
  16581. /* confdefs.h. */
  16582. _ACEOF
  16583. cat confdefs.h >>conftest.$ac_ext
  16584. cat >>conftest.$ac_ext <<_ACEOF
  16585. /* end confdefs.h. */
  16586. $ac_includes_default
  16587. #include <$ac_header>
  16588. _ACEOF
  16589. rm -f conftest.$ac_objext
  16590. if { (ac_try="$ac_compile"
  16591. case "(($ac_try" in
  16592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16593. *) ac_try_echo=$ac_try;;
  16594. esac
  16595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16596. (eval "$ac_compile") 2>conftest.er1
  16597. ac_status=$?
  16598. grep -v '^ *+' conftest.er1 >conftest.err
  16599. rm -f conftest.er1
  16600. cat conftest.err >&5
  16601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16602. (exit $ac_status); } && {
  16603. test -z "$ac_cxx_werror_flag" ||
  16604. test ! -s conftest.err
  16605. } && test -s conftest.$ac_objext; then
  16606. ac_header_compiler=yes
  16607. else
  16608. echo "$as_me: failed program was:" >&5
  16609. sed 's/^/| /' conftest.$ac_ext >&5
  16610. ac_header_compiler=no
  16611. fi
  16612. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16613. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16614. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16615. # Is the header present?
  16616. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16617. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16618. cat >conftest.$ac_ext <<_ACEOF
  16619. /* confdefs.h. */
  16620. _ACEOF
  16621. cat confdefs.h >>conftest.$ac_ext
  16622. cat >>conftest.$ac_ext <<_ACEOF
  16623. /* end confdefs.h. */
  16624. #include <$ac_header>
  16625. _ACEOF
  16626. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16627. case "(($ac_try" in
  16628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16629. *) ac_try_echo=$ac_try;;
  16630. esac
  16631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16632. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16633. ac_status=$?
  16634. grep -v '^ *+' conftest.er1 >conftest.err
  16635. rm -f conftest.er1
  16636. cat conftest.err >&5
  16637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16638. (exit $ac_status); } >/dev/null && {
  16639. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16640. test ! -s conftest.err
  16641. }; then
  16642. ac_header_preproc=yes
  16643. else
  16644. echo "$as_me: failed program was:" >&5
  16645. sed 's/^/| /' conftest.$ac_ext >&5
  16646. ac_header_preproc=no
  16647. fi
  16648. rm -f conftest.err conftest.$ac_ext
  16649. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16650. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16651. # So? What about this header?
  16652. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16653. yes:no: )
  16654. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16655. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16656. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16657. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16658. ac_header_preproc=yes
  16659. ;;
  16660. no:yes:* )
  16661. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16662. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16663. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16664. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16665. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16666. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16667. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16668. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16669. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16670. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16671. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16672. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16673. ( cat <<\_ASBOX
  16674. ## ----------------------------------------------- ##
  16675. ## Report this to t-tujikawa@users.sourceforge.net ##
  16676. ## ----------------------------------------------- ##
  16677. _ASBOX
  16678. ) | sed "s/^/$as_me: WARNING: /" >&2
  16679. ;;
  16680. esac
  16681. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16682. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16683. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16684. echo $ECHO_N "(cached) $ECHO_C" >&6
  16685. else
  16686. eval "$as_ac_Header=\$ac_header_preproc"
  16687. fi
  16688. ac_res=`eval echo '${'$as_ac_Header'}'`
  16689. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16690. echo "${ECHO_T}$ac_res" >&6; }
  16691. fi
  16692. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16693. cat >>confdefs.h <<_ACEOF
  16694. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16695. _ACEOF
  16696. fi
  16697. done
  16698. for ac_func in $ac_func_list
  16699. do
  16700. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16701. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16702. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16703. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16704. echo $ECHO_N "(cached) $ECHO_C" >&6
  16705. else
  16706. cat >conftest.$ac_ext <<_ACEOF
  16707. /* confdefs.h. */
  16708. _ACEOF
  16709. cat confdefs.h >>conftest.$ac_ext
  16710. cat >>conftest.$ac_ext <<_ACEOF
  16711. /* end confdefs.h. */
  16712. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16713. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16714. #define $ac_func innocuous_$ac_func
  16715. /* System header to define __stub macros and hopefully few prototypes,
  16716. which can conflict with char $ac_func (); below.
  16717. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16718. <limits.h> exists even on freestanding compilers. */
  16719. #ifdef __STDC__
  16720. # include <limits.h>
  16721. #else
  16722. # include <assert.h>
  16723. #endif
  16724. #undef $ac_func
  16725. /* Override any GCC internal prototype to avoid an error.
  16726. Use char because int might match the return type of a GCC
  16727. builtin and then its argument prototype would still apply. */
  16728. #ifdef __cplusplus
  16729. extern "C"
  16730. #endif
  16731. char $ac_func ();
  16732. /* The GNU C library defines this for functions which it implements
  16733. to always fail with ENOSYS. Some functions are actually named
  16734. something starting with __ and the normal name is an alias. */
  16735. #if defined __stub_$ac_func || defined __stub___$ac_func
  16736. choke me
  16737. #endif
  16738. int
  16739. main ()
  16740. {
  16741. return $ac_func ();
  16742. ;
  16743. return 0;
  16744. }
  16745. _ACEOF
  16746. rm -f conftest.$ac_objext conftest$ac_exeext
  16747. if { (ac_try="$ac_link"
  16748. case "(($ac_try" in
  16749. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16750. *) ac_try_echo=$ac_try;;
  16751. esac
  16752. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16753. (eval "$ac_link") 2>conftest.er1
  16754. ac_status=$?
  16755. grep -v '^ *+' conftest.er1 >conftest.err
  16756. rm -f conftest.er1
  16757. cat conftest.err >&5
  16758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16759. (exit $ac_status); } && {
  16760. test -z "$ac_cxx_werror_flag" ||
  16761. test ! -s conftest.err
  16762. } && test -s conftest$ac_exeext &&
  16763. $as_test_x conftest$ac_exeext; then
  16764. eval "$as_ac_var=yes"
  16765. else
  16766. echo "$as_me: failed program was:" >&5
  16767. sed 's/^/| /' conftest.$ac_ext >&5
  16768. eval "$as_ac_var=no"
  16769. fi
  16770. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16771. conftest$ac_exeext conftest.$ac_ext
  16772. fi
  16773. ac_res=`eval echo '${'$as_ac_var'}'`
  16774. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16775. echo "${ECHO_T}$ac_res" >&6; }
  16776. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16777. cat >>confdefs.h <<_ACEOF
  16778. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16779. _ACEOF
  16780. fi
  16781. done
  16782. { echo "$as_me:$LINENO: checking for working mktime" >&5
  16783. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  16784. if test "${ac_cv_func_working_mktime+set}" = set; then
  16785. echo $ECHO_N "(cached) $ECHO_C" >&6
  16786. else
  16787. if test "$cross_compiling" = yes; then
  16788. ac_cv_func_working_mktime=no
  16789. else
  16790. cat >conftest.$ac_ext <<_ACEOF
  16791. /* confdefs.h. */
  16792. _ACEOF
  16793. cat confdefs.h >>conftest.$ac_ext
  16794. cat >>conftest.$ac_ext <<_ACEOF
  16795. /* end confdefs.h. */
  16796. /* Test program from Paul Eggert and Tony Leneis. */
  16797. #ifdef TIME_WITH_SYS_TIME
  16798. # include <sys/time.h>
  16799. # include <time.h>
  16800. #else
  16801. # ifdef HAVE_SYS_TIME_H
  16802. # include <sys/time.h>
  16803. # else
  16804. # include <time.h>
  16805. # endif
  16806. #endif
  16807. #include <limits.h>
  16808. #include <stdlib.h>
  16809. #ifdef HAVE_UNISTD_H
  16810. # include <unistd.h>
  16811. #endif
  16812. #ifndef HAVE_ALARM
  16813. # define alarm(X) /* empty */
  16814. #endif
  16815. /* Work around redefinition to rpl_putenv by other config tests. */
  16816. #undef putenv
  16817. static time_t time_t_max;
  16818. static time_t time_t_min;
  16819. /* Values we'll use to set the TZ environment variable. */
  16820. static char *tz_strings[] = {
  16821. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  16822. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  16823. };
  16824. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  16825. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  16826. Based on a problem report from Andreas Jaeger. */
  16827. static int
  16828. spring_forward_gap ()
  16829. {
  16830. /* glibc (up to about 1998-10-07) failed this test. */
  16831. struct tm tm;
  16832. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16833. instead of "TZ=America/Vancouver" in order to detect the bug even
  16834. on systems that don't support the Olson extension, or don't have the
  16835. full zoneinfo tables installed. */
  16836. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16837. tm.tm_year = 98;
  16838. tm.tm_mon = 3;
  16839. tm.tm_mday = 5;
  16840. tm.tm_hour = 2;
  16841. tm.tm_min = 0;
  16842. tm.tm_sec = 0;
  16843. tm.tm_isdst = -1;
  16844. return mktime (&tm) != (time_t) -1;
  16845. }
  16846. static int
  16847. mktime_test1 (now)
  16848. time_t now;
  16849. {
  16850. struct tm *lt;
  16851. return ! (lt = localtime (&now)) || mktime (lt) == now;
  16852. }
  16853. static int
  16854. mktime_test (now)
  16855. time_t now;
  16856. {
  16857. return (mktime_test1 (now)
  16858. && mktime_test1 ((time_t) (time_t_max - now))
  16859. && mktime_test1 ((time_t) (time_t_min + now)));
  16860. }
  16861. static int
  16862. irix_6_4_bug ()
  16863. {
  16864. /* Based on code from Ariel Faigon. */
  16865. struct tm tm;
  16866. tm.tm_year = 96;
  16867. tm.tm_mon = 3;
  16868. tm.tm_mday = 0;
  16869. tm.tm_hour = 0;
  16870. tm.tm_min = 0;
  16871. tm.tm_sec = 0;
  16872. tm.tm_isdst = -1;
  16873. mktime (&tm);
  16874. return tm.tm_mon == 2 && tm.tm_mday == 31;
  16875. }
  16876. static int
  16877. bigtime_test (j)
  16878. int j;
  16879. {
  16880. struct tm tm;
  16881. time_t now;
  16882. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  16883. now = mktime (&tm);
  16884. if (now != (time_t) -1)
  16885. {
  16886. struct tm *lt = localtime (&now);
  16887. if (! (lt
  16888. && lt->tm_year == tm.tm_year
  16889. && lt->tm_mon == tm.tm_mon
  16890. && lt->tm_mday == tm.tm_mday
  16891. && lt->tm_hour == tm.tm_hour
  16892. && lt->tm_min == tm.tm_min
  16893. && lt->tm_sec == tm.tm_sec
  16894. && lt->tm_yday == tm.tm_yday
  16895. && lt->tm_wday == tm.tm_wday
  16896. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  16897. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  16898. return 0;
  16899. }
  16900. return 1;
  16901. }
  16902. static int
  16903. year_2050_test ()
  16904. {
  16905. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  16906. ignoring leap seconds. */
  16907. unsigned long int answer = 2527315200UL;
  16908. struct tm tm;
  16909. time_t t;
  16910. tm.tm_year = 2050 - 1900;
  16911. tm.tm_mon = 2 - 1;
  16912. tm.tm_mday = 1;
  16913. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  16914. tm.tm_isdst = -1;
  16915. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16916. instead of "TZ=America/Vancouver" in order to detect the bug even
  16917. on systems that don't support the Olson extension, or don't have the
  16918. full zoneinfo tables installed. */
  16919. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16920. t = mktime (&tm);
  16921. /* Check that the result is either a failure, or close enough
  16922. to the correct answer that we can assume the discrepancy is
  16923. due to leap seconds. */
  16924. return (t == (time_t) -1
  16925. || (0 < t && answer - 120 <= t && t <= answer + 120));
  16926. }
  16927. int
  16928. main ()
  16929. {
  16930. time_t t, delta;
  16931. int i, j;
  16932. /* This test makes some buggy mktime implementations loop.
  16933. Give up after 60 seconds; a mktime slower than that
  16934. isn't worth using anyway. */
  16935. alarm (60);
  16936. for (;;)
  16937. {
  16938. t = (time_t_max << 1) + 1;
  16939. if (t <= time_t_max)
  16940. break;
  16941. time_t_max = t;
  16942. }
  16943. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  16944. delta = time_t_max / 997; /* a suitable prime number */
  16945. for (i = 0; i < N_STRINGS; i++)
  16946. {
  16947. if (tz_strings[i])
  16948. putenv (tz_strings[i]);
  16949. for (t = 0; t <= time_t_max - delta; t += delta)
  16950. if (! mktime_test (t))
  16951. return 1;
  16952. if (! (mktime_test ((time_t) 1)
  16953. && mktime_test ((time_t) (60 * 60))
  16954. && mktime_test ((time_t) (60 * 60 * 24))))
  16955. return 1;
  16956. for (j = 1; ; j <<= 1)
  16957. if (! bigtime_test (j))
  16958. return 1;
  16959. else if (INT_MAX / 2 < j)
  16960. break;
  16961. if (! bigtime_test (INT_MAX))
  16962. return 1;
  16963. }
  16964. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  16965. }
  16966. _ACEOF
  16967. rm -f conftest$ac_exeext
  16968. if { (ac_try="$ac_link"
  16969. case "(($ac_try" in
  16970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16971. *) ac_try_echo=$ac_try;;
  16972. esac
  16973. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16974. (eval "$ac_link") 2>&5
  16975. ac_status=$?
  16976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16977. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16978. { (case "(($ac_try" in
  16979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16980. *) ac_try_echo=$ac_try;;
  16981. esac
  16982. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16983. (eval "$ac_try") 2>&5
  16984. ac_status=$?
  16985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16986. (exit $ac_status); }; }; then
  16987. ac_cv_func_working_mktime=yes
  16988. else
  16989. echo "$as_me: program exited with status $ac_status" >&5
  16990. echo "$as_me: failed program was:" >&5
  16991. sed 's/^/| /' conftest.$ac_ext >&5
  16992. ( exit $ac_status )
  16993. ac_cv_func_working_mktime=no
  16994. fi
  16995. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16996. fi
  16997. fi
  16998. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  16999. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  17000. if test $ac_cv_func_working_mktime = no; then
  17001. case " $LIBOBJS " in
  17002. *" mktime.$ac_objext "* ) ;;
  17003. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17004. ;;
  17005. esac
  17006. fi
  17007. for ac_header in stdlib.h unistd.h
  17008. do
  17009. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17010. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17011. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17012. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17013. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17014. echo $ECHO_N "(cached) $ECHO_C" >&6
  17015. fi
  17016. ac_res=`eval echo '${'$as_ac_Header'}'`
  17017. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17018. echo "${ECHO_T}$ac_res" >&6; }
  17019. else
  17020. # Is the header compilable?
  17021. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17022. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17023. cat >conftest.$ac_ext <<_ACEOF
  17024. /* confdefs.h. */
  17025. _ACEOF
  17026. cat confdefs.h >>conftest.$ac_ext
  17027. cat >>conftest.$ac_ext <<_ACEOF
  17028. /* end confdefs.h. */
  17029. $ac_includes_default
  17030. #include <$ac_header>
  17031. _ACEOF
  17032. rm -f conftest.$ac_objext
  17033. if { (ac_try="$ac_compile"
  17034. case "(($ac_try" in
  17035. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17036. *) ac_try_echo=$ac_try;;
  17037. esac
  17038. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17039. (eval "$ac_compile") 2>conftest.er1
  17040. ac_status=$?
  17041. grep -v '^ *+' conftest.er1 >conftest.err
  17042. rm -f conftest.er1
  17043. cat conftest.err >&5
  17044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17045. (exit $ac_status); } && {
  17046. test -z "$ac_cxx_werror_flag" ||
  17047. test ! -s conftest.err
  17048. } && test -s conftest.$ac_objext; then
  17049. ac_header_compiler=yes
  17050. else
  17051. echo "$as_me: failed program was:" >&5
  17052. sed 's/^/| /' conftest.$ac_ext >&5
  17053. ac_header_compiler=no
  17054. fi
  17055. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17056. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17057. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17058. # Is the header present?
  17059. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17060. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17061. cat >conftest.$ac_ext <<_ACEOF
  17062. /* confdefs.h. */
  17063. _ACEOF
  17064. cat confdefs.h >>conftest.$ac_ext
  17065. cat >>conftest.$ac_ext <<_ACEOF
  17066. /* end confdefs.h. */
  17067. #include <$ac_header>
  17068. _ACEOF
  17069. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17070. case "(($ac_try" in
  17071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17072. *) ac_try_echo=$ac_try;;
  17073. esac
  17074. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17075. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17076. ac_status=$?
  17077. grep -v '^ *+' conftest.er1 >conftest.err
  17078. rm -f conftest.er1
  17079. cat conftest.err >&5
  17080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17081. (exit $ac_status); } >/dev/null && {
  17082. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17083. test ! -s conftest.err
  17084. }; then
  17085. ac_header_preproc=yes
  17086. else
  17087. echo "$as_me: failed program was:" >&5
  17088. sed 's/^/| /' conftest.$ac_ext >&5
  17089. ac_header_preproc=no
  17090. fi
  17091. rm -f conftest.err conftest.$ac_ext
  17092. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17093. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17094. # So? What about this header?
  17095. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17096. yes:no: )
  17097. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17098. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17099. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17100. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17101. ac_header_preproc=yes
  17102. ;;
  17103. no:yes:* )
  17104. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17105. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17106. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17107. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17108. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17109. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17110. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17111. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17112. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17113. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17114. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17115. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17116. ( cat <<\_ASBOX
  17117. ## ----------------------------------------------- ##
  17118. ## Report this to t-tujikawa@users.sourceforge.net ##
  17119. ## ----------------------------------------------- ##
  17120. _ASBOX
  17121. ) | sed "s/^/$as_me: WARNING: /" >&2
  17122. ;;
  17123. esac
  17124. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17125. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17126. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17127. echo $ECHO_N "(cached) $ECHO_C" >&6
  17128. else
  17129. eval "$as_ac_Header=\$ac_header_preproc"
  17130. fi
  17131. ac_res=`eval echo '${'$as_ac_Header'}'`
  17132. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17133. echo "${ECHO_T}$ac_res" >&6; }
  17134. fi
  17135. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17136. cat >>confdefs.h <<_ACEOF
  17137. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17138. _ACEOF
  17139. fi
  17140. done
  17141. for ac_func in getpagesize
  17142. do
  17143. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17144. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17145. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17146. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17147. echo $ECHO_N "(cached) $ECHO_C" >&6
  17148. else
  17149. cat >conftest.$ac_ext <<_ACEOF
  17150. /* confdefs.h. */
  17151. _ACEOF
  17152. cat confdefs.h >>conftest.$ac_ext
  17153. cat >>conftest.$ac_ext <<_ACEOF
  17154. /* end confdefs.h. */
  17155. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17156. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17157. #define $ac_func innocuous_$ac_func
  17158. /* System header to define __stub macros and hopefully few prototypes,
  17159. which can conflict with char $ac_func (); below.
  17160. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17161. <limits.h> exists even on freestanding compilers. */
  17162. #ifdef __STDC__
  17163. # include <limits.h>
  17164. #else
  17165. # include <assert.h>
  17166. #endif
  17167. #undef $ac_func
  17168. /* Override any GCC internal prototype to avoid an error.
  17169. Use char because int might match the return type of a GCC
  17170. builtin and then its argument prototype would still apply. */
  17171. #ifdef __cplusplus
  17172. extern "C"
  17173. #endif
  17174. char $ac_func ();
  17175. /* The GNU C library defines this for functions which it implements
  17176. to always fail with ENOSYS. Some functions are actually named
  17177. something starting with __ and the normal name is an alias. */
  17178. #if defined __stub_$ac_func || defined __stub___$ac_func
  17179. choke me
  17180. #endif
  17181. int
  17182. main ()
  17183. {
  17184. return $ac_func ();
  17185. ;
  17186. return 0;
  17187. }
  17188. _ACEOF
  17189. rm -f conftest.$ac_objext conftest$ac_exeext
  17190. if { (ac_try="$ac_link"
  17191. case "(($ac_try" in
  17192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17193. *) ac_try_echo=$ac_try;;
  17194. esac
  17195. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17196. (eval "$ac_link") 2>conftest.er1
  17197. ac_status=$?
  17198. grep -v '^ *+' conftest.er1 >conftest.err
  17199. rm -f conftest.er1
  17200. cat conftest.err >&5
  17201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17202. (exit $ac_status); } && {
  17203. test -z "$ac_cxx_werror_flag" ||
  17204. test ! -s conftest.err
  17205. } && test -s conftest$ac_exeext &&
  17206. $as_test_x conftest$ac_exeext; then
  17207. eval "$as_ac_var=yes"
  17208. else
  17209. echo "$as_me: failed program was:" >&5
  17210. sed 's/^/| /' conftest.$ac_ext >&5
  17211. eval "$as_ac_var=no"
  17212. fi
  17213. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17214. conftest$ac_exeext conftest.$ac_ext
  17215. fi
  17216. ac_res=`eval echo '${'$as_ac_var'}'`
  17217. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17218. echo "${ECHO_T}$ac_res" >&6; }
  17219. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17220. cat >>confdefs.h <<_ACEOF
  17221. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17222. _ACEOF
  17223. fi
  17224. done
  17225. { echo "$as_me:$LINENO: checking for working mmap" >&5
  17226. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  17227. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  17228. echo $ECHO_N "(cached) $ECHO_C" >&6
  17229. else
  17230. if test "$cross_compiling" = yes; then
  17231. ac_cv_func_mmap_fixed_mapped=no
  17232. else
  17233. cat >conftest.$ac_ext <<_ACEOF
  17234. /* confdefs.h. */
  17235. _ACEOF
  17236. cat confdefs.h >>conftest.$ac_ext
  17237. cat >>conftest.$ac_ext <<_ACEOF
  17238. /* end confdefs.h. */
  17239. $ac_includes_default
  17240. /* malloc might have been renamed as rpl_malloc. */
  17241. #undef malloc
  17242. /* Thanks to Mike Haertel and Jim Avera for this test.
  17243. Here is a matrix of mmap possibilities:
  17244. mmap private not fixed
  17245. mmap private fixed at somewhere currently unmapped
  17246. mmap private fixed at somewhere already mapped
  17247. mmap shared not fixed
  17248. mmap shared fixed at somewhere currently unmapped
  17249. mmap shared fixed at somewhere already mapped
  17250. For private mappings, we should verify that changes cannot be read()
  17251. back from the file, nor mmap's back from the file at a different
  17252. address. (There have been systems where private was not correctly
  17253. implemented like the infamous i386 svr4.0, and systems where the
  17254. VM page cache was not coherent with the file system buffer cache
  17255. like early versions of FreeBSD and possibly contemporary NetBSD.)
  17256. For shared mappings, we should conversely verify that changes get
  17257. propagated back to all the places they're supposed to be.
  17258. Grep wants private fixed already mapped.
  17259. The main things grep needs to know about mmap are:
  17260. * does it exist and is it safe to write into the mmap'd area
  17261. * how to use it (BSD variants) */
  17262. #include <fcntl.h>
  17263. #include <sys/mman.h>
  17264. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  17265. char *malloc ();
  17266. #endif
  17267. /* This mess was copied from the GNU getpagesize.h. */
  17268. #ifndef HAVE_GETPAGESIZE
  17269. /* Assume that all systems that can run configure have sys/param.h. */
  17270. # ifndef HAVE_SYS_PARAM_H
  17271. # define HAVE_SYS_PARAM_H 1
  17272. # endif
  17273. # ifdef _SC_PAGESIZE
  17274. # define getpagesize() sysconf(_SC_PAGESIZE)
  17275. # else /* no _SC_PAGESIZE */
  17276. # ifdef HAVE_SYS_PARAM_H
  17277. # include <sys/param.h>
  17278. # ifdef EXEC_PAGESIZE
  17279. # define getpagesize() EXEC_PAGESIZE
  17280. # else /* no EXEC_PAGESIZE */
  17281. # ifdef NBPG
  17282. # define getpagesize() NBPG * CLSIZE
  17283. # ifndef CLSIZE
  17284. # define CLSIZE 1
  17285. # endif /* no CLSIZE */
  17286. # else /* no NBPG */
  17287. # ifdef NBPC
  17288. # define getpagesize() NBPC
  17289. # else /* no NBPC */
  17290. # ifdef PAGESIZE
  17291. # define getpagesize() PAGESIZE
  17292. # endif /* PAGESIZE */
  17293. # endif /* no NBPC */
  17294. # endif /* no NBPG */
  17295. # endif /* no EXEC_PAGESIZE */
  17296. # else /* no HAVE_SYS_PARAM_H */
  17297. # define getpagesize() 8192 /* punt totally */
  17298. # endif /* no HAVE_SYS_PARAM_H */
  17299. # endif /* no _SC_PAGESIZE */
  17300. #endif /* no HAVE_GETPAGESIZE */
  17301. int
  17302. main ()
  17303. {
  17304. char *data, *data2, *data3;
  17305. int i, pagesize;
  17306. int fd;
  17307. pagesize = getpagesize ();
  17308. /* First, make a file with some known garbage in it. */
  17309. data = (char *) malloc (pagesize);
  17310. if (!data)
  17311. return 1;
  17312. for (i = 0; i < pagesize; ++i)
  17313. *(data + i) = rand ();
  17314. umask (0);
  17315. fd = creat ("conftest.mmap", 0600);
  17316. if (fd < 0)
  17317. return 1;
  17318. if (write (fd, data, pagesize) != pagesize)
  17319. return 1;
  17320. close (fd);
  17321. /* Next, try to mmap the file at a fixed address which already has
  17322. something else allocated at it. If we can, also make sure that
  17323. we see the same garbage. */
  17324. fd = open ("conftest.mmap", O_RDWR);
  17325. if (fd < 0)
  17326. return 1;
  17327. data2 = (char *) malloc (2 * pagesize);
  17328. if (!data2)
  17329. return 1;
  17330. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  17331. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  17332. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  17333. return 1;
  17334. for (i = 0; i < pagesize; ++i)
  17335. if (*(data + i) != *(data2 + i))
  17336. return 1;
  17337. /* Finally, make sure that changes to the mapped area do not
  17338. percolate back to the file as seen by read(). (This is a bug on
  17339. some variants of i386 svr4.0.) */
  17340. for (i = 0; i < pagesize; ++i)
  17341. *(data2 + i) = *(data2 + i) + 1;
  17342. data3 = (char *) malloc (pagesize);
  17343. if (!data3)
  17344. return 1;
  17345. if (read (fd, data3, pagesize) != pagesize)
  17346. return 1;
  17347. for (i = 0; i < pagesize; ++i)
  17348. if (*(data + i) != *(data3 + i))
  17349. return 1;
  17350. close (fd);
  17351. return 0;
  17352. }
  17353. _ACEOF
  17354. rm -f conftest$ac_exeext
  17355. if { (ac_try="$ac_link"
  17356. case "(($ac_try" in
  17357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17358. *) ac_try_echo=$ac_try;;
  17359. esac
  17360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17361. (eval "$ac_link") 2>&5
  17362. ac_status=$?
  17363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17364. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17365. { (case "(($ac_try" in
  17366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17367. *) ac_try_echo=$ac_try;;
  17368. esac
  17369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17370. (eval "$ac_try") 2>&5
  17371. ac_status=$?
  17372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17373. (exit $ac_status); }; }; then
  17374. ac_cv_func_mmap_fixed_mapped=yes
  17375. else
  17376. echo "$as_me: program exited with status $ac_status" >&5
  17377. echo "$as_me: failed program was:" >&5
  17378. sed 's/^/| /' conftest.$ac_ext >&5
  17379. ( exit $ac_status )
  17380. ac_cv_func_mmap_fixed_mapped=no
  17381. fi
  17382. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17383. fi
  17384. fi
  17385. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  17386. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  17387. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  17388. cat >>confdefs.h <<\_ACEOF
  17389. #define HAVE_MMAP 1
  17390. _ACEOF
  17391. fi
  17392. rm -f conftest.mmap
  17393. for ac_header in sys/select.h sys/socket.h
  17394. do
  17395. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17396. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17397. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17398. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17399. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17400. echo $ECHO_N "(cached) $ECHO_C" >&6
  17401. fi
  17402. ac_res=`eval echo '${'$as_ac_Header'}'`
  17403. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17404. echo "${ECHO_T}$ac_res" >&6; }
  17405. else
  17406. # Is the header compilable?
  17407. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17408. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  17409. cat >conftest.$ac_ext <<_ACEOF
  17410. /* confdefs.h. */
  17411. _ACEOF
  17412. cat confdefs.h >>conftest.$ac_ext
  17413. cat >>conftest.$ac_ext <<_ACEOF
  17414. /* end confdefs.h. */
  17415. $ac_includes_default
  17416. #include <$ac_header>
  17417. _ACEOF
  17418. rm -f conftest.$ac_objext
  17419. if { (ac_try="$ac_compile"
  17420. case "(($ac_try" in
  17421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17422. *) ac_try_echo=$ac_try;;
  17423. esac
  17424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17425. (eval "$ac_compile") 2>conftest.er1
  17426. ac_status=$?
  17427. grep -v '^ *+' conftest.er1 >conftest.err
  17428. rm -f conftest.er1
  17429. cat conftest.err >&5
  17430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17431. (exit $ac_status); } && {
  17432. test -z "$ac_cxx_werror_flag" ||
  17433. test ! -s conftest.err
  17434. } && test -s conftest.$ac_objext; then
  17435. ac_header_compiler=yes
  17436. else
  17437. echo "$as_me: failed program was:" >&5
  17438. sed 's/^/| /' conftest.$ac_ext >&5
  17439. ac_header_compiler=no
  17440. fi
  17441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17442. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17443. echo "${ECHO_T}$ac_header_compiler" >&6; }
  17444. # Is the header present?
  17445. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17446. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  17447. cat >conftest.$ac_ext <<_ACEOF
  17448. /* confdefs.h. */
  17449. _ACEOF
  17450. cat confdefs.h >>conftest.$ac_ext
  17451. cat >>conftest.$ac_ext <<_ACEOF
  17452. /* end confdefs.h. */
  17453. #include <$ac_header>
  17454. _ACEOF
  17455. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17456. case "(($ac_try" in
  17457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17458. *) ac_try_echo=$ac_try;;
  17459. esac
  17460. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17461. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17462. ac_status=$?
  17463. grep -v '^ *+' conftest.er1 >conftest.err
  17464. rm -f conftest.er1
  17465. cat conftest.err >&5
  17466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17467. (exit $ac_status); } >/dev/null && {
  17468. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17469. test ! -s conftest.err
  17470. }; then
  17471. ac_header_preproc=yes
  17472. else
  17473. echo "$as_me: failed program was:" >&5
  17474. sed 's/^/| /' conftest.$ac_ext >&5
  17475. ac_header_preproc=no
  17476. fi
  17477. rm -f conftest.err conftest.$ac_ext
  17478. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17479. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17480. # So? What about this header?
  17481. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17482. yes:no: )
  17483. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17484. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17485. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17486. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17487. ac_header_preproc=yes
  17488. ;;
  17489. no:yes:* )
  17490. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17491. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17492. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17493. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17494. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17495. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17496. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17497. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17498. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17499. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17500. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17501. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17502. ( cat <<\_ASBOX
  17503. ## ----------------------------------------------- ##
  17504. ## Report this to t-tujikawa@users.sourceforge.net ##
  17505. ## ----------------------------------------------- ##
  17506. _ASBOX
  17507. ) | sed "s/^/$as_me: WARNING: /" >&2
  17508. ;;
  17509. esac
  17510. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17511. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17512. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17513. echo $ECHO_N "(cached) $ECHO_C" >&6
  17514. else
  17515. eval "$as_ac_Header=\$ac_header_preproc"
  17516. fi
  17517. ac_res=`eval echo '${'$as_ac_Header'}'`
  17518. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17519. echo "${ECHO_T}$ac_res" >&6; }
  17520. fi
  17521. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17522. cat >>confdefs.h <<_ACEOF
  17523. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17524. _ACEOF
  17525. fi
  17526. done
  17527. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17528. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17529. if test "${ac_cv_func_select_args+set}" = set; then
  17530. echo $ECHO_N "(cached) $ECHO_C" >&6
  17531. else
  17532. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17533. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17534. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17535. cat >conftest.$ac_ext <<_ACEOF
  17536. /* confdefs.h. */
  17537. _ACEOF
  17538. cat confdefs.h >>conftest.$ac_ext
  17539. cat >>conftest.$ac_ext <<_ACEOF
  17540. /* end confdefs.h. */
  17541. $ac_includes_default
  17542. #ifdef HAVE_SYS_SELECT_H
  17543. # include <sys/select.h>
  17544. #endif
  17545. #ifdef HAVE_SYS_SOCKET_H
  17546. # include <sys/socket.h>
  17547. #endif
  17548. int
  17549. main ()
  17550. {
  17551. extern int select ($ac_arg1,
  17552. $ac_arg234, $ac_arg234, $ac_arg234,
  17553. $ac_arg5);
  17554. ;
  17555. return 0;
  17556. }
  17557. _ACEOF
  17558. rm -f conftest.$ac_objext
  17559. if { (ac_try="$ac_compile"
  17560. case "(($ac_try" in
  17561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17562. *) ac_try_echo=$ac_try;;
  17563. esac
  17564. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17565. (eval "$ac_compile") 2>conftest.er1
  17566. ac_status=$?
  17567. grep -v '^ *+' conftest.er1 >conftest.err
  17568. rm -f conftest.er1
  17569. cat conftest.err >&5
  17570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17571. (exit $ac_status); } && {
  17572. test -z "$ac_cxx_werror_flag" ||
  17573. test ! -s conftest.err
  17574. } && test -s conftest.$ac_objext; then
  17575. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17576. else
  17577. echo "$as_me: failed program was:" >&5
  17578. sed 's/^/| /' conftest.$ac_ext >&5
  17579. fi
  17580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17581. done
  17582. done
  17583. done
  17584. # Provide a safe default value.
  17585. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17586. fi
  17587. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17588. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17589. ac_save_IFS=$IFS; IFS=','
  17590. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17591. IFS=$ac_save_IFS
  17592. shift
  17593. cat >>confdefs.h <<_ACEOF
  17594. #define SELECT_TYPE_ARG1 $1
  17595. _ACEOF
  17596. cat >>confdefs.h <<_ACEOF
  17597. #define SELECT_TYPE_ARG234 ($2)
  17598. _ACEOF
  17599. cat >>confdefs.h <<_ACEOF
  17600. #define SELECT_TYPE_ARG5 ($3)
  17601. _ACEOF
  17602. rm -f conftest*
  17603. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17604. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17605. if test "${ac_cv_type_signal+set}" = set; then
  17606. echo $ECHO_N "(cached) $ECHO_C" >&6
  17607. else
  17608. cat >conftest.$ac_ext <<_ACEOF
  17609. /* confdefs.h. */
  17610. _ACEOF
  17611. cat confdefs.h >>conftest.$ac_ext
  17612. cat >>conftest.$ac_ext <<_ACEOF
  17613. /* end confdefs.h. */
  17614. #include <sys/types.h>
  17615. #include <signal.h>
  17616. int
  17617. main ()
  17618. {
  17619. return *(signal (0, 0)) (0) == 1;
  17620. ;
  17621. return 0;
  17622. }
  17623. _ACEOF
  17624. rm -f conftest.$ac_objext
  17625. if { (ac_try="$ac_compile"
  17626. case "(($ac_try" in
  17627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17628. *) ac_try_echo=$ac_try;;
  17629. esac
  17630. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17631. (eval "$ac_compile") 2>conftest.er1
  17632. ac_status=$?
  17633. grep -v '^ *+' conftest.er1 >conftest.err
  17634. rm -f conftest.er1
  17635. cat conftest.err >&5
  17636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17637. (exit $ac_status); } && {
  17638. test -z "$ac_cxx_werror_flag" ||
  17639. test ! -s conftest.err
  17640. } && test -s conftest.$ac_objext; then
  17641. ac_cv_type_signal=int
  17642. else
  17643. echo "$as_me: failed program was:" >&5
  17644. sed 's/^/| /' conftest.$ac_ext >&5
  17645. ac_cv_type_signal=void
  17646. fi
  17647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17648. fi
  17649. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17650. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17651. cat >>confdefs.h <<_ACEOF
  17652. #define RETSIGTYPE $ac_cv_type_signal
  17653. _ACEOF
  17654. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17655. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17656. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17657. echo $ECHO_N "(cached) $ECHO_C" >&6
  17658. else
  17659. rm -f conftest.sym conftest.file
  17660. echo >conftest.file
  17661. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17662. if test "$cross_compiling" = yes; then
  17663. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17664. else
  17665. cat >conftest.$ac_ext <<_ACEOF
  17666. /* confdefs.h. */
  17667. _ACEOF
  17668. cat confdefs.h >>conftest.$ac_ext
  17669. cat >>conftest.$ac_ext <<_ACEOF
  17670. /* end confdefs.h. */
  17671. $ac_includes_default
  17672. int
  17673. main ()
  17674. {
  17675. struct stat sbuf;
  17676. /* Linux will dereference the symlink and fail.
  17677. That is better in the sense that it means we will not
  17678. have to compile and use the lstat wrapper. */
  17679. return lstat ("conftest.sym/", &sbuf) == 0;
  17680. ;
  17681. return 0;
  17682. }
  17683. _ACEOF
  17684. rm -f conftest$ac_exeext
  17685. if { (ac_try="$ac_link"
  17686. case "(($ac_try" in
  17687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17688. *) ac_try_echo=$ac_try;;
  17689. esac
  17690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17691. (eval "$ac_link") 2>&5
  17692. ac_status=$?
  17693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17694. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17695. { (case "(($ac_try" in
  17696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17697. *) ac_try_echo=$ac_try;;
  17698. esac
  17699. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17700. (eval "$ac_try") 2>&5
  17701. ac_status=$?
  17702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17703. (exit $ac_status); }; }; then
  17704. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17705. else
  17706. echo "$as_me: program exited with status $ac_status" >&5
  17707. echo "$as_me: failed program was:" >&5
  17708. sed 's/^/| /' conftest.$ac_ext >&5
  17709. ( exit $ac_status )
  17710. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17711. fi
  17712. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17713. fi
  17714. else
  17715. # If the `ln -s' command failed, then we probably don't even
  17716. # have an lstat function.
  17717. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17718. fi
  17719. rm -f conftest.sym conftest.file
  17720. fi
  17721. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17722. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17723. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17724. cat >>confdefs.h <<_ACEOF
  17725. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17726. _ACEOF
  17727. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  17728. case " $LIBOBJS " in
  17729. *" lstat.$ac_objext "* ) ;;
  17730. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17731. ;;
  17732. esac
  17733. fi
  17734. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  17735. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  17736. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  17737. echo $ECHO_N "(cached) $ECHO_C" >&6
  17738. else
  17739. if test "$cross_compiling" = yes; then
  17740. ac_cv_func_stat_empty_string_bug=yes
  17741. else
  17742. cat >conftest.$ac_ext <<_ACEOF
  17743. /* confdefs.h. */
  17744. _ACEOF
  17745. cat confdefs.h >>conftest.$ac_ext
  17746. cat >>conftest.$ac_ext <<_ACEOF
  17747. /* end confdefs.h. */
  17748. $ac_includes_default
  17749. int
  17750. main ()
  17751. {
  17752. struct stat sbuf;
  17753. return stat ("", &sbuf) == 0;
  17754. ;
  17755. return 0;
  17756. }
  17757. _ACEOF
  17758. rm -f conftest$ac_exeext
  17759. if { (ac_try="$ac_link"
  17760. case "(($ac_try" in
  17761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17762. *) ac_try_echo=$ac_try;;
  17763. esac
  17764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17765. (eval "$ac_link") 2>&5
  17766. ac_status=$?
  17767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17768. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17769. { (case "(($ac_try" in
  17770. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17771. *) ac_try_echo=$ac_try;;
  17772. esac
  17773. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17774. (eval "$ac_try") 2>&5
  17775. ac_status=$?
  17776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17777. (exit $ac_status); }; }; then
  17778. ac_cv_func_stat_empty_string_bug=no
  17779. else
  17780. echo "$as_me: program exited with status $ac_status" >&5
  17781. echo "$as_me: failed program was:" >&5
  17782. sed 's/^/| /' conftest.$ac_ext >&5
  17783. ( exit $ac_status )
  17784. ac_cv_func_stat_empty_string_bug=yes
  17785. fi
  17786. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17787. fi
  17788. fi
  17789. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  17790. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  17791. if test $ac_cv_func_stat_empty_string_bug = yes; then
  17792. case " $LIBOBJS " in
  17793. *" stat.$ac_objext "* ) ;;
  17794. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  17795. ;;
  17796. esac
  17797. cat >>confdefs.h <<_ACEOF
  17798. #define HAVE_STAT_EMPTY_STRING_BUG 1
  17799. _ACEOF
  17800. fi
  17801. for ac_func in strftime
  17802. do
  17803. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17804. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17805. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17806. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17807. echo $ECHO_N "(cached) $ECHO_C" >&6
  17808. else
  17809. cat >conftest.$ac_ext <<_ACEOF
  17810. /* confdefs.h. */
  17811. _ACEOF
  17812. cat confdefs.h >>conftest.$ac_ext
  17813. cat >>conftest.$ac_ext <<_ACEOF
  17814. /* end confdefs.h. */
  17815. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17816. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17817. #define $ac_func innocuous_$ac_func
  17818. /* System header to define __stub macros and hopefully few prototypes,
  17819. which can conflict with char $ac_func (); below.
  17820. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17821. <limits.h> exists even on freestanding compilers. */
  17822. #ifdef __STDC__
  17823. # include <limits.h>
  17824. #else
  17825. # include <assert.h>
  17826. #endif
  17827. #undef $ac_func
  17828. /* Override any GCC internal prototype to avoid an error.
  17829. Use char because int might match the return type of a GCC
  17830. builtin and then its argument prototype would still apply. */
  17831. #ifdef __cplusplus
  17832. extern "C"
  17833. #endif
  17834. char $ac_func ();
  17835. /* The GNU C library defines this for functions which it implements
  17836. to always fail with ENOSYS. Some functions are actually named
  17837. something starting with __ and the normal name is an alias. */
  17838. #if defined __stub_$ac_func || defined __stub___$ac_func
  17839. choke me
  17840. #endif
  17841. int
  17842. main ()
  17843. {
  17844. return $ac_func ();
  17845. ;
  17846. return 0;
  17847. }
  17848. _ACEOF
  17849. rm -f conftest.$ac_objext conftest$ac_exeext
  17850. if { (ac_try="$ac_link"
  17851. case "(($ac_try" in
  17852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17853. *) ac_try_echo=$ac_try;;
  17854. esac
  17855. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17856. (eval "$ac_link") 2>conftest.er1
  17857. ac_status=$?
  17858. grep -v '^ *+' conftest.er1 >conftest.err
  17859. rm -f conftest.er1
  17860. cat conftest.err >&5
  17861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17862. (exit $ac_status); } && {
  17863. test -z "$ac_cxx_werror_flag" ||
  17864. test ! -s conftest.err
  17865. } && test -s conftest$ac_exeext &&
  17866. $as_test_x conftest$ac_exeext; then
  17867. eval "$as_ac_var=yes"
  17868. else
  17869. echo "$as_me: failed program was:" >&5
  17870. sed 's/^/| /' conftest.$ac_ext >&5
  17871. eval "$as_ac_var=no"
  17872. fi
  17873. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17874. conftest$ac_exeext conftest.$ac_ext
  17875. fi
  17876. ac_res=`eval echo '${'$as_ac_var'}'`
  17877. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17878. echo "${ECHO_T}$ac_res" >&6; }
  17879. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17880. cat >>confdefs.h <<_ACEOF
  17881. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17882. _ACEOF
  17883. else
  17884. # strftime is in -lintl on SCO UNIX.
  17885. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  17886. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  17887. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  17888. echo $ECHO_N "(cached) $ECHO_C" >&6
  17889. else
  17890. ac_check_lib_save_LIBS=$LIBS
  17891. LIBS="-lintl $LIBS"
  17892. cat >conftest.$ac_ext <<_ACEOF
  17893. /* confdefs.h. */
  17894. _ACEOF
  17895. cat confdefs.h >>conftest.$ac_ext
  17896. cat >>conftest.$ac_ext <<_ACEOF
  17897. /* end confdefs.h. */
  17898. /* Override any GCC internal prototype to avoid an error.
  17899. Use char because int might match the return type of a GCC
  17900. builtin and then its argument prototype would still apply. */
  17901. #ifdef __cplusplus
  17902. extern "C"
  17903. #endif
  17904. char strftime ();
  17905. int
  17906. main ()
  17907. {
  17908. return strftime ();
  17909. ;
  17910. return 0;
  17911. }
  17912. _ACEOF
  17913. rm -f conftest.$ac_objext conftest$ac_exeext
  17914. if { (ac_try="$ac_link"
  17915. case "(($ac_try" in
  17916. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17917. *) ac_try_echo=$ac_try;;
  17918. esac
  17919. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17920. (eval "$ac_link") 2>conftest.er1
  17921. ac_status=$?
  17922. grep -v '^ *+' conftest.er1 >conftest.err
  17923. rm -f conftest.er1
  17924. cat conftest.err >&5
  17925. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17926. (exit $ac_status); } && {
  17927. test -z "$ac_cxx_werror_flag" ||
  17928. test ! -s conftest.err
  17929. } && test -s conftest$ac_exeext &&
  17930. $as_test_x conftest$ac_exeext; then
  17931. ac_cv_lib_intl_strftime=yes
  17932. else
  17933. echo "$as_me: failed program was:" >&5
  17934. sed 's/^/| /' conftest.$ac_ext >&5
  17935. ac_cv_lib_intl_strftime=no
  17936. fi
  17937. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17938. conftest$ac_exeext conftest.$ac_ext
  17939. LIBS=$ac_check_lib_save_LIBS
  17940. fi
  17941. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  17942. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  17943. if test $ac_cv_lib_intl_strftime = yes; then
  17944. cat >>confdefs.h <<\_ACEOF
  17945. #define HAVE_STRFTIME 1
  17946. _ACEOF
  17947. LIBS="-lintl $LIBS"
  17948. fi
  17949. fi
  17950. done
  17951. for ac_func in vprintf
  17952. do
  17953. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17954. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17955. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17956. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17957. echo $ECHO_N "(cached) $ECHO_C" >&6
  17958. else
  17959. cat >conftest.$ac_ext <<_ACEOF
  17960. /* confdefs.h. */
  17961. _ACEOF
  17962. cat confdefs.h >>conftest.$ac_ext
  17963. cat >>conftest.$ac_ext <<_ACEOF
  17964. /* end confdefs.h. */
  17965. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17966. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17967. #define $ac_func innocuous_$ac_func
  17968. /* System header to define __stub macros and hopefully few prototypes,
  17969. which can conflict with char $ac_func (); below.
  17970. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17971. <limits.h> exists even on freestanding compilers. */
  17972. #ifdef __STDC__
  17973. # include <limits.h>
  17974. #else
  17975. # include <assert.h>
  17976. #endif
  17977. #undef $ac_func
  17978. /* Override any GCC internal prototype to avoid an error.
  17979. Use char because int might match the return type of a GCC
  17980. builtin and then its argument prototype would still apply. */
  17981. #ifdef __cplusplus
  17982. extern "C"
  17983. #endif
  17984. char $ac_func ();
  17985. /* The GNU C library defines this for functions which it implements
  17986. to always fail with ENOSYS. Some functions are actually named
  17987. something starting with __ and the normal name is an alias. */
  17988. #if defined __stub_$ac_func || defined __stub___$ac_func
  17989. choke me
  17990. #endif
  17991. int
  17992. main ()
  17993. {
  17994. return $ac_func ();
  17995. ;
  17996. return 0;
  17997. }
  17998. _ACEOF
  17999. rm -f conftest.$ac_objext conftest$ac_exeext
  18000. if { (ac_try="$ac_link"
  18001. case "(($ac_try" in
  18002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18003. *) ac_try_echo=$ac_try;;
  18004. esac
  18005. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18006. (eval "$ac_link") 2>conftest.er1
  18007. ac_status=$?
  18008. grep -v '^ *+' conftest.er1 >conftest.err
  18009. rm -f conftest.er1
  18010. cat conftest.err >&5
  18011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18012. (exit $ac_status); } && {
  18013. test -z "$ac_cxx_werror_flag" ||
  18014. test ! -s conftest.err
  18015. } && test -s conftest$ac_exeext &&
  18016. $as_test_x conftest$ac_exeext; then
  18017. eval "$as_ac_var=yes"
  18018. else
  18019. echo "$as_me: failed program was:" >&5
  18020. sed 's/^/| /' conftest.$ac_ext >&5
  18021. eval "$as_ac_var=no"
  18022. fi
  18023. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18024. conftest$ac_exeext conftest.$ac_ext
  18025. fi
  18026. ac_res=`eval echo '${'$as_ac_var'}'`
  18027. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18028. echo "${ECHO_T}$ac_res" >&6; }
  18029. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18030. cat >>confdefs.h <<_ACEOF
  18031. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18032. _ACEOF
  18033. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  18034. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  18035. if test "${ac_cv_func__doprnt+set}" = set; then
  18036. echo $ECHO_N "(cached) $ECHO_C" >&6
  18037. else
  18038. cat >conftest.$ac_ext <<_ACEOF
  18039. /* confdefs.h. */
  18040. _ACEOF
  18041. cat confdefs.h >>conftest.$ac_ext
  18042. cat >>conftest.$ac_ext <<_ACEOF
  18043. /* end confdefs.h. */
  18044. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  18045. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18046. #define _doprnt innocuous__doprnt
  18047. /* System header to define __stub macros and hopefully few prototypes,
  18048. which can conflict with char _doprnt (); below.
  18049. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18050. <limits.h> exists even on freestanding compilers. */
  18051. #ifdef __STDC__
  18052. # include <limits.h>
  18053. #else
  18054. # include <assert.h>
  18055. #endif
  18056. #undef _doprnt
  18057. /* Override any GCC internal prototype to avoid an error.
  18058. Use char because int might match the return type of a GCC
  18059. builtin and then its argument prototype would still apply. */
  18060. #ifdef __cplusplus
  18061. extern "C"
  18062. #endif
  18063. char _doprnt ();
  18064. /* The GNU C library defines this for functions which it implements
  18065. to always fail with ENOSYS. Some functions are actually named
  18066. something starting with __ and the normal name is an alias. */
  18067. #if defined __stub__doprnt || defined __stub____doprnt
  18068. choke me
  18069. #endif
  18070. int
  18071. main ()
  18072. {
  18073. return _doprnt ();
  18074. ;
  18075. return 0;
  18076. }
  18077. _ACEOF
  18078. rm -f conftest.$ac_objext conftest$ac_exeext
  18079. if { (ac_try="$ac_link"
  18080. case "(($ac_try" in
  18081. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18082. *) ac_try_echo=$ac_try;;
  18083. esac
  18084. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18085. (eval "$ac_link") 2>conftest.er1
  18086. ac_status=$?
  18087. grep -v '^ *+' conftest.er1 >conftest.err
  18088. rm -f conftest.er1
  18089. cat conftest.err >&5
  18090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18091. (exit $ac_status); } && {
  18092. test -z "$ac_cxx_werror_flag" ||
  18093. test ! -s conftest.err
  18094. } && test -s conftest$ac_exeext &&
  18095. $as_test_x conftest$ac_exeext; then
  18096. ac_cv_func__doprnt=yes
  18097. else
  18098. echo "$as_me: failed program was:" >&5
  18099. sed 's/^/| /' conftest.$ac_ext >&5
  18100. ac_cv_func__doprnt=no
  18101. fi
  18102. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18103. conftest$ac_exeext conftest.$ac_ext
  18104. fi
  18105. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  18106. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  18107. if test $ac_cv_func__doprnt = yes; then
  18108. cat >>confdefs.h <<\_ACEOF
  18109. #define HAVE_DOPRNT 1
  18110. _ACEOF
  18111. fi
  18112. fi
  18113. done
  18114. for ac_func in __argz_count \
  18115. __argz_next \
  18116. __argz_stringify \
  18117. atexit \
  18118. daemon \
  18119. ftruncate \
  18120. getcwd \
  18121. gethostbyaddr \
  18122. gethostbyname \
  18123. getpagesize \
  18124. inet_ntoa \
  18125. memchr \
  18126. memmove \
  18127. mempcpy \
  18128. memset \
  18129. mkdir \
  18130. munmap \
  18131. nl_langinfo \
  18132. posix_memalign \
  18133. putenv \
  18134. rmdir \
  18135. select \
  18136. setlocale \
  18137. sleep \
  18138. socket \
  18139. stpcpy \
  18140. strcasecmp \
  18141. strchr \
  18142. strcspn \
  18143. strdup \
  18144. strerror \
  18145. strncasecmp \
  18146. strstr \
  18147. strtol \
  18148. strtoul \
  18149. strtoull \
  18150. tzset \
  18151. unsetenv \
  18152. usleep
  18153. do
  18154. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18155. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18156. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18157. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18158. echo $ECHO_N "(cached) $ECHO_C" >&6
  18159. else
  18160. cat >conftest.$ac_ext <<_ACEOF
  18161. /* confdefs.h. */
  18162. _ACEOF
  18163. cat confdefs.h >>conftest.$ac_ext
  18164. cat >>conftest.$ac_ext <<_ACEOF
  18165. /* end confdefs.h. */
  18166. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18167. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18168. #define $ac_func innocuous_$ac_func
  18169. /* System header to define __stub macros and hopefully few prototypes,
  18170. which can conflict with char $ac_func (); below.
  18171. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18172. <limits.h> exists even on freestanding compilers. */
  18173. #ifdef __STDC__
  18174. # include <limits.h>
  18175. #else
  18176. # include <assert.h>
  18177. #endif
  18178. #undef $ac_func
  18179. /* Override any GCC internal prototype to avoid an error.
  18180. Use char because int might match the return type of a GCC
  18181. builtin and then its argument prototype would still apply. */
  18182. #ifdef __cplusplus
  18183. extern "C"
  18184. #endif
  18185. char $ac_func ();
  18186. /* The GNU C library defines this for functions which it implements
  18187. to always fail with ENOSYS. Some functions are actually named
  18188. something starting with __ and the normal name is an alias. */
  18189. #if defined __stub_$ac_func || defined __stub___$ac_func
  18190. choke me
  18191. #endif
  18192. int
  18193. main ()
  18194. {
  18195. return $ac_func ();
  18196. ;
  18197. return 0;
  18198. }
  18199. _ACEOF
  18200. rm -f conftest.$ac_objext conftest$ac_exeext
  18201. if { (ac_try="$ac_link"
  18202. case "(($ac_try" in
  18203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18204. *) ac_try_echo=$ac_try;;
  18205. esac
  18206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18207. (eval "$ac_link") 2>conftest.er1
  18208. ac_status=$?
  18209. grep -v '^ *+' conftest.er1 >conftest.err
  18210. rm -f conftest.er1
  18211. cat conftest.err >&5
  18212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18213. (exit $ac_status); } && {
  18214. test -z "$ac_cxx_werror_flag" ||
  18215. test ! -s conftest.err
  18216. } && test -s conftest$ac_exeext &&
  18217. $as_test_x conftest$ac_exeext; then
  18218. eval "$as_ac_var=yes"
  18219. else
  18220. echo "$as_me: failed program was:" >&5
  18221. sed 's/^/| /' conftest.$ac_ext >&5
  18222. eval "$as_ac_var=no"
  18223. fi
  18224. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18225. conftest$ac_exeext conftest.$ac_ext
  18226. fi
  18227. ac_res=`eval echo '${'$as_ac_var'}'`
  18228. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18229. echo "${ECHO_T}$ac_res" >&6; }
  18230. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18231. cat >>confdefs.h <<_ACEOF
  18232. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18233. _ACEOF
  18234. fi
  18235. done
  18236. if test "x$enable_epoll" = "xyes"; then
  18237. for ac_func in epoll_create
  18238. do
  18239. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18240. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18241. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18242. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18243. echo $ECHO_N "(cached) $ECHO_C" >&6
  18244. else
  18245. cat >conftest.$ac_ext <<_ACEOF
  18246. /* confdefs.h. */
  18247. _ACEOF
  18248. cat confdefs.h >>conftest.$ac_ext
  18249. cat >>conftest.$ac_ext <<_ACEOF
  18250. /* end confdefs.h. */
  18251. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18252. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18253. #define $ac_func innocuous_$ac_func
  18254. /* System header to define __stub macros and hopefully few prototypes,
  18255. which can conflict with char $ac_func (); below.
  18256. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18257. <limits.h> exists even on freestanding compilers. */
  18258. #ifdef __STDC__
  18259. # include <limits.h>
  18260. #else
  18261. # include <assert.h>
  18262. #endif
  18263. #undef $ac_func
  18264. /* Override any GCC internal prototype to avoid an error.
  18265. Use char because int might match the return type of a GCC
  18266. builtin and then its argument prototype would still apply. */
  18267. #ifdef __cplusplus
  18268. extern "C"
  18269. #endif
  18270. char $ac_func ();
  18271. /* The GNU C library defines this for functions which it implements
  18272. to always fail with ENOSYS. Some functions are actually named
  18273. something starting with __ and the normal name is an alias. */
  18274. #if defined __stub_$ac_func || defined __stub___$ac_func
  18275. choke me
  18276. #endif
  18277. int
  18278. main ()
  18279. {
  18280. return $ac_func ();
  18281. ;
  18282. return 0;
  18283. }
  18284. _ACEOF
  18285. rm -f conftest.$ac_objext conftest$ac_exeext
  18286. if { (ac_try="$ac_link"
  18287. case "(($ac_try" in
  18288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18289. *) ac_try_echo=$ac_try;;
  18290. esac
  18291. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18292. (eval "$ac_link") 2>conftest.er1
  18293. ac_status=$?
  18294. grep -v '^ *+' conftest.er1 >conftest.err
  18295. rm -f conftest.er1
  18296. cat conftest.err >&5
  18297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18298. (exit $ac_status); } && {
  18299. test -z "$ac_cxx_werror_flag" ||
  18300. test ! -s conftest.err
  18301. } && test -s conftest$ac_exeext &&
  18302. $as_test_x conftest$ac_exeext; then
  18303. eval "$as_ac_var=yes"
  18304. else
  18305. echo "$as_me: failed program was:" >&5
  18306. sed 's/^/| /' conftest.$ac_ext >&5
  18307. eval "$as_ac_var=no"
  18308. fi
  18309. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18310. conftest$ac_exeext conftest.$ac_ext
  18311. fi
  18312. ac_res=`eval echo '${'$as_ac_var'}'`
  18313. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18314. echo "${ECHO_T}$ac_res" >&6; }
  18315. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18316. cat >>confdefs.h <<_ACEOF
  18317. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18318. _ACEOF
  18319. fi
  18320. done
  18321. fi
  18322. for ac_func in asctime_r
  18323. do
  18324. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18325. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18326. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18327. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18328. echo $ECHO_N "(cached) $ECHO_C" >&6
  18329. else
  18330. cat >conftest.$ac_ext <<_ACEOF
  18331. /* confdefs.h. */
  18332. _ACEOF
  18333. cat confdefs.h >>conftest.$ac_ext
  18334. cat >>conftest.$ac_ext <<_ACEOF
  18335. /* end confdefs.h. */
  18336. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18337. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18338. #define $ac_func innocuous_$ac_func
  18339. /* System header to define __stub macros and hopefully few prototypes,
  18340. which can conflict with char $ac_func (); below.
  18341. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18342. <limits.h> exists even on freestanding compilers. */
  18343. #ifdef __STDC__
  18344. # include <limits.h>
  18345. #else
  18346. # include <assert.h>
  18347. #endif
  18348. #undef $ac_func
  18349. /* Override any GCC internal prototype to avoid an error.
  18350. Use char because int might match the return type of a GCC
  18351. builtin and then its argument prototype would still apply. */
  18352. #ifdef __cplusplus
  18353. extern "C"
  18354. #endif
  18355. char $ac_func ();
  18356. /* The GNU C library defines this for functions which it implements
  18357. to always fail with ENOSYS. Some functions are actually named
  18358. something starting with __ and the normal name is an alias. */
  18359. #if defined __stub_$ac_func || defined __stub___$ac_func
  18360. choke me
  18361. #endif
  18362. int
  18363. main ()
  18364. {
  18365. return $ac_func ();
  18366. ;
  18367. return 0;
  18368. }
  18369. _ACEOF
  18370. rm -f conftest.$ac_objext conftest$ac_exeext
  18371. if { (ac_try="$ac_link"
  18372. case "(($ac_try" in
  18373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18374. *) ac_try_echo=$ac_try;;
  18375. esac
  18376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18377. (eval "$ac_link") 2>conftest.er1
  18378. ac_status=$?
  18379. grep -v '^ *+' conftest.er1 >conftest.err
  18380. rm -f conftest.er1
  18381. cat conftest.err >&5
  18382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18383. (exit $ac_status); } && {
  18384. test -z "$ac_cxx_werror_flag" ||
  18385. test ! -s conftest.err
  18386. } && test -s conftest$ac_exeext &&
  18387. $as_test_x conftest$ac_exeext; then
  18388. eval "$as_ac_var=yes"
  18389. else
  18390. echo "$as_me: failed program was:" >&5
  18391. sed 's/^/| /' conftest.$ac_ext >&5
  18392. eval "$as_ac_var=no"
  18393. fi
  18394. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18395. conftest$ac_exeext conftest.$ac_ext
  18396. fi
  18397. ac_res=`eval echo '${'$as_ac_var'}'`
  18398. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18399. echo "${ECHO_T}$ac_res" >&6; }
  18400. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18401. cat >>confdefs.h <<_ACEOF
  18402. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18403. _ACEOF
  18404. if true; then
  18405. HAVE_ASCTIME_R_TRUE=
  18406. HAVE_ASCTIME_R_FALSE='#'
  18407. else
  18408. HAVE_ASCTIME_R_TRUE='#'
  18409. HAVE_ASCTIME_R_FALSE=
  18410. fi
  18411. else
  18412. if false; then
  18413. HAVE_ASCTIME_R_TRUE=
  18414. HAVE_ASCTIME_R_FALSE='#'
  18415. else
  18416. HAVE_ASCTIME_R_TRUE='#'
  18417. HAVE_ASCTIME_R_FALSE=
  18418. fi
  18419. fi
  18420. done
  18421. for ac_func in basename
  18422. do
  18423. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18424. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18425. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18426. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18427. echo $ECHO_N "(cached) $ECHO_C" >&6
  18428. else
  18429. cat >conftest.$ac_ext <<_ACEOF
  18430. /* confdefs.h. */
  18431. _ACEOF
  18432. cat confdefs.h >>conftest.$ac_ext
  18433. cat >>conftest.$ac_ext <<_ACEOF
  18434. /* end confdefs.h. */
  18435. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18436. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18437. #define $ac_func innocuous_$ac_func
  18438. /* System header to define __stub macros and hopefully few prototypes,
  18439. which can conflict with char $ac_func (); below.
  18440. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18441. <limits.h> exists even on freestanding compilers. */
  18442. #ifdef __STDC__
  18443. # include <limits.h>
  18444. #else
  18445. # include <assert.h>
  18446. #endif
  18447. #undef $ac_func
  18448. /* Override any GCC internal prototype to avoid an error.
  18449. Use char because int might match the return type of a GCC
  18450. builtin and then its argument prototype would still apply. */
  18451. #ifdef __cplusplus
  18452. extern "C"
  18453. #endif
  18454. char $ac_func ();
  18455. /* The GNU C library defines this for functions which it implements
  18456. to always fail with ENOSYS. Some functions are actually named
  18457. something starting with __ and the normal name is an alias. */
  18458. #if defined __stub_$ac_func || defined __stub___$ac_func
  18459. choke me
  18460. #endif
  18461. int
  18462. main ()
  18463. {
  18464. return $ac_func ();
  18465. ;
  18466. return 0;
  18467. }
  18468. _ACEOF
  18469. rm -f conftest.$ac_objext conftest$ac_exeext
  18470. if { (ac_try="$ac_link"
  18471. case "(($ac_try" in
  18472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18473. *) ac_try_echo=$ac_try;;
  18474. esac
  18475. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18476. (eval "$ac_link") 2>conftest.er1
  18477. ac_status=$?
  18478. grep -v '^ *+' conftest.er1 >conftest.err
  18479. rm -f conftest.er1
  18480. cat conftest.err >&5
  18481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18482. (exit $ac_status); } && {
  18483. test -z "$ac_cxx_werror_flag" ||
  18484. test ! -s conftest.err
  18485. } && test -s conftest$ac_exeext &&
  18486. $as_test_x conftest$ac_exeext; then
  18487. eval "$as_ac_var=yes"
  18488. else
  18489. echo "$as_me: failed program was:" >&5
  18490. sed 's/^/| /' conftest.$ac_ext >&5
  18491. eval "$as_ac_var=no"
  18492. fi
  18493. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18494. conftest$ac_exeext conftest.$ac_ext
  18495. fi
  18496. ac_res=`eval echo '${'$as_ac_var'}'`
  18497. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18498. echo "${ECHO_T}$ac_res" >&6; }
  18499. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18500. cat >>confdefs.h <<_ACEOF
  18501. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18502. _ACEOF
  18503. if true; then
  18504. HAVE_BASENAME_TRUE=
  18505. HAVE_BASENAME_FALSE='#'
  18506. else
  18507. HAVE_BASENAME_TRUE='#'
  18508. HAVE_BASENAME_FALSE=
  18509. fi
  18510. else
  18511. if false; then
  18512. HAVE_BASENAME_TRUE=
  18513. HAVE_BASENAME_FALSE='#'
  18514. else
  18515. HAVE_BASENAME_TRUE='#'
  18516. HAVE_BASENAME_FALSE=
  18517. fi
  18518. fi
  18519. done
  18520. for ac_func in gai_strerror
  18521. do
  18522. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18523. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18524. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18525. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18526. echo $ECHO_N "(cached) $ECHO_C" >&6
  18527. else
  18528. cat >conftest.$ac_ext <<_ACEOF
  18529. /* confdefs.h. */
  18530. _ACEOF
  18531. cat confdefs.h >>conftest.$ac_ext
  18532. cat >>conftest.$ac_ext <<_ACEOF
  18533. /* end confdefs.h. */
  18534. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18535. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18536. #define $ac_func innocuous_$ac_func
  18537. /* System header to define __stub macros and hopefully few prototypes,
  18538. which can conflict with char $ac_func (); below.
  18539. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18540. <limits.h> exists even on freestanding compilers. */
  18541. #ifdef __STDC__
  18542. # include <limits.h>
  18543. #else
  18544. # include <assert.h>
  18545. #endif
  18546. #undef $ac_func
  18547. /* Override any GCC internal prototype to avoid an error.
  18548. Use char because int might match the return type of a GCC
  18549. builtin and then its argument prototype would still apply. */
  18550. #ifdef __cplusplus
  18551. extern "C"
  18552. #endif
  18553. char $ac_func ();
  18554. /* The GNU C library defines this for functions which it implements
  18555. to always fail with ENOSYS. Some functions are actually named
  18556. something starting with __ and the normal name is an alias. */
  18557. #if defined __stub_$ac_func || defined __stub___$ac_func
  18558. choke me
  18559. #endif
  18560. int
  18561. main ()
  18562. {
  18563. return $ac_func ();
  18564. ;
  18565. return 0;
  18566. }
  18567. _ACEOF
  18568. rm -f conftest.$ac_objext conftest$ac_exeext
  18569. if { (ac_try="$ac_link"
  18570. case "(($ac_try" in
  18571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18572. *) ac_try_echo=$ac_try;;
  18573. esac
  18574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18575. (eval "$ac_link") 2>conftest.er1
  18576. ac_status=$?
  18577. grep -v '^ *+' conftest.er1 >conftest.err
  18578. rm -f conftest.er1
  18579. cat conftest.err >&5
  18580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18581. (exit $ac_status); } && {
  18582. test -z "$ac_cxx_werror_flag" ||
  18583. test ! -s conftest.err
  18584. } && test -s conftest$ac_exeext &&
  18585. $as_test_x conftest$ac_exeext; then
  18586. eval "$as_ac_var=yes"
  18587. else
  18588. echo "$as_me: failed program was:" >&5
  18589. sed 's/^/| /' conftest.$ac_ext >&5
  18590. eval "$as_ac_var=no"
  18591. fi
  18592. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18593. conftest$ac_exeext conftest.$ac_ext
  18594. fi
  18595. ac_res=`eval echo '${'$as_ac_var'}'`
  18596. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18597. echo "${ECHO_T}$ac_res" >&6; }
  18598. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18599. cat >>confdefs.h <<_ACEOF
  18600. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18601. _ACEOF
  18602. if true; then
  18603. HAVE_GAI_STRERROR_TRUE=
  18604. HAVE_GAI_STRERROR_FALSE='#'
  18605. else
  18606. HAVE_GAI_STRERROR_TRUE='#'
  18607. HAVE_GAI_STRERROR_FALSE=
  18608. fi
  18609. else
  18610. if false; then
  18611. HAVE_GAI_STRERROR_TRUE=
  18612. HAVE_GAI_STRERROR_FALSE='#'
  18613. else
  18614. HAVE_GAI_STRERROR_TRUE='#'
  18615. HAVE_GAI_STRERROR_FALSE=
  18616. fi
  18617. fi
  18618. done
  18619. for ac_func in getaddrinfo
  18620. do
  18621. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18622. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18623. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18624. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18625. echo $ECHO_N "(cached) $ECHO_C" >&6
  18626. else
  18627. cat >conftest.$ac_ext <<_ACEOF
  18628. /* confdefs.h. */
  18629. _ACEOF
  18630. cat confdefs.h >>conftest.$ac_ext
  18631. cat >>conftest.$ac_ext <<_ACEOF
  18632. /* end confdefs.h. */
  18633. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18634. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18635. #define $ac_func innocuous_$ac_func
  18636. /* System header to define __stub macros and hopefully few prototypes,
  18637. which can conflict with char $ac_func (); below.
  18638. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18639. <limits.h> exists even on freestanding compilers. */
  18640. #ifdef __STDC__
  18641. # include <limits.h>
  18642. #else
  18643. # include <assert.h>
  18644. #endif
  18645. #undef $ac_func
  18646. /* Override any GCC internal prototype to avoid an error.
  18647. Use char because int might match the return type of a GCC
  18648. builtin and then its argument prototype would still apply. */
  18649. #ifdef __cplusplus
  18650. extern "C"
  18651. #endif
  18652. char $ac_func ();
  18653. /* The GNU C library defines this for functions which it implements
  18654. to always fail with ENOSYS. Some functions are actually named
  18655. something starting with __ and the normal name is an alias. */
  18656. #if defined __stub_$ac_func || defined __stub___$ac_func
  18657. choke me
  18658. #endif
  18659. int
  18660. main ()
  18661. {
  18662. return $ac_func ();
  18663. ;
  18664. return 0;
  18665. }
  18666. _ACEOF
  18667. rm -f conftest.$ac_objext conftest$ac_exeext
  18668. if { (ac_try="$ac_link"
  18669. case "(($ac_try" in
  18670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18671. *) ac_try_echo=$ac_try;;
  18672. esac
  18673. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18674. (eval "$ac_link") 2>conftest.er1
  18675. ac_status=$?
  18676. grep -v '^ *+' conftest.er1 >conftest.err
  18677. rm -f conftest.er1
  18678. cat conftest.err >&5
  18679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18680. (exit $ac_status); } && {
  18681. test -z "$ac_cxx_werror_flag" ||
  18682. test ! -s conftest.err
  18683. } && test -s conftest$ac_exeext &&
  18684. $as_test_x conftest$ac_exeext; then
  18685. eval "$as_ac_var=yes"
  18686. else
  18687. echo "$as_me: failed program was:" >&5
  18688. sed 's/^/| /' conftest.$ac_ext >&5
  18689. eval "$as_ac_var=no"
  18690. fi
  18691. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18692. conftest$ac_exeext conftest.$ac_ext
  18693. fi
  18694. ac_res=`eval echo '${'$as_ac_var'}'`
  18695. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18696. echo "${ECHO_T}$ac_res" >&6; }
  18697. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18698. cat >>confdefs.h <<_ACEOF
  18699. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18700. _ACEOF
  18701. if true; then
  18702. HAVE_GETADDRINFO_TRUE=
  18703. HAVE_GETADDRINFO_FALSE='#'
  18704. else
  18705. HAVE_GETADDRINFO_TRUE='#'
  18706. HAVE_GETADDRINFO_FALSE=
  18707. fi
  18708. else
  18709. if false; then
  18710. HAVE_GETADDRINFO_TRUE=
  18711. HAVE_GETADDRINFO_FALSE='#'
  18712. else
  18713. HAVE_GETADDRINFO_TRUE='#'
  18714. HAVE_GETADDRINFO_FALSE=
  18715. fi
  18716. fi
  18717. done
  18718. for ac_func in gettimeofday
  18719. do
  18720. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18721. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18722. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18723. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18724. echo $ECHO_N "(cached) $ECHO_C" >&6
  18725. else
  18726. cat >conftest.$ac_ext <<_ACEOF
  18727. /* confdefs.h. */
  18728. _ACEOF
  18729. cat confdefs.h >>conftest.$ac_ext
  18730. cat >>conftest.$ac_ext <<_ACEOF
  18731. /* end confdefs.h. */
  18732. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18733. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18734. #define $ac_func innocuous_$ac_func
  18735. /* System header to define __stub macros and hopefully few prototypes,
  18736. which can conflict with char $ac_func (); below.
  18737. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18738. <limits.h> exists even on freestanding compilers. */
  18739. #ifdef __STDC__
  18740. # include <limits.h>
  18741. #else
  18742. # include <assert.h>
  18743. #endif
  18744. #undef $ac_func
  18745. /* Override any GCC internal prototype to avoid an error.
  18746. Use char because int might match the return type of a GCC
  18747. builtin and then its argument prototype would still apply. */
  18748. #ifdef __cplusplus
  18749. extern "C"
  18750. #endif
  18751. char $ac_func ();
  18752. /* The GNU C library defines this for functions which it implements
  18753. to always fail with ENOSYS. Some functions are actually named
  18754. something starting with __ and the normal name is an alias. */
  18755. #if defined __stub_$ac_func || defined __stub___$ac_func
  18756. choke me
  18757. #endif
  18758. int
  18759. main ()
  18760. {
  18761. return $ac_func ();
  18762. ;
  18763. return 0;
  18764. }
  18765. _ACEOF
  18766. rm -f conftest.$ac_objext conftest$ac_exeext
  18767. if { (ac_try="$ac_link"
  18768. case "(($ac_try" in
  18769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18770. *) ac_try_echo=$ac_try;;
  18771. esac
  18772. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18773. (eval "$ac_link") 2>conftest.er1
  18774. ac_status=$?
  18775. grep -v '^ *+' conftest.er1 >conftest.err
  18776. rm -f conftest.er1
  18777. cat conftest.err >&5
  18778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18779. (exit $ac_status); } && {
  18780. test -z "$ac_cxx_werror_flag" ||
  18781. test ! -s conftest.err
  18782. } && test -s conftest$ac_exeext &&
  18783. $as_test_x conftest$ac_exeext; then
  18784. eval "$as_ac_var=yes"
  18785. else
  18786. echo "$as_me: failed program was:" >&5
  18787. sed 's/^/| /' conftest.$ac_ext >&5
  18788. eval "$as_ac_var=no"
  18789. fi
  18790. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18791. conftest$ac_exeext conftest.$ac_ext
  18792. fi
  18793. ac_res=`eval echo '${'$as_ac_var'}'`
  18794. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18795. echo "${ECHO_T}$ac_res" >&6; }
  18796. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18797. cat >>confdefs.h <<_ACEOF
  18798. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18799. _ACEOF
  18800. if true; then
  18801. HAVE_GETTIMEOFDAY_TRUE=
  18802. HAVE_GETTIMEOFDAY_FALSE='#'
  18803. else
  18804. HAVE_GETTIMEOFDAY_TRUE='#'
  18805. HAVE_GETTIMEOFDAY_FALSE=
  18806. fi
  18807. else
  18808. if false; then
  18809. HAVE_GETTIMEOFDAY_TRUE=
  18810. HAVE_GETTIMEOFDAY_FALSE='#'
  18811. else
  18812. HAVE_GETTIMEOFDAY_TRUE='#'
  18813. HAVE_GETTIMEOFDAY_FALSE=
  18814. fi
  18815. fi
  18816. done
  18817. for ac_func in inet_aton
  18818. do
  18819. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18820. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18821. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18822. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18823. echo $ECHO_N "(cached) $ECHO_C" >&6
  18824. else
  18825. cat >conftest.$ac_ext <<_ACEOF
  18826. /* confdefs.h. */
  18827. _ACEOF
  18828. cat confdefs.h >>conftest.$ac_ext
  18829. cat >>conftest.$ac_ext <<_ACEOF
  18830. /* end confdefs.h. */
  18831. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18832. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18833. #define $ac_func innocuous_$ac_func
  18834. /* System header to define __stub macros and hopefully few prototypes,
  18835. which can conflict with char $ac_func (); below.
  18836. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18837. <limits.h> exists even on freestanding compilers. */
  18838. #ifdef __STDC__
  18839. # include <limits.h>
  18840. #else
  18841. # include <assert.h>
  18842. #endif
  18843. #undef $ac_func
  18844. /* Override any GCC internal prototype to avoid an error.
  18845. Use char because int might match the return type of a GCC
  18846. builtin and then its argument prototype would still apply. */
  18847. #ifdef __cplusplus
  18848. extern "C"
  18849. #endif
  18850. char $ac_func ();
  18851. /* The GNU C library defines this for functions which it implements
  18852. to always fail with ENOSYS. Some functions are actually named
  18853. something starting with __ and the normal name is an alias. */
  18854. #if defined __stub_$ac_func || defined __stub___$ac_func
  18855. choke me
  18856. #endif
  18857. int
  18858. main ()
  18859. {
  18860. return $ac_func ();
  18861. ;
  18862. return 0;
  18863. }
  18864. _ACEOF
  18865. rm -f conftest.$ac_objext conftest$ac_exeext
  18866. if { (ac_try="$ac_link"
  18867. case "(($ac_try" in
  18868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18869. *) ac_try_echo=$ac_try;;
  18870. esac
  18871. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18872. (eval "$ac_link") 2>conftest.er1
  18873. ac_status=$?
  18874. grep -v '^ *+' conftest.er1 >conftest.err
  18875. rm -f conftest.er1
  18876. cat conftest.err >&5
  18877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18878. (exit $ac_status); } && {
  18879. test -z "$ac_cxx_werror_flag" ||
  18880. test ! -s conftest.err
  18881. } && test -s conftest$ac_exeext &&
  18882. $as_test_x conftest$ac_exeext; then
  18883. eval "$as_ac_var=yes"
  18884. else
  18885. echo "$as_me: failed program was:" >&5
  18886. sed 's/^/| /' conftest.$ac_ext >&5
  18887. eval "$as_ac_var=no"
  18888. fi
  18889. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18890. conftest$ac_exeext conftest.$ac_ext
  18891. fi
  18892. ac_res=`eval echo '${'$as_ac_var'}'`
  18893. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18894. echo "${ECHO_T}$ac_res" >&6; }
  18895. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18896. cat >>confdefs.h <<_ACEOF
  18897. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18898. _ACEOF
  18899. if true; then
  18900. HAVE_INET_ATON_TRUE=
  18901. HAVE_INET_ATON_FALSE='#'
  18902. else
  18903. HAVE_INET_ATON_TRUE='#'
  18904. HAVE_INET_ATON_FALSE=
  18905. fi
  18906. else
  18907. if false; then
  18908. HAVE_INET_ATON_TRUE=
  18909. HAVE_INET_ATON_FALSE='#'
  18910. else
  18911. HAVE_INET_ATON_TRUE='#'
  18912. HAVE_INET_ATON_FALSE=
  18913. fi
  18914. fi
  18915. done
  18916. for ac_func in localtime_r
  18917. do
  18918. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18919. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18920. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18921. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18922. echo $ECHO_N "(cached) $ECHO_C" >&6
  18923. else
  18924. cat >conftest.$ac_ext <<_ACEOF
  18925. /* confdefs.h. */
  18926. _ACEOF
  18927. cat confdefs.h >>conftest.$ac_ext
  18928. cat >>conftest.$ac_ext <<_ACEOF
  18929. /* end confdefs.h. */
  18930. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18931. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18932. #define $ac_func innocuous_$ac_func
  18933. /* System header to define __stub macros and hopefully few prototypes,
  18934. which can conflict with char $ac_func (); below.
  18935. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18936. <limits.h> exists even on freestanding compilers. */
  18937. #ifdef __STDC__
  18938. # include <limits.h>
  18939. #else
  18940. # include <assert.h>
  18941. #endif
  18942. #undef $ac_func
  18943. /* Override any GCC internal prototype to avoid an error.
  18944. Use char because int might match the return type of a GCC
  18945. builtin and then its argument prototype would still apply. */
  18946. #ifdef __cplusplus
  18947. extern "C"
  18948. #endif
  18949. char $ac_func ();
  18950. /* The GNU C library defines this for functions which it implements
  18951. to always fail with ENOSYS. Some functions are actually named
  18952. something starting with __ and the normal name is an alias. */
  18953. #if defined __stub_$ac_func || defined __stub___$ac_func
  18954. choke me
  18955. #endif
  18956. int
  18957. main ()
  18958. {
  18959. return $ac_func ();
  18960. ;
  18961. return 0;
  18962. }
  18963. _ACEOF
  18964. rm -f conftest.$ac_objext conftest$ac_exeext
  18965. if { (ac_try="$ac_link"
  18966. case "(($ac_try" in
  18967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18968. *) ac_try_echo=$ac_try;;
  18969. esac
  18970. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18971. (eval "$ac_link") 2>conftest.er1
  18972. ac_status=$?
  18973. grep -v '^ *+' conftest.er1 >conftest.err
  18974. rm -f conftest.er1
  18975. cat conftest.err >&5
  18976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18977. (exit $ac_status); } && {
  18978. test -z "$ac_cxx_werror_flag" ||
  18979. test ! -s conftest.err
  18980. } && test -s conftest$ac_exeext &&
  18981. $as_test_x conftest$ac_exeext; then
  18982. eval "$as_ac_var=yes"
  18983. else
  18984. echo "$as_me: failed program was:" >&5
  18985. sed 's/^/| /' conftest.$ac_ext >&5
  18986. eval "$as_ac_var=no"
  18987. fi
  18988. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18989. conftest$ac_exeext conftest.$ac_ext
  18990. fi
  18991. ac_res=`eval echo '${'$as_ac_var'}'`
  18992. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18993. echo "${ECHO_T}$ac_res" >&6; }
  18994. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18995. cat >>confdefs.h <<_ACEOF
  18996. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18997. _ACEOF
  18998. if true; then
  18999. HAVE_LOCALTIME_R_TRUE=
  19000. HAVE_LOCALTIME_R_FALSE='#'
  19001. else
  19002. HAVE_LOCALTIME_R_TRUE='#'
  19003. HAVE_LOCALTIME_R_FALSE=
  19004. fi
  19005. else
  19006. if false; then
  19007. HAVE_LOCALTIME_R_TRUE=
  19008. HAVE_LOCALTIME_R_FALSE='#'
  19009. else
  19010. HAVE_LOCALTIME_R_TRUE='#'
  19011. HAVE_LOCALTIME_R_FALSE=
  19012. fi
  19013. fi
  19014. done
  19015. for ac_func in strptime
  19016. do
  19017. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19018. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19019. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19020. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19021. echo $ECHO_N "(cached) $ECHO_C" >&6
  19022. else
  19023. cat >conftest.$ac_ext <<_ACEOF
  19024. /* confdefs.h. */
  19025. _ACEOF
  19026. cat confdefs.h >>conftest.$ac_ext
  19027. cat >>conftest.$ac_ext <<_ACEOF
  19028. /* end confdefs.h. */
  19029. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19030. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19031. #define $ac_func innocuous_$ac_func
  19032. /* System header to define __stub macros and hopefully few prototypes,
  19033. which can conflict with char $ac_func (); below.
  19034. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19035. <limits.h> exists even on freestanding compilers. */
  19036. #ifdef __STDC__
  19037. # include <limits.h>
  19038. #else
  19039. # include <assert.h>
  19040. #endif
  19041. #undef $ac_func
  19042. /* Override any GCC internal prototype to avoid an error.
  19043. Use char because int might match the return type of a GCC
  19044. builtin and then its argument prototype would still apply. */
  19045. #ifdef __cplusplus
  19046. extern "C"
  19047. #endif
  19048. char $ac_func ();
  19049. /* The GNU C library defines this for functions which it implements
  19050. to always fail with ENOSYS. Some functions are actually named
  19051. something starting with __ and the normal name is an alias. */
  19052. #if defined __stub_$ac_func || defined __stub___$ac_func
  19053. choke me
  19054. #endif
  19055. int
  19056. main ()
  19057. {
  19058. return $ac_func ();
  19059. ;
  19060. return 0;
  19061. }
  19062. _ACEOF
  19063. rm -f conftest.$ac_objext conftest$ac_exeext
  19064. if { (ac_try="$ac_link"
  19065. case "(($ac_try" in
  19066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19067. *) ac_try_echo=$ac_try;;
  19068. esac
  19069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19070. (eval "$ac_link") 2>conftest.er1
  19071. ac_status=$?
  19072. grep -v '^ *+' conftest.er1 >conftest.err
  19073. rm -f conftest.er1
  19074. cat conftest.err >&5
  19075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19076. (exit $ac_status); } && {
  19077. test -z "$ac_cxx_werror_flag" ||
  19078. test ! -s conftest.err
  19079. } && test -s conftest$ac_exeext &&
  19080. $as_test_x conftest$ac_exeext; then
  19081. eval "$as_ac_var=yes"
  19082. else
  19083. echo "$as_me: failed program was:" >&5
  19084. sed 's/^/| /' conftest.$ac_ext >&5
  19085. eval "$as_ac_var=no"
  19086. fi
  19087. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19088. conftest$ac_exeext conftest.$ac_ext
  19089. fi
  19090. ac_res=`eval echo '${'$as_ac_var'}'`
  19091. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19092. echo "${ECHO_T}$ac_res" >&6; }
  19093. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19094. cat >>confdefs.h <<_ACEOF
  19095. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19096. _ACEOF
  19097. if true; then
  19098. HAVE_STRPTIME_TRUE=
  19099. HAVE_STRPTIME_FALSE='#'
  19100. else
  19101. HAVE_STRPTIME_TRUE='#'
  19102. HAVE_STRPTIME_FALSE=
  19103. fi
  19104. else
  19105. if false; then
  19106. HAVE_STRPTIME_TRUE=
  19107. HAVE_STRPTIME_FALSE='#'
  19108. else
  19109. HAVE_STRPTIME_TRUE='#'
  19110. HAVE_STRPTIME_FALSE=
  19111. fi
  19112. fi
  19113. done
  19114. for ac_func in timegm
  19115. do
  19116. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19117. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  19118. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  19119. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19120. echo $ECHO_N "(cached) $ECHO_C" >&6
  19121. else
  19122. cat >conftest.$ac_ext <<_ACEOF
  19123. /* confdefs.h. */
  19124. _ACEOF
  19125. cat confdefs.h >>conftest.$ac_ext
  19126. cat >>conftest.$ac_ext <<_ACEOF
  19127. /* end confdefs.h. */
  19128. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19129. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19130. #define $ac_func innocuous_$ac_func
  19131. /* System header to define __stub macros and hopefully few prototypes,
  19132. which can conflict with char $ac_func (); below.
  19133. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19134. <limits.h> exists even on freestanding compilers. */
  19135. #ifdef __STDC__
  19136. # include <limits.h>
  19137. #else
  19138. # include <assert.h>
  19139. #endif
  19140. #undef $ac_func
  19141. /* Override any GCC internal prototype to avoid an error.
  19142. Use char because int might match the return type of a GCC
  19143. builtin and then its argument prototype would still apply. */
  19144. #ifdef __cplusplus
  19145. extern "C"
  19146. #endif
  19147. char $ac_func ();
  19148. /* The GNU C library defines this for functions which it implements
  19149. to always fail with ENOSYS. Some functions are actually named
  19150. something starting with __ and the normal name is an alias. */
  19151. #if defined __stub_$ac_func || defined __stub___$ac_func
  19152. choke me
  19153. #endif
  19154. int
  19155. main ()
  19156. {
  19157. return $ac_func ();
  19158. ;
  19159. return 0;
  19160. }
  19161. _ACEOF
  19162. rm -f conftest.$ac_objext conftest$ac_exeext
  19163. if { (ac_try="$ac_link"
  19164. case "(($ac_try" in
  19165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19166. *) ac_try_echo=$ac_try;;
  19167. esac
  19168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  19169. (eval "$ac_link") 2>conftest.er1
  19170. ac_status=$?
  19171. grep -v '^ *+' conftest.er1 >conftest.err
  19172. rm -f conftest.er1
  19173. cat conftest.err >&5
  19174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19175. (exit $ac_status); } && {
  19176. test -z "$ac_cxx_werror_flag" ||
  19177. test ! -s conftest.err
  19178. } && test -s conftest$ac_exeext &&
  19179. $as_test_x conftest$ac_exeext; then
  19180. eval "$as_ac_var=yes"
  19181. else
  19182. echo "$as_me: failed program was:" >&5
  19183. sed 's/^/| /' conftest.$ac_ext >&5
  19184. eval "$as_ac_var=no"
  19185. fi
  19186. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19187. conftest$ac_exeext conftest.$ac_ext
  19188. fi
  19189. ac_res=`eval echo '${'$as_ac_var'}'`
  19190. { echo "$as_me:$LINENO: result: $ac_res" >&5
  19191. echo "${ECHO_T}$ac_res" >&6; }
  19192. if test `eval echo '${'$as_ac_var'}'` = yes; then
  19193. cat >>confdefs.h <<_ACEOF
  19194. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19195. _ACEOF
  19196. if true; then
  19197. HAVE_TIMEGM_TRUE=
  19198. HAVE_TIMEGM_FALSE='#'
  19199. else
  19200. HAVE_TIMEGM_TRUE='#'
  19201. HAVE_TIMEGM_FALSE=
  19202. fi
  19203. else
  19204. if false; then
  19205. HAVE_TIMEGM_TRUE=
  19206. HAVE_TIMEGM_FALSE='#'
  19207. else
  19208. HAVE_TIMEGM_TRUE='#'
  19209. HAVE_TIMEGM_FALSE=
  19210. fi
  19211. fi
  19212. done
  19213. case "$target" in
  19214. *mingw*)
  19215. if true; then
  19216. HAVE_GETADDRINFO_TRUE=
  19217. HAVE_GETADDRINFO_FALSE='#'
  19218. else
  19219. HAVE_GETADDRINFO_TRUE='#'
  19220. HAVE_GETADDRINFO_FALSE=
  19221. fi
  19222. if false; then
  19223. HAVE_GAI_STRERROR_TRUE=
  19224. HAVE_GAI_STRERROR_FALSE='#'
  19225. else
  19226. HAVE_GAI_STRERROR_TRUE='#'
  19227. HAVE_GAI_STRERROR_FALSE=
  19228. fi
  19229. ;;
  19230. esac
  19231. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  19232. cat >confcache <<\_ACEOF
  19233. # This file is a shell script that caches the results of configure
  19234. # tests run on this system so they can be shared between configure
  19235. # scripts and configure runs, see configure's option --config-cache.
  19236. # It is not useful on other systems. If it contains results you don't
  19237. # want to keep, you may remove or edit it.
  19238. #
  19239. # config.status only pays attention to the cache file if you give it
  19240. # the --recheck option to rerun configure.
  19241. #
  19242. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  19243. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  19244. # following values.
  19245. _ACEOF
  19246. # The following way of writing the cache mishandles newlines in values,
  19247. # but we know of no workaround that is simple, portable, and efficient.
  19248. # So, we kill variables containing newlines.
  19249. # Ultrix sh set writes to stderr and can't be redirected directly,
  19250. # and sets the high bit in the cache file unless we assign to the vars.
  19251. (
  19252. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  19253. eval ac_val=\$$ac_var
  19254. case $ac_val in #(
  19255. *${as_nl}*)
  19256. case $ac_var in #(
  19257. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  19258. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  19259. esac
  19260. case $ac_var in #(
  19261. _ | IFS | as_nl) ;; #(
  19262. *) $as_unset $ac_var ;;
  19263. esac ;;
  19264. esac
  19265. done
  19266. (set) 2>&1 |
  19267. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  19268. *${as_nl}ac_space=\ *)
  19269. # `set' does not quote correctly, so add quotes (double-quote
  19270. # substitution turns \\\\ into \\, and sed turns \\ into \).
  19271. sed -n \
  19272. "s/'/'\\\\''/g;
  19273. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19274. ;; #(
  19275. *)
  19276. # `set' quotes correctly as required by POSIX, so do not add quotes.
  19277. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  19278. ;;
  19279. esac |
  19280. sort
  19281. ) |
  19282. sed '
  19283. /^ac_cv_env_/b end
  19284. t clear
  19285. :clear
  19286. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19287. t end
  19288. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19289. :end' >>confcache
  19290. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  19291. if test -w "$cache_file"; then
  19292. test "x$cache_file" != "x/dev/null" &&
  19293. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  19294. echo "$as_me: updating cache $cache_file" >&6;}
  19295. cat confcache >$cache_file
  19296. else
  19297. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  19298. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  19299. fi
  19300. fi
  19301. rm -f confcache
  19302. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19303. # Let make expand exec_prefix.
  19304. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19305. DEFS=-DHAVE_CONFIG_H
  19306. ac_libobjs=
  19307. ac_ltlibobjs=
  19308. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19309. # 1. Remove the extension, and $U if already installed.
  19310. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  19311. ac_i=`echo "$ac_i" | sed "$ac_script"`
  19312. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  19313. # will be set to the directory where LIBOBJS objects are built.
  19314. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  19315. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  19316. done
  19317. LIBOBJS=$ac_libobjs
  19318. LTLIBOBJS=$ac_ltlibobjs
  19319. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19320. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19321. Usually this means the macro was only invoked conditionally." >&5
  19322. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19323. Usually this means the macro was only invoked conditionally." >&2;}
  19324. { (exit 1); exit 1; }; }
  19325. fi
  19326. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  19327. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  19328. Usually this means the macro was only invoked conditionally." >&5
  19329. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  19330. Usually this means the macro was only invoked conditionally." >&2;}
  19331. { (exit 1); exit 1; }; }
  19332. fi
  19333. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19334. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19335. Usually this means the macro was only invoked conditionally." >&5
  19336. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19337. Usually this means the macro was only invoked conditionally." >&2;}
  19338. { (exit 1); exit 1; }; }
  19339. fi
  19340. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19341. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19342. Usually this means the macro was only invoked conditionally." >&5
  19343. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19344. Usually this means the macro was only invoked conditionally." >&2;}
  19345. { (exit 1); exit 1; }; }
  19346. fi
  19347. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  19348. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19349. Usually this means the macro was only invoked conditionally." >&5
  19350. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  19351. Usually this means the macro was only invoked conditionally." >&2;}
  19352. { (exit 1); exit 1; }; }
  19353. fi
  19354. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19355. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19356. Usually this means the macro was only invoked conditionally." >&5
  19357. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19358. Usually this means the macro was only invoked conditionally." >&2;}
  19359. { (exit 1); exit 1; }; }
  19360. fi
  19361. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  19362. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19363. Usually this means the macro was only invoked conditionally." >&5
  19364. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  19365. Usually this means the macro was only invoked conditionally." >&2;}
  19366. { (exit 1); exit 1; }; }
  19367. fi
  19368. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19369. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19370. Usually this means the macro was only invoked conditionally." >&5
  19371. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19372. Usually this means the macro was only invoked conditionally." >&2;}
  19373. { (exit 1); exit 1; }; }
  19374. fi
  19375. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  19376. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  19377. Usually this means the macro was only invoked conditionally." >&5
  19378. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  19379. Usually this means the macro was only invoked conditionally." >&2;}
  19380. { (exit 1); exit 1; }; }
  19381. fi
  19382. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  19383. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19384. Usually this means the macro was only invoked conditionally." >&5
  19385. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  19386. Usually this means the macro was only invoked conditionally." >&2;}
  19387. { (exit 1); exit 1; }; }
  19388. fi
  19389. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  19390. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19391. Usually this means the macro was only invoked conditionally." >&5
  19392. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  19393. Usually this means the macro was only invoked conditionally." >&2;}
  19394. { (exit 1); exit 1; }; }
  19395. fi
  19396. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19397. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19398. Usually this means the macro was only invoked conditionally." >&5
  19399. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19400. Usually this means the macro was only invoked conditionally." >&2;}
  19401. { (exit 1); exit 1; }; }
  19402. fi
  19403. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  19404. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19405. Usually this means the macro was only invoked conditionally." >&5
  19406. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  19407. Usually this means the macro was only invoked conditionally." >&2;}
  19408. { (exit 1); exit 1; }; }
  19409. fi
  19410. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  19411. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  19412. Usually this means the macro was only invoked conditionally." >&5
  19413. echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  19414. Usually this means the macro was only invoked conditionally." >&2;}
  19415. { (exit 1); exit 1; }; }
  19416. fi
  19417. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  19418. { { echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  19419. Usually this means the macro was only invoked conditionally." >&5
  19420. echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  19421. Usually this means the macro was only invoked conditionally." >&2;}
  19422. { (exit 1); exit 1; }; }
  19423. fi
  19424. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19425. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19426. Usually this means the macro was only invoked conditionally." >&5
  19427. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19428. Usually this means the macro was only invoked conditionally." >&2;}
  19429. { (exit 1); exit 1; }; }
  19430. fi
  19431. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  19432. { { echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19433. Usually this means the macro was only invoked conditionally." >&5
  19434. echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  19435. Usually this means the macro was only invoked conditionally." >&2;}
  19436. { (exit 1); exit 1; }; }
  19437. fi
  19438. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19439. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19440. Usually this means the macro was only invoked conditionally." >&5
  19441. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19442. Usually this means the macro was only invoked conditionally." >&2;}
  19443. { (exit 1); exit 1; }; }
  19444. fi
  19445. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  19446. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  19447. Usually this means the macro was only invoked conditionally." >&5
  19448. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  19449. Usually this means the macro was only invoked conditionally." >&2;}
  19450. { (exit 1); exit 1; }; }
  19451. fi
  19452. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19453. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19454. Usually this means the macro was only invoked conditionally." >&5
  19455. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19456. Usually this means the macro was only invoked conditionally." >&2;}
  19457. { (exit 1); exit 1; }; }
  19458. fi
  19459. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19460. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19461. Usually this means the macro was only invoked conditionally." >&5
  19462. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19463. Usually this means the macro was only invoked conditionally." >&2;}
  19464. { (exit 1); exit 1; }; }
  19465. fi
  19466. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19467. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19468. Usually this means the macro was only invoked conditionally." >&5
  19469. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19470. Usually this means the macro was only invoked conditionally." >&2;}
  19471. { (exit 1); exit 1; }; }
  19472. fi
  19473. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19474. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19475. Usually this means the macro was only invoked conditionally." >&5
  19476. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19477. Usually this means the macro was only invoked conditionally." >&2;}
  19478. { (exit 1); exit 1; }; }
  19479. fi
  19480. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19481. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19482. Usually this means the macro was only invoked conditionally." >&5
  19483. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19484. Usually this means the macro was only invoked conditionally." >&2;}
  19485. { (exit 1); exit 1; }; }
  19486. fi
  19487. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  19488. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19489. Usually this means the macro was only invoked conditionally." >&5
  19490. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  19491. Usually this means the macro was only invoked conditionally." >&2;}
  19492. { (exit 1); exit 1; }; }
  19493. fi
  19494. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19495. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19496. Usually this means the macro was only invoked conditionally." >&5
  19497. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19498. Usually this means the macro was only invoked conditionally." >&2;}
  19499. { (exit 1); exit 1; }; }
  19500. fi
  19501. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  19502. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  19503. Usually this means the macro was only invoked conditionally." >&5
  19504. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  19505. Usually this means the macro was only invoked conditionally." >&2;}
  19506. { (exit 1); exit 1; }; }
  19507. fi
  19508. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19509. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19510. Usually this means the macro was only invoked conditionally." >&5
  19511. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19512. Usually this means the macro was only invoked conditionally." >&2;}
  19513. { (exit 1); exit 1; }; }
  19514. fi
  19515. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  19516. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19517. Usually this means the macro was only invoked conditionally." >&5
  19518. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  19519. Usually this means the macro was only invoked conditionally." >&2;}
  19520. { (exit 1); exit 1; }; }
  19521. fi
  19522. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19523. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19524. Usually this means the macro was only invoked conditionally." >&5
  19525. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19526. Usually this means the macro was only invoked conditionally." >&2;}
  19527. { (exit 1); exit 1; }; }
  19528. fi
  19529. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  19530. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  19531. Usually this means the macro was only invoked conditionally." >&5
  19532. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  19533. Usually this means the macro was only invoked conditionally." >&2;}
  19534. { (exit 1); exit 1; }; }
  19535. fi
  19536. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19537. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19538. Usually this means the macro was only invoked conditionally." >&5
  19539. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19540. Usually this means the macro was only invoked conditionally." >&2;}
  19541. { (exit 1); exit 1; }; }
  19542. fi
  19543. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  19544. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  19545. Usually this means the macro was only invoked conditionally." >&5
  19546. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  19547. Usually this means the macro was only invoked conditionally." >&2;}
  19548. { (exit 1); exit 1; }; }
  19549. fi
  19550. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  19551. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19552. Usually this means the macro was only invoked conditionally." >&5
  19553. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  19554. Usually this means the macro was only invoked conditionally." >&2;}
  19555. { (exit 1); exit 1; }; }
  19556. fi
  19557. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  19558. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19559. Usually this means the macro was only invoked conditionally." >&5
  19560. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  19561. Usually this means the macro was only invoked conditionally." >&2;}
  19562. { (exit 1); exit 1; }; }
  19563. fi
  19564. : ${CONFIG_STATUS=./config.status}
  19565. ac_clean_files_save=$ac_clean_files
  19566. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19567. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19568. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19569. cat >$CONFIG_STATUS <<_ACEOF
  19570. #! $SHELL
  19571. # Generated by $as_me.
  19572. # Run this file to recreate the current configuration.
  19573. # Compiler output produced by configure, useful for debugging
  19574. # configure, is in config.log if it exists.
  19575. debug=false
  19576. ac_cs_recheck=false
  19577. ac_cs_silent=false
  19578. SHELL=\${CONFIG_SHELL-$SHELL}
  19579. _ACEOF
  19580. cat >>$CONFIG_STATUS <<\_ACEOF
  19581. ## --------------------- ##
  19582. ## M4sh Initialization. ##
  19583. ## --------------------- ##
  19584. # Be more Bourne compatible
  19585. DUALCASE=1; export DUALCASE # for MKS sh
  19586. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19587. emulate sh
  19588. NULLCMD=:
  19589. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19590. # is contrary to our usage. Disable this feature.
  19591. alias -g '${1+"$@"}'='"$@"'
  19592. setopt NO_GLOB_SUBST
  19593. else
  19594. case `(set -o) 2>/dev/null` in
  19595. *posix*) set -o posix ;;
  19596. esac
  19597. fi
  19598. # PATH needs CR
  19599. # Avoid depending upon Character Ranges.
  19600. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19601. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19602. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19603. as_cr_digits='0123456789'
  19604. as_cr_alnum=$as_cr_Letters$as_cr_digits
  19605. # The user is always right.
  19606. if test "${PATH_SEPARATOR+set}" != set; then
  19607. echo "#! /bin/sh" >conf$$.sh
  19608. echo "exit 0" >>conf$$.sh
  19609. chmod +x conf$$.sh
  19610. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19611. PATH_SEPARATOR=';'
  19612. else
  19613. PATH_SEPARATOR=:
  19614. fi
  19615. rm -f conf$$.sh
  19616. fi
  19617. # Support unset when possible.
  19618. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19619. as_unset=unset
  19620. else
  19621. as_unset=false
  19622. fi
  19623. # IFS
  19624. # We need space, tab and new line, in precisely that order. Quoting is
  19625. # there to prevent editors from complaining about space-tab.
  19626. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  19627. # splitting by setting IFS to empty value.)
  19628. as_nl='
  19629. '
  19630. IFS=" "" $as_nl"
  19631. # Find who we are. Look in the path if we contain no directory separator.
  19632. case $0 in
  19633. *[\\/]* ) as_myself=$0 ;;
  19634. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19635. for as_dir in $PATH
  19636. do
  19637. IFS=$as_save_IFS
  19638. test -z "$as_dir" && as_dir=.
  19639. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19640. done
  19641. IFS=$as_save_IFS
  19642. ;;
  19643. esac
  19644. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19645. # in which case we are not to be found in the path.
  19646. if test "x$as_myself" = x; then
  19647. as_myself=$0
  19648. fi
  19649. if test ! -f "$as_myself"; then
  19650. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19651. { (exit 1); exit 1; }
  19652. fi
  19653. # Work around bugs in pre-3.0 UWIN ksh.
  19654. for as_var in ENV MAIL MAILPATH
  19655. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19656. done
  19657. PS1='$ '
  19658. PS2='> '
  19659. PS4='+ '
  19660. # NLS nuisances.
  19661. for as_var in \
  19662. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19663. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19664. LC_TELEPHONE LC_TIME
  19665. do
  19666. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19667. eval $as_var=C; export $as_var
  19668. else
  19669. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19670. fi
  19671. done
  19672. # Required to use basename.
  19673. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19674. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19675. as_expr=expr
  19676. else
  19677. as_expr=false
  19678. fi
  19679. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19680. as_basename=basename
  19681. else
  19682. as_basename=false
  19683. fi
  19684. # Name of the executable.
  19685. as_me=`$as_basename -- "$0" ||
  19686. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19687. X"$0" : 'X\(//\)$' \| \
  19688. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19689. echo X/"$0" |
  19690. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19691. s//\1/
  19692. q
  19693. }
  19694. /^X\/\(\/\/\)$/{
  19695. s//\1/
  19696. q
  19697. }
  19698. /^X\/\(\/\).*/{
  19699. s//\1/
  19700. q
  19701. }
  19702. s/.*/./; q'`
  19703. # CDPATH.
  19704. $as_unset CDPATH
  19705. as_lineno_1=$LINENO
  19706. as_lineno_2=$LINENO
  19707. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19708. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  19709. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19710. # uniformly replaced by the line number. The first 'sed' inserts a
  19711. # line-number line after each line using $LINENO; the second 'sed'
  19712. # does the real work. The second script uses 'N' to pair each
  19713. # line-number line with the line containing $LINENO, and appends
  19714. # trailing '-' during substitution so that $LINENO is not a special
  19715. # case at line end.
  19716. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19717. # scripts with optimization help from Paolo Bonzini. Blame Lee
  19718. # E. McMahon (1931-1989) for sed's syntax. :-)
  19719. sed -n '
  19720. p
  19721. /[$]LINENO/=
  19722. ' <$as_myself |
  19723. sed '
  19724. s/[$]LINENO.*/&-/
  19725. t lineno
  19726. b
  19727. :lineno
  19728. N
  19729. :loop
  19730. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  19731. t loop
  19732. s/-\n.*//
  19733. ' >$as_me.lineno &&
  19734. chmod +x "$as_me.lineno" ||
  19735. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  19736. { (exit 1); exit 1; }; }
  19737. # Don't try to exec as it changes $[0], causing all sort of problems
  19738. # (the dirname of $[0] is not the place where we might find the
  19739. # original and so on. Autoconf is especially sensitive to this).
  19740. . "./$as_me.lineno"
  19741. # Exit status is that of the last command.
  19742. exit
  19743. }
  19744. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19745. as_dirname=dirname
  19746. else
  19747. as_dirname=false
  19748. fi
  19749. ECHO_C= ECHO_N= ECHO_T=
  19750. case `echo -n x` in
  19751. -n*)
  19752. case `echo 'x\c'` in
  19753. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19754. *) ECHO_C='\c';;
  19755. esac;;
  19756. *)
  19757. ECHO_N='-n';;
  19758. esac
  19759. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19760. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19761. as_expr=expr
  19762. else
  19763. as_expr=false
  19764. fi
  19765. rm -f conf$$ conf$$.exe conf$$.file
  19766. if test -d conf$$.dir; then
  19767. rm -f conf$$.dir/conf$$.file
  19768. else
  19769. rm -f conf$$.dir
  19770. mkdir conf$$.dir
  19771. fi
  19772. echo >conf$$.file
  19773. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19774. as_ln_s='ln -s'
  19775. # ... but there are two gotchas:
  19776. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19777. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19778. # In both cases, we have to default to `cp -p'.
  19779. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19780. as_ln_s='cp -p'
  19781. elif ln conf$$.file conf$$ 2>/dev/null; then
  19782. as_ln_s=ln
  19783. else
  19784. as_ln_s='cp -p'
  19785. fi
  19786. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19787. rmdir conf$$.dir 2>/dev/null
  19788. if mkdir -p . 2>/dev/null; then
  19789. as_mkdir_p=:
  19790. else
  19791. test -d ./-p && rmdir ./-p
  19792. as_mkdir_p=false
  19793. fi
  19794. if test -x / >/dev/null 2>&1; then
  19795. as_test_x='test -x'
  19796. else
  19797. if ls -dL / >/dev/null 2>&1; then
  19798. as_ls_L_option=L
  19799. else
  19800. as_ls_L_option=
  19801. fi
  19802. as_test_x='
  19803. eval sh -c '\''
  19804. if test -d "$1"; then
  19805. test -d "$1/.";
  19806. else
  19807. case $1 in
  19808. -*)set "./$1";;
  19809. esac;
  19810. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  19811. ???[sx]*):;;*)false;;esac;fi
  19812. '\'' sh
  19813. '
  19814. fi
  19815. as_executable_p=$as_test_x
  19816. # Sed expression to map a string onto a valid CPP name.
  19817. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19818. # Sed expression to map a string onto a valid variable name.
  19819. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19820. exec 6>&1
  19821. # Save the log message, to keep $[0] and so on meaningful, and to
  19822. # report actual input values of CONFIG_FILES etc. instead of their
  19823. # values after options handling.
  19824. ac_log="
  19825. This file was extended by aria2c $as_me 0.15.1+2, which was
  19826. generated by GNU Autoconf 2.61. Invocation command line was
  19827. CONFIG_FILES = $CONFIG_FILES
  19828. CONFIG_HEADERS = $CONFIG_HEADERS
  19829. CONFIG_LINKS = $CONFIG_LINKS
  19830. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19831. $ $0 $@
  19832. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19833. "
  19834. _ACEOF
  19835. cat >>$CONFIG_STATUS <<_ACEOF
  19836. # Files that config.status was made for.
  19837. config_files="$ac_config_files"
  19838. config_headers="$ac_config_headers"
  19839. config_commands="$ac_config_commands"
  19840. _ACEOF
  19841. cat >>$CONFIG_STATUS <<\_ACEOF
  19842. ac_cs_usage="\
  19843. \`$as_me' instantiates files from templates according to the
  19844. current configuration.
  19845. Usage: $0 [OPTIONS] [FILE]...
  19846. -h, --help print this help, then exit
  19847. -V, --version print version number and configuration settings, then exit
  19848. -q, --quiet do not print progress messages
  19849. -d, --debug don't remove temporary files
  19850. --recheck update $as_me by reconfiguring in the same conditions
  19851. --file=FILE[:TEMPLATE]
  19852. instantiate the configuration file FILE
  19853. --header=FILE[:TEMPLATE]
  19854. instantiate the configuration header FILE
  19855. Configuration files:
  19856. $config_files
  19857. Configuration headers:
  19858. $config_headers
  19859. Configuration commands:
  19860. $config_commands
  19861. Report bugs to <bug-autoconf@gnu.org>."
  19862. _ACEOF
  19863. cat >>$CONFIG_STATUS <<_ACEOF
  19864. ac_cs_version="\\
  19865. aria2c config.status 0.15.1+2
  19866. configured by $0, generated by GNU Autoconf 2.61,
  19867. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  19868. Copyright (C) 2006 Free Software Foundation, Inc.
  19869. This config.status script is free software; the Free Software Foundation
  19870. gives unlimited permission to copy, distribute and modify it."
  19871. ac_pwd='$ac_pwd'
  19872. srcdir='$srcdir'
  19873. INSTALL='$INSTALL'
  19874. MKDIR_P='$MKDIR_P'
  19875. _ACEOF
  19876. cat >>$CONFIG_STATUS <<\_ACEOF
  19877. # If no file are specified by the user, then we need to provide default
  19878. # value. By we need to know if files were specified by the user.
  19879. ac_need_defaults=:
  19880. while test $# != 0
  19881. do
  19882. case $1 in
  19883. --*=*)
  19884. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19885. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19886. ac_shift=:
  19887. ;;
  19888. *)
  19889. ac_option=$1
  19890. ac_optarg=$2
  19891. ac_shift=shift
  19892. ;;
  19893. esac
  19894. case $ac_option in
  19895. # Handling of the options.
  19896. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19897. ac_cs_recheck=: ;;
  19898. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19899. echo "$ac_cs_version"; exit ;;
  19900. --debug | --debu | --deb | --de | --d | -d )
  19901. debug=: ;;
  19902. --file | --fil | --fi | --f )
  19903. $ac_shift
  19904. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  19905. ac_need_defaults=false;;
  19906. --header | --heade | --head | --hea )
  19907. $ac_shift
  19908. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  19909. ac_need_defaults=false;;
  19910. --he | --h)
  19911. # Conflict between --help and --header
  19912. { echo "$as_me: error: ambiguous option: $1
  19913. Try \`$0 --help' for more information." >&2
  19914. { (exit 1); exit 1; }; };;
  19915. --help | --hel | -h )
  19916. echo "$ac_cs_usage"; exit ;;
  19917. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19918. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19919. ac_cs_silent=: ;;
  19920. # This is an error.
  19921. -*) { echo "$as_me: error: unrecognized option: $1
  19922. Try \`$0 --help' for more information." >&2
  19923. { (exit 1); exit 1; }; } ;;
  19924. *) ac_config_targets="$ac_config_targets $1"
  19925. ac_need_defaults=false ;;
  19926. esac
  19927. shift
  19928. done
  19929. ac_configure_extra_args=
  19930. if $ac_cs_silent; then
  19931. exec 6>/dev/null
  19932. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19933. fi
  19934. _ACEOF
  19935. cat >>$CONFIG_STATUS <<_ACEOF
  19936. if \$ac_cs_recheck; then
  19937. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  19938. CONFIG_SHELL=$SHELL
  19939. export CONFIG_SHELL
  19940. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19941. fi
  19942. _ACEOF
  19943. cat >>$CONFIG_STATUS <<\_ACEOF
  19944. exec 5>>config.log
  19945. {
  19946. echo
  19947. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19948. ## Running $as_me. ##
  19949. _ASBOX
  19950. echo "$ac_log"
  19951. } >&5
  19952. _ACEOF
  19953. cat >>$CONFIG_STATUS <<_ACEOF
  19954. #
  19955. # INIT-COMMANDS
  19956. #
  19957. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19958. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  19959. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  19960. # from automake < 1.5.
  19961. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  19962. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  19963. LINGUAS="${LINGUAS-%UNSET%}"
  19964. _ACEOF
  19965. cat >>$CONFIG_STATUS <<\_ACEOF
  19966. # Handling of arguments.
  19967. for ac_config_target in $ac_config_targets
  19968. do
  19969. case $ac_config_target in
  19970. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19971. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19972. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  19973. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19974. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19975. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  19976. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  19977. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  19978. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  19979. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  19980. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  19981. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  19982. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  19983. { (exit 1); exit 1; }; };;
  19984. esac
  19985. done
  19986. # If the user did not use the arguments to specify the items to instantiate,
  19987. # then the envvar interface is used. Set only those that are not.
  19988. # We use the long form for the default assignment because of an extremely
  19989. # bizarre bug on SunOS 4.1.3.
  19990. if $ac_need_defaults; then
  19991. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19992. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19993. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19994. fi
  19995. # Have a temporary directory for convenience. Make it in the build tree
  19996. # simply because there is no reason against having it here, and in addition,
  19997. # creating and moving files from /tmp can sometimes cause problems.
  19998. # Hook for its removal unless debugging.
  19999. # Note that there is a small window in which the directory will not be cleaned:
  20000. # after its creation but before its name has been assigned to `$tmp'.
  20001. $debug ||
  20002. {
  20003. tmp=
  20004. trap 'exit_status=$?
  20005. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  20006. ' 0
  20007. trap '{ (exit 1); exit 1; }' 1 2 13 15
  20008. }
  20009. # Create a (secure) tmp directory for tmp files.
  20010. {
  20011. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  20012. test -n "$tmp" && test -d "$tmp"
  20013. } ||
  20014. {
  20015. tmp=./conf$$-$RANDOM
  20016. (umask 077 && mkdir "$tmp")
  20017. } ||
  20018. {
  20019. echo "$me: cannot create a temporary directory in ." >&2
  20020. { (exit 1); exit 1; }
  20021. }
  20022. #
  20023. # Set up the sed scripts for CONFIG_FILES section.
  20024. #
  20025. # No need to generate the scripts if there are no CONFIG_FILES.
  20026. # This happens for instance when ./config.status config.h
  20027. if test -n "$CONFIG_FILES"; then
  20028. _ACEOF
  20029. ac_delim='%!_!# '
  20030. for ac_last_try in false false false false false :; do
  20031. cat >conf$$subs.sed <<_ACEOF
  20032. SHELL!$SHELL$ac_delim
  20033. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  20034. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  20035. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  20036. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  20037. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  20038. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  20039. exec_prefix!$exec_prefix$ac_delim
  20040. prefix!$prefix$ac_delim
  20041. program_transform_name!$program_transform_name$ac_delim
  20042. bindir!$bindir$ac_delim
  20043. sbindir!$sbindir$ac_delim
  20044. libexecdir!$libexecdir$ac_delim
  20045. datarootdir!$datarootdir$ac_delim
  20046. datadir!$datadir$ac_delim
  20047. sysconfdir!$sysconfdir$ac_delim
  20048. sharedstatedir!$sharedstatedir$ac_delim
  20049. localstatedir!$localstatedir$ac_delim
  20050. includedir!$includedir$ac_delim
  20051. oldincludedir!$oldincludedir$ac_delim
  20052. docdir!$docdir$ac_delim
  20053. infodir!$infodir$ac_delim
  20054. htmldir!$htmldir$ac_delim
  20055. dvidir!$dvidir$ac_delim
  20056. pdfdir!$pdfdir$ac_delim
  20057. psdir!$psdir$ac_delim
  20058. libdir!$libdir$ac_delim
  20059. localedir!$localedir$ac_delim
  20060. mandir!$mandir$ac_delim
  20061. DEFS!$DEFS$ac_delim
  20062. ECHO_C!$ECHO_C$ac_delim
  20063. ECHO_N!$ECHO_N$ac_delim
  20064. ECHO_T!$ECHO_T$ac_delim
  20065. LIBS!$LIBS$ac_delim
  20066. build_alias!$build_alias$ac_delim
  20067. host_alias!$host_alias$ac_delim
  20068. target_alias!$target_alias$ac_delim
  20069. build!$build$ac_delim
  20070. build_cpu!$build_cpu$ac_delim
  20071. build_vendor!$build_vendor$ac_delim
  20072. build_os!$build_os$ac_delim
  20073. host!$host$ac_delim
  20074. host_cpu!$host_cpu$ac_delim
  20075. host_vendor!$host_vendor$ac_delim
  20076. host_os!$host_os$ac_delim
  20077. target!$target$ac_delim
  20078. target_cpu!$target_cpu$ac_delim
  20079. target_vendor!$target_vendor$ac_delim
  20080. target_os!$target_os$ac_delim
  20081. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  20082. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  20083. INSTALL_DATA!$INSTALL_DATA$ac_delim
  20084. am__isrc!$am__isrc$ac_delim
  20085. CYGPATH_W!$CYGPATH_W$ac_delim
  20086. PACKAGE!$PACKAGE$ac_delim
  20087. VERSION!$VERSION$ac_delim
  20088. ACLOCAL!$ACLOCAL$ac_delim
  20089. AUTOCONF!$AUTOCONF$ac_delim
  20090. AUTOMAKE!$AUTOMAKE$ac_delim
  20091. AUTOHEADER!$AUTOHEADER$ac_delim
  20092. MAKEINFO!$MAKEINFO$ac_delim
  20093. install_sh!$install_sh$ac_delim
  20094. STRIP!$STRIP$ac_delim
  20095. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  20096. mkdir_p!$mkdir_p$ac_delim
  20097. AWK!$AWK$ac_delim
  20098. SET_MAKE!$SET_MAKE$ac_delim
  20099. am__leading_dot!$am__leading_dot$ac_delim
  20100. AMTAR!$AMTAR$ac_delim
  20101. am__tar!$am__tar$ac_delim
  20102. am__untar!$am__untar$ac_delim
  20103. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  20104. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  20105. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  20106. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  20107. CXX!$CXX$ac_delim
  20108. CXXFLAGS!$CXXFLAGS$ac_delim
  20109. LDFLAGS!$LDFLAGS$ac_delim
  20110. CPPFLAGS!$CPPFLAGS$ac_delim
  20111. ac_ct_CXX!$ac_ct_CXX$ac_delim
  20112. EXEEXT!$EXEEXT$ac_delim
  20113. OBJEXT!$OBJEXT$ac_delim
  20114. DEPDIR!$DEPDIR$ac_delim
  20115. am__include!$am__include$ac_delim
  20116. am__quote!$am__quote$ac_delim
  20117. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  20118. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  20119. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  20120. CXXDEPMODE!$CXXDEPMODE$ac_delim
  20121. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  20122. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  20123. CC!$CC$ac_delim
  20124. CFLAGS!$CFLAGS$ac_delim
  20125. ac_ct_CC!$ac_ct_CC$ac_delim
  20126. CCDEPMODE!$CCDEPMODE$ac_delim
  20127. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  20128. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  20129. _ACEOF
  20130. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20131. break
  20132. elif $ac_last_try; then
  20133. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20134. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20135. { (exit 1); exit 1; }; }
  20136. else
  20137. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20138. fi
  20139. done
  20140. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20141. if test -n "$ac_eof"; then
  20142. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20143. ac_eof=`expr $ac_eof + 1`
  20144. fi
  20145. cat >>$CONFIG_STATUS <<_ACEOF
  20146. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  20147. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20148. _ACEOF
  20149. sed '
  20150. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20151. s/^/s,@/; s/!/@,|#_!!_#|/
  20152. :n
  20153. t n
  20154. s/'"$ac_delim"'$/,g/; t
  20155. s/$/\\/; p
  20156. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20157. ' >>$CONFIG_STATUS <conf$$subs.sed
  20158. rm -f conf$$subs.sed
  20159. cat >>$CONFIG_STATUS <<_ACEOF
  20160. CEOF$ac_eof
  20161. _ACEOF
  20162. ac_delim='%!_!# '
  20163. for ac_last_try in false false false false false :; do
  20164. cat >conf$$subs.sed <<_ACEOF
  20165. RANLIB!$RANLIB$ac_delim
  20166. YACC!$YACC$ac_delim
  20167. YFLAGS!$YFLAGS$ac_delim
  20168. CXXCPP!$CXXCPP$ac_delim
  20169. GREP!$GREP$ac_delim
  20170. EGREP!$EGREP$ac_delim
  20171. XML2_CONFIG!$XML2_CONFIG$ac_delim
  20172. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  20173. XML_LIBS!$XML_LIBS$ac_delim
  20174. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  20175. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  20176. SQLITE3_LIBS!$SQLITE3_LIBS$ac_delim
  20177. SQLITE3_CPPFLAGS!$SQLITE3_CPPFLAGS$ac_delim
  20178. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  20179. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  20180. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  20181. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  20182. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  20183. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  20184. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  20185. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  20186. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  20187. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  20188. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  20189. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  20190. LIBZ_LIBS!$LIBZ_LIBS$ac_delim
  20191. LIBZ_CPPFLAGS!$LIBZ_CPPFLAGS$ac_delim
  20192. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  20193. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  20194. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  20195. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  20196. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  20197. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  20198. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  20199. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  20200. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  20201. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  20202. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  20203. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  20204. HAVE_LIBZ_TRUE!$HAVE_LIBZ_TRUE$ac_delim
  20205. HAVE_LIBZ_FALSE!$HAVE_LIBZ_FALSE$ac_delim
  20206. HAVE_SQLITE3_TRUE!$HAVE_SQLITE3_TRUE$ac_delim
  20207. HAVE_SQLITE3_FALSE!$HAVE_SQLITE3_FALSE$ac_delim
  20208. ALLOCA!$ALLOCA$ac_delim
  20209. USE_NLS!$USE_NLS$ac_delim
  20210. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  20211. MSGFMT!$MSGFMT$ac_delim
  20212. GMSGFMT!$GMSGFMT$ac_delim
  20213. MSGFMT_015!$MSGFMT_015$ac_delim
  20214. GMSGFMT_015!$GMSGFMT_015$ac_delim
  20215. XGETTEXT!$XGETTEXT$ac_delim
  20216. XGETTEXT_015!$XGETTEXT_015$ac_delim
  20217. MSGMERGE!$MSGMERGE$ac_delim
  20218. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  20219. GLIBC2!$GLIBC2$ac_delim
  20220. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  20221. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  20222. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  20223. LIBPTH!$LIBPTH$ac_delim
  20224. LTLIBPTH!$LTLIBPTH$ac_delim
  20225. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  20226. LIBTHREAD!$LIBTHREAD$ac_delim
  20227. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  20228. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  20229. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  20230. LIBICONV!$LIBICONV$ac_delim
  20231. LTLIBICONV!$LTLIBICONV$ac_delim
  20232. INTLBISON!$INTLBISON$ac_delim
  20233. GLIBC21!$GLIBC21$ac_delim
  20234. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  20235. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  20236. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  20237. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  20238. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  20239. WOE32DLL!$WOE32DLL$ac_delim
  20240. WOE32!$WOE32$ac_delim
  20241. WINDRES!$WINDRES$ac_delim
  20242. LTLIBC!$LTLIBC$ac_delim
  20243. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  20244. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  20245. CATOBJEXT!$CATOBJEXT$ac_delim
  20246. DATADIRNAME!$DATADIRNAME$ac_delim
  20247. INSTOBJEXT!$INSTOBJEXT$ac_delim
  20248. GENCAT!$GENCAT$ac_delim
  20249. INTLOBJS!$INTLOBJS$ac_delim
  20250. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  20251. INTLLIBS!$INTLLIBS$ac_delim
  20252. LIBINTL!$LIBINTL$ac_delim
  20253. LTLIBINTL!$LTLIBINTL$ac_delim
  20254. POSUB!$POSUB$ac_delim
  20255. LIBOBJS!$LIBOBJS$ac_delim
  20256. HAVE_ASCTIME_R_TRUE!$HAVE_ASCTIME_R_TRUE$ac_delim
  20257. HAVE_ASCTIME_R_FALSE!$HAVE_ASCTIME_R_FALSE$ac_delim
  20258. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  20259. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  20260. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  20261. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  20262. _ACEOF
  20263. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  20264. break
  20265. elif $ac_last_try; then
  20266. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20267. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20268. { (exit 1); exit 1; }; }
  20269. else
  20270. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20271. fi
  20272. done
  20273. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20274. if test -n "$ac_eof"; then
  20275. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20276. ac_eof=`expr $ac_eof + 1`
  20277. fi
  20278. cat >>$CONFIG_STATUS <<_ACEOF
  20279. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  20280. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20281. _ACEOF
  20282. sed '
  20283. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20284. s/^/s,@/; s/!/@,|#_!!_#|/
  20285. :n
  20286. t n
  20287. s/'"$ac_delim"'$/,g/; t
  20288. s/$/\\/; p
  20289. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20290. ' >>$CONFIG_STATUS <conf$$subs.sed
  20291. rm -f conf$$subs.sed
  20292. cat >>$CONFIG_STATUS <<_ACEOF
  20293. CEOF$ac_eof
  20294. _ACEOF
  20295. ac_delim='%!_!# '
  20296. for ac_last_try in false false false false false :; do
  20297. cat >conf$$subs.sed <<_ACEOF
  20298. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  20299. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  20300. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  20301. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  20302. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  20303. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  20304. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  20305. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  20306. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  20307. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  20308. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  20309. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  20310. LTLIBOBJS!$LTLIBOBJS$ac_delim
  20311. _ACEOF
  20312. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
  20313. break
  20314. elif $ac_last_try; then
  20315. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  20316. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  20317. { (exit 1); exit 1; }; }
  20318. else
  20319. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  20320. fi
  20321. done
  20322. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  20323. if test -n "$ac_eof"; then
  20324. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  20325. ac_eof=`expr $ac_eof + 1`
  20326. fi
  20327. cat >>$CONFIG_STATUS <<_ACEOF
  20328. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  20329. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  20330. _ACEOF
  20331. sed '
  20332. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  20333. s/^/s,@/; s/!/@,|#_!!_#|/
  20334. :n
  20335. t n
  20336. s/'"$ac_delim"'$/,g/; t
  20337. s/$/\\/; p
  20338. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  20339. ' >>$CONFIG_STATUS <conf$$subs.sed
  20340. rm -f conf$$subs.sed
  20341. cat >>$CONFIG_STATUS <<_ACEOF
  20342. :end
  20343. s/|#_!!_#|//g
  20344. CEOF$ac_eof
  20345. _ACEOF
  20346. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  20347. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  20348. # trailing colons and then remove the whole line if VPATH becomes empty
  20349. # (actually we leave an empty line to preserve line numbers).
  20350. if test "x$srcdir" = x.; then
  20351. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  20352. s/:*\$(srcdir):*/:/
  20353. s/:*\${srcdir}:*/:/
  20354. s/:*@srcdir@:*/:/
  20355. s/^\([^=]*=[ ]*\):*/\1/
  20356. s/:*$//
  20357. s/^[^=]*=[ ]*$//
  20358. }'
  20359. fi
  20360. cat >>$CONFIG_STATUS <<\_ACEOF
  20361. fi # test -n "$CONFIG_FILES"
  20362. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  20363. do
  20364. case $ac_tag in
  20365. :[FHLC]) ac_mode=$ac_tag; continue;;
  20366. esac
  20367. case $ac_mode$ac_tag in
  20368. :[FHL]*:*);;
  20369. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  20370. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  20371. { (exit 1); exit 1; }; };;
  20372. :[FH]-) ac_tag=-:-;;
  20373. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  20374. esac
  20375. ac_save_IFS=$IFS
  20376. IFS=:
  20377. set x $ac_tag
  20378. IFS=$ac_save_IFS
  20379. shift
  20380. ac_file=$1
  20381. shift
  20382. case $ac_mode in
  20383. :L) ac_source=$1;;
  20384. :[FH])
  20385. ac_file_inputs=
  20386. for ac_f
  20387. do
  20388. case $ac_f in
  20389. -) ac_f="$tmp/stdin";;
  20390. *) # Look for the file first in the build tree, then in the source tree
  20391. # (if the path is not absolute). The absolute path cannot be DOS-style,
  20392. # because $ac_f cannot contain `:'.
  20393. test -f "$ac_f" ||
  20394. case $ac_f in
  20395. [\\/$]*) false;;
  20396. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  20397. esac ||
  20398. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  20399. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  20400. { (exit 1); exit 1; }; };;
  20401. esac
  20402. ac_file_inputs="$ac_file_inputs $ac_f"
  20403. done
  20404. # Let's still pretend it is `configure' which instantiates (i.e., don't
  20405. # use $as_me), people would be surprised to read:
  20406. # /* config.h. Generated by config.status. */
  20407. configure_input="Generated from "`IFS=:
  20408. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  20409. if test x"$ac_file" != x-; then
  20410. configure_input="$ac_file. $configure_input"
  20411. { echo "$as_me:$LINENO: creating $ac_file" >&5
  20412. echo "$as_me: creating $ac_file" >&6;}
  20413. fi
  20414. case $ac_tag in
  20415. *:-:* | *:-) cat >"$tmp/stdin";;
  20416. esac
  20417. ;;
  20418. esac
  20419. ac_dir=`$as_dirname -- "$ac_file" ||
  20420. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20421. X"$ac_file" : 'X\(//\)[^/]' \| \
  20422. X"$ac_file" : 'X\(//\)$' \| \
  20423. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  20424. echo X"$ac_file" |
  20425. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20426. s//\1/
  20427. q
  20428. }
  20429. /^X\(\/\/\)[^/].*/{
  20430. s//\1/
  20431. q
  20432. }
  20433. /^X\(\/\/\)$/{
  20434. s//\1/
  20435. q
  20436. }
  20437. /^X\(\/\).*/{
  20438. s//\1/
  20439. q
  20440. }
  20441. s/.*/./; q'`
  20442. { as_dir="$ac_dir"
  20443. case $as_dir in #(
  20444. -*) as_dir=./$as_dir;;
  20445. esac
  20446. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20447. as_dirs=
  20448. while :; do
  20449. case $as_dir in #(
  20450. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20451. *) as_qdir=$as_dir;;
  20452. esac
  20453. as_dirs="'$as_qdir' $as_dirs"
  20454. as_dir=`$as_dirname -- "$as_dir" ||
  20455. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20456. X"$as_dir" : 'X\(//\)[^/]' \| \
  20457. X"$as_dir" : 'X\(//\)$' \| \
  20458. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20459. echo X"$as_dir" |
  20460. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20461. s//\1/
  20462. q
  20463. }
  20464. /^X\(\/\/\)[^/].*/{
  20465. s//\1/
  20466. q
  20467. }
  20468. /^X\(\/\/\)$/{
  20469. s//\1/
  20470. q
  20471. }
  20472. /^X\(\/\).*/{
  20473. s//\1/
  20474. q
  20475. }
  20476. s/.*/./; q'`
  20477. test -d "$as_dir" && break
  20478. done
  20479. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20480. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20481. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20482. { (exit 1); exit 1; }; }; }
  20483. ac_builddir=.
  20484. case "$ac_dir" in
  20485. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20486. *)
  20487. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20488. # A ".." for each directory in $ac_dir_suffix.
  20489. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  20490. case $ac_top_builddir_sub in
  20491. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  20492. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  20493. esac ;;
  20494. esac
  20495. ac_abs_top_builddir=$ac_pwd
  20496. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  20497. # for backward compatibility:
  20498. ac_top_builddir=$ac_top_build_prefix
  20499. case $srcdir in
  20500. .) # We are building in place.
  20501. ac_srcdir=.
  20502. ac_top_srcdir=$ac_top_builddir_sub
  20503. ac_abs_top_srcdir=$ac_pwd ;;
  20504. [\\/]* | ?:[\\/]* ) # Absolute name.
  20505. ac_srcdir=$srcdir$ac_dir_suffix;
  20506. ac_top_srcdir=$srcdir
  20507. ac_abs_top_srcdir=$srcdir ;;
  20508. *) # Relative name.
  20509. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  20510. ac_top_srcdir=$ac_top_build_prefix$srcdir
  20511. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  20512. esac
  20513. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  20514. case $ac_mode in
  20515. :F)
  20516. #
  20517. # CONFIG_FILE
  20518. #
  20519. case $INSTALL in
  20520. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20521. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  20522. esac
  20523. ac_MKDIR_P=$MKDIR_P
  20524. case $MKDIR_P in
  20525. [\\/$]* | ?:[\\/]* ) ;;
  20526. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  20527. esac
  20528. _ACEOF
  20529. cat >>$CONFIG_STATUS <<\_ACEOF
  20530. # If the template does not know about datarootdir, expand it.
  20531. # FIXME: This hack should be removed a few years after 2.60.
  20532. ac_datarootdir_hack=; ac_datarootdir_seen=
  20533. case `sed -n '/datarootdir/ {
  20534. p
  20535. q
  20536. }
  20537. /@datadir@/p
  20538. /@docdir@/p
  20539. /@infodir@/p
  20540. /@localedir@/p
  20541. /@mandir@/p
  20542. ' $ac_file_inputs` in
  20543. *datarootdir*) ac_datarootdir_seen=yes;;
  20544. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  20545. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  20546. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  20547. _ACEOF
  20548. cat >>$CONFIG_STATUS <<_ACEOF
  20549. ac_datarootdir_hack='
  20550. s&@datadir@&$datadir&g
  20551. s&@docdir@&$docdir&g
  20552. s&@infodir@&$infodir&g
  20553. s&@localedir@&$localedir&g
  20554. s&@mandir@&$mandir&g
  20555. s&\\\${datarootdir}&$datarootdir&g' ;;
  20556. esac
  20557. _ACEOF
  20558. # Neutralize VPATH when `$srcdir' = `.'.
  20559. # Shell code in configure.ac might set extrasub.
  20560. # FIXME: do we really want to maintain this feature?
  20561. cat >>$CONFIG_STATUS <<_ACEOF
  20562. sed "$ac_vpsub
  20563. $extrasub
  20564. _ACEOF
  20565. cat >>$CONFIG_STATUS <<\_ACEOF
  20566. :t
  20567. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20568. s&@configure_input@&$configure_input&;t t
  20569. s&@top_builddir@&$ac_top_builddir_sub&;t t
  20570. s&@srcdir@&$ac_srcdir&;t t
  20571. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  20572. s&@top_srcdir@&$ac_top_srcdir&;t t
  20573. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  20574. s&@builddir@&$ac_builddir&;t t
  20575. s&@abs_builddir@&$ac_abs_builddir&;t t
  20576. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  20577. s&@INSTALL@&$ac_INSTALL&;t t
  20578. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  20579. $ac_datarootdir_hack
  20580. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  20581. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  20582. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  20583. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  20584. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20585. which seems to be undefined. Please make sure it is defined." >&5
  20586. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  20587. which seems to be undefined. Please make sure it is defined." >&2;}
  20588. rm -f "$tmp/stdin"
  20589. case $ac_file in
  20590. -) cat "$tmp/out"; rm -f "$tmp/out";;
  20591. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  20592. esac
  20593. ;;
  20594. :H)
  20595. #
  20596. # CONFIG_HEADER
  20597. #
  20598. _ACEOF
  20599. # Transform confdefs.h into a sed script `conftest.defines', that
  20600. # substitutes the proper values into config.h.in to produce config.h.
  20601. rm -f conftest.defines conftest.tail
  20602. # First, append a space to every undef/define line, to ease matching.
  20603. echo 's/$/ /' >conftest.defines
  20604. # Then, protect against being on the right side of a sed subst, or in
  20605. # an unquoted here document, in config.status. If some macros were
  20606. # called several times there might be several #defines for the same
  20607. # symbol, which is useless. But do not sort them, since the last
  20608. # AC_DEFINE must be honored.
  20609. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  20610. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  20611. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  20612. # PARAMS is the parameter list in the macro definition--in most cases, it's
  20613. # just an empty string.
  20614. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  20615. ac_dB='\\)[ (].*,\\1define\\2'
  20616. ac_dC=' '
  20617. ac_dD=' ,'
  20618. uniq confdefs.h |
  20619. sed -n '
  20620. t rset
  20621. :rset
  20622. s/^[ ]*#[ ]*define[ ][ ]*//
  20623. t ok
  20624. d
  20625. :ok
  20626. s/[\\&,]/\\&/g
  20627. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  20628. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  20629. ' >>conftest.defines
  20630. # Remove the space that was appended to ease matching.
  20631. # Then replace #undef with comments. This is necessary, for
  20632. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20633. # on some systems where configure will not decide to define it.
  20634. # (The regexp can be short, since the line contains either #define or #undef.)
  20635. echo 's/ $//
  20636. s,^[ #]*u.*,/* & */,' >>conftest.defines
  20637. # Break up conftest.defines:
  20638. ac_max_sed_lines=50
  20639. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  20640. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  20641. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  20642. # et cetera.
  20643. ac_in='$ac_file_inputs'
  20644. ac_out='"$tmp/out1"'
  20645. ac_nxt='"$tmp/out2"'
  20646. while :
  20647. do
  20648. # Write a here document:
  20649. cat >>$CONFIG_STATUS <<_ACEOF
  20650. # First, check the format of the line:
  20651. cat >"\$tmp/defines.sed" <<\\CEOF
  20652. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20653. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20654. b
  20655. :def
  20656. _ACEOF
  20657. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20658. echo 'CEOF
  20659. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20660. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20661. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20662. grep . conftest.tail >/dev/null || break
  20663. rm -f conftest.defines
  20664. mv conftest.tail conftest.defines
  20665. done
  20666. rm -f conftest.defines conftest.tail
  20667. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  20668. cat >>$CONFIG_STATUS <<\_ACEOF
  20669. if test x"$ac_file" != x-; then
  20670. echo "/* $configure_input */" >"$tmp/config.h"
  20671. cat "$ac_result" >>"$tmp/config.h"
  20672. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  20673. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20674. echo "$as_me: $ac_file is unchanged" >&6;}
  20675. else
  20676. rm -f $ac_file
  20677. mv "$tmp/config.h" $ac_file
  20678. fi
  20679. else
  20680. echo "/* $configure_input */"
  20681. cat "$ac_result"
  20682. fi
  20683. rm -f "$tmp/out12"
  20684. # Compute $ac_file's index in $config_headers.
  20685. _am_arg=$ac_file
  20686. _am_stamp_count=1
  20687. for _am_header in $config_headers :; do
  20688. case $_am_header in
  20689. $_am_arg | $_am_arg:* )
  20690. break ;;
  20691. * )
  20692. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20693. esac
  20694. done
  20695. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20696. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20697. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20698. X"$_am_arg" : 'X\(//\)$' \| \
  20699. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20700. echo X"$_am_arg" |
  20701. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20702. s//\1/
  20703. q
  20704. }
  20705. /^X\(\/\/\)[^/].*/{
  20706. s//\1/
  20707. q
  20708. }
  20709. /^X\(\/\/\)$/{
  20710. s//\1/
  20711. q
  20712. }
  20713. /^X\(\/\).*/{
  20714. s//\1/
  20715. q
  20716. }
  20717. s/.*/./; q'`/stamp-h$_am_stamp_count
  20718. ;;
  20719. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  20720. echo "$as_me: executing $ac_file commands" >&6;}
  20721. ;;
  20722. esac
  20723. case $ac_file$ac_mode in
  20724. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20725. # Strip MF so we end up with the name of the file.
  20726. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20727. # Check whether this is an Automake generated Makefile or not.
  20728. # We used to match only the files named `Makefile.in', but
  20729. # some people rename them; so instead we look at the file content.
  20730. # Grep'ing the first line is not enough: some people post-process
  20731. # each Makefile.in and add a new line on top of each file to say so.
  20732. # Grep'ing the whole file is not good either: AIX grep has a line
  20733. # limit of 2048, but all sed's we know have understand at least 4000.
  20734. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20735. dirpart=`$as_dirname -- "$mf" ||
  20736. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20737. X"$mf" : 'X\(//\)[^/]' \| \
  20738. X"$mf" : 'X\(//\)$' \| \
  20739. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20740. echo X"$mf" |
  20741. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20742. s//\1/
  20743. q
  20744. }
  20745. /^X\(\/\/\)[^/].*/{
  20746. s//\1/
  20747. q
  20748. }
  20749. /^X\(\/\/\)$/{
  20750. s//\1/
  20751. q
  20752. }
  20753. /^X\(\/\).*/{
  20754. s//\1/
  20755. q
  20756. }
  20757. s/.*/./; q'`
  20758. else
  20759. continue
  20760. fi
  20761. # Extract the definition of DEPDIR, am__include, and am__quote
  20762. # from the Makefile without running `make'.
  20763. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20764. test -z "$DEPDIR" && continue
  20765. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20766. test -z "am__include" && continue
  20767. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20768. # When using ansi2knr, U may be empty or an underscore; expand it
  20769. U=`sed -n 's/^U = //p' < "$mf"`
  20770. # Find all dependency output files, they are included files with
  20771. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20772. # simplest approach to changing $(DEPDIR) to its actual value in the
  20773. # expansion.
  20774. for file in `sed -n "
  20775. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20776. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20777. # Make sure the directory exists.
  20778. test -f "$dirpart/$file" && continue
  20779. fdir=`$as_dirname -- "$file" ||
  20780. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20781. X"$file" : 'X\(//\)[^/]' \| \
  20782. X"$file" : 'X\(//\)$' \| \
  20783. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20784. echo X"$file" |
  20785. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20786. s//\1/
  20787. q
  20788. }
  20789. /^X\(\/\/\)[^/].*/{
  20790. s//\1/
  20791. q
  20792. }
  20793. /^X\(\/\/\)$/{
  20794. s//\1/
  20795. q
  20796. }
  20797. /^X\(\/\).*/{
  20798. s//\1/
  20799. q
  20800. }
  20801. s/.*/./; q'`
  20802. { as_dir=$dirpart/$fdir
  20803. case $as_dir in #(
  20804. -*) as_dir=./$as_dir;;
  20805. esac
  20806. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20807. as_dirs=
  20808. while :; do
  20809. case $as_dir in #(
  20810. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20811. *) as_qdir=$as_dir;;
  20812. esac
  20813. as_dirs="'$as_qdir' $as_dirs"
  20814. as_dir=`$as_dirname -- "$as_dir" ||
  20815. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20816. X"$as_dir" : 'X\(//\)[^/]' \| \
  20817. X"$as_dir" : 'X\(//\)$' \| \
  20818. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20819. echo X"$as_dir" |
  20820. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20821. s//\1/
  20822. q
  20823. }
  20824. /^X\(\/\/\)[^/].*/{
  20825. s//\1/
  20826. q
  20827. }
  20828. /^X\(\/\/\)$/{
  20829. s//\1/
  20830. q
  20831. }
  20832. /^X\(\/\).*/{
  20833. s//\1/
  20834. q
  20835. }
  20836. s/.*/./; q'`
  20837. test -d "$as_dir" && break
  20838. done
  20839. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20840. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20841. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20842. { (exit 1); exit 1; }; }; }
  20843. # echo "creating $dirpart/$file"
  20844. echo '# dummy' > "$dirpart/$file"
  20845. done
  20846. done
  20847. ;;
  20848. "po-directories":C)
  20849. for ac_file in $CONFIG_FILES; do
  20850. # Support "outfile[:infile[:infile...]]"
  20851. case "$ac_file" in
  20852. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  20853. esac
  20854. # PO directories have a Makefile.in generated from Makefile.in.in.
  20855. case "$ac_file" in */Makefile.in)
  20856. # Adjust a relative srcdir.
  20857. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  20858. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  20859. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  20860. # In autoconf-2.13 it is called $ac_given_srcdir.
  20861. # In autoconf-2.50 it is called $srcdir.
  20862. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  20863. case "$ac_given_srcdir" in
  20864. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  20865. /*) top_srcdir="$ac_given_srcdir" ;;
  20866. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  20867. esac
  20868. # Treat a directory as a PO directory if and only if it has a
  20869. # POTFILES.in file. This allows packages to have multiple PO
  20870. # directories under different names or in different locations.
  20871. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  20872. rm -f "$ac_dir/POTFILES"
  20873. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  20874. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  20875. POMAKEFILEDEPS="POTFILES.in"
  20876. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  20877. # on $ac_dir but don't depend on user-specified configuration
  20878. # parameters.
  20879. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  20880. # The LINGUAS file contains the set of available languages.
  20881. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  20882. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  20883. fi
  20884. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  20885. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20886. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  20887. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  20888. else
  20889. # The set of available languages was given in configure.in.
  20890. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20891. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  20892. fi
  20893. # Compute POFILES
  20894. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  20895. # Compute UPDATEPOFILES
  20896. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  20897. # Compute DUMMYPOFILES
  20898. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  20899. # Compute GMOFILES
  20900. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  20901. case "$ac_given_srcdir" in
  20902. .) srcdirpre= ;;
  20903. *) srcdirpre='$(srcdir)/' ;;
  20904. esac
  20905. POFILES=
  20906. UPDATEPOFILES=
  20907. DUMMYPOFILES=
  20908. GMOFILES=
  20909. for lang in $ALL_LINGUAS; do
  20910. POFILES="$POFILES $srcdirpre$lang.po"
  20911. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  20912. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  20913. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  20914. done
  20915. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  20916. # environment variable.
  20917. INST_LINGUAS=
  20918. if test -n "$ALL_LINGUAS"; then
  20919. for presentlang in $ALL_LINGUAS; do
  20920. useit=no
  20921. if test "%UNSET%" != "$LINGUAS"; then
  20922. desiredlanguages="$LINGUAS"
  20923. else
  20924. desiredlanguages="$ALL_LINGUAS"
  20925. fi
  20926. for desiredlang in $desiredlanguages; do
  20927. # Use the presentlang catalog if desiredlang is
  20928. # a. equal to presentlang, or
  20929. # b. a variant of presentlang (because in this case,
  20930. # presentlang can be used as a fallback for messages
  20931. # which are not translated in the desiredlang catalog).
  20932. case "$desiredlang" in
  20933. "$presentlang"*) useit=yes;;
  20934. esac
  20935. done
  20936. if test $useit = yes; then
  20937. INST_LINGUAS="$INST_LINGUAS $presentlang"
  20938. fi
  20939. done
  20940. fi
  20941. CATALOGS=
  20942. if test -n "$INST_LINGUAS"; then
  20943. for lang in $INST_LINGUAS; do
  20944. CATALOGS="$CATALOGS $lang.gmo"
  20945. done
  20946. fi
  20947. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  20948. 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"
  20949. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  20950. if test -f "$f"; then
  20951. case "$f" in
  20952. *.orig | *.bak | *~) ;;
  20953. *) cat "$f" >> "$ac_dir/Makefile" ;;
  20954. esac
  20955. fi
  20956. done
  20957. fi
  20958. ;;
  20959. esac
  20960. done ;;
  20961. esac
  20962. done # for ac_tag
  20963. { (exit 0); exit 0; }
  20964. _ACEOF
  20965. chmod +x $CONFIG_STATUS
  20966. ac_clean_files=$ac_clean_files_save
  20967. # configure is writing to config.log, and then calls config.status.
  20968. # config.status does its own redirection, appending to config.log.
  20969. # Unfortunately, on DOS this fails, as config.log is still kept open
  20970. # by configure, so config.status won't be able to write to it; its
  20971. # output is simply discarded. So we exec the FD to /dev/null,
  20972. # effectively closing config.log, so it can be properly (re)opened and
  20973. # appended to by config.status. When coming back to configure, we
  20974. # need to make the FD available again.
  20975. if test "$no_create" != yes; then
  20976. ac_cs_success=:
  20977. ac_config_status_args=
  20978. test "$silent" = yes &&
  20979. ac_config_status_args="$ac_config_status_args --quiet"
  20980. exec 5>/dev/null
  20981. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20982. exec 5>>config.log
  20983. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20984. # would make configure fail if this is the last instruction.
  20985. $ac_cs_success || { (exit 1); exit 1; }
  20986. fi
  20987. echo " "
  20988. echo "Build: $build"
  20989. echo "Target: $target"
  20990. echo "Install prefix: $prefix"
  20991. echo "CFLAGS: $CFLAGS"
  20992. echo "CPPFLAGS: $CPPFLAGS"
  20993. echo "LDFLAGS: $LDFLAGS"
  20994. echo "LIBS: $LIBS"
  20995. echo "SQLite3: $have_sqlite3"
  20996. echo "GnuTLS: $have_libgnutls"
  20997. echo "OpenSSL: $have_openssl"
  20998. echo "LibXML2: $have_libxml2"
  20999. echo "LibExpat: $have_libexpat"
  21000. echo "LibAres: $have_libares"
  21001. echo "LibCares: $have_libcares"
  21002. echo "Libz: $have_libz"
  21003. echo "Bittorrent: $enable_bittorrent"
  21004. echo "Metalink: $enable_metalink"