configure 643 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.14.0b.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.14.0b'
  496. PACKAGE_STRING='aria2c 0.14.0b'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. gt_needs=
  535. ac_header_list=
  536. ac_func_list=
  537. ac_subst_vars='SHELL
  538. PATH_SEPARATOR
  539. PACKAGE_NAME
  540. PACKAGE_TARNAME
  541. PACKAGE_VERSION
  542. PACKAGE_STRING
  543. PACKAGE_BUGREPORT
  544. exec_prefix
  545. prefix
  546. program_transform_name
  547. bindir
  548. sbindir
  549. libexecdir
  550. datarootdir
  551. datadir
  552. sysconfdir
  553. sharedstatedir
  554. localstatedir
  555. includedir
  556. oldincludedir
  557. docdir
  558. infodir
  559. htmldir
  560. dvidir
  561. pdfdir
  562. psdir
  563. libdir
  564. localedir
  565. mandir
  566. DEFS
  567. ECHO_C
  568. ECHO_N
  569. ECHO_T
  570. LIBS
  571. build_alias
  572. host_alias
  573. target_alias
  574. build
  575. build_cpu
  576. build_vendor
  577. build_os
  578. host
  579. host_cpu
  580. host_vendor
  581. host_os
  582. target
  583. target_cpu
  584. target_vendor
  585. target_os
  586. INSTALL_PROGRAM
  587. INSTALL_SCRIPT
  588. INSTALL_DATA
  589. am__isrc
  590. CYGPATH_W
  591. PACKAGE
  592. VERSION
  593. ACLOCAL
  594. AUTOCONF
  595. AUTOMAKE
  596. AUTOHEADER
  597. MAKEINFO
  598. install_sh
  599. STRIP
  600. INSTALL_STRIP_PROGRAM
  601. mkdir_p
  602. AWK
  603. SET_MAKE
  604. am__leading_dot
  605. AMTAR
  606. am__tar
  607. am__untar
  608. CPPUNIT_CONFIG
  609. CPPUNIT_CFLAGS
  610. CPPUNIT_LIBS
  611. WINSOCK_LIBS
  612. CXX
  613. CXXFLAGS
  614. LDFLAGS
  615. CPPFLAGS
  616. ac_ct_CXX
  617. EXEEXT
  618. OBJEXT
  619. DEPDIR
  620. am__include
  621. am__quote
  622. AMDEP_TRUE
  623. AMDEP_FALSE
  624. AMDEPBACKSLASH
  625. CXXDEPMODE
  626. am__fastdepCXX_TRUE
  627. am__fastdepCXX_FALSE
  628. CC
  629. CFLAGS
  630. ac_ct_CC
  631. CCDEPMODE
  632. am__fastdepCC_TRUE
  633. am__fastdepCC_FALSE
  634. RANLIB
  635. YACC
  636. YFLAGS
  637. CXXCPP
  638. GREP
  639. EGREP
  640. XML2_CONFIG
  641. XML_CPPFLAGS
  642. XML_LIBS
  643. LIBEXPAT_LIBS
  644. LIBEXPAT_CPPFLAGS
  645. LIBGNUTLS_CONFIG
  646. LIBGNUTLS_CFLAGS
  647. LIBGNUTLS_LIBS
  648. LIBGCRYPT_CONFIG
  649. LIBGCRYPT_CFLAGS
  650. LIBGCRYPT_LIBS
  651. OPENSSL_LIBS
  652. OPENSSL_CFLAGS
  653. LIBCARES_LIBS
  654. LIBCARES_CPPFLAGS
  655. LIBARES_LIBS
  656. LIBARES_CPPFLAGS
  657. ENABLE_MESSAGE_DIGEST_TRUE
  658. ENABLE_MESSAGE_DIGEST_FALSE
  659. ENABLE_BITTORRENT_TRUE
  660. ENABLE_BITTORRENT_FALSE
  661. ENABLE_METALINK_TRUE
  662. ENABLE_METALINK_FALSE
  663. ENABLE_LIBXML2_TRUE
  664. ENABLE_LIBXML2_FALSE
  665. ENABLE_LIBEXPAT_TRUE
  666. ENABLE_LIBEXPAT_FALSE
  667. ENABLE_ASYNC_DNS_TRUE
  668. ENABLE_ASYNC_DNS_FALSE
  669. ALLOCA
  670. USE_NLS
  671. GETTEXT_MACRO_VERSION
  672. MSGFMT
  673. GMSGFMT
  674. MSGFMT_015
  675. GMSGFMT_015
  676. XGETTEXT
  677. XGETTEXT_015
  678. MSGMERGE
  679. XGETTEXT_EXTRA_OPTIONS
  680. GLIBC2
  681. CFLAG_VISIBILITY
  682. HAVE_VISIBILITY
  683. PRI_MACROS_BROKEN
  684. LIBPTH
  685. LTLIBPTH
  686. LIBPTH_PREFIX
  687. LIBTHREAD
  688. LTLIBTHREAD
  689. LIBMULTITHREAD
  690. LTLIBMULTITHREAD
  691. LIBICONV
  692. LTLIBICONV
  693. INTLBISON
  694. GLIBC21
  695. INTL_MACOSX_LIBS
  696. HAVE_POSIX_PRINTF
  697. HAVE_ASPRINTF
  698. HAVE_SNPRINTF
  699. HAVE_WPRINTF
  700. WOE32DLL
  701. WOE32
  702. WINDRES
  703. LTLIBC
  704. BUILD_INCLUDED_LIBINTL
  705. USE_INCLUDED_LIBINTL
  706. CATOBJEXT
  707. DATADIRNAME
  708. INSTOBJEXT
  709. GENCAT
  710. INTLOBJS
  711. INTL_LIBTOOL_SUFFIX_PREFIX
  712. INTLLIBS
  713. LIBINTL
  714. LTLIBINTL
  715. POSUB
  716. LIBOBJS
  717. HAVE_BASENAME_TRUE
  718. HAVE_BASENAME_FALSE
  719. HAVE_GAI_STRERROR_TRUE
  720. HAVE_GAI_STRERROR_FALSE
  721. HAVE_GETADDRINFO_TRUE
  722. HAVE_GETADDRINFO_FALSE
  723. HAVE_GETTIMEOFDAY_TRUE
  724. HAVE_GETTIMEOFDAY_FALSE
  725. HAVE_INET_ATON_TRUE
  726. HAVE_INET_ATON_FALSE
  727. HAVE_LOCALTIME_R_TRUE
  728. HAVE_LOCALTIME_R_FALSE
  729. HAVE_STRPTIME_TRUE
  730. HAVE_STRPTIME_FALSE
  731. HAVE_TIMEGM_TRUE
  732. HAVE_TIMEGM_FALSE
  733. LTLIBOBJS'
  734. ac_subst_files=''
  735. ac_precious_vars='build_alias
  736. host_alias
  737. target_alias
  738. CXX
  739. CXXFLAGS
  740. LDFLAGS
  741. LIBS
  742. CPPFLAGS
  743. CCC
  744. CC
  745. CFLAGS
  746. YACC
  747. YFLAGS
  748. CXXCPP'
  749. # Initialize some variables set by options.
  750. ac_init_help=
  751. ac_init_version=false
  752. # The variables have the same names as the options, with
  753. # dashes changed to underlines.
  754. cache_file=/dev/null
  755. exec_prefix=NONE
  756. no_create=
  757. no_recursion=
  758. prefix=NONE
  759. program_prefix=NONE
  760. program_suffix=NONE
  761. program_transform_name=s,x,x,
  762. silent=
  763. site=
  764. srcdir=
  765. verbose=
  766. x_includes=NONE
  767. x_libraries=NONE
  768. # Installation directory options.
  769. # These are left unexpanded so users can "make install exec_prefix=/foo"
  770. # and all the variables that are supposed to be based on exec_prefix
  771. # by default will actually change.
  772. # Use braces instead of parens because sh, perl, etc. also accept them.
  773. # (The list follows the same order as the GNU Coding Standards.)
  774. bindir='${exec_prefix}/bin'
  775. sbindir='${exec_prefix}/sbin'
  776. libexecdir='${exec_prefix}/libexec'
  777. datarootdir='${prefix}/share'
  778. datadir='${datarootdir}'
  779. sysconfdir='${prefix}/etc'
  780. sharedstatedir='${prefix}/com'
  781. localstatedir='${prefix}/var'
  782. includedir='${prefix}/include'
  783. oldincludedir='/usr/include'
  784. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  785. infodir='${datarootdir}/info'
  786. htmldir='${docdir}'
  787. dvidir='${docdir}'
  788. pdfdir='${docdir}'
  789. psdir='${docdir}'
  790. libdir='${exec_prefix}/lib'
  791. localedir='${datarootdir}/locale'
  792. mandir='${datarootdir}/man'
  793. ac_prev=
  794. ac_dashdash=
  795. for ac_option
  796. do
  797. # If the previous option needs an argument, assign it.
  798. if test -n "$ac_prev"; then
  799. eval $ac_prev=\$ac_option
  800. ac_prev=
  801. continue
  802. fi
  803. case $ac_option in
  804. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  805. *) ac_optarg=yes ;;
  806. esac
  807. # Accept the important Cygnus configure options, so we can diagnose typos.
  808. case $ac_dashdash$ac_option in
  809. --)
  810. ac_dashdash=yes ;;
  811. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  812. ac_prev=bindir ;;
  813. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  814. bindir=$ac_optarg ;;
  815. -build | --build | --buil | --bui | --bu)
  816. ac_prev=build_alias ;;
  817. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  818. build_alias=$ac_optarg ;;
  819. -cache-file | --cache-file | --cache-fil | --cache-fi \
  820. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  821. ac_prev=cache_file ;;
  822. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  823. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  824. cache_file=$ac_optarg ;;
  825. --config-cache | -C)
  826. cache_file=config.cache ;;
  827. -datadir | --datadir | --datadi | --datad)
  828. ac_prev=datadir ;;
  829. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  830. datadir=$ac_optarg ;;
  831. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  832. | --dataroo | --dataro | --datar)
  833. ac_prev=datarootdir ;;
  834. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  835. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  836. datarootdir=$ac_optarg ;;
  837. -disable-* | --disable-*)
  838. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  839. # Reject names that are not valid shell variable names.
  840. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  841. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  842. { (exit 1); exit 1; }; }
  843. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  844. eval enable_$ac_feature=no ;;
  845. -docdir | --docdir | --docdi | --doc | --do)
  846. ac_prev=docdir ;;
  847. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  848. docdir=$ac_optarg ;;
  849. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  850. ac_prev=dvidir ;;
  851. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  852. dvidir=$ac_optarg ;;
  853. -enable-* | --enable-*)
  854. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  855. # Reject names that are not valid shell variable names.
  856. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  857. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  858. { (exit 1); exit 1; }; }
  859. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  860. eval enable_$ac_feature=\$ac_optarg ;;
  861. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  862. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  863. | --exec | --exe | --ex)
  864. ac_prev=exec_prefix ;;
  865. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  866. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  867. | --exec=* | --exe=* | --ex=*)
  868. exec_prefix=$ac_optarg ;;
  869. -gas | --gas | --ga | --g)
  870. # Obsolete; use --with-gas.
  871. with_gas=yes ;;
  872. -help | --help | --hel | --he | -h)
  873. ac_init_help=long ;;
  874. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  875. ac_init_help=recursive ;;
  876. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  877. ac_init_help=short ;;
  878. -host | --host | --hos | --ho)
  879. ac_prev=host_alias ;;
  880. -host=* | --host=* | --hos=* | --ho=*)
  881. host_alias=$ac_optarg ;;
  882. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  883. ac_prev=htmldir ;;
  884. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  885. | --ht=*)
  886. htmldir=$ac_optarg ;;
  887. -includedir | --includedir | --includedi | --included | --include \
  888. | --includ | --inclu | --incl | --inc)
  889. ac_prev=includedir ;;
  890. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  891. | --includ=* | --inclu=* | --incl=* | --inc=*)
  892. includedir=$ac_optarg ;;
  893. -infodir | --infodir | --infodi | --infod | --info | --inf)
  894. ac_prev=infodir ;;
  895. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  896. infodir=$ac_optarg ;;
  897. -libdir | --libdir | --libdi | --libd)
  898. ac_prev=libdir ;;
  899. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  900. libdir=$ac_optarg ;;
  901. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  902. | --libexe | --libex | --libe)
  903. ac_prev=libexecdir ;;
  904. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  905. | --libexe=* | --libex=* | --libe=*)
  906. libexecdir=$ac_optarg ;;
  907. -localedir | --localedir | --localedi | --localed | --locale)
  908. ac_prev=localedir ;;
  909. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  910. localedir=$ac_optarg ;;
  911. -localstatedir | --localstatedir | --localstatedi | --localstated \
  912. | --localstate | --localstat | --localsta | --localst | --locals)
  913. ac_prev=localstatedir ;;
  914. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  915. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  916. localstatedir=$ac_optarg ;;
  917. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  918. ac_prev=mandir ;;
  919. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  920. mandir=$ac_optarg ;;
  921. -nfp | --nfp | --nf)
  922. # Obsolete; use --without-fp.
  923. with_fp=no ;;
  924. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  925. | --no-cr | --no-c | -n)
  926. no_create=yes ;;
  927. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  928. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  929. no_recursion=yes ;;
  930. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  931. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  932. | --oldin | --oldi | --old | --ol | --o)
  933. ac_prev=oldincludedir ;;
  934. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  935. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  936. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  937. oldincludedir=$ac_optarg ;;
  938. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  939. ac_prev=prefix ;;
  940. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  941. prefix=$ac_optarg ;;
  942. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  943. | --program-pre | --program-pr | --program-p)
  944. ac_prev=program_prefix ;;
  945. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  946. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  947. program_prefix=$ac_optarg ;;
  948. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  949. | --program-suf | --program-su | --program-s)
  950. ac_prev=program_suffix ;;
  951. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  952. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  953. program_suffix=$ac_optarg ;;
  954. -program-transform-name | --program-transform-name \
  955. | --program-transform-nam | --program-transform-na \
  956. | --program-transform-n | --program-transform- \
  957. | --program-transform | --program-transfor \
  958. | --program-transfo | --program-transf \
  959. | --program-trans | --program-tran \
  960. | --progr-tra | --program-tr | --program-t)
  961. ac_prev=program_transform_name ;;
  962. -program-transform-name=* | --program-transform-name=* \
  963. | --program-transform-nam=* | --program-transform-na=* \
  964. | --program-transform-n=* | --program-transform-=* \
  965. | --program-transform=* | --program-transfor=* \
  966. | --program-transfo=* | --program-transf=* \
  967. | --program-trans=* | --program-tran=* \
  968. | --progr-tra=* | --program-tr=* | --program-t=*)
  969. program_transform_name=$ac_optarg ;;
  970. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  971. ac_prev=pdfdir ;;
  972. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  973. pdfdir=$ac_optarg ;;
  974. -psdir | --psdir | --psdi | --psd | --ps)
  975. ac_prev=psdir ;;
  976. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  977. psdir=$ac_optarg ;;
  978. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  979. | -silent | --silent | --silen | --sile | --sil)
  980. silent=yes ;;
  981. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  982. ac_prev=sbindir ;;
  983. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  984. | --sbi=* | --sb=*)
  985. sbindir=$ac_optarg ;;
  986. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  987. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  988. | --sharedst | --shareds | --shared | --share | --shar \
  989. | --sha | --sh)
  990. ac_prev=sharedstatedir ;;
  991. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  992. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  993. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  994. | --sha=* | --sh=*)
  995. sharedstatedir=$ac_optarg ;;
  996. -site | --site | --sit)
  997. ac_prev=site ;;
  998. -site=* | --site=* | --sit=*)
  999. site=$ac_optarg ;;
  1000. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1001. ac_prev=srcdir ;;
  1002. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1003. srcdir=$ac_optarg ;;
  1004. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1005. | --syscon | --sysco | --sysc | --sys | --sy)
  1006. ac_prev=sysconfdir ;;
  1007. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1008. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1009. sysconfdir=$ac_optarg ;;
  1010. -target | --target | --targe | --targ | --tar | --ta | --t)
  1011. ac_prev=target_alias ;;
  1012. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1013. target_alias=$ac_optarg ;;
  1014. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1015. verbose=yes ;;
  1016. -version | --version | --versio | --versi | --vers | -V)
  1017. ac_init_version=: ;;
  1018. -with-* | --with-*)
  1019. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1020. # Reject names that are not valid shell variable names.
  1021. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1022. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1023. { (exit 1); exit 1; }; }
  1024. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1025. eval with_$ac_package=\$ac_optarg ;;
  1026. -without-* | --without-*)
  1027. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1028. # Reject names that are not valid shell variable names.
  1029. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1030. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1031. { (exit 1); exit 1; }; }
  1032. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1033. eval with_$ac_package=no ;;
  1034. --x)
  1035. # Obsolete; use --with-x.
  1036. with_x=yes ;;
  1037. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1038. | --x-incl | --x-inc | --x-in | --x-i)
  1039. ac_prev=x_includes ;;
  1040. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1041. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1042. x_includes=$ac_optarg ;;
  1043. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1044. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1045. ac_prev=x_libraries ;;
  1046. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1047. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1048. x_libraries=$ac_optarg ;;
  1049. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1050. Try \`$0 --help' for more information." >&2
  1051. { (exit 1); exit 1; }; }
  1052. ;;
  1053. *=*)
  1054. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1055. # Reject names that are not valid shell variable names.
  1056. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1057. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1058. { (exit 1); exit 1; }; }
  1059. eval $ac_envvar=\$ac_optarg
  1060. export $ac_envvar ;;
  1061. *)
  1062. # FIXME: should be removed in autoconf 3.0.
  1063. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1064. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1065. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1066. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1067. ;;
  1068. esac
  1069. done
  1070. if test -n "$ac_prev"; then
  1071. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1072. { echo "$as_me: error: missing argument to $ac_option" >&2
  1073. { (exit 1); exit 1; }; }
  1074. fi
  1075. # Be sure to have absolute directory names.
  1076. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1077. datadir sysconfdir sharedstatedir localstatedir includedir \
  1078. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1079. libdir localedir mandir
  1080. do
  1081. eval ac_val=\$$ac_var
  1082. case $ac_val in
  1083. [\\/$]* | ?:[\\/]* ) continue;;
  1084. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1085. esac
  1086. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1087. { (exit 1); exit 1; }; }
  1088. done
  1089. # There might be people who depend on the old broken behavior: `$host'
  1090. # used to hold the argument of --host etc.
  1091. # FIXME: To remove some day.
  1092. build=$build_alias
  1093. host=$host_alias
  1094. target=$target_alias
  1095. # FIXME: To remove some day.
  1096. if test "x$host_alias" != x; then
  1097. if test "x$build_alias" = x; then
  1098. cross_compiling=maybe
  1099. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1100. If a cross compiler is detected then cross compile mode will be used." >&2
  1101. elif test "x$build_alias" != "x$host_alias"; then
  1102. cross_compiling=yes
  1103. fi
  1104. fi
  1105. ac_tool_prefix=
  1106. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1107. test "$silent" = yes && exec 6>/dev/null
  1108. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1109. ac_ls_di=`ls -di .` &&
  1110. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1111. { echo "$as_me: error: Working directory cannot be determined" >&2
  1112. { (exit 1); exit 1; }; }
  1113. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1114. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1115. { (exit 1); exit 1; }; }
  1116. # Find the source files, if location was not specified.
  1117. if test -z "$srcdir"; then
  1118. ac_srcdir_defaulted=yes
  1119. # Try the directory containing this script, then the parent directory.
  1120. ac_confdir=`$as_dirname -- "$0" ||
  1121. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1122. X"$0" : 'X\(//\)[^/]' \| \
  1123. X"$0" : 'X\(//\)$' \| \
  1124. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1125. echo X"$0" |
  1126. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1127. s//\1/
  1128. q
  1129. }
  1130. /^X\(\/\/\)[^/].*/{
  1131. s//\1/
  1132. q
  1133. }
  1134. /^X\(\/\/\)$/{
  1135. s//\1/
  1136. q
  1137. }
  1138. /^X\(\/\).*/{
  1139. s//\1/
  1140. q
  1141. }
  1142. s/.*/./; q'`
  1143. srcdir=$ac_confdir
  1144. if test ! -r "$srcdir/$ac_unique_file"; then
  1145. srcdir=..
  1146. fi
  1147. else
  1148. ac_srcdir_defaulted=no
  1149. fi
  1150. if test ! -r "$srcdir/$ac_unique_file"; then
  1151. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1152. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1153. { (exit 1); exit 1; }; }
  1154. fi
  1155. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1156. ac_abs_confdir=`(
  1157. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1158. { (exit 1); exit 1; }; }
  1159. pwd)`
  1160. # When building in place, set srcdir=.
  1161. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1162. srcdir=.
  1163. fi
  1164. # Remove unnecessary trailing slashes from srcdir.
  1165. # Double slashes in file names in object file debugging info
  1166. # mess up M-x gdb in Emacs.
  1167. case $srcdir in
  1168. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1169. esac
  1170. for ac_var in $ac_precious_vars; do
  1171. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1172. eval ac_env_${ac_var}_value=\$${ac_var}
  1173. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1174. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1175. done
  1176. #
  1177. # Report the --help message.
  1178. #
  1179. if test "$ac_init_help" = "long"; then
  1180. # Omit some internal or obsolete options to make the list less imposing.
  1181. # This message is too long to be a string in the A/UX 3.1 sh.
  1182. cat <<_ACEOF
  1183. \`configure' configures aria2c 0.14.0b to adapt to many kinds of systems.
  1184. Usage: $0 [OPTION]... [VAR=VALUE]...
  1185. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1186. VAR=VALUE. See below for descriptions of some of the useful variables.
  1187. Defaults for the options are specified in brackets.
  1188. Configuration:
  1189. -h, --help display this help and exit
  1190. --help=short display options specific to this package
  1191. --help=recursive display the short help of all the included packages
  1192. -V, --version display version information and exit
  1193. -q, --quiet, --silent do not print \`checking...' messages
  1194. --cache-file=FILE cache test results in FILE [disabled]
  1195. -C, --config-cache alias for \`--cache-file=config.cache'
  1196. -n, --no-create do not create output files
  1197. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1198. Installation directories:
  1199. --prefix=PREFIX install architecture-independent files in PREFIX
  1200. [$ac_default_prefix]
  1201. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1202. [PREFIX]
  1203. By default, \`make install' will install all the files in
  1204. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1205. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1206. for instance \`--prefix=\$HOME'.
  1207. For better control, use the options below.
  1208. Fine tuning of the installation directories:
  1209. --bindir=DIR user executables [EPREFIX/bin]
  1210. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1211. --libexecdir=DIR program executables [EPREFIX/libexec]
  1212. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1213. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1214. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1215. --libdir=DIR object code libraries [EPREFIX/lib]
  1216. --includedir=DIR C header files [PREFIX/include]
  1217. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1218. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1219. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1220. --infodir=DIR info documentation [DATAROOTDIR/info]
  1221. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1222. --mandir=DIR man documentation [DATAROOTDIR/man]
  1223. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1224. --htmldir=DIR html documentation [DOCDIR]
  1225. --dvidir=DIR dvi documentation [DOCDIR]
  1226. --pdfdir=DIR pdf documentation [DOCDIR]
  1227. --psdir=DIR ps documentation [DOCDIR]
  1228. _ACEOF
  1229. cat <<\_ACEOF
  1230. Program names:
  1231. --program-prefix=PREFIX prepend PREFIX to installed program names
  1232. --program-suffix=SUFFIX append SUFFIX to installed program names
  1233. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1234. System types:
  1235. --build=BUILD configure for building on BUILD [guessed]
  1236. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1237. --target=TARGET configure for building compilers for TARGET [HOST]
  1238. _ACEOF
  1239. fi
  1240. if test -n "$ac_init_help"; then
  1241. case $ac_init_help in
  1242. short | recursive ) echo "Configuration of aria2c 0.14.0b:";;
  1243. esac
  1244. cat <<\_ACEOF
  1245. Optional Features:
  1246. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1247. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1248. --enable-bittorrent enable BitTorrent support. Default: yes
  1249. --enable-metalink enable Metalink support. Default: yes
  1250. --disable-dependency-tracking speeds up one-time build
  1251. --enable-dependency-tracking do not reject slow dependency extractors
  1252. --disable-xmltest Do not try to compile and run a test LIBXML program
  1253. --disable-largefile omit support for large files
  1254. --disable-nls do not use Native Language Support
  1255. --enable-threads={posix|solaris|pth|win32}
  1256. specify multithreading API
  1257. --disable-threads build without multithread safety
  1258. --disable-rpath do not hardcode runtime library paths
  1259. Optional Packages:
  1260. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1261. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1262. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1263. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1264. --with-gnutls use gnutls library if installed. Default: yes
  1265. --with-openssl use openssl library if installed. Default: yes
  1266. --with-libxml2 use libxml2 library if installed. Default: yes
  1267. --with-libexpat use libexpat library if installed. Default: yes
  1268. --with-libares use ares library if installed. Default: yes
  1269. --with-libcares use c-ares library if installed. Default: yes
  1270. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1271. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1272. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1273. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1274. --with-libgcrypt-prefix=PFX
  1275. prefix where LIBGCRYPT is installed (optional)
  1276. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1277. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1278. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1279. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1280. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1281. --without-libpth-prefix don't search for libpth in includedir and libdir
  1282. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1283. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1284. --with-included-gettext use the GNU gettext library included here
  1285. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1286. --without-libintl-prefix don't search for libintl in includedir and libdir
  1287. Some influential environment variables:
  1288. CXX C++ compiler command
  1289. CXXFLAGS C++ compiler flags
  1290. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1291. nonstandard directory <lib dir>
  1292. LIBS libraries to pass to the linker, e.g. -l<library>
  1293. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1294. you have headers in a nonstandard directory <include dir>
  1295. CC C compiler command
  1296. CFLAGS C compiler flags
  1297. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1298. the first program found out of: `bison -y', `byacc', `yacc'.
  1299. YFLAGS The list of arguments that will be passed by default to $YACC.
  1300. This script will default YFLAGS to the empty string to avoid a
  1301. default value of `-d' given by some make applications.
  1302. CXXCPP C++ preprocessor
  1303. Use these variables to override the choices made by `configure' or to help
  1304. it to find libraries and programs with nonstandard names/locations.
  1305. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1306. _ACEOF
  1307. ac_status=$?
  1308. fi
  1309. if test "$ac_init_help" = "recursive"; then
  1310. # If there are subdirs, report their specific --help.
  1311. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1312. test -d "$ac_dir" || continue
  1313. ac_builddir=.
  1314. case "$ac_dir" in
  1315. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1316. *)
  1317. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1318. # A ".." for each directory in $ac_dir_suffix.
  1319. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1320. case $ac_top_builddir_sub in
  1321. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1322. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1323. esac ;;
  1324. esac
  1325. ac_abs_top_builddir=$ac_pwd
  1326. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1327. # for backward compatibility:
  1328. ac_top_builddir=$ac_top_build_prefix
  1329. case $srcdir in
  1330. .) # We are building in place.
  1331. ac_srcdir=.
  1332. ac_top_srcdir=$ac_top_builddir_sub
  1333. ac_abs_top_srcdir=$ac_pwd ;;
  1334. [\\/]* | ?:[\\/]* ) # Absolute name.
  1335. ac_srcdir=$srcdir$ac_dir_suffix;
  1336. ac_top_srcdir=$srcdir
  1337. ac_abs_top_srcdir=$srcdir ;;
  1338. *) # Relative name.
  1339. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1340. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1341. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1342. esac
  1343. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1344. cd "$ac_dir" || { ac_status=$?; continue; }
  1345. # Check for guested configure.
  1346. if test -f "$ac_srcdir/configure.gnu"; then
  1347. echo &&
  1348. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1349. elif test -f "$ac_srcdir/configure"; then
  1350. echo &&
  1351. $SHELL "$ac_srcdir/configure" --help=recursive
  1352. else
  1353. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1354. fi || ac_status=$?
  1355. cd "$ac_pwd" || { ac_status=$?; break; }
  1356. done
  1357. fi
  1358. test -n "$ac_init_help" && exit $ac_status
  1359. if $ac_init_version; then
  1360. cat <<\_ACEOF
  1361. aria2c configure 0.14.0b
  1362. generated by GNU Autoconf 2.61
  1363. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1364. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1365. This configure script is free software; the Free Software Foundation
  1366. gives unlimited permission to copy, distribute and modify it.
  1367. _ACEOF
  1368. exit
  1369. fi
  1370. cat >config.log <<_ACEOF
  1371. This file contains any messages produced by compilers while
  1372. running configure, to aid debugging if configure makes a mistake.
  1373. It was created by aria2c $as_me 0.14.0b, which was
  1374. generated by GNU Autoconf 2.61. Invocation command line was
  1375. $ $0 $@
  1376. _ACEOF
  1377. exec 5>>config.log
  1378. {
  1379. cat <<_ASUNAME
  1380. ## --------- ##
  1381. ## Platform. ##
  1382. ## --------- ##
  1383. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1384. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1385. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1386. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1387. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1388. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1389. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1390. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1391. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1392. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1393. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1394. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1395. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1396. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1397. _ASUNAME
  1398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1399. for as_dir in $PATH
  1400. do
  1401. IFS=$as_save_IFS
  1402. test -z "$as_dir" && as_dir=.
  1403. echo "PATH: $as_dir"
  1404. done
  1405. IFS=$as_save_IFS
  1406. } >&5
  1407. cat >&5 <<_ACEOF
  1408. ## ----------- ##
  1409. ## Core tests. ##
  1410. ## ----------- ##
  1411. _ACEOF
  1412. # Keep a trace of the command line.
  1413. # Strip out --no-create and --no-recursion so they do not pile up.
  1414. # Strip out --silent because we don't want to record it for future runs.
  1415. # Also quote any args containing shell meta-characters.
  1416. # Make two passes to allow for proper duplicate-argument suppression.
  1417. ac_configure_args=
  1418. ac_configure_args0=
  1419. ac_configure_args1=
  1420. ac_must_keep_next=false
  1421. for ac_pass in 1 2
  1422. do
  1423. for ac_arg
  1424. do
  1425. case $ac_arg in
  1426. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1427. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1428. | -silent | --silent | --silen | --sile | --sil)
  1429. continue ;;
  1430. *\'*)
  1431. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1432. esac
  1433. case $ac_pass in
  1434. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1435. 2)
  1436. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1437. if test $ac_must_keep_next = true; then
  1438. ac_must_keep_next=false # Got value, back to normal.
  1439. else
  1440. case $ac_arg in
  1441. *=* | --config-cache | -C | -disable-* | --disable-* \
  1442. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1443. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1444. | -with-* | --with-* | -without-* | --without-* | --x)
  1445. case "$ac_configure_args0 " in
  1446. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1447. esac
  1448. ;;
  1449. -* ) ac_must_keep_next=true ;;
  1450. esac
  1451. fi
  1452. ac_configure_args="$ac_configure_args '$ac_arg'"
  1453. ;;
  1454. esac
  1455. done
  1456. done
  1457. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1458. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1459. # When interrupted or exit'd, cleanup temporary files, and complete
  1460. # config.log. We remove comments because anyway the quotes in there
  1461. # would cause problems or look ugly.
  1462. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1463. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1464. trap 'exit_status=$?
  1465. # Save into config.log some information that might help in debugging.
  1466. {
  1467. echo
  1468. cat <<\_ASBOX
  1469. ## ---------------- ##
  1470. ## Cache variables. ##
  1471. ## ---------------- ##
  1472. _ASBOX
  1473. echo
  1474. # The following way of writing the cache mishandles newlines in values,
  1475. (
  1476. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1477. eval ac_val=\$$ac_var
  1478. case $ac_val in #(
  1479. *${as_nl}*)
  1480. case $ac_var in #(
  1481. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1482. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1483. esac
  1484. case $ac_var in #(
  1485. _ | IFS | as_nl) ;; #(
  1486. *) $as_unset $ac_var ;;
  1487. esac ;;
  1488. esac
  1489. done
  1490. (set) 2>&1 |
  1491. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1492. *${as_nl}ac_space=\ *)
  1493. sed -n \
  1494. "s/'\''/'\''\\\\'\'''\''/g;
  1495. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1496. ;; #(
  1497. *)
  1498. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1499. ;;
  1500. esac |
  1501. sort
  1502. )
  1503. echo
  1504. cat <<\_ASBOX
  1505. ## ----------------- ##
  1506. ## Output variables. ##
  1507. ## ----------------- ##
  1508. _ASBOX
  1509. echo
  1510. for ac_var in $ac_subst_vars
  1511. do
  1512. eval ac_val=\$$ac_var
  1513. case $ac_val in
  1514. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1515. esac
  1516. echo "$ac_var='\''$ac_val'\''"
  1517. done | sort
  1518. echo
  1519. if test -n "$ac_subst_files"; then
  1520. cat <<\_ASBOX
  1521. ## ------------------- ##
  1522. ## File substitutions. ##
  1523. ## ------------------- ##
  1524. _ASBOX
  1525. echo
  1526. for ac_var in $ac_subst_files
  1527. do
  1528. eval ac_val=\$$ac_var
  1529. case $ac_val in
  1530. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1531. esac
  1532. echo "$ac_var='\''$ac_val'\''"
  1533. done | sort
  1534. echo
  1535. fi
  1536. if test -s confdefs.h; then
  1537. cat <<\_ASBOX
  1538. ## ----------- ##
  1539. ## confdefs.h. ##
  1540. ## ----------- ##
  1541. _ASBOX
  1542. echo
  1543. cat confdefs.h
  1544. echo
  1545. fi
  1546. test "$ac_signal" != 0 &&
  1547. echo "$as_me: caught signal $ac_signal"
  1548. echo "$as_me: exit $exit_status"
  1549. } >&5
  1550. rm -f core *.core core.conftest.* &&
  1551. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1552. exit $exit_status
  1553. ' 0
  1554. for ac_signal in 1 2 13 15; do
  1555. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1556. done
  1557. ac_signal=0
  1558. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1559. rm -f -r conftest* confdefs.h
  1560. # Predefined preprocessor variables.
  1561. cat >>confdefs.h <<_ACEOF
  1562. #define PACKAGE_NAME "$PACKAGE_NAME"
  1563. _ACEOF
  1564. cat >>confdefs.h <<_ACEOF
  1565. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1566. _ACEOF
  1567. cat >>confdefs.h <<_ACEOF
  1568. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1569. _ACEOF
  1570. cat >>confdefs.h <<_ACEOF
  1571. #define PACKAGE_STRING "$PACKAGE_STRING"
  1572. _ACEOF
  1573. cat >>confdefs.h <<_ACEOF
  1574. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1575. _ACEOF
  1576. # Let the site file select an alternate cache file if it wants to.
  1577. # Prefer explicitly selected file to automatically selected ones.
  1578. if test -n "$CONFIG_SITE"; then
  1579. set x "$CONFIG_SITE"
  1580. elif test "x$prefix" != xNONE; then
  1581. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1582. else
  1583. set x "$ac_default_prefix/share/config.site" \
  1584. "$ac_default_prefix/etc/config.site"
  1585. fi
  1586. shift
  1587. for ac_site_file
  1588. do
  1589. if test -r "$ac_site_file"; then
  1590. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1591. echo "$as_me: loading site script $ac_site_file" >&6;}
  1592. sed 's/^/| /' "$ac_site_file" >&5
  1593. . "$ac_site_file"
  1594. fi
  1595. done
  1596. if test -r "$cache_file"; then
  1597. # Some versions of bash will fail to source /dev/null (special
  1598. # files actually), so we avoid doing that.
  1599. if test -f "$cache_file"; then
  1600. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1601. echo "$as_me: loading cache $cache_file" >&6;}
  1602. case $cache_file in
  1603. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1604. *) . "./$cache_file";;
  1605. esac
  1606. fi
  1607. else
  1608. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1609. echo "$as_me: creating cache $cache_file" >&6;}
  1610. >$cache_file
  1611. fi
  1612. gt_needs="$gt_needs "
  1613. ac_header_list="$ac_header_list sys/time.h"
  1614. ac_header_list="$ac_header_list unistd.h"
  1615. ac_func_list="$ac_func_list alarm"
  1616. # Check that the precious variables saved in the cache have kept the same
  1617. # value.
  1618. ac_cache_corrupted=false
  1619. for ac_var in $ac_precious_vars; do
  1620. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1621. eval ac_new_set=\$ac_env_${ac_var}_set
  1622. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1623. eval ac_new_val=\$ac_env_${ac_var}_value
  1624. case $ac_old_set,$ac_new_set in
  1625. set,)
  1626. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1627. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1628. ac_cache_corrupted=: ;;
  1629. ,set)
  1630. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1631. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1632. ac_cache_corrupted=: ;;
  1633. ,);;
  1634. *)
  1635. if test "x$ac_old_val" != "x$ac_new_val"; then
  1636. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1637. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1638. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1639. echo "$as_me: former value: $ac_old_val" >&2;}
  1640. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1641. echo "$as_me: current value: $ac_new_val" >&2;}
  1642. ac_cache_corrupted=:
  1643. fi;;
  1644. esac
  1645. # Pass precious variables to config.status.
  1646. if test "$ac_new_set" = set; then
  1647. case $ac_new_val in
  1648. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1649. *) ac_arg=$ac_var=$ac_new_val ;;
  1650. esac
  1651. case " $ac_configure_args " in
  1652. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1653. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1654. esac
  1655. fi
  1656. done
  1657. if $ac_cache_corrupted; then
  1658. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1659. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1660. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1661. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1662. { (exit 1); exit 1; }; }
  1663. fi
  1664. ac_ext=c
  1665. ac_cpp='$CPP $CPPFLAGS'
  1666. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1667. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1668. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1669. ac_aux_dir=
  1670. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1671. if test -f "$ac_dir/install-sh"; then
  1672. ac_aux_dir=$ac_dir
  1673. ac_install_sh="$ac_aux_dir/install-sh -c"
  1674. break
  1675. elif test -f "$ac_dir/install.sh"; then
  1676. ac_aux_dir=$ac_dir
  1677. ac_install_sh="$ac_aux_dir/install.sh -c"
  1678. break
  1679. elif test -f "$ac_dir/shtool"; then
  1680. ac_aux_dir=$ac_dir
  1681. ac_install_sh="$ac_aux_dir/shtool install -c"
  1682. break
  1683. fi
  1684. done
  1685. if test -z "$ac_aux_dir"; then
  1686. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1687. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1688. { (exit 1); exit 1; }; }
  1689. fi
  1690. # These three variables are undocumented and unsupported,
  1691. # and are intended to be withdrawn in a future Autoconf release.
  1692. # They can cause serious problems if a builder's source tree is in a directory
  1693. # whose full name contains unusual characters.
  1694. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1695. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1696. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1697. # Make sure we can run config.sub.
  1698. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1699. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1700. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1701. { (exit 1); exit 1; }; }
  1702. { echo "$as_me:$LINENO: checking build system type" >&5
  1703. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1704. if test "${ac_cv_build+set}" = set; then
  1705. echo $ECHO_N "(cached) $ECHO_C" >&6
  1706. else
  1707. ac_build_alias=$build_alias
  1708. test "x$ac_build_alias" = x &&
  1709. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1710. test "x$ac_build_alias" = x &&
  1711. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1712. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1713. { (exit 1); exit 1; }; }
  1714. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1715. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1716. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1717. { (exit 1); exit 1; }; }
  1718. fi
  1719. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1720. echo "${ECHO_T}$ac_cv_build" >&6; }
  1721. case $ac_cv_build in
  1722. *-*-*) ;;
  1723. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1724. echo "$as_me: error: invalid value of canonical build" >&2;}
  1725. { (exit 1); exit 1; }; };;
  1726. esac
  1727. build=$ac_cv_build
  1728. ac_save_IFS=$IFS; IFS='-'
  1729. set x $ac_cv_build
  1730. shift
  1731. build_cpu=$1
  1732. build_vendor=$2
  1733. shift; shift
  1734. # Remember, the first character of IFS is used to create $*,
  1735. # except with old shells:
  1736. build_os=$*
  1737. IFS=$ac_save_IFS
  1738. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1739. { echo "$as_me:$LINENO: checking host system type" >&5
  1740. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1741. if test "${ac_cv_host+set}" = set; then
  1742. echo $ECHO_N "(cached) $ECHO_C" >&6
  1743. else
  1744. if test "x$host_alias" = x; then
  1745. ac_cv_host=$ac_cv_build
  1746. else
  1747. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1748. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1749. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1750. { (exit 1); exit 1; }; }
  1751. fi
  1752. fi
  1753. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1754. echo "${ECHO_T}$ac_cv_host" >&6; }
  1755. case $ac_cv_host in
  1756. *-*-*) ;;
  1757. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1758. echo "$as_me: error: invalid value of canonical host" >&2;}
  1759. { (exit 1); exit 1; }; };;
  1760. esac
  1761. host=$ac_cv_host
  1762. ac_save_IFS=$IFS; IFS='-'
  1763. set x $ac_cv_host
  1764. shift
  1765. host_cpu=$1
  1766. host_vendor=$2
  1767. shift; shift
  1768. # Remember, the first character of IFS is used to create $*,
  1769. # except with old shells:
  1770. host_os=$*
  1771. IFS=$ac_save_IFS
  1772. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1773. { echo "$as_me:$LINENO: checking target system type" >&5
  1774. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1775. if test "${ac_cv_target+set}" = set; then
  1776. echo $ECHO_N "(cached) $ECHO_C" >&6
  1777. else
  1778. if test "x$target_alias" = x; then
  1779. ac_cv_target=$ac_cv_host
  1780. else
  1781. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1782. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1783. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1784. { (exit 1); exit 1; }; }
  1785. fi
  1786. fi
  1787. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1788. echo "${ECHO_T}$ac_cv_target" >&6; }
  1789. case $ac_cv_target in
  1790. *-*-*) ;;
  1791. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1792. echo "$as_me: error: invalid value of canonical target" >&2;}
  1793. { (exit 1); exit 1; }; };;
  1794. esac
  1795. target=$ac_cv_target
  1796. ac_save_IFS=$IFS; IFS='-'
  1797. set x $ac_cv_target
  1798. shift
  1799. target_cpu=$1
  1800. target_vendor=$2
  1801. shift; shift
  1802. # Remember, the first character of IFS is used to create $*,
  1803. # except with old shells:
  1804. target_os=$*
  1805. IFS=$ac_save_IFS
  1806. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1807. # The aliases save the names the user supplied, while $host etc.
  1808. # will get canonicalized.
  1809. test -n "$target_alias" &&
  1810. test "$program_prefix$program_suffix$program_transform_name" = \
  1811. NONENONEs,x,x, &&
  1812. program_prefix=${target_alias}-
  1813. am__api_version='1.10'
  1814. # Find a good install program. We prefer a C program (faster),
  1815. # so one script is as good as another. But avoid the broken or
  1816. # incompatible versions:
  1817. # SysV /etc/install, /usr/sbin/install
  1818. # SunOS /usr/etc/install
  1819. # IRIX /sbin/install
  1820. # AIX /bin/install
  1821. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1822. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1823. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1824. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1825. # OS/2's system install, which has a completely different semantic
  1826. # ./install, which can be erroneously created by make from ./install.sh.
  1827. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1828. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1829. if test -z "$INSTALL"; then
  1830. if test "${ac_cv_path_install+set}" = set; then
  1831. echo $ECHO_N "(cached) $ECHO_C" >&6
  1832. else
  1833. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1834. for as_dir in $PATH
  1835. do
  1836. IFS=$as_save_IFS
  1837. test -z "$as_dir" && as_dir=.
  1838. # Account for people who put trailing slashes in PATH elements.
  1839. case $as_dir/ in
  1840. ./ | .// | /cC/* | \
  1841. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1842. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1843. /usr/ucb/* ) ;;
  1844. *)
  1845. # OSF1 and SCO ODT 3.0 have their own names for install.
  1846. # Don't use installbsd from OSF since it installs stuff as root
  1847. # by default.
  1848. for ac_prog in ginstall scoinst install; do
  1849. for ac_exec_ext in '' $ac_executable_extensions; do
  1850. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1851. if test $ac_prog = install &&
  1852. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1853. # AIX install. It has an incompatible calling convention.
  1854. :
  1855. elif test $ac_prog = install &&
  1856. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1857. # program-specific install script used by HP pwplus--don't use.
  1858. :
  1859. else
  1860. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1861. break 3
  1862. fi
  1863. fi
  1864. done
  1865. done
  1866. ;;
  1867. esac
  1868. done
  1869. IFS=$as_save_IFS
  1870. fi
  1871. if test "${ac_cv_path_install+set}" = set; then
  1872. INSTALL=$ac_cv_path_install
  1873. else
  1874. # As a last resort, use the slow shell script. Don't cache a
  1875. # value for INSTALL within a source directory, because that will
  1876. # break other packages using the cache if that directory is
  1877. # removed, or if the value is a relative name.
  1878. INSTALL=$ac_install_sh
  1879. fi
  1880. fi
  1881. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1882. echo "${ECHO_T}$INSTALL" >&6; }
  1883. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1884. # It thinks the first close brace ends the variable substitution.
  1885. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1886. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1887. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1888. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1889. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1890. # Just in case
  1891. sleep 1
  1892. echo timestamp > conftest.file
  1893. # Do `set' in a subshell so we don't clobber the current shell's
  1894. # arguments. Must try -L first in case configure is actually a
  1895. # symlink; some systems play weird games with the mod time of symlinks
  1896. # (eg FreeBSD returns the mod time of the symlink's containing
  1897. # directory).
  1898. if (
  1899. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1900. if test "$*" = "X"; then
  1901. # -L didn't work.
  1902. set X `ls -t $srcdir/configure conftest.file`
  1903. fi
  1904. rm -f conftest.file
  1905. if test "$*" != "X $srcdir/configure conftest.file" \
  1906. && test "$*" != "X conftest.file $srcdir/configure"; then
  1907. # If neither matched, then we have a broken ls. This can happen
  1908. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1909. # broken ls alias from the environment. This has actually
  1910. # happened. Such a system could not be considered "sane".
  1911. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1912. alias in your environment" >&5
  1913. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1914. alias in your environment" >&2;}
  1915. { (exit 1); exit 1; }; }
  1916. fi
  1917. test "$2" = conftest.file
  1918. )
  1919. then
  1920. # Ok.
  1921. :
  1922. else
  1923. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1924. Check your system clock" >&5
  1925. echo "$as_me: error: newly created file is older than distributed files!
  1926. Check your system clock" >&2;}
  1927. { (exit 1); exit 1; }; }
  1928. fi
  1929. { echo "$as_me:$LINENO: result: yes" >&5
  1930. echo "${ECHO_T}yes" >&6; }
  1931. test "$program_prefix" != NONE &&
  1932. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1933. # Use a double $ so make ignores it.
  1934. test "$program_suffix" != NONE &&
  1935. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1936. # Double any \ or $. echo might interpret backslashes.
  1937. # By default was `s,x,x', remove it if useless.
  1938. cat <<\_ACEOF >conftest.sed
  1939. s/[\\$]/&&/g;s/;s,x,x,$//
  1940. _ACEOF
  1941. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1942. rm -f conftest.sed
  1943. # expand $ac_aux_dir to an absolute path
  1944. am_aux_dir=`cd $ac_aux_dir && pwd`
  1945. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1946. # Use eval to expand $SHELL
  1947. if eval "$MISSING --run true"; then
  1948. am_missing_run="$MISSING --run "
  1949. else
  1950. am_missing_run=
  1951. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1952. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1953. fi
  1954. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  1955. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  1956. if test -z "$MKDIR_P"; then
  1957. if test "${ac_cv_path_mkdir+set}" = set; then
  1958. echo $ECHO_N "(cached) $ECHO_C" >&6
  1959. else
  1960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1961. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  1962. do
  1963. IFS=$as_save_IFS
  1964. test -z "$as_dir" && as_dir=.
  1965. for ac_prog in mkdir gmkdir; do
  1966. for ac_exec_ext in '' $ac_executable_extensions; do
  1967. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  1968. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  1969. 'mkdir (GNU coreutils) '* | \
  1970. 'mkdir (coreutils) '* | \
  1971. 'mkdir (fileutils) '4.1*)
  1972. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  1973. break 3;;
  1974. esac
  1975. done
  1976. done
  1977. done
  1978. IFS=$as_save_IFS
  1979. fi
  1980. if test "${ac_cv_path_mkdir+set}" = set; then
  1981. MKDIR_P="$ac_cv_path_mkdir -p"
  1982. else
  1983. # As a last resort, use the slow shell script. Don't cache a
  1984. # value for MKDIR_P within a source directory, because that will
  1985. # break other packages using the cache if that directory is
  1986. # removed, or if the value is a relative name.
  1987. test -d ./--version && rmdir ./--version
  1988. MKDIR_P="$ac_install_sh -d"
  1989. fi
  1990. fi
  1991. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  1992. echo "${ECHO_T}$MKDIR_P" >&6; }
  1993. mkdir_p="$MKDIR_P"
  1994. case $mkdir_p in
  1995. [\\/$]* | ?:[\\/]*) ;;
  1996. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  1997. esac
  1998. for ac_prog in gawk mawk nawk awk
  1999. do
  2000. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2001. set dummy $ac_prog; ac_word=$2
  2002. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2003. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2004. if test "${ac_cv_prog_AWK+set}" = set; then
  2005. echo $ECHO_N "(cached) $ECHO_C" >&6
  2006. else
  2007. if test -n "$AWK"; then
  2008. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2009. else
  2010. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2011. for as_dir in $PATH
  2012. do
  2013. IFS=$as_save_IFS
  2014. test -z "$as_dir" && as_dir=.
  2015. for ac_exec_ext in '' $ac_executable_extensions; do
  2016. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2017. ac_cv_prog_AWK="$ac_prog"
  2018. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2019. break 2
  2020. fi
  2021. done
  2022. done
  2023. IFS=$as_save_IFS
  2024. fi
  2025. fi
  2026. AWK=$ac_cv_prog_AWK
  2027. if test -n "$AWK"; then
  2028. { echo "$as_me:$LINENO: result: $AWK" >&5
  2029. echo "${ECHO_T}$AWK" >&6; }
  2030. else
  2031. { echo "$as_me:$LINENO: result: no" >&5
  2032. echo "${ECHO_T}no" >&6; }
  2033. fi
  2034. test -n "$AWK" && break
  2035. done
  2036. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2037. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2038. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2039. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2040. echo $ECHO_N "(cached) $ECHO_C" >&6
  2041. else
  2042. cat >conftest.make <<\_ACEOF
  2043. SHELL = /bin/sh
  2044. all:
  2045. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2046. _ACEOF
  2047. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2048. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2049. *@@@%%%=?*=@@@%%%*)
  2050. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2051. *)
  2052. eval ac_cv_prog_make_${ac_make}_set=no;;
  2053. esac
  2054. rm -f conftest.make
  2055. fi
  2056. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2057. { echo "$as_me:$LINENO: result: yes" >&5
  2058. echo "${ECHO_T}yes" >&6; }
  2059. SET_MAKE=
  2060. else
  2061. { echo "$as_me:$LINENO: result: no" >&5
  2062. echo "${ECHO_T}no" >&6; }
  2063. SET_MAKE="MAKE=${MAKE-make}"
  2064. fi
  2065. rm -rf .tst 2>/dev/null
  2066. mkdir .tst 2>/dev/null
  2067. if test -d .tst; then
  2068. am__leading_dot=.
  2069. else
  2070. am__leading_dot=_
  2071. fi
  2072. rmdir .tst 2>/dev/null
  2073. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2074. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2075. # is not polluted with repeated "-I."
  2076. am__isrc=' -I$(srcdir)'
  2077. # test to see if srcdir already configured
  2078. if test -f $srcdir/config.status; then
  2079. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2080. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2081. { (exit 1); exit 1; }; }
  2082. fi
  2083. fi
  2084. # test whether we have cygpath
  2085. if test -z "$CYGPATH_W"; then
  2086. if (cygpath --version) >/dev/null 2>/dev/null; then
  2087. CYGPATH_W='cygpath -w'
  2088. else
  2089. CYGPATH_W=echo
  2090. fi
  2091. fi
  2092. # Define the identity of the package.
  2093. PACKAGE='aria2c'
  2094. VERSION='0.14.0b'
  2095. cat >>confdefs.h <<_ACEOF
  2096. #define PACKAGE "$PACKAGE"
  2097. _ACEOF
  2098. cat >>confdefs.h <<_ACEOF
  2099. #define VERSION "$VERSION"
  2100. _ACEOF
  2101. # Some tools Automake needs.
  2102. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2103. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2104. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2105. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2106. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2107. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2108. # Installed binaries are usually stripped using `strip' when the user
  2109. # run `make install-strip'. However `strip' might not be the right
  2110. # tool to use in cross-compilation environments, therefore Automake
  2111. # will honor the `STRIP' environment variable to overrule this program.
  2112. if test "$cross_compiling" != no; then
  2113. if test -n "$ac_tool_prefix"; then
  2114. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2115. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2116. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2117. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2118. if test "${ac_cv_prog_STRIP+set}" = set; then
  2119. echo $ECHO_N "(cached) $ECHO_C" >&6
  2120. else
  2121. if test -n "$STRIP"; then
  2122. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2123. else
  2124. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2125. for as_dir in $PATH
  2126. do
  2127. IFS=$as_save_IFS
  2128. test -z "$as_dir" && as_dir=.
  2129. for ac_exec_ext in '' $ac_executable_extensions; do
  2130. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2131. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2132. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2133. break 2
  2134. fi
  2135. done
  2136. done
  2137. IFS=$as_save_IFS
  2138. fi
  2139. fi
  2140. STRIP=$ac_cv_prog_STRIP
  2141. if test -n "$STRIP"; then
  2142. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2143. echo "${ECHO_T}$STRIP" >&6; }
  2144. else
  2145. { echo "$as_me:$LINENO: result: no" >&5
  2146. echo "${ECHO_T}no" >&6; }
  2147. fi
  2148. fi
  2149. if test -z "$ac_cv_prog_STRIP"; then
  2150. ac_ct_STRIP=$STRIP
  2151. # Extract the first word of "strip", so it can be a program name with args.
  2152. set dummy strip; ac_word=$2
  2153. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2154. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2155. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2156. echo $ECHO_N "(cached) $ECHO_C" >&6
  2157. else
  2158. if test -n "$ac_ct_STRIP"; then
  2159. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2160. else
  2161. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2162. for as_dir in $PATH
  2163. do
  2164. IFS=$as_save_IFS
  2165. test -z "$as_dir" && as_dir=.
  2166. for ac_exec_ext in '' $ac_executable_extensions; do
  2167. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2168. ac_cv_prog_ac_ct_STRIP="strip"
  2169. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2170. break 2
  2171. fi
  2172. done
  2173. done
  2174. IFS=$as_save_IFS
  2175. fi
  2176. fi
  2177. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2178. if test -n "$ac_ct_STRIP"; then
  2179. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2180. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2181. else
  2182. { echo "$as_me:$LINENO: result: no" >&5
  2183. echo "${ECHO_T}no" >&6; }
  2184. fi
  2185. if test "x$ac_ct_STRIP" = x; then
  2186. STRIP=":"
  2187. else
  2188. case $cross_compiling:$ac_tool_warned in
  2189. yes:)
  2190. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2191. whose name does not start with the host triplet. If you think this
  2192. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2193. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2194. whose name does not start with the host triplet. If you think this
  2195. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2196. ac_tool_warned=yes ;;
  2197. esac
  2198. STRIP=$ac_ct_STRIP
  2199. fi
  2200. else
  2201. STRIP="$ac_cv_prog_STRIP"
  2202. fi
  2203. fi
  2204. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2205. # We need awk for the "check" target. The system "awk" is bad on
  2206. # some platforms.
  2207. # Always define AMTAR for backward compatibility.
  2208. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2209. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2210. # Check whether --with-cppunit-prefix was given.
  2211. if test "${with_cppunit_prefix+set}" = set; then
  2212. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2213. else
  2214. cppunit_config_prefix=""
  2215. fi
  2216. # Check whether --with-cppunit-exec-prefix was given.
  2217. if test "${with_cppunit_exec_prefix+set}" = set; then
  2218. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2219. else
  2220. cppunit_config_exec_prefix=""
  2221. fi
  2222. if test x$cppunit_config_exec_prefix != x ; then
  2223. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2224. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2225. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2226. fi
  2227. fi
  2228. if test x$cppunit_config_prefix != x ; then
  2229. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2230. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2231. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2232. fi
  2233. fi
  2234. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2235. set dummy cppunit-config; ac_word=$2
  2236. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2237. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2238. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2239. echo $ECHO_N "(cached) $ECHO_C" >&6
  2240. else
  2241. case $CPPUNIT_CONFIG in
  2242. [\\/]* | ?:[\\/]*)
  2243. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2244. ;;
  2245. *)
  2246. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2247. for as_dir in $PATH
  2248. do
  2249. IFS=$as_save_IFS
  2250. test -z "$as_dir" && as_dir=.
  2251. for ac_exec_ext in '' $ac_executable_extensions; do
  2252. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2253. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2254. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2255. break 2
  2256. fi
  2257. done
  2258. done
  2259. IFS=$as_save_IFS
  2260. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2261. ;;
  2262. esac
  2263. fi
  2264. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2265. if test -n "$CPPUNIT_CONFIG"; then
  2266. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2267. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2268. else
  2269. { echo "$as_me:$LINENO: result: no" >&5
  2270. echo "${ECHO_T}no" >&6; }
  2271. fi
  2272. cppunit_version_min=1.10.2
  2273. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2274. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2275. no_cppunit=""
  2276. if test "$CPPUNIT_CONFIG" = "no" ; then
  2277. { echo "$as_me:$LINENO: result: no" >&5
  2278. echo "${ECHO_T}no" >&6; }
  2279. no_cppunit=yes
  2280. else
  2281. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2282. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2283. cppunit_version=`$CPPUNIT_CONFIG --version`
  2284. cppunit_major_version=`echo $cppunit_version | \
  2285. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2286. cppunit_minor_version=`echo $cppunit_version | \
  2287. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2288. cppunit_micro_version=`echo $cppunit_version | \
  2289. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2290. cppunit_major_min=`echo $cppunit_version_min | \
  2291. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2292. if test "x${cppunit_major_min}" = "x" ; then
  2293. cppunit_major_min=0
  2294. fi
  2295. cppunit_minor_min=`echo $cppunit_version_min | \
  2296. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2297. if test "x${cppunit_minor_min}" = "x" ; then
  2298. cppunit_minor_min=0
  2299. fi
  2300. cppunit_micro_min=`echo $cppunit_version_min | \
  2301. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2302. if test "x${cppunit_micro_min}" = "x" ; then
  2303. cppunit_micro_min=0
  2304. fi
  2305. cppunit_version_proper=`expr \
  2306. $cppunit_major_version \> $cppunit_major_min \| \
  2307. $cppunit_major_version \= $cppunit_major_min \& \
  2308. $cppunit_minor_version \> $cppunit_minor_min \| \
  2309. $cppunit_major_version \= $cppunit_major_min \& \
  2310. $cppunit_minor_version \= $cppunit_minor_min \& \
  2311. $cppunit_micro_version \>= $cppunit_micro_min `
  2312. if test "$cppunit_version_proper" = "1" ; then
  2313. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2314. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2315. else
  2316. { echo "$as_me:$LINENO: result: no" >&5
  2317. echo "${ECHO_T}no" >&6; }
  2318. no_cppunit=yes
  2319. fi
  2320. fi
  2321. if test "x$no_cppunit" = x ; then
  2322. :
  2323. else
  2324. CPPUNIT_CFLAGS=""
  2325. CPPUNIT_LIBS=""
  2326. :
  2327. fi
  2328. ac_config_headers="$ac_config_headers config.h"
  2329. case "$target" in
  2330. *mingw*|*cygwin*)
  2331. WINSOCK_LIBS="-lws2_32 -lpthread"
  2332. ;;
  2333. esac
  2334. cat >>confdefs.h <<_ACEOF
  2335. #define TARGET "$target"
  2336. _ACEOF
  2337. # Set localedir
  2338. localedir=${datadir}/locale
  2339. # Checks for arguments.
  2340. # Check whether --with-gnutls was given.
  2341. if test "${with_gnutls+set}" = set; then
  2342. withval=$with_gnutls; with_gnutls=$withval
  2343. else
  2344. with_gnutls=yes
  2345. fi
  2346. # Check whether --with-openssl was given.
  2347. if test "${with_openssl+set}" = set; then
  2348. withval=$with_openssl; with_openssl=$withval
  2349. else
  2350. with_openssl=yes
  2351. fi
  2352. # Check whether --with-libxml2 was given.
  2353. if test "${with_libxml2+set}" = set; then
  2354. withval=$with_libxml2; with_libxml2=$withval
  2355. else
  2356. with_libxml2=yes
  2357. fi
  2358. # Check whether --with-libexpat was given.
  2359. if test "${with_libexpat+set}" = set; then
  2360. withval=$with_libexpat; with_libexpat=$withval
  2361. else
  2362. with_libexpat=yes
  2363. fi
  2364. # Check whether --with-libares was given.
  2365. if test "${with_libares+set}" = set; then
  2366. withval=$with_libares; with_libares=$withval
  2367. else
  2368. with_libares=yes
  2369. fi
  2370. # Check whether --with-libcares was given.
  2371. if test "${with_libcares+set}" = set; then
  2372. withval=$with_libcares; with_libcares=$withval
  2373. else
  2374. with_libcares=yes
  2375. fi
  2376. # Check whether --enable-bittorrent was given.
  2377. if test "${enable_bittorrent+set}" = set; then
  2378. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2379. else
  2380. enable_bittorrent=yes
  2381. fi
  2382. # Check whether --enable-metalink was given.
  2383. if test "${enable_metalink+set}" = set; then
  2384. enableval=$enable_metalink; enable_metalink=$enableval
  2385. else
  2386. enable_metalink=yes
  2387. fi
  2388. # Checks for programs.
  2389. ac_ext=cpp
  2390. ac_cpp='$CXXCPP $CPPFLAGS'
  2391. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2392. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2393. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2394. if test -z "$CXX"; then
  2395. if test -n "$CCC"; then
  2396. CXX=$CCC
  2397. else
  2398. if test -n "$ac_tool_prefix"; then
  2399. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2400. do
  2401. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2402. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2403. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2404. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2405. if test "${ac_cv_prog_CXX+set}" = set; then
  2406. echo $ECHO_N "(cached) $ECHO_C" >&6
  2407. else
  2408. if test -n "$CXX"; then
  2409. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2410. else
  2411. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2412. for as_dir in $PATH
  2413. do
  2414. IFS=$as_save_IFS
  2415. test -z "$as_dir" && as_dir=.
  2416. for ac_exec_ext in '' $ac_executable_extensions; do
  2417. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2418. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2419. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2420. break 2
  2421. fi
  2422. done
  2423. done
  2424. IFS=$as_save_IFS
  2425. fi
  2426. fi
  2427. CXX=$ac_cv_prog_CXX
  2428. if test -n "$CXX"; then
  2429. { echo "$as_me:$LINENO: result: $CXX" >&5
  2430. echo "${ECHO_T}$CXX" >&6; }
  2431. else
  2432. { echo "$as_me:$LINENO: result: no" >&5
  2433. echo "${ECHO_T}no" >&6; }
  2434. fi
  2435. test -n "$CXX" && break
  2436. done
  2437. fi
  2438. if test -z "$CXX"; then
  2439. ac_ct_CXX=$CXX
  2440. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2441. do
  2442. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2443. set dummy $ac_prog; ac_word=$2
  2444. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2445. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2446. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2447. echo $ECHO_N "(cached) $ECHO_C" >&6
  2448. else
  2449. if test -n "$ac_ct_CXX"; then
  2450. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2451. else
  2452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2453. for as_dir in $PATH
  2454. do
  2455. IFS=$as_save_IFS
  2456. test -z "$as_dir" && as_dir=.
  2457. for ac_exec_ext in '' $ac_executable_extensions; do
  2458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2459. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2460. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2461. break 2
  2462. fi
  2463. done
  2464. done
  2465. IFS=$as_save_IFS
  2466. fi
  2467. fi
  2468. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2469. if test -n "$ac_ct_CXX"; then
  2470. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2471. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2472. else
  2473. { echo "$as_me:$LINENO: result: no" >&5
  2474. echo "${ECHO_T}no" >&6; }
  2475. fi
  2476. test -n "$ac_ct_CXX" && break
  2477. done
  2478. if test "x$ac_ct_CXX" = x; then
  2479. CXX="g++"
  2480. else
  2481. case $cross_compiling:$ac_tool_warned in
  2482. yes:)
  2483. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2484. whose name does not start with the host triplet. If you think this
  2485. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2486. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2487. whose name does not start with the host triplet. If you think this
  2488. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2489. ac_tool_warned=yes ;;
  2490. esac
  2491. CXX=$ac_ct_CXX
  2492. fi
  2493. fi
  2494. fi
  2495. fi
  2496. # Provide some information about the compiler.
  2497. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2498. ac_compiler=`set X $ac_compile; echo $2`
  2499. { (ac_try="$ac_compiler --version >&5"
  2500. case "(($ac_try" in
  2501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2502. *) ac_try_echo=$ac_try;;
  2503. esac
  2504. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2505. (eval "$ac_compiler --version >&5") 2>&5
  2506. ac_status=$?
  2507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2508. (exit $ac_status); }
  2509. { (ac_try="$ac_compiler -v >&5"
  2510. case "(($ac_try" in
  2511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2512. *) ac_try_echo=$ac_try;;
  2513. esac
  2514. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2515. (eval "$ac_compiler -v >&5") 2>&5
  2516. ac_status=$?
  2517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2518. (exit $ac_status); }
  2519. { (ac_try="$ac_compiler -V >&5"
  2520. case "(($ac_try" in
  2521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2522. *) ac_try_echo=$ac_try;;
  2523. esac
  2524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2525. (eval "$ac_compiler -V >&5") 2>&5
  2526. ac_status=$?
  2527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2528. (exit $ac_status); }
  2529. cat >conftest.$ac_ext <<_ACEOF
  2530. /* confdefs.h. */
  2531. _ACEOF
  2532. cat confdefs.h >>conftest.$ac_ext
  2533. cat >>conftest.$ac_ext <<_ACEOF
  2534. /* end confdefs.h. */
  2535. int
  2536. main ()
  2537. {
  2538. ;
  2539. return 0;
  2540. }
  2541. _ACEOF
  2542. ac_clean_files_save=$ac_clean_files
  2543. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2544. # Try to create an executable without -o first, disregard a.out.
  2545. # It will help us diagnose broken compilers, and finding out an intuition
  2546. # of exeext.
  2547. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2548. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2549. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2550. #
  2551. # List of possible output files, starting from the most likely.
  2552. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2553. # only as a last resort. b.out is created by i960 compilers.
  2554. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2555. #
  2556. # The IRIX 6 linker writes into existing files which may not be
  2557. # executable, retaining their permissions. Remove them first so a
  2558. # subsequent execution test works.
  2559. ac_rmfiles=
  2560. for ac_file in $ac_files
  2561. do
  2562. case $ac_file in
  2563. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2564. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2565. esac
  2566. done
  2567. rm -f $ac_rmfiles
  2568. if { (ac_try="$ac_link_default"
  2569. case "(($ac_try" in
  2570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2571. *) ac_try_echo=$ac_try;;
  2572. esac
  2573. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2574. (eval "$ac_link_default") 2>&5
  2575. ac_status=$?
  2576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2577. (exit $ac_status); }; then
  2578. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2579. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2580. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2581. # so that the user can short-circuit this test for compilers unknown to
  2582. # Autoconf.
  2583. for ac_file in $ac_files ''
  2584. do
  2585. test -f "$ac_file" || continue
  2586. case $ac_file in
  2587. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2588. ;;
  2589. [ab].out )
  2590. # We found the default executable, but exeext='' is most
  2591. # certainly right.
  2592. break;;
  2593. *.* )
  2594. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2595. then :; else
  2596. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2597. fi
  2598. # We set ac_cv_exeext here because the later test for it is not
  2599. # safe: cross compilers may not add the suffix if given an `-o'
  2600. # argument, so we may need to know it at that point already.
  2601. # Even if this section looks crufty: it has the advantage of
  2602. # actually working.
  2603. break;;
  2604. * )
  2605. break;;
  2606. esac
  2607. done
  2608. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2609. else
  2610. ac_file=''
  2611. fi
  2612. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2613. echo "${ECHO_T}$ac_file" >&6; }
  2614. if test -z "$ac_file"; then
  2615. echo "$as_me: failed program was:" >&5
  2616. sed 's/^/| /' conftest.$ac_ext >&5
  2617. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2618. See \`config.log' for more details." >&5
  2619. echo "$as_me: error: C++ compiler cannot create executables
  2620. See \`config.log' for more details." >&2;}
  2621. { (exit 77); exit 77; }; }
  2622. fi
  2623. ac_exeext=$ac_cv_exeext
  2624. # Check that the compiler produces executables we can run. If not, either
  2625. # the compiler is broken, or we cross compile.
  2626. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2627. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2628. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2629. # If not cross compiling, check that we can run a simple program.
  2630. if test "$cross_compiling" != yes; then
  2631. if { ac_try='./$ac_file'
  2632. { (case "(($ac_try" in
  2633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2634. *) ac_try_echo=$ac_try;;
  2635. esac
  2636. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2637. (eval "$ac_try") 2>&5
  2638. ac_status=$?
  2639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2640. (exit $ac_status); }; }; then
  2641. cross_compiling=no
  2642. else
  2643. if test "$cross_compiling" = maybe; then
  2644. cross_compiling=yes
  2645. else
  2646. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2647. If you meant to cross compile, use \`--host'.
  2648. See \`config.log' for more details." >&5
  2649. echo "$as_me: error: cannot run C++ compiled programs.
  2650. If you meant to cross compile, use \`--host'.
  2651. See \`config.log' for more details." >&2;}
  2652. { (exit 1); exit 1; }; }
  2653. fi
  2654. fi
  2655. fi
  2656. { echo "$as_me:$LINENO: result: yes" >&5
  2657. echo "${ECHO_T}yes" >&6; }
  2658. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2659. ac_clean_files=$ac_clean_files_save
  2660. # Check that the compiler produces executables we can run. If not, either
  2661. # the compiler is broken, or we cross compile.
  2662. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2663. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2664. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2665. echo "${ECHO_T}$cross_compiling" >&6; }
  2666. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2667. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2668. if { (ac_try="$ac_link"
  2669. case "(($ac_try" in
  2670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2671. *) ac_try_echo=$ac_try;;
  2672. esac
  2673. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2674. (eval "$ac_link") 2>&5
  2675. ac_status=$?
  2676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2677. (exit $ac_status); }; then
  2678. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2679. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2680. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2681. # `rm'.
  2682. for ac_file in conftest.exe conftest conftest.*; do
  2683. test -f "$ac_file" || continue
  2684. case $ac_file in
  2685. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2686. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2687. break;;
  2688. * ) break;;
  2689. esac
  2690. done
  2691. else
  2692. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2693. See \`config.log' for more details." >&5
  2694. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2695. See \`config.log' for more details." >&2;}
  2696. { (exit 1); exit 1; }; }
  2697. fi
  2698. rm -f conftest$ac_cv_exeext
  2699. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2700. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2701. rm -f conftest.$ac_ext
  2702. EXEEXT=$ac_cv_exeext
  2703. ac_exeext=$EXEEXT
  2704. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2705. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2706. if test "${ac_cv_objext+set}" = set; then
  2707. echo $ECHO_N "(cached) $ECHO_C" >&6
  2708. else
  2709. cat >conftest.$ac_ext <<_ACEOF
  2710. /* confdefs.h. */
  2711. _ACEOF
  2712. cat confdefs.h >>conftest.$ac_ext
  2713. cat >>conftest.$ac_ext <<_ACEOF
  2714. /* end confdefs.h. */
  2715. int
  2716. main ()
  2717. {
  2718. ;
  2719. return 0;
  2720. }
  2721. _ACEOF
  2722. rm -f conftest.o conftest.obj
  2723. if { (ac_try="$ac_compile"
  2724. case "(($ac_try" in
  2725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2726. *) ac_try_echo=$ac_try;;
  2727. esac
  2728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2729. (eval "$ac_compile") 2>&5
  2730. ac_status=$?
  2731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2732. (exit $ac_status); }; then
  2733. for ac_file in conftest.o conftest.obj conftest.*; do
  2734. test -f "$ac_file" || continue;
  2735. case $ac_file in
  2736. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2737. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2738. break;;
  2739. esac
  2740. done
  2741. else
  2742. echo "$as_me: failed program was:" >&5
  2743. sed 's/^/| /' conftest.$ac_ext >&5
  2744. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2745. See \`config.log' for more details." >&5
  2746. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2747. See \`config.log' for more details." >&2;}
  2748. { (exit 1); exit 1; }; }
  2749. fi
  2750. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2751. fi
  2752. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2753. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2754. OBJEXT=$ac_cv_objext
  2755. ac_objext=$OBJEXT
  2756. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2757. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2758. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2759. echo $ECHO_N "(cached) $ECHO_C" >&6
  2760. else
  2761. cat >conftest.$ac_ext <<_ACEOF
  2762. /* confdefs.h. */
  2763. _ACEOF
  2764. cat confdefs.h >>conftest.$ac_ext
  2765. cat >>conftest.$ac_ext <<_ACEOF
  2766. /* end confdefs.h. */
  2767. int
  2768. main ()
  2769. {
  2770. #ifndef __GNUC__
  2771. choke me
  2772. #endif
  2773. ;
  2774. return 0;
  2775. }
  2776. _ACEOF
  2777. rm -f conftest.$ac_objext
  2778. if { (ac_try="$ac_compile"
  2779. case "(($ac_try" in
  2780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2781. *) ac_try_echo=$ac_try;;
  2782. esac
  2783. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2784. (eval "$ac_compile") 2>conftest.er1
  2785. ac_status=$?
  2786. grep -v '^ *+' conftest.er1 >conftest.err
  2787. rm -f conftest.er1
  2788. cat conftest.err >&5
  2789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2790. (exit $ac_status); } && {
  2791. test -z "$ac_cxx_werror_flag" ||
  2792. test ! -s conftest.err
  2793. } && test -s conftest.$ac_objext; then
  2794. ac_compiler_gnu=yes
  2795. else
  2796. echo "$as_me: failed program was:" >&5
  2797. sed 's/^/| /' conftest.$ac_ext >&5
  2798. ac_compiler_gnu=no
  2799. fi
  2800. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2801. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2802. fi
  2803. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2804. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2805. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2806. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2807. ac_save_CXXFLAGS=$CXXFLAGS
  2808. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2809. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2810. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2811. echo $ECHO_N "(cached) $ECHO_C" >&6
  2812. else
  2813. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2814. ac_cxx_werror_flag=yes
  2815. ac_cv_prog_cxx_g=no
  2816. CXXFLAGS="-g"
  2817. cat >conftest.$ac_ext <<_ACEOF
  2818. /* confdefs.h. */
  2819. _ACEOF
  2820. cat confdefs.h >>conftest.$ac_ext
  2821. cat >>conftest.$ac_ext <<_ACEOF
  2822. /* end confdefs.h. */
  2823. int
  2824. main ()
  2825. {
  2826. ;
  2827. return 0;
  2828. }
  2829. _ACEOF
  2830. rm -f conftest.$ac_objext
  2831. if { (ac_try="$ac_compile"
  2832. case "(($ac_try" in
  2833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2834. *) ac_try_echo=$ac_try;;
  2835. esac
  2836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2837. (eval "$ac_compile") 2>conftest.er1
  2838. ac_status=$?
  2839. grep -v '^ *+' conftest.er1 >conftest.err
  2840. rm -f conftest.er1
  2841. cat conftest.err >&5
  2842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2843. (exit $ac_status); } && {
  2844. test -z "$ac_cxx_werror_flag" ||
  2845. test ! -s conftest.err
  2846. } && test -s conftest.$ac_objext; then
  2847. ac_cv_prog_cxx_g=yes
  2848. else
  2849. echo "$as_me: failed program was:" >&5
  2850. sed 's/^/| /' conftest.$ac_ext >&5
  2851. CXXFLAGS=""
  2852. cat >conftest.$ac_ext <<_ACEOF
  2853. /* confdefs.h. */
  2854. _ACEOF
  2855. cat confdefs.h >>conftest.$ac_ext
  2856. cat >>conftest.$ac_ext <<_ACEOF
  2857. /* end confdefs.h. */
  2858. int
  2859. main ()
  2860. {
  2861. ;
  2862. return 0;
  2863. }
  2864. _ACEOF
  2865. rm -f conftest.$ac_objext
  2866. if { (ac_try="$ac_compile"
  2867. case "(($ac_try" in
  2868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2869. *) ac_try_echo=$ac_try;;
  2870. esac
  2871. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2872. (eval "$ac_compile") 2>conftest.er1
  2873. ac_status=$?
  2874. grep -v '^ *+' conftest.er1 >conftest.err
  2875. rm -f conftest.er1
  2876. cat conftest.err >&5
  2877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2878. (exit $ac_status); } && {
  2879. test -z "$ac_cxx_werror_flag" ||
  2880. test ! -s conftest.err
  2881. } && test -s conftest.$ac_objext; then
  2882. :
  2883. else
  2884. echo "$as_me: failed program was:" >&5
  2885. sed 's/^/| /' conftest.$ac_ext >&5
  2886. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2887. CXXFLAGS="-g"
  2888. cat >conftest.$ac_ext <<_ACEOF
  2889. /* confdefs.h. */
  2890. _ACEOF
  2891. cat confdefs.h >>conftest.$ac_ext
  2892. cat >>conftest.$ac_ext <<_ACEOF
  2893. /* end confdefs.h. */
  2894. int
  2895. main ()
  2896. {
  2897. ;
  2898. return 0;
  2899. }
  2900. _ACEOF
  2901. rm -f conftest.$ac_objext
  2902. if { (ac_try="$ac_compile"
  2903. case "(($ac_try" in
  2904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2905. *) ac_try_echo=$ac_try;;
  2906. esac
  2907. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2908. (eval "$ac_compile") 2>conftest.er1
  2909. ac_status=$?
  2910. grep -v '^ *+' conftest.er1 >conftest.err
  2911. rm -f conftest.er1
  2912. cat conftest.err >&5
  2913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2914. (exit $ac_status); } && {
  2915. test -z "$ac_cxx_werror_flag" ||
  2916. test ! -s conftest.err
  2917. } && test -s conftest.$ac_objext; then
  2918. ac_cv_prog_cxx_g=yes
  2919. else
  2920. echo "$as_me: failed program was:" >&5
  2921. sed 's/^/| /' conftest.$ac_ext >&5
  2922. fi
  2923. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2924. fi
  2925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2926. fi
  2927. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2928. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2929. fi
  2930. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2931. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2932. if test "$ac_test_CXXFLAGS" = set; then
  2933. CXXFLAGS=$ac_save_CXXFLAGS
  2934. elif test $ac_cv_prog_cxx_g = yes; then
  2935. if test "$GXX" = yes; then
  2936. CXXFLAGS="-g -O2"
  2937. else
  2938. CXXFLAGS="-g"
  2939. fi
  2940. else
  2941. if test "$GXX" = yes; then
  2942. CXXFLAGS="-O2"
  2943. else
  2944. CXXFLAGS=
  2945. fi
  2946. fi
  2947. ac_ext=c
  2948. ac_cpp='$CPP $CPPFLAGS'
  2949. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2950. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2951. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2952. DEPDIR="${am__leading_dot}deps"
  2953. ac_config_commands="$ac_config_commands depfiles"
  2954. am_make=${MAKE-make}
  2955. cat > confinc << 'END'
  2956. am__doit:
  2957. @echo done
  2958. .PHONY: am__doit
  2959. END
  2960. # If we don't find an include directive, just comment out the code.
  2961. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2962. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2963. am__include="#"
  2964. am__quote=
  2965. _am_result=none
  2966. # First try GNU make style include.
  2967. echo "include confinc" > confmf
  2968. # We grep out `Entering directory' and `Leaving directory'
  2969. # messages which can occur if `w' ends up in MAKEFLAGS.
  2970. # In particular we don't look at `^make:' because GNU make might
  2971. # be invoked under some other name (usually "gmake"), in which
  2972. # case it prints its new name instead of `make'.
  2973. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2974. am__include=include
  2975. am__quote=
  2976. _am_result=GNU
  2977. fi
  2978. # Now try BSD make style include.
  2979. if test "$am__include" = "#"; then
  2980. echo '.include "confinc"' > confmf
  2981. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2982. am__include=.include
  2983. am__quote="\""
  2984. _am_result=BSD
  2985. fi
  2986. fi
  2987. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2988. echo "${ECHO_T}$_am_result" >&6; }
  2989. rm -f confinc confmf
  2990. # Check whether --enable-dependency-tracking was given.
  2991. if test "${enable_dependency_tracking+set}" = set; then
  2992. enableval=$enable_dependency_tracking;
  2993. fi
  2994. if test "x$enable_dependency_tracking" != xno; then
  2995. am_depcomp="$ac_aux_dir/depcomp"
  2996. AMDEPBACKSLASH='\'
  2997. fi
  2998. if test "x$enable_dependency_tracking" != xno; then
  2999. AMDEP_TRUE=
  3000. AMDEP_FALSE='#'
  3001. else
  3002. AMDEP_TRUE='#'
  3003. AMDEP_FALSE=
  3004. fi
  3005. depcc="$CXX" am_compiler_list=
  3006. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3007. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3008. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3009. echo $ECHO_N "(cached) $ECHO_C" >&6
  3010. else
  3011. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3012. # We make a subdir and do the tests there. Otherwise we can end up
  3013. # making bogus files that we don't know about and never remove. For
  3014. # instance it was reported that on HP-UX the gcc test will end up
  3015. # making a dummy file named `D' -- because `-MD' means `put the output
  3016. # in D'.
  3017. mkdir conftest.dir
  3018. # Copy depcomp to subdir because otherwise we won't find it if we're
  3019. # using a relative directory.
  3020. cp "$am_depcomp" conftest.dir
  3021. cd conftest.dir
  3022. # We will build objects and dependencies in a subdirectory because
  3023. # it helps to detect inapplicable dependency modes. For instance
  3024. # both Tru64's cc and ICC support -MD to output dependencies as a
  3025. # side effect of compilation, but ICC will put the dependencies in
  3026. # the current directory while Tru64 will put them in the object
  3027. # directory.
  3028. mkdir sub
  3029. am_cv_CXX_dependencies_compiler_type=none
  3030. if test "$am_compiler_list" = ""; then
  3031. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3032. fi
  3033. for depmode in $am_compiler_list; do
  3034. # Setup a source with many dependencies, because some compilers
  3035. # like to wrap large dependency lists on column 80 (with \), and
  3036. # we should not choose a depcomp mode which is confused by this.
  3037. #
  3038. # We need to recreate these files for each test, as the compiler may
  3039. # overwrite some of them when testing with obscure command lines.
  3040. # This happens at least with the AIX C compiler.
  3041. : > sub/conftest.c
  3042. for i in 1 2 3 4 5 6; do
  3043. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3044. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3045. # Solaris 8's {/usr,}/bin/sh.
  3046. touch sub/conftst$i.h
  3047. done
  3048. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3049. case $depmode in
  3050. nosideeffect)
  3051. # after this tag, mechanisms are not by side-effect, so they'll
  3052. # only be used when explicitly requested
  3053. if test "x$enable_dependency_tracking" = xyes; then
  3054. continue
  3055. else
  3056. break
  3057. fi
  3058. ;;
  3059. none) break ;;
  3060. esac
  3061. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3062. # mode. It turns out that the SunPro C++ compiler does not properly
  3063. # handle `-M -o', and we need to detect this.
  3064. if depmode=$depmode \
  3065. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3066. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3067. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3068. >/dev/null 2>conftest.err &&
  3069. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3070. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3071. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3072. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3073. # icc doesn't choke on unknown options, it will just issue warnings
  3074. # or remarks (even with -Werror). So we grep stderr for any message
  3075. # that says an option was ignored or not supported.
  3076. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3077. # icc: Command line warning: ignoring option '-M'; no argument required
  3078. # The diagnosis changed in icc 8.0:
  3079. # icc: Command line remark: option '-MP' not supported
  3080. if (grep 'ignoring option' conftest.err ||
  3081. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3082. am_cv_CXX_dependencies_compiler_type=$depmode
  3083. break
  3084. fi
  3085. fi
  3086. done
  3087. cd ..
  3088. rm -rf conftest.dir
  3089. else
  3090. am_cv_CXX_dependencies_compiler_type=none
  3091. fi
  3092. fi
  3093. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3094. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3095. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3096. if
  3097. test "x$enable_dependency_tracking" != xno \
  3098. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3099. am__fastdepCXX_TRUE=
  3100. am__fastdepCXX_FALSE='#'
  3101. else
  3102. am__fastdepCXX_TRUE='#'
  3103. am__fastdepCXX_FALSE=
  3104. fi
  3105. ac_ext=c
  3106. ac_cpp='$CPP $CPPFLAGS'
  3107. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3108. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3109. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3110. if test -n "$ac_tool_prefix"; then
  3111. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3112. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3113. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3114. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3115. if test "${ac_cv_prog_CC+set}" = set; then
  3116. echo $ECHO_N "(cached) $ECHO_C" >&6
  3117. else
  3118. if test -n "$CC"; then
  3119. ac_cv_prog_CC="$CC" # Let the user override the test.
  3120. else
  3121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3122. for as_dir in $PATH
  3123. do
  3124. IFS=$as_save_IFS
  3125. test -z "$as_dir" && as_dir=.
  3126. for ac_exec_ext in '' $ac_executable_extensions; do
  3127. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3128. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3129. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3130. break 2
  3131. fi
  3132. done
  3133. done
  3134. IFS=$as_save_IFS
  3135. fi
  3136. fi
  3137. CC=$ac_cv_prog_CC
  3138. if test -n "$CC"; then
  3139. { echo "$as_me:$LINENO: result: $CC" >&5
  3140. echo "${ECHO_T}$CC" >&6; }
  3141. else
  3142. { echo "$as_me:$LINENO: result: no" >&5
  3143. echo "${ECHO_T}no" >&6; }
  3144. fi
  3145. fi
  3146. if test -z "$ac_cv_prog_CC"; then
  3147. ac_ct_CC=$CC
  3148. # Extract the first word of "gcc", so it can be a program name with args.
  3149. set dummy gcc; ac_word=$2
  3150. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3151. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3152. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3153. echo $ECHO_N "(cached) $ECHO_C" >&6
  3154. else
  3155. if test -n "$ac_ct_CC"; then
  3156. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3157. else
  3158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3159. for as_dir in $PATH
  3160. do
  3161. IFS=$as_save_IFS
  3162. test -z "$as_dir" && as_dir=.
  3163. for ac_exec_ext in '' $ac_executable_extensions; do
  3164. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3165. ac_cv_prog_ac_ct_CC="gcc"
  3166. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3167. break 2
  3168. fi
  3169. done
  3170. done
  3171. IFS=$as_save_IFS
  3172. fi
  3173. fi
  3174. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3175. if test -n "$ac_ct_CC"; then
  3176. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3177. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3178. else
  3179. { echo "$as_me:$LINENO: result: no" >&5
  3180. echo "${ECHO_T}no" >&6; }
  3181. fi
  3182. if test "x$ac_ct_CC" = x; then
  3183. CC=""
  3184. else
  3185. case $cross_compiling:$ac_tool_warned in
  3186. yes:)
  3187. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3188. whose name does not start with the host triplet. If you think this
  3189. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3190. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3191. whose name does not start with the host triplet. If you think this
  3192. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3193. ac_tool_warned=yes ;;
  3194. esac
  3195. CC=$ac_ct_CC
  3196. fi
  3197. else
  3198. CC="$ac_cv_prog_CC"
  3199. fi
  3200. if test -z "$CC"; then
  3201. if test -n "$ac_tool_prefix"; then
  3202. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3203. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3204. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3205. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3206. if test "${ac_cv_prog_CC+set}" = set; then
  3207. echo $ECHO_N "(cached) $ECHO_C" >&6
  3208. else
  3209. if test -n "$CC"; then
  3210. ac_cv_prog_CC="$CC" # Let the user override the test.
  3211. else
  3212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3213. for as_dir in $PATH
  3214. do
  3215. IFS=$as_save_IFS
  3216. test -z "$as_dir" && as_dir=.
  3217. for ac_exec_ext in '' $ac_executable_extensions; do
  3218. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3219. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3220. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3221. break 2
  3222. fi
  3223. done
  3224. done
  3225. IFS=$as_save_IFS
  3226. fi
  3227. fi
  3228. CC=$ac_cv_prog_CC
  3229. if test -n "$CC"; then
  3230. { echo "$as_me:$LINENO: result: $CC" >&5
  3231. echo "${ECHO_T}$CC" >&6; }
  3232. else
  3233. { echo "$as_me:$LINENO: result: no" >&5
  3234. echo "${ECHO_T}no" >&6; }
  3235. fi
  3236. fi
  3237. fi
  3238. if test -z "$CC"; then
  3239. # Extract the first word of "cc", so it can be a program name with args.
  3240. set dummy cc; ac_word=$2
  3241. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3242. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3243. if test "${ac_cv_prog_CC+set}" = set; then
  3244. echo $ECHO_N "(cached) $ECHO_C" >&6
  3245. else
  3246. if test -n "$CC"; then
  3247. ac_cv_prog_CC="$CC" # Let the user override the test.
  3248. else
  3249. ac_prog_rejected=no
  3250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3251. for as_dir in $PATH
  3252. do
  3253. IFS=$as_save_IFS
  3254. test -z "$as_dir" && as_dir=.
  3255. for ac_exec_ext in '' $ac_executable_extensions; do
  3256. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3257. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3258. ac_prog_rejected=yes
  3259. continue
  3260. fi
  3261. ac_cv_prog_CC="cc"
  3262. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3263. break 2
  3264. fi
  3265. done
  3266. done
  3267. IFS=$as_save_IFS
  3268. if test $ac_prog_rejected = yes; then
  3269. # We found a bogon in the path, so make sure we never use it.
  3270. set dummy $ac_cv_prog_CC
  3271. shift
  3272. if test $# != 0; then
  3273. # We chose a different compiler from the bogus one.
  3274. # However, it has the same basename, so the bogon will be chosen
  3275. # first if we set CC to just the basename; use the full file name.
  3276. shift
  3277. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3278. fi
  3279. fi
  3280. fi
  3281. fi
  3282. CC=$ac_cv_prog_CC
  3283. if test -n "$CC"; then
  3284. { echo "$as_me:$LINENO: result: $CC" >&5
  3285. echo "${ECHO_T}$CC" >&6; }
  3286. else
  3287. { echo "$as_me:$LINENO: result: no" >&5
  3288. echo "${ECHO_T}no" >&6; }
  3289. fi
  3290. fi
  3291. if test -z "$CC"; then
  3292. if test -n "$ac_tool_prefix"; then
  3293. for ac_prog in cl.exe
  3294. do
  3295. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3296. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3297. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3298. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3299. if test "${ac_cv_prog_CC+set}" = set; then
  3300. echo $ECHO_N "(cached) $ECHO_C" >&6
  3301. else
  3302. if test -n "$CC"; then
  3303. ac_cv_prog_CC="$CC" # Let the user override the test.
  3304. else
  3305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3306. for as_dir in $PATH
  3307. do
  3308. IFS=$as_save_IFS
  3309. test -z "$as_dir" && as_dir=.
  3310. for ac_exec_ext in '' $ac_executable_extensions; do
  3311. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3312. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3313. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3314. break 2
  3315. fi
  3316. done
  3317. done
  3318. IFS=$as_save_IFS
  3319. fi
  3320. fi
  3321. CC=$ac_cv_prog_CC
  3322. if test -n "$CC"; then
  3323. { echo "$as_me:$LINENO: result: $CC" >&5
  3324. echo "${ECHO_T}$CC" >&6; }
  3325. else
  3326. { echo "$as_me:$LINENO: result: no" >&5
  3327. echo "${ECHO_T}no" >&6; }
  3328. fi
  3329. test -n "$CC" && break
  3330. done
  3331. fi
  3332. if test -z "$CC"; then
  3333. ac_ct_CC=$CC
  3334. for ac_prog in cl.exe
  3335. do
  3336. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3337. set dummy $ac_prog; ac_word=$2
  3338. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3339. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3340. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3341. echo $ECHO_N "(cached) $ECHO_C" >&6
  3342. else
  3343. if test -n "$ac_ct_CC"; then
  3344. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3345. else
  3346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3347. for as_dir in $PATH
  3348. do
  3349. IFS=$as_save_IFS
  3350. test -z "$as_dir" && as_dir=.
  3351. for ac_exec_ext in '' $ac_executable_extensions; do
  3352. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3353. ac_cv_prog_ac_ct_CC="$ac_prog"
  3354. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3355. break 2
  3356. fi
  3357. done
  3358. done
  3359. IFS=$as_save_IFS
  3360. fi
  3361. fi
  3362. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3363. if test -n "$ac_ct_CC"; then
  3364. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3365. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3366. else
  3367. { echo "$as_me:$LINENO: result: no" >&5
  3368. echo "${ECHO_T}no" >&6; }
  3369. fi
  3370. test -n "$ac_ct_CC" && break
  3371. done
  3372. if test "x$ac_ct_CC" = x; then
  3373. CC=""
  3374. else
  3375. case $cross_compiling:$ac_tool_warned in
  3376. yes:)
  3377. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3378. whose name does not start with the host triplet. If you think this
  3379. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3380. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3381. whose name does not start with the host triplet. If you think this
  3382. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3383. ac_tool_warned=yes ;;
  3384. esac
  3385. CC=$ac_ct_CC
  3386. fi
  3387. fi
  3388. fi
  3389. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3390. See \`config.log' for more details." >&5
  3391. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3392. See \`config.log' for more details." >&2;}
  3393. { (exit 1); exit 1; }; }
  3394. # Provide some information about the compiler.
  3395. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3396. ac_compiler=`set X $ac_compile; echo $2`
  3397. { (ac_try="$ac_compiler --version >&5"
  3398. case "(($ac_try" in
  3399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3400. *) ac_try_echo=$ac_try;;
  3401. esac
  3402. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3403. (eval "$ac_compiler --version >&5") 2>&5
  3404. ac_status=$?
  3405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3406. (exit $ac_status); }
  3407. { (ac_try="$ac_compiler -v >&5"
  3408. case "(($ac_try" in
  3409. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3410. *) ac_try_echo=$ac_try;;
  3411. esac
  3412. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3413. (eval "$ac_compiler -v >&5") 2>&5
  3414. ac_status=$?
  3415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3416. (exit $ac_status); }
  3417. { (ac_try="$ac_compiler -V >&5"
  3418. case "(($ac_try" in
  3419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3420. *) ac_try_echo=$ac_try;;
  3421. esac
  3422. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3423. (eval "$ac_compiler -V >&5") 2>&5
  3424. ac_status=$?
  3425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3426. (exit $ac_status); }
  3427. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3428. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3429. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3430. echo $ECHO_N "(cached) $ECHO_C" >&6
  3431. else
  3432. cat >conftest.$ac_ext <<_ACEOF
  3433. /* confdefs.h. */
  3434. _ACEOF
  3435. cat confdefs.h >>conftest.$ac_ext
  3436. cat >>conftest.$ac_ext <<_ACEOF
  3437. /* end confdefs.h. */
  3438. int
  3439. main ()
  3440. {
  3441. #ifndef __GNUC__
  3442. choke me
  3443. #endif
  3444. ;
  3445. return 0;
  3446. }
  3447. _ACEOF
  3448. rm -f conftest.$ac_objext
  3449. if { (ac_try="$ac_compile"
  3450. case "(($ac_try" in
  3451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3452. *) ac_try_echo=$ac_try;;
  3453. esac
  3454. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3455. (eval "$ac_compile") 2>conftest.er1
  3456. ac_status=$?
  3457. grep -v '^ *+' conftest.er1 >conftest.err
  3458. rm -f conftest.er1
  3459. cat conftest.err >&5
  3460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3461. (exit $ac_status); } && {
  3462. test -z "$ac_c_werror_flag" ||
  3463. test ! -s conftest.err
  3464. } && test -s conftest.$ac_objext; then
  3465. ac_compiler_gnu=yes
  3466. else
  3467. echo "$as_me: failed program was:" >&5
  3468. sed 's/^/| /' conftest.$ac_ext >&5
  3469. ac_compiler_gnu=no
  3470. fi
  3471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3472. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3473. fi
  3474. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3475. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3476. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3477. ac_test_CFLAGS=${CFLAGS+set}
  3478. ac_save_CFLAGS=$CFLAGS
  3479. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3480. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3481. if test "${ac_cv_prog_cc_g+set}" = set; then
  3482. echo $ECHO_N "(cached) $ECHO_C" >&6
  3483. else
  3484. ac_save_c_werror_flag=$ac_c_werror_flag
  3485. ac_c_werror_flag=yes
  3486. ac_cv_prog_cc_g=no
  3487. CFLAGS="-g"
  3488. cat >conftest.$ac_ext <<_ACEOF
  3489. /* confdefs.h. */
  3490. _ACEOF
  3491. cat confdefs.h >>conftest.$ac_ext
  3492. cat >>conftest.$ac_ext <<_ACEOF
  3493. /* end confdefs.h. */
  3494. int
  3495. main ()
  3496. {
  3497. ;
  3498. return 0;
  3499. }
  3500. _ACEOF
  3501. rm -f conftest.$ac_objext
  3502. if { (ac_try="$ac_compile"
  3503. case "(($ac_try" in
  3504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3505. *) ac_try_echo=$ac_try;;
  3506. esac
  3507. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3508. (eval "$ac_compile") 2>conftest.er1
  3509. ac_status=$?
  3510. grep -v '^ *+' conftest.er1 >conftest.err
  3511. rm -f conftest.er1
  3512. cat conftest.err >&5
  3513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3514. (exit $ac_status); } && {
  3515. test -z "$ac_c_werror_flag" ||
  3516. test ! -s conftest.err
  3517. } && test -s conftest.$ac_objext; then
  3518. ac_cv_prog_cc_g=yes
  3519. else
  3520. echo "$as_me: failed program was:" >&5
  3521. sed 's/^/| /' conftest.$ac_ext >&5
  3522. CFLAGS=""
  3523. cat >conftest.$ac_ext <<_ACEOF
  3524. /* confdefs.h. */
  3525. _ACEOF
  3526. cat confdefs.h >>conftest.$ac_ext
  3527. cat >>conftest.$ac_ext <<_ACEOF
  3528. /* end confdefs.h. */
  3529. int
  3530. main ()
  3531. {
  3532. ;
  3533. return 0;
  3534. }
  3535. _ACEOF
  3536. rm -f conftest.$ac_objext
  3537. if { (ac_try="$ac_compile"
  3538. case "(($ac_try" in
  3539. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3540. *) ac_try_echo=$ac_try;;
  3541. esac
  3542. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3543. (eval "$ac_compile") 2>conftest.er1
  3544. ac_status=$?
  3545. grep -v '^ *+' conftest.er1 >conftest.err
  3546. rm -f conftest.er1
  3547. cat conftest.err >&5
  3548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3549. (exit $ac_status); } && {
  3550. test -z "$ac_c_werror_flag" ||
  3551. test ! -s conftest.err
  3552. } && test -s conftest.$ac_objext; then
  3553. :
  3554. else
  3555. echo "$as_me: failed program was:" >&5
  3556. sed 's/^/| /' conftest.$ac_ext >&5
  3557. ac_c_werror_flag=$ac_save_c_werror_flag
  3558. CFLAGS="-g"
  3559. cat >conftest.$ac_ext <<_ACEOF
  3560. /* confdefs.h. */
  3561. _ACEOF
  3562. cat confdefs.h >>conftest.$ac_ext
  3563. cat >>conftest.$ac_ext <<_ACEOF
  3564. /* end confdefs.h. */
  3565. int
  3566. main ()
  3567. {
  3568. ;
  3569. return 0;
  3570. }
  3571. _ACEOF
  3572. rm -f conftest.$ac_objext
  3573. if { (ac_try="$ac_compile"
  3574. case "(($ac_try" in
  3575. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3576. *) ac_try_echo=$ac_try;;
  3577. esac
  3578. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3579. (eval "$ac_compile") 2>conftest.er1
  3580. ac_status=$?
  3581. grep -v '^ *+' conftest.er1 >conftest.err
  3582. rm -f conftest.er1
  3583. cat conftest.err >&5
  3584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3585. (exit $ac_status); } && {
  3586. test -z "$ac_c_werror_flag" ||
  3587. test ! -s conftest.err
  3588. } && test -s conftest.$ac_objext; then
  3589. ac_cv_prog_cc_g=yes
  3590. else
  3591. echo "$as_me: failed program was:" >&5
  3592. sed 's/^/| /' conftest.$ac_ext >&5
  3593. fi
  3594. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3595. fi
  3596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3597. fi
  3598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3599. ac_c_werror_flag=$ac_save_c_werror_flag
  3600. fi
  3601. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3602. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3603. if test "$ac_test_CFLAGS" = set; then
  3604. CFLAGS=$ac_save_CFLAGS
  3605. elif test $ac_cv_prog_cc_g = yes; then
  3606. if test "$GCC" = yes; then
  3607. CFLAGS="-g -O2"
  3608. else
  3609. CFLAGS="-g"
  3610. fi
  3611. else
  3612. if test "$GCC" = yes; then
  3613. CFLAGS="-O2"
  3614. else
  3615. CFLAGS=
  3616. fi
  3617. fi
  3618. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3619. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3620. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3621. echo $ECHO_N "(cached) $ECHO_C" >&6
  3622. else
  3623. ac_cv_prog_cc_c89=no
  3624. ac_save_CC=$CC
  3625. cat >conftest.$ac_ext <<_ACEOF
  3626. /* confdefs.h. */
  3627. _ACEOF
  3628. cat confdefs.h >>conftest.$ac_ext
  3629. cat >>conftest.$ac_ext <<_ACEOF
  3630. /* end confdefs.h. */
  3631. #include <stdarg.h>
  3632. #include <stdio.h>
  3633. #include <sys/types.h>
  3634. #include <sys/stat.h>
  3635. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3636. struct buf { int x; };
  3637. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3638. static char *e (p, i)
  3639. char **p;
  3640. int i;
  3641. {
  3642. return p[i];
  3643. }
  3644. static char *f (char * (*g) (char **, int), char **p, ...)
  3645. {
  3646. char *s;
  3647. va_list v;
  3648. va_start (v,p);
  3649. s = g (p, va_arg (v,int));
  3650. va_end (v);
  3651. return s;
  3652. }
  3653. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3654. function prototypes and stuff, but not '\xHH' hex character constants.
  3655. These don't provoke an error unfortunately, instead are silently treated
  3656. as 'x'. The following induces an error, until -std is added to get
  3657. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3658. array size at least. It's necessary to write '\x00'==0 to get something
  3659. that's true only with -std. */
  3660. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3661. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3662. inside strings and character constants. */
  3663. #define FOO(x) 'x'
  3664. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3665. int test (int i, double x);
  3666. struct s1 {int (*f) (int a);};
  3667. struct s2 {int (*f) (double a);};
  3668. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3669. int argc;
  3670. char **argv;
  3671. int
  3672. main ()
  3673. {
  3674. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3675. ;
  3676. return 0;
  3677. }
  3678. _ACEOF
  3679. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3680. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3681. do
  3682. CC="$ac_save_CC $ac_arg"
  3683. rm -f conftest.$ac_objext
  3684. if { (ac_try="$ac_compile"
  3685. case "(($ac_try" in
  3686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3687. *) ac_try_echo=$ac_try;;
  3688. esac
  3689. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3690. (eval "$ac_compile") 2>conftest.er1
  3691. ac_status=$?
  3692. grep -v '^ *+' conftest.er1 >conftest.err
  3693. rm -f conftest.er1
  3694. cat conftest.err >&5
  3695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3696. (exit $ac_status); } && {
  3697. test -z "$ac_c_werror_flag" ||
  3698. test ! -s conftest.err
  3699. } && test -s conftest.$ac_objext; then
  3700. ac_cv_prog_cc_c89=$ac_arg
  3701. else
  3702. echo "$as_me: failed program was:" >&5
  3703. sed 's/^/| /' conftest.$ac_ext >&5
  3704. fi
  3705. rm -f core conftest.err conftest.$ac_objext
  3706. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3707. done
  3708. rm -f conftest.$ac_ext
  3709. CC=$ac_save_CC
  3710. fi
  3711. # AC_CACHE_VAL
  3712. case "x$ac_cv_prog_cc_c89" in
  3713. x)
  3714. { echo "$as_me:$LINENO: result: none needed" >&5
  3715. echo "${ECHO_T}none needed" >&6; } ;;
  3716. xno)
  3717. { echo "$as_me:$LINENO: result: unsupported" >&5
  3718. echo "${ECHO_T}unsupported" >&6; } ;;
  3719. *)
  3720. CC="$CC $ac_cv_prog_cc_c89"
  3721. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3722. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3723. esac
  3724. ac_ext=c
  3725. ac_cpp='$CPP $CPPFLAGS'
  3726. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3727. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3728. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3729. depcc="$CC" am_compiler_list=
  3730. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3731. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3732. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3733. echo $ECHO_N "(cached) $ECHO_C" >&6
  3734. else
  3735. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3736. # We make a subdir and do the tests there. Otherwise we can end up
  3737. # making bogus files that we don't know about and never remove. For
  3738. # instance it was reported that on HP-UX the gcc test will end up
  3739. # making a dummy file named `D' -- because `-MD' means `put the output
  3740. # in D'.
  3741. mkdir conftest.dir
  3742. # Copy depcomp to subdir because otherwise we won't find it if we're
  3743. # using a relative directory.
  3744. cp "$am_depcomp" conftest.dir
  3745. cd conftest.dir
  3746. # We will build objects and dependencies in a subdirectory because
  3747. # it helps to detect inapplicable dependency modes. For instance
  3748. # both Tru64's cc and ICC support -MD to output dependencies as a
  3749. # side effect of compilation, but ICC will put the dependencies in
  3750. # the current directory while Tru64 will put them in the object
  3751. # directory.
  3752. mkdir sub
  3753. am_cv_CC_dependencies_compiler_type=none
  3754. if test "$am_compiler_list" = ""; then
  3755. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3756. fi
  3757. for depmode in $am_compiler_list; do
  3758. # Setup a source with many dependencies, because some compilers
  3759. # like to wrap large dependency lists on column 80 (with \), and
  3760. # we should not choose a depcomp mode which is confused by this.
  3761. #
  3762. # We need to recreate these files for each test, as the compiler may
  3763. # overwrite some of them when testing with obscure command lines.
  3764. # This happens at least with the AIX C compiler.
  3765. : > sub/conftest.c
  3766. for i in 1 2 3 4 5 6; do
  3767. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3768. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3769. # Solaris 8's {/usr,}/bin/sh.
  3770. touch sub/conftst$i.h
  3771. done
  3772. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3773. case $depmode in
  3774. nosideeffect)
  3775. # after this tag, mechanisms are not by side-effect, so they'll
  3776. # only be used when explicitly requested
  3777. if test "x$enable_dependency_tracking" = xyes; then
  3778. continue
  3779. else
  3780. break
  3781. fi
  3782. ;;
  3783. none) break ;;
  3784. esac
  3785. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3786. # mode. It turns out that the SunPro C++ compiler does not properly
  3787. # handle `-M -o', and we need to detect this.
  3788. if depmode=$depmode \
  3789. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3790. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3791. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3792. >/dev/null 2>conftest.err &&
  3793. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3794. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3795. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3796. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3797. # icc doesn't choke on unknown options, it will just issue warnings
  3798. # or remarks (even with -Werror). So we grep stderr for any message
  3799. # that says an option was ignored or not supported.
  3800. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3801. # icc: Command line warning: ignoring option '-M'; no argument required
  3802. # The diagnosis changed in icc 8.0:
  3803. # icc: Command line remark: option '-MP' not supported
  3804. if (grep 'ignoring option' conftest.err ||
  3805. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3806. am_cv_CC_dependencies_compiler_type=$depmode
  3807. break
  3808. fi
  3809. fi
  3810. done
  3811. cd ..
  3812. rm -rf conftest.dir
  3813. else
  3814. am_cv_CC_dependencies_compiler_type=none
  3815. fi
  3816. fi
  3817. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3818. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3819. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3820. if
  3821. test "x$enable_dependency_tracking" != xno \
  3822. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3823. am__fastdepCC_TRUE=
  3824. am__fastdepCC_FALSE='#'
  3825. else
  3826. am__fastdepCC_TRUE='#'
  3827. am__fastdepCC_FALSE=
  3828. fi
  3829. # Find a good install program. We prefer a C program (faster),
  3830. # so one script is as good as another. But avoid the broken or
  3831. # incompatible versions:
  3832. # SysV /etc/install, /usr/sbin/install
  3833. # SunOS /usr/etc/install
  3834. # IRIX /sbin/install
  3835. # AIX /bin/install
  3836. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3837. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3838. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3839. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3840. # OS/2's system install, which has a completely different semantic
  3841. # ./install, which can be erroneously created by make from ./install.sh.
  3842. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3843. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3844. if test -z "$INSTALL"; then
  3845. if test "${ac_cv_path_install+set}" = set; then
  3846. echo $ECHO_N "(cached) $ECHO_C" >&6
  3847. else
  3848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3849. for as_dir in $PATH
  3850. do
  3851. IFS=$as_save_IFS
  3852. test -z "$as_dir" && as_dir=.
  3853. # Account for people who put trailing slashes in PATH elements.
  3854. case $as_dir/ in
  3855. ./ | .// | /cC/* | \
  3856. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3857. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3858. /usr/ucb/* ) ;;
  3859. *)
  3860. # OSF1 and SCO ODT 3.0 have their own names for install.
  3861. # Don't use installbsd from OSF since it installs stuff as root
  3862. # by default.
  3863. for ac_prog in ginstall scoinst install; do
  3864. for ac_exec_ext in '' $ac_executable_extensions; do
  3865. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3866. if test $ac_prog = install &&
  3867. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3868. # AIX install. It has an incompatible calling convention.
  3869. :
  3870. elif test $ac_prog = install &&
  3871. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3872. # program-specific install script used by HP pwplus--don't use.
  3873. :
  3874. else
  3875. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3876. break 3
  3877. fi
  3878. fi
  3879. done
  3880. done
  3881. ;;
  3882. esac
  3883. done
  3884. IFS=$as_save_IFS
  3885. fi
  3886. if test "${ac_cv_path_install+set}" = set; then
  3887. INSTALL=$ac_cv_path_install
  3888. else
  3889. # As a last resort, use the slow shell script. Don't cache a
  3890. # value for INSTALL within a source directory, because that will
  3891. # break other packages using the cache if that directory is
  3892. # removed, or if the value is a relative name.
  3893. INSTALL=$ac_install_sh
  3894. fi
  3895. fi
  3896. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3897. echo "${ECHO_T}$INSTALL" >&6; }
  3898. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3899. # It thinks the first close brace ends the variable substitution.
  3900. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3901. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3902. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3903. { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  3904. echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
  3905. if test -z "$MKDIR_P"; then
  3906. if test "${ac_cv_path_mkdir+set}" = set; then
  3907. echo $ECHO_N "(cached) $ECHO_C" >&6
  3908. else
  3909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3910. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  3911. do
  3912. IFS=$as_save_IFS
  3913. test -z "$as_dir" && as_dir=.
  3914. for ac_prog in mkdir gmkdir; do
  3915. for ac_exec_ext in '' $ac_executable_extensions; do
  3916. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  3917. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  3918. 'mkdir (GNU coreutils) '* | \
  3919. 'mkdir (coreutils) '* | \
  3920. 'mkdir (fileutils) '4.1*)
  3921. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  3922. break 3;;
  3923. esac
  3924. done
  3925. done
  3926. done
  3927. IFS=$as_save_IFS
  3928. fi
  3929. if test "${ac_cv_path_mkdir+set}" = set; then
  3930. MKDIR_P="$ac_cv_path_mkdir -p"
  3931. else
  3932. # As a last resort, use the slow shell script. Don't cache a
  3933. # value for MKDIR_P within a source directory, because that will
  3934. # break other packages using the cache if that directory is
  3935. # removed, or if the value is a relative name.
  3936. test -d ./--version && rmdir ./--version
  3937. MKDIR_P="$ac_install_sh -d"
  3938. fi
  3939. fi
  3940. { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  3941. echo "${ECHO_T}$MKDIR_P" >&6; }
  3942. if test -n "$ac_tool_prefix"; then
  3943. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3944. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3945. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3946. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3947. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3948. echo $ECHO_N "(cached) $ECHO_C" >&6
  3949. else
  3950. if test -n "$RANLIB"; then
  3951. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3952. else
  3953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3954. for as_dir in $PATH
  3955. do
  3956. IFS=$as_save_IFS
  3957. test -z "$as_dir" && as_dir=.
  3958. for ac_exec_ext in '' $ac_executable_extensions; do
  3959. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3960. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3961. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3962. break 2
  3963. fi
  3964. done
  3965. done
  3966. IFS=$as_save_IFS
  3967. fi
  3968. fi
  3969. RANLIB=$ac_cv_prog_RANLIB
  3970. if test -n "$RANLIB"; then
  3971. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3972. echo "${ECHO_T}$RANLIB" >&6; }
  3973. else
  3974. { echo "$as_me:$LINENO: result: no" >&5
  3975. echo "${ECHO_T}no" >&6; }
  3976. fi
  3977. fi
  3978. if test -z "$ac_cv_prog_RANLIB"; then
  3979. ac_ct_RANLIB=$RANLIB
  3980. # Extract the first word of "ranlib", so it can be a program name with args.
  3981. set dummy ranlib; ac_word=$2
  3982. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3983. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3984. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3985. echo $ECHO_N "(cached) $ECHO_C" >&6
  3986. else
  3987. if test -n "$ac_ct_RANLIB"; then
  3988. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3989. else
  3990. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3991. for as_dir in $PATH
  3992. do
  3993. IFS=$as_save_IFS
  3994. test -z "$as_dir" && as_dir=.
  3995. for ac_exec_ext in '' $ac_executable_extensions; do
  3996. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3997. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3998. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3999. break 2
  4000. fi
  4001. done
  4002. done
  4003. IFS=$as_save_IFS
  4004. fi
  4005. fi
  4006. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4007. if test -n "$ac_ct_RANLIB"; then
  4008. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4009. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  4010. else
  4011. { echo "$as_me:$LINENO: result: no" >&5
  4012. echo "${ECHO_T}no" >&6; }
  4013. fi
  4014. if test "x$ac_ct_RANLIB" = x; then
  4015. RANLIB=":"
  4016. else
  4017. case $cross_compiling:$ac_tool_warned in
  4018. yes:)
  4019. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  4020. whose name does not start with the host triplet. If you think this
  4021. configuration is useful to you, please write to autoconf@gnu.org." >&5
  4022. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  4023. whose name does not start with the host triplet. If you think this
  4024. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  4025. ac_tool_warned=yes ;;
  4026. esac
  4027. RANLIB=$ac_ct_RANLIB
  4028. fi
  4029. else
  4030. RANLIB="$ac_cv_prog_RANLIB"
  4031. fi
  4032. for ac_prog in 'bison -y' byacc
  4033. do
  4034. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4035. set dummy $ac_prog; ac_word=$2
  4036. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4037. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4038. if test "${ac_cv_prog_YACC+set}" = set; then
  4039. echo $ECHO_N "(cached) $ECHO_C" >&6
  4040. else
  4041. if test -n "$YACC"; then
  4042. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4043. else
  4044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4045. for as_dir in $PATH
  4046. do
  4047. IFS=$as_save_IFS
  4048. test -z "$as_dir" && as_dir=.
  4049. for ac_exec_ext in '' $ac_executable_extensions; do
  4050. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4051. ac_cv_prog_YACC="$ac_prog"
  4052. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4053. break 2
  4054. fi
  4055. done
  4056. done
  4057. IFS=$as_save_IFS
  4058. fi
  4059. fi
  4060. YACC=$ac_cv_prog_YACC
  4061. if test -n "$YACC"; then
  4062. { echo "$as_me:$LINENO: result: $YACC" >&5
  4063. echo "${ECHO_T}$YACC" >&6; }
  4064. else
  4065. { echo "$as_me:$LINENO: result: no" >&5
  4066. echo "${ECHO_T}no" >&6; }
  4067. fi
  4068. test -n "$YACC" && break
  4069. done
  4070. test -n "$YACC" || YACC="yacc"
  4071. # Setting language choice
  4072. ac_ext=cpp
  4073. ac_cpp='$CXXCPP $CPPFLAGS'
  4074. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4075. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4076. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4077. # Check for GNU library
  4078. cat >>confdefs.h <<\_ACEOF
  4079. #define _GNU_SOURCE 1
  4080. _ACEOF
  4081. # Enable system extensions
  4082. ac_ext=cpp
  4083. ac_cpp='$CXXCPP $CPPFLAGS'
  4084. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4085. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4086. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4087. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4088. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4089. if test -z "$CXXCPP"; then
  4090. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4091. echo $ECHO_N "(cached) $ECHO_C" >&6
  4092. else
  4093. # Double quotes because CXXCPP needs to be expanded
  4094. for CXXCPP in "$CXX -E" "/lib/cpp"
  4095. do
  4096. ac_preproc_ok=false
  4097. for ac_cxx_preproc_warn_flag in '' yes
  4098. do
  4099. # Use a header file that comes with gcc, so configuring glibc
  4100. # with a fresh cross-compiler works.
  4101. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4102. # <limits.h> exists even on freestanding compilers.
  4103. # On the NeXT, cc -E runs the code through the compiler's parser,
  4104. # not just through cpp. "Syntax error" is here to catch this case.
  4105. cat >conftest.$ac_ext <<_ACEOF
  4106. /* confdefs.h. */
  4107. _ACEOF
  4108. cat confdefs.h >>conftest.$ac_ext
  4109. cat >>conftest.$ac_ext <<_ACEOF
  4110. /* end confdefs.h. */
  4111. #ifdef __STDC__
  4112. # include <limits.h>
  4113. #else
  4114. # include <assert.h>
  4115. #endif
  4116. Syntax error
  4117. _ACEOF
  4118. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4119. case "(($ac_try" in
  4120. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4121. *) ac_try_echo=$ac_try;;
  4122. esac
  4123. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4124. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4125. ac_status=$?
  4126. grep -v '^ *+' conftest.er1 >conftest.err
  4127. rm -f conftest.er1
  4128. cat conftest.err >&5
  4129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4130. (exit $ac_status); } >/dev/null && {
  4131. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4132. test ! -s conftest.err
  4133. }; then
  4134. :
  4135. else
  4136. echo "$as_me: failed program was:" >&5
  4137. sed 's/^/| /' conftest.$ac_ext >&5
  4138. # Broken: fails on valid input.
  4139. continue
  4140. fi
  4141. rm -f conftest.err conftest.$ac_ext
  4142. # OK, works on sane cases. Now check whether nonexistent headers
  4143. # can be detected and how.
  4144. cat >conftest.$ac_ext <<_ACEOF
  4145. /* confdefs.h. */
  4146. _ACEOF
  4147. cat confdefs.h >>conftest.$ac_ext
  4148. cat >>conftest.$ac_ext <<_ACEOF
  4149. /* end confdefs.h. */
  4150. #include <ac_nonexistent.h>
  4151. _ACEOF
  4152. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4153. case "(($ac_try" in
  4154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4155. *) ac_try_echo=$ac_try;;
  4156. esac
  4157. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4158. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4159. ac_status=$?
  4160. grep -v '^ *+' conftest.er1 >conftest.err
  4161. rm -f conftest.er1
  4162. cat conftest.err >&5
  4163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4164. (exit $ac_status); } >/dev/null && {
  4165. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4166. test ! -s conftest.err
  4167. }; then
  4168. # Broken: success on invalid input.
  4169. continue
  4170. else
  4171. echo "$as_me: failed program was:" >&5
  4172. sed 's/^/| /' conftest.$ac_ext >&5
  4173. # Passes both tests.
  4174. ac_preproc_ok=:
  4175. break
  4176. fi
  4177. rm -f conftest.err conftest.$ac_ext
  4178. done
  4179. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4180. rm -f conftest.err conftest.$ac_ext
  4181. if $ac_preproc_ok; then
  4182. break
  4183. fi
  4184. done
  4185. ac_cv_prog_CXXCPP=$CXXCPP
  4186. fi
  4187. CXXCPP=$ac_cv_prog_CXXCPP
  4188. else
  4189. ac_cv_prog_CXXCPP=$CXXCPP
  4190. fi
  4191. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4192. echo "${ECHO_T}$CXXCPP" >&6; }
  4193. ac_preproc_ok=false
  4194. for ac_cxx_preproc_warn_flag in '' yes
  4195. do
  4196. # Use a header file that comes with gcc, so configuring glibc
  4197. # with a fresh cross-compiler works.
  4198. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4199. # <limits.h> exists even on freestanding compilers.
  4200. # On the NeXT, cc -E runs the code through the compiler's parser,
  4201. # not just through cpp. "Syntax error" is here to catch this case.
  4202. cat >conftest.$ac_ext <<_ACEOF
  4203. /* confdefs.h. */
  4204. _ACEOF
  4205. cat confdefs.h >>conftest.$ac_ext
  4206. cat >>conftest.$ac_ext <<_ACEOF
  4207. /* end confdefs.h. */
  4208. #ifdef __STDC__
  4209. # include <limits.h>
  4210. #else
  4211. # include <assert.h>
  4212. #endif
  4213. Syntax error
  4214. _ACEOF
  4215. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4216. case "(($ac_try" in
  4217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4218. *) ac_try_echo=$ac_try;;
  4219. esac
  4220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4221. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4222. ac_status=$?
  4223. grep -v '^ *+' conftest.er1 >conftest.err
  4224. rm -f conftest.er1
  4225. cat conftest.err >&5
  4226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4227. (exit $ac_status); } >/dev/null && {
  4228. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4229. test ! -s conftest.err
  4230. }; then
  4231. :
  4232. else
  4233. echo "$as_me: failed program was:" >&5
  4234. sed 's/^/| /' conftest.$ac_ext >&5
  4235. # Broken: fails on valid input.
  4236. continue
  4237. fi
  4238. rm -f conftest.err conftest.$ac_ext
  4239. # OK, works on sane cases. Now check whether nonexistent headers
  4240. # can be detected and how.
  4241. cat >conftest.$ac_ext <<_ACEOF
  4242. /* confdefs.h. */
  4243. _ACEOF
  4244. cat confdefs.h >>conftest.$ac_ext
  4245. cat >>conftest.$ac_ext <<_ACEOF
  4246. /* end confdefs.h. */
  4247. #include <ac_nonexistent.h>
  4248. _ACEOF
  4249. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4250. case "(($ac_try" in
  4251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4252. *) ac_try_echo=$ac_try;;
  4253. esac
  4254. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4255. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4256. ac_status=$?
  4257. grep -v '^ *+' conftest.er1 >conftest.err
  4258. rm -f conftest.er1
  4259. cat conftest.err >&5
  4260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4261. (exit $ac_status); } >/dev/null && {
  4262. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4263. test ! -s conftest.err
  4264. }; then
  4265. # Broken: success on invalid input.
  4266. continue
  4267. else
  4268. echo "$as_me: failed program was:" >&5
  4269. sed 's/^/| /' conftest.$ac_ext >&5
  4270. # Passes both tests.
  4271. ac_preproc_ok=:
  4272. break
  4273. fi
  4274. rm -f conftest.err conftest.$ac_ext
  4275. done
  4276. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4277. rm -f conftest.err conftest.$ac_ext
  4278. if $ac_preproc_ok; then
  4279. :
  4280. else
  4281. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4282. See \`config.log' for more details." >&5
  4283. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4284. See \`config.log' for more details." >&2;}
  4285. { (exit 1); exit 1; }; }
  4286. fi
  4287. ac_ext=cpp
  4288. ac_cpp='$CXXCPP $CPPFLAGS'
  4289. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4290. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4291. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4292. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4293. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4294. if test "${ac_cv_path_GREP+set}" = set; then
  4295. echo $ECHO_N "(cached) $ECHO_C" >&6
  4296. else
  4297. # Extract the first word of "grep ggrep" to use in msg output
  4298. if test -z "$GREP"; then
  4299. set dummy grep ggrep; ac_prog_name=$2
  4300. if test "${ac_cv_path_GREP+set}" = set; then
  4301. echo $ECHO_N "(cached) $ECHO_C" >&6
  4302. else
  4303. ac_path_GREP_found=false
  4304. # Loop through the user's path and test for each of PROGNAME-LIST
  4305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4306. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4307. do
  4308. IFS=$as_save_IFS
  4309. test -z "$as_dir" && as_dir=.
  4310. for ac_prog in grep ggrep; do
  4311. for ac_exec_ext in '' $ac_executable_extensions; do
  4312. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4313. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4314. # Check for GNU ac_path_GREP and select it if it is found.
  4315. # Check for GNU $ac_path_GREP
  4316. case `"$ac_path_GREP" --version 2>&1` in
  4317. *GNU*)
  4318. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4319. *)
  4320. ac_count=0
  4321. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4322. while :
  4323. do
  4324. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4325. mv "conftest.tmp" "conftest.in"
  4326. cp "conftest.in" "conftest.nl"
  4327. echo 'GREP' >> "conftest.nl"
  4328. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4329. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4330. ac_count=`expr $ac_count + 1`
  4331. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4332. # Best one so far, save it but keep looking for a better one
  4333. ac_cv_path_GREP="$ac_path_GREP"
  4334. ac_path_GREP_max=$ac_count
  4335. fi
  4336. # 10*(2^10) chars as input seems more than enough
  4337. test $ac_count -gt 10 && break
  4338. done
  4339. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4340. esac
  4341. $ac_path_GREP_found && break 3
  4342. done
  4343. done
  4344. done
  4345. IFS=$as_save_IFS
  4346. fi
  4347. GREP="$ac_cv_path_GREP"
  4348. if test -z "$GREP"; then
  4349. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4350. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4351. { (exit 1); exit 1; }; }
  4352. fi
  4353. else
  4354. ac_cv_path_GREP=$GREP
  4355. fi
  4356. fi
  4357. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4358. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4359. GREP="$ac_cv_path_GREP"
  4360. { echo "$as_me:$LINENO: checking for egrep" >&5
  4361. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4362. if test "${ac_cv_path_EGREP+set}" = set; then
  4363. echo $ECHO_N "(cached) $ECHO_C" >&6
  4364. else
  4365. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4366. then ac_cv_path_EGREP="$GREP -E"
  4367. else
  4368. # Extract the first word of "egrep" to use in msg output
  4369. if test -z "$EGREP"; then
  4370. set dummy egrep; ac_prog_name=$2
  4371. if test "${ac_cv_path_EGREP+set}" = set; then
  4372. echo $ECHO_N "(cached) $ECHO_C" >&6
  4373. else
  4374. ac_path_EGREP_found=false
  4375. # Loop through the user's path and test for each of PROGNAME-LIST
  4376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4377. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4378. do
  4379. IFS=$as_save_IFS
  4380. test -z "$as_dir" && as_dir=.
  4381. for ac_prog in egrep; do
  4382. for ac_exec_ext in '' $ac_executable_extensions; do
  4383. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4384. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4385. # Check for GNU ac_path_EGREP and select it if it is found.
  4386. # Check for GNU $ac_path_EGREP
  4387. case `"$ac_path_EGREP" --version 2>&1` in
  4388. *GNU*)
  4389. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4390. *)
  4391. ac_count=0
  4392. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4393. while :
  4394. do
  4395. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4396. mv "conftest.tmp" "conftest.in"
  4397. cp "conftest.in" "conftest.nl"
  4398. echo 'EGREP' >> "conftest.nl"
  4399. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4400. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4401. ac_count=`expr $ac_count + 1`
  4402. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4403. # Best one so far, save it but keep looking for a better one
  4404. ac_cv_path_EGREP="$ac_path_EGREP"
  4405. ac_path_EGREP_max=$ac_count
  4406. fi
  4407. # 10*(2^10) chars as input seems more than enough
  4408. test $ac_count -gt 10 && break
  4409. done
  4410. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4411. esac
  4412. $ac_path_EGREP_found && break 3
  4413. done
  4414. done
  4415. done
  4416. IFS=$as_save_IFS
  4417. fi
  4418. EGREP="$ac_cv_path_EGREP"
  4419. if test -z "$EGREP"; then
  4420. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4421. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4422. { (exit 1); exit 1; }; }
  4423. fi
  4424. else
  4425. ac_cv_path_EGREP=$EGREP
  4426. fi
  4427. fi
  4428. fi
  4429. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4430. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4431. EGREP="$ac_cv_path_EGREP"
  4432. { echo "$as_me:$LINENO: checking for AIX" >&5
  4433. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4434. cat >conftest.$ac_ext <<_ACEOF
  4435. /* confdefs.h. */
  4436. _ACEOF
  4437. cat confdefs.h >>conftest.$ac_ext
  4438. cat >>conftest.$ac_ext <<_ACEOF
  4439. /* end confdefs.h. */
  4440. #ifdef _AIX
  4441. yes
  4442. #endif
  4443. _ACEOF
  4444. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4445. $EGREP "yes" >/dev/null 2>&1; then
  4446. { echo "$as_me:$LINENO: result: yes" >&5
  4447. echo "${ECHO_T}yes" >&6; }
  4448. cat >>confdefs.h <<\_ACEOF
  4449. #define _ALL_SOURCE 1
  4450. _ACEOF
  4451. else
  4452. { echo "$as_me:$LINENO: result: no" >&5
  4453. echo "${ECHO_T}no" >&6; }
  4454. fi
  4455. rm -f conftest*
  4456. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4457. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4458. if test "${ac_cv_header_stdc+set}" = set; then
  4459. echo $ECHO_N "(cached) $ECHO_C" >&6
  4460. else
  4461. cat >conftest.$ac_ext <<_ACEOF
  4462. /* confdefs.h. */
  4463. _ACEOF
  4464. cat confdefs.h >>conftest.$ac_ext
  4465. cat >>conftest.$ac_ext <<_ACEOF
  4466. /* end confdefs.h. */
  4467. #include <stdlib.h>
  4468. #include <stdarg.h>
  4469. #include <string.h>
  4470. #include <float.h>
  4471. int
  4472. main ()
  4473. {
  4474. ;
  4475. return 0;
  4476. }
  4477. _ACEOF
  4478. rm -f conftest.$ac_objext
  4479. if { (ac_try="$ac_compile"
  4480. case "(($ac_try" in
  4481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4482. *) ac_try_echo=$ac_try;;
  4483. esac
  4484. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4485. (eval "$ac_compile") 2>conftest.er1
  4486. ac_status=$?
  4487. grep -v '^ *+' conftest.er1 >conftest.err
  4488. rm -f conftest.er1
  4489. cat conftest.err >&5
  4490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4491. (exit $ac_status); } && {
  4492. test -z "$ac_cxx_werror_flag" ||
  4493. test ! -s conftest.err
  4494. } && test -s conftest.$ac_objext; then
  4495. ac_cv_header_stdc=yes
  4496. else
  4497. echo "$as_me: failed program was:" >&5
  4498. sed 's/^/| /' conftest.$ac_ext >&5
  4499. ac_cv_header_stdc=no
  4500. fi
  4501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4502. if test $ac_cv_header_stdc = yes; then
  4503. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4504. cat >conftest.$ac_ext <<_ACEOF
  4505. /* confdefs.h. */
  4506. _ACEOF
  4507. cat confdefs.h >>conftest.$ac_ext
  4508. cat >>conftest.$ac_ext <<_ACEOF
  4509. /* end confdefs.h. */
  4510. #include <string.h>
  4511. _ACEOF
  4512. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4513. $EGREP "memchr" >/dev/null 2>&1; then
  4514. :
  4515. else
  4516. ac_cv_header_stdc=no
  4517. fi
  4518. rm -f conftest*
  4519. fi
  4520. if test $ac_cv_header_stdc = yes; then
  4521. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4522. cat >conftest.$ac_ext <<_ACEOF
  4523. /* confdefs.h. */
  4524. _ACEOF
  4525. cat confdefs.h >>conftest.$ac_ext
  4526. cat >>conftest.$ac_ext <<_ACEOF
  4527. /* end confdefs.h. */
  4528. #include <stdlib.h>
  4529. _ACEOF
  4530. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4531. $EGREP "free" >/dev/null 2>&1; then
  4532. :
  4533. else
  4534. ac_cv_header_stdc=no
  4535. fi
  4536. rm -f conftest*
  4537. fi
  4538. if test $ac_cv_header_stdc = yes; then
  4539. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4540. if test "$cross_compiling" = yes; then
  4541. :
  4542. else
  4543. cat >conftest.$ac_ext <<_ACEOF
  4544. /* confdefs.h. */
  4545. _ACEOF
  4546. cat confdefs.h >>conftest.$ac_ext
  4547. cat >>conftest.$ac_ext <<_ACEOF
  4548. /* end confdefs.h. */
  4549. #include <ctype.h>
  4550. #include <stdlib.h>
  4551. #if ((' ' & 0x0FF) == 0x020)
  4552. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4553. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4554. #else
  4555. # define ISLOWER(c) \
  4556. (('a' <= (c) && (c) <= 'i') \
  4557. || ('j' <= (c) && (c) <= 'r') \
  4558. || ('s' <= (c) && (c) <= 'z'))
  4559. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4560. #endif
  4561. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4562. int
  4563. main ()
  4564. {
  4565. int i;
  4566. for (i = 0; i < 256; i++)
  4567. if (XOR (islower (i), ISLOWER (i))
  4568. || toupper (i) != TOUPPER (i))
  4569. return 2;
  4570. return 0;
  4571. }
  4572. _ACEOF
  4573. rm -f conftest$ac_exeext
  4574. if { (ac_try="$ac_link"
  4575. case "(($ac_try" in
  4576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4577. *) ac_try_echo=$ac_try;;
  4578. esac
  4579. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4580. (eval "$ac_link") 2>&5
  4581. ac_status=$?
  4582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4583. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4584. { (case "(($ac_try" in
  4585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4586. *) ac_try_echo=$ac_try;;
  4587. esac
  4588. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4589. (eval "$ac_try") 2>&5
  4590. ac_status=$?
  4591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4592. (exit $ac_status); }; }; then
  4593. :
  4594. else
  4595. echo "$as_me: program exited with status $ac_status" >&5
  4596. echo "$as_me: failed program was:" >&5
  4597. sed 's/^/| /' conftest.$ac_ext >&5
  4598. ( exit $ac_status )
  4599. ac_cv_header_stdc=no
  4600. fi
  4601. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4602. fi
  4603. fi
  4604. fi
  4605. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4606. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4607. if test $ac_cv_header_stdc = yes; then
  4608. cat >>confdefs.h <<\_ACEOF
  4609. #define STDC_HEADERS 1
  4610. _ACEOF
  4611. fi
  4612. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4613. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4614. inttypes.h stdint.h unistd.h
  4615. do
  4616. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4617. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4618. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4619. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4620. echo $ECHO_N "(cached) $ECHO_C" >&6
  4621. else
  4622. cat >conftest.$ac_ext <<_ACEOF
  4623. /* confdefs.h. */
  4624. _ACEOF
  4625. cat confdefs.h >>conftest.$ac_ext
  4626. cat >>conftest.$ac_ext <<_ACEOF
  4627. /* end confdefs.h. */
  4628. $ac_includes_default
  4629. #include <$ac_header>
  4630. _ACEOF
  4631. rm -f conftest.$ac_objext
  4632. if { (ac_try="$ac_compile"
  4633. case "(($ac_try" in
  4634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4635. *) ac_try_echo=$ac_try;;
  4636. esac
  4637. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4638. (eval "$ac_compile") 2>conftest.er1
  4639. ac_status=$?
  4640. grep -v '^ *+' conftest.er1 >conftest.err
  4641. rm -f conftest.er1
  4642. cat conftest.err >&5
  4643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4644. (exit $ac_status); } && {
  4645. test -z "$ac_cxx_werror_flag" ||
  4646. test ! -s conftest.err
  4647. } && test -s conftest.$ac_objext; then
  4648. eval "$as_ac_Header=yes"
  4649. else
  4650. echo "$as_me: failed program was:" >&5
  4651. sed 's/^/| /' conftest.$ac_ext >&5
  4652. eval "$as_ac_Header=no"
  4653. fi
  4654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4655. fi
  4656. ac_res=`eval echo '${'$as_ac_Header'}'`
  4657. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4658. echo "${ECHO_T}$ac_res" >&6; }
  4659. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4660. cat >>confdefs.h <<_ACEOF
  4661. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4662. _ACEOF
  4663. fi
  4664. done
  4665. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4666. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4667. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4668. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4669. echo $ECHO_N "(cached) $ECHO_C" >&6
  4670. fi
  4671. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4672. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4673. else
  4674. # Is the header compilable?
  4675. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4676. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4677. cat >conftest.$ac_ext <<_ACEOF
  4678. /* confdefs.h. */
  4679. _ACEOF
  4680. cat confdefs.h >>conftest.$ac_ext
  4681. cat >>conftest.$ac_ext <<_ACEOF
  4682. /* end confdefs.h. */
  4683. $ac_includes_default
  4684. #include <minix/config.h>
  4685. _ACEOF
  4686. rm -f conftest.$ac_objext
  4687. if { (ac_try="$ac_compile"
  4688. case "(($ac_try" in
  4689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4690. *) ac_try_echo=$ac_try;;
  4691. esac
  4692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4693. (eval "$ac_compile") 2>conftest.er1
  4694. ac_status=$?
  4695. grep -v '^ *+' conftest.er1 >conftest.err
  4696. rm -f conftest.er1
  4697. cat conftest.err >&5
  4698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4699. (exit $ac_status); } && {
  4700. test -z "$ac_cxx_werror_flag" ||
  4701. test ! -s conftest.err
  4702. } && test -s conftest.$ac_objext; then
  4703. ac_header_compiler=yes
  4704. else
  4705. echo "$as_me: failed program was:" >&5
  4706. sed 's/^/| /' conftest.$ac_ext >&5
  4707. ac_header_compiler=no
  4708. fi
  4709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4710. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4711. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4712. # Is the header present?
  4713. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4714. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4715. cat >conftest.$ac_ext <<_ACEOF
  4716. /* confdefs.h. */
  4717. _ACEOF
  4718. cat confdefs.h >>conftest.$ac_ext
  4719. cat >>conftest.$ac_ext <<_ACEOF
  4720. /* end confdefs.h. */
  4721. #include <minix/config.h>
  4722. _ACEOF
  4723. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4724. case "(($ac_try" in
  4725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4726. *) ac_try_echo=$ac_try;;
  4727. esac
  4728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4729. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4730. ac_status=$?
  4731. grep -v '^ *+' conftest.er1 >conftest.err
  4732. rm -f conftest.er1
  4733. cat conftest.err >&5
  4734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4735. (exit $ac_status); } >/dev/null && {
  4736. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4737. test ! -s conftest.err
  4738. }; then
  4739. ac_header_preproc=yes
  4740. else
  4741. echo "$as_me: failed program was:" >&5
  4742. sed 's/^/| /' conftest.$ac_ext >&5
  4743. ac_header_preproc=no
  4744. fi
  4745. rm -f conftest.err conftest.$ac_ext
  4746. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4747. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4748. # So? What about this header?
  4749. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4750. yes:no: )
  4751. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4752. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4753. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4754. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4755. ac_header_preproc=yes
  4756. ;;
  4757. no:yes:* )
  4758. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4759. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4760. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4761. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4762. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4763. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4764. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4765. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4766. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4767. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4768. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4769. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4770. ( cat <<\_ASBOX
  4771. ## ----------------------------------------------- ##
  4772. ## Report this to t-tujikawa@users.sourceforge.net ##
  4773. ## ----------------------------------------------- ##
  4774. _ASBOX
  4775. ) | sed "s/^/$as_me: WARNING: /" >&2
  4776. ;;
  4777. esac
  4778. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4779. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4780. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4781. echo $ECHO_N "(cached) $ECHO_C" >&6
  4782. else
  4783. ac_cv_header_minix_config_h=$ac_header_preproc
  4784. fi
  4785. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4786. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4787. fi
  4788. if test $ac_cv_header_minix_config_h = yes; then
  4789. MINIX=yes
  4790. else
  4791. MINIX=
  4792. fi
  4793. if test "$MINIX" = yes; then
  4794. cat >>confdefs.h <<\_ACEOF
  4795. #define _POSIX_SOURCE 1
  4796. _ACEOF
  4797. cat >>confdefs.h <<\_ACEOF
  4798. #define _POSIX_1_SOURCE 2
  4799. _ACEOF
  4800. cat >>confdefs.h <<\_ACEOF
  4801. #define _MINIX 1
  4802. _ACEOF
  4803. fi
  4804. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4805. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4806. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4807. echo $ECHO_N "(cached) $ECHO_C" >&6
  4808. else
  4809. cat >conftest.$ac_ext <<_ACEOF
  4810. /* confdefs.h. */
  4811. _ACEOF
  4812. cat confdefs.h >>conftest.$ac_ext
  4813. cat >>conftest.$ac_ext <<_ACEOF
  4814. /* end confdefs.h. */
  4815. # define __EXTENSIONS__ 1
  4816. $ac_includes_default
  4817. int
  4818. main ()
  4819. {
  4820. ;
  4821. return 0;
  4822. }
  4823. _ACEOF
  4824. rm -f conftest.$ac_objext
  4825. if { (ac_try="$ac_compile"
  4826. case "(($ac_try" in
  4827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4828. *) ac_try_echo=$ac_try;;
  4829. esac
  4830. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4831. (eval "$ac_compile") 2>conftest.er1
  4832. ac_status=$?
  4833. grep -v '^ *+' conftest.er1 >conftest.err
  4834. rm -f conftest.er1
  4835. cat conftest.err >&5
  4836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4837. (exit $ac_status); } && {
  4838. test -z "$ac_cxx_werror_flag" ||
  4839. test ! -s conftest.err
  4840. } && test -s conftest.$ac_objext; then
  4841. ac_cv_safe_to_define___extensions__=yes
  4842. else
  4843. echo "$as_me: failed program was:" >&5
  4844. sed 's/^/| /' conftest.$ac_ext >&5
  4845. ac_cv_safe_to_define___extensions__=no
  4846. fi
  4847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4848. fi
  4849. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4850. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4851. test $ac_cv_safe_to_define___extensions__ = yes &&
  4852. cat >>confdefs.h <<\_ACEOF
  4853. #define __EXTENSIONS__ 1
  4854. _ACEOF
  4855. cat >>confdefs.h <<\_ACEOF
  4856. #define _POSIX_PTHREAD_SEMANTICS 1
  4857. _ACEOF
  4858. cat >>confdefs.h <<\_ACEOF
  4859. #define _TANDEM_SOURCE 1
  4860. _ACEOF
  4861. # Checks for libraries.
  4862. if test "x$with_libxml2" = "xyes"; then
  4863. # Check whether --with-xml-prefix was given.
  4864. if test "${with_xml_prefix+set}" = set; then
  4865. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4866. else
  4867. xml_config_prefix=""
  4868. fi
  4869. # Check whether --with-xml-exec-prefix was given.
  4870. if test "${with_xml_exec_prefix+set}" = set; then
  4871. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4872. else
  4873. xml_config_exec_prefix=""
  4874. fi
  4875. # Check whether --enable-xmltest was given.
  4876. if test "${enable_xmltest+set}" = set; then
  4877. enableval=$enable_xmltest;
  4878. else
  4879. enable_xmltest=yes
  4880. fi
  4881. if test x$xml_config_exec_prefix != x ; then
  4882. xml_config_args="$xml_config_args"
  4883. if test x${XML2_CONFIG+set} != xset ; then
  4884. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4885. fi
  4886. fi
  4887. if test x$xml_config_prefix != x ; then
  4888. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4889. if test x${XML2_CONFIG+set} != xset ; then
  4890. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4891. fi
  4892. fi
  4893. # Extract the first word of "xml2-config", so it can be a program name with args.
  4894. set dummy xml2-config; ac_word=$2
  4895. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4896. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4897. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4898. echo $ECHO_N "(cached) $ECHO_C" >&6
  4899. else
  4900. case $XML2_CONFIG in
  4901. [\\/]* | ?:[\\/]*)
  4902. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4903. ;;
  4904. *)
  4905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4906. for as_dir in $PATH
  4907. do
  4908. IFS=$as_save_IFS
  4909. test -z "$as_dir" && as_dir=.
  4910. for ac_exec_ext in '' $ac_executable_extensions; do
  4911. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4912. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4913. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4914. break 2
  4915. fi
  4916. done
  4917. done
  4918. IFS=$as_save_IFS
  4919. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4920. ;;
  4921. esac
  4922. fi
  4923. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4924. if test -n "$XML2_CONFIG"; then
  4925. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4926. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4927. else
  4928. { echo "$as_me:$LINENO: result: no" >&5
  4929. echo "${ECHO_T}no" >&6; }
  4930. fi
  4931. min_xml_version=2.6.24
  4932. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4933. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4934. no_xml=""
  4935. if test "$XML2_CONFIG" = "no" ; then
  4936. no_xml=yes
  4937. else
  4938. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4939. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4940. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4941. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4942. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4943. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4944. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4945. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4946. if test "x$enable_xmltest" = "xyes" ; then
  4947. ac_save_CPPFLAGS="$CPPFLAGS"
  4948. ac_save_LIBS="$LIBS"
  4949. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4950. LIBS="$XML_LIBS $LIBS"
  4951. rm -f conf.xmltest
  4952. if test "$cross_compiling" = yes; then
  4953. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4954. else
  4955. cat >conftest.$ac_ext <<_ACEOF
  4956. /* confdefs.h. */
  4957. _ACEOF
  4958. cat confdefs.h >>conftest.$ac_ext
  4959. cat >>conftest.$ac_ext <<_ACEOF
  4960. /* end confdefs.h. */
  4961. #include <stdlib.h>
  4962. #include <stdio.h>
  4963. #include <string.h>
  4964. #include <libxml/xmlversion.h>
  4965. int
  4966. main()
  4967. {
  4968. int xml_major_version, xml_minor_version, xml_micro_version;
  4969. int major, minor, micro;
  4970. char *tmp_version;
  4971. system("touch conf.xmltest");
  4972. /* Capture xml2-config output via autoconf/configure variables */
  4973. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4974. tmp_version = (char *)strdup("$min_xml_version");
  4975. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4976. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4977. exit(1);
  4978. }
  4979. free(tmp_version);
  4980. /* Capture the version information from the header files */
  4981. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  4982. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  4983. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  4984. exit(1);
  4985. }
  4986. free(tmp_version);
  4987. /* Compare xml2-config output to the libxml headers */
  4988. if ((xml_major_version != $xml_config_major_version) ||
  4989. (xml_minor_version != $xml_config_minor_version) ||
  4990. (xml_micro_version != $xml_config_micro_version))
  4991. {
  4992. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  4993. xml_major_version, xml_minor_version, xml_micro_version);
  4994. printf("*** xml2-config (version %d.%d.%d)\n",
  4995. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  4996. return 1;
  4997. }
  4998. /* Compare the headers to the library to make sure we match */
  4999. /* Less than ideal -- doesn't provide us with return value feedback,
  5000. * only exits if there's a serious mismatch between header and library.
  5001. */
  5002. LIBXML_TEST_VERSION;
  5003. /* Test that the library is greater than our minimum version */
  5004. if ((xml_major_version > major) ||
  5005. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5006. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5007. (xml_micro_version >= micro)))
  5008. {
  5009. return 0;
  5010. }
  5011. else
  5012. {
  5013. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5014. xml_major_version, xml_minor_version, xml_micro_version);
  5015. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5016. major, minor, micro);
  5017. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5018. printf("***\n");
  5019. printf("*** If you have already installed a sufficiently new version, this error\n");
  5020. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5021. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5022. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5023. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5024. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5025. printf("*** so that the correct libraries are found at run-time))\n");
  5026. }
  5027. return 1;
  5028. }
  5029. _ACEOF
  5030. rm -f conftest$ac_exeext
  5031. if { (ac_try="$ac_link"
  5032. case "(($ac_try" in
  5033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5034. *) ac_try_echo=$ac_try;;
  5035. esac
  5036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5037. (eval "$ac_link") 2>&5
  5038. ac_status=$?
  5039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5040. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5041. { (case "(($ac_try" in
  5042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5043. *) ac_try_echo=$ac_try;;
  5044. esac
  5045. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5046. (eval "$ac_try") 2>&5
  5047. ac_status=$?
  5048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5049. (exit $ac_status); }; }; then
  5050. :
  5051. else
  5052. echo "$as_me: program exited with status $ac_status" >&5
  5053. echo "$as_me: failed program was:" >&5
  5054. sed 's/^/| /' conftest.$ac_ext >&5
  5055. ( exit $ac_status )
  5056. no_xml=yes
  5057. fi
  5058. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5059. fi
  5060. CPPFLAGS="$ac_save_CPPFLAGS"
  5061. LIBS="$ac_save_LIBS"
  5062. fi
  5063. fi
  5064. if test "x$no_xml" = x ; then
  5065. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5066. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5067. have_libxml2=yes
  5068. else
  5069. { echo "$as_me:$LINENO: result: no" >&5
  5070. echo "${ECHO_T}no" >&6; }
  5071. if test "$XML2_CONFIG" = "no" ; then
  5072. echo "*** The xml2-config script installed by LIBXML could not be found"
  5073. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5074. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5075. echo "*** full path to xml2-config."
  5076. else
  5077. if test -f conf.xmltest ; then
  5078. :
  5079. else
  5080. echo "*** Could not run libxml test program, checking why..."
  5081. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5082. LIBS="$LIBS $XML_LIBS"
  5083. cat >conftest.$ac_ext <<_ACEOF
  5084. /* confdefs.h. */
  5085. _ACEOF
  5086. cat confdefs.h >>conftest.$ac_ext
  5087. cat >>conftest.$ac_ext <<_ACEOF
  5088. /* end confdefs.h. */
  5089. #include <libxml/xmlversion.h>
  5090. #include <stdio.h>
  5091. int
  5092. main ()
  5093. {
  5094. LIBXML_TEST_VERSION; return 0;
  5095. ;
  5096. return 0;
  5097. }
  5098. _ACEOF
  5099. rm -f conftest.$ac_objext conftest$ac_exeext
  5100. if { (ac_try="$ac_link"
  5101. case "(($ac_try" in
  5102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5103. *) ac_try_echo=$ac_try;;
  5104. esac
  5105. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5106. (eval "$ac_link") 2>conftest.er1
  5107. ac_status=$?
  5108. grep -v '^ *+' conftest.er1 >conftest.err
  5109. rm -f conftest.er1
  5110. cat conftest.err >&5
  5111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5112. (exit $ac_status); } && {
  5113. test -z "$ac_cxx_werror_flag" ||
  5114. test ! -s conftest.err
  5115. } && test -s conftest$ac_exeext &&
  5116. $as_test_x conftest$ac_exeext; then
  5117. echo "*** The test program compiled, but did not run. This usually means"
  5118. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5119. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5120. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5121. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5122. echo "*** is required on your system"
  5123. echo "***"
  5124. echo "*** If you have an old version installed, it is best to remove it, although"
  5125. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5126. else
  5127. echo "$as_me: failed program was:" >&5
  5128. sed 's/^/| /' conftest.$ac_ext >&5
  5129. echo "*** The test program failed to compile or link. See the file config.log for the"
  5130. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5131. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5132. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5133. fi
  5134. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5135. conftest$ac_exeext conftest.$ac_ext
  5136. CPPFLAGS="$ac_save_CPPFLAGS"
  5137. LIBS="$ac_save_LIBS"
  5138. fi
  5139. fi
  5140. XML_CPPFLAGS=""
  5141. XML_LIBS=""
  5142. :
  5143. fi
  5144. rm -f conf.xmltest
  5145. if test "x$have_libxml2" = "xyes"; then
  5146. cat >>confdefs.h <<\_ACEOF
  5147. #define HAVE_LIBXML2 1
  5148. _ACEOF
  5149. fi
  5150. fi
  5151. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5152. # Check whether --with-libexpat-prefix was given.
  5153. if test "${with_libexpat_prefix+set}" = set; then
  5154. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5155. else
  5156. libexpat_prefix=""
  5157. fi
  5158. if test "x$libexpat_prefix" = "x"; then
  5159. libexpat_prefix="/usr"
  5160. fi
  5161. libexpat_prefix_lib=$libexpat_prefix/lib
  5162. libexpat_prefix_include=$libexpat_prefix/include
  5163. LIBS_save=$LIBS
  5164. CPPFLAGS_save=$CPPFLAGS
  5165. LIBS="-L$libexpat_prefix_lib $LIBS"
  5166. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5167. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5168. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5169. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5170. echo $ECHO_N "(cached) $ECHO_C" >&6
  5171. else
  5172. ac_check_lib_save_LIBS=$LIBS
  5173. LIBS="-lexpat $LIBS"
  5174. cat >conftest.$ac_ext <<_ACEOF
  5175. /* confdefs.h. */
  5176. _ACEOF
  5177. cat confdefs.h >>conftest.$ac_ext
  5178. cat >>conftest.$ac_ext <<_ACEOF
  5179. /* end confdefs.h. */
  5180. /* Override any GCC internal prototype to avoid an error.
  5181. Use char because int might match the return type of a GCC
  5182. builtin and then its argument prototype would still apply. */
  5183. #ifdef __cplusplus
  5184. extern "C"
  5185. #endif
  5186. char XML_ParserCreate ();
  5187. int
  5188. main ()
  5189. {
  5190. return XML_ParserCreate ();
  5191. ;
  5192. return 0;
  5193. }
  5194. _ACEOF
  5195. rm -f conftest.$ac_objext conftest$ac_exeext
  5196. if { (ac_try="$ac_link"
  5197. case "(($ac_try" in
  5198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5199. *) ac_try_echo=$ac_try;;
  5200. esac
  5201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5202. (eval "$ac_link") 2>conftest.er1
  5203. ac_status=$?
  5204. grep -v '^ *+' conftest.er1 >conftest.err
  5205. rm -f conftest.er1
  5206. cat conftest.err >&5
  5207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5208. (exit $ac_status); } && {
  5209. test -z "$ac_cxx_werror_flag" ||
  5210. test ! -s conftest.err
  5211. } && test -s conftest$ac_exeext &&
  5212. $as_test_x conftest$ac_exeext; then
  5213. ac_cv_lib_expat_XML_ParserCreate=yes
  5214. else
  5215. echo "$as_me: failed program was:" >&5
  5216. sed 's/^/| /' conftest.$ac_ext >&5
  5217. ac_cv_lib_expat_XML_ParserCreate=no
  5218. fi
  5219. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5220. conftest$ac_exeext conftest.$ac_ext
  5221. LIBS=$ac_check_lib_save_LIBS
  5222. fi
  5223. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5224. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5225. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5226. have_libexpat=yes
  5227. fi
  5228. if test "x$have_libexpat" = "xyes"; then
  5229. cat >>confdefs.h <<\_ACEOF
  5230. #define HAVE_LIBEXPAT 1
  5231. _ACEOF
  5232. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5233. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5234. fi
  5235. LIBS=$LIBS_save
  5236. CPPFLAGS=$CPPFLAGS_save
  5237. fi
  5238. if test "x$with_gnutls" = "xyes"; then
  5239. # Check whether --with-libgnutls-prefix was given.
  5240. if test "${with_libgnutls_prefix+set}" = set; then
  5241. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5242. else
  5243. libgnutls_config_prefix=""
  5244. fi
  5245. if test x$libgnutls_config_prefix != x ; then
  5246. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5247. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5248. fi
  5249. fi
  5250. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5251. set dummy libgnutls-config; ac_word=$2
  5252. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5253. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5254. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5255. echo $ECHO_N "(cached) $ECHO_C" >&6
  5256. else
  5257. case $LIBGNUTLS_CONFIG in
  5258. [\\/]* | ?:[\\/]*)
  5259. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5260. ;;
  5261. *)
  5262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5263. for as_dir in $PATH
  5264. do
  5265. IFS=$as_save_IFS
  5266. test -z "$as_dir" && as_dir=.
  5267. for ac_exec_ext in '' $ac_executable_extensions; do
  5268. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5269. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5270. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5271. break 2
  5272. fi
  5273. done
  5274. done
  5275. IFS=$as_save_IFS
  5276. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5277. ;;
  5278. esac
  5279. fi
  5280. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5281. if test -n "$LIBGNUTLS_CONFIG"; then
  5282. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5283. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5284. else
  5285. { echo "$as_me:$LINENO: result: no" >&5
  5286. echo "${ECHO_T}no" >&6; }
  5287. fi
  5288. min_libgnutls_version=1.2.9
  5289. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5290. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5291. no_libgnutls=""
  5292. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5293. no_libgnutls=yes
  5294. else
  5295. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5296. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5297. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5298. ac_save_CFLAGS="$CFLAGS"
  5299. ac_save_LIBS="$LIBS"
  5300. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5301. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5302. rm -f conf.libgnutlstest
  5303. if test "$cross_compiling" = yes; then
  5304. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5305. else
  5306. cat >conftest.$ac_ext <<_ACEOF
  5307. /* confdefs.h. */
  5308. _ACEOF
  5309. cat confdefs.h >>conftest.$ac_ext
  5310. cat >>conftest.$ac_ext <<_ACEOF
  5311. /* end confdefs.h. */
  5312. #include <stdio.h>
  5313. #include <stdlib.h>
  5314. #include <string.h>
  5315. #include <gnutls/gnutls.h>
  5316. int
  5317. main ()
  5318. {
  5319. system ("touch conf.libgnutlstest");
  5320. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5321. {
  5322. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5323. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5324. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5325. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5326. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5327. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5328. printf("*** required on your system.\n");
  5329. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5330. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5331. printf("*** before re-running configure\n");
  5332. }
  5333. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5334. {
  5335. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5336. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5337. }
  5338. else
  5339. {
  5340. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5341. {
  5342. return 0;
  5343. }
  5344. else
  5345. {
  5346. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5347. gnutls_check_version(NULL) );
  5348. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5349. "$min_libgnutls_version" );
  5350. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5351. printf("*** \n");
  5352. printf("*** If you have already installed a sufficiently new version, this error\n");
  5353. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5354. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5355. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5356. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5357. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5358. printf("*** so that the correct libraries are found at run-time))\n");
  5359. }
  5360. }
  5361. return 1;
  5362. }
  5363. _ACEOF
  5364. rm -f conftest$ac_exeext
  5365. if { (ac_try="$ac_link"
  5366. case "(($ac_try" in
  5367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5368. *) ac_try_echo=$ac_try;;
  5369. esac
  5370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5371. (eval "$ac_link") 2>&5
  5372. ac_status=$?
  5373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5374. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5375. { (case "(($ac_try" in
  5376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5377. *) ac_try_echo=$ac_try;;
  5378. esac
  5379. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5380. (eval "$ac_try") 2>&5
  5381. ac_status=$?
  5382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5383. (exit $ac_status); }; }; then
  5384. :
  5385. else
  5386. echo "$as_me: program exited with status $ac_status" >&5
  5387. echo "$as_me: failed program was:" >&5
  5388. sed 's/^/| /' conftest.$ac_ext >&5
  5389. ( exit $ac_status )
  5390. no_libgnutls=yes
  5391. fi
  5392. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5393. fi
  5394. CFLAGS="$ac_save_CFLAGS"
  5395. LIBS="$ac_save_LIBS"
  5396. fi
  5397. if test "x$no_libgnutls" = x ; then
  5398. { echo "$as_me:$LINENO: result: yes" >&5
  5399. echo "${ECHO_T}yes" >&6; }
  5400. have_libgnutls=yes
  5401. else
  5402. if test -f conf.libgnutlstest ; then
  5403. :
  5404. else
  5405. { echo "$as_me:$LINENO: result: no" >&5
  5406. echo "${ECHO_T}no" >&6; }
  5407. fi
  5408. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5409. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5410. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5411. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5412. echo "*** full path to libgnutls-config."
  5413. else
  5414. if test -f conf.libgnutlstest ; then
  5415. :
  5416. else
  5417. echo "*** Could not run libgnutls test program, checking why..."
  5418. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5419. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5420. cat >conftest.$ac_ext <<_ACEOF
  5421. /* confdefs.h. */
  5422. _ACEOF
  5423. cat confdefs.h >>conftest.$ac_ext
  5424. cat >>conftest.$ac_ext <<_ACEOF
  5425. /* end confdefs.h. */
  5426. #include <stdio.h>
  5427. #include <stdlib.h>
  5428. #include <string.h>
  5429. #include <gnutls/gnutls.h>
  5430. int
  5431. main ()
  5432. {
  5433. return !!gnutls_check_version(NULL);
  5434. ;
  5435. return 0;
  5436. }
  5437. _ACEOF
  5438. rm -f conftest.$ac_objext conftest$ac_exeext
  5439. if { (ac_try="$ac_link"
  5440. case "(($ac_try" in
  5441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5442. *) ac_try_echo=$ac_try;;
  5443. esac
  5444. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5445. (eval "$ac_link") 2>conftest.er1
  5446. ac_status=$?
  5447. grep -v '^ *+' conftest.er1 >conftest.err
  5448. rm -f conftest.er1
  5449. cat conftest.err >&5
  5450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5451. (exit $ac_status); } && {
  5452. test -z "$ac_cxx_werror_flag" ||
  5453. test ! -s conftest.err
  5454. } && test -s conftest$ac_exeext &&
  5455. $as_test_x conftest$ac_exeext; then
  5456. echo "*** The test program compiled, but did not run. This usually means"
  5457. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5458. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5459. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5460. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5461. echo "*** is required on your system"
  5462. echo "***"
  5463. echo "*** If you have an old version installed, it is best to remove it, although"
  5464. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5465. echo "***"
  5466. else
  5467. echo "$as_me: failed program was:" >&5
  5468. sed 's/^/| /' conftest.$ac_ext >&5
  5469. echo "*** The test program failed to compile or link. See the file config.log for the"
  5470. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5471. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5472. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5473. fi
  5474. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5475. conftest$ac_exeext conftest.$ac_ext
  5476. CFLAGS="$ac_save_CFLAGS"
  5477. LIBS="$ac_save_LIBS"
  5478. fi
  5479. fi
  5480. LIBGNUTLS_CFLAGS=""
  5481. LIBGNUTLS_LIBS=""
  5482. :
  5483. fi
  5484. rm -f conf.libgnutlstest
  5485. if test "x$have_libgnutls" = "xyes"; then
  5486. cat >>confdefs.h <<\_ACEOF
  5487. #define HAVE_LIBGNUTLS 1
  5488. _ACEOF
  5489. fi
  5490. fi
  5491. if test "x$have_libgnutls" = "xyes"; then
  5492. # Check whether --with-libgcrypt-prefix was given.
  5493. if test "${with_libgcrypt_prefix+set}" = set; then
  5494. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5495. else
  5496. libgcrypt_config_prefix=""
  5497. fi
  5498. if test x$libgcrypt_config_prefix != x ; then
  5499. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5500. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5501. fi
  5502. fi
  5503. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5504. set dummy libgcrypt-config; ac_word=$2
  5505. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5506. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5507. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5508. echo $ECHO_N "(cached) $ECHO_C" >&6
  5509. else
  5510. case $LIBGCRYPT_CONFIG in
  5511. [\\/]* | ?:[\\/]*)
  5512. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5513. ;;
  5514. *)
  5515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5516. for as_dir in $PATH
  5517. do
  5518. IFS=$as_save_IFS
  5519. test -z "$as_dir" && as_dir=.
  5520. for ac_exec_ext in '' $ac_executable_extensions; do
  5521. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5522. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5523. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5524. break 2
  5525. fi
  5526. done
  5527. done
  5528. IFS=$as_save_IFS
  5529. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5530. ;;
  5531. esac
  5532. fi
  5533. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5534. if test -n "$LIBGCRYPT_CONFIG"; then
  5535. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5536. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5537. else
  5538. { echo "$as_me:$LINENO: result: no" >&5
  5539. echo "${ECHO_T}no" >&6; }
  5540. fi
  5541. tmp=1.2.2
  5542. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5543. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5544. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5545. else
  5546. req_libgcrypt_api=0
  5547. min_libgcrypt_version="$tmp"
  5548. fi
  5549. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5550. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5551. ok=no
  5552. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5553. req_major=`echo $min_libgcrypt_version | \
  5554. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5555. req_minor=`echo $min_libgcrypt_version | \
  5556. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5557. req_micro=`echo $min_libgcrypt_version | \
  5558. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5559. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5560. major=`echo $libgcrypt_config_version | \
  5561. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5562. minor=`echo $libgcrypt_config_version | \
  5563. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5564. micro=`echo $libgcrypt_config_version | \
  5565. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5566. if test "$major" -gt "$req_major"; then
  5567. ok=yes
  5568. else
  5569. if test "$major" -eq "$req_major"; then
  5570. if test "$minor" -gt "$req_minor"; then
  5571. ok=yes
  5572. else
  5573. if test "$minor" -eq "$req_minor"; then
  5574. if test "$micro" -ge "$req_micro"; then
  5575. ok=yes
  5576. fi
  5577. fi
  5578. fi
  5579. fi
  5580. fi
  5581. fi
  5582. if test $ok = yes; then
  5583. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5584. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5585. else
  5586. { echo "$as_me:$LINENO: result: no" >&5
  5587. echo "${ECHO_T}no" >&6; }
  5588. fi
  5589. if test $ok = yes; then
  5590. # If we have a recent libgcrypt, we should also check that the
  5591. # API is compatible
  5592. if test "$req_libgcrypt_api" -gt 0 ; then
  5593. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5594. if test "$tmp" -gt 0 ; then
  5595. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5596. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5597. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5598. { echo "$as_me:$LINENO: result: okay" >&5
  5599. echo "${ECHO_T}okay" >&6; }
  5600. else
  5601. ok=no
  5602. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5603. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5604. fi
  5605. fi
  5606. fi
  5607. fi
  5608. if test $ok = yes; then
  5609. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5610. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5611. have_libgcrypt=yes
  5612. else
  5613. LIBGCRYPT_CFLAGS=""
  5614. LIBGCRYPT_LIBS=""
  5615. :
  5616. fi
  5617. if test "x$have_libgcrypt" = "xyes"; then
  5618. cat >>confdefs.h <<\_ACEOF
  5619. #define HAVE_LIBGCRYPT 1
  5620. _ACEOF
  5621. fi
  5622. fi
  5623. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5624. # Check whether --with-openssl-prefix was given.
  5625. if test "${with_openssl_prefix+set}" = set; then
  5626. withval=$with_openssl_prefix; openssl_prefix=$withval
  5627. else
  5628. openssl_prefix=""
  5629. fi
  5630. if test "x$openssl_prefix" = "x"; then
  5631. openssl_prefix="/usr/local"
  5632. fi
  5633. openssl_prefix_lib=$openssl_prefix/lib
  5634. openssl_prefix_include=$openssl_prefix/include
  5635. LIBS_save=$LIBS
  5636. CPPFLAGS_save=$CPPFLAGS
  5637. LIBS="-L$openssl_prefix_lib $LIBS"
  5638. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5639. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5640. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5641. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5642. echo $ECHO_N "(cached) $ECHO_C" >&6
  5643. else
  5644. ac_check_lib_save_LIBS=$LIBS
  5645. LIBS="-lssl $LIBS"
  5646. cat >conftest.$ac_ext <<_ACEOF
  5647. /* confdefs.h. */
  5648. _ACEOF
  5649. cat confdefs.h >>conftest.$ac_ext
  5650. cat >>conftest.$ac_ext <<_ACEOF
  5651. /* end confdefs.h. */
  5652. /* Override any GCC internal prototype to avoid an error.
  5653. Use char because int might match the return type of a GCC
  5654. builtin and then its argument prototype would still apply. */
  5655. #ifdef __cplusplus
  5656. extern "C"
  5657. #endif
  5658. char SSL_library_init ();
  5659. int
  5660. main ()
  5661. {
  5662. return SSL_library_init ();
  5663. ;
  5664. return 0;
  5665. }
  5666. _ACEOF
  5667. rm -f conftest.$ac_objext conftest$ac_exeext
  5668. if { (ac_try="$ac_link"
  5669. case "(($ac_try" in
  5670. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5671. *) ac_try_echo=$ac_try;;
  5672. esac
  5673. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5674. (eval "$ac_link") 2>conftest.er1
  5675. ac_status=$?
  5676. grep -v '^ *+' conftest.er1 >conftest.err
  5677. rm -f conftest.er1
  5678. cat conftest.err >&5
  5679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5680. (exit $ac_status); } && {
  5681. test -z "$ac_cxx_werror_flag" ||
  5682. test ! -s conftest.err
  5683. } && test -s conftest$ac_exeext &&
  5684. $as_test_x conftest$ac_exeext; then
  5685. ac_cv_lib_ssl_SSL_library_init=yes
  5686. else
  5687. echo "$as_me: failed program was:" >&5
  5688. sed 's/^/| /' conftest.$ac_ext >&5
  5689. ac_cv_lib_ssl_SSL_library_init=no
  5690. fi
  5691. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5692. conftest$ac_exeext conftest.$ac_ext
  5693. LIBS=$ac_check_lib_save_LIBS
  5694. fi
  5695. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5696. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5697. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5698. have_openssl=yes; LIBS="-lssl $LIBS"
  5699. fi
  5700. if test "x$have_openssl" = "xyes"; then
  5701. have_openssl=no
  5702. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5703. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5704. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5705. echo $ECHO_N "(cached) $ECHO_C" >&6
  5706. else
  5707. ac_check_lib_save_LIBS=$LIBS
  5708. LIBS="-lcrypto $LIBS"
  5709. cat >conftest.$ac_ext <<_ACEOF
  5710. /* confdefs.h. */
  5711. _ACEOF
  5712. cat confdefs.h >>conftest.$ac_ext
  5713. cat >>conftest.$ac_ext <<_ACEOF
  5714. /* end confdefs.h. */
  5715. int
  5716. main ()
  5717. {
  5718. return main ();
  5719. ;
  5720. return 0;
  5721. }
  5722. _ACEOF
  5723. rm -f conftest.$ac_objext conftest$ac_exeext
  5724. if { (ac_try="$ac_link"
  5725. case "(($ac_try" in
  5726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5727. *) ac_try_echo=$ac_try;;
  5728. esac
  5729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5730. (eval "$ac_link") 2>conftest.er1
  5731. ac_status=$?
  5732. grep -v '^ *+' conftest.er1 >conftest.err
  5733. rm -f conftest.er1
  5734. cat conftest.err >&5
  5735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5736. (exit $ac_status); } && {
  5737. test -z "$ac_cxx_werror_flag" ||
  5738. test ! -s conftest.err
  5739. } && test -s conftest$ac_exeext &&
  5740. $as_test_x conftest$ac_exeext; then
  5741. ac_cv_lib_crypto_main=yes
  5742. else
  5743. echo "$as_me: failed program was:" >&5
  5744. sed 's/^/| /' conftest.$ac_ext >&5
  5745. ac_cv_lib_crypto_main=no
  5746. fi
  5747. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5748. conftest$ac_exeext conftest.$ac_ext
  5749. LIBS=$ac_check_lib_save_LIBS
  5750. fi
  5751. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  5752. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  5753. if test $ac_cv_lib_crypto_main = yes; then
  5754. have_openssl=yes; LIBS="-lcrypto $LIBS"
  5755. fi
  5756. if test "x$have_openssl" = "xyes"; then
  5757. cat >>confdefs.h <<\_ACEOF
  5758. #define HAVE_LIBSSL 1
  5759. _ACEOF
  5760. for ac_func in EVP_DigestInit_ex
  5761. do
  5762. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5763. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5764. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5765. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5766. echo $ECHO_N "(cached) $ECHO_C" >&6
  5767. else
  5768. cat >conftest.$ac_ext <<_ACEOF
  5769. /* confdefs.h. */
  5770. _ACEOF
  5771. cat confdefs.h >>conftest.$ac_ext
  5772. cat >>conftest.$ac_ext <<_ACEOF
  5773. /* end confdefs.h. */
  5774. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5775. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5776. #define $ac_func innocuous_$ac_func
  5777. /* System header to define __stub macros and hopefully few prototypes,
  5778. which can conflict with char $ac_func (); below.
  5779. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5780. <limits.h> exists even on freestanding compilers. */
  5781. #ifdef __STDC__
  5782. # include <limits.h>
  5783. #else
  5784. # include <assert.h>
  5785. #endif
  5786. #undef $ac_func
  5787. /* Override any GCC internal prototype to avoid an error.
  5788. Use char because int might match the return type of a GCC
  5789. builtin and then its argument prototype would still apply. */
  5790. #ifdef __cplusplus
  5791. extern "C"
  5792. #endif
  5793. char $ac_func ();
  5794. /* The GNU C library defines this for functions which it implements
  5795. to always fail with ENOSYS. Some functions are actually named
  5796. something starting with __ and the normal name is an alias. */
  5797. #if defined __stub_$ac_func || defined __stub___$ac_func
  5798. choke me
  5799. #endif
  5800. int
  5801. main ()
  5802. {
  5803. return $ac_func ();
  5804. ;
  5805. return 0;
  5806. }
  5807. _ACEOF
  5808. rm -f conftest.$ac_objext conftest$ac_exeext
  5809. if { (ac_try="$ac_link"
  5810. case "(($ac_try" in
  5811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5812. *) ac_try_echo=$ac_try;;
  5813. esac
  5814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5815. (eval "$ac_link") 2>conftest.er1
  5816. ac_status=$?
  5817. grep -v '^ *+' conftest.er1 >conftest.err
  5818. rm -f conftest.er1
  5819. cat conftest.err >&5
  5820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5821. (exit $ac_status); } && {
  5822. test -z "$ac_cxx_werror_flag" ||
  5823. test ! -s conftest.err
  5824. } && test -s conftest$ac_exeext &&
  5825. $as_test_x conftest$ac_exeext; then
  5826. eval "$as_ac_var=yes"
  5827. else
  5828. echo "$as_me: failed program was:" >&5
  5829. sed 's/^/| /' conftest.$ac_ext >&5
  5830. eval "$as_ac_var=no"
  5831. fi
  5832. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5833. conftest$ac_exeext conftest.$ac_ext
  5834. fi
  5835. ac_res=`eval echo '${'$as_ac_var'}'`
  5836. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5837. echo "${ECHO_T}$ac_res" >&6; }
  5838. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5839. cat >>confdefs.h <<_ACEOF
  5840. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5841. _ACEOF
  5842. have_digestinit_ex=yes
  5843. fi
  5844. done
  5845. if test "x$have_digestinit_ex" = "x"; then
  5846. cat >>confdefs.h <<\_ACEOF
  5847. #define HAVE_OLD_LIBSSL 1
  5848. _ACEOF
  5849. fi
  5850. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  5851. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  5852. for ac_func in EVP_sha256
  5853. do
  5854. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5855. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5856. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5857. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5858. echo $ECHO_N "(cached) $ECHO_C" >&6
  5859. else
  5860. cat >conftest.$ac_ext <<_ACEOF
  5861. /* confdefs.h. */
  5862. _ACEOF
  5863. cat confdefs.h >>conftest.$ac_ext
  5864. cat >>conftest.$ac_ext <<_ACEOF
  5865. /* end confdefs.h. */
  5866. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5867. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5868. #define $ac_func innocuous_$ac_func
  5869. /* System header to define __stub macros and hopefully few prototypes,
  5870. which can conflict with char $ac_func (); below.
  5871. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5872. <limits.h> exists even on freestanding compilers. */
  5873. #ifdef __STDC__
  5874. # include <limits.h>
  5875. #else
  5876. # include <assert.h>
  5877. #endif
  5878. #undef $ac_func
  5879. /* Override any GCC internal prototype to avoid an error.
  5880. Use char because int might match the return type of a GCC
  5881. builtin and then its argument prototype would still apply. */
  5882. #ifdef __cplusplus
  5883. extern "C"
  5884. #endif
  5885. char $ac_func ();
  5886. /* The GNU C library defines this for functions which it implements
  5887. to always fail with ENOSYS. Some functions are actually named
  5888. something starting with __ and the normal name is an alias. */
  5889. #if defined __stub_$ac_func || defined __stub___$ac_func
  5890. choke me
  5891. #endif
  5892. int
  5893. main ()
  5894. {
  5895. return $ac_func ();
  5896. ;
  5897. return 0;
  5898. }
  5899. _ACEOF
  5900. rm -f conftest.$ac_objext conftest$ac_exeext
  5901. if { (ac_try="$ac_link"
  5902. case "(($ac_try" in
  5903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5904. *) ac_try_echo=$ac_try;;
  5905. esac
  5906. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5907. (eval "$ac_link") 2>conftest.er1
  5908. ac_status=$?
  5909. grep -v '^ *+' conftest.er1 >conftest.err
  5910. rm -f conftest.er1
  5911. cat conftest.err >&5
  5912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5913. (exit $ac_status); } && {
  5914. test -z "$ac_cxx_werror_flag" ||
  5915. test ! -s conftest.err
  5916. } && test -s conftest$ac_exeext &&
  5917. $as_test_x conftest$ac_exeext; then
  5918. eval "$as_ac_var=yes"
  5919. else
  5920. echo "$as_me: failed program was:" >&5
  5921. sed 's/^/| /' conftest.$ac_ext >&5
  5922. eval "$as_ac_var=no"
  5923. fi
  5924. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5925. conftest$ac_exeext conftest.$ac_ext
  5926. fi
  5927. ac_res=`eval echo '${'$as_ac_var'}'`
  5928. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5929. echo "${ECHO_T}$ac_res" >&6; }
  5930. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5931. cat >>confdefs.h <<_ACEOF
  5932. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5933. _ACEOF
  5934. fi
  5935. done
  5936. fi
  5937. fi
  5938. LIBS=$LIBS_save
  5939. CPPFLAGS=$CPPFLAGS_save
  5940. fi
  5941. if test "x$with_libcares" = "xyes"; then
  5942. # Check whether --with-libcares-prefix was given.
  5943. if test "${with_libcares_prefix+set}" = set; then
  5944. withval=$with_libcares_prefix; libcares_prefix=$withval
  5945. else
  5946. libcares_prefix=""
  5947. fi
  5948. if test "x$libcares_prefix" = "x"; then
  5949. libcares_prefix="/usr"
  5950. fi
  5951. libcares_prefix_lib=$libcares_prefix/lib
  5952. libcares_prefix_include=$libcares_prefix/include
  5953. LIBS_save=$LIBS
  5954. CPPFLAGS_save=$CPPFLAGS
  5955. LIBS="-L$libcares_prefix_lib $LIBS"
  5956. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  5957. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  5958. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  5959. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  5960. echo $ECHO_N "(cached) $ECHO_C" >&6
  5961. else
  5962. ac_check_lib_save_LIBS=$LIBS
  5963. LIBS="-lcares $LIBS"
  5964. cat >conftest.$ac_ext <<_ACEOF
  5965. /* confdefs.h. */
  5966. _ACEOF
  5967. cat confdefs.h >>conftest.$ac_ext
  5968. cat >>conftest.$ac_ext <<_ACEOF
  5969. /* end confdefs.h. */
  5970. /* Override any GCC internal prototype to avoid an error.
  5971. Use char because int might match the return type of a GCC
  5972. builtin and then its argument prototype would still apply. */
  5973. #ifdef __cplusplus
  5974. extern "C"
  5975. #endif
  5976. char ares_init ();
  5977. int
  5978. main ()
  5979. {
  5980. return ares_init ();
  5981. ;
  5982. return 0;
  5983. }
  5984. _ACEOF
  5985. rm -f conftest.$ac_objext conftest$ac_exeext
  5986. if { (ac_try="$ac_link"
  5987. case "(($ac_try" in
  5988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5989. *) ac_try_echo=$ac_try;;
  5990. esac
  5991. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5992. (eval "$ac_link") 2>conftest.er1
  5993. ac_status=$?
  5994. grep -v '^ *+' conftest.er1 >conftest.err
  5995. rm -f conftest.er1
  5996. cat conftest.err >&5
  5997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5998. (exit $ac_status); } && {
  5999. test -z "$ac_cxx_werror_flag" ||
  6000. test ! -s conftest.err
  6001. } && test -s conftest$ac_exeext &&
  6002. $as_test_x conftest$ac_exeext; then
  6003. ac_cv_lib_cares_ares_init=yes
  6004. else
  6005. echo "$as_me: failed program was:" >&5
  6006. sed 's/^/| /' conftest.$ac_ext >&5
  6007. ac_cv_lib_cares_ares_init=no
  6008. fi
  6009. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6010. conftest$ac_exeext conftest.$ac_ext
  6011. LIBS=$ac_check_lib_save_LIBS
  6012. fi
  6013. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6014. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  6015. if test $ac_cv_lib_cares_ares_init = yes; then
  6016. have_libcares=yes
  6017. fi
  6018. if test "x$have_libcares" = "xyes"; then
  6019. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6020. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  6021. cat >conftest.$ac_ext <<_ACEOF
  6022. /* confdefs.h. */
  6023. _ACEOF
  6024. cat confdefs.h >>conftest.$ac_ext
  6025. cat >>conftest.$ac_ext <<_ACEOF
  6026. /* end confdefs.h. */
  6027. #include <ares.h>
  6028. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6029. int
  6030. main ()
  6031. {
  6032. ares_channel channel;
  6033. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6034. ;
  6035. return 0;
  6036. }
  6037. _ACEOF
  6038. rm -f conftest.$ac_objext
  6039. if { (ac_try="$ac_compile"
  6040. case "(($ac_try" in
  6041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6042. *) ac_try_echo=$ac_try;;
  6043. esac
  6044. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6045. (eval "$ac_compile") 2>conftest.er1
  6046. ac_status=$?
  6047. grep -v '^ *+' conftest.er1 >conftest.err
  6048. rm -f conftest.er1
  6049. cat conftest.err >&5
  6050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6051. (exit $ac_status); } && {
  6052. test -z "$ac_cxx_werror_flag" ||
  6053. test ! -s conftest.err
  6054. } && test -s conftest.$ac_objext; then
  6055. have_libcares1_5=yes
  6056. else
  6057. echo "$as_me: failed program was:" >&5
  6058. sed 's/^/| /' conftest.$ac_ext >&5
  6059. have_libcares1_5=no
  6060. fi
  6061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6062. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6063. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6064. if test "x$have_libcares1_5" = "xyes"; then
  6065. cat >>confdefs.h <<\_ACEOF
  6066. #define HAVE_LIBCARES1_5 1
  6067. _ACEOF
  6068. fi
  6069. cat >>confdefs.h <<\_ACEOF
  6070. #define HAVE_LIBCARES 1
  6071. _ACEOF
  6072. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6073. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6074. fi
  6075. LIBS=$LIBS_save
  6076. CPPFLAGS=$CPPFLAGS_save
  6077. fi
  6078. if test "x$have_libcares" = "x"; then
  6079. if test "x$with_libares" = "xyes"; then
  6080. # Check whether --with-libares-prefix was given.
  6081. if test "${with_libares_prefix+set}" = set; then
  6082. withval=$with_libares_prefix; libares_prefix=$withval
  6083. else
  6084. libares_prefix=""
  6085. fi
  6086. if test "x$libares_prefix" = "x"; then
  6087. libares_prefix="/usr"
  6088. fi
  6089. libares_prefix_lib=$libares_prefix/lib
  6090. libares_prefix_include=$libares_prefix/include
  6091. LIBS_save=$LIBS
  6092. CPPFLAGS_save=$CPPFLAGS
  6093. LIBS="-L$libares_prefix_lib $LIBS"
  6094. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  6095. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  6096. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  6097. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  6098. echo $ECHO_N "(cached) $ECHO_C" >&6
  6099. else
  6100. ac_check_lib_save_LIBS=$LIBS
  6101. LIBS="-lares $LIBS"
  6102. cat >conftest.$ac_ext <<_ACEOF
  6103. /* confdefs.h. */
  6104. _ACEOF
  6105. cat confdefs.h >>conftest.$ac_ext
  6106. cat >>conftest.$ac_ext <<_ACEOF
  6107. /* end confdefs.h. */
  6108. /* Override any GCC internal prototype to avoid an error.
  6109. Use char because int might match the return type of a GCC
  6110. builtin and then its argument prototype would still apply. */
  6111. #ifdef __cplusplus
  6112. extern "C"
  6113. #endif
  6114. char ares_init ();
  6115. int
  6116. main ()
  6117. {
  6118. return ares_init ();
  6119. ;
  6120. return 0;
  6121. }
  6122. _ACEOF
  6123. rm -f conftest.$ac_objext conftest$ac_exeext
  6124. if { (ac_try="$ac_link"
  6125. case "(($ac_try" in
  6126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6127. *) ac_try_echo=$ac_try;;
  6128. esac
  6129. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6130. (eval "$ac_link") 2>conftest.er1
  6131. ac_status=$?
  6132. grep -v '^ *+' conftest.er1 >conftest.err
  6133. rm -f conftest.er1
  6134. cat conftest.err >&5
  6135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6136. (exit $ac_status); } && {
  6137. test -z "$ac_cxx_werror_flag" ||
  6138. test ! -s conftest.err
  6139. } && test -s conftest$ac_exeext &&
  6140. $as_test_x conftest$ac_exeext; then
  6141. ac_cv_lib_ares_ares_init=yes
  6142. else
  6143. echo "$as_me: failed program was:" >&5
  6144. sed 's/^/| /' conftest.$ac_ext >&5
  6145. ac_cv_lib_ares_ares_init=no
  6146. fi
  6147. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6148. conftest$ac_exeext conftest.$ac_ext
  6149. LIBS=$ac_check_lib_save_LIBS
  6150. fi
  6151. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  6152. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  6153. if test $ac_cv_lib_ares_ares_init = yes; then
  6154. have_libares=yes
  6155. fi
  6156. if test "x$have_libares" = "xyes"; then
  6157. cat >>confdefs.h <<\_ACEOF
  6158. #define HAVE_LIBARES 1
  6159. _ACEOF
  6160. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  6161. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  6162. fi
  6163. LIBS=$LIBS_save
  6164. CPPFLAGS=$CPPFLAGS_save
  6165. fi
  6166. fi
  6167. # Define variables based on the result of the checks for libraries.
  6168. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6169. cat >>confdefs.h <<\_ACEOF
  6170. #define ENABLE_SSL 1
  6171. _ACEOF
  6172. fi
  6173. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6174. cat >>confdefs.h <<\_ACEOF
  6175. #define ENABLE_MESSAGE_DIGEST 1
  6176. _ACEOF
  6177. if true; then
  6178. ENABLE_MESSAGE_DIGEST_TRUE=
  6179. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6180. else
  6181. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6182. ENABLE_MESSAGE_DIGEST_FALSE=
  6183. fi
  6184. enable_message_digest=yes
  6185. else
  6186. if false; then
  6187. ENABLE_MESSAGE_DIGEST_TRUE=
  6188. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6189. else
  6190. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6191. ENABLE_MESSAGE_DIGEST_FALSE=
  6192. fi
  6193. fi
  6194. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  6195. cat >>confdefs.h <<\_ACEOF
  6196. #define ENABLE_BITTORRENT 1
  6197. _ACEOF
  6198. if true; then
  6199. ENABLE_BITTORRENT_TRUE=
  6200. ENABLE_BITTORRENT_FALSE='#'
  6201. else
  6202. ENABLE_BITTORRENT_TRUE='#'
  6203. ENABLE_BITTORRENT_FALSE=
  6204. fi
  6205. else
  6206. enable_bittorrent=no
  6207. if false; then
  6208. ENABLE_BITTORRENT_TRUE=
  6209. ENABLE_BITTORRENT_FALSE='#'
  6210. else
  6211. ENABLE_BITTORRENT_TRUE='#'
  6212. ENABLE_BITTORRENT_FALSE=
  6213. fi
  6214. fi
  6215. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") && test "x$enable_metalink" = "xyes"; then
  6216. cat >>confdefs.h <<\_ACEOF
  6217. #define ENABLE_METALINK 1
  6218. _ACEOF
  6219. if true; then
  6220. ENABLE_METALINK_TRUE=
  6221. ENABLE_METALINK_FALSE='#'
  6222. else
  6223. ENABLE_METALINK_TRUE='#'
  6224. ENABLE_METALINK_FALSE=
  6225. fi
  6226. else
  6227. enable_metalink=no
  6228. if false; then
  6229. ENABLE_METALINK_TRUE=
  6230. ENABLE_METALINK_FALSE='#'
  6231. else
  6232. ENABLE_METALINK_TRUE='#'
  6233. ENABLE_METALINK_FALSE=
  6234. fi
  6235. fi
  6236. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6237. ENABLE_LIBXML2_TRUE=
  6238. ENABLE_LIBXML2_FALSE='#'
  6239. else
  6240. ENABLE_LIBXML2_TRUE='#'
  6241. ENABLE_LIBXML2_FALSE=
  6242. fi
  6243. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6244. ENABLE_LIBEXPAT_TRUE=
  6245. ENABLE_LIBEXPAT_FALSE='#'
  6246. else
  6247. ENABLE_LIBEXPAT_TRUE='#'
  6248. ENABLE_LIBEXPAT_FALSE=
  6249. fi
  6250. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6251. cat >>confdefs.h <<\_ACEOF
  6252. #define ENABLE_ASYNC_DNS 1
  6253. _ACEOF
  6254. if true; then
  6255. ENABLE_ASYNC_DNS_TRUE=
  6256. ENABLE_ASYNC_DNS_FALSE='#'
  6257. else
  6258. ENABLE_ASYNC_DNS_TRUE='#'
  6259. ENABLE_ASYNC_DNS_FALSE=
  6260. fi
  6261. else
  6262. if false; then
  6263. ENABLE_ASYNC_DNS_TRUE=
  6264. ENABLE_ASYNC_DNS_FALSE='#'
  6265. else
  6266. ENABLE_ASYNC_DNS_TRUE='#'
  6267. ENABLE_ASYNC_DNS_FALSE=
  6268. fi
  6269. fi
  6270. # Checks for header files.
  6271. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6272. # for constant arguments. Useless!
  6273. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6274. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6275. if test "${ac_cv_working_alloca_h+set}" = set; then
  6276. echo $ECHO_N "(cached) $ECHO_C" >&6
  6277. else
  6278. cat >conftest.$ac_ext <<_ACEOF
  6279. /* confdefs.h. */
  6280. _ACEOF
  6281. cat confdefs.h >>conftest.$ac_ext
  6282. cat >>conftest.$ac_ext <<_ACEOF
  6283. /* end confdefs.h. */
  6284. #include <alloca.h>
  6285. int
  6286. main ()
  6287. {
  6288. char *p = (char *) alloca (2 * sizeof (int));
  6289. if (p) return 0;
  6290. ;
  6291. return 0;
  6292. }
  6293. _ACEOF
  6294. rm -f conftest.$ac_objext conftest$ac_exeext
  6295. if { (ac_try="$ac_link"
  6296. case "(($ac_try" in
  6297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6298. *) ac_try_echo=$ac_try;;
  6299. esac
  6300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6301. (eval "$ac_link") 2>conftest.er1
  6302. ac_status=$?
  6303. grep -v '^ *+' conftest.er1 >conftest.err
  6304. rm -f conftest.er1
  6305. cat conftest.err >&5
  6306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6307. (exit $ac_status); } && {
  6308. test -z "$ac_cxx_werror_flag" ||
  6309. test ! -s conftest.err
  6310. } && test -s conftest$ac_exeext &&
  6311. $as_test_x conftest$ac_exeext; then
  6312. ac_cv_working_alloca_h=yes
  6313. else
  6314. echo "$as_me: failed program was:" >&5
  6315. sed 's/^/| /' conftest.$ac_ext >&5
  6316. ac_cv_working_alloca_h=no
  6317. fi
  6318. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6319. conftest$ac_exeext conftest.$ac_ext
  6320. fi
  6321. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6322. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6323. if test $ac_cv_working_alloca_h = yes; then
  6324. cat >>confdefs.h <<\_ACEOF
  6325. #define HAVE_ALLOCA_H 1
  6326. _ACEOF
  6327. fi
  6328. { echo "$as_me:$LINENO: checking for alloca" >&5
  6329. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6330. if test "${ac_cv_func_alloca_works+set}" = set; then
  6331. echo $ECHO_N "(cached) $ECHO_C" >&6
  6332. else
  6333. cat >conftest.$ac_ext <<_ACEOF
  6334. /* confdefs.h. */
  6335. _ACEOF
  6336. cat confdefs.h >>conftest.$ac_ext
  6337. cat >>conftest.$ac_ext <<_ACEOF
  6338. /* end confdefs.h. */
  6339. #ifdef __GNUC__
  6340. # define alloca __builtin_alloca
  6341. #else
  6342. # ifdef _MSC_VER
  6343. # include <malloc.h>
  6344. # define alloca _alloca
  6345. # else
  6346. # ifdef HAVE_ALLOCA_H
  6347. # include <alloca.h>
  6348. # else
  6349. # ifdef _AIX
  6350. #pragma alloca
  6351. # else
  6352. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6353. char *alloca ();
  6354. # endif
  6355. # endif
  6356. # endif
  6357. # endif
  6358. #endif
  6359. int
  6360. main ()
  6361. {
  6362. char *p = (char *) alloca (1);
  6363. if (p) return 0;
  6364. ;
  6365. return 0;
  6366. }
  6367. _ACEOF
  6368. rm -f conftest.$ac_objext conftest$ac_exeext
  6369. if { (ac_try="$ac_link"
  6370. case "(($ac_try" in
  6371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6372. *) ac_try_echo=$ac_try;;
  6373. esac
  6374. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6375. (eval "$ac_link") 2>conftest.er1
  6376. ac_status=$?
  6377. grep -v '^ *+' conftest.er1 >conftest.err
  6378. rm -f conftest.er1
  6379. cat conftest.err >&5
  6380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6381. (exit $ac_status); } && {
  6382. test -z "$ac_cxx_werror_flag" ||
  6383. test ! -s conftest.err
  6384. } && test -s conftest$ac_exeext &&
  6385. $as_test_x conftest$ac_exeext; then
  6386. ac_cv_func_alloca_works=yes
  6387. else
  6388. echo "$as_me: failed program was:" >&5
  6389. sed 's/^/| /' conftest.$ac_ext >&5
  6390. ac_cv_func_alloca_works=no
  6391. fi
  6392. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6393. conftest$ac_exeext conftest.$ac_ext
  6394. fi
  6395. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6396. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6397. if test $ac_cv_func_alloca_works = yes; then
  6398. cat >>confdefs.h <<\_ACEOF
  6399. #define HAVE_ALLOCA 1
  6400. _ACEOF
  6401. else
  6402. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6403. # that cause trouble. Some versions do not even contain alloca or
  6404. # contain a buggy version. If you still want to use their alloca,
  6405. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6406. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6407. cat >>confdefs.h <<\_ACEOF
  6408. #define C_ALLOCA 1
  6409. _ACEOF
  6410. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6411. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6412. if test "${ac_cv_os_cray+set}" = set; then
  6413. echo $ECHO_N "(cached) $ECHO_C" >&6
  6414. else
  6415. cat >conftest.$ac_ext <<_ACEOF
  6416. /* confdefs.h. */
  6417. _ACEOF
  6418. cat confdefs.h >>conftest.$ac_ext
  6419. cat >>conftest.$ac_ext <<_ACEOF
  6420. /* end confdefs.h. */
  6421. #if defined CRAY && ! defined CRAY2
  6422. webecray
  6423. #else
  6424. wenotbecray
  6425. #endif
  6426. _ACEOF
  6427. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6428. $EGREP "webecray" >/dev/null 2>&1; then
  6429. ac_cv_os_cray=yes
  6430. else
  6431. ac_cv_os_cray=no
  6432. fi
  6433. rm -f conftest*
  6434. fi
  6435. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6436. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6437. if test $ac_cv_os_cray = yes; then
  6438. for ac_func in _getb67 GETB67 getb67; do
  6439. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6440. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6441. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6442. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6443. echo $ECHO_N "(cached) $ECHO_C" >&6
  6444. else
  6445. cat >conftest.$ac_ext <<_ACEOF
  6446. /* confdefs.h. */
  6447. _ACEOF
  6448. cat confdefs.h >>conftest.$ac_ext
  6449. cat >>conftest.$ac_ext <<_ACEOF
  6450. /* end confdefs.h. */
  6451. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6452. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6453. #define $ac_func innocuous_$ac_func
  6454. /* System header to define __stub macros and hopefully few prototypes,
  6455. which can conflict with char $ac_func (); below.
  6456. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6457. <limits.h> exists even on freestanding compilers. */
  6458. #ifdef __STDC__
  6459. # include <limits.h>
  6460. #else
  6461. # include <assert.h>
  6462. #endif
  6463. #undef $ac_func
  6464. /* Override any GCC internal prototype to avoid an error.
  6465. Use char because int might match the return type of a GCC
  6466. builtin and then its argument prototype would still apply. */
  6467. #ifdef __cplusplus
  6468. extern "C"
  6469. #endif
  6470. char $ac_func ();
  6471. /* The GNU C library defines this for functions which it implements
  6472. to always fail with ENOSYS. Some functions are actually named
  6473. something starting with __ and the normal name is an alias. */
  6474. #if defined __stub_$ac_func || defined __stub___$ac_func
  6475. choke me
  6476. #endif
  6477. int
  6478. main ()
  6479. {
  6480. return $ac_func ();
  6481. ;
  6482. return 0;
  6483. }
  6484. _ACEOF
  6485. rm -f conftest.$ac_objext conftest$ac_exeext
  6486. if { (ac_try="$ac_link"
  6487. case "(($ac_try" in
  6488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6489. *) ac_try_echo=$ac_try;;
  6490. esac
  6491. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6492. (eval "$ac_link") 2>conftest.er1
  6493. ac_status=$?
  6494. grep -v '^ *+' conftest.er1 >conftest.err
  6495. rm -f conftest.er1
  6496. cat conftest.err >&5
  6497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6498. (exit $ac_status); } && {
  6499. test -z "$ac_cxx_werror_flag" ||
  6500. test ! -s conftest.err
  6501. } && test -s conftest$ac_exeext &&
  6502. $as_test_x conftest$ac_exeext; then
  6503. eval "$as_ac_var=yes"
  6504. else
  6505. echo "$as_me: failed program was:" >&5
  6506. sed 's/^/| /' conftest.$ac_ext >&5
  6507. eval "$as_ac_var=no"
  6508. fi
  6509. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6510. conftest$ac_exeext conftest.$ac_ext
  6511. fi
  6512. ac_res=`eval echo '${'$as_ac_var'}'`
  6513. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6514. echo "${ECHO_T}$ac_res" >&6; }
  6515. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6516. cat >>confdefs.h <<_ACEOF
  6517. #define CRAY_STACKSEG_END $ac_func
  6518. _ACEOF
  6519. break
  6520. fi
  6521. done
  6522. fi
  6523. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6524. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6525. if test "${ac_cv_c_stack_direction+set}" = set; then
  6526. echo $ECHO_N "(cached) $ECHO_C" >&6
  6527. else
  6528. if test "$cross_compiling" = yes; then
  6529. ac_cv_c_stack_direction=0
  6530. else
  6531. cat >conftest.$ac_ext <<_ACEOF
  6532. /* confdefs.h. */
  6533. _ACEOF
  6534. cat confdefs.h >>conftest.$ac_ext
  6535. cat >>conftest.$ac_ext <<_ACEOF
  6536. /* end confdefs.h. */
  6537. $ac_includes_default
  6538. int
  6539. find_stack_direction ()
  6540. {
  6541. static char *addr = 0;
  6542. auto char dummy;
  6543. if (addr == 0)
  6544. {
  6545. addr = &dummy;
  6546. return find_stack_direction ();
  6547. }
  6548. else
  6549. return (&dummy > addr) ? 1 : -1;
  6550. }
  6551. int
  6552. main ()
  6553. {
  6554. return find_stack_direction () < 0;
  6555. }
  6556. _ACEOF
  6557. rm -f conftest$ac_exeext
  6558. if { (ac_try="$ac_link"
  6559. case "(($ac_try" in
  6560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6561. *) ac_try_echo=$ac_try;;
  6562. esac
  6563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6564. (eval "$ac_link") 2>&5
  6565. ac_status=$?
  6566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6567. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6568. { (case "(($ac_try" in
  6569. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6570. *) ac_try_echo=$ac_try;;
  6571. esac
  6572. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6573. (eval "$ac_try") 2>&5
  6574. ac_status=$?
  6575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6576. (exit $ac_status); }; }; then
  6577. ac_cv_c_stack_direction=1
  6578. else
  6579. echo "$as_me: program exited with status $ac_status" >&5
  6580. echo "$as_me: failed program was:" >&5
  6581. sed 's/^/| /' conftest.$ac_ext >&5
  6582. ( exit $ac_status )
  6583. ac_cv_c_stack_direction=-1
  6584. fi
  6585. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6586. fi
  6587. fi
  6588. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6589. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6590. cat >>confdefs.h <<_ACEOF
  6591. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6592. _ACEOF
  6593. fi
  6594. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  6595. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  6596. if test "${ac_cv_header_stdc+set}" = set; then
  6597. echo $ECHO_N "(cached) $ECHO_C" >&6
  6598. else
  6599. cat >conftest.$ac_ext <<_ACEOF
  6600. /* confdefs.h. */
  6601. _ACEOF
  6602. cat confdefs.h >>conftest.$ac_ext
  6603. cat >>conftest.$ac_ext <<_ACEOF
  6604. /* end confdefs.h. */
  6605. #include <stdlib.h>
  6606. #include <stdarg.h>
  6607. #include <string.h>
  6608. #include <float.h>
  6609. int
  6610. main ()
  6611. {
  6612. ;
  6613. return 0;
  6614. }
  6615. _ACEOF
  6616. rm -f conftest.$ac_objext
  6617. if { (ac_try="$ac_compile"
  6618. case "(($ac_try" in
  6619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6620. *) ac_try_echo=$ac_try;;
  6621. esac
  6622. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6623. (eval "$ac_compile") 2>conftest.er1
  6624. ac_status=$?
  6625. grep -v '^ *+' conftest.er1 >conftest.err
  6626. rm -f conftest.er1
  6627. cat conftest.err >&5
  6628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6629. (exit $ac_status); } && {
  6630. test -z "$ac_cxx_werror_flag" ||
  6631. test ! -s conftest.err
  6632. } && test -s conftest.$ac_objext; then
  6633. ac_cv_header_stdc=yes
  6634. else
  6635. echo "$as_me: failed program was:" >&5
  6636. sed 's/^/| /' conftest.$ac_ext >&5
  6637. ac_cv_header_stdc=no
  6638. fi
  6639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6640. if test $ac_cv_header_stdc = yes; then
  6641. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6642. cat >conftest.$ac_ext <<_ACEOF
  6643. /* confdefs.h. */
  6644. _ACEOF
  6645. cat confdefs.h >>conftest.$ac_ext
  6646. cat >>conftest.$ac_ext <<_ACEOF
  6647. /* end confdefs.h. */
  6648. #include <string.h>
  6649. _ACEOF
  6650. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6651. $EGREP "memchr" >/dev/null 2>&1; then
  6652. :
  6653. else
  6654. ac_cv_header_stdc=no
  6655. fi
  6656. rm -f conftest*
  6657. fi
  6658. if test $ac_cv_header_stdc = yes; then
  6659. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6660. cat >conftest.$ac_ext <<_ACEOF
  6661. /* confdefs.h. */
  6662. _ACEOF
  6663. cat confdefs.h >>conftest.$ac_ext
  6664. cat >>conftest.$ac_ext <<_ACEOF
  6665. /* end confdefs.h. */
  6666. #include <stdlib.h>
  6667. _ACEOF
  6668. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6669. $EGREP "free" >/dev/null 2>&1; then
  6670. :
  6671. else
  6672. ac_cv_header_stdc=no
  6673. fi
  6674. rm -f conftest*
  6675. fi
  6676. if test $ac_cv_header_stdc = yes; then
  6677. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6678. if test "$cross_compiling" = yes; then
  6679. :
  6680. else
  6681. cat >conftest.$ac_ext <<_ACEOF
  6682. /* confdefs.h. */
  6683. _ACEOF
  6684. cat confdefs.h >>conftest.$ac_ext
  6685. cat >>conftest.$ac_ext <<_ACEOF
  6686. /* end confdefs.h. */
  6687. #include <ctype.h>
  6688. #include <stdlib.h>
  6689. #if ((' ' & 0x0FF) == 0x020)
  6690. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6691. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6692. #else
  6693. # define ISLOWER(c) \
  6694. (('a' <= (c) && (c) <= 'i') \
  6695. || ('j' <= (c) && (c) <= 'r') \
  6696. || ('s' <= (c) && (c) <= 'z'))
  6697. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6698. #endif
  6699. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6700. int
  6701. main ()
  6702. {
  6703. int i;
  6704. for (i = 0; i < 256; i++)
  6705. if (XOR (islower (i), ISLOWER (i))
  6706. || toupper (i) != TOUPPER (i))
  6707. return 2;
  6708. return 0;
  6709. }
  6710. _ACEOF
  6711. rm -f 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>&5
  6719. ac_status=$?
  6720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6721. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6722. { (case "(($ac_try" in
  6723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6724. *) ac_try_echo=$ac_try;;
  6725. esac
  6726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6727. (eval "$ac_try") 2>&5
  6728. ac_status=$?
  6729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6730. (exit $ac_status); }; }; then
  6731. :
  6732. else
  6733. echo "$as_me: program exited with status $ac_status" >&5
  6734. echo "$as_me: failed program was:" >&5
  6735. sed 's/^/| /' conftest.$ac_ext >&5
  6736. ( exit $ac_status )
  6737. ac_cv_header_stdc=no
  6738. fi
  6739. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6740. fi
  6741. fi
  6742. fi
  6743. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  6744. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  6745. if test $ac_cv_header_stdc = yes; then
  6746. cat >>confdefs.h <<\_ACEOF
  6747. #define STDC_HEADERS 1
  6748. _ACEOF
  6749. fi
  6750. for ac_header in winsock2.h ws2tcpip.h argz.h arpa/inet.h fcntl.h float.h inttypes.h io.h langinfo.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h termios.h unistd.h wchar.h
  6751. do
  6752. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6753. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6754. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6755. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6756. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6757. echo $ECHO_N "(cached) $ECHO_C" >&6
  6758. fi
  6759. ac_res=`eval echo '${'$as_ac_Header'}'`
  6760. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6761. echo "${ECHO_T}$ac_res" >&6; }
  6762. else
  6763. # Is the header compilable?
  6764. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6765. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6766. cat >conftest.$ac_ext <<_ACEOF
  6767. /* confdefs.h. */
  6768. _ACEOF
  6769. cat confdefs.h >>conftest.$ac_ext
  6770. cat >>conftest.$ac_ext <<_ACEOF
  6771. /* end confdefs.h. */
  6772. $ac_includes_default
  6773. #include <$ac_header>
  6774. _ACEOF
  6775. rm -f conftest.$ac_objext
  6776. if { (ac_try="$ac_compile"
  6777. case "(($ac_try" in
  6778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6779. *) ac_try_echo=$ac_try;;
  6780. esac
  6781. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6782. (eval "$ac_compile") 2>conftest.er1
  6783. ac_status=$?
  6784. grep -v '^ *+' conftest.er1 >conftest.err
  6785. rm -f conftest.er1
  6786. cat conftest.err >&5
  6787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6788. (exit $ac_status); } && {
  6789. test -z "$ac_cxx_werror_flag" ||
  6790. test ! -s conftest.err
  6791. } && test -s conftest.$ac_objext; then
  6792. ac_header_compiler=yes
  6793. else
  6794. echo "$as_me: failed program was:" >&5
  6795. sed 's/^/| /' conftest.$ac_ext >&5
  6796. ac_header_compiler=no
  6797. fi
  6798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6799. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6800. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6801. # Is the header present?
  6802. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6803. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6804. cat >conftest.$ac_ext <<_ACEOF
  6805. /* confdefs.h. */
  6806. _ACEOF
  6807. cat confdefs.h >>conftest.$ac_ext
  6808. cat >>conftest.$ac_ext <<_ACEOF
  6809. /* end confdefs.h. */
  6810. #include <$ac_header>
  6811. _ACEOF
  6812. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6813. case "(($ac_try" in
  6814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6815. *) ac_try_echo=$ac_try;;
  6816. esac
  6817. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6818. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6819. ac_status=$?
  6820. grep -v '^ *+' conftest.er1 >conftest.err
  6821. rm -f conftest.er1
  6822. cat conftest.err >&5
  6823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6824. (exit $ac_status); } >/dev/null && {
  6825. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6826. test ! -s conftest.err
  6827. }; then
  6828. ac_header_preproc=yes
  6829. else
  6830. echo "$as_me: failed program was:" >&5
  6831. sed 's/^/| /' conftest.$ac_ext >&5
  6832. ac_header_preproc=no
  6833. fi
  6834. rm -f conftest.err conftest.$ac_ext
  6835. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6836. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6837. # So? What about this header?
  6838. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6839. yes:no: )
  6840. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6841. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6842. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6843. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6844. ac_header_preproc=yes
  6845. ;;
  6846. no:yes:* )
  6847. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6848. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6849. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6850. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6851. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6852. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6853. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6854. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6855. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6856. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6857. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6858. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6859. ( cat <<\_ASBOX
  6860. ## ----------------------------------------------- ##
  6861. ## Report this to t-tujikawa@users.sourceforge.net ##
  6862. ## ----------------------------------------------- ##
  6863. _ASBOX
  6864. ) | sed "s/^/$as_me: WARNING: /" >&2
  6865. ;;
  6866. esac
  6867. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6868. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6869. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6870. echo $ECHO_N "(cached) $ECHO_C" >&6
  6871. else
  6872. eval "$as_ac_Header=\$ac_header_preproc"
  6873. fi
  6874. ac_res=`eval echo '${'$as_ac_Header'}'`
  6875. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6876. echo "${ECHO_T}$ac_res" >&6; }
  6877. fi
  6878. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6879. cat >>confdefs.h <<_ACEOF
  6880. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6881. _ACEOF
  6882. fi
  6883. done
  6884. # Checks for typedefs, structures, and compiler characteristics.
  6885. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6886. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  6887. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6888. echo $ECHO_N "(cached) $ECHO_C" >&6
  6889. else
  6890. cat >conftest.$ac_ext <<_ACEOF
  6891. /* confdefs.h. */
  6892. _ACEOF
  6893. cat confdefs.h >>conftest.$ac_ext
  6894. cat >>conftest.$ac_ext <<_ACEOF
  6895. /* end confdefs.h. */
  6896. #include <stdbool.h>
  6897. #ifndef bool
  6898. "error: bool is not defined"
  6899. #endif
  6900. #ifndef false
  6901. "error: false is not defined"
  6902. #endif
  6903. #if false
  6904. "error: false is not 0"
  6905. #endif
  6906. #ifndef true
  6907. "error: true is not defined"
  6908. #endif
  6909. #if true != 1
  6910. "error: true is not 1"
  6911. #endif
  6912. #ifndef __bool_true_false_are_defined
  6913. "error: __bool_true_false_are_defined is not defined"
  6914. #endif
  6915. struct s { _Bool s: 1; _Bool t; } s;
  6916. char a[true == 1 ? 1 : -1];
  6917. char b[false == 0 ? 1 : -1];
  6918. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6919. char d[(bool) 0.5 == true ? 1 : -1];
  6920. bool e = &s;
  6921. char f[(_Bool) 0.0 == false ? 1 : -1];
  6922. char g[true];
  6923. char h[sizeof (_Bool)];
  6924. char i[sizeof s.t];
  6925. enum { j = false, k = true, l = false * true, m = true * 256 };
  6926. _Bool n[m];
  6927. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6928. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6929. # if defined __xlc__ || defined __GNUC__
  6930. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6931. reported by James Lemley on 2005-10-05; see
  6932. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6933. This test is not quite right, since xlc is allowed to
  6934. reject this program, as the initializer for xlcbug is
  6935. not one of the forms that C requires support for.
  6936. However, doing the test right would require a runtime
  6937. test, and that would make cross-compilation harder.
  6938. Let us hope that IBM fixes the xlc bug, and also adds
  6939. support for this kind of constant expression. In the
  6940. meantime, this test will reject xlc, which is OK, since
  6941. our stdbool.h substitute should suffice. We also test
  6942. this with GCC, where it should work, to detect more
  6943. quickly whether someone messes up the test in the
  6944. future. */
  6945. char digs[] = "0123456789";
  6946. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6947. # endif
  6948. /* Catch a bug in an HP-UX C compiler. See
  6949. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6950. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6951. */
  6952. _Bool q = true;
  6953. _Bool *pq = &q;
  6954. int
  6955. main ()
  6956. {
  6957. *pq |= q;
  6958. *pq |= ! q;
  6959. /* Refer to every declared value, to avoid compiler optimizations. */
  6960. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6961. + !m + !n + !o + !p + !q + !pq);
  6962. ;
  6963. return 0;
  6964. }
  6965. _ACEOF
  6966. rm -f conftest.$ac_objext
  6967. if { (ac_try="$ac_compile"
  6968. case "(($ac_try" in
  6969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6970. *) ac_try_echo=$ac_try;;
  6971. esac
  6972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6973. (eval "$ac_compile") 2>conftest.er1
  6974. ac_status=$?
  6975. grep -v '^ *+' conftest.er1 >conftest.err
  6976. rm -f conftest.er1
  6977. cat conftest.err >&5
  6978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6979. (exit $ac_status); } && {
  6980. test -z "$ac_cxx_werror_flag" ||
  6981. test ! -s conftest.err
  6982. } && test -s conftest.$ac_objext; then
  6983. ac_cv_header_stdbool_h=yes
  6984. else
  6985. echo "$as_me: failed program was:" >&5
  6986. sed 's/^/| /' conftest.$ac_ext >&5
  6987. ac_cv_header_stdbool_h=no
  6988. fi
  6989. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6990. fi
  6991. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6992. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6993. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6994. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6995. if test "${ac_cv_type__Bool+set}" = set; then
  6996. echo $ECHO_N "(cached) $ECHO_C" >&6
  6997. else
  6998. cat >conftest.$ac_ext <<_ACEOF
  6999. /* confdefs.h. */
  7000. _ACEOF
  7001. cat confdefs.h >>conftest.$ac_ext
  7002. cat >>conftest.$ac_ext <<_ACEOF
  7003. /* end confdefs.h. */
  7004. $ac_includes_default
  7005. typedef _Bool ac__type_new_;
  7006. int
  7007. main ()
  7008. {
  7009. if ((ac__type_new_ *) 0)
  7010. return 0;
  7011. if (sizeof (ac__type_new_))
  7012. return 0;
  7013. ;
  7014. return 0;
  7015. }
  7016. _ACEOF
  7017. rm -f conftest.$ac_objext
  7018. if { (ac_try="$ac_compile"
  7019. case "(($ac_try" in
  7020. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7021. *) ac_try_echo=$ac_try;;
  7022. esac
  7023. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7024. (eval "$ac_compile") 2>conftest.er1
  7025. ac_status=$?
  7026. grep -v '^ *+' conftest.er1 >conftest.err
  7027. rm -f conftest.er1
  7028. cat conftest.err >&5
  7029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7030. (exit $ac_status); } && {
  7031. test -z "$ac_cxx_werror_flag" ||
  7032. test ! -s conftest.err
  7033. } && test -s conftest.$ac_objext; then
  7034. ac_cv_type__Bool=yes
  7035. else
  7036. echo "$as_me: failed program was:" >&5
  7037. sed 's/^/| /' conftest.$ac_ext >&5
  7038. ac_cv_type__Bool=no
  7039. fi
  7040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7041. fi
  7042. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7043. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  7044. if test $ac_cv_type__Bool = yes; then
  7045. cat >>confdefs.h <<_ACEOF
  7046. #define HAVE__BOOL 1
  7047. _ACEOF
  7048. fi
  7049. if test $ac_cv_header_stdbool_h = yes; then
  7050. cat >>confdefs.h <<\_ACEOF
  7051. #define HAVE_STDBOOL_H 1
  7052. _ACEOF
  7053. fi
  7054. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7055. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  7056. if test "${ac_cv_c_const+set}" = set; then
  7057. echo $ECHO_N "(cached) $ECHO_C" >&6
  7058. else
  7059. cat >conftest.$ac_ext <<_ACEOF
  7060. /* confdefs.h. */
  7061. _ACEOF
  7062. cat confdefs.h >>conftest.$ac_ext
  7063. cat >>conftest.$ac_ext <<_ACEOF
  7064. /* end confdefs.h. */
  7065. int
  7066. main ()
  7067. {
  7068. /* FIXME: Include the comments suggested by Paul. */
  7069. #ifndef __cplusplus
  7070. /* Ultrix mips cc rejects this. */
  7071. typedef int charset[2];
  7072. const charset cs;
  7073. /* SunOS 4.1.1 cc rejects this. */
  7074. char const *const *pcpcc;
  7075. char **ppc;
  7076. /* NEC SVR4.0.2 mips cc rejects this. */
  7077. struct point {int x, y;};
  7078. static struct point const zero = {0,0};
  7079. /* AIX XL C 1.02.0.0 rejects this.
  7080. It does not let you subtract one const X* pointer from another in
  7081. an arm of an if-expression whose if-part is not a constant
  7082. expression */
  7083. const char *g = "string";
  7084. pcpcc = &g + (g ? g-g : 0);
  7085. /* HPUX 7.0 cc rejects these. */
  7086. ++pcpcc;
  7087. ppc = (char**) pcpcc;
  7088. pcpcc = (char const *const *) ppc;
  7089. { /* SCO 3.2v4 cc rejects this. */
  7090. char *t;
  7091. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7092. *t++ = 0;
  7093. if (s) return 0;
  7094. }
  7095. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7096. int x[] = {25, 17};
  7097. const int *foo = &x[0];
  7098. ++foo;
  7099. }
  7100. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7101. typedef const int *iptr;
  7102. iptr p = 0;
  7103. ++p;
  7104. }
  7105. { /* AIX XL C 1.02.0.0 rejects this saying
  7106. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7107. struct s { int j; const int *ap[3]; };
  7108. struct s *b; b->j = 5;
  7109. }
  7110. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7111. const int foo = 10;
  7112. if (!foo) return 0;
  7113. }
  7114. return !cs[0] && !zero.x;
  7115. #endif
  7116. ;
  7117. return 0;
  7118. }
  7119. _ACEOF
  7120. rm -f conftest.$ac_objext
  7121. if { (ac_try="$ac_compile"
  7122. case "(($ac_try" in
  7123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7124. *) ac_try_echo=$ac_try;;
  7125. esac
  7126. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7127. (eval "$ac_compile") 2>conftest.er1
  7128. ac_status=$?
  7129. grep -v '^ *+' conftest.er1 >conftest.err
  7130. rm -f conftest.er1
  7131. cat conftest.err >&5
  7132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7133. (exit $ac_status); } && {
  7134. test -z "$ac_cxx_werror_flag" ||
  7135. test ! -s conftest.err
  7136. } && test -s conftest.$ac_objext; then
  7137. ac_cv_c_const=yes
  7138. else
  7139. echo "$as_me: failed program was:" >&5
  7140. sed 's/^/| /' conftest.$ac_ext >&5
  7141. ac_cv_c_const=no
  7142. fi
  7143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7144. fi
  7145. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7146. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  7147. if test $ac_cv_c_const = no; then
  7148. cat >>confdefs.h <<\_ACEOF
  7149. #define const
  7150. _ACEOF
  7151. fi
  7152. { echo "$as_me:$LINENO: checking for inline" >&5
  7153. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  7154. if test "${ac_cv_c_inline+set}" = set; then
  7155. echo $ECHO_N "(cached) $ECHO_C" >&6
  7156. else
  7157. ac_cv_c_inline=no
  7158. for ac_kw in inline __inline__ __inline; do
  7159. cat >conftest.$ac_ext <<_ACEOF
  7160. /* confdefs.h. */
  7161. _ACEOF
  7162. cat confdefs.h >>conftest.$ac_ext
  7163. cat >>conftest.$ac_ext <<_ACEOF
  7164. /* end confdefs.h. */
  7165. #ifndef __cplusplus
  7166. typedef int foo_t;
  7167. static $ac_kw foo_t static_foo () {return 0; }
  7168. $ac_kw foo_t foo () {return 0; }
  7169. #endif
  7170. _ACEOF
  7171. rm -f conftest.$ac_objext
  7172. if { (ac_try="$ac_compile"
  7173. case "(($ac_try" in
  7174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7175. *) ac_try_echo=$ac_try;;
  7176. esac
  7177. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7178. (eval "$ac_compile") 2>conftest.er1
  7179. ac_status=$?
  7180. grep -v '^ *+' conftest.er1 >conftest.err
  7181. rm -f conftest.er1
  7182. cat conftest.err >&5
  7183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7184. (exit $ac_status); } && {
  7185. test -z "$ac_cxx_werror_flag" ||
  7186. test ! -s conftest.err
  7187. } && test -s conftest.$ac_objext; then
  7188. ac_cv_c_inline=$ac_kw
  7189. else
  7190. echo "$as_me: failed program was:" >&5
  7191. sed 's/^/| /' conftest.$ac_ext >&5
  7192. fi
  7193. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7194. test "$ac_cv_c_inline" != no && break
  7195. done
  7196. fi
  7197. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7198. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  7199. case $ac_cv_c_inline in
  7200. inline | yes) ;;
  7201. *)
  7202. case $ac_cv_c_inline in
  7203. no) ac_val=;;
  7204. *) ac_val=$ac_cv_c_inline;;
  7205. esac
  7206. cat >>confdefs.h <<_ACEOF
  7207. #ifndef __cplusplus
  7208. #define inline $ac_val
  7209. #endif
  7210. _ACEOF
  7211. ;;
  7212. esac
  7213. { echo "$as_me:$LINENO: checking for int16_t" >&5
  7214. echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
  7215. if test "${ac_cv_c_int16_t+set}" = set; then
  7216. echo $ECHO_N "(cached) $ECHO_C" >&6
  7217. else
  7218. ac_cv_c_int16_t=no
  7219. for ac_type in 'int16_t' 'int' 'long int' \
  7220. 'long long int' 'short int' 'signed char'; do
  7221. cat >conftest.$ac_ext <<_ACEOF
  7222. /* confdefs.h. */
  7223. _ACEOF
  7224. cat confdefs.h >>conftest.$ac_ext
  7225. cat >>conftest.$ac_ext <<_ACEOF
  7226. /* end confdefs.h. */
  7227. $ac_includes_default
  7228. int
  7229. main ()
  7230. {
  7231. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  7232. test_array [0] = 0
  7233. ;
  7234. return 0;
  7235. }
  7236. _ACEOF
  7237. rm -f conftest.$ac_objext
  7238. if { (ac_try="$ac_compile"
  7239. case "(($ac_try" in
  7240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7241. *) ac_try_echo=$ac_try;;
  7242. esac
  7243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7244. (eval "$ac_compile") 2>conftest.er1
  7245. ac_status=$?
  7246. grep -v '^ *+' conftest.er1 >conftest.err
  7247. rm -f conftest.er1
  7248. cat conftest.err >&5
  7249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7250. (exit $ac_status); } && {
  7251. test -z "$ac_cxx_werror_flag" ||
  7252. test ! -s conftest.err
  7253. } && test -s conftest.$ac_objext; then
  7254. cat >conftest.$ac_ext <<_ACEOF
  7255. /* confdefs.h. */
  7256. _ACEOF
  7257. cat confdefs.h >>conftest.$ac_ext
  7258. cat >>conftest.$ac_ext <<_ACEOF
  7259. /* end confdefs.h. */
  7260. $ac_includes_default
  7261. int
  7262. main ()
  7263. {
  7264. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  7265. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  7266. test_array [0] = 0
  7267. ;
  7268. return 0;
  7269. }
  7270. _ACEOF
  7271. rm -f conftest.$ac_objext
  7272. if { (ac_try="$ac_compile"
  7273. case "(($ac_try" in
  7274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7275. *) ac_try_echo=$ac_try;;
  7276. esac
  7277. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7278. (eval "$ac_compile") 2>conftest.er1
  7279. ac_status=$?
  7280. grep -v '^ *+' conftest.er1 >conftest.err
  7281. rm -f conftest.er1
  7282. cat conftest.err >&5
  7283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7284. (exit $ac_status); } && {
  7285. test -z "$ac_cxx_werror_flag" ||
  7286. test ! -s conftest.err
  7287. } && test -s conftest.$ac_objext; then
  7288. :
  7289. else
  7290. echo "$as_me: failed program was:" >&5
  7291. sed 's/^/| /' conftest.$ac_ext >&5
  7292. case $ac_type in
  7293. int16_t) ac_cv_c_int16_t=yes ;;
  7294. *) ac_cv_c_int16_t=$ac_type ;;
  7295. esac
  7296. fi
  7297. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7298. else
  7299. echo "$as_me: failed program was:" >&5
  7300. sed 's/^/| /' conftest.$ac_ext >&5
  7301. fi
  7302. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7303. test "$ac_cv_c_int16_t" != no && break
  7304. done
  7305. fi
  7306. { echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  7307. echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
  7308. case $ac_cv_c_int16_t in #(
  7309. no|yes) ;; #(
  7310. *)
  7311. cat >>confdefs.h <<_ACEOF
  7312. #define int16_t $ac_cv_c_int16_t
  7313. _ACEOF
  7314. ;;
  7315. esac
  7316. { echo "$as_me:$LINENO: checking for int32_t" >&5
  7317. echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
  7318. if test "${ac_cv_c_int32_t+set}" = set; then
  7319. echo $ECHO_N "(cached) $ECHO_C" >&6
  7320. else
  7321. ac_cv_c_int32_t=no
  7322. for ac_type in 'int32_t' 'int' 'long int' \
  7323. 'long long int' 'short int' 'signed char'; do
  7324. cat >conftest.$ac_ext <<_ACEOF
  7325. /* confdefs.h. */
  7326. _ACEOF
  7327. cat confdefs.h >>conftest.$ac_ext
  7328. cat >>conftest.$ac_ext <<_ACEOF
  7329. /* end confdefs.h. */
  7330. $ac_includes_default
  7331. int
  7332. main ()
  7333. {
  7334. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  7335. test_array [0] = 0
  7336. ;
  7337. return 0;
  7338. }
  7339. _ACEOF
  7340. rm -f conftest.$ac_objext
  7341. if { (ac_try="$ac_compile"
  7342. case "(($ac_try" in
  7343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7344. *) ac_try_echo=$ac_try;;
  7345. esac
  7346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7347. (eval "$ac_compile") 2>conftest.er1
  7348. ac_status=$?
  7349. grep -v '^ *+' conftest.er1 >conftest.err
  7350. rm -f conftest.er1
  7351. cat conftest.err >&5
  7352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7353. (exit $ac_status); } && {
  7354. test -z "$ac_cxx_werror_flag" ||
  7355. test ! -s conftest.err
  7356. } && test -s conftest.$ac_objext; then
  7357. cat >conftest.$ac_ext <<_ACEOF
  7358. /* confdefs.h. */
  7359. _ACEOF
  7360. cat confdefs.h >>conftest.$ac_ext
  7361. cat >>conftest.$ac_ext <<_ACEOF
  7362. /* end confdefs.h. */
  7363. $ac_includes_default
  7364. int
  7365. main ()
  7366. {
  7367. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  7368. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  7369. test_array [0] = 0
  7370. ;
  7371. return 0;
  7372. }
  7373. _ACEOF
  7374. rm -f conftest.$ac_objext
  7375. if { (ac_try="$ac_compile"
  7376. case "(($ac_try" in
  7377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7378. *) ac_try_echo=$ac_try;;
  7379. esac
  7380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7381. (eval "$ac_compile") 2>conftest.er1
  7382. ac_status=$?
  7383. grep -v '^ *+' conftest.er1 >conftest.err
  7384. rm -f conftest.er1
  7385. cat conftest.err >&5
  7386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7387. (exit $ac_status); } && {
  7388. test -z "$ac_cxx_werror_flag" ||
  7389. test ! -s conftest.err
  7390. } && test -s conftest.$ac_objext; then
  7391. :
  7392. else
  7393. echo "$as_me: failed program was:" >&5
  7394. sed 's/^/| /' conftest.$ac_ext >&5
  7395. case $ac_type in
  7396. int32_t) ac_cv_c_int32_t=yes ;;
  7397. *) ac_cv_c_int32_t=$ac_type ;;
  7398. esac
  7399. fi
  7400. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7401. else
  7402. echo "$as_me: failed program was:" >&5
  7403. sed 's/^/| /' conftest.$ac_ext >&5
  7404. fi
  7405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7406. test "$ac_cv_c_int32_t" != no && break
  7407. done
  7408. fi
  7409. { echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  7410. echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
  7411. case $ac_cv_c_int32_t in #(
  7412. no|yes) ;; #(
  7413. *)
  7414. cat >>confdefs.h <<_ACEOF
  7415. #define int32_t $ac_cv_c_int32_t
  7416. _ACEOF
  7417. ;;
  7418. esac
  7419. { echo "$as_me:$LINENO: checking for int64_t" >&5
  7420. echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
  7421. if test "${ac_cv_c_int64_t+set}" = set; then
  7422. echo $ECHO_N "(cached) $ECHO_C" >&6
  7423. else
  7424. ac_cv_c_int64_t=no
  7425. for ac_type in 'int64_t' 'int' 'long int' \
  7426. 'long long int' 'short int' 'signed char'; do
  7427. cat >conftest.$ac_ext <<_ACEOF
  7428. /* confdefs.h. */
  7429. _ACEOF
  7430. cat confdefs.h >>conftest.$ac_ext
  7431. cat >>conftest.$ac_ext <<_ACEOF
  7432. /* end confdefs.h. */
  7433. $ac_includes_default
  7434. int
  7435. main ()
  7436. {
  7437. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  7438. test_array [0] = 0
  7439. ;
  7440. return 0;
  7441. }
  7442. _ACEOF
  7443. rm -f conftest.$ac_objext
  7444. if { (ac_try="$ac_compile"
  7445. case "(($ac_try" in
  7446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7447. *) ac_try_echo=$ac_try;;
  7448. esac
  7449. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7450. (eval "$ac_compile") 2>conftest.er1
  7451. ac_status=$?
  7452. grep -v '^ *+' conftest.er1 >conftest.err
  7453. rm -f conftest.er1
  7454. cat conftest.err >&5
  7455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7456. (exit $ac_status); } && {
  7457. test -z "$ac_cxx_werror_flag" ||
  7458. test ! -s conftest.err
  7459. } && test -s conftest.$ac_objext; then
  7460. cat >conftest.$ac_ext <<_ACEOF
  7461. /* confdefs.h. */
  7462. _ACEOF
  7463. cat confdefs.h >>conftest.$ac_ext
  7464. cat >>conftest.$ac_ext <<_ACEOF
  7465. /* end confdefs.h. */
  7466. $ac_includes_default
  7467. int
  7468. main ()
  7469. {
  7470. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  7471. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  7472. test_array [0] = 0
  7473. ;
  7474. return 0;
  7475. }
  7476. _ACEOF
  7477. rm -f conftest.$ac_objext
  7478. if { (ac_try="$ac_compile"
  7479. case "(($ac_try" in
  7480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7481. *) ac_try_echo=$ac_try;;
  7482. esac
  7483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7484. (eval "$ac_compile") 2>conftest.er1
  7485. ac_status=$?
  7486. grep -v '^ *+' conftest.er1 >conftest.err
  7487. rm -f conftest.er1
  7488. cat conftest.err >&5
  7489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7490. (exit $ac_status); } && {
  7491. test -z "$ac_cxx_werror_flag" ||
  7492. test ! -s conftest.err
  7493. } && test -s conftest.$ac_objext; then
  7494. :
  7495. else
  7496. echo "$as_me: failed program was:" >&5
  7497. sed 's/^/| /' conftest.$ac_ext >&5
  7498. case $ac_type in
  7499. int64_t) ac_cv_c_int64_t=yes ;;
  7500. *) ac_cv_c_int64_t=$ac_type ;;
  7501. esac
  7502. fi
  7503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7504. else
  7505. echo "$as_me: failed program was:" >&5
  7506. sed 's/^/| /' conftest.$ac_ext >&5
  7507. fi
  7508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7509. test "$ac_cv_c_int64_t" != no && break
  7510. done
  7511. fi
  7512. { echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  7513. echo "${ECHO_T}$ac_cv_c_int64_t" >&6; }
  7514. case $ac_cv_c_int64_t in #(
  7515. no|yes) ;; #(
  7516. *)
  7517. cat >>confdefs.h <<_ACEOF
  7518. #define int64_t $ac_cv_c_int64_t
  7519. _ACEOF
  7520. ;;
  7521. esac
  7522. { echo "$as_me:$LINENO: checking for int8_t" >&5
  7523. echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
  7524. if test "${ac_cv_c_int8_t+set}" = set; then
  7525. echo $ECHO_N "(cached) $ECHO_C" >&6
  7526. else
  7527. ac_cv_c_int8_t=no
  7528. for ac_type in 'int8_t' 'int' 'long int' \
  7529. 'long long int' 'short int' 'signed char'; do
  7530. cat >conftest.$ac_ext <<_ACEOF
  7531. /* confdefs.h. */
  7532. _ACEOF
  7533. cat confdefs.h >>conftest.$ac_ext
  7534. cat >>conftest.$ac_ext <<_ACEOF
  7535. /* end confdefs.h. */
  7536. $ac_includes_default
  7537. int
  7538. main ()
  7539. {
  7540. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  7541. test_array [0] = 0
  7542. ;
  7543. return 0;
  7544. }
  7545. _ACEOF
  7546. rm -f conftest.$ac_objext
  7547. if { (ac_try="$ac_compile"
  7548. case "(($ac_try" in
  7549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7550. *) ac_try_echo=$ac_try;;
  7551. esac
  7552. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7553. (eval "$ac_compile") 2>conftest.er1
  7554. ac_status=$?
  7555. grep -v '^ *+' conftest.er1 >conftest.err
  7556. rm -f conftest.er1
  7557. cat conftest.err >&5
  7558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7559. (exit $ac_status); } && {
  7560. test -z "$ac_cxx_werror_flag" ||
  7561. test ! -s conftest.err
  7562. } && test -s conftest.$ac_objext; then
  7563. cat >conftest.$ac_ext <<_ACEOF
  7564. /* confdefs.h. */
  7565. _ACEOF
  7566. cat confdefs.h >>conftest.$ac_ext
  7567. cat >>conftest.$ac_ext <<_ACEOF
  7568. /* end confdefs.h. */
  7569. $ac_includes_default
  7570. int
  7571. main ()
  7572. {
  7573. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  7574. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  7575. test_array [0] = 0
  7576. ;
  7577. return 0;
  7578. }
  7579. _ACEOF
  7580. rm -f conftest.$ac_objext
  7581. if { (ac_try="$ac_compile"
  7582. case "(($ac_try" in
  7583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7584. *) ac_try_echo=$ac_try;;
  7585. esac
  7586. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7587. (eval "$ac_compile") 2>conftest.er1
  7588. ac_status=$?
  7589. grep -v '^ *+' conftest.er1 >conftest.err
  7590. rm -f conftest.er1
  7591. cat conftest.err >&5
  7592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7593. (exit $ac_status); } && {
  7594. test -z "$ac_cxx_werror_flag" ||
  7595. test ! -s conftest.err
  7596. } && test -s conftest.$ac_objext; then
  7597. :
  7598. else
  7599. echo "$as_me: failed program was:" >&5
  7600. sed 's/^/| /' conftest.$ac_ext >&5
  7601. case $ac_type in
  7602. int8_t) ac_cv_c_int8_t=yes ;;
  7603. *) ac_cv_c_int8_t=$ac_type ;;
  7604. esac
  7605. fi
  7606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7607. else
  7608. echo "$as_me: failed program was:" >&5
  7609. sed 's/^/| /' conftest.$ac_ext >&5
  7610. fi
  7611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7612. test "$ac_cv_c_int8_t" != no && break
  7613. done
  7614. fi
  7615. { echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  7616. echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
  7617. case $ac_cv_c_int8_t in #(
  7618. no|yes) ;; #(
  7619. *)
  7620. cat >>confdefs.h <<_ACEOF
  7621. #define int8_t $ac_cv_c_int8_t
  7622. _ACEOF
  7623. ;;
  7624. esac
  7625. { echo "$as_me:$LINENO: checking for mode_t" >&5
  7626. echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
  7627. if test "${ac_cv_type_mode_t+set}" = set; then
  7628. echo $ECHO_N "(cached) $ECHO_C" >&6
  7629. else
  7630. cat >conftest.$ac_ext <<_ACEOF
  7631. /* confdefs.h. */
  7632. _ACEOF
  7633. cat confdefs.h >>conftest.$ac_ext
  7634. cat >>conftest.$ac_ext <<_ACEOF
  7635. /* end confdefs.h. */
  7636. $ac_includes_default
  7637. typedef mode_t ac__type_new_;
  7638. int
  7639. main ()
  7640. {
  7641. if ((ac__type_new_ *) 0)
  7642. return 0;
  7643. if (sizeof (ac__type_new_))
  7644. return 0;
  7645. ;
  7646. return 0;
  7647. }
  7648. _ACEOF
  7649. rm -f conftest.$ac_objext
  7650. if { (ac_try="$ac_compile"
  7651. case "(($ac_try" in
  7652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7653. *) ac_try_echo=$ac_try;;
  7654. esac
  7655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7656. (eval "$ac_compile") 2>conftest.er1
  7657. ac_status=$?
  7658. grep -v '^ *+' conftest.er1 >conftest.err
  7659. rm -f conftest.er1
  7660. cat conftest.err >&5
  7661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7662. (exit $ac_status); } && {
  7663. test -z "$ac_cxx_werror_flag" ||
  7664. test ! -s conftest.err
  7665. } && test -s conftest.$ac_objext; then
  7666. ac_cv_type_mode_t=yes
  7667. else
  7668. echo "$as_me: failed program was:" >&5
  7669. sed 's/^/| /' conftest.$ac_ext >&5
  7670. ac_cv_type_mode_t=no
  7671. fi
  7672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7673. fi
  7674. { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  7675. echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
  7676. if test $ac_cv_type_mode_t = yes; then
  7677. :
  7678. else
  7679. cat >>confdefs.h <<_ACEOF
  7680. #define mode_t int
  7681. _ACEOF
  7682. fi
  7683. { echo "$as_me:$LINENO: checking for off_t" >&5
  7684. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7685. if test "${ac_cv_type_off_t+set}" = set; then
  7686. echo $ECHO_N "(cached) $ECHO_C" >&6
  7687. else
  7688. cat >conftest.$ac_ext <<_ACEOF
  7689. /* confdefs.h. */
  7690. _ACEOF
  7691. cat confdefs.h >>conftest.$ac_ext
  7692. cat >>conftest.$ac_ext <<_ACEOF
  7693. /* end confdefs.h. */
  7694. $ac_includes_default
  7695. typedef off_t ac__type_new_;
  7696. int
  7697. main ()
  7698. {
  7699. if ((ac__type_new_ *) 0)
  7700. return 0;
  7701. if (sizeof (ac__type_new_))
  7702. return 0;
  7703. ;
  7704. return 0;
  7705. }
  7706. _ACEOF
  7707. rm -f conftest.$ac_objext
  7708. if { (ac_try="$ac_compile"
  7709. case "(($ac_try" in
  7710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7711. *) ac_try_echo=$ac_try;;
  7712. esac
  7713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7714. (eval "$ac_compile") 2>conftest.er1
  7715. ac_status=$?
  7716. grep -v '^ *+' conftest.er1 >conftest.err
  7717. rm -f conftest.er1
  7718. cat conftest.err >&5
  7719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7720. (exit $ac_status); } && {
  7721. test -z "$ac_cxx_werror_flag" ||
  7722. test ! -s conftest.err
  7723. } && test -s conftest.$ac_objext; then
  7724. ac_cv_type_off_t=yes
  7725. else
  7726. echo "$as_me: failed program was:" >&5
  7727. sed 's/^/| /' conftest.$ac_ext >&5
  7728. ac_cv_type_off_t=no
  7729. fi
  7730. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7731. fi
  7732. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7733. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7734. if test $ac_cv_type_off_t = yes; then
  7735. :
  7736. else
  7737. cat >>confdefs.h <<_ACEOF
  7738. #define off_t long int
  7739. _ACEOF
  7740. fi
  7741. { echo "$as_me:$LINENO: checking for size_t" >&5
  7742. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  7743. if test "${ac_cv_type_size_t+set}" = set; then
  7744. echo $ECHO_N "(cached) $ECHO_C" >&6
  7745. else
  7746. cat >conftest.$ac_ext <<_ACEOF
  7747. /* confdefs.h. */
  7748. _ACEOF
  7749. cat confdefs.h >>conftest.$ac_ext
  7750. cat >>conftest.$ac_ext <<_ACEOF
  7751. /* end confdefs.h. */
  7752. $ac_includes_default
  7753. typedef size_t ac__type_new_;
  7754. int
  7755. main ()
  7756. {
  7757. if ((ac__type_new_ *) 0)
  7758. return 0;
  7759. if (sizeof (ac__type_new_))
  7760. return 0;
  7761. ;
  7762. return 0;
  7763. }
  7764. _ACEOF
  7765. rm -f conftest.$ac_objext
  7766. if { (ac_try="$ac_compile"
  7767. case "(($ac_try" in
  7768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7769. *) ac_try_echo=$ac_try;;
  7770. esac
  7771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7772. (eval "$ac_compile") 2>conftest.er1
  7773. ac_status=$?
  7774. grep -v '^ *+' conftest.er1 >conftest.err
  7775. rm -f conftest.er1
  7776. cat conftest.err >&5
  7777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7778. (exit $ac_status); } && {
  7779. test -z "$ac_cxx_werror_flag" ||
  7780. test ! -s conftest.err
  7781. } && test -s conftest.$ac_objext; then
  7782. ac_cv_type_size_t=yes
  7783. else
  7784. echo "$as_me: failed program was:" >&5
  7785. sed 's/^/| /' conftest.$ac_ext >&5
  7786. ac_cv_type_size_t=no
  7787. fi
  7788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7789. fi
  7790. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  7791. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  7792. if test $ac_cv_type_size_t = yes; then
  7793. :
  7794. else
  7795. cat >>confdefs.h <<_ACEOF
  7796. #define size_t unsigned int
  7797. _ACEOF
  7798. fi
  7799. { echo "$as_me:$LINENO: checking for ssize_t" >&5
  7800. echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
  7801. if test "${ac_cv_type_ssize_t+set}" = set; then
  7802. echo $ECHO_N "(cached) $ECHO_C" >&6
  7803. else
  7804. cat >conftest.$ac_ext <<_ACEOF
  7805. /* confdefs.h. */
  7806. _ACEOF
  7807. cat confdefs.h >>conftest.$ac_ext
  7808. cat >>conftest.$ac_ext <<_ACEOF
  7809. /* end confdefs.h. */
  7810. $ac_includes_default
  7811. typedef ssize_t ac__type_new_;
  7812. int
  7813. main ()
  7814. {
  7815. if ((ac__type_new_ *) 0)
  7816. return 0;
  7817. if (sizeof (ac__type_new_))
  7818. return 0;
  7819. ;
  7820. return 0;
  7821. }
  7822. _ACEOF
  7823. rm -f conftest.$ac_objext
  7824. if { (ac_try="$ac_compile"
  7825. case "(($ac_try" in
  7826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7827. *) ac_try_echo=$ac_try;;
  7828. esac
  7829. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7830. (eval "$ac_compile") 2>conftest.er1
  7831. ac_status=$?
  7832. grep -v '^ *+' conftest.er1 >conftest.err
  7833. rm -f conftest.er1
  7834. cat conftest.err >&5
  7835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7836. (exit $ac_status); } && {
  7837. test -z "$ac_cxx_werror_flag" ||
  7838. test ! -s conftest.err
  7839. } && test -s conftest.$ac_objext; then
  7840. ac_cv_type_ssize_t=yes
  7841. else
  7842. echo "$as_me: failed program was:" >&5
  7843. sed 's/^/| /' conftest.$ac_ext >&5
  7844. ac_cv_type_ssize_t=no
  7845. fi
  7846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7847. fi
  7848. { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  7849. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
  7850. if test $ac_cv_type_ssize_t = yes; then
  7851. :
  7852. else
  7853. cat >>confdefs.h <<_ACEOF
  7854. #define ssize_t int
  7855. _ACEOF
  7856. fi
  7857. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  7858. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  7859. if test "${ac_cv_header_time+set}" = set; then
  7860. echo $ECHO_N "(cached) $ECHO_C" >&6
  7861. else
  7862. cat >conftest.$ac_ext <<_ACEOF
  7863. /* confdefs.h. */
  7864. _ACEOF
  7865. cat confdefs.h >>conftest.$ac_ext
  7866. cat >>conftest.$ac_ext <<_ACEOF
  7867. /* end confdefs.h. */
  7868. #include <sys/types.h>
  7869. #include <sys/time.h>
  7870. #include <time.h>
  7871. int
  7872. main ()
  7873. {
  7874. if ((struct tm *) 0)
  7875. return 0;
  7876. ;
  7877. return 0;
  7878. }
  7879. _ACEOF
  7880. rm -f conftest.$ac_objext
  7881. if { (ac_try="$ac_compile"
  7882. case "(($ac_try" in
  7883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7884. *) ac_try_echo=$ac_try;;
  7885. esac
  7886. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7887. (eval "$ac_compile") 2>conftest.er1
  7888. ac_status=$?
  7889. grep -v '^ *+' conftest.er1 >conftest.err
  7890. rm -f conftest.er1
  7891. cat conftest.err >&5
  7892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7893. (exit $ac_status); } && {
  7894. test -z "$ac_cxx_werror_flag" ||
  7895. test ! -s conftest.err
  7896. } && test -s conftest.$ac_objext; then
  7897. ac_cv_header_time=yes
  7898. else
  7899. echo "$as_me: failed program was:" >&5
  7900. sed 's/^/| /' conftest.$ac_ext >&5
  7901. ac_cv_header_time=no
  7902. fi
  7903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7904. fi
  7905. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  7906. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  7907. if test $ac_cv_header_time = yes; then
  7908. cat >>confdefs.h <<\_ACEOF
  7909. #define TIME_WITH_SYS_TIME 1
  7910. _ACEOF
  7911. fi
  7912. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7913. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  7914. if test "${ac_cv_struct_tm+set}" = set; then
  7915. echo $ECHO_N "(cached) $ECHO_C" >&6
  7916. else
  7917. cat >conftest.$ac_ext <<_ACEOF
  7918. /* confdefs.h. */
  7919. _ACEOF
  7920. cat confdefs.h >>conftest.$ac_ext
  7921. cat >>conftest.$ac_ext <<_ACEOF
  7922. /* end confdefs.h. */
  7923. #include <sys/types.h>
  7924. #include <time.h>
  7925. int
  7926. main ()
  7927. {
  7928. struct tm tm;
  7929. int *p = &tm.tm_sec;
  7930. return !p;
  7931. ;
  7932. return 0;
  7933. }
  7934. _ACEOF
  7935. rm -f conftest.$ac_objext
  7936. if { (ac_try="$ac_compile"
  7937. case "(($ac_try" in
  7938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7939. *) ac_try_echo=$ac_try;;
  7940. esac
  7941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7942. (eval "$ac_compile") 2>conftest.er1
  7943. ac_status=$?
  7944. grep -v '^ *+' conftest.er1 >conftest.err
  7945. rm -f conftest.er1
  7946. cat conftest.err >&5
  7947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7948. (exit $ac_status); } && {
  7949. test -z "$ac_cxx_werror_flag" ||
  7950. test ! -s conftest.err
  7951. } && test -s conftest.$ac_objext; then
  7952. ac_cv_struct_tm=time.h
  7953. else
  7954. echo "$as_me: failed program was:" >&5
  7955. sed 's/^/| /' conftest.$ac_ext >&5
  7956. ac_cv_struct_tm=sys/time.h
  7957. fi
  7958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7959. fi
  7960. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7961. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  7962. if test $ac_cv_struct_tm = sys/time.h; then
  7963. cat >>confdefs.h <<\_ACEOF
  7964. #define TM_IN_SYS_TIME 1
  7965. _ACEOF
  7966. fi
  7967. { echo "$as_me:$LINENO: checking for uint16_t" >&5
  7968. echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
  7969. if test "${ac_cv_c_uint16_t+set}" = set; then
  7970. echo $ECHO_N "(cached) $ECHO_C" >&6
  7971. else
  7972. ac_cv_c_uint16_t=no
  7973. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  7974. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  7975. cat >conftest.$ac_ext <<_ACEOF
  7976. /* confdefs.h. */
  7977. _ACEOF
  7978. cat confdefs.h >>conftest.$ac_ext
  7979. cat >>conftest.$ac_ext <<_ACEOF
  7980. /* end confdefs.h. */
  7981. $ac_includes_default
  7982. int
  7983. main ()
  7984. {
  7985. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  7986. test_array [0] = 0
  7987. ;
  7988. return 0;
  7989. }
  7990. _ACEOF
  7991. rm -f conftest.$ac_objext
  7992. if { (ac_try="$ac_compile"
  7993. case "(($ac_try" in
  7994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7995. *) ac_try_echo=$ac_try;;
  7996. esac
  7997. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7998. (eval "$ac_compile") 2>conftest.er1
  7999. ac_status=$?
  8000. grep -v '^ *+' conftest.er1 >conftest.err
  8001. rm -f conftest.er1
  8002. cat conftest.err >&5
  8003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8004. (exit $ac_status); } && {
  8005. test -z "$ac_cxx_werror_flag" ||
  8006. test ! -s conftest.err
  8007. } && test -s conftest.$ac_objext; then
  8008. case $ac_type in
  8009. uint16_t) ac_cv_c_uint16_t=yes ;;
  8010. *) ac_cv_c_uint16_t=$ac_type ;;
  8011. esac
  8012. else
  8013. echo "$as_me: failed program was:" >&5
  8014. sed 's/^/| /' conftest.$ac_ext >&5
  8015. fi
  8016. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8017. test "$ac_cv_c_uint16_t" != no && break
  8018. done
  8019. fi
  8020. { echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  8021. echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
  8022. case $ac_cv_c_uint16_t in #(
  8023. no|yes) ;; #(
  8024. *)
  8025. cat >>confdefs.h <<_ACEOF
  8026. #define uint16_t $ac_cv_c_uint16_t
  8027. _ACEOF
  8028. ;;
  8029. esac
  8030. { echo "$as_me:$LINENO: checking for uint32_t" >&5
  8031. echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
  8032. if test "${ac_cv_c_uint32_t+set}" = set; then
  8033. echo $ECHO_N "(cached) $ECHO_C" >&6
  8034. else
  8035. ac_cv_c_uint32_t=no
  8036. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  8037. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8038. cat >conftest.$ac_ext <<_ACEOF
  8039. /* confdefs.h. */
  8040. _ACEOF
  8041. cat confdefs.h >>conftest.$ac_ext
  8042. cat >>conftest.$ac_ext <<_ACEOF
  8043. /* end confdefs.h. */
  8044. $ac_includes_default
  8045. int
  8046. main ()
  8047. {
  8048. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  8049. test_array [0] = 0
  8050. ;
  8051. return 0;
  8052. }
  8053. _ACEOF
  8054. rm -f conftest.$ac_objext
  8055. if { (ac_try="$ac_compile"
  8056. case "(($ac_try" in
  8057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8058. *) ac_try_echo=$ac_try;;
  8059. esac
  8060. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8061. (eval "$ac_compile") 2>conftest.er1
  8062. ac_status=$?
  8063. grep -v '^ *+' conftest.er1 >conftest.err
  8064. rm -f conftest.er1
  8065. cat conftest.err >&5
  8066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8067. (exit $ac_status); } && {
  8068. test -z "$ac_cxx_werror_flag" ||
  8069. test ! -s conftest.err
  8070. } && test -s conftest.$ac_objext; then
  8071. case $ac_type in
  8072. uint32_t) ac_cv_c_uint32_t=yes ;;
  8073. *) ac_cv_c_uint32_t=$ac_type ;;
  8074. esac
  8075. else
  8076. echo "$as_me: failed program was:" >&5
  8077. sed 's/^/| /' conftest.$ac_ext >&5
  8078. fi
  8079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8080. test "$ac_cv_c_uint32_t" != no && break
  8081. done
  8082. fi
  8083. { echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  8084. echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
  8085. case $ac_cv_c_uint32_t in #(
  8086. no|yes) ;; #(
  8087. *)
  8088. cat >>confdefs.h <<\_ACEOF
  8089. #define _UINT32_T 1
  8090. _ACEOF
  8091. cat >>confdefs.h <<_ACEOF
  8092. #define uint32_t $ac_cv_c_uint32_t
  8093. _ACEOF
  8094. ;;
  8095. esac
  8096. { echo "$as_me:$LINENO: checking for uint64_t" >&5
  8097. echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
  8098. if test "${ac_cv_c_uint64_t+set}" = set; then
  8099. echo $ECHO_N "(cached) $ECHO_C" >&6
  8100. else
  8101. ac_cv_c_uint64_t=no
  8102. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  8103. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8104. cat >conftest.$ac_ext <<_ACEOF
  8105. /* confdefs.h. */
  8106. _ACEOF
  8107. cat confdefs.h >>conftest.$ac_ext
  8108. cat >>conftest.$ac_ext <<_ACEOF
  8109. /* end confdefs.h. */
  8110. $ac_includes_default
  8111. int
  8112. main ()
  8113. {
  8114. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  8115. test_array [0] = 0
  8116. ;
  8117. return 0;
  8118. }
  8119. _ACEOF
  8120. rm -f conftest.$ac_objext
  8121. if { (ac_try="$ac_compile"
  8122. case "(($ac_try" in
  8123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8124. *) ac_try_echo=$ac_try;;
  8125. esac
  8126. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8127. (eval "$ac_compile") 2>conftest.er1
  8128. ac_status=$?
  8129. grep -v '^ *+' conftest.er1 >conftest.err
  8130. rm -f conftest.er1
  8131. cat conftest.err >&5
  8132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8133. (exit $ac_status); } && {
  8134. test -z "$ac_cxx_werror_flag" ||
  8135. test ! -s conftest.err
  8136. } && test -s conftest.$ac_objext; then
  8137. case $ac_type in
  8138. uint64_t) ac_cv_c_uint64_t=yes ;;
  8139. *) ac_cv_c_uint64_t=$ac_type ;;
  8140. esac
  8141. else
  8142. echo "$as_me: failed program was:" >&5
  8143. sed 's/^/| /' conftest.$ac_ext >&5
  8144. fi
  8145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8146. test "$ac_cv_c_uint64_t" != no && break
  8147. done
  8148. fi
  8149. { echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  8150. echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
  8151. case $ac_cv_c_uint64_t in #(
  8152. no|yes) ;; #(
  8153. *)
  8154. cat >>confdefs.h <<\_ACEOF
  8155. #define _UINT64_T 1
  8156. _ACEOF
  8157. cat >>confdefs.h <<_ACEOF
  8158. #define uint64_t $ac_cv_c_uint64_t
  8159. _ACEOF
  8160. ;;
  8161. esac
  8162. { echo "$as_me:$LINENO: checking for uint8_t" >&5
  8163. echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
  8164. if test "${ac_cv_c_uint8_t+set}" = set; then
  8165. echo $ECHO_N "(cached) $ECHO_C" >&6
  8166. else
  8167. ac_cv_c_uint8_t=no
  8168. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  8169. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  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. $ac_includes_default
  8177. int
  8178. main ()
  8179. {
  8180. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  8181. test_array [0] = 0
  8182. ;
  8183. return 0;
  8184. }
  8185. _ACEOF
  8186. rm -f conftest.$ac_objext
  8187. if { (ac_try="$ac_compile"
  8188. case "(($ac_try" in
  8189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8190. *) ac_try_echo=$ac_try;;
  8191. esac
  8192. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8193. (eval "$ac_compile") 2>conftest.er1
  8194. ac_status=$?
  8195. grep -v '^ *+' conftest.er1 >conftest.err
  8196. rm -f conftest.er1
  8197. cat conftest.err >&5
  8198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8199. (exit $ac_status); } && {
  8200. test -z "$ac_cxx_werror_flag" ||
  8201. test ! -s conftest.err
  8202. } && test -s conftest.$ac_objext; then
  8203. case $ac_type in
  8204. uint8_t) ac_cv_c_uint8_t=yes ;;
  8205. *) ac_cv_c_uint8_t=$ac_type ;;
  8206. esac
  8207. else
  8208. echo "$as_me: failed program was:" >&5
  8209. sed 's/^/| /' conftest.$ac_ext >&5
  8210. fi
  8211. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8212. test "$ac_cv_c_uint8_t" != no && break
  8213. done
  8214. fi
  8215. { echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  8216. echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
  8217. case $ac_cv_c_uint8_t in #(
  8218. no|yes) ;; #(
  8219. *)
  8220. cat >>confdefs.h <<\_ACEOF
  8221. #define _UINT8_T 1
  8222. _ACEOF
  8223. cat >>confdefs.h <<_ACEOF
  8224. #define uint8_t $ac_cv_c_uint8_t
  8225. _ACEOF
  8226. ;;
  8227. esac
  8228. { echo "$as_me:$LINENO: checking for working volatile" >&5
  8229. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  8230. if test "${ac_cv_c_volatile+set}" = set; then
  8231. echo $ECHO_N "(cached) $ECHO_C" >&6
  8232. else
  8233. cat >conftest.$ac_ext <<_ACEOF
  8234. /* confdefs.h. */
  8235. _ACEOF
  8236. cat confdefs.h >>conftest.$ac_ext
  8237. cat >>conftest.$ac_ext <<_ACEOF
  8238. /* end confdefs.h. */
  8239. int
  8240. main ()
  8241. {
  8242. volatile int x;
  8243. int * volatile y = (int *) 0;
  8244. return !x && !y;
  8245. ;
  8246. return 0;
  8247. }
  8248. _ACEOF
  8249. rm -f conftest.$ac_objext
  8250. if { (ac_try="$ac_compile"
  8251. case "(($ac_try" in
  8252. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8253. *) ac_try_echo=$ac_try;;
  8254. esac
  8255. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8256. (eval "$ac_compile") 2>conftest.er1
  8257. ac_status=$?
  8258. grep -v '^ *+' conftest.er1 >conftest.err
  8259. rm -f conftest.er1
  8260. cat conftest.err >&5
  8261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8262. (exit $ac_status); } && {
  8263. test -z "$ac_cxx_werror_flag" ||
  8264. test ! -s conftest.err
  8265. } && test -s conftest.$ac_objext; then
  8266. ac_cv_c_volatile=yes
  8267. else
  8268. echo "$as_me: failed program was:" >&5
  8269. sed 's/^/| /' conftest.$ac_ext >&5
  8270. ac_cv_c_volatile=no
  8271. fi
  8272. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8273. fi
  8274. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  8275. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  8276. if test $ac_cv_c_volatile = no; then
  8277. cat >>confdefs.h <<\_ACEOF
  8278. #define volatile
  8279. _ACEOF
  8280. fi
  8281. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  8282. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  8283. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  8284. echo $ECHO_N "(cached) $ECHO_C" >&6
  8285. else
  8286. cat >conftest.$ac_ext <<_ACEOF
  8287. /* confdefs.h. */
  8288. _ACEOF
  8289. cat confdefs.h >>conftest.$ac_ext
  8290. cat >>conftest.$ac_ext <<_ACEOF
  8291. /* end confdefs.h. */
  8292. $ac_includes_default
  8293. typedef ptrdiff_t ac__type_new_;
  8294. int
  8295. main ()
  8296. {
  8297. if ((ac__type_new_ *) 0)
  8298. return 0;
  8299. if (sizeof (ac__type_new_))
  8300. return 0;
  8301. ;
  8302. return 0;
  8303. }
  8304. _ACEOF
  8305. rm -f conftest.$ac_objext
  8306. if { (ac_try="$ac_compile"
  8307. case "(($ac_try" in
  8308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8309. *) ac_try_echo=$ac_try;;
  8310. esac
  8311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8312. (eval "$ac_compile") 2>conftest.er1
  8313. ac_status=$?
  8314. grep -v '^ *+' conftest.er1 >conftest.err
  8315. rm -f conftest.er1
  8316. cat conftest.err >&5
  8317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8318. (exit $ac_status); } && {
  8319. test -z "$ac_cxx_werror_flag" ||
  8320. test ! -s conftest.err
  8321. } && test -s conftest.$ac_objext; then
  8322. ac_cv_type_ptrdiff_t=yes
  8323. else
  8324. echo "$as_me: failed program was:" >&5
  8325. sed 's/^/| /' conftest.$ac_ext >&5
  8326. ac_cv_type_ptrdiff_t=no
  8327. fi
  8328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8329. fi
  8330. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  8331. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  8332. if test $ac_cv_type_ptrdiff_t = yes; then
  8333. cat >>confdefs.h <<_ACEOF
  8334. #define HAVE_PTRDIFF_T 1
  8335. _ACEOF
  8336. fi
  8337. # Check whether --enable-largefile was given.
  8338. if test "${enable_largefile+set}" = set; then
  8339. enableval=$enable_largefile;
  8340. fi
  8341. if test "$enable_largefile" != no; then
  8342. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  8343. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  8344. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  8345. echo $ECHO_N "(cached) $ECHO_C" >&6
  8346. else
  8347. ac_cv_sys_largefile_CC=no
  8348. if test "$GCC" != yes; then
  8349. ac_save_CC=$CC
  8350. while :; do
  8351. # IRIX 6.2 and later do not support large files by default,
  8352. # so use the C compiler's -n32 option if that helps.
  8353. cat >conftest.$ac_ext <<_ACEOF
  8354. /* confdefs.h. */
  8355. _ACEOF
  8356. cat confdefs.h >>conftest.$ac_ext
  8357. cat >>conftest.$ac_ext <<_ACEOF
  8358. /* end confdefs.h. */
  8359. #include <sys/types.h>
  8360. /* Check that off_t can represent 2**63 - 1 correctly.
  8361. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8362. since some C++ compilers masquerading as C compilers
  8363. incorrectly reject 9223372036854775807. */
  8364. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8365. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8366. && LARGE_OFF_T % 2147483647 == 1)
  8367. ? 1 : -1];
  8368. int
  8369. main ()
  8370. {
  8371. ;
  8372. return 0;
  8373. }
  8374. _ACEOF
  8375. rm -f conftest.$ac_objext
  8376. if { (ac_try="$ac_compile"
  8377. case "(($ac_try" in
  8378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8379. *) ac_try_echo=$ac_try;;
  8380. esac
  8381. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8382. (eval "$ac_compile") 2>conftest.er1
  8383. ac_status=$?
  8384. grep -v '^ *+' conftest.er1 >conftest.err
  8385. rm -f conftest.er1
  8386. cat conftest.err >&5
  8387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8388. (exit $ac_status); } && {
  8389. test -z "$ac_cxx_werror_flag" ||
  8390. test ! -s conftest.err
  8391. } && test -s conftest.$ac_objext; then
  8392. break
  8393. else
  8394. echo "$as_me: failed program was:" >&5
  8395. sed 's/^/| /' conftest.$ac_ext >&5
  8396. fi
  8397. rm -f core conftest.err conftest.$ac_objext
  8398. CC="$CC -n32"
  8399. rm -f conftest.$ac_objext
  8400. if { (ac_try="$ac_compile"
  8401. case "(($ac_try" in
  8402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8403. *) ac_try_echo=$ac_try;;
  8404. esac
  8405. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8406. (eval "$ac_compile") 2>conftest.er1
  8407. ac_status=$?
  8408. grep -v '^ *+' conftest.er1 >conftest.err
  8409. rm -f conftest.er1
  8410. cat conftest.err >&5
  8411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8412. (exit $ac_status); } && {
  8413. test -z "$ac_cxx_werror_flag" ||
  8414. test ! -s conftest.err
  8415. } && test -s conftest.$ac_objext; then
  8416. ac_cv_sys_largefile_CC=' -n32'; break
  8417. else
  8418. echo "$as_me: failed program was:" >&5
  8419. sed 's/^/| /' conftest.$ac_ext >&5
  8420. fi
  8421. rm -f core conftest.err conftest.$ac_objext
  8422. break
  8423. done
  8424. CC=$ac_save_CC
  8425. rm -f conftest.$ac_ext
  8426. fi
  8427. fi
  8428. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  8429. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  8430. if test "$ac_cv_sys_largefile_CC" != no; then
  8431. CC=$CC$ac_cv_sys_largefile_CC
  8432. fi
  8433. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  8434. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  8435. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  8436. echo $ECHO_N "(cached) $ECHO_C" >&6
  8437. else
  8438. while :; do
  8439. cat >conftest.$ac_ext <<_ACEOF
  8440. /* confdefs.h. */
  8441. _ACEOF
  8442. cat confdefs.h >>conftest.$ac_ext
  8443. cat >>conftest.$ac_ext <<_ACEOF
  8444. /* end confdefs.h. */
  8445. #include <sys/types.h>
  8446. /* Check that off_t can represent 2**63 - 1 correctly.
  8447. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8448. since some C++ compilers masquerading as C compilers
  8449. incorrectly reject 9223372036854775807. */
  8450. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8451. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8452. && LARGE_OFF_T % 2147483647 == 1)
  8453. ? 1 : -1];
  8454. int
  8455. main ()
  8456. {
  8457. ;
  8458. return 0;
  8459. }
  8460. _ACEOF
  8461. rm -f conftest.$ac_objext
  8462. if { (ac_try="$ac_compile"
  8463. case "(($ac_try" in
  8464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8465. *) ac_try_echo=$ac_try;;
  8466. esac
  8467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8468. (eval "$ac_compile") 2>conftest.er1
  8469. ac_status=$?
  8470. grep -v '^ *+' conftest.er1 >conftest.err
  8471. rm -f conftest.er1
  8472. cat conftest.err >&5
  8473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8474. (exit $ac_status); } && {
  8475. test -z "$ac_cxx_werror_flag" ||
  8476. test ! -s conftest.err
  8477. } && test -s conftest.$ac_objext; then
  8478. ac_cv_sys_file_offset_bits=no; break
  8479. else
  8480. echo "$as_me: failed program was:" >&5
  8481. sed 's/^/| /' conftest.$ac_ext >&5
  8482. fi
  8483. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8484. cat >conftest.$ac_ext <<_ACEOF
  8485. /* confdefs.h. */
  8486. _ACEOF
  8487. cat confdefs.h >>conftest.$ac_ext
  8488. cat >>conftest.$ac_ext <<_ACEOF
  8489. /* end confdefs.h. */
  8490. #define _FILE_OFFSET_BITS 64
  8491. #include <sys/types.h>
  8492. /* Check that off_t can represent 2**63 - 1 correctly.
  8493. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8494. since some C++ compilers masquerading as C compilers
  8495. incorrectly reject 9223372036854775807. */
  8496. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8497. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8498. && LARGE_OFF_T % 2147483647 == 1)
  8499. ? 1 : -1];
  8500. int
  8501. main ()
  8502. {
  8503. ;
  8504. return 0;
  8505. }
  8506. _ACEOF
  8507. rm -f conftest.$ac_objext
  8508. if { (ac_try="$ac_compile"
  8509. case "(($ac_try" in
  8510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8511. *) ac_try_echo=$ac_try;;
  8512. esac
  8513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8514. (eval "$ac_compile") 2>conftest.er1
  8515. ac_status=$?
  8516. grep -v '^ *+' conftest.er1 >conftest.err
  8517. rm -f conftest.er1
  8518. cat conftest.err >&5
  8519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8520. (exit $ac_status); } && {
  8521. test -z "$ac_cxx_werror_flag" ||
  8522. test ! -s conftest.err
  8523. } && test -s conftest.$ac_objext; then
  8524. ac_cv_sys_file_offset_bits=64; break
  8525. else
  8526. echo "$as_me: failed program was:" >&5
  8527. sed 's/^/| /' conftest.$ac_ext >&5
  8528. fi
  8529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8530. ac_cv_sys_file_offset_bits=unknown
  8531. break
  8532. done
  8533. fi
  8534. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  8535. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  8536. case $ac_cv_sys_file_offset_bits in #(
  8537. no | unknown) ;;
  8538. *)
  8539. cat >>confdefs.h <<_ACEOF
  8540. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  8541. _ACEOF
  8542. ;;
  8543. esac
  8544. rm -f conftest*
  8545. if test $ac_cv_sys_file_offset_bits = unknown; then
  8546. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  8547. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  8548. if test "${ac_cv_sys_large_files+set}" = set; then
  8549. echo $ECHO_N "(cached) $ECHO_C" >&6
  8550. else
  8551. while :; do
  8552. cat >conftest.$ac_ext <<_ACEOF
  8553. /* confdefs.h. */
  8554. _ACEOF
  8555. cat confdefs.h >>conftest.$ac_ext
  8556. cat >>conftest.$ac_ext <<_ACEOF
  8557. /* end confdefs.h. */
  8558. #include <sys/types.h>
  8559. /* Check that off_t can represent 2**63 - 1 correctly.
  8560. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8561. since some C++ compilers masquerading as C compilers
  8562. incorrectly reject 9223372036854775807. */
  8563. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8564. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8565. && LARGE_OFF_T % 2147483647 == 1)
  8566. ? 1 : -1];
  8567. int
  8568. main ()
  8569. {
  8570. ;
  8571. return 0;
  8572. }
  8573. _ACEOF
  8574. rm -f conftest.$ac_objext
  8575. if { (ac_try="$ac_compile"
  8576. case "(($ac_try" in
  8577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8578. *) ac_try_echo=$ac_try;;
  8579. esac
  8580. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8581. (eval "$ac_compile") 2>conftest.er1
  8582. ac_status=$?
  8583. grep -v '^ *+' conftest.er1 >conftest.err
  8584. rm -f conftest.er1
  8585. cat conftest.err >&5
  8586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8587. (exit $ac_status); } && {
  8588. test -z "$ac_cxx_werror_flag" ||
  8589. test ! -s conftest.err
  8590. } && test -s conftest.$ac_objext; then
  8591. ac_cv_sys_large_files=no; break
  8592. else
  8593. echo "$as_me: failed program was:" >&5
  8594. sed 's/^/| /' conftest.$ac_ext >&5
  8595. fi
  8596. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8597. cat >conftest.$ac_ext <<_ACEOF
  8598. /* confdefs.h. */
  8599. _ACEOF
  8600. cat confdefs.h >>conftest.$ac_ext
  8601. cat >>conftest.$ac_ext <<_ACEOF
  8602. /* end confdefs.h. */
  8603. #define _LARGE_FILES 1
  8604. #include <sys/types.h>
  8605. /* Check that off_t can represent 2**63 - 1 correctly.
  8606. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  8607. since some C++ compilers masquerading as C compilers
  8608. incorrectly reject 9223372036854775807. */
  8609. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  8610. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  8611. && LARGE_OFF_T % 2147483647 == 1)
  8612. ? 1 : -1];
  8613. int
  8614. main ()
  8615. {
  8616. ;
  8617. return 0;
  8618. }
  8619. _ACEOF
  8620. rm -f conftest.$ac_objext
  8621. if { (ac_try="$ac_compile"
  8622. case "(($ac_try" in
  8623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8624. *) ac_try_echo=$ac_try;;
  8625. esac
  8626. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8627. (eval "$ac_compile") 2>conftest.er1
  8628. ac_status=$?
  8629. grep -v '^ *+' conftest.er1 >conftest.err
  8630. rm -f conftest.er1
  8631. cat conftest.err >&5
  8632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8633. (exit $ac_status); } && {
  8634. test -z "$ac_cxx_werror_flag" ||
  8635. test ! -s conftest.err
  8636. } && test -s conftest.$ac_objext; then
  8637. ac_cv_sys_large_files=1; break
  8638. else
  8639. echo "$as_me: failed program was:" >&5
  8640. sed 's/^/| /' conftest.$ac_ext >&5
  8641. fi
  8642. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8643. ac_cv_sys_large_files=unknown
  8644. break
  8645. done
  8646. fi
  8647. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  8648. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  8649. case $ac_cv_sys_large_files in #(
  8650. no | unknown) ;;
  8651. *)
  8652. cat >>confdefs.h <<_ACEOF
  8653. #define _LARGE_FILES $ac_cv_sys_large_files
  8654. _ACEOF
  8655. ;;
  8656. esac
  8657. rm -f conftest*
  8658. fi
  8659. fi
  8660. # Checks for library functions.
  8661. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8662. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  8663. # Check whether --enable-nls was given.
  8664. if test "${enable_nls+set}" = set; then
  8665. enableval=$enable_nls; USE_NLS=$enableval
  8666. else
  8667. USE_NLS=yes
  8668. fi
  8669. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8670. echo "${ECHO_T}$USE_NLS" >&6; }
  8671. GETTEXT_MACRO_VERSION=0.17
  8672. # Prepare PATH_SEPARATOR.
  8673. # The user is always right.
  8674. if test "${PATH_SEPARATOR+set}" != set; then
  8675. echo "#! /bin/sh" >conf$$.sh
  8676. echo "exit 0" >>conf$$.sh
  8677. chmod +x conf$$.sh
  8678. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8679. PATH_SEPARATOR=';'
  8680. else
  8681. PATH_SEPARATOR=:
  8682. fi
  8683. rm -f conf$$.sh
  8684. fi
  8685. # Find out how to test for executable files. Don't use a zero-byte file,
  8686. # as systems may use methods other than mode bits to determine executability.
  8687. cat >conf$$.file <<_ASEOF
  8688. #! /bin/sh
  8689. exit 0
  8690. _ASEOF
  8691. chmod +x conf$$.file
  8692. if test -x conf$$.file >/dev/null 2>&1; then
  8693. ac_executable_p="test -x"
  8694. else
  8695. ac_executable_p="test -f"
  8696. fi
  8697. rm -f conf$$.file
  8698. # Extract the first word of "msgfmt", so it can be a program name with args.
  8699. set dummy msgfmt; ac_word=$2
  8700. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8701. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8702. if test "${ac_cv_path_MSGFMT+set}" = set; then
  8703. echo $ECHO_N "(cached) $ECHO_C" >&6
  8704. else
  8705. case "$MSGFMT" in
  8706. [\\/]* | ?:[\\/]*)
  8707. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  8708. ;;
  8709. *)
  8710. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8711. for ac_dir in $PATH; do
  8712. IFS="$ac_save_IFS"
  8713. test -z "$ac_dir" && ac_dir=.
  8714. for ac_exec_ext in '' $ac_executable_extensions; do
  8715. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8716. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8717. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  8718. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  8719. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  8720. break 2
  8721. fi
  8722. fi
  8723. done
  8724. done
  8725. IFS="$ac_save_IFS"
  8726. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  8727. ;;
  8728. esac
  8729. fi
  8730. MSGFMT="$ac_cv_path_MSGFMT"
  8731. if test "$MSGFMT" != ":"; then
  8732. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  8733. echo "${ECHO_T}$MSGFMT" >&6; }
  8734. else
  8735. { echo "$as_me:$LINENO: result: no" >&5
  8736. echo "${ECHO_T}no" >&6; }
  8737. fi
  8738. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  8739. set dummy gmsgfmt; ac_word=$2
  8740. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8741. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8742. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  8743. echo $ECHO_N "(cached) $ECHO_C" >&6
  8744. else
  8745. case $GMSGFMT in
  8746. [\\/]* | ?:[\\/]*)
  8747. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  8748. ;;
  8749. *)
  8750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8751. for as_dir in $PATH
  8752. do
  8753. IFS=$as_save_IFS
  8754. test -z "$as_dir" && as_dir=.
  8755. for ac_exec_ext in '' $ac_executable_extensions; do
  8756. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8757. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  8758. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8759. break 2
  8760. fi
  8761. done
  8762. done
  8763. IFS=$as_save_IFS
  8764. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  8765. ;;
  8766. esac
  8767. fi
  8768. GMSGFMT=$ac_cv_path_GMSGFMT
  8769. if test -n "$GMSGFMT"; then
  8770. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  8771. echo "${ECHO_T}$GMSGFMT" >&6; }
  8772. else
  8773. { echo "$as_me:$LINENO: result: no" >&5
  8774. echo "${ECHO_T}no" >&6; }
  8775. fi
  8776. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8777. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  8778. *) MSGFMT_015=$MSGFMT ;;
  8779. esac
  8780. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8781. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  8782. *) GMSGFMT_015=$GMSGFMT ;;
  8783. esac
  8784. # Prepare PATH_SEPARATOR.
  8785. # The user is always right.
  8786. if test "${PATH_SEPARATOR+set}" != set; then
  8787. echo "#! /bin/sh" >conf$$.sh
  8788. echo "exit 0" >>conf$$.sh
  8789. chmod +x conf$$.sh
  8790. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8791. PATH_SEPARATOR=';'
  8792. else
  8793. PATH_SEPARATOR=:
  8794. fi
  8795. rm -f conf$$.sh
  8796. fi
  8797. # Find out how to test for executable files. Don't use a zero-byte file,
  8798. # as systems may use methods other than mode bits to determine executability.
  8799. cat >conf$$.file <<_ASEOF
  8800. #! /bin/sh
  8801. exit 0
  8802. _ASEOF
  8803. chmod +x conf$$.file
  8804. if test -x conf$$.file >/dev/null 2>&1; then
  8805. ac_executable_p="test -x"
  8806. else
  8807. ac_executable_p="test -f"
  8808. fi
  8809. rm -f conf$$.file
  8810. # Extract the first word of "xgettext", so it can be a program name with args.
  8811. set dummy xgettext; ac_word=$2
  8812. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8813. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8814. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  8815. echo $ECHO_N "(cached) $ECHO_C" >&6
  8816. else
  8817. case "$XGETTEXT" in
  8818. [\\/]* | ?:[\\/]*)
  8819. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  8820. ;;
  8821. *)
  8822. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8823. for ac_dir in $PATH; do
  8824. IFS="$ac_save_IFS"
  8825. test -z "$ac_dir" && ac_dir=.
  8826. for ac_exec_ext in '' $ac_executable_extensions; do
  8827. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8828. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8829. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  8830. (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
  8831. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  8832. break 2
  8833. fi
  8834. fi
  8835. done
  8836. done
  8837. IFS="$ac_save_IFS"
  8838. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  8839. ;;
  8840. esac
  8841. fi
  8842. XGETTEXT="$ac_cv_path_XGETTEXT"
  8843. if test "$XGETTEXT" != ":"; then
  8844. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  8845. echo "${ECHO_T}$XGETTEXT" >&6; }
  8846. else
  8847. { echo "$as_me:$LINENO: result: no" >&5
  8848. echo "${ECHO_T}no" >&6; }
  8849. fi
  8850. rm -f messages.po
  8851. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  8852. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  8853. *) XGETTEXT_015=$XGETTEXT ;;
  8854. esac
  8855. # Prepare PATH_SEPARATOR.
  8856. # The user is always right.
  8857. if test "${PATH_SEPARATOR+set}" != set; then
  8858. echo "#! /bin/sh" >conf$$.sh
  8859. echo "exit 0" >>conf$$.sh
  8860. chmod +x conf$$.sh
  8861. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8862. PATH_SEPARATOR=';'
  8863. else
  8864. PATH_SEPARATOR=:
  8865. fi
  8866. rm -f conf$$.sh
  8867. fi
  8868. # Find out how to test for executable files. Don't use a zero-byte file,
  8869. # as systems may use methods other than mode bits to determine executability.
  8870. cat >conf$$.file <<_ASEOF
  8871. #! /bin/sh
  8872. exit 0
  8873. _ASEOF
  8874. chmod +x conf$$.file
  8875. if test -x conf$$.file >/dev/null 2>&1; then
  8876. ac_executable_p="test -x"
  8877. else
  8878. ac_executable_p="test -f"
  8879. fi
  8880. rm -f conf$$.file
  8881. # Extract the first word of "msgmerge", so it can be a program name with args.
  8882. set dummy msgmerge; ac_word=$2
  8883. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8884. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8885. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  8886. echo $ECHO_N "(cached) $ECHO_C" >&6
  8887. else
  8888. case "$MSGMERGE" in
  8889. [\\/]* | ?:[\\/]*)
  8890. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  8891. ;;
  8892. *)
  8893. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  8894. for ac_dir in $PATH; do
  8895. IFS="$ac_save_IFS"
  8896. test -z "$ac_dir" && ac_dir=.
  8897. for ac_exec_ext in '' $ac_executable_extensions; do
  8898. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  8899. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  8900. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  8901. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  8902. break 2
  8903. fi
  8904. fi
  8905. done
  8906. done
  8907. IFS="$ac_save_IFS"
  8908. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  8909. ;;
  8910. esac
  8911. fi
  8912. MSGMERGE="$ac_cv_path_MSGMERGE"
  8913. if test "$MSGMERGE" != ":"; then
  8914. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  8915. echo "${ECHO_T}$MSGMERGE" >&6; }
  8916. else
  8917. { echo "$as_me:$LINENO: result: no" >&5
  8918. echo "${ECHO_T}no" >&6; }
  8919. fi
  8920. test -n "$localedir" || localedir='${datadir}/locale'
  8921. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  8922. ac_config_commands="$ac_config_commands po-directories"
  8923. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  8924. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  8925. if test "${ac_cv_gnu_library_2+set}" = set; then
  8926. echo $ECHO_N "(cached) $ECHO_C" >&6
  8927. else
  8928. cat >conftest.$ac_ext <<_ACEOF
  8929. /* confdefs.h. */
  8930. _ACEOF
  8931. cat confdefs.h >>conftest.$ac_ext
  8932. cat >>conftest.$ac_ext <<_ACEOF
  8933. /* end confdefs.h. */
  8934. #include <features.h>
  8935. #ifdef __GNU_LIBRARY__
  8936. #if (__GLIBC__ >= 2)
  8937. Lucky GNU user
  8938. #endif
  8939. #endif
  8940. _ACEOF
  8941. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8942. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  8943. ac_cv_gnu_library_2=yes
  8944. else
  8945. ac_cv_gnu_library_2=no
  8946. fi
  8947. rm -f conftest*
  8948. fi
  8949. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  8950. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  8951. GLIBC2="$ac_cv_gnu_library_2"
  8952. CFLAG_VISIBILITY=
  8953. HAVE_VISIBILITY=0
  8954. if test -n "$GCC"; then
  8955. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  8956. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  8957. if test "${gl_cv_cc_visibility+set}" = set; then
  8958. echo $ECHO_N "(cached) $ECHO_C" >&6
  8959. else
  8960. gl_save_CFLAGS="$CFLAGS"
  8961. CFLAGS="$CFLAGS -fvisibility=hidden"
  8962. cat >conftest.$ac_ext <<_ACEOF
  8963. /* confdefs.h. */
  8964. _ACEOF
  8965. cat confdefs.h >>conftest.$ac_ext
  8966. cat >>conftest.$ac_ext <<_ACEOF
  8967. /* end confdefs.h. */
  8968. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  8969. extern __attribute__((__visibility__("default"))) int exportedvar;
  8970. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  8971. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  8972. int
  8973. main ()
  8974. {
  8975. ;
  8976. return 0;
  8977. }
  8978. _ACEOF
  8979. rm -f conftest.$ac_objext
  8980. if { (ac_try="$ac_compile"
  8981. case "(($ac_try" in
  8982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8983. *) ac_try_echo=$ac_try;;
  8984. esac
  8985. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8986. (eval "$ac_compile") 2>conftest.er1
  8987. ac_status=$?
  8988. grep -v '^ *+' conftest.er1 >conftest.err
  8989. rm -f conftest.er1
  8990. cat conftest.err >&5
  8991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8992. (exit $ac_status); } && {
  8993. test -z "$ac_cxx_werror_flag" ||
  8994. test ! -s conftest.err
  8995. } && test -s conftest.$ac_objext; then
  8996. gl_cv_cc_visibility=yes
  8997. else
  8998. echo "$as_me: failed program was:" >&5
  8999. sed 's/^/| /' conftest.$ac_ext >&5
  9000. gl_cv_cc_visibility=no
  9001. fi
  9002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9003. CFLAGS="$gl_save_CFLAGS"
  9004. fi
  9005. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  9006. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  9007. if test $gl_cv_cc_visibility = yes; then
  9008. CFLAG_VISIBILITY="-fvisibility=hidden"
  9009. HAVE_VISIBILITY=1
  9010. fi
  9011. fi
  9012. cat >>confdefs.h <<_ACEOF
  9013. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  9014. _ACEOF
  9015. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  9016. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  9017. if test "${gl_cv_header_stdint_h+set}" = set; then
  9018. echo $ECHO_N "(cached) $ECHO_C" >&6
  9019. else
  9020. cat >conftest.$ac_ext <<_ACEOF
  9021. /* confdefs.h. */
  9022. _ACEOF
  9023. cat confdefs.h >>conftest.$ac_ext
  9024. cat >>conftest.$ac_ext <<_ACEOF
  9025. /* end confdefs.h. */
  9026. #include <sys/types.h>
  9027. #include <stdint.h>
  9028. int
  9029. main ()
  9030. {
  9031. uintmax_t i = (uintmax_t) -1; return !i;
  9032. ;
  9033. return 0;
  9034. }
  9035. _ACEOF
  9036. rm -f conftest.$ac_objext
  9037. if { (ac_try="$ac_compile"
  9038. case "(($ac_try" in
  9039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9040. *) ac_try_echo=$ac_try;;
  9041. esac
  9042. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9043. (eval "$ac_compile") 2>conftest.er1
  9044. ac_status=$?
  9045. grep -v '^ *+' conftest.er1 >conftest.err
  9046. rm -f conftest.er1
  9047. cat conftest.err >&5
  9048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9049. (exit $ac_status); } && {
  9050. test -z "$ac_cxx_werror_flag" ||
  9051. test ! -s conftest.err
  9052. } && test -s conftest.$ac_objext; then
  9053. gl_cv_header_stdint_h=yes
  9054. else
  9055. echo "$as_me: failed program was:" >&5
  9056. sed 's/^/| /' conftest.$ac_ext >&5
  9057. gl_cv_header_stdint_h=no
  9058. fi
  9059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9060. fi
  9061. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  9062. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  9063. if test $gl_cv_header_stdint_h = yes; then
  9064. cat >>confdefs.h <<_ACEOF
  9065. #define HAVE_STDINT_H_WITH_UINTMAX 1
  9066. _ACEOF
  9067. fi
  9068. for ac_header in stdlib.h unistd.h
  9069. do
  9070. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9071. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9072. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9073. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9074. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9075. echo $ECHO_N "(cached) $ECHO_C" >&6
  9076. fi
  9077. ac_res=`eval echo '${'$as_ac_Header'}'`
  9078. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9079. echo "${ECHO_T}$ac_res" >&6; }
  9080. else
  9081. # Is the header compilable?
  9082. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9083. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9084. cat >conftest.$ac_ext <<_ACEOF
  9085. /* confdefs.h. */
  9086. _ACEOF
  9087. cat confdefs.h >>conftest.$ac_ext
  9088. cat >>conftest.$ac_ext <<_ACEOF
  9089. /* end confdefs.h. */
  9090. $ac_includes_default
  9091. #include <$ac_header>
  9092. _ACEOF
  9093. rm -f conftest.$ac_objext
  9094. if { (ac_try="$ac_compile"
  9095. case "(($ac_try" in
  9096. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9097. *) ac_try_echo=$ac_try;;
  9098. esac
  9099. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9100. (eval "$ac_compile") 2>conftest.er1
  9101. ac_status=$?
  9102. grep -v '^ *+' conftest.er1 >conftest.err
  9103. rm -f conftest.er1
  9104. cat conftest.err >&5
  9105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9106. (exit $ac_status); } && {
  9107. test -z "$ac_cxx_werror_flag" ||
  9108. test ! -s conftest.err
  9109. } && test -s conftest.$ac_objext; then
  9110. ac_header_compiler=yes
  9111. else
  9112. echo "$as_me: failed program was:" >&5
  9113. sed 's/^/| /' conftest.$ac_ext >&5
  9114. ac_header_compiler=no
  9115. fi
  9116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9117. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9118. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9119. # Is the header present?
  9120. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9121. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9122. cat >conftest.$ac_ext <<_ACEOF
  9123. /* confdefs.h. */
  9124. _ACEOF
  9125. cat confdefs.h >>conftest.$ac_ext
  9126. cat >>conftest.$ac_ext <<_ACEOF
  9127. /* end confdefs.h. */
  9128. #include <$ac_header>
  9129. _ACEOF
  9130. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9131. case "(($ac_try" in
  9132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9133. *) ac_try_echo=$ac_try;;
  9134. esac
  9135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9136. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9137. ac_status=$?
  9138. grep -v '^ *+' conftest.er1 >conftest.err
  9139. rm -f conftest.er1
  9140. cat conftest.err >&5
  9141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9142. (exit $ac_status); } >/dev/null && {
  9143. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9144. test ! -s conftest.err
  9145. }; then
  9146. ac_header_preproc=yes
  9147. else
  9148. echo "$as_me: failed program was:" >&5
  9149. sed 's/^/| /' conftest.$ac_ext >&5
  9150. ac_header_preproc=no
  9151. fi
  9152. rm -f conftest.err conftest.$ac_ext
  9153. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9154. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9155. # So? What about this header?
  9156. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9157. yes:no: )
  9158. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9159. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9160. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9161. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9162. ac_header_preproc=yes
  9163. ;;
  9164. no:yes:* )
  9165. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9166. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9167. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9168. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9169. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9170. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9171. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9172. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9173. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9174. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9175. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9176. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9177. ( cat <<\_ASBOX
  9178. ## ----------------------------------------------- ##
  9179. ## Report this to t-tujikawa@users.sourceforge.net ##
  9180. ## ----------------------------------------------- ##
  9181. _ASBOX
  9182. ) | sed "s/^/$as_me: WARNING: /" >&2
  9183. ;;
  9184. esac
  9185. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9186. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9187. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9188. echo $ECHO_N "(cached) $ECHO_C" >&6
  9189. else
  9190. eval "$as_ac_Header=\$ac_header_preproc"
  9191. fi
  9192. ac_res=`eval echo '${'$as_ac_Header'}'`
  9193. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9194. echo "${ECHO_T}$ac_res" >&6; }
  9195. fi
  9196. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9197. cat >>confdefs.h <<_ACEOF
  9198. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9199. _ACEOF
  9200. fi
  9201. done
  9202. for ac_func in getpagesize
  9203. do
  9204. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9205. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9206. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9207. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9208. echo $ECHO_N "(cached) $ECHO_C" >&6
  9209. else
  9210. cat >conftest.$ac_ext <<_ACEOF
  9211. /* confdefs.h. */
  9212. _ACEOF
  9213. cat confdefs.h >>conftest.$ac_ext
  9214. cat >>conftest.$ac_ext <<_ACEOF
  9215. /* end confdefs.h. */
  9216. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9217. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9218. #define $ac_func innocuous_$ac_func
  9219. /* System header to define __stub macros and hopefully few prototypes,
  9220. which can conflict with char $ac_func (); below.
  9221. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9222. <limits.h> exists even on freestanding compilers. */
  9223. #ifdef __STDC__
  9224. # include <limits.h>
  9225. #else
  9226. # include <assert.h>
  9227. #endif
  9228. #undef $ac_func
  9229. /* Override any GCC internal prototype to avoid an error.
  9230. Use char because int might match the return type of a GCC
  9231. builtin and then its argument prototype would still apply. */
  9232. #ifdef __cplusplus
  9233. extern "C"
  9234. #endif
  9235. char $ac_func ();
  9236. /* The GNU C library defines this for functions which it implements
  9237. to always fail with ENOSYS. Some functions are actually named
  9238. something starting with __ and the normal name is an alias. */
  9239. #if defined __stub_$ac_func || defined __stub___$ac_func
  9240. choke me
  9241. #endif
  9242. int
  9243. main ()
  9244. {
  9245. return $ac_func ();
  9246. ;
  9247. return 0;
  9248. }
  9249. _ACEOF
  9250. rm -f conftest.$ac_objext conftest$ac_exeext
  9251. if { (ac_try="$ac_link"
  9252. case "(($ac_try" in
  9253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9254. *) ac_try_echo=$ac_try;;
  9255. esac
  9256. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9257. (eval "$ac_link") 2>conftest.er1
  9258. ac_status=$?
  9259. grep -v '^ *+' conftest.er1 >conftest.err
  9260. rm -f conftest.er1
  9261. cat conftest.err >&5
  9262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9263. (exit $ac_status); } && {
  9264. test -z "$ac_cxx_werror_flag" ||
  9265. test ! -s conftest.err
  9266. } && test -s conftest$ac_exeext &&
  9267. $as_test_x conftest$ac_exeext; then
  9268. eval "$as_ac_var=yes"
  9269. else
  9270. echo "$as_me: failed program was:" >&5
  9271. sed 's/^/| /' conftest.$ac_ext >&5
  9272. eval "$as_ac_var=no"
  9273. fi
  9274. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9275. conftest$ac_exeext conftest.$ac_ext
  9276. fi
  9277. ac_res=`eval echo '${'$as_ac_var'}'`
  9278. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9279. echo "${ECHO_T}$ac_res" >&6; }
  9280. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9281. cat >>confdefs.h <<_ACEOF
  9282. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9283. _ACEOF
  9284. fi
  9285. done
  9286. { echo "$as_me:$LINENO: checking for working mmap" >&5
  9287. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  9288. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9289. echo $ECHO_N "(cached) $ECHO_C" >&6
  9290. else
  9291. if test "$cross_compiling" = yes; then
  9292. ac_cv_func_mmap_fixed_mapped=no
  9293. else
  9294. cat >conftest.$ac_ext <<_ACEOF
  9295. /* confdefs.h. */
  9296. _ACEOF
  9297. cat confdefs.h >>conftest.$ac_ext
  9298. cat >>conftest.$ac_ext <<_ACEOF
  9299. /* end confdefs.h. */
  9300. $ac_includes_default
  9301. /* malloc might have been renamed as rpl_malloc. */
  9302. #undef malloc
  9303. /* Thanks to Mike Haertel and Jim Avera for this test.
  9304. Here is a matrix of mmap possibilities:
  9305. mmap private not fixed
  9306. mmap private fixed at somewhere currently unmapped
  9307. mmap private fixed at somewhere already mapped
  9308. mmap shared not fixed
  9309. mmap shared fixed at somewhere currently unmapped
  9310. mmap shared fixed at somewhere already mapped
  9311. For private mappings, we should verify that changes cannot be read()
  9312. back from the file, nor mmap's back from the file at a different
  9313. address. (There have been systems where private was not correctly
  9314. implemented like the infamous i386 svr4.0, and systems where the
  9315. VM page cache was not coherent with the file system buffer cache
  9316. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9317. For shared mappings, we should conversely verify that changes get
  9318. propagated back to all the places they're supposed to be.
  9319. Grep wants private fixed already mapped.
  9320. The main things grep needs to know about mmap are:
  9321. * does it exist and is it safe to write into the mmap'd area
  9322. * how to use it (BSD variants) */
  9323. #include <fcntl.h>
  9324. #include <sys/mman.h>
  9325. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9326. char *malloc ();
  9327. #endif
  9328. /* This mess was copied from the GNU getpagesize.h. */
  9329. #ifndef HAVE_GETPAGESIZE
  9330. /* Assume that all systems that can run configure have sys/param.h. */
  9331. # ifndef HAVE_SYS_PARAM_H
  9332. # define HAVE_SYS_PARAM_H 1
  9333. # endif
  9334. # ifdef _SC_PAGESIZE
  9335. # define getpagesize() sysconf(_SC_PAGESIZE)
  9336. # else /* no _SC_PAGESIZE */
  9337. # ifdef HAVE_SYS_PARAM_H
  9338. # include <sys/param.h>
  9339. # ifdef EXEC_PAGESIZE
  9340. # define getpagesize() EXEC_PAGESIZE
  9341. # else /* no EXEC_PAGESIZE */
  9342. # ifdef NBPG
  9343. # define getpagesize() NBPG * CLSIZE
  9344. # ifndef CLSIZE
  9345. # define CLSIZE 1
  9346. # endif /* no CLSIZE */
  9347. # else /* no NBPG */
  9348. # ifdef NBPC
  9349. # define getpagesize() NBPC
  9350. # else /* no NBPC */
  9351. # ifdef PAGESIZE
  9352. # define getpagesize() PAGESIZE
  9353. # endif /* PAGESIZE */
  9354. # endif /* no NBPC */
  9355. # endif /* no NBPG */
  9356. # endif /* no EXEC_PAGESIZE */
  9357. # else /* no HAVE_SYS_PARAM_H */
  9358. # define getpagesize() 8192 /* punt totally */
  9359. # endif /* no HAVE_SYS_PARAM_H */
  9360. # endif /* no _SC_PAGESIZE */
  9361. #endif /* no HAVE_GETPAGESIZE */
  9362. int
  9363. main ()
  9364. {
  9365. char *data, *data2, *data3;
  9366. int i, pagesize;
  9367. int fd;
  9368. pagesize = getpagesize ();
  9369. /* First, make a file with some known garbage in it. */
  9370. data = (char *) malloc (pagesize);
  9371. if (!data)
  9372. return 1;
  9373. for (i = 0; i < pagesize; ++i)
  9374. *(data + i) = rand ();
  9375. umask (0);
  9376. fd = creat ("conftest.mmap", 0600);
  9377. if (fd < 0)
  9378. return 1;
  9379. if (write (fd, data, pagesize) != pagesize)
  9380. return 1;
  9381. close (fd);
  9382. /* Next, try to mmap the file at a fixed address which already has
  9383. something else allocated at it. If we can, also make sure that
  9384. we see the same garbage. */
  9385. fd = open ("conftest.mmap", O_RDWR);
  9386. if (fd < 0)
  9387. return 1;
  9388. data2 = (char *) malloc (2 * pagesize);
  9389. if (!data2)
  9390. return 1;
  9391. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9392. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9393. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9394. return 1;
  9395. for (i = 0; i < pagesize; ++i)
  9396. if (*(data + i) != *(data2 + i))
  9397. return 1;
  9398. /* Finally, make sure that changes to the mapped area do not
  9399. percolate back to the file as seen by read(). (This is a bug on
  9400. some variants of i386 svr4.0.) */
  9401. for (i = 0; i < pagesize; ++i)
  9402. *(data2 + i) = *(data2 + i) + 1;
  9403. data3 = (char *) malloc (pagesize);
  9404. if (!data3)
  9405. return 1;
  9406. if (read (fd, data3, pagesize) != pagesize)
  9407. return 1;
  9408. for (i = 0; i < pagesize; ++i)
  9409. if (*(data + i) != *(data3 + i))
  9410. return 1;
  9411. close (fd);
  9412. return 0;
  9413. }
  9414. _ACEOF
  9415. rm -f conftest$ac_exeext
  9416. if { (ac_try="$ac_link"
  9417. case "(($ac_try" in
  9418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9419. *) ac_try_echo=$ac_try;;
  9420. esac
  9421. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9422. (eval "$ac_link") 2>&5
  9423. ac_status=$?
  9424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9425. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9426. { (case "(($ac_try" in
  9427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9428. *) ac_try_echo=$ac_try;;
  9429. esac
  9430. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9431. (eval "$ac_try") 2>&5
  9432. ac_status=$?
  9433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9434. (exit $ac_status); }; }; then
  9435. ac_cv_func_mmap_fixed_mapped=yes
  9436. else
  9437. echo "$as_me: program exited with status $ac_status" >&5
  9438. echo "$as_me: failed program was:" >&5
  9439. sed 's/^/| /' conftest.$ac_ext >&5
  9440. ( exit $ac_status )
  9441. ac_cv_func_mmap_fixed_mapped=no
  9442. fi
  9443. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9444. fi
  9445. fi
  9446. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9447. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  9448. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9449. cat >>confdefs.h <<\_ACEOF
  9450. #define HAVE_MMAP 1
  9451. _ACEOF
  9452. fi
  9453. rm -f conftest.mmap
  9454. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  9455. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  9456. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  9457. echo $ECHO_N "(cached) $ECHO_C" >&6
  9458. else
  9459. gt_cv_int_divbyzero_sigfpe=
  9460. case "$host_os" in
  9461. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  9462. # On MacOS X 10.2 or newer, just assume the same as when cross-
  9463. # compiling. If we were to perform the real test, 1 Crash Report
  9464. # dialog window would pop up.
  9465. case "$host_cpu" in
  9466. i[34567]86 | x86_64)
  9467. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  9468. esac
  9469. ;;
  9470. esac
  9471. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  9472. if test "$cross_compiling" = yes; then
  9473. # Guess based on the CPU.
  9474. case "$host_cpu" in
  9475. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  9476. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  9477. *)
  9478. gt_cv_int_divbyzero_sigfpe="guessing no";;
  9479. esac
  9480. else
  9481. cat >conftest.$ac_ext <<_ACEOF
  9482. /* confdefs.h. */
  9483. _ACEOF
  9484. cat confdefs.h >>conftest.$ac_ext
  9485. cat >>conftest.$ac_ext <<_ACEOF
  9486. /* end confdefs.h. */
  9487. #include <stdlib.h>
  9488. #include <signal.h>
  9489. static void
  9490. sigfpe_handler (int sig)
  9491. {
  9492. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  9493. exit (sig != SIGFPE);
  9494. }
  9495. int x = 1;
  9496. int y = 0;
  9497. int z;
  9498. int nan;
  9499. int main ()
  9500. {
  9501. signal (SIGFPE, sigfpe_handler);
  9502. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  9503. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  9504. signal (SIGTRAP, sigfpe_handler);
  9505. #endif
  9506. /* Linux/SPARC yields signal SIGILL. */
  9507. #if defined (__sparc__) && defined (__linux__)
  9508. signal (SIGILL, sigfpe_handler);
  9509. #endif
  9510. z = x / y;
  9511. nan = y / y;
  9512. exit (1);
  9513. }
  9514. _ACEOF
  9515. rm -f conftest$ac_exeext
  9516. if { (ac_try="$ac_link"
  9517. case "(($ac_try" in
  9518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9519. *) ac_try_echo=$ac_try;;
  9520. esac
  9521. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9522. (eval "$ac_link") 2>&5
  9523. ac_status=$?
  9524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9525. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9526. { (case "(($ac_try" in
  9527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9528. *) ac_try_echo=$ac_try;;
  9529. esac
  9530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9531. (eval "$ac_try") 2>&5
  9532. ac_status=$?
  9533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9534. (exit $ac_status); }; }; then
  9535. gt_cv_int_divbyzero_sigfpe=yes
  9536. else
  9537. echo "$as_me: program exited with status $ac_status" >&5
  9538. echo "$as_me: failed program was:" >&5
  9539. sed 's/^/| /' conftest.$ac_ext >&5
  9540. ( exit $ac_status )
  9541. gt_cv_int_divbyzero_sigfpe=no
  9542. fi
  9543. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9544. fi
  9545. fi
  9546. fi
  9547. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  9548. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  9549. case "$gt_cv_int_divbyzero_sigfpe" in
  9550. *yes) value=1;;
  9551. *) value=0;;
  9552. esac
  9553. cat >>confdefs.h <<_ACEOF
  9554. #define INTDIV0_RAISES_SIGFPE $value
  9555. _ACEOF
  9556. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  9557. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  9558. if test "${gl_cv_header_inttypes_h+set}" = set; then
  9559. echo $ECHO_N "(cached) $ECHO_C" >&6
  9560. else
  9561. cat >conftest.$ac_ext <<_ACEOF
  9562. /* confdefs.h. */
  9563. _ACEOF
  9564. cat confdefs.h >>conftest.$ac_ext
  9565. cat >>conftest.$ac_ext <<_ACEOF
  9566. /* end confdefs.h. */
  9567. #include <sys/types.h>
  9568. #include <inttypes.h>
  9569. int
  9570. main ()
  9571. {
  9572. uintmax_t i = (uintmax_t) -1; return !i;
  9573. ;
  9574. return 0;
  9575. }
  9576. _ACEOF
  9577. rm -f conftest.$ac_objext
  9578. if { (ac_try="$ac_compile"
  9579. case "(($ac_try" in
  9580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9581. *) ac_try_echo=$ac_try;;
  9582. esac
  9583. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9584. (eval "$ac_compile") 2>conftest.er1
  9585. ac_status=$?
  9586. grep -v '^ *+' conftest.er1 >conftest.err
  9587. rm -f conftest.er1
  9588. cat conftest.err >&5
  9589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9590. (exit $ac_status); } && {
  9591. test -z "$ac_cxx_werror_flag" ||
  9592. test ! -s conftest.err
  9593. } && test -s conftest.$ac_objext; then
  9594. gl_cv_header_inttypes_h=yes
  9595. else
  9596. echo "$as_me: failed program was:" >&5
  9597. sed 's/^/| /' conftest.$ac_ext >&5
  9598. gl_cv_header_inttypes_h=no
  9599. fi
  9600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9601. fi
  9602. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  9603. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  9604. if test $gl_cv_header_inttypes_h = yes; then
  9605. cat >>confdefs.h <<_ACEOF
  9606. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  9607. _ACEOF
  9608. fi
  9609. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  9610. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  9611. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  9612. echo $ECHO_N "(cached) $ECHO_C" >&6
  9613. else
  9614. cat >conftest.$ac_ext <<_ACEOF
  9615. /* confdefs.h. */
  9616. _ACEOF
  9617. cat confdefs.h >>conftest.$ac_ext
  9618. cat >>conftest.$ac_ext <<_ACEOF
  9619. /* end confdefs.h. */
  9620. /* Test preprocessor. */
  9621. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9622. error in preprocessor;
  9623. #endif
  9624. #if ! (18446744073709551615ULL <= -1ull)
  9625. error in preprocessor;
  9626. #endif
  9627. /* Test literals. */
  9628. long long int ll = 9223372036854775807ll;
  9629. long long int nll = -9223372036854775807LL;
  9630. unsigned long long int ull = 18446744073709551615ULL;
  9631. /* Test constant expressions. */
  9632. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  9633. ? 1 : -1)];
  9634. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  9635. ? 1 : -1)];
  9636. int i = 63;
  9637. int
  9638. main ()
  9639. {
  9640. /* Test availability of runtime routines for shift and division. */
  9641. long long int llmax = 9223372036854775807ll;
  9642. unsigned long long int ullmax = 18446744073709551615ull;
  9643. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  9644. | (llmax / ll) | (llmax % ll)
  9645. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  9646. | (ullmax / ull) | (ullmax % ull));
  9647. ;
  9648. return 0;
  9649. }
  9650. _ACEOF
  9651. rm -f conftest.$ac_objext conftest$ac_exeext
  9652. if { (ac_try="$ac_link"
  9653. case "(($ac_try" in
  9654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9655. *) ac_try_echo=$ac_try;;
  9656. esac
  9657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9658. (eval "$ac_link") 2>conftest.er1
  9659. ac_status=$?
  9660. grep -v '^ *+' conftest.er1 >conftest.err
  9661. rm -f conftest.er1
  9662. cat conftest.err >&5
  9663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9664. (exit $ac_status); } && {
  9665. test -z "$ac_cxx_werror_flag" ||
  9666. test ! -s conftest.err
  9667. } && test -s conftest$ac_exeext &&
  9668. $as_test_x conftest$ac_exeext; then
  9669. ac_cv_type_unsigned_long_long_int=yes
  9670. else
  9671. echo "$as_me: failed program was:" >&5
  9672. sed 's/^/| /' conftest.$ac_ext >&5
  9673. ac_cv_type_unsigned_long_long_int=no
  9674. fi
  9675. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9676. conftest$ac_exeext conftest.$ac_ext
  9677. fi
  9678. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  9679. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  9680. if test $ac_cv_type_unsigned_long_long_int = yes; then
  9681. cat >>confdefs.h <<\_ACEOF
  9682. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  9683. _ACEOF
  9684. fi
  9685. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  9686. test $ac_cv_type_unsigned_long_long_int = yes \
  9687. && ac_type='unsigned long long' \
  9688. || ac_type='unsigned long'
  9689. cat >>confdefs.h <<_ACEOF
  9690. #define uintmax_t $ac_type
  9691. _ACEOF
  9692. else
  9693. cat >>confdefs.h <<\_ACEOF
  9694. #define HAVE_UINTMAX_T 1
  9695. _ACEOF
  9696. fi
  9697. for ac_header in inttypes.h
  9698. do
  9699. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9700. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9701. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9702. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9703. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9704. echo $ECHO_N "(cached) $ECHO_C" >&6
  9705. fi
  9706. ac_res=`eval echo '${'$as_ac_Header'}'`
  9707. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9708. echo "${ECHO_T}$ac_res" >&6; }
  9709. else
  9710. # Is the header compilable?
  9711. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9712. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9713. cat >conftest.$ac_ext <<_ACEOF
  9714. /* confdefs.h. */
  9715. _ACEOF
  9716. cat confdefs.h >>conftest.$ac_ext
  9717. cat >>conftest.$ac_ext <<_ACEOF
  9718. /* end confdefs.h. */
  9719. $ac_includes_default
  9720. #include <$ac_header>
  9721. _ACEOF
  9722. rm -f conftest.$ac_objext
  9723. if { (ac_try="$ac_compile"
  9724. case "(($ac_try" in
  9725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9726. *) ac_try_echo=$ac_try;;
  9727. esac
  9728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9729. (eval "$ac_compile") 2>conftest.er1
  9730. ac_status=$?
  9731. grep -v '^ *+' conftest.er1 >conftest.err
  9732. rm -f conftest.er1
  9733. cat conftest.err >&5
  9734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9735. (exit $ac_status); } && {
  9736. test -z "$ac_cxx_werror_flag" ||
  9737. test ! -s conftest.err
  9738. } && test -s conftest.$ac_objext; then
  9739. ac_header_compiler=yes
  9740. else
  9741. echo "$as_me: failed program was:" >&5
  9742. sed 's/^/| /' conftest.$ac_ext >&5
  9743. ac_header_compiler=no
  9744. fi
  9745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9746. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9747. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9748. # Is the header present?
  9749. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9750. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9751. cat >conftest.$ac_ext <<_ACEOF
  9752. /* confdefs.h. */
  9753. _ACEOF
  9754. cat confdefs.h >>conftest.$ac_ext
  9755. cat >>conftest.$ac_ext <<_ACEOF
  9756. /* end confdefs.h. */
  9757. #include <$ac_header>
  9758. _ACEOF
  9759. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9760. case "(($ac_try" in
  9761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9762. *) ac_try_echo=$ac_try;;
  9763. esac
  9764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9765. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9766. ac_status=$?
  9767. grep -v '^ *+' conftest.er1 >conftest.err
  9768. rm -f conftest.er1
  9769. cat conftest.err >&5
  9770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9771. (exit $ac_status); } >/dev/null && {
  9772. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9773. test ! -s conftest.err
  9774. }; then
  9775. ac_header_preproc=yes
  9776. else
  9777. echo "$as_me: failed program was:" >&5
  9778. sed 's/^/| /' conftest.$ac_ext >&5
  9779. ac_header_preproc=no
  9780. fi
  9781. rm -f conftest.err conftest.$ac_ext
  9782. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9783. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9784. # So? What about this header?
  9785. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9786. yes:no: )
  9787. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9788. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9789. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9790. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9791. ac_header_preproc=yes
  9792. ;;
  9793. no:yes:* )
  9794. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9795. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9796. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9797. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9798. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9799. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9800. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9801. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9802. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9803. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9804. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9805. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9806. ( cat <<\_ASBOX
  9807. ## ----------------------------------------------- ##
  9808. ## Report this to t-tujikawa@users.sourceforge.net ##
  9809. ## ----------------------------------------------- ##
  9810. _ASBOX
  9811. ) | sed "s/^/$as_me: WARNING: /" >&2
  9812. ;;
  9813. esac
  9814. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9815. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9816. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9817. echo $ECHO_N "(cached) $ECHO_C" >&6
  9818. else
  9819. eval "$as_ac_Header=\$ac_header_preproc"
  9820. fi
  9821. ac_res=`eval echo '${'$as_ac_Header'}'`
  9822. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9823. echo "${ECHO_T}$ac_res" >&6; }
  9824. fi
  9825. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9826. cat >>confdefs.h <<_ACEOF
  9827. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9828. _ACEOF
  9829. fi
  9830. done
  9831. if test $ac_cv_header_inttypes_h = yes; then
  9832. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  9833. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  9834. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  9835. echo $ECHO_N "(cached) $ECHO_C" >&6
  9836. else
  9837. cat >conftest.$ac_ext <<_ACEOF
  9838. /* confdefs.h. */
  9839. _ACEOF
  9840. cat confdefs.h >>conftest.$ac_ext
  9841. cat >>conftest.$ac_ext <<_ACEOF
  9842. /* end confdefs.h. */
  9843. #include <inttypes.h>
  9844. #ifdef PRId32
  9845. char *p = PRId32;
  9846. #endif
  9847. int
  9848. main ()
  9849. {
  9850. ;
  9851. return 0;
  9852. }
  9853. _ACEOF
  9854. rm -f conftest.$ac_objext
  9855. if { (ac_try="$ac_compile"
  9856. case "(($ac_try" in
  9857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9858. *) ac_try_echo=$ac_try;;
  9859. esac
  9860. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9861. (eval "$ac_compile") 2>conftest.er1
  9862. ac_status=$?
  9863. grep -v '^ *+' conftest.er1 >conftest.err
  9864. rm -f conftest.er1
  9865. cat conftest.err >&5
  9866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9867. (exit $ac_status); } && {
  9868. test -z "$ac_cxx_werror_flag" ||
  9869. test ! -s conftest.err
  9870. } && test -s conftest.$ac_objext; then
  9871. gt_cv_inttypes_pri_broken=no
  9872. else
  9873. echo "$as_me: failed program was:" >&5
  9874. sed 's/^/| /' conftest.$ac_ext >&5
  9875. gt_cv_inttypes_pri_broken=yes
  9876. fi
  9877. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9878. fi
  9879. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  9880. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  9881. fi
  9882. if test "$gt_cv_inttypes_pri_broken" = yes; then
  9883. cat >>confdefs.h <<_ACEOF
  9884. #define PRI_MACROS_BROKEN 1
  9885. _ACEOF
  9886. PRI_MACROS_BROKEN=1
  9887. else
  9888. PRI_MACROS_BROKEN=0
  9889. fi
  9890. # Check whether --enable-threads was given.
  9891. if test "${enable_threads+set}" = set; then
  9892. enableval=$enable_threads; gl_use_threads=$enableval
  9893. else
  9894. case "$host_os" in
  9895. osf*) gl_use_threads=no ;;
  9896. *) gl_use_threads=yes ;;
  9897. esac
  9898. fi
  9899. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  9900. # For using <pthread.h>:
  9901. case "$host_os" in
  9902. osf*)
  9903. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  9904. # groks <pthread.h>. cc also understands the flag -pthread, but
  9905. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  9906. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  9907. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  9908. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  9909. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  9910. ;;
  9911. esac
  9912. # Some systems optimize for single-threaded programs by default, and
  9913. # need special flags to disable these optimizations. For example, the
  9914. # definition of 'errno' in <errno.h>.
  9915. case "$host_os" in
  9916. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  9917. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  9918. esac
  9919. fi
  9920. if test "X$prefix" = "XNONE"; then
  9921. acl_final_prefix="$ac_default_prefix"
  9922. else
  9923. acl_final_prefix="$prefix"
  9924. fi
  9925. if test "X$exec_prefix" = "XNONE"; then
  9926. acl_final_exec_prefix='${prefix}'
  9927. else
  9928. acl_final_exec_prefix="$exec_prefix"
  9929. fi
  9930. acl_save_prefix="$prefix"
  9931. prefix="$acl_final_prefix"
  9932. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  9933. prefix="$acl_save_prefix"
  9934. # Check whether --with-gnu-ld was given.
  9935. if test "${with_gnu_ld+set}" = set; then
  9936. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9937. else
  9938. with_gnu_ld=no
  9939. fi
  9940. # Prepare PATH_SEPARATOR.
  9941. # The user is always right.
  9942. if test "${PATH_SEPARATOR+set}" != set; then
  9943. echo "#! /bin/sh" >conf$$.sh
  9944. echo "exit 0" >>conf$$.sh
  9945. chmod +x conf$$.sh
  9946. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9947. PATH_SEPARATOR=';'
  9948. else
  9949. PATH_SEPARATOR=:
  9950. fi
  9951. rm -f conf$$.sh
  9952. fi
  9953. ac_prog=ld
  9954. if test "$GCC" = yes; then
  9955. # Check if gcc -print-prog-name=ld gives a path.
  9956. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  9957. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  9958. case $host in
  9959. *-*-mingw*)
  9960. # gcc leaves a trailing carriage return which upsets mingw
  9961. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9962. *)
  9963. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9964. esac
  9965. case $ac_prog in
  9966. # Accept absolute paths.
  9967. [\\/]* | [A-Za-z]:[\\/]*)
  9968. re_direlt='/[^/][^/]*/\.\./'
  9969. # Canonicalize the path of ld
  9970. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  9971. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  9972. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  9973. done
  9974. test -z "$LD" && LD="$ac_prog"
  9975. ;;
  9976. "")
  9977. # If it fails, then pretend we aren't using GCC.
  9978. ac_prog=ld
  9979. ;;
  9980. *)
  9981. # If it is relative, then search for the first ld in PATH.
  9982. with_gnu_ld=unknown
  9983. ;;
  9984. esac
  9985. elif test "$with_gnu_ld" = yes; then
  9986. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  9987. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  9988. else
  9989. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  9990. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  9991. fi
  9992. if test "${acl_cv_path_LD+set}" = set; then
  9993. echo $ECHO_N "(cached) $ECHO_C" >&6
  9994. else
  9995. if test -z "$LD"; then
  9996. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  9997. for ac_dir in $PATH; do
  9998. test -z "$ac_dir" && ac_dir=.
  9999. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10000. acl_cv_path_LD="$ac_dir/$ac_prog"
  10001. # Check to see if the program is GNU ld. I'd rather use --version,
  10002. # but apparently some GNU ld's only accept -v.
  10003. # Break only if it was the GNU/non-GNU ld that we prefer.
  10004. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  10005. *GNU* | *'with BFD'*)
  10006. test "$with_gnu_ld" != no && break ;;
  10007. *)
  10008. test "$with_gnu_ld" != yes && break ;;
  10009. esac
  10010. fi
  10011. done
  10012. IFS="$ac_save_ifs"
  10013. else
  10014. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  10015. fi
  10016. fi
  10017. LD="$acl_cv_path_LD"
  10018. if test -n "$LD"; then
  10019. { echo "$as_me:$LINENO: result: $LD" >&5
  10020. echo "${ECHO_T}$LD" >&6; }
  10021. else
  10022. { echo "$as_me:$LINENO: result: no" >&5
  10023. echo "${ECHO_T}no" >&6; }
  10024. fi
  10025. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  10026. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  10027. { (exit 1); exit 1; }; }
  10028. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  10029. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  10030. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  10031. echo $ECHO_N "(cached) $ECHO_C" >&6
  10032. else
  10033. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  10034. case `$LD -v 2>&1 </dev/null` in
  10035. *GNU* | *'with BFD'*)
  10036. acl_cv_prog_gnu_ld=yes ;;
  10037. *)
  10038. acl_cv_prog_gnu_ld=no ;;
  10039. esac
  10040. fi
  10041. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  10042. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  10043. with_gnu_ld=$acl_cv_prog_gnu_ld
  10044. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  10045. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  10046. if test "${acl_cv_rpath+set}" = set; then
  10047. echo $ECHO_N "(cached) $ECHO_C" >&6
  10048. else
  10049. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  10050. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  10051. . ./conftest.sh
  10052. rm -f ./conftest.sh
  10053. acl_cv_rpath=done
  10054. fi
  10055. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  10056. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  10057. wl="$acl_cv_wl"
  10058. acl_libext="$acl_cv_libext"
  10059. acl_shlibext="$acl_cv_shlibext"
  10060. acl_libname_spec="$acl_cv_libname_spec"
  10061. acl_library_names_spec="$acl_cv_library_names_spec"
  10062. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  10063. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  10064. acl_hardcode_direct="$acl_cv_hardcode_direct"
  10065. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  10066. # Check whether --enable-rpath was given.
  10067. if test "${enable_rpath+set}" = set; then
  10068. enableval=$enable_rpath; :
  10069. else
  10070. enable_rpath=yes
  10071. fi
  10072. acl_libdirstem=lib
  10073. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  10074. if test -n "$searchpath"; then
  10075. acl_save_IFS="${IFS= }"; IFS=":"
  10076. for searchdir in $searchpath; do
  10077. if test -d "$searchdir"; then
  10078. case "$searchdir" in
  10079. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  10080. *) searchdir=`cd "$searchdir" && pwd`
  10081. case "$searchdir" in
  10082. */lib64 ) acl_libdirstem=lib64 ;;
  10083. esac ;;
  10084. esac
  10085. fi
  10086. done
  10087. IFS="$acl_save_IFS"
  10088. fi
  10089. gl_threads_api=none
  10090. LIBTHREAD=
  10091. LTLIBTHREAD=
  10092. LIBMULTITHREAD=
  10093. LTLIBMULTITHREAD=
  10094. if test "$gl_use_threads" != no; then
  10095. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  10096. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  10097. gl_have_weak=no
  10098. cat >conftest.$ac_ext <<_ACEOF
  10099. /* confdefs.h. */
  10100. _ACEOF
  10101. cat confdefs.h >>conftest.$ac_ext
  10102. cat >>conftest.$ac_ext <<_ACEOF
  10103. /* end confdefs.h. */
  10104. extern void xyzzy ();
  10105. #pragma weak xyzzy
  10106. int
  10107. main ()
  10108. {
  10109. xyzzy();
  10110. ;
  10111. return 0;
  10112. }
  10113. _ACEOF
  10114. rm -f conftest.$ac_objext conftest$ac_exeext
  10115. if { (ac_try="$ac_link"
  10116. case "(($ac_try" in
  10117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10118. *) ac_try_echo=$ac_try;;
  10119. esac
  10120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10121. (eval "$ac_link") 2>conftest.er1
  10122. ac_status=$?
  10123. grep -v '^ *+' conftest.er1 >conftest.err
  10124. rm -f conftest.er1
  10125. cat conftest.err >&5
  10126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10127. (exit $ac_status); } && {
  10128. test -z "$ac_cxx_werror_flag" ||
  10129. test ! -s conftest.err
  10130. } && test -s conftest$ac_exeext &&
  10131. $as_test_x conftest$ac_exeext; then
  10132. gl_have_weak=yes
  10133. else
  10134. echo "$as_me: failed program was:" >&5
  10135. sed 's/^/| /' conftest.$ac_ext >&5
  10136. fi
  10137. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10138. conftest$ac_exeext conftest.$ac_ext
  10139. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  10140. echo "${ECHO_T}$gl_have_weak" >&6; }
  10141. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  10142. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  10143. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  10144. if test "${ac_cv_header_pthread_h+set}" = set; then
  10145. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10146. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10147. if test "${ac_cv_header_pthread_h+set}" = set; then
  10148. echo $ECHO_N "(cached) $ECHO_C" >&6
  10149. fi
  10150. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10151. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10152. else
  10153. # Is the header compilable?
  10154. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  10155. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  10156. cat >conftest.$ac_ext <<_ACEOF
  10157. /* confdefs.h. */
  10158. _ACEOF
  10159. cat confdefs.h >>conftest.$ac_ext
  10160. cat >>conftest.$ac_ext <<_ACEOF
  10161. /* end confdefs.h. */
  10162. $ac_includes_default
  10163. #include <pthread.h>
  10164. _ACEOF
  10165. rm -f conftest.$ac_objext
  10166. if { (ac_try="$ac_compile"
  10167. case "(($ac_try" in
  10168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10169. *) ac_try_echo=$ac_try;;
  10170. esac
  10171. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10172. (eval "$ac_compile") 2>conftest.er1
  10173. ac_status=$?
  10174. grep -v '^ *+' conftest.er1 >conftest.err
  10175. rm -f conftest.er1
  10176. cat conftest.err >&5
  10177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10178. (exit $ac_status); } && {
  10179. test -z "$ac_cxx_werror_flag" ||
  10180. test ! -s conftest.err
  10181. } && test -s conftest.$ac_objext; then
  10182. ac_header_compiler=yes
  10183. else
  10184. echo "$as_me: failed program was:" >&5
  10185. sed 's/^/| /' conftest.$ac_ext >&5
  10186. ac_header_compiler=no
  10187. fi
  10188. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10189. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10190. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10191. # Is the header present?
  10192. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  10193. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  10194. cat >conftest.$ac_ext <<_ACEOF
  10195. /* confdefs.h. */
  10196. _ACEOF
  10197. cat confdefs.h >>conftest.$ac_ext
  10198. cat >>conftest.$ac_ext <<_ACEOF
  10199. /* end confdefs.h. */
  10200. #include <pthread.h>
  10201. _ACEOF
  10202. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10203. case "(($ac_try" in
  10204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10205. *) ac_try_echo=$ac_try;;
  10206. esac
  10207. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10208. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10209. ac_status=$?
  10210. grep -v '^ *+' conftest.er1 >conftest.err
  10211. rm -f conftest.er1
  10212. cat conftest.err >&5
  10213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10214. (exit $ac_status); } >/dev/null && {
  10215. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10216. test ! -s conftest.err
  10217. }; then
  10218. ac_header_preproc=yes
  10219. else
  10220. echo "$as_me: failed program was:" >&5
  10221. sed 's/^/| /' conftest.$ac_ext >&5
  10222. ac_header_preproc=no
  10223. fi
  10224. rm -f conftest.err conftest.$ac_ext
  10225. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10226. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10227. # So? What about this header?
  10228. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10229. yes:no: )
  10230. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10231. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10232. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  10233. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  10234. ac_header_preproc=yes
  10235. ;;
  10236. no:yes:* )
  10237. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  10238. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  10239. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  10240. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  10241. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  10242. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  10243. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  10244. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10245. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  10246. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  10247. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  10248. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  10249. ( cat <<\_ASBOX
  10250. ## ----------------------------------------------- ##
  10251. ## Report this to t-tujikawa@users.sourceforge.net ##
  10252. ## ----------------------------------------------- ##
  10253. _ASBOX
  10254. ) | sed "s/^/$as_me: WARNING: /" >&2
  10255. ;;
  10256. esac
  10257. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  10258. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  10259. if test "${ac_cv_header_pthread_h+set}" = set; then
  10260. echo $ECHO_N "(cached) $ECHO_C" >&6
  10261. else
  10262. ac_cv_header_pthread_h=$ac_header_preproc
  10263. fi
  10264. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  10265. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  10266. fi
  10267. if test $ac_cv_header_pthread_h = yes; then
  10268. gl_have_pthread_h=yes
  10269. else
  10270. gl_have_pthread_h=no
  10271. fi
  10272. if test "$gl_have_pthread_h" = yes; then
  10273. # Other possible tests:
  10274. # -lpthreads (FSU threads, PCthreads)
  10275. # -lgthreads
  10276. gl_have_pthread=
  10277. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  10278. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  10279. # the second one only in libpthread, and lock.c needs it.
  10280. cat >conftest.$ac_ext <<_ACEOF
  10281. /* confdefs.h. */
  10282. _ACEOF
  10283. cat confdefs.h >>conftest.$ac_ext
  10284. cat >>conftest.$ac_ext <<_ACEOF
  10285. /* end confdefs.h. */
  10286. #include <pthread.h>
  10287. int
  10288. main ()
  10289. {
  10290. pthread_mutex_lock((pthread_mutex_t*)0);
  10291. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  10292. ;
  10293. return 0;
  10294. }
  10295. _ACEOF
  10296. rm -f conftest.$ac_objext conftest$ac_exeext
  10297. if { (ac_try="$ac_link"
  10298. case "(($ac_try" in
  10299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10300. *) ac_try_echo=$ac_try;;
  10301. esac
  10302. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10303. (eval "$ac_link") 2>conftest.er1
  10304. ac_status=$?
  10305. grep -v '^ *+' conftest.er1 >conftest.err
  10306. rm -f conftest.er1
  10307. cat conftest.err >&5
  10308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10309. (exit $ac_status); } && {
  10310. test -z "$ac_cxx_werror_flag" ||
  10311. test ! -s conftest.err
  10312. } && test -s conftest$ac_exeext &&
  10313. $as_test_x conftest$ac_exeext; then
  10314. gl_have_pthread=yes
  10315. else
  10316. echo "$as_me: failed program was:" >&5
  10317. sed 's/^/| /' conftest.$ac_ext >&5
  10318. fi
  10319. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10320. conftest$ac_exeext conftest.$ac_ext
  10321. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  10322. # since it is defined as a macro on OSF/1.)
  10323. if test -n "$gl_have_pthread"; then
  10324. # The program links fine without libpthread. But it may actually
  10325. # need to link with libpthread in order to create multiple threads.
  10326. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10327. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10328. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10329. echo $ECHO_N "(cached) $ECHO_C" >&6
  10330. else
  10331. ac_check_lib_save_LIBS=$LIBS
  10332. LIBS="-lpthread $LIBS"
  10333. cat >conftest.$ac_ext <<_ACEOF
  10334. /* confdefs.h. */
  10335. _ACEOF
  10336. cat confdefs.h >>conftest.$ac_ext
  10337. cat >>conftest.$ac_ext <<_ACEOF
  10338. /* end confdefs.h. */
  10339. /* Override any GCC internal prototype to avoid an error.
  10340. Use char because int might match the return type of a GCC
  10341. builtin and then its argument prototype would still apply. */
  10342. #ifdef __cplusplus
  10343. extern "C"
  10344. #endif
  10345. char pthread_kill ();
  10346. int
  10347. main ()
  10348. {
  10349. return pthread_kill ();
  10350. ;
  10351. return 0;
  10352. }
  10353. _ACEOF
  10354. rm -f conftest.$ac_objext conftest$ac_exeext
  10355. if { (ac_try="$ac_link"
  10356. case "(($ac_try" in
  10357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10358. *) ac_try_echo=$ac_try;;
  10359. esac
  10360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10361. (eval "$ac_link") 2>conftest.er1
  10362. ac_status=$?
  10363. grep -v '^ *+' conftest.er1 >conftest.err
  10364. rm -f conftest.er1
  10365. cat conftest.err >&5
  10366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10367. (exit $ac_status); } && {
  10368. test -z "$ac_cxx_werror_flag" ||
  10369. test ! -s conftest.err
  10370. } && test -s conftest$ac_exeext &&
  10371. $as_test_x conftest$ac_exeext; then
  10372. ac_cv_lib_pthread_pthread_kill=yes
  10373. else
  10374. echo "$as_me: failed program was:" >&5
  10375. sed 's/^/| /' conftest.$ac_ext >&5
  10376. ac_cv_lib_pthread_pthread_kill=no
  10377. fi
  10378. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10379. conftest$ac_exeext conftest.$ac_ext
  10380. LIBS=$ac_check_lib_save_LIBS
  10381. fi
  10382. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10383. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10384. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10385. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10386. # On Solaris and HP-UX, most pthread functions exist also in libc.
  10387. # Therefore pthread_in_use() needs to actually try to create a
  10388. # thread: pthread_create from libc will fail, whereas
  10389. # pthread_create will actually create a thread.
  10390. case "$host_os" in
  10391. solaris* | hpux*)
  10392. cat >>confdefs.h <<\_ACEOF
  10393. #define PTHREAD_IN_USE_DETECTION_HARD 1
  10394. _ACEOF
  10395. esac
  10396. fi
  10397. else
  10398. # Some library is needed. Try libpthread and libc_r.
  10399. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  10400. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  10401. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  10402. echo $ECHO_N "(cached) $ECHO_C" >&6
  10403. else
  10404. ac_check_lib_save_LIBS=$LIBS
  10405. LIBS="-lpthread $LIBS"
  10406. cat >conftest.$ac_ext <<_ACEOF
  10407. /* confdefs.h. */
  10408. _ACEOF
  10409. cat confdefs.h >>conftest.$ac_ext
  10410. cat >>conftest.$ac_ext <<_ACEOF
  10411. /* end confdefs.h. */
  10412. /* Override any GCC internal prototype to avoid an error.
  10413. Use char because int might match the return type of a GCC
  10414. builtin and then its argument prototype would still apply. */
  10415. #ifdef __cplusplus
  10416. extern "C"
  10417. #endif
  10418. char pthread_kill ();
  10419. int
  10420. main ()
  10421. {
  10422. return pthread_kill ();
  10423. ;
  10424. return 0;
  10425. }
  10426. _ACEOF
  10427. rm -f conftest.$ac_objext conftest$ac_exeext
  10428. if { (ac_try="$ac_link"
  10429. case "(($ac_try" in
  10430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10431. *) ac_try_echo=$ac_try;;
  10432. esac
  10433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10434. (eval "$ac_link") 2>conftest.er1
  10435. ac_status=$?
  10436. grep -v '^ *+' conftest.er1 >conftest.err
  10437. rm -f conftest.er1
  10438. cat conftest.err >&5
  10439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10440. (exit $ac_status); } && {
  10441. test -z "$ac_cxx_werror_flag" ||
  10442. test ! -s conftest.err
  10443. } && test -s conftest$ac_exeext &&
  10444. $as_test_x conftest$ac_exeext; then
  10445. ac_cv_lib_pthread_pthread_kill=yes
  10446. else
  10447. echo "$as_me: failed program was:" >&5
  10448. sed 's/^/| /' conftest.$ac_ext >&5
  10449. ac_cv_lib_pthread_pthread_kill=no
  10450. fi
  10451. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10452. conftest$ac_exeext conftest.$ac_ext
  10453. LIBS=$ac_check_lib_save_LIBS
  10454. fi
  10455. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  10456. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  10457. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  10458. gl_have_pthread=yes
  10459. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  10460. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  10461. fi
  10462. if test -z "$gl_have_pthread"; then
  10463. # For FreeBSD 4.
  10464. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  10465. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  10466. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  10467. echo $ECHO_N "(cached) $ECHO_C" >&6
  10468. else
  10469. ac_check_lib_save_LIBS=$LIBS
  10470. LIBS="-lc_r $LIBS"
  10471. cat >conftest.$ac_ext <<_ACEOF
  10472. /* confdefs.h. */
  10473. _ACEOF
  10474. cat confdefs.h >>conftest.$ac_ext
  10475. cat >>conftest.$ac_ext <<_ACEOF
  10476. /* end confdefs.h. */
  10477. /* Override any GCC internal prototype to avoid an error.
  10478. Use char because int might match the return type of a GCC
  10479. builtin and then its argument prototype would still apply. */
  10480. #ifdef __cplusplus
  10481. extern "C"
  10482. #endif
  10483. char pthread_kill ();
  10484. int
  10485. main ()
  10486. {
  10487. return pthread_kill ();
  10488. ;
  10489. return 0;
  10490. }
  10491. _ACEOF
  10492. rm -f conftest.$ac_objext conftest$ac_exeext
  10493. if { (ac_try="$ac_link"
  10494. case "(($ac_try" in
  10495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10496. *) ac_try_echo=$ac_try;;
  10497. esac
  10498. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10499. (eval "$ac_link") 2>conftest.er1
  10500. ac_status=$?
  10501. grep -v '^ *+' conftest.er1 >conftest.err
  10502. rm -f conftest.er1
  10503. cat conftest.err >&5
  10504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10505. (exit $ac_status); } && {
  10506. test -z "$ac_cxx_werror_flag" ||
  10507. test ! -s conftest.err
  10508. } && test -s conftest$ac_exeext &&
  10509. $as_test_x conftest$ac_exeext; then
  10510. ac_cv_lib_c_r_pthread_kill=yes
  10511. else
  10512. echo "$as_me: failed program was:" >&5
  10513. sed 's/^/| /' conftest.$ac_ext >&5
  10514. ac_cv_lib_c_r_pthread_kill=no
  10515. fi
  10516. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10517. conftest$ac_exeext conftest.$ac_ext
  10518. LIBS=$ac_check_lib_save_LIBS
  10519. fi
  10520. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  10521. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  10522. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  10523. gl_have_pthread=yes
  10524. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  10525. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  10526. fi
  10527. fi
  10528. fi
  10529. if test -n "$gl_have_pthread"; then
  10530. gl_threads_api=posix
  10531. cat >>confdefs.h <<\_ACEOF
  10532. #define USE_POSIX_THREADS 1
  10533. _ACEOF
  10534. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  10535. if test $gl_have_weak = yes; then
  10536. cat >>confdefs.h <<\_ACEOF
  10537. #define USE_POSIX_THREADS_WEAK 1
  10538. _ACEOF
  10539. LIBTHREAD=
  10540. LTLIBTHREAD=
  10541. fi
  10542. fi
  10543. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  10544. # pthread_rwlock_* functions.
  10545. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  10546. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  10547. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  10548. echo $ECHO_N "(cached) $ECHO_C" >&6
  10549. else
  10550. cat >conftest.$ac_ext <<_ACEOF
  10551. /* confdefs.h. */
  10552. _ACEOF
  10553. cat confdefs.h >>conftest.$ac_ext
  10554. cat >>conftest.$ac_ext <<_ACEOF
  10555. /* end confdefs.h. */
  10556. #include <pthread.h>
  10557. typedef pthread_rwlock_t ac__type_new_;
  10558. int
  10559. main ()
  10560. {
  10561. if ((ac__type_new_ *) 0)
  10562. return 0;
  10563. if (sizeof (ac__type_new_))
  10564. return 0;
  10565. ;
  10566. return 0;
  10567. }
  10568. _ACEOF
  10569. rm -f conftest.$ac_objext
  10570. if { (ac_try="$ac_compile"
  10571. case "(($ac_try" in
  10572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10573. *) ac_try_echo=$ac_try;;
  10574. esac
  10575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10576. (eval "$ac_compile") 2>conftest.er1
  10577. ac_status=$?
  10578. grep -v '^ *+' conftest.er1 >conftest.err
  10579. rm -f conftest.er1
  10580. cat conftest.err >&5
  10581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10582. (exit $ac_status); } && {
  10583. test -z "$ac_cxx_werror_flag" ||
  10584. test ! -s conftest.err
  10585. } && test -s conftest.$ac_objext; then
  10586. ac_cv_type_pthread_rwlock_t=yes
  10587. else
  10588. echo "$as_me: failed program was:" >&5
  10589. sed 's/^/| /' conftest.$ac_ext >&5
  10590. ac_cv_type_pthread_rwlock_t=no
  10591. fi
  10592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10593. fi
  10594. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  10595. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  10596. if test $ac_cv_type_pthread_rwlock_t = yes; then
  10597. cat >>confdefs.h <<\_ACEOF
  10598. #define HAVE_PTHREAD_RWLOCK 1
  10599. _ACEOF
  10600. fi
  10601. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  10602. cat >conftest.$ac_ext <<_ACEOF
  10603. /* confdefs.h. */
  10604. _ACEOF
  10605. cat confdefs.h >>conftest.$ac_ext
  10606. cat >>conftest.$ac_ext <<_ACEOF
  10607. /* end confdefs.h. */
  10608. #include <pthread.h>
  10609. int
  10610. main ()
  10611. {
  10612. #if __FreeBSD__ == 4
  10613. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  10614. #else
  10615. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  10616. return !x;
  10617. #endif
  10618. ;
  10619. return 0;
  10620. }
  10621. _ACEOF
  10622. rm -f conftest.$ac_objext
  10623. if { (ac_try="$ac_compile"
  10624. case "(($ac_try" in
  10625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10626. *) ac_try_echo=$ac_try;;
  10627. esac
  10628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10629. (eval "$ac_compile") 2>conftest.er1
  10630. ac_status=$?
  10631. grep -v '^ *+' conftest.er1 >conftest.err
  10632. rm -f conftest.er1
  10633. cat conftest.err >&5
  10634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10635. (exit $ac_status); } && {
  10636. test -z "$ac_cxx_werror_flag" ||
  10637. test ! -s conftest.err
  10638. } && test -s conftest.$ac_objext; then
  10639. cat >>confdefs.h <<\_ACEOF
  10640. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  10641. _ACEOF
  10642. else
  10643. echo "$as_me: failed program was:" >&5
  10644. sed 's/^/| /' conftest.$ac_ext >&5
  10645. fi
  10646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10647. fi
  10648. fi
  10649. fi
  10650. if test -z "$gl_have_pthread"; then
  10651. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  10652. gl_have_solaristhread=
  10653. gl_save_LIBS="$LIBS"
  10654. LIBS="$LIBS -lthread"
  10655. cat >conftest.$ac_ext <<_ACEOF
  10656. /* confdefs.h. */
  10657. _ACEOF
  10658. cat confdefs.h >>conftest.$ac_ext
  10659. cat >>conftest.$ac_ext <<_ACEOF
  10660. /* end confdefs.h. */
  10661. #include <thread.h>
  10662. #include <synch.h>
  10663. int
  10664. main ()
  10665. {
  10666. thr_self();
  10667. ;
  10668. return 0;
  10669. }
  10670. _ACEOF
  10671. rm -f conftest.$ac_objext conftest$ac_exeext
  10672. if { (ac_try="$ac_link"
  10673. case "(($ac_try" in
  10674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10675. *) ac_try_echo=$ac_try;;
  10676. esac
  10677. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10678. (eval "$ac_link") 2>conftest.er1
  10679. ac_status=$?
  10680. grep -v '^ *+' conftest.er1 >conftest.err
  10681. rm -f conftest.er1
  10682. cat conftest.err >&5
  10683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10684. (exit $ac_status); } && {
  10685. test -z "$ac_cxx_werror_flag" ||
  10686. test ! -s conftest.err
  10687. } && test -s conftest$ac_exeext &&
  10688. $as_test_x conftest$ac_exeext; then
  10689. gl_have_solaristhread=yes
  10690. else
  10691. echo "$as_me: failed program was:" >&5
  10692. sed 's/^/| /' conftest.$ac_ext >&5
  10693. fi
  10694. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10695. conftest$ac_exeext conftest.$ac_ext
  10696. LIBS="$gl_save_LIBS"
  10697. if test -n "$gl_have_solaristhread"; then
  10698. gl_threads_api=solaris
  10699. LIBTHREAD=-lthread
  10700. LTLIBTHREAD=-lthread
  10701. LIBMULTITHREAD="$LIBTHREAD"
  10702. LTLIBMULTITHREAD="$LTLIBTHREAD"
  10703. cat >>confdefs.h <<\_ACEOF
  10704. #define USE_SOLARIS_THREADS 1
  10705. _ACEOF
  10706. if test $gl_have_weak = yes; then
  10707. cat >>confdefs.h <<\_ACEOF
  10708. #define USE_SOLARIS_THREADS_WEAK 1
  10709. _ACEOF
  10710. LIBTHREAD=
  10711. LTLIBTHREAD=
  10712. fi
  10713. fi
  10714. fi
  10715. fi
  10716. if test "$gl_use_threads" = pth; then
  10717. gl_save_CPPFLAGS="$CPPFLAGS"
  10718. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  10719. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  10720. if test "${ac_cv_libpth_libs+set}" = set; then
  10721. echo $ECHO_N "(cached) $ECHO_C" >&6
  10722. else
  10723. use_additional=yes
  10724. acl_save_prefix="$prefix"
  10725. prefix="$acl_final_prefix"
  10726. acl_save_exec_prefix="$exec_prefix"
  10727. exec_prefix="$acl_final_exec_prefix"
  10728. eval additional_includedir=\"$includedir\"
  10729. eval additional_libdir=\"$libdir\"
  10730. exec_prefix="$acl_save_exec_prefix"
  10731. prefix="$acl_save_prefix"
  10732. # Check whether --with-libpth-prefix was given.
  10733. if test "${with_libpth_prefix+set}" = set; then
  10734. withval=$with_libpth_prefix;
  10735. if test "X$withval" = "Xno"; then
  10736. use_additional=no
  10737. else
  10738. if test "X$withval" = "X"; then
  10739. acl_save_prefix="$prefix"
  10740. prefix="$acl_final_prefix"
  10741. acl_save_exec_prefix="$exec_prefix"
  10742. exec_prefix="$acl_final_exec_prefix"
  10743. eval additional_includedir=\"$includedir\"
  10744. eval additional_libdir=\"$libdir\"
  10745. exec_prefix="$acl_save_exec_prefix"
  10746. prefix="$acl_save_prefix"
  10747. else
  10748. additional_includedir="$withval/include"
  10749. additional_libdir="$withval/$acl_libdirstem"
  10750. fi
  10751. fi
  10752. fi
  10753. LIBPTH=
  10754. LTLIBPTH=
  10755. INCPTH=
  10756. LIBPTH_PREFIX=
  10757. rpathdirs=
  10758. ltrpathdirs=
  10759. names_already_handled=
  10760. names_next_round='pth '
  10761. while test -n "$names_next_round"; do
  10762. names_this_round="$names_next_round"
  10763. names_next_round=
  10764. for name in $names_this_round; do
  10765. already_handled=
  10766. for n in $names_already_handled; do
  10767. if test "$n" = "$name"; then
  10768. already_handled=yes
  10769. break
  10770. fi
  10771. done
  10772. if test -z "$already_handled"; then
  10773. names_already_handled="$names_already_handled $name"
  10774. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  10775. eval value=\"\$HAVE_LIB$uppername\"
  10776. if test -n "$value"; then
  10777. if test "$value" = yes; then
  10778. eval value=\"\$LIB$uppername\"
  10779. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  10780. eval value=\"\$LTLIB$uppername\"
  10781. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  10782. else
  10783. :
  10784. fi
  10785. else
  10786. found_dir=
  10787. found_la=
  10788. found_so=
  10789. found_a=
  10790. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  10791. if test -n "$acl_shlibext"; then
  10792. shrext=".$acl_shlibext" # typically: shrext=.so
  10793. else
  10794. shrext=
  10795. fi
  10796. if test $use_additional = yes; then
  10797. dir="$additional_libdir"
  10798. if test -n "$acl_shlibext"; then
  10799. if test -f "$dir/$libname$shrext"; then
  10800. found_dir="$dir"
  10801. found_so="$dir/$libname$shrext"
  10802. else
  10803. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  10804. ver=`(cd "$dir" && \
  10805. for f in "$libname$shrext".*; do echo "$f"; done \
  10806. | sed -e "s,^$libname$shrext\\\\.,," \
  10807. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  10808. | sed 1q ) 2>/dev/null`
  10809. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  10810. found_dir="$dir"
  10811. found_so="$dir/$libname$shrext.$ver"
  10812. fi
  10813. else
  10814. eval library_names=\"$acl_library_names_spec\"
  10815. for f in $library_names; do
  10816. if test -f "$dir/$f"; then
  10817. found_dir="$dir"
  10818. found_so="$dir/$f"
  10819. break
  10820. fi
  10821. done
  10822. fi
  10823. fi
  10824. fi
  10825. if test "X$found_dir" = "X"; then
  10826. if test -f "$dir/$libname.$acl_libext"; then
  10827. found_dir="$dir"
  10828. found_a="$dir/$libname.$acl_libext"
  10829. fi
  10830. fi
  10831. if test "X$found_dir" != "X"; then
  10832. if test -f "$dir/$libname.la"; then
  10833. found_la="$dir/$libname.la"
  10834. fi
  10835. fi
  10836. fi
  10837. if test "X$found_dir" = "X"; then
  10838. for x in $LDFLAGS $LTLIBPTH; do
  10839. acl_save_prefix="$prefix"
  10840. prefix="$acl_final_prefix"
  10841. acl_save_exec_prefix="$exec_prefix"
  10842. exec_prefix="$acl_final_exec_prefix"
  10843. eval x=\"$x\"
  10844. exec_prefix="$acl_save_exec_prefix"
  10845. prefix="$acl_save_prefix"
  10846. case "$x" in
  10847. -L*)
  10848. dir=`echo "X$x" | sed -e 's/^X-L//'`
  10849. if test -n "$acl_shlibext"; then
  10850. if test -f "$dir/$libname$shrext"; then
  10851. found_dir="$dir"
  10852. found_so="$dir/$libname$shrext"
  10853. else
  10854. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  10855. ver=`(cd "$dir" && \
  10856. for f in "$libname$shrext".*; do echo "$f"; done \
  10857. | sed -e "s,^$libname$shrext\\\\.,," \
  10858. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  10859. | sed 1q ) 2>/dev/null`
  10860. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  10861. found_dir="$dir"
  10862. found_so="$dir/$libname$shrext.$ver"
  10863. fi
  10864. else
  10865. eval library_names=\"$acl_library_names_spec\"
  10866. for f in $library_names; do
  10867. if test -f "$dir/$f"; then
  10868. found_dir="$dir"
  10869. found_so="$dir/$f"
  10870. break
  10871. fi
  10872. done
  10873. fi
  10874. fi
  10875. fi
  10876. if test "X$found_dir" = "X"; then
  10877. if test -f "$dir/$libname.$acl_libext"; then
  10878. found_dir="$dir"
  10879. found_a="$dir/$libname.$acl_libext"
  10880. fi
  10881. fi
  10882. if test "X$found_dir" != "X"; then
  10883. if test -f "$dir/$libname.la"; then
  10884. found_la="$dir/$libname.la"
  10885. fi
  10886. fi
  10887. ;;
  10888. esac
  10889. if test "X$found_dir" != "X"; then
  10890. break
  10891. fi
  10892. done
  10893. fi
  10894. if test "X$found_dir" != "X"; then
  10895. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  10896. if test "X$found_so" != "X"; then
  10897. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  10898. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10899. else
  10900. haveit=
  10901. for x in $ltrpathdirs; do
  10902. if test "X$x" = "X$found_dir"; then
  10903. haveit=yes
  10904. break
  10905. fi
  10906. done
  10907. if test -z "$haveit"; then
  10908. ltrpathdirs="$ltrpathdirs $found_dir"
  10909. fi
  10910. if test "$acl_hardcode_direct" = yes; then
  10911. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10912. else
  10913. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  10914. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10915. haveit=
  10916. for x in $rpathdirs; do
  10917. if test "X$x" = "X$found_dir"; then
  10918. haveit=yes
  10919. break
  10920. fi
  10921. done
  10922. if test -z "$haveit"; then
  10923. rpathdirs="$rpathdirs $found_dir"
  10924. fi
  10925. else
  10926. haveit=
  10927. for x in $LDFLAGS $LIBPTH; do
  10928. acl_save_prefix="$prefix"
  10929. prefix="$acl_final_prefix"
  10930. acl_save_exec_prefix="$exec_prefix"
  10931. exec_prefix="$acl_final_exec_prefix"
  10932. eval x=\"$x\"
  10933. exec_prefix="$acl_save_exec_prefix"
  10934. prefix="$acl_save_prefix"
  10935. if test "X$x" = "X-L$found_dir"; then
  10936. haveit=yes
  10937. break
  10938. fi
  10939. done
  10940. if test -z "$haveit"; then
  10941. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  10942. fi
  10943. if test "$acl_hardcode_minus_L" != no; then
  10944. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  10945. else
  10946. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  10947. fi
  10948. fi
  10949. fi
  10950. fi
  10951. else
  10952. if test "X$found_a" != "X"; then
  10953. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  10954. else
  10955. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  10956. fi
  10957. fi
  10958. additional_includedir=
  10959. case "$found_dir" in
  10960. */$acl_libdirstem | */$acl_libdirstem/)
  10961. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  10962. LIBPTH_PREFIX="$basedir"
  10963. additional_includedir="$basedir/include"
  10964. ;;
  10965. esac
  10966. if test "X$additional_includedir" != "X"; then
  10967. if test "X$additional_includedir" != "X/usr/include"; then
  10968. haveit=
  10969. if test "X$additional_includedir" = "X/usr/local/include"; then
  10970. if test -n "$GCC"; then
  10971. case $host_os in
  10972. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  10973. esac
  10974. fi
  10975. fi
  10976. if test -z "$haveit"; then
  10977. for x in $CPPFLAGS $INCPTH; do
  10978. acl_save_prefix="$prefix"
  10979. prefix="$acl_final_prefix"
  10980. acl_save_exec_prefix="$exec_prefix"
  10981. exec_prefix="$acl_final_exec_prefix"
  10982. eval x=\"$x\"
  10983. exec_prefix="$acl_save_exec_prefix"
  10984. prefix="$acl_save_prefix"
  10985. if test "X$x" = "X-I$additional_includedir"; then
  10986. haveit=yes
  10987. break
  10988. fi
  10989. done
  10990. if test -z "$haveit"; then
  10991. if test -d "$additional_includedir"; then
  10992. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  10993. fi
  10994. fi
  10995. fi
  10996. fi
  10997. fi
  10998. if test -n "$found_la"; then
  10999. save_libdir="$libdir"
  11000. case "$found_la" in
  11001. */* | *\\*) . "$found_la" ;;
  11002. *) . "./$found_la" ;;
  11003. esac
  11004. libdir="$save_libdir"
  11005. for dep in $dependency_libs; do
  11006. case "$dep" in
  11007. -L*)
  11008. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11009. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11010. haveit=
  11011. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11012. if test -n "$GCC"; then
  11013. case $host_os in
  11014. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11015. esac
  11016. fi
  11017. fi
  11018. if test -z "$haveit"; then
  11019. haveit=
  11020. for x in $LDFLAGS $LIBPTH; do
  11021. acl_save_prefix="$prefix"
  11022. prefix="$acl_final_prefix"
  11023. acl_save_exec_prefix="$exec_prefix"
  11024. exec_prefix="$acl_final_exec_prefix"
  11025. eval x=\"$x\"
  11026. exec_prefix="$acl_save_exec_prefix"
  11027. prefix="$acl_save_prefix"
  11028. if test "X$x" = "X-L$additional_libdir"; then
  11029. haveit=yes
  11030. break
  11031. fi
  11032. done
  11033. if test -z "$haveit"; then
  11034. if test -d "$additional_libdir"; then
  11035. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  11036. fi
  11037. fi
  11038. haveit=
  11039. for x in $LDFLAGS $LTLIBPTH; do
  11040. acl_save_prefix="$prefix"
  11041. prefix="$acl_final_prefix"
  11042. acl_save_exec_prefix="$exec_prefix"
  11043. exec_prefix="$acl_final_exec_prefix"
  11044. eval x=\"$x\"
  11045. exec_prefix="$acl_save_exec_prefix"
  11046. prefix="$acl_save_prefix"
  11047. if test "X$x" = "X-L$additional_libdir"; then
  11048. haveit=yes
  11049. break
  11050. fi
  11051. done
  11052. if test -z "$haveit"; then
  11053. if test -d "$additional_libdir"; then
  11054. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  11055. fi
  11056. fi
  11057. fi
  11058. fi
  11059. ;;
  11060. -R*)
  11061. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11062. if test "$enable_rpath" != no; then
  11063. haveit=
  11064. for x in $rpathdirs; do
  11065. if test "X$x" = "X$dir"; then
  11066. haveit=yes
  11067. break
  11068. fi
  11069. done
  11070. if test -z "$haveit"; then
  11071. rpathdirs="$rpathdirs $dir"
  11072. fi
  11073. haveit=
  11074. for x in $ltrpathdirs; do
  11075. if test "X$x" = "X$dir"; then
  11076. haveit=yes
  11077. break
  11078. fi
  11079. done
  11080. if test -z "$haveit"; then
  11081. ltrpathdirs="$ltrpathdirs $dir"
  11082. fi
  11083. fi
  11084. ;;
  11085. -l*)
  11086. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11087. ;;
  11088. *.la)
  11089. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11090. ;;
  11091. *)
  11092. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  11093. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  11094. ;;
  11095. esac
  11096. done
  11097. fi
  11098. else
  11099. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  11100. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  11101. fi
  11102. fi
  11103. fi
  11104. done
  11105. done
  11106. if test "X$rpathdirs" != "X"; then
  11107. if test -n "$acl_hardcode_libdir_separator"; then
  11108. alldirs=
  11109. for found_dir in $rpathdirs; do
  11110. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11111. done
  11112. acl_save_libdir="$libdir"
  11113. libdir="$alldirs"
  11114. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11115. libdir="$acl_save_libdir"
  11116. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11117. else
  11118. for found_dir in $rpathdirs; do
  11119. acl_save_libdir="$libdir"
  11120. libdir="$found_dir"
  11121. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11122. libdir="$acl_save_libdir"
  11123. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  11124. done
  11125. fi
  11126. fi
  11127. if test "X$ltrpathdirs" != "X"; then
  11128. for found_dir in $ltrpathdirs; do
  11129. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  11130. done
  11131. fi
  11132. ac_cv_libpth_libs="$LIBPTH"
  11133. ac_cv_libpth_ltlibs="$LTLIBPTH"
  11134. ac_cv_libpth_cppflags="$INCPTH"
  11135. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  11136. fi
  11137. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  11138. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  11139. LIBPTH="$ac_cv_libpth_libs"
  11140. LTLIBPTH="$ac_cv_libpth_ltlibs"
  11141. INCPTH="$ac_cv_libpth_cppflags"
  11142. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  11143. for element in $INCPTH; do
  11144. haveit=
  11145. for x in $CPPFLAGS; do
  11146. acl_save_prefix="$prefix"
  11147. prefix="$acl_final_prefix"
  11148. acl_save_exec_prefix="$exec_prefix"
  11149. exec_prefix="$acl_final_exec_prefix"
  11150. eval x=\"$x\"
  11151. exec_prefix="$acl_save_exec_prefix"
  11152. prefix="$acl_save_prefix"
  11153. if test "X$x" = "X$element"; then
  11154. haveit=yes
  11155. break
  11156. fi
  11157. done
  11158. if test -z "$haveit"; then
  11159. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  11160. fi
  11161. done
  11162. HAVE_LIBPTH=yes
  11163. gl_have_pth=
  11164. gl_save_LIBS="$LIBS"
  11165. LIBS="$LIBS -lpth"
  11166. cat >conftest.$ac_ext <<_ACEOF
  11167. /* confdefs.h. */
  11168. _ACEOF
  11169. cat confdefs.h >>conftest.$ac_ext
  11170. cat >>conftest.$ac_ext <<_ACEOF
  11171. /* end confdefs.h. */
  11172. #include <pth.h>
  11173. int
  11174. main ()
  11175. {
  11176. pth_self();
  11177. ;
  11178. return 0;
  11179. }
  11180. _ACEOF
  11181. rm -f conftest.$ac_objext conftest$ac_exeext
  11182. if { (ac_try="$ac_link"
  11183. case "(($ac_try" in
  11184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11185. *) ac_try_echo=$ac_try;;
  11186. esac
  11187. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11188. (eval "$ac_link") 2>conftest.er1
  11189. ac_status=$?
  11190. grep -v '^ *+' conftest.er1 >conftest.err
  11191. rm -f conftest.er1
  11192. cat conftest.err >&5
  11193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11194. (exit $ac_status); } && {
  11195. test -z "$ac_cxx_werror_flag" ||
  11196. test ! -s conftest.err
  11197. } && test -s conftest$ac_exeext &&
  11198. $as_test_x conftest$ac_exeext; then
  11199. gl_have_pth=yes
  11200. else
  11201. echo "$as_me: failed program was:" >&5
  11202. sed 's/^/| /' conftest.$ac_ext >&5
  11203. fi
  11204. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11205. conftest$ac_exeext conftest.$ac_ext
  11206. LIBS="$gl_save_LIBS"
  11207. if test -n "$gl_have_pth"; then
  11208. gl_threads_api=pth
  11209. LIBTHREAD="$LIBPTH"
  11210. LTLIBTHREAD="$LTLIBPTH"
  11211. LIBMULTITHREAD="$LIBTHREAD"
  11212. LTLIBMULTITHREAD="$LTLIBTHREAD"
  11213. cat >>confdefs.h <<\_ACEOF
  11214. #define USE_PTH_THREADS 1
  11215. _ACEOF
  11216. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11217. if test $gl_have_weak = yes; then
  11218. cat >>confdefs.h <<\_ACEOF
  11219. #define USE_PTH_THREADS_WEAK 1
  11220. _ACEOF
  11221. LIBTHREAD=
  11222. LTLIBTHREAD=
  11223. fi
  11224. fi
  11225. else
  11226. CPPFLAGS="$gl_save_CPPFLAGS"
  11227. fi
  11228. fi
  11229. if test -z "$gl_have_pthread"; then
  11230. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  11231. if { case "$host_os" in
  11232. mingw*) true;;
  11233. *) false;;
  11234. esac
  11235. }; then
  11236. gl_threads_api=win32
  11237. cat >>confdefs.h <<\_ACEOF
  11238. #define USE_WIN32_THREADS 1
  11239. _ACEOF
  11240. fi
  11241. fi
  11242. fi
  11243. fi
  11244. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  11245. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  11246. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  11247. echo "${ECHO_T}$gl_threads_api" >&6; }
  11248. use_additional=yes
  11249. acl_save_prefix="$prefix"
  11250. prefix="$acl_final_prefix"
  11251. acl_save_exec_prefix="$exec_prefix"
  11252. exec_prefix="$acl_final_exec_prefix"
  11253. eval additional_includedir=\"$includedir\"
  11254. eval additional_libdir=\"$libdir\"
  11255. exec_prefix="$acl_save_exec_prefix"
  11256. prefix="$acl_save_prefix"
  11257. # Check whether --with-libiconv-prefix was given.
  11258. if test "${with_libiconv_prefix+set}" = set; then
  11259. withval=$with_libiconv_prefix;
  11260. if test "X$withval" = "Xno"; then
  11261. use_additional=no
  11262. else
  11263. if test "X$withval" = "X"; then
  11264. acl_save_prefix="$prefix"
  11265. prefix="$acl_final_prefix"
  11266. acl_save_exec_prefix="$exec_prefix"
  11267. exec_prefix="$acl_final_exec_prefix"
  11268. eval additional_includedir=\"$includedir\"
  11269. eval additional_libdir=\"$libdir\"
  11270. exec_prefix="$acl_save_exec_prefix"
  11271. prefix="$acl_save_prefix"
  11272. else
  11273. additional_includedir="$withval/include"
  11274. additional_libdir="$withval/$acl_libdirstem"
  11275. fi
  11276. fi
  11277. fi
  11278. LIBICONV=
  11279. LTLIBICONV=
  11280. INCICONV=
  11281. LIBICONV_PREFIX=
  11282. rpathdirs=
  11283. ltrpathdirs=
  11284. names_already_handled=
  11285. names_next_round='iconv '
  11286. while test -n "$names_next_round"; do
  11287. names_this_round="$names_next_round"
  11288. names_next_round=
  11289. for name in $names_this_round; do
  11290. already_handled=
  11291. for n in $names_already_handled; do
  11292. if test "$n" = "$name"; then
  11293. already_handled=yes
  11294. break
  11295. fi
  11296. done
  11297. if test -z "$already_handled"; then
  11298. names_already_handled="$names_already_handled $name"
  11299. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  11300. eval value=\"\$HAVE_LIB$uppername\"
  11301. if test -n "$value"; then
  11302. if test "$value" = yes; then
  11303. eval value=\"\$LIB$uppername\"
  11304. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  11305. eval value=\"\$LTLIB$uppername\"
  11306. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  11307. else
  11308. :
  11309. fi
  11310. else
  11311. found_dir=
  11312. found_la=
  11313. found_so=
  11314. found_a=
  11315. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  11316. if test -n "$acl_shlibext"; then
  11317. shrext=".$acl_shlibext" # typically: shrext=.so
  11318. else
  11319. shrext=
  11320. fi
  11321. if test $use_additional = yes; then
  11322. dir="$additional_libdir"
  11323. if test -n "$acl_shlibext"; then
  11324. if test -f "$dir/$libname$shrext"; then
  11325. found_dir="$dir"
  11326. found_so="$dir/$libname$shrext"
  11327. else
  11328. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11329. ver=`(cd "$dir" && \
  11330. for f in "$libname$shrext".*; do echo "$f"; done \
  11331. | sed -e "s,^$libname$shrext\\\\.,," \
  11332. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11333. | sed 1q ) 2>/dev/null`
  11334. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11335. found_dir="$dir"
  11336. found_so="$dir/$libname$shrext.$ver"
  11337. fi
  11338. else
  11339. eval library_names=\"$acl_library_names_spec\"
  11340. for f in $library_names; do
  11341. if test -f "$dir/$f"; then
  11342. found_dir="$dir"
  11343. found_so="$dir/$f"
  11344. break
  11345. fi
  11346. done
  11347. fi
  11348. fi
  11349. fi
  11350. if test "X$found_dir" = "X"; then
  11351. if test -f "$dir/$libname.$acl_libext"; then
  11352. found_dir="$dir"
  11353. found_a="$dir/$libname.$acl_libext"
  11354. fi
  11355. fi
  11356. if test "X$found_dir" != "X"; then
  11357. if test -f "$dir/$libname.la"; then
  11358. found_la="$dir/$libname.la"
  11359. fi
  11360. fi
  11361. fi
  11362. if test "X$found_dir" = "X"; then
  11363. for x in $LDFLAGS $LTLIBICONV; do
  11364. acl_save_prefix="$prefix"
  11365. prefix="$acl_final_prefix"
  11366. acl_save_exec_prefix="$exec_prefix"
  11367. exec_prefix="$acl_final_exec_prefix"
  11368. eval x=\"$x\"
  11369. exec_prefix="$acl_save_exec_prefix"
  11370. prefix="$acl_save_prefix"
  11371. case "$x" in
  11372. -L*)
  11373. dir=`echo "X$x" | sed -e 's/^X-L//'`
  11374. if test -n "$acl_shlibext"; then
  11375. if test -f "$dir/$libname$shrext"; then
  11376. found_dir="$dir"
  11377. found_so="$dir/$libname$shrext"
  11378. else
  11379. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  11380. ver=`(cd "$dir" && \
  11381. for f in "$libname$shrext".*; do echo "$f"; done \
  11382. | sed -e "s,^$libname$shrext\\\\.,," \
  11383. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  11384. | sed 1q ) 2>/dev/null`
  11385. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  11386. found_dir="$dir"
  11387. found_so="$dir/$libname$shrext.$ver"
  11388. fi
  11389. else
  11390. eval library_names=\"$acl_library_names_spec\"
  11391. for f in $library_names; do
  11392. if test -f "$dir/$f"; then
  11393. found_dir="$dir"
  11394. found_so="$dir/$f"
  11395. break
  11396. fi
  11397. done
  11398. fi
  11399. fi
  11400. fi
  11401. if test "X$found_dir" = "X"; then
  11402. if test -f "$dir/$libname.$acl_libext"; then
  11403. found_dir="$dir"
  11404. found_a="$dir/$libname.$acl_libext"
  11405. fi
  11406. fi
  11407. if test "X$found_dir" != "X"; then
  11408. if test -f "$dir/$libname.la"; then
  11409. found_la="$dir/$libname.la"
  11410. fi
  11411. fi
  11412. ;;
  11413. esac
  11414. if test "X$found_dir" != "X"; then
  11415. break
  11416. fi
  11417. done
  11418. fi
  11419. if test "X$found_dir" != "X"; then
  11420. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  11421. if test "X$found_so" != "X"; then
  11422. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  11423. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11424. else
  11425. haveit=
  11426. for x in $ltrpathdirs; do
  11427. if test "X$x" = "X$found_dir"; then
  11428. haveit=yes
  11429. break
  11430. fi
  11431. done
  11432. if test -z "$haveit"; then
  11433. ltrpathdirs="$ltrpathdirs $found_dir"
  11434. fi
  11435. if test "$acl_hardcode_direct" = yes; then
  11436. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11437. else
  11438. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  11439. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11440. haveit=
  11441. for x in $rpathdirs; do
  11442. if test "X$x" = "X$found_dir"; then
  11443. haveit=yes
  11444. break
  11445. fi
  11446. done
  11447. if test -z "$haveit"; then
  11448. rpathdirs="$rpathdirs $found_dir"
  11449. fi
  11450. else
  11451. haveit=
  11452. for x in $LDFLAGS $LIBICONV; do
  11453. acl_save_prefix="$prefix"
  11454. prefix="$acl_final_prefix"
  11455. acl_save_exec_prefix="$exec_prefix"
  11456. exec_prefix="$acl_final_exec_prefix"
  11457. eval x=\"$x\"
  11458. exec_prefix="$acl_save_exec_prefix"
  11459. prefix="$acl_save_prefix"
  11460. if test "X$x" = "X-L$found_dir"; then
  11461. haveit=yes
  11462. break
  11463. fi
  11464. done
  11465. if test -z "$haveit"; then
  11466. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  11467. fi
  11468. if test "$acl_hardcode_minus_L" != no; then
  11469. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  11470. else
  11471. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11472. fi
  11473. fi
  11474. fi
  11475. fi
  11476. else
  11477. if test "X$found_a" != "X"; then
  11478. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  11479. else
  11480. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  11481. fi
  11482. fi
  11483. additional_includedir=
  11484. case "$found_dir" in
  11485. */$acl_libdirstem | */$acl_libdirstem/)
  11486. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  11487. LIBICONV_PREFIX="$basedir"
  11488. additional_includedir="$basedir/include"
  11489. ;;
  11490. esac
  11491. if test "X$additional_includedir" != "X"; then
  11492. if test "X$additional_includedir" != "X/usr/include"; then
  11493. haveit=
  11494. if test "X$additional_includedir" = "X/usr/local/include"; then
  11495. if test -n "$GCC"; then
  11496. case $host_os in
  11497. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11498. esac
  11499. fi
  11500. fi
  11501. if test -z "$haveit"; then
  11502. for x in $CPPFLAGS $INCICONV; do
  11503. acl_save_prefix="$prefix"
  11504. prefix="$acl_final_prefix"
  11505. acl_save_exec_prefix="$exec_prefix"
  11506. exec_prefix="$acl_final_exec_prefix"
  11507. eval x=\"$x\"
  11508. exec_prefix="$acl_save_exec_prefix"
  11509. prefix="$acl_save_prefix"
  11510. if test "X$x" = "X-I$additional_includedir"; then
  11511. haveit=yes
  11512. break
  11513. fi
  11514. done
  11515. if test -z "$haveit"; then
  11516. if test -d "$additional_includedir"; then
  11517. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  11518. fi
  11519. fi
  11520. fi
  11521. fi
  11522. fi
  11523. if test -n "$found_la"; then
  11524. save_libdir="$libdir"
  11525. case "$found_la" in
  11526. */* | *\\*) . "$found_la" ;;
  11527. *) . "./$found_la" ;;
  11528. esac
  11529. libdir="$save_libdir"
  11530. for dep in $dependency_libs; do
  11531. case "$dep" in
  11532. -L*)
  11533. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  11534. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  11535. haveit=
  11536. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  11537. if test -n "$GCC"; then
  11538. case $host_os in
  11539. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  11540. esac
  11541. fi
  11542. fi
  11543. if test -z "$haveit"; then
  11544. haveit=
  11545. for x in $LDFLAGS $LIBICONV; do
  11546. acl_save_prefix="$prefix"
  11547. prefix="$acl_final_prefix"
  11548. acl_save_exec_prefix="$exec_prefix"
  11549. exec_prefix="$acl_final_exec_prefix"
  11550. eval x=\"$x\"
  11551. exec_prefix="$acl_save_exec_prefix"
  11552. prefix="$acl_save_prefix"
  11553. if test "X$x" = "X-L$additional_libdir"; then
  11554. haveit=yes
  11555. break
  11556. fi
  11557. done
  11558. if test -z "$haveit"; then
  11559. if test -d "$additional_libdir"; then
  11560. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  11561. fi
  11562. fi
  11563. haveit=
  11564. for x in $LDFLAGS $LTLIBICONV; do
  11565. acl_save_prefix="$prefix"
  11566. prefix="$acl_final_prefix"
  11567. acl_save_exec_prefix="$exec_prefix"
  11568. exec_prefix="$acl_final_exec_prefix"
  11569. eval x=\"$x\"
  11570. exec_prefix="$acl_save_exec_prefix"
  11571. prefix="$acl_save_prefix"
  11572. if test "X$x" = "X-L$additional_libdir"; then
  11573. haveit=yes
  11574. break
  11575. fi
  11576. done
  11577. if test -z "$haveit"; then
  11578. if test -d "$additional_libdir"; then
  11579. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  11580. fi
  11581. fi
  11582. fi
  11583. fi
  11584. ;;
  11585. -R*)
  11586. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  11587. if test "$enable_rpath" != no; then
  11588. haveit=
  11589. for x in $rpathdirs; do
  11590. if test "X$x" = "X$dir"; then
  11591. haveit=yes
  11592. break
  11593. fi
  11594. done
  11595. if test -z "$haveit"; then
  11596. rpathdirs="$rpathdirs $dir"
  11597. fi
  11598. haveit=
  11599. for x in $ltrpathdirs; do
  11600. if test "X$x" = "X$dir"; then
  11601. haveit=yes
  11602. break
  11603. fi
  11604. done
  11605. if test -z "$haveit"; then
  11606. ltrpathdirs="$ltrpathdirs $dir"
  11607. fi
  11608. fi
  11609. ;;
  11610. -l*)
  11611. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  11612. ;;
  11613. *.la)
  11614. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  11615. ;;
  11616. *)
  11617. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  11618. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  11619. ;;
  11620. esac
  11621. done
  11622. fi
  11623. else
  11624. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  11625. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  11626. fi
  11627. fi
  11628. fi
  11629. done
  11630. done
  11631. if test "X$rpathdirs" != "X"; then
  11632. if test -n "$acl_hardcode_libdir_separator"; then
  11633. alldirs=
  11634. for found_dir in $rpathdirs; do
  11635. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  11636. done
  11637. acl_save_libdir="$libdir"
  11638. libdir="$alldirs"
  11639. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11640. libdir="$acl_save_libdir"
  11641. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11642. else
  11643. for found_dir in $rpathdirs; do
  11644. acl_save_libdir="$libdir"
  11645. libdir="$found_dir"
  11646. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  11647. libdir="$acl_save_libdir"
  11648. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  11649. done
  11650. fi
  11651. fi
  11652. if test "X$ltrpathdirs" != "X"; then
  11653. for found_dir in $ltrpathdirs; do
  11654. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  11655. done
  11656. fi
  11657. cat >conftest.$ac_ext <<_ACEOF
  11658. /* confdefs.h. */
  11659. _ACEOF
  11660. cat confdefs.h >>conftest.$ac_ext
  11661. cat >>conftest.$ac_ext <<_ACEOF
  11662. /* end confdefs.h. */
  11663. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  11664. int
  11665. main ()
  11666. {
  11667. ;
  11668. return 0;
  11669. }
  11670. _ACEOF
  11671. rm -f conftest.$ac_objext conftest$ac_exeext
  11672. if { (ac_try="$ac_link"
  11673. case "(($ac_try" in
  11674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11675. *) ac_try_echo=$ac_try;;
  11676. esac
  11677. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11678. (eval "$ac_link") 2>conftest.er1
  11679. ac_status=$?
  11680. grep -v '^ *+' conftest.er1 >conftest.err
  11681. rm -f conftest.er1
  11682. cat conftest.err >&5
  11683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11684. (exit $ac_status); } && {
  11685. test -z "$ac_cxx_werror_flag" ||
  11686. test ! -s conftest.err
  11687. } && test -s conftest$ac_exeext &&
  11688. $as_test_x conftest$ac_exeext; then
  11689. cat >>confdefs.h <<\_ACEOF
  11690. #define HAVE_BUILTIN_EXPECT 1
  11691. _ACEOF
  11692. else
  11693. echo "$as_me: failed program was:" >&5
  11694. sed 's/^/| /' conftest.$ac_ext >&5
  11695. fi
  11696. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11697. conftest$ac_exeext conftest.$ac_ext
  11698. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  11699. do
  11700. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11701. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11702. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11703. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11704. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11705. echo $ECHO_N "(cached) $ECHO_C" >&6
  11706. fi
  11707. ac_res=`eval echo '${'$as_ac_Header'}'`
  11708. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11709. echo "${ECHO_T}$ac_res" >&6; }
  11710. else
  11711. # Is the header compilable?
  11712. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11713. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  11714. cat >conftest.$ac_ext <<_ACEOF
  11715. /* confdefs.h. */
  11716. _ACEOF
  11717. cat confdefs.h >>conftest.$ac_ext
  11718. cat >>conftest.$ac_ext <<_ACEOF
  11719. /* end confdefs.h. */
  11720. $ac_includes_default
  11721. #include <$ac_header>
  11722. _ACEOF
  11723. rm -f conftest.$ac_objext
  11724. if { (ac_try="$ac_compile"
  11725. case "(($ac_try" in
  11726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11727. *) ac_try_echo=$ac_try;;
  11728. esac
  11729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11730. (eval "$ac_compile") 2>conftest.er1
  11731. ac_status=$?
  11732. grep -v '^ *+' conftest.er1 >conftest.err
  11733. rm -f conftest.er1
  11734. cat conftest.err >&5
  11735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11736. (exit $ac_status); } && {
  11737. test -z "$ac_cxx_werror_flag" ||
  11738. test ! -s conftest.err
  11739. } && test -s conftest.$ac_objext; then
  11740. ac_header_compiler=yes
  11741. else
  11742. echo "$as_me: failed program was:" >&5
  11743. sed 's/^/| /' conftest.$ac_ext >&5
  11744. ac_header_compiler=no
  11745. fi
  11746. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11747. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11748. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11749. # Is the header present?
  11750. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11751. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  11752. cat >conftest.$ac_ext <<_ACEOF
  11753. /* confdefs.h. */
  11754. _ACEOF
  11755. cat confdefs.h >>conftest.$ac_ext
  11756. cat >>conftest.$ac_ext <<_ACEOF
  11757. /* end confdefs.h. */
  11758. #include <$ac_header>
  11759. _ACEOF
  11760. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11761. case "(($ac_try" in
  11762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11763. *) ac_try_echo=$ac_try;;
  11764. esac
  11765. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11766. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11767. ac_status=$?
  11768. grep -v '^ *+' conftest.er1 >conftest.err
  11769. rm -f conftest.er1
  11770. cat conftest.err >&5
  11771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11772. (exit $ac_status); } >/dev/null && {
  11773. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11774. test ! -s conftest.err
  11775. }; then
  11776. ac_header_preproc=yes
  11777. else
  11778. echo "$as_me: failed program was:" >&5
  11779. sed 's/^/| /' conftest.$ac_ext >&5
  11780. ac_header_preproc=no
  11781. fi
  11782. rm -f conftest.err conftest.$ac_ext
  11783. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11784. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11785. # So? What about this header?
  11786. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11787. yes:no: )
  11788. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11789. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11790. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11791. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11792. ac_header_preproc=yes
  11793. ;;
  11794. no:yes:* )
  11795. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11796. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11797. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11798. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11799. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11800. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11801. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11802. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11803. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11804. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11805. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11806. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11807. ( cat <<\_ASBOX
  11808. ## ----------------------------------------------- ##
  11809. ## Report this to t-tujikawa@users.sourceforge.net ##
  11810. ## ----------------------------------------------- ##
  11811. _ASBOX
  11812. ) | sed "s/^/$as_me: WARNING: /" >&2
  11813. ;;
  11814. esac
  11815. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11816. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11817. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11818. echo $ECHO_N "(cached) $ECHO_C" >&6
  11819. else
  11820. eval "$as_ac_Header=\$ac_header_preproc"
  11821. fi
  11822. ac_res=`eval echo '${'$as_ac_Header'}'`
  11823. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11824. echo "${ECHO_T}$ac_res" >&6; }
  11825. fi
  11826. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11827. cat >>confdefs.h <<_ACEOF
  11828. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11829. _ACEOF
  11830. fi
  11831. done
  11832. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  11833. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  11834. argz_next __fsetlocking
  11835. do
  11836. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11837. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11838. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11839. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11840. echo $ECHO_N "(cached) $ECHO_C" >&6
  11841. else
  11842. cat >conftest.$ac_ext <<_ACEOF
  11843. /* confdefs.h. */
  11844. _ACEOF
  11845. cat confdefs.h >>conftest.$ac_ext
  11846. cat >>conftest.$ac_ext <<_ACEOF
  11847. /* end confdefs.h. */
  11848. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11849. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11850. #define $ac_func innocuous_$ac_func
  11851. /* System header to define __stub macros and hopefully few prototypes,
  11852. which can conflict with char $ac_func (); below.
  11853. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11854. <limits.h> exists even on freestanding compilers. */
  11855. #ifdef __STDC__
  11856. # include <limits.h>
  11857. #else
  11858. # include <assert.h>
  11859. #endif
  11860. #undef $ac_func
  11861. /* Override any GCC internal prototype to avoid an error.
  11862. Use char because int might match the return type of a GCC
  11863. builtin and then its argument prototype would still apply. */
  11864. #ifdef __cplusplus
  11865. extern "C"
  11866. #endif
  11867. char $ac_func ();
  11868. /* The GNU C library defines this for functions which it implements
  11869. to always fail with ENOSYS. Some functions are actually named
  11870. something starting with __ and the normal name is an alias. */
  11871. #if defined __stub_$ac_func || defined __stub___$ac_func
  11872. choke me
  11873. #endif
  11874. int
  11875. main ()
  11876. {
  11877. return $ac_func ();
  11878. ;
  11879. return 0;
  11880. }
  11881. _ACEOF
  11882. rm -f conftest.$ac_objext conftest$ac_exeext
  11883. if { (ac_try="$ac_link"
  11884. case "(($ac_try" in
  11885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11886. *) ac_try_echo=$ac_try;;
  11887. esac
  11888. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11889. (eval "$ac_link") 2>conftest.er1
  11890. ac_status=$?
  11891. grep -v '^ *+' conftest.er1 >conftest.err
  11892. rm -f conftest.er1
  11893. cat conftest.err >&5
  11894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11895. (exit $ac_status); } && {
  11896. test -z "$ac_cxx_werror_flag" ||
  11897. test ! -s conftest.err
  11898. } && test -s conftest$ac_exeext &&
  11899. $as_test_x conftest$ac_exeext; then
  11900. eval "$as_ac_var=yes"
  11901. else
  11902. echo "$as_me: failed program was:" >&5
  11903. sed 's/^/| /' conftest.$ac_ext >&5
  11904. eval "$as_ac_var=no"
  11905. fi
  11906. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11907. conftest$ac_exeext conftest.$ac_ext
  11908. fi
  11909. ac_res=`eval echo '${'$as_ac_var'}'`
  11910. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11911. echo "${ECHO_T}$ac_res" >&6; }
  11912. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11913. cat >>confdefs.h <<_ACEOF
  11914. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11915. _ACEOF
  11916. fi
  11917. done
  11918. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  11919. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  11920. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  11921. echo $ECHO_N "(cached) $ECHO_C" >&6
  11922. else
  11923. cat >conftest.$ac_ext <<_ACEOF
  11924. /* confdefs.h. */
  11925. _ACEOF
  11926. cat confdefs.h >>conftest.$ac_ext
  11927. cat >>conftest.$ac_ext <<_ACEOF
  11928. /* end confdefs.h. */
  11929. #include <stdio.h>
  11930. int
  11931. main ()
  11932. {
  11933. #ifndef feof_unlocked
  11934. char *p = (char *) feof_unlocked;
  11935. #endif
  11936. ;
  11937. return 0;
  11938. }
  11939. _ACEOF
  11940. rm -f conftest.$ac_objext
  11941. if { (ac_try="$ac_compile"
  11942. case "(($ac_try" in
  11943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11944. *) ac_try_echo=$ac_try;;
  11945. esac
  11946. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11947. (eval "$ac_compile") 2>conftest.er1
  11948. ac_status=$?
  11949. grep -v '^ *+' conftest.er1 >conftest.err
  11950. rm -f conftest.er1
  11951. cat conftest.err >&5
  11952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11953. (exit $ac_status); } && {
  11954. test -z "$ac_cxx_werror_flag" ||
  11955. test ! -s conftest.err
  11956. } && test -s conftest.$ac_objext; then
  11957. ac_cv_have_decl_feof_unlocked=yes
  11958. else
  11959. echo "$as_me: failed program was:" >&5
  11960. sed 's/^/| /' conftest.$ac_ext >&5
  11961. ac_cv_have_decl_feof_unlocked=no
  11962. fi
  11963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11964. fi
  11965. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  11966. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  11967. if test $ac_cv_have_decl_feof_unlocked = yes; then
  11968. gt_value=1
  11969. else
  11970. gt_value=0
  11971. fi
  11972. cat >>confdefs.h <<_ACEOF
  11973. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  11974. _ACEOF
  11975. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  11976. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  11977. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  11978. echo $ECHO_N "(cached) $ECHO_C" >&6
  11979. else
  11980. cat >conftest.$ac_ext <<_ACEOF
  11981. /* confdefs.h. */
  11982. _ACEOF
  11983. cat confdefs.h >>conftest.$ac_ext
  11984. cat >>conftest.$ac_ext <<_ACEOF
  11985. /* end confdefs.h. */
  11986. #include <stdio.h>
  11987. int
  11988. main ()
  11989. {
  11990. #ifndef fgets_unlocked
  11991. char *p = (char *) fgets_unlocked;
  11992. #endif
  11993. ;
  11994. return 0;
  11995. }
  11996. _ACEOF
  11997. rm -f conftest.$ac_objext
  11998. if { (ac_try="$ac_compile"
  11999. case "(($ac_try" in
  12000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12001. *) ac_try_echo=$ac_try;;
  12002. esac
  12003. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12004. (eval "$ac_compile") 2>conftest.er1
  12005. ac_status=$?
  12006. grep -v '^ *+' conftest.er1 >conftest.err
  12007. rm -f conftest.er1
  12008. cat conftest.err >&5
  12009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12010. (exit $ac_status); } && {
  12011. test -z "$ac_cxx_werror_flag" ||
  12012. test ! -s conftest.err
  12013. } && test -s conftest.$ac_objext; then
  12014. ac_cv_have_decl_fgets_unlocked=yes
  12015. else
  12016. echo "$as_me: failed program was:" >&5
  12017. sed 's/^/| /' conftest.$ac_ext >&5
  12018. ac_cv_have_decl_fgets_unlocked=no
  12019. fi
  12020. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12021. fi
  12022. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  12023. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  12024. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  12025. gt_value=1
  12026. else
  12027. gt_value=0
  12028. fi
  12029. cat >>confdefs.h <<_ACEOF
  12030. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  12031. _ACEOF
  12032. am_save_CPPFLAGS="$CPPFLAGS"
  12033. for element in $INCICONV; do
  12034. haveit=
  12035. for x in $CPPFLAGS; 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$element"; then
  12044. haveit=yes
  12045. break
  12046. fi
  12047. done
  12048. if test -z "$haveit"; then
  12049. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12050. fi
  12051. done
  12052. { echo "$as_me:$LINENO: checking for iconv" >&5
  12053. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  12054. if test "${am_cv_func_iconv+set}" = set; then
  12055. echo $ECHO_N "(cached) $ECHO_C" >&6
  12056. else
  12057. am_cv_func_iconv="no, consider installing GNU libiconv"
  12058. am_cv_lib_iconv=no
  12059. cat >conftest.$ac_ext <<_ACEOF
  12060. /* confdefs.h. */
  12061. _ACEOF
  12062. cat confdefs.h >>conftest.$ac_ext
  12063. cat >>conftest.$ac_ext <<_ACEOF
  12064. /* end confdefs.h. */
  12065. #include <stdlib.h>
  12066. #include <iconv.h>
  12067. int
  12068. main ()
  12069. {
  12070. iconv_t cd = iconv_open("","");
  12071. iconv(cd,NULL,NULL,NULL,NULL);
  12072. iconv_close(cd);
  12073. ;
  12074. return 0;
  12075. }
  12076. _ACEOF
  12077. rm -f conftest.$ac_objext conftest$ac_exeext
  12078. if { (ac_try="$ac_link"
  12079. case "(($ac_try" in
  12080. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12081. *) ac_try_echo=$ac_try;;
  12082. esac
  12083. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12084. (eval "$ac_link") 2>conftest.er1
  12085. ac_status=$?
  12086. grep -v '^ *+' conftest.er1 >conftest.err
  12087. rm -f conftest.er1
  12088. cat conftest.err >&5
  12089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12090. (exit $ac_status); } && {
  12091. test -z "$ac_cxx_werror_flag" ||
  12092. test ! -s conftest.err
  12093. } && test -s conftest$ac_exeext &&
  12094. $as_test_x conftest$ac_exeext; then
  12095. am_cv_func_iconv=yes
  12096. else
  12097. echo "$as_me: failed program was:" >&5
  12098. sed 's/^/| /' conftest.$ac_ext >&5
  12099. fi
  12100. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12101. conftest$ac_exeext conftest.$ac_ext
  12102. if test "$am_cv_func_iconv" != yes; then
  12103. am_save_LIBS="$LIBS"
  12104. LIBS="$LIBS $LIBICONV"
  12105. cat >conftest.$ac_ext <<_ACEOF
  12106. /* confdefs.h. */
  12107. _ACEOF
  12108. cat confdefs.h >>conftest.$ac_ext
  12109. cat >>conftest.$ac_ext <<_ACEOF
  12110. /* end confdefs.h. */
  12111. #include <stdlib.h>
  12112. #include <iconv.h>
  12113. int
  12114. main ()
  12115. {
  12116. iconv_t cd = iconv_open("","");
  12117. iconv(cd,NULL,NULL,NULL,NULL);
  12118. iconv_close(cd);
  12119. ;
  12120. return 0;
  12121. }
  12122. _ACEOF
  12123. rm -f conftest.$ac_objext conftest$ac_exeext
  12124. if { (ac_try="$ac_link"
  12125. case "(($ac_try" in
  12126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12127. *) ac_try_echo=$ac_try;;
  12128. esac
  12129. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12130. (eval "$ac_link") 2>conftest.er1
  12131. ac_status=$?
  12132. grep -v '^ *+' conftest.er1 >conftest.err
  12133. rm -f conftest.er1
  12134. cat conftest.err >&5
  12135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12136. (exit $ac_status); } && {
  12137. test -z "$ac_cxx_werror_flag" ||
  12138. test ! -s conftest.err
  12139. } && test -s conftest$ac_exeext &&
  12140. $as_test_x conftest$ac_exeext; then
  12141. am_cv_lib_iconv=yes
  12142. am_cv_func_iconv=yes
  12143. else
  12144. echo "$as_me: failed program was:" >&5
  12145. sed 's/^/| /' conftest.$ac_ext >&5
  12146. fi
  12147. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12148. conftest$ac_exeext conftest.$ac_ext
  12149. LIBS="$am_save_LIBS"
  12150. fi
  12151. fi
  12152. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  12153. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  12154. if test "$am_cv_func_iconv" = yes; then
  12155. { echo "$as_me:$LINENO: checking for working iconv" >&5
  12156. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  12157. if test "${am_cv_func_iconv_works+set}" = set; then
  12158. echo $ECHO_N "(cached) $ECHO_C" >&6
  12159. else
  12160. am_save_LIBS="$LIBS"
  12161. if test $am_cv_lib_iconv = yes; then
  12162. LIBS="$LIBS $LIBICONV"
  12163. fi
  12164. if test "$cross_compiling" = yes; then
  12165. case "$host_os" in
  12166. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  12167. *) am_cv_func_iconv_works="guessing yes" ;;
  12168. esac
  12169. else
  12170. cat >conftest.$ac_ext <<_ACEOF
  12171. /* confdefs.h. */
  12172. _ACEOF
  12173. cat confdefs.h >>conftest.$ac_ext
  12174. cat >>conftest.$ac_ext <<_ACEOF
  12175. /* end confdefs.h. */
  12176. #include <iconv.h>
  12177. #include <string.h>
  12178. int main ()
  12179. {
  12180. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  12181. returns. */
  12182. {
  12183. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  12184. if (cd_utf8_to_88591 != (iconv_t)(-1))
  12185. {
  12186. static const char input[] = "\342\202\254"; /* EURO SIGN */
  12187. char buf[10];
  12188. const char *inptr = input;
  12189. size_t inbytesleft = strlen (input);
  12190. char *outptr = buf;
  12191. size_t outbytesleft = sizeof (buf);
  12192. size_t res = iconv (cd_utf8_to_88591,
  12193. (char **) &inptr, &inbytesleft,
  12194. &outptr, &outbytesleft);
  12195. if (res == 0)
  12196. return 1;
  12197. }
  12198. }
  12199. #if 0 /* This bug could be worked around by the caller. */
  12200. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  12201. {
  12202. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  12203. if (cd_88591_to_utf8 != (iconv_t)(-1))
  12204. {
  12205. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  12206. char buf[50];
  12207. const char *inptr = input;
  12208. size_t inbytesleft = strlen (input);
  12209. char *outptr = buf;
  12210. size_t outbytesleft = sizeof (buf);
  12211. size_t res = iconv (cd_88591_to_utf8,
  12212. (char **) &inptr, &inbytesleft,
  12213. &outptr, &outbytesleft);
  12214. if ((int)res > 0)
  12215. return 1;
  12216. }
  12217. }
  12218. #endif
  12219. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  12220. provided. */
  12221. if (/* Try standardized names. */
  12222. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  12223. /* Try IRIX, OSF/1 names. */
  12224. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  12225. /* Try AIX names. */
  12226. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  12227. /* Try HP-UX names. */
  12228. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  12229. return 1;
  12230. return 0;
  12231. }
  12232. _ACEOF
  12233. rm -f conftest$ac_exeext
  12234. if { (ac_try="$ac_link"
  12235. case "(($ac_try" in
  12236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12237. *) ac_try_echo=$ac_try;;
  12238. esac
  12239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12240. (eval "$ac_link") 2>&5
  12241. ac_status=$?
  12242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12243. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12244. { (case "(($ac_try" in
  12245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12246. *) ac_try_echo=$ac_try;;
  12247. esac
  12248. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12249. (eval "$ac_try") 2>&5
  12250. ac_status=$?
  12251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12252. (exit $ac_status); }; }; then
  12253. am_cv_func_iconv_works=yes
  12254. else
  12255. echo "$as_me: program exited with status $ac_status" >&5
  12256. echo "$as_me: failed program was:" >&5
  12257. sed 's/^/| /' conftest.$ac_ext >&5
  12258. ( exit $ac_status )
  12259. am_cv_func_iconv_works=no
  12260. fi
  12261. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12262. fi
  12263. LIBS="$am_save_LIBS"
  12264. fi
  12265. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  12266. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  12267. case "$am_cv_func_iconv_works" in
  12268. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  12269. *) am_func_iconv=yes ;;
  12270. esac
  12271. else
  12272. am_func_iconv=no am_cv_lib_iconv=no
  12273. fi
  12274. if test "$am_func_iconv" = yes; then
  12275. cat >>confdefs.h <<\_ACEOF
  12276. #define HAVE_ICONV 1
  12277. _ACEOF
  12278. fi
  12279. if test "$am_cv_lib_iconv" = yes; then
  12280. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  12281. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  12282. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  12283. echo "${ECHO_T}$LIBICONV" >&6; }
  12284. else
  12285. CPPFLAGS="$am_save_CPPFLAGS"
  12286. LIBICONV=
  12287. LTLIBICONV=
  12288. fi
  12289. if test "$am_cv_func_iconv" = yes; then
  12290. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  12291. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  12292. if test "${am_cv_proto_iconv+set}" = set; then
  12293. echo $ECHO_N "(cached) $ECHO_C" >&6
  12294. else
  12295. cat >conftest.$ac_ext <<_ACEOF
  12296. /* confdefs.h. */
  12297. _ACEOF
  12298. cat confdefs.h >>conftest.$ac_ext
  12299. cat >>conftest.$ac_ext <<_ACEOF
  12300. /* end confdefs.h. */
  12301. #include <stdlib.h>
  12302. #include <iconv.h>
  12303. extern
  12304. #ifdef __cplusplus
  12305. "C"
  12306. #endif
  12307. #if defined(__STDC__) || defined(__cplusplus)
  12308. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  12309. #else
  12310. size_t iconv();
  12311. #endif
  12312. int
  12313. main ()
  12314. {
  12315. ;
  12316. return 0;
  12317. }
  12318. _ACEOF
  12319. rm -f conftest.$ac_objext
  12320. if { (ac_try="$ac_compile"
  12321. case "(($ac_try" in
  12322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12323. *) ac_try_echo=$ac_try;;
  12324. esac
  12325. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12326. (eval "$ac_compile") 2>conftest.er1
  12327. ac_status=$?
  12328. grep -v '^ *+' conftest.er1 >conftest.err
  12329. rm -f conftest.er1
  12330. cat conftest.err >&5
  12331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12332. (exit $ac_status); } && {
  12333. test -z "$ac_cxx_werror_flag" ||
  12334. test ! -s conftest.err
  12335. } && test -s conftest.$ac_objext; then
  12336. am_cv_proto_iconv_arg1=""
  12337. else
  12338. echo "$as_me: failed program was:" >&5
  12339. sed 's/^/| /' conftest.$ac_ext >&5
  12340. am_cv_proto_iconv_arg1="const"
  12341. fi
  12342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12343. 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);"
  12344. fi
  12345. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  12346. { echo "$as_me:$LINENO: result: ${ac_t:-
  12347. }$am_cv_proto_iconv" >&5
  12348. echo "${ECHO_T}${ac_t:-
  12349. }$am_cv_proto_iconv" >&6; }
  12350. cat >>confdefs.h <<_ACEOF
  12351. #define ICONV_CONST $am_cv_proto_iconv_arg1
  12352. _ACEOF
  12353. fi
  12354. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  12355. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  12356. if test "${gt_cv_nl_locale_name+set}" = set; then
  12357. echo $ECHO_N "(cached) $ECHO_C" >&6
  12358. else
  12359. cat >conftest.$ac_ext <<_ACEOF
  12360. /* confdefs.h. */
  12361. _ACEOF
  12362. cat confdefs.h >>conftest.$ac_ext
  12363. cat >>conftest.$ac_ext <<_ACEOF
  12364. /* end confdefs.h. */
  12365. #include <langinfo.h>
  12366. #include <locale.h>
  12367. int
  12368. main ()
  12369. {
  12370. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  12371. return !cs;
  12372. ;
  12373. return 0;
  12374. }
  12375. _ACEOF
  12376. rm -f conftest.$ac_objext conftest$ac_exeext
  12377. if { (ac_try="$ac_link"
  12378. case "(($ac_try" in
  12379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12380. *) ac_try_echo=$ac_try;;
  12381. esac
  12382. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12383. (eval "$ac_link") 2>conftest.er1
  12384. ac_status=$?
  12385. grep -v '^ *+' conftest.er1 >conftest.err
  12386. rm -f conftest.er1
  12387. cat conftest.err >&5
  12388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12389. (exit $ac_status); } && {
  12390. test -z "$ac_cxx_werror_flag" ||
  12391. test ! -s conftest.err
  12392. } && test -s conftest$ac_exeext &&
  12393. $as_test_x conftest$ac_exeext; then
  12394. gt_cv_nl_locale_name=yes
  12395. else
  12396. echo "$as_me: failed program was:" >&5
  12397. sed 's/^/| /' conftest.$ac_ext >&5
  12398. gt_cv_nl_locale_name=no
  12399. fi
  12400. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12401. conftest$ac_exeext conftest.$ac_ext
  12402. fi
  12403. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  12404. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  12405. if test $gt_cv_nl_locale_name = yes; then
  12406. cat >>confdefs.h <<\_ACEOF
  12407. #define HAVE_NL_LOCALE_NAME 1
  12408. _ACEOF
  12409. fi
  12410. for ac_prog in bison
  12411. do
  12412. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12413. set dummy $ac_prog; ac_word=$2
  12414. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12415. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12416. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  12417. echo $ECHO_N "(cached) $ECHO_C" >&6
  12418. else
  12419. if test -n "$INTLBISON"; then
  12420. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  12421. else
  12422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12423. for as_dir in $PATH
  12424. do
  12425. IFS=$as_save_IFS
  12426. test -z "$as_dir" && as_dir=.
  12427. for ac_exec_ext in '' $ac_executable_extensions; do
  12428. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12429. ac_cv_prog_INTLBISON="$ac_prog"
  12430. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12431. break 2
  12432. fi
  12433. done
  12434. done
  12435. IFS=$as_save_IFS
  12436. fi
  12437. fi
  12438. INTLBISON=$ac_cv_prog_INTLBISON
  12439. if test -n "$INTLBISON"; then
  12440. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  12441. echo "${ECHO_T}$INTLBISON" >&6; }
  12442. else
  12443. { echo "$as_me:$LINENO: result: no" >&5
  12444. echo "${ECHO_T}no" >&6; }
  12445. fi
  12446. test -n "$INTLBISON" && break
  12447. done
  12448. if test -z "$INTLBISON"; then
  12449. ac_verc_fail=yes
  12450. else
  12451. { echo "$as_me:$LINENO: checking version of bison" >&5
  12452. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  12453. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  12454. case $ac_prog_version in
  12455. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  12456. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  12457. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  12458. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  12459. esac
  12460. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  12461. echo "${ECHO_T}$ac_prog_version" >&6; }
  12462. fi
  12463. if test $ac_verc_fail = yes; then
  12464. INTLBISON=:
  12465. fi
  12466. { echo "$as_me:$LINENO: checking for long long int" >&5
  12467. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  12468. if test "${ac_cv_type_long_long_int+set}" = set; then
  12469. echo $ECHO_N "(cached) $ECHO_C" >&6
  12470. else
  12471. cat >conftest.$ac_ext <<_ACEOF
  12472. /* confdefs.h. */
  12473. _ACEOF
  12474. cat confdefs.h >>conftest.$ac_ext
  12475. cat >>conftest.$ac_ext <<_ACEOF
  12476. /* end confdefs.h. */
  12477. /* Test preprocessor. */
  12478. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12479. error in preprocessor;
  12480. #endif
  12481. #if ! (18446744073709551615ULL <= -1ull)
  12482. error in preprocessor;
  12483. #endif
  12484. /* Test literals. */
  12485. long long int ll = 9223372036854775807ll;
  12486. long long int nll = -9223372036854775807LL;
  12487. unsigned long long int ull = 18446744073709551615ULL;
  12488. /* Test constant expressions. */
  12489. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  12490. ? 1 : -1)];
  12491. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  12492. ? 1 : -1)];
  12493. int i = 63;
  12494. int
  12495. main ()
  12496. {
  12497. /* Test availability of runtime routines for shift and division. */
  12498. long long int llmax = 9223372036854775807ll;
  12499. unsigned long long int ullmax = 18446744073709551615ull;
  12500. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  12501. | (llmax / ll) | (llmax % ll)
  12502. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  12503. | (ullmax / ull) | (ullmax % ull));
  12504. ;
  12505. return 0;
  12506. }
  12507. _ACEOF
  12508. rm -f conftest.$ac_objext conftest$ac_exeext
  12509. if { (ac_try="$ac_link"
  12510. case "(($ac_try" in
  12511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12512. *) ac_try_echo=$ac_try;;
  12513. esac
  12514. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12515. (eval "$ac_link") 2>conftest.er1
  12516. ac_status=$?
  12517. grep -v '^ *+' conftest.er1 >conftest.err
  12518. rm -f conftest.er1
  12519. cat conftest.err >&5
  12520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12521. (exit $ac_status); } && {
  12522. test -z "$ac_cxx_werror_flag" ||
  12523. test ! -s conftest.err
  12524. } && test -s conftest$ac_exeext &&
  12525. $as_test_x conftest$ac_exeext; then
  12526. if test "$cross_compiling" = yes; then
  12527. ac_cv_type_long_long_int=yes
  12528. else
  12529. cat >conftest.$ac_ext <<_ACEOF
  12530. /* confdefs.h. */
  12531. _ACEOF
  12532. cat confdefs.h >>conftest.$ac_ext
  12533. cat >>conftest.$ac_ext <<_ACEOF
  12534. /* end confdefs.h. */
  12535. #include <limits.h>
  12536. #ifndef LLONG_MAX
  12537. # define HALF \
  12538. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  12539. # define LLONG_MAX (HALF - 1 + HALF)
  12540. #endif
  12541. int
  12542. main ()
  12543. {
  12544. long long int n = 1;
  12545. int i;
  12546. for (i = 0; ; i++)
  12547. {
  12548. long long int m = n << i;
  12549. if (m >> i != n)
  12550. return 1;
  12551. if (LLONG_MAX / 2 < m)
  12552. break;
  12553. }
  12554. return 0;
  12555. ;
  12556. return 0;
  12557. }
  12558. _ACEOF
  12559. rm -f conftest$ac_exeext
  12560. if { (ac_try="$ac_link"
  12561. case "(($ac_try" in
  12562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12563. *) ac_try_echo=$ac_try;;
  12564. esac
  12565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12566. (eval "$ac_link") 2>&5
  12567. ac_status=$?
  12568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12569. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12570. { (case "(($ac_try" in
  12571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12572. *) ac_try_echo=$ac_try;;
  12573. esac
  12574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12575. (eval "$ac_try") 2>&5
  12576. ac_status=$?
  12577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12578. (exit $ac_status); }; }; then
  12579. ac_cv_type_long_long_int=yes
  12580. else
  12581. echo "$as_me: program exited with status $ac_status" >&5
  12582. echo "$as_me: failed program was:" >&5
  12583. sed 's/^/| /' conftest.$ac_ext >&5
  12584. ( exit $ac_status )
  12585. ac_cv_type_long_long_int=no
  12586. fi
  12587. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12588. fi
  12589. else
  12590. echo "$as_me: failed program was:" >&5
  12591. sed 's/^/| /' conftest.$ac_ext >&5
  12592. ac_cv_type_long_long_int=no
  12593. fi
  12594. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12595. conftest$ac_exeext conftest.$ac_ext
  12596. fi
  12597. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  12598. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  12599. if test $ac_cv_type_long_long_int = yes; then
  12600. cat >>confdefs.h <<\_ACEOF
  12601. #define HAVE_LONG_LONG_INT 1
  12602. _ACEOF
  12603. fi
  12604. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  12605. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  12606. if test "${gt_cv_c_wchar_t+set}" = set; then
  12607. echo $ECHO_N "(cached) $ECHO_C" >&6
  12608. else
  12609. cat >conftest.$ac_ext <<_ACEOF
  12610. /* confdefs.h. */
  12611. _ACEOF
  12612. cat confdefs.h >>conftest.$ac_ext
  12613. cat >>conftest.$ac_ext <<_ACEOF
  12614. /* end confdefs.h. */
  12615. #include <stddef.h>
  12616. wchar_t foo = (wchar_t)'\0';
  12617. int
  12618. main ()
  12619. {
  12620. ;
  12621. return 0;
  12622. }
  12623. _ACEOF
  12624. rm -f conftest.$ac_objext
  12625. if { (ac_try="$ac_compile"
  12626. case "(($ac_try" in
  12627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12628. *) ac_try_echo=$ac_try;;
  12629. esac
  12630. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12631. (eval "$ac_compile") 2>conftest.er1
  12632. ac_status=$?
  12633. grep -v '^ *+' conftest.er1 >conftest.err
  12634. rm -f conftest.er1
  12635. cat conftest.err >&5
  12636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12637. (exit $ac_status); } && {
  12638. test -z "$ac_cxx_werror_flag" ||
  12639. test ! -s conftest.err
  12640. } && test -s conftest.$ac_objext; then
  12641. gt_cv_c_wchar_t=yes
  12642. else
  12643. echo "$as_me: failed program was:" >&5
  12644. sed 's/^/| /' conftest.$ac_ext >&5
  12645. gt_cv_c_wchar_t=no
  12646. fi
  12647. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12648. fi
  12649. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  12650. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  12651. if test $gt_cv_c_wchar_t = yes; then
  12652. cat >>confdefs.h <<\_ACEOF
  12653. #define HAVE_WCHAR_T 1
  12654. _ACEOF
  12655. fi
  12656. { echo "$as_me:$LINENO: checking for wint_t" >&5
  12657. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  12658. if test "${gt_cv_c_wint_t+set}" = set; then
  12659. echo $ECHO_N "(cached) $ECHO_C" >&6
  12660. else
  12661. cat >conftest.$ac_ext <<_ACEOF
  12662. /* confdefs.h. */
  12663. _ACEOF
  12664. cat confdefs.h >>conftest.$ac_ext
  12665. cat >>conftest.$ac_ext <<_ACEOF
  12666. /* end confdefs.h. */
  12667. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  12668. <wchar.h>.
  12669. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  12670. before <wchar.h>. */
  12671. #include <stddef.h>
  12672. #include <stdio.h>
  12673. #include <time.h>
  12674. #include <wchar.h>
  12675. wint_t foo = (wchar_t)'\0';
  12676. int
  12677. main ()
  12678. {
  12679. ;
  12680. return 0;
  12681. }
  12682. _ACEOF
  12683. rm -f conftest.$ac_objext
  12684. if { (ac_try="$ac_compile"
  12685. case "(($ac_try" in
  12686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12687. *) ac_try_echo=$ac_try;;
  12688. esac
  12689. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12690. (eval "$ac_compile") 2>conftest.er1
  12691. ac_status=$?
  12692. grep -v '^ *+' conftest.er1 >conftest.err
  12693. rm -f conftest.er1
  12694. cat conftest.err >&5
  12695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12696. (exit $ac_status); } && {
  12697. test -z "$ac_cxx_werror_flag" ||
  12698. test ! -s conftest.err
  12699. } && test -s conftest.$ac_objext; then
  12700. gt_cv_c_wint_t=yes
  12701. else
  12702. echo "$as_me: failed program was:" >&5
  12703. sed 's/^/| /' conftest.$ac_ext >&5
  12704. gt_cv_c_wint_t=no
  12705. fi
  12706. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12707. fi
  12708. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  12709. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  12710. if test $gt_cv_c_wint_t = yes; then
  12711. cat >>confdefs.h <<\_ACEOF
  12712. #define HAVE_WINT_T 1
  12713. _ACEOF
  12714. fi
  12715. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  12716. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  12717. if test "${gt_cv_c_intmax_t+set}" = set; then
  12718. echo $ECHO_N "(cached) $ECHO_C" >&6
  12719. else
  12720. cat >conftest.$ac_ext <<_ACEOF
  12721. /* confdefs.h. */
  12722. _ACEOF
  12723. cat confdefs.h >>conftest.$ac_ext
  12724. cat >>conftest.$ac_ext <<_ACEOF
  12725. /* end confdefs.h. */
  12726. #include <stddef.h>
  12727. #include <stdlib.h>
  12728. #if HAVE_STDINT_H_WITH_UINTMAX
  12729. #include <stdint.h>
  12730. #endif
  12731. #if HAVE_INTTYPES_H_WITH_UINTMAX
  12732. #include <inttypes.h>
  12733. #endif
  12734. int
  12735. main ()
  12736. {
  12737. intmax_t x = -1;
  12738. return !x;
  12739. ;
  12740. return 0;
  12741. }
  12742. _ACEOF
  12743. rm -f conftest.$ac_objext
  12744. if { (ac_try="$ac_compile"
  12745. case "(($ac_try" in
  12746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12747. *) ac_try_echo=$ac_try;;
  12748. esac
  12749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12750. (eval "$ac_compile") 2>conftest.er1
  12751. ac_status=$?
  12752. grep -v '^ *+' conftest.er1 >conftest.err
  12753. rm -f conftest.er1
  12754. cat conftest.err >&5
  12755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12756. (exit $ac_status); } && {
  12757. test -z "$ac_cxx_werror_flag" ||
  12758. test ! -s conftest.err
  12759. } && test -s conftest.$ac_objext; then
  12760. gt_cv_c_intmax_t=yes
  12761. else
  12762. echo "$as_me: failed program was:" >&5
  12763. sed 's/^/| /' conftest.$ac_ext >&5
  12764. gt_cv_c_intmax_t=no
  12765. fi
  12766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12767. fi
  12768. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  12769. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  12770. if test $gt_cv_c_intmax_t = yes; then
  12771. cat >>confdefs.h <<\_ACEOF
  12772. #define HAVE_INTMAX_T 1
  12773. _ACEOF
  12774. fi
  12775. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  12776. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  12777. if test "${gt_cv_func_printf_posix+set}" = set; then
  12778. echo $ECHO_N "(cached) $ECHO_C" >&6
  12779. else
  12780. if test "$cross_compiling" = yes; then
  12781. cat >conftest.$ac_ext <<_ACEOF
  12782. /* confdefs.h. */
  12783. _ACEOF
  12784. cat confdefs.h >>conftest.$ac_ext
  12785. cat >>conftest.$ac_ext <<_ACEOF
  12786. /* end confdefs.h. */
  12787. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  12788. notposix
  12789. #endif
  12790. _ACEOF
  12791. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12792. $EGREP "notposix" >/dev/null 2>&1; then
  12793. gt_cv_func_printf_posix="guessing no"
  12794. else
  12795. gt_cv_func_printf_posix="guessing yes"
  12796. fi
  12797. rm -f conftest*
  12798. else
  12799. cat >conftest.$ac_ext <<_ACEOF
  12800. /* confdefs.h. */
  12801. _ACEOF
  12802. cat confdefs.h >>conftest.$ac_ext
  12803. cat >>conftest.$ac_ext <<_ACEOF
  12804. /* end confdefs.h. */
  12805. #include <stdio.h>
  12806. #include <string.h>
  12807. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  12808. dollar expansion (possibly an autoconf bug). */
  12809. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  12810. static char buf[100];
  12811. int main ()
  12812. {
  12813. sprintf (buf, format, 33, 55);
  12814. return (strcmp (buf, "55 33") != 0);
  12815. }
  12816. _ACEOF
  12817. rm -f conftest$ac_exeext
  12818. if { (ac_try="$ac_link"
  12819. case "(($ac_try" in
  12820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12821. *) ac_try_echo=$ac_try;;
  12822. esac
  12823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12824. (eval "$ac_link") 2>&5
  12825. ac_status=$?
  12826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12827. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12828. { (case "(($ac_try" in
  12829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12830. *) ac_try_echo=$ac_try;;
  12831. esac
  12832. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12833. (eval "$ac_try") 2>&5
  12834. ac_status=$?
  12835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12836. (exit $ac_status); }; }; then
  12837. gt_cv_func_printf_posix=yes
  12838. else
  12839. echo "$as_me: program exited with status $ac_status" >&5
  12840. echo "$as_me: failed program was:" >&5
  12841. sed 's/^/| /' conftest.$ac_ext >&5
  12842. ( exit $ac_status )
  12843. gt_cv_func_printf_posix=no
  12844. fi
  12845. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12846. fi
  12847. fi
  12848. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  12849. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  12850. case $gt_cv_func_printf_posix in
  12851. *yes)
  12852. cat >>confdefs.h <<\_ACEOF
  12853. #define HAVE_POSIX_PRINTF 1
  12854. _ACEOF
  12855. ;;
  12856. esac
  12857. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  12858. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  12859. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  12860. echo $ECHO_N "(cached) $ECHO_C" >&6
  12861. else
  12862. cat >conftest.$ac_ext <<_ACEOF
  12863. /* confdefs.h. */
  12864. _ACEOF
  12865. cat confdefs.h >>conftest.$ac_ext
  12866. cat >>conftest.$ac_ext <<_ACEOF
  12867. /* end confdefs.h. */
  12868. #include <features.h>
  12869. #ifdef __GNU_LIBRARY__
  12870. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  12871. Lucky GNU user
  12872. #endif
  12873. #endif
  12874. _ACEOF
  12875. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  12876. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  12877. ac_cv_gnu_library_2_1=yes
  12878. else
  12879. ac_cv_gnu_library_2_1=no
  12880. fi
  12881. rm -f conftest*
  12882. fi
  12883. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  12884. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  12885. GLIBC21="$ac_cv_gnu_library_2_1"
  12886. for ac_header in stdint.h
  12887. do
  12888. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12889. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12890. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12891. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12892. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12893. echo $ECHO_N "(cached) $ECHO_C" >&6
  12894. fi
  12895. ac_res=`eval echo '${'$as_ac_Header'}'`
  12896. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12897. echo "${ECHO_T}$ac_res" >&6; }
  12898. else
  12899. # Is the header compilable?
  12900. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12901. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12902. cat >conftest.$ac_ext <<_ACEOF
  12903. /* confdefs.h. */
  12904. _ACEOF
  12905. cat confdefs.h >>conftest.$ac_ext
  12906. cat >>conftest.$ac_ext <<_ACEOF
  12907. /* end confdefs.h. */
  12908. $ac_includes_default
  12909. #include <$ac_header>
  12910. _ACEOF
  12911. rm -f conftest.$ac_objext
  12912. if { (ac_try="$ac_compile"
  12913. case "(($ac_try" in
  12914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12915. *) ac_try_echo=$ac_try;;
  12916. esac
  12917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12918. (eval "$ac_compile") 2>conftest.er1
  12919. ac_status=$?
  12920. grep -v '^ *+' conftest.er1 >conftest.err
  12921. rm -f conftest.er1
  12922. cat conftest.err >&5
  12923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12924. (exit $ac_status); } && {
  12925. test -z "$ac_cxx_werror_flag" ||
  12926. test ! -s conftest.err
  12927. } && test -s conftest.$ac_objext; then
  12928. ac_header_compiler=yes
  12929. else
  12930. echo "$as_me: failed program was:" >&5
  12931. sed 's/^/| /' conftest.$ac_ext >&5
  12932. ac_header_compiler=no
  12933. fi
  12934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12935. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12936. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12937. # Is the header present?
  12938. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12939. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12940. cat >conftest.$ac_ext <<_ACEOF
  12941. /* confdefs.h. */
  12942. _ACEOF
  12943. cat confdefs.h >>conftest.$ac_ext
  12944. cat >>conftest.$ac_ext <<_ACEOF
  12945. /* end confdefs.h. */
  12946. #include <$ac_header>
  12947. _ACEOF
  12948. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12949. case "(($ac_try" in
  12950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12951. *) ac_try_echo=$ac_try;;
  12952. esac
  12953. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12954. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12955. ac_status=$?
  12956. grep -v '^ *+' conftest.er1 >conftest.err
  12957. rm -f conftest.er1
  12958. cat conftest.err >&5
  12959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12960. (exit $ac_status); } >/dev/null && {
  12961. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12962. test ! -s conftest.err
  12963. }; then
  12964. ac_header_preproc=yes
  12965. else
  12966. echo "$as_me: failed program was:" >&5
  12967. sed 's/^/| /' conftest.$ac_ext >&5
  12968. ac_header_preproc=no
  12969. fi
  12970. rm -f conftest.err conftest.$ac_ext
  12971. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12972. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12973. # So? What about this header?
  12974. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12975. yes:no: )
  12976. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12977. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12978. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12979. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12980. ac_header_preproc=yes
  12981. ;;
  12982. no:yes:* )
  12983. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12984. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12985. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12986. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12987. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12988. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12989. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12990. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12991. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12992. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12993. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12994. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12995. ( cat <<\_ASBOX
  12996. ## ----------------------------------------------- ##
  12997. ## Report this to t-tujikawa@users.sourceforge.net ##
  12998. ## ----------------------------------------------- ##
  12999. _ASBOX
  13000. ) | sed "s/^/$as_me: WARNING: /" >&2
  13001. ;;
  13002. esac
  13003. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13004. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13005. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13006. echo $ECHO_N "(cached) $ECHO_C" >&6
  13007. else
  13008. eval "$as_ac_Header=\$ac_header_preproc"
  13009. fi
  13010. ac_res=`eval echo '${'$as_ac_Header'}'`
  13011. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13012. echo "${ECHO_T}$ac_res" >&6; }
  13013. fi
  13014. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13015. cat >>confdefs.h <<_ACEOF
  13016. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13017. _ACEOF
  13018. fi
  13019. done
  13020. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  13021. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  13022. if test "${gl_cv_size_max+set}" = set; then
  13023. echo $ECHO_N "(cached) $ECHO_C" >&6
  13024. else
  13025. gl_cv_size_max=
  13026. cat >conftest.$ac_ext <<_ACEOF
  13027. /* confdefs.h. */
  13028. _ACEOF
  13029. cat confdefs.h >>conftest.$ac_ext
  13030. cat >>conftest.$ac_ext <<_ACEOF
  13031. /* end confdefs.h. */
  13032. #include <limits.h>
  13033. #if HAVE_STDINT_H
  13034. #include <stdint.h>
  13035. #endif
  13036. #ifdef SIZE_MAX
  13037. Found it
  13038. #endif
  13039. _ACEOF
  13040. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13041. $EGREP "Found it" >/dev/null 2>&1; then
  13042. gl_cv_size_max=yes
  13043. fi
  13044. rm -f conftest*
  13045. if test -z "$gl_cv_size_max"; then
  13046. if test "$cross_compiling" = yes; then
  13047. # Depending upon the size, compute the lo and hi bounds.
  13048. cat >conftest.$ac_ext <<_ACEOF
  13049. /* confdefs.h. */
  13050. _ACEOF
  13051. cat confdefs.h >>conftest.$ac_ext
  13052. cat >>conftest.$ac_ext <<_ACEOF
  13053. /* end confdefs.h. */
  13054. #include <stddef.h>
  13055. #include <limits.h>
  13056. int
  13057. main ()
  13058. {
  13059. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  13060. test_array [0] = 0
  13061. ;
  13062. return 0;
  13063. }
  13064. _ACEOF
  13065. rm -f conftest.$ac_objext
  13066. if { (ac_try="$ac_compile"
  13067. case "(($ac_try" in
  13068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13069. *) ac_try_echo=$ac_try;;
  13070. esac
  13071. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13072. (eval "$ac_compile") 2>conftest.er1
  13073. ac_status=$?
  13074. grep -v '^ *+' conftest.er1 >conftest.err
  13075. rm -f conftest.er1
  13076. cat conftest.err >&5
  13077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13078. (exit $ac_status); } && {
  13079. test -z "$ac_cxx_werror_flag" ||
  13080. test ! -s conftest.err
  13081. } && test -s conftest.$ac_objext; then
  13082. ac_lo=0 ac_mid=0
  13083. while :; do
  13084. cat >conftest.$ac_ext <<_ACEOF
  13085. /* confdefs.h. */
  13086. _ACEOF
  13087. cat confdefs.h >>conftest.$ac_ext
  13088. cat >>conftest.$ac_ext <<_ACEOF
  13089. /* end confdefs.h. */
  13090. #include <stddef.h>
  13091. #include <limits.h>
  13092. int
  13093. main ()
  13094. {
  13095. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13096. test_array [0] = 0
  13097. ;
  13098. return 0;
  13099. }
  13100. _ACEOF
  13101. rm -f conftest.$ac_objext
  13102. if { (ac_try="$ac_compile"
  13103. case "(($ac_try" in
  13104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13105. *) ac_try_echo=$ac_try;;
  13106. esac
  13107. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13108. (eval "$ac_compile") 2>conftest.er1
  13109. ac_status=$?
  13110. grep -v '^ *+' conftest.er1 >conftest.err
  13111. rm -f conftest.er1
  13112. cat conftest.err >&5
  13113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13114. (exit $ac_status); } && {
  13115. test -z "$ac_cxx_werror_flag" ||
  13116. test ! -s conftest.err
  13117. } && test -s conftest.$ac_objext; then
  13118. ac_hi=$ac_mid; break
  13119. else
  13120. echo "$as_me: failed program was:" >&5
  13121. sed 's/^/| /' conftest.$ac_ext >&5
  13122. ac_lo=`expr $ac_mid + 1`
  13123. if test $ac_lo -le $ac_mid; then
  13124. ac_lo= ac_hi=
  13125. break
  13126. fi
  13127. ac_mid=`expr 2 '*' $ac_mid + 1`
  13128. fi
  13129. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13130. done
  13131. else
  13132. echo "$as_me: failed program was:" >&5
  13133. sed 's/^/| /' conftest.$ac_ext >&5
  13134. cat >conftest.$ac_ext <<_ACEOF
  13135. /* confdefs.h. */
  13136. _ACEOF
  13137. cat confdefs.h >>conftest.$ac_ext
  13138. cat >>conftest.$ac_ext <<_ACEOF
  13139. /* end confdefs.h. */
  13140. #include <stddef.h>
  13141. #include <limits.h>
  13142. int
  13143. main ()
  13144. {
  13145. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  13146. test_array [0] = 0
  13147. ;
  13148. return 0;
  13149. }
  13150. _ACEOF
  13151. rm -f conftest.$ac_objext
  13152. if { (ac_try="$ac_compile"
  13153. case "(($ac_try" in
  13154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13155. *) ac_try_echo=$ac_try;;
  13156. esac
  13157. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13158. (eval "$ac_compile") 2>conftest.er1
  13159. ac_status=$?
  13160. grep -v '^ *+' conftest.er1 >conftest.err
  13161. rm -f conftest.er1
  13162. cat conftest.err >&5
  13163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13164. (exit $ac_status); } && {
  13165. test -z "$ac_cxx_werror_flag" ||
  13166. test ! -s conftest.err
  13167. } && test -s conftest.$ac_objext; then
  13168. ac_hi=-1 ac_mid=-1
  13169. while :; do
  13170. cat >conftest.$ac_ext <<_ACEOF
  13171. /* confdefs.h. */
  13172. _ACEOF
  13173. cat confdefs.h >>conftest.$ac_ext
  13174. cat >>conftest.$ac_ext <<_ACEOF
  13175. /* end confdefs.h. */
  13176. #include <stddef.h>
  13177. #include <limits.h>
  13178. int
  13179. main ()
  13180. {
  13181. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  13182. test_array [0] = 0
  13183. ;
  13184. return 0;
  13185. }
  13186. _ACEOF
  13187. rm -f conftest.$ac_objext
  13188. if { (ac_try="$ac_compile"
  13189. case "(($ac_try" in
  13190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13191. *) ac_try_echo=$ac_try;;
  13192. esac
  13193. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13194. (eval "$ac_compile") 2>conftest.er1
  13195. ac_status=$?
  13196. grep -v '^ *+' conftest.er1 >conftest.err
  13197. rm -f conftest.er1
  13198. cat conftest.err >&5
  13199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13200. (exit $ac_status); } && {
  13201. test -z "$ac_cxx_werror_flag" ||
  13202. test ! -s conftest.err
  13203. } && test -s conftest.$ac_objext; then
  13204. ac_lo=$ac_mid; break
  13205. else
  13206. echo "$as_me: failed program was:" >&5
  13207. sed 's/^/| /' conftest.$ac_ext >&5
  13208. ac_hi=`expr '(' $ac_mid ')' - 1`
  13209. if test $ac_mid -le $ac_hi; then
  13210. ac_lo= ac_hi=
  13211. break
  13212. fi
  13213. ac_mid=`expr 2 '*' $ac_mid`
  13214. fi
  13215. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13216. done
  13217. else
  13218. echo "$as_me: failed program was:" >&5
  13219. sed 's/^/| /' conftest.$ac_ext >&5
  13220. ac_lo= ac_hi=
  13221. fi
  13222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13223. fi
  13224. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13225. # Binary search between lo and hi bounds.
  13226. while test "x$ac_lo" != "x$ac_hi"; do
  13227. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13228. cat >conftest.$ac_ext <<_ACEOF
  13229. /* confdefs.h. */
  13230. _ACEOF
  13231. cat confdefs.h >>conftest.$ac_ext
  13232. cat >>conftest.$ac_ext <<_ACEOF
  13233. /* end confdefs.h. */
  13234. #include <stddef.h>
  13235. #include <limits.h>
  13236. int
  13237. main ()
  13238. {
  13239. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  13240. test_array [0] = 0
  13241. ;
  13242. return 0;
  13243. }
  13244. _ACEOF
  13245. rm -f conftest.$ac_objext
  13246. if { (ac_try="$ac_compile"
  13247. case "(($ac_try" in
  13248. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13249. *) ac_try_echo=$ac_try;;
  13250. esac
  13251. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13252. (eval "$ac_compile") 2>conftest.er1
  13253. ac_status=$?
  13254. grep -v '^ *+' conftest.er1 >conftest.err
  13255. rm -f conftest.er1
  13256. cat conftest.err >&5
  13257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13258. (exit $ac_status); } && {
  13259. test -z "$ac_cxx_werror_flag" ||
  13260. test ! -s conftest.err
  13261. } && test -s conftest.$ac_objext; then
  13262. ac_hi=$ac_mid
  13263. else
  13264. echo "$as_me: failed program was:" >&5
  13265. sed 's/^/| /' conftest.$ac_ext >&5
  13266. ac_lo=`expr '(' $ac_mid ')' + 1`
  13267. fi
  13268. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13269. done
  13270. case $ac_lo in
  13271. ?*) size_t_bits_minus_1=$ac_lo;;
  13272. '') size_t_bits_minus_1= ;;
  13273. esac
  13274. else
  13275. cat >conftest.$ac_ext <<_ACEOF
  13276. /* confdefs.h. */
  13277. _ACEOF
  13278. cat confdefs.h >>conftest.$ac_ext
  13279. cat >>conftest.$ac_ext <<_ACEOF
  13280. /* end confdefs.h. */
  13281. #include <stddef.h>
  13282. #include <limits.h>
  13283. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13284. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  13285. #include <stdio.h>
  13286. #include <stdlib.h>
  13287. int
  13288. main ()
  13289. {
  13290. FILE *f = fopen ("conftest.val", "w");
  13291. if (! f)
  13292. return 1;
  13293. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  13294. {
  13295. long int i = longval ();
  13296. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13297. return 1;
  13298. fprintf (f, "%ld\n", i);
  13299. }
  13300. else
  13301. {
  13302. unsigned long int i = ulongval ();
  13303. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  13304. return 1;
  13305. fprintf (f, "%lu\n", i);
  13306. }
  13307. return ferror (f) || fclose (f) != 0;
  13308. ;
  13309. return 0;
  13310. }
  13311. _ACEOF
  13312. rm -f conftest$ac_exeext
  13313. if { (ac_try="$ac_link"
  13314. case "(($ac_try" in
  13315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13316. *) ac_try_echo=$ac_try;;
  13317. esac
  13318. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13319. (eval "$ac_link") 2>&5
  13320. ac_status=$?
  13321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13322. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13323. { (case "(($ac_try" in
  13324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13325. *) ac_try_echo=$ac_try;;
  13326. esac
  13327. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13328. (eval "$ac_try") 2>&5
  13329. ac_status=$?
  13330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13331. (exit $ac_status); }; }; then
  13332. size_t_bits_minus_1=`cat conftest.val`
  13333. else
  13334. echo "$as_me: program exited with status $ac_status" >&5
  13335. echo "$as_me: failed program was:" >&5
  13336. sed 's/^/| /' conftest.$ac_ext >&5
  13337. ( exit $ac_status )
  13338. size_t_bits_minus_1=
  13339. fi
  13340. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13341. fi
  13342. rm -f conftest.val
  13343. if test "$cross_compiling" = yes; then
  13344. # Depending upon the size, compute the lo and hi bounds.
  13345. cat >conftest.$ac_ext <<_ACEOF
  13346. /* confdefs.h. */
  13347. _ACEOF
  13348. cat confdefs.h >>conftest.$ac_ext
  13349. cat >>conftest.$ac_ext <<_ACEOF
  13350. /* end confdefs.h. */
  13351. #include <stddef.h>
  13352. int
  13353. main ()
  13354. {
  13355. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  13356. test_array [0] = 0
  13357. ;
  13358. return 0;
  13359. }
  13360. _ACEOF
  13361. rm -f conftest.$ac_objext
  13362. if { (ac_try="$ac_compile"
  13363. case "(($ac_try" in
  13364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13365. *) ac_try_echo=$ac_try;;
  13366. esac
  13367. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13368. (eval "$ac_compile") 2>conftest.er1
  13369. ac_status=$?
  13370. grep -v '^ *+' conftest.er1 >conftest.err
  13371. rm -f conftest.er1
  13372. cat conftest.err >&5
  13373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13374. (exit $ac_status); } && {
  13375. test -z "$ac_cxx_werror_flag" ||
  13376. test ! -s conftest.err
  13377. } && test -s conftest.$ac_objext; then
  13378. ac_lo=0 ac_mid=0
  13379. while :; do
  13380. cat >conftest.$ac_ext <<_ACEOF
  13381. /* confdefs.h. */
  13382. _ACEOF
  13383. cat confdefs.h >>conftest.$ac_ext
  13384. cat >>conftest.$ac_ext <<_ACEOF
  13385. /* end confdefs.h. */
  13386. #include <stddef.h>
  13387. int
  13388. main ()
  13389. {
  13390. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13391. test_array [0] = 0
  13392. ;
  13393. return 0;
  13394. }
  13395. _ACEOF
  13396. rm -f conftest.$ac_objext
  13397. if { (ac_try="$ac_compile"
  13398. case "(($ac_try" in
  13399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13400. *) ac_try_echo=$ac_try;;
  13401. esac
  13402. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13403. (eval "$ac_compile") 2>conftest.er1
  13404. ac_status=$?
  13405. grep -v '^ *+' conftest.er1 >conftest.err
  13406. rm -f conftest.er1
  13407. cat conftest.err >&5
  13408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13409. (exit $ac_status); } && {
  13410. test -z "$ac_cxx_werror_flag" ||
  13411. test ! -s conftest.err
  13412. } && test -s conftest.$ac_objext; then
  13413. ac_hi=$ac_mid; break
  13414. else
  13415. echo "$as_me: failed program was:" >&5
  13416. sed 's/^/| /' conftest.$ac_ext >&5
  13417. ac_lo=`expr $ac_mid + 1`
  13418. if test $ac_lo -le $ac_mid; then
  13419. ac_lo= ac_hi=
  13420. break
  13421. fi
  13422. ac_mid=`expr 2 '*' $ac_mid + 1`
  13423. fi
  13424. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13425. done
  13426. else
  13427. echo "$as_me: failed program was:" >&5
  13428. sed 's/^/| /' conftest.$ac_ext >&5
  13429. cat >conftest.$ac_ext <<_ACEOF
  13430. /* confdefs.h. */
  13431. _ACEOF
  13432. cat confdefs.h >>conftest.$ac_ext
  13433. cat >>conftest.$ac_ext <<_ACEOF
  13434. /* end confdefs.h. */
  13435. #include <stddef.h>
  13436. int
  13437. main ()
  13438. {
  13439. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  13440. test_array [0] = 0
  13441. ;
  13442. return 0;
  13443. }
  13444. _ACEOF
  13445. rm -f conftest.$ac_objext
  13446. if { (ac_try="$ac_compile"
  13447. case "(($ac_try" in
  13448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13449. *) ac_try_echo=$ac_try;;
  13450. esac
  13451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13452. (eval "$ac_compile") 2>conftest.er1
  13453. ac_status=$?
  13454. grep -v '^ *+' conftest.er1 >conftest.err
  13455. rm -f conftest.er1
  13456. cat conftest.err >&5
  13457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13458. (exit $ac_status); } && {
  13459. test -z "$ac_cxx_werror_flag" ||
  13460. test ! -s conftest.err
  13461. } && test -s conftest.$ac_objext; then
  13462. ac_hi=-1 ac_mid=-1
  13463. while :; do
  13464. cat >conftest.$ac_ext <<_ACEOF
  13465. /* confdefs.h. */
  13466. _ACEOF
  13467. cat confdefs.h >>conftest.$ac_ext
  13468. cat >>conftest.$ac_ext <<_ACEOF
  13469. /* end confdefs.h. */
  13470. #include <stddef.h>
  13471. int
  13472. main ()
  13473. {
  13474. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  13475. test_array [0] = 0
  13476. ;
  13477. return 0;
  13478. }
  13479. _ACEOF
  13480. rm -f conftest.$ac_objext
  13481. if { (ac_try="$ac_compile"
  13482. case "(($ac_try" in
  13483. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13484. *) ac_try_echo=$ac_try;;
  13485. esac
  13486. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13487. (eval "$ac_compile") 2>conftest.er1
  13488. ac_status=$?
  13489. grep -v '^ *+' conftest.er1 >conftest.err
  13490. rm -f conftest.er1
  13491. cat conftest.err >&5
  13492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13493. (exit $ac_status); } && {
  13494. test -z "$ac_cxx_werror_flag" ||
  13495. test ! -s conftest.err
  13496. } && test -s conftest.$ac_objext; then
  13497. ac_lo=$ac_mid; break
  13498. else
  13499. echo "$as_me: failed program was:" >&5
  13500. sed 's/^/| /' conftest.$ac_ext >&5
  13501. ac_hi=`expr '(' $ac_mid ')' - 1`
  13502. if test $ac_mid -le $ac_hi; then
  13503. ac_lo= ac_hi=
  13504. break
  13505. fi
  13506. ac_mid=`expr 2 '*' $ac_mid`
  13507. fi
  13508. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13509. done
  13510. else
  13511. echo "$as_me: failed program was:" >&5
  13512. sed 's/^/| /' conftest.$ac_ext >&5
  13513. ac_lo= ac_hi=
  13514. fi
  13515. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13516. fi
  13517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13518. # Binary search between lo and hi bounds.
  13519. while test "x$ac_lo" != "x$ac_hi"; do
  13520. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  13521. cat >conftest.$ac_ext <<_ACEOF
  13522. /* confdefs.h. */
  13523. _ACEOF
  13524. cat confdefs.h >>conftest.$ac_ext
  13525. cat >>conftest.$ac_ext <<_ACEOF
  13526. /* end confdefs.h. */
  13527. #include <stddef.h>
  13528. int
  13529. main ()
  13530. {
  13531. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  13532. test_array [0] = 0
  13533. ;
  13534. return 0;
  13535. }
  13536. _ACEOF
  13537. rm -f conftest.$ac_objext
  13538. if { (ac_try="$ac_compile"
  13539. case "(($ac_try" in
  13540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13541. *) ac_try_echo=$ac_try;;
  13542. esac
  13543. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13544. (eval "$ac_compile") 2>conftest.er1
  13545. ac_status=$?
  13546. grep -v '^ *+' conftest.er1 >conftest.err
  13547. rm -f conftest.er1
  13548. cat conftest.err >&5
  13549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13550. (exit $ac_status); } && {
  13551. test -z "$ac_cxx_werror_flag" ||
  13552. test ! -s conftest.err
  13553. } && test -s conftest.$ac_objext; then
  13554. ac_hi=$ac_mid
  13555. else
  13556. echo "$as_me: failed program was:" >&5
  13557. sed 's/^/| /' conftest.$ac_ext >&5
  13558. ac_lo=`expr '(' $ac_mid ')' + 1`
  13559. fi
  13560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13561. done
  13562. case $ac_lo in
  13563. ?*) fits_in_uint=$ac_lo;;
  13564. '') fits_in_uint= ;;
  13565. esac
  13566. else
  13567. cat >conftest.$ac_ext <<_ACEOF
  13568. /* confdefs.h. */
  13569. _ACEOF
  13570. cat confdefs.h >>conftest.$ac_ext
  13571. cat >>conftest.$ac_ext <<_ACEOF
  13572. /* end confdefs.h. */
  13573. #include <stddef.h>
  13574. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13575. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  13576. #include <stdio.h>
  13577. #include <stdlib.h>
  13578. int
  13579. main ()
  13580. {
  13581. FILE *f = fopen ("conftest.val", "w");
  13582. if (! f)
  13583. return 1;
  13584. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  13585. {
  13586. long int i = longval ();
  13587. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13588. return 1;
  13589. fprintf (f, "%ld\n", i);
  13590. }
  13591. else
  13592. {
  13593. unsigned long int i = ulongval ();
  13594. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  13595. return 1;
  13596. fprintf (f, "%lu\n", i);
  13597. }
  13598. return ferror (f) || fclose (f) != 0;
  13599. ;
  13600. return 0;
  13601. }
  13602. _ACEOF
  13603. rm -f conftest$ac_exeext
  13604. if { (ac_try="$ac_link"
  13605. case "(($ac_try" in
  13606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13607. *) ac_try_echo=$ac_try;;
  13608. esac
  13609. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13610. (eval "$ac_link") 2>&5
  13611. ac_status=$?
  13612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13613. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13614. { (case "(($ac_try" in
  13615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13616. *) ac_try_echo=$ac_try;;
  13617. esac
  13618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13619. (eval "$ac_try") 2>&5
  13620. ac_status=$?
  13621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13622. (exit $ac_status); }; }; then
  13623. fits_in_uint=`cat conftest.val`
  13624. else
  13625. echo "$as_me: program exited with status $ac_status" >&5
  13626. echo "$as_me: failed program was:" >&5
  13627. sed 's/^/| /' conftest.$ac_ext >&5
  13628. ( exit $ac_status )
  13629. fits_in_uint=
  13630. fi
  13631. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13632. fi
  13633. rm -f conftest.val
  13634. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  13635. if test $fits_in_uint = 1; then
  13636. cat >conftest.$ac_ext <<_ACEOF
  13637. /* confdefs.h. */
  13638. _ACEOF
  13639. cat confdefs.h >>conftest.$ac_ext
  13640. cat >>conftest.$ac_ext <<_ACEOF
  13641. /* end confdefs.h. */
  13642. #include <stddef.h>
  13643. extern size_t foo;
  13644. extern unsigned long foo;
  13645. int
  13646. main ()
  13647. {
  13648. ;
  13649. return 0;
  13650. }
  13651. _ACEOF
  13652. rm -f conftest.$ac_objext
  13653. if { (ac_try="$ac_compile"
  13654. case "(($ac_try" in
  13655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13656. *) ac_try_echo=$ac_try;;
  13657. esac
  13658. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13659. (eval "$ac_compile") 2>conftest.er1
  13660. ac_status=$?
  13661. grep -v '^ *+' conftest.er1 >conftest.err
  13662. rm -f conftest.er1
  13663. cat conftest.err >&5
  13664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13665. (exit $ac_status); } && {
  13666. test -z "$ac_cxx_werror_flag" ||
  13667. test ! -s conftest.err
  13668. } && test -s conftest.$ac_objext; then
  13669. fits_in_uint=0
  13670. else
  13671. echo "$as_me: failed program was:" >&5
  13672. sed 's/^/| /' conftest.$ac_ext >&5
  13673. fi
  13674. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13675. fi
  13676. if test $fits_in_uint = 1; then
  13677. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  13678. else
  13679. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  13680. fi
  13681. else
  13682. gl_cv_size_max='((size_t)~(size_t)0)'
  13683. fi
  13684. fi
  13685. fi
  13686. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  13687. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  13688. if test "$gl_cv_size_max" != yes; then
  13689. cat >>confdefs.h <<_ACEOF
  13690. #define SIZE_MAX $gl_cv_size_max
  13691. _ACEOF
  13692. fi
  13693. for ac_header in stdint.h
  13694. do
  13695. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13696. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13697. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13698. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13699. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13700. echo $ECHO_N "(cached) $ECHO_C" >&6
  13701. fi
  13702. ac_res=`eval echo '${'$as_ac_Header'}'`
  13703. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13704. echo "${ECHO_T}$ac_res" >&6; }
  13705. else
  13706. # Is the header compilable?
  13707. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13708. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13709. cat >conftest.$ac_ext <<_ACEOF
  13710. /* confdefs.h. */
  13711. _ACEOF
  13712. cat confdefs.h >>conftest.$ac_ext
  13713. cat >>conftest.$ac_ext <<_ACEOF
  13714. /* end confdefs.h. */
  13715. $ac_includes_default
  13716. #include <$ac_header>
  13717. _ACEOF
  13718. rm -f conftest.$ac_objext
  13719. if { (ac_try="$ac_compile"
  13720. case "(($ac_try" in
  13721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13722. *) ac_try_echo=$ac_try;;
  13723. esac
  13724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13725. (eval "$ac_compile") 2>conftest.er1
  13726. ac_status=$?
  13727. grep -v '^ *+' conftest.er1 >conftest.err
  13728. rm -f conftest.er1
  13729. cat conftest.err >&5
  13730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13731. (exit $ac_status); } && {
  13732. test -z "$ac_cxx_werror_flag" ||
  13733. test ! -s conftest.err
  13734. } && test -s conftest.$ac_objext; then
  13735. ac_header_compiler=yes
  13736. else
  13737. echo "$as_me: failed program was:" >&5
  13738. sed 's/^/| /' conftest.$ac_ext >&5
  13739. ac_header_compiler=no
  13740. fi
  13741. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13742. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13743. echo "${ECHO_T}$ac_header_compiler" >&6; }
  13744. # Is the header present?
  13745. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13746. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  13747. cat >conftest.$ac_ext <<_ACEOF
  13748. /* confdefs.h. */
  13749. _ACEOF
  13750. cat confdefs.h >>conftest.$ac_ext
  13751. cat >>conftest.$ac_ext <<_ACEOF
  13752. /* end confdefs.h. */
  13753. #include <$ac_header>
  13754. _ACEOF
  13755. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13756. case "(($ac_try" in
  13757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13758. *) ac_try_echo=$ac_try;;
  13759. esac
  13760. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13761. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13762. ac_status=$?
  13763. grep -v '^ *+' conftest.er1 >conftest.err
  13764. rm -f conftest.er1
  13765. cat conftest.err >&5
  13766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13767. (exit $ac_status); } >/dev/null && {
  13768. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13769. test ! -s conftest.err
  13770. }; then
  13771. ac_header_preproc=yes
  13772. else
  13773. echo "$as_me: failed program was:" >&5
  13774. sed 's/^/| /' conftest.$ac_ext >&5
  13775. ac_header_preproc=no
  13776. fi
  13777. rm -f conftest.err conftest.$ac_ext
  13778. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13779. echo "${ECHO_T}$ac_header_preproc" >&6; }
  13780. # So? What about this header?
  13781. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13782. yes:no: )
  13783. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13784. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13785. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13786. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13787. ac_header_preproc=yes
  13788. ;;
  13789. no:yes:* )
  13790. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13791. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13792. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13793. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13794. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13795. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13796. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13797. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13798. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13799. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13800. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13801. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13802. ( cat <<\_ASBOX
  13803. ## ----------------------------------------------- ##
  13804. ## Report this to t-tujikawa@users.sourceforge.net ##
  13805. ## ----------------------------------------------- ##
  13806. _ASBOX
  13807. ) | sed "s/^/$as_me: WARNING: /" >&2
  13808. ;;
  13809. esac
  13810. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13811. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13812. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13813. echo $ECHO_N "(cached) $ECHO_C" >&6
  13814. else
  13815. eval "$as_ac_Header=\$ac_header_preproc"
  13816. fi
  13817. ac_res=`eval echo '${'$as_ac_Header'}'`
  13818. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13819. echo "${ECHO_T}$ac_res" >&6; }
  13820. fi
  13821. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13822. cat >>confdefs.h <<_ACEOF
  13823. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13824. _ACEOF
  13825. fi
  13826. done
  13827. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  13828. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  13829. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  13830. echo $ECHO_N "(cached) $ECHO_C" >&6
  13831. else
  13832. gt_save_LIBS="$LIBS"
  13833. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13834. cat >conftest.$ac_ext <<_ACEOF
  13835. /* confdefs.h. */
  13836. _ACEOF
  13837. cat confdefs.h >>conftest.$ac_ext
  13838. cat >>conftest.$ac_ext <<_ACEOF
  13839. /* end confdefs.h. */
  13840. #include <CoreFoundation/CFPreferences.h>
  13841. int
  13842. main ()
  13843. {
  13844. CFPreferencesCopyAppValue(NULL, NULL)
  13845. ;
  13846. return 0;
  13847. }
  13848. _ACEOF
  13849. rm -f conftest.$ac_objext conftest$ac_exeext
  13850. if { (ac_try="$ac_link"
  13851. case "(($ac_try" in
  13852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13853. *) ac_try_echo=$ac_try;;
  13854. esac
  13855. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13856. (eval "$ac_link") 2>conftest.er1
  13857. ac_status=$?
  13858. grep -v '^ *+' conftest.er1 >conftest.err
  13859. rm -f conftest.er1
  13860. cat conftest.err >&5
  13861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13862. (exit $ac_status); } && {
  13863. test -z "$ac_cxx_werror_flag" ||
  13864. test ! -s conftest.err
  13865. } && test -s conftest$ac_exeext &&
  13866. $as_test_x conftest$ac_exeext; then
  13867. gt_cv_func_CFPreferencesCopyAppValue=yes
  13868. else
  13869. echo "$as_me: failed program was:" >&5
  13870. sed 's/^/| /' conftest.$ac_ext >&5
  13871. gt_cv_func_CFPreferencesCopyAppValue=no
  13872. fi
  13873. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13874. conftest$ac_exeext conftest.$ac_ext
  13875. LIBS="$gt_save_LIBS"
  13876. fi
  13877. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  13878. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  13879. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  13880. cat >>confdefs.h <<\_ACEOF
  13881. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  13882. _ACEOF
  13883. fi
  13884. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  13885. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  13886. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  13887. echo $ECHO_N "(cached) $ECHO_C" >&6
  13888. else
  13889. gt_save_LIBS="$LIBS"
  13890. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13891. cat >conftest.$ac_ext <<_ACEOF
  13892. /* confdefs.h. */
  13893. _ACEOF
  13894. cat confdefs.h >>conftest.$ac_ext
  13895. cat >>conftest.$ac_ext <<_ACEOF
  13896. /* end confdefs.h. */
  13897. #include <CoreFoundation/CFLocale.h>
  13898. int
  13899. main ()
  13900. {
  13901. CFLocaleCopyCurrent();
  13902. ;
  13903. return 0;
  13904. }
  13905. _ACEOF
  13906. rm -f conftest.$ac_objext conftest$ac_exeext
  13907. if { (ac_try="$ac_link"
  13908. case "(($ac_try" in
  13909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13910. *) ac_try_echo=$ac_try;;
  13911. esac
  13912. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13913. (eval "$ac_link") 2>conftest.er1
  13914. ac_status=$?
  13915. grep -v '^ *+' conftest.er1 >conftest.err
  13916. rm -f conftest.er1
  13917. cat conftest.err >&5
  13918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13919. (exit $ac_status); } && {
  13920. test -z "$ac_cxx_werror_flag" ||
  13921. test ! -s conftest.err
  13922. } && test -s conftest$ac_exeext &&
  13923. $as_test_x conftest$ac_exeext; then
  13924. gt_cv_func_CFLocaleCopyCurrent=yes
  13925. else
  13926. echo "$as_me: failed program was:" >&5
  13927. sed 's/^/| /' conftest.$ac_ext >&5
  13928. gt_cv_func_CFLocaleCopyCurrent=no
  13929. fi
  13930. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13931. conftest$ac_exeext conftest.$ac_ext
  13932. LIBS="$gt_save_LIBS"
  13933. fi
  13934. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  13935. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  13936. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  13937. cat >>confdefs.h <<\_ACEOF
  13938. #define HAVE_CFLOCALECOPYCURRENT 1
  13939. _ACEOF
  13940. fi
  13941. INTL_MACOSX_LIBS=
  13942. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  13943. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  13944. fi
  13945. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  13946. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  13947. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  13948. echo $ECHO_N "(cached) $ECHO_C" >&6
  13949. else
  13950. cat >conftest.$ac_ext <<_ACEOF
  13951. /* confdefs.h. */
  13952. _ACEOF
  13953. cat confdefs.h >>conftest.$ac_ext
  13954. cat >>conftest.$ac_ext <<_ACEOF
  13955. /* end confdefs.h. */
  13956. $ac_includes_default
  13957. typedef ptrdiff_t ac__type_new_;
  13958. int
  13959. main ()
  13960. {
  13961. if ((ac__type_new_ *) 0)
  13962. return 0;
  13963. if (sizeof (ac__type_new_))
  13964. return 0;
  13965. ;
  13966. return 0;
  13967. }
  13968. _ACEOF
  13969. rm -f conftest.$ac_objext
  13970. if { (ac_try="$ac_compile"
  13971. case "(($ac_try" in
  13972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13973. *) ac_try_echo=$ac_try;;
  13974. esac
  13975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13976. (eval "$ac_compile") 2>conftest.er1
  13977. ac_status=$?
  13978. grep -v '^ *+' conftest.er1 >conftest.err
  13979. rm -f conftest.er1
  13980. cat conftest.err >&5
  13981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13982. (exit $ac_status); } && {
  13983. test -z "$ac_cxx_werror_flag" ||
  13984. test ! -s conftest.err
  13985. } && test -s conftest.$ac_objext; then
  13986. ac_cv_type_ptrdiff_t=yes
  13987. else
  13988. echo "$as_me: failed program was:" >&5
  13989. sed 's/^/| /' conftest.$ac_ext >&5
  13990. ac_cv_type_ptrdiff_t=no
  13991. fi
  13992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13993. fi
  13994. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  13995. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  13996. if test $ac_cv_type_ptrdiff_t = yes; then
  13997. :
  13998. else
  13999. cat >>confdefs.h <<\_ACEOF
  14000. #define ptrdiff_t long
  14001. _ACEOF
  14002. fi
  14003. for ac_header in stddef.h stdlib.h string.h
  14004. do
  14005. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14006. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14007. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14008. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14009. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14010. echo $ECHO_N "(cached) $ECHO_C" >&6
  14011. fi
  14012. ac_res=`eval echo '${'$as_ac_Header'}'`
  14013. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14014. echo "${ECHO_T}$ac_res" >&6; }
  14015. else
  14016. # Is the header compilable?
  14017. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14018. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14019. cat >conftest.$ac_ext <<_ACEOF
  14020. /* confdefs.h. */
  14021. _ACEOF
  14022. cat confdefs.h >>conftest.$ac_ext
  14023. cat >>conftest.$ac_ext <<_ACEOF
  14024. /* end confdefs.h. */
  14025. $ac_includes_default
  14026. #include <$ac_header>
  14027. _ACEOF
  14028. rm -f conftest.$ac_objext
  14029. if { (ac_try="$ac_compile"
  14030. case "(($ac_try" in
  14031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14032. *) ac_try_echo=$ac_try;;
  14033. esac
  14034. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14035. (eval "$ac_compile") 2>conftest.er1
  14036. ac_status=$?
  14037. grep -v '^ *+' conftest.er1 >conftest.err
  14038. rm -f conftest.er1
  14039. cat conftest.err >&5
  14040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14041. (exit $ac_status); } && {
  14042. test -z "$ac_cxx_werror_flag" ||
  14043. test ! -s conftest.err
  14044. } && test -s conftest.$ac_objext; then
  14045. ac_header_compiler=yes
  14046. else
  14047. echo "$as_me: failed program was:" >&5
  14048. sed 's/^/| /' conftest.$ac_ext >&5
  14049. ac_header_compiler=no
  14050. fi
  14051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14052. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14053. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14054. # Is the header present?
  14055. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14056. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14057. cat >conftest.$ac_ext <<_ACEOF
  14058. /* confdefs.h. */
  14059. _ACEOF
  14060. cat confdefs.h >>conftest.$ac_ext
  14061. cat >>conftest.$ac_ext <<_ACEOF
  14062. /* end confdefs.h. */
  14063. #include <$ac_header>
  14064. _ACEOF
  14065. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14066. case "(($ac_try" in
  14067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14068. *) ac_try_echo=$ac_try;;
  14069. esac
  14070. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14071. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14072. ac_status=$?
  14073. grep -v '^ *+' conftest.er1 >conftest.err
  14074. rm -f conftest.er1
  14075. cat conftest.err >&5
  14076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14077. (exit $ac_status); } >/dev/null && {
  14078. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14079. test ! -s conftest.err
  14080. }; then
  14081. ac_header_preproc=yes
  14082. else
  14083. echo "$as_me: failed program was:" >&5
  14084. sed 's/^/| /' conftest.$ac_ext >&5
  14085. ac_header_preproc=no
  14086. fi
  14087. rm -f conftest.err conftest.$ac_ext
  14088. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14089. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14090. # So? What about this header?
  14091. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14092. yes:no: )
  14093. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14094. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14095. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14096. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14097. ac_header_preproc=yes
  14098. ;;
  14099. no:yes:* )
  14100. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14101. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14102. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14103. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14104. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14105. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14106. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14107. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14108. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14109. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14110. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14111. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14112. ( cat <<\_ASBOX
  14113. ## ----------------------------------------------- ##
  14114. ## Report this to t-tujikawa@users.sourceforge.net ##
  14115. ## ----------------------------------------------- ##
  14116. _ASBOX
  14117. ) | sed "s/^/$as_me: WARNING: /" >&2
  14118. ;;
  14119. esac
  14120. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14121. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14122. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14123. echo $ECHO_N "(cached) $ECHO_C" >&6
  14124. else
  14125. eval "$as_ac_Header=\$ac_header_preproc"
  14126. fi
  14127. ac_res=`eval echo '${'$as_ac_Header'}'`
  14128. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14129. echo "${ECHO_T}$ac_res" >&6; }
  14130. fi
  14131. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14132. cat >>confdefs.h <<_ACEOF
  14133. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14134. _ACEOF
  14135. fi
  14136. done
  14137. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  14138. do
  14139. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14140. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14141. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14142. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14143. echo $ECHO_N "(cached) $ECHO_C" >&6
  14144. else
  14145. cat >conftest.$ac_ext <<_ACEOF
  14146. /* confdefs.h. */
  14147. _ACEOF
  14148. cat confdefs.h >>conftest.$ac_ext
  14149. cat >>conftest.$ac_ext <<_ACEOF
  14150. /* end confdefs.h. */
  14151. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14152. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14153. #define $ac_func innocuous_$ac_func
  14154. /* System header to define __stub macros and hopefully few prototypes,
  14155. which can conflict with char $ac_func (); below.
  14156. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14157. <limits.h> exists even on freestanding compilers. */
  14158. #ifdef __STDC__
  14159. # include <limits.h>
  14160. #else
  14161. # include <assert.h>
  14162. #endif
  14163. #undef $ac_func
  14164. /* Override any GCC internal prototype to avoid an error.
  14165. Use char because int might match the return type of a GCC
  14166. builtin and then its argument prototype would still apply. */
  14167. #ifdef __cplusplus
  14168. extern "C"
  14169. #endif
  14170. char $ac_func ();
  14171. /* The GNU C library defines this for functions which it implements
  14172. to always fail with ENOSYS. Some functions are actually named
  14173. something starting with __ and the normal name is an alias. */
  14174. #if defined __stub_$ac_func || defined __stub___$ac_func
  14175. choke me
  14176. #endif
  14177. int
  14178. main ()
  14179. {
  14180. return $ac_func ();
  14181. ;
  14182. return 0;
  14183. }
  14184. _ACEOF
  14185. rm -f conftest.$ac_objext conftest$ac_exeext
  14186. if { (ac_try="$ac_link"
  14187. case "(($ac_try" in
  14188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14189. *) ac_try_echo=$ac_try;;
  14190. esac
  14191. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14192. (eval "$ac_link") 2>conftest.er1
  14193. ac_status=$?
  14194. grep -v '^ *+' conftest.er1 >conftest.err
  14195. rm -f conftest.er1
  14196. cat conftest.err >&5
  14197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14198. (exit $ac_status); } && {
  14199. test -z "$ac_cxx_werror_flag" ||
  14200. test ! -s conftest.err
  14201. } && test -s conftest$ac_exeext &&
  14202. $as_test_x conftest$ac_exeext; then
  14203. eval "$as_ac_var=yes"
  14204. else
  14205. echo "$as_me: failed program was:" >&5
  14206. sed 's/^/| /' conftest.$ac_ext >&5
  14207. eval "$as_ac_var=no"
  14208. fi
  14209. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14210. conftest$ac_exeext conftest.$ac_ext
  14211. fi
  14212. ac_res=`eval echo '${'$as_ac_var'}'`
  14213. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14214. echo "${ECHO_T}$ac_res" >&6; }
  14215. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14216. cat >>confdefs.h <<_ACEOF
  14217. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14218. _ACEOF
  14219. fi
  14220. done
  14221. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  14222. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  14223. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  14224. echo $ECHO_N "(cached) $ECHO_C" >&6
  14225. else
  14226. cat >conftest.$ac_ext <<_ACEOF
  14227. /* confdefs.h. */
  14228. _ACEOF
  14229. cat confdefs.h >>conftest.$ac_ext
  14230. cat >>conftest.$ac_ext <<_ACEOF
  14231. /* end confdefs.h. */
  14232. #include <stdio.h>
  14233. int
  14234. main ()
  14235. {
  14236. #ifndef _snprintf
  14237. char *p = (char *) _snprintf;
  14238. #endif
  14239. ;
  14240. return 0;
  14241. }
  14242. _ACEOF
  14243. rm -f conftest.$ac_objext
  14244. if { (ac_try="$ac_compile"
  14245. case "(($ac_try" in
  14246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14247. *) ac_try_echo=$ac_try;;
  14248. esac
  14249. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14250. (eval "$ac_compile") 2>conftest.er1
  14251. ac_status=$?
  14252. grep -v '^ *+' conftest.er1 >conftest.err
  14253. rm -f conftest.er1
  14254. cat conftest.err >&5
  14255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14256. (exit $ac_status); } && {
  14257. test -z "$ac_cxx_werror_flag" ||
  14258. test ! -s conftest.err
  14259. } && test -s conftest.$ac_objext; then
  14260. ac_cv_have_decl__snprintf=yes
  14261. else
  14262. echo "$as_me: failed program was:" >&5
  14263. sed 's/^/| /' conftest.$ac_ext >&5
  14264. ac_cv_have_decl__snprintf=no
  14265. fi
  14266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14267. fi
  14268. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  14269. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  14270. if test $ac_cv_have_decl__snprintf = yes; then
  14271. gt_value=1
  14272. else
  14273. gt_value=0
  14274. fi
  14275. cat >>confdefs.h <<_ACEOF
  14276. #define HAVE_DECL__SNPRINTF $gt_value
  14277. _ACEOF
  14278. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  14279. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  14280. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  14281. echo $ECHO_N "(cached) $ECHO_C" >&6
  14282. else
  14283. cat >conftest.$ac_ext <<_ACEOF
  14284. /* confdefs.h. */
  14285. _ACEOF
  14286. cat confdefs.h >>conftest.$ac_ext
  14287. cat >>conftest.$ac_ext <<_ACEOF
  14288. /* end confdefs.h. */
  14289. #include <stdio.h>
  14290. int
  14291. main ()
  14292. {
  14293. #ifndef _snwprintf
  14294. char *p = (char *) _snwprintf;
  14295. #endif
  14296. ;
  14297. return 0;
  14298. }
  14299. _ACEOF
  14300. rm -f conftest.$ac_objext
  14301. if { (ac_try="$ac_compile"
  14302. case "(($ac_try" in
  14303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14304. *) ac_try_echo=$ac_try;;
  14305. esac
  14306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14307. (eval "$ac_compile") 2>conftest.er1
  14308. ac_status=$?
  14309. grep -v '^ *+' conftest.er1 >conftest.err
  14310. rm -f conftest.er1
  14311. cat conftest.err >&5
  14312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14313. (exit $ac_status); } && {
  14314. test -z "$ac_cxx_werror_flag" ||
  14315. test ! -s conftest.err
  14316. } && test -s conftest.$ac_objext; then
  14317. ac_cv_have_decl__snwprintf=yes
  14318. else
  14319. echo "$as_me: failed program was:" >&5
  14320. sed 's/^/| /' conftest.$ac_ext >&5
  14321. ac_cv_have_decl__snwprintf=no
  14322. fi
  14323. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14324. fi
  14325. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  14326. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  14327. if test $ac_cv_have_decl__snwprintf = yes; then
  14328. gt_value=1
  14329. else
  14330. gt_value=0
  14331. fi
  14332. cat >>confdefs.h <<_ACEOF
  14333. #define HAVE_DECL__SNWPRINTF $gt_value
  14334. _ACEOF
  14335. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  14336. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  14337. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  14338. echo $ECHO_N "(cached) $ECHO_C" >&6
  14339. else
  14340. cat >conftest.$ac_ext <<_ACEOF
  14341. /* confdefs.h. */
  14342. _ACEOF
  14343. cat confdefs.h >>conftest.$ac_ext
  14344. cat >>conftest.$ac_ext <<_ACEOF
  14345. /* end confdefs.h. */
  14346. #include <stdio.h>
  14347. int
  14348. main ()
  14349. {
  14350. #ifndef getc_unlocked
  14351. char *p = (char *) getc_unlocked;
  14352. #endif
  14353. ;
  14354. return 0;
  14355. }
  14356. _ACEOF
  14357. rm -f conftest.$ac_objext
  14358. if { (ac_try="$ac_compile"
  14359. case "(($ac_try" in
  14360. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14361. *) ac_try_echo=$ac_try;;
  14362. esac
  14363. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14364. (eval "$ac_compile") 2>conftest.er1
  14365. ac_status=$?
  14366. grep -v '^ *+' conftest.er1 >conftest.err
  14367. rm -f conftest.er1
  14368. cat conftest.err >&5
  14369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14370. (exit $ac_status); } && {
  14371. test -z "$ac_cxx_werror_flag" ||
  14372. test ! -s conftest.err
  14373. } && test -s conftest.$ac_objext; then
  14374. ac_cv_have_decl_getc_unlocked=yes
  14375. else
  14376. echo "$as_me: failed program was:" >&5
  14377. sed 's/^/| /' conftest.$ac_ext >&5
  14378. ac_cv_have_decl_getc_unlocked=no
  14379. fi
  14380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14381. fi
  14382. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  14383. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  14384. if test $ac_cv_have_decl_getc_unlocked = yes; then
  14385. gt_value=1
  14386. else
  14387. gt_value=0
  14388. fi
  14389. cat >>confdefs.h <<_ACEOF
  14390. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  14391. _ACEOF
  14392. case $gt_cv_func_printf_posix in
  14393. *yes) HAVE_POSIX_PRINTF=1 ;;
  14394. *) HAVE_POSIX_PRINTF=0 ;;
  14395. esac
  14396. if test "$ac_cv_func_asprintf" = yes; then
  14397. HAVE_ASPRINTF=1
  14398. else
  14399. HAVE_ASPRINTF=0
  14400. fi
  14401. if test "$ac_cv_func_snprintf" = yes; then
  14402. HAVE_SNPRINTF=1
  14403. else
  14404. HAVE_SNPRINTF=0
  14405. fi
  14406. if test "$ac_cv_func_wprintf" = yes; then
  14407. HAVE_WPRINTF=1
  14408. else
  14409. HAVE_WPRINTF=0
  14410. fi
  14411. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  14412. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  14413. if test "${am_cv_langinfo_codeset+set}" = set; then
  14414. echo $ECHO_N "(cached) $ECHO_C" >&6
  14415. else
  14416. cat >conftest.$ac_ext <<_ACEOF
  14417. /* confdefs.h. */
  14418. _ACEOF
  14419. cat confdefs.h >>conftest.$ac_ext
  14420. cat >>conftest.$ac_ext <<_ACEOF
  14421. /* end confdefs.h. */
  14422. #include <langinfo.h>
  14423. int
  14424. main ()
  14425. {
  14426. char* cs = nl_langinfo(CODESET); return !cs;
  14427. ;
  14428. return 0;
  14429. }
  14430. _ACEOF
  14431. rm -f conftest.$ac_objext conftest$ac_exeext
  14432. if { (ac_try="$ac_link"
  14433. case "(($ac_try" in
  14434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14435. *) ac_try_echo=$ac_try;;
  14436. esac
  14437. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14438. (eval "$ac_link") 2>conftest.er1
  14439. ac_status=$?
  14440. grep -v '^ *+' conftest.er1 >conftest.err
  14441. rm -f conftest.er1
  14442. cat conftest.err >&5
  14443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14444. (exit $ac_status); } && {
  14445. test -z "$ac_cxx_werror_flag" ||
  14446. test ! -s conftest.err
  14447. } && test -s conftest$ac_exeext &&
  14448. $as_test_x conftest$ac_exeext; then
  14449. am_cv_langinfo_codeset=yes
  14450. else
  14451. echo "$as_me: failed program was:" >&5
  14452. sed 's/^/| /' conftest.$ac_ext >&5
  14453. am_cv_langinfo_codeset=no
  14454. fi
  14455. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14456. conftest$ac_exeext conftest.$ac_ext
  14457. fi
  14458. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  14459. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  14460. if test $am_cv_langinfo_codeset = yes; then
  14461. cat >>confdefs.h <<\_ACEOF
  14462. #define HAVE_LANGINFO_CODESET 1
  14463. _ACEOF
  14464. fi
  14465. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  14466. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  14467. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  14468. echo $ECHO_N "(cached) $ECHO_C" >&6
  14469. else
  14470. cat >conftest.$ac_ext <<_ACEOF
  14471. /* confdefs.h. */
  14472. _ACEOF
  14473. cat confdefs.h >>conftest.$ac_ext
  14474. cat >>conftest.$ac_ext <<_ACEOF
  14475. /* end confdefs.h. */
  14476. #include <locale.h>
  14477. int
  14478. main ()
  14479. {
  14480. return LC_MESSAGES
  14481. ;
  14482. return 0;
  14483. }
  14484. _ACEOF
  14485. rm -f conftest.$ac_objext conftest$ac_exeext
  14486. if { (ac_try="$ac_link"
  14487. case "(($ac_try" in
  14488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14489. *) ac_try_echo=$ac_try;;
  14490. esac
  14491. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14492. (eval "$ac_link") 2>conftest.er1
  14493. ac_status=$?
  14494. grep -v '^ *+' conftest.er1 >conftest.err
  14495. rm -f conftest.er1
  14496. cat conftest.err >&5
  14497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14498. (exit $ac_status); } && {
  14499. test -z "$ac_cxx_werror_flag" ||
  14500. test ! -s conftest.err
  14501. } && test -s conftest$ac_exeext &&
  14502. $as_test_x conftest$ac_exeext; then
  14503. gt_cv_val_LC_MESSAGES=yes
  14504. else
  14505. echo "$as_me: failed program was:" >&5
  14506. sed 's/^/| /' conftest.$ac_ext >&5
  14507. gt_cv_val_LC_MESSAGES=no
  14508. fi
  14509. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14510. conftest$ac_exeext conftest.$ac_ext
  14511. fi
  14512. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  14513. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  14514. if test $gt_cv_val_LC_MESSAGES = yes; then
  14515. cat >>confdefs.h <<\_ACEOF
  14516. #define HAVE_LC_MESSAGES 1
  14517. _ACEOF
  14518. fi
  14519. if test "$enable_shared" = yes; then
  14520. case "$host_os" in
  14521. mingw* | cygwin*) is_woe32dll=yes ;;
  14522. *) is_woe32dll=no ;;
  14523. esac
  14524. else
  14525. is_woe32dll=no
  14526. fi
  14527. WOE32DLL=$is_woe32dll
  14528. case "$host_os" in
  14529. mingw* | cygwin*) is_woe32=yes ;;
  14530. *) is_woe32=no ;;
  14531. esac
  14532. WOE32=$is_woe32
  14533. if test $WOE32 = yes; then
  14534. if test -n "$ac_tool_prefix"; then
  14535. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  14536. set dummy ${ac_tool_prefix}windres; ac_word=$2
  14537. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14538. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14539. if test "${ac_cv_prog_WINDRES+set}" = set; then
  14540. echo $ECHO_N "(cached) $ECHO_C" >&6
  14541. else
  14542. if test -n "$WINDRES"; then
  14543. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  14544. else
  14545. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14546. for as_dir in $PATH
  14547. do
  14548. IFS=$as_save_IFS
  14549. test -z "$as_dir" && as_dir=.
  14550. for ac_exec_ext in '' $ac_executable_extensions; do
  14551. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14552. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  14553. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14554. break 2
  14555. fi
  14556. done
  14557. done
  14558. IFS=$as_save_IFS
  14559. fi
  14560. fi
  14561. WINDRES=$ac_cv_prog_WINDRES
  14562. if test -n "$WINDRES"; then
  14563. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  14564. echo "${ECHO_T}$WINDRES" >&6; }
  14565. else
  14566. { echo "$as_me:$LINENO: result: no" >&5
  14567. echo "${ECHO_T}no" >&6; }
  14568. fi
  14569. fi
  14570. if test -z "$ac_cv_prog_WINDRES"; then
  14571. ac_ct_WINDRES=$WINDRES
  14572. # Extract the first word of "windres", so it can be a program name with args.
  14573. set dummy windres; ac_word=$2
  14574. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  14575. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  14576. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  14577. echo $ECHO_N "(cached) $ECHO_C" >&6
  14578. else
  14579. if test -n "$ac_ct_WINDRES"; then
  14580. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  14581. else
  14582. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14583. for as_dir in $PATH
  14584. do
  14585. IFS=$as_save_IFS
  14586. test -z "$as_dir" && as_dir=.
  14587. for ac_exec_ext in '' $ac_executable_extensions; do
  14588. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14589. ac_cv_prog_ac_ct_WINDRES="windres"
  14590. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14591. break 2
  14592. fi
  14593. done
  14594. done
  14595. IFS=$as_save_IFS
  14596. fi
  14597. fi
  14598. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  14599. if test -n "$ac_ct_WINDRES"; then
  14600. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  14601. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  14602. else
  14603. { echo "$as_me:$LINENO: result: no" >&5
  14604. echo "${ECHO_T}no" >&6; }
  14605. fi
  14606. if test "x$ac_ct_WINDRES" = x; then
  14607. WINDRES=""
  14608. else
  14609. case $cross_compiling:$ac_tool_warned in
  14610. yes:)
  14611. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  14612. whose name does not start with the host triplet. If you think this
  14613. configuration is useful to you, please write to autoconf@gnu.org." >&5
  14614. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  14615. whose name does not start with the host triplet. If you think this
  14616. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  14617. ac_tool_warned=yes ;;
  14618. esac
  14619. WINDRES=$ac_ct_WINDRES
  14620. fi
  14621. else
  14622. WINDRES="$ac_cv_prog_WINDRES"
  14623. fi
  14624. fi
  14625. case "$host_os" in
  14626. hpux*) LTLIBC="" ;;
  14627. *) LTLIBC="-lc" ;;
  14628. esac
  14629. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  14630. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  14631. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  14632. echo $ECHO_N "(cached) $ECHO_C" >&6
  14633. else
  14634. gt_save_LIBS="$LIBS"
  14635. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14636. cat >conftest.$ac_ext <<_ACEOF
  14637. /* confdefs.h. */
  14638. _ACEOF
  14639. cat confdefs.h >>conftest.$ac_ext
  14640. cat >>conftest.$ac_ext <<_ACEOF
  14641. /* end confdefs.h. */
  14642. #include <CoreFoundation/CFPreferences.h>
  14643. int
  14644. main ()
  14645. {
  14646. CFPreferencesCopyAppValue(NULL, NULL)
  14647. ;
  14648. return 0;
  14649. }
  14650. _ACEOF
  14651. rm -f conftest.$ac_objext conftest$ac_exeext
  14652. if { (ac_try="$ac_link"
  14653. case "(($ac_try" in
  14654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14655. *) ac_try_echo=$ac_try;;
  14656. esac
  14657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14658. (eval "$ac_link") 2>conftest.er1
  14659. ac_status=$?
  14660. grep -v '^ *+' conftest.er1 >conftest.err
  14661. rm -f conftest.er1
  14662. cat conftest.err >&5
  14663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14664. (exit $ac_status); } && {
  14665. test -z "$ac_cxx_werror_flag" ||
  14666. test ! -s conftest.err
  14667. } && test -s conftest$ac_exeext &&
  14668. $as_test_x conftest$ac_exeext; then
  14669. gt_cv_func_CFPreferencesCopyAppValue=yes
  14670. else
  14671. echo "$as_me: failed program was:" >&5
  14672. sed 's/^/| /' conftest.$ac_ext >&5
  14673. gt_cv_func_CFPreferencesCopyAppValue=no
  14674. fi
  14675. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14676. conftest$ac_exeext conftest.$ac_ext
  14677. LIBS="$gt_save_LIBS"
  14678. fi
  14679. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  14680. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  14681. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  14682. cat >>confdefs.h <<\_ACEOF
  14683. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  14684. _ACEOF
  14685. fi
  14686. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  14687. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  14688. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  14689. echo $ECHO_N "(cached) $ECHO_C" >&6
  14690. else
  14691. gt_save_LIBS="$LIBS"
  14692. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  14693. cat >conftest.$ac_ext <<_ACEOF
  14694. /* confdefs.h. */
  14695. _ACEOF
  14696. cat confdefs.h >>conftest.$ac_ext
  14697. cat >>conftest.$ac_ext <<_ACEOF
  14698. /* end confdefs.h. */
  14699. #include <CoreFoundation/CFLocale.h>
  14700. int
  14701. main ()
  14702. {
  14703. CFLocaleCopyCurrent();
  14704. ;
  14705. return 0;
  14706. }
  14707. _ACEOF
  14708. rm -f conftest.$ac_objext conftest$ac_exeext
  14709. if { (ac_try="$ac_link"
  14710. case "(($ac_try" in
  14711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14712. *) ac_try_echo=$ac_try;;
  14713. esac
  14714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14715. (eval "$ac_link") 2>conftest.er1
  14716. ac_status=$?
  14717. grep -v '^ *+' conftest.er1 >conftest.err
  14718. rm -f conftest.er1
  14719. cat conftest.err >&5
  14720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14721. (exit $ac_status); } && {
  14722. test -z "$ac_cxx_werror_flag" ||
  14723. test ! -s conftest.err
  14724. } && test -s conftest$ac_exeext &&
  14725. $as_test_x conftest$ac_exeext; then
  14726. gt_cv_func_CFLocaleCopyCurrent=yes
  14727. else
  14728. echo "$as_me: failed program was:" >&5
  14729. sed 's/^/| /' conftest.$ac_ext >&5
  14730. gt_cv_func_CFLocaleCopyCurrent=no
  14731. fi
  14732. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14733. conftest$ac_exeext conftest.$ac_ext
  14734. LIBS="$gt_save_LIBS"
  14735. fi
  14736. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  14737. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  14738. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14739. cat >>confdefs.h <<\_ACEOF
  14740. #define HAVE_CFLOCALECOPYCURRENT 1
  14741. _ACEOF
  14742. fi
  14743. INTL_MACOSX_LIBS=
  14744. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  14745. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  14746. fi
  14747. BUILD_INCLUDED_LIBINTL=no
  14748. USE_INCLUDED_LIBINTL=no
  14749. LIBINTL=
  14750. LTLIBINTL=
  14751. POSUB=
  14752. case " $gt_needs " in
  14753. *" need-formatstring-macros "*) gt_api_version=3 ;;
  14754. *" need-ngettext "*) gt_api_version=2 ;;
  14755. *) gt_api_version=1 ;;
  14756. esac
  14757. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  14758. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  14759. if test "$USE_NLS" = "yes"; then
  14760. gt_use_preinstalled_gnugettext=no
  14761. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  14762. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  14763. # Check whether --with-included-gettext was given.
  14764. if test "${with_included_gettext+set}" = set; then
  14765. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  14766. else
  14767. nls_cv_force_use_gnu_gettext=no
  14768. fi
  14769. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  14770. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  14771. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  14772. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  14773. if test $gt_api_version -ge 3; then
  14774. gt_revision_test_code='
  14775. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  14776. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  14777. #endif
  14778. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  14779. '
  14780. else
  14781. gt_revision_test_code=
  14782. fi
  14783. if test $gt_api_version -ge 2; then
  14784. gt_expression_test_code=' + * ngettext ("", "", 0)'
  14785. else
  14786. gt_expression_test_code=
  14787. fi
  14788. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  14789. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  14790. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  14791. echo $ECHO_N "(cached) $ECHO_C" >&6
  14792. else
  14793. cat >conftest.$ac_ext <<_ACEOF
  14794. /* confdefs.h. */
  14795. _ACEOF
  14796. cat confdefs.h >>conftest.$ac_ext
  14797. cat >>conftest.$ac_ext <<_ACEOF
  14798. /* end confdefs.h. */
  14799. #include <libintl.h>
  14800. $gt_revision_test_code
  14801. extern int _nl_msg_cat_cntr;
  14802. extern int *_nl_domain_bindings;
  14803. int
  14804. main ()
  14805. {
  14806. bindtextdomain ("", "");
  14807. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  14808. ;
  14809. return 0;
  14810. }
  14811. _ACEOF
  14812. rm -f conftest.$ac_objext conftest$ac_exeext
  14813. if { (ac_try="$ac_link"
  14814. case "(($ac_try" in
  14815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14816. *) ac_try_echo=$ac_try;;
  14817. esac
  14818. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14819. (eval "$ac_link") 2>conftest.er1
  14820. ac_status=$?
  14821. grep -v '^ *+' conftest.er1 >conftest.err
  14822. rm -f conftest.er1
  14823. cat conftest.err >&5
  14824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14825. (exit $ac_status); } && {
  14826. test -z "$ac_cxx_werror_flag" ||
  14827. test ! -s conftest.err
  14828. } && test -s conftest$ac_exeext &&
  14829. $as_test_x conftest$ac_exeext; then
  14830. eval "$gt_func_gnugettext_libc=yes"
  14831. else
  14832. echo "$as_me: failed program was:" >&5
  14833. sed 's/^/| /' conftest.$ac_ext >&5
  14834. eval "$gt_func_gnugettext_libc=no"
  14835. fi
  14836. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14837. conftest$ac_exeext conftest.$ac_ext
  14838. fi
  14839. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  14840. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14841. echo "${ECHO_T}$ac_res" >&6; }
  14842. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  14843. use_additional=yes
  14844. acl_save_prefix="$prefix"
  14845. prefix="$acl_final_prefix"
  14846. acl_save_exec_prefix="$exec_prefix"
  14847. exec_prefix="$acl_final_exec_prefix"
  14848. eval additional_includedir=\"$includedir\"
  14849. eval additional_libdir=\"$libdir\"
  14850. exec_prefix="$acl_save_exec_prefix"
  14851. prefix="$acl_save_prefix"
  14852. # Check whether --with-libintl-prefix was given.
  14853. if test "${with_libintl_prefix+set}" = set; then
  14854. withval=$with_libintl_prefix;
  14855. if test "X$withval" = "Xno"; then
  14856. use_additional=no
  14857. else
  14858. if test "X$withval" = "X"; then
  14859. acl_save_prefix="$prefix"
  14860. prefix="$acl_final_prefix"
  14861. acl_save_exec_prefix="$exec_prefix"
  14862. exec_prefix="$acl_final_exec_prefix"
  14863. eval additional_includedir=\"$includedir\"
  14864. eval additional_libdir=\"$libdir\"
  14865. exec_prefix="$acl_save_exec_prefix"
  14866. prefix="$acl_save_prefix"
  14867. else
  14868. additional_includedir="$withval/include"
  14869. additional_libdir="$withval/$acl_libdirstem"
  14870. fi
  14871. fi
  14872. fi
  14873. LIBINTL=
  14874. LTLIBINTL=
  14875. INCINTL=
  14876. LIBINTL_PREFIX=
  14877. rpathdirs=
  14878. ltrpathdirs=
  14879. names_already_handled=
  14880. names_next_round='intl '
  14881. while test -n "$names_next_round"; do
  14882. names_this_round="$names_next_round"
  14883. names_next_round=
  14884. for name in $names_this_round; do
  14885. already_handled=
  14886. for n in $names_already_handled; do
  14887. if test "$n" = "$name"; then
  14888. already_handled=yes
  14889. break
  14890. fi
  14891. done
  14892. if test -z "$already_handled"; then
  14893. names_already_handled="$names_already_handled $name"
  14894. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  14895. eval value=\"\$HAVE_LIB$uppername\"
  14896. if test -n "$value"; then
  14897. if test "$value" = yes; then
  14898. eval value=\"\$LIB$uppername\"
  14899. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  14900. eval value=\"\$LTLIB$uppername\"
  14901. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  14902. else
  14903. :
  14904. fi
  14905. else
  14906. found_dir=
  14907. found_la=
  14908. found_so=
  14909. found_a=
  14910. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  14911. if test -n "$acl_shlibext"; then
  14912. shrext=".$acl_shlibext" # typically: shrext=.so
  14913. else
  14914. shrext=
  14915. fi
  14916. if test $use_additional = yes; then
  14917. dir="$additional_libdir"
  14918. if test -n "$acl_shlibext"; then
  14919. if test -f "$dir/$libname$shrext"; then
  14920. found_dir="$dir"
  14921. found_so="$dir/$libname$shrext"
  14922. else
  14923. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  14924. ver=`(cd "$dir" && \
  14925. for f in "$libname$shrext".*; do echo "$f"; done \
  14926. | sed -e "s,^$libname$shrext\\\\.,," \
  14927. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  14928. | sed 1q ) 2>/dev/null`
  14929. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  14930. found_dir="$dir"
  14931. found_so="$dir/$libname$shrext.$ver"
  14932. fi
  14933. else
  14934. eval library_names=\"$acl_library_names_spec\"
  14935. for f in $library_names; do
  14936. if test -f "$dir/$f"; then
  14937. found_dir="$dir"
  14938. found_so="$dir/$f"
  14939. break
  14940. fi
  14941. done
  14942. fi
  14943. fi
  14944. fi
  14945. if test "X$found_dir" = "X"; then
  14946. if test -f "$dir/$libname.$acl_libext"; then
  14947. found_dir="$dir"
  14948. found_a="$dir/$libname.$acl_libext"
  14949. fi
  14950. fi
  14951. if test "X$found_dir" != "X"; then
  14952. if test -f "$dir/$libname.la"; then
  14953. found_la="$dir/$libname.la"
  14954. fi
  14955. fi
  14956. fi
  14957. if test "X$found_dir" = "X"; then
  14958. for x in $LDFLAGS $LTLIBINTL; do
  14959. acl_save_prefix="$prefix"
  14960. prefix="$acl_final_prefix"
  14961. acl_save_exec_prefix="$exec_prefix"
  14962. exec_prefix="$acl_final_exec_prefix"
  14963. eval x=\"$x\"
  14964. exec_prefix="$acl_save_exec_prefix"
  14965. prefix="$acl_save_prefix"
  14966. case "$x" in
  14967. -L*)
  14968. dir=`echo "X$x" | sed -e 's/^X-L//'`
  14969. if test -n "$acl_shlibext"; then
  14970. if test -f "$dir/$libname$shrext"; then
  14971. found_dir="$dir"
  14972. found_so="$dir/$libname$shrext"
  14973. else
  14974. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  14975. ver=`(cd "$dir" && \
  14976. for f in "$libname$shrext".*; do echo "$f"; done \
  14977. | sed -e "s,^$libname$shrext\\\\.,," \
  14978. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  14979. | sed 1q ) 2>/dev/null`
  14980. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  14981. found_dir="$dir"
  14982. found_so="$dir/$libname$shrext.$ver"
  14983. fi
  14984. else
  14985. eval library_names=\"$acl_library_names_spec\"
  14986. for f in $library_names; do
  14987. if test -f "$dir/$f"; then
  14988. found_dir="$dir"
  14989. found_so="$dir/$f"
  14990. break
  14991. fi
  14992. done
  14993. fi
  14994. fi
  14995. fi
  14996. if test "X$found_dir" = "X"; then
  14997. if test -f "$dir/$libname.$acl_libext"; then
  14998. found_dir="$dir"
  14999. found_a="$dir/$libname.$acl_libext"
  15000. fi
  15001. fi
  15002. if test "X$found_dir" != "X"; then
  15003. if test -f "$dir/$libname.la"; then
  15004. found_la="$dir/$libname.la"
  15005. fi
  15006. fi
  15007. ;;
  15008. esac
  15009. if test "X$found_dir" != "X"; then
  15010. break
  15011. fi
  15012. done
  15013. fi
  15014. if test "X$found_dir" != "X"; then
  15015. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  15016. if test "X$found_so" != "X"; then
  15017. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  15018. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15019. else
  15020. haveit=
  15021. for x in $ltrpathdirs; do
  15022. if test "X$x" = "X$found_dir"; then
  15023. haveit=yes
  15024. break
  15025. fi
  15026. done
  15027. if test -z "$haveit"; then
  15028. ltrpathdirs="$ltrpathdirs $found_dir"
  15029. fi
  15030. if test "$acl_hardcode_direct" = yes; then
  15031. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15032. else
  15033. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  15034. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15035. haveit=
  15036. for x in $rpathdirs; do
  15037. if test "X$x" = "X$found_dir"; then
  15038. haveit=yes
  15039. break
  15040. fi
  15041. done
  15042. if test -z "$haveit"; then
  15043. rpathdirs="$rpathdirs $found_dir"
  15044. fi
  15045. else
  15046. haveit=
  15047. for x in $LDFLAGS $LIBINTL; do
  15048. acl_save_prefix="$prefix"
  15049. prefix="$acl_final_prefix"
  15050. acl_save_exec_prefix="$exec_prefix"
  15051. exec_prefix="$acl_final_exec_prefix"
  15052. eval x=\"$x\"
  15053. exec_prefix="$acl_save_exec_prefix"
  15054. prefix="$acl_save_prefix"
  15055. if test "X$x" = "X-L$found_dir"; then
  15056. haveit=yes
  15057. break
  15058. fi
  15059. done
  15060. if test -z "$haveit"; then
  15061. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  15062. fi
  15063. if test "$acl_hardcode_minus_L" != no; then
  15064. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  15065. else
  15066. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15067. fi
  15068. fi
  15069. fi
  15070. fi
  15071. else
  15072. if test "X$found_a" != "X"; then
  15073. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  15074. else
  15075. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  15076. fi
  15077. fi
  15078. additional_includedir=
  15079. case "$found_dir" in
  15080. */$acl_libdirstem | */$acl_libdirstem/)
  15081. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  15082. LIBINTL_PREFIX="$basedir"
  15083. additional_includedir="$basedir/include"
  15084. ;;
  15085. esac
  15086. if test "X$additional_includedir" != "X"; then
  15087. if test "X$additional_includedir" != "X/usr/include"; then
  15088. haveit=
  15089. if test "X$additional_includedir" = "X/usr/local/include"; then
  15090. if test -n "$GCC"; then
  15091. case $host_os in
  15092. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15093. esac
  15094. fi
  15095. fi
  15096. if test -z "$haveit"; then
  15097. for x in $CPPFLAGS $INCINTL; do
  15098. acl_save_prefix="$prefix"
  15099. prefix="$acl_final_prefix"
  15100. acl_save_exec_prefix="$exec_prefix"
  15101. exec_prefix="$acl_final_exec_prefix"
  15102. eval x=\"$x\"
  15103. exec_prefix="$acl_save_exec_prefix"
  15104. prefix="$acl_save_prefix"
  15105. if test "X$x" = "X-I$additional_includedir"; then
  15106. haveit=yes
  15107. break
  15108. fi
  15109. done
  15110. if test -z "$haveit"; then
  15111. if test -d "$additional_includedir"; then
  15112. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  15113. fi
  15114. fi
  15115. fi
  15116. fi
  15117. fi
  15118. if test -n "$found_la"; then
  15119. save_libdir="$libdir"
  15120. case "$found_la" in
  15121. */* | *\\*) . "$found_la" ;;
  15122. *) . "./$found_la" ;;
  15123. esac
  15124. libdir="$save_libdir"
  15125. for dep in $dependency_libs; do
  15126. case "$dep" in
  15127. -L*)
  15128. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  15129. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  15130. haveit=
  15131. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  15132. if test -n "$GCC"; then
  15133. case $host_os in
  15134. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  15135. esac
  15136. fi
  15137. fi
  15138. if test -z "$haveit"; then
  15139. haveit=
  15140. for x in $LDFLAGS $LIBINTL; do
  15141. acl_save_prefix="$prefix"
  15142. prefix="$acl_final_prefix"
  15143. acl_save_exec_prefix="$exec_prefix"
  15144. exec_prefix="$acl_final_exec_prefix"
  15145. eval x=\"$x\"
  15146. exec_prefix="$acl_save_exec_prefix"
  15147. prefix="$acl_save_prefix"
  15148. if test "X$x" = "X-L$additional_libdir"; then
  15149. haveit=yes
  15150. break
  15151. fi
  15152. done
  15153. if test -z "$haveit"; then
  15154. if test -d "$additional_libdir"; then
  15155. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  15156. fi
  15157. fi
  15158. haveit=
  15159. for x in $LDFLAGS $LTLIBINTL; do
  15160. acl_save_prefix="$prefix"
  15161. prefix="$acl_final_prefix"
  15162. acl_save_exec_prefix="$exec_prefix"
  15163. exec_prefix="$acl_final_exec_prefix"
  15164. eval x=\"$x\"
  15165. exec_prefix="$acl_save_exec_prefix"
  15166. prefix="$acl_save_prefix"
  15167. if test "X$x" = "X-L$additional_libdir"; then
  15168. haveit=yes
  15169. break
  15170. fi
  15171. done
  15172. if test -z "$haveit"; then
  15173. if test -d "$additional_libdir"; then
  15174. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  15175. fi
  15176. fi
  15177. fi
  15178. fi
  15179. ;;
  15180. -R*)
  15181. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  15182. if test "$enable_rpath" != no; then
  15183. haveit=
  15184. for x in $rpathdirs; do
  15185. if test "X$x" = "X$dir"; then
  15186. haveit=yes
  15187. break
  15188. fi
  15189. done
  15190. if test -z "$haveit"; then
  15191. rpathdirs="$rpathdirs $dir"
  15192. fi
  15193. haveit=
  15194. for x in $ltrpathdirs; do
  15195. if test "X$x" = "X$dir"; then
  15196. haveit=yes
  15197. break
  15198. fi
  15199. done
  15200. if test -z "$haveit"; then
  15201. ltrpathdirs="$ltrpathdirs $dir"
  15202. fi
  15203. fi
  15204. ;;
  15205. -l*)
  15206. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  15207. ;;
  15208. *.la)
  15209. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  15210. ;;
  15211. *)
  15212. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  15213. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  15214. ;;
  15215. esac
  15216. done
  15217. fi
  15218. else
  15219. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  15220. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  15221. fi
  15222. fi
  15223. fi
  15224. done
  15225. done
  15226. if test "X$rpathdirs" != "X"; then
  15227. if test -n "$acl_hardcode_libdir_separator"; then
  15228. alldirs=
  15229. for found_dir in $rpathdirs; do
  15230. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  15231. done
  15232. acl_save_libdir="$libdir"
  15233. libdir="$alldirs"
  15234. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15235. libdir="$acl_save_libdir"
  15236. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15237. else
  15238. for found_dir in $rpathdirs; do
  15239. acl_save_libdir="$libdir"
  15240. libdir="$found_dir"
  15241. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  15242. libdir="$acl_save_libdir"
  15243. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  15244. done
  15245. fi
  15246. fi
  15247. if test "X$ltrpathdirs" != "X"; then
  15248. for found_dir in $ltrpathdirs; do
  15249. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  15250. done
  15251. fi
  15252. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  15253. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  15254. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  15255. echo $ECHO_N "(cached) $ECHO_C" >&6
  15256. else
  15257. gt_save_CPPFLAGS="$CPPFLAGS"
  15258. CPPFLAGS="$CPPFLAGS $INCINTL"
  15259. gt_save_LIBS="$LIBS"
  15260. LIBS="$LIBS $LIBINTL"
  15261. cat >conftest.$ac_ext <<_ACEOF
  15262. /* confdefs.h. */
  15263. _ACEOF
  15264. cat confdefs.h >>conftest.$ac_ext
  15265. cat >>conftest.$ac_ext <<_ACEOF
  15266. /* end confdefs.h. */
  15267. #include <libintl.h>
  15268. $gt_revision_test_code
  15269. extern int _nl_msg_cat_cntr;
  15270. extern
  15271. #ifdef __cplusplus
  15272. "C"
  15273. #endif
  15274. const char *_nl_expand_alias (const char *);
  15275. int
  15276. main ()
  15277. {
  15278. bindtextdomain ("", "");
  15279. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15280. ;
  15281. return 0;
  15282. }
  15283. _ACEOF
  15284. rm -f conftest.$ac_objext conftest$ac_exeext
  15285. if { (ac_try="$ac_link"
  15286. case "(($ac_try" in
  15287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15288. *) ac_try_echo=$ac_try;;
  15289. esac
  15290. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15291. (eval "$ac_link") 2>conftest.er1
  15292. ac_status=$?
  15293. grep -v '^ *+' conftest.er1 >conftest.err
  15294. rm -f conftest.er1
  15295. cat conftest.err >&5
  15296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15297. (exit $ac_status); } && {
  15298. test -z "$ac_cxx_werror_flag" ||
  15299. test ! -s conftest.err
  15300. } && test -s conftest$ac_exeext &&
  15301. $as_test_x conftest$ac_exeext; then
  15302. eval "$gt_func_gnugettext_libintl=yes"
  15303. else
  15304. echo "$as_me: failed program was:" >&5
  15305. sed 's/^/| /' conftest.$ac_ext >&5
  15306. eval "$gt_func_gnugettext_libintl=no"
  15307. fi
  15308. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15309. conftest$ac_exeext conftest.$ac_ext
  15310. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  15311. LIBS="$LIBS $LIBICONV"
  15312. cat >conftest.$ac_ext <<_ACEOF
  15313. /* confdefs.h. */
  15314. _ACEOF
  15315. cat confdefs.h >>conftest.$ac_ext
  15316. cat >>conftest.$ac_ext <<_ACEOF
  15317. /* end confdefs.h. */
  15318. #include <libintl.h>
  15319. $gt_revision_test_code
  15320. extern int _nl_msg_cat_cntr;
  15321. extern
  15322. #ifdef __cplusplus
  15323. "C"
  15324. #endif
  15325. const char *_nl_expand_alias (const char *);
  15326. int
  15327. main ()
  15328. {
  15329. bindtextdomain ("", "");
  15330. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  15331. ;
  15332. return 0;
  15333. }
  15334. _ACEOF
  15335. rm -f conftest.$ac_objext conftest$ac_exeext
  15336. if { (ac_try="$ac_link"
  15337. case "(($ac_try" in
  15338. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15339. *) ac_try_echo=$ac_try;;
  15340. esac
  15341. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15342. (eval "$ac_link") 2>conftest.er1
  15343. ac_status=$?
  15344. grep -v '^ *+' conftest.er1 >conftest.err
  15345. rm -f conftest.er1
  15346. cat conftest.err >&5
  15347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15348. (exit $ac_status); } && {
  15349. test -z "$ac_cxx_werror_flag" ||
  15350. test ! -s conftest.err
  15351. } && test -s conftest$ac_exeext &&
  15352. $as_test_x conftest$ac_exeext; then
  15353. LIBINTL="$LIBINTL $LIBICONV"
  15354. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  15355. eval "$gt_func_gnugettext_libintl=yes"
  15356. else
  15357. echo "$as_me: failed program was:" >&5
  15358. sed 's/^/| /' conftest.$ac_ext >&5
  15359. fi
  15360. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15361. conftest$ac_exeext conftest.$ac_ext
  15362. fi
  15363. CPPFLAGS="$gt_save_CPPFLAGS"
  15364. LIBS="$gt_save_LIBS"
  15365. fi
  15366. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  15367. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15368. echo "${ECHO_T}$ac_res" >&6; }
  15369. fi
  15370. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  15371. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  15372. && test "$PACKAGE" != gettext-runtime \
  15373. && test "$PACKAGE" != gettext-tools; }; then
  15374. gt_use_preinstalled_gnugettext=yes
  15375. else
  15376. LIBINTL=
  15377. LTLIBINTL=
  15378. INCINTL=
  15379. fi
  15380. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  15381. nls_cv_use_gnu_gettext=yes
  15382. fi
  15383. fi
  15384. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  15385. BUILD_INCLUDED_LIBINTL=yes
  15386. USE_INCLUDED_LIBINTL=yes
  15387. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  15388. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  15389. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  15390. fi
  15391. CATOBJEXT=
  15392. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15393. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15394. CATOBJEXT=.gmo
  15395. fi
  15396. if test -n "$INTL_MACOSX_LIBS"; then
  15397. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15398. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15399. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  15400. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  15401. fi
  15402. fi
  15403. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  15404. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  15405. cat >>confdefs.h <<\_ACEOF
  15406. #define ENABLE_NLS 1
  15407. _ACEOF
  15408. else
  15409. USE_NLS=no
  15410. fi
  15411. fi
  15412. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  15413. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  15414. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  15415. echo "${ECHO_T}$USE_NLS" >&6; }
  15416. if test "$USE_NLS" = "yes"; then
  15417. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  15418. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  15419. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15420. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15421. gt_source="external libintl"
  15422. else
  15423. gt_source="libc"
  15424. fi
  15425. else
  15426. gt_source="included intl directory"
  15427. fi
  15428. { echo "$as_me:$LINENO: result: $gt_source" >&5
  15429. echo "${ECHO_T}$gt_source" >&6; }
  15430. fi
  15431. if test "$USE_NLS" = "yes"; then
  15432. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  15433. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  15434. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  15435. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  15436. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  15437. echo "${ECHO_T}$LIBINTL" >&6; }
  15438. for element in $INCINTL; do
  15439. haveit=
  15440. for x in $CPPFLAGS; do
  15441. acl_save_prefix="$prefix"
  15442. prefix="$acl_final_prefix"
  15443. acl_save_exec_prefix="$exec_prefix"
  15444. exec_prefix="$acl_final_exec_prefix"
  15445. eval x=\"$x\"
  15446. exec_prefix="$acl_save_exec_prefix"
  15447. prefix="$acl_save_prefix"
  15448. if test "X$x" = "X$element"; then
  15449. haveit=yes
  15450. break
  15451. fi
  15452. done
  15453. if test -z "$haveit"; then
  15454. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  15455. fi
  15456. done
  15457. fi
  15458. cat >>confdefs.h <<\_ACEOF
  15459. #define HAVE_GETTEXT 1
  15460. _ACEOF
  15461. cat >>confdefs.h <<\_ACEOF
  15462. #define HAVE_DCGETTEXT 1
  15463. _ACEOF
  15464. fi
  15465. POSUB=po
  15466. fi
  15467. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  15468. BUILD_INCLUDED_LIBINTL=yes
  15469. fi
  15470. nls_cv_header_intl=
  15471. nls_cv_header_libgt=
  15472. DATADIRNAME=share
  15473. INSTOBJEXT=.mo
  15474. GENCAT=gencat
  15475. INTLOBJS=
  15476. if test "$USE_INCLUDED_LIBINTL" = yes; then
  15477. INTLOBJS="\$(GETTOBJS)"
  15478. fi
  15479. INTL_LIBTOOL_SUFFIX_PREFIX=
  15480. INTLLIBS="$LIBINTL"
  15481. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  15482. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  15483. if test "${ac_cv_lib_error_at_line+set}" = set; then
  15484. echo $ECHO_N "(cached) $ECHO_C" >&6
  15485. else
  15486. cat >conftest.$ac_ext <<_ACEOF
  15487. /* confdefs.h. */
  15488. _ACEOF
  15489. cat confdefs.h >>conftest.$ac_ext
  15490. cat >>conftest.$ac_ext <<_ACEOF
  15491. /* end confdefs.h. */
  15492. #include <error.h>
  15493. int
  15494. main ()
  15495. {
  15496. error_at_line (0, 0, "", 0, "an error occurred");
  15497. ;
  15498. return 0;
  15499. }
  15500. _ACEOF
  15501. rm -f conftest.$ac_objext conftest$ac_exeext
  15502. if { (ac_try="$ac_link"
  15503. case "(($ac_try" in
  15504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15505. *) ac_try_echo=$ac_try;;
  15506. esac
  15507. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15508. (eval "$ac_link") 2>conftest.er1
  15509. ac_status=$?
  15510. grep -v '^ *+' conftest.er1 >conftest.err
  15511. rm -f conftest.er1
  15512. cat conftest.err >&5
  15513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15514. (exit $ac_status); } && {
  15515. test -z "$ac_cxx_werror_flag" ||
  15516. test ! -s conftest.err
  15517. } && test -s conftest$ac_exeext &&
  15518. $as_test_x conftest$ac_exeext; then
  15519. ac_cv_lib_error_at_line=yes
  15520. else
  15521. echo "$as_me: failed program was:" >&5
  15522. sed 's/^/| /' conftest.$ac_ext >&5
  15523. ac_cv_lib_error_at_line=no
  15524. fi
  15525. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15526. conftest$ac_exeext conftest.$ac_ext
  15527. fi
  15528. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  15529. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  15530. if test $ac_cv_lib_error_at_line = no; then
  15531. case " $LIBOBJS " in
  15532. *" error.$ac_objext "* ) ;;
  15533. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  15534. ;;
  15535. esac
  15536. fi
  15537. if test $ac_cv_c_compiler_gnu = yes; then
  15538. { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  15539. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
  15540. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  15541. echo $ECHO_N "(cached) $ECHO_C" >&6
  15542. else
  15543. ac_pattern="Autoconf.*'x'"
  15544. cat >conftest.$ac_ext <<_ACEOF
  15545. /* confdefs.h. */
  15546. _ACEOF
  15547. cat confdefs.h >>conftest.$ac_ext
  15548. cat >>conftest.$ac_ext <<_ACEOF
  15549. /* end confdefs.h. */
  15550. #include <sgtty.h>
  15551. Autoconf TIOCGETP
  15552. _ACEOF
  15553. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15554. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15555. ac_cv_prog_gcc_traditional=yes
  15556. else
  15557. ac_cv_prog_gcc_traditional=no
  15558. fi
  15559. rm -f conftest*
  15560. if test $ac_cv_prog_gcc_traditional = no; then
  15561. cat >conftest.$ac_ext <<_ACEOF
  15562. /* confdefs.h. */
  15563. _ACEOF
  15564. cat confdefs.h >>conftest.$ac_ext
  15565. cat >>conftest.$ac_ext <<_ACEOF
  15566. /* end confdefs.h. */
  15567. #include <termio.h>
  15568. Autoconf TCGETA
  15569. _ACEOF
  15570. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15571. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  15572. ac_cv_prog_gcc_traditional=yes
  15573. fi
  15574. rm -f conftest*
  15575. fi
  15576. fi
  15577. { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  15578. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
  15579. if test $ac_cv_prog_gcc_traditional = yes; then
  15580. CC="$CC -traditional"
  15581. fi
  15582. fi
  15583. case "$target" in
  15584. *mingw*)
  15585. ;;
  15586. *)
  15587. for ac_header in stdlib.h
  15588. do
  15589. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15590. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15591. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15592. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15593. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15594. echo $ECHO_N "(cached) $ECHO_C" >&6
  15595. fi
  15596. ac_res=`eval echo '${'$as_ac_Header'}'`
  15597. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15598. echo "${ECHO_T}$ac_res" >&6; }
  15599. else
  15600. # Is the header compilable?
  15601. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15602. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15603. cat >conftest.$ac_ext <<_ACEOF
  15604. /* confdefs.h. */
  15605. _ACEOF
  15606. cat confdefs.h >>conftest.$ac_ext
  15607. cat >>conftest.$ac_ext <<_ACEOF
  15608. /* end confdefs.h. */
  15609. $ac_includes_default
  15610. #include <$ac_header>
  15611. _ACEOF
  15612. rm -f conftest.$ac_objext
  15613. if { (ac_try="$ac_compile"
  15614. case "(($ac_try" in
  15615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15616. *) ac_try_echo=$ac_try;;
  15617. esac
  15618. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15619. (eval "$ac_compile") 2>conftest.er1
  15620. ac_status=$?
  15621. grep -v '^ *+' conftest.er1 >conftest.err
  15622. rm -f conftest.er1
  15623. cat conftest.err >&5
  15624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15625. (exit $ac_status); } && {
  15626. test -z "$ac_cxx_werror_flag" ||
  15627. test ! -s conftest.err
  15628. } && test -s conftest.$ac_objext; then
  15629. ac_header_compiler=yes
  15630. else
  15631. echo "$as_me: failed program was:" >&5
  15632. sed 's/^/| /' conftest.$ac_ext >&5
  15633. ac_header_compiler=no
  15634. fi
  15635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15636. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15637. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15638. # Is the header present?
  15639. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15640. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15641. cat >conftest.$ac_ext <<_ACEOF
  15642. /* confdefs.h. */
  15643. _ACEOF
  15644. cat confdefs.h >>conftest.$ac_ext
  15645. cat >>conftest.$ac_ext <<_ACEOF
  15646. /* end confdefs.h. */
  15647. #include <$ac_header>
  15648. _ACEOF
  15649. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15650. case "(($ac_try" in
  15651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15652. *) ac_try_echo=$ac_try;;
  15653. esac
  15654. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15655. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15656. ac_status=$?
  15657. grep -v '^ *+' conftest.er1 >conftest.err
  15658. rm -f conftest.er1
  15659. cat conftest.err >&5
  15660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15661. (exit $ac_status); } >/dev/null && {
  15662. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15663. test ! -s conftest.err
  15664. }; then
  15665. ac_header_preproc=yes
  15666. else
  15667. echo "$as_me: failed program was:" >&5
  15668. sed 's/^/| /' conftest.$ac_ext >&5
  15669. ac_header_preproc=no
  15670. fi
  15671. rm -f conftest.err conftest.$ac_ext
  15672. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15673. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15674. # So? What about this header?
  15675. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15676. yes:no: )
  15677. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15678. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15679. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15680. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15681. ac_header_preproc=yes
  15682. ;;
  15683. no:yes:* )
  15684. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15685. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15686. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15687. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15688. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15689. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15690. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15691. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15692. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15693. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15694. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15695. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15696. ( cat <<\_ASBOX
  15697. ## ----------------------------------------------- ##
  15698. ## Report this to t-tujikawa@users.sourceforge.net ##
  15699. ## ----------------------------------------------- ##
  15700. _ASBOX
  15701. ) | sed "s/^/$as_me: WARNING: /" >&2
  15702. ;;
  15703. esac
  15704. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15705. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15706. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15707. echo $ECHO_N "(cached) $ECHO_C" >&6
  15708. else
  15709. eval "$as_ac_Header=\$ac_header_preproc"
  15710. fi
  15711. ac_res=`eval echo '${'$as_ac_Header'}'`
  15712. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15713. echo "${ECHO_T}$ac_res" >&6; }
  15714. fi
  15715. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15716. cat >>confdefs.h <<_ACEOF
  15717. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15718. _ACEOF
  15719. fi
  15720. done
  15721. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  15722. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  15723. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  15724. echo $ECHO_N "(cached) $ECHO_C" >&6
  15725. else
  15726. if test "$cross_compiling" = yes; then
  15727. ac_cv_func_malloc_0_nonnull=no
  15728. else
  15729. cat >conftest.$ac_ext <<_ACEOF
  15730. /* confdefs.h. */
  15731. _ACEOF
  15732. cat confdefs.h >>conftest.$ac_ext
  15733. cat >>conftest.$ac_ext <<_ACEOF
  15734. /* end confdefs.h. */
  15735. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  15736. # include <stdlib.h>
  15737. #else
  15738. char *malloc ();
  15739. #endif
  15740. int
  15741. main ()
  15742. {
  15743. return ! malloc (0);
  15744. ;
  15745. return 0;
  15746. }
  15747. _ACEOF
  15748. rm -f conftest$ac_exeext
  15749. if { (ac_try="$ac_link"
  15750. case "(($ac_try" in
  15751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15752. *) ac_try_echo=$ac_try;;
  15753. esac
  15754. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15755. (eval "$ac_link") 2>&5
  15756. ac_status=$?
  15757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15758. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15759. { (case "(($ac_try" in
  15760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15761. *) ac_try_echo=$ac_try;;
  15762. esac
  15763. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15764. (eval "$ac_try") 2>&5
  15765. ac_status=$?
  15766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15767. (exit $ac_status); }; }; then
  15768. ac_cv_func_malloc_0_nonnull=yes
  15769. else
  15770. echo "$as_me: program exited with status $ac_status" >&5
  15771. echo "$as_me: failed program was:" >&5
  15772. sed 's/^/| /' conftest.$ac_ext >&5
  15773. ( exit $ac_status )
  15774. ac_cv_func_malloc_0_nonnull=no
  15775. fi
  15776. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15777. fi
  15778. fi
  15779. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  15780. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  15781. if test $ac_cv_func_malloc_0_nonnull = yes; then
  15782. cat >>confdefs.h <<\_ACEOF
  15783. #define HAVE_MALLOC 1
  15784. _ACEOF
  15785. else
  15786. cat >>confdefs.h <<\_ACEOF
  15787. #define HAVE_MALLOC 0
  15788. _ACEOF
  15789. case " $LIBOBJS " in
  15790. *" malloc.$ac_objext "* ) ;;
  15791. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  15792. ;;
  15793. esac
  15794. cat >>confdefs.h <<\_ACEOF
  15795. #define malloc rpl_malloc
  15796. _ACEOF
  15797. fi
  15798. for ac_header in stdlib.h
  15799. do
  15800. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15801. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15802. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15803. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15804. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15805. echo $ECHO_N "(cached) $ECHO_C" >&6
  15806. fi
  15807. ac_res=`eval echo '${'$as_ac_Header'}'`
  15808. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15809. echo "${ECHO_T}$ac_res" >&6; }
  15810. else
  15811. # Is the header compilable?
  15812. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15813. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15814. cat >conftest.$ac_ext <<_ACEOF
  15815. /* confdefs.h. */
  15816. _ACEOF
  15817. cat confdefs.h >>conftest.$ac_ext
  15818. cat >>conftest.$ac_ext <<_ACEOF
  15819. /* end confdefs.h. */
  15820. $ac_includes_default
  15821. #include <$ac_header>
  15822. _ACEOF
  15823. rm -f conftest.$ac_objext
  15824. if { (ac_try="$ac_compile"
  15825. case "(($ac_try" in
  15826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15827. *) ac_try_echo=$ac_try;;
  15828. esac
  15829. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15830. (eval "$ac_compile") 2>conftest.er1
  15831. ac_status=$?
  15832. grep -v '^ *+' conftest.er1 >conftest.err
  15833. rm -f conftest.er1
  15834. cat conftest.err >&5
  15835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15836. (exit $ac_status); } && {
  15837. test -z "$ac_cxx_werror_flag" ||
  15838. test ! -s conftest.err
  15839. } && test -s conftest.$ac_objext; then
  15840. ac_header_compiler=yes
  15841. else
  15842. echo "$as_me: failed program was:" >&5
  15843. sed 's/^/| /' conftest.$ac_ext >&5
  15844. ac_header_compiler=no
  15845. fi
  15846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15847. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15848. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15849. # Is the header present?
  15850. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15851. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15852. cat >conftest.$ac_ext <<_ACEOF
  15853. /* confdefs.h. */
  15854. _ACEOF
  15855. cat confdefs.h >>conftest.$ac_ext
  15856. cat >>conftest.$ac_ext <<_ACEOF
  15857. /* end confdefs.h. */
  15858. #include <$ac_header>
  15859. _ACEOF
  15860. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15861. case "(($ac_try" in
  15862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15863. *) ac_try_echo=$ac_try;;
  15864. esac
  15865. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15866. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15867. ac_status=$?
  15868. grep -v '^ *+' conftest.er1 >conftest.err
  15869. rm -f conftest.er1
  15870. cat conftest.err >&5
  15871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15872. (exit $ac_status); } >/dev/null && {
  15873. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15874. test ! -s conftest.err
  15875. }; then
  15876. ac_header_preproc=yes
  15877. else
  15878. echo "$as_me: failed program was:" >&5
  15879. sed 's/^/| /' conftest.$ac_ext >&5
  15880. ac_header_preproc=no
  15881. fi
  15882. rm -f conftest.err conftest.$ac_ext
  15883. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15884. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15885. # So? What about this header?
  15886. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15887. yes:no: )
  15888. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15889. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15890. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15891. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15892. ac_header_preproc=yes
  15893. ;;
  15894. no:yes:* )
  15895. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15896. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15897. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15898. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15899. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15900. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15901. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15902. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15903. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15904. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15905. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15906. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15907. ( cat <<\_ASBOX
  15908. ## ----------------------------------------------- ##
  15909. ## Report this to t-tujikawa@users.sourceforge.net ##
  15910. ## ----------------------------------------------- ##
  15911. _ASBOX
  15912. ) | sed "s/^/$as_me: WARNING: /" >&2
  15913. ;;
  15914. esac
  15915. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15916. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15917. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15918. echo $ECHO_N "(cached) $ECHO_C" >&6
  15919. else
  15920. eval "$as_ac_Header=\$ac_header_preproc"
  15921. fi
  15922. ac_res=`eval echo '${'$as_ac_Header'}'`
  15923. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15924. echo "${ECHO_T}$ac_res" >&6; }
  15925. fi
  15926. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15927. cat >>confdefs.h <<_ACEOF
  15928. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15929. _ACEOF
  15930. fi
  15931. done
  15932. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  15933. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  15934. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  15935. echo $ECHO_N "(cached) $ECHO_C" >&6
  15936. else
  15937. if test "$cross_compiling" = yes; then
  15938. ac_cv_func_realloc_0_nonnull=no
  15939. else
  15940. cat >conftest.$ac_ext <<_ACEOF
  15941. /* confdefs.h. */
  15942. _ACEOF
  15943. cat confdefs.h >>conftest.$ac_ext
  15944. cat >>conftest.$ac_ext <<_ACEOF
  15945. /* end confdefs.h. */
  15946. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  15947. # include <stdlib.h>
  15948. #else
  15949. char *realloc ();
  15950. #endif
  15951. int
  15952. main ()
  15953. {
  15954. return ! realloc (0, 0);
  15955. ;
  15956. return 0;
  15957. }
  15958. _ACEOF
  15959. rm -f conftest$ac_exeext
  15960. if { (ac_try="$ac_link"
  15961. case "(($ac_try" in
  15962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15963. *) ac_try_echo=$ac_try;;
  15964. esac
  15965. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15966. (eval "$ac_link") 2>&5
  15967. ac_status=$?
  15968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15969. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15970. { (case "(($ac_try" in
  15971. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15972. *) ac_try_echo=$ac_try;;
  15973. esac
  15974. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15975. (eval "$ac_try") 2>&5
  15976. ac_status=$?
  15977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15978. (exit $ac_status); }; }; then
  15979. ac_cv_func_realloc_0_nonnull=yes
  15980. else
  15981. echo "$as_me: program exited with status $ac_status" >&5
  15982. echo "$as_me: failed program was:" >&5
  15983. sed 's/^/| /' conftest.$ac_ext >&5
  15984. ( exit $ac_status )
  15985. ac_cv_func_realloc_0_nonnull=no
  15986. fi
  15987. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15988. fi
  15989. fi
  15990. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  15991. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  15992. if test $ac_cv_func_realloc_0_nonnull = yes; then
  15993. cat >>confdefs.h <<\_ACEOF
  15994. #define HAVE_REALLOC 1
  15995. _ACEOF
  15996. else
  15997. cat >>confdefs.h <<\_ACEOF
  15998. #define HAVE_REALLOC 0
  15999. _ACEOF
  16000. case " $LIBOBJS " in
  16001. *" realloc.$ac_objext "* ) ;;
  16002. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  16003. ;;
  16004. esac
  16005. cat >>confdefs.h <<\_ACEOF
  16006. #define realloc rpl_realloc
  16007. _ACEOF
  16008. fi
  16009. ;;
  16010. esac
  16011. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  16012. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  16013. if test "${ac_cv_func_memcmp_working+set}" = set; then
  16014. echo $ECHO_N "(cached) $ECHO_C" >&6
  16015. else
  16016. if test "$cross_compiling" = yes; then
  16017. ac_cv_func_memcmp_working=no
  16018. else
  16019. cat >conftest.$ac_ext <<_ACEOF
  16020. /* confdefs.h. */
  16021. _ACEOF
  16022. cat confdefs.h >>conftest.$ac_ext
  16023. cat >>conftest.$ac_ext <<_ACEOF
  16024. /* end confdefs.h. */
  16025. $ac_includes_default
  16026. int
  16027. main ()
  16028. {
  16029. /* Some versions of memcmp are not 8-bit clean. */
  16030. char c0 = '\100', c1 = '\200', c2 = '\201';
  16031. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  16032. return 1;
  16033. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  16034. or more and with at least one buffer not starting on a 4-byte boundary.
  16035. William Lewis provided this test program. */
  16036. {
  16037. char foo[21];
  16038. char bar[21];
  16039. int i;
  16040. for (i = 0; i < 4; i++)
  16041. {
  16042. char *a = foo + i;
  16043. char *b = bar + i;
  16044. strcpy (a, "--------01111111");
  16045. strcpy (b, "--------10000000");
  16046. if (memcmp (a, b, 16) >= 0)
  16047. return 1;
  16048. }
  16049. return 0;
  16050. }
  16051. ;
  16052. return 0;
  16053. }
  16054. _ACEOF
  16055. rm -f conftest$ac_exeext
  16056. if { (ac_try="$ac_link"
  16057. case "(($ac_try" in
  16058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16059. *) ac_try_echo=$ac_try;;
  16060. esac
  16061. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16062. (eval "$ac_link") 2>&5
  16063. ac_status=$?
  16064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16065. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16066. { (case "(($ac_try" in
  16067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16068. *) ac_try_echo=$ac_try;;
  16069. esac
  16070. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16071. (eval "$ac_try") 2>&5
  16072. ac_status=$?
  16073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16074. (exit $ac_status); }; }; then
  16075. ac_cv_func_memcmp_working=yes
  16076. else
  16077. echo "$as_me: program exited with status $ac_status" >&5
  16078. echo "$as_me: failed program was:" >&5
  16079. sed 's/^/| /' conftest.$ac_ext >&5
  16080. ( exit $ac_status )
  16081. ac_cv_func_memcmp_working=no
  16082. fi
  16083. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16084. fi
  16085. fi
  16086. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  16087. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  16088. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  16089. *" memcmp.$ac_objext "* ) ;;
  16090. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  16091. ;;
  16092. esac
  16093. for ac_header in $ac_header_list
  16094. do
  16095. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16096. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16097. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16098. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16099. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16100. echo $ECHO_N "(cached) $ECHO_C" >&6
  16101. fi
  16102. ac_res=`eval echo '${'$as_ac_Header'}'`
  16103. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16104. echo "${ECHO_T}$ac_res" >&6; }
  16105. else
  16106. # Is the header compilable?
  16107. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16108. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16109. cat >conftest.$ac_ext <<_ACEOF
  16110. /* confdefs.h. */
  16111. _ACEOF
  16112. cat confdefs.h >>conftest.$ac_ext
  16113. cat >>conftest.$ac_ext <<_ACEOF
  16114. /* end confdefs.h. */
  16115. $ac_includes_default
  16116. #include <$ac_header>
  16117. _ACEOF
  16118. rm -f conftest.$ac_objext
  16119. if { (ac_try="$ac_compile"
  16120. case "(($ac_try" in
  16121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16122. *) ac_try_echo=$ac_try;;
  16123. esac
  16124. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16125. (eval "$ac_compile") 2>conftest.er1
  16126. ac_status=$?
  16127. grep -v '^ *+' conftest.er1 >conftest.err
  16128. rm -f conftest.er1
  16129. cat conftest.err >&5
  16130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16131. (exit $ac_status); } && {
  16132. test -z "$ac_cxx_werror_flag" ||
  16133. test ! -s conftest.err
  16134. } && test -s conftest.$ac_objext; then
  16135. ac_header_compiler=yes
  16136. else
  16137. echo "$as_me: failed program was:" >&5
  16138. sed 's/^/| /' conftest.$ac_ext >&5
  16139. ac_header_compiler=no
  16140. fi
  16141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16142. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16143. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16144. # Is the header present?
  16145. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16146. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16147. cat >conftest.$ac_ext <<_ACEOF
  16148. /* confdefs.h. */
  16149. _ACEOF
  16150. cat confdefs.h >>conftest.$ac_ext
  16151. cat >>conftest.$ac_ext <<_ACEOF
  16152. /* end confdefs.h. */
  16153. #include <$ac_header>
  16154. _ACEOF
  16155. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16156. case "(($ac_try" in
  16157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16158. *) ac_try_echo=$ac_try;;
  16159. esac
  16160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16161. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16162. ac_status=$?
  16163. grep -v '^ *+' conftest.er1 >conftest.err
  16164. rm -f conftest.er1
  16165. cat conftest.err >&5
  16166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16167. (exit $ac_status); } >/dev/null && {
  16168. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16169. test ! -s conftest.err
  16170. }; then
  16171. ac_header_preproc=yes
  16172. else
  16173. echo "$as_me: failed program was:" >&5
  16174. sed 's/^/| /' conftest.$ac_ext >&5
  16175. ac_header_preproc=no
  16176. fi
  16177. rm -f conftest.err conftest.$ac_ext
  16178. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16179. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16180. # So? What about this header?
  16181. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16182. yes:no: )
  16183. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16184. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16185. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16186. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16187. ac_header_preproc=yes
  16188. ;;
  16189. no:yes:* )
  16190. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16191. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16192. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16193. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16194. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16195. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16196. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16197. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16198. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16199. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16200. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16201. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16202. ( cat <<\_ASBOX
  16203. ## ----------------------------------------------- ##
  16204. ## Report this to t-tujikawa@users.sourceforge.net ##
  16205. ## ----------------------------------------------- ##
  16206. _ASBOX
  16207. ) | sed "s/^/$as_me: WARNING: /" >&2
  16208. ;;
  16209. esac
  16210. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16211. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16212. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16213. echo $ECHO_N "(cached) $ECHO_C" >&6
  16214. else
  16215. eval "$as_ac_Header=\$ac_header_preproc"
  16216. fi
  16217. ac_res=`eval echo '${'$as_ac_Header'}'`
  16218. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16219. echo "${ECHO_T}$ac_res" >&6; }
  16220. fi
  16221. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16222. cat >>confdefs.h <<_ACEOF
  16223. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16224. _ACEOF
  16225. fi
  16226. done
  16227. for ac_func in $ac_func_list
  16228. do
  16229. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16230. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16231. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16232. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16233. echo $ECHO_N "(cached) $ECHO_C" >&6
  16234. else
  16235. cat >conftest.$ac_ext <<_ACEOF
  16236. /* confdefs.h. */
  16237. _ACEOF
  16238. cat confdefs.h >>conftest.$ac_ext
  16239. cat >>conftest.$ac_ext <<_ACEOF
  16240. /* end confdefs.h. */
  16241. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16242. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16243. #define $ac_func innocuous_$ac_func
  16244. /* System header to define __stub macros and hopefully few prototypes,
  16245. which can conflict with char $ac_func (); below.
  16246. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16247. <limits.h> exists even on freestanding compilers. */
  16248. #ifdef __STDC__
  16249. # include <limits.h>
  16250. #else
  16251. # include <assert.h>
  16252. #endif
  16253. #undef $ac_func
  16254. /* Override any GCC internal prototype to avoid an error.
  16255. Use char because int might match the return type of a GCC
  16256. builtin and then its argument prototype would still apply. */
  16257. #ifdef __cplusplus
  16258. extern "C"
  16259. #endif
  16260. char $ac_func ();
  16261. /* The GNU C library defines this for functions which it implements
  16262. to always fail with ENOSYS. Some functions are actually named
  16263. something starting with __ and the normal name is an alias. */
  16264. #if defined __stub_$ac_func || defined __stub___$ac_func
  16265. choke me
  16266. #endif
  16267. int
  16268. main ()
  16269. {
  16270. return $ac_func ();
  16271. ;
  16272. return 0;
  16273. }
  16274. _ACEOF
  16275. rm -f conftest.$ac_objext conftest$ac_exeext
  16276. if { (ac_try="$ac_link"
  16277. case "(($ac_try" in
  16278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16279. *) ac_try_echo=$ac_try;;
  16280. esac
  16281. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16282. (eval "$ac_link") 2>conftest.er1
  16283. ac_status=$?
  16284. grep -v '^ *+' conftest.er1 >conftest.err
  16285. rm -f conftest.er1
  16286. cat conftest.err >&5
  16287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16288. (exit $ac_status); } && {
  16289. test -z "$ac_cxx_werror_flag" ||
  16290. test ! -s conftest.err
  16291. } && test -s conftest$ac_exeext &&
  16292. $as_test_x conftest$ac_exeext; then
  16293. eval "$as_ac_var=yes"
  16294. else
  16295. echo "$as_me: failed program was:" >&5
  16296. sed 's/^/| /' conftest.$ac_ext >&5
  16297. eval "$as_ac_var=no"
  16298. fi
  16299. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16300. conftest$ac_exeext conftest.$ac_ext
  16301. fi
  16302. ac_res=`eval echo '${'$as_ac_var'}'`
  16303. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16304. echo "${ECHO_T}$ac_res" >&6; }
  16305. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16306. cat >>confdefs.h <<_ACEOF
  16307. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16308. _ACEOF
  16309. fi
  16310. done
  16311. { echo "$as_me:$LINENO: checking for working mktime" >&5
  16312. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  16313. if test "${ac_cv_func_working_mktime+set}" = set; then
  16314. echo $ECHO_N "(cached) $ECHO_C" >&6
  16315. else
  16316. if test "$cross_compiling" = yes; then
  16317. ac_cv_func_working_mktime=no
  16318. else
  16319. cat >conftest.$ac_ext <<_ACEOF
  16320. /* confdefs.h. */
  16321. _ACEOF
  16322. cat confdefs.h >>conftest.$ac_ext
  16323. cat >>conftest.$ac_ext <<_ACEOF
  16324. /* end confdefs.h. */
  16325. /* Test program from Paul Eggert and Tony Leneis. */
  16326. #ifdef TIME_WITH_SYS_TIME
  16327. # include <sys/time.h>
  16328. # include <time.h>
  16329. #else
  16330. # ifdef HAVE_SYS_TIME_H
  16331. # include <sys/time.h>
  16332. # else
  16333. # include <time.h>
  16334. # endif
  16335. #endif
  16336. #include <limits.h>
  16337. #include <stdlib.h>
  16338. #ifdef HAVE_UNISTD_H
  16339. # include <unistd.h>
  16340. #endif
  16341. #ifndef HAVE_ALARM
  16342. # define alarm(X) /* empty */
  16343. #endif
  16344. /* Work around redefinition to rpl_putenv by other config tests. */
  16345. #undef putenv
  16346. static time_t time_t_max;
  16347. static time_t time_t_min;
  16348. /* Values we'll use to set the TZ environment variable. */
  16349. static char *tz_strings[] = {
  16350. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  16351. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  16352. };
  16353. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  16354. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  16355. Based on a problem report from Andreas Jaeger. */
  16356. static int
  16357. spring_forward_gap ()
  16358. {
  16359. /* glibc (up to about 1998-10-07) failed this test. */
  16360. struct tm tm;
  16361. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16362. instead of "TZ=America/Vancouver" in order to detect the bug even
  16363. on systems that don't support the Olson extension, or don't have the
  16364. full zoneinfo tables installed. */
  16365. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16366. tm.tm_year = 98;
  16367. tm.tm_mon = 3;
  16368. tm.tm_mday = 5;
  16369. tm.tm_hour = 2;
  16370. tm.tm_min = 0;
  16371. tm.tm_sec = 0;
  16372. tm.tm_isdst = -1;
  16373. return mktime (&tm) != (time_t) -1;
  16374. }
  16375. static int
  16376. mktime_test1 (now)
  16377. time_t now;
  16378. {
  16379. struct tm *lt;
  16380. return ! (lt = localtime (&now)) || mktime (lt) == now;
  16381. }
  16382. static int
  16383. mktime_test (now)
  16384. time_t now;
  16385. {
  16386. return (mktime_test1 (now)
  16387. && mktime_test1 ((time_t) (time_t_max - now))
  16388. && mktime_test1 ((time_t) (time_t_min + now)));
  16389. }
  16390. static int
  16391. irix_6_4_bug ()
  16392. {
  16393. /* Based on code from Ariel Faigon. */
  16394. struct tm tm;
  16395. tm.tm_year = 96;
  16396. tm.tm_mon = 3;
  16397. tm.tm_mday = 0;
  16398. tm.tm_hour = 0;
  16399. tm.tm_min = 0;
  16400. tm.tm_sec = 0;
  16401. tm.tm_isdst = -1;
  16402. mktime (&tm);
  16403. return tm.tm_mon == 2 && tm.tm_mday == 31;
  16404. }
  16405. static int
  16406. bigtime_test (j)
  16407. int j;
  16408. {
  16409. struct tm tm;
  16410. time_t now;
  16411. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  16412. now = mktime (&tm);
  16413. if (now != (time_t) -1)
  16414. {
  16415. struct tm *lt = localtime (&now);
  16416. if (! (lt
  16417. && lt->tm_year == tm.tm_year
  16418. && lt->tm_mon == tm.tm_mon
  16419. && lt->tm_mday == tm.tm_mday
  16420. && lt->tm_hour == tm.tm_hour
  16421. && lt->tm_min == tm.tm_min
  16422. && lt->tm_sec == tm.tm_sec
  16423. && lt->tm_yday == tm.tm_yday
  16424. && lt->tm_wday == tm.tm_wday
  16425. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  16426. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  16427. return 0;
  16428. }
  16429. return 1;
  16430. }
  16431. static int
  16432. year_2050_test ()
  16433. {
  16434. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  16435. ignoring leap seconds. */
  16436. unsigned long int answer = 2527315200UL;
  16437. struct tm tm;
  16438. time_t t;
  16439. tm.tm_year = 2050 - 1900;
  16440. tm.tm_mon = 2 - 1;
  16441. tm.tm_mday = 1;
  16442. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  16443. tm.tm_isdst = -1;
  16444. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  16445. instead of "TZ=America/Vancouver" in order to detect the bug even
  16446. on systems that don't support the Olson extension, or don't have the
  16447. full zoneinfo tables installed. */
  16448. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  16449. t = mktime (&tm);
  16450. /* Check that the result is either a failure, or close enough
  16451. to the correct answer that we can assume the discrepancy is
  16452. due to leap seconds. */
  16453. return (t == (time_t) -1
  16454. || (0 < t && answer - 120 <= t && t <= answer + 120));
  16455. }
  16456. int
  16457. main ()
  16458. {
  16459. time_t t, delta;
  16460. int i, j;
  16461. /* This test makes some buggy mktime implementations loop.
  16462. Give up after 60 seconds; a mktime slower than that
  16463. isn't worth using anyway. */
  16464. alarm (60);
  16465. for (;;)
  16466. {
  16467. t = (time_t_max << 1) + 1;
  16468. if (t <= time_t_max)
  16469. break;
  16470. time_t_max = t;
  16471. }
  16472. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  16473. delta = time_t_max / 997; /* a suitable prime number */
  16474. for (i = 0; i < N_STRINGS; i++)
  16475. {
  16476. if (tz_strings[i])
  16477. putenv (tz_strings[i]);
  16478. for (t = 0; t <= time_t_max - delta; t += delta)
  16479. if (! mktime_test (t))
  16480. return 1;
  16481. if (! (mktime_test ((time_t) 1)
  16482. && mktime_test ((time_t) (60 * 60))
  16483. && mktime_test ((time_t) (60 * 60 * 24))))
  16484. return 1;
  16485. for (j = 1; ; j <<= 1)
  16486. if (! bigtime_test (j))
  16487. return 1;
  16488. else if (INT_MAX / 2 < j)
  16489. break;
  16490. if (! bigtime_test (INT_MAX))
  16491. return 1;
  16492. }
  16493. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  16494. }
  16495. _ACEOF
  16496. rm -f conftest$ac_exeext
  16497. if { (ac_try="$ac_link"
  16498. case "(($ac_try" in
  16499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16500. *) ac_try_echo=$ac_try;;
  16501. esac
  16502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16503. (eval "$ac_link") 2>&5
  16504. ac_status=$?
  16505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16506. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16507. { (case "(($ac_try" in
  16508. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16509. *) ac_try_echo=$ac_try;;
  16510. esac
  16511. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16512. (eval "$ac_try") 2>&5
  16513. ac_status=$?
  16514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16515. (exit $ac_status); }; }; then
  16516. ac_cv_func_working_mktime=yes
  16517. else
  16518. echo "$as_me: program exited with status $ac_status" >&5
  16519. echo "$as_me: failed program was:" >&5
  16520. sed 's/^/| /' conftest.$ac_ext >&5
  16521. ( exit $ac_status )
  16522. ac_cv_func_working_mktime=no
  16523. fi
  16524. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16525. fi
  16526. fi
  16527. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  16528. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  16529. if test $ac_cv_func_working_mktime = no; then
  16530. case " $LIBOBJS " in
  16531. *" mktime.$ac_objext "* ) ;;
  16532. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  16533. ;;
  16534. esac
  16535. fi
  16536. for ac_header in stdlib.h unistd.h
  16537. do
  16538. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16539. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16540. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16541. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16542. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16543. echo $ECHO_N "(cached) $ECHO_C" >&6
  16544. fi
  16545. ac_res=`eval echo '${'$as_ac_Header'}'`
  16546. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16547. echo "${ECHO_T}$ac_res" >&6; }
  16548. else
  16549. # Is the header compilable?
  16550. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16551. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16552. cat >conftest.$ac_ext <<_ACEOF
  16553. /* confdefs.h. */
  16554. _ACEOF
  16555. cat confdefs.h >>conftest.$ac_ext
  16556. cat >>conftest.$ac_ext <<_ACEOF
  16557. /* end confdefs.h. */
  16558. $ac_includes_default
  16559. #include <$ac_header>
  16560. _ACEOF
  16561. rm -f conftest.$ac_objext
  16562. if { (ac_try="$ac_compile"
  16563. case "(($ac_try" in
  16564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16565. *) ac_try_echo=$ac_try;;
  16566. esac
  16567. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16568. (eval "$ac_compile") 2>conftest.er1
  16569. ac_status=$?
  16570. grep -v '^ *+' conftest.er1 >conftest.err
  16571. rm -f conftest.er1
  16572. cat conftest.err >&5
  16573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16574. (exit $ac_status); } && {
  16575. test -z "$ac_cxx_werror_flag" ||
  16576. test ! -s conftest.err
  16577. } && test -s conftest.$ac_objext; then
  16578. ac_header_compiler=yes
  16579. else
  16580. echo "$as_me: failed program was:" >&5
  16581. sed 's/^/| /' conftest.$ac_ext >&5
  16582. ac_header_compiler=no
  16583. fi
  16584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16585. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16586. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16587. # Is the header present?
  16588. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16589. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16590. cat >conftest.$ac_ext <<_ACEOF
  16591. /* confdefs.h. */
  16592. _ACEOF
  16593. cat confdefs.h >>conftest.$ac_ext
  16594. cat >>conftest.$ac_ext <<_ACEOF
  16595. /* end confdefs.h. */
  16596. #include <$ac_header>
  16597. _ACEOF
  16598. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16599. case "(($ac_try" in
  16600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16601. *) ac_try_echo=$ac_try;;
  16602. esac
  16603. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16604. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16605. ac_status=$?
  16606. grep -v '^ *+' conftest.er1 >conftest.err
  16607. rm -f conftest.er1
  16608. cat conftest.err >&5
  16609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16610. (exit $ac_status); } >/dev/null && {
  16611. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16612. test ! -s conftest.err
  16613. }; then
  16614. ac_header_preproc=yes
  16615. else
  16616. echo "$as_me: failed program was:" >&5
  16617. sed 's/^/| /' conftest.$ac_ext >&5
  16618. ac_header_preproc=no
  16619. fi
  16620. rm -f conftest.err conftest.$ac_ext
  16621. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16622. echo "${ECHO_T}$ac_header_preproc" >&6; }
  16623. # So? What about this header?
  16624. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16625. yes:no: )
  16626. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16627. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16628. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16629. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16630. ac_header_preproc=yes
  16631. ;;
  16632. no:yes:* )
  16633. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16634. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16635. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16636. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16637. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16638. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16639. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16640. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16641. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16642. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16643. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16644. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16645. ( cat <<\_ASBOX
  16646. ## ----------------------------------------------- ##
  16647. ## Report this to t-tujikawa@users.sourceforge.net ##
  16648. ## ----------------------------------------------- ##
  16649. _ASBOX
  16650. ) | sed "s/^/$as_me: WARNING: /" >&2
  16651. ;;
  16652. esac
  16653. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16654. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16655. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16656. echo $ECHO_N "(cached) $ECHO_C" >&6
  16657. else
  16658. eval "$as_ac_Header=\$ac_header_preproc"
  16659. fi
  16660. ac_res=`eval echo '${'$as_ac_Header'}'`
  16661. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16662. echo "${ECHO_T}$ac_res" >&6; }
  16663. fi
  16664. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  16665. cat >>confdefs.h <<_ACEOF
  16666. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16667. _ACEOF
  16668. fi
  16669. done
  16670. for ac_func in getpagesize
  16671. do
  16672. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16673. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16674. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16675. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16676. echo $ECHO_N "(cached) $ECHO_C" >&6
  16677. else
  16678. cat >conftest.$ac_ext <<_ACEOF
  16679. /* confdefs.h. */
  16680. _ACEOF
  16681. cat confdefs.h >>conftest.$ac_ext
  16682. cat >>conftest.$ac_ext <<_ACEOF
  16683. /* end confdefs.h. */
  16684. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16685. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16686. #define $ac_func innocuous_$ac_func
  16687. /* System header to define __stub macros and hopefully few prototypes,
  16688. which can conflict with char $ac_func (); below.
  16689. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16690. <limits.h> exists even on freestanding compilers. */
  16691. #ifdef __STDC__
  16692. # include <limits.h>
  16693. #else
  16694. # include <assert.h>
  16695. #endif
  16696. #undef $ac_func
  16697. /* Override any GCC internal prototype to avoid an error.
  16698. Use char because int might match the return type of a GCC
  16699. builtin and then its argument prototype would still apply. */
  16700. #ifdef __cplusplus
  16701. extern "C"
  16702. #endif
  16703. char $ac_func ();
  16704. /* The GNU C library defines this for functions which it implements
  16705. to always fail with ENOSYS. Some functions are actually named
  16706. something starting with __ and the normal name is an alias. */
  16707. #if defined __stub_$ac_func || defined __stub___$ac_func
  16708. choke me
  16709. #endif
  16710. int
  16711. main ()
  16712. {
  16713. return $ac_func ();
  16714. ;
  16715. return 0;
  16716. }
  16717. _ACEOF
  16718. rm -f conftest.$ac_objext conftest$ac_exeext
  16719. if { (ac_try="$ac_link"
  16720. case "(($ac_try" in
  16721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16722. *) ac_try_echo=$ac_try;;
  16723. esac
  16724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16725. (eval "$ac_link") 2>conftest.er1
  16726. ac_status=$?
  16727. grep -v '^ *+' conftest.er1 >conftest.err
  16728. rm -f conftest.er1
  16729. cat conftest.err >&5
  16730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16731. (exit $ac_status); } && {
  16732. test -z "$ac_cxx_werror_flag" ||
  16733. test ! -s conftest.err
  16734. } && test -s conftest$ac_exeext &&
  16735. $as_test_x conftest$ac_exeext; then
  16736. eval "$as_ac_var=yes"
  16737. else
  16738. echo "$as_me: failed program was:" >&5
  16739. sed 's/^/| /' conftest.$ac_ext >&5
  16740. eval "$as_ac_var=no"
  16741. fi
  16742. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16743. conftest$ac_exeext conftest.$ac_ext
  16744. fi
  16745. ac_res=`eval echo '${'$as_ac_var'}'`
  16746. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16747. echo "${ECHO_T}$ac_res" >&6; }
  16748. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16749. cat >>confdefs.h <<_ACEOF
  16750. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16751. _ACEOF
  16752. fi
  16753. done
  16754. { echo "$as_me:$LINENO: checking for working mmap" >&5
  16755. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  16756. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  16757. echo $ECHO_N "(cached) $ECHO_C" >&6
  16758. else
  16759. if test "$cross_compiling" = yes; then
  16760. ac_cv_func_mmap_fixed_mapped=no
  16761. else
  16762. cat >conftest.$ac_ext <<_ACEOF
  16763. /* confdefs.h. */
  16764. _ACEOF
  16765. cat confdefs.h >>conftest.$ac_ext
  16766. cat >>conftest.$ac_ext <<_ACEOF
  16767. /* end confdefs.h. */
  16768. $ac_includes_default
  16769. /* malloc might have been renamed as rpl_malloc. */
  16770. #undef malloc
  16771. /* Thanks to Mike Haertel and Jim Avera for this test.
  16772. Here is a matrix of mmap possibilities:
  16773. mmap private not fixed
  16774. mmap private fixed at somewhere currently unmapped
  16775. mmap private fixed at somewhere already mapped
  16776. mmap shared not fixed
  16777. mmap shared fixed at somewhere currently unmapped
  16778. mmap shared fixed at somewhere already mapped
  16779. For private mappings, we should verify that changes cannot be read()
  16780. back from the file, nor mmap's back from the file at a different
  16781. address. (There have been systems where private was not correctly
  16782. implemented like the infamous i386 svr4.0, and systems where the
  16783. VM page cache was not coherent with the file system buffer cache
  16784. like early versions of FreeBSD and possibly contemporary NetBSD.)
  16785. For shared mappings, we should conversely verify that changes get
  16786. propagated back to all the places they're supposed to be.
  16787. Grep wants private fixed already mapped.
  16788. The main things grep needs to know about mmap are:
  16789. * does it exist and is it safe to write into the mmap'd area
  16790. * how to use it (BSD variants) */
  16791. #include <fcntl.h>
  16792. #include <sys/mman.h>
  16793. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  16794. char *malloc ();
  16795. #endif
  16796. /* This mess was copied from the GNU getpagesize.h. */
  16797. #ifndef HAVE_GETPAGESIZE
  16798. /* Assume that all systems that can run configure have sys/param.h. */
  16799. # ifndef HAVE_SYS_PARAM_H
  16800. # define HAVE_SYS_PARAM_H 1
  16801. # endif
  16802. # ifdef _SC_PAGESIZE
  16803. # define getpagesize() sysconf(_SC_PAGESIZE)
  16804. # else /* no _SC_PAGESIZE */
  16805. # ifdef HAVE_SYS_PARAM_H
  16806. # include <sys/param.h>
  16807. # ifdef EXEC_PAGESIZE
  16808. # define getpagesize() EXEC_PAGESIZE
  16809. # else /* no EXEC_PAGESIZE */
  16810. # ifdef NBPG
  16811. # define getpagesize() NBPG * CLSIZE
  16812. # ifndef CLSIZE
  16813. # define CLSIZE 1
  16814. # endif /* no CLSIZE */
  16815. # else /* no NBPG */
  16816. # ifdef NBPC
  16817. # define getpagesize() NBPC
  16818. # else /* no NBPC */
  16819. # ifdef PAGESIZE
  16820. # define getpagesize() PAGESIZE
  16821. # endif /* PAGESIZE */
  16822. # endif /* no NBPC */
  16823. # endif /* no NBPG */
  16824. # endif /* no EXEC_PAGESIZE */
  16825. # else /* no HAVE_SYS_PARAM_H */
  16826. # define getpagesize() 8192 /* punt totally */
  16827. # endif /* no HAVE_SYS_PARAM_H */
  16828. # endif /* no _SC_PAGESIZE */
  16829. #endif /* no HAVE_GETPAGESIZE */
  16830. int
  16831. main ()
  16832. {
  16833. char *data, *data2, *data3;
  16834. int i, pagesize;
  16835. int fd;
  16836. pagesize = getpagesize ();
  16837. /* First, make a file with some known garbage in it. */
  16838. data = (char *) malloc (pagesize);
  16839. if (!data)
  16840. return 1;
  16841. for (i = 0; i < pagesize; ++i)
  16842. *(data + i) = rand ();
  16843. umask (0);
  16844. fd = creat ("conftest.mmap", 0600);
  16845. if (fd < 0)
  16846. return 1;
  16847. if (write (fd, data, pagesize) != pagesize)
  16848. return 1;
  16849. close (fd);
  16850. /* Next, try to mmap the file at a fixed address which already has
  16851. something else allocated at it. If we can, also make sure that
  16852. we see the same garbage. */
  16853. fd = open ("conftest.mmap", O_RDWR);
  16854. if (fd < 0)
  16855. return 1;
  16856. data2 = (char *) malloc (2 * pagesize);
  16857. if (!data2)
  16858. return 1;
  16859. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  16860. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  16861. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  16862. return 1;
  16863. for (i = 0; i < pagesize; ++i)
  16864. if (*(data + i) != *(data2 + i))
  16865. return 1;
  16866. /* Finally, make sure that changes to the mapped area do not
  16867. percolate back to the file as seen by read(). (This is a bug on
  16868. some variants of i386 svr4.0.) */
  16869. for (i = 0; i < pagesize; ++i)
  16870. *(data2 + i) = *(data2 + i) + 1;
  16871. data3 = (char *) malloc (pagesize);
  16872. if (!data3)
  16873. return 1;
  16874. if (read (fd, data3, pagesize) != pagesize)
  16875. return 1;
  16876. for (i = 0; i < pagesize; ++i)
  16877. if (*(data + i) != *(data3 + i))
  16878. return 1;
  16879. close (fd);
  16880. return 0;
  16881. }
  16882. _ACEOF
  16883. rm -f conftest$ac_exeext
  16884. if { (ac_try="$ac_link"
  16885. case "(($ac_try" in
  16886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16887. *) ac_try_echo=$ac_try;;
  16888. esac
  16889. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16890. (eval "$ac_link") 2>&5
  16891. ac_status=$?
  16892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16893. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  16894. { (case "(($ac_try" in
  16895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16896. *) ac_try_echo=$ac_try;;
  16897. esac
  16898. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16899. (eval "$ac_try") 2>&5
  16900. ac_status=$?
  16901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16902. (exit $ac_status); }; }; then
  16903. ac_cv_func_mmap_fixed_mapped=yes
  16904. else
  16905. echo "$as_me: program exited with status $ac_status" >&5
  16906. echo "$as_me: failed program was:" >&5
  16907. sed 's/^/| /' conftest.$ac_ext >&5
  16908. ( exit $ac_status )
  16909. ac_cv_func_mmap_fixed_mapped=no
  16910. fi
  16911. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  16912. fi
  16913. fi
  16914. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  16915. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  16916. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  16917. cat >>confdefs.h <<\_ACEOF
  16918. #define HAVE_MMAP 1
  16919. _ACEOF
  16920. fi
  16921. rm -f conftest.mmap
  16922. for ac_header in sys/select.h sys/socket.h
  16923. do
  16924. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  16925. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16926. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  16927. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  16928. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16929. echo $ECHO_N "(cached) $ECHO_C" >&6
  16930. fi
  16931. ac_res=`eval echo '${'$as_ac_Header'}'`
  16932. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16933. echo "${ECHO_T}$ac_res" >&6; }
  16934. else
  16935. # Is the header compilable?
  16936. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  16937. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  16938. cat >conftest.$ac_ext <<_ACEOF
  16939. /* confdefs.h. */
  16940. _ACEOF
  16941. cat confdefs.h >>conftest.$ac_ext
  16942. cat >>conftest.$ac_ext <<_ACEOF
  16943. /* end confdefs.h. */
  16944. $ac_includes_default
  16945. #include <$ac_header>
  16946. _ACEOF
  16947. rm -f conftest.$ac_objext
  16948. if { (ac_try="$ac_compile"
  16949. case "(($ac_try" in
  16950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16951. *) ac_try_echo=$ac_try;;
  16952. esac
  16953. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16954. (eval "$ac_compile") 2>conftest.er1
  16955. ac_status=$?
  16956. grep -v '^ *+' conftest.er1 >conftest.err
  16957. rm -f conftest.er1
  16958. cat conftest.err >&5
  16959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16960. (exit $ac_status); } && {
  16961. test -z "$ac_cxx_werror_flag" ||
  16962. test ! -s conftest.err
  16963. } && test -s conftest.$ac_objext; then
  16964. ac_header_compiler=yes
  16965. else
  16966. echo "$as_me: failed program was:" >&5
  16967. sed 's/^/| /' conftest.$ac_ext >&5
  16968. ac_header_compiler=no
  16969. fi
  16970. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16971. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16972. echo "${ECHO_T}$ac_header_compiler" >&6; }
  16973. # Is the header present?
  16974. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  16975. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  16976. cat >conftest.$ac_ext <<_ACEOF
  16977. /* confdefs.h. */
  16978. _ACEOF
  16979. cat confdefs.h >>conftest.$ac_ext
  16980. cat >>conftest.$ac_ext <<_ACEOF
  16981. /* end confdefs.h. */
  16982. #include <$ac_header>
  16983. _ACEOF
  16984. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16985. case "(($ac_try" in
  16986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16987. *) ac_try_echo=$ac_try;;
  16988. esac
  16989. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16990. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16991. ac_status=$?
  16992. grep -v '^ *+' conftest.er1 >conftest.err
  16993. rm -f conftest.er1
  16994. cat conftest.err >&5
  16995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16996. (exit $ac_status); } >/dev/null && {
  16997. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  16998. test ! -s conftest.err
  16999. }; then
  17000. ac_header_preproc=yes
  17001. else
  17002. echo "$as_me: failed program was:" >&5
  17003. sed 's/^/| /' conftest.$ac_ext >&5
  17004. ac_header_preproc=no
  17005. fi
  17006. rm -f conftest.err conftest.$ac_ext
  17007. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17008. echo "${ECHO_T}$ac_header_preproc" >&6; }
  17009. # So? What about this header?
  17010. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17011. yes:no: )
  17012. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17013. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17014. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17015. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17016. ac_header_preproc=yes
  17017. ;;
  17018. no:yes:* )
  17019. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17020. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17021. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17022. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17023. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17024. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17025. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17026. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17027. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17028. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17029. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17030. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17031. ( cat <<\_ASBOX
  17032. ## ----------------------------------------------- ##
  17033. ## Report this to t-tujikawa@users.sourceforge.net ##
  17034. ## ----------------------------------------------- ##
  17035. _ASBOX
  17036. ) | sed "s/^/$as_me: WARNING: /" >&2
  17037. ;;
  17038. esac
  17039. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  17040. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  17041. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17042. echo $ECHO_N "(cached) $ECHO_C" >&6
  17043. else
  17044. eval "$as_ac_Header=\$ac_header_preproc"
  17045. fi
  17046. ac_res=`eval echo '${'$as_ac_Header'}'`
  17047. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17048. echo "${ECHO_T}$ac_res" >&6; }
  17049. fi
  17050. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  17051. cat >>confdefs.h <<_ACEOF
  17052. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17053. _ACEOF
  17054. fi
  17055. done
  17056. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  17057. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  17058. if test "${ac_cv_func_select_args+set}" = set; then
  17059. echo $ECHO_N "(cached) $ECHO_C" >&6
  17060. else
  17061. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  17062. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  17063. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  17064. cat >conftest.$ac_ext <<_ACEOF
  17065. /* confdefs.h. */
  17066. _ACEOF
  17067. cat confdefs.h >>conftest.$ac_ext
  17068. cat >>conftest.$ac_ext <<_ACEOF
  17069. /* end confdefs.h. */
  17070. $ac_includes_default
  17071. #ifdef HAVE_SYS_SELECT_H
  17072. # include <sys/select.h>
  17073. #endif
  17074. #ifdef HAVE_SYS_SOCKET_H
  17075. # include <sys/socket.h>
  17076. #endif
  17077. int
  17078. main ()
  17079. {
  17080. extern int select ($ac_arg1,
  17081. $ac_arg234, $ac_arg234, $ac_arg234,
  17082. $ac_arg5);
  17083. ;
  17084. return 0;
  17085. }
  17086. _ACEOF
  17087. rm -f conftest.$ac_objext
  17088. if { (ac_try="$ac_compile"
  17089. case "(($ac_try" in
  17090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17091. *) ac_try_echo=$ac_try;;
  17092. esac
  17093. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17094. (eval "$ac_compile") 2>conftest.er1
  17095. ac_status=$?
  17096. grep -v '^ *+' conftest.er1 >conftest.err
  17097. rm -f conftest.er1
  17098. cat conftest.err >&5
  17099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17100. (exit $ac_status); } && {
  17101. test -z "$ac_cxx_werror_flag" ||
  17102. test ! -s conftest.err
  17103. } && test -s conftest.$ac_objext; then
  17104. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  17105. else
  17106. echo "$as_me: failed program was:" >&5
  17107. sed 's/^/| /' conftest.$ac_ext >&5
  17108. fi
  17109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17110. done
  17111. done
  17112. done
  17113. # Provide a safe default value.
  17114. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  17115. fi
  17116. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  17117. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  17118. ac_save_IFS=$IFS; IFS=','
  17119. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  17120. IFS=$ac_save_IFS
  17121. shift
  17122. cat >>confdefs.h <<_ACEOF
  17123. #define SELECT_TYPE_ARG1 $1
  17124. _ACEOF
  17125. cat >>confdefs.h <<_ACEOF
  17126. #define SELECT_TYPE_ARG234 ($2)
  17127. _ACEOF
  17128. cat >>confdefs.h <<_ACEOF
  17129. #define SELECT_TYPE_ARG5 ($3)
  17130. _ACEOF
  17131. rm -f conftest*
  17132. { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  17133. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
  17134. if test "${ac_cv_type_signal+set}" = set; then
  17135. echo $ECHO_N "(cached) $ECHO_C" >&6
  17136. else
  17137. cat >conftest.$ac_ext <<_ACEOF
  17138. /* confdefs.h. */
  17139. _ACEOF
  17140. cat confdefs.h >>conftest.$ac_ext
  17141. cat >>conftest.$ac_ext <<_ACEOF
  17142. /* end confdefs.h. */
  17143. #include <sys/types.h>
  17144. #include <signal.h>
  17145. int
  17146. main ()
  17147. {
  17148. return *(signal (0, 0)) (0) == 1;
  17149. ;
  17150. return 0;
  17151. }
  17152. _ACEOF
  17153. rm -f conftest.$ac_objext
  17154. if { (ac_try="$ac_compile"
  17155. case "(($ac_try" in
  17156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17157. *) ac_try_echo=$ac_try;;
  17158. esac
  17159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17160. (eval "$ac_compile") 2>conftest.er1
  17161. ac_status=$?
  17162. grep -v '^ *+' conftest.er1 >conftest.err
  17163. rm -f conftest.er1
  17164. cat conftest.err >&5
  17165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17166. (exit $ac_status); } && {
  17167. test -z "$ac_cxx_werror_flag" ||
  17168. test ! -s conftest.err
  17169. } && test -s conftest.$ac_objext; then
  17170. ac_cv_type_signal=int
  17171. else
  17172. echo "$as_me: failed program was:" >&5
  17173. sed 's/^/| /' conftest.$ac_ext >&5
  17174. ac_cv_type_signal=void
  17175. fi
  17176. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17177. fi
  17178. { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  17179. echo "${ECHO_T}$ac_cv_type_signal" >&6; }
  17180. cat >>confdefs.h <<_ACEOF
  17181. #define RETSIGTYPE $ac_cv_type_signal
  17182. _ACEOF
  17183. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  17184. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  17185. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  17186. echo $ECHO_N "(cached) $ECHO_C" >&6
  17187. else
  17188. rm -f conftest.sym conftest.file
  17189. echo >conftest.file
  17190. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  17191. if test "$cross_compiling" = yes; then
  17192. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17193. else
  17194. cat >conftest.$ac_ext <<_ACEOF
  17195. /* confdefs.h. */
  17196. _ACEOF
  17197. cat confdefs.h >>conftest.$ac_ext
  17198. cat >>conftest.$ac_ext <<_ACEOF
  17199. /* end confdefs.h. */
  17200. $ac_includes_default
  17201. int
  17202. main ()
  17203. {
  17204. struct stat sbuf;
  17205. /* Linux will dereference the symlink and fail.
  17206. That is better in the sense that it means we will not
  17207. have to compile and use the lstat wrapper. */
  17208. return lstat ("conftest.sym/", &sbuf) == 0;
  17209. ;
  17210. return 0;
  17211. }
  17212. _ACEOF
  17213. rm -f conftest$ac_exeext
  17214. if { (ac_try="$ac_link"
  17215. case "(($ac_try" in
  17216. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17217. *) ac_try_echo=$ac_try;;
  17218. esac
  17219. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17220. (eval "$ac_link") 2>&5
  17221. ac_status=$?
  17222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17223. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17224. { (case "(($ac_try" in
  17225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17226. *) ac_try_echo=$ac_try;;
  17227. esac
  17228. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17229. (eval "$ac_try") 2>&5
  17230. ac_status=$?
  17231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17232. (exit $ac_status); }; }; then
  17233. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  17234. else
  17235. echo "$as_me: program exited with status $ac_status" >&5
  17236. echo "$as_me: failed program was:" >&5
  17237. sed 's/^/| /' conftest.$ac_ext >&5
  17238. ( exit $ac_status )
  17239. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17240. fi
  17241. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17242. fi
  17243. else
  17244. # If the `ln -s' command failed, then we probably don't even
  17245. # have an lstat function.
  17246. ac_cv_func_lstat_dereferences_slashed_symlink=no
  17247. fi
  17248. rm -f conftest.sym conftest.file
  17249. fi
  17250. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  17251. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  17252. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  17253. cat >>confdefs.h <<_ACEOF
  17254. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  17255. _ACEOF
  17256. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  17257. case " $LIBOBJS " in
  17258. *" lstat.$ac_objext "* ) ;;
  17259. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  17260. ;;
  17261. esac
  17262. fi
  17263. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  17264. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  17265. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  17266. echo $ECHO_N "(cached) $ECHO_C" >&6
  17267. else
  17268. if test "$cross_compiling" = yes; then
  17269. ac_cv_func_stat_empty_string_bug=yes
  17270. else
  17271. cat >conftest.$ac_ext <<_ACEOF
  17272. /* confdefs.h. */
  17273. _ACEOF
  17274. cat confdefs.h >>conftest.$ac_ext
  17275. cat >>conftest.$ac_ext <<_ACEOF
  17276. /* end confdefs.h. */
  17277. $ac_includes_default
  17278. int
  17279. main ()
  17280. {
  17281. struct stat sbuf;
  17282. return stat ("", &sbuf) == 0;
  17283. ;
  17284. return 0;
  17285. }
  17286. _ACEOF
  17287. rm -f conftest$ac_exeext
  17288. if { (ac_try="$ac_link"
  17289. case "(($ac_try" in
  17290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17291. *) ac_try_echo=$ac_try;;
  17292. esac
  17293. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17294. (eval "$ac_link") 2>&5
  17295. ac_status=$?
  17296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17297. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17298. { (case "(($ac_try" in
  17299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17300. *) ac_try_echo=$ac_try;;
  17301. esac
  17302. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17303. (eval "$ac_try") 2>&5
  17304. ac_status=$?
  17305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17306. (exit $ac_status); }; }; then
  17307. ac_cv_func_stat_empty_string_bug=no
  17308. else
  17309. echo "$as_me: program exited with status $ac_status" >&5
  17310. echo "$as_me: failed program was:" >&5
  17311. sed 's/^/| /' conftest.$ac_ext >&5
  17312. ( exit $ac_status )
  17313. ac_cv_func_stat_empty_string_bug=yes
  17314. fi
  17315. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17316. fi
  17317. fi
  17318. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  17319. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  17320. if test $ac_cv_func_stat_empty_string_bug = yes; then
  17321. case " $LIBOBJS " in
  17322. *" stat.$ac_objext "* ) ;;
  17323. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  17324. ;;
  17325. esac
  17326. cat >>confdefs.h <<_ACEOF
  17327. #define HAVE_STAT_EMPTY_STRING_BUG 1
  17328. _ACEOF
  17329. fi
  17330. for ac_func in strftime
  17331. do
  17332. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17333. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17334. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17335. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17336. echo $ECHO_N "(cached) $ECHO_C" >&6
  17337. else
  17338. cat >conftest.$ac_ext <<_ACEOF
  17339. /* confdefs.h. */
  17340. _ACEOF
  17341. cat confdefs.h >>conftest.$ac_ext
  17342. cat >>conftest.$ac_ext <<_ACEOF
  17343. /* end confdefs.h. */
  17344. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17345. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17346. #define $ac_func innocuous_$ac_func
  17347. /* System header to define __stub macros and hopefully few prototypes,
  17348. which can conflict with char $ac_func (); below.
  17349. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17350. <limits.h> exists even on freestanding compilers. */
  17351. #ifdef __STDC__
  17352. # include <limits.h>
  17353. #else
  17354. # include <assert.h>
  17355. #endif
  17356. #undef $ac_func
  17357. /* Override any GCC internal prototype to avoid an error.
  17358. Use char because int might match the return type of a GCC
  17359. builtin and then its argument prototype would still apply. */
  17360. #ifdef __cplusplus
  17361. extern "C"
  17362. #endif
  17363. char $ac_func ();
  17364. /* The GNU C library defines this for functions which it implements
  17365. to always fail with ENOSYS. Some functions are actually named
  17366. something starting with __ and the normal name is an alias. */
  17367. #if defined __stub_$ac_func || defined __stub___$ac_func
  17368. choke me
  17369. #endif
  17370. int
  17371. main ()
  17372. {
  17373. return $ac_func ();
  17374. ;
  17375. return 0;
  17376. }
  17377. _ACEOF
  17378. rm -f conftest.$ac_objext conftest$ac_exeext
  17379. if { (ac_try="$ac_link"
  17380. case "(($ac_try" in
  17381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17382. *) ac_try_echo=$ac_try;;
  17383. esac
  17384. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17385. (eval "$ac_link") 2>conftest.er1
  17386. ac_status=$?
  17387. grep -v '^ *+' conftest.er1 >conftest.err
  17388. rm -f conftest.er1
  17389. cat conftest.err >&5
  17390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17391. (exit $ac_status); } && {
  17392. test -z "$ac_cxx_werror_flag" ||
  17393. test ! -s conftest.err
  17394. } && test -s conftest$ac_exeext &&
  17395. $as_test_x conftest$ac_exeext; then
  17396. eval "$as_ac_var=yes"
  17397. else
  17398. echo "$as_me: failed program was:" >&5
  17399. sed 's/^/| /' conftest.$ac_ext >&5
  17400. eval "$as_ac_var=no"
  17401. fi
  17402. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17403. conftest$ac_exeext conftest.$ac_ext
  17404. fi
  17405. ac_res=`eval echo '${'$as_ac_var'}'`
  17406. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17407. echo "${ECHO_T}$ac_res" >&6; }
  17408. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17409. cat >>confdefs.h <<_ACEOF
  17410. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17411. _ACEOF
  17412. else
  17413. # strftime is in -lintl on SCO UNIX.
  17414. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  17415. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  17416. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  17417. echo $ECHO_N "(cached) $ECHO_C" >&6
  17418. else
  17419. ac_check_lib_save_LIBS=$LIBS
  17420. LIBS="-lintl $LIBS"
  17421. cat >conftest.$ac_ext <<_ACEOF
  17422. /* confdefs.h. */
  17423. _ACEOF
  17424. cat confdefs.h >>conftest.$ac_ext
  17425. cat >>conftest.$ac_ext <<_ACEOF
  17426. /* end confdefs.h. */
  17427. /* Override any GCC internal prototype to avoid an error.
  17428. Use char because int might match the return type of a GCC
  17429. builtin and then its argument prototype would still apply. */
  17430. #ifdef __cplusplus
  17431. extern "C"
  17432. #endif
  17433. char strftime ();
  17434. int
  17435. main ()
  17436. {
  17437. return strftime ();
  17438. ;
  17439. return 0;
  17440. }
  17441. _ACEOF
  17442. rm -f conftest.$ac_objext conftest$ac_exeext
  17443. if { (ac_try="$ac_link"
  17444. case "(($ac_try" in
  17445. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17446. *) ac_try_echo=$ac_try;;
  17447. esac
  17448. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17449. (eval "$ac_link") 2>conftest.er1
  17450. ac_status=$?
  17451. grep -v '^ *+' conftest.er1 >conftest.err
  17452. rm -f conftest.er1
  17453. cat conftest.err >&5
  17454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17455. (exit $ac_status); } && {
  17456. test -z "$ac_cxx_werror_flag" ||
  17457. test ! -s conftest.err
  17458. } && test -s conftest$ac_exeext &&
  17459. $as_test_x conftest$ac_exeext; then
  17460. ac_cv_lib_intl_strftime=yes
  17461. else
  17462. echo "$as_me: failed program was:" >&5
  17463. sed 's/^/| /' conftest.$ac_ext >&5
  17464. ac_cv_lib_intl_strftime=no
  17465. fi
  17466. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17467. conftest$ac_exeext conftest.$ac_ext
  17468. LIBS=$ac_check_lib_save_LIBS
  17469. fi
  17470. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  17471. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  17472. if test $ac_cv_lib_intl_strftime = yes; then
  17473. cat >>confdefs.h <<\_ACEOF
  17474. #define HAVE_STRFTIME 1
  17475. _ACEOF
  17476. LIBS="-lintl $LIBS"
  17477. fi
  17478. fi
  17479. done
  17480. for ac_func in vprintf
  17481. do
  17482. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17483. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17484. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17485. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17486. echo $ECHO_N "(cached) $ECHO_C" >&6
  17487. else
  17488. cat >conftest.$ac_ext <<_ACEOF
  17489. /* confdefs.h. */
  17490. _ACEOF
  17491. cat confdefs.h >>conftest.$ac_ext
  17492. cat >>conftest.$ac_ext <<_ACEOF
  17493. /* end confdefs.h. */
  17494. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17495. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17496. #define $ac_func innocuous_$ac_func
  17497. /* System header to define __stub macros and hopefully few prototypes,
  17498. which can conflict with char $ac_func (); below.
  17499. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17500. <limits.h> exists even on freestanding compilers. */
  17501. #ifdef __STDC__
  17502. # include <limits.h>
  17503. #else
  17504. # include <assert.h>
  17505. #endif
  17506. #undef $ac_func
  17507. /* Override any GCC internal prototype to avoid an error.
  17508. Use char because int might match the return type of a GCC
  17509. builtin and then its argument prototype would still apply. */
  17510. #ifdef __cplusplus
  17511. extern "C"
  17512. #endif
  17513. char $ac_func ();
  17514. /* The GNU C library defines this for functions which it implements
  17515. to always fail with ENOSYS. Some functions are actually named
  17516. something starting with __ and the normal name is an alias. */
  17517. #if defined __stub_$ac_func || defined __stub___$ac_func
  17518. choke me
  17519. #endif
  17520. int
  17521. main ()
  17522. {
  17523. return $ac_func ();
  17524. ;
  17525. return 0;
  17526. }
  17527. _ACEOF
  17528. rm -f conftest.$ac_objext conftest$ac_exeext
  17529. if { (ac_try="$ac_link"
  17530. case "(($ac_try" in
  17531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17532. *) ac_try_echo=$ac_try;;
  17533. esac
  17534. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17535. (eval "$ac_link") 2>conftest.er1
  17536. ac_status=$?
  17537. grep -v '^ *+' conftest.er1 >conftest.err
  17538. rm -f conftest.er1
  17539. cat conftest.err >&5
  17540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17541. (exit $ac_status); } && {
  17542. test -z "$ac_cxx_werror_flag" ||
  17543. test ! -s conftest.err
  17544. } && test -s conftest$ac_exeext &&
  17545. $as_test_x conftest$ac_exeext; then
  17546. eval "$as_ac_var=yes"
  17547. else
  17548. echo "$as_me: failed program was:" >&5
  17549. sed 's/^/| /' conftest.$ac_ext >&5
  17550. eval "$as_ac_var=no"
  17551. fi
  17552. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17553. conftest$ac_exeext conftest.$ac_ext
  17554. fi
  17555. ac_res=`eval echo '${'$as_ac_var'}'`
  17556. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17557. echo "${ECHO_T}$ac_res" >&6; }
  17558. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17559. cat >>confdefs.h <<_ACEOF
  17560. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17561. _ACEOF
  17562. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  17563. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  17564. if test "${ac_cv_func__doprnt+set}" = set; then
  17565. echo $ECHO_N "(cached) $ECHO_C" >&6
  17566. else
  17567. cat >conftest.$ac_ext <<_ACEOF
  17568. /* confdefs.h. */
  17569. _ACEOF
  17570. cat confdefs.h >>conftest.$ac_ext
  17571. cat >>conftest.$ac_ext <<_ACEOF
  17572. /* end confdefs.h. */
  17573. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  17574. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17575. #define _doprnt innocuous__doprnt
  17576. /* System header to define __stub macros and hopefully few prototypes,
  17577. which can conflict with char _doprnt (); below.
  17578. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17579. <limits.h> exists even on freestanding compilers. */
  17580. #ifdef __STDC__
  17581. # include <limits.h>
  17582. #else
  17583. # include <assert.h>
  17584. #endif
  17585. #undef _doprnt
  17586. /* Override any GCC internal prototype to avoid an error.
  17587. Use char because int might match the return type of a GCC
  17588. builtin and then its argument prototype would still apply. */
  17589. #ifdef __cplusplus
  17590. extern "C"
  17591. #endif
  17592. char _doprnt ();
  17593. /* The GNU C library defines this for functions which it implements
  17594. to always fail with ENOSYS. Some functions are actually named
  17595. something starting with __ and the normal name is an alias. */
  17596. #if defined __stub__doprnt || defined __stub____doprnt
  17597. choke me
  17598. #endif
  17599. int
  17600. main ()
  17601. {
  17602. return _doprnt ();
  17603. ;
  17604. return 0;
  17605. }
  17606. _ACEOF
  17607. rm -f conftest.$ac_objext conftest$ac_exeext
  17608. if { (ac_try="$ac_link"
  17609. case "(($ac_try" in
  17610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17611. *) ac_try_echo=$ac_try;;
  17612. esac
  17613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17614. (eval "$ac_link") 2>conftest.er1
  17615. ac_status=$?
  17616. grep -v '^ *+' conftest.er1 >conftest.err
  17617. rm -f conftest.er1
  17618. cat conftest.err >&5
  17619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17620. (exit $ac_status); } && {
  17621. test -z "$ac_cxx_werror_flag" ||
  17622. test ! -s conftest.err
  17623. } && test -s conftest$ac_exeext &&
  17624. $as_test_x conftest$ac_exeext; then
  17625. ac_cv_func__doprnt=yes
  17626. else
  17627. echo "$as_me: failed program was:" >&5
  17628. sed 's/^/| /' conftest.$ac_ext >&5
  17629. ac_cv_func__doprnt=no
  17630. fi
  17631. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17632. conftest$ac_exeext conftest.$ac_ext
  17633. fi
  17634. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  17635. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  17636. if test $ac_cv_func__doprnt = yes; then
  17637. cat >>confdefs.h <<\_ACEOF
  17638. #define HAVE_DOPRNT 1
  17639. _ACEOF
  17640. fi
  17641. fi
  17642. done
  17643. for ac_func in __argz_count __argz_next __argz_stringify atexit daemon ftruncate getcwd gethostbyaddr gethostbyname getpagesize inet_ntoa memchr memmove mempcpy memset mkdir munmap nl_langinfo posix_memalign putenv rmdir select setlocale sleep socket stpcpy strcasecmp strchr strcspn strdup strerror strncasecmp strstr strtol strtoul strtoull tzset unsetenv usleep
  17644. do
  17645. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17646. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17647. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17648. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17649. echo $ECHO_N "(cached) $ECHO_C" >&6
  17650. else
  17651. cat >conftest.$ac_ext <<_ACEOF
  17652. /* confdefs.h. */
  17653. _ACEOF
  17654. cat confdefs.h >>conftest.$ac_ext
  17655. cat >>conftest.$ac_ext <<_ACEOF
  17656. /* end confdefs.h. */
  17657. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17658. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17659. #define $ac_func innocuous_$ac_func
  17660. /* System header to define __stub macros and hopefully few prototypes,
  17661. which can conflict with char $ac_func (); below.
  17662. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17663. <limits.h> exists even on freestanding compilers. */
  17664. #ifdef __STDC__
  17665. # include <limits.h>
  17666. #else
  17667. # include <assert.h>
  17668. #endif
  17669. #undef $ac_func
  17670. /* Override any GCC internal prototype to avoid an error.
  17671. Use char because int might match the return type of a GCC
  17672. builtin and then its argument prototype would still apply. */
  17673. #ifdef __cplusplus
  17674. extern "C"
  17675. #endif
  17676. char $ac_func ();
  17677. /* The GNU C library defines this for functions which it implements
  17678. to always fail with ENOSYS. Some functions are actually named
  17679. something starting with __ and the normal name is an alias. */
  17680. #if defined __stub_$ac_func || defined __stub___$ac_func
  17681. choke me
  17682. #endif
  17683. int
  17684. main ()
  17685. {
  17686. return $ac_func ();
  17687. ;
  17688. return 0;
  17689. }
  17690. _ACEOF
  17691. rm -f conftest.$ac_objext conftest$ac_exeext
  17692. if { (ac_try="$ac_link"
  17693. case "(($ac_try" in
  17694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17695. *) ac_try_echo=$ac_try;;
  17696. esac
  17697. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17698. (eval "$ac_link") 2>conftest.er1
  17699. ac_status=$?
  17700. grep -v '^ *+' conftest.er1 >conftest.err
  17701. rm -f conftest.er1
  17702. cat conftest.err >&5
  17703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17704. (exit $ac_status); } && {
  17705. test -z "$ac_cxx_werror_flag" ||
  17706. test ! -s conftest.err
  17707. } && test -s conftest$ac_exeext &&
  17708. $as_test_x conftest$ac_exeext; then
  17709. eval "$as_ac_var=yes"
  17710. else
  17711. echo "$as_me: failed program was:" >&5
  17712. sed 's/^/| /' conftest.$ac_ext >&5
  17713. eval "$as_ac_var=no"
  17714. fi
  17715. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17716. conftest$ac_exeext conftest.$ac_ext
  17717. fi
  17718. ac_res=`eval echo '${'$as_ac_var'}'`
  17719. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17720. echo "${ECHO_T}$ac_res" >&6; }
  17721. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17722. cat >>confdefs.h <<_ACEOF
  17723. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17724. _ACEOF
  17725. fi
  17726. done
  17727. for ac_func in epoll_create
  17728. do
  17729. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17730. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17731. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17732. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17733. echo $ECHO_N "(cached) $ECHO_C" >&6
  17734. else
  17735. cat >conftest.$ac_ext <<_ACEOF
  17736. /* confdefs.h. */
  17737. _ACEOF
  17738. cat confdefs.h >>conftest.$ac_ext
  17739. cat >>conftest.$ac_ext <<_ACEOF
  17740. /* end confdefs.h. */
  17741. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17742. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17743. #define $ac_func innocuous_$ac_func
  17744. /* System header to define __stub macros and hopefully few prototypes,
  17745. which can conflict with char $ac_func (); below.
  17746. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17747. <limits.h> exists even on freestanding compilers. */
  17748. #ifdef __STDC__
  17749. # include <limits.h>
  17750. #else
  17751. # include <assert.h>
  17752. #endif
  17753. #undef $ac_func
  17754. /* Override any GCC internal prototype to avoid an error.
  17755. Use char because int might match the return type of a GCC
  17756. builtin and then its argument prototype would still apply. */
  17757. #ifdef __cplusplus
  17758. extern "C"
  17759. #endif
  17760. char $ac_func ();
  17761. /* The GNU C library defines this for functions which it implements
  17762. to always fail with ENOSYS. Some functions are actually named
  17763. something starting with __ and the normal name is an alias. */
  17764. #if defined __stub_$ac_func || defined __stub___$ac_func
  17765. choke me
  17766. #endif
  17767. int
  17768. main ()
  17769. {
  17770. return $ac_func ();
  17771. ;
  17772. return 0;
  17773. }
  17774. _ACEOF
  17775. rm -f conftest.$ac_objext conftest$ac_exeext
  17776. if { (ac_try="$ac_link"
  17777. case "(($ac_try" in
  17778. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17779. *) ac_try_echo=$ac_try;;
  17780. esac
  17781. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17782. (eval "$ac_link") 2>conftest.er1
  17783. ac_status=$?
  17784. grep -v '^ *+' conftest.er1 >conftest.err
  17785. rm -f conftest.er1
  17786. cat conftest.err >&5
  17787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17788. (exit $ac_status); } && {
  17789. test -z "$ac_cxx_werror_flag" ||
  17790. test ! -s conftest.err
  17791. } && test -s conftest$ac_exeext &&
  17792. $as_test_x conftest$ac_exeext; then
  17793. eval "$as_ac_var=yes"
  17794. else
  17795. echo "$as_me: failed program was:" >&5
  17796. sed 's/^/| /' conftest.$ac_ext >&5
  17797. eval "$as_ac_var=no"
  17798. fi
  17799. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17800. conftest$ac_exeext conftest.$ac_ext
  17801. fi
  17802. ac_res=`eval echo '${'$as_ac_var'}'`
  17803. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17804. echo "${ECHO_T}$ac_res" >&6; }
  17805. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17806. cat >>confdefs.h <<_ACEOF
  17807. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17808. _ACEOF
  17809. fi
  17810. done
  17811. for ac_func in basename
  17812. do
  17813. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17814. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17815. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17816. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17817. echo $ECHO_N "(cached) $ECHO_C" >&6
  17818. else
  17819. cat >conftest.$ac_ext <<_ACEOF
  17820. /* confdefs.h. */
  17821. _ACEOF
  17822. cat confdefs.h >>conftest.$ac_ext
  17823. cat >>conftest.$ac_ext <<_ACEOF
  17824. /* end confdefs.h. */
  17825. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17826. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17827. #define $ac_func innocuous_$ac_func
  17828. /* System header to define __stub macros and hopefully few prototypes,
  17829. which can conflict with char $ac_func (); below.
  17830. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17831. <limits.h> exists even on freestanding compilers. */
  17832. #ifdef __STDC__
  17833. # include <limits.h>
  17834. #else
  17835. # include <assert.h>
  17836. #endif
  17837. #undef $ac_func
  17838. /* Override any GCC internal prototype to avoid an error.
  17839. Use char because int might match the return type of a GCC
  17840. builtin and then its argument prototype would still apply. */
  17841. #ifdef __cplusplus
  17842. extern "C"
  17843. #endif
  17844. char $ac_func ();
  17845. /* The GNU C library defines this for functions which it implements
  17846. to always fail with ENOSYS. Some functions are actually named
  17847. something starting with __ and the normal name is an alias. */
  17848. #if defined __stub_$ac_func || defined __stub___$ac_func
  17849. choke me
  17850. #endif
  17851. int
  17852. main ()
  17853. {
  17854. return $ac_func ();
  17855. ;
  17856. return 0;
  17857. }
  17858. _ACEOF
  17859. rm -f conftest.$ac_objext conftest$ac_exeext
  17860. if { (ac_try="$ac_link"
  17861. case "(($ac_try" in
  17862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17863. *) ac_try_echo=$ac_try;;
  17864. esac
  17865. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17866. (eval "$ac_link") 2>conftest.er1
  17867. ac_status=$?
  17868. grep -v '^ *+' conftest.er1 >conftest.err
  17869. rm -f conftest.er1
  17870. cat conftest.err >&5
  17871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17872. (exit $ac_status); } && {
  17873. test -z "$ac_cxx_werror_flag" ||
  17874. test ! -s conftest.err
  17875. } && test -s conftest$ac_exeext &&
  17876. $as_test_x conftest$ac_exeext; then
  17877. eval "$as_ac_var=yes"
  17878. else
  17879. echo "$as_me: failed program was:" >&5
  17880. sed 's/^/| /' conftest.$ac_ext >&5
  17881. eval "$as_ac_var=no"
  17882. fi
  17883. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17884. conftest$ac_exeext conftest.$ac_ext
  17885. fi
  17886. ac_res=`eval echo '${'$as_ac_var'}'`
  17887. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17888. echo "${ECHO_T}$ac_res" >&6; }
  17889. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17890. cat >>confdefs.h <<_ACEOF
  17891. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17892. _ACEOF
  17893. if true; then
  17894. HAVE_BASENAME_TRUE=
  17895. HAVE_BASENAME_FALSE='#'
  17896. else
  17897. HAVE_BASENAME_TRUE='#'
  17898. HAVE_BASENAME_FALSE=
  17899. fi
  17900. else
  17901. if false; then
  17902. HAVE_BASENAME_TRUE=
  17903. HAVE_BASENAME_FALSE='#'
  17904. else
  17905. HAVE_BASENAME_TRUE='#'
  17906. HAVE_BASENAME_FALSE=
  17907. fi
  17908. fi
  17909. done
  17910. for ac_func in gai_strerror
  17911. do
  17912. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17913. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  17914. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  17915. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17916. echo $ECHO_N "(cached) $ECHO_C" >&6
  17917. else
  17918. cat >conftest.$ac_ext <<_ACEOF
  17919. /* confdefs.h. */
  17920. _ACEOF
  17921. cat confdefs.h >>conftest.$ac_ext
  17922. cat >>conftest.$ac_ext <<_ACEOF
  17923. /* end confdefs.h. */
  17924. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17925. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17926. #define $ac_func innocuous_$ac_func
  17927. /* System header to define __stub macros and hopefully few prototypes,
  17928. which can conflict with char $ac_func (); below.
  17929. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17930. <limits.h> exists even on freestanding compilers. */
  17931. #ifdef __STDC__
  17932. # include <limits.h>
  17933. #else
  17934. # include <assert.h>
  17935. #endif
  17936. #undef $ac_func
  17937. /* Override any GCC internal prototype to avoid an error.
  17938. Use char because int might match the return type of a GCC
  17939. builtin and then its argument prototype would still apply. */
  17940. #ifdef __cplusplus
  17941. extern "C"
  17942. #endif
  17943. char $ac_func ();
  17944. /* The GNU C library defines this for functions which it implements
  17945. to always fail with ENOSYS. Some functions are actually named
  17946. something starting with __ and the normal name is an alias. */
  17947. #if defined __stub_$ac_func || defined __stub___$ac_func
  17948. choke me
  17949. #endif
  17950. int
  17951. main ()
  17952. {
  17953. return $ac_func ();
  17954. ;
  17955. return 0;
  17956. }
  17957. _ACEOF
  17958. rm -f conftest.$ac_objext conftest$ac_exeext
  17959. if { (ac_try="$ac_link"
  17960. case "(($ac_try" in
  17961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17962. *) ac_try_echo=$ac_try;;
  17963. esac
  17964. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  17965. (eval "$ac_link") 2>conftest.er1
  17966. ac_status=$?
  17967. grep -v '^ *+' conftest.er1 >conftest.err
  17968. rm -f conftest.er1
  17969. cat conftest.err >&5
  17970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17971. (exit $ac_status); } && {
  17972. test -z "$ac_cxx_werror_flag" ||
  17973. test ! -s conftest.err
  17974. } && test -s conftest$ac_exeext &&
  17975. $as_test_x conftest$ac_exeext; then
  17976. eval "$as_ac_var=yes"
  17977. else
  17978. echo "$as_me: failed program was:" >&5
  17979. sed 's/^/| /' conftest.$ac_ext >&5
  17980. eval "$as_ac_var=no"
  17981. fi
  17982. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17983. conftest$ac_exeext conftest.$ac_ext
  17984. fi
  17985. ac_res=`eval echo '${'$as_ac_var'}'`
  17986. { echo "$as_me:$LINENO: result: $ac_res" >&5
  17987. echo "${ECHO_T}$ac_res" >&6; }
  17988. if test `eval echo '${'$as_ac_var'}'` = yes; then
  17989. cat >>confdefs.h <<_ACEOF
  17990. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17991. _ACEOF
  17992. if true; then
  17993. HAVE_GAI_STRERROR_TRUE=
  17994. HAVE_GAI_STRERROR_FALSE='#'
  17995. else
  17996. HAVE_GAI_STRERROR_TRUE='#'
  17997. HAVE_GAI_STRERROR_FALSE=
  17998. fi
  17999. else
  18000. if false; then
  18001. HAVE_GAI_STRERROR_TRUE=
  18002. HAVE_GAI_STRERROR_FALSE='#'
  18003. else
  18004. HAVE_GAI_STRERROR_TRUE='#'
  18005. HAVE_GAI_STRERROR_FALSE=
  18006. fi
  18007. fi
  18008. done
  18009. for ac_func in getaddrinfo
  18010. do
  18011. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18012. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18013. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18014. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18015. echo $ECHO_N "(cached) $ECHO_C" >&6
  18016. else
  18017. cat >conftest.$ac_ext <<_ACEOF
  18018. /* confdefs.h. */
  18019. _ACEOF
  18020. cat confdefs.h >>conftest.$ac_ext
  18021. cat >>conftest.$ac_ext <<_ACEOF
  18022. /* end confdefs.h. */
  18023. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18024. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18025. #define $ac_func innocuous_$ac_func
  18026. /* System header to define __stub macros and hopefully few prototypes,
  18027. which can conflict with char $ac_func (); below.
  18028. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18029. <limits.h> exists even on freestanding compilers. */
  18030. #ifdef __STDC__
  18031. # include <limits.h>
  18032. #else
  18033. # include <assert.h>
  18034. #endif
  18035. #undef $ac_func
  18036. /* Override any GCC internal prototype to avoid an error.
  18037. Use char because int might match the return type of a GCC
  18038. builtin and then its argument prototype would still apply. */
  18039. #ifdef __cplusplus
  18040. extern "C"
  18041. #endif
  18042. char $ac_func ();
  18043. /* The GNU C library defines this for functions which it implements
  18044. to always fail with ENOSYS. Some functions are actually named
  18045. something starting with __ and the normal name is an alias. */
  18046. #if defined __stub_$ac_func || defined __stub___$ac_func
  18047. choke me
  18048. #endif
  18049. int
  18050. main ()
  18051. {
  18052. return $ac_func ();
  18053. ;
  18054. return 0;
  18055. }
  18056. _ACEOF
  18057. rm -f conftest.$ac_objext conftest$ac_exeext
  18058. if { (ac_try="$ac_link"
  18059. case "(($ac_try" in
  18060. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18061. *) ac_try_echo=$ac_try;;
  18062. esac
  18063. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18064. (eval "$ac_link") 2>conftest.er1
  18065. ac_status=$?
  18066. grep -v '^ *+' conftest.er1 >conftest.err
  18067. rm -f conftest.er1
  18068. cat conftest.err >&5
  18069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18070. (exit $ac_status); } && {
  18071. test -z "$ac_cxx_werror_flag" ||
  18072. test ! -s conftest.err
  18073. } && test -s conftest$ac_exeext &&
  18074. $as_test_x conftest$ac_exeext; then
  18075. eval "$as_ac_var=yes"
  18076. else
  18077. echo "$as_me: failed program was:" >&5
  18078. sed 's/^/| /' conftest.$ac_ext >&5
  18079. eval "$as_ac_var=no"
  18080. fi
  18081. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18082. conftest$ac_exeext conftest.$ac_ext
  18083. fi
  18084. ac_res=`eval echo '${'$as_ac_var'}'`
  18085. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18086. echo "${ECHO_T}$ac_res" >&6; }
  18087. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18088. cat >>confdefs.h <<_ACEOF
  18089. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18090. _ACEOF
  18091. if true; then
  18092. HAVE_GETADDRINFO_TRUE=
  18093. HAVE_GETADDRINFO_FALSE='#'
  18094. else
  18095. HAVE_GETADDRINFO_TRUE='#'
  18096. HAVE_GETADDRINFO_FALSE=
  18097. fi
  18098. else
  18099. if false; then
  18100. HAVE_GETADDRINFO_TRUE=
  18101. HAVE_GETADDRINFO_FALSE='#'
  18102. else
  18103. HAVE_GETADDRINFO_TRUE='#'
  18104. HAVE_GETADDRINFO_FALSE=
  18105. fi
  18106. fi
  18107. done
  18108. for ac_func in gettimeofday
  18109. do
  18110. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18111. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18112. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18113. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18114. echo $ECHO_N "(cached) $ECHO_C" >&6
  18115. else
  18116. cat >conftest.$ac_ext <<_ACEOF
  18117. /* confdefs.h. */
  18118. _ACEOF
  18119. cat confdefs.h >>conftest.$ac_ext
  18120. cat >>conftest.$ac_ext <<_ACEOF
  18121. /* end confdefs.h. */
  18122. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18123. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18124. #define $ac_func innocuous_$ac_func
  18125. /* System header to define __stub macros and hopefully few prototypes,
  18126. which can conflict with char $ac_func (); below.
  18127. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18128. <limits.h> exists even on freestanding compilers. */
  18129. #ifdef __STDC__
  18130. # include <limits.h>
  18131. #else
  18132. # include <assert.h>
  18133. #endif
  18134. #undef $ac_func
  18135. /* Override any GCC internal prototype to avoid an error.
  18136. Use char because int might match the return type of a GCC
  18137. builtin and then its argument prototype would still apply. */
  18138. #ifdef __cplusplus
  18139. extern "C"
  18140. #endif
  18141. char $ac_func ();
  18142. /* The GNU C library defines this for functions which it implements
  18143. to always fail with ENOSYS. Some functions are actually named
  18144. something starting with __ and the normal name is an alias. */
  18145. #if defined __stub_$ac_func || defined __stub___$ac_func
  18146. choke me
  18147. #endif
  18148. int
  18149. main ()
  18150. {
  18151. return $ac_func ();
  18152. ;
  18153. return 0;
  18154. }
  18155. _ACEOF
  18156. rm -f conftest.$ac_objext conftest$ac_exeext
  18157. if { (ac_try="$ac_link"
  18158. case "(($ac_try" in
  18159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18160. *) ac_try_echo=$ac_try;;
  18161. esac
  18162. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18163. (eval "$ac_link") 2>conftest.er1
  18164. ac_status=$?
  18165. grep -v '^ *+' conftest.er1 >conftest.err
  18166. rm -f conftest.er1
  18167. cat conftest.err >&5
  18168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18169. (exit $ac_status); } && {
  18170. test -z "$ac_cxx_werror_flag" ||
  18171. test ! -s conftest.err
  18172. } && test -s conftest$ac_exeext &&
  18173. $as_test_x conftest$ac_exeext; then
  18174. eval "$as_ac_var=yes"
  18175. else
  18176. echo "$as_me: failed program was:" >&5
  18177. sed 's/^/| /' conftest.$ac_ext >&5
  18178. eval "$as_ac_var=no"
  18179. fi
  18180. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18181. conftest$ac_exeext conftest.$ac_ext
  18182. fi
  18183. ac_res=`eval echo '${'$as_ac_var'}'`
  18184. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18185. echo "${ECHO_T}$ac_res" >&6; }
  18186. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18187. cat >>confdefs.h <<_ACEOF
  18188. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18189. _ACEOF
  18190. if true; then
  18191. HAVE_GETTIMEOFDAY_TRUE=
  18192. HAVE_GETTIMEOFDAY_FALSE='#'
  18193. else
  18194. HAVE_GETTIMEOFDAY_TRUE='#'
  18195. HAVE_GETTIMEOFDAY_FALSE=
  18196. fi
  18197. else
  18198. if false; then
  18199. HAVE_GETTIMEOFDAY_TRUE=
  18200. HAVE_GETTIMEOFDAY_FALSE='#'
  18201. else
  18202. HAVE_GETTIMEOFDAY_TRUE='#'
  18203. HAVE_GETTIMEOFDAY_FALSE=
  18204. fi
  18205. fi
  18206. done
  18207. for ac_func in inet_aton
  18208. do
  18209. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18210. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18211. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18212. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18213. echo $ECHO_N "(cached) $ECHO_C" >&6
  18214. else
  18215. cat >conftest.$ac_ext <<_ACEOF
  18216. /* confdefs.h. */
  18217. _ACEOF
  18218. cat confdefs.h >>conftest.$ac_ext
  18219. cat >>conftest.$ac_ext <<_ACEOF
  18220. /* end confdefs.h. */
  18221. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18222. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18223. #define $ac_func innocuous_$ac_func
  18224. /* System header to define __stub macros and hopefully few prototypes,
  18225. which can conflict with char $ac_func (); below.
  18226. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18227. <limits.h> exists even on freestanding compilers. */
  18228. #ifdef __STDC__
  18229. # include <limits.h>
  18230. #else
  18231. # include <assert.h>
  18232. #endif
  18233. #undef $ac_func
  18234. /* Override any GCC internal prototype to avoid an error.
  18235. Use char because int might match the return type of a GCC
  18236. builtin and then its argument prototype would still apply. */
  18237. #ifdef __cplusplus
  18238. extern "C"
  18239. #endif
  18240. char $ac_func ();
  18241. /* The GNU C library defines this for functions which it implements
  18242. to always fail with ENOSYS. Some functions are actually named
  18243. something starting with __ and the normal name is an alias. */
  18244. #if defined __stub_$ac_func || defined __stub___$ac_func
  18245. choke me
  18246. #endif
  18247. int
  18248. main ()
  18249. {
  18250. return $ac_func ();
  18251. ;
  18252. return 0;
  18253. }
  18254. _ACEOF
  18255. rm -f conftest.$ac_objext conftest$ac_exeext
  18256. if { (ac_try="$ac_link"
  18257. case "(($ac_try" in
  18258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18259. *) ac_try_echo=$ac_try;;
  18260. esac
  18261. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18262. (eval "$ac_link") 2>conftest.er1
  18263. ac_status=$?
  18264. grep -v '^ *+' conftest.er1 >conftest.err
  18265. rm -f conftest.er1
  18266. cat conftest.err >&5
  18267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18268. (exit $ac_status); } && {
  18269. test -z "$ac_cxx_werror_flag" ||
  18270. test ! -s conftest.err
  18271. } && test -s conftest$ac_exeext &&
  18272. $as_test_x conftest$ac_exeext; then
  18273. eval "$as_ac_var=yes"
  18274. else
  18275. echo "$as_me: failed program was:" >&5
  18276. sed 's/^/| /' conftest.$ac_ext >&5
  18277. eval "$as_ac_var=no"
  18278. fi
  18279. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18280. conftest$ac_exeext conftest.$ac_ext
  18281. fi
  18282. ac_res=`eval echo '${'$as_ac_var'}'`
  18283. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18284. echo "${ECHO_T}$ac_res" >&6; }
  18285. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18286. cat >>confdefs.h <<_ACEOF
  18287. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18288. _ACEOF
  18289. if true; then
  18290. HAVE_INET_ATON_TRUE=
  18291. HAVE_INET_ATON_FALSE='#'
  18292. else
  18293. HAVE_INET_ATON_TRUE='#'
  18294. HAVE_INET_ATON_FALSE=
  18295. fi
  18296. else
  18297. if false; then
  18298. HAVE_INET_ATON_TRUE=
  18299. HAVE_INET_ATON_FALSE='#'
  18300. else
  18301. HAVE_INET_ATON_TRUE='#'
  18302. HAVE_INET_ATON_FALSE=
  18303. fi
  18304. fi
  18305. done
  18306. for ac_func in localtime_r
  18307. do
  18308. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18309. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18310. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18311. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18312. echo $ECHO_N "(cached) $ECHO_C" >&6
  18313. else
  18314. cat >conftest.$ac_ext <<_ACEOF
  18315. /* confdefs.h. */
  18316. _ACEOF
  18317. cat confdefs.h >>conftest.$ac_ext
  18318. cat >>conftest.$ac_ext <<_ACEOF
  18319. /* end confdefs.h. */
  18320. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18321. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18322. #define $ac_func innocuous_$ac_func
  18323. /* System header to define __stub macros and hopefully few prototypes,
  18324. which can conflict with char $ac_func (); below.
  18325. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18326. <limits.h> exists even on freestanding compilers. */
  18327. #ifdef __STDC__
  18328. # include <limits.h>
  18329. #else
  18330. # include <assert.h>
  18331. #endif
  18332. #undef $ac_func
  18333. /* Override any GCC internal prototype to avoid an error.
  18334. Use char because int might match the return type of a GCC
  18335. builtin and then its argument prototype would still apply. */
  18336. #ifdef __cplusplus
  18337. extern "C"
  18338. #endif
  18339. char $ac_func ();
  18340. /* The GNU C library defines this for functions which it implements
  18341. to always fail with ENOSYS. Some functions are actually named
  18342. something starting with __ and the normal name is an alias. */
  18343. #if defined __stub_$ac_func || defined __stub___$ac_func
  18344. choke me
  18345. #endif
  18346. int
  18347. main ()
  18348. {
  18349. return $ac_func ();
  18350. ;
  18351. return 0;
  18352. }
  18353. _ACEOF
  18354. rm -f conftest.$ac_objext conftest$ac_exeext
  18355. if { (ac_try="$ac_link"
  18356. case "(($ac_try" in
  18357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18358. *) ac_try_echo=$ac_try;;
  18359. esac
  18360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18361. (eval "$ac_link") 2>conftest.er1
  18362. ac_status=$?
  18363. grep -v '^ *+' conftest.er1 >conftest.err
  18364. rm -f conftest.er1
  18365. cat conftest.err >&5
  18366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18367. (exit $ac_status); } && {
  18368. test -z "$ac_cxx_werror_flag" ||
  18369. test ! -s conftest.err
  18370. } && test -s conftest$ac_exeext &&
  18371. $as_test_x conftest$ac_exeext; then
  18372. eval "$as_ac_var=yes"
  18373. else
  18374. echo "$as_me: failed program was:" >&5
  18375. sed 's/^/| /' conftest.$ac_ext >&5
  18376. eval "$as_ac_var=no"
  18377. fi
  18378. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18379. conftest$ac_exeext conftest.$ac_ext
  18380. fi
  18381. ac_res=`eval echo '${'$as_ac_var'}'`
  18382. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18383. echo "${ECHO_T}$ac_res" >&6; }
  18384. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18385. cat >>confdefs.h <<_ACEOF
  18386. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18387. _ACEOF
  18388. if true; then
  18389. HAVE_LOCALTIME_R_TRUE=
  18390. HAVE_LOCALTIME_R_FALSE='#'
  18391. else
  18392. HAVE_LOCALTIME_R_TRUE='#'
  18393. HAVE_LOCALTIME_R_FALSE=
  18394. fi
  18395. else
  18396. if false; then
  18397. HAVE_LOCALTIME_R_TRUE=
  18398. HAVE_LOCALTIME_R_FALSE='#'
  18399. else
  18400. HAVE_LOCALTIME_R_TRUE='#'
  18401. HAVE_LOCALTIME_R_FALSE=
  18402. fi
  18403. fi
  18404. done
  18405. for ac_func in strptime
  18406. do
  18407. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18408. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18409. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18410. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18411. echo $ECHO_N "(cached) $ECHO_C" >&6
  18412. else
  18413. cat >conftest.$ac_ext <<_ACEOF
  18414. /* confdefs.h. */
  18415. _ACEOF
  18416. cat confdefs.h >>conftest.$ac_ext
  18417. cat >>conftest.$ac_ext <<_ACEOF
  18418. /* end confdefs.h. */
  18419. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18420. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18421. #define $ac_func innocuous_$ac_func
  18422. /* System header to define __stub macros and hopefully few prototypes,
  18423. which can conflict with char $ac_func (); below.
  18424. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18425. <limits.h> exists even on freestanding compilers. */
  18426. #ifdef __STDC__
  18427. # include <limits.h>
  18428. #else
  18429. # include <assert.h>
  18430. #endif
  18431. #undef $ac_func
  18432. /* Override any GCC internal prototype to avoid an error.
  18433. Use char because int might match the return type of a GCC
  18434. builtin and then its argument prototype would still apply. */
  18435. #ifdef __cplusplus
  18436. extern "C"
  18437. #endif
  18438. char $ac_func ();
  18439. /* The GNU C library defines this for functions which it implements
  18440. to always fail with ENOSYS. Some functions are actually named
  18441. something starting with __ and the normal name is an alias. */
  18442. #if defined __stub_$ac_func || defined __stub___$ac_func
  18443. choke me
  18444. #endif
  18445. int
  18446. main ()
  18447. {
  18448. return $ac_func ();
  18449. ;
  18450. return 0;
  18451. }
  18452. _ACEOF
  18453. rm -f conftest.$ac_objext conftest$ac_exeext
  18454. if { (ac_try="$ac_link"
  18455. case "(($ac_try" in
  18456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18457. *) ac_try_echo=$ac_try;;
  18458. esac
  18459. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18460. (eval "$ac_link") 2>conftest.er1
  18461. ac_status=$?
  18462. grep -v '^ *+' conftest.er1 >conftest.err
  18463. rm -f conftest.er1
  18464. cat conftest.err >&5
  18465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18466. (exit $ac_status); } && {
  18467. test -z "$ac_cxx_werror_flag" ||
  18468. test ! -s conftest.err
  18469. } && test -s conftest$ac_exeext &&
  18470. $as_test_x conftest$ac_exeext; then
  18471. eval "$as_ac_var=yes"
  18472. else
  18473. echo "$as_me: failed program was:" >&5
  18474. sed 's/^/| /' conftest.$ac_ext >&5
  18475. eval "$as_ac_var=no"
  18476. fi
  18477. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18478. conftest$ac_exeext conftest.$ac_ext
  18479. fi
  18480. ac_res=`eval echo '${'$as_ac_var'}'`
  18481. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18482. echo "${ECHO_T}$ac_res" >&6; }
  18483. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18484. cat >>confdefs.h <<_ACEOF
  18485. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18486. _ACEOF
  18487. if true; then
  18488. HAVE_STRPTIME_TRUE=
  18489. HAVE_STRPTIME_FALSE='#'
  18490. else
  18491. HAVE_STRPTIME_TRUE='#'
  18492. HAVE_STRPTIME_FALSE=
  18493. fi
  18494. else
  18495. if false; then
  18496. HAVE_STRPTIME_TRUE=
  18497. HAVE_STRPTIME_FALSE='#'
  18498. else
  18499. HAVE_STRPTIME_TRUE='#'
  18500. HAVE_STRPTIME_FALSE=
  18501. fi
  18502. fi
  18503. done
  18504. for ac_func in timegm
  18505. do
  18506. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18507. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  18508. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  18509. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18510. echo $ECHO_N "(cached) $ECHO_C" >&6
  18511. else
  18512. cat >conftest.$ac_ext <<_ACEOF
  18513. /* confdefs.h. */
  18514. _ACEOF
  18515. cat confdefs.h >>conftest.$ac_ext
  18516. cat >>conftest.$ac_ext <<_ACEOF
  18517. /* end confdefs.h. */
  18518. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18519. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18520. #define $ac_func innocuous_$ac_func
  18521. /* System header to define __stub macros and hopefully few prototypes,
  18522. which can conflict with char $ac_func (); below.
  18523. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18524. <limits.h> exists even on freestanding compilers. */
  18525. #ifdef __STDC__
  18526. # include <limits.h>
  18527. #else
  18528. # include <assert.h>
  18529. #endif
  18530. #undef $ac_func
  18531. /* Override any GCC internal prototype to avoid an error.
  18532. Use char because int might match the return type of a GCC
  18533. builtin and then its argument prototype would still apply. */
  18534. #ifdef __cplusplus
  18535. extern "C"
  18536. #endif
  18537. char $ac_func ();
  18538. /* The GNU C library defines this for functions which it implements
  18539. to always fail with ENOSYS. Some functions are actually named
  18540. something starting with __ and the normal name is an alias. */
  18541. #if defined __stub_$ac_func || defined __stub___$ac_func
  18542. choke me
  18543. #endif
  18544. int
  18545. main ()
  18546. {
  18547. return $ac_func ();
  18548. ;
  18549. return 0;
  18550. }
  18551. _ACEOF
  18552. rm -f conftest.$ac_objext conftest$ac_exeext
  18553. if { (ac_try="$ac_link"
  18554. case "(($ac_try" in
  18555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18556. *) ac_try_echo=$ac_try;;
  18557. esac
  18558. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  18559. (eval "$ac_link") 2>conftest.er1
  18560. ac_status=$?
  18561. grep -v '^ *+' conftest.er1 >conftest.err
  18562. rm -f conftest.er1
  18563. cat conftest.err >&5
  18564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18565. (exit $ac_status); } && {
  18566. test -z "$ac_cxx_werror_flag" ||
  18567. test ! -s conftest.err
  18568. } && test -s conftest$ac_exeext &&
  18569. $as_test_x conftest$ac_exeext; then
  18570. eval "$as_ac_var=yes"
  18571. else
  18572. echo "$as_me: failed program was:" >&5
  18573. sed 's/^/| /' conftest.$ac_ext >&5
  18574. eval "$as_ac_var=no"
  18575. fi
  18576. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18577. conftest$ac_exeext conftest.$ac_ext
  18578. fi
  18579. ac_res=`eval echo '${'$as_ac_var'}'`
  18580. { echo "$as_me:$LINENO: result: $ac_res" >&5
  18581. echo "${ECHO_T}$ac_res" >&6; }
  18582. if test `eval echo '${'$as_ac_var'}'` = yes; then
  18583. cat >>confdefs.h <<_ACEOF
  18584. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18585. _ACEOF
  18586. if true; then
  18587. HAVE_TIMEGM_TRUE=
  18588. HAVE_TIMEGM_FALSE='#'
  18589. else
  18590. HAVE_TIMEGM_TRUE='#'
  18591. HAVE_TIMEGM_FALSE=
  18592. fi
  18593. else
  18594. if false; then
  18595. HAVE_TIMEGM_TRUE=
  18596. HAVE_TIMEGM_FALSE='#'
  18597. else
  18598. HAVE_TIMEGM_TRUE='#'
  18599. HAVE_TIMEGM_FALSE=
  18600. fi
  18601. fi
  18602. done
  18603. case "$target" in
  18604. *mingw*)
  18605. if true; then
  18606. HAVE_GETADDRINFO_TRUE=
  18607. HAVE_GETADDRINFO_FALSE='#'
  18608. else
  18609. HAVE_GETADDRINFO_TRUE='#'
  18610. HAVE_GETADDRINFO_FALSE=
  18611. fi
  18612. if false; then
  18613. HAVE_GAI_STRERROR_TRUE=
  18614. HAVE_GAI_STRERROR_FALSE='#'
  18615. else
  18616. HAVE_GAI_STRERROR_TRUE='#'
  18617. HAVE_GAI_STRERROR_FALSE=
  18618. fi
  18619. ;;
  18620. esac
  18621. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  18622. cat >confcache <<\_ACEOF
  18623. # This file is a shell script that caches the results of configure
  18624. # tests run on this system so they can be shared between configure
  18625. # scripts and configure runs, see configure's option --config-cache.
  18626. # It is not useful on other systems. If it contains results you don't
  18627. # want to keep, you may remove or edit it.
  18628. #
  18629. # config.status only pays attention to the cache file if you give it
  18630. # the --recheck option to rerun configure.
  18631. #
  18632. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18633. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18634. # following values.
  18635. _ACEOF
  18636. # The following way of writing the cache mishandles newlines in values,
  18637. # but we know of no workaround that is simple, portable, and efficient.
  18638. # So, we kill variables containing newlines.
  18639. # Ultrix sh set writes to stderr and can't be redirected directly,
  18640. # and sets the high bit in the cache file unless we assign to the vars.
  18641. (
  18642. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18643. eval ac_val=\$$ac_var
  18644. case $ac_val in #(
  18645. *${as_nl}*)
  18646. case $ac_var in #(
  18647. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  18648. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  18649. esac
  18650. case $ac_var in #(
  18651. _ | IFS | as_nl) ;; #(
  18652. *) $as_unset $ac_var ;;
  18653. esac ;;
  18654. esac
  18655. done
  18656. (set) 2>&1 |
  18657. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18658. *${as_nl}ac_space=\ *)
  18659. # `set' does not quote correctly, so add quotes (double-quote
  18660. # substitution turns \\\\ into \\, and sed turns \\ into \).
  18661. sed -n \
  18662. "s/'/'\\\\''/g;
  18663. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18664. ;; #(
  18665. *)
  18666. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18667. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18668. ;;
  18669. esac |
  18670. sort
  18671. ) |
  18672. sed '
  18673. /^ac_cv_env_/b end
  18674. t clear
  18675. :clear
  18676. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18677. t end
  18678. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18679. :end' >>confcache
  18680. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18681. if test -w "$cache_file"; then
  18682. test "x$cache_file" != "x/dev/null" &&
  18683. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  18684. echo "$as_me: updating cache $cache_file" >&6;}
  18685. cat confcache >$cache_file
  18686. else
  18687. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  18688. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18689. fi
  18690. fi
  18691. rm -f confcache
  18692. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18693. # Let make expand exec_prefix.
  18694. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18695. DEFS=-DHAVE_CONFIG_H
  18696. ac_libobjs=
  18697. ac_ltlibobjs=
  18698. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18699. # 1. Remove the extension, and $U if already installed.
  18700. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18701. ac_i=`echo "$ac_i" | sed "$ac_script"`
  18702. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18703. # will be set to the directory where LIBOBJS objects are built.
  18704. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18705. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  18706. done
  18707. LIBOBJS=$ac_libobjs
  18708. LTLIBOBJS=$ac_ltlibobjs
  18709. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18710. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  18711. Usually this means the macro was only invoked conditionally." >&5
  18712. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  18713. Usually this means the macro was only invoked conditionally." >&2;}
  18714. { (exit 1); exit 1; }; }
  18715. fi
  18716. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18717. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  18718. Usually this means the macro was only invoked conditionally." >&5
  18719. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  18720. Usually this means the macro was only invoked conditionally." >&2;}
  18721. { (exit 1); exit 1; }; }
  18722. fi
  18723. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18724. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  18725. Usually this means the macro was only invoked conditionally." >&5
  18726. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  18727. Usually this means the macro was only invoked conditionally." >&2;}
  18728. { (exit 1); exit 1; }; }
  18729. fi
  18730. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  18731. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18732. Usually this means the macro was only invoked conditionally." >&5
  18733. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18734. Usually this means the macro was only invoked conditionally." >&2;}
  18735. { (exit 1); exit 1; }; }
  18736. fi
  18737. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  18738. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18739. Usually this means the macro was only invoked conditionally." >&5
  18740. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  18741. Usually this means the macro was only invoked conditionally." >&2;}
  18742. { (exit 1); exit 1; }; }
  18743. fi
  18744. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  18745. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18746. Usually this means the macro was only invoked conditionally." >&5
  18747. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18748. Usually this means the macro was only invoked conditionally." >&2;}
  18749. { (exit 1); exit 1; }; }
  18750. fi
  18751. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  18752. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18753. Usually this means the macro was only invoked conditionally." >&5
  18754. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  18755. Usually this means the macro was only invoked conditionally." >&2;}
  18756. { (exit 1); exit 1; }; }
  18757. fi
  18758. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  18759. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  18760. Usually this means the macro was only invoked conditionally." >&5
  18761. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  18762. Usually this means the macro was only invoked conditionally." >&2;}
  18763. { (exit 1); exit 1; }; }
  18764. fi
  18765. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  18766. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  18767. Usually this means the macro was only invoked conditionally." >&5
  18768. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  18769. Usually this means the macro was only invoked conditionally." >&2;}
  18770. { (exit 1); exit 1; }; }
  18771. fi
  18772. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  18773. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  18774. Usually this means the macro was only invoked conditionally." >&5
  18775. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  18776. Usually this means the macro was only invoked conditionally." >&2;}
  18777. { (exit 1); exit 1; }; }
  18778. fi
  18779. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  18780. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  18781. Usually this means the macro was only invoked conditionally." >&5
  18782. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  18783. Usually this means the macro was only invoked conditionally." >&2;}
  18784. { (exit 1); exit 1; }; }
  18785. fi
  18786. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  18787. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18788. Usually this means the macro was only invoked conditionally." >&5
  18789. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18790. Usually this means the macro was only invoked conditionally." >&2;}
  18791. { (exit 1); exit 1; }; }
  18792. fi
  18793. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  18794. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18795. Usually this means the macro was only invoked conditionally." >&5
  18796. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  18797. Usually this means the macro was only invoked conditionally." >&2;}
  18798. { (exit 1); exit 1; }; }
  18799. fi
  18800. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  18801. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  18802. Usually this means the macro was only invoked conditionally." >&5
  18803. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  18804. Usually this means the macro was only invoked conditionally." >&2;}
  18805. { (exit 1); exit 1; }; }
  18806. fi
  18807. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  18808. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  18809. Usually this means the macro was only invoked conditionally." >&5
  18810. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  18811. Usually this means the macro was only invoked conditionally." >&2;}
  18812. { (exit 1); exit 1; }; }
  18813. fi
  18814. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  18815. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18816. Usually this means the macro was only invoked conditionally." >&5
  18817. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18818. Usually this means the macro was only invoked conditionally." >&2;}
  18819. { (exit 1); exit 1; }; }
  18820. fi
  18821. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  18822. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18823. Usually this means the macro was only invoked conditionally." >&5
  18824. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18825. Usually this means the macro was only invoked conditionally." >&2;}
  18826. { (exit 1); exit 1; }; }
  18827. fi
  18828. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  18829. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18830. Usually this means the macro was only invoked conditionally." >&5
  18831. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18832. Usually this means the macro was only invoked conditionally." >&2;}
  18833. { (exit 1); exit 1; }; }
  18834. fi
  18835. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  18836. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18837. Usually this means the macro was only invoked conditionally." >&5
  18838. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18839. Usually this means the macro was only invoked conditionally." >&2;}
  18840. { (exit 1); exit 1; }; }
  18841. fi
  18842. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  18843. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18844. Usually this means the macro was only invoked conditionally." >&5
  18845. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18846. Usually this means the macro was only invoked conditionally." >&2;}
  18847. { (exit 1); exit 1; }; }
  18848. fi
  18849. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  18850. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18851. Usually this means the macro was only invoked conditionally." >&5
  18852. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  18853. Usually this means the macro was only invoked conditionally." >&2;}
  18854. { (exit 1); exit 1; }; }
  18855. fi
  18856. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  18857. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  18858. Usually this means the macro was only invoked conditionally." >&5
  18859. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  18860. Usually this means the macro was only invoked conditionally." >&2;}
  18861. { (exit 1); exit 1; }; }
  18862. fi
  18863. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  18864. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  18865. Usually this means the macro was only invoked conditionally." >&5
  18866. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  18867. Usually this means the macro was only invoked conditionally." >&2;}
  18868. { (exit 1); exit 1; }; }
  18869. fi
  18870. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  18871. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  18872. Usually this means the macro was only invoked conditionally." >&5
  18873. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  18874. Usually this means the macro was only invoked conditionally." >&2;}
  18875. { (exit 1); exit 1; }; }
  18876. fi
  18877. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  18878. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  18879. Usually this means the macro was only invoked conditionally." >&5
  18880. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  18881. Usually this means the macro was only invoked conditionally." >&2;}
  18882. { (exit 1); exit 1; }; }
  18883. fi
  18884. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  18885. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  18886. Usually this means the macro was only invoked conditionally." >&5
  18887. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  18888. Usually this means the macro was only invoked conditionally." >&2;}
  18889. { (exit 1); exit 1; }; }
  18890. fi
  18891. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  18892. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  18893. Usually this means the macro was only invoked conditionally." >&5
  18894. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  18895. Usually this means the macro was only invoked conditionally." >&2;}
  18896. { (exit 1); exit 1; }; }
  18897. fi
  18898. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  18899. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  18900. Usually this means the macro was only invoked conditionally." >&5
  18901. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  18902. Usually this means the macro was only invoked conditionally." >&2;}
  18903. { (exit 1); exit 1; }; }
  18904. fi
  18905. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  18906. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  18907. Usually this means the macro was only invoked conditionally." >&5
  18908. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  18909. Usually this means the macro was only invoked conditionally." >&2;}
  18910. { (exit 1); exit 1; }; }
  18911. fi
  18912. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  18913. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18914. Usually this means the macro was only invoked conditionally." >&5
  18915. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  18916. Usually this means the macro was only invoked conditionally." >&2;}
  18917. { (exit 1); exit 1; }; }
  18918. fi
  18919. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  18920. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18921. Usually this means the macro was only invoked conditionally." >&5
  18922. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  18923. Usually this means the macro was only invoked conditionally." >&2;}
  18924. { (exit 1); exit 1; }; }
  18925. fi
  18926. : ${CONFIG_STATUS=./config.status}
  18927. ac_clean_files_save=$ac_clean_files
  18928. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18929. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  18930. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18931. cat >$CONFIG_STATUS <<_ACEOF
  18932. #! $SHELL
  18933. # Generated by $as_me.
  18934. # Run this file to recreate the current configuration.
  18935. # Compiler output produced by configure, useful for debugging
  18936. # configure, is in config.log if it exists.
  18937. debug=false
  18938. ac_cs_recheck=false
  18939. ac_cs_silent=false
  18940. SHELL=\${CONFIG_SHELL-$SHELL}
  18941. _ACEOF
  18942. cat >>$CONFIG_STATUS <<\_ACEOF
  18943. ## --------------------- ##
  18944. ## M4sh Initialization. ##
  18945. ## --------------------- ##
  18946. # Be more Bourne compatible
  18947. DUALCASE=1; export DUALCASE # for MKS sh
  18948. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18949. emulate sh
  18950. NULLCMD=:
  18951. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18952. # is contrary to our usage. Disable this feature.
  18953. alias -g '${1+"$@"}'='"$@"'
  18954. setopt NO_GLOB_SUBST
  18955. else
  18956. case `(set -o) 2>/dev/null` in
  18957. *posix*) set -o posix ;;
  18958. esac
  18959. fi
  18960. # PATH needs CR
  18961. # Avoid depending upon Character Ranges.
  18962. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18963. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18964. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18965. as_cr_digits='0123456789'
  18966. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18967. # The user is always right.
  18968. if test "${PATH_SEPARATOR+set}" != set; then
  18969. echo "#! /bin/sh" >conf$$.sh
  18970. echo "exit 0" >>conf$$.sh
  18971. chmod +x conf$$.sh
  18972. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  18973. PATH_SEPARATOR=';'
  18974. else
  18975. PATH_SEPARATOR=:
  18976. fi
  18977. rm -f conf$$.sh
  18978. fi
  18979. # Support unset when possible.
  18980. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  18981. as_unset=unset
  18982. else
  18983. as_unset=false
  18984. fi
  18985. # IFS
  18986. # We need space, tab and new line, in precisely that order. Quoting is
  18987. # there to prevent editors from complaining about space-tab.
  18988. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18989. # splitting by setting IFS to empty value.)
  18990. as_nl='
  18991. '
  18992. IFS=" "" $as_nl"
  18993. # Find who we are. Look in the path if we contain no directory separator.
  18994. case $0 in
  18995. *[\\/]* ) as_myself=$0 ;;
  18996. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18997. for as_dir in $PATH
  18998. do
  18999. IFS=$as_save_IFS
  19000. test -z "$as_dir" && as_dir=.
  19001. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19002. done
  19003. IFS=$as_save_IFS
  19004. ;;
  19005. esac
  19006. # We did not find ourselves, most probably we were run as `sh COMMAND'
  19007. # in which case we are not to be found in the path.
  19008. if test "x$as_myself" = x; then
  19009. as_myself=$0
  19010. fi
  19011. if test ! -f "$as_myself"; then
  19012. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  19013. { (exit 1); exit 1; }
  19014. fi
  19015. # Work around bugs in pre-3.0 UWIN ksh.
  19016. for as_var in ENV MAIL MAILPATH
  19017. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19018. done
  19019. PS1='$ '
  19020. PS2='> '
  19021. PS4='+ '
  19022. # NLS nuisances.
  19023. for as_var in \
  19024. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19025. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19026. LC_TELEPHONE LC_TIME
  19027. do
  19028. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19029. eval $as_var=C; export $as_var
  19030. else
  19031. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  19032. fi
  19033. done
  19034. # Required to use basename.
  19035. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19036. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19037. as_expr=expr
  19038. else
  19039. as_expr=false
  19040. fi
  19041. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  19042. as_basename=basename
  19043. else
  19044. as_basename=false
  19045. fi
  19046. # Name of the executable.
  19047. as_me=`$as_basename -- "$0" ||
  19048. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19049. X"$0" : 'X\(//\)$' \| \
  19050. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  19051. echo X/"$0" |
  19052. sed '/^.*\/\([^/][^/]*\)\/*$/{
  19053. s//\1/
  19054. q
  19055. }
  19056. /^X\/\(\/\/\)$/{
  19057. s//\1/
  19058. q
  19059. }
  19060. /^X\/\(\/\).*/{
  19061. s//\1/
  19062. q
  19063. }
  19064. s/.*/./; q'`
  19065. # CDPATH.
  19066. $as_unset CDPATH
  19067. as_lineno_1=$LINENO
  19068. as_lineno_2=$LINENO
  19069. test "x$as_lineno_1" != "x$as_lineno_2" &&
  19070. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  19071. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19072. # uniformly replaced by the line number. The first 'sed' inserts a
  19073. # line-number line after each line using $LINENO; the second 'sed'
  19074. # does the real work. The second script uses 'N' to pair each
  19075. # line-number line with the line containing $LINENO, and appends
  19076. # trailing '-' during substitution so that $LINENO is not a special
  19077. # case at line end.
  19078. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19079. # scripts with optimization help from Paolo Bonzini. Blame Lee
  19080. # E. McMahon (1931-1989) for sed's syntax. :-)
  19081. sed -n '
  19082. p
  19083. /[$]LINENO/=
  19084. ' <$as_myself |
  19085. sed '
  19086. s/[$]LINENO.*/&-/
  19087. t lineno
  19088. b
  19089. :lineno
  19090. N
  19091. :loop
  19092. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  19093. t loop
  19094. s/-\n.*//
  19095. ' >$as_me.lineno &&
  19096. chmod +x "$as_me.lineno" ||
  19097. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  19098. { (exit 1); exit 1; }; }
  19099. # Don't try to exec as it changes $[0], causing all sort of problems
  19100. # (the dirname of $[0] is not the place where we might find the
  19101. # original and so on. Autoconf is especially sensitive to this).
  19102. . "./$as_me.lineno"
  19103. # Exit status is that of the last command.
  19104. exit
  19105. }
  19106. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  19107. as_dirname=dirname
  19108. else
  19109. as_dirname=false
  19110. fi
  19111. ECHO_C= ECHO_N= ECHO_T=
  19112. case `echo -n x` in
  19113. -n*)
  19114. case `echo 'x\c'` in
  19115. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  19116. *) ECHO_C='\c';;
  19117. esac;;
  19118. *)
  19119. ECHO_N='-n';;
  19120. esac
  19121. if expr a : '\(a\)' >/dev/null 2>&1 &&
  19122. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  19123. as_expr=expr
  19124. else
  19125. as_expr=false
  19126. fi
  19127. rm -f conf$$ conf$$.exe conf$$.file
  19128. if test -d conf$$.dir; then
  19129. rm -f conf$$.dir/conf$$.file
  19130. else
  19131. rm -f conf$$.dir
  19132. mkdir conf$$.dir
  19133. fi
  19134. echo >conf$$.file
  19135. if ln -s conf$$.file conf$$ 2>/dev/null; then
  19136. as_ln_s='ln -s'
  19137. # ... but there are two gotchas:
  19138. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  19139. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  19140. # In both cases, we have to default to `cp -p'.
  19141. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  19142. as_ln_s='cp -p'
  19143. elif ln conf$$.file conf$$ 2>/dev/null; then
  19144. as_ln_s=ln
  19145. else
  19146. as_ln_s='cp -p'
  19147. fi
  19148. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  19149. rmdir conf$$.dir 2>/dev/null
  19150. if mkdir -p . 2>/dev/null; then
  19151. as_mkdir_p=:
  19152. else
  19153. test -d ./-p && rmdir ./-p
  19154. as_mkdir_p=false
  19155. fi
  19156. if test -x / >/dev/null 2>&1; then
  19157. as_test_x='test -x'
  19158. else
  19159. if ls -dL / >/dev/null 2>&1; then
  19160. as_ls_L_option=L
  19161. else
  19162. as_ls_L_option=
  19163. fi
  19164. as_test_x='
  19165. eval sh -c '\''
  19166. if test -d "$1"; then
  19167. test -d "$1/.";
  19168. else
  19169. case $1 in
  19170. -*)set "./$1";;
  19171. esac;
  19172. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  19173. ???[sx]*):;;*)false;;esac;fi
  19174. '\'' sh
  19175. '
  19176. fi
  19177. as_executable_p=$as_test_x
  19178. # Sed expression to map a string onto a valid CPP name.
  19179. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19180. # Sed expression to map a string onto a valid variable name.
  19181. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19182. exec 6>&1
  19183. # Save the log message, to keep $[0] and so on meaningful, and to
  19184. # report actual input values of CONFIG_FILES etc. instead of their
  19185. # values after options handling.
  19186. ac_log="
  19187. This file was extended by aria2c $as_me 0.14.0b, which was
  19188. generated by GNU Autoconf 2.61. Invocation command line was
  19189. CONFIG_FILES = $CONFIG_FILES
  19190. CONFIG_HEADERS = $CONFIG_HEADERS
  19191. CONFIG_LINKS = $CONFIG_LINKS
  19192. CONFIG_COMMANDS = $CONFIG_COMMANDS
  19193. $ $0 $@
  19194. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  19195. "
  19196. _ACEOF
  19197. cat >>$CONFIG_STATUS <<_ACEOF
  19198. # Files that config.status was made for.
  19199. config_files="$ac_config_files"
  19200. config_headers="$ac_config_headers"
  19201. config_commands="$ac_config_commands"
  19202. _ACEOF
  19203. cat >>$CONFIG_STATUS <<\_ACEOF
  19204. ac_cs_usage="\
  19205. \`$as_me' instantiates files from templates according to the
  19206. current configuration.
  19207. Usage: $0 [OPTIONS] [FILE]...
  19208. -h, --help print this help, then exit
  19209. -V, --version print version number and configuration settings, then exit
  19210. -q, --quiet do not print progress messages
  19211. -d, --debug don't remove temporary files
  19212. --recheck update $as_me by reconfiguring in the same conditions
  19213. --file=FILE[:TEMPLATE]
  19214. instantiate the configuration file FILE
  19215. --header=FILE[:TEMPLATE]
  19216. instantiate the configuration header FILE
  19217. Configuration files:
  19218. $config_files
  19219. Configuration headers:
  19220. $config_headers
  19221. Configuration commands:
  19222. $config_commands
  19223. Report bugs to <bug-autoconf@gnu.org>."
  19224. _ACEOF
  19225. cat >>$CONFIG_STATUS <<_ACEOF
  19226. ac_cs_version="\\
  19227. aria2c config.status 0.14.0b
  19228. configured by $0, generated by GNU Autoconf 2.61,
  19229. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  19230. Copyright (C) 2006 Free Software Foundation, Inc.
  19231. This config.status script is free software; the Free Software Foundation
  19232. gives unlimited permission to copy, distribute and modify it."
  19233. ac_pwd='$ac_pwd'
  19234. srcdir='$srcdir'
  19235. INSTALL='$INSTALL'
  19236. MKDIR_P='$MKDIR_P'
  19237. _ACEOF
  19238. cat >>$CONFIG_STATUS <<\_ACEOF
  19239. # If no file are specified by the user, then we need to provide default
  19240. # value. By we need to know if files were specified by the user.
  19241. ac_need_defaults=:
  19242. while test $# != 0
  19243. do
  19244. case $1 in
  19245. --*=*)
  19246. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  19247. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  19248. ac_shift=:
  19249. ;;
  19250. *)
  19251. ac_option=$1
  19252. ac_optarg=$2
  19253. ac_shift=shift
  19254. ;;
  19255. esac
  19256. case $ac_option in
  19257. # Handling of the options.
  19258. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19259. ac_cs_recheck=: ;;
  19260. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  19261. echo "$ac_cs_version"; exit ;;
  19262. --debug | --debu | --deb | --de | --d | -d )
  19263. debug=: ;;
  19264. --file | --fil | --fi | --f )
  19265. $ac_shift
  19266. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  19267. ac_need_defaults=false;;
  19268. --header | --heade | --head | --hea )
  19269. $ac_shift
  19270. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  19271. ac_need_defaults=false;;
  19272. --he | --h)
  19273. # Conflict between --help and --header
  19274. { echo "$as_me: error: ambiguous option: $1
  19275. Try \`$0 --help' for more information." >&2
  19276. { (exit 1); exit 1; }; };;
  19277. --help | --hel | -h )
  19278. echo "$ac_cs_usage"; exit ;;
  19279. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19280. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19281. ac_cs_silent=: ;;
  19282. # This is an error.
  19283. -*) { echo "$as_me: error: unrecognized option: $1
  19284. Try \`$0 --help' for more information." >&2
  19285. { (exit 1); exit 1; }; } ;;
  19286. *) ac_config_targets="$ac_config_targets $1"
  19287. ac_need_defaults=false ;;
  19288. esac
  19289. shift
  19290. done
  19291. ac_configure_extra_args=
  19292. if $ac_cs_silent; then
  19293. exec 6>/dev/null
  19294. ac_configure_extra_args="$ac_configure_extra_args --silent"
  19295. fi
  19296. _ACEOF
  19297. cat >>$CONFIG_STATUS <<_ACEOF
  19298. if \$ac_cs_recheck; then
  19299. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  19300. CONFIG_SHELL=$SHELL
  19301. export CONFIG_SHELL
  19302. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19303. fi
  19304. _ACEOF
  19305. cat >>$CONFIG_STATUS <<\_ACEOF
  19306. exec 5>>config.log
  19307. {
  19308. echo
  19309. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19310. ## Running $as_me. ##
  19311. _ASBOX
  19312. echo "$ac_log"
  19313. } >&5
  19314. _ACEOF
  19315. cat >>$CONFIG_STATUS <<_ACEOF
  19316. #
  19317. # INIT-COMMANDS
  19318. #
  19319. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19320. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  19321. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  19322. # from automake < 1.5.
  19323. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  19324. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  19325. LINGUAS="${LINGUAS-%UNSET%}"
  19326. _ACEOF
  19327. cat >>$CONFIG_STATUS <<\_ACEOF
  19328. # Handling of arguments.
  19329. for ac_config_target in $ac_config_targets
  19330. do
  19331. case $ac_config_target in
  19332. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19333. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19334. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  19335. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19336. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19337. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  19338. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  19339. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  19340. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  19341. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  19342. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  19343. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  19344. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  19345. { (exit 1); exit 1; }; };;
  19346. esac
  19347. done
  19348. # If the user did not use the arguments to specify the items to instantiate,
  19349. # then the envvar interface is used. Set only those that are not.
  19350. # We use the long form for the default assignment because of an extremely
  19351. # bizarre bug on SunOS 4.1.3.
  19352. if $ac_need_defaults; then
  19353. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19354. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19355. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19356. fi
  19357. # Have a temporary directory for convenience. Make it in the build tree
  19358. # simply because there is no reason against having it here, and in addition,
  19359. # creating and moving files from /tmp can sometimes cause problems.
  19360. # Hook for its removal unless debugging.
  19361. # Note that there is a small window in which the directory will not be cleaned:
  19362. # after its creation but before its name has been assigned to `$tmp'.
  19363. $debug ||
  19364. {
  19365. tmp=
  19366. trap 'exit_status=$?
  19367. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  19368. ' 0
  19369. trap '{ (exit 1); exit 1; }' 1 2 13 15
  19370. }
  19371. # Create a (secure) tmp directory for tmp files.
  19372. {
  19373. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19374. test -n "$tmp" && test -d "$tmp"
  19375. } ||
  19376. {
  19377. tmp=./conf$$-$RANDOM
  19378. (umask 077 && mkdir "$tmp")
  19379. } ||
  19380. {
  19381. echo "$me: cannot create a temporary directory in ." >&2
  19382. { (exit 1); exit 1; }
  19383. }
  19384. #
  19385. # Set up the sed scripts for CONFIG_FILES section.
  19386. #
  19387. # No need to generate the scripts if there are no CONFIG_FILES.
  19388. # This happens for instance when ./config.status config.h
  19389. if test -n "$CONFIG_FILES"; then
  19390. _ACEOF
  19391. ac_delim='%!_!# '
  19392. for ac_last_try in false false false false false :; do
  19393. cat >conf$$subs.sed <<_ACEOF
  19394. SHELL!$SHELL$ac_delim
  19395. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  19396. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  19397. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  19398. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  19399. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  19400. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  19401. exec_prefix!$exec_prefix$ac_delim
  19402. prefix!$prefix$ac_delim
  19403. program_transform_name!$program_transform_name$ac_delim
  19404. bindir!$bindir$ac_delim
  19405. sbindir!$sbindir$ac_delim
  19406. libexecdir!$libexecdir$ac_delim
  19407. datarootdir!$datarootdir$ac_delim
  19408. datadir!$datadir$ac_delim
  19409. sysconfdir!$sysconfdir$ac_delim
  19410. sharedstatedir!$sharedstatedir$ac_delim
  19411. localstatedir!$localstatedir$ac_delim
  19412. includedir!$includedir$ac_delim
  19413. oldincludedir!$oldincludedir$ac_delim
  19414. docdir!$docdir$ac_delim
  19415. infodir!$infodir$ac_delim
  19416. htmldir!$htmldir$ac_delim
  19417. dvidir!$dvidir$ac_delim
  19418. pdfdir!$pdfdir$ac_delim
  19419. psdir!$psdir$ac_delim
  19420. libdir!$libdir$ac_delim
  19421. localedir!$localedir$ac_delim
  19422. mandir!$mandir$ac_delim
  19423. DEFS!$DEFS$ac_delim
  19424. ECHO_C!$ECHO_C$ac_delim
  19425. ECHO_N!$ECHO_N$ac_delim
  19426. ECHO_T!$ECHO_T$ac_delim
  19427. LIBS!$LIBS$ac_delim
  19428. build_alias!$build_alias$ac_delim
  19429. host_alias!$host_alias$ac_delim
  19430. target_alias!$target_alias$ac_delim
  19431. build!$build$ac_delim
  19432. build_cpu!$build_cpu$ac_delim
  19433. build_vendor!$build_vendor$ac_delim
  19434. build_os!$build_os$ac_delim
  19435. host!$host$ac_delim
  19436. host_cpu!$host_cpu$ac_delim
  19437. host_vendor!$host_vendor$ac_delim
  19438. host_os!$host_os$ac_delim
  19439. target!$target$ac_delim
  19440. target_cpu!$target_cpu$ac_delim
  19441. target_vendor!$target_vendor$ac_delim
  19442. target_os!$target_os$ac_delim
  19443. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  19444. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  19445. INSTALL_DATA!$INSTALL_DATA$ac_delim
  19446. am__isrc!$am__isrc$ac_delim
  19447. CYGPATH_W!$CYGPATH_W$ac_delim
  19448. PACKAGE!$PACKAGE$ac_delim
  19449. VERSION!$VERSION$ac_delim
  19450. ACLOCAL!$ACLOCAL$ac_delim
  19451. AUTOCONF!$AUTOCONF$ac_delim
  19452. AUTOMAKE!$AUTOMAKE$ac_delim
  19453. AUTOHEADER!$AUTOHEADER$ac_delim
  19454. MAKEINFO!$MAKEINFO$ac_delim
  19455. install_sh!$install_sh$ac_delim
  19456. STRIP!$STRIP$ac_delim
  19457. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  19458. mkdir_p!$mkdir_p$ac_delim
  19459. AWK!$AWK$ac_delim
  19460. SET_MAKE!$SET_MAKE$ac_delim
  19461. am__leading_dot!$am__leading_dot$ac_delim
  19462. AMTAR!$AMTAR$ac_delim
  19463. am__tar!$am__tar$ac_delim
  19464. am__untar!$am__untar$ac_delim
  19465. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  19466. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  19467. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  19468. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  19469. CXX!$CXX$ac_delim
  19470. CXXFLAGS!$CXXFLAGS$ac_delim
  19471. LDFLAGS!$LDFLAGS$ac_delim
  19472. CPPFLAGS!$CPPFLAGS$ac_delim
  19473. ac_ct_CXX!$ac_ct_CXX$ac_delim
  19474. EXEEXT!$EXEEXT$ac_delim
  19475. OBJEXT!$OBJEXT$ac_delim
  19476. DEPDIR!$DEPDIR$ac_delim
  19477. am__include!$am__include$ac_delim
  19478. am__quote!$am__quote$ac_delim
  19479. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  19480. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  19481. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  19482. CXXDEPMODE!$CXXDEPMODE$ac_delim
  19483. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  19484. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  19485. CC!$CC$ac_delim
  19486. CFLAGS!$CFLAGS$ac_delim
  19487. ac_ct_CC!$ac_ct_CC$ac_delim
  19488. CCDEPMODE!$CCDEPMODE$ac_delim
  19489. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  19490. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  19491. _ACEOF
  19492. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  19493. break
  19494. elif $ac_last_try; then
  19495. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19496. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19497. { (exit 1); exit 1; }; }
  19498. else
  19499. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19500. fi
  19501. done
  19502. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19503. if test -n "$ac_eof"; then
  19504. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19505. ac_eof=`expr $ac_eof + 1`
  19506. fi
  19507. cat >>$CONFIG_STATUS <<_ACEOF
  19508. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  19509. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19510. _ACEOF
  19511. sed '
  19512. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19513. s/^/s,@/; s/!/@,|#_!!_#|/
  19514. :n
  19515. t n
  19516. s/'"$ac_delim"'$/,g/; t
  19517. s/$/\\/; p
  19518. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19519. ' >>$CONFIG_STATUS <conf$$subs.sed
  19520. rm -f conf$$subs.sed
  19521. cat >>$CONFIG_STATUS <<_ACEOF
  19522. CEOF$ac_eof
  19523. _ACEOF
  19524. ac_delim='%!_!# '
  19525. for ac_last_try in false false false false false :; do
  19526. cat >conf$$subs.sed <<_ACEOF
  19527. RANLIB!$RANLIB$ac_delim
  19528. YACC!$YACC$ac_delim
  19529. YFLAGS!$YFLAGS$ac_delim
  19530. CXXCPP!$CXXCPP$ac_delim
  19531. GREP!$GREP$ac_delim
  19532. EGREP!$EGREP$ac_delim
  19533. XML2_CONFIG!$XML2_CONFIG$ac_delim
  19534. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  19535. XML_LIBS!$XML_LIBS$ac_delim
  19536. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  19537. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  19538. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  19539. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  19540. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  19541. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  19542. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  19543. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  19544. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  19545. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  19546. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  19547. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  19548. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  19549. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  19550. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  19551. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  19552. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  19553. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  19554. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  19555. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  19556. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  19557. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  19558. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  19559. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  19560. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  19561. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  19562. ALLOCA!$ALLOCA$ac_delim
  19563. USE_NLS!$USE_NLS$ac_delim
  19564. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  19565. MSGFMT!$MSGFMT$ac_delim
  19566. GMSGFMT!$GMSGFMT$ac_delim
  19567. MSGFMT_015!$MSGFMT_015$ac_delim
  19568. GMSGFMT_015!$GMSGFMT_015$ac_delim
  19569. XGETTEXT!$XGETTEXT$ac_delim
  19570. XGETTEXT_015!$XGETTEXT_015$ac_delim
  19571. MSGMERGE!$MSGMERGE$ac_delim
  19572. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  19573. GLIBC2!$GLIBC2$ac_delim
  19574. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  19575. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  19576. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  19577. LIBPTH!$LIBPTH$ac_delim
  19578. LTLIBPTH!$LTLIBPTH$ac_delim
  19579. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  19580. LIBTHREAD!$LIBTHREAD$ac_delim
  19581. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  19582. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  19583. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  19584. LIBICONV!$LIBICONV$ac_delim
  19585. LTLIBICONV!$LTLIBICONV$ac_delim
  19586. INTLBISON!$INTLBISON$ac_delim
  19587. GLIBC21!$GLIBC21$ac_delim
  19588. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  19589. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  19590. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  19591. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  19592. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  19593. WOE32DLL!$WOE32DLL$ac_delim
  19594. WOE32!$WOE32$ac_delim
  19595. WINDRES!$WINDRES$ac_delim
  19596. LTLIBC!$LTLIBC$ac_delim
  19597. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  19598. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  19599. CATOBJEXT!$CATOBJEXT$ac_delim
  19600. DATADIRNAME!$DATADIRNAME$ac_delim
  19601. INSTOBJEXT!$INSTOBJEXT$ac_delim
  19602. GENCAT!$GENCAT$ac_delim
  19603. INTLOBJS!$INTLOBJS$ac_delim
  19604. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  19605. INTLLIBS!$INTLLIBS$ac_delim
  19606. LIBINTL!$LIBINTL$ac_delim
  19607. LTLIBINTL!$LTLIBINTL$ac_delim
  19608. POSUB!$POSUB$ac_delim
  19609. LIBOBJS!$LIBOBJS$ac_delim
  19610. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  19611. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  19612. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  19613. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  19614. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  19615. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  19616. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  19617. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  19618. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  19619. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  19620. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  19621. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  19622. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  19623. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  19624. _ACEOF
  19625. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  19626. break
  19627. elif $ac_last_try; then
  19628. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19629. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19630. { (exit 1); exit 1; }; }
  19631. else
  19632. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19633. fi
  19634. done
  19635. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19636. if test -n "$ac_eof"; then
  19637. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19638. ac_eof=`expr $ac_eof + 1`
  19639. fi
  19640. cat >>$CONFIG_STATUS <<_ACEOF
  19641. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  19642. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19643. _ACEOF
  19644. sed '
  19645. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19646. s/^/s,@/; s/!/@,|#_!!_#|/
  19647. :n
  19648. t n
  19649. s/'"$ac_delim"'$/,g/; t
  19650. s/$/\\/; p
  19651. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19652. ' >>$CONFIG_STATUS <conf$$subs.sed
  19653. rm -f conf$$subs.sed
  19654. cat >>$CONFIG_STATUS <<_ACEOF
  19655. CEOF$ac_eof
  19656. _ACEOF
  19657. ac_delim='%!_!# '
  19658. for ac_last_try in false false false false false :; do
  19659. cat >conf$$subs.sed <<_ACEOF
  19660. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  19661. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  19662. LTLIBOBJS!$LTLIBOBJS$ac_delim
  19663. _ACEOF
  19664. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
  19665. break
  19666. elif $ac_last_try; then
  19667. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19668. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19669. { (exit 1); exit 1; }; }
  19670. else
  19671. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19672. fi
  19673. done
  19674. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  19675. if test -n "$ac_eof"; then
  19676. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  19677. ac_eof=`expr $ac_eof + 1`
  19678. fi
  19679. cat >>$CONFIG_STATUS <<_ACEOF
  19680. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  19681. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  19682. _ACEOF
  19683. sed '
  19684. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  19685. s/^/s,@/; s/!/@,|#_!!_#|/
  19686. :n
  19687. t n
  19688. s/'"$ac_delim"'$/,g/; t
  19689. s/$/\\/; p
  19690. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  19691. ' >>$CONFIG_STATUS <conf$$subs.sed
  19692. rm -f conf$$subs.sed
  19693. cat >>$CONFIG_STATUS <<_ACEOF
  19694. :end
  19695. s/|#_!!_#|//g
  19696. CEOF$ac_eof
  19697. _ACEOF
  19698. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  19699. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  19700. # trailing colons and then remove the whole line if VPATH becomes empty
  19701. # (actually we leave an empty line to preserve line numbers).
  19702. if test "x$srcdir" = x.; then
  19703. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  19704. s/:*\$(srcdir):*/:/
  19705. s/:*\${srcdir}:*/:/
  19706. s/:*@srcdir@:*/:/
  19707. s/^\([^=]*=[ ]*\):*/\1/
  19708. s/:*$//
  19709. s/^[^=]*=[ ]*$//
  19710. }'
  19711. fi
  19712. cat >>$CONFIG_STATUS <<\_ACEOF
  19713. fi # test -n "$CONFIG_FILES"
  19714. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  19715. do
  19716. case $ac_tag in
  19717. :[FHLC]) ac_mode=$ac_tag; continue;;
  19718. esac
  19719. case $ac_mode$ac_tag in
  19720. :[FHL]*:*);;
  19721. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  19722. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  19723. { (exit 1); exit 1; }; };;
  19724. :[FH]-) ac_tag=-:-;;
  19725. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19726. esac
  19727. ac_save_IFS=$IFS
  19728. IFS=:
  19729. set x $ac_tag
  19730. IFS=$ac_save_IFS
  19731. shift
  19732. ac_file=$1
  19733. shift
  19734. case $ac_mode in
  19735. :L) ac_source=$1;;
  19736. :[FH])
  19737. ac_file_inputs=
  19738. for ac_f
  19739. do
  19740. case $ac_f in
  19741. -) ac_f="$tmp/stdin";;
  19742. *) # Look for the file first in the build tree, then in the source tree
  19743. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19744. # because $ac_f cannot contain `:'.
  19745. test -f "$ac_f" ||
  19746. case $ac_f in
  19747. [\\/$]*) false;;
  19748. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19749. esac ||
  19750. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  19751. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  19752. { (exit 1); exit 1; }; };;
  19753. esac
  19754. ac_file_inputs="$ac_file_inputs $ac_f"
  19755. done
  19756. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19757. # use $as_me), people would be surprised to read:
  19758. # /* config.h. Generated by config.status. */
  19759. configure_input="Generated from "`IFS=:
  19760. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  19761. if test x"$ac_file" != x-; then
  19762. configure_input="$ac_file. $configure_input"
  19763. { echo "$as_me:$LINENO: creating $ac_file" >&5
  19764. echo "$as_me: creating $ac_file" >&6;}
  19765. fi
  19766. case $ac_tag in
  19767. *:-:* | *:-) cat >"$tmp/stdin";;
  19768. esac
  19769. ;;
  19770. esac
  19771. ac_dir=`$as_dirname -- "$ac_file" ||
  19772. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19773. X"$ac_file" : 'X\(//\)[^/]' \| \
  19774. X"$ac_file" : 'X\(//\)$' \| \
  19775. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19776. echo X"$ac_file" |
  19777. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19778. s//\1/
  19779. q
  19780. }
  19781. /^X\(\/\/\)[^/].*/{
  19782. s//\1/
  19783. q
  19784. }
  19785. /^X\(\/\/\)$/{
  19786. s//\1/
  19787. q
  19788. }
  19789. /^X\(\/\).*/{
  19790. s//\1/
  19791. q
  19792. }
  19793. s/.*/./; q'`
  19794. { as_dir="$ac_dir"
  19795. case $as_dir in #(
  19796. -*) as_dir=./$as_dir;;
  19797. esac
  19798. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  19799. as_dirs=
  19800. while :; do
  19801. case $as_dir in #(
  19802. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  19803. *) as_qdir=$as_dir;;
  19804. esac
  19805. as_dirs="'$as_qdir' $as_dirs"
  19806. as_dir=`$as_dirname -- "$as_dir" ||
  19807. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19808. X"$as_dir" : 'X\(//\)[^/]' \| \
  19809. X"$as_dir" : 'X\(//\)$' \| \
  19810. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  19811. echo X"$as_dir" |
  19812. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19813. s//\1/
  19814. q
  19815. }
  19816. /^X\(\/\/\)[^/].*/{
  19817. s//\1/
  19818. q
  19819. }
  19820. /^X\(\/\/\)$/{
  19821. s//\1/
  19822. q
  19823. }
  19824. /^X\(\/\).*/{
  19825. s//\1/
  19826. q
  19827. }
  19828. s/.*/./; q'`
  19829. test -d "$as_dir" && break
  19830. done
  19831. test -z "$as_dirs" || eval "mkdir $as_dirs"
  19832. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  19833. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  19834. { (exit 1); exit 1; }; }; }
  19835. ac_builddir=.
  19836. case "$ac_dir" in
  19837. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19838. *)
  19839. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  19840. # A ".." for each directory in $ac_dir_suffix.
  19841. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  19842. case $ac_top_builddir_sub in
  19843. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19844. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19845. esac ;;
  19846. esac
  19847. ac_abs_top_builddir=$ac_pwd
  19848. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19849. # for backward compatibility:
  19850. ac_top_builddir=$ac_top_build_prefix
  19851. case $srcdir in
  19852. .) # We are building in place.
  19853. ac_srcdir=.
  19854. ac_top_srcdir=$ac_top_builddir_sub
  19855. ac_abs_top_srcdir=$ac_pwd ;;
  19856. [\\/]* | ?:[\\/]* ) # Absolute name.
  19857. ac_srcdir=$srcdir$ac_dir_suffix;
  19858. ac_top_srcdir=$srcdir
  19859. ac_abs_top_srcdir=$srcdir ;;
  19860. *) # Relative name.
  19861. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19862. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19863. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19864. esac
  19865. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19866. case $ac_mode in
  19867. :F)
  19868. #
  19869. # CONFIG_FILE
  19870. #
  19871. case $INSTALL in
  19872. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19873. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19874. esac
  19875. ac_MKDIR_P=$MKDIR_P
  19876. case $MKDIR_P in
  19877. [\\/$]* | ?:[\\/]* ) ;;
  19878. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19879. esac
  19880. _ACEOF
  19881. cat >>$CONFIG_STATUS <<\_ACEOF
  19882. # If the template does not know about datarootdir, expand it.
  19883. # FIXME: This hack should be removed a few years after 2.60.
  19884. ac_datarootdir_hack=; ac_datarootdir_seen=
  19885. case `sed -n '/datarootdir/ {
  19886. p
  19887. q
  19888. }
  19889. /@datadir@/p
  19890. /@docdir@/p
  19891. /@infodir@/p
  19892. /@localedir@/p
  19893. /@mandir@/p
  19894. ' $ac_file_inputs` in
  19895. *datarootdir*) ac_datarootdir_seen=yes;;
  19896. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19897. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19898. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19899. _ACEOF
  19900. cat >>$CONFIG_STATUS <<_ACEOF
  19901. ac_datarootdir_hack='
  19902. s&@datadir@&$datadir&g
  19903. s&@docdir@&$docdir&g
  19904. s&@infodir@&$infodir&g
  19905. s&@localedir@&$localedir&g
  19906. s&@mandir@&$mandir&g
  19907. s&\\\${datarootdir}&$datarootdir&g' ;;
  19908. esac
  19909. _ACEOF
  19910. # Neutralize VPATH when `$srcdir' = `.'.
  19911. # Shell code in configure.ac might set extrasub.
  19912. # FIXME: do we really want to maintain this feature?
  19913. cat >>$CONFIG_STATUS <<_ACEOF
  19914. sed "$ac_vpsub
  19915. $extrasub
  19916. _ACEOF
  19917. cat >>$CONFIG_STATUS <<\_ACEOF
  19918. :t
  19919. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19920. s&@configure_input@&$configure_input&;t t
  19921. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19922. s&@srcdir@&$ac_srcdir&;t t
  19923. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19924. s&@top_srcdir@&$ac_top_srcdir&;t t
  19925. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19926. s&@builddir@&$ac_builddir&;t t
  19927. s&@abs_builddir@&$ac_abs_builddir&;t t
  19928. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19929. s&@INSTALL@&$ac_INSTALL&;t t
  19930. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19931. $ac_datarootdir_hack
  19932. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  19933. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19934. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  19935. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  19936. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19937. which seems to be undefined. Please make sure it is defined." >&5
  19938. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19939. which seems to be undefined. Please make sure it is defined." >&2;}
  19940. rm -f "$tmp/stdin"
  19941. case $ac_file in
  19942. -) cat "$tmp/out"; rm -f "$tmp/out";;
  19943. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  19944. esac
  19945. ;;
  19946. :H)
  19947. #
  19948. # CONFIG_HEADER
  19949. #
  19950. _ACEOF
  19951. # Transform confdefs.h into a sed script `conftest.defines', that
  19952. # substitutes the proper values into config.h.in to produce config.h.
  19953. rm -f conftest.defines conftest.tail
  19954. # First, append a space to every undef/define line, to ease matching.
  19955. echo 's/$/ /' >conftest.defines
  19956. # Then, protect against being on the right side of a sed subst, or in
  19957. # an unquoted here document, in config.status. If some macros were
  19958. # called several times there might be several #defines for the same
  19959. # symbol, which is useless. But do not sort them, since the last
  19960. # AC_DEFINE must be honored.
  19961. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19962. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  19963. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  19964. # PARAMS is the parameter list in the macro definition--in most cases, it's
  19965. # just an empty string.
  19966. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  19967. ac_dB='\\)[ (].*,\\1define\\2'
  19968. ac_dC=' '
  19969. ac_dD=' ,'
  19970. uniq confdefs.h |
  19971. sed -n '
  19972. t rset
  19973. :rset
  19974. s/^[ ]*#[ ]*define[ ][ ]*//
  19975. t ok
  19976. d
  19977. :ok
  19978. s/[\\&,]/\\&/g
  19979. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  19980. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  19981. ' >>conftest.defines
  19982. # Remove the space that was appended to ease matching.
  19983. # Then replace #undef with comments. This is necessary, for
  19984. # example, in the case of _POSIX_SOURCE, which is predefined and required
  19985. # on some systems where configure will not decide to define it.
  19986. # (The regexp can be short, since the line contains either #define or #undef.)
  19987. echo 's/ $//
  19988. s,^[ #]*u.*,/* & */,' >>conftest.defines
  19989. # Break up conftest.defines:
  19990. ac_max_sed_lines=50
  19991. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  19992. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  19993. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  19994. # et cetera.
  19995. ac_in='$ac_file_inputs'
  19996. ac_out='"$tmp/out1"'
  19997. ac_nxt='"$tmp/out2"'
  19998. while :
  19999. do
  20000. # Write a here document:
  20001. cat >>$CONFIG_STATUS <<_ACEOF
  20002. # First, check the format of the line:
  20003. cat >"\$tmp/defines.sed" <<\\CEOF
  20004. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  20005. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  20006. b
  20007. :def
  20008. _ACEOF
  20009. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  20010. echo 'CEOF
  20011. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  20012. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  20013. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  20014. grep . conftest.tail >/dev/null || break
  20015. rm -f conftest.defines
  20016. mv conftest.tail conftest.defines
  20017. done
  20018. rm -f conftest.defines conftest.tail
  20019. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  20020. cat >>$CONFIG_STATUS <<\_ACEOF
  20021. if test x"$ac_file" != x-; then
  20022. echo "/* $configure_input */" >"$tmp/config.h"
  20023. cat "$ac_result" >>"$tmp/config.h"
  20024. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  20025. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20026. echo "$as_me: $ac_file is unchanged" >&6;}
  20027. else
  20028. rm -f $ac_file
  20029. mv "$tmp/config.h" $ac_file
  20030. fi
  20031. else
  20032. echo "/* $configure_input */"
  20033. cat "$ac_result"
  20034. fi
  20035. rm -f "$tmp/out12"
  20036. # Compute $ac_file's index in $config_headers.
  20037. _am_arg=$ac_file
  20038. _am_stamp_count=1
  20039. for _am_header in $config_headers :; do
  20040. case $_am_header in
  20041. $_am_arg | $_am_arg:* )
  20042. break ;;
  20043. * )
  20044. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20045. esac
  20046. done
  20047. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  20048. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20049. X"$_am_arg" : 'X\(//\)[^/]' \| \
  20050. X"$_am_arg" : 'X\(//\)$' \| \
  20051. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  20052. echo X"$_am_arg" |
  20053. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20054. s//\1/
  20055. q
  20056. }
  20057. /^X\(\/\/\)[^/].*/{
  20058. s//\1/
  20059. q
  20060. }
  20061. /^X\(\/\/\)$/{
  20062. s//\1/
  20063. q
  20064. }
  20065. /^X\(\/\).*/{
  20066. s//\1/
  20067. q
  20068. }
  20069. s/.*/./; q'`/stamp-h$_am_stamp_count
  20070. ;;
  20071. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  20072. echo "$as_me: executing $ac_file commands" >&6;}
  20073. ;;
  20074. esac
  20075. case $ac_file$ac_mode in
  20076. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20077. # Strip MF so we end up with the name of the file.
  20078. mf=`echo "$mf" | sed -e 's/:.*$//'`
  20079. # Check whether this is an Automake generated Makefile or not.
  20080. # We used to match only the files named `Makefile.in', but
  20081. # some people rename them; so instead we look at the file content.
  20082. # Grep'ing the first line is not enough: some people post-process
  20083. # each Makefile.in and add a new line on top of each file to say so.
  20084. # Grep'ing the whole file is not good either: AIX grep has a line
  20085. # limit of 2048, but all sed's we know have understand at least 4000.
  20086. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  20087. dirpart=`$as_dirname -- "$mf" ||
  20088. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20089. X"$mf" : 'X\(//\)[^/]' \| \
  20090. X"$mf" : 'X\(//\)$' \| \
  20091. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  20092. echo X"$mf" |
  20093. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20094. s//\1/
  20095. q
  20096. }
  20097. /^X\(\/\/\)[^/].*/{
  20098. s//\1/
  20099. q
  20100. }
  20101. /^X\(\/\/\)$/{
  20102. s//\1/
  20103. q
  20104. }
  20105. /^X\(\/\).*/{
  20106. s//\1/
  20107. q
  20108. }
  20109. s/.*/./; q'`
  20110. else
  20111. continue
  20112. fi
  20113. # Extract the definition of DEPDIR, am__include, and am__quote
  20114. # from the Makefile without running `make'.
  20115. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20116. test -z "$DEPDIR" && continue
  20117. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  20118. test -z "am__include" && continue
  20119. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  20120. # When using ansi2knr, U may be empty or an underscore; expand it
  20121. U=`sed -n 's/^U = //p' < "$mf"`
  20122. # Find all dependency output files, they are included files with
  20123. # $(DEPDIR) in their names. We invoke sed twice because it is the
  20124. # simplest approach to changing $(DEPDIR) to its actual value in the
  20125. # expansion.
  20126. for file in `sed -n "
  20127. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  20128. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20129. # Make sure the directory exists.
  20130. test -f "$dirpart/$file" && continue
  20131. fdir=`$as_dirname -- "$file" ||
  20132. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20133. X"$file" : 'X\(//\)[^/]' \| \
  20134. X"$file" : 'X\(//\)$' \| \
  20135. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  20136. echo X"$file" |
  20137. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20138. s//\1/
  20139. q
  20140. }
  20141. /^X\(\/\/\)[^/].*/{
  20142. s//\1/
  20143. q
  20144. }
  20145. /^X\(\/\/\)$/{
  20146. s//\1/
  20147. q
  20148. }
  20149. /^X\(\/\).*/{
  20150. s//\1/
  20151. q
  20152. }
  20153. s/.*/./; q'`
  20154. { as_dir=$dirpart/$fdir
  20155. case $as_dir in #(
  20156. -*) as_dir=./$as_dir;;
  20157. esac
  20158. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  20159. as_dirs=
  20160. while :; do
  20161. case $as_dir in #(
  20162. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  20163. *) as_qdir=$as_dir;;
  20164. esac
  20165. as_dirs="'$as_qdir' $as_dirs"
  20166. as_dir=`$as_dirname -- "$as_dir" ||
  20167. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20168. X"$as_dir" : 'X\(//\)[^/]' \| \
  20169. X"$as_dir" : 'X\(//\)$' \| \
  20170. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20171. echo X"$as_dir" |
  20172. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20173. s//\1/
  20174. q
  20175. }
  20176. /^X\(\/\/\)[^/].*/{
  20177. s//\1/
  20178. q
  20179. }
  20180. /^X\(\/\/\)$/{
  20181. s//\1/
  20182. q
  20183. }
  20184. /^X\(\/\).*/{
  20185. s//\1/
  20186. q
  20187. }
  20188. s/.*/./; q'`
  20189. test -d "$as_dir" && break
  20190. done
  20191. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20192. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20193. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20194. { (exit 1); exit 1; }; }; }
  20195. # echo "creating $dirpart/$file"
  20196. echo '# dummy' > "$dirpart/$file"
  20197. done
  20198. done
  20199. ;;
  20200. "po-directories":C)
  20201. for ac_file in $CONFIG_FILES; do
  20202. # Support "outfile[:infile[:infile...]]"
  20203. case "$ac_file" in
  20204. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  20205. esac
  20206. # PO directories have a Makefile.in generated from Makefile.in.in.
  20207. case "$ac_file" in */Makefile.in)
  20208. # Adjust a relative srcdir.
  20209. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  20210. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  20211. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  20212. # In autoconf-2.13 it is called $ac_given_srcdir.
  20213. # In autoconf-2.50 it is called $srcdir.
  20214. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  20215. case "$ac_given_srcdir" in
  20216. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  20217. /*) top_srcdir="$ac_given_srcdir" ;;
  20218. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  20219. esac
  20220. # Treat a directory as a PO directory if and only if it has a
  20221. # POTFILES.in file. This allows packages to have multiple PO
  20222. # directories under different names or in different locations.
  20223. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  20224. rm -f "$ac_dir/POTFILES"
  20225. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  20226. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  20227. POMAKEFILEDEPS="POTFILES.in"
  20228. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  20229. # on $ac_dir but don't depend on user-specified configuration
  20230. # parameters.
  20231. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  20232. # The LINGUAS file contains the set of available languages.
  20233. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  20234. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  20235. fi
  20236. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  20237. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20238. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  20239. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  20240. else
  20241. # The set of available languages was given in configure.in.
  20242. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  20243. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  20244. fi
  20245. # Compute POFILES
  20246. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  20247. # Compute UPDATEPOFILES
  20248. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  20249. # Compute DUMMYPOFILES
  20250. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  20251. # Compute GMOFILES
  20252. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  20253. case "$ac_given_srcdir" in
  20254. .) srcdirpre= ;;
  20255. *) srcdirpre='$(srcdir)/' ;;
  20256. esac
  20257. POFILES=
  20258. UPDATEPOFILES=
  20259. DUMMYPOFILES=
  20260. GMOFILES=
  20261. for lang in $ALL_LINGUAS; do
  20262. POFILES="$POFILES $srcdirpre$lang.po"
  20263. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  20264. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  20265. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  20266. done
  20267. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  20268. # environment variable.
  20269. INST_LINGUAS=
  20270. if test -n "$ALL_LINGUAS"; then
  20271. for presentlang in $ALL_LINGUAS; do
  20272. useit=no
  20273. if test "%UNSET%" != "$LINGUAS"; then
  20274. desiredlanguages="$LINGUAS"
  20275. else
  20276. desiredlanguages="$ALL_LINGUAS"
  20277. fi
  20278. for desiredlang in $desiredlanguages; do
  20279. # Use the presentlang catalog if desiredlang is
  20280. # a. equal to presentlang, or
  20281. # b. a variant of presentlang (because in this case,
  20282. # presentlang can be used as a fallback for messages
  20283. # which are not translated in the desiredlang catalog).
  20284. case "$desiredlang" in
  20285. "$presentlang"*) useit=yes;;
  20286. esac
  20287. done
  20288. if test $useit = yes; then
  20289. INST_LINGUAS="$INST_LINGUAS $presentlang"
  20290. fi
  20291. done
  20292. fi
  20293. CATALOGS=
  20294. if test -n "$INST_LINGUAS"; then
  20295. for lang in $INST_LINGUAS; do
  20296. CATALOGS="$CATALOGS $lang.gmo"
  20297. done
  20298. fi
  20299. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  20300. 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"
  20301. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  20302. if test -f "$f"; then
  20303. case "$f" in
  20304. *.orig | *.bak | *~) ;;
  20305. *) cat "$f" >> "$ac_dir/Makefile" ;;
  20306. esac
  20307. fi
  20308. done
  20309. fi
  20310. ;;
  20311. esac
  20312. done ;;
  20313. esac
  20314. done # for ac_tag
  20315. { (exit 0); exit 0; }
  20316. _ACEOF
  20317. chmod +x $CONFIG_STATUS
  20318. ac_clean_files=$ac_clean_files_save
  20319. # configure is writing to config.log, and then calls config.status.
  20320. # config.status does its own redirection, appending to config.log.
  20321. # Unfortunately, on DOS this fails, as config.log is still kept open
  20322. # by configure, so config.status won't be able to write to it; its
  20323. # output is simply discarded. So we exec the FD to /dev/null,
  20324. # effectively closing config.log, so it can be properly (re)opened and
  20325. # appended to by config.status. When coming back to configure, we
  20326. # need to make the FD available again.
  20327. if test "$no_create" != yes; then
  20328. ac_cs_success=:
  20329. ac_config_status_args=
  20330. test "$silent" = yes &&
  20331. ac_config_status_args="$ac_config_status_args --quiet"
  20332. exec 5>/dev/null
  20333. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20334. exec 5>>config.log
  20335. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20336. # would make configure fail if this is the last instruction.
  20337. $ac_cs_success || { (exit 1); exit 1; }
  20338. fi
  20339. echo " "
  20340. echo "Build: $build"
  20341. echo "Target: $target"
  20342. echo "Install prefix: $prefix"
  20343. echo "CFLAGS: $CFLAGS"
  20344. echo "CPPFLAGS: $CPPFLAGS"
  20345. echo "LDFLAGS: $LDFLAGS"
  20346. echo "LIBS: $LIBS"
  20347. echo "GnuTLS: $have_libgnutls"
  20348. echo "OpenSSL: $have_openssl"
  20349. echo "LibXML2: $have_libxml2"
  20350. echo "LibExpat: $have_libexpat"
  20351. echo "LibAres: $have_libares"
  20352. echo "LibCares: $have_libcares"
  20353. echo "Bittorrent: $enable_bittorrent"
  20354. echo "Metalink: $enable_metalink"