configure 440 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.11.2.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.11.2'
  496. PACKAGE_STRING='aria2c 0.11.2'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. ac_subst_vars='SHELL
  535. PATH_SEPARATOR
  536. PACKAGE_NAME
  537. PACKAGE_TARNAME
  538. PACKAGE_VERSION
  539. PACKAGE_STRING
  540. PACKAGE_BUGREPORT
  541. exec_prefix
  542. prefix
  543. program_transform_name
  544. bindir
  545. sbindir
  546. libexecdir
  547. datarootdir
  548. datadir
  549. sysconfdir
  550. sharedstatedir
  551. localstatedir
  552. includedir
  553. oldincludedir
  554. docdir
  555. infodir
  556. htmldir
  557. dvidir
  558. pdfdir
  559. psdir
  560. libdir
  561. localedir
  562. mandir
  563. DEFS
  564. ECHO_C
  565. ECHO_N
  566. ECHO_T
  567. LIBS
  568. build_alias
  569. host_alias
  570. target_alias
  571. build
  572. build_cpu
  573. build_vendor
  574. build_os
  575. host
  576. host_cpu
  577. host_vendor
  578. host_os
  579. target
  580. target_cpu
  581. target_vendor
  582. target_os
  583. INSTALL_PROGRAM
  584. INSTALL_SCRIPT
  585. INSTALL_DATA
  586. CYGPATH_W
  587. PACKAGE
  588. VERSION
  589. ACLOCAL
  590. AUTOCONF
  591. AUTOMAKE
  592. AUTOHEADER
  593. MAKEINFO
  594. install_sh
  595. STRIP
  596. INSTALL_STRIP_PROGRAM
  597. mkdir_p
  598. AWK
  599. SET_MAKE
  600. am__leading_dot
  601. AMTAR
  602. am__tar
  603. am__untar
  604. CPPUNIT_CONFIG
  605. CPPUNIT_CFLAGS
  606. CPPUNIT_LIBS
  607. WINSOCK_LIBS
  608. CXX
  609. CXXFLAGS
  610. LDFLAGS
  611. CPPFLAGS
  612. ac_ct_CXX
  613. EXEEXT
  614. OBJEXT
  615. DEPDIR
  616. am__include
  617. am__quote
  618. AMDEP_TRUE
  619. AMDEP_FALSE
  620. AMDEPBACKSLASH
  621. CXXDEPMODE
  622. am__fastdepCXX_TRUE
  623. am__fastdepCXX_FALSE
  624. CC
  625. CFLAGS
  626. ac_ct_CC
  627. CCDEPMODE
  628. am__fastdepCC_TRUE
  629. am__fastdepCC_FALSE
  630. RANLIB
  631. YACC
  632. YFLAGS
  633. XML2_CONFIG
  634. XML_CPPFLAGS
  635. XML_LIBS
  636. LIBGNUTLS_CONFIG
  637. LIBGNUTLS_CFLAGS
  638. LIBGNUTLS_LIBS
  639. LIBGCRYPT_CONFIG
  640. LIBGCRYPT_CFLAGS
  641. LIBGCRYPT_LIBS
  642. OPENSSL_LIBS
  643. OPENSSL_CFLAGS
  644. LIBCARES_LIBS
  645. LIBCARES_CPPFLAGS
  646. LIBARES_LIBS
  647. LIBARES_CPPFLAGS
  648. ENABLE_MESSAGE_DIGEST_TRUE
  649. ENABLE_MESSAGE_DIGEST_FALSE
  650. ENABLE_BITTORRENT_TRUE
  651. ENABLE_BITTORRENT_FALSE
  652. ENABLE_METALINK_TRUE
  653. ENABLE_METALINK_FALSE
  654. ENABLE_ASYNC_DNS_TRUE
  655. ENABLE_ASYNC_DNS_FALSE
  656. ALLOCA
  657. CPP
  658. GREP
  659. EGREP
  660. MKINSTALLDIRS
  661. USE_NLS
  662. MSGFMT
  663. GMSGFMT
  664. XGETTEXT
  665. MSGMERGE
  666. GLIBC21
  667. LIBICONV
  668. LTLIBICONV
  669. INTLBISON
  670. BUILD_INCLUDED_LIBINTL
  671. USE_INCLUDED_LIBINTL
  672. CATOBJEXT
  673. DATADIRNAME
  674. INSTOBJEXT
  675. GENCAT
  676. INTLOBJS
  677. INTL_LIBTOOL_SUFFIX_PREFIX
  678. INTLLIBS
  679. LIBINTL
  680. LTLIBINTL
  681. POSUB
  682. LIBOBJS
  683. HAVE_BASENAME_TRUE
  684. HAVE_BASENAME_FALSE
  685. HAVE_GAI_STRERROR_TRUE
  686. HAVE_GAI_STRERROR_FALSE
  687. HAVE_GETADDRINFO_TRUE
  688. HAVE_GETADDRINFO_FALSE
  689. HAVE_GETTIMEOFDAY_TRUE
  690. HAVE_GETTIMEOFDAY_FALSE
  691. HAVE_INET_ATON_TRUE
  692. HAVE_INET_ATON_FALSE
  693. HAVE_LOCALTIME_R_TRUE
  694. HAVE_LOCALTIME_R_FALSE
  695. HAVE_STRPTIME_TRUE
  696. HAVE_STRPTIME_FALSE
  697. HAVE_TIMEGM_TRUE
  698. HAVE_TIMEGM_FALSE
  699. LTLIBOBJS'
  700. ac_subst_files=''
  701. ac_precious_vars='build_alias
  702. host_alias
  703. target_alias
  704. CXX
  705. CXXFLAGS
  706. LDFLAGS
  707. LIBS
  708. CPPFLAGS
  709. CCC
  710. CC
  711. CFLAGS
  712. YACC
  713. YFLAGS
  714. CPP'
  715. # Initialize some variables set by options.
  716. ac_init_help=
  717. ac_init_version=false
  718. # The variables have the same names as the options, with
  719. # dashes changed to underlines.
  720. cache_file=/dev/null
  721. exec_prefix=NONE
  722. no_create=
  723. no_recursion=
  724. prefix=NONE
  725. program_prefix=NONE
  726. program_suffix=NONE
  727. program_transform_name=s,x,x,
  728. silent=
  729. site=
  730. srcdir=
  731. verbose=
  732. x_includes=NONE
  733. x_libraries=NONE
  734. # Installation directory options.
  735. # These are left unexpanded so users can "make install exec_prefix=/foo"
  736. # and all the variables that are supposed to be based on exec_prefix
  737. # by default will actually change.
  738. # Use braces instead of parens because sh, perl, etc. also accept them.
  739. # (The list follows the same order as the GNU Coding Standards.)
  740. bindir='${exec_prefix}/bin'
  741. sbindir='${exec_prefix}/sbin'
  742. libexecdir='${exec_prefix}/libexec'
  743. datarootdir='${prefix}/share'
  744. datadir='${datarootdir}'
  745. sysconfdir='${prefix}/etc'
  746. sharedstatedir='${prefix}/com'
  747. localstatedir='${prefix}/var'
  748. includedir='${prefix}/include'
  749. oldincludedir='/usr/include'
  750. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  751. infodir='${datarootdir}/info'
  752. htmldir='${docdir}'
  753. dvidir='${docdir}'
  754. pdfdir='${docdir}'
  755. psdir='${docdir}'
  756. libdir='${exec_prefix}/lib'
  757. localedir='${datarootdir}/locale'
  758. mandir='${datarootdir}/man'
  759. ac_prev=
  760. ac_dashdash=
  761. for ac_option
  762. do
  763. # If the previous option needs an argument, assign it.
  764. if test -n "$ac_prev"; then
  765. eval $ac_prev=\$ac_option
  766. ac_prev=
  767. continue
  768. fi
  769. case $ac_option in
  770. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  771. *) ac_optarg=yes ;;
  772. esac
  773. # Accept the important Cygnus configure options, so we can diagnose typos.
  774. case $ac_dashdash$ac_option in
  775. --)
  776. ac_dashdash=yes ;;
  777. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  778. ac_prev=bindir ;;
  779. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  780. bindir=$ac_optarg ;;
  781. -build | --build | --buil | --bui | --bu)
  782. ac_prev=build_alias ;;
  783. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  784. build_alias=$ac_optarg ;;
  785. -cache-file | --cache-file | --cache-fil | --cache-fi \
  786. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  787. ac_prev=cache_file ;;
  788. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  789. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  790. cache_file=$ac_optarg ;;
  791. --config-cache | -C)
  792. cache_file=config.cache ;;
  793. -datadir | --datadir | --datadi | --datad)
  794. ac_prev=datadir ;;
  795. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  796. datadir=$ac_optarg ;;
  797. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  798. | --dataroo | --dataro | --datar)
  799. ac_prev=datarootdir ;;
  800. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  801. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  802. datarootdir=$ac_optarg ;;
  803. -disable-* | --disable-*)
  804. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  805. # Reject names that are not valid shell variable names.
  806. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  807. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  808. { (exit 1); exit 1; }; }
  809. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  810. eval enable_$ac_feature=no ;;
  811. -docdir | --docdir | --docdi | --doc | --do)
  812. ac_prev=docdir ;;
  813. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  814. docdir=$ac_optarg ;;
  815. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  816. ac_prev=dvidir ;;
  817. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  818. dvidir=$ac_optarg ;;
  819. -enable-* | --enable-*)
  820. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  821. # Reject names that are not valid shell variable names.
  822. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  823. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  824. { (exit 1); exit 1; }; }
  825. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  826. eval enable_$ac_feature=\$ac_optarg ;;
  827. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  828. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  829. | --exec | --exe | --ex)
  830. ac_prev=exec_prefix ;;
  831. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  832. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  833. | --exec=* | --exe=* | --ex=*)
  834. exec_prefix=$ac_optarg ;;
  835. -gas | --gas | --ga | --g)
  836. # Obsolete; use --with-gas.
  837. with_gas=yes ;;
  838. -help | --help | --hel | --he | -h)
  839. ac_init_help=long ;;
  840. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  841. ac_init_help=recursive ;;
  842. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  843. ac_init_help=short ;;
  844. -host | --host | --hos | --ho)
  845. ac_prev=host_alias ;;
  846. -host=* | --host=* | --hos=* | --ho=*)
  847. host_alias=$ac_optarg ;;
  848. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  849. ac_prev=htmldir ;;
  850. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  851. | --ht=*)
  852. htmldir=$ac_optarg ;;
  853. -includedir | --includedir | --includedi | --included | --include \
  854. | --includ | --inclu | --incl | --inc)
  855. ac_prev=includedir ;;
  856. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  857. | --includ=* | --inclu=* | --incl=* | --inc=*)
  858. includedir=$ac_optarg ;;
  859. -infodir | --infodir | --infodi | --infod | --info | --inf)
  860. ac_prev=infodir ;;
  861. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  862. infodir=$ac_optarg ;;
  863. -libdir | --libdir | --libdi | --libd)
  864. ac_prev=libdir ;;
  865. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  866. libdir=$ac_optarg ;;
  867. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  868. | --libexe | --libex | --libe)
  869. ac_prev=libexecdir ;;
  870. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  871. | --libexe=* | --libex=* | --libe=*)
  872. libexecdir=$ac_optarg ;;
  873. -localedir | --localedir | --localedi | --localed | --locale)
  874. ac_prev=localedir ;;
  875. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  876. localedir=$ac_optarg ;;
  877. -localstatedir | --localstatedir | --localstatedi | --localstated \
  878. | --localstate | --localstat | --localsta | --localst | --locals)
  879. ac_prev=localstatedir ;;
  880. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  881. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  882. localstatedir=$ac_optarg ;;
  883. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  884. ac_prev=mandir ;;
  885. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  886. mandir=$ac_optarg ;;
  887. -nfp | --nfp | --nf)
  888. # Obsolete; use --without-fp.
  889. with_fp=no ;;
  890. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  891. | --no-cr | --no-c | -n)
  892. no_create=yes ;;
  893. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  894. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  895. no_recursion=yes ;;
  896. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  897. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  898. | --oldin | --oldi | --old | --ol | --o)
  899. ac_prev=oldincludedir ;;
  900. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  901. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  902. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  903. oldincludedir=$ac_optarg ;;
  904. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  905. ac_prev=prefix ;;
  906. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  907. prefix=$ac_optarg ;;
  908. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  909. | --program-pre | --program-pr | --program-p)
  910. ac_prev=program_prefix ;;
  911. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  912. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  913. program_prefix=$ac_optarg ;;
  914. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  915. | --program-suf | --program-su | --program-s)
  916. ac_prev=program_suffix ;;
  917. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  918. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  919. program_suffix=$ac_optarg ;;
  920. -program-transform-name | --program-transform-name \
  921. | --program-transform-nam | --program-transform-na \
  922. | --program-transform-n | --program-transform- \
  923. | --program-transform | --program-transfor \
  924. | --program-transfo | --program-transf \
  925. | --program-trans | --program-tran \
  926. | --progr-tra | --program-tr | --program-t)
  927. ac_prev=program_transform_name ;;
  928. -program-transform-name=* | --program-transform-name=* \
  929. | --program-transform-nam=* | --program-transform-na=* \
  930. | --program-transform-n=* | --program-transform-=* \
  931. | --program-transform=* | --program-transfor=* \
  932. | --program-transfo=* | --program-transf=* \
  933. | --program-trans=* | --program-tran=* \
  934. | --progr-tra=* | --program-tr=* | --program-t=*)
  935. program_transform_name=$ac_optarg ;;
  936. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  937. ac_prev=pdfdir ;;
  938. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  939. pdfdir=$ac_optarg ;;
  940. -psdir | --psdir | --psdi | --psd | --ps)
  941. ac_prev=psdir ;;
  942. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  943. psdir=$ac_optarg ;;
  944. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  945. | -silent | --silent | --silen | --sile | --sil)
  946. silent=yes ;;
  947. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  948. ac_prev=sbindir ;;
  949. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  950. | --sbi=* | --sb=*)
  951. sbindir=$ac_optarg ;;
  952. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  953. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  954. | --sharedst | --shareds | --shared | --share | --shar \
  955. | --sha | --sh)
  956. ac_prev=sharedstatedir ;;
  957. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  958. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  959. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  960. | --sha=* | --sh=*)
  961. sharedstatedir=$ac_optarg ;;
  962. -site | --site | --sit)
  963. ac_prev=site ;;
  964. -site=* | --site=* | --sit=*)
  965. site=$ac_optarg ;;
  966. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  967. ac_prev=srcdir ;;
  968. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  969. srcdir=$ac_optarg ;;
  970. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  971. | --syscon | --sysco | --sysc | --sys | --sy)
  972. ac_prev=sysconfdir ;;
  973. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  974. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  975. sysconfdir=$ac_optarg ;;
  976. -target | --target | --targe | --targ | --tar | --ta | --t)
  977. ac_prev=target_alias ;;
  978. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  979. target_alias=$ac_optarg ;;
  980. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  981. verbose=yes ;;
  982. -version | --version | --versio | --versi | --vers | -V)
  983. ac_init_version=: ;;
  984. -with-* | --with-*)
  985. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  986. # Reject names that are not valid shell variable names.
  987. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  988. { echo "$as_me: error: invalid package name: $ac_package" >&2
  989. { (exit 1); exit 1; }; }
  990. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  991. eval with_$ac_package=\$ac_optarg ;;
  992. -without-* | --without-*)
  993. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  994. # Reject names that are not valid shell variable names.
  995. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  996. { echo "$as_me: error: invalid package name: $ac_package" >&2
  997. { (exit 1); exit 1; }; }
  998. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  999. eval with_$ac_package=no ;;
  1000. --x)
  1001. # Obsolete; use --with-x.
  1002. with_x=yes ;;
  1003. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1004. | --x-incl | --x-inc | --x-in | --x-i)
  1005. ac_prev=x_includes ;;
  1006. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1007. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1008. x_includes=$ac_optarg ;;
  1009. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1010. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1011. ac_prev=x_libraries ;;
  1012. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1013. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1014. x_libraries=$ac_optarg ;;
  1015. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1016. Try \`$0 --help' for more information." >&2
  1017. { (exit 1); exit 1; }; }
  1018. ;;
  1019. *=*)
  1020. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1023. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1024. { (exit 1); exit 1; }; }
  1025. eval $ac_envvar=\$ac_optarg
  1026. export $ac_envvar ;;
  1027. *)
  1028. # FIXME: should be removed in autoconf 3.0.
  1029. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1030. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1031. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1032. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1033. ;;
  1034. esac
  1035. done
  1036. if test -n "$ac_prev"; then
  1037. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1038. { echo "$as_me: error: missing argument to $ac_option" >&2
  1039. { (exit 1); exit 1; }; }
  1040. fi
  1041. # Be sure to have absolute directory names.
  1042. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1043. datadir sysconfdir sharedstatedir localstatedir includedir \
  1044. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1045. libdir localedir mandir
  1046. do
  1047. eval ac_val=\$$ac_var
  1048. case $ac_val in
  1049. [\\/$]* | ?:[\\/]* ) continue;;
  1050. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1051. esac
  1052. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1053. { (exit 1); exit 1; }; }
  1054. done
  1055. # There might be people who depend on the old broken behavior: `$host'
  1056. # used to hold the argument of --host etc.
  1057. # FIXME: To remove some day.
  1058. build=$build_alias
  1059. host=$host_alias
  1060. target=$target_alias
  1061. # FIXME: To remove some day.
  1062. if test "x$host_alias" != x; then
  1063. if test "x$build_alias" = x; then
  1064. cross_compiling=maybe
  1065. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1066. If a cross compiler is detected then cross compile mode will be used." >&2
  1067. elif test "x$build_alias" != "x$host_alias"; then
  1068. cross_compiling=yes
  1069. fi
  1070. fi
  1071. ac_tool_prefix=
  1072. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1073. test "$silent" = yes && exec 6>/dev/null
  1074. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1075. ac_ls_di=`ls -di .` &&
  1076. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1077. { echo "$as_me: error: Working directory cannot be determined" >&2
  1078. { (exit 1); exit 1; }; }
  1079. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1080. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1081. { (exit 1); exit 1; }; }
  1082. # Find the source files, if location was not specified.
  1083. if test -z "$srcdir"; then
  1084. ac_srcdir_defaulted=yes
  1085. # Try the directory containing this script, then the parent directory.
  1086. ac_confdir=`$as_dirname -- "$0" ||
  1087. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1088. X"$0" : 'X\(//\)[^/]' \| \
  1089. X"$0" : 'X\(//\)$' \| \
  1090. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1091. echo X"$0" |
  1092. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1093. s//\1/
  1094. q
  1095. }
  1096. /^X\(\/\/\)[^/].*/{
  1097. s//\1/
  1098. q
  1099. }
  1100. /^X\(\/\/\)$/{
  1101. s//\1/
  1102. q
  1103. }
  1104. /^X\(\/\).*/{
  1105. s//\1/
  1106. q
  1107. }
  1108. s/.*/./; q'`
  1109. srcdir=$ac_confdir
  1110. if test ! -r "$srcdir/$ac_unique_file"; then
  1111. srcdir=..
  1112. fi
  1113. else
  1114. ac_srcdir_defaulted=no
  1115. fi
  1116. if test ! -r "$srcdir/$ac_unique_file"; then
  1117. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1118. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1119. { (exit 1); exit 1; }; }
  1120. fi
  1121. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1122. ac_abs_confdir=`(
  1123. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1124. { (exit 1); exit 1; }; }
  1125. pwd)`
  1126. # When building in place, set srcdir=.
  1127. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1128. srcdir=.
  1129. fi
  1130. # Remove unnecessary trailing slashes from srcdir.
  1131. # Double slashes in file names in object file debugging info
  1132. # mess up M-x gdb in Emacs.
  1133. case $srcdir in
  1134. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1135. esac
  1136. for ac_var in $ac_precious_vars; do
  1137. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1138. eval ac_env_${ac_var}_value=\$${ac_var}
  1139. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1140. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1141. done
  1142. #
  1143. # Report the --help message.
  1144. #
  1145. if test "$ac_init_help" = "long"; then
  1146. # Omit some internal or obsolete options to make the list less imposing.
  1147. # This message is too long to be a string in the A/UX 3.1 sh.
  1148. cat <<_ACEOF
  1149. \`configure' configures aria2c 0.11.2 to adapt to many kinds of systems.
  1150. Usage: $0 [OPTION]... [VAR=VALUE]...
  1151. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1152. VAR=VALUE. See below for descriptions of some of the useful variables.
  1153. Defaults for the options are specified in brackets.
  1154. Configuration:
  1155. -h, --help display this help and exit
  1156. --help=short display options specific to this package
  1157. --help=recursive display the short help of all the included packages
  1158. -V, --version display version information and exit
  1159. -q, --quiet, --silent do not print \`checking...' messages
  1160. --cache-file=FILE cache test results in FILE [disabled]
  1161. -C, --config-cache alias for \`--cache-file=config.cache'
  1162. -n, --no-create do not create output files
  1163. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1164. Installation directories:
  1165. --prefix=PREFIX install architecture-independent files in PREFIX
  1166. [$ac_default_prefix]
  1167. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1168. [PREFIX]
  1169. By default, \`make install' will install all the files in
  1170. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1171. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1172. for instance \`--prefix=\$HOME'.
  1173. For better control, use the options below.
  1174. Fine tuning of the installation directories:
  1175. --bindir=DIR user executables [EPREFIX/bin]
  1176. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1177. --libexecdir=DIR program executables [EPREFIX/libexec]
  1178. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1179. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1180. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1181. --libdir=DIR object code libraries [EPREFIX/lib]
  1182. --includedir=DIR C header files [PREFIX/include]
  1183. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1184. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1185. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1186. --infodir=DIR info documentation [DATAROOTDIR/info]
  1187. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1188. --mandir=DIR man documentation [DATAROOTDIR/man]
  1189. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1190. --htmldir=DIR html documentation [DOCDIR]
  1191. --dvidir=DIR dvi documentation [DOCDIR]
  1192. --pdfdir=DIR pdf documentation [DOCDIR]
  1193. --psdir=DIR ps documentation [DOCDIR]
  1194. _ACEOF
  1195. cat <<\_ACEOF
  1196. Program names:
  1197. --program-prefix=PREFIX prepend PREFIX to installed program names
  1198. --program-suffix=SUFFIX append SUFFIX to installed program names
  1199. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1200. System types:
  1201. --build=BUILD configure for building on BUILD [guessed]
  1202. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1203. --target=TARGET configure for building compilers for TARGET [HOST]
  1204. _ACEOF
  1205. fi
  1206. if test -n "$ac_init_help"; then
  1207. case $ac_init_help in
  1208. short | recursive ) echo "Configuration of aria2c 0.11.2:";;
  1209. esac
  1210. cat <<\_ACEOF
  1211. Optional Features:
  1212. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1213. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1214. --enable-bittorrent enable BitTorrent support. Default: yes
  1215. --enable-metalink enable Metalink support. Default: yes
  1216. --disable-dependency-tracking speeds up one-time build
  1217. --enable-dependency-tracking do not reject slow dependency extractors
  1218. --disable-xmltest Do not try to compile and run a test LIBXML program
  1219. --disable-nls do not use Native Language Support
  1220. --disable-rpath do not hardcode runtime library paths
  1221. Optional Packages:
  1222. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1223. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1224. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1225. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1226. --with-gnutls use gnutls library if installed. Default: yes
  1227. --with-openssl use openssl library if installed. Default: yes
  1228. --with-libxml2 use libxml2 library if installed. Default: yes
  1229. --with-libares use ares library if installed. Default: yes
  1230. --with-libcares use c-ares library if installed. Default: yes
  1231. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1232. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1233. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1234. --with-libgcrypt-prefix=PFX
  1235. prefix where LIBGCRYPT is installed (optional)
  1236. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1237. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1238. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1239. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1240. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1241. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1242. --with-included-gettext use the GNU gettext library included here
  1243. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1244. --without-libintl-prefix don't search for libintl in includedir and libdir
  1245. Some influential environment variables:
  1246. CXX C++ compiler command
  1247. CXXFLAGS C++ compiler flags
  1248. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1249. nonstandard directory <lib dir>
  1250. LIBS libraries to pass to the linker, e.g. -l<library>
  1251. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1252. you have headers in a nonstandard directory <include dir>
  1253. CC C compiler command
  1254. CFLAGS C compiler flags
  1255. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1256. the first program found out of: `bison -y', `byacc', `yacc'.
  1257. YFLAGS The list of arguments that will be passed by default to $YACC.
  1258. This script will default YFLAGS to the empty string to avoid a
  1259. default value of `-d' given by some make applications.
  1260. CPP C preprocessor
  1261. Use these variables to override the choices made by `configure' or to help
  1262. it to find libraries and programs with nonstandard names/locations.
  1263. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1264. _ACEOF
  1265. ac_status=$?
  1266. fi
  1267. if test "$ac_init_help" = "recursive"; then
  1268. # If there are subdirs, report their specific --help.
  1269. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1270. test -d "$ac_dir" || continue
  1271. ac_builddir=.
  1272. case "$ac_dir" in
  1273. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1274. *)
  1275. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1276. # A ".." for each directory in $ac_dir_suffix.
  1277. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1278. case $ac_top_builddir_sub in
  1279. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1280. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1281. esac ;;
  1282. esac
  1283. ac_abs_top_builddir=$ac_pwd
  1284. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1285. # for backward compatibility:
  1286. ac_top_builddir=$ac_top_build_prefix
  1287. case $srcdir in
  1288. .) # We are building in place.
  1289. ac_srcdir=.
  1290. ac_top_srcdir=$ac_top_builddir_sub
  1291. ac_abs_top_srcdir=$ac_pwd ;;
  1292. [\\/]* | ?:[\\/]* ) # Absolute name.
  1293. ac_srcdir=$srcdir$ac_dir_suffix;
  1294. ac_top_srcdir=$srcdir
  1295. ac_abs_top_srcdir=$srcdir ;;
  1296. *) # Relative name.
  1297. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1298. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1299. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1300. esac
  1301. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1302. cd "$ac_dir" || { ac_status=$?; continue; }
  1303. # Check for guested configure.
  1304. if test -f "$ac_srcdir/configure.gnu"; then
  1305. echo &&
  1306. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1307. elif test -f "$ac_srcdir/configure"; then
  1308. echo &&
  1309. $SHELL "$ac_srcdir/configure" --help=recursive
  1310. else
  1311. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1312. fi || ac_status=$?
  1313. cd "$ac_pwd" || { ac_status=$?; break; }
  1314. done
  1315. fi
  1316. test -n "$ac_init_help" && exit $ac_status
  1317. if $ac_init_version; then
  1318. cat <<\_ACEOF
  1319. aria2c configure 0.11.2
  1320. generated by GNU Autoconf 2.61
  1321. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1322. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1323. This configure script is free software; the Free Software Foundation
  1324. gives unlimited permission to copy, distribute and modify it.
  1325. _ACEOF
  1326. exit
  1327. fi
  1328. cat >config.log <<_ACEOF
  1329. This file contains any messages produced by compilers while
  1330. running configure, to aid debugging if configure makes a mistake.
  1331. It was created by aria2c $as_me 0.11.2, which was
  1332. generated by GNU Autoconf 2.61. Invocation command line was
  1333. $ $0 $@
  1334. _ACEOF
  1335. exec 5>>config.log
  1336. {
  1337. cat <<_ASUNAME
  1338. ## --------- ##
  1339. ## Platform. ##
  1340. ## --------- ##
  1341. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1342. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1343. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1344. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1345. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1346. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1347. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1348. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1349. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1350. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1351. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1352. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1353. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1354. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1355. _ASUNAME
  1356. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1357. for as_dir in $PATH
  1358. do
  1359. IFS=$as_save_IFS
  1360. test -z "$as_dir" && as_dir=.
  1361. echo "PATH: $as_dir"
  1362. done
  1363. IFS=$as_save_IFS
  1364. } >&5
  1365. cat >&5 <<_ACEOF
  1366. ## ----------- ##
  1367. ## Core tests. ##
  1368. ## ----------- ##
  1369. _ACEOF
  1370. # Keep a trace of the command line.
  1371. # Strip out --no-create and --no-recursion so they do not pile up.
  1372. # Strip out --silent because we don't want to record it for future runs.
  1373. # Also quote any args containing shell meta-characters.
  1374. # Make two passes to allow for proper duplicate-argument suppression.
  1375. ac_configure_args=
  1376. ac_configure_args0=
  1377. ac_configure_args1=
  1378. ac_must_keep_next=false
  1379. for ac_pass in 1 2
  1380. do
  1381. for ac_arg
  1382. do
  1383. case $ac_arg in
  1384. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1385. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1386. | -silent | --silent | --silen | --sile | --sil)
  1387. continue ;;
  1388. *\'*)
  1389. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1390. esac
  1391. case $ac_pass in
  1392. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1393. 2)
  1394. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1395. if test $ac_must_keep_next = true; then
  1396. ac_must_keep_next=false # Got value, back to normal.
  1397. else
  1398. case $ac_arg in
  1399. *=* | --config-cache | -C | -disable-* | --disable-* \
  1400. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1401. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1402. | -with-* | --with-* | -without-* | --without-* | --x)
  1403. case "$ac_configure_args0 " in
  1404. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1405. esac
  1406. ;;
  1407. -* ) ac_must_keep_next=true ;;
  1408. esac
  1409. fi
  1410. ac_configure_args="$ac_configure_args '$ac_arg'"
  1411. ;;
  1412. esac
  1413. done
  1414. done
  1415. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1416. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1417. # When interrupted or exit'd, cleanup temporary files, and complete
  1418. # config.log. We remove comments because anyway the quotes in there
  1419. # would cause problems or look ugly.
  1420. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1421. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1422. trap 'exit_status=$?
  1423. # Save into config.log some information that might help in debugging.
  1424. {
  1425. echo
  1426. cat <<\_ASBOX
  1427. ## ---------------- ##
  1428. ## Cache variables. ##
  1429. ## ---------------- ##
  1430. _ASBOX
  1431. echo
  1432. # The following way of writing the cache mishandles newlines in values,
  1433. (
  1434. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1435. eval ac_val=\$$ac_var
  1436. case $ac_val in #(
  1437. *${as_nl}*)
  1438. case $ac_var in #(
  1439. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1440. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1441. esac
  1442. case $ac_var in #(
  1443. _ | IFS | as_nl) ;; #(
  1444. *) $as_unset $ac_var ;;
  1445. esac ;;
  1446. esac
  1447. done
  1448. (set) 2>&1 |
  1449. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1450. *${as_nl}ac_space=\ *)
  1451. sed -n \
  1452. "s/'\''/'\''\\\\'\'''\''/g;
  1453. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1454. ;; #(
  1455. *)
  1456. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1457. ;;
  1458. esac |
  1459. sort
  1460. )
  1461. echo
  1462. cat <<\_ASBOX
  1463. ## ----------------- ##
  1464. ## Output variables. ##
  1465. ## ----------------- ##
  1466. _ASBOX
  1467. echo
  1468. for ac_var in $ac_subst_vars
  1469. do
  1470. eval ac_val=\$$ac_var
  1471. case $ac_val in
  1472. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1473. esac
  1474. echo "$ac_var='\''$ac_val'\''"
  1475. done | sort
  1476. echo
  1477. if test -n "$ac_subst_files"; then
  1478. cat <<\_ASBOX
  1479. ## ------------------- ##
  1480. ## File substitutions. ##
  1481. ## ------------------- ##
  1482. _ASBOX
  1483. echo
  1484. for ac_var in $ac_subst_files
  1485. do
  1486. eval ac_val=\$$ac_var
  1487. case $ac_val in
  1488. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1489. esac
  1490. echo "$ac_var='\''$ac_val'\''"
  1491. done | sort
  1492. echo
  1493. fi
  1494. if test -s confdefs.h; then
  1495. cat <<\_ASBOX
  1496. ## ----------- ##
  1497. ## confdefs.h. ##
  1498. ## ----------- ##
  1499. _ASBOX
  1500. echo
  1501. cat confdefs.h
  1502. echo
  1503. fi
  1504. test "$ac_signal" != 0 &&
  1505. echo "$as_me: caught signal $ac_signal"
  1506. echo "$as_me: exit $exit_status"
  1507. } >&5
  1508. rm -f core *.core core.conftest.* &&
  1509. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1510. exit $exit_status
  1511. ' 0
  1512. for ac_signal in 1 2 13 15; do
  1513. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1514. done
  1515. ac_signal=0
  1516. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1517. rm -f -r conftest* confdefs.h
  1518. # Predefined preprocessor variables.
  1519. cat >>confdefs.h <<_ACEOF
  1520. #define PACKAGE_NAME "$PACKAGE_NAME"
  1521. _ACEOF
  1522. cat >>confdefs.h <<_ACEOF
  1523. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1524. _ACEOF
  1525. cat >>confdefs.h <<_ACEOF
  1526. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1527. _ACEOF
  1528. cat >>confdefs.h <<_ACEOF
  1529. #define PACKAGE_STRING "$PACKAGE_STRING"
  1530. _ACEOF
  1531. cat >>confdefs.h <<_ACEOF
  1532. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1533. _ACEOF
  1534. # Let the site file select an alternate cache file if it wants to.
  1535. # Prefer explicitly selected file to automatically selected ones.
  1536. if test -n "$CONFIG_SITE"; then
  1537. set x "$CONFIG_SITE"
  1538. elif test "x$prefix" != xNONE; then
  1539. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1540. else
  1541. set x "$ac_default_prefix/share/config.site" \
  1542. "$ac_default_prefix/etc/config.site"
  1543. fi
  1544. shift
  1545. for ac_site_file
  1546. do
  1547. if test -r "$ac_site_file"; then
  1548. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1549. echo "$as_me: loading site script $ac_site_file" >&6;}
  1550. sed 's/^/| /' "$ac_site_file" >&5
  1551. . "$ac_site_file"
  1552. fi
  1553. done
  1554. if test -r "$cache_file"; then
  1555. # Some versions of bash will fail to source /dev/null (special
  1556. # files actually), so we avoid doing that.
  1557. if test -f "$cache_file"; then
  1558. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1559. echo "$as_me: loading cache $cache_file" >&6;}
  1560. case $cache_file in
  1561. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1562. *) . "./$cache_file";;
  1563. esac
  1564. fi
  1565. else
  1566. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1567. echo "$as_me: creating cache $cache_file" >&6;}
  1568. >$cache_file
  1569. fi
  1570. # Check that the precious variables saved in the cache have kept the same
  1571. # value.
  1572. ac_cache_corrupted=false
  1573. for ac_var in $ac_precious_vars; do
  1574. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1575. eval ac_new_set=\$ac_env_${ac_var}_set
  1576. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1577. eval ac_new_val=\$ac_env_${ac_var}_value
  1578. case $ac_old_set,$ac_new_set in
  1579. set,)
  1580. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1581. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1582. ac_cache_corrupted=: ;;
  1583. ,set)
  1584. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1585. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1586. ac_cache_corrupted=: ;;
  1587. ,);;
  1588. *)
  1589. if test "x$ac_old_val" != "x$ac_new_val"; then
  1590. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1591. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1592. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1593. echo "$as_me: former value: $ac_old_val" >&2;}
  1594. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1595. echo "$as_me: current value: $ac_new_val" >&2;}
  1596. ac_cache_corrupted=:
  1597. fi;;
  1598. esac
  1599. # Pass precious variables to config.status.
  1600. if test "$ac_new_set" = set; then
  1601. case $ac_new_val in
  1602. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1603. *) ac_arg=$ac_var=$ac_new_val ;;
  1604. esac
  1605. case " $ac_configure_args " in
  1606. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1607. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1608. esac
  1609. fi
  1610. done
  1611. if $ac_cache_corrupted; then
  1612. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1613. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1614. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1615. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1616. { (exit 1); exit 1; }; }
  1617. fi
  1618. ac_ext=c
  1619. ac_cpp='$CPP $CPPFLAGS'
  1620. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1621. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1622. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1623. ac_aux_dir=
  1624. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1625. if test -f "$ac_dir/install-sh"; then
  1626. ac_aux_dir=$ac_dir
  1627. ac_install_sh="$ac_aux_dir/install-sh -c"
  1628. break
  1629. elif test -f "$ac_dir/install.sh"; then
  1630. ac_aux_dir=$ac_dir
  1631. ac_install_sh="$ac_aux_dir/install.sh -c"
  1632. break
  1633. elif test -f "$ac_dir/shtool"; then
  1634. ac_aux_dir=$ac_dir
  1635. ac_install_sh="$ac_aux_dir/shtool install -c"
  1636. break
  1637. fi
  1638. done
  1639. if test -z "$ac_aux_dir"; then
  1640. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1641. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1642. { (exit 1); exit 1; }; }
  1643. fi
  1644. # These three variables are undocumented and unsupported,
  1645. # and are intended to be withdrawn in a future Autoconf release.
  1646. # They can cause serious problems if a builder's source tree is in a directory
  1647. # whose full name contains unusual characters.
  1648. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1649. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1650. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1651. # Make sure we can run config.sub.
  1652. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1653. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1654. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1655. { (exit 1); exit 1; }; }
  1656. { echo "$as_me:$LINENO: checking build system type" >&5
  1657. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1658. if test "${ac_cv_build+set}" = set; then
  1659. echo $ECHO_N "(cached) $ECHO_C" >&6
  1660. else
  1661. ac_build_alias=$build_alias
  1662. test "x$ac_build_alias" = x &&
  1663. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1664. test "x$ac_build_alias" = x &&
  1665. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1666. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1667. { (exit 1); exit 1; }; }
  1668. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1669. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1670. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1671. { (exit 1); exit 1; }; }
  1672. fi
  1673. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1674. echo "${ECHO_T}$ac_cv_build" >&6; }
  1675. case $ac_cv_build in
  1676. *-*-*) ;;
  1677. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1678. echo "$as_me: error: invalid value of canonical build" >&2;}
  1679. { (exit 1); exit 1; }; };;
  1680. esac
  1681. build=$ac_cv_build
  1682. ac_save_IFS=$IFS; IFS='-'
  1683. set x $ac_cv_build
  1684. shift
  1685. build_cpu=$1
  1686. build_vendor=$2
  1687. shift; shift
  1688. # Remember, the first character of IFS is used to create $*,
  1689. # except with old shells:
  1690. build_os=$*
  1691. IFS=$ac_save_IFS
  1692. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1693. { echo "$as_me:$LINENO: checking host system type" >&5
  1694. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1695. if test "${ac_cv_host+set}" = set; then
  1696. echo $ECHO_N "(cached) $ECHO_C" >&6
  1697. else
  1698. if test "x$host_alias" = x; then
  1699. ac_cv_host=$ac_cv_build
  1700. else
  1701. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1702. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1703. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1704. { (exit 1); exit 1; }; }
  1705. fi
  1706. fi
  1707. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1708. echo "${ECHO_T}$ac_cv_host" >&6; }
  1709. case $ac_cv_host in
  1710. *-*-*) ;;
  1711. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1712. echo "$as_me: error: invalid value of canonical host" >&2;}
  1713. { (exit 1); exit 1; }; };;
  1714. esac
  1715. host=$ac_cv_host
  1716. ac_save_IFS=$IFS; IFS='-'
  1717. set x $ac_cv_host
  1718. shift
  1719. host_cpu=$1
  1720. host_vendor=$2
  1721. shift; shift
  1722. # Remember, the first character of IFS is used to create $*,
  1723. # except with old shells:
  1724. host_os=$*
  1725. IFS=$ac_save_IFS
  1726. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1727. { echo "$as_me:$LINENO: checking target system type" >&5
  1728. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1729. if test "${ac_cv_target+set}" = set; then
  1730. echo $ECHO_N "(cached) $ECHO_C" >&6
  1731. else
  1732. if test "x$target_alias" = x; then
  1733. ac_cv_target=$ac_cv_host
  1734. else
  1735. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1736. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1737. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1738. { (exit 1); exit 1; }; }
  1739. fi
  1740. fi
  1741. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1742. echo "${ECHO_T}$ac_cv_target" >&6; }
  1743. case $ac_cv_target in
  1744. *-*-*) ;;
  1745. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1746. echo "$as_me: error: invalid value of canonical target" >&2;}
  1747. { (exit 1); exit 1; }; };;
  1748. esac
  1749. target=$ac_cv_target
  1750. ac_save_IFS=$IFS; IFS='-'
  1751. set x $ac_cv_target
  1752. shift
  1753. target_cpu=$1
  1754. target_vendor=$2
  1755. shift; shift
  1756. # Remember, the first character of IFS is used to create $*,
  1757. # except with old shells:
  1758. target_os=$*
  1759. IFS=$ac_save_IFS
  1760. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1761. # The aliases save the names the user supplied, while $host etc.
  1762. # will get canonicalized.
  1763. test -n "$target_alias" &&
  1764. test "$program_prefix$program_suffix$program_transform_name" = \
  1765. NONENONEs,x,x, &&
  1766. program_prefix=${target_alias}-
  1767. am__api_version="1.9"
  1768. # Find a good install program. We prefer a C program (faster),
  1769. # so one script is as good as another. But avoid the broken or
  1770. # incompatible versions:
  1771. # SysV /etc/install, /usr/sbin/install
  1772. # SunOS /usr/etc/install
  1773. # IRIX /sbin/install
  1774. # AIX /bin/install
  1775. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1776. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1777. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1778. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1779. # OS/2's system install, which has a completely different semantic
  1780. # ./install, which can be erroneously created by make from ./install.sh.
  1781. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1782. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1783. if test -z "$INSTALL"; then
  1784. if test "${ac_cv_path_install+set}" = set; then
  1785. echo $ECHO_N "(cached) $ECHO_C" >&6
  1786. else
  1787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1788. for as_dir in $PATH
  1789. do
  1790. IFS=$as_save_IFS
  1791. test -z "$as_dir" && as_dir=.
  1792. # Account for people who put trailing slashes in PATH elements.
  1793. case $as_dir/ in
  1794. ./ | .// | /cC/* | \
  1795. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1796. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1797. /usr/ucb/* ) ;;
  1798. *)
  1799. # OSF1 and SCO ODT 3.0 have their own names for install.
  1800. # Don't use installbsd from OSF since it installs stuff as root
  1801. # by default.
  1802. for ac_prog in ginstall scoinst install; do
  1803. for ac_exec_ext in '' $ac_executable_extensions; do
  1804. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1805. if test $ac_prog = install &&
  1806. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1807. # AIX install. It has an incompatible calling convention.
  1808. :
  1809. elif test $ac_prog = install &&
  1810. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1811. # program-specific install script used by HP pwplus--don't use.
  1812. :
  1813. else
  1814. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1815. break 3
  1816. fi
  1817. fi
  1818. done
  1819. done
  1820. ;;
  1821. esac
  1822. done
  1823. IFS=$as_save_IFS
  1824. fi
  1825. if test "${ac_cv_path_install+set}" = set; then
  1826. INSTALL=$ac_cv_path_install
  1827. else
  1828. # As a last resort, use the slow shell script. Don't cache a
  1829. # value for INSTALL within a source directory, because that will
  1830. # break other packages using the cache if that directory is
  1831. # removed, or if the value is a relative name.
  1832. INSTALL=$ac_install_sh
  1833. fi
  1834. fi
  1835. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1836. echo "${ECHO_T}$INSTALL" >&6; }
  1837. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1838. # It thinks the first close brace ends the variable substitution.
  1839. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1840. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1841. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1842. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1843. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1844. # Just in case
  1845. sleep 1
  1846. echo timestamp > conftest.file
  1847. # Do `set' in a subshell so we don't clobber the current shell's
  1848. # arguments. Must try -L first in case configure is actually a
  1849. # symlink; some systems play weird games with the mod time of symlinks
  1850. # (eg FreeBSD returns the mod time of the symlink's containing
  1851. # directory).
  1852. if (
  1853. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1854. if test "$*" = "X"; then
  1855. # -L didn't work.
  1856. set X `ls -t $srcdir/configure conftest.file`
  1857. fi
  1858. rm -f conftest.file
  1859. if test "$*" != "X $srcdir/configure conftest.file" \
  1860. && test "$*" != "X conftest.file $srcdir/configure"; then
  1861. # If neither matched, then we have a broken ls. This can happen
  1862. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1863. # broken ls alias from the environment. This has actually
  1864. # happened. Such a system could not be considered "sane".
  1865. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1866. alias in your environment" >&5
  1867. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1868. alias in your environment" >&2;}
  1869. { (exit 1); exit 1; }; }
  1870. fi
  1871. test "$2" = conftest.file
  1872. )
  1873. then
  1874. # Ok.
  1875. :
  1876. else
  1877. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1878. Check your system clock" >&5
  1879. echo "$as_me: error: newly created file is older than distributed files!
  1880. Check your system clock" >&2;}
  1881. { (exit 1); exit 1; }; }
  1882. fi
  1883. { echo "$as_me:$LINENO: result: yes" >&5
  1884. echo "${ECHO_T}yes" >&6; }
  1885. test "$program_prefix" != NONE &&
  1886. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1887. # Use a double $ so make ignores it.
  1888. test "$program_suffix" != NONE &&
  1889. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1890. # Double any \ or $. echo might interpret backslashes.
  1891. # By default was `s,x,x', remove it if useless.
  1892. cat <<\_ACEOF >conftest.sed
  1893. s/[\\$]/&&/g;s/;s,x,x,$//
  1894. _ACEOF
  1895. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1896. rm -f conftest.sed
  1897. # expand $ac_aux_dir to an absolute path
  1898. am_aux_dir=`cd $ac_aux_dir && pwd`
  1899. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1900. # Use eval to expand $SHELL
  1901. if eval "$MISSING --run true"; then
  1902. am_missing_run="$MISSING --run "
  1903. else
  1904. am_missing_run=
  1905. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1906. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1907. fi
  1908. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1909. # We used to keeping the `.' as first argument, in order to
  1910. # allow $(mkdir_p) to be used without argument. As in
  1911. # $(mkdir_p) $(somedir)
  1912. # where $(somedir) is conditionally defined. However this is wrong
  1913. # for two reasons:
  1914. # 1. if the package is installed by a user who cannot write `.'
  1915. # make install will fail,
  1916. # 2. the above comment should most certainly read
  1917. # $(mkdir_p) $(DESTDIR)$(somedir)
  1918. # so it does not work when $(somedir) is undefined and
  1919. # $(DESTDIR) is not.
  1920. # To support the latter case, we have to write
  1921. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1922. # so the `.' trick is pointless.
  1923. mkdir_p='mkdir -p --'
  1924. else
  1925. # On NextStep and OpenStep, the `mkdir' command does not
  1926. # recognize any option. It will interpret all options as
  1927. # directories to create, and then abort because `.' already
  1928. # exists.
  1929. for d in ./-p ./--version;
  1930. do
  1931. test -d $d && rmdir $d
  1932. done
  1933. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1934. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1935. mkdir_p='$(mkinstalldirs)'
  1936. else
  1937. mkdir_p='$(install_sh) -d'
  1938. fi
  1939. fi
  1940. for ac_prog in gawk mawk nawk awk
  1941. do
  1942. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1943. set dummy $ac_prog; ac_word=$2
  1944. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1945. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1946. if test "${ac_cv_prog_AWK+set}" = set; then
  1947. echo $ECHO_N "(cached) $ECHO_C" >&6
  1948. else
  1949. if test -n "$AWK"; then
  1950. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1951. else
  1952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1953. for as_dir in $PATH
  1954. do
  1955. IFS=$as_save_IFS
  1956. test -z "$as_dir" && as_dir=.
  1957. for ac_exec_ext in '' $ac_executable_extensions; do
  1958. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1959. ac_cv_prog_AWK="$ac_prog"
  1960. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1961. break 2
  1962. fi
  1963. done
  1964. done
  1965. IFS=$as_save_IFS
  1966. fi
  1967. fi
  1968. AWK=$ac_cv_prog_AWK
  1969. if test -n "$AWK"; then
  1970. { echo "$as_me:$LINENO: result: $AWK" >&5
  1971. echo "${ECHO_T}$AWK" >&6; }
  1972. else
  1973. { echo "$as_me:$LINENO: result: no" >&5
  1974. echo "${ECHO_T}no" >&6; }
  1975. fi
  1976. test -n "$AWK" && break
  1977. done
  1978. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1979. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1980. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1981. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1982. echo $ECHO_N "(cached) $ECHO_C" >&6
  1983. else
  1984. cat >conftest.make <<\_ACEOF
  1985. SHELL = /bin/sh
  1986. all:
  1987. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1988. _ACEOF
  1989. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1990. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1991. *@@@%%%=?*=@@@%%%*)
  1992. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1993. *)
  1994. eval ac_cv_prog_make_${ac_make}_set=no;;
  1995. esac
  1996. rm -f conftest.make
  1997. fi
  1998. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1999. { echo "$as_me:$LINENO: result: yes" >&5
  2000. echo "${ECHO_T}yes" >&6; }
  2001. SET_MAKE=
  2002. else
  2003. { echo "$as_me:$LINENO: result: no" >&5
  2004. echo "${ECHO_T}no" >&6; }
  2005. SET_MAKE="MAKE=${MAKE-make}"
  2006. fi
  2007. rm -rf .tst 2>/dev/null
  2008. mkdir .tst 2>/dev/null
  2009. if test -d .tst; then
  2010. am__leading_dot=.
  2011. else
  2012. am__leading_dot=_
  2013. fi
  2014. rmdir .tst 2>/dev/null
  2015. # test to see if srcdir already configured
  2016. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2017. test -f $srcdir/config.status; then
  2018. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2019. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2020. { (exit 1); exit 1; }; }
  2021. fi
  2022. # test whether we have cygpath
  2023. if test -z "$CYGPATH_W"; then
  2024. if (cygpath --version) >/dev/null 2>/dev/null; then
  2025. CYGPATH_W='cygpath -w'
  2026. else
  2027. CYGPATH_W=echo
  2028. fi
  2029. fi
  2030. # Define the identity of the package.
  2031. PACKAGE='aria2c'
  2032. VERSION='0.11.2'
  2033. cat >>confdefs.h <<_ACEOF
  2034. #define PACKAGE "$PACKAGE"
  2035. _ACEOF
  2036. cat >>confdefs.h <<_ACEOF
  2037. #define VERSION "$VERSION"
  2038. _ACEOF
  2039. # Some tools Automake needs.
  2040. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2041. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2042. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2043. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2044. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2045. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2046. # Installed binaries are usually stripped using `strip' when the user
  2047. # run `make install-strip'. However `strip' might not be the right
  2048. # tool to use in cross-compilation environments, therefore Automake
  2049. # will honor the `STRIP' environment variable to overrule this program.
  2050. if test "$cross_compiling" != no; then
  2051. if test -n "$ac_tool_prefix"; then
  2052. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2053. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2054. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2055. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2056. if test "${ac_cv_prog_STRIP+set}" = set; then
  2057. echo $ECHO_N "(cached) $ECHO_C" >&6
  2058. else
  2059. if test -n "$STRIP"; then
  2060. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2061. else
  2062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2063. for as_dir in $PATH
  2064. do
  2065. IFS=$as_save_IFS
  2066. test -z "$as_dir" && as_dir=.
  2067. for ac_exec_ext in '' $ac_executable_extensions; do
  2068. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2069. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2070. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2071. break 2
  2072. fi
  2073. done
  2074. done
  2075. IFS=$as_save_IFS
  2076. fi
  2077. fi
  2078. STRIP=$ac_cv_prog_STRIP
  2079. if test -n "$STRIP"; then
  2080. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2081. echo "${ECHO_T}$STRIP" >&6; }
  2082. else
  2083. { echo "$as_me:$LINENO: result: no" >&5
  2084. echo "${ECHO_T}no" >&6; }
  2085. fi
  2086. fi
  2087. if test -z "$ac_cv_prog_STRIP"; then
  2088. ac_ct_STRIP=$STRIP
  2089. # Extract the first word of "strip", so it can be a program name with args.
  2090. set dummy strip; ac_word=$2
  2091. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2092. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2093. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2094. echo $ECHO_N "(cached) $ECHO_C" >&6
  2095. else
  2096. if test -n "$ac_ct_STRIP"; then
  2097. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2098. else
  2099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2100. for as_dir in $PATH
  2101. do
  2102. IFS=$as_save_IFS
  2103. test -z "$as_dir" && as_dir=.
  2104. for ac_exec_ext in '' $ac_executable_extensions; do
  2105. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2106. ac_cv_prog_ac_ct_STRIP="strip"
  2107. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2108. break 2
  2109. fi
  2110. done
  2111. done
  2112. IFS=$as_save_IFS
  2113. fi
  2114. fi
  2115. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2116. if test -n "$ac_ct_STRIP"; then
  2117. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2118. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2119. else
  2120. { echo "$as_me:$LINENO: result: no" >&5
  2121. echo "${ECHO_T}no" >&6; }
  2122. fi
  2123. if test "x$ac_ct_STRIP" = x; then
  2124. STRIP=":"
  2125. else
  2126. case $cross_compiling:$ac_tool_warned in
  2127. yes:)
  2128. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2129. whose name does not start with the host triplet. If you think this
  2130. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2131. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2132. whose name does not start with the host triplet. If you think this
  2133. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2134. ac_tool_warned=yes ;;
  2135. esac
  2136. STRIP=$ac_ct_STRIP
  2137. fi
  2138. else
  2139. STRIP="$ac_cv_prog_STRIP"
  2140. fi
  2141. fi
  2142. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2143. # We need awk for the "check" target. The system "awk" is bad on
  2144. # some platforms.
  2145. # Always define AMTAR for backward compatibility.
  2146. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2147. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2148. # Check whether --with-cppunit-prefix was given.
  2149. if test "${with_cppunit_prefix+set}" = set; then
  2150. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2151. else
  2152. cppunit_config_prefix=""
  2153. fi
  2154. # Check whether --with-cppunit-exec-prefix was given.
  2155. if test "${with_cppunit_exec_prefix+set}" = set; then
  2156. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2157. else
  2158. cppunit_config_exec_prefix=""
  2159. fi
  2160. if test x$cppunit_config_exec_prefix != x ; then
  2161. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2162. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2163. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2164. fi
  2165. fi
  2166. if test x$cppunit_config_prefix != x ; then
  2167. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2168. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2169. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2170. fi
  2171. fi
  2172. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2173. set dummy cppunit-config; ac_word=$2
  2174. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2175. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2176. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2177. echo $ECHO_N "(cached) $ECHO_C" >&6
  2178. else
  2179. case $CPPUNIT_CONFIG in
  2180. [\\/]* | ?:[\\/]*)
  2181. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2182. ;;
  2183. *)
  2184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2185. for as_dir in $PATH
  2186. do
  2187. IFS=$as_save_IFS
  2188. test -z "$as_dir" && as_dir=.
  2189. for ac_exec_ext in '' $ac_executable_extensions; do
  2190. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2191. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2192. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2193. break 2
  2194. fi
  2195. done
  2196. done
  2197. IFS=$as_save_IFS
  2198. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2199. ;;
  2200. esac
  2201. fi
  2202. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2203. if test -n "$CPPUNIT_CONFIG"; then
  2204. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2205. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2206. else
  2207. { echo "$as_me:$LINENO: result: no" >&5
  2208. echo "${ECHO_T}no" >&6; }
  2209. fi
  2210. cppunit_version_min=1.10.2
  2211. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2212. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2213. no_cppunit=""
  2214. if test "$CPPUNIT_CONFIG" = "no" ; then
  2215. { echo "$as_me:$LINENO: result: no" >&5
  2216. echo "${ECHO_T}no" >&6; }
  2217. no_cppunit=yes
  2218. else
  2219. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2220. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2221. cppunit_version=`$CPPUNIT_CONFIG --version`
  2222. cppunit_major_version=`echo $cppunit_version | \
  2223. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2224. cppunit_minor_version=`echo $cppunit_version | \
  2225. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2226. cppunit_micro_version=`echo $cppunit_version | \
  2227. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2228. cppunit_major_min=`echo $cppunit_version_min | \
  2229. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2230. if test "x${cppunit_major_min}" = "x" ; then
  2231. cppunit_major_min=0
  2232. fi
  2233. cppunit_minor_min=`echo $cppunit_version_min | \
  2234. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2235. if test "x${cppunit_minor_min}" = "x" ; then
  2236. cppunit_minor_min=0
  2237. fi
  2238. cppunit_micro_min=`echo $cppunit_version_min | \
  2239. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2240. if test "x${cppunit_micro_min}" = "x" ; then
  2241. cppunit_micro_min=0
  2242. fi
  2243. cppunit_version_proper=`expr \
  2244. $cppunit_major_version \> $cppunit_major_min \| \
  2245. $cppunit_major_version \= $cppunit_major_min \& \
  2246. $cppunit_minor_version \> $cppunit_minor_min \| \
  2247. $cppunit_major_version \= $cppunit_major_min \& \
  2248. $cppunit_minor_version \= $cppunit_minor_min \& \
  2249. $cppunit_micro_version \>= $cppunit_micro_min `
  2250. if test "$cppunit_version_proper" = "1" ; then
  2251. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2252. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2253. else
  2254. { echo "$as_me:$LINENO: result: no" >&5
  2255. echo "${ECHO_T}no" >&6; }
  2256. no_cppunit=yes
  2257. fi
  2258. fi
  2259. if test "x$no_cppunit" = x ; then
  2260. :
  2261. else
  2262. CPPUNIT_CFLAGS=""
  2263. CPPUNIT_LIBS=""
  2264. :
  2265. fi
  2266. ac_config_headers="$ac_config_headers config.h"
  2267. case "$target" in
  2268. *mingw*|*cygwin*)
  2269. WINSOCK_LIBS="-lws2_32"
  2270. ;;
  2271. esac
  2272. # Set localedir
  2273. localedir=${datadir}/locale
  2274. # Checks for arguments.
  2275. # Check whether --with-gnutls was given.
  2276. if test "${with_gnutls+set}" = set; then
  2277. withval=$with_gnutls; with_gnutls=$withval
  2278. else
  2279. with_gnutls=yes
  2280. fi
  2281. # Check whether --with-openssl was given.
  2282. if test "${with_openssl+set}" = set; then
  2283. withval=$with_openssl; with_openssl=$withval
  2284. else
  2285. with_openssl=yes
  2286. fi
  2287. # Check whether --with-libxml2 was given.
  2288. if test "${with_libxml2+set}" = set; then
  2289. withval=$with_libxml2; with_libxml2=$withval
  2290. else
  2291. with_libxml2=yes
  2292. fi
  2293. # Check whether --with-libares was given.
  2294. if test "${with_libares+set}" = set; then
  2295. withval=$with_libares; with_libares=$withval
  2296. else
  2297. with_libares=yes
  2298. fi
  2299. # Check whether --with-libcares was given.
  2300. if test "${with_libcares+set}" = set; then
  2301. withval=$with_libcares; with_libcares=$withval
  2302. else
  2303. with_libcares=yes
  2304. fi
  2305. # Check whether --enable-bittorrent was given.
  2306. if test "${enable_bittorrent+set}" = set; then
  2307. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2308. else
  2309. enable_bittorrent=yes
  2310. fi
  2311. # Check whether --enable-metalink was given.
  2312. if test "${enable_metalink+set}" = set; then
  2313. enableval=$enable_metalink; enable_metalink=$enableval
  2314. else
  2315. enable_metalink=yes
  2316. fi
  2317. # Checks for programs.
  2318. ac_ext=cpp
  2319. ac_cpp='$CXXCPP $CPPFLAGS'
  2320. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2321. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2322. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2323. if test -z "$CXX"; then
  2324. if test -n "$CCC"; then
  2325. CXX=$CCC
  2326. else
  2327. if test -n "$ac_tool_prefix"; then
  2328. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2329. do
  2330. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2331. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2332. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2333. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2334. if test "${ac_cv_prog_CXX+set}" = set; then
  2335. echo $ECHO_N "(cached) $ECHO_C" >&6
  2336. else
  2337. if test -n "$CXX"; then
  2338. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2339. else
  2340. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2341. for as_dir in $PATH
  2342. do
  2343. IFS=$as_save_IFS
  2344. test -z "$as_dir" && as_dir=.
  2345. for ac_exec_ext in '' $ac_executable_extensions; do
  2346. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2347. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2348. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2349. break 2
  2350. fi
  2351. done
  2352. done
  2353. IFS=$as_save_IFS
  2354. fi
  2355. fi
  2356. CXX=$ac_cv_prog_CXX
  2357. if test -n "$CXX"; then
  2358. { echo "$as_me:$LINENO: result: $CXX" >&5
  2359. echo "${ECHO_T}$CXX" >&6; }
  2360. else
  2361. { echo "$as_me:$LINENO: result: no" >&5
  2362. echo "${ECHO_T}no" >&6; }
  2363. fi
  2364. test -n "$CXX" && break
  2365. done
  2366. fi
  2367. if test -z "$CXX"; then
  2368. ac_ct_CXX=$CXX
  2369. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2370. do
  2371. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2372. set dummy $ac_prog; ac_word=$2
  2373. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2374. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2375. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2376. echo $ECHO_N "(cached) $ECHO_C" >&6
  2377. else
  2378. if test -n "$ac_ct_CXX"; then
  2379. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2380. else
  2381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2382. for as_dir in $PATH
  2383. do
  2384. IFS=$as_save_IFS
  2385. test -z "$as_dir" && as_dir=.
  2386. for ac_exec_ext in '' $ac_executable_extensions; do
  2387. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2388. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2389. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2390. break 2
  2391. fi
  2392. done
  2393. done
  2394. IFS=$as_save_IFS
  2395. fi
  2396. fi
  2397. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2398. if test -n "$ac_ct_CXX"; then
  2399. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2400. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2401. else
  2402. { echo "$as_me:$LINENO: result: no" >&5
  2403. echo "${ECHO_T}no" >&6; }
  2404. fi
  2405. test -n "$ac_ct_CXX" && break
  2406. done
  2407. if test "x$ac_ct_CXX" = x; then
  2408. CXX="g++"
  2409. else
  2410. case $cross_compiling:$ac_tool_warned in
  2411. yes:)
  2412. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2413. whose name does not start with the host triplet. If you think this
  2414. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2415. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2416. whose name does not start with the host triplet. If you think this
  2417. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2418. ac_tool_warned=yes ;;
  2419. esac
  2420. CXX=$ac_ct_CXX
  2421. fi
  2422. fi
  2423. fi
  2424. fi
  2425. # Provide some information about the compiler.
  2426. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2427. ac_compiler=`set X $ac_compile; echo $2`
  2428. { (ac_try="$ac_compiler --version >&5"
  2429. case "(($ac_try" in
  2430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2431. *) ac_try_echo=$ac_try;;
  2432. esac
  2433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2434. (eval "$ac_compiler --version >&5") 2>&5
  2435. ac_status=$?
  2436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2437. (exit $ac_status); }
  2438. { (ac_try="$ac_compiler -v >&5"
  2439. case "(($ac_try" in
  2440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2441. *) ac_try_echo=$ac_try;;
  2442. esac
  2443. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2444. (eval "$ac_compiler -v >&5") 2>&5
  2445. ac_status=$?
  2446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2447. (exit $ac_status); }
  2448. { (ac_try="$ac_compiler -V >&5"
  2449. case "(($ac_try" in
  2450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2451. *) ac_try_echo=$ac_try;;
  2452. esac
  2453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2454. (eval "$ac_compiler -V >&5") 2>&5
  2455. ac_status=$?
  2456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2457. (exit $ac_status); }
  2458. cat >conftest.$ac_ext <<_ACEOF
  2459. /* confdefs.h. */
  2460. _ACEOF
  2461. cat confdefs.h >>conftest.$ac_ext
  2462. cat >>conftest.$ac_ext <<_ACEOF
  2463. /* end confdefs.h. */
  2464. int
  2465. main ()
  2466. {
  2467. ;
  2468. return 0;
  2469. }
  2470. _ACEOF
  2471. ac_clean_files_save=$ac_clean_files
  2472. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2473. # Try to create an executable without -o first, disregard a.out.
  2474. # It will help us diagnose broken compilers, and finding out an intuition
  2475. # of exeext.
  2476. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2477. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2478. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2479. #
  2480. # List of possible output files, starting from the most likely.
  2481. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2482. # only as a last resort. b.out is created by i960 compilers.
  2483. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2484. #
  2485. # The IRIX 6 linker writes into existing files which may not be
  2486. # executable, retaining their permissions. Remove them first so a
  2487. # subsequent execution test works.
  2488. ac_rmfiles=
  2489. for ac_file in $ac_files
  2490. do
  2491. case $ac_file in
  2492. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2493. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2494. esac
  2495. done
  2496. rm -f $ac_rmfiles
  2497. if { (ac_try="$ac_link_default"
  2498. case "(($ac_try" in
  2499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2500. *) ac_try_echo=$ac_try;;
  2501. esac
  2502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2503. (eval "$ac_link_default") 2>&5
  2504. ac_status=$?
  2505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2506. (exit $ac_status); }; then
  2507. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2508. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2509. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2510. # so that the user can short-circuit this test for compilers unknown to
  2511. # Autoconf.
  2512. for ac_file in $ac_files ''
  2513. do
  2514. test -f "$ac_file" || continue
  2515. case $ac_file in
  2516. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2517. ;;
  2518. [ab].out )
  2519. # We found the default executable, but exeext='' is most
  2520. # certainly right.
  2521. break;;
  2522. *.* )
  2523. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2524. then :; else
  2525. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2526. fi
  2527. # We set ac_cv_exeext here because the later test for it is not
  2528. # safe: cross compilers may not add the suffix if given an `-o'
  2529. # argument, so we may need to know it at that point already.
  2530. # Even if this section looks crufty: it has the advantage of
  2531. # actually working.
  2532. break;;
  2533. * )
  2534. break;;
  2535. esac
  2536. done
  2537. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2538. else
  2539. ac_file=''
  2540. fi
  2541. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2542. echo "${ECHO_T}$ac_file" >&6; }
  2543. if test -z "$ac_file"; then
  2544. echo "$as_me: failed program was:" >&5
  2545. sed 's/^/| /' conftest.$ac_ext >&5
  2546. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2547. See \`config.log' for more details." >&5
  2548. echo "$as_me: error: C++ compiler cannot create executables
  2549. See \`config.log' for more details." >&2;}
  2550. { (exit 77); exit 77; }; }
  2551. fi
  2552. ac_exeext=$ac_cv_exeext
  2553. # Check that the compiler produces executables we can run. If not, either
  2554. # the compiler is broken, or we cross compile.
  2555. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2556. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2557. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2558. # If not cross compiling, check that we can run a simple program.
  2559. if test "$cross_compiling" != yes; then
  2560. if { ac_try='./$ac_file'
  2561. { (case "(($ac_try" in
  2562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2563. *) ac_try_echo=$ac_try;;
  2564. esac
  2565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2566. (eval "$ac_try") 2>&5
  2567. ac_status=$?
  2568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2569. (exit $ac_status); }; }; then
  2570. cross_compiling=no
  2571. else
  2572. if test "$cross_compiling" = maybe; then
  2573. cross_compiling=yes
  2574. else
  2575. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2576. If you meant to cross compile, use \`--host'.
  2577. See \`config.log' for more details." >&5
  2578. echo "$as_me: error: cannot run C++ compiled programs.
  2579. If you meant to cross compile, use \`--host'.
  2580. See \`config.log' for more details." >&2;}
  2581. { (exit 1); exit 1; }; }
  2582. fi
  2583. fi
  2584. fi
  2585. { echo "$as_me:$LINENO: result: yes" >&5
  2586. echo "${ECHO_T}yes" >&6; }
  2587. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2588. ac_clean_files=$ac_clean_files_save
  2589. # Check that the compiler produces executables we can run. If not, either
  2590. # the compiler is broken, or we cross compile.
  2591. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2592. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2593. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2594. echo "${ECHO_T}$cross_compiling" >&6; }
  2595. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2596. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2597. if { (ac_try="$ac_link"
  2598. case "(($ac_try" in
  2599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2600. *) ac_try_echo=$ac_try;;
  2601. esac
  2602. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2603. (eval "$ac_link") 2>&5
  2604. ac_status=$?
  2605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2606. (exit $ac_status); }; then
  2607. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2608. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2609. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2610. # `rm'.
  2611. for ac_file in conftest.exe conftest conftest.*; do
  2612. test -f "$ac_file" || continue
  2613. case $ac_file in
  2614. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2615. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2616. break;;
  2617. * ) break;;
  2618. esac
  2619. done
  2620. else
  2621. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2622. See \`config.log' for more details." >&5
  2623. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2624. See \`config.log' for more details." >&2;}
  2625. { (exit 1); exit 1; }; }
  2626. fi
  2627. rm -f conftest$ac_cv_exeext
  2628. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2629. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2630. rm -f conftest.$ac_ext
  2631. EXEEXT=$ac_cv_exeext
  2632. ac_exeext=$EXEEXT
  2633. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2634. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2635. if test "${ac_cv_objext+set}" = set; then
  2636. echo $ECHO_N "(cached) $ECHO_C" >&6
  2637. else
  2638. cat >conftest.$ac_ext <<_ACEOF
  2639. /* confdefs.h. */
  2640. _ACEOF
  2641. cat confdefs.h >>conftest.$ac_ext
  2642. cat >>conftest.$ac_ext <<_ACEOF
  2643. /* end confdefs.h. */
  2644. int
  2645. main ()
  2646. {
  2647. ;
  2648. return 0;
  2649. }
  2650. _ACEOF
  2651. rm -f conftest.o conftest.obj
  2652. if { (ac_try="$ac_compile"
  2653. case "(($ac_try" in
  2654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2655. *) ac_try_echo=$ac_try;;
  2656. esac
  2657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2658. (eval "$ac_compile") 2>&5
  2659. ac_status=$?
  2660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2661. (exit $ac_status); }; then
  2662. for ac_file in conftest.o conftest.obj conftest.*; do
  2663. test -f "$ac_file" || continue;
  2664. case $ac_file in
  2665. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2666. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2667. break;;
  2668. esac
  2669. done
  2670. else
  2671. echo "$as_me: failed program was:" >&5
  2672. sed 's/^/| /' conftest.$ac_ext >&5
  2673. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2674. See \`config.log' for more details." >&5
  2675. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2676. See \`config.log' for more details." >&2;}
  2677. { (exit 1); exit 1; }; }
  2678. fi
  2679. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2680. fi
  2681. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2682. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2683. OBJEXT=$ac_cv_objext
  2684. ac_objext=$OBJEXT
  2685. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2686. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2687. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2688. echo $ECHO_N "(cached) $ECHO_C" >&6
  2689. else
  2690. cat >conftest.$ac_ext <<_ACEOF
  2691. /* confdefs.h. */
  2692. _ACEOF
  2693. cat confdefs.h >>conftest.$ac_ext
  2694. cat >>conftest.$ac_ext <<_ACEOF
  2695. /* end confdefs.h. */
  2696. int
  2697. main ()
  2698. {
  2699. #ifndef __GNUC__
  2700. choke me
  2701. #endif
  2702. ;
  2703. return 0;
  2704. }
  2705. _ACEOF
  2706. rm -f conftest.$ac_objext
  2707. if { (ac_try="$ac_compile"
  2708. case "(($ac_try" in
  2709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2710. *) ac_try_echo=$ac_try;;
  2711. esac
  2712. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2713. (eval "$ac_compile") 2>conftest.er1
  2714. ac_status=$?
  2715. grep -v '^ *+' conftest.er1 >conftest.err
  2716. rm -f conftest.er1
  2717. cat conftest.err >&5
  2718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2719. (exit $ac_status); } && {
  2720. test -z "$ac_cxx_werror_flag" ||
  2721. test ! -s conftest.err
  2722. } && test -s conftest.$ac_objext; then
  2723. ac_compiler_gnu=yes
  2724. else
  2725. echo "$as_me: failed program was:" >&5
  2726. sed 's/^/| /' conftest.$ac_ext >&5
  2727. ac_compiler_gnu=no
  2728. fi
  2729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2730. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2731. fi
  2732. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2733. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2734. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2735. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2736. ac_save_CXXFLAGS=$CXXFLAGS
  2737. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2738. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2739. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2740. echo $ECHO_N "(cached) $ECHO_C" >&6
  2741. else
  2742. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2743. ac_cxx_werror_flag=yes
  2744. ac_cv_prog_cxx_g=no
  2745. CXXFLAGS="-g"
  2746. cat >conftest.$ac_ext <<_ACEOF
  2747. /* confdefs.h. */
  2748. _ACEOF
  2749. cat confdefs.h >>conftest.$ac_ext
  2750. cat >>conftest.$ac_ext <<_ACEOF
  2751. /* end confdefs.h. */
  2752. int
  2753. main ()
  2754. {
  2755. ;
  2756. return 0;
  2757. }
  2758. _ACEOF
  2759. rm -f conftest.$ac_objext
  2760. if { (ac_try="$ac_compile"
  2761. case "(($ac_try" in
  2762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2763. *) ac_try_echo=$ac_try;;
  2764. esac
  2765. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2766. (eval "$ac_compile") 2>conftest.er1
  2767. ac_status=$?
  2768. grep -v '^ *+' conftest.er1 >conftest.err
  2769. rm -f conftest.er1
  2770. cat conftest.err >&5
  2771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2772. (exit $ac_status); } && {
  2773. test -z "$ac_cxx_werror_flag" ||
  2774. test ! -s conftest.err
  2775. } && test -s conftest.$ac_objext; then
  2776. ac_cv_prog_cxx_g=yes
  2777. else
  2778. echo "$as_me: failed program was:" >&5
  2779. sed 's/^/| /' conftest.$ac_ext >&5
  2780. CXXFLAGS=""
  2781. cat >conftest.$ac_ext <<_ACEOF
  2782. /* confdefs.h. */
  2783. _ACEOF
  2784. cat confdefs.h >>conftest.$ac_ext
  2785. cat >>conftest.$ac_ext <<_ACEOF
  2786. /* end confdefs.h. */
  2787. int
  2788. main ()
  2789. {
  2790. ;
  2791. return 0;
  2792. }
  2793. _ACEOF
  2794. rm -f conftest.$ac_objext
  2795. if { (ac_try="$ac_compile"
  2796. case "(($ac_try" in
  2797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2798. *) ac_try_echo=$ac_try;;
  2799. esac
  2800. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2801. (eval "$ac_compile") 2>conftest.er1
  2802. ac_status=$?
  2803. grep -v '^ *+' conftest.er1 >conftest.err
  2804. rm -f conftest.er1
  2805. cat conftest.err >&5
  2806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2807. (exit $ac_status); } && {
  2808. test -z "$ac_cxx_werror_flag" ||
  2809. test ! -s conftest.err
  2810. } && test -s conftest.$ac_objext; then
  2811. :
  2812. else
  2813. echo "$as_me: failed program was:" >&5
  2814. sed 's/^/| /' conftest.$ac_ext >&5
  2815. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  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. fi
  2852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2853. fi
  2854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2855. fi
  2856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2857. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2858. fi
  2859. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2860. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2861. if test "$ac_test_CXXFLAGS" = set; then
  2862. CXXFLAGS=$ac_save_CXXFLAGS
  2863. elif test $ac_cv_prog_cxx_g = yes; then
  2864. if test "$GXX" = yes; then
  2865. CXXFLAGS="-g -O2"
  2866. else
  2867. CXXFLAGS="-g"
  2868. fi
  2869. else
  2870. if test "$GXX" = yes; then
  2871. CXXFLAGS="-O2"
  2872. else
  2873. CXXFLAGS=
  2874. fi
  2875. fi
  2876. ac_ext=c
  2877. ac_cpp='$CPP $CPPFLAGS'
  2878. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2879. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2880. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2881. DEPDIR="${am__leading_dot}deps"
  2882. ac_config_commands="$ac_config_commands depfiles"
  2883. am_make=${MAKE-make}
  2884. cat > confinc << 'END'
  2885. am__doit:
  2886. @echo done
  2887. .PHONY: am__doit
  2888. END
  2889. # If we don't find an include directive, just comment out the code.
  2890. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2891. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2892. am__include="#"
  2893. am__quote=
  2894. _am_result=none
  2895. # First try GNU make style include.
  2896. echo "include confinc" > confmf
  2897. # We grep out `Entering directory' and `Leaving directory'
  2898. # messages which can occur if `w' ends up in MAKEFLAGS.
  2899. # In particular we don't look at `^make:' because GNU make might
  2900. # be invoked under some other name (usually "gmake"), in which
  2901. # case it prints its new name instead of `make'.
  2902. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2903. am__include=include
  2904. am__quote=
  2905. _am_result=GNU
  2906. fi
  2907. # Now try BSD make style include.
  2908. if test "$am__include" = "#"; then
  2909. echo '.include "confinc"' > confmf
  2910. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2911. am__include=.include
  2912. am__quote="\""
  2913. _am_result=BSD
  2914. fi
  2915. fi
  2916. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2917. echo "${ECHO_T}$_am_result" >&6; }
  2918. rm -f confinc confmf
  2919. # Check whether --enable-dependency-tracking was given.
  2920. if test "${enable_dependency_tracking+set}" = set; then
  2921. enableval=$enable_dependency_tracking;
  2922. fi
  2923. if test "x$enable_dependency_tracking" != xno; then
  2924. am_depcomp="$ac_aux_dir/depcomp"
  2925. AMDEPBACKSLASH='\'
  2926. fi
  2927. if test "x$enable_dependency_tracking" != xno; then
  2928. AMDEP_TRUE=
  2929. AMDEP_FALSE='#'
  2930. else
  2931. AMDEP_TRUE='#'
  2932. AMDEP_FALSE=
  2933. fi
  2934. depcc="$CXX" am_compiler_list=
  2935. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2936. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2937. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2938. echo $ECHO_N "(cached) $ECHO_C" >&6
  2939. else
  2940. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2941. # We make a subdir and do the tests there. Otherwise we can end up
  2942. # making bogus files that we don't know about and never remove. For
  2943. # instance it was reported that on HP-UX the gcc test will end up
  2944. # making a dummy file named `D' -- because `-MD' means `put the output
  2945. # in D'.
  2946. mkdir conftest.dir
  2947. # Copy depcomp to subdir because otherwise we won't find it if we're
  2948. # using a relative directory.
  2949. cp "$am_depcomp" conftest.dir
  2950. cd conftest.dir
  2951. # We will build objects and dependencies in a subdirectory because
  2952. # it helps to detect inapplicable dependency modes. For instance
  2953. # both Tru64's cc and ICC support -MD to output dependencies as a
  2954. # side effect of compilation, but ICC will put the dependencies in
  2955. # the current directory while Tru64 will put them in the object
  2956. # directory.
  2957. mkdir sub
  2958. am_cv_CXX_dependencies_compiler_type=none
  2959. if test "$am_compiler_list" = ""; then
  2960. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2961. fi
  2962. for depmode in $am_compiler_list; do
  2963. # Setup a source with many dependencies, because some compilers
  2964. # like to wrap large dependency lists on column 80 (with \), and
  2965. # we should not choose a depcomp mode which is confused by this.
  2966. #
  2967. # We need to recreate these files for each test, as the compiler may
  2968. # overwrite some of them when testing with obscure command lines.
  2969. # This happens at least with the AIX C compiler.
  2970. : > sub/conftest.c
  2971. for i in 1 2 3 4 5 6; do
  2972. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2973. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2974. # Solaris 8's {/usr,}/bin/sh.
  2975. touch sub/conftst$i.h
  2976. done
  2977. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2978. case $depmode in
  2979. nosideeffect)
  2980. # after this tag, mechanisms are not by side-effect, so they'll
  2981. # only be used when explicitly requested
  2982. if test "x$enable_dependency_tracking" = xyes; then
  2983. continue
  2984. else
  2985. break
  2986. fi
  2987. ;;
  2988. none) break ;;
  2989. esac
  2990. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2991. # mode. It turns out that the SunPro C++ compiler does not properly
  2992. # handle `-M -o', and we need to detect this.
  2993. if depmode=$depmode \
  2994. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2995. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2996. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2997. >/dev/null 2>conftest.err &&
  2998. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2999. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3000. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3001. # icc doesn't choke on unknown options, it will just issue warnings
  3002. # or remarks (even with -Werror). So we grep stderr for any message
  3003. # that says an option was ignored or not supported.
  3004. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3005. # icc: Command line warning: ignoring option '-M'; no argument required
  3006. # The diagnosis changed in icc 8.0:
  3007. # icc: Command line remark: option '-MP' not supported
  3008. if (grep 'ignoring option' conftest.err ||
  3009. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3010. am_cv_CXX_dependencies_compiler_type=$depmode
  3011. break
  3012. fi
  3013. fi
  3014. done
  3015. cd ..
  3016. rm -rf conftest.dir
  3017. else
  3018. am_cv_CXX_dependencies_compiler_type=none
  3019. fi
  3020. fi
  3021. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3022. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3023. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3024. if
  3025. test "x$enable_dependency_tracking" != xno \
  3026. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3027. am__fastdepCXX_TRUE=
  3028. am__fastdepCXX_FALSE='#'
  3029. else
  3030. am__fastdepCXX_TRUE='#'
  3031. am__fastdepCXX_FALSE=
  3032. fi
  3033. ac_ext=c
  3034. ac_cpp='$CPP $CPPFLAGS'
  3035. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3036. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3037. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3038. if test -n "$ac_tool_prefix"; then
  3039. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3040. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3041. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3042. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3043. if test "${ac_cv_prog_CC+set}" = set; then
  3044. echo $ECHO_N "(cached) $ECHO_C" >&6
  3045. else
  3046. if test -n "$CC"; then
  3047. ac_cv_prog_CC="$CC" # Let the user override the test.
  3048. else
  3049. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3050. for as_dir in $PATH
  3051. do
  3052. IFS=$as_save_IFS
  3053. test -z "$as_dir" && as_dir=.
  3054. for ac_exec_ext in '' $ac_executable_extensions; do
  3055. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3056. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3057. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3058. break 2
  3059. fi
  3060. done
  3061. done
  3062. IFS=$as_save_IFS
  3063. fi
  3064. fi
  3065. CC=$ac_cv_prog_CC
  3066. if test -n "$CC"; then
  3067. { echo "$as_me:$LINENO: result: $CC" >&5
  3068. echo "${ECHO_T}$CC" >&6; }
  3069. else
  3070. { echo "$as_me:$LINENO: result: no" >&5
  3071. echo "${ECHO_T}no" >&6; }
  3072. fi
  3073. fi
  3074. if test -z "$ac_cv_prog_CC"; then
  3075. ac_ct_CC=$CC
  3076. # Extract the first word of "gcc", so it can be a program name with args.
  3077. set dummy gcc; ac_word=$2
  3078. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3079. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3080. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3081. echo $ECHO_N "(cached) $ECHO_C" >&6
  3082. else
  3083. if test -n "$ac_ct_CC"; then
  3084. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3085. else
  3086. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3087. for as_dir in $PATH
  3088. do
  3089. IFS=$as_save_IFS
  3090. test -z "$as_dir" && as_dir=.
  3091. for ac_exec_ext in '' $ac_executable_extensions; do
  3092. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3093. ac_cv_prog_ac_ct_CC="gcc"
  3094. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3095. break 2
  3096. fi
  3097. done
  3098. done
  3099. IFS=$as_save_IFS
  3100. fi
  3101. fi
  3102. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3103. if test -n "$ac_ct_CC"; then
  3104. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3105. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3106. else
  3107. { echo "$as_me:$LINENO: result: no" >&5
  3108. echo "${ECHO_T}no" >&6; }
  3109. fi
  3110. if test "x$ac_ct_CC" = x; then
  3111. CC=""
  3112. else
  3113. case $cross_compiling:$ac_tool_warned in
  3114. yes:)
  3115. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3116. whose name does not start with the host triplet. If you think this
  3117. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3118. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3119. whose name does not start with the host triplet. If you think this
  3120. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3121. ac_tool_warned=yes ;;
  3122. esac
  3123. CC=$ac_ct_CC
  3124. fi
  3125. else
  3126. CC="$ac_cv_prog_CC"
  3127. fi
  3128. if test -z "$CC"; then
  3129. if test -n "$ac_tool_prefix"; then
  3130. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3131. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3132. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3133. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3134. if test "${ac_cv_prog_CC+set}" = set; then
  3135. echo $ECHO_N "(cached) $ECHO_C" >&6
  3136. else
  3137. if test -n "$CC"; then
  3138. ac_cv_prog_CC="$CC" # Let the user override the test.
  3139. else
  3140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3141. for as_dir in $PATH
  3142. do
  3143. IFS=$as_save_IFS
  3144. test -z "$as_dir" && as_dir=.
  3145. for ac_exec_ext in '' $ac_executable_extensions; do
  3146. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3147. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3148. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3149. break 2
  3150. fi
  3151. done
  3152. done
  3153. IFS=$as_save_IFS
  3154. fi
  3155. fi
  3156. CC=$ac_cv_prog_CC
  3157. if test -n "$CC"; then
  3158. { echo "$as_me:$LINENO: result: $CC" >&5
  3159. echo "${ECHO_T}$CC" >&6; }
  3160. else
  3161. { echo "$as_me:$LINENO: result: no" >&5
  3162. echo "${ECHO_T}no" >&6; }
  3163. fi
  3164. fi
  3165. fi
  3166. if test -z "$CC"; then
  3167. # Extract the first word of "cc", so it can be a program name with args.
  3168. set dummy cc; ac_word=$2
  3169. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3170. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3171. if test "${ac_cv_prog_CC+set}" = set; then
  3172. echo $ECHO_N "(cached) $ECHO_C" >&6
  3173. else
  3174. if test -n "$CC"; then
  3175. ac_cv_prog_CC="$CC" # Let the user override the test.
  3176. else
  3177. ac_prog_rejected=no
  3178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3179. for as_dir in $PATH
  3180. do
  3181. IFS=$as_save_IFS
  3182. test -z "$as_dir" && as_dir=.
  3183. for ac_exec_ext in '' $ac_executable_extensions; do
  3184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3185. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3186. ac_prog_rejected=yes
  3187. continue
  3188. fi
  3189. ac_cv_prog_CC="cc"
  3190. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3191. break 2
  3192. fi
  3193. done
  3194. done
  3195. IFS=$as_save_IFS
  3196. if test $ac_prog_rejected = yes; then
  3197. # We found a bogon in the path, so make sure we never use it.
  3198. set dummy $ac_cv_prog_CC
  3199. shift
  3200. if test $# != 0; then
  3201. # We chose a different compiler from the bogus one.
  3202. # However, it has the same basename, so the bogon will be chosen
  3203. # first if we set CC to just the basename; use the full file name.
  3204. shift
  3205. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3206. fi
  3207. fi
  3208. fi
  3209. fi
  3210. CC=$ac_cv_prog_CC
  3211. if test -n "$CC"; then
  3212. { echo "$as_me:$LINENO: result: $CC" >&5
  3213. echo "${ECHO_T}$CC" >&6; }
  3214. else
  3215. { echo "$as_me:$LINENO: result: no" >&5
  3216. echo "${ECHO_T}no" >&6; }
  3217. fi
  3218. fi
  3219. if test -z "$CC"; then
  3220. if test -n "$ac_tool_prefix"; then
  3221. for ac_prog in cl.exe
  3222. do
  3223. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3224. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3225. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3226. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3227. if test "${ac_cv_prog_CC+set}" = set; then
  3228. echo $ECHO_N "(cached) $ECHO_C" >&6
  3229. else
  3230. if test -n "$CC"; then
  3231. ac_cv_prog_CC="$CC" # Let the user override the test.
  3232. else
  3233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3234. for as_dir in $PATH
  3235. do
  3236. IFS=$as_save_IFS
  3237. test -z "$as_dir" && as_dir=.
  3238. for ac_exec_ext in '' $ac_executable_extensions; do
  3239. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3240. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3241. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3242. break 2
  3243. fi
  3244. done
  3245. done
  3246. IFS=$as_save_IFS
  3247. fi
  3248. fi
  3249. CC=$ac_cv_prog_CC
  3250. if test -n "$CC"; then
  3251. { echo "$as_me:$LINENO: result: $CC" >&5
  3252. echo "${ECHO_T}$CC" >&6; }
  3253. else
  3254. { echo "$as_me:$LINENO: result: no" >&5
  3255. echo "${ECHO_T}no" >&6; }
  3256. fi
  3257. test -n "$CC" && break
  3258. done
  3259. fi
  3260. if test -z "$CC"; then
  3261. ac_ct_CC=$CC
  3262. for ac_prog in cl.exe
  3263. do
  3264. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3265. set dummy $ac_prog; ac_word=$2
  3266. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3267. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3268. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3269. echo $ECHO_N "(cached) $ECHO_C" >&6
  3270. else
  3271. if test -n "$ac_ct_CC"; then
  3272. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3273. else
  3274. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3275. for as_dir in $PATH
  3276. do
  3277. IFS=$as_save_IFS
  3278. test -z "$as_dir" && as_dir=.
  3279. for ac_exec_ext in '' $ac_executable_extensions; do
  3280. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3281. ac_cv_prog_ac_ct_CC="$ac_prog"
  3282. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3283. break 2
  3284. fi
  3285. done
  3286. done
  3287. IFS=$as_save_IFS
  3288. fi
  3289. fi
  3290. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3291. if test -n "$ac_ct_CC"; then
  3292. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3293. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3294. else
  3295. { echo "$as_me:$LINENO: result: no" >&5
  3296. echo "${ECHO_T}no" >&6; }
  3297. fi
  3298. test -n "$ac_ct_CC" && break
  3299. done
  3300. if test "x$ac_ct_CC" = x; then
  3301. CC=""
  3302. else
  3303. case $cross_compiling:$ac_tool_warned in
  3304. yes:)
  3305. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3306. whose name does not start with the host triplet. If you think this
  3307. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3308. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3309. whose name does not start with the host triplet. If you think this
  3310. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3311. ac_tool_warned=yes ;;
  3312. esac
  3313. CC=$ac_ct_CC
  3314. fi
  3315. fi
  3316. fi
  3317. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3318. See \`config.log' for more details." >&5
  3319. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3320. See \`config.log' for more details." >&2;}
  3321. { (exit 1); exit 1; }; }
  3322. # Provide some information about the compiler.
  3323. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3324. ac_compiler=`set X $ac_compile; echo $2`
  3325. { (ac_try="$ac_compiler --version >&5"
  3326. case "(($ac_try" in
  3327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3328. *) ac_try_echo=$ac_try;;
  3329. esac
  3330. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3331. (eval "$ac_compiler --version >&5") 2>&5
  3332. ac_status=$?
  3333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3334. (exit $ac_status); }
  3335. { (ac_try="$ac_compiler -v >&5"
  3336. case "(($ac_try" in
  3337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3338. *) ac_try_echo=$ac_try;;
  3339. esac
  3340. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3341. (eval "$ac_compiler -v >&5") 2>&5
  3342. ac_status=$?
  3343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3344. (exit $ac_status); }
  3345. { (ac_try="$ac_compiler -V >&5"
  3346. case "(($ac_try" in
  3347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3348. *) ac_try_echo=$ac_try;;
  3349. esac
  3350. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3351. (eval "$ac_compiler -V >&5") 2>&5
  3352. ac_status=$?
  3353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3354. (exit $ac_status); }
  3355. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3356. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3357. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3358. echo $ECHO_N "(cached) $ECHO_C" >&6
  3359. else
  3360. cat >conftest.$ac_ext <<_ACEOF
  3361. /* confdefs.h. */
  3362. _ACEOF
  3363. cat confdefs.h >>conftest.$ac_ext
  3364. cat >>conftest.$ac_ext <<_ACEOF
  3365. /* end confdefs.h. */
  3366. int
  3367. main ()
  3368. {
  3369. #ifndef __GNUC__
  3370. choke me
  3371. #endif
  3372. ;
  3373. return 0;
  3374. }
  3375. _ACEOF
  3376. rm -f conftest.$ac_objext
  3377. if { (ac_try="$ac_compile"
  3378. case "(($ac_try" in
  3379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3380. *) ac_try_echo=$ac_try;;
  3381. esac
  3382. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3383. (eval "$ac_compile") 2>conftest.er1
  3384. ac_status=$?
  3385. grep -v '^ *+' conftest.er1 >conftest.err
  3386. rm -f conftest.er1
  3387. cat conftest.err >&5
  3388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3389. (exit $ac_status); } && {
  3390. test -z "$ac_c_werror_flag" ||
  3391. test ! -s conftest.err
  3392. } && test -s conftest.$ac_objext; then
  3393. ac_compiler_gnu=yes
  3394. else
  3395. echo "$as_me: failed program was:" >&5
  3396. sed 's/^/| /' conftest.$ac_ext >&5
  3397. ac_compiler_gnu=no
  3398. fi
  3399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3400. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3401. fi
  3402. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3403. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3404. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3405. ac_test_CFLAGS=${CFLAGS+set}
  3406. ac_save_CFLAGS=$CFLAGS
  3407. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3408. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3409. if test "${ac_cv_prog_cc_g+set}" = set; then
  3410. echo $ECHO_N "(cached) $ECHO_C" >&6
  3411. else
  3412. ac_save_c_werror_flag=$ac_c_werror_flag
  3413. ac_c_werror_flag=yes
  3414. ac_cv_prog_cc_g=no
  3415. CFLAGS="-g"
  3416. cat >conftest.$ac_ext <<_ACEOF
  3417. /* confdefs.h. */
  3418. _ACEOF
  3419. cat confdefs.h >>conftest.$ac_ext
  3420. cat >>conftest.$ac_ext <<_ACEOF
  3421. /* end confdefs.h. */
  3422. int
  3423. main ()
  3424. {
  3425. ;
  3426. return 0;
  3427. }
  3428. _ACEOF
  3429. rm -f conftest.$ac_objext
  3430. if { (ac_try="$ac_compile"
  3431. case "(($ac_try" in
  3432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3433. *) ac_try_echo=$ac_try;;
  3434. esac
  3435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3436. (eval "$ac_compile") 2>conftest.er1
  3437. ac_status=$?
  3438. grep -v '^ *+' conftest.er1 >conftest.err
  3439. rm -f conftest.er1
  3440. cat conftest.err >&5
  3441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3442. (exit $ac_status); } && {
  3443. test -z "$ac_c_werror_flag" ||
  3444. test ! -s conftest.err
  3445. } && test -s conftest.$ac_objext; then
  3446. ac_cv_prog_cc_g=yes
  3447. else
  3448. echo "$as_me: failed program was:" >&5
  3449. sed 's/^/| /' conftest.$ac_ext >&5
  3450. CFLAGS=""
  3451. cat >conftest.$ac_ext <<_ACEOF
  3452. /* confdefs.h. */
  3453. _ACEOF
  3454. cat confdefs.h >>conftest.$ac_ext
  3455. cat >>conftest.$ac_ext <<_ACEOF
  3456. /* end confdefs.h. */
  3457. int
  3458. main ()
  3459. {
  3460. ;
  3461. return 0;
  3462. }
  3463. _ACEOF
  3464. rm -f conftest.$ac_objext
  3465. if { (ac_try="$ac_compile"
  3466. case "(($ac_try" in
  3467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3468. *) ac_try_echo=$ac_try;;
  3469. esac
  3470. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3471. (eval "$ac_compile") 2>conftest.er1
  3472. ac_status=$?
  3473. grep -v '^ *+' conftest.er1 >conftest.err
  3474. rm -f conftest.er1
  3475. cat conftest.err >&5
  3476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3477. (exit $ac_status); } && {
  3478. test -z "$ac_c_werror_flag" ||
  3479. test ! -s conftest.err
  3480. } && test -s conftest.$ac_objext; then
  3481. :
  3482. else
  3483. echo "$as_me: failed program was:" >&5
  3484. sed 's/^/| /' conftest.$ac_ext >&5
  3485. ac_c_werror_flag=$ac_save_c_werror_flag
  3486. CFLAGS="-g"
  3487. cat >conftest.$ac_ext <<_ACEOF
  3488. /* confdefs.h. */
  3489. _ACEOF
  3490. cat confdefs.h >>conftest.$ac_ext
  3491. cat >>conftest.$ac_ext <<_ACEOF
  3492. /* end confdefs.h. */
  3493. int
  3494. main ()
  3495. {
  3496. ;
  3497. return 0;
  3498. }
  3499. _ACEOF
  3500. rm -f conftest.$ac_objext
  3501. if { (ac_try="$ac_compile"
  3502. case "(($ac_try" in
  3503. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3504. *) ac_try_echo=$ac_try;;
  3505. esac
  3506. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3507. (eval "$ac_compile") 2>conftest.er1
  3508. ac_status=$?
  3509. grep -v '^ *+' conftest.er1 >conftest.err
  3510. rm -f conftest.er1
  3511. cat conftest.err >&5
  3512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3513. (exit $ac_status); } && {
  3514. test -z "$ac_c_werror_flag" ||
  3515. test ! -s conftest.err
  3516. } && test -s conftest.$ac_objext; then
  3517. ac_cv_prog_cc_g=yes
  3518. else
  3519. echo "$as_me: failed program was:" >&5
  3520. sed 's/^/| /' conftest.$ac_ext >&5
  3521. fi
  3522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3523. fi
  3524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3525. fi
  3526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3527. ac_c_werror_flag=$ac_save_c_werror_flag
  3528. fi
  3529. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3530. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3531. if test "$ac_test_CFLAGS" = set; then
  3532. CFLAGS=$ac_save_CFLAGS
  3533. elif test $ac_cv_prog_cc_g = yes; then
  3534. if test "$GCC" = yes; then
  3535. CFLAGS="-g -O2"
  3536. else
  3537. CFLAGS="-g"
  3538. fi
  3539. else
  3540. if test "$GCC" = yes; then
  3541. CFLAGS="-O2"
  3542. else
  3543. CFLAGS=
  3544. fi
  3545. fi
  3546. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3547. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3548. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3549. echo $ECHO_N "(cached) $ECHO_C" >&6
  3550. else
  3551. ac_cv_prog_cc_c89=no
  3552. ac_save_CC=$CC
  3553. cat >conftest.$ac_ext <<_ACEOF
  3554. /* confdefs.h. */
  3555. _ACEOF
  3556. cat confdefs.h >>conftest.$ac_ext
  3557. cat >>conftest.$ac_ext <<_ACEOF
  3558. /* end confdefs.h. */
  3559. #include <stdarg.h>
  3560. #include <stdio.h>
  3561. #include <sys/types.h>
  3562. #include <sys/stat.h>
  3563. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3564. struct buf { int x; };
  3565. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3566. static char *e (p, i)
  3567. char **p;
  3568. int i;
  3569. {
  3570. return p[i];
  3571. }
  3572. static char *f (char * (*g) (char **, int), char **p, ...)
  3573. {
  3574. char *s;
  3575. va_list v;
  3576. va_start (v,p);
  3577. s = g (p, va_arg (v,int));
  3578. va_end (v);
  3579. return s;
  3580. }
  3581. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3582. function prototypes and stuff, but not '\xHH' hex character constants.
  3583. These don't provoke an error unfortunately, instead are silently treated
  3584. as 'x'. The following induces an error, until -std is added to get
  3585. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3586. array size at least. It's necessary to write '\x00'==0 to get something
  3587. that's true only with -std. */
  3588. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3589. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3590. inside strings and character constants. */
  3591. #define FOO(x) 'x'
  3592. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3593. int test (int i, double x);
  3594. struct s1 {int (*f) (int a);};
  3595. struct s2 {int (*f) (double a);};
  3596. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3597. int argc;
  3598. char **argv;
  3599. int
  3600. main ()
  3601. {
  3602. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3603. ;
  3604. return 0;
  3605. }
  3606. _ACEOF
  3607. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3608. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3609. do
  3610. CC="$ac_save_CC $ac_arg"
  3611. rm -f conftest.$ac_objext
  3612. if { (ac_try="$ac_compile"
  3613. case "(($ac_try" in
  3614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3615. *) ac_try_echo=$ac_try;;
  3616. esac
  3617. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3618. (eval "$ac_compile") 2>conftest.er1
  3619. ac_status=$?
  3620. grep -v '^ *+' conftest.er1 >conftest.err
  3621. rm -f conftest.er1
  3622. cat conftest.err >&5
  3623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3624. (exit $ac_status); } && {
  3625. test -z "$ac_c_werror_flag" ||
  3626. test ! -s conftest.err
  3627. } && test -s conftest.$ac_objext; then
  3628. ac_cv_prog_cc_c89=$ac_arg
  3629. else
  3630. echo "$as_me: failed program was:" >&5
  3631. sed 's/^/| /' conftest.$ac_ext >&5
  3632. fi
  3633. rm -f core conftest.err conftest.$ac_objext
  3634. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3635. done
  3636. rm -f conftest.$ac_ext
  3637. CC=$ac_save_CC
  3638. fi
  3639. # AC_CACHE_VAL
  3640. case "x$ac_cv_prog_cc_c89" in
  3641. x)
  3642. { echo "$as_me:$LINENO: result: none needed" >&5
  3643. echo "${ECHO_T}none needed" >&6; } ;;
  3644. xno)
  3645. { echo "$as_me:$LINENO: result: unsupported" >&5
  3646. echo "${ECHO_T}unsupported" >&6; } ;;
  3647. *)
  3648. CC="$CC $ac_cv_prog_cc_c89"
  3649. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3650. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3651. esac
  3652. ac_ext=c
  3653. ac_cpp='$CPP $CPPFLAGS'
  3654. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3655. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3656. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3657. depcc="$CC" am_compiler_list=
  3658. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3659. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3660. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3661. echo $ECHO_N "(cached) $ECHO_C" >&6
  3662. else
  3663. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3664. # We make a subdir and do the tests there. Otherwise we can end up
  3665. # making bogus files that we don't know about and never remove. For
  3666. # instance it was reported that on HP-UX the gcc test will end up
  3667. # making a dummy file named `D' -- because `-MD' means `put the output
  3668. # in D'.
  3669. mkdir conftest.dir
  3670. # Copy depcomp to subdir because otherwise we won't find it if we're
  3671. # using a relative directory.
  3672. cp "$am_depcomp" conftest.dir
  3673. cd conftest.dir
  3674. # We will build objects and dependencies in a subdirectory because
  3675. # it helps to detect inapplicable dependency modes. For instance
  3676. # both Tru64's cc and ICC support -MD to output dependencies as a
  3677. # side effect of compilation, but ICC will put the dependencies in
  3678. # the current directory while Tru64 will put them in the object
  3679. # directory.
  3680. mkdir sub
  3681. am_cv_CC_dependencies_compiler_type=none
  3682. if test "$am_compiler_list" = ""; then
  3683. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3684. fi
  3685. for depmode in $am_compiler_list; do
  3686. # Setup a source with many dependencies, because some compilers
  3687. # like to wrap large dependency lists on column 80 (with \), and
  3688. # we should not choose a depcomp mode which is confused by this.
  3689. #
  3690. # We need to recreate these files for each test, as the compiler may
  3691. # overwrite some of them when testing with obscure command lines.
  3692. # This happens at least with the AIX C compiler.
  3693. : > sub/conftest.c
  3694. for i in 1 2 3 4 5 6; do
  3695. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3696. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3697. # Solaris 8's {/usr,}/bin/sh.
  3698. touch sub/conftst$i.h
  3699. done
  3700. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3701. case $depmode in
  3702. nosideeffect)
  3703. # after this tag, mechanisms are not by side-effect, so they'll
  3704. # only be used when explicitly requested
  3705. if test "x$enable_dependency_tracking" = xyes; then
  3706. continue
  3707. else
  3708. break
  3709. fi
  3710. ;;
  3711. none) break ;;
  3712. esac
  3713. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3714. # mode. It turns out that the SunPro C++ compiler does not properly
  3715. # handle `-M -o', and we need to detect this.
  3716. if depmode=$depmode \
  3717. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3718. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3719. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3720. >/dev/null 2>conftest.err &&
  3721. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3722. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3723. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3724. # icc doesn't choke on unknown options, it will just issue warnings
  3725. # or remarks (even with -Werror). So we grep stderr for any message
  3726. # that says an option was ignored or not supported.
  3727. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3728. # icc: Command line warning: ignoring option '-M'; no argument required
  3729. # The diagnosis changed in icc 8.0:
  3730. # icc: Command line remark: option '-MP' not supported
  3731. if (grep 'ignoring option' conftest.err ||
  3732. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3733. am_cv_CC_dependencies_compiler_type=$depmode
  3734. break
  3735. fi
  3736. fi
  3737. done
  3738. cd ..
  3739. rm -rf conftest.dir
  3740. else
  3741. am_cv_CC_dependencies_compiler_type=none
  3742. fi
  3743. fi
  3744. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3745. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3746. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3747. if
  3748. test "x$enable_dependency_tracking" != xno \
  3749. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3750. am__fastdepCC_TRUE=
  3751. am__fastdepCC_FALSE='#'
  3752. else
  3753. am__fastdepCC_TRUE='#'
  3754. am__fastdepCC_FALSE=
  3755. fi
  3756. # Find a good install program. We prefer a C program (faster),
  3757. # so one script is as good as another. But avoid the broken or
  3758. # incompatible versions:
  3759. # SysV /etc/install, /usr/sbin/install
  3760. # SunOS /usr/etc/install
  3761. # IRIX /sbin/install
  3762. # AIX /bin/install
  3763. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3764. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3765. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3766. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3767. # OS/2's system install, which has a completely different semantic
  3768. # ./install, which can be erroneously created by make from ./install.sh.
  3769. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3770. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3771. if test -z "$INSTALL"; then
  3772. if test "${ac_cv_path_install+set}" = set; then
  3773. echo $ECHO_N "(cached) $ECHO_C" >&6
  3774. else
  3775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3776. for as_dir in $PATH
  3777. do
  3778. IFS=$as_save_IFS
  3779. test -z "$as_dir" && as_dir=.
  3780. # Account for people who put trailing slashes in PATH elements.
  3781. case $as_dir/ in
  3782. ./ | .// | /cC/* | \
  3783. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3784. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3785. /usr/ucb/* ) ;;
  3786. *)
  3787. # OSF1 and SCO ODT 3.0 have their own names for install.
  3788. # Don't use installbsd from OSF since it installs stuff as root
  3789. # by default.
  3790. for ac_prog in ginstall scoinst install; do
  3791. for ac_exec_ext in '' $ac_executable_extensions; do
  3792. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3793. if test $ac_prog = install &&
  3794. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3795. # AIX install. It has an incompatible calling convention.
  3796. :
  3797. elif test $ac_prog = install &&
  3798. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3799. # program-specific install script used by HP pwplus--don't use.
  3800. :
  3801. else
  3802. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3803. break 3
  3804. fi
  3805. fi
  3806. done
  3807. done
  3808. ;;
  3809. esac
  3810. done
  3811. IFS=$as_save_IFS
  3812. fi
  3813. if test "${ac_cv_path_install+set}" = set; then
  3814. INSTALL=$ac_cv_path_install
  3815. else
  3816. # As a last resort, use the slow shell script. Don't cache a
  3817. # value for INSTALL within a source directory, because that will
  3818. # break other packages using the cache if that directory is
  3819. # removed, or if the value is a relative name.
  3820. INSTALL=$ac_install_sh
  3821. fi
  3822. fi
  3823. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3824. echo "${ECHO_T}$INSTALL" >&6; }
  3825. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3826. # It thinks the first close brace ends the variable substitution.
  3827. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3828. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3829. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3830. if test -n "$ac_tool_prefix"; then
  3831. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3832. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3833. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3834. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3835. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3836. echo $ECHO_N "(cached) $ECHO_C" >&6
  3837. else
  3838. if test -n "$RANLIB"; then
  3839. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3840. else
  3841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3842. for as_dir in $PATH
  3843. do
  3844. IFS=$as_save_IFS
  3845. test -z "$as_dir" && as_dir=.
  3846. for ac_exec_ext in '' $ac_executable_extensions; do
  3847. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3848. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3849. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3850. break 2
  3851. fi
  3852. done
  3853. done
  3854. IFS=$as_save_IFS
  3855. fi
  3856. fi
  3857. RANLIB=$ac_cv_prog_RANLIB
  3858. if test -n "$RANLIB"; then
  3859. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3860. echo "${ECHO_T}$RANLIB" >&6; }
  3861. else
  3862. { echo "$as_me:$LINENO: result: no" >&5
  3863. echo "${ECHO_T}no" >&6; }
  3864. fi
  3865. fi
  3866. if test -z "$ac_cv_prog_RANLIB"; then
  3867. ac_ct_RANLIB=$RANLIB
  3868. # Extract the first word of "ranlib", so it can be a program name with args.
  3869. set dummy ranlib; ac_word=$2
  3870. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3871. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3872. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3873. echo $ECHO_N "(cached) $ECHO_C" >&6
  3874. else
  3875. if test -n "$ac_ct_RANLIB"; then
  3876. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3877. else
  3878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3879. for as_dir in $PATH
  3880. do
  3881. IFS=$as_save_IFS
  3882. test -z "$as_dir" && as_dir=.
  3883. for ac_exec_ext in '' $ac_executable_extensions; do
  3884. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3885. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3886. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3887. break 2
  3888. fi
  3889. done
  3890. done
  3891. IFS=$as_save_IFS
  3892. fi
  3893. fi
  3894. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3895. if test -n "$ac_ct_RANLIB"; then
  3896. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3897. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3898. else
  3899. { echo "$as_me:$LINENO: result: no" >&5
  3900. echo "${ECHO_T}no" >&6; }
  3901. fi
  3902. if test "x$ac_ct_RANLIB" = x; then
  3903. RANLIB=":"
  3904. else
  3905. case $cross_compiling:$ac_tool_warned in
  3906. yes:)
  3907. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3908. whose name does not start with the host triplet. If you think this
  3909. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3910. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3911. whose name does not start with the host triplet. If you think this
  3912. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3913. ac_tool_warned=yes ;;
  3914. esac
  3915. RANLIB=$ac_ct_RANLIB
  3916. fi
  3917. else
  3918. RANLIB="$ac_cv_prog_RANLIB"
  3919. fi
  3920. for ac_prog in 'bison -y' byacc
  3921. do
  3922. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3923. set dummy $ac_prog; ac_word=$2
  3924. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3925. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3926. if test "${ac_cv_prog_YACC+set}" = set; then
  3927. echo $ECHO_N "(cached) $ECHO_C" >&6
  3928. else
  3929. if test -n "$YACC"; then
  3930. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3931. else
  3932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3933. for as_dir in $PATH
  3934. do
  3935. IFS=$as_save_IFS
  3936. test -z "$as_dir" && as_dir=.
  3937. for ac_exec_ext in '' $ac_executable_extensions; do
  3938. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3939. ac_cv_prog_YACC="$ac_prog"
  3940. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3941. break 2
  3942. fi
  3943. done
  3944. done
  3945. IFS=$as_save_IFS
  3946. fi
  3947. fi
  3948. YACC=$ac_cv_prog_YACC
  3949. if test -n "$YACC"; then
  3950. { echo "$as_me:$LINENO: result: $YACC" >&5
  3951. echo "${ECHO_T}$YACC" >&6; }
  3952. else
  3953. { echo "$as_me:$LINENO: result: no" >&5
  3954. echo "${ECHO_T}no" >&6; }
  3955. fi
  3956. test -n "$YACC" && break
  3957. done
  3958. test -n "$YACC" || YACC="yacc"
  3959. # Checks for libraries.
  3960. if test "x$with_libxml2" = "xyes"; then
  3961. # Check whether --with-xml-prefix was given.
  3962. if test "${with_xml_prefix+set}" = set; then
  3963. withval=$with_xml_prefix; xml_config_prefix="$withval"
  3964. else
  3965. xml_config_prefix=""
  3966. fi
  3967. # Check whether --with-xml-exec-prefix was given.
  3968. if test "${with_xml_exec_prefix+set}" = set; then
  3969. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  3970. else
  3971. xml_config_exec_prefix=""
  3972. fi
  3973. # Check whether --enable-xmltest was given.
  3974. if test "${enable_xmltest+set}" = set; then
  3975. enableval=$enable_xmltest;
  3976. else
  3977. enable_xmltest=yes
  3978. fi
  3979. if test x$xml_config_exec_prefix != x ; then
  3980. xml_config_args="$xml_config_args"
  3981. if test x${XML2_CONFIG+set} != xset ; then
  3982. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  3983. fi
  3984. fi
  3985. if test x$xml_config_prefix != x ; then
  3986. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  3987. if test x${XML2_CONFIG+set} != xset ; then
  3988. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  3989. fi
  3990. fi
  3991. # Extract the first word of "xml2-config", so it can be a program name with args.
  3992. set dummy xml2-config; ac_word=$2
  3993. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3994. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3995. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  3996. echo $ECHO_N "(cached) $ECHO_C" >&6
  3997. else
  3998. case $XML2_CONFIG in
  3999. [\\/]* | ?:[\\/]*)
  4000. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4001. ;;
  4002. *)
  4003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4004. for as_dir in $PATH
  4005. do
  4006. IFS=$as_save_IFS
  4007. test -z "$as_dir" && as_dir=.
  4008. for ac_exec_ext in '' $ac_executable_extensions; do
  4009. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4010. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4011. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4012. break 2
  4013. fi
  4014. done
  4015. done
  4016. IFS=$as_save_IFS
  4017. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4018. ;;
  4019. esac
  4020. fi
  4021. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4022. if test -n "$XML2_CONFIG"; then
  4023. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4024. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4025. else
  4026. { echo "$as_me:$LINENO: result: no" >&5
  4027. echo "${ECHO_T}no" >&6; }
  4028. fi
  4029. min_xml_version=2.6.24
  4030. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4031. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4032. no_xml=""
  4033. if test "$XML2_CONFIG" = "no" ; then
  4034. no_xml=yes
  4035. else
  4036. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4037. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4038. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4039. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4040. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4041. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4042. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4043. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4044. if test "x$enable_xmltest" = "xyes" ; then
  4045. ac_save_CPPFLAGS="$CPPFLAGS"
  4046. ac_save_LIBS="$LIBS"
  4047. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4048. LIBS="$XML_LIBS $LIBS"
  4049. rm -f conf.xmltest
  4050. if test "$cross_compiling" = yes; then
  4051. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4052. else
  4053. cat >conftest.$ac_ext <<_ACEOF
  4054. /* confdefs.h. */
  4055. _ACEOF
  4056. cat confdefs.h >>conftest.$ac_ext
  4057. cat >>conftest.$ac_ext <<_ACEOF
  4058. /* end confdefs.h. */
  4059. #include <stdlib.h>
  4060. #include <stdio.h>
  4061. #include <string.h>
  4062. #include <libxml/xmlversion.h>
  4063. int
  4064. main()
  4065. {
  4066. int xml_major_version, xml_minor_version, xml_micro_version;
  4067. int major, minor, micro;
  4068. char *tmp_version;
  4069. system("touch conf.xmltest");
  4070. /* Capture xml2-config output via autoconf/configure variables */
  4071. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4072. tmp_version = (char *)strdup("$min_xml_version");
  4073. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4074. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4075. exit(1);
  4076. }
  4077. free(tmp_version);
  4078. /* Capture the version information from the header files */
  4079. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  4080. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  4081. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  4082. exit(1);
  4083. }
  4084. free(tmp_version);
  4085. /* Compare xml2-config output to the libxml headers */
  4086. if ((xml_major_version != $xml_config_major_version) ||
  4087. (xml_minor_version != $xml_config_minor_version) ||
  4088. (xml_micro_version != $xml_config_micro_version))
  4089. {
  4090. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  4091. xml_major_version, xml_minor_version, xml_micro_version);
  4092. printf("*** xml2-config (version %d.%d.%d)\n",
  4093. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  4094. return 1;
  4095. }
  4096. /* Compare the headers to the library to make sure we match */
  4097. /* Less than ideal -- doesn't provide us with return value feedback,
  4098. * only exits if there's a serious mismatch between header and library.
  4099. */
  4100. LIBXML_TEST_VERSION;
  4101. /* Test that the library is greater than our minimum version */
  4102. if ((xml_major_version > major) ||
  4103. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  4104. ((xml_major_version == major) && (xml_minor_version == minor) &&
  4105. (xml_micro_version >= micro)))
  4106. {
  4107. return 0;
  4108. }
  4109. else
  4110. {
  4111. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  4112. xml_major_version, xml_minor_version, xml_micro_version);
  4113. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  4114. major, minor, micro);
  4115. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  4116. printf("***\n");
  4117. printf("*** If you have already installed a sufficiently new version, this error\n");
  4118. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  4119. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4120. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  4121. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  4122. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4123. printf("*** so that the correct libraries are found at run-time))\n");
  4124. }
  4125. return 1;
  4126. }
  4127. _ACEOF
  4128. rm -f conftest$ac_exeext
  4129. if { (ac_try="$ac_link"
  4130. case "(($ac_try" in
  4131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4132. *) ac_try_echo=$ac_try;;
  4133. esac
  4134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4135. (eval "$ac_link") 2>&5
  4136. ac_status=$?
  4137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4138. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4139. { (case "(($ac_try" in
  4140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4141. *) ac_try_echo=$ac_try;;
  4142. esac
  4143. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4144. (eval "$ac_try") 2>&5
  4145. ac_status=$?
  4146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4147. (exit $ac_status); }; }; then
  4148. :
  4149. else
  4150. echo "$as_me: program exited with status $ac_status" >&5
  4151. echo "$as_me: failed program was:" >&5
  4152. sed 's/^/| /' conftest.$ac_ext >&5
  4153. ( exit $ac_status )
  4154. no_xml=yes
  4155. fi
  4156. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4157. fi
  4158. CPPFLAGS="$ac_save_CPPFLAGS"
  4159. LIBS="$ac_save_LIBS"
  4160. fi
  4161. fi
  4162. if test "x$no_xml" = x ; then
  4163. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  4164. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  4165. have_libxml2=yes
  4166. else
  4167. { echo "$as_me:$LINENO: result: no" >&5
  4168. echo "${ECHO_T}no" >&6; }
  4169. if test "$XML2_CONFIG" = "no" ; then
  4170. echo "*** The xml2-config script installed by LIBXML could not be found"
  4171. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  4172. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  4173. echo "*** full path to xml2-config."
  4174. else
  4175. if test -f conf.xmltest ; then
  4176. :
  4177. else
  4178. echo "*** Could not run libxml test program, checking why..."
  4179. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4180. LIBS="$LIBS $XML_LIBS"
  4181. cat >conftest.$ac_ext <<_ACEOF
  4182. /* confdefs.h. */
  4183. _ACEOF
  4184. cat confdefs.h >>conftest.$ac_ext
  4185. cat >>conftest.$ac_ext <<_ACEOF
  4186. /* end confdefs.h. */
  4187. #include <libxml/xmlversion.h>
  4188. #include <stdio.h>
  4189. int
  4190. main ()
  4191. {
  4192. LIBXML_TEST_VERSION; return 0;
  4193. ;
  4194. return 0;
  4195. }
  4196. _ACEOF
  4197. rm -f conftest.$ac_objext conftest$ac_exeext
  4198. if { (ac_try="$ac_link"
  4199. case "(($ac_try" in
  4200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4201. *) ac_try_echo=$ac_try;;
  4202. esac
  4203. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4204. (eval "$ac_link") 2>conftest.er1
  4205. ac_status=$?
  4206. grep -v '^ *+' conftest.er1 >conftest.err
  4207. rm -f conftest.er1
  4208. cat conftest.err >&5
  4209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4210. (exit $ac_status); } && {
  4211. test -z "$ac_c_werror_flag" ||
  4212. test ! -s conftest.err
  4213. } && test -s conftest$ac_exeext &&
  4214. $as_test_x conftest$ac_exeext; then
  4215. echo "*** The test program compiled, but did not run. This usually means"
  4216. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  4217. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  4218. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4219. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4220. echo "*** is required on your system"
  4221. echo "***"
  4222. echo "*** If you have an old version installed, it is best to remove it, although"
  4223. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4224. else
  4225. echo "$as_me: failed program was:" >&5
  4226. sed 's/^/| /' conftest.$ac_ext >&5
  4227. echo "*** The test program failed to compile or link. See the file config.log for the"
  4228. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  4229. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  4230. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  4231. fi
  4232. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4233. conftest$ac_exeext conftest.$ac_ext
  4234. CPPFLAGS="$ac_save_CPPFLAGS"
  4235. LIBS="$ac_save_LIBS"
  4236. fi
  4237. fi
  4238. XML_CPPFLAGS=""
  4239. XML_LIBS=""
  4240. :
  4241. fi
  4242. rm -f conf.xmltest
  4243. if test "x$have_libxml2" = "xyes"; then
  4244. cat >>confdefs.h <<\_ACEOF
  4245. #define HAVE_LIBXML2 1
  4246. _ACEOF
  4247. fi
  4248. fi
  4249. if test "x$with_gnutls" = "xyes"; then
  4250. # Check whether --with-libgnutls-prefix was given.
  4251. if test "${with_libgnutls_prefix+set}" = set; then
  4252. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  4253. else
  4254. libgnutls_config_prefix=""
  4255. fi
  4256. if test x$libgnutls_config_prefix != x ; then
  4257. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  4258. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  4259. fi
  4260. fi
  4261. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  4262. set dummy libgnutls-config; ac_word=$2
  4263. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4264. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4265. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  4266. echo $ECHO_N "(cached) $ECHO_C" >&6
  4267. else
  4268. case $LIBGNUTLS_CONFIG in
  4269. [\\/]* | ?:[\\/]*)
  4270. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  4271. ;;
  4272. *)
  4273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4274. for as_dir in $PATH
  4275. do
  4276. IFS=$as_save_IFS
  4277. test -z "$as_dir" && as_dir=.
  4278. for ac_exec_ext in '' $ac_executable_extensions; do
  4279. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4280. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4281. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4282. break 2
  4283. fi
  4284. done
  4285. done
  4286. IFS=$as_save_IFS
  4287. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  4288. ;;
  4289. esac
  4290. fi
  4291. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  4292. if test -n "$LIBGNUTLS_CONFIG"; then
  4293. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  4294. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  4295. else
  4296. { echo "$as_me:$LINENO: result: no" >&5
  4297. echo "${ECHO_T}no" >&6; }
  4298. fi
  4299. min_libgnutls_version=1.2.9
  4300. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  4301. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  4302. no_libgnutls=""
  4303. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4304. no_libgnutls=yes
  4305. else
  4306. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  4307. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  4308. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  4309. ac_save_CFLAGS="$CFLAGS"
  4310. ac_save_LIBS="$LIBS"
  4311. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4312. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4313. rm -f conf.libgnutlstest
  4314. if test "$cross_compiling" = yes; then
  4315. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4316. else
  4317. cat >conftest.$ac_ext <<_ACEOF
  4318. /* confdefs.h. */
  4319. _ACEOF
  4320. cat confdefs.h >>conftest.$ac_ext
  4321. cat >>conftest.$ac_ext <<_ACEOF
  4322. /* end confdefs.h. */
  4323. #include <stdio.h>
  4324. #include <stdlib.h>
  4325. #include <string.h>
  4326. #include <gnutls/gnutls.h>
  4327. int
  4328. main ()
  4329. {
  4330. system ("touch conf.libgnutlstest");
  4331. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  4332. {
  4333. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  4334. "$libgnutls_config_version", gnutls_check_version(NULL) );
  4335. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  4336. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  4337. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  4338. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  4339. printf("*** required on your system.\n");
  4340. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  4341. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  4342. printf("*** before re-running configure\n");
  4343. }
  4344. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  4345. {
  4346. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  4347. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  4348. }
  4349. else
  4350. {
  4351. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  4352. {
  4353. return 0;
  4354. }
  4355. else
  4356. {
  4357. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  4358. gnutls_check_version(NULL) );
  4359. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  4360. "$min_libgnutls_version" );
  4361. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  4362. printf("*** \n");
  4363. printf("*** If you have already installed a sufficiently new version, this error\n");
  4364. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  4365. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4366. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  4367. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  4368. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4369. printf("*** so that the correct libraries are found at run-time))\n");
  4370. }
  4371. }
  4372. return 1;
  4373. }
  4374. _ACEOF
  4375. rm -f conftest$ac_exeext
  4376. if { (ac_try="$ac_link"
  4377. case "(($ac_try" in
  4378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4379. *) ac_try_echo=$ac_try;;
  4380. esac
  4381. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4382. (eval "$ac_link") 2>&5
  4383. ac_status=$?
  4384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4385. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4386. { (case "(($ac_try" in
  4387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4388. *) ac_try_echo=$ac_try;;
  4389. esac
  4390. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4391. (eval "$ac_try") 2>&5
  4392. ac_status=$?
  4393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4394. (exit $ac_status); }; }; then
  4395. :
  4396. else
  4397. echo "$as_me: program exited with status $ac_status" >&5
  4398. echo "$as_me: failed program was:" >&5
  4399. sed 's/^/| /' conftest.$ac_ext >&5
  4400. ( exit $ac_status )
  4401. no_libgnutls=yes
  4402. fi
  4403. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4404. fi
  4405. CFLAGS="$ac_save_CFLAGS"
  4406. LIBS="$ac_save_LIBS"
  4407. fi
  4408. if test "x$no_libgnutls" = x ; then
  4409. { echo "$as_me:$LINENO: result: yes" >&5
  4410. echo "${ECHO_T}yes" >&6; }
  4411. have_libgnutls=yes
  4412. else
  4413. if test -f conf.libgnutlstest ; then
  4414. :
  4415. else
  4416. { echo "$as_me:$LINENO: result: no" >&5
  4417. echo "${ECHO_T}no" >&6; }
  4418. fi
  4419. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4420. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  4421. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  4422. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  4423. echo "*** full path to libgnutls-config."
  4424. else
  4425. if test -f conf.libgnutlstest ; then
  4426. :
  4427. else
  4428. echo "*** Could not run libgnutls test program, checking why..."
  4429. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4430. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4431. cat >conftest.$ac_ext <<_ACEOF
  4432. /* confdefs.h. */
  4433. _ACEOF
  4434. cat confdefs.h >>conftest.$ac_ext
  4435. cat >>conftest.$ac_ext <<_ACEOF
  4436. /* end confdefs.h. */
  4437. #include <stdio.h>
  4438. #include <stdlib.h>
  4439. #include <string.h>
  4440. #include <gnutls/gnutls.h>
  4441. int
  4442. main ()
  4443. {
  4444. return !!gnutls_check_version(NULL);
  4445. ;
  4446. return 0;
  4447. }
  4448. _ACEOF
  4449. rm -f conftest.$ac_objext conftest$ac_exeext
  4450. if { (ac_try="$ac_link"
  4451. case "(($ac_try" in
  4452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4453. *) ac_try_echo=$ac_try;;
  4454. esac
  4455. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4456. (eval "$ac_link") 2>conftest.er1
  4457. ac_status=$?
  4458. grep -v '^ *+' conftest.er1 >conftest.err
  4459. rm -f conftest.er1
  4460. cat conftest.err >&5
  4461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4462. (exit $ac_status); } && {
  4463. test -z "$ac_c_werror_flag" ||
  4464. test ! -s conftest.err
  4465. } && test -s conftest$ac_exeext &&
  4466. $as_test_x conftest$ac_exeext; then
  4467. echo "*** The test program compiled, but did not run. This usually means"
  4468. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  4469. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  4470. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4471. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4472. echo "*** is required on your system"
  4473. echo "***"
  4474. echo "*** If you have an old version installed, it is best to remove it, although"
  4475. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4476. echo "***"
  4477. else
  4478. echo "$as_me: failed program was:" >&5
  4479. sed 's/^/| /' conftest.$ac_ext >&5
  4480. echo "*** The test program failed to compile or link. See the file config.log for the"
  4481. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  4482. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  4483. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  4484. fi
  4485. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4486. conftest$ac_exeext conftest.$ac_ext
  4487. CFLAGS="$ac_save_CFLAGS"
  4488. LIBS="$ac_save_LIBS"
  4489. fi
  4490. fi
  4491. LIBGNUTLS_CFLAGS=""
  4492. LIBGNUTLS_LIBS=""
  4493. :
  4494. fi
  4495. rm -f conf.libgnutlstest
  4496. if test "x$have_libgnutls" = "xyes"; then
  4497. cat >>confdefs.h <<\_ACEOF
  4498. #define HAVE_LIBGNUTLS 1
  4499. _ACEOF
  4500. fi
  4501. fi
  4502. if test "x$have_libgnutls" = "xyes"; then
  4503. # Check whether --with-libgcrypt-prefix was given.
  4504. if test "${with_libgcrypt_prefix+set}" = set; then
  4505. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  4506. else
  4507. libgcrypt_config_prefix=""
  4508. fi
  4509. if test x$libgcrypt_config_prefix != x ; then
  4510. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  4511. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  4512. fi
  4513. fi
  4514. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  4515. set dummy libgcrypt-config; ac_word=$2
  4516. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4517. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4518. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  4519. echo $ECHO_N "(cached) $ECHO_C" >&6
  4520. else
  4521. case $LIBGCRYPT_CONFIG in
  4522. [\\/]* | ?:[\\/]*)
  4523. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  4524. ;;
  4525. *)
  4526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4527. for as_dir in $PATH
  4528. do
  4529. IFS=$as_save_IFS
  4530. test -z "$as_dir" && as_dir=.
  4531. for ac_exec_ext in '' $ac_executable_extensions; do
  4532. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4533. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4534. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4535. break 2
  4536. fi
  4537. done
  4538. done
  4539. IFS=$as_save_IFS
  4540. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  4541. ;;
  4542. esac
  4543. fi
  4544. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  4545. if test -n "$LIBGCRYPT_CONFIG"; then
  4546. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  4547. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  4548. else
  4549. { echo "$as_me:$LINENO: result: no" >&5
  4550. echo "${ECHO_T}no" >&6; }
  4551. fi
  4552. tmp=1.2.2
  4553. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  4554. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  4555. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  4556. else
  4557. req_libgcrypt_api=0
  4558. min_libgcrypt_version="$tmp"
  4559. fi
  4560. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  4561. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  4562. ok=no
  4563. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  4564. req_major=`echo $min_libgcrypt_version | \
  4565. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  4566. req_minor=`echo $min_libgcrypt_version | \
  4567. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  4568. req_micro=`echo $min_libgcrypt_version | \
  4569. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  4570. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  4571. major=`echo $libgcrypt_config_version | \
  4572. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  4573. minor=`echo $libgcrypt_config_version | \
  4574. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  4575. micro=`echo $libgcrypt_config_version | \
  4576. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  4577. if test "$major" -gt "$req_major"; then
  4578. ok=yes
  4579. else
  4580. if test "$major" -eq "$req_major"; then
  4581. if test "$minor" -gt "$req_minor"; then
  4582. ok=yes
  4583. else
  4584. if test "$minor" -eq "$req_minor"; then
  4585. if test "$micro" -ge "$req_micro"; then
  4586. ok=yes
  4587. fi
  4588. fi
  4589. fi
  4590. fi
  4591. fi
  4592. fi
  4593. if test $ok = yes; then
  4594. { echo "$as_me:$LINENO: result: yes" >&5
  4595. echo "${ECHO_T}yes" >&6; }
  4596. else
  4597. { echo "$as_me:$LINENO: result: no" >&5
  4598. echo "${ECHO_T}no" >&6; }
  4599. fi
  4600. if test $ok = yes; then
  4601. # If we have a recent libgcrypt, we should also check that the
  4602. # API is compatible
  4603. if test "$req_libgcrypt_api" -gt 0 ; then
  4604. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  4605. if test "$tmp" -gt 0 ; then
  4606. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  4607. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  4608. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  4609. { echo "$as_me:$LINENO: result: okay" >&5
  4610. echo "${ECHO_T}okay" >&6; }
  4611. else
  4612. ok=no
  4613. { echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  4614. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6; }
  4615. fi
  4616. fi
  4617. fi
  4618. fi
  4619. if test $ok = yes; then
  4620. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  4621. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  4622. have_libgcrypt=yes
  4623. else
  4624. LIBGCRYPT_CFLAGS=""
  4625. LIBGCRYPT_LIBS=""
  4626. :
  4627. fi
  4628. if test "x$have_libgcrypt" = "xyes"; then
  4629. cat >>confdefs.h <<\_ACEOF
  4630. #define HAVE_LIBGCRYPT 1
  4631. _ACEOF
  4632. fi
  4633. fi
  4634. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  4635. # Check whether --with-openssl-prefix was given.
  4636. if test "${with_openssl_prefix+set}" = set; then
  4637. withval=$with_openssl_prefix; openssl_prefix=$withval
  4638. else
  4639. openssl_prefix=""
  4640. fi
  4641. if test "x$openssl_prefix" = "x"; then
  4642. openssl_prefix="/usr/local"
  4643. fi
  4644. openssl_prefix_lib=$openssl_prefix/lib
  4645. openssl_prefix_include=$openssl_prefix/include
  4646. LIBS_save=$LIBS
  4647. CPPFLAGS_save=$CPPFLAGS
  4648. LIBS="-L$openssl_prefix_lib $LIBS"
  4649. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4650. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4651. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  4652. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4653. echo $ECHO_N "(cached) $ECHO_C" >&6
  4654. else
  4655. ac_check_lib_save_LIBS=$LIBS
  4656. LIBS="-lssl $LIBS"
  4657. cat >conftest.$ac_ext <<_ACEOF
  4658. /* confdefs.h. */
  4659. _ACEOF
  4660. cat confdefs.h >>conftest.$ac_ext
  4661. cat >>conftest.$ac_ext <<_ACEOF
  4662. /* end confdefs.h. */
  4663. /* Override any GCC internal prototype to avoid an error.
  4664. Use char because int might match the return type of a GCC
  4665. builtin and then its argument prototype would still apply. */
  4666. #ifdef __cplusplus
  4667. extern "C"
  4668. #endif
  4669. char SSL_library_init ();
  4670. int
  4671. main ()
  4672. {
  4673. return SSL_library_init ();
  4674. ;
  4675. return 0;
  4676. }
  4677. _ACEOF
  4678. rm -f conftest.$ac_objext conftest$ac_exeext
  4679. if { (ac_try="$ac_link"
  4680. case "(($ac_try" in
  4681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4682. *) ac_try_echo=$ac_try;;
  4683. esac
  4684. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4685. (eval "$ac_link") 2>conftest.er1
  4686. ac_status=$?
  4687. grep -v '^ *+' conftest.er1 >conftest.err
  4688. rm -f conftest.er1
  4689. cat conftest.err >&5
  4690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4691. (exit $ac_status); } && {
  4692. test -z "$ac_c_werror_flag" ||
  4693. test ! -s conftest.err
  4694. } && test -s conftest$ac_exeext &&
  4695. $as_test_x conftest$ac_exeext; then
  4696. ac_cv_lib_ssl_SSL_library_init=yes
  4697. else
  4698. echo "$as_me: failed program was:" >&5
  4699. sed 's/^/| /' conftest.$ac_ext >&5
  4700. ac_cv_lib_ssl_SSL_library_init=no
  4701. fi
  4702. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4703. conftest$ac_exeext conftest.$ac_ext
  4704. LIBS=$ac_check_lib_save_LIBS
  4705. fi
  4706. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4707. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  4708. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4709. have_openssl=yes; LIBS="-lssl $LIBS"
  4710. fi
  4711. if test "x$have_openssl" = "xyes"; then
  4712. have_openssl=no
  4713. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4714. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  4715. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4716. echo $ECHO_N "(cached) $ECHO_C" >&6
  4717. else
  4718. ac_check_lib_save_LIBS=$LIBS
  4719. LIBS="-lcrypto $LIBS"
  4720. cat >conftest.$ac_ext <<_ACEOF
  4721. /* confdefs.h. */
  4722. _ACEOF
  4723. cat confdefs.h >>conftest.$ac_ext
  4724. cat >>conftest.$ac_ext <<_ACEOF
  4725. /* end confdefs.h. */
  4726. int
  4727. main ()
  4728. {
  4729. return main ();
  4730. ;
  4731. return 0;
  4732. }
  4733. _ACEOF
  4734. rm -f conftest.$ac_objext conftest$ac_exeext
  4735. if { (ac_try="$ac_link"
  4736. case "(($ac_try" in
  4737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4738. *) ac_try_echo=$ac_try;;
  4739. esac
  4740. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4741. (eval "$ac_link") 2>conftest.er1
  4742. ac_status=$?
  4743. grep -v '^ *+' conftest.er1 >conftest.err
  4744. rm -f conftest.er1
  4745. cat conftest.err >&5
  4746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4747. (exit $ac_status); } && {
  4748. test -z "$ac_c_werror_flag" ||
  4749. test ! -s conftest.err
  4750. } && test -s conftest$ac_exeext &&
  4751. $as_test_x conftest$ac_exeext; then
  4752. ac_cv_lib_crypto_main=yes
  4753. else
  4754. echo "$as_me: failed program was:" >&5
  4755. sed 's/^/| /' conftest.$ac_ext >&5
  4756. ac_cv_lib_crypto_main=no
  4757. fi
  4758. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4759. conftest$ac_exeext conftest.$ac_ext
  4760. LIBS=$ac_check_lib_save_LIBS
  4761. fi
  4762. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4763. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  4764. if test $ac_cv_lib_crypto_main = yes; then
  4765. have_openssl=yes; LIBS="-lcrypto $LIBS"
  4766. fi
  4767. if test "x$have_openssl" = "xyes"; then
  4768. cat >>confdefs.h <<\_ACEOF
  4769. #define HAVE_LIBSSL 1
  4770. _ACEOF
  4771. for ac_func in EVP_DigestInit_ex
  4772. do
  4773. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4774. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  4775. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  4776. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  4777. echo $ECHO_N "(cached) $ECHO_C" >&6
  4778. else
  4779. cat >conftest.$ac_ext <<_ACEOF
  4780. /* confdefs.h. */
  4781. _ACEOF
  4782. cat confdefs.h >>conftest.$ac_ext
  4783. cat >>conftest.$ac_ext <<_ACEOF
  4784. /* end confdefs.h. */
  4785. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4786. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4787. #define $ac_func innocuous_$ac_func
  4788. /* System header to define __stub macros and hopefully few prototypes,
  4789. which can conflict with char $ac_func (); below.
  4790. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4791. <limits.h> exists even on freestanding compilers. */
  4792. #ifdef __STDC__
  4793. # include <limits.h>
  4794. #else
  4795. # include <assert.h>
  4796. #endif
  4797. #undef $ac_func
  4798. /* Override any GCC internal prototype to avoid an error.
  4799. Use char because int might match the return type of a GCC
  4800. builtin and then its argument prototype would still apply. */
  4801. #ifdef __cplusplus
  4802. extern "C"
  4803. #endif
  4804. char $ac_func ();
  4805. /* The GNU C library defines this for functions which it implements
  4806. to always fail with ENOSYS. Some functions are actually named
  4807. something starting with __ and the normal name is an alias. */
  4808. #if defined __stub_$ac_func || defined __stub___$ac_func
  4809. choke me
  4810. #endif
  4811. int
  4812. main ()
  4813. {
  4814. return $ac_func ();
  4815. ;
  4816. return 0;
  4817. }
  4818. _ACEOF
  4819. rm -f conftest.$ac_objext conftest$ac_exeext
  4820. if { (ac_try="$ac_link"
  4821. case "(($ac_try" in
  4822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4823. *) ac_try_echo=$ac_try;;
  4824. esac
  4825. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4826. (eval "$ac_link") 2>conftest.er1
  4827. ac_status=$?
  4828. grep -v '^ *+' conftest.er1 >conftest.err
  4829. rm -f conftest.er1
  4830. cat conftest.err >&5
  4831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4832. (exit $ac_status); } && {
  4833. test -z "$ac_c_werror_flag" ||
  4834. test ! -s conftest.err
  4835. } && test -s conftest$ac_exeext &&
  4836. $as_test_x conftest$ac_exeext; then
  4837. eval "$as_ac_var=yes"
  4838. else
  4839. echo "$as_me: failed program was:" >&5
  4840. sed 's/^/| /' conftest.$ac_ext >&5
  4841. eval "$as_ac_var=no"
  4842. fi
  4843. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4844. conftest$ac_exeext conftest.$ac_ext
  4845. fi
  4846. ac_res=`eval echo '${'$as_ac_var'}'`
  4847. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4848. echo "${ECHO_T}$ac_res" >&6; }
  4849. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4850. cat >>confdefs.h <<_ACEOF
  4851. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4852. _ACEOF
  4853. have_digestinit_ex=yes
  4854. fi
  4855. done
  4856. if test "x$have_digestinit_ex" = "x"; then
  4857. cat >>confdefs.h <<\_ACEOF
  4858. #define HAVE_OLD_LIBSSL 1
  4859. _ACEOF
  4860. fi
  4861. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4862. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4863. for ac_func in EVP_sha256
  4864. do
  4865. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4866. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  4867. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  4868. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  4869. echo $ECHO_N "(cached) $ECHO_C" >&6
  4870. else
  4871. cat >conftest.$ac_ext <<_ACEOF
  4872. /* confdefs.h. */
  4873. _ACEOF
  4874. cat confdefs.h >>conftest.$ac_ext
  4875. cat >>conftest.$ac_ext <<_ACEOF
  4876. /* end confdefs.h. */
  4877. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4878. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4879. #define $ac_func innocuous_$ac_func
  4880. /* System header to define __stub macros and hopefully few prototypes,
  4881. which can conflict with char $ac_func (); below.
  4882. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4883. <limits.h> exists even on freestanding compilers. */
  4884. #ifdef __STDC__
  4885. # include <limits.h>
  4886. #else
  4887. # include <assert.h>
  4888. #endif
  4889. #undef $ac_func
  4890. /* Override any GCC internal prototype to avoid an error.
  4891. Use char because int might match the return type of a GCC
  4892. builtin and then its argument prototype would still apply. */
  4893. #ifdef __cplusplus
  4894. extern "C"
  4895. #endif
  4896. char $ac_func ();
  4897. /* The GNU C library defines this for functions which it implements
  4898. to always fail with ENOSYS. Some functions are actually named
  4899. something starting with __ and the normal name is an alias. */
  4900. #if defined __stub_$ac_func || defined __stub___$ac_func
  4901. choke me
  4902. #endif
  4903. int
  4904. main ()
  4905. {
  4906. return $ac_func ();
  4907. ;
  4908. return 0;
  4909. }
  4910. _ACEOF
  4911. rm -f conftest.$ac_objext conftest$ac_exeext
  4912. if { (ac_try="$ac_link"
  4913. case "(($ac_try" in
  4914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4915. *) ac_try_echo=$ac_try;;
  4916. esac
  4917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4918. (eval "$ac_link") 2>conftest.er1
  4919. ac_status=$?
  4920. grep -v '^ *+' conftest.er1 >conftest.err
  4921. rm -f conftest.er1
  4922. cat conftest.err >&5
  4923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4924. (exit $ac_status); } && {
  4925. test -z "$ac_c_werror_flag" ||
  4926. test ! -s conftest.err
  4927. } && test -s conftest$ac_exeext &&
  4928. $as_test_x conftest$ac_exeext; then
  4929. eval "$as_ac_var=yes"
  4930. else
  4931. echo "$as_me: failed program was:" >&5
  4932. sed 's/^/| /' conftest.$ac_ext >&5
  4933. eval "$as_ac_var=no"
  4934. fi
  4935. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4936. conftest$ac_exeext conftest.$ac_ext
  4937. fi
  4938. ac_res=`eval echo '${'$as_ac_var'}'`
  4939. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4940. echo "${ECHO_T}$ac_res" >&6; }
  4941. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4942. cat >>confdefs.h <<_ACEOF
  4943. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4944. _ACEOF
  4945. fi
  4946. done
  4947. fi
  4948. fi
  4949. LIBS=$LIBS_save
  4950. CPPFLAGS=$CPPFLAGS_save
  4951. fi
  4952. if test "x$with_libcares" = "xyes"; then
  4953. # Check whether --with-libcares-prefix was given.
  4954. if test "${with_libcares_prefix+set}" = set; then
  4955. withval=$with_libcares_prefix; libcares_prefix=$withval
  4956. else
  4957. libcares_prefix=""
  4958. fi
  4959. if test "x$libcares_prefix" = "x"; then
  4960. libcares_prefix="/usr"
  4961. fi
  4962. libcares_prefix_lib=$libcares_prefix/lib
  4963. libcares_prefix_include=$libcares_prefix/include
  4964. LIBS_save=$LIBS
  4965. CPPFLAGS_save=$CPPFLAGS
  4966. LIBS="-L$libcares_prefix_lib $LIBS"
  4967. CPPFLAGS="-I$libcares_prefix_include $CPPFLAGS"
  4968. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  4969. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  4970. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  4971. echo $ECHO_N "(cached) $ECHO_C" >&6
  4972. else
  4973. ac_check_lib_save_LIBS=$LIBS
  4974. LIBS="-lcares $LIBS"
  4975. cat >conftest.$ac_ext <<_ACEOF
  4976. /* confdefs.h. */
  4977. _ACEOF
  4978. cat confdefs.h >>conftest.$ac_ext
  4979. cat >>conftest.$ac_ext <<_ACEOF
  4980. /* end confdefs.h. */
  4981. /* Override any GCC internal prototype to avoid an error.
  4982. Use char because int might match the return type of a GCC
  4983. builtin and then its argument prototype would still apply. */
  4984. #ifdef __cplusplus
  4985. extern "C"
  4986. #endif
  4987. char ares_init ();
  4988. int
  4989. main ()
  4990. {
  4991. return ares_init ();
  4992. ;
  4993. return 0;
  4994. }
  4995. _ACEOF
  4996. rm -f conftest.$ac_objext conftest$ac_exeext
  4997. if { (ac_try="$ac_link"
  4998. case "(($ac_try" in
  4999. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5000. *) ac_try_echo=$ac_try;;
  5001. esac
  5002. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5003. (eval "$ac_link") 2>conftest.er1
  5004. ac_status=$?
  5005. grep -v '^ *+' conftest.er1 >conftest.err
  5006. rm -f conftest.er1
  5007. cat conftest.err >&5
  5008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5009. (exit $ac_status); } && {
  5010. test -z "$ac_c_werror_flag" ||
  5011. test ! -s conftest.err
  5012. } && test -s conftest$ac_exeext &&
  5013. $as_test_x conftest$ac_exeext; then
  5014. ac_cv_lib_cares_ares_init=yes
  5015. else
  5016. echo "$as_me: failed program was:" >&5
  5017. sed 's/^/| /' conftest.$ac_ext >&5
  5018. ac_cv_lib_cares_ares_init=no
  5019. fi
  5020. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5021. conftest$ac_exeext conftest.$ac_ext
  5022. LIBS=$ac_check_lib_save_LIBS
  5023. fi
  5024. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  5025. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  5026. if test $ac_cv_lib_cares_ares_init = yes; then
  5027. have_libcares=yes
  5028. fi
  5029. if test "x$have_libcares" = "xyes"; then
  5030. cat >>confdefs.h <<\_ACEOF
  5031. #define HAVE_LIBCARES 1
  5032. _ACEOF
  5033. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  5034. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  5035. fi
  5036. LIBS=$LIBS_save
  5037. CPPFLAGS=$CPPFLAGS_save
  5038. fi
  5039. if test "x$have_libcares" = "x"; then
  5040. if test "x$with_libares" = "xyes"; then
  5041. # Check whether --with-libares-prefix was given.
  5042. if test "${with_libares_prefix+set}" = set; then
  5043. withval=$with_libares_prefix; libares_prefix=$withval
  5044. else
  5045. libares_prefix=""
  5046. fi
  5047. if test "x$libares_prefix" = "x"; then
  5048. libares_prefix="/usr"
  5049. fi
  5050. libares_prefix_lib=$libares_prefix/lib
  5051. libares_prefix_include=$libares_prefix/include
  5052. LIBS_save=$LIBS
  5053. CPPFLAGS_save=$CPPFLAGS
  5054. LIBS="-L$libares_prefix_lib $LIBS"
  5055. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  5056. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  5057. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  5058. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  5059. echo $ECHO_N "(cached) $ECHO_C" >&6
  5060. else
  5061. ac_check_lib_save_LIBS=$LIBS
  5062. LIBS="-lares $LIBS"
  5063. cat >conftest.$ac_ext <<_ACEOF
  5064. /* confdefs.h. */
  5065. _ACEOF
  5066. cat confdefs.h >>conftest.$ac_ext
  5067. cat >>conftest.$ac_ext <<_ACEOF
  5068. /* end confdefs.h. */
  5069. /* Override any GCC internal prototype to avoid an error.
  5070. Use char because int might match the return type of a GCC
  5071. builtin and then its argument prototype would still apply. */
  5072. #ifdef __cplusplus
  5073. extern "C"
  5074. #endif
  5075. char ares_init ();
  5076. int
  5077. main ()
  5078. {
  5079. return ares_init ();
  5080. ;
  5081. return 0;
  5082. }
  5083. _ACEOF
  5084. rm -f conftest.$ac_objext conftest$ac_exeext
  5085. if { (ac_try="$ac_link"
  5086. case "(($ac_try" in
  5087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5088. *) ac_try_echo=$ac_try;;
  5089. esac
  5090. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5091. (eval "$ac_link") 2>conftest.er1
  5092. ac_status=$?
  5093. grep -v '^ *+' conftest.er1 >conftest.err
  5094. rm -f conftest.er1
  5095. cat conftest.err >&5
  5096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5097. (exit $ac_status); } && {
  5098. test -z "$ac_c_werror_flag" ||
  5099. test ! -s conftest.err
  5100. } && test -s conftest$ac_exeext &&
  5101. $as_test_x conftest$ac_exeext; then
  5102. ac_cv_lib_ares_ares_init=yes
  5103. else
  5104. echo "$as_me: failed program was:" >&5
  5105. sed 's/^/| /' conftest.$ac_ext >&5
  5106. ac_cv_lib_ares_ares_init=no
  5107. fi
  5108. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5109. conftest$ac_exeext conftest.$ac_ext
  5110. LIBS=$ac_check_lib_save_LIBS
  5111. fi
  5112. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  5113. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  5114. if test $ac_cv_lib_ares_ares_init = yes; then
  5115. have_libares=yes
  5116. fi
  5117. if test "x$have_libares" = "xyes"; then
  5118. cat >>confdefs.h <<\_ACEOF
  5119. #define HAVE_LIBARES 1
  5120. _ACEOF
  5121. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  5122. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  5123. fi
  5124. LIBS=$LIBS_save
  5125. CPPFLAGS=$CPPFLAGS_save
  5126. fi
  5127. fi
  5128. # Define variables based on the result of the checks for libraries.
  5129. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  5130. cat >>confdefs.h <<\_ACEOF
  5131. #define ENABLE_SSL 1
  5132. _ACEOF
  5133. fi
  5134. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  5135. cat >>confdefs.h <<\_ACEOF
  5136. #define ENABLE_MESSAGE_DIGEST 1
  5137. _ACEOF
  5138. if true; then
  5139. ENABLE_MESSAGE_DIGEST_TRUE=
  5140. ENABLE_MESSAGE_DIGEST_FALSE='#'
  5141. else
  5142. ENABLE_MESSAGE_DIGEST_TRUE='#'
  5143. ENABLE_MESSAGE_DIGEST_FALSE=
  5144. fi
  5145. enable_message_digest=yes
  5146. else
  5147. if false; then
  5148. ENABLE_MESSAGE_DIGEST_TRUE=
  5149. ENABLE_MESSAGE_DIGEST_FALSE='#'
  5150. else
  5151. ENABLE_MESSAGE_DIGEST_TRUE='#'
  5152. ENABLE_MESSAGE_DIGEST_FALSE=
  5153. fi
  5154. fi
  5155. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  5156. cat >>confdefs.h <<\_ACEOF
  5157. #define ENABLE_BITTORRENT 1
  5158. _ACEOF
  5159. if true; then
  5160. ENABLE_BITTORRENT_TRUE=
  5161. ENABLE_BITTORRENT_FALSE='#'
  5162. else
  5163. ENABLE_BITTORRENT_TRUE='#'
  5164. ENABLE_BITTORRENT_FALSE=
  5165. fi
  5166. else
  5167. if false; then
  5168. ENABLE_BITTORRENT_TRUE=
  5169. ENABLE_BITTORRENT_FALSE='#'
  5170. else
  5171. ENABLE_BITTORRENT_TRUE='#'
  5172. ENABLE_BITTORRENT_FALSE=
  5173. fi
  5174. fi
  5175. if test "x$have_libxml2" = "xyes" && test "x$enable_metalink" = "xyes"; then
  5176. cat >>confdefs.h <<\_ACEOF
  5177. #define ENABLE_METALINK 1
  5178. _ACEOF
  5179. if true; then
  5180. ENABLE_METALINK_TRUE=
  5181. ENABLE_METALINK_FALSE='#'
  5182. else
  5183. ENABLE_METALINK_TRUE='#'
  5184. ENABLE_METALINK_FALSE=
  5185. fi
  5186. else
  5187. if false; then
  5188. ENABLE_METALINK_TRUE=
  5189. ENABLE_METALINK_FALSE='#'
  5190. else
  5191. ENABLE_METALINK_TRUE='#'
  5192. ENABLE_METALINK_FALSE=
  5193. fi
  5194. fi
  5195. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  5196. cat >>confdefs.h <<\_ACEOF
  5197. #define ENABLE_ASYNC_DNS 1
  5198. _ACEOF
  5199. if true; then
  5200. ENABLE_ASYNC_DNS_TRUE=
  5201. ENABLE_ASYNC_DNS_FALSE='#'
  5202. else
  5203. ENABLE_ASYNC_DNS_TRUE='#'
  5204. ENABLE_ASYNC_DNS_FALSE=
  5205. fi
  5206. else
  5207. if false; then
  5208. ENABLE_ASYNC_DNS_TRUE=
  5209. ENABLE_ASYNC_DNS_FALSE='#'
  5210. else
  5211. ENABLE_ASYNC_DNS_TRUE='#'
  5212. ENABLE_ASYNC_DNS_FALSE=
  5213. fi
  5214. fi
  5215. # Checks for header files.
  5216. ac_ext=c
  5217. ac_cpp='$CPP $CPPFLAGS'
  5218. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5219. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5220. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5221. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5222. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5223. # On Suns, sometimes $CPP names a directory.
  5224. if test -n "$CPP" && test -d "$CPP"; then
  5225. CPP=
  5226. fi
  5227. if test -z "$CPP"; then
  5228. if test "${ac_cv_prog_CPP+set}" = set; then
  5229. echo $ECHO_N "(cached) $ECHO_C" >&6
  5230. else
  5231. # Double quotes because CPP needs to be expanded
  5232. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5233. do
  5234. ac_preproc_ok=false
  5235. for ac_c_preproc_warn_flag in '' yes
  5236. do
  5237. # Use a header file that comes with gcc, so configuring glibc
  5238. # with a fresh cross-compiler works.
  5239. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5240. # <limits.h> exists even on freestanding compilers.
  5241. # On the NeXT, cc -E runs the code through the compiler's parser,
  5242. # not just through cpp. "Syntax error" is here to catch this case.
  5243. cat >conftest.$ac_ext <<_ACEOF
  5244. /* confdefs.h. */
  5245. _ACEOF
  5246. cat confdefs.h >>conftest.$ac_ext
  5247. cat >>conftest.$ac_ext <<_ACEOF
  5248. /* end confdefs.h. */
  5249. #ifdef __STDC__
  5250. # include <limits.h>
  5251. #else
  5252. # include <assert.h>
  5253. #endif
  5254. Syntax error
  5255. _ACEOF
  5256. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5257. case "(($ac_try" in
  5258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5259. *) ac_try_echo=$ac_try;;
  5260. esac
  5261. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5262. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5263. ac_status=$?
  5264. grep -v '^ *+' conftest.er1 >conftest.err
  5265. rm -f conftest.er1
  5266. cat conftest.err >&5
  5267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5268. (exit $ac_status); } >/dev/null && {
  5269. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5270. test ! -s conftest.err
  5271. }; then
  5272. :
  5273. else
  5274. echo "$as_me: failed program was:" >&5
  5275. sed 's/^/| /' conftest.$ac_ext >&5
  5276. # Broken: fails on valid input.
  5277. continue
  5278. fi
  5279. rm -f conftest.err conftest.$ac_ext
  5280. # OK, works on sane cases. Now check whether nonexistent headers
  5281. # can be detected and how.
  5282. cat >conftest.$ac_ext <<_ACEOF
  5283. /* confdefs.h. */
  5284. _ACEOF
  5285. cat confdefs.h >>conftest.$ac_ext
  5286. cat >>conftest.$ac_ext <<_ACEOF
  5287. /* end confdefs.h. */
  5288. #include <ac_nonexistent.h>
  5289. _ACEOF
  5290. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5291. case "(($ac_try" in
  5292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5293. *) ac_try_echo=$ac_try;;
  5294. esac
  5295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5296. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5297. ac_status=$?
  5298. grep -v '^ *+' conftest.er1 >conftest.err
  5299. rm -f conftest.er1
  5300. cat conftest.err >&5
  5301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5302. (exit $ac_status); } >/dev/null && {
  5303. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5304. test ! -s conftest.err
  5305. }; then
  5306. # Broken: success on invalid input.
  5307. continue
  5308. else
  5309. echo "$as_me: failed program was:" >&5
  5310. sed 's/^/| /' conftest.$ac_ext >&5
  5311. # Passes both tests.
  5312. ac_preproc_ok=:
  5313. break
  5314. fi
  5315. rm -f conftest.err conftest.$ac_ext
  5316. done
  5317. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5318. rm -f conftest.err conftest.$ac_ext
  5319. if $ac_preproc_ok; then
  5320. break
  5321. fi
  5322. done
  5323. ac_cv_prog_CPP=$CPP
  5324. fi
  5325. CPP=$ac_cv_prog_CPP
  5326. else
  5327. ac_cv_prog_CPP=$CPP
  5328. fi
  5329. { echo "$as_me:$LINENO: result: $CPP" >&5
  5330. echo "${ECHO_T}$CPP" >&6; }
  5331. ac_preproc_ok=false
  5332. for ac_c_preproc_warn_flag in '' yes
  5333. do
  5334. # Use a header file that comes with gcc, so configuring glibc
  5335. # with a fresh cross-compiler works.
  5336. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5337. # <limits.h> exists even on freestanding compilers.
  5338. # On the NeXT, cc -E runs the code through the compiler's parser,
  5339. # not just through cpp. "Syntax error" is here to catch this case.
  5340. cat >conftest.$ac_ext <<_ACEOF
  5341. /* confdefs.h. */
  5342. _ACEOF
  5343. cat confdefs.h >>conftest.$ac_ext
  5344. cat >>conftest.$ac_ext <<_ACEOF
  5345. /* end confdefs.h. */
  5346. #ifdef __STDC__
  5347. # include <limits.h>
  5348. #else
  5349. # include <assert.h>
  5350. #endif
  5351. Syntax error
  5352. _ACEOF
  5353. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5354. case "(($ac_try" in
  5355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5356. *) ac_try_echo=$ac_try;;
  5357. esac
  5358. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5359. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5360. ac_status=$?
  5361. grep -v '^ *+' conftest.er1 >conftest.err
  5362. rm -f conftest.er1
  5363. cat conftest.err >&5
  5364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5365. (exit $ac_status); } >/dev/null && {
  5366. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5367. test ! -s conftest.err
  5368. }; then
  5369. :
  5370. else
  5371. echo "$as_me: failed program was:" >&5
  5372. sed 's/^/| /' conftest.$ac_ext >&5
  5373. # Broken: fails on valid input.
  5374. continue
  5375. fi
  5376. rm -f conftest.err conftest.$ac_ext
  5377. # OK, works on sane cases. Now check whether nonexistent headers
  5378. # can be detected and how.
  5379. cat >conftest.$ac_ext <<_ACEOF
  5380. /* confdefs.h. */
  5381. _ACEOF
  5382. cat confdefs.h >>conftest.$ac_ext
  5383. cat >>conftest.$ac_ext <<_ACEOF
  5384. /* end confdefs.h. */
  5385. #include <ac_nonexistent.h>
  5386. _ACEOF
  5387. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5388. case "(($ac_try" in
  5389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5390. *) ac_try_echo=$ac_try;;
  5391. esac
  5392. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5393. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5394. ac_status=$?
  5395. grep -v '^ *+' conftest.er1 >conftest.err
  5396. rm -f conftest.er1
  5397. cat conftest.err >&5
  5398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5399. (exit $ac_status); } >/dev/null && {
  5400. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5401. test ! -s conftest.err
  5402. }; then
  5403. # Broken: success on invalid input.
  5404. continue
  5405. else
  5406. echo "$as_me: failed program was:" >&5
  5407. sed 's/^/| /' conftest.$ac_ext >&5
  5408. # Passes both tests.
  5409. ac_preproc_ok=:
  5410. break
  5411. fi
  5412. rm -f conftest.err conftest.$ac_ext
  5413. done
  5414. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5415. rm -f conftest.err conftest.$ac_ext
  5416. if $ac_preproc_ok; then
  5417. :
  5418. else
  5419. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5420. See \`config.log' for more details." >&5
  5421. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5422. See \`config.log' for more details." >&2;}
  5423. { (exit 1); exit 1; }; }
  5424. fi
  5425. ac_ext=c
  5426. ac_cpp='$CPP $CPPFLAGS'
  5427. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5428. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5429. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5430. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5431. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5432. if test "${ac_cv_path_GREP+set}" = set; then
  5433. echo $ECHO_N "(cached) $ECHO_C" >&6
  5434. else
  5435. # Extract the first word of "grep ggrep" to use in msg output
  5436. if test -z "$GREP"; then
  5437. set dummy grep ggrep; ac_prog_name=$2
  5438. if test "${ac_cv_path_GREP+set}" = set; then
  5439. echo $ECHO_N "(cached) $ECHO_C" >&6
  5440. else
  5441. ac_path_GREP_found=false
  5442. # Loop through the user's path and test for each of PROGNAME-LIST
  5443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5444. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5445. do
  5446. IFS=$as_save_IFS
  5447. test -z "$as_dir" && as_dir=.
  5448. for ac_prog in grep ggrep; do
  5449. for ac_exec_ext in '' $ac_executable_extensions; do
  5450. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5451. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5452. # Check for GNU ac_path_GREP and select it if it is found.
  5453. # Check for GNU $ac_path_GREP
  5454. case `"$ac_path_GREP" --version 2>&1` in
  5455. *GNU*)
  5456. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5457. *)
  5458. ac_count=0
  5459. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5460. while :
  5461. do
  5462. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5463. mv "conftest.tmp" "conftest.in"
  5464. cp "conftest.in" "conftest.nl"
  5465. echo 'GREP' >> "conftest.nl"
  5466. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5467. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5468. ac_count=`expr $ac_count + 1`
  5469. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5470. # Best one so far, save it but keep looking for a better one
  5471. ac_cv_path_GREP="$ac_path_GREP"
  5472. ac_path_GREP_max=$ac_count
  5473. fi
  5474. # 10*(2^10) chars as input seems more than enough
  5475. test $ac_count -gt 10 && break
  5476. done
  5477. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5478. esac
  5479. $ac_path_GREP_found && break 3
  5480. done
  5481. done
  5482. done
  5483. IFS=$as_save_IFS
  5484. fi
  5485. GREP="$ac_cv_path_GREP"
  5486. if test -z "$GREP"; then
  5487. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5488. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5489. { (exit 1); exit 1; }; }
  5490. fi
  5491. else
  5492. ac_cv_path_GREP=$GREP
  5493. fi
  5494. fi
  5495. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5496. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5497. GREP="$ac_cv_path_GREP"
  5498. { echo "$as_me:$LINENO: checking for egrep" >&5
  5499. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5500. if test "${ac_cv_path_EGREP+set}" = set; then
  5501. echo $ECHO_N "(cached) $ECHO_C" >&6
  5502. else
  5503. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5504. then ac_cv_path_EGREP="$GREP -E"
  5505. else
  5506. # Extract the first word of "egrep" to use in msg output
  5507. if test -z "$EGREP"; then
  5508. set dummy egrep; ac_prog_name=$2
  5509. if test "${ac_cv_path_EGREP+set}" = set; then
  5510. echo $ECHO_N "(cached) $ECHO_C" >&6
  5511. else
  5512. ac_path_EGREP_found=false
  5513. # Loop through the user's path and test for each of PROGNAME-LIST
  5514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5515. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5516. do
  5517. IFS=$as_save_IFS
  5518. test -z "$as_dir" && as_dir=.
  5519. for ac_prog in egrep; do
  5520. for ac_exec_ext in '' $ac_executable_extensions; do
  5521. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5522. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5523. # Check for GNU ac_path_EGREP and select it if it is found.
  5524. # Check for GNU $ac_path_EGREP
  5525. case `"$ac_path_EGREP" --version 2>&1` in
  5526. *GNU*)
  5527. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5528. *)
  5529. ac_count=0
  5530. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5531. while :
  5532. do
  5533. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5534. mv "conftest.tmp" "conftest.in"
  5535. cp "conftest.in" "conftest.nl"
  5536. echo 'EGREP' >> "conftest.nl"
  5537. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5538. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5539. ac_count=`expr $ac_count + 1`
  5540. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5541. # Best one so far, save it but keep looking for a better one
  5542. ac_cv_path_EGREP="$ac_path_EGREP"
  5543. ac_path_EGREP_max=$ac_count
  5544. fi
  5545. # 10*(2^10) chars as input seems more than enough
  5546. test $ac_count -gt 10 && break
  5547. done
  5548. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5549. esac
  5550. $ac_path_EGREP_found && break 3
  5551. done
  5552. done
  5553. done
  5554. IFS=$as_save_IFS
  5555. fi
  5556. EGREP="$ac_cv_path_EGREP"
  5557. if test -z "$EGREP"; then
  5558. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5559. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5560. { (exit 1); exit 1; }; }
  5561. fi
  5562. else
  5563. ac_cv_path_EGREP=$EGREP
  5564. fi
  5565. fi
  5566. fi
  5567. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5568. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5569. EGREP="$ac_cv_path_EGREP"
  5570. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5571. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5572. if test "${ac_cv_header_stdc+set}" = set; then
  5573. echo $ECHO_N "(cached) $ECHO_C" >&6
  5574. else
  5575. cat >conftest.$ac_ext <<_ACEOF
  5576. /* confdefs.h. */
  5577. _ACEOF
  5578. cat confdefs.h >>conftest.$ac_ext
  5579. cat >>conftest.$ac_ext <<_ACEOF
  5580. /* end confdefs.h. */
  5581. #include <stdlib.h>
  5582. #include <stdarg.h>
  5583. #include <string.h>
  5584. #include <float.h>
  5585. int
  5586. main ()
  5587. {
  5588. ;
  5589. return 0;
  5590. }
  5591. _ACEOF
  5592. rm -f conftest.$ac_objext
  5593. if { (ac_try="$ac_compile"
  5594. case "(($ac_try" in
  5595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5596. *) ac_try_echo=$ac_try;;
  5597. esac
  5598. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5599. (eval "$ac_compile") 2>conftest.er1
  5600. ac_status=$?
  5601. grep -v '^ *+' conftest.er1 >conftest.err
  5602. rm -f conftest.er1
  5603. cat conftest.err >&5
  5604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5605. (exit $ac_status); } && {
  5606. test -z "$ac_c_werror_flag" ||
  5607. test ! -s conftest.err
  5608. } && test -s conftest.$ac_objext; then
  5609. ac_cv_header_stdc=yes
  5610. else
  5611. echo "$as_me: failed program was:" >&5
  5612. sed 's/^/| /' conftest.$ac_ext >&5
  5613. ac_cv_header_stdc=no
  5614. fi
  5615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5616. if test $ac_cv_header_stdc = yes; then
  5617. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5618. cat >conftest.$ac_ext <<_ACEOF
  5619. /* confdefs.h. */
  5620. _ACEOF
  5621. cat confdefs.h >>conftest.$ac_ext
  5622. cat >>conftest.$ac_ext <<_ACEOF
  5623. /* end confdefs.h. */
  5624. #include <string.h>
  5625. _ACEOF
  5626. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5627. $EGREP "memchr" >/dev/null 2>&1; then
  5628. :
  5629. else
  5630. ac_cv_header_stdc=no
  5631. fi
  5632. rm -f conftest*
  5633. fi
  5634. if test $ac_cv_header_stdc = yes; then
  5635. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5636. cat >conftest.$ac_ext <<_ACEOF
  5637. /* confdefs.h. */
  5638. _ACEOF
  5639. cat confdefs.h >>conftest.$ac_ext
  5640. cat >>conftest.$ac_ext <<_ACEOF
  5641. /* end confdefs.h. */
  5642. #include <stdlib.h>
  5643. _ACEOF
  5644. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5645. $EGREP "free" >/dev/null 2>&1; then
  5646. :
  5647. else
  5648. ac_cv_header_stdc=no
  5649. fi
  5650. rm -f conftest*
  5651. fi
  5652. if test $ac_cv_header_stdc = yes; then
  5653. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5654. if test "$cross_compiling" = yes; then
  5655. :
  5656. else
  5657. cat >conftest.$ac_ext <<_ACEOF
  5658. /* confdefs.h. */
  5659. _ACEOF
  5660. cat confdefs.h >>conftest.$ac_ext
  5661. cat >>conftest.$ac_ext <<_ACEOF
  5662. /* end confdefs.h. */
  5663. #include <ctype.h>
  5664. #include <stdlib.h>
  5665. #if ((' ' & 0x0FF) == 0x020)
  5666. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5667. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5668. #else
  5669. # define ISLOWER(c) \
  5670. (('a' <= (c) && (c) <= 'i') \
  5671. || ('j' <= (c) && (c) <= 'r') \
  5672. || ('s' <= (c) && (c) <= 'z'))
  5673. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5674. #endif
  5675. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5676. int
  5677. main ()
  5678. {
  5679. int i;
  5680. for (i = 0; i < 256; i++)
  5681. if (XOR (islower (i), ISLOWER (i))
  5682. || toupper (i) != TOUPPER (i))
  5683. return 2;
  5684. return 0;
  5685. }
  5686. _ACEOF
  5687. rm -f conftest$ac_exeext
  5688. if { (ac_try="$ac_link"
  5689. case "(($ac_try" in
  5690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5691. *) ac_try_echo=$ac_try;;
  5692. esac
  5693. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5694. (eval "$ac_link") 2>&5
  5695. ac_status=$?
  5696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5697. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5698. { (case "(($ac_try" in
  5699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5700. *) ac_try_echo=$ac_try;;
  5701. esac
  5702. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5703. (eval "$ac_try") 2>&5
  5704. ac_status=$?
  5705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5706. (exit $ac_status); }; }; then
  5707. :
  5708. else
  5709. echo "$as_me: program exited with status $ac_status" >&5
  5710. echo "$as_me: failed program was:" >&5
  5711. sed 's/^/| /' conftest.$ac_ext >&5
  5712. ( exit $ac_status )
  5713. ac_cv_header_stdc=no
  5714. fi
  5715. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5716. fi
  5717. fi
  5718. fi
  5719. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5720. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5721. if test $ac_cv_header_stdc = yes; then
  5722. cat >>confdefs.h <<\_ACEOF
  5723. #define STDC_HEADERS 1
  5724. _ACEOF
  5725. fi
  5726. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5727. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5728. inttypes.h stdint.h unistd.h
  5729. do
  5730. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5731. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5732. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5733. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5734. echo $ECHO_N "(cached) $ECHO_C" >&6
  5735. else
  5736. cat >conftest.$ac_ext <<_ACEOF
  5737. /* confdefs.h. */
  5738. _ACEOF
  5739. cat confdefs.h >>conftest.$ac_ext
  5740. cat >>conftest.$ac_ext <<_ACEOF
  5741. /* end confdefs.h. */
  5742. $ac_includes_default
  5743. #include <$ac_header>
  5744. _ACEOF
  5745. rm -f conftest.$ac_objext
  5746. if { (ac_try="$ac_compile"
  5747. case "(($ac_try" in
  5748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5749. *) ac_try_echo=$ac_try;;
  5750. esac
  5751. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5752. (eval "$ac_compile") 2>conftest.er1
  5753. ac_status=$?
  5754. grep -v '^ *+' conftest.er1 >conftest.err
  5755. rm -f conftest.er1
  5756. cat conftest.err >&5
  5757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5758. (exit $ac_status); } && {
  5759. test -z "$ac_c_werror_flag" ||
  5760. test ! -s conftest.err
  5761. } && test -s conftest.$ac_objext; then
  5762. eval "$as_ac_Header=yes"
  5763. else
  5764. echo "$as_me: failed program was:" >&5
  5765. sed 's/^/| /' conftest.$ac_ext >&5
  5766. eval "$as_ac_Header=no"
  5767. fi
  5768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5769. fi
  5770. ac_res=`eval echo '${'$as_ac_Header'}'`
  5771. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5772. echo "${ECHO_T}$ac_res" >&6; }
  5773. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5774. cat >>confdefs.h <<_ACEOF
  5775. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5776. _ACEOF
  5777. fi
  5778. done
  5779. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5780. # for constant arguments. Useless!
  5781. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  5782. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  5783. if test "${ac_cv_working_alloca_h+set}" = set; then
  5784. echo $ECHO_N "(cached) $ECHO_C" >&6
  5785. else
  5786. cat >conftest.$ac_ext <<_ACEOF
  5787. /* confdefs.h. */
  5788. _ACEOF
  5789. cat confdefs.h >>conftest.$ac_ext
  5790. cat >>conftest.$ac_ext <<_ACEOF
  5791. /* end confdefs.h. */
  5792. #include <alloca.h>
  5793. int
  5794. main ()
  5795. {
  5796. char *p = (char *) alloca (2 * sizeof (int));
  5797. if (p) return 0;
  5798. ;
  5799. return 0;
  5800. }
  5801. _ACEOF
  5802. rm -f conftest.$ac_objext conftest$ac_exeext
  5803. if { (ac_try="$ac_link"
  5804. case "(($ac_try" in
  5805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5806. *) ac_try_echo=$ac_try;;
  5807. esac
  5808. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5809. (eval "$ac_link") 2>conftest.er1
  5810. ac_status=$?
  5811. grep -v '^ *+' conftest.er1 >conftest.err
  5812. rm -f conftest.er1
  5813. cat conftest.err >&5
  5814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5815. (exit $ac_status); } && {
  5816. test -z "$ac_c_werror_flag" ||
  5817. test ! -s conftest.err
  5818. } && test -s conftest$ac_exeext &&
  5819. $as_test_x conftest$ac_exeext; then
  5820. ac_cv_working_alloca_h=yes
  5821. else
  5822. echo "$as_me: failed program was:" >&5
  5823. sed 's/^/| /' conftest.$ac_ext >&5
  5824. ac_cv_working_alloca_h=no
  5825. fi
  5826. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5827. conftest$ac_exeext conftest.$ac_ext
  5828. fi
  5829. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  5830. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  5831. if test $ac_cv_working_alloca_h = yes; then
  5832. cat >>confdefs.h <<\_ACEOF
  5833. #define HAVE_ALLOCA_H 1
  5834. _ACEOF
  5835. fi
  5836. { echo "$as_me:$LINENO: checking for alloca" >&5
  5837. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  5838. if test "${ac_cv_func_alloca_works+set}" = set; then
  5839. echo $ECHO_N "(cached) $ECHO_C" >&6
  5840. else
  5841. cat >conftest.$ac_ext <<_ACEOF
  5842. /* confdefs.h. */
  5843. _ACEOF
  5844. cat confdefs.h >>conftest.$ac_ext
  5845. cat >>conftest.$ac_ext <<_ACEOF
  5846. /* end confdefs.h. */
  5847. #ifdef __GNUC__
  5848. # define alloca __builtin_alloca
  5849. #else
  5850. # ifdef _MSC_VER
  5851. # include <malloc.h>
  5852. # define alloca _alloca
  5853. # else
  5854. # ifdef HAVE_ALLOCA_H
  5855. # include <alloca.h>
  5856. # else
  5857. # ifdef _AIX
  5858. #pragma alloca
  5859. # else
  5860. # ifndef alloca /* predefined by HP cc +Olibcalls */
  5861. char *alloca ();
  5862. # endif
  5863. # endif
  5864. # endif
  5865. # endif
  5866. #endif
  5867. int
  5868. main ()
  5869. {
  5870. char *p = (char *) alloca (1);
  5871. if (p) return 0;
  5872. ;
  5873. return 0;
  5874. }
  5875. _ACEOF
  5876. rm -f conftest.$ac_objext conftest$ac_exeext
  5877. if { (ac_try="$ac_link"
  5878. case "(($ac_try" in
  5879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5880. *) ac_try_echo=$ac_try;;
  5881. esac
  5882. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5883. (eval "$ac_link") 2>conftest.er1
  5884. ac_status=$?
  5885. grep -v '^ *+' conftest.er1 >conftest.err
  5886. rm -f conftest.er1
  5887. cat conftest.err >&5
  5888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5889. (exit $ac_status); } && {
  5890. test -z "$ac_c_werror_flag" ||
  5891. test ! -s conftest.err
  5892. } && test -s conftest$ac_exeext &&
  5893. $as_test_x conftest$ac_exeext; then
  5894. ac_cv_func_alloca_works=yes
  5895. else
  5896. echo "$as_me: failed program was:" >&5
  5897. sed 's/^/| /' conftest.$ac_ext >&5
  5898. ac_cv_func_alloca_works=no
  5899. fi
  5900. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5901. conftest$ac_exeext conftest.$ac_ext
  5902. fi
  5903. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  5904. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  5905. if test $ac_cv_func_alloca_works = yes; then
  5906. cat >>confdefs.h <<\_ACEOF
  5907. #define HAVE_ALLOCA 1
  5908. _ACEOF
  5909. else
  5910. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5911. # that cause trouble. Some versions do not even contain alloca or
  5912. # contain a buggy version. If you still want to use their alloca,
  5913. # use ar to extract alloca.o from them instead of compiling alloca.c.
  5914. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  5915. cat >>confdefs.h <<\_ACEOF
  5916. #define C_ALLOCA 1
  5917. _ACEOF
  5918. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  5919. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  5920. if test "${ac_cv_os_cray+set}" = set; then
  5921. echo $ECHO_N "(cached) $ECHO_C" >&6
  5922. else
  5923. cat >conftest.$ac_ext <<_ACEOF
  5924. /* confdefs.h. */
  5925. _ACEOF
  5926. cat confdefs.h >>conftest.$ac_ext
  5927. cat >>conftest.$ac_ext <<_ACEOF
  5928. /* end confdefs.h. */
  5929. #if defined CRAY && ! defined CRAY2
  5930. webecray
  5931. #else
  5932. wenotbecray
  5933. #endif
  5934. _ACEOF
  5935. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5936. $EGREP "webecray" >/dev/null 2>&1; then
  5937. ac_cv_os_cray=yes
  5938. else
  5939. ac_cv_os_cray=no
  5940. fi
  5941. rm -f conftest*
  5942. fi
  5943. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  5944. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  5945. if test $ac_cv_os_cray = yes; then
  5946. for ac_func in _getb67 GETB67 getb67; do
  5947. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5948. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5949. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5950. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5951. echo $ECHO_N "(cached) $ECHO_C" >&6
  5952. else
  5953. cat >conftest.$ac_ext <<_ACEOF
  5954. /* confdefs.h. */
  5955. _ACEOF
  5956. cat confdefs.h >>conftest.$ac_ext
  5957. cat >>conftest.$ac_ext <<_ACEOF
  5958. /* end confdefs.h. */
  5959. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5960. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5961. #define $ac_func innocuous_$ac_func
  5962. /* System header to define __stub macros and hopefully few prototypes,
  5963. which can conflict with char $ac_func (); below.
  5964. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5965. <limits.h> exists even on freestanding compilers. */
  5966. #ifdef __STDC__
  5967. # include <limits.h>
  5968. #else
  5969. # include <assert.h>
  5970. #endif
  5971. #undef $ac_func
  5972. /* Override any GCC internal prototype to avoid an error.
  5973. Use char because int might match the return type of a GCC
  5974. builtin and then its argument prototype would still apply. */
  5975. #ifdef __cplusplus
  5976. extern "C"
  5977. #endif
  5978. char $ac_func ();
  5979. /* The GNU C library defines this for functions which it implements
  5980. to always fail with ENOSYS. Some functions are actually named
  5981. something starting with __ and the normal name is an alias. */
  5982. #if defined __stub_$ac_func || defined __stub___$ac_func
  5983. choke me
  5984. #endif
  5985. int
  5986. main ()
  5987. {
  5988. return $ac_func ();
  5989. ;
  5990. return 0;
  5991. }
  5992. _ACEOF
  5993. rm -f conftest.$ac_objext conftest$ac_exeext
  5994. if { (ac_try="$ac_link"
  5995. case "(($ac_try" in
  5996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5997. *) ac_try_echo=$ac_try;;
  5998. esac
  5999. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6000. (eval "$ac_link") 2>conftest.er1
  6001. ac_status=$?
  6002. grep -v '^ *+' conftest.er1 >conftest.err
  6003. rm -f conftest.er1
  6004. cat conftest.err >&5
  6005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6006. (exit $ac_status); } && {
  6007. test -z "$ac_c_werror_flag" ||
  6008. test ! -s conftest.err
  6009. } && test -s conftest$ac_exeext &&
  6010. $as_test_x conftest$ac_exeext; then
  6011. eval "$as_ac_var=yes"
  6012. else
  6013. echo "$as_me: failed program was:" >&5
  6014. sed 's/^/| /' conftest.$ac_ext >&5
  6015. eval "$as_ac_var=no"
  6016. fi
  6017. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6018. conftest$ac_exeext conftest.$ac_ext
  6019. fi
  6020. ac_res=`eval echo '${'$as_ac_var'}'`
  6021. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6022. echo "${ECHO_T}$ac_res" >&6; }
  6023. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6024. cat >>confdefs.h <<_ACEOF
  6025. #define CRAY_STACKSEG_END $ac_func
  6026. _ACEOF
  6027. break
  6028. fi
  6029. done
  6030. fi
  6031. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6032. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6033. if test "${ac_cv_c_stack_direction+set}" = set; then
  6034. echo $ECHO_N "(cached) $ECHO_C" >&6
  6035. else
  6036. if test "$cross_compiling" = yes; then
  6037. ac_cv_c_stack_direction=0
  6038. else
  6039. cat >conftest.$ac_ext <<_ACEOF
  6040. /* confdefs.h. */
  6041. _ACEOF
  6042. cat confdefs.h >>conftest.$ac_ext
  6043. cat >>conftest.$ac_ext <<_ACEOF
  6044. /* end confdefs.h. */
  6045. $ac_includes_default
  6046. int
  6047. find_stack_direction ()
  6048. {
  6049. static char *addr = 0;
  6050. auto char dummy;
  6051. if (addr == 0)
  6052. {
  6053. addr = &dummy;
  6054. return find_stack_direction ();
  6055. }
  6056. else
  6057. return (&dummy > addr) ? 1 : -1;
  6058. }
  6059. int
  6060. main ()
  6061. {
  6062. return find_stack_direction () < 0;
  6063. }
  6064. _ACEOF
  6065. rm -f conftest$ac_exeext
  6066. if { (ac_try="$ac_link"
  6067. case "(($ac_try" in
  6068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6069. *) ac_try_echo=$ac_try;;
  6070. esac
  6071. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6072. (eval "$ac_link") 2>&5
  6073. ac_status=$?
  6074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6075. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6076. { (case "(($ac_try" in
  6077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6078. *) ac_try_echo=$ac_try;;
  6079. esac
  6080. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6081. (eval "$ac_try") 2>&5
  6082. ac_status=$?
  6083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6084. (exit $ac_status); }; }; then
  6085. ac_cv_c_stack_direction=1
  6086. else
  6087. echo "$as_me: program exited with status $ac_status" >&5
  6088. echo "$as_me: failed program was:" >&5
  6089. sed 's/^/| /' conftest.$ac_ext >&5
  6090. ( exit $ac_status )
  6091. ac_cv_c_stack_direction=-1
  6092. fi
  6093. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6094. fi
  6095. fi
  6096. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6097. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6098. cat >>confdefs.h <<_ACEOF
  6099. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6100. _ACEOF
  6101. fi
  6102. #AC_HEADER_STDC
  6103. for ac_header in winsock2.h ws2tcpip.h argz.h arpa/inet.h fcntl.h inttypes.h io.h langinfo.h libgen.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/param.h sys/socket.h sys/time.h unistd.h
  6104. do
  6105. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6106. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6107. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6108. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6109. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6110. echo $ECHO_N "(cached) $ECHO_C" >&6
  6111. fi
  6112. ac_res=`eval echo '${'$as_ac_Header'}'`
  6113. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6114. echo "${ECHO_T}$ac_res" >&6; }
  6115. else
  6116. # Is the header compilable?
  6117. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6118. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6119. cat >conftest.$ac_ext <<_ACEOF
  6120. /* confdefs.h. */
  6121. _ACEOF
  6122. cat confdefs.h >>conftest.$ac_ext
  6123. cat >>conftest.$ac_ext <<_ACEOF
  6124. /* end confdefs.h. */
  6125. $ac_includes_default
  6126. #include <$ac_header>
  6127. _ACEOF
  6128. rm -f conftest.$ac_objext
  6129. if { (ac_try="$ac_compile"
  6130. case "(($ac_try" in
  6131. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6132. *) ac_try_echo=$ac_try;;
  6133. esac
  6134. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6135. (eval "$ac_compile") 2>conftest.er1
  6136. ac_status=$?
  6137. grep -v '^ *+' conftest.er1 >conftest.err
  6138. rm -f conftest.er1
  6139. cat conftest.err >&5
  6140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6141. (exit $ac_status); } && {
  6142. test -z "$ac_c_werror_flag" ||
  6143. test ! -s conftest.err
  6144. } && test -s conftest.$ac_objext; then
  6145. ac_header_compiler=yes
  6146. else
  6147. echo "$as_me: failed program was:" >&5
  6148. sed 's/^/| /' conftest.$ac_ext >&5
  6149. ac_header_compiler=no
  6150. fi
  6151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6152. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6153. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6154. # Is the header present?
  6155. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6156. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6157. cat >conftest.$ac_ext <<_ACEOF
  6158. /* confdefs.h. */
  6159. _ACEOF
  6160. cat confdefs.h >>conftest.$ac_ext
  6161. cat >>conftest.$ac_ext <<_ACEOF
  6162. /* end confdefs.h. */
  6163. #include <$ac_header>
  6164. _ACEOF
  6165. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6166. case "(($ac_try" in
  6167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6168. *) ac_try_echo=$ac_try;;
  6169. esac
  6170. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6171. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6172. ac_status=$?
  6173. grep -v '^ *+' conftest.er1 >conftest.err
  6174. rm -f conftest.er1
  6175. cat conftest.err >&5
  6176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6177. (exit $ac_status); } >/dev/null && {
  6178. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6179. test ! -s conftest.err
  6180. }; then
  6181. ac_header_preproc=yes
  6182. else
  6183. echo "$as_me: failed program was:" >&5
  6184. sed 's/^/| /' conftest.$ac_ext >&5
  6185. ac_header_preproc=no
  6186. fi
  6187. rm -f conftest.err conftest.$ac_ext
  6188. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6189. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6190. # So? What about this header?
  6191. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6192. yes:no: )
  6193. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6194. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6195. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6196. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6197. ac_header_preproc=yes
  6198. ;;
  6199. no:yes:* )
  6200. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6201. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6202. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6203. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6204. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6205. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6206. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6207. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6208. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6209. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6210. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6211. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6212. ( cat <<\_ASBOX
  6213. ## ----------------------------------------------- ##
  6214. ## Report this to t-tujikawa@users.sourceforge.net ##
  6215. ## ----------------------------------------------- ##
  6216. _ASBOX
  6217. ) | sed "s/^/$as_me: WARNING: /" >&2
  6218. ;;
  6219. esac
  6220. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6221. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6222. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6223. echo $ECHO_N "(cached) $ECHO_C" >&6
  6224. else
  6225. eval "$as_ac_Header=\$ac_header_preproc"
  6226. fi
  6227. ac_res=`eval echo '${'$as_ac_Header'}'`
  6228. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6229. echo "${ECHO_T}$ac_res" >&6; }
  6230. fi
  6231. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6232. cat >>confdefs.h <<_ACEOF
  6233. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6234. _ACEOF
  6235. fi
  6236. done
  6237. # Checks for typedefs, structures, and compiler characteristics.
  6238. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6239. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  6240. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6241. echo $ECHO_N "(cached) $ECHO_C" >&6
  6242. else
  6243. cat >conftest.$ac_ext <<_ACEOF
  6244. /* confdefs.h. */
  6245. _ACEOF
  6246. cat confdefs.h >>conftest.$ac_ext
  6247. cat >>conftest.$ac_ext <<_ACEOF
  6248. /* end confdefs.h. */
  6249. #include <stdbool.h>
  6250. #ifndef bool
  6251. "error: bool is not defined"
  6252. #endif
  6253. #ifndef false
  6254. "error: false is not defined"
  6255. #endif
  6256. #if false
  6257. "error: false is not 0"
  6258. #endif
  6259. #ifndef true
  6260. "error: true is not defined"
  6261. #endif
  6262. #if true != 1
  6263. "error: true is not 1"
  6264. #endif
  6265. #ifndef __bool_true_false_are_defined
  6266. "error: __bool_true_false_are_defined is not defined"
  6267. #endif
  6268. struct s { _Bool s: 1; _Bool t; } s;
  6269. char a[true == 1 ? 1 : -1];
  6270. char b[false == 0 ? 1 : -1];
  6271. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6272. char d[(bool) 0.5 == true ? 1 : -1];
  6273. bool e = &s;
  6274. char f[(_Bool) 0.0 == false ? 1 : -1];
  6275. char g[true];
  6276. char h[sizeof (_Bool)];
  6277. char i[sizeof s.t];
  6278. enum { j = false, k = true, l = false * true, m = true * 256 };
  6279. _Bool n[m];
  6280. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6281. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6282. # if defined __xlc__ || defined __GNUC__
  6283. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6284. reported by James Lemley on 2005-10-05; see
  6285. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6286. This test is not quite right, since xlc is allowed to
  6287. reject this program, as the initializer for xlcbug is
  6288. not one of the forms that C requires support for.
  6289. However, doing the test right would require a runtime
  6290. test, and that would make cross-compilation harder.
  6291. Let us hope that IBM fixes the xlc bug, and also adds
  6292. support for this kind of constant expression. In the
  6293. meantime, this test will reject xlc, which is OK, since
  6294. our stdbool.h substitute should suffice. We also test
  6295. this with GCC, where it should work, to detect more
  6296. quickly whether someone messes up the test in the
  6297. future. */
  6298. char digs[] = "0123456789";
  6299. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6300. # endif
  6301. /* Catch a bug in an HP-UX C compiler. See
  6302. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6303. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6304. */
  6305. _Bool q = true;
  6306. _Bool *pq = &q;
  6307. int
  6308. main ()
  6309. {
  6310. *pq |= q;
  6311. *pq |= ! q;
  6312. /* Refer to every declared value, to avoid compiler optimizations. */
  6313. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6314. + !m + !n + !o + !p + !q + !pq);
  6315. ;
  6316. return 0;
  6317. }
  6318. _ACEOF
  6319. rm -f conftest.$ac_objext
  6320. if { (ac_try="$ac_compile"
  6321. case "(($ac_try" in
  6322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6323. *) ac_try_echo=$ac_try;;
  6324. esac
  6325. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6326. (eval "$ac_compile") 2>conftest.er1
  6327. ac_status=$?
  6328. grep -v '^ *+' conftest.er1 >conftest.err
  6329. rm -f conftest.er1
  6330. cat conftest.err >&5
  6331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6332. (exit $ac_status); } && {
  6333. test -z "$ac_c_werror_flag" ||
  6334. test ! -s conftest.err
  6335. } && test -s conftest.$ac_objext; then
  6336. ac_cv_header_stdbool_h=yes
  6337. else
  6338. echo "$as_me: failed program was:" >&5
  6339. sed 's/^/| /' conftest.$ac_ext >&5
  6340. ac_cv_header_stdbool_h=no
  6341. fi
  6342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6343. fi
  6344. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6345. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6346. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6347. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6348. if test "${ac_cv_type__Bool+set}" = set; then
  6349. echo $ECHO_N "(cached) $ECHO_C" >&6
  6350. else
  6351. cat >conftest.$ac_ext <<_ACEOF
  6352. /* confdefs.h. */
  6353. _ACEOF
  6354. cat confdefs.h >>conftest.$ac_ext
  6355. cat >>conftest.$ac_ext <<_ACEOF
  6356. /* end confdefs.h. */
  6357. $ac_includes_default
  6358. typedef _Bool ac__type_new_;
  6359. int
  6360. main ()
  6361. {
  6362. if ((ac__type_new_ *) 0)
  6363. return 0;
  6364. if (sizeof (ac__type_new_))
  6365. return 0;
  6366. ;
  6367. return 0;
  6368. }
  6369. _ACEOF
  6370. rm -f conftest.$ac_objext
  6371. if { (ac_try="$ac_compile"
  6372. case "(($ac_try" in
  6373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6374. *) ac_try_echo=$ac_try;;
  6375. esac
  6376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6377. (eval "$ac_compile") 2>conftest.er1
  6378. ac_status=$?
  6379. grep -v '^ *+' conftest.er1 >conftest.err
  6380. rm -f conftest.er1
  6381. cat conftest.err >&5
  6382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6383. (exit $ac_status); } && {
  6384. test -z "$ac_c_werror_flag" ||
  6385. test ! -s conftest.err
  6386. } && test -s conftest.$ac_objext; then
  6387. ac_cv_type__Bool=yes
  6388. else
  6389. echo "$as_me: failed program was:" >&5
  6390. sed 's/^/| /' conftest.$ac_ext >&5
  6391. ac_cv_type__Bool=no
  6392. fi
  6393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6394. fi
  6395. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  6396. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  6397. if test $ac_cv_type__Bool = yes; then
  6398. cat >>confdefs.h <<_ACEOF
  6399. #define HAVE__BOOL 1
  6400. _ACEOF
  6401. fi
  6402. if test $ac_cv_header_stdbool_h = yes; then
  6403. cat >>confdefs.h <<\_ACEOF
  6404. #define HAVE_STDBOOL_H 1
  6405. _ACEOF
  6406. fi
  6407. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6408. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  6409. if test "${ac_cv_c_const+set}" = set; then
  6410. echo $ECHO_N "(cached) $ECHO_C" >&6
  6411. else
  6412. cat >conftest.$ac_ext <<_ACEOF
  6413. /* confdefs.h. */
  6414. _ACEOF
  6415. cat confdefs.h >>conftest.$ac_ext
  6416. cat >>conftest.$ac_ext <<_ACEOF
  6417. /* end confdefs.h. */
  6418. int
  6419. main ()
  6420. {
  6421. /* FIXME: Include the comments suggested by Paul. */
  6422. #ifndef __cplusplus
  6423. /* Ultrix mips cc rejects this. */
  6424. typedef int charset[2];
  6425. const charset cs;
  6426. /* SunOS 4.1.1 cc rejects this. */
  6427. char const *const *pcpcc;
  6428. char **ppc;
  6429. /* NEC SVR4.0.2 mips cc rejects this. */
  6430. struct point {int x, y;};
  6431. static struct point const zero = {0,0};
  6432. /* AIX XL C 1.02.0.0 rejects this.
  6433. It does not let you subtract one const X* pointer from another in
  6434. an arm of an if-expression whose if-part is not a constant
  6435. expression */
  6436. const char *g = "string";
  6437. pcpcc = &g + (g ? g-g : 0);
  6438. /* HPUX 7.0 cc rejects these. */
  6439. ++pcpcc;
  6440. ppc = (char**) pcpcc;
  6441. pcpcc = (char const *const *) ppc;
  6442. { /* SCO 3.2v4 cc rejects this. */
  6443. char *t;
  6444. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6445. *t++ = 0;
  6446. if (s) return 0;
  6447. }
  6448. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6449. int x[] = {25, 17};
  6450. const int *foo = &x[0];
  6451. ++foo;
  6452. }
  6453. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6454. typedef const int *iptr;
  6455. iptr p = 0;
  6456. ++p;
  6457. }
  6458. { /* AIX XL C 1.02.0.0 rejects this saying
  6459. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6460. struct s { int j; const int *ap[3]; };
  6461. struct s *b; b->j = 5;
  6462. }
  6463. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6464. const int foo = 10;
  6465. if (!foo) return 0;
  6466. }
  6467. return !cs[0] && !zero.x;
  6468. #endif
  6469. ;
  6470. return 0;
  6471. }
  6472. _ACEOF
  6473. rm -f conftest.$ac_objext
  6474. if { (ac_try="$ac_compile"
  6475. case "(($ac_try" in
  6476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6477. *) ac_try_echo=$ac_try;;
  6478. esac
  6479. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6480. (eval "$ac_compile") 2>conftest.er1
  6481. ac_status=$?
  6482. grep -v '^ *+' conftest.er1 >conftest.err
  6483. rm -f conftest.er1
  6484. cat conftest.err >&5
  6485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6486. (exit $ac_status); } && {
  6487. test -z "$ac_c_werror_flag" ||
  6488. test ! -s conftest.err
  6489. } && test -s conftest.$ac_objext; then
  6490. ac_cv_c_const=yes
  6491. else
  6492. echo "$as_me: failed program was:" >&5
  6493. sed 's/^/| /' conftest.$ac_ext >&5
  6494. ac_cv_c_const=no
  6495. fi
  6496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6497. fi
  6498. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6499. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  6500. if test $ac_cv_c_const = no; then
  6501. cat >>confdefs.h <<\_ACEOF
  6502. #define const
  6503. _ACEOF
  6504. fi
  6505. { echo "$as_me:$LINENO: checking for inline" >&5
  6506. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  6507. if test "${ac_cv_c_inline+set}" = set; then
  6508. echo $ECHO_N "(cached) $ECHO_C" >&6
  6509. else
  6510. ac_cv_c_inline=no
  6511. for ac_kw in inline __inline__ __inline; do
  6512. cat >conftest.$ac_ext <<_ACEOF
  6513. /* confdefs.h. */
  6514. _ACEOF
  6515. cat confdefs.h >>conftest.$ac_ext
  6516. cat >>conftest.$ac_ext <<_ACEOF
  6517. /* end confdefs.h. */
  6518. #ifndef __cplusplus
  6519. typedef int foo_t;
  6520. static $ac_kw foo_t static_foo () {return 0; }
  6521. $ac_kw foo_t foo () {return 0; }
  6522. #endif
  6523. _ACEOF
  6524. rm -f conftest.$ac_objext
  6525. if { (ac_try="$ac_compile"
  6526. case "(($ac_try" in
  6527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6528. *) ac_try_echo=$ac_try;;
  6529. esac
  6530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6531. (eval "$ac_compile") 2>conftest.er1
  6532. ac_status=$?
  6533. grep -v '^ *+' conftest.er1 >conftest.err
  6534. rm -f conftest.er1
  6535. cat conftest.err >&5
  6536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6537. (exit $ac_status); } && {
  6538. test -z "$ac_c_werror_flag" ||
  6539. test ! -s conftest.err
  6540. } && test -s conftest.$ac_objext; then
  6541. ac_cv_c_inline=$ac_kw
  6542. else
  6543. echo "$as_me: failed program was:" >&5
  6544. sed 's/^/| /' conftest.$ac_ext >&5
  6545. fi
  6546. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6547. test "$ac_cv_c_inline" != no && break
  6548. done
  6549. fi
  6550. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6551. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  6552. case $ac_cv_c_inline in
  6553. inline | yes) ;;
  6554. *)
  6555. case $ac_cv_c_inline in
  6556. no) ac_val=;;
  6557. *) ac_val=$ac_cv_c_inline;;
  6558. esac
  6559. cat >>confdefs.h <<_ACEOF
  6560. #ifndef __cplusplus
  6561. #define inline $ac_val
  6562. #endif
  6563. _ACEOF
  6564. ;;
  6565. esac
  6566. { echo "$as_me:$LINENO: checking for size_t" >&5
  6567. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  6568. if test "${ac_cv_type_size_t+set}" = set; then
  6569. echo $ECHO_N "(cached) $ECHO_C" >&6
  6570. else
  6571. cat >conftest.$ac_ext <<_ACEOF
  6572. /* confdefs.h. */
  6573. _ACEOF
  6574. cat confdefs.h >>conftest.$ac_ext
  6575. cat >>conftest.$ac_ext <<_ACEOF
  6576. /* end confdefs.h. */
  6577. $ac_includes_default
  6578. typedef size_t ac__type_new_;
  6579. int
  6580. main ()
  6581. {
  6582. if ((ac__type_new_ *) 0)
  6583. return 0;
  6584. if (sizeof (ac__type_new_))
  6585. return 0;
  6586. ;
  6587. return 0;
  6588. }
  6589. _ACEOF
  6590. rm -f conftest.$ac_objext
  6591. if { (ac_try="$ac_compile"
  6592. case "(($ac_try" in
  6593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6594. *) ac_try_echo=$ac_try;;
  6595. esac
  6596. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6597. (eval "$ac_compile") 2>conftest.er1
  6598. ac_status=$?
  6599. grep -v '^ *+' conftest.er1 >conftest.err
  6600. rm -f conftest.er1
  6601. cat conftest.err >&5
  6602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6603. (exit $ac_status); } && {
  6604. test -z "$ac_c_werror_flag" ||
  6605. test ! -s conftest.err
  6606. } && test -s conftest.$ac_objext; then
  6607. ac_cv_type_size_t=yes
  6608. else
  6609. echo "$as_me: failed program was:" >&5
  6610. sed 's/^/| /' conftest.$ac_ext >&5
  6611. ac_cv_type_size_t=no
  6612. fi
  6613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6614. fi
  6615. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6616. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  6617. if test $ac_cv_type_size_t = yes; then
  6618. :
  6619. else
  6620. cat >>confdefs.h <<_ACEOF
  6621. #define size_t unsigned int
  6622. _ACEOF
  6623. fi
  6624. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  6625. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  6626. if test "${ac_cv_header_time+set}" = set; then
  6627. echo $ECHO_N "(cached) $ECHO_C" >&6
  6628. else
  6629. cat >conftest.$ac_ext <<_ACEOF
  6630. /* confdefs.h. */
  6631. _ACEOF
  6632. cat confdefs.h >>conftest.$ac_ext
  6633. cat >>conftest.$ac_ext <<_ACEOF
  6634. /* end confdefs.h. */
  6635. #include <sys/types.h>
  6636. #include <sys/time.h>
  6637. #include <time.h>
  6638. int
  6639. main ()
  6640. {
  6641. if ((struct tm *) 0)
  6642. return 0;
  6643. ;
  6644. return 0;
  6645. }
  6646. _ACEOF
  6647. rm -f conftest.$ac_objext
  6648. if { (ac_try="$ac_compile"
  6649. case "(($ac_try" in
  6650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6651. *) ac_try_echo=$ac_try;;
  6652. esac
  6653. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6654. (eval "$ac_compile") 2>conftest.er1
  6655. ac_status=$?
  6656. grep -v '^ *+' conftest.er1 >conftest.err
  6657. rm -f conftest.er1
  6658. cat conftest.err >&5
  6659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6660. (exit $ac_status); } && {
  6661. test -z "$ac_c_werror_flag" ||
  6662. test ! -s conftest.err
  6663. } && test -s conftest.$ac_objext; then
  6664. ac_cv_header_time=yes
  6665. else
  6666. echo "$as_me: failed program was:" >&5
  6667. sed 's/^/| /' conftest.$ac_ext >&5
  6668. ac_cv_header_time=no
  6669. fi
  6670. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6671. fi
  6672. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  6673. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  6674. if test $ac_cv_header_time = yes; then
  6675. cat >>confdefs.h <<\_ACEOF
  6676. #define TIME_WITH_SYS_TIME 1
  6677. _ACEOF
  6678. fi
  6679. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6680. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  6681. if test "${ac_cv_struct_tm+set}" = set; then
  6682. echo $ECHO_N "(cached) $ECHO_C" >&6
  6683. else
  6684. cat >conftest.$ac_ext <<_ACEOF
  6685. /* confdefs.h. */
  6686. _ACEOF
  6687. cat confdefs.h >>conftest.$ac_ext
  6688. cat >>conftest.$ac_ext <<_ACEOF
  6689. /* end confdefs.h. */
  6690. #include <sys/types.h>
  6691. #include <time.h>
  6692. int
  6693. main ()
  6694. {
  6695. struct tm tm;
  6696. int *p = &tm.tm_sec;
  6697. return !p;
  6698. ;
  6699. return 0;
  6700. }
  6701. _ACEOF
  6702. rm -f conftest.$ac_objext
  6703. if { (ac_try="$ac_compile"
  6704. case "(($ac_try" in
  6705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6706. *) ac_try_echo=$ac_try;;
  6707. esac
  6708. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6709. (eval "$ac_compile") 2>conftest.er1
  6710. ac_status=$?
  6711. grep -v '^ *+' conftest.er1 >conftest.err
  6712. rm -f conftest.er1
  6713. cat conftest.err >&5
  6714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6715. (exit $ac_status); } && {
  6716. test -z "$ac_c_werror_flag" ||
  6717. test ! -s conftest.err
  6718. } && test -s conftest.$ac_objext; then
  6719. ac_cv_struct_tm=time.h
  6720. else
  6721. echo "$as_me: failed program was:" >&5
  6722. sed 's/^/| /' conftest.$ac_ext >&5
  6723. ac_cv_struct_tm=sys/time.h
  6724. fi
  6725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6726. fi
  6727. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6728. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  6729. if test $ac_cv_struct_tm = sys/time.h; then
  6730. cat >>confdefs.h <<\_ACEOF
  6731. #define TM_IN_SYS_TIME 1
  6732. _ACEOF
  6733. fi
  6734. { echo "$as_me:$LINENO: checking for working volatile" >&5
  6735. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  6736. if test "${ac_cv_c_volatile+set}" = set; then
  6737. echo $ECHO_N "(cached) $ECHO_C" >&6
  6738. else
  6739. cat >conftest.$ac_ext <<_ACEOF
  6740. /* confdefs.h. */
  6741. _ACEOF
  6742. cat confdefs.h >>conftest.$ac_ext
  6743. cat >>conftest.$ac_ext <<_ACEOF
  6744. /* end confdefs.h. */
  6745. int
  6746. main ()
  6747. {
  6748. volatile int x;
  6749. int * volatile y = (int *) 0;
  6750. return !x && !y;
  6751. ;
  6752. return 0;
  6753. }
  6754. _ACEOF
  6755. rm -f conftest.$ac_objext
  6756. if { (ac_try="$ac_compile"
  6757. case "(($ac_try" in
  6758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6759. *) ac_try_echo=$ac_try;;
  6760. esac
  6761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6762. (eval "$ac_compile") 2>conftest.er1
  6763. ac_status=$?
  6764. grep -v '^ *+' conftest.er1 >conftest.err
  6765. rm -f conftest.er1
  6766. cat conftest.err >&5
  6767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6768. (exit $ac_status); } && {
  6769. test -z "$ac_c_werror_flag" ||
  6770. test ! -s conftest.err
  6771. } && test -s conftest.$ac_objext; then
  6772. ac_cv_c_volatile=yes
  6773. else
  6774. echo "$as_me: failed program was:" >&5
  6775. sed 's/^/| /' conftest.$ac_ext >&5
  6776. ac_cv_c_volatile=no
  6777. fi
  6778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6779. fi
  6780. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  6781. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  6782. if test $ac_cv_c_volatile = no; then
  6783. cat >>confdefs.h <<\_ACEOF
  6784. #define volatile
  6785. _ACEOF
  6786. fi
  6787. # Checks for library functions.
  6788. MKINSTALLDIRS=
  6789. if test -n "$ac_aux_dir"; then
  6790. case "$ac_aux_dir" in
  6791. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  6792. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  6793. esac
  6794. fi
  6795. if test -z "$MKINSTALLDIRS"; then
  6796. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  6797. fi
  6798. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  6799. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  6800. # Check whether --enable-nls was given.
  6801. if test "${enable_nls+set}" = set; then
  6802. enableval=$enable_nls; USE_NLS=$enableval
  6803. else
  6804. USE_NLS=yes
  6805. fi
  6806. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  6807. echo "${ECHO_T}$USE_NLS" >&6; }
  6808. # Prepare PATH_SEPARATOR.
  6809. # The user is always right.
  6810. if test "${PATH_SEPARATOR+set}" != set; then
  6811. echo "#! /bin/sh" >conf$$.sh
  6812. echo "exit 0" >>conf$$.sh
  6813. chmod +x conf$$.sh
  6814. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6815. PATH_SEPARATOR=';'
  6816. else
  6817. PATH_SEPARATOR=:
  6818. fi
  6819. rm -f conf$$.sh
  6820. fi
  6821. # Find out how to test for executable files. Don't use a zero-byte file,
  6822. # as systems may use methods other than mode bits to determine executability.
  6823. cat >conf$$.file <<_ASEOF
  6824. #! /bin/sh
  6825. exit 0
  6826. _ASEOF
  6827. chmod +x conf$$.file
  6828. if test -x conf$$.file >/dev/null 2>&1; then
  6829. ac_executable_p="test -x"
  6830. else
  6831. ac_executable_p="test -f"
  6832. fi
  6833. rm -f conf$$.file
  6834. # Extract the first word of "msgfmt", so it can be a program name with args.
  6835. set dummy msgfmt; ac_word=$2
  6836. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6837. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6838. if test "${ac_cv_path_MSGFMT+set}" = set; then
  6839. echo $ECHO_N "(cached) $ECHO_C" >&6
  6840. else
  6841. case "$MSGFMT" in
  6842. [\\/]* | ?:[\\/]*)
  6843. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  6844. ;;
  6845. *)
  6846. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6847. for ac_dir in $PATH; do
  6848. IFS="$ac_save_IFS"
  6849. test -z "$ac_dir" && ac_dir=.
  6850. for ac_exec_ext in '' $ac_executable_extensions; do
  6851. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6852. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  6853. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6854. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  6855. break 2
  6856. fi
  6857. fi
  6858. done
  6859. done
  6860. IFS="$ac_save_IFS"
  6861. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  6862. ;;
  6863. esac
  6864. fi
  6865. MSGFMT="$ac_cv_path_MSGFMT"
  6866. if test "$MSGFMT" != ":"; then
  6867. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  6868. echo "${ECHO_T}$MSGFMT" >&6; }
  6869. else
  6870. { echo "$as_me:$LINENO: result: no" >&5
  6871. echo "${ECHO_T}no" >&6; }
  6872. fi
  6873. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  6874. set dummy gmsgfmt; ac_word=$2
  6875. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6876. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6877. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  6878. echo $ECHO_N "(cached) $ECHO_C" >&6
  6879. else
  6880. case $GMSGFMT in
  6881. [\\/]* | ?:[\\/]*)
  6882. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6883. ;;
  6884. *)
  6885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6886. for as_dir in $PATH
  6887. do
  6888. IFS=$as_save_IFS
  6889. test -z "$as_dir" && as_dir=.
  6890. for ac_exec_ext in '' $ac_executable_extensions; do
  6891. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6892. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  6893. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6894. break 2
  6895. fi
  6896. done
  6897. done
  6898. IFS=$as_save_IFS
  6899. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  6900. ;;
  6901. esac
  6902. fi
  6903. GMSGFMT=$ac_cv_path_GMSGFMT
  6904. if test -n "$GMSGFMT"; then
  6905. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  6906. echo "${ECHO_T}$GMSGFMT" >&6; }
  6907. else
  6908. { echo "$as_me:$LINENO: result: no" >&5
  6909. echo "${ECHO_T}no" >&6; }
  6910. fi
  6911. # Prepare PATH_SEPARATOR.
  6912. # The user is always right.
  6913. if test "${PATH_SEPARATOR+set}" != set; then
  6914. echo "#! /bin/sh" >conf$$.sh
  6915. echo "exit 0" >>conf$$.sh
  6916. chmod +x conf$$.sh
  6917. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6918. PATH_SEPARATOR=';'
  6919. else
  6920. PATH_SEPARATOR=:
  6921. fi
  6922. rm -f conf$$.sh
  6923. fi
  6924. # Find out how to test for executable files. Don't use a zero-byte file,
  6925. # as systems may use methods other than mode bits to determine executability.
  6926. cat >conf$$.file <<_ASEOF
  6927. #! /bin/sh
  6928. exit 0
  6929. _ASEOF
  6930. chmod +x conf$$.file
  6931. if test -x conf$$.file >/dev/null 2>&1; then
  6932. ac_executable_p="test -x"
  6933. else
  6934. ac_executable_p="test -f"
  6935. fi
  6936. rm -f conf$$.file
  6937. # Extract the first word of "xgettext", so it can be a program name with args.
  6938. set dummy xgettext; ac_word=$2
  6939. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6940. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6941. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  6942. echo $ECHO_N "(cached) $ECHO_C" >&6
  6943. else
  6944. case "$XGETTEXT" in
  6945. [\\/]* | ?:[\\/]*)
  6946. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6947. ;;
  6948. *)
  6949. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6950. for ac_dir in $PATH; do
  6951. IFS="$ac_save_IFS"
  6952. test -z "$ac_dir" && ac_dir=.
  6953. for ac_exec_ext in '' $ac_executable_extensions; do
  6954. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6955. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6956. (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
  6957. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  6958. break 2
  6959. fi
  6960. fi
  6961. done
  6962. done
  6963. IFS="$ac_save_IFS"
  6964. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6965. ;;
  6966. esac
  6967. fi
  6968. XGETTEXT="$ac_cv_path_XGETTEXT"
  6969. if test "$XGETTEXT" != ":"; then
  6970. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  6971. echo "${ECHO_T}$XGETTEXT" >&6; }
  6972. else
  6973. { echo "$as_me:$LINENO: result: no" >&5
  6974. echo "${ECHO_T}no" >&6; }
  6975. fi
  6976. rm -f messages.po
  6977. # Prepare PATH_SEPARATOR.
  6978. # The user is always right.
  6979. if test "${PATH_SEPARATOR+set}" != set; then
  6980. echo "#! /bin/sh" >conf$$.sh
  6981. echo "exit 0" >>conf$$.sh
  6982. chmod +x conf$$.sh
  6983. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6984. PATH_SEPARATOR=';'
  6985. else
  6986. PATH_SEPARATOR=:
  6987. fi
  6988. rm -f conf$$.sh
  6989. fi
  6990. # Find out how to test for executable files. Don't use a zero-byte file,
  6991. # as systems may use methods other than mode bits to determine executability.
  6992. cat >conf$$.file <<_ASEOF
  6993. #! /bin/sh
  6994. exit 0
  6995. _ASEOF
  6996. chmod +x conf$$.file
  6997. if test -x conf$$.file >/dev/null 2>&1; then
  6998. ac_executable_p="test -x"
  6999. else
  7000. ac_executable_p="test -f"
  7001. fi
  7002. rm -f conf$$.file
  7003. # Extract the first word of "msgmerge", so it can be a program name with args.
  7004. set dummy msgmerge; ac_word=$2
  7005. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7006. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7007. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  7008. echo $ECHO_N "(cached) $ECHO_C" >&6
  7009. else
  7010. case "$MSGMERGE" in
  7011. [\\/]* | ?:[\\/]*)
  7012. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  7013. ;;
  7014. *)
  7015. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7016. for ac_dir in $PATH; do
  7017. IFS="$ac_save_IFS"
  7018. test -z "$ac_dir" && ac_dir=.
  7019. for ac_exec_ext in '' $ac_executable_extensions; do
  7020. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7021. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  7022. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  7023. break 2
  7024. fi
  7025. fi
  7026. done
  7027. done
  7028. IFS="$ac_save_IFS"
  7029. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  7030. ;;
  7031. esac
  7032. fi
  7033. MSGMERGE="$ac_cv_path_MSGMERGE"
  7034. if test "$MSGMERGE" != ":"; then
  7035. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  7036. echo "${ECHO_T}$MSGMERGE" >&6; }
  7037. else
  7038. { echo "$as_me:$LINENO: result: no" >&5
  7039. echo "${ECHO_T}no" >&6; }
  7040. fi
  7041. if test "$GMSGFMT" != ":"; then
  7042. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  7043. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7044. : ;
  7045. else
  7046. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  7047. { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  7048. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  7049. GMSGFMT=":"
  7050. fi
  7051. fi
  7052. if test "$XGETTEXT" != ":"; then
  7053. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  7054. (if $XGETTEXT --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
  7055. : ;
  7056. else
  7057. { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  7058. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
  7059. XGETTEXT=":"
  7060. fi
  7061. rm -f messages.po
  7062. fi
  7063. ac_config_commands="$ac_config_commands default-1"
  7064. { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  7065. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  7066. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  7067. echo $ECHO_N "(cached) $ECHO_C" >&6
  7068. else
  7069. ac_check_lib_save_LIBS=$LIBS
  7070. LIBS="-lcposix $LIBS"
  7071. cat >conftest.$ac_ext <<_ACEOF
  7072. /* confdefs.h. */
  7073. _ACEOF
  7074. cat confdefs.h >>conftest.$ac_ext
  7075. cat >>conftest.$ac_ext <<_ACEOF
  7076. /* end confdefs.h. */
  7077. /* Override any GCC internal prototype to avoid an error.
  7078. Use char because int might match the return type of a GCC
  7079. builtin and then its argument prototype would still apply. */
  7080. #ifdef __cplusplus
  7081. extern "C"
  7082. #endif
  7083. char strerror ();
  7084. int
  7085. main ()
  7086. {
  7087. return strerror ();
  7088. ;
  7089. return 0;
  7090. }
  7091. _ACEOF
  7092. rm -f conftest.$ac_objext conftest$ac_exeext
  7093. if { (ac_try="$ac_link"
  7094. case "(($ac_try" in
  7095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7096. *) ac_try_echo=$ac_try;;
  7097. esac
  7098. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7099. (eval "$ac_link") 2>conftest.er1
  7100. ac_status=$?
  7101. grep -v '^ *+' conftest.er1 >conftest.err
  7102. rm -f conftest.er1
  7103. cat conftest.err >&5
  7104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7105. (exit $ac_status); } && {
  7106. test -z "$ac_c_werror_flag" ||
  7107. test ! -s conftest.err
  7108. } && test -s conftest$ac_exeext &&
  7109. $as_test_x conftest$ac_exeext; then
  7110. ac_cv_lib_cposix_strerror=yes
  7111. else
  7112. echo "$as_me: failed program was:" >&5
  7113. sed 's/^/| /' conftest.$ac_ext >&5
  7114. ac_cv_lib_cposix_strerror=no
  7115. fi
  7116. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7117. conftest$ac_exeext conftest.$ac_ext
  7118. LIBS=$ac_check_lib_save_LIBS
  7119. fi
  7120. { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  7121. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  7122. if test $ac_cv_lib_cposix_strerror = yes; then
  7123. LIBS="$LIBS -lcposix"
  7124. fi
  7125. { echo "$as_me:$LINENO: checking for off_t" >&5
  7126. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7127. if test "${ac_cv_type_off_t+set}" = set; then
  7128. echo $ECHO_N "(cached) $ECHO_C" >&6
  7129. else
  7130. cat >conftest.$ac_ext <<_ACEOF
  7131. /* confdefs.h. */
  7132. _ACEOF
  7133. cat confdefs.h >>conftest.$ac_ext
  7134. cat >>conftest.$ac_ext <<_ACEOF
  7135. /* end confdefs.h. */
  7136. $ac_includes_default
  7137. typedef off_t ac__type_new_;
  7138. int
  7139. main ()
  7140. {
  7141. if ((ac__type_new_ *) 0)
  7142. return 0;
  7143. if (sizeof (ac__type_new_))
  7144. return 0;
  7145. ;
  7146. return 0;
  7147. }
  7148. _ACEOF
  7149. rm -f conftest.$ac_objext
  7150. if { (ac_try="$ac_compile"
  7151. case "(($ac_try" in
  7152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7153. *) ac_try_echo=$ac_try;;
  7154. esac
  7155. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7156. (eval "$ac_compile") 2>conftest.er1
  7157. ac_status=$?
  7158. grep -v '^ *+' conftest.er1 >conftest.err
  7159. rm -f conftest.er1
  7160. cat conftest.err >&5
  7161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7162. (exit $ac_status); } && {
  7163. test -z "$ac_c_werror_flag" ||
  7164. test ! -s conftest.err
  7165. } && test -s conftest.$ac_objext; then
  7166. ac_cv_type_off_t=yes
  7167. else
  7168. echo "$as_me: failed program was:" >&5
  7169. sed 's/^/| /' conftest.$ac_ext >&5
  7170. ac_cv_type_off_t=no
  7171. fi
  7172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7173. fi
  7174. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7175. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7176. if test $ac_cv_type_off_t = yes; then
  7177. :
  7178. else
  7179. cat >>confdefs.h <<_ACEOF
  7180. #define off_t long int
  7181. _ACEOF
  7182. fi
  7183. for ac_header in stdlib.h unistd.h
  7184. do
  7185. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7186. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7187. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7188. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7189. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7190. echo $ECHO_N "(cached) $ECHO_C" >&6
  7191. fi
  7192. ac_res=`eval echo '${'$as_ac_Header'}'`
  7193. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7194. echo "${ECHO_T}$ac_res" >&6; }
  7195. else
  7196. # Is the header compilable?
  7197. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7198. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7199. cat >conftest.$ac_ext <<_ACEOF
  7200. /* confdefs.h. */
  7201. _ACEOF
  7202. cat confdefs.h >>conftest.$ac_ext
  7203. cat >>conftest.$ac_ext <<_ACEOF
  7204. /* end confdefs.h. */
  7205. $ac_includes_default
  7206. #include <$ac_header>
  7207. _ACEOF
  7208. rm -f conftest.$ac_objext
  7209. if { (ac_try="$ac_compile"
  7210. case "(($ac_try" in
  7211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7212. *) ac_try_echo=$ac_try;;
  7213. esac
  7214. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7215. (eval "$ac_compile") 2>conftest.er1
  7216. ac_status=$?
  7217. grep -v '^ *+' conftest.er1 >conftest.err
  7218. rm -f conftest.er1
  7219. cat conftest.err >&5
  7220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7221. (exit $ac_status); } && {
  7222. test -z "$ac_c_werror_flag" ||
  7223. test ! -s conftest.err
  7224. } && test -s conftest.$ac_objext; then
  7225. ac_header_compiler=yes
  7226. else
  7227. echo "$as_me: failed program was:" >&5
  7228. sed 's/^/| /' conftest.$ac_ext >&5
  7229. ac_header_compiler=no
  7230. fi
  7231. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7232. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7233. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7234. # Is the header present?
  7235. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7236. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7237. cat >conftest.$ac_ext <<_ACEOF
  7238. /* confdefs.h. */
  7239. _ACEOF
  7240. cat confdefs.h >>conftest.$ac_ext
  7241. cat >>conftest.$ac_ext <<_ACEOF
  7242. /* end confdefs.h. */
  7243. #include <$ac_header>
  7244. _ACEOF
  7245. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7246. case "(($ac_try" in
  7247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7248. *) ac_try_echo=$ac_try;;
  7249. esac
  7250. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7251. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7252. ac_status=$?
  7253. grep -v '^ *+' conftest.er1 >conftest.err
  7254. rm -f conftest.er1
  7255. cat conftest.err >&5
  7256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7257. (exit $ac_status); } >/dev/null && {
  7258. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7259. test ! -s conftest.err
  7260. }; then
  7261. ac_header_preproc=yes
  7262. else
  7263. echo "$as_me: failed program was:" >&5
  7264. sed 's/^/| /' conftest.$ac_ext >&5
  7265. ac_header_preproc=no
  7266. fi
  7267. rm -f conftest.err conftest.$ac_ext
  7268. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7269. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7270. # So? What about this header?
  7271. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7272. yes:no: )
  7273. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7274. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7275. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7276. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7277. ac_header_preproc=yes
  7278. ;;
  7279. no:yes:* )
  7280. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7281. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7282. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7283. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7284. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7285. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7286. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7287. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7288. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7289. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7290. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7291. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7292. ( cat <<\_ASBOX
  7293. ## ----------------------------------------------- ##
  7294. ## Report this to t-tujikawa@users.sourceforge.net ##
  7295. ## ----------------------------------------------- ##
  7296. _ASBOX
  7297. ) | sed "s/^/$as_me: WARNING: /" >&2
  7298. ;;
  7299. esac
  7300. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7301. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7302. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7303. echo $ECHO_N "(cached) $ECHO_C" >&6
  7304. else
  7305. eval "$as_ac_Header=\$ac_header_preproc"
  7306. fi
  7307. ac_res=`eval echo '${'$as_ac_Header'}'`
  7308. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7309. echo "${ECHO_T}$ac_res" >&6; }
  7310. fi
  7311. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7312. cat >>confdefs.h <<_ACEOF
  7313. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7314. _ACEOF
  7315. fi
  7316. done
  7317. for ac_func in getpagesize
  7318. do
  7319. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7320. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7321. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7322. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7323. echo $ECHO_N "(cached) $ECHO_C" >&6
  7324. else
  7325. cat >conftest.$ac_ext <<_ACEOF
  7326. /* confdefs.h. */
  7327. _ACEOF
  7328. cat confdefs.h >>conftest.$ac_ext
  7329. cat >>conftest.$ac_ext <<_ACEOF
  7330. /* end confdefs.h. */
  7331. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7332. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7333. #define $ac_func innocuous_$ac_func
  7334. /* System header to define __stub macros and hopefully few prototypes,
  7335. which can conflict with char $ac_func (); below.
  7336. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7337. <limits.h> exists even on freestanding compilers. */
  7338. #ifdef __STDC__
  7339. # include <limits.h>
  7340. #else
  7341. # include <assert.h>
  7342. #endif
  7343. #undef $ac_func
  7344. /* Override any GCC internal prototype to avoid an error.
  7345. Use char because int might match the return type of a GCC
  7346. builtin and then its argument prototype would still apply. */
  7347. #ifdef __cplusplus
  7348. extern "C"
  7349. #endif
  7350. char $ac_func ();
  7351. /* The GNU C library defines this for functions which it implements
  7352. to always fail with ENOSYS. Some functions are actually named
  7353. something starting with __ and the normal name is an alias. */
  7354. #if defined __stub_$ac_func || defined __stub___$ac_func
  7355. choke me
  7356. #endif
  7357. int
  7358. main ()
  7359. {
  7360. return $ac_func ();
  7361. ;
  7362. return 0;
  7363. }
  7364. _ACEOF
  7365. rm -f conftest.$ac_objext conftest$ac_exeext
  7366. if { (ac_try="$ac_link"
  7367. case "(($ac_try" in
  7368. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7369. *) ac_try_echo=$ac_try;;
  7370. esac
  7371. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7372. (eval "$ac_link") 2>conftest.er1
  7373. ac_status=$?
  7374. grep -v '^ *+' conftest.er1 >conftest.err
  7375. rm -f conftest.er1
  7376. cat conftest.err >&5
  7377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7378. (exit $ac_status); } && {
  7379. test -z "$ac_c_werror_flag" ||
  7380. test ! -s conftest.err
  7381. } && test -s conftest$ac_exeext &&
  7382. $as_test_x conftest$ac_exeext; then
  7383. eval "$as_ac_var=yes"
  7384. else
  7385. echo "$as_me: failed program was:" >&5
  7386. sed 's/^/| /' conftest.$ac_ext >&5
  7387. eval "$as_ac_var=no"
  7388. fi
  7389. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7390. conftest$ac_exeext conftest.$ac_ext
  7391. fi
  7392. ac_res=`eval echo '${'$as_ac_var'}'`
  7393. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7394. echo "${ECHO_T}$ac_res" >&6; }
  7395. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7396. cat >>confdefs.h <<_ACEOF
  7397. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7398. _ACEOF
  7399. fi
  7400. done
  7401. { echo "$as_me:$LINENO: checking for working mmap" >&5
  7402. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  7403. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  7404. echo $ECHO_N "(cached) $ECHO_C" >&6
  7405. else
  7406. if test "$cross_compiling" = yes; then
  7407. ac_cv_func_mmap_fixed_mapped=no
  7408. else
  7409. cat >conftest.$ac_ext <<_ACEOF
  7410. /* confdefs.h. */
  7411. _ACEOF
  7412. cat confdefs.h >>conftest.$ac_ext
  7413. cat >>conftest.$ac_ext <<_ACEOF
  7414. /* end confdefs.h. */
  7415. $ac_includes_default
  7416. /* malloc might have been renamed as rpl_malloc. */
  7417. #undef malloc
  7418. /* Thanks to Mike Haertel and Jim Avera for this test.
  7419. Here is a matrix of mmap possibilities:
  7420. mmap private not fixed
  7421. mmap private fixed at somewhere currently unmapped
  7422. mmap private fixed at somewhere already mapped
  7423. mmap shared not fixed
  7424. mmap shared fixed at somewhere currently unmapped
  7425. mmap shared fixed at somewhere already mapped
  7426. For private mappings, we should verify that changes cannot be read()
  7427. back from the file, nor mmap's back from the file at a different
  7428. address. (There have been systems where private was not correctly
  7429. implemented like the infamous i386 svr4.0, and systems where the
  7430. VM page cache was not coherent with the file system buffer cache
  7431. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7432. For shared mappings, we should conversely verify that changes get
  7433. propagated back to all the places they're supposed to be.
  7434. Grep wants private fixed already mapped.
  7435. The main things grep needs to know about mmap are:
  7436. * does it exist and is it safe to write into the mmap'd area
  7437. * how to use it (BSD variants) */
  7438. #include <fcntl.h>
  7439. #include <sys/mman.h>
  7440. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7441. char *malloc ();
  7442. #endif
  7443. /* This mess was copied from the GNU getpagesize.h. */
  7444. #ifndef HAVE_GETPAGESIZE
  7445. /* Assume that all systems that can run configure have sys/param.h. */
  7446. # ifndef HAVE_SYS_PARAM_H
  7447. # define HAVE_SYS_PARAM_H 1
  7448. # endif
  7449. # ifdef _SC_PAGESIZE
  7450. # define getpagesize() sysconf(_SC_PAGESIZE)
  7451. # else /* no _SC_PAGESIZE */
  7452. # ifdef HAVE_SYS_PARAM_H
  7453. # include <sys/param.h>
  7454. # ifdef EXEC_PAGESIZE
  7455. # define getpagesize() EXEC_PAGESIZE
  7456. # else /* no EXEC_PAGESIZE */
  7457. # ifdef NBPG
  7458. # define getpagesize() NBPG * CLSIZE
  7459. # ifndef CLSIZE
  7460. # define CLSIZE 1
  7461. # endif /* no CLSIZE */
  7462. # else /* no NBPG */
  7463. # ifdef NBPC
  7464. # define getpagesize() NBPC
  7465. # else /* no NBPC */
  7466. # ifdef PAGESIZE
  7467. # define getpagesize() PAGESIZE
  7468. # endif /* PAGESIZE */
  7469. # endif /* no NBPC */
  7470. # endif /* no NBPG */
  7471. # endif /* no EXEC_PAGESIZE */
  7472. # else /* no HAVE_SYS_PARAM_H */
  7473. # define getpagesize() 8192 /* punt totally */
  7474. # endif /* no HAVE_SYS_PARAM_H */
  7475. # endif /* no _SC_PAGESIZE */
  7476. #endif /* no HAVE_GETPAGESIZE */
  7477. int
  7478. main ()
  7479. {
  7480. char *data, *data2, *data3;
  7481. int i, pagesize;
  7482. int fd;
  7483. pagesize = getpagesize ();
  7484. /* First, make a file with some known garbage in it. */
  7485. data = (char *) malloc (pagesize);
  7486. if (!data)
  7487. return 1;
  7488. for (i = 0; i < pagesize; ++i)
  7489. *(data + i) = rand ();
  7490. umask (0);
  7491. fd = creat ("conftest.mmap", 0600);
  7492. if (fd < 0)
  7493. return 1;
  7494. if (write (fd, data, pagesize) != pagesize)
  7495. return 1;
  7496. close (fd);
  7497. /* Next, try to mmap the file at a fixed address which already has
  7498. something else allocated at it. If we can, also make sure that
  7499. we see the same garbage. */
  7500. fd = open ("conftest.mmap", O_RDWR);
  7501. if (fd < 0)
  7502. return 1;
  7503. data2 = (char *) malloc (2 * pagesize);
  7504. if (!data2)
  7505. return 1;
  7506. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  7507. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7508. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7509. return 1;
  7510. for (i = 0; i < pagesize; ++i)
  7511. if (*(data + i) != *(data2 + i))
  7512. return 1;
  7513. /* Finally, make sure that changes to the mapped area do not
  7514. percolate back to the file as seen by read(). (This is a bug on
  7515. some variants of i386 svr4.0.) */
  7516. for (i = 0; i < pagesize; ++i)
  7517. *(data2 + i) = *(data2 + i) + 1;
  7518. data3 = (char *) malloc (pagesize);
  7519. if (!data3)
  7520. return 1;
  7521. if (read (fd, data3, pagesize) != pagesize)
  7522. return 1;
  7523. for (i = 0; i < pagesize; ++i)
  7524. if (*(data + i) != *(data3 + i))
  7525. return 1;
  7526. close (fd);
  7527. return 0;
  7528. }
  7529. _ACEOF
  7530. rm -f conftest$ac_exeext
  7531. if { (ac_try="$ac_link"
  7532. case "(($ac_try" in
  7533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7534. *) ac_try_echo=$ac_try;;
  7535. esac
  7536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7537. (eval "$ac_link") 2>&5
  7538. ac_status=$?
  7539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7540. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7541. { (case "(($ac_try" in
  7542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7543. *) ac_try_echo=$ac_try;;
  7544. esac
  7545. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7546. (eval "$ac_try") 2>&5
  7547. ac_status=$?
  7548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7549. (exit $ac_status); }; }; then
  7550. ac_cv_func_mmap_fixed_mapped=yes
  7551. else
  7552. echo "$as_me: program exited with status $ac_status" >&5
  7553. echo "$as_me: failed program was:" >&5
  7554. sed 's/^/| /' conftest.$ac_ext >&5
  7555. ( exit $ac_status )
  7556. ac_cv_func_mmap_fixed_mapped=no
  7557. fi
  7558. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7559. fi
  7560. fi
  7561. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7562. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  7563. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7564. cat >>confdefs.h <<\_ACEOF
  7565. #define HAVE_MMAP 1
  7566. _ACEOF
  7567. fi
  7568. rm -f conftest.mmap
  7569. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  7570. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  7571. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  7572. echo $ECHO_N "(cached) $ECHO_C" >&6
  7573. else
  7574. cat >conftest.$ac_ext <<_ACEOF
  7575. /* confdefs.h. */
  7576. _ACEOF
  7577. cat confdefs.h >>conftest.$ac_ext
  7578. cat >>conftest.$ac_ext <<_ACEOF
  7579. /* end confdefs.h. */
  7580. #include <features.h>
  7581. #ifdef __GNU_LIBRARY__
  7582. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  7583. Lucky GNU user
  7584. #endif
  7585. #endif
  7586. _ACEOF
  7587. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7588. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  7589. ac_cv_gnu_library_2_1=yes
  7590. else
  7591. ac_cv_gnu_library_2_1=no
  7592. fi
  7593. rm -f conftest*
  7594. fi
  7595. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  7596. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  7597. GLIBC21="$ac_cv_gnu_library_2_1"
  7598. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  7599. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  7600. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  7601. echo $ECHO_N "(cached) $ECHO_C" >&6
  7602. else
  7603. if test "$cross_compiling" = yes; then
  7604. # Guess based on the CPU.
  7605. case "$host_cpu" in
  7606. alpha* | i3456786 | m68k | s390*)
  7607. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  7608. *)
  7609. gt_cv_int_divbyzero_sigfpe="guessing no";;
  7610. esac
  7611. else
  7612. cat >conftest.$ac_ext <<_ACEOF
  7613. /* confdefs.h. */
  7614. _ACEOF
  7615. cat confdefs.h >>conftest.$ac_ext
  7616. cat >>conftest.$ac_ext <<_ACEOF
  7617. /* end confdefs.h. */
  7618. #include <stdlib.h>
  7619. #include <signal.h>
  7620. static void
  7621. #ifdef __cplusplus
  7622. sigfpe_handler (int sig)
  7623. #else
  7624. sigfpe_handler (sig) int sig;
  7625. #endif
  7626. {
  7627. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  7628. exit (sig != SIGFPE);
  7629. }
  7630. int x = 1;
  7631. int y = 0;
  7632. int z;
  7633. int nan;
  7634. int main ()
  7635. {
  7636. signal (SIGFPE, sigfpe_handler);
  7637. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  7638. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  7639. signal (SIGTRAP, sigfpe_handler);
  7640. #endif
  7641. /* Linux/SPARC yields signal SIGILL. */
  7642. #if defined (__sparc__) && defined (__linux__)
  7643. signal (SIGILL, sigfpe_handler);
  7644. #endif
  7645. z = x / y;
  7646. nan = y / y;
  7647. exit (1);
  7648. }
  7649. _ACEOF
  7650. rm -f conftest$ac_exeext
  7651. if { (ac_try="$ac_link"
  7652. case "(($ac_try" in
  7653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7654. *) ac_try_echo=$ac_try;;
  7655. esac
  7656. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7657. (eval "$ac_link") 2>&5
  7658. ac_status=$?
  7659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7660. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7661. { (case "(($ac_try" in
  7662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7663. *) ac_try_echo=$ac_try;;
  7664. esac
  7665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7666. (eval "$ac_try") 2>&5
  7667. ac_status=$?
  7668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7669. (exit $ac_status); }; }; then
  7670. gt_cv_int_divbyzero_sigfpe=yes
  7671. else
  7672. echo "$as_me: program exited with status $ac_status" >&5
  7673. echo "$as_me: failed program was:" >&5
  7674. sed 's/^/| /' conftest.$ac_ext >&5
  7675. ( exit $ac_status )
  7676. gt_cv_int_divbyzero_sigfpe=no
  7677. fi
  7678. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7679. fi
  7680. fi
  7681. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  7682. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  7683. case "$gt_cv_int_divbyzero_sigfpe" in
  7684. *yes) value=1;;
  7685. *) value=0;;
  7686. esac
  7687. cat >>confdefs.h <<_ACEOF
  7688. #define INTDIV0_RAISES_SIGFPE $value
  7689. _ACEOF
  7690. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7691. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7692. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  7693. echo $ECHO_N "(cached) $ECHO_C" >&6
  7694. else
  7695. cat >conftest.$ac_ext <<_ACEOF
  7696. /* confdefs.h. */
  7697. _ACEOF
  7698. cat confdefs.h >>conftest.$ac_ext
  7699. cat >>conftest.$ac_ext <<_ACEOF
  7700. /* end confdefs.h. */
  7701. #include <sys/types.h>
  7702. #include <inttypes.h>
  7703. int
  7704. main ()
  7705. {
  7706. uintmax_t i = (uintmax_t) -1;
  7707. ;
  7708. return 0;
  7709. }
  7710. _ACEOF
  7711. rm -f conftest.$ac_objext
  7712. if { (ac_try="$ac_compile"
  7713. case "(($ac_try" in
  7714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7715. *) ac_try_echo=$ac_try;;
  7716. esac
  7717. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7718. (eval "$ac_compile") 2>conftest.er1
  7719. ac_status=$?
  7720. grep -v '^ *+' conftest.er1 >conftest.err
  7721. rm -f conftest.er1
  7722. cat conftest.err >&5
  7723. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7724. (exit $ac_status); } && {
  7725. test -z "$ac_c_werror_flag" ||
  7726. test ! -s conftest.err
  7727. } && test -s conftest.$ac_objext; then
  7728. jm_ac_cv_header_inttypes_h=yes
  7729. else
  7730. echo "$as_me: failed program was:" >&5
  7731. sed 's/^/| /' conftest.$ac_ext >&5
  7732. jm_ac_cv_header_inttypes_h=no
  7733. fi
  7734. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7735. fi
  7736. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  7737. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
  7738. if test $jm_ac_cv_header_inttypes_h = yes; then
  7739. cat >>confdefs.h <<_ACEOF
  7740. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  7741. _ACEOF
  7742. fi
  7743. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  7744. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  7745. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  7746. echo $ECHO_N "(cached) $ECHO_C" >&6
  7747. else
  7748. cat >conftest.$ac_ext <<_ACEOF
  7749. /* confdefs.h. */
  7750. _ACEOF
  7751. cat confdefs.h >>conftest.$ac_ext
  7752. cat >>conftest.$ac_ext <<_ACEOF
  7753. /* end confdefs.h. */
  7754. #include <sys/types.h>
  7755. #include <stdint.h>
  7756. int
  7757. main ()
  7758. {
  7759. uintmax_t i = (uintmax_t) -1;
  7760. ;
  7761. return 0;
  7762. }
  7763. _ACEOF
  7764. rm -f conftest.$ac_objext
  7765. if { (ac_try="$ac_compile"
  7766. case "(($ac_try" in
  7767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7768. *) ac_try_echo=$ac_try;;
  7769. esac
  7770. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7771. (eval "$ac_compile") 2>conftest.er1
  7772. ac_status=$?
  7773. grep -v '^ *+' conftest.er1 >conftest.err
  7774. rm -f conftest.er1
  7775. cat conftest.err >&5
  7776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7777. (exit $ac_status); } && {
  7778. test -z "$ac_c_werror_flag" ||
  7779. test ! -s conftest.err
  7780. } && test -s conftest.$ac_objext; then
  7781. jm_ac_cv_header_stdint_h=yes
  7782. else
  7783. echo "$as_me: failed program was:" >&5
  7784. sed 's/^/| /' conftest.$ac_ext >&5
  7785. jm_ac_cv_header_stdint_h=no
  7786. fi
  7787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7788. fi
  7789. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  7790. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
  7791. if test $jm_ac_cv_header_stdint_h = yes; then
  7792. cat >>confdefs.h <<_ACEOF
  7793. #define HAVE_STDINT_H_WITH_UINTMAX 1
  7794. _ACEOF
  7795. fi
  7796. { echo "$as_me:$LINENO: checking for unsigned long long" >&5
  7797. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
  7798. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  7799. echo $ECHO_N "(cached) $ECHO_C" >&6
  7800. else
  7801. cat >conftest.$ac_ext <<_ACEOF
  7802. /* confdefs.h. */
  7803. _ACEOF
  7804. cat confdefs.h >>conftest.$ac_ext
  7805. cat >>conftest.$ac_ext <<_ACEOF
  7806. /* end confdefs.h. */
  7807. unsigned long long ull = 1; int i = 63;
  7808. int
  7809. main ()
  7810. {
  7811. unsigned long long ullmax = (unsigned long long) -1;
  7812. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  7813. ;
  7814. return 0;
  7815. }
  7816. _ACEOF
  7817. rm -f conftest.$ac_objext conftest$ac_exeext
  7818. if { (ac_try="$ac_link"
  7819. case "(($ac_try" in
  7820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7821. *) ac_try_echo=$ac_try;;
  7822. esac
  7823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7824. (eval "$ac_link") 2>conftest.er1
  7825. ac_status=$?
  7826. grep -v '^ *+' conftest.er1 >conftest.err
  7827. rm -f conftest.er1
  7828. cat conftest.err >&5
  7829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7830. (exit $ac_status); } && {
  7831. test -z "$ac_c_werror_flag" ||
  7832. test ! -s conftest.err
  7833. } && test -s conftest$ac_exeext &&
  7834. $as_test_x conftest$ac_exeext; then
  7835. ac_cv_type_unsigned_long_long=yes
  7836. else
  7837. echo "$as_me: failed program was:" >&5
  7838. sed 's/^/| /' conftest.$ac_ext >&5
  7839. ac_cv_type_unsigned_long_long=no
  7840. fi
  7841. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7842. conftest$ac_exeext conftest.$ac_ext
  7843. fi
  7844. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  7845. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
  7846. if test $ac_cv_type_unsigned_long_long = yes; then
  7847. cat >>confdefs.h <<\_ACEOF
  7848. #define HAVE_UNSIGNED_LONG_LONG 1
  7849. _ACEOF
  7850. fi
  7851. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  7852. test $ac_cv_type_unsigned_long_long = yes \
  7853. && ac_type='unsigned long long' \
  7854. || ac_type='unsigned long'
  7855. cat >>confdefs.h <<_ACEOF
  7856. #define uintmax_t $ac_type
  7857. _ACEOF
  7858. else
  7859. cat >>confdefs.h <<\_ACEOF
  7860. #define HAVE_UINTMAX_T 1
  7861. _ACEOF
  7862. fi
  7863. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7864. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7865. if test "${gt_cv_header_inttypes_h+set}" = set; then
  7866. echo $ECHO_N "(cached) $ECHO_C" >&6
  7867. else
  7868. cat >conftest.$ac_ext <<_ACEOF
  7869. /* confdefs.h. */
  7870. _ACEOF
  7871. cat confdefs.h >>conftest.$ac_ext
  7872. cat >>conftest.$ac_ext <<_ACEOF
  7873. /* end confdefs.h. */
  7874. #include <sys/types.h>
  7875. #include <inttypes.h>
  7876. int
  7877. main ()
  7878. {
  7879. ;
  7880. return 0;
  7881. }
  7882. _ACEOF
  7883. rm -f conftest.$ac_objext
  7884. if { (ac_try="$ac_compile"
  7885. case "(($ac_try" in
  7886. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7887. *) ac_try_echo=$ac_try;;
  7888. esac
  7889. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7890. (eval "$ac_compile") 2>conftest.er1
  7891. ac_status=$?
  7892. grep -v '^ *+' conftest.er1 >conftest.err
  7893. rm -f conftest.er1
  7894. cat conftest.err >&5
  7895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7896. (exit $ac_status); } && {
  7897. test -z "$ac_c_werror_flag" ||
  7898. test ! -s conftest.err
  7899. } && test -s conftest.$ac_objext; then
  7900. gt_cv_header_inttypes_h=yes
  7901. else
  7902. echo "$as_me: failed program was:" >&5
  7903. sed 's/^/| /' conftest.$ac_ext >&5
  7904. gt_cv_header_inttypes_h=no
  7905. fi
  7906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7907. fi
  7908. { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  7909. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
  7910. if test $gt_cv_header_inttypes_h = yes; then
  7911. cat >>confdefs.h <<_ACEOF
  7912. #define HAVE_INTTYPES_H 1
  7913. _ACEOF
  7914. fi
  7915. if test $gt_cv_header_inttypes_h = yes; then
  7916. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  7917. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  7918. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  7919. echo $ECHO_N "(cached) $ECHO_C" >&6
  7920. else
  7921. cat >conftest.$ac_ext <<_ACEOF
  7922. /* confdefs.h. */
  7923. _ACEOF
  7924. cat confdefs.h >>conftest.$ac_ext
  7925. cat >>conftest.$ac_ext <<_ACEOF
  7926. /* end confdefs.h. */
  7927. #include <inttypes.h>
  7928. #ifdef PRId32
  7929. char *p = PRId32;
  7930. #endif
  7931. int
  7932. main ()
  7933. {
  7934. ;
  7935. return 0;
  7936. }
  7937. _ACEOF
  7938. rm -f conftest.$ac_objext
  7939. if { (ac_try="$ac_compile"
  7940. case "(($ac_try" in
  7941. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7942. *) ac_try_echo=$ac_try;;
  7943. esac
  7944. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7945. (eval "$ac_compile") 2>conftest.er1
  7946. ac_status=$?
  7947. grep -v '^ *+' conftest.er1 >conftest.err
  7948. rm -f conftest.er1
  7949. cat conftest.err >&5
  7950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7951. (exit $ac_status); } && {
  7952. test -z "$ac_c_werror_flag" ||
  7953. test ! -s conftest.err
  7954. } && test -s conftest.$ac_objext; then
  7955. gt_cv_inttypes_pri_broken=no
  7956. else
  7957. echo "$as_me: failed program was:" >&5
  7958. sed 's/^/| /' conftest.$ac_ext >&5
  7959. gt_cv_inttypes_pri_broken=yes
  7960. fi
  7961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7962. fi
  7963. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  7964. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  7965. fi
  7966. if test "$gt_cv_inttypes_pri_broken" = yes; then
  7967. cat >>confdefs.h <<_ACEOF
  7968. #define PRI_MACROS_BROKEN 1
  7969. _ACEOF
  7970. fi
  7971. if test "X$prefix" = "XNONE"; then
  7972. acl_final_prefix="$ac_default_prefix"
  7973. else
  7974. acl_final_prefix="$prefix"
  7975. fi
  7976. if test "X$exec_prefix" = "XNONE"; then
  7977. acl_final_exec_prefix='${prefix}'
  7978. else
  7979. acl_final_exec_prefix="$exec_prefix"
  7980. fi
  7981. acl_save_prefix="$prefix"
  7982. prefix="$acl_final_prefix"
  7983. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  7984. prefix="$acl_save_prefix"
  7985. # Check whether --with-gnu-ld was given.
  7986. if test "${with_gnu_ld+set}" = set; then
  7987. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  7988. else
  7989. with_gnu_ld=no
  7990. fi
  7991. # Prepare PATH_SEPARATOR.
  7992. # The user is always right.
  7993. if test "${PATH_SEPARATOR+set}" != set; then
  7994. echo "#! /bin/sh" >conf$$.sh
  7995. echo "exit 0" >>conf$$.sh
  7996. chmod +x conf$$.sh
  7997. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7998. PATH_SEPARATOR=';'
  7999. else
  8000. PATH_SEPARATOR=:
  8001. fi
  8002. rm -f conf$$.sh
  8003. fi
  8004. ac_prog=ld
  8005. if test "$GCC" = yes; then
  8006. # Check if gcc -print-prog-name=ld gives a path.
  8007. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  8008. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  8009. case $host in
  8010. *-*-mingw*)
  8011. # gcc leaves a trailing carriage return which upsets mingw
  8012. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8013. *)
  8014. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8015. esac
  8016. case $ac_prog in
  8017. # Accept absolute paths.
  8018. [\\/]* | [A-Za-z]:[\\/]*)
  8019. re_direlt='/[^/][^/]*/\.\./'
  8020. # Canonicalize the path of ld
  8021. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8022. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8023. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8024. done
  8025. test -z "$LD" && LD="$ac_prog"
  8026. ;;
  8027. "")
  8028. # If it fails, then pretend we aren't using GCC.
  8029. ac_prog=ld
  8030. ;;
  8031. *)
  8032. # If it is relative, then search for the first ld in PATH.
  8033. with_gnu_ld=unknown
  8034. ;;
  8035. esac
  8036. elif test "$with_gnu_ld" = yes; then
  8037. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  8038. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  8039. else
  8040. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8041. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  8042. fi
  8043. if test "${acl_cv_path_LD+set}" = set; then
  8044. echo $ECHO_N "(cached) $ECHO_C" >&6
  8045. else
  8046. if test -z "$LD"; then
  8047. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8048. for ac_dir in $PATH; do
  8049. test -z "$ac_dir" && ac_dir=.
  8050. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8051. acl_cv_path_LD="$ac_dir/$ac_prog"
  8052. # Check to see if the program is GNU ld. I'd rather use --version,
  8053. # but apparently some GNU ld's only accept -v.
  8054. # Break only if it was the GNU/non-GNU ld that we prefer.
  8055. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  8056. test "$with_gnu_ld" != no && break
  8057. else
  8058. test "$with_gnu_ld" != yes && break
  8059. fi
  8060. fi
  8061. done
  8062. IFS="$ac_save_ifs"
  8063. else
  8064. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8065. fi
  8066. fi
  8067. LD="$acl_cv_path_LD"
  8068. if test -n "$LD"; then
  8069. { echo "$as_me:$LINENO: result: $LD" >&5
  8070. echo "${ECHO_T}$LD" >&6; }
  8071. else
  8072. { echo "$as_me:$LINENO: result: no" >&5
  8073. echo "${ECHO_T}no" >&6; }
  8074. fi
  8075. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8076. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8077. { (exit 1); exit 1; }; }
  8078. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8079. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  8080. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  8081. echo $ECHO_N "(cached) $ECHO_C" >&6
  8082. else
  8083. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8084. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  8085. acl_cv_prog_gnu_ld=yes
  8086. else
  8087. acl_cv_prog_gnu_ld=no
  8088. fi
  8089. fi
  8090. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  8091. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  8092. with_gnu_ld=$acl_cv_prog_gnu_ld
  8093. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  8094. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  8095. if test "${acl_cv_rpath+set}" = set; then
  8096. echo $ECHO_N "(cached) $ECHO_C" >&6
  8097. else
  8098. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8099. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8100. . ./conftest.sh
  8101. rm -f ./conftest.sh
  8102. acl_cv_rpath=done
  8103. fi
  8104. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  8105. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  8106. wl="$acl_cv_wl"
  8107. libext="$acl_cv_libext"
  8108. shlibext="$acl_cv_shlibext"
  8109. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8110. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8111. hardcode_direct="$acl_cv_hardcode_direct"
  8112. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8113. # Check whether --enable-rpath was given.
  8114. if test "${enable_rpath+set}" = set; then
  8115. enableval=$enable_rpath; :
  8116. else
  8117. enable_rpath=yes
  8118. fi
  8119. use_additional=yes
  8120. acl_save_prefix="$prefix"
  8121. prefix="$acl_final_prefix"
  8122. acl_save_exec_prefix="$exec_prefix"
  8123. exec_prefix="$acl_final_exec_prefix"
  8124. eval additional_includedir=\"$includedir\"
  8125. eval additional_libdir=\"$libdir\"
  8126. exec_prefix="$acl_save_exec_prefix"
  8127. prefix="$acl_save_prefix"
  8128. # Check whether --with-libiconv-prefix was given.
  8129. if test "${with_libiconv_prefix+set}" = set; then
  8130. withval=$with_libiconv_prefix;
  8131. if test "X$withval" = "Xno"; then
  8132. use_additional=no
  8133. else
  8134. if test "X$withval" = "X"; then
  8135. acl_save_prefix="$prefix"
  8136. prefix="$acl_final_prefix"
  8137. acl_save_exec_prefix="$exec_prefix"
  8138. exec_prefix="$acl_final_exec_prefix"
  8139. eval additional_includedir=\"$includedir\"
  8140. eval additional_libdir=\"$libdir\"
  8141. exec_prefix="$acl_save_exec_prefix"
  8142. prefix="$acl_save_prefix"
  8143. else
  8144. additional_includedir="$withval/include"
  8145. additional_libdir="$withval/lib"
  8146. fi
  8147. fi
  8148. fi
  8149. LIBICONV=
  8150. LTLIBICONV=
  8151. INCICONV=
  8152. rpathdirs=
  8153. ltrpathdirs=
  8154. names_already_handled=
  8155. names_next_round='iconv '
  8156. while test -n "$names_next_round"; do
  8157. names_this_round="$names_next_round"
  8158. names_next_round=
  8159. for name in $names_this_round; do
  8160. already_handled=
  8161. for n in $names_already_handled; do
  8162. if test "$n" = "$name"; then
  8163. already_handled=yes
  8164. break
  8165. fi
  8166. done
  8167. if test -z "$already_handled"; then
  8168. names_already_handled="$names_already_handled $name"
  8169. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8170. eval value=\"\$HAVE_LIB$uppername\"
  8171. if test -n "$value"; then
  8172. if test "$value" = yes; then
  8173. eval value=\"\$LIB$uppername\"
  8174. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  8175. eval value=\"\$LTLIB$uppername\"
  8176. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  8177. else
  8178. :
  8179. fi
  8180. else
  8181. found_dir=
  8182. found_la=
  8183. found_so=
  8184. found_a=
  8185. if test $use_additional = yes; then
  8186. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8187. found_dir="$additional_libdir"
  8188. found_so="$additional_libdir/lib$name.$shlibext"
  8189. if test -f "$additional_libdir/lib$name.la"; then
  8190. found_la="$additional_libdir/lib$name.la"
  8191. fi
  8192. else
  8193. if test -f "$additional_libdir/lib$name.$libext"; then
  8194. found_dir="$additional_libdir"
  8195. found_a="$additional_libdir/lib$name.$libext"
  8196. if test -f "$additional_libdir/lib$name.la"; then
  8197. found_la="$additional_libdir/lib$name.la"
  8198. fi
  8199. fi
  8200. fi
  8201. fi
  8202. if test "X$found_dir" = "X"; then
  8203. for x in $LDFLAGS $LTLIBICONV; do
  8204. acl_save_prefix="$prefix"
  8205. prefix="$acl_final_prefix"
  8206. acl_save_exec_prefix="$exec_prefix"
  8207. exec_prefix="$acl_final_exec_prefix"
  8208. eval x=\"$x\"
  8209. exec_prefix="$acl_save_exec_prefix"
  8210. prefix="$acl_save_prefix"
  8211. case "$x" in
  8212. -L*)
  8213. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8214. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8215. found_dir="$dir"
  8216. found_so="$dir/lib$name.$shlibext"
  8217. if test -f "$dir/lib$name.la"; then
  8218. found_la="$dir/lib$name.la"
  8219. fi
  8220. else
  8221. if test -f "$dir/lib$name.$libext"; then
  8222. found_dir="$dir"
  8223. found_a="$dir/lib$name.$libext"
  8224. if test -f "$dir/lib$name.la"; then
  8225. found_la="$dir/lib$name.la"
  8226. fi
  8227. fi
  8228. fi
  8229. ;;
  8230. esac
  8231. if test "X$found_dir" != "X"; then
  8232. break
  8233. fi
  8234. done
  8235. fi
  8236. if test "X$found_dir" != "X"; then
  8237. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  8238. if test "X$found_so" != "X"; then
  8239. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8240. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8241. else
  8242. haveit=
  8243. for x in $ltrpathdirs; do
  8244. if test "X$x" = "X$found_dir"; then
  8245. haveit=yes
  8246. break
  8247. fi
  8248. done
  8249. if test -z "$haveit"; then
  8250. ltrpathdirs="$ltrpathdirs $found_dir"
  8251. fi
  8252. if test "$hardcode_direct" = yes; then
  8253. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8254. else
  8255. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8256. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8257. haveit=
  8258. for x in $rpathdirs; do
  8259. if test "X$x" = "X$found_dir"; then
  8260. haveit=yes
  8261. break
  8262. fi
  8263. done
  8264. if test -z "$haveit"; then
  8265. rpathdirs="$rpathdirs $found_dir"
  8266. fi
  8267. else
  8268. haveit=
  8269. for x in $LDFLAGS $LIBICONV; do
  8270. acl_save_prefix="$prefix"
  8271. prefix="$acl_final_prefix"
  8272. acl_save_exec_prefix="$exec_prefix"
  8273. exec_prefix="$acl_final_exec_prefix"
  8274. eval x=\"$x\"
  8275. exec_prefix="$acl_save_exec_prefix"
  8276. prefix="$acl_save_prefix"
  8277. if test "X$x" = "X-L$found_dir"; then
  8278. haveit=yes
  8279. break
  8280. fi
  8281. done
  8282. if test -z "$haveit"; then
  8283. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  8284. fi
  8285. if test "$hardcode_minus_L" != no; then
  8286. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8287. else
  8288. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8289. fi
  8290. fi
  8291. fi
  8292. fi
  8293. else
  8294. if test "X$found_a" != "X"; then
  8295. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  8296. else
  8297. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  8298. fi
  8299. fi
  8300. additional_includedir=
  8301. case "$found_dir" in
  8302. */lib | */lib/)
  8303. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8304. additional_includedir="$basedir/include"
  8305. ;;
  8306. esac
  8307. if test "X$additional_includedir" != "X"; then
  8308. if test "X$additional_includedir" != "X/usr/include"; then
  8309. haveit=
  8310. if test "X$additional_includedir" = "X/usr/local/include"; then
  8311. if test -n "$GCC"; then
  8312. case $host_os in
  8313. linux*) haveit=yes;;
  8314. esac
  8315. fi
  8316. fi
  8317. if test -z "$haveit"; then
  8318. for x in $CPPFLAGS $INCICONV; do
  8319. acl_save_prefix="$prefix"
  8320. prefix="$acl_final_prefix"
  8321. acl_save_exec_prefix="$exec_prefix"
  8322. exec_prefix="$acl_final_exec_prefix"
  8323. eval x=\"$x\"
  8324. exec_prefix="$acl_save_exec_prefix"
  8325. prefix="$acl_save_prefix"
  8326. if test "X$x" = "X-I$additional_includedir"; then
  8327. haveit=yes
  8328. break
  8329. fi
  8330. done
  8331. if test -z "$haveit"; then
  8332. if test -d "$additional_includedir"; then
  8333. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  8334. fi
  8335. fi
  8336. fi
  8337. fi
  8338. fi
  8339. if test -n "$found_la"; then
  8340. save_libdir="$libdir"
  8341. case "$found_la" in
  8342. */* | *\\*) . "$found_la" ;;
  8343. *) . "./$found_la" ;;
  8344. esac
  8345. libdir="$save_libdir"
  8346. for dep in $dependency_libs; do
  8347. case "$dep" in
  8348. -L*)
  8349. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8350. if test "X$additional_libdir" != "X/usr/lib"; then
  8351. haveit=
  8352. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8353. if test -n "$GCC"; then
  8354. case $host_os in
  8355. linux*) haveit=yes;;
  8356. esac
  8357. fi
  8358. fi
  8359. if test -z "$haveit"; then
  8360. haveit=
  8361. for x in $LDFLAGS $LIBICONV; do
  8362. acl_save_prefix="$prefix"
  8363. prefix="$acl_final_prefix"
  8364. acl_save_exec_prefix="$exec_prefix"
  8365. exec_prefix="$acl_final_exec_prefix"
  8366. eval x=\"$x\"
  8367. exec_prefix="$acl_save_exec_prefix"
  8368. prefix="$acl_save_prefix"
  8369. if test "X$x" = "X-L$additional_libdir"; then
  8370. haveit=yes
  8371. break
  8372. fi
  8373. done
  8374. if test -z "$haveit"; then
  8375. if test -d "$additional_libdir"; then
  8376. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  8377. fi
  8378. fi
  8379. haveit=
  8380. for x in $LDFLAGS $LTLIBICONV; do
  8381. acl_save_prefix="$prefix"
  8382. prefix="$acl_final_prefix"
  8383. acl_save_exec_prefix="$exec_prefix"
  8384. exec_prefix="$acl_final_exec_prefix"
  8385. eval x=\"$x\"
  8386. exec_prefix="$acl_save_exec_prefix"
  8387. prefix="$acl_save_prefix"
  8388. if test "X$x" = "X-L$additional_libdir"; then
  8389. haveit=yes
  8390. break
  8391. fi
  8392. done
  8393. if test -z "$haveit"; then
  8394. if test -d "$additional_libdir"; then
  8395. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  8396. fi
  8397. fi
  8398. fi
  8399. fi
  8400. ;;
  8401. -R*)
  8402. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8403. if test "$enable_rpath" != no; then
  8404. haveit=
  8405. for x in $rpathdirs; do
  8406. if test "X$x" = "X$dir"; then
  8407. haveit=yes
  8408. break
  8409. fi
  8410. done
  8411. if test -z "$haveit"; then
  8412. rpathdirs="$rpathdirs $dir"
  8413. fi
  8414. haveit=
  8415. for x in $ltrpathdirs; do
  8416. if test "X$x" = "X$dir"; then
  8417. haveit=yes
  8418. break
  8419. fi
  8420. done
  8421. if test -z "$haveit"; then
  8422. ltrpathdirs="$ltrpathdirs $dir"
  8423. fi
  8424. fi
  8425. ;;
  8426. -l*)
  8427. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8428. ;;
  8429. *.la)
  8430. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8431. ;;
  8432. *)
  8433. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  8434. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  8435. ;;
  8436. esac
  8437. done
  8438. fi
  8439. else
  8440. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8441. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  8442. fi
  8443. fi
  8444. fi
  8445. done
  8446. done
  8447. if test "X$rpathdirs" != "X"; then
  8448. if test -n "$hardcode_libdir_separator"; then
  8449. alldirs=
  8450. for found_dir in $rpathdirs; do
  8451. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8452. done
  8453. acl_save_libdir="$libdir"
  8454. libdir="$alldirs"
  8455. eval flag=\"$hardcode_libdir_flag_spec\"
  8456. libdir="$acl_save_libdir"
  8457. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8458. else
  8459. for found_dir in $rpathdirs; do
  8460. acl_save_libdir="$libdir"
  8461. libdir="$found_dir"
  8462. eval flag=\"$hardcode_libdir_flag_spec\"
  8463. libdir="$acl_save_libdir"
  8464. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8465. done
  8466. fi
  8467. fi
  8468. if test "X$ltrpathdirs" != "X"; then
  8469. for found_dir in $ltrpathdirs; do
  8470. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  8471. done
  8472. fi
  8473. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  8474. stdlib.h string.h unistd.h sys/param.h
  8475. do
  8476. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8477. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8478. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8479. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8480. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8481. echo $ECHO_N "(cached) $ECHO_C" >&6
  8482. fi
  8483. ac_res=`eval echo '${'$as_ac_Header'}'`
  8484. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8485. echo "${ECHO_T}$ac_res" >&6; }
  8486. else
  8487. # Is the header compilable?
  8488. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8489. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8490. cat >conftest.$ac_ext <<_ACEOF
  8491. /* confdefs.h. */
  8492. _ACEOF
  8493. cat confdefs.h >>conftest.$ac_ext
  8494. cat >>conftest.$ac_ext <<_ACEOF
  8495. /* end confdefs.h. */
  8496. $ac_includes_default
  8497. #include <$ac_header>
  8498. _ACEOF
  8499. rm -f conftest.$ac_objext
  8500. if { (ac_try="$ac_compile"
  8501. case "(($ac_try" in
  8502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8503. *) ac_try_echo=$ac_try;;
  8504. esac
  8505. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8506. (eval "$ac_compile") 2>conftest.er1
  8507. ac_status=$?
  8508. grep -v '^ *+' conftest.er1 >conftest.err
  8509. rm -f conftest.er1
  8510. cat conftest.err >&5
  8511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8512. (exit $ac_status); } && {
  8513. test -z "$ac_c_werror_flag" ||
  8514. test ! -s conftest.err
  8515. } && test -s conftest.$ac_objext; then
  8516. ac_header_compiler=yes
  8517. else
  8518. echo "$as_me: failed program was:" >&5
  8519. sed 's/^/| /' conftest.$ac_ext >&5
  8520. ac_header_compiler=no
  8521. fi
  8522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8523. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8524. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8525. # Is the header present?
  8526. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8527. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8528. cat >conftest.$ac_ext <<_ACEOF
  8529. /* confdefs.h. */
  8530. _ACEOF
  8531. cat confdefs.h >>conftest.$ac_ext
  8532. cat >>conftest.$ac_ext <<_ACEOF
  8533. /* end confdefs.h. */
  8534. #include <$ac_header>
  8535. _ACEOF
  8536. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8537. case "(($ac_try" in
  8538. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8539. *) ac_try_echo=$ac_try;;
  8540. esac
  8541. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8542. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8543. ac_status=$?
  8544. grep -v '^ *+' conftest.er1 >conftest.err
  8545. rm -f conftest.er1
  8546. cat conftest.err >&5
  8547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8548. (exit $ac_status); } >/dev/null && {
  8549. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8550. test ! -s conftest.err
  8551. }; then
  8552. ac_header_preproc=yes
  8553. else
  8554. echo "$as_me: failed program was:" >&5
  8555. sed 's/^/| /' conftest.$ac_ext >&5
  8556. ac_header_preproc=no
  8557. fi
  8558. rm -f conftest.err conftest.$ac_ext
  8559. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8560. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8561. # So? What about this header?
  8562. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8563. yes:no: )
  8564. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8565. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8566. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8567. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8568. ac_header_preproc=yes
  8569. ;;
  8570. no:yes:* )
  8571. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8572. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8573. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8574. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8575. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8576. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8577. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8578. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8579. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8580. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8581. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8582. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8583. ( cat <<\_ASBOX
  8584. ## ----------------------------------------------- ##
  8585. ## Report this to t-tujikawa@users.sourceforge.net ##
  8586. ## ----------------------------------------------- ##
  8587. _ASBOX
  8588. ) | sed "s/^/$as_me: WARNING: /" >&2
  8589. ;;
  8590. esac
  8591. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8592. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8593. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8594. echo $ECHO_N "(cached) $ECHO_C" >&6
  8595. else
  8596. eval "$as_ac_Header=\$ac_header_preproc"
  8597. fi
  8598. ac_res=`eval echo '${'$as_ac_Header'}'`
  8599. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8600. echo "${ECHO_T}$ac_res" >&6; }
  8601. fi
  8602. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8603. cat >>confdefs.h <<_ACEOF
  8604. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8605. _ACEOF
  8606. fi
  8607. done
  8608. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  8609. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  8610. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  8611. __fsetlocking
  8612. do
  8613. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8614. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8615. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8616. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8617. echo $ECHO_N "(cached) $ECHO_C" >&6
  8618. else
  8619. cat >conftest.$ac_ext <<_ACEOF
  8620. /* confdefs.h. */
  8621. _ACEOF
  8622. cat confdefs.h >>conftest.$ac_ext
  8623. cat >>conftest.$ac_ext <<_ACEOF
  8624. /* end confdefs.h. */
  8625. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8626. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8627. #define $ac_func innocuous_$ac_func
  8628. /* System header to define __stub macros and hopefully few prototypes,
  8629. which can conflict with char $ac_func (); below.
  8630. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8631. <limits.h> exists even on freestanding compilers. */
  8632. #ifdef __STDC__
  8633. # include <limits.h>
  8634. #else
  8635. # include <assert.h>
  8636. #endif
  8637. #undef $ac_func
  8638. /* Override any GCC internal prototype to avoid an error.
  8639. Use char because int might match the return type of a GCC
  8640. builtin and then its argument prototype would still apply. */
  8641. #ifdef __cplusplus
  8642. extern "C"
  8643. #endif
  8644. char $ac_func ();
  8645. /* The GNU C library defines this for functions which it implements
  8646. to always fail with ENOSYS. Some functions are actually named
  8647. something starting with __ and the normal name is an alias. */
  8648. #if defined __stub_$ac_func || defined __stub___$ac_func
  8649. choke me
  8650. #endif
  8651. int
  8652. main ()
  8653. {
  8654. return $ac_func ();
  8655. ;
  8656. return 0;
  8657. }
  8658. _ACEOF
  8659. rm -f conftest.$ac_objext conftest$ac_exeext
  8660. if { (ac_try="$ac_link"
  8661. case "(($ac_try" in
  8662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8663. *) ac_try_echo=$ac_try;;
  8664. esac
  8665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8666. (eval "$ac_link") 2>conftest.er1
  8667. ac_status=$?
  8668. grep -v '^ *+' conftest.er1 >conftest.err
  8669. rm -f conftest.er1
  8670. cat conftest.err >&5
  8671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8672. (exit $ac_status); } && {
  8673. test -z "$ac_c_werror_flag" ||
  8674. test ! -s conftest.err
  8675. } && test -s conftest$ac_exeext &&
  8676. $as_test_x conftest$ac_exeext; then
  8677. eval "$as_ac_var=yes"
  8678. else
  8679. echo "$as_me: failed program was:" >&5
  8680. sed 's/^/| /' conftest.$ac_ext >&5
  8681. eval "$as_ac_var=no"
  8682. fi
  8683. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8684. conftest$ac_exeext conftest.$ac_ext
  8685. fi
  8686. ac_res=`eval echo '${'$as_ac_var'}'`
  8687. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8688. echo "${ECHO_T}$ac_res" >&6; }
  8689. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8690. cat >>confdefs.h <<_ACEOF
  8691. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8692. _ACEOF
  8693. fi
  8694. done
  8695. am_save_CPPFLAGS="$CPPFLAGS"
  8696. for element in $INCICONV; do
  8697. haveit=
  8698. for x in $CPPFLAGS; do
  8699. acl_save_prefix="$prefix"
  8700. prefix="$acl_final_prefix"
  8701. acl_save_exec_prefix="$exec_prefix"
  8702. exec_prefix="$acl_final_exec_prefix"
  8703. eval x=\"$x\"
  8704. exec_prefix="$acl_save_exec_prefix"
  8705. prefix="$acl_save_prefix"
  8706. if test "X$x" = "X$element"; then
  8707. haveit=yes
  8708. break
  8709. fi
  8710. done
  8711. if test -z "$haveit"; then
  8712. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8713. fi
  8714. done
  8715. { echo "$as_me:$LINENO: checking for iconv" >&5
  8716. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  8717. if test "${am_cv_func_iconv+set}" = set; then
  8718. echo $ECHO_N "(cached) $ECHO_C" >&6
  8719. else
  8720. am_cv_func_iconv="no, consider installing GNU libiconv"
  8721. am_cv_lib_iconv=no
  8722. cat >conftest.$ac_ext <<_ACEOF
  8723. /* confdefs.h. */
  8724. _ACEOF
  8725. cat confdefs.h >>conftest.$ac_ext
  8726. cat >>conftest.$ac_ext <<_ACEOF
  8727. /* end confdefs.h. */
  8728. #include <stdlib.h>
  8729. #include <iconv.h>
  8730. int
  8731. main ()
  8732. {
  8733. iconv_t cd = iconv_open("","");
  8734. iconv(cd,NULL,NULL,NULL,NULL);
  8735. iconv_close(cd);
  8736. ;
  8737. return 0;
  8738. }
  8739. _ACEOF
  8740. rm -f conftest.$ac_objext conftest$ac_exeext
  8741. if { (ac_try="$ac_link"
  8742. case "(($ac_try" in
  8743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8744. *) ac_try_echo=$ac_try;;
  8745. esac
  8746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8747. (eval "$ac_link") 2>conftest.er1
  8748. ac_status=$?
  8749. grep -v '^ *+' conftest.er1 >conftest.err
  8750. rm -f conftest.er1
  8751. cat conftest.err >&5
  8752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8753. (exit $ac_status); } && {
  8754. test -z "$ac_c_werror_flag" ||
  8755. test ! -s conftest.err
  8756. } && test -s conftest$ac_exeext &&
  8757. $as_test_x conftest$ac_exeext; then
  8758. am_cv_func_iconv=yes
  8759. else
  8760. echo "$as_me: failed program was:" >&5
  8761. sed 's/^/| /' conftest.$ac_ext >&5
  8762. fi
  8763. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8764. conftest$ac_exeext conftest.$ac_ext
  8765. if test "$am_cv_func_iconv" != yes; then
  8766. am_save_LIBS="$LIBS"
  8767. LIBS="$LIBS $LIBICONV"
  8768. cat >conftest.$ac_ext <<_ACEOF
  8769. /* confdefs.h. */
  8770. _ACEOF
  8771. cat confdefs.h >>conftest.$ac_ext
  8772. cat >>conftest.$ac_ext <<_ACEOF
  8773. /* end confdefs.h. */
  8774. #include <stdlib.h>
  8775. #include <iconv.h>
  8776. int
  8777. main ()
  8778. {
  8779. iconv_t cd = iconv_open("","");
  8780. iconv(cd,NULL,NULL,NULL,NULL);
  8781. iconv_close(cd);
  8782. ;
  8783. return 0;
  8784. }
  8785. _ACEOF
  8786. rm -f conftest.$ac_objext conftest$ac_exeext
  8787. if { (ac_try="$ac_link"
  8788. case "(($ac_try" in
  8789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8790. *) ac_try_echo=$ac_try;;
  8791. esac
  8792. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8793. (eval "$ac_link") 2>conftest.er1
  8794. ac_status=$?
  8795. grep -v '^ *+' conftest.er1 >conftest.err
  8796. rm -f conftest.er1
  8797. cat conftest.err >&5
  8798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8799. (exit $ac_status); } && {
  8800. test -z "$ac_c_werror_flag" ||
  8801. test ! -s conftest.err
  8802. } && test -s conftest$ac_exeext &&
  8803. $as_test_x conftest$ac_exeext; then
  8804. am_cv_lib_iconv=yes
  8805. am_cv_func_iconv=yes
  8806. else
  8807. echo "$as_me: failed program was:" >&5
  8808. sed 's/^/| /' conftest.$ac_ext >&5
  8809. fi
  8810. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8811. conftest$ac_exeext conftest.$ac_ext
  8812. LIBS="$am_save_LIBS"
  8813. fi
  8814. fi
  8815. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  8816. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  8817. if test "$am_cv_func_iconv" = yes; then
  8818. cat >>confdefs.h <<\_ACEOF
  8819. #define HAVE_ICONV 1
  8820. _ACEOF
  8821. fi
  8822. if test "$am_cv_lib_iconv" = yes; then
  8823. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  8824. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  8825. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  8826. echo "${ECHO_T}$LIBICONV" >&6; }
  8827. else
  8828. CPPFLAGS="$am_save_CPPFLAGS"
  8829. LIBICONV=
  8830. LTLIBICONV=
  8831. fi
  8832. if test "$am_cv_func_iconv" = yes; then
  8833. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  8834. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  8835. if test "${am_cv_proto_iconv+set}" = set; then
  8836. echo $ECHO_N "(cached) $ECHO_C" >&6
  8837. else
  8838. cat >conftest.$ac_ext <<_ACEOF
  8839. /* confdefs.h. */
  8840. _ACEOF
  8841. cat confdefs.h >>conftest.$ac_ext
  8842. cat >>conftest.$ac_ext <<_ACEOF
  8843. /* end confdefs.h. */
  8844. #include <stdlib.h>
  8845. #include <iconv.h>
  8846. extern
  8847. #ifdef __cplusplus
  8848. "C"
  8849. #endif
  8850. #if defined(__STDC__) || defined(__cplusplus)
  8851. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  8852. #else
  8853. size_t iconv();
  8854. #endif
  8855. int
  8856. main ()
  8857. {
  8858. ;
  8859. return 0;
  8860. }
  8861. _ACEOF
  8862. rm -f conftest.$ac_objext
  8863. if { (ac_try="$ac_compile"
  8864. case "(($ac_try" in
  8865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8866. *) ac_try_echo=$ac_try;;
  8867. esac
  8868. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8869. (eval "$ac_compile") 2>conftest.er1
  8870. ac_status=$?
  8871. grep -v '^ *+' conftest.er1 >conftest.err
  8872. rm -f conftest.er1
  8873. cat conftest.err >&5
  8874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8875. (exit $ac_status); } && {
  8876. test -z "$ac_c_werror_flag" ||
  8877. test ! -s conftest.err
  8878. } && test -s conftest.$ac_objext; then
  8879. am_cv_proto_iconv_arg1=""
  8880. else
  8881. echo "$as_me: failed program was:" >&5
  8882. sed 's/^/| /' conftest.$ac_ext >&5
  8883. am_cv_proto_iconv_arg1="const"
  8884. fi
  8885. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8886. 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);"
  8887. fi
  8888. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  8889. { echo "$as_me:$LINENO: result: ${ac_t:-
  8890. }$am_cv_proto_iconv" >&5
  8891. echo "${ECHO_T}${ac_t:-
  8892. }$am_cv_proto_iconv" >&6; }
  8893. cat >>confdefs.h <<_ACEOF
  8894. #define ICONV_CONST $am_cv_proto_iconv_arg1
  8895. _ACEOF
  8896. fi
  8897. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  8898. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  8899. if test "${am_cv_langinfo_codeset+set}" = set; then
  8900. echo $ECHO_N "(cached) $ECHO_C" >&6
  8901. else
  8902. cat >conftest.$ac_ext <<_ACEOF
  8903. /* confdefs.h. */
  8904. _ACEOF
  8905. cat confdefs.h >>conftest.$ac_ext
  8906. cat >>conftest.$ac_ext <<_ACEOF
  8907. /* end confdefs.h. */
  8908. #include <langinfo.h>
  8909. int
  8910. main ()
  8911. {
  8912. char* cs = nl_langinfo(CODESET);
  8913. ;
  8914. return 0;
  8915. }
  8916. _ACEOF
  8917. rm -f conftest.$ac_objext conftest$ac_exeext
  8918. if { (ac_try="$ac_link"
  8919. case "(($ac_try" in
  8920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8921. *) ac_try_echo=$ac_try;;
  8922. esac
  8923. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8924. (eval "$ac_link") 2>conftest.er1
  8925. ac_status=$?
  8926. grep -v '^ *+' conftest.er1 >conftest.err
  8927. rm -f conftest.er1
  8928. cat conftest.err >&5
  8929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8930. (exit $ac_status); } && {
  8931. test -z "$ac_c_werror_flag" ||
  8932. test ! -s conftest.err
  8933. } && test -s conftest$ac_exeext &&
  8934. $as_test_x conftest$ac_exeext; then
  8935. am_cv_langinfo_codeset=yes
  8936. else
  8937. echo "$as_me: failed program was:" >&5
  8938. sed 's/^/| /' conftest.$ac_ext >&5
  8939. am_cv_langinfo_codeset=no
  8940. fi
  8941. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8942. conftest$ac_exeext conftest.$ac_ext
  8943. fi
  8944. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  8945. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  8946. if test $am_cv_langinfo_codeset = yes; then
  8947. cat >>confdefs.h <<\_ACEOF
  8948. #define HAVE_LANGINFO_CODESET 1
  8949. _ACEOF
  8950. fi
  8951. if test $ac_cv_header_locale_h = yes; then
  8952. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  8953. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  8954. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  8955. echo $ECHO_N "(cached) $ECHO_C" >&6
  8956. else
  8957. cat >conftest.$ac_ext <<_ACEOF
  8958. /* confdefs.h. */
  8959. _ACEOF
  8960. cat confdefs.h >>conftest.$ac_ext
  8961. cat >>conftest.$ac_ext <<_ACEOF
  8962. /* end confdefs.h. */
  8963. #include <locale.h>
  8964. int
  8965. main ()
  8966. {
  8967. return LC_MESSAGES
  8968. ;
  8969. return 0;
  8970. }
  8971. _ACEOF
  8972. rm -f conftest.$ac_objext conftest$ac_exeext
  8973. if { (ac_try="$ac_link"
  8974. case "(($ac_try" in
  8975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8976. *) ac_try_echo=$ac_try;;
  8977. esac
  8978. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8979. (eval "$ac_link") 2>conftest.er1
  8980. ac_status=$?
  8981. grep -v '^ *+' conftest.er1 >conftest.err
  8982. rm -f conftest.er1
  8983. cat conftest.err >&5
  8984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8985. (exit $ac_status); } && {
  8986. test -z "$ac_c_werror_flag" ||
  8987. test ! -s conftest.err
  8988. } && test -s conftest$ac_exeext &&
  8989. $as_test_x conftest$ac_exeext; then
  8990. am_cv_val_LC_MESSAGES=yes
  8991. else
  8992. echo "$as_me: failed program was:" >&5
  8993. sed 's/^/| /' conftest.$ac_ext >&5
  8994. am_cv_val_LC_MESSAGES=no
  8995. fi
  8996. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8997. conftest$ac_exeext conftest.$ac_ext
  8998. fi
  8999. { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  9000. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  9001. if test $am_cv_val_LC_MESSAGES = yes; then
  9002. cat >>confdefs.h <<\_ACEOF
  9003. #define HAVE_LC_MESSAGES 1
  9004. _ACEOF
  9005. fi
  9006. fi
  9007. for ac_prog in bison
  9008. do
  9009. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9010. set dummy $ac_prog; ac_word=$2
  9011. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9012. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9013. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  9014. echo $ECHO_N "(cached) $ECHO_C" >&6
  9015. else
  9016. if test -n "$INTLBISON"; then
  9017. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  9018. else
  9019. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9020. for as_dir in $PATH
  9021. do
  9022. IFS=$as_save_IFS
  9023. test -z "$as_dir" && as_dir=.
  9024. for ac_exec_ext in '' $ac_executable_extensions; do
  9025. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9026. ac_cv_prog_INTLBISON="$ac_prog"
  9027. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9028. break 2
  9029. fi
  9030. done
  9031. done
  9032. IFS=$as_save_IFS
  9033. fi
  9034. fi
  9035. INTLBISON=$ac_cv_prog_INTLBISON
  9036. if test -n "$INTLBISON"; then
  9037. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  9038. echo "${ECHO_T}$INTLBISON" >&6; }
  9039. else
  9040. { echo "$as_me:$LINENO: result: no" >&5
  9041. echo "${ECHO_T}no" >&6; }
  9042. fi
  9043. test -n "$INTLBISON" && break
  9044. done
  9045. if test -z "$INTLBISON"; then
  9046. ac_verc_fail=yes
  9047. else
  9048. { echo "$as_me:$LINENO: checking version of bison" >&5
  9049. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  9050. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  9051. case $ac_prog_version in
  9052. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  9053. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  9054. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  9055. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  9056. esac
  9057. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  9058. echo "${ECHO_T}$ac_prog_version" >&6; }
  9059. fi
  9060. if test $ac_verc_fail = yes; then
  9061. INTLBISON=:
  9062. fi
  9063. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9064. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9065. # Check whether --enable-nls was given.
  9066. if test "${enable_nls+set}" = set; then
  9067. enableval=$enable_nls; USE_NLS=$enableval
  9068. else
  9069. USE_NLS=yes
  9070. fi
  9071. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9072. echo "${ECHO_T}$USE_NLS" >&6; }
  9073. BUILD_INCLUDED_LIBINTL=no
  9074. USE_INCLUDED_LIBINTL=no
  9075. LIBINTL=
  9076. LTLIBINTL=
  9077. POSUB=
  9078. if test "$USE_NLS" = "yes"; then
  9079. gt_use_preinstalled_gnugettext=no
  9080. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  9081. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  9082. # Check whether --with-included-gettext was given.
  9083. if test "${with_included_gettext+set}" = set; then
  9084. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  9085. else
  9086. nls_cv_force_use_gnu_gettext=no
  9087. fi
  9088. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  9089. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  9090. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  9091. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  9092. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  9093. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  9094. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  9095. echo $ECHO_N "(cached) $ECHO_C" >&6
  9096. else
  9097. cat >conftest.$ac_ext <<_ACEOF
  9098. /* confdefs.h. */
  9099. _ACEOF
  9100. cat confdefs.h >>conftest.$ac_ext
  9101. cat >>conftest.$ac_ext <<_ACEOF
  9102. /* end confdefs.h. */
  9103. #include <libintl.h>
  9104. extern int _nl_msg_cat_cntr;
  9105. extern int *_nl_domain_bindings;
  9106. int
  9107. main ()
  9108. {
  9109. bindtextdomain ("", "");
  9110. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  9111. ;
  9112. return 0;
  9113. }
  9114. _ACEOF
  9115. rm -f conftest.$ac_objext conftest$ac_exeext
  9116. if { (ac_try="$ac_link"
  9117. case "(($ac_try" in
  9118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9119. *) ac_try_echo=$ac_try;;
  9120. esac
  9121. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9122. (eval "$ac_link") 2>conftest.er1
  9123. ac_status=$?
  9124. grep -v '^ *+' conftest.er1 >conftest.err
  9125. rm -f conftest.er1
  9126. cat conftest.err >&5
  9127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9128. (exit $ac_status); } && {
  9129. test -z "$ac_c_werror_flag" ||
  9130. test ! -s conftest.err
  9131. } && test -s conftest$ac_exeext &&
  9132. $as_test_x conftest$ac_exeext; then
  9133. gt_cv_func_gnugettext1_libc=yes
  9134. else
  9135. echo "$as_me: failed program was:" >&5
  9136. sed 's/^/| /' conftest.$ac_ext >&5
  9137. gt_cv_func_gnugettext1_libc=no
  9138. fi
  9139. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9140. conftest$ac_exeext conftest.$ac_ext
  9141. fi
  9142. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  9143. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
  9144. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  9145. use_additional=yes
  9146. acl_save_prefix="$prefix"
  9147. prefix="$acl_final_prefix"
  9148. acl_save_exec_prefix="$exec_prefix"
  9149. exec_prefix="$acl_final_exec_prefix"
  9150. eval additional_includedir=\"$includedir\"
  9151. eval additional_libdir=\"$libdir\"
  9152. exec_prefix="$acl_save_exec_prefix"
  9153. prefix="$acl_save_prefix"
  9154. # Check whether --with-libintl-prefix was given.
  9155. if test "${with_libintl_prefix+set}" = set; then
  9156. withval=$with_libintl_prefix;
  9157. if test "X$withval" = "Xno"; then
  9158. use_additional=no
  9159. else
  9160. if test "X$withval" = "X"; then
  9161. acl_save_prefix="$prefix"
  9162. prefix="$acl_final_prefix"
  9163. acl_save_exec_prefix="$exec_prefix"
  9164. exec_prefix="$acl_final_exec_prefix"
  9165. eval additional_includedir=\"$includedir\"
  9166. eval additional_libdir=\"$libdir\"
  9167. exec_prefix="$acl_save_exec_prefix"
  9168. prefix="$acl_save_prefix"
  9169. else
  9170. additional_includedir="$withval/include"
  9171. additional_libdir="$withval/lib"
  9172. fi
  9173. fi
  9174. fi
  9175. LIBINTL=
  9176. LTLIBINTL=
  9177. INCINTL=
  9178. rpathdirs=
  9179. ltrpathdirs=
  9180. names_already_handled=
  9181. names_next_round='intl '
  9182. while test -n "$names_next_round"; do
  9183. names_this_round="$names_next_round"
  9184. names_next_round=
  9185. for name in $names_this_round; do
  9186. already_handled=
  9187. for n in $names_already_handled; do
  9188. if test "$n" = "$name"; then
  9189. already_handled=yes
  9190. break
  9191. fi
  9192. done
  9193. if test -z "$already_handled"; then
  9194. names_already_handled="$names_already_handled $name"
  9195. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9196. eval value=\"\$HAVE_LIB$uppername\"
  9197. if test -n "$value"; then
  9198. if test "$value" = yes; then
  9199. eval value=\"\$LIB$uppername\"
  9200. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  9201. eval value=\"\$LTLIB$uppername\"
  9202. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  9203. else
  9204. :
  9205. fi
  9206. else
  9207. found_dir=
  9208. found_la=
  9209. found_so=
  9210. found_a=
  9211. if test $use_additional = yes; then
  9212. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  9213. found_dir="$additional_libdir"
  9214. found_so="$additional_libdir/lib$name.$shlibext"
  9215. if test -f "$additional_libdir/lib$name.la"; then
  9216. found_la="$additional_libdir/lib$name.la"
  9217. fi
  9218. else
  9219. if test -f "$additional_libdir/lib$name.$libext"; then
  9220. found_dir="$additional_libdir"
  9221. found_a="$additional_libdir/lib$name.$libext"
  9222. if test -f "$additional_libdir/lib$name.la"; then
  9223. found_la="$additional_libdir/lib$name.la"
  9224. fi
  9225. fi
  9226. fi
  9227. fi
  9228. if test "X$found_dir" = "X"; then
  9229. for x in $LDFLAGS $LTLIBINTL; do
  9230. acl_save_prefix="$prefix"
  9231. prefix="$acl_final_prefix"
  9232. acl_save_exec_prefix="$exec_prefix"
  9233. exec_prefix="$acl_final_exec_prefix"
  9234. eval x=\"$x\"
  9235. exec_prefix="$acl_save_exec_prefix"
  9236. prefix="$acl_save_prefix"
  9237. case "$x" in
  9238. -L*)
  9239. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9240. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  9241. found_dir="$dir"
  9242. found_so="$dir/lib$name.$shlibext"
  9243. if test -f "$dir/lib$name.la"; then
  9244. found_la="$dir/lib$name.la"
  9245. fi
  9246. else
  9247. if test -f "$dir/lib$name.$libext"; then
  9248. found_dir="$dir"
  9249. found_a="$dir/lib$name.$libext"
  9250. if test -f "$dir/lib$name.la"; then
  9251. found_la="$dir/lib$name.la"
  9252. fi
  9253. fi
  9254. fi
  9255. ;;
  9256. esac
  9257. if test "X$found_dir" != "X"; then
  9258. break
  9259. fi
  9260. done
  9261. fi
  9262. if test "X$found_dir" != "X"; then
  9263. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  9264. if test "X$found_so" != "X"; then
  9265. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  9266. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9267. else
  9268. haveit=
  9269. for x in $ltrpathdirs; do
  9270. if test "X$x" = "X$found_dir"; then
  9271. haveit=yes
  9272. break
  9273. fi
  9274. done
  9275. if test -z "$haveit"; then
  9276. ltrpathdirs="$ltrpathdirs $found_dir"
  9277. fi
  9278. if test "$hardcode_direct" = yes; then
  9279. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9280. else
  9281. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  9282. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9283. haveit=
  9284. for x in $rpathdirs; do
  9285. if test "X$x" = "X$found_dir"; then
  9286. haveit=yes
  9287. break
  9288. fi
  9289. done
  9290. if test -z "$haveit"; then
  9291. rpathdirs="$rpathdirs $found_dir"
  9292. fi
  9293. else
  9294. haveit=
  9295. for x in $LDFLAGS $LIBINTL; do
  9296. acl_save_prefix="$prefix"
  9297. prefix="$acl_final_prefix"
  9298. acl_save_exec_prefix="$exec_prefix"
  9299. exec_prefix="$acl_final_exec_prefix"
  9300. eval x=\"$x\"
  9301. exec_prefix="$acl_save_exec_prefix"
  9302. prefix="$acl_save_prefix"
  9303. if test "X$x" = "X-L$found_dir"; then
  9304. haveit=yes
  9305. break
  9306. fi
  9307. done
  9308. if test -z "$haveit"; then
  9309. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  9310. fi
  9311. if test "$hardcode_minus_L" != no; then
  9312. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9313. else
  9314. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9315. fi
  9316. fi
  9317. fi
  9318. fi
  9319. else
  9320. if test "X$found_a" != "X"; then
  9321. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  9322. else
  9323. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  9324. fi
  9325. fi
  9326. additional_includedir=
  9327. case "$found_dir" in
  9328. */lib | */lib/)
  9329. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  9330. additional_includedir="$basedir/include"
  9331. ;;
  9332. esac
  9333. if test "X$additional_includedir" != "X"; then
  9334. if test "X$additional_includedir" != "X/usr/include"; then
  9335. haveit=
  9336. if test "X$additional_includedir" = "X/usr/local/include"; then
  9337. if test -n "$GCC"; then
  9338. case $host_os in
  9339. linux*) haveit=yes;;
  9340. esac
  9341. fi
  9342. fi
  9343. if test -z "$haveit"; then
  9344. for x in $CPPFLAGS $INCINTL; do
  9345. acl_save_prefix="$prefix"
  9346. prefix="$acl_final_prefix"
  9347. acl_save_exec_prefix="$exec_prefix"
  9348. exec_prefix="$acl_final_exec_prefix"
  9349. eval x=\"$x\"
  9350. exec_prefix="$acl_save_exec_prefix"
  9351. prefix="$acl_save_prefix"
  9352. if test "X$x" = "X-I$additional_includedir"; then
  9353. haveit=yes
  9354. break
  9355. fi
  9356. done
  9357. if test -z "$haveit"; then
  9358. if test -d "$additional_includedir"; then
  9359. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  9360. fi
  9361. fi
  9362. fi
  9363. fi
  9364. fi
  9365. if test -n "$found_la"; then
  9366. save_libdir="$libdir"
  9367. case "$found_la" in
  9368. */* | *\\*) . "$found_la" ;;
  9369. *) . "./$found_la" ;;
  9370. esac
  9371. libdir="$save_libdir"
  9372. for dep in $dependency_libs; do
  9373. case "$dep" in
  9374. -L*)
  9375. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9376. if test "X$additional_libdir" != "X/usr/lib"; then
  9377. haveit=
  9378. if test "X$additional_libdir" = "X/usr/local/lib"; then
  9379. if test -n "$GCC"; then
  9380. case $host_os in
  9381. linux*) haveit=yes;;
  9382. esac
  9383. fi
  9384. fi
  9385. if test -z "$haveit"; then
  9386. haveit=
  9387. for x in $LDFLAGS $LIBINTL; do
  9388. acl_save_prefix="$prefix"
  9389. prefix="$acl_final_prefix"
  9390. acl_save_exec_prefix="$exec_prefix"
  9391. exec_prefix="$acl_final_exec_prefix"
  9392. eval x=\"$x\"
  9393. exec_prefix="$acl_save_exec_prefix"
  9394. prefix="$acl_save_prefix"
  9395. if test "X$x" = "X-L$additional_libdir"; then
  9396. haveit=yes
  9397. break
  9398. fi
  9399. done
  9400. if test -z "$haveit"; then
  9401. if test -d "$additional_libdir"; then
  9402. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  9403. fi
  9404. fi
  9405. haveit=
  9406. for x in $LDFLAGS $LTLIBINTL; do
  9407. acl_save_prefix="$prefix"
  9408. prefix="$acl_final_prefix"
  9409. acl_save_exec_prefix="$exec_prefix"
  9410. exec_prefix="$acl_final_exec_prefix"
  9411. eval x=\"$x\"
  9412. exec_prefix="$acl_save_exec_prefix"
  9413. prefix="$acl_save_prefix"
  9414. if test "X$x" = "X-L$additional_libdir"; then
  9415. haveit=yes
  9416. break
  9417. fi
  9418. done
  9419. if test -z "$haveit"; then
  9420. if test -d "$additional_libdir"; then
  9421. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  9422. fi
  9423. fi
  9424. fi
  9425. fi
  9426. ;;
  9427. -R*)
  9428. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9429. if test "$enable_rpath" != no; then
  9430. haveit=
  9431. for x in $rpathdirs; do
  9432. if test "X$x" = "X$dir"; then
  9433. haveit=yes
  9434. break
  9435. fi
  9436. done
  9437. if test -z "$haveit"; then
  9438. rpathdirs="$rpathdirs $dir"
  9439. fi
  9440. haveit=
  9441. for x in $ltrpathdirs; do
  9442. if test "X$x" = "X$dir"; then
  9443. haveit=yes
  9444. break
  9445. fi
  9446. done
  9447. if test -z "$haveit"; then
  9448. ltrpathdirs="$ltrpathdirs $dir"
  9449. fi
  9450. fi
  9451. ;;
  9452. -l*)
  9453. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9454. ;;
  9455. *.la)
  9456. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9457. ;;
  9458. *)
  9459. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  9460. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  9461. ;;
  9462. esac
  9463. done
  9464. fi
  9465. else
  9466. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9467. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  9468. fi
  9469. fi
  9470. fi
  9471. done
  9472. done
  9473. if test "X$rpathdirs" != "X"; then
  9474. if test -n "$hardcode_libdir_separator"; then
  9475. alldirs=
  9476. for found_dir in $rpathdirs; do
  9477. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  9478. done
  9479. acl_save_libdir="$libdir"
  9480. libdir="$alldirs"
  9481. eval flag=\"$hardcode_libdir_flag_spec\"
  9482. libdir="$acl_save_libdir"
  9483. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9484. else
  9485. for found_dir in $rpathdirs; do
  9486. acl_save_libdir="$libdir"
  9487. libdir="$found_dir"
  9488. eval flag=\"$hardcode_libdir_flag_spec\"
  9489. libdir="$acl_save_libdir"
  9490. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9491. done
  9492. fi
  9493. fi
  9494. if test "X$ltrpathdirs" != "X"; then
  9495. for found_dir in $ltrpathdirs; do
  9496. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  9497. done
  9498. fi
  9499. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  9500. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  9501. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  9502. echo $ECHO_N "(cached) $ECHO_C" >&6
  9503. else
  9504. gt_save_CPPFLAGS="$CPPFLAGS"
  9505. CPPFLAGS="$CPPFLAGS $INCINTL"
  9506. gt_save_LIBS="$LIBS"
  9507. LIBS="$LIBS $LIBINTL"
  9508. cat >conftest.$ac_ext <<_ACEOF
  9509. /* confdefs.h. */
  9510. _ACEOF
  9511. cat confdefs.h >>conftest.$ac_ext
  9512. cat >>conftest.$ac_ext <<_ACEOF
  9513. /* end confdefs.h. */
  9514. #include <libintl.h>
  9515. extern int _nl_msg_cat_cntr;
  9516. extern
  9517. #ifdef __cplusplus
  9518. "C"
  9519. #endif
  9520. const char *_nl_expand_alias ();
  9521. int
  9522. main ()
  9523. {
  9524. bindtextdomain ("", "");
  9525. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9526. ;
  9527. return 0;
  9528. }
  9529. _ACEOF
  9530. rm -f conftest.$ac_objext conftest$ac_exeext
  9531. if { (ac_try="$ac_link"
  9532. case "(($ac_try" in
  9533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9534. *) ac_try_echo=$ac_try;;
  9535. esac
  9536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9537. (eval "$ac_link") 2>conftest.er1
  9538. ac_status=$?
  9539. grep -v '^ *+' conftest.er1 >conftest.err
  9540. rm -f conftest.er1
  9541. cat conftest.err >&5
  9542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9543. (exit $ac_status); } && {
  9544. test -z "$ac_c_werror_flag" ||
  9545. test ! -s conftest.err
  9546. } && test -s conftest$ac_exeext &&
  9547. $as_test_x conftest$ac_exeext; then
  9548. gt_cv_func_gnugettext1_libintl=yes
  9549. else
  9550. echo "$as_me: failed program was:" >&5
  9551. sed 's/^/| /' conftest.$ac_ext >&5
  9552. gt_cv_func_gnugettext1_libintl=no
  9553. fi
  9554. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9555. conftest$ac_exeext conftest.$ac_ext
  9556. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  9557. LIBS="$LIBS $LIBICONV"
  9558. cat >conftest.$ac_ext <<_ACEOF
  9559. /* confdefs.h. */
  9560. _ACEOF
  9561. cat confdefs.h >>conftest.$ac_ext
  9562. cat >>conftest.$ac_ext <<_ACEOF
  9563. /* end confdefs.h. */
  9564. #include <libintl.h>
  9565. extern int _nl_msg_cat_cntr;
  9566. extern
  9567. #ifdef __cplusplus
  9568. "C"
  9569. #endif
  9570. const char *_nl_expand_alias ();
  9571. int
  9572. main ()
  9573. {
  9574. bindtextdomain ("", "");
  9575. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9576. ;
  9577. return 0;
  9578. }
  9579. _ACEOF
  9580. rm -f conftest.$ac_objext conftest$ac_exeext
  9581. if { (ac_try="$ac_link"
  9582. case "(($ac_try" in
  9583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9584. *) ac_try_echo=$ac_try;;
  9585. esac
  9586. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9587. (eval "$ac_link") 2>conftest.er1
  9588. ac_status=$?
  9589. grep -v '^ *+' conftest.er1 >conftest.err
  9590. rm -f conftest.er1
  9591. cat conftest.err >&5
  9592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9593. (exit $ac_status); } && {
  9594. test -z "$ac_c_werror_flag" ||
  9595. test ! -s conftest.err
  9596. } && test -s conftest$ac_exeext &&
  9597. $as_test_x conftest$ac_exeext; then
  9598. LIBINTL="$LIBINTL $LIBICONV"
  9599. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  9600. gt_cv_func_gnugettext1_libintl=yes
  9601. else
  9602. echo "$as_me: failed program was:" >&5
  9603. sed 's/^/| /' conftest.$ac_ext >&5
  9604. fi
  9605. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9606. conftest$ac_exeext conftest.$ac_ext
  9607. fi
  9608. CPPFLAGS="$gt_save_CPPFLAGS"
  9609. LIBS="$gt_save_LIBS"
  9610. fi
  9611. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  9612. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
  9613. fi
  9614. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  9615. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  9616. && test "$PACKAGE" != gettext-runtime \
  9617. && test "$PACKAGE" != gettext-tools; }; then
  9618. gt_use_preinstalled_gnugettext=yes
  9619. else
  9620. LIBINTL=
  9621. LTLIBINTL=
  9622. INCINTL=
  9623. fi
  9624. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  9625. nls_cv_use_gnu_gettext=yes
  9626. fi
  9627. fi
  9628. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  9629. BUILD_INCLUDED_LIBINTL=yes
  9630. USE_INCLUDED_LIBINTL=yes
  9631. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  9632. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  9633. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  9634. fi
  9635. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9636. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9637. CATOBJEXT=.gmo
  9638. fi
  9639. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9640. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9641. cat >>confdefs.h <<\_ACEOF
  9642. #define ENABLE_NLS 1
  9643. _ACEOF
  9644. else
  9645. USE_NLS=no
  9646. fi
  9647. fi
  9648. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  9649. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  9650. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9651. echo "${ECHO_T}$USE_NLS" >&6; }
  9652. if test "$USE_NLS" = "yes"; then
  9653. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  9654. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  9655. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9656. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9657. gt_source="external libintl"
  9658. else
  9659. gt_source="libc"
  9660. fi
  9661. else
  9662. gt_source="included intl directory"
  9663. fi
  9664. { echo "$as_me:$LINENO: result: $gt_source" >&5
  9665. echo "${ECHO_T}$gt_source" >&6; }
  9666. fi
  9667. if test "$USE_NLS" = "yes"; then
  9668. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9669. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9670. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  9671. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  9672. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  9673. echo "${ECHO_T}$LIBINTL" >&6; }
  9674. for element in $INCINTL; do
  9675. haveit=
  9676. for x in $CPPFLAGS; do
  9677. acl_save_prefix="$prefix"
  9678. prefix="$acl_final_prefix"
  9679. acl_save_exec_prefix="$exec_prefix"
  9680. exec_prefix="$acl_final_exec_prefix"
  9681. eval x=\"$x\"
  9682. exec_prefix="$acl_save_exec_prefix"
  9683. prefix="$acl_save_prefix"
  9684. if test "X$x" = "X$element"; then
  9685. haveit=yes
  9686. break
  9687. fi
  9688. done
  9689. if test -z "$haveit"; then
  9690. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9691. fi
  9692. done
  9693. fi
  9694. cat >>confdefs.h <<\_ACEOF
  9695. #define HAVE_GETTEXT 1
  9696. _ACEOF
  9697. cat >>confdefs.h <<\_ACEOF
  9698. #define HAVE_DCGETTEXT 1
  9699. _ACEOF
  9700. fi
  9701. POSUB=po
  9702. fi
  9703. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  9704. BUILD_INCLUDED_LIBINTL=yes
  9705. fi
  9706. nls_cv_header_intl=
  9707. nls_cv_header_libgt=
  9708. DATADIRNAME=share
  9709. INSTOBJEXT=.mo
  9710. GENCAT=gencat
  9711. if test "$USE_INCLUDED_LIBINTL" = yes; then
  9712. INTLOBJS="\$(GETTOBJS)"
  9713. fi
  9714. INTL_LIBTOOL_SUFFIX_PREFIX=
  9715. INTLLIBS="$LIBINTL"
  9716. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  9717. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  9718. if test "${ac_cv_lib_error_at_line+set}" = set; then
  9719. echo $ECHO_N "(cached) $ECHO_C" >&6
  9720. else
  9721. cat >conftest.$ac_ext <<_ACEOF
  9722. /* confdefs.h. */
  9723. _ACEOF
  9724. cat confdefs.h >>conftest.$ac_ext
  9725. cat >>conftest.$ac_ext <<_ACEOF
  9726. /* end confdefs.h. */
  9727. #include <error.h>
  9728. int
  9729. main ()
  9730. {
  9731. error_at_line (0, 0, "", 0, "an error occurred");
  9732. ;
  9733. return 0;
  9734. }
  9735. _ACEOF
  9736. rm -f conftest.$ac_objext conftest$ac_exeext
  9737. if { (ac_try="$ac_link"
  9738. case "(($ac_try" in
  9739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9740. *) ac_try_echo=$ac_try;;
  9741. esac
  9742. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9743. (eval "$ac_link") 2>conftest.er1
  9744. ac_status=$?
  9745. grep -v '^ *+' conftest.er1 >conftest.err
  9746. rm -f conftest.er1
  9747. cat conftest.err >&5
  9748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9749. (exit $ac_status); } && {
  9750. test -z "$ac_c_werror_flag" ||
  9751. test ! -s conftest.err
  9752. } && test -s conftest$ac_exeext &&
  9753. $as_test_x conftest$ac_exeext; then
  9754. ac_cv_lib_error_at_line=yes
  9755. else
  9756. echo "$as_me: failed program was:" >&5
  9757. sed 's/^/| /' conftest.$ac_ext >&5
  9758. ac_cv_lib_error_at_line=no
  9759. fi
  9760. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9761. conftest$ac_exeext conftest.$ac_ext
  9762. fi
  9763. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  9764. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  9765. if test $ac_cv_lib_error_at_line = no; then
  9766. case " $LIBOBJS " in
  9767. *" error.$ac_objext "* ) ;;
  9768. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  9769. ;;
  9770. esac
  9771. fi
  9772. case "$target" in
  9773. *mingw*)
  9774. ;;
  9775. *)
  9776. for ac_header in stdlib.h
  9777. do
  9778. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9779. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9780. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9781. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9782. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9783. echo $ECHO_N "(cached) $ECHO_C" >&6
  9784. fi
  9785. ac_res=`eval echo '${'$as_ac_Header'}'`
  9786. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9787. echo "${ECHO_T}$ac_res" >&6; }
  9788. else
  9789. # Is the header compilable?
  9790. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9791. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9792. cat >conftest.$ac_ext <<_ACEOF
  9793. /* confdefs.h. */
  9794. _ACEOF
  9795. cat confdefs.h >>conftest.$ac_ext
  9796. cat >>conftest.$ac_ext <<_ACEOF
  9797. /* end confdefs.h. */
  9798. $ac_includes_default
  9799. #include <$ac_header>
  9800. _ACEOF
  9801. rm -f conftest.$ac_objext
  9802. if { (ac_try="$ac_compile"
  9803. case "(($ac_try" in
  9804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9805. *) ac_try_echo=$ac_try;;
  9806. esac
  9807. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9808. (eval "$ac_compile") 2>conftest.er1
  9809. ac_status=$?
  9810. grep -v '^ *+' conftest.er1 >conftest.err
  9811. rm -f conftest.er1
  9812. cat conftest.err >&5
  9813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9814. (exit $ac_status); } && {
  9815. test -z "$ac_c_werror_flag" ||
  9816. test ! -s conftest.err
  9817. } && test -s conftest.$ac_objext; then
  9818. ac_header_compiler=yes
  9819. else
  9820. echo "$as_me: failed program was:" >&5
  9821. sed 's/^/| /' conftest.$ac_ext >&5
  9822. ac_header_compiler=no
  9823. fi
  9824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9825. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9826. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9827. # Is the header present?
  9828. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9829. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9830. cat >conftest.$ac_ext <<_ACEOF
  9831. /* confdefs.h. */
  9832. _ACEOF
  9833. cat confdefs.h >>conftest.$ac_ext
  9834. cat >>conftest.$ac_ext <<_ACEOF
  9835. /* end confdefs.h. */
  9836. #include <$ac_header>
  9837. _ACEOF
  9838. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9839. case "(($ac_try" in
  9840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9841. *) ac_try_echo=$ac_try;;
  9842. esac
  9843. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9844. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9845. ac_status=$?
  9846. grep -v '^ *+' conftest.er1 >conftest.err
  9847. rm -f conftest.er1
  9848. cat conftest.err >&5
  9849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9850. (exit $ac_status); } >/dev/null && {
  9851. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9852. test ! -s conftest.err
  9853. }; then
  9854. ac_header_preproc=yes
  9855. else
  9856. echo "$as_me: failed program was:" >&5
  9857. sed 's/^/| /' conftest.$ac_ext >&5
  9858. ac_header_preproc=no
  9859. fi
  9860. rm -f conftest.err conftest.$ac_ext
  9861. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9862. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9863. # So? What about this header?
  9864. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9865. yes:no: )
  9866. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9867. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9868. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9869. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9870. ac_header_preproc=yes
  9871. ;;
  9872. no:yes:* )
  9873. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9874. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9875. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9876. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9877. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9878. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9879. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9880. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9881. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9882. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9883. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9884. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9885. ( cat <<\_ASBOX
  9886. ## ----------------------------------------------- ##
  9887. ## Report this to t-tujikawa@users.sourceforge.net ##
  9888. ## ----------------------------------------------- ##
  9889. _ASBOX
  9890. ) | sed "s/^/$as_me: WARNING: /" >&2
  9891. ;;
  9892. esac
  9893. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9894. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9895. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9896. echo $ECHO_N "(cached) $ECHO_C" >&6
  9897. else
  9898. eval "$as_ac_Header=\$ac_header_preproc"
  9899. fi
  9900. ac_res=`eval echo '${'$as_ac_Header'}'`
  9901. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9902. echo "${ECHO_T}$ac_res" >&6; }
  9903. fi
  9904. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9905. cat >>confdefs.h <<_ACEOF
  9906. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9907. _ACEOF
  9908. fi
  9909. done
  9910. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9911. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  9912. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9913. echo $ECHO_N "(cached) $ECHO_C" >&6
  9914. else
  9915. if test "$cross_compiling" = yes; then
  9916. ac_cv_func_malloc_0_nonnull=no
  9917. else
  9918. cat >conftest.$ac_ext <<_ACEOF
  9919. /* confdefs.h. */
  9920. _ACEOF
  9921. cat confdefs.h >>conftest.$ac_ext
  9922. cat >>conftest.$ac_ext <<_ACEOF
  9923. /* end confdefs.h. */
  9924. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9925. # include <stdlib.h>
  9926. #else
  9927. char *malloc ();
  9928. #endif
  9929. int
  9930. main ()
  9931. {
  9932. return ! malloc (0);
  9933. ;
  9934. return 0;
  9935. }
  9936. _ACEOF
  9937. rm -f conftest$ac_exeext
  9938. if { (ac_try="$ac_link"
  9939. case "(($ac_try" in
  9940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9941. *) ac_try_echo=$ac_try;;
  9942. esac
  9943. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9944. (eval "$ac_link") 2>&5
  9945. ac_status=$?
  9946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9947. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9948. { (case "(($ac_try" in
  9949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9950. *) ac_try_echo=$ac_try;;
  9951. esac
  9952. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9953. (eval "$ac_try") 2>&5
  9954. ac_status=$?
  9955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9956. (exit $ac_status); }; }; then
  9957. ac_cv_func_malloc_0_nonnull=yes
  9958. else
  9959. echo "$as_me: program exited with status $ac_status" >&5
  9960. echo "$as_me: failed program was:" >&5
  9961. sed 's/^/| /' conftest.$ac_ext >&5
  9962. ( exit $ac_status )
  9963. ac_cv_func_malloc_0_nonnull=no
  9964. fi
  9965. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9966. fi
  9967. fi
  9968. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9969. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  9970. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9971. cat >>confdefs.h <<\_ACEOF
  9972. #define HAVE_MALLOC 1
  9973. _ACEOF
  9974. else
  9975. cat >>confdefs.h <<\_ACEOF
  9976. #define HAVE_MALLOC 0
  9977. _ACEOF
  9978. case " $LIBOBJS " in
  9979. *" malloc.$ac_objext "* ) ;;
  9980. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9981. ;;
  9982. esac
  9983. cat >>confdefs.h <<\_ACEOF
  9984. #define malloc rpl_malloc
  9985. _ACEOF
  9986. fi
  9987. for ac_header in stdlib.h
  9988. do
  9989. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9990. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9991. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9992. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9993. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9994. echo $ECHO_N "(cached) $ECHO_C" >&6
  9995. fi
  9996. ac_res=`eval echo '${'$as_ac_Header'}'`
  9997. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9998. echo "${ECHO_T}$ac_res" >&6; }
  9999. else
  10000. # Is the header compilable?
  10001. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10002. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10003. cat >conftest.$ac_ext <<_ACEOF
  10004. /* confdefs.h. */
  10005. _ACEOF
  10006. cat confdefs.h >>conftest.$ac_ext
  10007. cat >>conftest.$ac_ext <<_ACEOF
  10008. /* end confdefs.h. */
  10009. $ac_includes_default
  10010. #include <$ac_header>
  10011. _ACEOF
  10012. rm -f conftest.$ac_objext
  10013. if { (ac_try="$ac_compile"
  10014. case "(($ac_try" in
  10015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10016. *) ac_try_echo=$ac_try;;
  10017. esac
  10018. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10019. (eval "$ac_compile") 2>conftest.er1
  10020. ac_status=$?
  10021. grep -v '^ *+' conftest.er1 >conftest.err
  10022. rm -f conftest.er1
  10023. cat conftest.err >&5
  10024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10025. (exit $ac_status); } && {
  10026. test -z "$ac_c_werror_flag" ||
  10027. test ! -s conftest.err
  10028. } && test -s conftest.$ac_objext; then
  10029. ac_header_compiler=yes
  10030. else
  10031. echo "$as_me: failed program was:" >&5
  10032. sed 's/^/| /' conftest.$ac_ext >&5
  10033. ac_header_compiler=no
  10034. fi
  10035. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10036. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10037. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10038. # Is the header present?
  10039. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10040. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10041. cat >conftest.$ac_ext <<_ACEOF
  10042. /* confdefs.h. */
  10043. _ACEOF
  10044. cat confdefs.h >>conftest.$ac_ext
  10045. cat >>conftest.$ac_ext <<_ACEOF
  10046. /* end confdefs.h. */
  10047. #include <$ac_header>
  10048. _ACEOF
  10049. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10050. case "(($ac_try" in
  10051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10052. *) ac_try_echo=$ac_try;;
  10053. esac
  10054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10055. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10056. ac_status=$?
  10057. grep -v '^ *+' conftest.er1 >conftest.err
  10058. rm -f conftest.er1
  10059. cat conftest.err >&5
  10060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10061. (exit $ac_status); } >/dev/null && {
  10062. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10063. test ! -s conftest.err
  10064. }; then
  10065. ac_header_preproc=yes
  10066. else
  10067. echo "$as_me: failed program was:" >&5
  10068. sed 's/^/| /' conftest.$ac_ext >&5
  10069. ac_header_preproc=no
  10070. fi
  10071. rm -f conftest.err conftest.$ac_ext
  10072. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10073. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10074. # So? What about this header?
  10075. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10076. yes:no: )
  10077. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10078. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10079. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10080. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10081. ac_header_preproc=yes
  10082. ;;
  10083. no:yes:* )
  10084. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10085. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10086. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10087. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10088. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10089. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10090. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10091. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10092. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10093. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10094. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10095. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10096. ( cat <<\_ASBOX
  10097. ## ----------------------------------------------- ##
  10098. ## Report this to t-tujikawa@users.sourceforge.net ##
  10099. ## ----------------------------------------------- ##
  10100. _ASBOX
  10101. ) | sed "s/^/$as_me: WARNING: /" >&2
  10102. ;;
  10103. esac
  10104. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10105. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10106. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10107. echo $ECHO_N "(cached) $ECHO_C" >&6
  10108. else
  10109. eval "$as_ac_Header=\$ac_header_preproc"
  10110. fi
  10111. ac_res=`eval echo '${'$as_ac_Header'}'`
  10112. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10113. echo "${ECHO_T}$ac_res" >&6; }
  10114. fi
  10115. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10116. cat >>confdefs.h <<_ACEOF
  10117. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10118. _ACEOF
  10119. fi
  10120. done
  10121. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10122. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  10123. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10124. echo $ECHO_N "(cached) $ECHO_C" >&6
  10125. else
  10126. if test "$cross_compiling" = yes; then
  10127. ac_cv_func_realloc_0_nonnull=no
  10128. else
  10129. cat >conftest.$ac_ext <<_ACEOF
  10130. /* confdefs.h. */
  10131. _ACEOF
  10132. cat confdefs.h >>conftest.$ac_ext
  10133. cat >>conftest.$ac_ext <<_ACEOF
  10134. /* end confdefs.h. */
  10135. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10136. # include <stdlib.h>
  10137. #else
  10138. char *realloc ();
  10139. #endif
  10140. int
  10141. main ()
  10142. {
  10143. return ! realloc (0, 0);
  10144. ;
  10145. return 0;
  10146. }
  10147. _ACEOF
  10148. rm -f conftest$ac_exeext
  10149. if { (ac_try="$ac_link"
  10150. case "(($ac_try" in
  10151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10152. *) ac_try_echo=$ac_try;;
  10153. esac
  10154. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10155. (eval "$ac_link") 2>&5
  10156. ac_status=$?
  10157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10158. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10159. { (case "(($ac_try" in
  10160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10161. *) ac_try_echo=$ac_try;;
  10162. esac
  10163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10164. (eval "$ac_try") 2>&5
  10165. ac_status=$?
  10166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10167. (exit $ac_status); }; }; then
  10168. ac_cv_func_realloc_0_nonnull=yes
  10169. else
  10170. echo "$as_me: program exited with status $ac_status" >&5
  10171. echo "$as_me: failed program was:" >&5
  10172. sed 's/^/| /' conftest.$ac_ext >&5
  10173. ( exit $ac_status )
  10174. ac_cv_func_realloc_0_nonnull=no
  10175. fi
  10176. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10177. fi
  10178. fi
  10179. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10180. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  10181. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10182. cat >>confdefs.h <<\_ACEOF
  10183. #define HAVE_REALLOC 1
  10184. _ACEOF
  10185. else
  10186. cat >>confdefs.h <<\_ACEOF
  10187. #define HAVE_REALLOC 0
  10188. _ACEOF
  10189. case " $LIBOBJS " in
  10190. *" realloc.$ac_objext "* ) ;;
  10191. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  10192. ;;
  10193. esac
  10194. cat >>confdefs.h <<\_ACEOF
  10195. #define realloc rpl_realloc
  10196. _ACEOF
  10197. fi
  10198. ;;
  10199. esac
  10200. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  10201. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  10202. if test "${ac_cv_func_memcmp_working+set}" = set; then
  10203. echo $ECHO_N "(cached) $ECHO_C" >&6
  10204. else
  10205. if test "$cross_compiling" = yes; then
  10206. ac_cv_func_memcmp_working=no
  10207. else
  10208. cat >conftest.$ac_ext <<_ACEOF
  10209. /* confdefs.h. */
  10210. _ACEOF
  10211. cat confdefs.h >>conftest.$ac_ext
  10212. cat >>conftest.$ac_ext <<_ACEOF
  10213. /* end confdefs.h. */
  10214. $ac_includes_default
  10215. int
  10216. main ()
  10217. {
  10218. /* Some versions of memcmp are not 8-bit clean. */
  10219. char c0 = '\100', c1 = '\200', c2 = '\201';
  10220. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  10221. return 1;
  10222. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  10223. or more and with at least one buffer not starting on a 4-byte boundary.
  10224. William Lewis provided this test program. */
  10225. {
  10226. char foo[21];
  10227. char bar[21];
  10228. int i;
  10229. for (i = 0; i < 4; i++)
  10230. {
  10231. char *a = foo + i;
  10232. char *b = bar + i;
  10233. strcpy (a, "--------01111111");
  10234. strcpy (b, "--------10000000");
  10235. if (memcmp (a, b, 16) >= 0)
  10236. return 1;
  10237. }
  10238. return 0;
  10239. }
  10240. ;
  10241. return 0;
  10242. }
  10243. _ACEOF
  10244. rm -f conftest$ac_exeext
  10245. if { (ac_try="$ac_link"
  10246. case "(($ac_try" in
  10247. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10248. *) ac_try_echo=$ac_try;;
  10249. esac
  10250. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10251. (eval "$ac_link") 2>&5
  10252. ac_status=$?
  10253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10254. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10255. { (case "(($ac_try" in
  10256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10257. *) ac_try_echo=$ac_try;;
  10258. esac
  10259. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10260. (eval "$ac_try") 2>&5
  10261. ac_status=$?
  10262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10263. (exit $ac_status); }; }; then
  10264. ac_cv_func_memcmp_working=yes
  10265. else
  10266. echo "$as_me: program exited with status $ac_status" >&5
  10267. echo "$as_me: failed program was:" >&5
  10268. sed 's/^/| /' conftest.$ac_ext >&5
  10269. ( exit $ac_status )
  10270. ac_cv_func_memcmp_working=no
  10271. fi
  10272. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10273. fi
  10274. fi
  10275. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  10276. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  10277. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  10278. *" memcmp.$ac_objext "* ) ;;
  10279. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  10280. ;;
  10281. esac
  10282. for ac_header in stdlib.h unistd.h
  10283. do
  10284. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10285. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10286. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10287. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10288. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10289. echo $ECHO_N "(cached) $ECHO_C" >&6
  10290. fi
  10291. ac_res=`eval echo '${'$as_ac_Header'}'`
  10292. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10293. echo "${ECHO_T}$ac_res" >&6; }
  10294. else
  10295. # Is the header compilable?
  10296. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10297. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10298. cat >conftest.$ac_ext <<_ACEOF
  10299. /* confdefs.h. */
  10300. _ACEOF
  10301. cat confdefs.h >>conftest.$ac_ext
  10302. cat >>conftest.$ac_ext <<_ACEOF
  10303. /* end confdefs.h. */
  10304. $ac_includes_default
  10305. #include <$ac_header>
  10306. _ACEOF
  10307. rm -f conftest.$ac_objext
  10308. if { (ac_try="$ac_compile"
  10309. case "(($ac_try" in
  10310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10311. *) ac_try_echo=$ac_try;;
  10312. esac
  10313. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10314. (eval "$ac_compile") 2>conftest.er1
  10315. ac_status=$?
  10316. grep -v '^ *+' conftest.er1 >conftest.err
  10317. rm -f conftest.er1
  10318. cat conftest.err >&5
  10319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10320. (exit $ac_status); } && {
  10321. test -z "$ac_c_werror_flag" ||
  10322. test ! -s conftest.err
  10323. } && test -s conftest.$ac_objext; then
  10324. ac_header_compiler=yes
  10325. else
  10326. echo "$as_me: failed program was:" >&5
  10327. sed 's/^/| /' conftest.$ac_ext >&5
  10328. ac_header_compiler=no
  10329. fi
  10330. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10331. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10332. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10333. # Is the header present?
  10334. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10335. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10336. cat >conftest.$ac_ext <<_ACEOF
  10337. /* confdefs.h. */
  10338. _ACEOF
  10339. cat confdefs.h >>conftest.$ac_ext
  10340. cat >>conftest.$ac_ext <<_ACEOF
  10341. /* end confdefs.h. */
  10342. #include <$ac_header>
  10343. _ACEOF
  10344. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10345. case "(($ac_try" in
  10346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10347. *) ac_try_echo=$ac_try;;
  10348. esac
  10349. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10350. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10351. ac_status=$?
  10352. grep -v '^ *+' conftest.er1 >conftest.err
  10353. rm -f conftest.er1
  10354. cat conftest.err >&5
  10355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10356. (exit $ac_status); } >/dev/null && {
  10357. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10358. test ! -s conftest.err
  10359. }; then
  10360. ac_header_preproc=yes
  10361. else
  10362. echo "$as_me: failed program was:" >&5
  10363. sed 's/^/| /' conftest.$ac_ext >&5
  10364. ac_header_preproc=no
  10365. fi
  10366. rm -f conftest.err conftest.$ac_ext
  10367. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10368. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10369. # So? What about this header?
  10370. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10371. yes:no: )
  10372. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10373. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10374. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10375. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10376. ac_header_preproc=yes
  10377. ;;
  10378. no:yes:* )
  10379. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10380. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10381. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10382. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10383. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10384. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10385. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10386. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10387. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10388. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10389. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10390. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10391. ( cat <<\_ASBOX
  10392. ## ----------------------------------------------- ##
  10393. ## Report this to t-tujikawa@users.sourceforge.net ##
  10394. ## ----------------------------------------------- ##
  10395. _ASBOX
  10396. ) | sed "s/^/$as_me: WARNING: /" >&2
  10397. ;;
  10398. esac
  10399. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10400. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10401. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10402. echo $ECHO_N "(cached) $ECHO_C" >&6
  10403. else
  10404. eval "$as_ac_Header=\$ac_header_preproc"
  10405. fi
  10406. ac_res=`eval echo '${'$as_ac_Header'}'`
  10407. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10408. echo "${ECHO_T}$ac_res" >&6; }
  10409. fi
  10410. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10411. cat >>confdefs.h <<_ACEOF
  10412. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10413. _ACEOF
  10414. fi
  10415. done
  10416. for ac_func in getpagesize
  10417. do
  10418. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10419. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10420. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10421. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10422. echo $ECHO_N "(cached) $ECHO_C" >&6
  10423. else
  10424. cat >conftest.$ac_ext <<_ACEOF
  10425. /* confdefs.h. */
  10426. _ACEOF
  10427. cat confdefs.h >>conftest.$ac_ext
  10428. cat >>conftest.$ac_ext <<_ACEOF
  10429. /* end confdefs.h. */
  10430. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10431. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10432. #define $ac_func innocuous_$ac_func
  10433. /* System header to define __stub macros and hopefully few prototypes,
  10434. which can conflict with char $ac_func (); below.
  10435. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10436. <limits.h> exists even on freestanding compilers. */
  10437. #ifdef __STDC__
  10438. # include <limits.h>
  10439. #else
  10440. # include <assert.h>
  10441. #endif
  10442. #undef $ac_func
  10443. /* Override any GCC internal prototype to avoid an error.
  10444. Use char because int might match the return type of a GCC
  10445. builtin and then its argument prototype would still apply. */
  10446. #ifdef __cplusplus
  10447. extern "C"
  10448. #endif
  10449. char $ac_func ();
  10450. /* The GNU C library defines this for functions which it implements
  10451. to always fail with ENOSYS. Some functions are actually named
  10452. something starting with __ and the normal name is an alias. */
  10453. #if defined __stub_$ac_func || defined __stub___$ac_func
  10454. choke me
  10455. #endif
  10456. int
  10457. main ()
  10458. {
  10459. return $ac_func ();
  10460. ;
  10461. return 0;
  10462. }
  10463. _ACEOF
  10464. rm -f conftest.$ac_objext conftest$ac_exeext
  10465. if { (ac_try="$ac_link"
  10466. case "(($ac_try" in
  10467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10468. *) ac_try_echo=$ac_try;;
  10469. esac
  10470. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10471. (eval "$ac_link") 2>conftest.er1
  10472. ac_status=$?
  10473. grep -v '^ *+' conftest.er1 >conftest.err
  10474. rm -f conftest.er1
  10475. cat conftest.err >&5
  10476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10477. (exit $ac_status); } && {
  10478. test -z "$ac_c_werror_flag" ||
  10479. test ! -s conftest.err
  10480. } && test -s conftest$ac_exeext &&
  10481. $as_test_x conftest$ac_exeext; then
  10482. eval "$as_ac_var=yes"
  10483. else
  10484. echo "$as_me: failed program was:" >&5
  10485. sed 's/^/| /' conftest.$ac_ext >&5
  10486. eval "$as_ac_var=no"
  10487. fi
  10488. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10489. conftest$ac_exeext conftest.$ac_ext
  10490. fi
  10491. ac_res=`eval echo '${'$as_ac_var'}'`
  10492. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10493. echo "${ECHO_T}$ac_res" >&6; }
  10494. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10495. cat >>confdefs.h <<_ACEOF
  10496. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10497. _ACEOF
  10498. fi
  10499. done
  10500. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10501. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10502. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10503. echo $ECHO_N "(cached) $ECHO_C" >&6
  10504. else
  10505. if test "$cross_compiling" = yes; then
  10506. ac_cv_func_mmap_fixed_mapped=no
  10507. else
  10508. cat >conftest.$ac_ext <<_ACEOF
  10509. /* confdefs.h. */
  10510. _ACEOF
  10511. cat confdefs.h >>conftest.$ac_ext
  10512. cat >>conftest.$ac_ext <<_ACEOF
  10513. /* end confdefs.h. */
  10514. $ac_includes_default
  10515. /* malloc might have been renamed as rpl_malloc. */
  10516. #undef malloc
  10517. /* Thanks to Mike Haertel and Jim Avera for this test.
  10518. Here is a matrix of mmap possibilities:
  10519. mmap private not fixed
  10520. mmap private fixed at somewhere currently unmapped
  10521. mmap private fixed at somewhere already mapped
  10522. mmap shared not fixed
  10523. mmap shared fixed at somewhere currently unmapped
  10524. mmap shared fixed at somewhere already mapped
  10525. For private mappings, we should verify that changes cannot be read()
  10526. back from the file, nor mmap's back from the file at a different
  10527. address. (There have been systems where private was not correctly
  10528. implemented like the infamous i386 svr4.0, and systems where the
  10529. VM page cache was not coherent with the file system buffer cache
  10530. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10531. For shared mappings, we should conversely verify that changes get
  10532. propagated back to all the places they're supposed to be.
  10533. Grep wants private fixed already mapped.
  10534. The main things grep needs to know about mmap are:
  10535. * does it exist and is it safe to write into the mmap'd area
  10536. * how to use it (BSD variants) */
  10537. #include <fcntl.h>
  10538. #include <sys/mman.h>
  10539. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10540. char *malloc ();
  10541. #endif
  10542. /* This mess was copied from the GNU getpagesize.h. */
  10543. #ifndef HAVE_GETPAGESIZE
  10544. /* Assume that all systems that can run configure have sys/param.h. */
  10545. # ifndef HAVE_SYS_PARAM_H
  10546. # define HAVE_SYS_PARAM_H 1
  10547. # endif
  10548. # ifdef _SC_PAGESIZE
  10549. # define getpagesize() sysconf(_SC_PAGESIZE)
  10550. # else /* no _SC_PAGESIZE */
  10551. # ifdef HAVE_SYS_PARAM_H
  10552. # include <sys/param.h>
  10553. # ifdef EXEC_PAGESIZE
  10554. # define getpagesize() EXEC_PAGESIZE
  10555. # else /* no EXEC_PAGESIZE */
  10556. # ifdef NBPG
  10557. # define getpagesize() NBPG * CLSIZE
  10558. # ifndef CLSIZE
  10559. # define CLSIZE 1
  10560. # endif /* no CLSIZE */
  10561. # else /* no NBPG */
  10562. # ifdef NBPC
  10563. # define getpagesize() NBPC
  10564. # else /* no NBPC */
  10565. # ifdef PAGESIZE
  10566. # define getpagesize() PAGESIZE
  10567. # endif /* PAGESIZE */
  10568. # endif /* no NBPC */
  10569. # endif /* no NBPG */
  10570. # endif /* no EXEC_PAGESIZE */
  10571. # else /* no HAVE_SYS_PARAM_H */
  10572. # define getpagesize() 8192 /* punt totally */
  10573. # endif /* no HAVE_SYS_PARAM_H */
  10574. # endif /* no _SC_PAGESIZE */
  10575. #endif /* no HAVE_GETPAGESIZE */
  10576. int
  10577. main ()
  10578. {
  10579. char *data, *data2, *data3;
  10580. int i, pagesize;
  10581. int fd;
  10582. pagesize = getpagesize ();
  10583. /* First, make a file with some known garbage in it. */
  10584. data = (char *) malloc (pagesize);
  10585. if (!data)
  10586. return 1;
  10587. for (i = 0; i < pagesize; ++i)
  10588. *(data + i) = rand ();
  10589. umask (0);
  10590. fd = creat ("conftest.mmap", 0600);
  10591. if (fd < 0)
  10592. return 1;
  10593. if (write (fd, data, pagesize) != pagesize)
  10594. return 1;
  10595. close (fd);
  10596. /* Next, try to mmap the file at a fixed address which already has
  10597. something else allocated at it. If we can, also make sure that
  10598. we see the same garbage. */
  10599. fd = open ("conftest.mmap", O_RDWR);
  10600. if (fd < 0)
  10601. return 1;
  10602. data2 = (char *) malloc (2 * pagesize);
  10603. if (!data2)
  10604. return 1;
  10605. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10606. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10607. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10608. return 1;
  10609. for (i = 0; i < pagesize; ++i)
  10610. if (*(data + i) != *(data2 + i))
  10611. return 1;
  10612. /* Finally, make sure that changes to the mapped area do not
  10613. percolate back to the file as seen by read(). (This is a bug on
  10614. some variants of i386 svr4.0.) */
  10615. for (i = 0; i < pagesize; ++i)
  10616. *(data2 + i) = *(data2 + i) + 1;
  10617. data3 = (char *) malloc (pagesize);
  10618. if (!data3)
  10619. return 1;
  10620. if (read (fd, data3, pagesize) != pagesize)
  10621. return 1;
  10622. for (i = 0; i < pagesize; ++i)
  10623. if (*(data + i) != *(data3 + i))
  10624. return 1;
  10625. close (fd);
  10626. return 0;
  10627. }
  10628. _ACEOF
  10629. rm -f conftest$ac_exeext
  10630. if { (ac_try="$ac_link"
  10631. case "(($ac_try" in
  10632. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10633. *) ac_try_echo=$ac_try;;
  10634. esac
  10635. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10636. (eval "$ac_link") 2>&5
  10637. ac_status=$?
  10638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10639. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10640. { (case "(($ac_try" in
  10641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10642. *) ac_try_echo=$ac_try;;
  10643. esac
  10644. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10645. (eval "$ac_try") 2>&5
  10646. ac_status=$?
  10647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10648. (exit $ac_status); }; }; then
  10649. ac_cv_func_mmap_fixed_mapped=yes
  10650. else
  10651. echo "$as_me: program exited with status $ac_status" >&5
  10652. echo "$as_me: failed program was:" >&5
  10653. sed 's/^/| /' conftest.$ac_ext >&5
  10654. ( exit $ac_status )
  10655. ac_cv_func_mmap_fixed_mapped=no
  10656. fi
  10657. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10658. fi
  10659. fi
  10660. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10661. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10662. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10663. cat >>confdefs.h <<\_ACEOF
  10664. #define HAVE_MMAP 1
  10665. _ACEOF
  10666. fi
  10667. rm -f conftest.mmap
  10668. for ac_header in sys/select.h sys/socket.h
  10669. do
  10670. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10671. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10672. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10673. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10674. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10675. echo $ECHO_N "(cached) $ECHO_C" >&6
  10676. fi
  10677. ac_res=`eval echo '${'$as_ac_Header'}'`
  10678. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10679. echo "${ECHO_T}$ac_res" >&6; }
  10680. else
  10681. # Is the header compilable?
  10682. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10683. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10684. cat >conftest.$ac_ext <<_ACEOF
  10685. /* confdefs.h. */
  10686. _ACEOF
  10687. cat confdefs.h >>conftest.$ac_ext
  10688. cat >>conftest.$ac_ext <<_ACEOF
  10689. /* end confdefs.h. */
  10690. $ac_includes_default
  10691. #include <$ac_header>
  10692. _ACEOF
  10693. rm -f conftest.$ac_objext
  10694. if { (ac_try="$ac_compile"
  10695. case "(($ac_try" in
  10696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10697. *) ac_try_echo=$ac_try;;
  10698. esac
  10699. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10700. (eval "$ac_compile") 2>conftest.er1
  10701. ac_status=$?
  10702. grep -v '^ *+' conftest.er1 >conftest.err
  10703. rm -f conftest.er1
  10704. cat conftest.err >&5
  10705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10706. (exit $ac_status); } && {
  10707. test -z "$ac_c_werror_flag" ||
  10708. test ! -s conftest.err
  10709. } && test -s conftest.$ac_objext; then
  10710. ac_header_compiler=yes
  10711. else
  10712. echo "$as_me: failed program was:" >&5
  10713. sed 's/^/| /' conftest.$ac_ext >&5
  10714. ac_header_compiler=no
  10715. fi
  10716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10717. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10718. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10719. # Is the header present?
  10720. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10721. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10722. cat >conftest.$ac_ext <<_ACEOF
  10723. /* confdefs.h. */
  10724. _ACEOF
  10725. cat confdefs.h >>conftest.$ac_ext
  10726. cat >>conftest.$ac_ext <<_ACEOF
  10727. /* end confdefs.h. */
  10728. #include <$ac_header>
  10729. _ACEOF
  10730. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10731. case "(($ac_try" in
  10732. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10733. *) ac_try_echo=$ac_try;;
  10734. esac
  10735. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10736. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10737. ac_status=$?
  10738. grep -v '^ *+' conftest.er1 >conftest.err
  10739. rm -f conftest.er1
  10740. cat conftest.err >&5
  10741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10742. (exit $ac_status); } >/dev/null && {
  10743. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10744. test ! -s conftest.err
  10745. }; then
  10746. ac_header_preproc=yes
  10747. else
  10748. echo "$as_me: failed program was:" >&5
  10749. sed 's/^/| /' conftest.$ac_ext >&5
  10750. ac_header_preproc=no
  10751. fi
  10752. rm -f conftest.err conftest.$ac_ext
  10753. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10754. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10755. # So? What about this header?
  10756. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10757. yes:no: )
  10758. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10759. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10760. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10761. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10762. ac_header_preproc=yes
  10763. ;;
  10764. no:yes:* )
  10765. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10766. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10767. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10768. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10769. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10770. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10771. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10772. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10773. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10774. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10775. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10776. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10777. ( cat <<\_ASBOX
  10778. ## ----------------------------------------------- ##
  10779. ## Report this to t-tujikawa@users.sourceforge.net ##
  10780. ## ----------------------------------------------- ##
  10781. _ASBOX
  10782. ) | sed "s/^/$as_me: WARNING: /" >&2
  10783. ;;
  10784. esac
  10785. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10786. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10787. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10788. echo $ECHO_N "(cached) $ECHO_C" >&6
  10789. else
  10790. eval "$as_ac_Header=\$ac_header_preproc"
  10791. fi
  10792. ac_res=`eval echo '${'$as_ac_Header'}'`
  10793. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10794. echo "${ECHO_T}$ac_res" >&6; }
  10795. fi
  10796. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10797. cat >>confdefs.h <<_ACEOF
  10798. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10799. _ACEOF
  10800. fi
  10801. done
  10802. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10803. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  10804. if test "${ac_cv_func_select_args+set}" = set; then
  10805. echo $ECHO_N "(cached) $ECHO_C" >&6
  10806. else
  10807. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10808. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  10809. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10810. cat >conftest.$ac_ext <<_ACEOF
  10811. /* confdefs.h. */
  10812. _ACEOF
  10813. cat confdefs.h >>conftest.$ac_ext
  10814. cat >>conftest.$ac_ext <<_ACEOF
  10815. /* end confdefs.h. */
  10816. $ac_includes_default
  10817. #ifdef HAVE_SYS_SELECT_H
  10818. # include <sys/select.h>
  10819. #endif
  10820. #ifdef HAVE_SYS_SOCKET_H
  10821. # include <sys/socket.h>
  10822. #endif
  10823. int
  10824. main ()
  10825. {
  10826. extern int select ($ac_arg1,
  10827. $ac_arg234, $ac_arg234, $ac_arg234,
  10828. $ac_arg5);
  10829. ;
  10830. return 0;
  10831. }
  10832. _ACEOF
  10833. rm -f conftest.$ac_objext
  10834. if { (ac_try="$ac_compile"
  10835. case "(($ac_try" in
  10836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10837. *) ac_try_echo=$ac_try;;
  10838. esac
  10839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10840. (eval "$ac_compile") 2>conftest.er1
  10841. ac_status=$?
  10842. grep -v '^ *+' conftest.er1 >conftest.err
  10843. rm -f conftest.er1
  10844. cat conftest.err >&5
  10845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10846. (exit $ac_status); } && {
  10847. test -z "$ac_c_werror_flag" ||
  10848. test ! -s conftest.err
  10849. } && test -s conftest.$ac_objext; then
  10850. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10851. else
  10852. echo "$as_me: failed program was:" >&5
  10853. sed 's/^/| /' conftest.$ac_ext >&5
  10854. fi
  10855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10856. done
  10857. done
  10858. done
  10859. # Provide a safe default value.
  10860. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10861. fi
  10862. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10863. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  10864. ac_save_IFS=$IFS; IFS=','
  10865. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10866. IFS=$ac_save_IFS
  10867. shift
  10868. cat >>confdefs.h <<_ACEOF
  10869. #define SELECT_TYPE_ARG1 $1
  10870. _ACEOF
  10871. cat >>confdefs.h <<_ACEOF
  10872. #define SELECT_TYPE_ARG234 ($2)
  10873. _ACEOF
  10874. cat >>confdefs.h <<_ACEOF
  10875. #define SELECT_TYPE_ARG5 ($3)
  10876. _ACEOF
  10877. rm -f conftest*
  10878. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  10879. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  10880. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  10881. echo $ECHO_N "(cached) $ECHO_C" >&6
  10882. else
  10883. rm -f conftest.sym conftest.file
  10884. echo >conftest.file
  10885. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  10886. if test "$cross_compiling" = yes; then
  10887. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10888. else
  10889. cat >conftest.$ac_ext <<_ACEOF
  10890. /* confdefs.h. */
  10891. _ACEOF
  10892. cat confdefs.h >>conftest.$ac_ext
  10893. cat >>conftest.$ac_ext <<_ACEOF
  10894. /* end confdefs.h. */
  10895. $ac_includes_default
  10896. int
  10897. main ()
  10898. {
  10899. struct stat sbuf;
  10900. /* Linux will dereference the symlink and fail.
  10901. That is better in the sense that it means we will not
  10902. have to compile and use the lstat wrapper. */
  10903. return lstat ("conftest.sym/", &sbuf) == 0;
  10904. ;
  10905. return 0;
  10906. }
  10907. _ACEOF
  10908. rm -f conftest$ac_exeext
  10909. if { (ac_try="$ac_link"
  10910. case "(($ac_try" in
  10911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10912. *) ac_try_echo=$ac_try;;
  10913. esac
  10914. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10915. (eval "$ac_link") 2>&5
  10916. ac_status=$?
  10917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10918. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10919. { (case "(($ac_try" in
  10920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10921. *) ac_try_echo=$ac_try;;
  10922. esac
  10923. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10924. (eval "$ac_try") 2>&5
  10925. ac_status=$?
  10926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10927. (exit $ac_status); }; }; then
  10928. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  10929. else
  10930. echo "$as_me: program exited with status $ac_status" >&5
  10931. echo "$as_me: failed program was:" >&5
  10932. sed 's/^/| /' conftest.$ac_ext >&5
  10933. ( exit $ac_status )
  10934. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10935. fi
  10936. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10937. fi
  10938. else
  10939. # If the `ln -s' command failed, then we probably don't even
  10940. # have an lstat function.
  10941. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10942. fi
  10943. rm -f conftest.sym conftest.file
  10944. fi
  10945. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  10946. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  10947. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  10948. cat >>confdefs.h <<_ACEOF
  10949. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  10950. _ACEOF
  10951. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  10952. case " $LIBOBJS " in
  10953. *" lstat.$ac_objext "* ) ;;
  10954. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  10955. ;;
  10956. esac
  10957. fi
  10958. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10959. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  10960. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10961. echo $ECHO_N "(cached) $ECHO_C" >&6
  10962. else
  10963. if test "$cross_compiling" = yes; then
  10964. ac_cv_func_stat_empty_string_bug=yes
  10965. else
  10966. cat >conftest.$ac_ext <<_ACEOF
  10967. /* confdefs.h. */
  10968. _ACEOF
  10969. cat confdefs.h >>conftest.$ac_ext
  10970. cat >>conftest.$ac_ext <<_ACEOF
  10971. /* end confdefs.h. */
  10972. $ac_includes_default
  10973. int
  10974. main ()
  10975. {
  10976. struct stat sbuf;
  10977. return stat ("", &sbuf) == 0;
  10978. ;
  10979. return 0;
  10980. }
  10981. _ACEOF
  10982. rm -f conftest$ac_exeext
  10983. if { (ac_try="$ac_link"
  10984. case "(($ac_try" in
  10985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10986. *) ac_try_echo=$ac_try;;
  10987. esac
  10988. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10989. (eval "$ac_link") 2>&5
  10990. ac_status=$?
  10991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10992. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10993. { (case "(($ac_try" in
  10994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10995. *) ac_try_echo=$ac_try;;
  10996. esac
  10997. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10998. (eval "$ac_try") 2>&5
  10999. ac_status=$?
  11000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11001. (exit $ac_status); }; }; then
  11002. ac_cv_func_stat_empty_string_bug=no
  11003. else
  11004. echo "$as_me: program exited with status $ac_status" >&5
  11005. echo "$as_me: failed program was:" >&5
  11006. sed 's/^/| /' conftest.$ac_ext >&5
  11007. ( exit $ac_status )
  11008. ac_cv_func_stat_empty_string_bug=yes
  11009. fi
  11010. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11011. fi
  11012. fi
  11013. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  11014. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  11015. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11016. case " $LIBOBJS " in
  11017. *" stat.$ac_objext "* ) ;;
  11018. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11019. ;;
  11020. esac
  11021. cat >>confdefs.h <<_ACEOF
  11022. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11023. _ACEOF
  11024. fi
  11025. for ac_func in vprintf
  11026. do
  11027. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11028. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11029. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11030. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11031. echo $ECHO_N "(cached) $ECHO_C" >&6
  11032. else
  11033. cat >conftest.$ac_ext <<_ACEOF
  11034. /* confdefs.h. */
  11035. _ACEOF
  11036. cat confdefs.h >>conftest.$ac_ext
  11037. cat >>conftest.$ac_ext <<_ACEOF
  11038. /* end confdefs.h. */
  11039. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11040. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11041. #define $ac_func innocuous_$ac_func
  11042. /* System header to define __stub macros and hopefully few prototypes,
  11043. which can conflict with char $ac_func (); below.
  11044. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11045. <limits.h> exists even on freestanding compilers. */
  11046. #ifdef __STDC__
  11047. # include <limits.h>
  11048. #else
  11049. # include <assert.h>
  11050. #endif
  11051. #undef $ac_func
  11052. /* Override any GCC internal prototype to avoid an error.
  11053. Use char because int might match the return type of a GCC
  11054. builtin and then its argument prototype would still apply. */
  11055. #ifdef __cplusplus
  11056. extern "C"
  11057. #endif
  11058. char $ac_func ();
  11059. /* The GNU C library defines this for functions which it implements
  11060. to always fail with ENOSYS. Some functions are actually named
  11061. something starting with __ and the normal name is an alias. */
  11062. #if defined __stub_$ac_func || defined __stub___$ac_func
  11063. choke me
  11064. #endif
  11065. int
  11066. main ()
  11067. {
  11068. return $ac_func ();
  11069. ;
  11070. return 0;
  11071. }
  11072. _ACEOF
  11073. rm -f conftest.$ac_objext conftest$ac_exeext
  11074. if { (ac_try="$ac_link"
  11075. case "(($ac_try" in
  11076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11077. *) ac_try_echo=$ac_try;;
  11078. esac
  11079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11080. (eval "$ac_link") 2>conftest.er1
  11081. ac_status=$?
  11082. grep -v '^ *+' conftest.er1 >conftest.err
  11083. rm -f conftest.er1
  11084. cat conftest.err >&5
  11085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11086. (exit $ac_status); } && {
  11087. test -z "$ac_c_werror_flag" ||
  11088. test ! -s conftest.err
  11089. } && test -s conftest$ac_exeext &&
  11090. $as_test_x conftest$ac_exeext; then
  11091. eval "$as_ac_var=yes"
  11092. else
  11093. echo "$as_me: failed program was:" >&5
  11094. sed 's/^/| /' conftest.$ac_ext >&5
  11095. eval "$as_ac_var=no"
  11096. fi
  11097. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11098. conftest$ac_exeext conftest.$ac_ext
  11099. fi
  11100. ac_res=`eval echo '${'$as_ac_var'}'`
  11101. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11102. echo "${ECHO_T}$ac_res" >&6; }
  11103. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11104. cat >>confdefs.h <<_ACEOF
  11105. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11106. _ACEOF
  11107. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  11108. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  11109. if test "${ac_cv_func__doprnt+set}" = set; then
  11110. echo $ECHO_N "(cached) $ECHO_C" >&6
  11111. else
  11112. cat >conftest.$ac_ext <<_ACEOF
  11113. /* confdefs.h. */
  11114. _ACEOF
  11115. cat confdefs.h >>conftest.$ac_ext
  11116. cat >>conftest.$ac_ext <<_ACEOF
  11117. /* end confdefs.h. */
  11118. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  11119. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11120. #define _doprnt innocuous__doprnt
  11121. /* System header to define __stub macros and hopefully few prototypes,
  11122. which can conflict with char _doprnt (); below.
  11123. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11124. <limits.h> exists even on freestanding compilers. */
  11125. #ifdef __STDC__
  11126. # include <limits.h>
  11127. #else
  11128. # include <assert.h>
  11129. #endif
  11130. #undef _doprnt
  11131. /* Override any GCC internal prototype to avoid an error.
  11132. Use char because int might match the return type of a GCC
  11133. builtin and then its argument prototype would still apply. */
  11134. #ifdef __cplusplus
  11135. extern "C"
  11136. #endif
  11137. char _doprnt ();
  11138. /* The GNU C library defines this for functions which it implements
  11139. to always fail with ENOSYS. Some functions are actually named
  11140. something starting with __ and the normal name is an alias. */
  11141. #if defined __stub__doprnt || defined __stub____doprnt
  11142. choke me
  11143. #endif
  11144. int
  11145. main ()
  11146. {
  11147. return _doprnt ();
  11148. ;
  11149. return 0;
  11150. }
  11151. _ACEOF
  11152. rm -f conftest.$ac_objext conftest$ac_exeext
  11153. if { (ac_try="$ac_link"
  11154. case "(($ac_try" in
  11155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11156. *) ac_try_echo=$ac_try;;
  11157. esac
  11158. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11159. (eval "$ac_link") 2>conftest.er1
  11160. ac_status=$?
  11161. grep -v '^ *+' conftest.er1 >conftest.err
  11162. rm -f conftest.er1
  11163. cat conftest.err >&5
  11164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11165. (exit $ac_status); } && {
  11166. test -z "$ac_c_werror_flag" ||
  11167. test ! -s conftest.err
  11168. } && test -s conftest$ac_exeext &&
  11169. $as_test_x conftest$ac_exeext; then
  11170. ac_cv_func__doprnt=yes
  11171. else
  11172. echo "$as_me: failed program was:" >&5
  11173. sed 's/^/| /' conftest.$ac_ext >&5
  11174. ac_cv_func__doprnt=no
  11175. fi
  11176. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11177. conftest$ac_exeext conftest.$ac_ext
  11178. fi
  11179. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  11180. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  11181. if test $ac_cv_func__doprnt = yes; then
  11182. cat >>confdefs.h <<\_ACEOF
  11183. #define HAVE_DOPRNT 1
  11184. _ACEOF
  11185. fi
  11186. fi
  11187. done
  11188. for ac_func in __argz_count __argz_next __argz_stringify daemon ftruncate getcwd getpagesize inet_ntoa memchr mempcpy memset mkdir munmap nl_langinfo random rmdir select setlocale sigaction sleep socket srandom stpcpy strcasecmp strchr strcspn strdup strerror strstr strtol strtoul unsetenv usleep
  11189. do
  11190. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11191. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11192. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11193. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11194. echo $ECHO_N "(cached) $ECHO_C" >&6
  11195. else
  11196. cat >conftest.$ac_ext <<_ACEOF
  11197. /* confdefs.h. */
  11198. _ACEOF
  11199. cat confdefs.h >>conftest.$ac_ext
  11200. cat >>conftest.$ac_ext <<_ACEOF
  11201. /* end confdefs.h. */
  11202. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11203. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11204. #define $ac_func innocuous_$ac_func
  11205. /* System header to define __stub macros and hopefully few prototypes,
  11206. which can conflict with char $ac_func (); below.
  11207. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11208. <limits.h> exists even on freestanding compilers. */
  11209. #ifdef __STDC__
  11210. # include <limits.h>
  11211. #else
  11212. # include <assert.h>
  11213. #endif
  11214. #undef $ac_func
  11215. /* Override any GCC internal prototype to avoid an error.
  11216. Use char because int might match the return type of a GCC
  11217. builtin and then its argument prototype would still apply. */
  11218. #ifdef __cplusplus
  11219. extern "C"
  11220. #endif
  11221. char $ac_func ();
  11222. /* The GNU C library defines this for functions which it implements
  11223. to always fail with ENOSYS. Some functions are actually named
  11224. something starting with __ and the normal name is an alias. */
  11225. #if defined __stub_$ac_func || defined __stub___$ac_func
  11226. choke me
  11227. #endif
  11228. int
  11229. main ()
  11230. {
  11231. return $ac_func ();
  11232. ;
  11233. return 0;
  11234. }
  11235. _ACEOF
  11236. rm -f conftest.$ac_objext conftest$ac_exeext
  11237. if { (ac_try="$ac_link"
  11238. case "(($ac_try" in
  11239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11240. *) ac_try_echo=$ac_try;;
  11241. esac
  11242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11243. (eval "$ac_link") 2>conftest.er1
  11244. ac_status=$?
  11245. grep -v '^ *+' conftest.er1 >conftest.err
  11246. rm -f conftest.er1
  11247. cat conftest.err >&5
  11248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11249. (exit $ac_status); } && {
  11250. test -z "$ac_c_werror_flag" ||
  11251. test ! -s conftest.err
  11252. } && test -s conftest$ac_exeext &&
  11253. $as_test_x conftest$ac_exeext; then
  11254. eval "$as_ac_var=yes"
  11255. else
  11256. echo "$as_me: failed program was:" >&5
  11257. sed 's/^/| /' conftest.$ac_ext >&5
  11258. eval "$as_ac_var=no"
  11259. fi
  11260. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11261. conftest$ac_exeext conftest.$ac_ext
  11262. fi
  11263. ac_res=`eval echo '${'$as_ac_var'}'`
  11264. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11265. echo "${ECHO_T}$ac_res" >&6; }
  11266. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11267. cat >>confdefs.h <<_ACEOF
  11268. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11269. _ACEOF
  11270. fi
  11271. done
  11272. for ac_func in basename
  11273. do
  11274. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11275. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11276. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11277. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11278. echo $ECHO_N "(cached) $ECHO_C" >&6
  11279. else
  11280. cat >conftest.$ac_ext <<_ACEOF
  11281. /* confdefs.h. */
  11282. _ACEOF
  11283. cat confdefs.h >>conftest.$ac_ext
  11284. cat >>conftest.$ac_ext <<_ACEOF
  11285. /* end confdefs.h. */
  11286. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11287. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11288. #define $ac_func innocuous_$ac_func
  11289. /* System header to define __stub macros and hopefully few prototypes,
  11290. which can conflict with char $ac_func (); below.
  11291. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11292. <limits.h> exists even on freestanding compilers. */
  11293. #ifdef __STDC__
  11294. # include <limits.h>
  11295. #else
  11296. # include <assert.h>
  11297. #endif
  11298. #undef $ac_func
  11299. /* Override any GCC internal prototype to avoid an error.
  11300. Use char because int might match the return type of a GCC
  11301. builtin and then its argument prototype would still apply. */
  11302. #ifdef __cplusplus
  11303. extern "C"
  11304. #endif
  11305. char $ac_func ();
  11306. /* The GNU C library defines this for functions which it implements
  11307. to always fail with ENOSYS. Some functions are actually named
  11308. something starting with __ and the normal name is an alias. */
  11309. #if defined __stub_$ac_func || defined __stub___$ac_func
  11310. choke me
  11311. #endif
  11312. int
  11313. main ()
  11314. {
  11315. return $ac_func ();
  11316. ;
  11317. return 0;
  11318. }
  11319. _ACEOF
  11320. rm -f conftest.$ac_objext conftest$ac_exeext
  11321. if { (ac_try="$ac_link"
  11322. case "(($ac_try" in
  11323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11324. *) ac_try_echo=$ac_try;;
  11325. esac
  11326. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11327. (eval "$ac_link") 2>conftest.er1
  11328. ac_status=$?
  11329. grep -v '^ *+' conftest.er1 >conftest.err
  11330. rm -f conftest.er1
  11331. cat conftest.err >&5
  11332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11333. (exit $ac_status); } && {
  11334. test -z "$ac_c_werror_flag" ||
  11335. test ! -s conftest.err
  11336. } && test -s conftest$ac_exeext &&
  11337. $as_test_x conftest$ac_exeext; then
  11338. eval "$as_ac_var=yes"
  11339. else
  11340. echo "$as_me: failed program was:" >&5
  11341. sed 's/^/| /' conftest.$ac_ext >&5
  11342. eval "$as_ac_var=no"
  11343. fi
  11344. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11345. conftest$ac_exeext conftest.$ac_ext
  11346. fi
  11347. ac_res=`eval echo '${'$as_ac_var'}'`
  11348. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11349. echo "${ECHO_T}$ac_res" >&6; }
  11350. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11351. cat >>confdefs.h <<_ACEOF
  11352. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11353. _ACEOF
  11354. if true; then
  11355. HAVE_BASENAME_TRUE=
  11356. HAVE_BASENAME_FALSE='#'
  11357. else
  11358. HAVE_BASENAME_TRUE='#'
  11359. HAVE_BASENAME_FALSE=
  11360. fi
  11361. else
  11362. if false; then
  11363. HAVE_BASENAME_TRUE=
  11364. HAVE_BASENAME_FALSE='#'
  11365. else
  11366. HAVE_BASENAME_TRUE='#'
  11367. HAVE_BASENAME_FALSE=
  11368. fi
  11369. fi
  11370. done
  11371. for ac_func in gai_strerror
  11372. do
  11373. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11374. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11375. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11376. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11377. echo $ECHO_N "(cached) $ECHO_C" >&6
  11378. else
  11379. cat >conftest.$ac_ext <<_ACEOF
  11380. /* confdefs.h. */
  11381. _ACEOF
  11382. cat confdefs.h >>conftest.$ac_ext
  11383. cat >>conftest.$ac_ext <<_ACEOF
  11384. /* end confdefs.h. */
  11385. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11386. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11387. #define $ac_func innocuous_$ac_func
  11388. /* System header to define __stub macros and hopefully few prototypes,
  11389. which can conflict with char $ac_func (); below.
  11390. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11391. <limits.h> exists even on freestanding compilers. */
  11392. #ifdef __STDC__
  11393. # include <limits.h>
  11394. #else
  11395. # include <assert.h>
  11396. #endif
  11397. #undef $ac_func
  11398. /* Override any GCC internal prototype to avoid an error.
  11399. Use char because int might match the return type of a GCC
  11400. builtin and then its argument prototype would still apply. */
  11401. #ifdef __cplusplus
  11402. extern "C"
  11403. #endif
  11404. char $ac_func ();
  11405. /* The GNU C library defines this for functions which it implements
  11406. to always fail with ENOSYS. Some functions are actually named
  11407. something starting with __ and the normal name is an alias. */
  11408. #if defined __stub_$ac_func || defined __stub___$ac_func
  11409. choke me
  11410. #endif
  11411. int
  11412. main ()
  11413. {
  11414. return $ac_func ();
  11415. ;
  11416. return 0;
  11417. }
  11418. _ACEOF
  11419. rm -f conftest.$ac_objext conftest$ac_exeext
  11420. if { (ac_try="$ac_link"
  11421. case "(($ac_try" in
  11422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11423. *) ac_try_echo=$ac_try;;
  11424. esac
  11425. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11426. (eval "$ac_link") 2>conftest.er1
  11427. ac_status=$?
  11428. grep -v '^ *+' conftest.er1 >conftest.err
  11429. rm -f conftest.er1
  11430. cat conftest.err >&5
  11431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11432. (exit $ac_status); } && {
  11433. test -z "$ac_c_werror_flag" ||
  11434. test ! -s conftest.err
  11435. } && test -s conftest$ac_exeext &&
  11436. $as_test_x conftest$ac_exeext; then
  11437. eval "$as_ac_var=yes"
  11438. else
  11439. echo "$as_me: failed program was:" >&5
  11440. sed 's/^/| /' conftest.$ac_ext >&5
  11441. eval "$as_ac_var=no"
  11442. fi
  11443. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11444. conftest$ac_exeext conftest.$ac_ext
  11445. fi
  11446. ac_res=`eval echo '${'$as_ac_var'}'`
  11447. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11448. echo "${ECHO_T}$ac_res" >&6; }
  11449. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11450. cat >>confdefs.h <<_ACEOF
  11451. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11452. _ACEOF
  11453. if true; then
  11454. HAVE_GAI_STRERROR_TRUE=
  11455. HAVE_GAI_STRERROR_FALSE='#'
  11456. else
  11457. HAVE_GAI_STRERROR_TRUE='#'
  11458. HAVE_GAI_STRERROR_FALSE=
  11459. fi
  11460. else
  11461. if false; then
  11462. HAVE_GAI_STRERROR_TRUE=
  11463. HAVE_GAI_STRERROR_FALSE='#'
  11464. else
  11465. HAVE_GAI_STRERROR_TRUE='#'
  11466. HAVE_GAI_STRERROR_FALSE=
  11467. fi
  11468. fi
  11469. done
  11470. for ac_func in getaddrinfo
  11471. do
  11472. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11473. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11474. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11475. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11476. echo $ECHO_N "(cached) $ECHO_C" >&6
  11477. else
  11478. cat >conftest.$ac_ext <<_ACEOF
  11479. /* confdefs.h. */
  11480. _ACEOF
  11481. cat confdefs.h >>conftest.$ac_ext
  11482. cat >>conftest.$ac_ext <<_ACEOF
  11483. /* end confdefs.h. */
  11484. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11485. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11486. #define $ac_func innocuous_$ac_func
  11487. /* System header to define __stub macros and hopefully few prototypes,
  11488. which can conflict with char $ac_func (); below.
  11489. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11490. <limits.h> exists even on freestanding compilers. */
  11491. #ifdef __STDC__
  11492. # include <limits.h>
  11493. #else
  11494. # include <assert.h>
  11495. #endif
  11496. #undef $ac_func
  11497. /* Override any GCC internal prototype to avoid an error.
  11498. Use char because int might match the return type of a GCC
  11499. builtin and then its argument prototype would still apply. */
  11500. #ifdef __cplusplus
  11501. extern "C"
  11502. #endif
  11503. char $ac_func ();
  11504. /* The GNU C library defines this for functions which it implements
  11505. to always fail with ENOSYS. Some functions are actually named
  11506. something starting with __ and the normal name is an alias. */
  11507. #if defined __stub_$ac_func || defined __stub___$ac_func
  11508. choke me
  11509. #endif
  11510. int
  11511. main ()
  11512. {
  11513. return $ac_func ();
  11514. ;
  11515. return 0;
  11516. }
  11517. _ACEOF
  11518. rm -f conftest.$ac_objext conftest$ac_exeext
  11519. if { (ac_try="$ac_link"
  11520. case "(($ac_try" in
  11521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11522. *) ac_try_echo=$ac_try;;
  11523. esac
  11524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11525. (eval "$ac_link") 2>conftest.er1
  11526. ac_status=$?
  11527. grep -v '^ *+' conftest.er1 >conftest.err
  11528. rm -f conftest.er1
  11529. cat conftest.err >&5
  11530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11531. (exit $ac_status); } && {
  11532. test -z "$ac_c_werror_flag" ||
  11533. test ! -s conftest.err
  11534. } && test -s conftest$ac_exeext &&
  11535. $as_test_x conftest$ac_exeext; then
  11536. eval "$as_ac_var=yes"
  11537. else
  11538. echo "$as_me: failed program was:" >&5
  11539. sed 's/^/| /' conftest.$ac_ext >&5
  11540. eval "$as_ac_var=no"
  11541. fi
  11542. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11543. conftest$ac_exeext conftest.$ac_ext
  11544. fi
  11545. ac_res=`eval echo '${'$as_ac_var'}'`
  11546. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11547. echo "${ECHO_T}$ac_res" >&6; }
  11548. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11549. cat >>confdefs.h <<_ACEOF
  11550. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11551. _ACEOF
  11552. if true; then
  11553. HAVE_GETADDRINFO_TRUE=
  11554. HAVE_GETADDRINFO_FALSE='#'
  11555. else
  11556. HAVE_GETADDRINFO_TRUE='#'
  11557. HAVE_GETADDRINFO_FALSE=
  11558. fi
  11559. else
  11560. if false; then
  11561. HAVE_GETADDRINFO_TRUE=
  11562. HAVE_GETADDRINFO_FALSE='#'
  11563. else
  11564. HAVE_GETADDRINFO_TRUE='#'
  11565. HAVE_GETADDRINFO_FALSE=
  11566. fi
  11567. fi
  11568. done
  11569. for ac_func in gettimeofday
  11570. do
  11571. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11572. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11573. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11574. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11575. echo $ECHO_N "(cached) $ECHO_C" >&6
  11576. else
  11577. cat >conftest.$ac_ext <<_ACEOF
  11578. /* confdefs.h. */
  11579. _ACEOF
  11580. cat confdefs.h >>conftest.$ac_ext
  11581. cat >>conftest.$ac_ext <<_ACEOF
  11582. /* end confdefs.h. */
  11583. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11584. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11585. #define $ac_func innocuous_$ac_func
  11586. /* System header to define __stub macros and hopefully few prototypes,
  11587. which can conflict with char $ac_func (); below.
  11588. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11589. <limits.h> exists even on freestanding compilers. */
  11590. #ifdef __STDC__
  11591. # include <limits.h>
  11592. #else
  11593. # include <assert.h>
  11594. #endif
  11595. #undef $ac_func
  11596. /* Override any GCC internal prototype to avoid an error.
  11597. Use char because int might match the return type of a GCC
  11598. builtin and then its argument prototype would still apply. */
  11599. #ifdef __cplusplus
  11600. extern "C"
  11601. #endif
  11602. char $ac_func ();
  11603. /* The GNU C library defines this for functions which it implements
  11604. to always fail with ENOSYS. Some functions are actually named
  11605. something starting with __ and the normal name is an alias. */
  11606. #if defined __stub_$ac_func || defined __stub___$ac_func
  11607. choke me
  11608. #endif
  11609. int
  11610. main ()
  11611. {
  11612. return $ac_func ();
  11613. ;
  11614. return 0;
  11615. }
  11616. _ACEOF
  11617. rm -f conftest.$ac_objext conftest$ac_exeext
  11618. if { (ac_try="$ac_link"
  11619. case "(($ac_try" in
  11620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11621. *) ac_try_echo=$ac_try;;
  11622. esac
  11623. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11624. (eval "$ac_link") 2>conftest.er1
  11625. ac_status=$?
  11626. grep -v '^ *+' conftest.er1 >conftest.err
  11627. rm -f conftest.er1
  11628. cat conftest.err >&5
  11629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11630. (exit $ac_status); } && {
  11631. test -z "$ac_c_werror_flag" ||
  11632. test ! -s conftest.err
  11633. } && test -s conftest$ac_exeext &&
  11634. $as_test_x conftest$ac_exeext; then
  11635. eval "$as_ac_var=yes"
  11636. else
  11637. echo "$as_me: failed program was:" >&5
  11638. sed 's/^/| /' conftest.$ac_ext >&5
  11639. eval "$as_ac_var=no"
  11640. fi
  11641. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11642. conftest$ac_exeext conftest.$ac_ext
  11643. fi
  11644. ac_res=`eval echo '${'$as_ac_var'}'`
  11645. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11646. echo "${ECHO_T}$ac_res" >&6; }
  11647. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11648. cat >>confdefs.h <<_ACEOF
  11649. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11650. _ACEOF
  11651. if true; then
  11652. HAVE_GETTIMEOFDAY_TRUE=
  11653. HAVE_GETTIMEOFDAY_FALSE='#'
  11654. else
  11655. HAVE_GETTIMEOFDAY_TRUE='#'
  11656. HAVE_GETTIMEOFDAY_FALSE=
  11657. fi
  11658. else
  11659. if false; then
  11660. HAVE_GETTIMEOFDAY_TRUE=
  11661. HAVE_GETTIMEOFDAY_FALSE='#'
  11662. else
  11663. HAVE_GETTIMEOFDAY_TRUE='#'
  11664. HAVE_GETTIMEOFDAY_FALSE=
  11665. fi
  11666. fi
  11667. done
  11668. for ac_func in inet_aton
  11669. do
  11670. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11671. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11672. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11673. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11674. echo $ECHO_N "(cached) $ECHO_C" >&6
  11675. else
  11676. cat >conftest.$ac_ext <<_ACEOF
  11677. /* confdefs.h. */
  11678. _ACEOF
  11679. cat confdefs.h >>conftest.$ac_ext
  11680. cat >>conftest.$ac_ext <<_ACEOF
  11681. /* end confdefs.h. */
  11682. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11683. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11684. #define $ac_func innocuous_$ac_func
  11685. /* System header to define __stub macros and hopefully few prototypes,
  11686. which can conflict with char $ac_func (); below.
  11687. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11688. <limits.h> exists even on freestanding compilers. */
  11689. #ifdef __STDC__
  11690. # include <limits.h>
  11691. #else
  11692. # include <assert.h>
  11693. #endif
  11694. #undef $ac_func
  11695. /* Override any GCC internal prototype to avoid an error.
  11696. Use char because int might match the return type of a GCC
  11697. builtin and then its argument prototype would still apply. */
  11698. #ifdef __cplusplus
  11699. extern "C"
  11700. #endif
  11701. char $ac_func ();
  11702. /* The GNU C library defines this for functions which it implements
  11703. to always fail with ENOSYS. Some functions are actually named
  11704. something starting with __ and the normal name is an alias. */
  11705. #if defined __stub_$ac_func || defined __stub___$ac_func
  11706. choke me
  11707. #endif
  11708. int
  11709. main ()
  11710. {
  11711. return $ac_func ();
  11712. ;
  11713. return 0;
  11714. }
  11715. _ACEOF
  11716. rm -f conftest.$ac_objext conftest$ac_exeext
  11717. if { (ac_try="$ac_link"
  11718. case "(($ac_try" in
  11719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11720. *) ac_try_echo=$ac_try;;
  11721. esac
  11722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11723. (eval "$ac_link") 2>conftest.er1
  11724. ac_status=$?
  11725. grep -v '^ *+' conftest.er1 >conftest.err
  11726. rm -f conftest.er1
  11727. cat conftest.err >&5
  11728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11729. (exit $ac_status); } && {
  11730. test -z "$ac_c_werror_flag" ||
  11731. test ! -s conftest.err
  11732. } && test -s conftest$ac_exeext &&
  11733. $as_test_x conftest$ac_exeext; then
  11734. eval "$as_ac_var=yes"
  11735. else
  11736. echo "$as_me: failed program was:" >&5
  11737. sed 's/^/| /' conftest.$ac_ext >&5
  11738. eval "$as_ac_var=no"
  11739. fi
  11740. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11741. conftest$ac_exeext conftest.$ac_ext
  11742. fi
  11743. ac_res=`eval echo '${'$as_ac_var'}'`
  11744. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11745. echo "${ECHO_T}$ac_res" >&6; }
  11746. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11747. cat >>confdefs.h <<_ACEOF
  11748. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11749. _ACEOF
  11750. if true; then
  11751. HAVE_INET_ATON_TRUE=
  11752. HAVE_INET_ATON_FALSE='#'
  11753. else
  11754. HAVE_INET_ATON_TRUE='#'
  11755. HAVE_INET_ATON_FALSE=
  11756. fi
  11757. else
  11758. if false; then
  11759. HAVE_INET_ATON_TRUE=
  11760. HAVE_INET_ATON_FALSE='#'
  11761. else
  11762. HAVE_INET_ATON_TRUE='#'
  11763. HAVE_INET_ATON_FALSE=
  11764. fi
  11765. fi
  11766. done
  11767. for ac_func in localtime_r
  11768. do
  11769. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11770. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11771. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11772. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11773. echo $ECHO_N "(cached) $ECHO_C" >&6
  11774. else
  11775. cat >conftest.$ac_ext <<_ACEOF
  11776. /* confdefs.h. */
  11777. _ACEOF
  11778. cat confdefs.h >>conftest.$ac_ext
  11779. cat >>conftest.$ac_ext <<_ACEOF
  11780. /* end confdefs.h. */
  11781. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11782. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11783. #define $ac_func innocuous_$ac_func
  11784. /* System header to define __stub macros and hopefully few prototypes,
  11785. which can conflict with char $ac_func (); below.
  11786. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11787. <limits.h> exists even on freestanding compilers. */
  11788. #ifdef __STDC__
  11789. # include <limits.h>
  11790. #else
  11791. # include <assert.h>
  11792. #endif
  11793. #undef $ac_func
  11794. /* Override any GCC internal prototype to avoid an error.
  11795. Use char because int might match the return type of a GCC
  11796. builtin and then its argument prototype would still apply. */
  11797. #ifdef __cplusplus
  11798. extern "C"
  11799. #endif
  11800. char $ac_func ();
  11801. /* The GNU C library defines this for functions which it implements
  11802. to always fail with ENOSYS. Some functions are actually named
  11803. something starting with __ and the normal name is an alias. */
  11804. #if defined __stub_$ac_func || defined __stub___$ac_func
  11805. choke me
  11806. #endif
  11807. int
  11808. main ()
  11809. {
  11810. return $ac_func ();
  11811. ;
  11812. return 0;
  11813. }
  11814. _ACEOF
  11815. rm -f conftest.$ac_objext conftest$ac_exeext
  11816. if { (ac_try="$ac_link"
  11817. case "(($ac_try" in
  11818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11819. *) ac_try_echo=$ac_try;;
  11820. esac
  11821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11822. (eval "$ac_link") 2>conftest.er1
  11823. ac_status=$?
  11824. grep -v '^ *+' conftest.er1 >conftest.err
  11825. rm -f conftest.er1
  11826. cat conftest.err >&5
  11827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11828. (exit $ac_status); } && {
  11829. test -z "$ac_c_werror_flag" ||
  11830. test ! -s conftest.err
  11831. } && test -s conftest$ac_exeext &&
  11832. $as_test_x conftest$ac_exeext; then
  11833. eval "$as_ac_var=yes"
  11834. else
  11835. echo "$as_me: failed program was:" >&5
  11836. sed 's/^/| /' conftest.$ac_ext >&5
  11837. eval "$as_ac_var=no"
  11838. fi
  11839. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11840. conftest$ac_exeext conftest.$ac_ext
  11841. fi
  11842. ac_res=`eval echo '${'$as_ac_var'}'`
  11843. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11844. echo "${ECHO_T}$ac_res" >&6; }
  11845. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11846. cat >>confdefs.h <<_ACEOF
  11847. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11848. _ACEOF
  11849. if true; then
  11850. HAVE_LOCALTIME_R_TRUE=
  11851. HAVE_LOCALTIME_R_FALSE='#'
  11852. else
  11853. HAVE_LOCALTIME_R_TRUE='#'
  11854. HAVE_LOCALTIME_R_FALSE=
  11855. fi
  11856. else
  11857. if false; then
  11858. HAVE_LOCALTIME_R_TRUE=
  11859. HAVE_LOCALTIME_R_FALSE='#'
  11860. else
  11861. HAVE_LOCALTIME_R_TRUE='#'
  11862. HAVE_LOCALTIME_R_FALSE=
  11863. fi
  11864. fi
  11865. done
  11866. for ac_func in strptime
  11867. do
  11868. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11869. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11870. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11871. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11872. echo $ECHO_N "(cached) $ECHO_C" >&6
  11873. else
  11874. cat >conftest.$ac_ext <<_ACEOF
  11875. /* confdefs.h. */
  11876. _ACEOF
  11877. cat confdefs.h >>conftest.$ac_ext
  11878. cat >>conftest.$ac_ext <<_ACEOF
  11879. /* end confdefs.h. */
  11880. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11881. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11882. #define $ac_func innocuous_$ac_func
  11883. /* System header to define __stub macros and hopefully few prototypes,
  11884. which can conflict with char $ac_func (); below.
  11885. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11886. <limits.h> exists even on freestanding compilers. */
  11887. #ifdef __STDC__
  11888. # include <limits.h>
  11889. #else
  11890. # include <assert.h>
  11891. #endif
  11892. #undef $ac_func
  11893. /* Override any GCC internal prototype to avoid an error.
  11894. Use char because int might match the return type of a GCC
  11895. builtin and then its argument prototype would still apply. */
  11896. #ifdef __cplusplus
  11897. extern "C"
  11898. #endif
  11899. char $ac_func ();
  11900. /* The GNU C library defines this for functions which it implements
  11901. to always fail with ENOSYS. Some functions are actually named
  11902. something starting with __ and the normal name is an alias. */
  11903. #if defined __stub_$ac_func || defined __stub___$ac_func
  11904. choke me
  11905. #endif
  11906. int
  11907. main ()
  11908. {
  11909. return $ac_func ();
  11910. ;
  11911. return 0;
  11912. }
  11913. _ACEOF
  11914. rm -f conftest.$ac_objext conftest$ac_exeext
  11915. if { (ac_try="$ac_link"
  11916. case "(($ac_try" in
  11917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11918. *) ac_try_echo=$ac_try;;
  11919. esac
  11920. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11921. (eval "$ac_link") 2>conftest.er1
  11922. ac_status=$?
  11923. grep -v '^ *+' conftest.er1 >conftest.err
  11924. rm -f conftest.er1
  11925. cat conftest.err >&5
  11926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11927. (exit $ac_status); } && {
  11928. test -z "$ac_c_werror_flag" ||
  11929. test ! -s conftest.err
  11930. } && test -s conftest$ac_exeext &&
  11931. $as_test_x conftest$ac_exeext; then
  11932. eval "$as_ac_var=yes"
  11933. else
  11934. echo "$as_me: failed program was:" >&5
  11935. sed 's/^/| /' conftest.$ac_ext >&5
  11936. eval "$as_ac_var=no"
  11937. fi
  11938. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11939. conftest$ac_exeext conftest.$ac_ext
  11940. fi
  11941. ac_res=`eval echo '${'$as_ac_var'}'`
  11942. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11943. echo "${ECHO_T}$ac_res" >&6; }
  11944. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11945. cat >>confdefs.h <<_ACEOF
  11946. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11947. _ACEOF
  11948. if true; then
  11949. HAVE_STRPTIME_TRUE=
  11950. HAVE_STRPTIME_FALSE='#'
  11951. else
  11952. HAVE_STRPTIME_TRUE='#'
  11953. HAVE_STRPTIME_FALSE=
  11954. fi
  11955. else
  11956. if false; then
  11957. HAVE_STRPTIME_TRUE=
  11958. HAVE_STRPTIME_FALSE='#'
  11959. else
  11960. HAVE_STRPTIME_TRUE='#'
  11961. HAVE_STRPTIME_FALSE=
  11962. fi
  11963. fi
  11964. done
  11965. for ac_func in timegm
  11966. do
  11967. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11968. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11969. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11970. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11971. echo $ECHO_N "(cached) $ECHO_C" >&6
  11972. else
  11973. cat >conftest.$ac_ext <<_ACEOF
  11974. /* confdefs.h. */
  11975. _ACEOF
  11976. cat confdefs.h >>conftest.$ac_ext
  11977. cat >>conftest.$ac_ext <<_ACEOF
  11978. /* end confdefs.h. */
  11979. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11980. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11981. #define $ac_func innocuous_$ac_func
  11982. /* System header to define __stub macros and hopefully few prototypes,
  11983. which can conflict with char $ac_func (); below.
  11984. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11985. <limits.h> exists even on freestanding compilers. */
  11986. #ifdef __STDC__
  11987. # include <limits.h>
  11988. #else
  11989. # include <assert.h>
  11990. #endif
  11991. #undef $ac_func
  11992. /* Override any GCC internal prototype to avoid an error.
  11993. Use char because int might match the return type of a GCC
  11994. builtin and then its argument prototype would still apply. */
  11995. #ifdef __cplusplus
  11996. extern "C"
  11997. #endif
  11998. char $ac_func ();
  11999. /* The GNU C library defines this for functions which it implements
  12000. to always fail with ENOSYS. Some functions are actually named
  12001. something starting with __ and the normal name is an alias. */
  12002. #if defined __stub_$ac_func || defined __stub___$ac_func
  12003. choke me
  12004. #endif
  12005. int
  12006. main ()
  12007. {
  12008. return $ac_func ();
  12009. ;
  12010. return 0;
  12011. }
  12012. _ACEOF
  12013. rm -f conftest.$ac_objext conftest$ac_exeext
  12014. if { (ac_try="$ac_link"
  12015. case "(($ac_try" in
  12016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12017. *) ac_try_echo=$ac_try;;
  12018. esac
  12019. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12020. (eval "$ac_link") 2>conftest.er1
  12021. ac_status=$?
  12022. grep -v '^ *+' conftest.er1 >conftest.err
  12023. rm -f conftest.er1
  12024. cat conftest.err >&5
  12025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12026. (exit $ac_status); } && {
  12027. test -z "$ac_c_werror_flag" ||
  12028. test ! -s conftest.err
  12029. } && test -s conftest$ac_exeext &&
  12030. $as_test_x conftest$ac_exeext; then
  12031. eval "$as_ac_var=yes"
  12032. else
  12033. echo "$as_me: failed program was:" >&5
  12034. sed 's/^/| /' conftest.$ac_ext >&5
  12035. eval "$as_ac_var=no"
  12036. fi
  12037. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12038. conftest$ac_exeext conftest.$ac_ext
  12039. fi
  12040. ac_res=`eval echo '${'$as_ac_var'}'`
  12041. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12042. echo "${ECHO_T}$ac_res" >&6; }
  12043. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12044. cat >>confdefs.h <<_ACEOF
  12045. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12046. _ACEOF
  12047. if true; then
  12048. HAVE_TIMEGM_TRUE=
  12049. HAVE_TIMEGM_FALSE='#'
  12050. else
  12051. HAVE_TIMEGM_TRUE='#'
  12052. HAVE_TIMEGM_FALSE=
  12053. fi
  12054. else
  12055. if false; then
  12056. HAVE_TIMEGM_TRUE=
  12057. HAVE_TIMEGM_FALSE='#'
  12058. else
  12059. HAVE_TIMEGM_TRUE='#'
  12060. HAVE_TIMEGM_FALSE=
  12061. fi
  12062. fi
  12063. done
  12064. case "$target" in
  12065. *mingw*)
  12066. if true; then
  12067. HAVE_GETADDRINFO_TRUE=
  12068. HAVE_GETADDRINFO_FALSE='#'
  12069. else
  12070. HAVE_GETADDRINFO_TRUE='#'
  12071. HAVE_GETADDRINFO_FALSE=
  12072. fi
  12073. if false; then
  12074. HAVE_GAI_STRERROR_TRUE=
  12075. HAVE_GAI_STRERROR_FALSE='#'
  12076. else
  12077. HAVE_GAI_STRERROR_TRUE='#'
  12078. HAVE_GAI_STRERROR_FALSE=
  12079. fi
  12080. ;;
  12081. esac
  12082. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile doc/Makefile"
  12083. cat >confcache <<\_ACEOF
  12084. # This file is a shell script that caches the results of configure
  12085. # tests run on this system so they can be shared between configure
  12086. # scripts and configure runs, see configure's option --config-cache.
  12087. # It is not useful on other systems. If it contains results you don't
  12088. # want to keep, you may remove or edit it.
  12089. #
  12090. # config.status only pays attention to the cache file if you give it
  12091. # the --recheck option to rerun configure.
  12092. #
  12093. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12094. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12095. # following values.
  12096. _ACEOF
  12097. # The following way of writing the cache mishandles newlines in values,
  12098. # but we know of no workaround that is simple, portable, and efficient.
  12099. # So, we kill variables containing newlines.
  12100. # Ultrix sh set writes to stderr and can't be redirected directly,
  12101. # and sets the high bit in the cache file unless we assign to the vars.
  12102. (
  12103. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12104. eval ac_val=\$$ac_var
  12105. case $ac_val in #(
  12106. *${as_nl}*)
  12107. case $ac_var in #(
  12108. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  12109. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  12110. esac
  12111. case $ac_var in #(
  12112. _ | IFS | as_nl) ;; #(
  12113. *) $as_unset $ac_var ;;
  12114. esac ;;
  12115. esac
  12116. done
  12117. (set) 2>&1 |
  12118. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12119. *${as_nl}ac_space=\ *)
  12120. # `set' does not quote correctly, so add quotes (double-quote
  12121. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12122. sed -n \
  12123. "s/'/'\\\\''/g;
  12124. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12125. ;; #(
  12126. *)
  12127. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12128. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12129. ;;
  12130. esac |
  12131. sort
  12132. ) |
  12133. sed '
  12134. /^ac_cv_env_/b end
  12135. t clear
  12136. :clear
  12137. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12138. t end
  12139. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12140. :end' >>confcache
  12141. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12142. if test -w "$cache_file"; then
  12143. test "x$cache_file" != "x/dev/null" &&
  12144. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12145. echo "$as_me: updating cache $cache_file" >&6;}
  12146. cat confcache >$cache_file
  12147. else
  12148. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12149. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12150. fi
  12151. fi
  12152. rm -f confcache
  12153. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12154. # Let make expand exec_prefix.
  12155. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12156. DEFS=-DHAVE_CONFIG_H
  12157. ac_libobjs=
  12158. ac_ltlibobjs=
  12159. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12160. # 1. Remove the extension, and $U if already installed.
  12161. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12162. ac_i=`echo "$ac_i" | sed "$ac_script"`
  12163. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12164. # will be set to the directory where LIBOBJS objects are built.
  12165. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12166. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12167. done
  12168. LIBOBJS=$ac_libobjs
  12169. LTLIBOBJS=$ac_ltlibobjs
  12170. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12171. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  12172. Usually this means the macro was only invoked conditionally." >&5
  12173. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  12174. Usually this means the macro was only invoked conditionally." >&2;}
  12175. { (exit 1); exit 1; }; }
  12176. fi
  12177. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12178. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  12179. Usually this means the macro was only invoked conditionally." >&5
  12180. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  12181. Usually this means the macro was only invoked conditionally." >&2;}
  12182. { (exit 1); exit 1; }; }
  12183. fi
  12184. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12185. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  12186. Usually this means the macro was only invoked conditionally." >&5
  12187. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  12188. Usually this means the macro was only invoked conditionally." >&2;}
  12189. { (exit 1); exit 1; }; }
  12190. fi
  12191. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  12192. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12193. Usually this means the macro was only invoked conditionally." >&5
  12194. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12195. Usually this means the macro was only invoked conditionally." >&2;}
  12196. { (exit 1); exit 1; }; }
  12197. fi
  12198. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  12199. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12200. Usually this means the macro was only invoked conditionally." >&5
  12201. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12202. Usually this means the macro was only invoked conditionally." >&2;}
  12203. { (exit 1); exit 1; }; }
  12204. fi
  12205. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12206. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12207. Usually this means the macro was only invoked conditionally." >&5
  12208. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12209. Usually this means the macro was only invoked conditionally." >&2;}
  12210. { (exit 1); exit 1; }; }
  12211. fi
  12212. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12213. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12214. Usually this means the macro was only invoked conditionally." >&5
  12215. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12216. Usually this means the macro was only invoked conditionally." >&2;}
  12217. { (exit 1); exit 1; }; }
  12218. fi
  12219. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12220. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  12221. Usually this means the macro was only invoked conditionally." >&5
  12222. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  12223. Usually this means the macro was only invoked conditionally." >&2;}
  12224. { (exit 1); exit 1; }; }
  12225. fi
  12226. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12227. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  12228. Usually this means the macro was only invoked conditionally." >&5
  12229. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  12230. Usually this means the macro was only invoked conditionally." >&2;}
  12231. { (exit 1); exit 1; }; }
  12232. fi
  12233. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12234. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12235. Usually this means the macro was only invoked conditionally." >&5
  12236. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12237. Usually this means the macro was only invoked conditionally." >&2;}
  12238. { (exit 1); exit 1; }; }
  12239. fi
  12240. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12241. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12242. Usually this means the macro was only invoked conditionally." >&5
  12243. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12244. Usually this means the macro was only invoked conditionally." >&2;}
  12245. { (exit 1); exit 1; }; }
  12246. fi
  12247. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  12248. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  12249. Usually this means the macro was only invoked conditionally." >&5
  12250. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  12251. Usually this means the macro was only invoked conditionally." >&2;}
  12252. { (exit 1); exit 1; }; }
  12253. fi
  12254. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  12255. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  12256. Usually this means the macro was only invoked conditionally." >&5
  12257. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  12258. Usually this means the macro was only invoked conditionally." >&2;}
  12259. { (exit 1); exit 1; }; }
  12260. fi
  12261. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12262. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12263. Usually this means the macro was only invoked conditionally." >&5
  12264. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12265. Usually this means the macro was only invoked conditionally." >&2;}
  12266. { (exit 1); exit 1; }; }
  12267. fi
  12268. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12269. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12270. Usually this means the macro was only invoked conditionally." >&5
  12271. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12272. Usually this means the macro was only invoked conditionally." >&2;}
  12273. { (exit 1); exit 1; }; }
  12274. fi
  12275. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12276. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12277. Usually this means the macro was only invoked conditionally." >&5
  12278. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12279. Usually this means the macro was only invoked conditionally." >&2;}
  12280. { (exit 1); exit 1; }; }
  12281. fi
  12282. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12283. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12284. Usually this means the macro was only invoked conditionally." >&5
  12285. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12286. Usually this means the macro was only invoked conditionally." >&2;}
  12287. { (exit 1); exit 1; }; }
  12288. fi
  12289. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12290. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12291. Usually this means the macro was only invoked conditionally." >&5
  12292. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12293. Usually this means the macro was only invoked conditionally." >&2;}
  12294. { (exit 1); exit 1; }; }
  12295. fi
  12296. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12297. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12298. Usually this means the macro was only invoked conditionally." >&5
  12299. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12300. Usually this means the macro was only invoked conditionally." >&2;}
  12301. { (exit 1); exit 1; }; }
  12302. fi
  12303. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  12304. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  12305. Usually this means the macro was only invoked conditionally." >&5
  12306. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  12307. Usually this means the macro was only invoked conditionally." >&2;}
  12308. { (exit 1); exit 1; }; }
  12309. fi
  12310. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  12311. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  12312. Usually this means the macro was only invoked conditionally." >&5
  12313. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  12314. Usually this means the macro was only invoked conditionally." >&2;}
  12315. { (exit 1); exit 1; }; }
  12316. fi
  12317. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  12318. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12319. Usually this means the macro was only invoked conditionally." >&5
  12320. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12321. Usually this means the macro was only invoked conditionally." >&2;}
  12322. { (exit 1); exit 1; }; }
  12323. fi
  12324. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  12325. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12326. Usually this means the macro was only invoked conditionally." >&5
  12327. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12328. Usually this means the macro was only invoked conditionally." >&2;}
  12329. { (exit 1); exit 1; }; }
  12330. fi
  12331. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  12332. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  12333. Usually this means the macro was only invoked conditionally." >&5
  12334. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  12335. Usually this means the macro was only invoked conditionally." >&2;}
  12336. { (exit 1); exit 1; }; }
  12337. fi
  12338. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  12339. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  12340. Usually this means the macro was only invoked conditionally." >&5
  12341. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  12342. Usually this means the macro was only invoked conditionally." >&2;}
  12343. { (exit 1); exit 1; }; }
  12344. fi
  12345. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  12346. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  12347. Usually this means the macro was only invoked conditionally." >&5
  12348. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  12349. Usually this means the macro was only invoked conditionally." >&2;}
  12350. { (exit 1); exit 1; }; }
  12351. fi
  12352. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  12353. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  12354. Usually this means the macro was only invoked conditionally." >&5
  12355. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  12356. Usually this means the macro was only invoked conditionally." >&2;}
  12357. { (exit 1); exit 1; }; }
  12358. fi
  12359. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12360. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12361. Usually this means the macro was only invoked conditionally." >&5
  12362. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12363. Usually this means the macro was only invoked conditionally." >&2;}
  12364. { (exit 1); exit 1; }; }
  12365. fi
  12366. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12367. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12368. Usually this means the macro was only invoked conditionally." >&5
  12369. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12370. Usually this means the macro was only invoked conditionally." >&2;}
  12371. { (exit 1); exit 1; }; }
  12372. fi
  12373. : ${CONFIG_STATUS=./config.status}
  12374. ac_clean_files_save=$ac_clean_files
  12375. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12376. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12377. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12378. cat >$CONFIG_STATUS <<_ACEOF
  12379. #! $SHELL
  12380. # Generated by $as_me.
  12381. # Run this file to recreate the current configuration.
  12382. # Compiler output produced by configure, useful for debugging
  12383. # configure, is in config.log if it exists.
  12384. debug=false
  12385. ac_cs_recheck=false
  12386. ac_cs_silent=false
  12387. SHELL=\${CONFIG_SHELL-$SHELL}
  12388. _ACEOF
  12389. cat >>$CONFIG_STATUS <<\_ACEOF
  12390. ## --------------------- ##
  12391. ## M4sh Initialization. ##
  12392. ## --------------------- ##
  12393. # Be more Bourne compatible
  12394. DUALCASE=1; export DUALCASE # for MKS sh
  12395. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12396. emulate sh
  12397. NULLCMD=:
  12398. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12399. # is contrary to our usage. Disable this feature.
  12400. alias -g '${1+"$@"}'='"$@"'
  12401. setopt NO_GLOB_SUBST
  12402. else
  12403. case `(set -o) 2>/dev/null` in
  12404. *posix*) set -o posix ;;
  12405. esac
  12406. fi
  12407. # PATH needs CR
  12408. # Avoid depending upon Character Ranges.
  12409. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12410. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12411. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12412. as_cr_digits='0123456789'
  12413. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12414. # The user is always right.
  12415. if test "${PATH_SEPARATOR+set}" != set; then
  12416. echo "#! /bin/sh" >conf$$.sh
  12417. echo "exit 0" >>conf$$.sh
  12418. chmod +x conf$$.sh
  12419. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12420. PATH_SEPARATOR=';'
  12421. else
  12422. PATH_SEPARATOR=:
  12423. fi
  12424. rm -f conf$$.sh
  12425. fi
  12426. # Support unset when possible.
  12427. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12428. as_unset=unset
  12429. else
  12430. as_unset=false
  12431. fi
  12432. # IFS
  12433. # We need space, tab and new line, in precisely that order. Quoting is
  12434. # there to prevent editors from complaining about space-tab.
  12435. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12436. # splitting by setting IFS to empty value.)
  12437. as_nl='
  12438. '
  12439. IFS=" "" $as_nl"
  12440. # Find who we are. Look in the path if we contain no directory separator.
  12441. case $0 in
  12442. *[\\/]* ) as_myself=$0 ;;
  12443. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12444. for as_dir in $PATH
  12445. do
  12446. IFS=$as_save_IFS
  12447. test -z "$as_dir" && as_dir=.
  12448. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12449. done
  12450. IFS=$as_save_IFS
  12451. ;;
  12452. esac
  12453. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12454. # in which case we are not to be found in the path.
  12455. if test "x$as_myself" = x; then
  12456. as_myself=$0
  12457. fi
  12458. if test ! -f "$as_myself"; then
  12459. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12460. { (exit 1); exit 1; }
  12461. fi
  12462. # Work around bugs in pre-3.0 UWIN ksh.
  12463. for as_var in ENV MAIL MAILPATH
  12464. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12465. done
  12466. PS1='$ '
  12467. PS2='> '
  12468. PS4='+ '
  12469. # NLS nuisances.
  12470. for as_var in \
  12471. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12472. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12473. LC_TELEPHONE LC_TIME
  12474. do
  12475. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12476. eval $as_var=C; export $as_var
  12477. else
  12478. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12479. fi
  12480. done
  12481. # Required to use basename.
  12482. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12483. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12484. as_expr=expr
  12485. else
  12486. as_expr=false
  12487. fi
  12488. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12489. as_basename=basename
  12490. else
  12491. as_basename=false
  12492. fi
  12493. # Name of the executable.
  12494. as_me=`$as_basename -- "$0" ||
  12495. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12496. X"$0" : 'X\(//\)$' \| \
  12497. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12498. echo X/"$0" |
  12499. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12500. s//\1/
  12501. q
  12502. }
  12503. /^X\/\(\/\/\)$/{
  12504. s//\1/
  12505. q
  12506. }
  12507. /^X\/\(\/\).*/{
  12508. s//\1/
  12509. q
  12510. }
  12511. s/.*/./; q'`
  12512. # CDPATH.
  12513. $as_unset CDPATH
  12514. as_lineno_1=$LINENO
  12515. as_lineno_2=$LINENO
  12516. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12517. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12518. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12519. # uniformly replaced by the line number. The first 'sed' inserts a
  12520. # line-number line after each line using $LINENO; the second 'sed'
  12521. # does the real work. The second script uses 'N' to pair each
  12522. # line-number line with the line containing $LINENO, and appends
  12523. # trailing '-' during substitution so that $LINENO is not a special
  12524. # case at line end.
  12525. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12526. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12527. # E. McMahon (1931-1989) for sed's syntax. :-)
  12528. sed -n '
  12529. p
  12530. /[$]LINENO/=
  12531. ' <$as_myself |
  12532. sed '
  12533. s/[$]LINENO.*/&-/
  12534. t lineno
  12535. b
  12536. :lineno
  12537. N
  12538. :loop
  12539. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12540. t loop
  12541. s/-\n.*//
  12542. ' >$as_me.lineno &&
  12543. chmod +x "$as_me.lineno" ||
  12544. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12545. { (exit 1); exit 1; }; }
  12546. # Don't try to exec as it changes $[0], causing all sort of problems
  12547. # (the dirname of $[0] is not the place where we might find the
  12548. # original and so on. Autoconf is especially sensitive to this).
  12549. . "./$as_me.lineno"
  12550. # Exit status is that of the last command.
  12551. exit
  12552. }
  12553. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12554. as_dirname=dirname
  12555. else
  12556. as_dirname=false
  12557. fi
  12558. ECHO_C= ECHO_N= ECHO_T=
  12559. case `echo -n x` in
  12560. -n*)
  12561. case `echo 'x\c'` in
  12562. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12563. *) ECHO_C='\c';;
  12564. esac;;
  12565. *)
  12566. ECHO_N='-n';;
  12567. esac
  12568. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12569. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12570. as_expr=expr
  12571. else
  12572. as_expr=false
  12573. fi
  12574. rm -f conf$$ conf$$.exe conf$$.file
  12575. if test -d conf$$.dir; then
  12576. rm -f conf$$.dir/conf$$.file
  12577. else
  12578. rm -f conf$$.dir
  12579. mkdir conf$$.dir
  12580. fi
  12581. echo >conf$$.file
  12582. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12583. as_ln_s='ln -s'
  12584. # ... but there are two gotchas:
  12585. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12586. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12587. # In both cases, we have to default to `cp -p'.
  12588. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12589. as_ln_s='cp -p'
  12590. elif ln conf$$.file conf$$ 2>/dev/null; then
  12591. as_ln_s=ln
  12592. else
  12593. as_ln_s='cp -p'
  12594. fi
  12595. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12596. rmdir conf$$.dir 2>/dev/null
  12597. if mkdir -p . 2>/dev/null; then
  12598. as_mkdir_p=:
  12599. else
  12600. test -d ./-p && rmdir ./-p
  12601. as_mkdir_p=false
  12602. fi
  12603. if test -x / >/dev/null 2>&1; then
  12604. as_test_x='test -x'
  12605. else
  12606. if ls -dL / >/dev/null 2>&1; then
  12607. as_ls_L_option=L
  12608. else
  12609. as_ls_L_option=
  12610. fi
  12611. as_test_x='
  12612. eval sh -c '\''
  12613. if test -d "$1"; then
  12614. test -d "$1/.";
  12615. else
  12616. case $1 in
  12617. -*)set "./$1";;
  12618. esac;
  12619. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12620. ???[sx]*):;;*)false;;esac;fi
  12621. '\'' sh
  12622. '
  12623. fi
  12624. as_executable_p=$as_test_x
  12625. # Sed expression to map a string onto a valid CPP name.
  12626. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12627. # Sed expression to map a string onto a valid variable name.
  12628. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12629. exec 6>&1
  12630. # Save the log message, to keep $[0] and so on meaningful, and to
  12631. # report actual input values of CONFIG_FILES etc. instead of their
  12632. # values after options handling.
  12633. ac_log="
  12634. This file was extended by aria2c $as_me 0.11.2, which was
  12635. generated by GNU Autoconf 2.61. Invocation command line was
  12636. CONFIG_FILES = $CONFIG_FILES
  12637. CONFIG_HEADERS = $CONFIG_HEADERS
  12638. CONFIG_LINKS = $CONFIG_LINKS
  12639. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12640. $ $0 $@
  12641. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12642. "
  12643. _ACEOF
  12644. cat >>$CONFIG_STATUS <<_ACEOF
  12645. # Files that config.status was made for.
  12646. config_files="$ac_config_files"
  12647. config_headers="$ac_config_headers"
  12648. config_commands="$ac_config_commands"
  12649. _ACEOF
  12650. cat >>$CONFIG_STATUS <<\_ACEOF
  12651. ac_cs_usage="\
  12652. \`$as_me' instantiates files from templates according to the
  12653. current configuration.
  12654. Usage: $0 [OPTIONS] [FILE]...
  12655. -h, --help print this help, then exit
  12656. -V, --version print version number and configuration settings, then exit
  12657. -q, --quiet do not print progress messages
  12658. -d, --debug don't remove temporary files
  12659. --recheck update $as_me by reconfiguring in the same conditions
  12660. --file=FILE[:TEMPLATE]
  12661. instantiate the configuration file FILE
  12662. --header=FILE[:TEMPLATE]
  12663. instantiate the configuration header FILE
  12664. Configuration files:
  12665. $config_files
  12666. Configuration headers:
  12667. $config_headers
  12668. Configuration commands:
  12669. $config_commands
  12670. Report bugs to <bug-autoconf@gnu.org>."
  12671. _ACEOF
  12672. cat >>$CONFIG_STATUS <<_ACEOF
  12673. ac_cs_version="\\
  12674. aria2c config.status 0.11.2
  12675. configured by $0, generated by GNU Autoconf 2.61,
  12676. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12677. Copyright (C) 2006 Free Software Foundation, Inc.
  12678. This config.status script is free software; the Free Software Foundation
  12679. gives unlimited permission to copy, distribute and modify it."
  12680. ac_pwd='$ac_pwd'
  12681. srcdir='$srcdir'
  12682. INSTALL='$INSTALL'
  12683. _ACEOF
  12684. cat >>$CONFIG_STATUS <<\_ACEOF
  12685. # If no file are specified by the user, then we need to provide default
  12686. # value. By we need to know if files were specified by the user.
  12687. ac_need_defaults=:
  12688. while test $# != 0
  12689. do
  12690. case $1 in
  12691. --*=*)
  12692. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12693. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12694. ac_shift=:
  12695. ;;
  12696. *)
  12697. ac_option=$1
  12698. ac_optarg=$2
  12699. ac_shift=shift
  12700. ;;
  12701. esac
  12702. case $ac_option in
  12703. # Handling of the options.
  12704. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12705. ac_cs_recheck=: ;;
  12706. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12707. echo "$ac_cs_version"; exit ;;
  12708. --debug | --debu | --deb | --de | --d | -d )
  12709. debug=: ;;
  12710. --file | --fil | --fi | --f )
  12711. $ac_shift
  12712. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12713. ac_need_defaults=false;;
  12714. --header | --heade | --head | --hea )
  12715. $ac_shift
  12716. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12717. ac_need_defaults=false;;
  12718. --he | --h)
  12719. # Conflict between --help and --header
  12720. { echo "$as_me: error: ambiguous option: $1
  12721. Try \`$0 --help' for more information." >&2
  12722. { (exit 1); exit 1; }; };;
  12723. --help | --hel | -h )
  12724. echo "$ac_cs_usage"; exit ;;
  12725. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12726. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12727. ac_cs_silent=: ;;
  12728. # This is an error.
  12729. -*) { echo "$as_me: error: unrecognized option: $1
  12730. Try \`$0 --help' for more information." >&2
  12731. { (exit 1); exit 1; }; } ;;
  12732. *) ac_config_targets="$ac_config_targets $1"
  12733. ac_need_defaults=false ;;
  12734. esac
  12735. shift
  12736. done
  12737. ac_configure_extra_args=
  12738. if $ac_cs_silent; then
  12739. exec 6>/dev/null
  12740. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12741. fi
  12742. _ACEOF
  12743. cat >>$CONFIG_STATUS <<_ACEOF
  12744. if \$ac_cs_recheck; then
  12745. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12746. CONFIG_SHELL=$SHELL
  12747. export CONFIG_SHELL
  12748. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12749. fi
  12750. _ACEOF
  12751. cat >>$CONFIG_STATUS <<\_ACEOF
  12752. exec 5>>config.log
  12753. {
  12754. echo
  12755. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12756. ## Running $as_me. ##
  12757. _ASBOX
  12758. echo "$ac_log"
  12759. } >&5
  12760. _ACEOF
  12761. cat >>$CONFIG_STATUS <<_ACEOF
  12762. #
  12763. # INIT-COMMANDS
  12764. #
  12765. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12766. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  12767. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  12768. # from automake.
  12769. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  12770. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  12771. LINGUAS="${LINGUAS-%UNSET%}"
  12772. _ACEOF
  12773. cat >>$CONFIG_STATUS <<\_ACEOF
  12774. # Handling of arguments.
  12775. for ac_config_target in $ac_config_targets
  12776. do
  12777. case $ac_config_target in
  12778. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12779. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12780. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  12781. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12782. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12783. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  12784. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  12785. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  12786. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  12787. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12788. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12789. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12790. { (exit 1); exit 1; }; };;
  12791. esac
  12792. done
  12793. # If the user did not use the arguments to specify the items to instantiate,
  12794. # then the envvar interface is used. Set only those that are not.
  12795. # We use the long form for the default assignment because of an extremely
  12796. # bizarre bug on SunOS 4.1.3.
  12797. if $ac_need_defaults; then
  12798. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12799. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12800. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12801. fi
  12802. # Have a temporary directory for convenience. Make it in the build tree
  12803. # simply because there is no reason against having it here, and in addition,
  12804. # creating and moving files from /tmp can sometimes cause problems.
  12805. # Hook for its removal unless debugging.
  12806. # Note that there is a small window in which the directory will not be cleaned:
  12807. # after its creation but before its name has been assigned to `$tmp'.
  12808. $debug ||
  12809. {
  12810. tmp=
  12811. trap 'exit_status=$?
  12812. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12813. ' 0
  12814. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12815. }
  12816. # Create a (secure) tmp directory for tmp files.
  12817. {
  12818. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12819. test -n "$tmp" && test -d "$tmp"
  12820. } ||
  12821. {
  12822. tmp=./conf$$-$RANDOM
  12823. (umask 077 && mkdir "$tmp")
  12824. } ||
  12825. {
  12826. echo "$me: cannot create a temporary directory in ." >&2
  12827. { (exit 1); exit 1; }
  12828. }
  12829. #
  12830. # Set up the sed scripts for CONFIG_FILES section.
  12831. #
  12832. # No need to generate the scripts if there are no CONFIG_FILES.
  12833. # This happens for instance when ./config.status config.h
  12834. if test -n "$CONFIG_FILES"; then
  12835. _ACEOF
  12836. ac_delim='%!_!# '
  12837. for ac_last_try in false false false false false :; do
  12838. cat >conf$$subs.sed <<_ACEOF
  12839. SHELL!$SHELL$ac_delim
  12840. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  12841. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  12842. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  12843. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  12844. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  12845. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  12846. exec_prefix!$exec_prefix$ac_delim
  12847. prefix!$prefix$ac_delim
  12848. program_transform_name!$program_transform_name$ac_delim
  12849. bindir!$bindir$ac_delim
  12850. sbindir!$sbindir$ac_delim
  12851. libexecdir!$libexecdir$ac_delim
  12852. datarootdir!$datarootdir$ac_delim
  12853. datadir!$datadir$ac_delim
  12854. sysconfdir!$sysconfdir$ac_delim
  12855. sharedstatedir!$sharedstatedir$ac_delim
  12856. localstatedir!$localstatedir$ac_delim
  12857. includedir!$includedir$ac_delim
  12858. oldincludedir!$oldincludedir$ac_delim
  12859. docdir!$docdir$ac_delim
  12860. infodir!$infodir$ac_delim
  12861. htmldir!$htmldir$ac_delim
  12862. dvidir!$dvidir$ac_delim
  12863. pdfdir!$pdfdir$ac_delim
  12864. psdir!$psdir$ac_delim
  12865. libdir!$libdir$ac_delim
  12866. localedir!$localedir$ac_delim
  12867. mandir!$mandir$ac_delim
  12868. DEFS!$DEFS$ac_delim
  12869. ECHO_C!$ECHO_C$ac_delim
  12870. ECHO_N!$ECHO_N$ac_delim
  12871. ECHO_T!$ECHO_T$ac_delim
  12872. LIBS!$LIBS$ac_delim
  12873. build_alias!$build_alias$ac_delim
  12874. host_alias!$host_alias$ac_delim
  12875. target_alias!$target_alias$ac_delim
  12876. build!$build$ac_delim
  12877. build_cpu!$build_cpu$ac_delim
  12878. build_vendor!$build_vendor$ac_delim
  12879. build_os!$build_os$ac_delim
  12880. host!$host$ac_delim
  12881. host_cpu!$host_cpu$ac_delim
  12882. host_vendor!$host_vendor$ac_delim
  12883. host_os!$host_os$ac_delim
  12884. target!$target$ac_delim
  12885. target_cpu!$target_cpu$ac_delim
  12886. target_vendor!$target_vendor$ac_delim
  12887. target_os!$target_os$ac_delim
  12888. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  12889. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  12890. INSTALL_DATA!$INSTALL_DATA$ac_delim
  12891. CYGPATH_W!$CYGPATH_W$ac_delim
  12892. PACKAGE!$PACKAGE$ac_delim
  12893. VERSION!$VERSION$ac_delim
  12894. ACLOCAL!$ACLOCAL$ac_delim
  12895. AUTOCONF!$AUTOCONF$ac_delim
  12896. AUTOMAKE!$AUTOMAKE$ac_delim
  12897. AUTOHEADER!$AUTOHEADER$ac_delim
  12898. MAKEINFO!$MAKEINFO$ac_delim
  12899. install_sh!$install_sh$ac_delim
  12900. STRIP!$STRIP$ac_delim
  12901. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  12902. mkdir_p!$mkdir_p$ac_delim
  12903. AWK!$AWK$ac_delim
  12904. SET_MAKE!$SET_MAKE$ac_delim
  12905. am__leading_dot!$am__leading_dot$ac_delim
  12906. AMTAR!$AMTAR$ac_delim
  12907. am__tar!$am__tar$ac_delim
  12908. am__untar!$am__untar$ac_delim
  12909. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  12910. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  12911. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  12912. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  12913. CXX!$CXX$ac_delim
  12914. CXXFLAGS!$CXXFLAGS$ac_delim
  12915. LDFLAGS!$LDFLAGS$ac_delim
  12916. CPPFLAGS!$CPPFLAGS$ac_delim
  12917. ac_ct_CXX!$ac_ct_CXX$ac_delim
  12918. EXEEXT!$EXEEXT$ac_delim
  12919. OBJEXT!$OBJEXT$ac_delim
  12920. DEPDIR!$DEPDIR$ac_delim
  12921. am__include!$am__include$ac_delim
  12922. am__quote!$am__quote$ac_delim
  12923. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  12924. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  12925. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  12926. CXXDEPMODE!$CXXDEPMODE$ac_delim
  12927. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  12928. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  12929. CC!$CC$ac_delim
  12930. CFLAGS!$CFLAGS$ac_delim
  12931. ac_ct_CC!$ac_ct_CC$ac_delim
  12932. CCDEPMODE!$CCDEPMODE$ac_delim
  12933. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  12934. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  12935. RANLIB!$RANLIB$ac_delim
  12936. _ACEOF
  12937. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  12938. break
  12939. elif $ac_last_try; then
  12940. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12941. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12942. { (exit 1); exit 1; }; }
  12943. else
  12944. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12945. fi
  12946. done
  12947. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  12948. if test -n "$ac_eof"; then
  12949. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  12950. ac_eof=`expr $ac_eof + 1`
  12951. fi
  12952. cat >>$CONFIG_STATUS <<_ACEOF
  12953. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  12954. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12955. _ACEOF
  12956. sed '
  12957. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  12958. s/^/s,@/; s/!/@,|#_!!_#|/
  12959. :n
  12960. t n
  12961. s/'"$ac_delim"'$/,g/; t
  12962. s/$/\\/; p
  12963. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  12964. ' >>$CONFIG_STATUS <conf$$subs.sed
  12965. rm -f conf$$subs.sed
  12966. cat >>$CONFIG_STATUS <<_ACEOF
  12967. CEOF$ac_eof
  12968. _ACEOF
  12969. ac_delim='%!_!# '
  12970. for ac_last_try in false false false false false :; do
  12971. cat >conf$$subs.sed <<_ACEOF
  12972. YACC!$YACC$ac_delim
  12973. YFLAGS!$YFLAGS$ac_delim
  12974. XML2_CONFIG!$XML2_CONFIG$ac_delim
  12975. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  12976. XML_LIBS!$XML_LIBS$ac_delim
  12977. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  12978. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  12979. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  12980. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  12981. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  12982. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  12983. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  12984. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  12985. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  12986. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  12987. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  12988. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  12989. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  12990. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  12991. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  12992. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  12993. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  12994. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  12995. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  12996. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  12997. ALLOCA!$ALLOCA$ac_delim
  12998. CPP!$CPP$ac_delim
  12999. GREP!$GREP$ac_delim
  13000. EGREP!$EGREP$ac_delim
  13001. MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
  13002. USE_NLS!$USE_NLS$ac_delim
  13003. MSGFMT!$MSGFMT$ac_delim
  13004. GMSGFMT!$GMSGFMT$ac_delim
  13005. XGETTEXT!$XGETTEXT$ac_delim
  13006. MSGMERGE!$MSGMERGE$ac_delim
  13007. GLIBC21!$GLIBC21$ac_delim
  13008. LIBICONV!$LIBICONV$ac_delim
  13009. LTLIBICONV!$LTLIBICONV$ac_delim
  13010. INTLBISON!$INTLBISON$ac_delim
  13011. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  13012. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  13013. CATOBJEXT!$CATOBJEXT$ac_delim
  13014. DATADIRNAME!$DATADIRNAME$ac_delim
  13015. INSTOBJEXT!$INSTOBJEXT$ac_delim
  13016. GENCAT!$GENCAT$ac_delim
  13017. INTLOBJS!$INTLOBJS$ac_delim
  13018. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  13019. INTLLIBS!$INTLLIBS$ac_delim
  13020. LIBINTL!$LIBINTL$ac_delim
  13021. LTLIBINTL!$LTLIBINTL$ac_delim
  13022. POSUB!$POSUB$ac_delim
  13023. LIBOBJS!$LIBOBJS$ac_delim
  13024. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  13025. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  13026. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  13027. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  13028. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  13029. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  13030. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  13031. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  13032. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  13033. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  13034. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  13035. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  13036. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  13037. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  13038. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  13039. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  13040. LTLIBOBJS!$LTLIBOBJS$ac_delim
  13041. _ACEOF
  13042. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
  13043. break
  13044. elif $ac_last_try; then
  13045. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13046. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13047. { (exit 1); exit 1; }; }
  13048. else
  13049. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13050. fi
  13051. done
  13052. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  13053. if test -n "$ac_eof"; then
  13054. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  13055. ac_eof=`expr $ac_eof + 1`
  13056. fi
  13057. cat >>$CONFIG_STATUS <<_ACEOF
  13058. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  13059. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  13060. _ACEOF
  13061. sed '
  13062. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  13063. s/^/s,@/; s/!/@,|#_!!_#|/
  13064. :n
  13065. t n
  13066. s/'"$ac_delim"'$/,g/; t
  13067. s/$/\\/; p
  13068. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  13069. ' >>$CONFIG_STATUS <conf$$subs.sed
  13070. rm -f conf$$subs.sed
  13071. cat >>$CONFIG_STATUS <<_ACEOF
  13072. :end
  13073. s/|#_!!_#|//g
  13074. CEOF$ac_eof
  13075. _ACEOF
  13076. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13077. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13078. # trailing colons and then remove the whole line if VPATH becomes empty
  13079. # (actually we leave an empty line to preserve line numbers).
  13080. if test "x$srcdir" = x.; then
  13081. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13082. s/:*\$(srcdir):*/:/
  13083. s/:*\${srcdir}:*/:/
  13084. s/:*@srcdir@:*/:/
  13085. s/^\([^=]*=[ ]*\):*/\1/
  13086. s/:*$//
  13087. s/^[^=]*=[ ]*$//
  13088. }'
  13089. fi
  13090. cat >>$CONFIG_STATUS <<\_ACEOF
  13091. fi # test -n "$CONFIG_FILES"
  13092. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  13093. do
  13094. case $ac_tag in
  13095. :[FHLC]) ac_mode=$ac_tag; continue;;
  13096. esac
  13097. case $ac_mode$ac_tag in
  13098. :[FHL]*:*);;
  13099. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  13100. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  13101. { (exit 1); exit 1; }; };;
  13102. :[FH]-) ac_tag=-:-;;
  13103. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13104. esac
  13105. ac_save_IFS=$IFS
  13106. IFS=:
  13107. set x $ac_tag
  13108. IFS=$ac_save_IFS
  13109. shift
  13110. ac_file=$1
  13111. shift
  13112. case $ac_mode in
  13113. :L) ac_source=$1;;
  13114. :[FH])
  13115. ac_file_inputs=
  13116. for ac_f
  13117. do
  13118. case $ac_f in
  13119. -) ac_f="$tmp/stdin";;
  13120. *) # Look for the file first in the build tree, then in the source tree
  13121. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13122. # because $ac_f cannot contain `:'.
  13123. test -f "$ac_f" ||
  13124. case $ac_f in
  13125. [\\/$]*) false;;
  13126. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13127. esac ||
  13128. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  13129. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  13130. { (exit 1); exit 1; }; };;
  13131. esac
  13132. ac_file_inputs="$ac_file_inputs $ac_f"
  13133. done
  13134. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13135. # use $as_me), people would be surprised to read:
  13136. # /* config.h. Generated by config.status. */
  13137. configure_input="Generated from "`IFS=:
  13138. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  13139. if test x"$ac_file" != x-; then
  13140. configure_input="$ac_file. $configure_input"
  13141. { echo "$as_me:$LINENO: creating $ac_file" >&5
  13142. echo "$as_me: creating $ac_file" >&6;}
  13143. fi
  13144. case $ac_tag in
  13145. *:-:* | *:-) cat >"$tmp/stdin";;
  13146. esac
  13147. ;;
  13148. esac
  13149. ac_dir=`$as_dirname -- "$ac_file" ||
  13150. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13151. X"$ac_file" : 'X\(//\)[^/]' \| \
  13152. X"$ac_file" : 'X\(//\)$' \| \
  13153. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13154. echo X"$ac_file" |
  13155. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13156. s//\1/
  13157. q
  13158. }
  13159. /^X\(\/\/\)[^/].*/{
  13160. s//\1/
  13161. q
  13162. }
  13163. /^X\(\/\/\)$/{
  13164. s//\1/
  13165. q
  13166. }
  13167. /^X\(\/\).*/{
  13168. s//\1/
  13169. q
  13170. }
  13171. s/.*/./; q'`
  13172. { as_dir="$ac_dir"
  13173. case $as_dir in #(
  13174. -*) as_dir=./$as_dir;;
  13175. esac
  13176. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13177. as_dirs=
  13178. while :; do
  13179. case $as_dir in #(
  13180. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  13181. *) as_qdir=$as_dir;;
  13182. esac
  13183. as_dirs="'$as_qdir' $as_dirs"
  13184. as_dir=`$as_dirname -- "$as_dir" ||
  13185. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13186. X"$as_dir" : 'X\(//\)[^/]' \| \
  13187. X"$as_dir" : 'X\(//\)$' \| \
  13188. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13189. echo X"$as_dir" |
  13190. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13191. s//\1/
  13192. q
  13193. }
  13194. /^X\(\/\/\)[^/].*/{
  13195. s//\1/
  13196. q
  13197. }
  13198. /^X\(\/\/\)$/{
  13199. s//\1/
  13200. q
  13201. }
  13202. /^X\(\/\).*/{
  13203. s//\1/
  13204. q
  13205. }
  13206. s/.*/./; q'`
  13207. test -d "$as_dir" && break
  13208. done
  13209. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13210. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13211. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13212. { (exit 1); exit 1; }; }; }
  13213. ac_builddir=.
  13214. case "$ac_dir" in
  13215. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13216. *)
  13217. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  13218. # A ".." for each directory in $ac_dir_suffix.
  13219. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  13220. case $ac_top_builddir_sub in
  13221. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13222. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13223. esac ;;
  13224. esac
  13225. ac_abs_top_builddir=$ac_pwd
  13226. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13227. # for backward compatibility:
  13228. ac_top_builddir=$ac_top_build_prefix
  13229. case $srcdir in
  13230. .) # We are building in place.
  13231. ac_srcdir=.
  13232. ac_top_srcdir=$ac_top_builddir_sub
  13233. ac_abs_top_srcdir=$ac_pwd ;;
  13234. [\\/]* | ?:[\\/]* ) # Absolute name.
  13235. ac_srcdir=$srcdir$ac_dir_suffix;
  13236. ac_top_srcdir=$srcdir
  13237. ac_abs_top_srcdir=$srcdir ;;
  13238. *) # Relative name.
  13239. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13240. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13241. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13242. esac
  13243. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13244. case $ac_mode in
  13245. :F)
  13246. #
  13247. # CONFIG_FILE
  13248. #
  13249. case $INSTALL in
  13250. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13251. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13252. esac
  13253. _ACEOF
  13254. cat >>$CONFIG_STATUS <<\_ACEOF
  13255. # If the template does not know about datarootdir, expand it.
  13256. # FIXME: This hack should be removed a few years after 2.60.
  13257. ac_datarootdir_hack=; ac_datarootdir_seen=
  13258. case `sed -n '/datarootdir/ {
  13259. p
  13260. q
  13261. }
  13262. /@datadir@/p
  13263. /@docdir@/p
  13264. /@infodir@/p
  13265. /@localedir@/p
  13266. /@mandir@/p
  13267. ' $ac_file_inputs` in
  13268. *datarootdir*) ac_datarootdir_seen=yes;;
  13269. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13270. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13271. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13272. _ACEOF
  13273. cat >>$CONFIG_STATUS <<_ACEOF
  13274. ac_datarootdir_hack='
  13275. s&@datadir@&$datadir&g
  13276. s&@docdir@&$docdir&g
  13277. s&@infodir@&$infodir&g
  13278. s&@localedir@&$localedir&g
  13279. s&@mandir@&$mandir&g
  13280. s&\\\${datarootdir}&$datarootdir&g' ;;
  13281. esac
  13282. _ACEOF
  13283. # Neutralize VPATH when `$srcdir' = `.'.
  13284. # Shell code in configure.ac might set extrasub.
  13285. # FIXME: do we really want to maintain this feature?
  13286. cat >>$CONFIG_STATUS <<_ACEOF
  13287. sed "$ac_vpsub
  13288. $extrasub
  13289. _ACEOF
  13290. cat >>$CONFIG_STATUS <<\_ACEOF
  13291. :t
  13292. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13293. s&@configure_input@&$configure_input&;t t
  13294. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13295. s&@srcdir@&$ac_srcdir&;t t
  13296. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13297. s&@top_srcdir@&$ac_top_srcdir&;t t
  13298. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13299. s&@builddir@&$ac_builddir&;t t
  13300. s&@abs_builddir@&$ac_abs_builddir&;t t
  13301. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13302. s&@INSTALL@&$ac_INSTALL&;t t
  13303. $ac_datarootdir_hack
  13304. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  13305. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13306. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13307. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13308. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13309. which seems to be undefined. Please make sure it is defined." >&5
  13310. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13311. which seems to be undefined. Please make sure it is defined." >&2;}
  13312. rm -f "$tmp/stdin"
  13313. case $ac_file in
  13314. -) cat "$tmp/out"; rm -f "$tmp/out";;
  13315. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  13316. esac
  13317. ;;
  13318. :H)
  13319. #
  13320. # CONFIG_HEADER
  13321. #
  13322. _ACEOF
  13323. # Transform confdefs.h into a sed script `conftest.defines', that
  13324. # substitutes the proper values into config.h.in to produce config.h.
  13325. rm -f conftest.defines conftest.tail
  13326. # First, append a space to every undef/define line, to ease matching.
  13327. echo 's/$/ /' >conftest.defines
  13328. # Then, protect against being on the right side of a sed subst, or in
  13329. # an unquoted here document, in config.status. If some macros were
  13330. # called several times there might be several #defines for the same
  13331. # symbol, which is useless. But do not sort them, since the last
  13332. # AC_DEFINE must be honored.
  13333. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13334. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  13335. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  13336. # PARAMS is the parameter list in the macro definition--in most cases, it's
  13337. # just an empty string.
  13338. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  13339. ac_dB='\\)[ (].*,\\1define\\2'
  13340. ac_dC=' '
  13341. ac_dD=' ,'
  13342. uniq confdefs.h |
  13343. sed -n '
  13344. t rset
  13345. :rset
  13346. s/^[ ]*#[ ]*define[ ][ ]*//
  13347. t ok
  13348. d
  13349. :ok
  13350. s/[\\&,]/\\&/g
  13351. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  13352. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  13353. ' >>conftest.defines
  13354. # Remove the space that was appended to ease matching.
  13355. # Then replace #undef with comments. This is necessary, for
  13356. # example, in the case of _POSIX_SOURCE, which is predefined and required
  13357. # on some systems where configure will not decide to define it.
  13358. # (The regexp can be short, since the line contains either #define or #undef.)
  13359. echo 's/ $//
  13360. s,^[ #]*u.*,/* & */,' >>conftest.defines
  13361. # Break up conftest.defines:
  13362. ac_max_sed_lines=50
  13363. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  13364. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  13365. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  13366. # et cetera.
  13367. ac_in='$ac_file_inputs'
  13368. ac_out='"$tmp/out1"'
  13369. ac_nxt='"$tmp/out2"'
  13370. while :
  13371. do
  13372. # Write a here document:
  13373. cat >>$CONFIG_STATUS <<_ACEOF
  13374. # First, check the format of the line:
  13375. cat >"\$tmp/defines.sed" <<\\CEOF
  13376. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  13377. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  13378. b
  13379. :def
  13380. _ACEOF
  13381. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  13382. echo 'CEOF
  13383. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  13384. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  13385. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  13386. grep . conftest.tail >/dev/null || break
  13387. rm -f conftest.defines
  13388. mv conftest.tail conftest.defines
  13389. done
  13390. rm -f conftest.defines conftest.tail
  13391. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  13392. cat >>$CONFIG_STATUS <<\_ACEOF
  13393. if test x"$ac_file" != x-; then
  13394. echo "/* $configure_input */" >"$tmp/config.h"
  13395. cat "$ac_result" >>"$tmp/config.h"
  13396. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  13397. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13398. echo "$as_me: $ac_file is unchanged" >&6;}
  13399. else
  13400. rm -f $ac_file
  13401. mv "$tmp/config.h" $ac_file
  13402. fi
  13403. else
  13404. echo "/* $configure_input */"
  13405. cat "$ac_result"
  13406. fi
  13407. rm -f "$tmp/out12"
  13408. # Compute $ac_file's index in $config_headers.
  13409. _am_stamp_count=1
  13410. for _am_header in $config_headers :; do
  13411. case $_am_header in
  13412. $ac_file | $ac_file:* )
  13413. break ;;
  13414. * )
  13415. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13416. esac
  13417. done
  13418. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  13419. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13420. X$ac_file : 'X\(//\)[^/]' \| \
  13421. X$ac_file : 'X\(//\)$' \| \
  13422. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  13423. echo X$ac_file |
  13424. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13425. s//\1/
  13426. q
  13427. }
  13428. /^X\(\/\/\)[^/].*/{
  13429. s//\1/
  13430. q
  13431. }
  13432. /^X\(\/\/\)$/{
  13433. s//\1/
  13434. q
  13435. }
  13436. /^X\(\/\).*/{
  13437. s//\1/
  13438. q
  13439. }
  13440. s/.*/./; q'`/stamp-h$_am_stamp_count
  13441. ;;
  13442. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  13443. echo "$as_me: executing $ac_file commands" >&6;}
  13444. ;;
  13445. esac
  13446. case $ac_file$ac_mode in
  13447. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  13448. # Strip MF so we end up with the name of the file.
  13449. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13450. # Check whether this is an Automake generated Makefile or not.
  13451. # We used to match only the files named `Makefile.in', but
  13452. # some people rename them; so instead we look at the file content.
  13453. # Grep'ing the first line is not enough: some people post-process
  13454. # each Makefile.in and add a new line on top of each file to say so.
  13455. # So let's grep whole file.
  13456. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  13457. dirpart=`$as_dirname -- "$mf" ||
  13458. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13459. X"$mf" : 'X\(//\)[^/]' \| \
  13460. X"$mf" : 'X\(//\)$' \| \
  13461. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13462. echo X"$mf" |
  13463. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13464. s//\1/
  13465. q
  13466. }
  13467. /^X\(\/\/\)[^/].*/{
  13468. s//\1/
  13469. q
  13470. }
  13471. /^X\(\/\/\)$/{
  13472. s//\1/
  13473. q
  13474. }
  13475. /^X\(\/\).*/{
  13476. s//\1/
  13477. q
  13478. }
  13479. s/.*/./; q'`
  13480. else
  13481. continue
  13482. fi
  13483. # Extract the definition of DEPDIR, am__include, and am__quote
  13484. # from the Makefile without running `make'.
  13485. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13486. test -z "$DEPDIR" && continue
  13487. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13488. test -z "am__include" && continue
  13489. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13490. # When using ansi2knr, U may be empty or an underscore; expand it
  13491. U=`sed -n 's/^U = //p' < "$mf"`
  13492. # Find all dependency output files, they are included files with
  13493. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13494. # simplest approach to changing $(DEPDIR) to its actual value in the
  13495. # expansion.
  13496. for file in `sed -n "
  13497. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13498. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13499. # Make sure the directory exists.
  13500. test -f "$dirpart/$file" && continue
  13501. fdir=`$as_dirname -- "$file" ||
  13502. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13503. X"$file" : 'X\(//\)[^/]' \| \
  13504. X"$file" : 'X\(//\)$' \| \
  13505. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13506. echo X"$file" |
  13507. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13508. s//\1/
  13509. q
  13510. }
  13511. /^X\(\/\/\)[^/].*/{
  13512. s//\1/
  13513. q
  13514. }
  13515. /^X\(\/\/\)$/{
  13516. s//\1/
  13517. q
  13518. }
  13519. /^X\(\/\).*/{
  13520. s//\1/
  13521. q
  13522. }
  13523. s/.*/./; q'`
  13524. { as_dir=$dirpart/$fdir
  13525. case $as_dir in #(
  13526. -*) as_dir=./$as_dir;;
  13527. esac
  13528. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13529. as_dirs=
  13530. while :; do
  13531. case $as_dir in #(
  13532. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  13533. *) as_qdir=$as_dir;;
  13534. esac
  13535. as_dirs="'$as_qdir' $as_dirs"
  13536. as_dir=`$as_dirname -- "$as_dir" ||
  13537. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13538. X"$as_dir" : 'X\(//\)[^/]' \| \
  13539. X"$as_dir" : 'X\(//\)$' \| \
  13540. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13541. echo X"$as_dir" |
  13542. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13543. s//\1/
  13544. q
  13545. }
  13546. /^X\(\/\/\)[^/].*/{
  13547. s//\1/
  13548. q
  13549. }
  13550. /^X\(\/\/\)$/{
  13551. s//\1/
  13552. q
  13553. }
  13554. /^X\(\/\).*/{
  13555. s//\1/
  13556. q
  13557. }
  13558. s/.*/./; q'`
  13559. test -d "$as_dir" && break
  13560. done
  13561. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13562. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13563. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13564. { (exit 1); exit 1; }; }; }
  13565. # echo "creating $dirpart/$file"
  13566. echo '# dummy' > "$dirpart/$file"
  13567. done
  13568. done
  13569. ;;
  13570. "default-1":C)
  13571. for ac_file in $CONFIG_FILES; do
  13572. # Support "outfile[:infile[:infile...]]"
  13573. case "$ac_file" in
  13574. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  13575. esac
  13576. # PO directories have a Makefile.in generated from Makefile.in.in.
  13577. case "$ac_file" in */Makefile.in)
  13578. # Adjust a relative srcdir.
  13579. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  13580. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  13581. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  13582. # In autoconf-2.13 it is called $ac_given_srcdir.
  13583. # In autoconf-2.50 it is called $srcdir.
  13584. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  13585. case "$ac_given_srcdir" in
  13586. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  13587. /*) top_srcdir="$ac_given_srcdir" ;;
  13588. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  13589. esac
  13590. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  13591. rm -f "$ac_dir/POTFILES"
  13592. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  13593. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  13594. POMAKEFILEDEPS="POTFILES.in"
  13595. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  13596. # on $ac_dir but don't depend on user-specified configuration
  13597. # parameters.
  13598. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  13599. # The LINGUAS file contains the set of available languages.
  13600. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  13601. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  13602. fi
  13603. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  13604. # Hide the ALL_LINGUAS assigment from automake.
  13605. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  13606. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  13607. else
  13608. # The set of available languages was given in configure.in.
  13609. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  13610. fi
  13611. case "$ac_given_srcdir" in
  13612. .) srcdirpre= ;;
  13613. *) srcdirpre='$(srcdir)/' ;;
  13614. esac
  13615. POFILES=
  13616. GMOFILES=
  13617. UPDATEPOFILES=
  13618. DUMMYPOFILES=
  13619. for lang in $ALL_LINGUAS; do
  13620. POFILES="$POFILES $srcdirpre$lang.po"
  13621. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  13622. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  13623. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  13624. done
  13625. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  13626. # environment variable.
  13627. INST_LINGUAS=
  13628. if test -n "$ALL_LINGUAS"; then
  13629. for presentlang in $ALL_LINGUAS; do
  13630. useit=no
  13631. if test "%UNSET%" != "$LINGUAS"; then
  13632. desiredlanguages="$LINGUAS"
  13633. else
  13634. desiredlanguages="$ALL_LINGUAS"
  13635. fi
  13636. for desiredlang in $desiredlanguages; do
  13637. # Use the presentlang catalog if desiredlang is
  13638. # a. equal to presentlang, or
  13639. # b. a variant of presentlang (because in this case,
  13640. # presentlang can be used as a fallback for messages
  13641. # which are not translated in the desiredlang catalog).
  13642. case "$desiredlang" in
  13643. "$presentlang"*) useit=yes;;
  13644. esac
  13645. done
  13646. if test $useit = yes; then
  13647. INST_LINGUAS="$INST_LINGUAS $presentlang"
  13648. fi
  13649. done
  13650. fi
  13651. CATALOGS=
  13652. if test -n "$INST_LINGUAS"; then
  13653. for lang in $INST_LINGUAS; do
  13654. CATALOGS="$CATALOGS $lang.gmo"
  13655. done
  13656. fi
  13657. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  13658. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  13659. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  13660. if test -f "$f"; then
  13661. case "$f" in
  13662. *.orig | *.bak | *~) ;;
  13663. *) cat "$f" >> "$ac_dir/Makefile" ;;
  13664. esac
  13665. fi
  13666. done
  13667. fi
  13668. ;;
  13669. esac
  13670. done ;;
  13671. esac
  13672. done # for ac_tag
  13673. { (exit 0); exit 0; }
  13674. _ACEOF
  13675. chmod +x $CONFIG_STATUS
  13676. ac_clean_files=$ac_clean_files_save
  13677. # configure is writing to config.log, and then calls config.status.
  13678. # config.status does its own redirection, appending to config.log.
  13679. # Unfortunately, on DOS this fails, as config.log is still kept open
  13680. # by configure, so config.status won't be able to write to it; its
  13681. # output is simply discarded. So we exec the FD to /dev/null,
  13682. # effectively closing config.log, so it can be properly (re)opened and
  13683. # appended to by config.status. When coming back to configure, we
  13684. # need to make the FD available again.
  13685. if test "$no_create" != yes; then
  13686. ac_cs_success=:
  13687. ac_config_status_args=
  13688. test "$silent" = yes &&
  13689. ac_config_status_args="$ac_config_status_args --quiet"
  13690. exec 5>/dev/null
  13691. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13692. exec 5>>config.log
  13693. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13694. # would make configure fail if this is the last instruction.
  13695. $ac_cs_success || { (exit 1); exit 1; }
  13696. fi
  13697. echo " "
  13698. echo "Build: $build"
  13699. echo "Target: $target"
  13700. echo "Install prefix: $prefix"
  13701. echo "CFLAGS: $CFLAGS"
  13702. echo "CPPFLAGS: $CPPFLAGS"
  13703. echo "LDFLAGS: $LDFLAGS"
  13704. echo "LIBS: $LIBS"
  13705. echo "GnuTLS: $have_libgnutls"
  13706. echo "OpenSSL: $have_openssl"
  13707. echo "LibXML2: $have_libxml2"
  13708. echo "LibAres: $have_libares"
  13709. echo "LibCares: $have_libcares"
  13710. echo "Bittorrent: $enable_bittorrent"
  13711. echo "Metalink: $enable_metalink"