configure 442 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.12.0rc.
  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.12.0rc'
  496. PACKAGE_STRING='aria2c 0.12.0rc'
  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. CXXCPP
  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. CXXCPP'
  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.12.0rc 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.12.0rc:";;
  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. CXXCPP 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.12.0rc
  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.12.0rc, 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.12.0rc'
  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. cat >>confdefs.h <<_ACEOF
  2273. #define TARGET "$target"
  2274. _ACEOF
  2275. # Set localedir
  2276. localedir=${datadir}/locale
  2277. # Checks for arguments.
  2278. # Check whether --with-gnutls was given.
  2279. if test "${with_gnutls+set}" = set; then
  2280. withval=$with_gnutls; with_gnutls=$withval
  2281. else
  2282. with_gnutls=yes
  2283. fi
  2284. # Check whether --with-openssl was given.
  2285. if test "${with_openssl+set}" = set; then
  2286. withval=$with_openssl; with_openssl=$withval
  2287. else
  2288. with_openssl=yes
  2289. fi
  2290. # Check whether --with-libxml2 was given.
  2291. if test "${with_libxml2+set}" = set; then
  2292. withval=$with_libxml2; with_libxml2=$withval
  2293. else
  2294. with_libxml2=yes
  2295. fi
  2296. # Check whether --with-libares was given.
  2297. if test "${with_libares+set}" = set; then
  2298. withval=$with_libares; with_libares=$withval
  2299. else
  2300. with_libares=yes
  2301. fi
  2302. # Check whether --with-libcares was given.
  2303. if test "${with_libcares+set}" = set; then
  2304. withval=$with_libcares; with_libcares=$withval
  2305. else
  2306. with_libcares=yes
  2307. fi
  2308. # Check whether --enable-bittorrent was given.
  2309. if test "${enable_bittorrent+set}" = set; then
  2310. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2311. else
  2312. enable_bittorrent=yes
  2313. fi
  2314. # Check whether --enable-metalink was given.
  2315. if test "${enable_metalink+set}" = set; then
  2316. enableval=$enable_metalink; enable_metalink=$enableval
  2317. else
  2318. enable_metalink=yes
  2319. fi
  2320. # Checks for programs.
  2321. ac_ext=cpp
  2322. ac_cpp='$CXXCPP $CPPFLAGS'
  2323. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2324. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2325. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2326. if test -z "$CXX"; then
  2327. if test -n "$CCC"; then
  2328. CXX=$CCC
  2329. else
  2330. if test -n "$ac_tool_prefix"; then
  2331. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2332. do
  2333. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2334. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2335. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2336. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2337. if test "${ac_cv_prog_CXX+set}" = set; then
  2338. echo $ECHO_N "(cached) $ECHO_C" >&6
  2339. else
  2340. if test -n "$CXX"; then
  2341. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2342. else
  2343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344. for as_dir in $PATH
  2345. do
  2346. IFS=$as_save_IFS
  2347. test -z "$as_dir" && as_dir=.
  2348. for ac_exec_ext in '' $ac_executable_extensions; do
  2349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2350. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2351. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352. break 2
  2353. fi
  2354. done
  2355. done
  2356. IFS=$as_save_IFS
  2357. fi
  2358. fi
  2359. CXX=$ac_cv_prog_CXX
  2360. if test -n "$CXX"; then
  2361. { echo "$as_me:$LINENO: result: $CXX" >&5
  2362. echo "${ECHO_T}$CXX" >&6; }
  2363. else
  2364. { echo "$as_me:$LINENO: result: no" >&5
  2365. echo "${ECHO_T}no" >&6; }
  2366. fi
  2367. test -n "$CXX" && break
  2368. done
  2369. fi
  2370. if test -z "$CXX"; then
  2371. ac_ct_CXX=$CXX
  2372. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2373. do
  2374. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2375. set dummy $ac_prog; ac_word=$2
  2376. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2377. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2378. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2379. echo $ECHO_N "(cached) $ECHO_C" >&6
  2380. else
  2381. if test -n "$ac_ct_CXX"; then
  2382. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2383. else
  2384. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2385. for as_dir in $PATH
  2386. do
  2387. IFS=$as_save_IFS
  2388. test -z "$as_dir" && as_dir=.
  2389. for ac_exec_ext in '' $ac_executable_extensions; do
  2390. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2391. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2392. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2393. break 2
  2394. fi
  2395. done
  2396. done
  2397. IFS=$as_save_IFS
  2398. fi
  2399. fi
  2400. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2401. if test -n "$ac_ct_CXX"; then
  2402. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2403. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2404. else
  2405. { echo "$as_me:$LINENO: result: no" >&5
  2406. echo "${ECHO_T}no" >&6; }
  2407. fi
  2408. test -n "$ac_ct_CXX" && break
  2409. done
  2410. if test "x$ac_ct_CXX" = x; then
  2411. CXX="g++"
  2412. else
  2413. case $cross_compiling:$ac_tool_warned in
  2414. yes:)
  2415. { echo "$as_me:$LINENO: 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." >&5
  2418. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2419. whose name does not start with the host triplet. If you think this
  2420. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2421. ac_tool_warned=yes ;;
  2422. esac
  2423. CXX=$ac_ct_CXX
  2424. fi
  2425. fi
  2426. fi
  2427. fi
  2428. # Provide some information about the compiler.
  2429. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2430. ac_compiler=`set X $ac_compile; echo $2`
  2431. { (ac_try="$ac_compiler --version >&5"
  2432. case "(($ac_try" in
  2433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2434. *) ac_try_echo=$ac_try;;
  2435. esac
  2436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2437. (eval "$ac_compiler --version >&5") 2>&5
  2438. ac_status=$?
  2439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2440. (exit $ac_status); }
  2441. { (ac_try="$ac_compiler -v >&5"
  2442. case "(($ac_try" in
  2443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2444. *) ac_try_echo=$ac_try;;
  2445. esac
  2446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2447. (eval "$ac_compiler -v >&5") 2>&5
  2448. ac_status=$?
  2449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2450. (exit $ac_status); }
  2451. { (ac_try="$ac_compiler -V >&5"
  2452. case "(($ac_try" in
  2453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2454. *) ac_try_echo=$ac_try;;
  2455. esac
  2456. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2457. (eval "$ac_compiler -V >&5") 2>&5
  2458. ac_status=$?
  2459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2460. (exit $ac_status); }
  2461. cat >conftest.$ac_ext <<_ACEOF
  2462. /* confdefs.h. */
  2463. _ACEOF
  2464. cat confdefs.h >>conftest.$ac_ext
  2465. cat >>conftest.$ac_ext <<_ACEOF
  2466. /* end confdefs.h. */
  2467. int
  2468. main ()
  2469. {
  2470. ;
  2471. return 0;
  2472. }
  2473. _ACEOF
  2474. ac_clean_files_save=$ac_clean_files
  2475. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2476. # Try to create an executable without -o first, disregard a.out.
  2477. # It will help us diagnose broken compilers, and finding out an intuition
  2478. # of exeext.
  2479. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2480. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2481. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2482. #
  2483. # List of possible output files, starting from the most likely.
  2484. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2485. # only as a last resort. b.out is created by i960 compilers.
  2486. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2487. #
  2488. # The IRIX 6 linker writes into existing files which may not be
  2489. # executable, retaining their permissions. Remove them first so a
  2490. # subsequent execution test works.
  2491. ac_rmfiles=
  2492. for ac_file in $ac_files
  2493. do
  2494. case $ac_file in
  2495. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2496. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2497. esac
  2498. done
  2499. rm -f $ac_rmfiles
  2500. if { (ac_try="$ac_link_default"
  2501. case "(($ac_try" in
  2502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2503. *) ac_try_echo=$ac_try;;
  2504. esac
  2505. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2506. (eval "$ac_link_default") 2>&5
  2507. ac_status=$?
  2508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2509. (exit $ac_status); }; then
  2510. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2511. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2512. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2513. # so that the user can short-circuit this test for compilers unknown to
  2514. # Autoconf.
  2515. for ac_file in $ac_files ''
  2516. do
  2517. test -f "$ac_file" || continue
  2518. case $ac_file in
  2519. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2520. ;;
  2521. [ab].out )
  2522. # We found the default executable, but exeext='' is most
  2523. # certainly right.
  2524. break;;
  2525. *.* )
  2526. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2527. then :; else
  2528. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2529. fi
  2530. # We set ac_cv_exeext here because the later test for it is not
  2531. # safe: cross compilers may not add the suffix if given an `-o'
  2532. # argument, so we may need to know it at that point already.
  2533. # Even if this section looks crufty: it has the advantage of
  2534. # actually working.
  2535. break;;
  2536. * )
  2537. break;;
  2538. esac
  2539. done
  2540. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2541. else
  2542. ac_file=''
  2543. fi
  2544. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2545. echo "${ECHO_T}$ac_file" >&6; }
  2546. if test -z "$ac_file"; then
  2547. echo "$as_me: failed program was:" >&5
  2548. sed 's/^/| /' conftest.$ac_ext >&5
  2549. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2550. See \`config.log' for more details." >&5
  2551. echo "$as_me: error: C++ compiler cannot create executables
  2552. See \`config.log' for more details." >&2;}
  2553. { (exit 77); exit 77; }; }
  2554. fi
  2555. ac_exeext=$ac_cv_exeext
  2556. # Check that the compiler produces executables we can run. If not, either
  2557. # the compiler is broken, or we cross compile.
  2558. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2559. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2560. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2561. # If not cross compiling, check that we can run a simple program.
  2562. if test "$cross_compiling" != yes; then
  2563. if { ac_try='./$ac_file'
  2564. { (case "(($ac_try" in
  2565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2566. *) ac_try_echo=$ac_try;;
  2567. esac
  2568. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2569. (eval "$ac_try") 2>&5
  2570. ac_status=$?
  2571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2572. (exit $ac_status); }; }; then
  2573. cross_compiling=no
  2574. else
  2575. if test "$cross_compiling" = maybe; then
  2576. cross_compiling=yes
  2577. else
  2578. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2579. If you meant to cross compile, use \`--host'.
  2580. See \`config.log' for more details." >&5
  2581. echo "$as_me: error: cannot run C++ compiled programs.
  2582. If you meant to cross compile, use \`--host'.
  2583. See \`config.log' for more details." >&2;}
  2584. { (exit 1); exit 1; }; }
  2585. fi
  2586. fi
  2587. fi
  2588. { echo "$as_me:$LINENO: result: yes" >&5
  2589. echo "${ECHO_T}yes" >&6; }
  2590. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2591. ac_clean_files=$ac_clean_files_save
  2592. # Check that the compiler produces executables we can run. If not, either
  2593. # the compiler is broken, or we cross compile.
  2594. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2595. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2596. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2597. echo "${ECHO_T}$cross_compiling" >&6; }
  2598. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2599. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2600. if { (ac_try="$ac_link"
  2601. case "(($ac_try" in
  2602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2603. *) ac_try_echo=$ac_try;;
  2604. esac
  2605. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2606. (eval "$ac_link") 2>&5
  2607. ac_status=$?
  2608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2609. (exit $ac_status); }; then
  2610. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2611. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2612. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2613. # `rm'.
  2614. for ac_file in conftest.exe conftest conftest.*; do
  2615. test -f "$ac_file" || continue
  2616. case $ac_file in
  2617. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2618. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2619. break;;
  2620. * ) break;;
  2621. esac
  2622. done
  2623. else
  2624. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2625. See \`config.log' for more details." >&5
  2626. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2627. See \`config.log' for more details." >&2;}
  2628. { (exit 1); exit 1; }; }
  2629. fi
  2630. rm -f conftest$ac_cv_exeext
  2631. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2632. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2633. rm -f conftest.$ac_ext
  2634. EXEEXT=$ac_cv_exeext
  2635. ac_exeext=$EXEEXT
  2636. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2637. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2638. if test "${ac_cv_objext+set}" = set; then
  2639. echo $ECHO_N "(cached) $ECHO_C" >&6
  2640. else
  2641. cat >conftest.$ac_ext <<_ACEOF
  2642. /* confdefs.h. */
  2643. _ACEOF
  2644. cat confdefs.h >>conftest.$ac_ext
  2645. cat >>conftest.$ac_ext <<_ACEOF
  2646. /* end confdefs.h. */
  2647. int
  2648. main ()
  2649. {
  2650. ;
  2651. return 0;
  2652. }
  2653. _ACEOF
  2654. rm -f conftest.o conftest.obj
  2655. if { (ac_try="$ac_compile"
  2656. case "(($ac_try" in
  2657. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2658. *) ac_try_echo=$ac_try;;
  2659. esac
  2660. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2661. (eval "$ac_compile") 2>&5
  2662. ac_status=$?
  2663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2664. (exit $ac_status); }; then
  2665. for ac_file in conftest.o conftest.obj conftest.*; do
  2666. test -f "$ac_file" || continue;
  2667. case $ac_file in
  2668. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2669. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2670. break;;
  2671. esac
  2672. done
  2673. else
  2674. echo "$as_me: failed program was:" >&5
  2675. sed 's/^/| /' conftest.$ac_ext >&5
  2676. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2677. See \`config.log' for more details." >&5
  2678. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2679. See \`config.log' for more details." >&2;}
  2680. { (exit 1); exit 1; }; }
  2681. fi
  2682. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2683. fi
  2684. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2685. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2686. OBJEXT=$ac_cv_objext
  2687. ac_objext=$OBJEXT
  2688. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2689. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2690. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2691. echo $ECHO_N "(cached) $ECHO_C" >&6
  2692. else
  2693. cat >conftest.$ac_ext <<_ACEOF
  2694. /* confdefs.h. */
  2695. _ACEOF
  2696. cat confdefs.h >>conftest.$ac_ext
  2697. cat >>conftest.$ac_ext <<_ACEOF
  2698. /* end confdefs.h. */
  2699. int
  2700. main ()
  2701. {
  2702. #ifndef __GNUC__
  2703. choke me
  2704. #endif
  2705. ;
  2706. return 0;
  2707. }
  2708. _ACEOF
  2709. rm -f conftest.$ac_objext
  2710. if { (ac_try="$ac_compile"
  2711. case "(($ac_try" in
  2712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2713. *) ac_try_echo=$ac_try;;
  2714. esac
  2715. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2716. (eval "$ac_compile") 2>conftest.er1
  2717. ac_status=$?
  2718. grep -v '^ *+' conftest.er1 >conftest.err
  2719. rm -f conftest.er1
  2720. cat conftest.err >&5
  2721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2722. (exit $ac_status); } && {
  2723. test -z "$ac_cxx_werror_flag" ||
  2724. test ! -s conftest.err
  2725. } && test -s conftest.$ac_objext; then
  2726. ac_compiler_gnu=yes
  2727. else
  2728. echo "$as_me: failed program was:" >&5
  2729. sed 's/^/| /' conftest.$ac_ext >&5
  2730. ac_compiler_gnu=no
  2731. fi
  2732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2733. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2734. fi
  2735. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2736. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2737. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2738. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2739. ac_save_CXXFLAGS=$CXXFLAGS
  2740. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2741. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2742. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2743. echo $ECHO_N "(cached) $ECHO_C" >&6
  2744. else
  2745. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2746. ac_cxx_werror_flag=yes
  2747. ac_cv_prog_cxx_g=no
  2748. CXXFLAGS="-g"
  2749. cat >conftest.$ac_ext <<_ACEOF
  2750. /* confdefs.h. */
  2751. _ACEOF
  2752. cat confdefs.h >>conftest.$ac_ext
  2753. cat >>conftest.$ac_ext <<_ACEOF
  2754. /* end confdefs.h. */
  2755. int
  2756. main ()
  2757. {
  2758. ;
  2759. return 0;
  2760. }
  2761. _ACEOF
  2762. rm -f conftest.$ac_objext
  2763. if { (ac_try="$ac_compile"
  2764. case "(($ac_try" in
  2765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2766. *) ac_try_echo=$ac_try;;
  2767. esac
  2768. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2769. (eval "$ac_compile") 2>conftest.er1
  2770. ac_status=$?
  2771. grep -v '^ *+' conftest.er1 >conftest.err
  2772. rm -f conftest.er1
  2773. cat conftest.err >&5
  2774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2775. (exit $ac_status); } && {
  2776. test -z "$ac_cxx_werror_flag" ||
  2777. test ! -s conftest.err
  2778. } && test -s conftest.$ac_objext; then
  2779. ac_cv_prog_cxx_g=yes
  2780. else
  2781. echo "$as_me: failed program was:" >&5
  2782. sed 's/^/| /' conftest.$ac_ext >&5
  2783. CXXFLAGS=""
  2784. cat >conftest.$ac_ext <<_ACEOF
  2785. /* confdefs.h. */
  2786. _ACEOF
  2787. cat confdefs.h >>conftest.$ac_ext
  2788. cat >>conftest.$ac_ext <<_ACEOF
  2789. /* end confdefs.h. */
  2790. int
  2791. main ()
  2792. {
  2793. ;
  2794. return 0;
  2795. }
  2796. _ACEOF
  2797. rm -f conftest.$ac_objext
  2798. if { (ac_try="$ac_compile"
  2799. case "(($ac_try" in
  2800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2801. *) ac_try_echo=$ac_try;;
  2802. esac
  2803. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2804. (eval "$ac_compile") 2>conftest.er1
  2805. ac_status=$?
  2806. grep -v '^ *+' conftest.er1 >conftest.err
  2807. rm -f conftest.er1
  2808. cat conftest.err >&5
  2809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2810. (exit $ac_status); } && {
  2811. test -z "$ac_cxx_werror_flag" ||
  2812. test ! -s conftest.err
  2813. } && test -s conftest.$ac_objext; then
  2814. :
  2815. else
  2816. echo "$as_me: failed program was:" >&5
  2817. sed 's/^/| /' conftest.$ac_ext >&5
  2818. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2819. CXXFLAGS="-g"
  2820. cat >conftest.$ac_ext <<_ACEOF
  2821. /* confdefs.h. */
  2822. _ACEOF
  2823. cat confdefs.h >>conftest.$ac_ext
  2824. cat >>conftest.$ac_ext <<_ACEOF
  2825. /* end confdefs.h. */
  2826. int
  2827. main ()
  2828. {
  2829. ;
  2830. return 0;
  2831. }
  2832. _ACEOF
  2833. rm -f conftest.$ac_objext
  2834. if { (ac_try="$ac_compile"
  2835. case "(($ac_try" in
  2836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2837. *) ac_try_echo=$ac_try;;
  2838. esac
  2839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2840. (eval "$ac_compile") 2>conftest.er1
  2841. ac_status=$?
  2842. grep -v '^ *+' conftest.er1 >conftest.err
  2843. rm -f conftest.er1
  2844. cat conftest.err >&5
  2845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2846. (exit $ac_status); } && {
  2847. test -z "$ac_cxx_werror_flag" ||
  2848. test ! -s conftest.err
  2849. } && test -s conftest.$ac_objext; then
  2850. ac_cv_prog_cxx_g=yes
  2851. else
  2852. echo "$as_me: failed program was:" >&5
  2853. sed 's/^/| /' conftest.$ac_ext >&5
  2854. fi
  2855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2856. fi
  2857. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2858. fi
  2859. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2860. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2861. fi
  2862. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2863. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2864. if test "$ac_test_CXXFLAGS" = set; then
  2865. CXXFLAGS=$ac_save_CXXFLAGS
  2866. elif test $ac_cv_prog_cxx_g = yes; then
  2867. if test "$GXX" = yes; then
  2868. CXXFLAGS="-g -O2"
  2869. else
  2870. CXXFLAGS="-g"
  2871. fi
  2872. else
  2873. if test "$GXX" = yes; then
  2874. CXXFLAGS="-O2"
  2875. else
  2876. CXXFLAGS=
  2877. fi
  2878. fi
  2879. ac_ext=c
  2880. ac_cpp='$CPP $CPPFLAGS'
  2881. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2882. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2883. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2884. DEPDIR="${am__leading_dot}deps"
  2885. ac_config_commands="$ac_config_commands depfiles"
  2886. am_make=${MAKE-make}
  2887. cat > confinc << 'END'
  2888. am__doit:
  2889. @echo done
  2890. .PHONY: am__doit
  2891. END
  2892. # If we don't find an include directive, just comment out the code.
  2893. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2894. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2895. am__include="#"
  2896. am__quote=
  2897. _am_result=none
  2898. # First try GNU make style include.
  2899. echo "include confinc" > confmf
  2900. # We grep out `Entering directory' and `Leaving directory'
  2901. # messages which can occur if `w' ends up in MAKEFLAGS.
  2902. # In particular we don't look at `^make:' because GNU make might
  2903. # be invoked under some other name (usually "gmake"), in which
  2904. # case it prints its new name instead of `make'.
  2905. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2906. am__include=include
  2907. am__quote=
  2908. _am_result=GNU
  2909. fi
  2910. # Now try BSD make style include.
  2911. if test "$am__include" = "#"; then
  2912. echo '.include "confinc"' > confmf
  2913. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2914. am__include=.include
  2915. am__quote="\""
  2916. _am_result=BSD
  2917. fi
  2918. fi
  2919. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2920. echo "${ECHO_T}$_am_result" >&6; }
  2921. rm -f confinc confmf
  2922. # Check whether --enable-dependency-tracking was given.
  2923. if test "${enable_dependency_tracking+set}" = set; then
  2924. enableval=$enable_dependency_tracking;
  2925. fi
  2926. if test "x$enable_dependency_tracking" != xno; then
  2927. am_depcomp="$ac_aux_dir/depcomp"
  2928. AMDEPBACKSLASH='\'
  2929. fi
  2930. if test "x$enable_dependency_tracking" != xno; then
  2931. AMDEP_TRUE=
  2932. AMDEP_FALSE='#'
  2933. else
  2934. AMDEP_TRUE='#'
  2935. AMDEP_FALSE=
  2936. fi
  2937. depcc="$CXX" am_compiler_list=
  2938. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2939. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2940. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2941. echo $ECHO_N "(cached) $ECHO_C" >&6
  2942. else
  2943. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2944. # We make a subdir and do the tests there. Otherwise we can end up
  2945. # making bogus files that we don't know about and never remove. For
  2946. # instance it was reported that on HP-UX the gcc test will end up
  2947. # making a dummy file named `D' -- because `-MD' means `put the output
  2948. # in D'.
  2949. mkdir conftest.dir
  2950. # Copy depcomp to subdir because otherwise we won't find it if we're
  2951. # using a relative directory.
  2952. cp "$am_depcomp" conftest.dir
  2953. cd conftest.dir
  2954. # We will build objects and dependencies in a subdirectory because
  2955. # it helps to detect inapplicable dependency modes. For instance
  2956. # both Tru64's cc and ICC support -MD to output dependencies as a
  2957. # side effect of compilation, but ICC will put the dependencies in
  2958. # the current directory while Tru64 will put them in the object
  2959. # directory.
  2960. mkdir sub
  2961. am_cv_CXX_dependencies_compiler_type=none
  2962. if test "$am_compiler_list" = ""; then
  2963. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2964. fi
  2965. for depmode in $am_compiler_list; do
  2966. # Setup a source with many dependencies, because some compilers
  2967. # like to wrap large dependency lists on column 80 (with \), and
  2968. # we should not choose a depcomp mode which is confused by this.
  2969. #
  2970. # We need to recreate these files for each test, as the compiler may
  2971. # overwrite some of them when testing with obscure command lines.
  2972. # This happens at least with the AIX C compiler.
  2973. : > sub/conftest.c
  2974. for i in 1 2 3 4 5 6; do
  2975. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2976. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2977. # Solaris 8's {/usr,}/bin/sh.
  2978. touch sub/conftst$i.h
  2979. done
  2980. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2981. case $depmode in
  2982. nosideeffect)
  2983. # after this tag, mechanisms are not by side-effect, so they'll
  2984. # only be used when explicitly requested
  2985. if test "x$enable_dependency_tracking" = xyes; then
  2986. continue
  2987. else
  2988. break
  2989. fi
  2990. ;;
  2991. none) break ;;
  2992. esac
  2993. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2994. # mode. It turns out that the SunPro C++ compiler does not properly
  2995. # handle `-M -o', and we need to detect this.
  2996. if depmode=$depmode \
  2997. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2998. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2999. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3000. >/dev/null 2>conftest.err &&
  3001. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3002. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3003. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3004. # icc doesn't choke on unknown options, it will just issue warnings
  3005. # or remarks (even with -Werror). So we grep stderr for any message
  3006. # that says an option was ignored or not supported.
  3007. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3008. # icc: Command line warning: ignoring option '-M'; no argument required
  3009. # The diagnosis changed in icc 8.0:
  3010. # icc: Command line remark: option '-MP' not supported
  3011. if (grep 'ignoring option' conftest.err ||
  3012. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3013. am_cv_CXX_dependencies_compiler_type=$depmode
  3014. break
  3015. fi
  3016. fi
  3017. done
  3018. cd ..
  3019. rm -rf conftest.dir
  3020. else
  3021. am_cv_CXX_dependencies_compiler_type=none
  3022. fi
  3023. fi
  3024. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3025. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3026. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3027. if
  3028. test "x$enable_dependency_tracking" != xno \
  3029. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3030. am__fastdepCXX_TRUE=
  3031. am__fastdepCXX_FALSE='#'
  3032. else
  3033. am__fastdepCXX_TRUE='#'
  3034. am__fastdepCXX_FALSE=
  3035. fi
  3036. ac_ext=c
  3037. ac_cpp='$CPP $CPPFLAGS'
  3038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3041. if test -n "$ac_tool_prefix"; then
  3042. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3043. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3044. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3045. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3046. if test "${ac_cv_prog_CC+set}" = set; then
  3047. echo $ECHO_N "(cached) $ECHO_C" >&6
  3048. else
  3049. if test -n "$CC"; then
  3050. ac_cv_prog_CC="$CC" # Let the user override the test.
  3051. else
  3052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3053. for as_dir in $PATH
  3054. do
  3055. IFS=$as_save_IFS
  3056. test -z "$as_dir" && as_dir=.
  3057. for ac_exec_ext in '' $ac_executable_extensions; do
  3058. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3059. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3060. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3061. break 2
  3062. fi
  3063. done
  3064. done
  3065. IFS=$as_save_IFS
  3066. fi
  3067. fi
  3068. CC=$ac_cv_prog_CC
  3069. if test -n "$CC"; then
  3070. { echo "$as_me:$LINENO: result: $CC" >&5
  3071. echo "${ECHO_T}$CC" >&6; }
  3072. else
  3073. { echo "$as_me:$LINENO: result: no" >&5
  3074. echo "${ECHO_T}no" >&6; }
  3075. fi
  3076. fi
  3077. if test -z "$ac_cv_prog_CC"; then
  3078. ac_ct_CC=$CC
  3079. # Extract the first word of "gcc", so it can be a program name with args.
  3080. set dummy gcc; ac_word=$2
  3081. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3082. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3083. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3084. echo $ECHO_N "(cached) $ECHO_C" >&6
  3085. else
  3086. if test -n "$ac_ct_CC"; then
  3087. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3088. else
  3089. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3090. for as_dir in $PATH
  3091. do
  3092. IFS=$as_save_IFS
  3093. test -z "$as_dir" && as_dir=.
  3094. for ac_exec_ext in '' $ac_executable_extensions; do
  3095. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3096. ac_cv_prog_ac_ct_CC="gcc"
  3097. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3098. break 2
  3099. fi
  3100. done
  3101. done
  3102. IFS=$as_save_IFS
  3103. fi
  3104. fi
  3105. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3106. if test -n "$ac_ct_CC"; then
  3107. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3108. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3109. else
  3110. { echo "$as_me:$LINENO: result: no" >&5
  3111. echo "${ECHO_T}no" >&6; }
  3112. fi
  3113. if test "x$ac_ct_CC" = x; then
  3114. CC=""
  3115. else
  3116. case $cross_compiling:$ac_tool_warned in
  3117. yes:)
  3118. { echo "$as_me:$LINENO: 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." >&5
  3121. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3122. whose name does not start with the host triplet. If you think this
  3123. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3124. ac_tool_warned=yes ;;
  3125. esac
  3126. CC=$ac_ct_CC
  3127. fi
  3128. else
  3129. CC="$ac_cv_prog_CC"
  3130. fi
  3131. if test -z "$CC"; then
  3132. if test -n "$ac_tool_prefix"; then
  3133. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3134. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3135. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3136. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3137. if test "${ac_cv_prog_CC+set}" = set; then
  3138. echo $ECHO_N "(cached) $ECHO_C" >&6
  3139. else
  3140. if test -n "$CC"; then
  3141. ac_cv_prog_CC="$CC" # Let the user override the test.
  3142. else
  3143. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3144. for as_dir in $PATH
  3145. do
  3146. IFS=$as_save_IFS
  3147. test -z "$as_dir" && as_dir=.
  3148. for ac_exec_ext in '' $ac_executable_extensions; do
  3149. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3150. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3151. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3152. break 2
  3153. fi
  3154. done
  3155. done
  3156. IFS=$as_save_IFS
  3157. fi
  3158. fi
  3159. CC=$ac_cv_prog_CC
  3160. if test -n "$CC"; then
  3161. { echo "$as_me:$LINENO: result: $CC" >&5
  3162. echo "${ECHO_T}$CC" >&6; }
  3163. else
  3164. { echo "$as_me:$LINENO: result: no" >&5
  3165. echo "${ECHO_T}no" >&6; }
  3166. fi
  3167. fi
  3168. fi
  3169. if test -z "$CC"; then
  3170. # Extract the first word of "cc", so it can be a program name with args.
  3171. set dummy cc; ac_word=$2
  3172. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3173. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3174. if test "${ac_cv_prog_CC+set}" = set; then
  3175. echo $ECHO_N "(cached) $ECHO_C" >&6
  3176. else
  3177. if test -n "$CC"; then
  3178. ac_cv_prog_CC="$CC" # Let the user override the test.
  3179. else
  3180. ac_prog_rejected=no
  3181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3182. for as_dir in $PATH
  3183. do
  3184. IFS=$as_save_IFS
  3185. test -z "$as_dir" && as_dir=.
  3186. for ac_exec_ext in '' $ac_executable_extensions; do
  3187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3188. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3189. ac_prog_rejected=yes
  3190. continue
  3191. fi
  3192. ac_cv_prog_CC="cc"
  3193. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3194. break 2
  3195. fi
  3196. done
  3197. done
  3198. IFS=$as_save_IFS
  3199. if test $ac_prog_rejected = yes; then
  3200. # We found a bogon in the path, so make sure we never use it.
  3201. set dummy $ac_cv_prog_CC
  3202. shift
  3203. if test $# != 0; then
  3204. # We chose a different compiler from the bogus one.
  3205. # However, it has the same basename, so the bogon will be chosen
  3206. # first if we set CC to just the basename; use the full file name.
  3207. shift
  3208. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3209. fi
  3210. fi
  3211. fi
  3212. fi
  3213. CC=$ac_cv_prog_CC
  3214. if test -n "$CC"; then
  3215. { echo "$as_me:$LINENO: result: $CC" >&5
  3216. echo "${ECHO_T}$CC" >&6; }
  3217. else
  3218. { echo "$as_me:$LINENO: result: no" >&5
  3219. echo "${ECHO_T}no" >&6; }
  3220. fi
  3221. fi
  3222. if test -z "$CC"; then
  3223. if test -n "$ac_tool_prefix"; then
  3224. for ac_prog in cl.exe
  3225. do
  3226. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3227. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3228. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3229. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3230. if test "${ac_cv_prog_CC+set}" = set; then
  3231. echo $ECHO_N "(cached) $ECHO_C" >&6
  3232. else
  3233. if test -n "$CC"; then
  3234. ac_cv_prog_CC="$CC" # Let the user override the test.
  3235. else
  3236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3237. for as_dir in $PATH
  3238. do
  3239. IFS=$as_save_IFS
  3240. test -z "$as_dir" && as_dir=.
  3241. for ac_exec_ext in '' $ac_executable_extensions; do
  3242. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3243. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3244. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3245. break 2
  3246. fi
  3247. done
  3248. done
  3249. IFS=$as_save_IFS
  3250. fi
  3251. fi
  3252. CC=$ac_cv_prog_CC
  3253. if test -n "$CC"; then
  3254. { echo "$as_me:$LINENO: result: $CC" >&5
  3255. echo "${ECHO_T}$CC" >&6; }
  3256. else
  3257. { echo "$as_me:$LINENO: result: no" >&5
  3258. echo "${ECHO_T}no" >&6; }
  3259. fi
  3260. test -n "$CC" && break
  3261. done
  3262. fi
  3263. if test -z "$CC"; then
  3264. ac_ct_CC=$CC
  3265. for ac_prog in cl.exe
  3266. do
  3267. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3268. set dummy $ac_prog; ac_word=$2
  3269. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3270. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3271. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3272. echo $ECHO_N "(cached) $ECHO_C" >&6
  3273. else
  3274. if test -n "$ac_ct_CC"; then
  3275. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3276. else
  3277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3278. for as_dir in $PATH
  3279. do
  3280. IFS=$as_save_IFS
  3281. test -z "$as_dir" && as_dir=.
  3282. for ac_exec_ext in '' $ac_executable_extensions; do
  3283. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3284. ac_cv_prog_ac_ct_CC="$ac_prog"
  3285. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3286. break 2
  3287. fi
  3288. done
  3289. done
  3290. IFS=$as_save_IFS
  3291. fi
  3292. fi
  3293. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3294. if test -n "$ac_ct_CC"; then
  3295. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3296. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3297. else
  3298. { echo "$as_me:$LINENO: result: no" >&5
  3299. echo "${ECHO_T}no" >&6; }
  3300. fi
  3301. test -n "$ac_ct_CC" && break
  3302. done
  3303. if test "x$ac_ct_CC" = x; then
  3304. CC=""
  3305. else
  3306. case $cross_compiling:$ac_tool_warned in
  3307. yes:)
  3308. { echo "$as_me:$LINENO: 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." >&5
  3311. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3312. whose name does not start with the host triplet. If you think this
  3313. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3314. ac_tool_warned=yes ;;
  3315. esac
  3316. CC=$ac_ct_CC
  3317. fi
  3318. fi
  3319. fi
  3320. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3321. See \`config.log' for more details." >&5
  3322. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3323. See \`config.log' for more details." >&2;}
  3324. { (exit 1); exit 1; }; }
  3325. # Provide some information about the compiler.
  3326. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3327. ac_compiler=`set X $ac_compile; echo $2`
  3328. { (ac_try="$ac_compiler --version >&5"
  3329. case "(($ac_try" in
  3330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3331. *) ac_try_echo=$ac_try;;
  3332. esac
  3333. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3334. (eval "$ac_compiler --version >&5") 2>&5
  3335. ac_status=$?
  3336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3337. (exit $ac_status); }
  3338. { (ac_try="$ac_compiler -v >&5"
  3339. case "(($ac_try" in
  3340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3341. *) ac_try_echo=$ac_try;;
  3342. esac
  3343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3344. (eval "$ac_compiler -v >&5") 2>&5
  3345. ac_status=$?
  3346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3347. (exit $ac_status); }
  3348. { (ac_try="$ac_compiler -V >&5"
  3349. case "(($ac_try" in
  3350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3351. *) ac_try_echo=$ac_try;;
  3352. esac
  3353. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3354. (eval "$ac_compiler -V >&5") 2>&5
  3355. ac_status=$?
  3356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3357. (exit $ac_status); }
  3358. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3359. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3360. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3361. echo $ECHO_N "(cached) $ECHO_C" >&6
  3362. else
  3363. cat >conftest.$ac_ext <<_ACEOF
  3364. /* confdefs.h. */
  3365. _ACEOF
  3366. cat confdefs.h >>conftest.$ac_ext
  3367. cat >>conftest.$ac_ext <<_ACEOF
  3368. /* end confdefs.h. */
  3369. int
  3370. main ()
  3371. {
  3372. #ifndef __GNUC__
  3373. choke me
  3374. #endif
  3375. ;
  3376. return 0;
  3377. }
  3378. _ACEOF
  3379. rm -f conftest.$ac_objext
  3380. if { (ac_try="$ac_compile"
  3381. case "(($ac_try" in
  3382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3383. *) ac_try_echo=$ac_try;;
  3384. esac
  3385. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3386. (eval "$ac_compile") 2>conftest.er1
  3387. ac_status=$?
  3388. grep -v '^ *+' conftest.er1 >conftest.err
  3389. rm -f conftest.er1
  3390. cat conftest.err >&5
  3391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392. (exit $ac_status); } && {
  3393. test -z "$ac_c_werror_flag" ||
  3394. test ! -s conftest.err
  3395. } && test -s conftest.$ac_objext; then
  3396. ac_compiler_gnu=yes
  3397. else
  3398. echo "$as_me: failed program was:" >&5
  3399. sed 's/^/| /' conftest.$ac_ext >&5
  3400. ac_compiler_gnu=no
  3401. fi
  3402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3403. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3404. fi
  3405. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3406. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3407. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3408. ac_test_CFLAGS=${CFLAGS+set}
  3409. ac_save_CFLAGS=$CFLAGS
  3410. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3411. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3412. if test "${ac_cv_prog_cc_g+set}" = set; then
  3413. echo $ECHO_N "(cached) $ECHO_C" >&6
  3414. else
  3415. ac_save_c_werror_flag=$ac_c_werror_flag
  3416. ac_c_werror_flag=yes
  3417. ac_cv_prog_cc_g=no
  3418. CFLAGS="-g"
  3419. cat >conftest.$ac_ext <<_ACEOF
  3420. /* confdefs.h. */
  3421. _ACEOF
  3422. cat confdefs.h >>conftest.$ac_ext
  3423. cat >>conftest.$ac_ext <<_ACEOF
  3424. /* end confdefs.h. */
  3425. int
  3426. main ()
  3427. {
  3428. ;
  3429. return 0;
  3430. }
  3431. _ACEOF
  3432. rm -f conftest.$ac_objext
  3433. if { (ac_try="$ac_compile"
  3434. case "(($ac_try" in
  3435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3436. *) ac_try_echo=$ac_try;;
  3437. esac
  3438. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3439. (eval "$ac_compile") 2>conftest.er1
  3440. ac_status=$?
  3441. grep -v '^ *+' conftest.er1 >conftest.err
  3442. rm -f conftest.er1
  3443. cat conftest.err >&5
  3444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3445. (exit $ac_status); } && {
  3446. test -z "$ac_c_werror_flag" ||
  3447. test ! -s conftest.err
  3448. } && test -s conftest.$ac_objext; then
  3449. ac_cv_prog_cc_g=yes
  3450. else
  3451. echo "$as_me: failed program was:" >&5
  3452. sed 's/^/| /' conftest.$ac_ext >&5
  3453. CFLAGS=""
  3454. cat >conftest.$ac_ext <<_ACEOF
  3455. /* confdefs.h. */
  3456. _ACEOF
  3457. cat confdefs.h >>conftest.$ac_ext
  3458. cat >>conftest.$ac_ext <<_ACEOF
  3459. /* end confdefs.h. */
  3460. int
  3461. main ()
  3462. {
  3463. ;
  3464. return 0;
  3465. }
  3466. _ACEOF
  3467. rm -f conftest.$ac_objext
  3468. if { (ac_try="$ac_compile"
  3469. case "(($ac_try" in
  3470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3471. *) ac_try_echo=$ac_try;;
  3472. esac
  3473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3474. (eval "$ac_compile") 2>conftest.er1
  3475. ac_status=$?
  3476. grep -v '^ *+' conftest.er1 >conftest.err
  3477. rm -f conftest.er1
  3478. cat conftest.err >&5
  3479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3480. (exit $ac_status); } && {
  3481. test -z "$ac_c_werror_flag" ||
  3482. test ! -s conftest.err
  3483. } && test -s conftest.$ac_objext; then
  3484. :
  3485. else
  3486. echo "$as_me: failed program was:" >&5
  3487. sed 's/^/| /' conftest.$ac_ext >&5
  3488. ac_c_werror_flag=$ac_save_c_werror_flag
  3489. CFLAGS="-g"
  3490. cat >conftest.$ac_ext <<_ACEOF
  3491. /* confdefs.h. */
  3492. _ACEOF
  3493. cat confdefs.h >>conftest.$ac_ext
  3494. cat >>conftest.$ac_ext <<_ACEOF
  3495. /* end confdefs.h. */
  3496. int
  3497. main ()
  3498. {
  3499. ;
  3500. return 0;
  3501. }
  3502. _ACEOF
  3503. rm -f conftest.$ac_objext
  3504. if { (ac_try="$ac_compile"
  3505. case "(($ac_try" in
  3506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3507. *) ac_try_echo=$ac_try;;
  3508. esac
  3509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3510. (eval "$ac_compile") 2>conftest.er1
  3511. ac_status=$?
  3512. grep -v '^ *+' conftest.er1 >conftest.err
  3513. rm -f conftest.er1
  3514. cat conftest.err >&5
  3515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3516. (exit $ac_status); } && {
  3517. test -z "$ac_c_werror_flag" ||
  3518. test ! -s conftest.err
  3519. } && test -s conftest.$ac_objext; then
  3520. ac_cv_prog_cc_g=yes
  3521. else
  3522. echo "$as_me: failed program was:" >&5
  3523. sed 's/^/| /' conftest.$ac_ext >&5
  3524. fi
  3525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3526. fi
  3527. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3528. fi
  3529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3530. ac_c_werror_flag=$ac_save_c_werror_flag
  3531. fi
  3532. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3533. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3534. if test "$ac_test_CFLAGS" = set; then
  3535. CFLAGS=$ac_save_CFLAGS
  3536. elif test $ac_cv_prog_cc_g = yes; then
  3537. if test "$GCC" = yes; then
  3538. CFLAGS="-g -O2"
  3539. else
  3540. CFLAGS="-g"
  3541. fi
  3542. else
  3543. if test "$GCC" = yes; then
  3544. CFLAGS="-O2"
  3545. else
  3546. CFLAGS=
  3547. fi
  3548. fi
  3549. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3550. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3551. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3552. echo $ECHO_N "(cached) $ECHO_C" >&6
  3553. else
  3554. ac_cv_prog_cc_c89=no
  3555. ac_save_CC=$CC
  3556. cat >conftest.$ac_ext <<_ACEOF
  3557. /* confdefs.h. */
  3558. _ACEOF
  3559. cat confdefs.h >>conftest.$ac_ext
  3560. cat >>conftest.$ac_ext <<_ACEOF
  3561. /* end confdefs.h. */
  3562. #include <stdarg.h>
  3563. #include <stdio.h>
  3564. #include <sys/types.h>
  3565. #include <sys/stat.h>
  3566. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3567. struct buf { int x; };
  3568. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3569. static char *e (p, i)
  3570. char **p;
  3571. int i;
  3572. {
  3573. return p[i];
  3574. }
  3575. static char *f (char * (*g) (char **, int), char **p, ...)
  3576. {
  3577. char *s;
  3578. va_list v;
  3579. va_start (v,p);
  3580. s = g (p, va_arg (v,int));
  3581. va_end (v);
  3582. return s;
  3583. }
  3584. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3585. function prototypes and stuff, but not '\xHH' hex character constants.
  3586. These don't provoke an error unfortunately, instead are silently treated
  3587. as 'x'. The following induces an error, until -std is added to get
  3588. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3589. array size at least. It's necessary to write '\x00'==0 to get something
  3590. that's true only with -std. */
  3591. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3592. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3593. inside strings and character constants. */
  3594. #define FOO(x) 'x'
  3595. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3596. int test (int i, double x);
  3597. struct s1 {int (*f) (int a);};
  3598. struct s2 {int (*f) (double a);};
  3599. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3600. int argc;
  3601. char **argv;
  3602. int
  3603. main ()
  3604. {
  3605. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3606. ;
  3607. return 0;
  3608. }
  3609. _ACEOF
  3610. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3611. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3612. do
  3613. CC="$ac_save_CC $ac_arg"
  3614. rm -f conftest.$ac_objext
  3615. if { (ac_try="$ac_compile"
  3616. case "(($ac_try" in
  3617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3618. *) ac_try_echo=$ac_try;;
  3619. esac
  3620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3621. (eval "$ac_compile") 2>conftest.er1
  3622. ac_status=$?
  3623. grep -v '^ *+' conftest.er1 >conftest.err
  3624. rm -f conftest.er1
  3625. cat conftest.err >&5
  3626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3627. (exit $ac_status); } && {
  3628. test -z "$ac_c_werror_flag" ||
  3629. test ! -s conftest.err
  3630. } && test -s conftest.$ac_objext; then
  3631. ac_cv_prog_cc_c89=$ac_arg
  3632. else
  3633. echo "$as_me: failed program was:" >&5
  3634. sed 's/^/| /' conftest.$ac_ext >&5
  3635. fi
  3636. rm -f core conftest.err conftest.$ac_objext
  3637. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3638. done
  3639. rm -f conftest.$ac_ext
  3640. CC=$ac_save_CC
  3641. fi
  3642. # AC_CACHE_VAL
  3643. case "x$ac_cv_prog_cc_c89" in
  3644. x)
  3645. { echo "$as_me:$LINENO: result: none needed" >&5
  3646. echo "${ECHO_T}none needed" >&6; } ;;
  3647. xno)
  3648. { echo "$as_me:$LINENO: result: unsupported" >&5
  3649. echo "${ECHO_T}unsupported" >&6; } ;;
  3650. *)
  3651. CC="$CC $ac_cv_prog_cc_c89"
  3652. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3653. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3654. esac
  3655. ac_ext=c
  3656. ac_cpp='$CPP $CPPFLAGS'
  3657. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3658. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3659. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3660. depcc="$CC" am_compiler_list=
  3661. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3662. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3663. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3664. echo $ECHO_N "(cached) $ECHO_C" >&6
  3665. else
  3666. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3667. # We make a subdir and do the tests there. Otherwise we can end up
  3668. # making bogus files that we don't know about and never remove. For
  3669. # instance it was reported that on HP-UX the gcc test will end up
  3670. # making a dummy file named `D' -- because `-MD' means `put the output
  3671. # in D'.
  3672. mkdir conftest.dir
  3673. # Copy depcomp to subdir because otherwise we won't find it if we're
  3674. # using a relative directory.
  3675. cp "$am_depcomp" conftest.dir
  3676. cd conftest.dir
  3677. # We will build objects and dependencies in a subdirectory because
  3678. # it helps to detect inapplicable dependency modes. For instance
  3679. # both Tru64's cc and ICC support -MD to output dependencies as a
  3680. # side effect of compilation, but ICC will put the dependencies in
  3681. # the current directory while Tru64 will put them in the object
  3682. # directory.
  3683. mkdir sub
  3684. am_cv_CC_dependencies_compiler_type=none
  3685. if test "$am_compiler_list" = ""; then
  3686. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3687. fi
  3688. for depmode in $am_compiler_list; do
  3689. # Setup a source with many dependencies, because some compilers
  3690. # like to wrap large dependency lists on column 80 (with \), and
  3691. # we should not choose a depcomp mode which is confused by this.
  3692. #
  3693. # We need to recreate these files for each test, as the compiler may
  3694. # overwrite some of them when testing with obscure command lines.
  3695. # This happens at least with the AIX C compiler.
  3696. : > sub/conftest.c
  3697. for i in 1 2 3 4 5 6; do
  3698. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3699. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3700. # Solaris 8's {/usr,}/bin/sh.
  3701. touch sub/conftst$i.h
  3702. done
  3703. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3704. case $depmode in
  3705. nosideeffect)
  3706. # after this tag, mechanisms are not by side-effect, so they'll
  3707. # only be used when explicitly requested
  3708. if test "x$enable_dependency_tracking" = xyes; then
  3709. continue
  3710. else
  3711. break
  3712. fi
  3713. ;;
  3714. none) break ;;
  3715. esac
  3716. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3717. # mode. It turns out that the SunPro C++ compiler does not properly
  3718. # handle `-M -o', and we need to detect this.
  3719. if depmode=$depmode \
  3720. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3721. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3722. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3723. >/dev/null 2>conftest.err &&
  3724. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3725. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3726. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3727. # icc doesn't choke on unknown options, it will just issue warnings
  3728. # or remarks (even with -Werror). So we grep stderr for any message
  3729. # that says an option was ignored or not supported.
  3730. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3731. # icc: Command line warning: ignoring option '-M'; no argument required
  3732. # The diagnosis changed in icc 8.0:
  3733. # icc: Command line remark: option '-MP' not supported
  3734. if (grep 'ignoring option' conftest.err ||
  3735. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3736. am_cv_CC_dependencies_compiler_type=$depmode
  3737. break
  3738. fi
  3739. fi
  3740. done
  3741. cd ..
  3742. rm -rf conftest.dir
  3743. else
  3744. am_cv_CC_dependencies_compiler_type=none
  3745. fi
  3746. fi
  3747. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3748. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3749. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3750. if
  3751. test "x$enable_dependency_tracking" != xno \
  3752. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3753. am__fastdepCC_TRUE=
  3754. am__fastdepCC_FALSE='#'
  3755. else
  3756. am__fastdepCC_TRUE='#'
  3757. am__fastdepCC_FALSE=
  3758. fi
  3759. # Find a good install program. We prefer a C program (faster),
  3760. # so one script is as good as another. But avoid the broken or
  3761. # incompatible versions:
  3762. # SysV /etc/install, /usr/sbin/install
  3763. # SunOS /usr/etc/install
  3764. # IRIX /sbin/install
  3765. # AIX /bin/install
  3766. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3767. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3768. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3769. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3770. # OS/2's system install, which has a completely different semantic
  3771. # ./install, which can be erroneously created by make from ./install.sh.
  3772. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3773. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3774. if test -z "$INSTALL"; then
  3775. if test "${ac_cv_path_install+set}" = set; then
  3776. echo $ECHO_N "(cached) $ECHO_C" >&6
  3777. else
  3778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3779. for as_dir in $PATH
  3780. do
  3781. IFS=$as_save_IFS
  3782. test -z "$as_dir" && as_dir=.
  3783. # Account for people who put trailing slashes in PATH elements.
  3784. case $as_dir/ in
  3785. ./ | .// | /cC/* | \
  3786. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3787. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3788. /usr/ucb/* ) ;;
  3789. *)
  3790. # OSF1 and SCO ODT 3.0 have their own names for install.
  3791. # Don't use installbsd from OSF since it installs stuff as root
  3792. # by default.
  3793. for ac_prog in ginstall scoinst install; do
  3794. for ac_exec_ext in '' $ac_executable_extensions; do
  3795. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3796. if test $ac_prog = install &&
  3797. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3798. # AIX install. It has an incompatible calling convention.
  3799. :
  3800. elif test $ac_prog = install &&
  3801. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3802. # program-specific install script used by HP pwplus--don't use.
  3803. :
  3804. else
  3805. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3806. break 3
  3807. fi
  3808. fi
  3809. done
  3810. done
  3811. ;;
  3812. esac
  3813. done
  3814. IFS=$as_save_IFS
  3815. fi
  3816. if test "${ac_cv_path_install+set}" = set; then
  3817. INSTALL=$ac_cv_path_install
  3818. else
  3819. # As a last resort, use the slow shell script. Don't cache a
  3820. # value for INSTALL within a source directory, because that will
  3821. # break other packages using the cache if that directory is
  3822. # removed, or if the value is a relative name.
  3823. INSTALL=$ac_install_sh
  3824. fi
  3825. fi
  3826. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3827. echo "${ECHO_T}$INSTALL" >&6; }
  3828. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3829. # It thinks the first close brace ends the variable substitution.
  3830. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3831. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3832. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3833. if test -n "$ac_tool_prefix"; then
  3834. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3835. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3836. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3837. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3838. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3839. echo $ECHO_N "(cached) $ECHO_C" >&6
  3840. else
  3841. if test -n "$RANLIB"; then
  3842. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3843. else
  3844. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3845. for as_dir in $PATH
  3846. do
  3847. IFS=$as_save_IFS
  3848. test -z "$as_dir" && as_dir=.
  3849. for ac_exec_ext in '' $ac_executable_extensions; do
  3850. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3851. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3852. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3853. break 2
  3854. fi
  3855. done
  3856. done
  3857. IFS=$as_save_IFS
  3858. fi
  3859. fi
  3860. RANLIB=$ac_cv_prog_RANLIB
  3861. if test -n "$RANLIB"; then
  3862. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3863. echo "${ECHO_T}$RANLIB" >&6; }
  3864. else
  3865. { echo "$as_me:$LINENO: result: no" >&5
  3866. echo "${ECHO_T}no" >&6; }
  3867. fi
  3868. fi
  3869. if test -z "$ac_cv_prog_RANLIB"; then
  3870. ac_ct_RANLIB=$RANLIB
  3871. # Extract the first word of "ranlib", so it can be a program name with args.
  3872. set dummy ranlib; ac_word=$2
  3873. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3874. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3875. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3876. echo $ECHO_N "(cached) $ECHO_C" >&6
  3877. else
  3878. if test -n "$ac_ct_RANLIB"; then
  3879. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3880. else
  3881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3882. for as_dir in $PATH
  3883. do
  3884. IFS=$as_save_IFS
  3885. test -z "$as_dir" && as_dir=.
  3886. for ac_exec_ext in '' $ac_executable_extensions; do
  3887. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3888. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3889. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3890. break 2
  3891. fi
  3892. done
  3893. done
  3894. IFS=$as_save_IFS
  3895. fi
  3896. fi
  3897. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3898. if test -n "$ac_ct_RANLIB"; then
  3899. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3900. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3901. else
  3902. { echo "$as_me:$LINENO: result: no" >&5
  3903. echo "${ECHO_T}no" >&6; }
  3904. fi
  3905. if test "x$ac_ct_RANLIB" = x; then
  3906. RANLIB=":"
  3907. else
  3908. case $cross_compiling:$ac_tool_warned in
  3909. yes:)
  3910. { echo "$as_me:$LINENO: 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." >&5
  3913. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3914. whose name does not start with the host triplet. If you think this
  3915. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3916. ac_tool_warned=yes ;;
  3917. esac
  3918. RANLIB=$ac_ct_RANLIB
  3919. fi
  3920. else
  3921. RANLIB="$ac_cv_prog_RANLIB"
  3922. fi
  3923. for ac_prog in 'bison -y' byacc
  3924. do
  3925. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3926. set dummy $ac_prog; ac_word=$2
  3927. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3928. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3929. if test "${ac_cv_prog_YACC+set}" = set; then
  3930. echo $ECHO_N "(cached) $ECHO_C" >&6
  3931. else
  3932. if test -n "$YACC"; then
  3933. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3934. else
  3935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3936. for as_dir in $PATH
  3937. do
  3938. IFS=$as_save_IFS
  3939. test -z "$as_dir" && as_dir=.
  3940. for ac_exec_ext in '' $ac_executable_extensions; do
  3941. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3942. ac_cv_prog_YACC="$ac_prog"
  3943. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3944. break 2
  3945. fi
  3946. done
  3947. done
  3948. IFS=$as_save_IFS
  3949. fi
  3950. fi
  3951. YACC=$ac_cv_prog_YACC
  3952. if test -n "$YACC"; then
  3953. { echo "$as_me:$LINENO: result: $YACC" >&5
  3954. echo "${ECHO_T}$YACC" >&6; }
  3955. else
  3956. { echo "$as_me:$LINENO: result: no" >&5
  3957. echo "${ECHO_T}no" >&6; }
  3958. fi
  3959. test -n "$YACC" && break
  3960. done
  3961. test -n "$YACC" || YACC="yacc"
  3962. # Setting language choice
  3963. ac_ext=cpp
  3964. ac_cpp='$CXXCPP $CPPFLAGS'
  3965. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3966. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3967. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3968. # Checks for libraries.
  3969. if test "x$with_libxml2" = "xyes"; then
  3970. # Check whether --with-xml-prefix was given.
  3971. if test "${with_xml_prefix+set}" = set; then
  3972. withval=$with_xml_prefix; xml_config_prefix="$withval"
  3973. else
  3974. xml_config_prefix=""
  3975. fi
  3976. # Check whether --with-xml-exec-prefix was given.
  3977. if test "${with_xml_exec_prefix+set}" = set; then
  3978. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  3979. else
  3980. xml_config_exec_prefix=""
  3981. fi
  3982. # Check whether --enable-xmltest was given.
  3983. if test "${enable_xmltest+set}" = set; then
  3984. enableval=$enable_xmltest;
  3985. else
  3986. enable_xmltest=yes
  3987. fi
  3988. if test x$xml_config_exec_prefix != x ; then
  3989. xml_config_args="$xml_config_args"
  3990. if test x${XML2_CONFIG+set} != xset ; then
  3991. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  3992. fi
  3993. fi
  3994. if test x$xml_config_prefix != x ; then
  3995. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  3996. if test x${XML2_CONFIG+set} != xset ; then
  3997. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  3998. fi
  3999. fi
  4000. # Extract the first word of "xml2-config", so it can be a program name with args.
  4001. set dummy xml2-config; ac_word=$2
  4002. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4003. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4004. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4005. echo $ECHO_N "(cached) $ECHO_C" >&6
  4006. else
  4007. case $XML2_CONFIG in
  4008. [\\/]* | ?:[\\/]*)
  4009. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4010. ;;
  4011. *)
  4012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4013. for as_dir in $PATH
  4014. do
  4015. IFS=$as_save_IFS
  4016. test -z "$as_dir" && as_dir=.
  4017. for ac_exec_ext in '' $ac_executable_extensions; do
  4018. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4019. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4020. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4021. break 2
  4022. fi
  4023. done
  4024. done
  4025. IFS=$as_save_IFS
  4026. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4027. ;;
  4028. esac
  4029. fi
  4030. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4031. if test -n "$XML2_CONFIG"; then
  4032. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4033. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4034. else
  4035. { echo "$as_me:$LINENO: result: no" >&5
  4036. echo "${ECHO_T}no" >&6; }
  4037. fi
  4038. min_xml_version=2.6.24
  4039. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4040. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4041. no_xml=""
  4042. if test "$XML2_CONFIG" = "no" ; then
  4043. no_xml=yes
  4044. else
  4045. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4046. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4047. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4048. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4049. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4050. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4051. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4052. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4053. if test "x$enable_xmltest" = "xyes" ; then
  4054. ac_save_CPPFLAGS="$CPPFLAGS"
  4055. ac_save_LIBS="$LIBS"
  4056. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4057. LIBS="$XML_LIBS $LIBS"
  4058. rm -f conf.xmltest
  4059. if test "$cross_compiling" = yes; then
  4060. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4061. else
  4062. cat >conftest.$ac_ext <<_ACEOF
  4063. /* confdefs.h. */
  4064. _ACEOF
  4065. cat confdefs.h >>conftest.$ac_ext
  4066. cat >>conftest.$ac_ext <<_ACEOF
  4067. /* end confdefs.h. */
  4068. #include <stdlib.h>
  4069. #include <stdio.h>
  4070. #include <string.h>
  4071. #include <libxml/xmlversion.h>
  4072. int
  4073. main()
  4074. {
  4075. int xml_major_version, xml_minor_version, xml_micro_version;
  4076. int major, minor, micro;
  4077. char *tmp_version;
  4078. system("touch conf.xmltest");
  4079. /* Capture xml2-config output via autoconf/configure variables */
  4080. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4081. tmp_version = (char *)strdup("$min_xml_version");
  4082. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4083. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4084. exit(1);
  4085. }
  4086. free(tmp_version);
  4087. /* Capture the version information from the header files */
  4088. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  4089. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  4090. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  4091. exit(1);
  4092. }
  4093. free(tmp_version);
  4094. /* Compare xml2-config output to the libxml headers */
  4095. if ((xml_major_version != $xml_config_major_version) ||
  4096. (xml_minor_version != $xml_config_minor_version) ||
  4097. (xml_micro_version != $xml_config_micro_version))
  4098. {
  4099. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  4100. xml_major_version, xml_minor_version, xml_micro_version);
  4101. printf("*** xml2-config (version %d.%d.%d)\n",
  4102. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  4103. return 1;
  4104. }
  4105. /* Compare the headers to the library to make sure we match */
  4106. /* Less than ideal -- doesn't provide us with return value feedback,
  4107. * only exits if there's a serious mismatch between header and library.
  4108. */
  4109. LIBXML_TEST_VERSION;
  4110. /* Test that the library is greater than our minimum version */
  4111. if ((xml_major_version > major) ||
  4112. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  4113. ((xml_major_version == major) && (xml_minor_version == minor) &&
  4114. (xml_micro_version >= micro)))
  4115. {
  4116. return 0;
  4117. }
  4118. else
  4119. {
  4120. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  4121. xml_major_version, xml_minor_version, xml_micro_version);
  4122. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  4123. major, minor, micro);
  4124. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  4125. printf("***\n");
  4126. printf("*** If you have already installed a sufficiently new version, this error\n");
  4127. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  4128. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4129. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  4130. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  4131. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4132. printf("*** so that the correct libraries are found at run-time))\n");
  4133. }
  4134. return 1;
  4135. }
  4136. _ACEOF
  4137. rm -f conftest$ac_exeext
  4138. if { (ac_try="$ac_link"
  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_link") 2>&5
  4145. ac_status=$?
  4146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4147. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4148. { (case "(($ac_try" in
  4149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4150. *) ac_try_echo=$ac_try;;
  4151. esac
  4152. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4153. (eval "$ac_try") 2>&5
  4154. ac_status=$?
  4155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4156. (exit $ac_status); }; }; then
  4157. :
  4158. else
  4159. echo "$as_me: program exited with status $ac_status" >&5
  4160. echo "$as_me: failed program was:" >&5
  4161. sed 's/^/| /' conftest.$ac_ext >&5
  4162. ( exit $ac_status )
  4163. no_xml=yes
  4164. fi
  4165. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4166. fi
  4167. CPPFLAGS="$ac_save_CPPFLAGS"
  4168. LIBS="$ac_save_LIBS"
  4169. fi
  4170. fi
  4171. if test "x$no_xml" = x ; then
  4172. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  4173. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  4174. have_libxml2=yes
  4175. else
  4176. { echo "$as_me:$LINENO: result: no" >&5
  4177. echo "${ECHO_T}no" >&6; }
  4178. if test "$XML2_CONFIG" = "no" ; then
  4179. echo "*** The xml2-config script installed by LIBXML could not be found"
  4180. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  4181. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  4182. echo "*** full path to xml2-config."
  4183. else
  4184. if test -f conf.xmltest ; then
  4185. :
  4186. else
  4187. echo "*** Could not run libxml test program, checking why..."
  4188. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4189. LIBS="$LIBS $XML_LIBS"
  4190. cat >conftest.$ac_ext <<_ACEOF
  4191. /* confdefs.h. */
  4192. _ACEOF
  4193. cat confdefs.h >>conftest.$ac_ext
  4194. cat >>conftest.$ac_ext <<_ACEOF
  4195. /* end confdefs.h. */
  4196. #include <libxml/xmlversion.h>
  4197. #include <stdio.h>
  4198. int
  4199. main ()
  4200. {
  4201. LIBXML_TEST_VERSION; return 0;
  4202. ;
  4203. return 0;
  4204. }
  4205. _ACEOF
  4206. rm -f conftest.$ac_objext conftest$ac_exeext
  4207. if { (ac_try="$ac_link"
  4208. case "(($ac_try" in
  4209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4210. *) ac_try_echo=$ac_try;;
  4211. esac
  4212. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4213. (eval "$ac_link") 2>conftest.er1
  4214. ac_status=$?
  4215. grep -v '^ *+' conftest.er1 >conftest.err
  4216. rm -f conftest.er1
  4217. cat conftest.err >&5
  4218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4219. (exit $ac_status); } && {
  4220. test -z "$ac_cxx_werror_flag" ||
  4221. test ! -s conftest.err
  4222. } && test -s conftest$ac_exeext &&
  4223. $as_test_x conftest$ac_exeext; then
  4224. echo "*** The test program compiled, but did not run. This usually means"
  4225. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  4226. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  4227. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4228. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4229. echo "*** is required on your system"
  4230. echo "***"
  4231. echo "*** If you have an old version installed, it is best to remove it, although"
  4232. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4233. else
  4234. echo "$as_me: failed program was:" >&5
  4235. sed 's/^/| /' conftest.$ac_ext >&5
  4236. echo "*** The test program failed to compile or link. See the file config.log for the"
  4237. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  4238. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  4239. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  4240. fi
  4241. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4242. conftest$ac_exeext conftest.$ac_ext
  4243. CPPFLAGS="$ac_save_CPPFLAGS"
  4244. LIBS="$ac_save_LIBS"
  4245. fi
  4246. fi
  4247. XML_CPPFLAGS=""
  4248. XML_LIBS=""
  4249. :
  4250. fi
  4251. rm -f conf.xmltest
  4252. if test "x$have_libxml2" = "xyes"; then
  4253. cat >>confdefs.h <<\_ACEOF
  4254. #define HAVE_LIBXML2 1
  4255. _ACEOF
  4256. fi
  4257. fi
  4258. if test "x$with_gnutls" = "xyes"; then
  4259. # Check whether --with-libgnutls-prefix was given.
  4260. if test "${with_libgnutls_prefix+set}" = set; then
  4261. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  4262. else
  4263. libgnutls_config_prefix=""
  4264. fi
  4265. if test x$libgnutls_config_prefix != x ; then
  4266. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  4267. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  4268. fi
  4269. fi
  4270. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  4271. set dummy libgnutls-config; ac_word=$2
  4272. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4273. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4274. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  4275. echo $ECHO_N "(cached) $ECHO_C" >&6
  4276. else
  4277. case $LIBGNUTLS_CONFIG in
  4278. [\\/]* | ?:[\\/]*)
  4279. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  4280. ;;
  4281. *)
  4282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4283. for as_dir in $PATH
  4284. do
  4285. IFS=$as_save_IFS
  4286. test -z "$as_dir" && as_dir=.
  4287. for ac_exec_ext in '' $ac_executable_extensions; do
  4288. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4289. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4290. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4291. break 2
  4292. fi
  4293. done
  4294. done
  4295. IFS=$as_save_IFS
  4296. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  4297. ;;
  4298. esac
  4299. fi
  4300. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  4301. if test -n "$LIBGNUTLS_CONFIG"; then
  4302. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  4303. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  4304. else
  4305. { echo "$as_me:$LINENO: result: no" >&5
  4306. echo "${ECHO_T}no" >&6; }
  4307. fi
  4308. min_libgnutls_version=1.2.9
  4309. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  4310. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  4311. no_libgnutls=""
  4312. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4313. no_libgnutls=yes
  4314. else
  4315. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  4316. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  4317. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  4318. ac_save_CFLAGS="$CFLAGS"
  4319. ac_save_LIBS="$LIBS"
  4320. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4321. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4322. rm -f conf.libgnutlstest
  4323. if test "$cross_compiling" = yes; then
  4324. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4325. else
  4326. cat >conftest.$ac_ext <<_ACEOF
  4327. /* confdefs.h. */
  4328. _ACEOF
  4329. cat confdefs.h >>conftest.$ac_ext
  4330. cat >>conftest.$ac_ext <<_ACEOF
  4331. /* end confdefs.h. */
  4332. #include <stdio.h>
  4333. #include <stdlib.h>
  4334. #include <string.h>
  4335. #include <gnutls/gnutls.h>
  4336. int
  4337. main ()
  4338. {
  4339. system ("touch conf.libgnutlstest");
  4340. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  4341. {
  4342. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  4343. "$libgnutls_config_version", gnutls_check_version(NULL) );
  4344. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  4345. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  4346. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  4347. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  4348. printf("*** required on your system.\n");
  4349. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  4350. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  4351. printf("*** before re-running configure\n");
  4352. }
  4353. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  4354. {
  4355. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  4356. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  4357. }
  4358. else
  4359. {
  4360. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  4361. {
  4362. return 0;
  4363. }
  4364. else
  4365. {
  4366. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  4367. gnutls_check_version(NULL) );
  4368. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  4369. "$min_libgnutls_version" );
  4370. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  4371. printf("*** \n");
  4372. printf("*** If you have already installed a sufficiently new version, this error\n");
  4373. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  4374. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4375. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  4376. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  4377. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4378. printf("*** so that the correct libraries are found at run-time))\n");
  4379. }
  4380. }
  4381. return 1;
  4382. }
  4383. _ACEOF
  4384. rm -f conftest$ac_exeext
  4385. if { (ac_try="$ac_link"
  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_link") 2>&5
  4392. ac_status=$?
  4393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4394. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4395. { (case "(($ac_try" in
  4396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4397. *) ac_try_echo=$ac_try;;
  4398. esac
  4399. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4400. (eval "$ac_try") 2>&5
  4401. ac_status=$?
  4402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4403. (exit $ac_status); }; }; then
  4404. :
  4405. else
  4406. echo "$as_me: program exited with status $ac_status" >&5
  4407. echo "$as_me: failed program was:" >&5
  4408. sed 's/^/| /' conftest.$ac_ext >&5
  4409. ( exit $ac_status )
  4410. no_libgnutls=yes
  4411. fi
  4412. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4413. fi
  4414. CFLAGS="$ac_save_CFLAGS"
  4415. LIBS="$ac_save_LIBS"
  4416. fi
  4417. if test "x$no_libgnutls" = x ; then
  4418. { echo "$as_me:$LINENO: result: yes" >&5
  4419. echo "${ECHO_T}yes" >&6; }
  4420. have_libgnutls=yes
  4421. else
  4422. if test -f conf.libgnutlstest ; then
  4423. :
  4424. else
  4425. { echo "$as_me:$LINENO: result: no" >&5
  4426. echo "${ECHO_T}no" >&6; }
  4427. fi
  4428. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4429. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  4430. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  4431. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  4432. echo "*** full path to libgnutls-config."
  4433. else
  4434. if test -f conf.libgnutlstest ; then
  4435. :
  4436. else
  4437. echo "*** Could not run libgnutls test program, checking why..."
  4438. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4439. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4440. cat >conftest.$ac_ext <<_ACEOF
  4441. /* confdefs.h. */
  4442. _ACEOF
  4443. cat confdefs.h >>conftest.$ac_ext
  4444. cat >>conftest.$ac_ext <<_ACEOF
  4445. /* end confdefs.h. */
  4446. #include <stdio.h>
  4447. #include <stdlib.h>
  4448. #include <string.h>
  4449. #include <gnutls/gnutls.h>
  4450. int
  4451. main ()
  4452. {
  4453. return !!gnutls_check_version(NULL);
  4454. ;
  4455. return 0;
  4456. }
  4457. _ACEOF
  4458. rm -f conftest.$ac_objext conftest$ac_exeext
  4459. if { (ac_try="$ac_link"
  4460. case "(($ac_try" in
  4461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4462. *) ac_try_echo=$ac_try;;
  4463. esac
  4464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4465. (eval "$ac_link") 2>conftest.er1
  4466. ac_status=$?
  4467. grep -v '^ *+' conftest.er1 >conftest.err
  4468. rm -f conftest.er1
  4469. cat conftest.err >&5
  4470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4471. (exit $ac_status); } && {
  4472. test -z "$ac_cxx_werror_flag" ||
  4473. test ! -s conftest.err
  4474. } && test -s conftest$ac_exeext &&
  4475. $as_test_x conftest$ac_exeext; then
  4476. echo "*** The test program compiled, but did not run. This usually means"
  4477. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  4478. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  4479. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4480. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4481. echo "*** is required on your system"
  4482. echo "***"
  4483. echo "*** If you have an old version installed, it is best to remove it, although"
  4484. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4485. echo "***"
  4486. else
  4487. echo "$as_me: failed program was:" >&5
  4488. sed 's/^/| /' conftest.$ac_ext >&5
  4489. echo "*** The test program failed to compile or link. See the file config.log for the"
  4490. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  4491. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  4492. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  4493. fi
  4494. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4495. conftest$ac_exeext conftest.$ac_ext
  4496. CFLAGS="$ac_save_CFLAGS"
  4497. LIBS="$ac_save_LIBS"
  4498. fi
  4499. fi
  4500. LIBGNUTLS_CFLAGS=""
  4501. LIBGNUTLS_LIBS=""
  4502. :
  4503. fi
  4504. rm -f conf.libgnutlstest
  4505. if test "x$have_libgnutls" = "xyes"; then
  4506. cat >>confdefs.h <<\_ACEOF
  4507. #define HAVE_LIBGNUTLS 1
  4508. _ACEOF
  4509. fi
  4510. fi
  4511. if test "x$have_libgnutls" = "xyes"; then
  4512. # Check whether --with-libgcrypt-prefix was given.
  4513. if test "${with_libgcrypt_prefix+set}" = set; then
  4514. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  4515. else
  4516. libgcrypt_config_prefix=""
  4517. fi
  4518. if test x$libgcrypt_config_prefix != x ; then
  4519. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  4520. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  4521. fi
  4522. fi
  4523. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  4524. set dummy libgcrypt-config; ac_word=$2
  4525. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4526. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4527. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  4528. echo $ECHO_N "(cached) $ECHO_C" >&6
  4529. else
  4530. case $LIBGCRYPT_CONFIG in
  4531. [\\/]* | ?:[\\/]*)
  4532. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  4533. ;;
  4534. *)
  4535. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4536. for as_dir in $PATH
  4537. do
  4538. IFS=$as_save_IFS
  4539. test -z "$as_dir" && as_dir=.
  4540. for ac_exec_ext in '' $ac_executable_extensions; do
  4541. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4542. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4543. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4544. break 2
  4545. fi
  4546. done
  4547. done
  4548. IFS=$as_save_IFS
  4549. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  4550. ;;
  4551. esac
  4552. fi
  4553. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  4554. if test -n "$LIBGCRYPT_CONFIG"; then
  4555. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  4556. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  4557. else
  4558. { echo "$as_me:$LINENO: result: no" >&5
  4559. echo "${ECHO_T}no" >&6; }
  4560. fi
  4561. tmp=1.2.2
  4562. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  4563. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  4564. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  4565. else
  4566. req_libgcrypt_api=0
  4567. min_libgcrypt_version="$tmp"
  4568. fi
  4569. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  4570. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  4571. ok=no
  4572. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  4573. req_major=`echo $min_libgcrypt_version | \
  4574. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  4575. req_minor=`echo $min_libgcrypt_version | \
  4576. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  4577. req_micro=`echo $min_libgcrypt_version | \
  4578. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  4579. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  4580. major=`echo $libgcrypt_config_version | \
  4581. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  4582. minor=`echo $libgcrypt_config_version | \
  4583. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  4584. micro=`echo $libgcrypt_config_version | \
  4585. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  4586. if test "$major" -gt "$req_major"; then
  4587. ok=yes
  4588. else
  4589. if test "$major" -eq "$req_major"; then
  4590. if test "$minor" -gt "$req_minor"; then
  4591. ok=yes
  4592. else
  4593. if test "$minor" -eq "$req_minor"; then
  4594. if test "$micro" -ge "$req_micro"; then
  4595. ok=yes
  4596. fi
  4597. fi
  4598. fi
  4599. fi
  4600. fi
  4601. fi
  4602. if test $ok = yes; then
  4603. { echo "$as_me:$LINENO: result: yes" >&5
  4604. echo "${ECHO_T}yes" >&6; }
  4605. else
  4606. { echo "$as_me:$LINENO: result: no" >&5
  4607. echo "${ECHO_T}no" >&6; }
  4608. fi
  4609. if test $ok = yes; then
  4610. # If we have a recent libgcrypt, we should also check that the
  4611. # API is compatible
  4612. if test "$req_libgcrypt_api" -gt 0 ; then
  4613. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  4614. if test "$tmp" -gt 0 ; then
  4615. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  4616. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  4617. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  4618. { echo "$as_me:$LINENO: result: okay" >&5
  4619. echo "${ECHO_T}okay" >&6; }
  4620. else
  4621. ok=no
  4622. { echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  4623. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6; }
  4624. fi
  4625. fi
  4626. fi
  4627. fi
  4628. if test $ok = yes; then
  4629. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  4630. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  4631. have_libgcrypt=yes
  4632. else
  4633. LIBGCRYPT_CFLAGS=""
  4634. LIBGCRYPT_LIBS=""
  4635. :
  4636. fi
  4637. if test "x$have_libgcrypt" = "xyes"; then
  4638. cat >>confdefs.h <<\_ACEOF
  4639. #define HAVE_LIBGCRYPT 1
  4640. _ACEOF
  4641. fi
  4642. fi
  4643. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  4644. # Check whether --with-openssl-prefix was given.
  4645. if test "${with_openssl_prefix+set}" = set; then
  4646. withval=$with_openssl_prefix; openssl_prefix=$withval
  4647. else
  4648. openssl_prefix=""
  4649. fi
  4650. if test "x$openssl_prefix" = "x"; then
  4651. openssl_prefix="/usr/local"
  4652. fi
  4653. openssl_prefix_lib=$openssl_prefix/lib
  4654. openssl_prefix_include=$openssl_prefix/include
  4655. LIBS_save=$LIBS
  4656. CPPFLAGS_save=$CPPFLAGS
  4657. LIBS="-L$openssl_prefix_lib $LIBS"
  4658. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4659. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4660. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  4661. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4662. echo $ECHO_N "(cached) $ECHO_C" >&6
  4663. else
  4664. ac_check_lib_save_LIBS=$LIBS
  4665. LIBS="-lssl $LIBS"
  4666. cat >conftest.$ac_ext <<_ACEOF
  4667. /* confdefs.h. */
  4668. _ACEOF
  4669. cat confdefs.h >>conftest.$ac_ext
  4670. cat >>conftest.$ac_ext <<_ACEOF
  4671. /* end confdefs.h. */
  4672. /* Override any GCC internal prototype to avoid an error.
  4673. Use char because int might match the return type of a GCC
  4674. builtin and then its argument prototype would still apply. */
  4675. #ifdef __cplusplus
  4676. extern "C"
  4677. #endif
  4678. char SSL_library_init ();
  4679. int
  4680. main ()
  4681. {
  4682. return SSL_library_init ();
  4683. ;
  4684. return 0;
  4685. }
  4686. _ACEOF
  4687. rm -f conftest.$ac_objext conftest$ac_exeext
  4688. if { (ac_try="$ac_link"
  4689. case "(($ac_try" in
  4690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4691. *) ac_try_echo=$ac_try;;
  4692. esac
  4693. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4694. (eval "$ac_link") 2>conftest.er1
  4695. ac_status=$?
  4696. grep -v '^ *+' conftest.er1 >conftest.err
  4697. rm -f conftest.er1
  4698. cat conftest.err >&5
  4699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4700. (exit $ac_status); } && {
  4701. test -z "$ac_cxx_werror_flag" ||
  4702. test ! -s conftest.err
  4703. } && test -s conftest$ac_exeext &&
  4704. $as_test_x conftest$ac_exeext; then
  4705. ac_cv_lib_ssl_SSL_library_init=yes
  4706. else
  4707. echo "$as_me: failed program was:" >&5
  4708. sed 's/^/| /' conftest.$ac_ext >&5
  4709. ac_cv_lib_ssl_SSL_library_init=no
  4710. fi
  4711. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4712. conftest$ac_exeext conftest.$ac_ext
  4713. LIBS=$ac_check_lib_save_LIBS
  4714. fi
  4715. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4716. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  4717. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4718. have_openssl=yes; LIBS="-lssl $LIBS"
  4719. fi
  4720. if test "x$have_openssl" = "xyes"; then
  4721. have_openssl=no
  4722. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4723. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  4724. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4725. echo $ECHO_N "(cached) $ECHO_C" >&6
  4726. else
  4727. ac_check_lib_save_LIBS=$LIBS
  4728. LIBS="-lcrypto $LIBS"
  4729. cat >conftest.$ac_ext <<_ACEOF
  4730. /* confdefs.h. */
  4731. _ACEOF
  4732. cat confdefs.h >>conftest.$ac_ext
  4733. cat >>conftest.$ac_ext <<_ACEOF
  4734. /* end confdefs.h. */
  4735. int
  4736. main ()
  4737. {
  4738. return main ();
  4739. ;
  4740. return 0;
  4741. }
  4742. _ACEOF
  4743. rm -f conftest.$ac_objext conftest$ac_exeext
  4744. if { (ac_try="$ac_link"
  4745. case "(($ac_try" in
  4746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4747. *) ac_try_echo=$ac_try;;
  4748. esac
  4749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4750. (eval "$ac_link") 2>conftest.er1
  4751. ac_status=$?
  4752. grep -v '^ *+' conftest.er1 >conftest.err
  4753. rm -f conftest.er1
  4754. cat conftest.err >&5
  4755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4756. (exit $ac_status); } && {
  4757. test -z "$ac_cxx_werror_flag" ||
  4758. test ! -s conftest.err
  4759. } && test -s conftest$ac_exeext &&
  4760. $as_test_x conftest$ac_exeext; then
  4761. ac_cv_lib_crypto_main=yes
  4762. else
  4763. echo "$as_me: failed program was:" >&5
  4764. sed 's/^/| /' conftest.$ac_ext >&5
  4765. ac_cv_lib_crypto_main=no
  4766. fi
  4767. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4768. conftest$ac_exeext conftest.$ac_ext
  4769. LIBS=$ac_check_lib_save_LIBS
  4770. fi
  4771. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4772. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  4773. if test $ac_cv_lib_crypto_main = yes; then
  4774. have_openssl=yes; LIBS="-lcrypto $LIBS"
  4775. fi
  4776. if test "x$have_openssl" = "xyes"; then
  4777. cat >>confdefs.h <<\_ACEOF
  4778. #define HAVE_LIBSSL 1
  4779. _ACEOF
  4780. for ac_func in EVP_DigestInit_ex
  4781. do
  4782. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4783. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  4784. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  4785. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  4786. echo $ECHO_N "(cached) $ECHO_C" >&6
  4787. else
  4788. cat >conftest.$ac_ext <<_ACEOF
  4789. /* confdefs.h. */
  4790. _ACEOF
  4791. cat confdefs.h >>conftest.$ac_ext
  4792. cat >>conftest.$ac_ext <<_ACEOF
  4793. /* end confdefs.h. */
  4794. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4795. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4796. #define $ac_func innocuous_$ac_func
  4797. /* System header to define __stub macros and hopefully few prototypes,
  4798. which can conflict with char $ac_func (); below.
  4799. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4800. <limits.h> exists even on freestanding compilers. */
  4801. #ifdef __STDC__
  4802. # include <limits.h>
  4803. #else
  4804. # include <assert.h>
  4805. #endif
  4806. #undef $ac_func
  4807. /* Override any GCC internal prototype to avoid an error.
  4808. Use char because int might match the return type of a GCC
  4809. builtin and then its argument prototype would still apply. */
  4810. #ifdef __cplusplus
  4811. extern "C"
  4812. #endif
  4813. char $ac_func ();
  4814. /* The GNU C library defines this for functions which it implements
  4815. to always fail with ENOSYS. Some functions are actually named
  4816. something starting with __ and the normal name is an alias. */
  4817. #if defined __stub_$ac_func || defined __stub___$ac_func
  4818. choke me
  4819. #endif
  4820. int
  4821. main ()
  4822. {
  4823. return $ac_func ();
  4824. ;
  4825. return 0;
  4826. }
  4827. _ACEOF
  4828. rm -f conftest.$ac_objext conftest$ac_exeext
  4829. if { (ac_try="$ac_link"
  4830. case "(($ac_try" in
  4831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4832. *) ac_try_echo=$ac_try;;
  4833. esac
  4834. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4835. (eval "$ac_link") 2>conftest.er1
  4836. ac_status=$?
  4837. grep -v '^ *+' conftest.er1 >conftest.err
  4838. rm -f conftest.er1
  4839. cat conftest.err >&5
  4840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4841. (exit $ac_status); } && {
  4842. test -z "$ac_cxx_werror_flag" ||
  4843. test ! -s conftest.err
  4844. } && test -s conftest$ac_exeext &&
  4845. $as_test_x conftest$ac_exeext; then
  4846. eval "$as_ac_var=yes"
  4847. else
  4848. echo "$as_me: failed program was:" >&5
  4849. sed 's/^/| /' conftest.$ac_ext >&5
  4850. eval "$as_ac_var=no"
  4851. fi
  4852. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4853. conftest$ac_exeext conftest.$ac_ext
  4854. fi
  4855. ac_res=`eval echo '${'$as_ac_var'}'`
  4856. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4857. echo "${ECHO_T}$ac_res" >&6; }
  4858. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4859. cat >>confdefs.h <<_ACEOF
  4860. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4861. _ACEOF
  4862. have_digestinit_ex=yes
  4863. fi
  4864. done
  4865. if test "x$have_digestinit_ex" = "x"; then
  4866. cat >>confdefs.h <<\_ACEOF
  4867. #define HAVE_OLD_LIBSSL 1
  4868. _ACEOF
  4869. fi
  4870. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4871. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4872. for ac_func in EVP_sha256
  4873. do
  4874. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4875. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  4876. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  4877. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  4878. echo $ECHO_N "(cached) $ECHO_C" >&6
  4879. else
  4880. cat >conftest.$ac_ext <<_ACEOF
  4881. /* confdefs.h. */
  4882. _ACEOF
  4883. cat confdefs.h >>conftest.$ac_ext
  4884. cat >>conftest.$ac_ext <<_ACEOF
  4885. /* end confdefs.h. */
  4886. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4887. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4888. #define $ac_func innocuous_$ac_func
  4889. /* System header to define __stub macros and hopefully few prototypes,
  4890. which can conflict with char $ac_func (); below.
  4891. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4892. <limits.h> exists even on freestanding compilers. */
  4893. #ifdef __STDC__
  4894. # include <limits.h>
  4895. #else
  4896. # include <assert.h>
  4897. #endif
  4898. #undef $ac_func
  4899. /* Override any GCC internal prototype to avoid an error.
  4900. Use char because int might match the return type of a GCC
  4901. builtin and then its argument prototype would still apply. */
  4902. #ifdef __cplusplus
  4903. extern "C"
  4904. #endif
  4905. char $ac_func ();
  4906. /* The GNU C library defines this for functions which it implements
  4907. to always fail with ENOSYS. Some functions are actually named
  4908. something starting with __ and the normal name is an alias. */
  4909. #if defined __stub_$ac_func || defined __stub___$ac_func
  4910. choke me
  4911. #endif
  4912. int
  4913. main ()
  4914. {
  4915. return $ac_func ();
  4916. ;
  4917. return 0;
  4918. }
  4919. _ACEOF
  4920. rm -f conftest.$ac_objext conftest$ac_exeext
  4921. if { (ac_try="$ac_link"
  4922. case "(($ac_try" in
  4923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4924. *) ac_try_echo=$ac_try;;
  4925. esac
  4926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4927. (eval "$ac_link") 2>conftest.er1
  4928. ac_status=$?
  4929. grep -v '^ *+' conftest.er1 >conftest.err
  4930. rm -f conftest.er1
  4931. cat conftest.err >&5
  4932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4933. (exit $ac_status); } && {
  4934. test -z "$ac_cxx_werror_flag" ||
  4935. test ! -s conftest.err
  4936. } && test -s conftest$ac_exeext &&
  4937. $as_test_x conftest$ac_exeext; then
  4938. eval "$as_ac_var=yes"
  4939. else
  4940. echo "$as_me: failed program was:" >&5
  4941. sed 's/^/| /' conftest.$ac_ext >&5
  4942. eval "$as_ac_var=no"
  4943. fi
  4944. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4945. conftest$ac_exeext conftest.$ac_ext
  4946. fi
  4947. ac_res=`eval echo '${'$as_ac_var'}'`
  4948. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4949. echo "${ECHO_T}$ac_res" >&6; }
  4950. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4951. cat >>confdefs.h <<_ACEOF
  4952. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4953. _ACEOF
  4954. fi
  4955. done
  4956. fi
  4957. fi
  4958. LIBS=$LIBS_save
  4959. CPPFLAGS=$CPPFLAGS_save
  4960. fi
  4961. if test "x$with_libcares" = "xyes"; then
  4962. # Check whether --with-libcares-prefix was given.
  4963. if test "${with_libcares_prefix+set}" = set; then
  4964. withval=$with_libcares_prefix; libcares_prefix=$withval
  4965. else
  4966. libcares_prefix=""
  4967. fi
  4968. if test "x$libcares_prefix" = "x"; then
  4969. libcares_prefix="/usr"
  4970. fi
  4971. libcares_prefix_lib=$libcares_prefix/lib
  4972. libcares_prefix_include=$libcares_prefix/include
  4973. LIBS_save=$LIBS
  4974. CPPFLAGS_save=$CPPFLAGS
  4975. LIBS="-L$libcares_prefix_lib $LIBS"
  4976. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  4977. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  4978. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  4979. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  4980. echo $ECHO_N "(cached) $ECHO_C" >&6
  4981. else
  4982. ac_check_lib_save_LIBS=$LIBS
  4983. LIBS="-lcares $LIBS"
  4984. cat >conftest.$ac_ext <<_ACEOF
  4985. /* confdefs.h. */
  4986. _ACEOF
  4987. cat confdefs.h >>conftest.$ac_ext
  4988. cat >>conftest.$ac_ext <<_ACEOF
  4989. /* end confdefs.h. */
  4990. /* Override any GCC internal prototype to avoid an error.
  4991. Use char because int might match the return type of a GCC
  4992. builtin and then its argument prototype would still apply. */
  4993. #ifdef __cplusplus
  4994. extern "C"
  4995. #endif
  4996. char ares_init ();
  4997. int
  4998. main ()
  4999. {
  5000. return ares_init ();
  5001. ;
  5002. return 0;
  5003. }
  5004. _ACEOF
  5005. rm -f conftest.$ac_objext conftest$ac_exeext
  5006. if { (ac_try="$ac_link"
  5007. case "(($ac_try" in
  5008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5009. *) ac_try_echo=$ac_try;;
  5010. esac
  5011. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5012. (eval "$ac_link") 2>conftest.er1
  5013. ac_status=$?
  5014. grep -v '^ *+' conftest.er1 >conftest.err
  5015. rm -f conftest.er1
  5016. cat conftest.err >&5
  5017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5018. (exit $ac_status); } && {
  5019. test -z "$ac_cxx_werror_flag" ||
  5020. test ! -s conftest.err
  5021. } && test -s conftest$ac_exeext &&
  5022. $as_test_x conftest$ac_exeext; then
  5023. ac_cv_lib_cares_ares_init=yes
  5024. else
  5025. echo "$as_me: failed program was:" >&5
  5026. sed 's/^/| /' conftest.$ac_ext >&5
  5027. ac_cv_lib_cares_ares_init=no
  5028. fi
  5029. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5030. conftest$ac_exeext conftest.$ac_ext
  5031. LIBS=$ac_check_lib_save_LIBS
  5032. fi
  5033. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  5034. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  5035. if test $ac_cv_lib_cares_ares_init = yes; then
  5036. have_libcares=yes
  5037. fi
  5038. if test "x$have_libcares" = "xyes"; then
  5039. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  5040. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  5041. cat >conftest.$ac_ext <<_ACEOF
  5042. /* confdefs.h. */
  5043. _ACEOF
  5044. cat confdefs.h >>conftest.$ac_ext
  5045. cat >>conftest.$ac_ext <<_ACEOF
  5046. /* end confdefs.h. */
  5047. #include <ares.h>
  5048. void callback(void* arg, int status, int timeouts, struct hostent* host);
  5049. int
  5050. main ()
  5051. {
  5052. ares_channel channel;
  5053. ares_gethostbyname(channel, "foo", 0, callback, 0);
  5054. ;
  5055. return 0;
  5056. }
  5057. _ACEOF
  5058. rm -f conftest.$ac_objext
  5059. if { (ac_try="$ac_compile"
  5060. case "(($ac_try" in
  5061. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5062. *) ac_try_echo=$ac_try;;
  5063. esac
  5064. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5065. (eval "$ac_compile") 2>conftest.er1
  5066. ac_status=$?
  5067. grep -v '^ *+' conftest.er1 >conftest.err
  5068. rm -f conftest.er1
  5069. cat conftest.err >&5
  5070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5071. (exit $ac_status); } && {
  5072. test -z "$ac_cxx_werror_flag" ||
  5073. test ! -s conftest.err
  5074. } && test -s conftest.$ac_objext; then
  5075. have_libcares1_5=yes
  5076. else
  5077. echo "$as_me: failed program was:" >&5
  5078. sed 's/^/| /' conftest.$ac_ext >&5
  5079. have_libcares1_5=no
  5080. fi
  5081. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5082. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  5083. echo "${ECHO_T}$have_libcares1_5" >&6; }
  5084. if test "x$have_libcares1_5" = "xyes"; then
  5085. cat >>confdefs.h <<\_ACEOF
  5086. #define HAVE_LIBCARES1_5 1
  5087. _ACEOF
  5088. fi
  5089. cat >>confdefs.h <<\_ACEOF
  5090. #define HAVE_LIBCARES 1
  5091. _ACEOF
  5092. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  5093. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  5094. fi
  5095. LIBS=$LIBS_save
  5096. CPPFLAGS=$CPPFLAGS_save
  5097. fi
  5098. if test "x$have_libcares" = "x"; then
  5099. if test "x$with_libares" = "xyes"; then
  5100. # Check whether --with-libares-prefix was given.
  5101. if test "${with_libares_prefix+set}" = set; then
  5102. withval=$with_libares_prefix; libares_prefix=$withval
  5103. else
  5104. libares_prefix=""
  5105. fi
  5106. if test "x$libares_prefix" = "x"; then
  5107. libares_prefix="/usr"
  5108. fi
  5109. libares_prefix_lib=$libares_prefix/lib
  5110. libares_prefix_include=$libares_prefix/include
  5111. LIBS_save=$LIBS
  5112. CPPFLAGS_save=$CPPFLAGS
  5113. LIBS="-L$libares_prefix_lib $LIBS"
  5114. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  5115. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  5116. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  5117. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  5118. echo $ECHO_N "(cached) $ECHO_C" >&6
  5119. else
  5120. ac_check_lib_save_LIBS=$LIBS
  5121. LIBS="-lares $LIBS"
  5122. cat >conftest.$ac_ext <<_ACEOF
  5123. /* confdefs.h. */
  5124. _ACEOF
  5125. cat confdefs.h >>conftest.$ac_ext
  5126. cat >>conftest.$ac_ext <<_ACEOF
  5127. /* end confdefs.h. */
  5128. /* Override any GCC internal prototype to avoid an error.
  5129. Use char because int might match the return type of a GCC
  5130. builtin and then its argument prototype would still apply. */
  5131. #ifdef __cplusplus
  5132. extern "C"
  5133. #endif
  5134. char ares_init ();
  5135. int
  5136. main ()
  5137. {
  5138. return ares_init ();
  5139. ;
  5140. return 0;
  5141. }
  5142. _ACEOF
  5143. rm -f conftest.$ac_objext conftest$ac_exeext
  5144. if { (ac_try="$ac_link"
  5145. case "(($ac_try" in
  5146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5147. *) ac_try_echo=$ac_try;;
  5148. esac
  5149. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5150. (eval "$ac_link") 2>conftest.er1
  5151. ac_status=$?
  5152. grep -v '^ *+' conftest.er1 >conftest.err
  5153. rm -f conftest.er1
  5154. cat conftest.err >&5
  5155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5156. (exit $ac_status); } && {
  5157. test -z "$ac_cxx_werror_flag" ||
  5158. test ! -s conftest.err
  5159. } && test -s conftest$ac_exeext &&
  5160. $as_test_x conftest$ac_exeext; then
  5161. ac_cv_lib_ares_ares_init=yes
  5162. else
  5163. echo "$as_me: failed program was:" >&5
  5164. sed 's/^/| /' conftest.$ac_ext >&5
  5165. ac_cv_lib_ares_ares_init=no
  5166. fi
  5167. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5168. conftest$ac_exeext conftest.$ac_ext
  5169. LIBS=$ac_check_lib_save_LIBS
  5170. fi
  5171. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  5172. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  5173. if test $ac_cv_lib_ares_ares_init = yes; then
  5174. have_libares=yes
  5175. fi
  5176. if test "x$have_libares" = "xyes"; then
  5177. cat >>confdefs.h <<\_ACEOF
  5178. #define HAVE_LIBARES 1
  5179. _ACEOF
  5180. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  5181. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  5182. fi
  5183. LIBS=$LIBS_save
  5184. CPPFLAGS=$CPPFLAGS_save
  5185. fi
  5186. fi
  5187. # Define variables based on the result of the checks for libraries.
  5188. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  5189. cat >>confdefs.h <<\_ACEOF
  5190. #define ENABLE_SSL 1
  5191. _ACEOF
  5192. fi
  5193. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  5194. cat >>confdefs.h <<\_ACEOF
  5195. #define ENABLE_MESSAGE_DIGEST 1
  5196. _ACEOF
  5197. if true; then
  5198. ENABLE_MESSAGE_DIGEST_TRUE=
  5199. ENABLE_MESSAGE_DIGEST_FALSE='#'
  5200. else
  5201. ENABLE_MESSAGE_DIGEST_TRUE='#'
  5202. ENABLE_MESSAGE_DIGEST_FALSE=
  5203. fi
  5204. enable_message_digest=yes
  5205. else
  5206. if false; then
  5207. ENABLE_MESSAGE_DIGEST_TRUE=
  5208. ENABLE_MESSAGE_DIGEST_FALSE='#'
  5209. else
  5210. ENABLE_MESSAGE_DIGEST_TRUE='#'
  5211. ENABLE_MESSAGE_DIGEST_FALSE=
  5212. fi
  5213. fi
  5214. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  5215. cat >>confdefs.h <<\_ACEOF
  5216. #define ENABLE_BITTORRENT 1
  5217. _ACEOF
  5218. if true; then
  5219. ENABLE_BITTORRENT_TRUE=
  5220. ENABLE_BITTORRENT_FALSE='#'
  5221. else
  5222. ENABLE_BITTORRENT_TRUE='#'
  5223. ENABLE_BITTORRENT_FALSE=
  5224. fi
  5225. else
  5226. enable_bittorrent=no
  5227. if false; then
  5228. ENABLE_BITTORRENT_TRUE=
  5229. ENABLE_BITTORRENT_FALSE='#'
  5230. else
  5231. ENABLE_BITTORRENT_TRUE='#'
  5232. ENABLE_BITTORRENT_FALSE=
  5233. fi
  5234. fi
  5235. if test "x$have_libxml2" = "xyes" && test "x$enable_metalink" = "xyes"; then
  5236. cat >>confdefs.h <<\_ACEOF
  5237. #define ENABLE_METALINK 1
  5238. _ACEOF
  5239. if true; then
  5240. ENABLE_METALINK_TRUE=
  5241. ENABLE_METALINK_FALSE='#'
  5242. else
  5243. ENABLE_METALINK_TRUE='#'
  5244. ENABLE_METALINK_FALSE=
  5245. fi
  5246. else
  5247. enable_metalink=no
  5248. if false; then
  5249. ENABLE_METALINK_TRUE=
  5250. ENABLE_METALINK_FALSE='#'
  5251. else
  5252. ENABLE_METALINK_TRUE='#'
  5253. ENABLE_METALINK_FALSE=
  5254. fi
  5255. fi
  5256. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  5257. cat >>confdefs.h <<\_ACEOF
  5258. #define ENABLE_ASYNC_DNS 1
  5259. _ACEOF
  5260. if true; then
  5261. ENABLE_ASYNC_DNS_TRUE=
  5262. ENABLE_ASYNC_DNS_FALSE='#'
  5263. else
  5264. ENABLE_ASYNC_DNS_TRUE='#'
  5265. ENABLE_ASYNC_DNS_FALSE=
  5266. fi
  5267. else
  5268. if false; then
  5269. ENABLE_ASYNC_DNS_TRUE=
  5270. ENABLE_ASYNC_DNS_FALSE='#'
  5271. else
  5272. ENABLE_ASYNC_DNS_TRUE='#'
  5273. ENABLE_ASYNC_DNS_FALSE=
  5274. fi
  5275. fi
  5276. # Checks for header files.
  5277. ac_ext=cpp
  5278. ac_cpp='$CXXCPP $CPPFLAGS'
  5279. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5280. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5281. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5282. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  5283. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  5284. if test -z "$CXXCPP"; then
  5285. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  5286. echo $ECHO_N "(cached) $ECHO_C" >&6
  5287. else
  5288. # Double quotes because CXXCPP needs to be expanded
  5289. for CXXCPP in "$CXX -E" "/lib/cpp"
  5290. do
  5291. ac_preproc_ok=false
  5292. for ac_cxx_preproc_warn_flag in '' yes
  5293. do
  5294. # Use a header file that comes with gcc, so configuring glibc
  5295. # with a fresh cross-compiler works.
  5296. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5297. # <limits.h> exists even on freestanding compilers.
  5298. # On the NeXT, cc -E runs the code through the compiler's parser,
  5299. # not just through cpp. "Syntax error" is here to catch this case.
  5300. cat >conftest.$ac_ext <<_ACEOF
  5301. /* confdefs.h. */
  5302. _ACEOF
  5303. cat confdefs.h >>conftest.$ac_ext
  5304. cat >>conftest.$ac_ext <<_ACEOF
  5305. /* end confdefs.h. */
  5306. #ifdef __STDC__
  5307. # include <limits.h>
  5308. #else
  5309. # include <assert.h>
  5310. #endif
  5311. Syntax error
  5312. _ACEOF
  5313. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5314. case "(($ac_try" in
  5315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5316. *) ac_try_echo=$ac_try;;
  5317. esac
  5318. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5319. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5320. ac_status=$?
  5321. grep -v '^ *+' conftest.er1 >conftest.err
  5322. rm -f conftest.er1
  5323. cat conftest.err >&5
  5324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5325. (exit $ac_status); } >/dev/null && {
  5326. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5327. test ! -s conftest.err
  5328. }; then
  5329. :
  5330. else
  5331. echo "$as_me: failed program was:" >&5
  5332. sed 's/^/| /' conftest.$ac_ext >&5
  5333. # Broken: fails on valid input.
  5334. continue
  5335. fi
  5336. rm -f conftest.err conftest.$ac_ext
  5337. # OK, works on sane cases. Now check whether nonexistent headers
  5338. # can be detected and how.
  5339. cat >conftest.$ac_ext <<_ACEOF
  5340. /* confdefs.h. */
  5341. _ACEOF
  5342. cat confdefs.h >>conftest.$ac_ext
  5343. cat >>conftest.$ac_ext <<_ACEOF
  5344. /* end confdefs.h. */
  5345. #include <ac_nonexistent.h>
  5346. _ACEOF
  5347. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5348. case "(($ac_try" in
  5349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5350. *) ac_try_echo=$ac_try;;
  5351. esac
  5352. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5353. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5354. ac_status=$?
  5355. grep -v '^ *+' conftest.er1 >conftest.err
  5356. rm -f conftest.er1
  5357. cat conftest.err >&5
  5358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5359. (exit $ac_status); } >/dev/null && {
  5360. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5361. test ! -s conftest.err
  5362. }; then
  5363. # Broken: success on invalid input.
  5364. continue
  5365. else
  5366. echo "$as_me: failed program was:" >&5
  5367. sed 's/^/| /' conftest.$ac_ext >&5
  5368. # Passes both tests.
  5369. ac_preproc_ok=:
  5370. break
  5371. fi
  5372. rm -f conftest.err conftest.$ac_ext
  5373. done
  5374. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5375. rm -f conftest.err conftest.$ac_ext
  5376. if $ac_preproc_ok; then
  5377. break
  5378. fi
  5379. done
  5380. ac_cv_prog_CXXCPP=$CXXCPP
  5381. fi
  5382. CXXCPP=$ac_cv_prog_CXXCPP
  5383. else
  5384. ac_cv_prog_CXXCPP=$CXXCPP
  5385. fi
  5386. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  5387. echo "${ECHO_T}$CXXCPP" >&6; }
  5388. ac_preproc_ok=false
  5389. for ac_cxx_preproc_warn_flag in '' yes
  5390. do
  5391. # Use a header file that comes with gcc, so configuring glibc
  5392. # with a fresh cross-compiler works.
  5393. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5394. # <limits.h> exists even on freestanding compilers.
  5395. # On the NeXT, cc -E runs the code through the compiler's parser,
  5396. # not just through cpp. "Syntax error" is here to catch this case.
  5397. cat >conftest.$ac_ext <<_ACEOF
  5398. /* confdefs.h. */
  5399. _ACEOF
  5400. cat confdefs.h >>conftest.$ac_ext
  5401. cat >>conftest.$ac_ext <<_ACEOF
  5402. /* end confdefs.h. */
  5403. #ifdef __STDC__
  5404. # include <limits.h>
  5405. #else
  5406. # include <assert.h>
  5407. #endif
  5408. Syntax error
  5409. _ACEOF
  5410. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5411. case "(($ac_try" in
  5412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5413. *) ac_try_echo=$ac_try;;
  5414. esac
  5415. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5416. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5417. ac_status=$?
  5418. grep -v '^ *+' conftest.er1 >conftest.err
  5419. rm -f conftest.er1
  5420. cat conftest.err >&5
  5421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5422. (exit $ac_status); } >/dev/null && {
  5423. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5424. test ! -s conftest.err
  5425. }; then
  5426. :
  5427. else
  5428. echo "$as_me: failed program was:" >&5
  5429. sed 's/^/| /' conftest.$ac_ext >&5
  5430. # Broken: fails on valid input.
  5431. continue
  5432. fi
  5433. rm -f conftest.err conftest.$ac_ext
  5434. # OK, works on sane cases. Now check whether nonexistent headers
  5435. # can be detected and how.
  5436. cat >conftest.$ac_ext <<_ACEOF
  5437. /* confdefs.h. */
  5438. _ACEOF
  5439. cat confdefs.h >>conftest.$ac_ext
  5440. cat >>conftest.$ac_ext <<_ACEOF
  5441. /* end confdefs.h. */
  5442. #include <ac_nonexistent.h>
  5443. _ACEOF
  5444. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5445. case "(($ac_try" in
  5446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5447. *) ac_try_echo=$ac_try;;
  5448. esac
  5449. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5450. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5451. ac_status=$?
  5452. grep -v '^ *+' conftest.er1 >conftest.err
  5453. rm -f conftest.er1
  5454. cat conftest.err >&5
  5455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5456. (exit $ac_status); } >/dev/null && {
  5457. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  5458. test ! -s conftest.err
  5459. }; then
  5460. # Broken: success on invalid input.
  5461. continue
  5462. else
  5463. echo "$as_me: failed program was:" >&5
  5464. sed 's/^/| /' conftest.$ac_ext >&5
  5465. # Passes both tests.
  5466. ac_preproc_ok=:
  5467. break
  5468. fi
  5469. rm -f conftest.err conftest.$ac_ext
  5470. done
  5471. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5472. rm -f conftest.err conftest.$ac_ext
  5473. if $ac_preproc_ok; then
  5474. :
  5475. else
  5476. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5477. See \`config.log' for more details." >&5
  5478. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  5479. See \`config.log' for more details." >&2;}
  5480. { (exit 1); exit 1; }; }
  5481. fi
  5482. ac_ext=cpp
  5483. ac_cpp='$CXXCPP $CPPFLAGS'
  5484. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5485. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5486. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5487. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5488. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5489. if test "${ac_cv_path_GREP+set}" = set; then
  5490. echo $ECHO_N "(cached) $ECHO_C" >&6
  5491. else
  5492. # Extract the first word of "grep ggrep" to use in msg output
  5493. if test -z "$GREP"; then
  5494. set dummy grep ggrep; ac_prog_name=$2
  5495. if test "${ac_cv_path_GREP+set}" = set; then
  5496. echo $ECHO_N "(cached) $ECHO_C" >&6
  5497. else
  5498. ac_path_GREP_found=false
  5499. # Loop through the user's path and test for each of PROGNAME-LIST
  5500. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5501. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5502. do
  5503. IFS=$as_save_IFS
  5504. test -z "$as_dir" && as_dir=.
  5505. for ac_prog in grep ggrep; do
  5506. for ac_exec_ext in '' $ac_executable_extensions; do
  5507. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5508. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5509. # Check for GNU ac_path_GREP and select it if it is found.
  5510. # Check for GNU $ac_path_GREP
  5511. case `"$ac_path_GREP" --version 2>&1` in
  5512. *GNU*)
  5513. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5514. *)
  5515. ac_count=0
  5516. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5517. while :
  5518. do
  5519. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5520. mv "conftest.tmp" "conftest.in"
  5521. cp "conftest.in" "conftest.nl"
  5522. echo 'GREP' >> "conftest.nl"
  5523. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5524. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5525. ac_count=`expr $ac_count + 1`
  5526. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5527. # Best one so far, save it but keep looking for a better one
  5528. ac_cv_path_GREP="$ac_path_GREP"
  5529. ac_path_GREP_max=$ac_count
  5530. fi
  5531. # 10*(2^10) chars as input seems more than enough
  5532. test $ac_count -gt 10 && break
  5533. done
  5534. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5535. esac
  5536. $ac_path_GREP_found && break 3
  5537. done
  5538. done
  5539. done
  5540. IFS=$as_save_IFS
  5541. fi
  5542. GREP="$ac_cv_path_GREP"
  5543. if test -z "$GREP"; then
  5544. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5545. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5546. { (exit 1); exit 1; }; }
  5547. fi
  5548. else
  5549. ac_cv_path_GREP=$GREP
  5550. fi
  5551. fi
  5552. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5553. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5554. GREP="$ac_cv_path_GREP"
  5555. { echo "$as_me:$LINENO: checking for egrep" >&5
  5556. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5557. if test "${ac_cv_path_EGREP+set}" = set; then
  5558. echo $ECHO_N "(cached) $ECHO_C" >&6
  5559. else
  5560. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5561. then ac_cv_path_EGREP="$GREP -E"
  5562. else
  5563. # Extract the first word of "egrep" to use in msg output
  5564. if test -z "$EGREP"; then
  5565. set dummy egrep; ac_prog_name=$2
  5566. if test "${ac_cv_path_EGREP+set}" = set; then
  5567. echo $ECHO_N "(cached) $ECHO_C" >&6
  5568. else
  5569. ac_path_EGREP_found=false
  5570. # Loop through the user's path and test for each of PROGNAME-LIST
  5571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5572. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5573. do
  5574. IFS=$as_save_IFS
  5575. test -z "$as_dir" && as_dir=.
  5576. for ac_prog in egrep; do
  5577. for ac_exec_ext in '' $ac_executable_extensions; do
  5578. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5579. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5580. # Check for GNU ac_path_EGREP and select it if it is found.
  5581. # Check for GNU $ac_path_EGREP
  5582. case `"$ac_path_EGREP" --version 2>&1` in
  5583. *GNU*)
  5584. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5585. *)
  5586. ac_count=0
  5587. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5588. while :
  5589. do
  5590. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5591. mv "conftest.tmp" "conftest.in"
  5592. cp "conftest.in" "conftest.nl"
  5593. echo 'EGREP' >> "conftest.nl"
  5594. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5595. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5596. ac_count=`expr $ac_count + 1`
  5597. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5598. # Best one so far, save it but keep looking for a better one
  5599. ac_cv_path_EGREP="$ac_path_EGREP"
  5600. ac_path_EGREP_max=$ac_count
  5601. fi
  5602. # 10*(2^10) chars as input seems more than enough
  5603. test $ac_count -gt 10 && break
  5604. done
  5605. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5606. esac
  5607. $ac_path_EGREP_found && break 3
  5608. done
  5609. done
  5610. done
  5611. IFS=$as_save_IFS
  5612. fi
  5613. EGREP="$ac_cv_path_EGREP"
  5614. if test -z "$EGREP"; then
  5615. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5616. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5617. { (exit 1); exit 1; }; }
  5618. fi
  5619. else
  5620. ac_cv_path_EGREP=$EGREP
  5621. fi
  5622. fi
  5623. fi
  5624. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5625. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5626. EGREP="$ac_cv_path_EGREP"
  5627. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5628. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5629. if test "${ac_cv_header_stdc+set}" = set; then
  5630. echo $ECHO_N "(cached) $ECHO_C" >&6
  5631. else
  5632. cat >conftest.$ac_ext <<_ACEOF
  5633. /* confdefs.h. */
  5634. _ACEOF
  5635. cat confdefs.h >>conftest.$ac_ext
  5636. cat >>conftest.$ac_ext <<_ACEOF
  5637. /* end confdefs.h. */
  5638. #include <stdlib.h>
  5639. #include <stdarg.h>
  5640. #include <string.h>
  5641. #include <float.h>
  5642. int
  5643. main ()
  5644. {
  5645. ;
  5646. return 0;
  5647. }
  5648. _ACEOF
  5649. rm -f conftest.$ac_objext
  5650. if { (ac_try="$ac_compile"
  5651. case "(($ac_try" in
  5652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5653. *) ac_try_echo=$ac_try;;
  5654. esac
  5655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5656. (eval "$ac_compile") 2>conftest.er1
  5657. ac_status=$?
  5658. grep -v '^ *+' conftest.er1 >conftest.err
  5659. rm -f conftest.er1
  5660. cat conftest.err >&5
  5661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5662. (exit $ac_status); } && {
  5663. test -z "$ac_cxx_werror_flag" ||
  5664. test ! -s conftest.err
  5665. } && test -s conftest.$ac_objext; then
  5666. ac_cv_header_stdc=yes
  5667. else
  5668. echo "$as_me: failed program was:" >&5
  5669. sed 's/^/| /' conftest.$ac_ext >&5
  5670. ac_cv_header_stdc=no
  5671. fi
  5672. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5673. if test $ac_cv_header_stdc = yes; then
  5674. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5675. cat >conftest.$ac_ext <<_ACEOF
  5676. /* confdefs.h. */
  5677. _ACEOF
  5678. cat confdefs.h >>conftest.$ac_ext
  5679. cat >>conftest.$ac_ext <<_ACEOF
  5680. /* end confdefs.h. */
  5681. #include <string.h>
  5682. _ACEOF
  5683. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5684. $EGREP "memchr" >/dev/null 2>&1; then
  5685. :
  5686. else
  5687. ac_cv_header_stdc=no
  5688. fi
  5689. rm -f conftest*
  5690. fi
  5691. if test $ac_cv_header_stdc = yes; then
  5692. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5693. cat >conftest.$ac_ext <<_ACEOF
  5694. /* confdefs.h. */
  5695. _ACEOF
  5696. cat confdefs.h >>conftest.$ac_ext
  5697. cat >>conftest.$ac_ext <<_ACEOF
  5698. /* end confdefs.h. */
  5699. #include <stdlib.h>
  5700. _ACEOF
  5701. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5702. $EGREP "free" >/dev/null 2>&1; then
  5703. :
  5704. else
  5705. ac_cv_header_stdc=no
  5706. fi
  5707. rm -f conftest*
  5708. fi
  5709. if test $ac_cv_header_stdc = yes; then
  5710. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5711. if test "$cross_compiling" = yes; then
  5712. :
  5713. else
  5714. cat >conftest.$ac_ext <<_ACEOF
  5715. /* confdefs.h. */
  5716. _ACEOF
  5717. cat confdefs.h >>conftest.$ac_ext
  5718. cat >>conftest.$ac_ext <<_ACEOF
  5719. /* end confdefs.h. */
  5720. #include <ctype.h>
  5721. #include <stdlib.h>
  5722. #if ((' ' & 0x0FF) == 0x020)
  5723. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5724. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5725. #else
  5726. # define ISLOWER(c) \
  5727. (('a' <= (c) && (c) <= 'i') \
  5728. || ('j' <= (c) && (c) <= 'r') \
  5729. || ('s' <= (c) && (c) <= 'z'))
  5730. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5731. #endif
  5732. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5733. int
  5734. main ()
  5735. {
  5736. int i;
  5737. for (i = 0; i < 256; i++)
  5738. if (XOR (islower (i), ISLOWER (i))
  5739. || toupper (i) != TOUPPER (i))
  5740. return 2;
  5741. return 0;
  5742. }
  5743. _ACEOF
  5744. rm -f conftest$ac_exeext
  5745. if { (ac_try="$ac_link"
  5746. case "(($ac_try" in
  5747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5748. *) ac_try_echo=$ac_try;;
  5749. esac
  5750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5751. (eval "$ac_link") 2>&5
  5752. ac_status=$?
  5753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5754. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5755. { (case "(($ac_try" in
  5756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5757. *) ac_try_echo=$ac_try;;
  5758. esac
  5759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5760. (eval "$ac_try") 2>&5
  5761. ac_status=$?
  5762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5763. (exit $ac_status); }; }; then
  5764. :
  5765. else
  5766. echo "$as_me: program exited with status $ac_status" >&5
  5767. echo "$as_me: failed program was:" >&5
  5768. sed 's/^/| /' conftest.$ac_ext >&5
  5769. ( exit $ac_status )
  5770. ac_cv_header_stdc=no
  5771. fi
  5772. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5773. fi
  5774. fi
  5775. fi
  5776. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5777. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5778. if test $ac_cv_header_stdc = yes; then
  5779. cat >>confdefs.h <<\_ACEOF
  5780. #define STDC_HEADERS 1
  5781. _ACEOF
  5782. fi
  5783. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5784. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5785. inttypes.h stdint.h unistd.h
  5786. do
  5787. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5788. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5789. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5790. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5791. echo $ECHO_N "(cached) $ECHO_C" >&6
  5792. else
  5793. cat >conftest.$ac_ext <<_ACEOF
  5794. /* confdefs.h. */
  5795. _ACEOF
  5796. cat confdefs.h >>conftest.$ac_ext
  5797. cat >>conftest.$ac_ext <<_ACEOF
  5798. /* end confdefs.h. */
  5799. $ac_includes_default
  5800. #include <$ac_header>
  5801. _ACEOF
  5802. rm -f conftest.$ac_objext
  5803. if { (ac_try="$ac_compile"
  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_compile") 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_cxx_werror_flag" ||
  5817. test ! -s conftest.err
  5818. } && test -s conftest.$ac_objext; then
  5819. eval "$as_ac_Header=yes"
  5820. else
  5821. echo "$as_me: failed program was:" >&5
  5822. sed 's/^/| /' conftest.$ac_ext >&5
  5823. eval "$as_ac_Header=no"
  5824. fi
  5825. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5826. fi
  5827. ac_res=`eval echo '${'$as_ac_Header'}'`
  5828. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5829. echo "${ECHO_T}$ac_res" >&6; }
  5830. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5831. cat >>confdefs.h <<_ACEOF
  5832. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5833. _ACEOF
  5834. fi
  5835. done
  5836. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5837. # for constant arguments. Useless!
  5838. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  5839. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  5840. if test "${ac_cv_working_alloca_h+set}" = set; then
  5841. echo $ECHO_N "(cached) $ECHO_C" >&6
  5842. else
  5843. cat >conftest.$ac_ext <<_ACEOF
  5844. /* confdefs.h. */
  5845. _ACEOF
  5846. cat confdefs.h >>conftest.$ac_ext
  5847. cat >>conftest.$ac_ext <<_ACEOF
  5848. /* end confdefs.h. */
  5849. #include <alloca.h>
  5850. int
  5851. main ()
  5852. {
  5853. char *p = (char *) alloca (2 * sizeof (int));
  5854. if (p) return 0;
  5855. ;
  5856. return 0;
  5857. }
  5858. _ACEOF
  5859. rm -f conftest.$ac_objext conftest$ac_exeext
  5860. if { (ac_try="$ac_link"
  5861. case "(($ac_try" in
  5862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5863. *) ac_try_echo=$ac_try;;
  5864. esac
  5865. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5866. (eval "$ac_link") 2>conftest.er1
  5867. ac_status=$?
  5868. grep -v '^ *+' conftest.er1 >conftest.err
  5869. rm -f conftest.er1
  5870. cat conftest.err >&5
  5871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5872. (exit $ac_status); } && {
  5873. test -z "$ac_cxx_werror_flag" ||
  5874. test ! -s conftest.err
  5875. } && test -s conftest$ac_exeext &&
  5876. $as_test_x conftest$ac_exeext; then
  5877. ac_cv_working_alloca_h=yes
  5878. else
  5879. echo "$as_me: failed program was:" >&5
  5880. sed 's/^/| /' conftest.$ac_ext >&5
  5881. ac_cv_working_alloca_h=no
  5882. fi
  5883. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5884. conftest$ac_exeext conftest.$ac_ext
  5885. fi
  5886. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  5887. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  5888. if test $ac_cv_working_alloca_h = yes; then
  5889. cat >>confdefs.h <<\_ACEOF
  5890. #define HAVE_ALLOCA_H 1
  5891. _ACEOF
  5892. fi
  5893. { echo "$as_me:$LINENO: checking for alloca" >&5
  5894. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  5895. if test "${ac_cv_func_alloca_works+set}" = set; then
  5896. echo $ECHO_N "(cached) $ECHO_C" >&6
  5897. else
  5898. cat >conftest.$ac_ext <<_ACEOF
  5899. /* confdefs.h. */
  5900. _ACEOF
  5901. cat confdefs.h >>conftest.$ac_ext
  5902. cat >>conftest.$ac_ext <<_ACEOF
  5903. /* end confdefs.h. */
  5904. #ifdef __GNUC__
  5905. # define alloca __builtin_alloca
  5906. #else
  5907. # ifdef _MSC_VER
  5908. # include <malloc.h>
  5909. # define alloca _alloca
  5910. # else
  5911. # ifdef HAVE_ALLOCA_H
  5912. # include <alloca.h>
  5913. # else
  5914. # ifdef _AIX
  5915. #pragma alloca
  5916. # else
  5917. # ifndef alloca /* predefined by HP cc +Olibcalls */
  5918. char *alloca ();
  5919. # endif
  5920. # endif
  5921. # endif
  5922. # endif
  5923. #endif
  5924. int
  5925. main ()
  5926. {
  5927. char *p = (char *) alloca (1);
  5928. if (p) return 0;
  5929. ;
  5930. return 0;
  5931. }
  5932. _ACEOF
  5933. rm -f conftest.$ac_objext conftest$ac_exeext
  5934. if { (ac_try="$ac_link"
  5935. case "(($ac_try" in
  5936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5937. *) ac_try_echo=$ac_try;;
  5938. esac
  5939. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5940. (eval "$ac_link") 2>conftest.er1
  5941. ac_status=$?
  5942. grep -v '^ *+' conftest.er1 >conftest.err
  5943. rm -f conftest.er1
  5944. cat conftest.err >&5
  5945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5946. (exit $ac_status); } && {
  5947. test -z "$ac_cxx_werror_flag" ||
  5948. test ! -s conftest.err
  5949. } && test -s conftest$ac_exeext &&
  5950. $as_test_x conftest$ac_exeext; then
  5951. ac_cv_func_alloca_works=yes
  5952. else
  5953. echo "$as_me: failed program was:" >&5
  5954. sed 's/^/| /' conftest.$ac_ext >&5
  5955. ac_cv_func_alloca_works=no
  5956. fi
  5957. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5958. conftest$ac_exeext conftest.$ac_ext
  5959. fi
  5960. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  5961. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  5962. if test $ac_cv_func_alloca_works = yes; then
  5963. cat >>confdefs.h <<\_ACEOF
  5964. #define HAVE_ALLOCA 1
  5965. _ACEOF
  5966. else
  5967. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5968. # that cause trouble. Some versions do not even contain alloca or
  5969. # contain a buggy version. If you still want to use their alloca,
  5970. # use ar to extract alloca.o from them instead of compiling alloca.c.
  5971. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  5972. cat >>confdefs.h <<\_ACEOF
  5973. #define C_ALLOCA 1
  5974. _ACEOF
  5975. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  5976. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  5977. if test "${ac_cv_os_cray+set}" = set; then
  5978. echo $ECHO_N "(cached) $ECHO_C" >&6
  5979. else
  5980. cat >conftest.$ac_ext <<_ACEOF
  5981. /* confdefs.h. */
  5982. _ACEOF
  5983. cat confdefs.h >>conftest.$ac_ext
  5984. cat >>conftest.$ac_ext <<_ACEOF
  5985. /* end confdefs.h. */
  5986. #if defined CRAY && ! defined CRAY2
  5987. webecray
  5988. #else
  5989. wenotbecray
  5990. #endif
  5991. _ACEOF
  5992. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5993. $EGREP "webecray" >/dev/null 2>&1; then
  5994. ac_cv_os_cray=yes
  5995. else
  5996. ac_cv_os_cray=no
  5997. fi
  5998. rm -f conftest*
  5999. fi
  6000. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6001. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6002. if test $ac_cv_os_cray = yes; then
  6003. for ac_func in _getb67 GETB67 getb67; do
  6004. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6005. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6006. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6007. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6008. echo $ECHO_N "(cached) $ECHO_C" >&6
  6009. else
  6010. cat >conftest.$ac_ext <<_ACEOF
  6011. /* confdefs.h. */
  6012. _ACEOF
  6013. cat confdefs.h >>conftest.$ac_ext
  6014. cat >>conftest.$ac_ext <<_ACEOF
  6015. /* end confdefs.h. */
  6016. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6017. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6018. #define $ac_func innocuous_$ac_func
  6019. /* System header to define __stub macros and hopefully few prototypes,
  6020. which can conflict with char $ac_func (); below.
  6021. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6022. <limits.h> exists even on freestanding compilers. */
  6023. #ifdef __STDC__
  6024. # include <limits.h>
  6025. #else
  6026. # include <assert.h>
  6027. #endif
  6028. #undef $ac_func
  6029. /* Override any GCC internal prototype to avoid an error.
  6030. Use char because int might match the return type of a GCC
  6031. builtin and then its argument prototype would still apply. */
  6032. #ifdef __cplusplus
  6033. extern "C"
  6034. #endif
  6035. char $ac_func ();
  6036. /* The GNU C library defines this for functions which it implements
  6037. to always fail with ENOSYS. Some functions are actually named
  6038. something starting with __ and the normal name is an alias. */
  6039. #if defined __stub_$ac_func || defined __stub___$ac_func
  6040. choke me
  6041. #endif
  6042. int
  6043. main ()
  6044. {
  6045. return $ac_func ();
  6046. ;
  6047. return 0;
  6048. }
  6049. _ACEOF
  6050. rm -f conftest.$ac_objext conftest$ac_exeext
  6051. if { (ac_try="$ac_link"
  6052. case "(($ac_try" in
  6053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6054. *) ac_try_echo=$ac_try;;
  6055. esac
  6056. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6057. (eval "$ac_link") 2>conftest.er1
  6058. ac_status=$?
  6059. grep -v '^ *+' conftest.er1 >conftest.err
  6060. rm -f conftest.er1
  6061. cat conftest.err >&5
  6062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6063. (exit $ac_status); } && {
  6064. test -z "$ac_cxx_werror_flag" ||
  6065. test ! -s conftest.err
  6066. } && test -s conftest$ac_exeext &&
  6067. $as_test_x conftest$ac_exeext; then
  6068. eval "$as_ac_var=yes"
  6069. else
  6070. echo "$as_me: failed program was:" >&5
  6071. sed 's/^/| /' conftest.$ac_ext >&5
  6072. eval "$as_ac_var=no"
  6073. fi
  6074. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6075. conftest$ac_exeext conftest.$ac_ext
  6076. fi
  6077. ac_res=`eval echo '${'$as_ac_var'}'`
  6078. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6079. echo "${ECHO_T}$ac_res" >&6; }
  6080. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6081. cat >>confdefs.h <<_ACEOF
  6082. #define CRAY_STACKSEG_END $ac_func
  6083. _ACEOF
  6084. break
  6085. fi
  6086. done
  6087. fi
  6088. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6089. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6090. if test "${ac_cv_c_stack_direction+set}" = set; then
  6091. echo $ECHO_N "(cached) $ECHO_C" >&6
  6092. else
  6093. if test "$cross_compiling" = yes; then
  6094. ac_cv_c_stack_direction=0
  6095. else
  6096. cat >conftest.$ac_ext <<_ACEOF
  6097. /* confdefs.h. */
  6098. _ACEOF
  6099. cat confdefs.h >>conftest.$ac_ext
  6100. cat >>conftest.$ac_ext <<_ACEOF
  6101. /* end confdefs.h. */
  6102. $ac_includes_default
  6103. int
  6104. find_stack_direction ()
  6105. {
  6106. static char *addr = 0;
  6107. auto char dummy;
  6108. if (addr == 0)
  6109. {
  6110. addr = &dummy;
  6111. return find_stack_direction ();
  6112. }
  6113. else
  6114. return (&dummy > addr) ? 1 : -1;
  6115. }
  6116. int
  6117. main ()
  6118. {
  6119. return find_stack_direction () < 0;
  6120. }
  6121. _ACEOF
  6122. rm -f conftest$ac_exeext
  6123. if { (ac_try="$ac_link"
  6124. case "(($ac_try" in
  6125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6126. *) ac_try_echo=$ac_try;;
  6127. esac
  6128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6129. (eval "$ac_link") 2>&5
  6130. ac_status=$?
  6131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6132. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6133. { (case "(($ac_try" in
  6134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6135. *) ac_try_echo=$ac_try;;
  6136. esac
  6137. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6138. (eval "$ac_try") 2>&5
  6139. ac_status=$?
  6140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6141. (exit $ac_status); }; }; then
  6142. ac_cv_c_stack_direction=1
  6143. else
  6144. echo "$as_me: program exited with status $ac_status" >&5
  6145. echo "$as_me: failed program was:" >&5
  6146. sed 's/^/| /' conftest.$ac_ext >&5
  6147. ( exit $ac_status )
  6148. ac_cv_c_stack_direction=-1
  6149. fi
  6150. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6151. fi
  6152. fi
  6153. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6154. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6155. cat >>confdefs.h <<_ACEOF
  6156. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6157. _ACEOF
  6158. fi
  6159. #AC_HEADER_STDC
  6160. 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
  6161. do
  6162. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6163. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6164. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6165. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6166. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6167. echo $ECHO_N "(cached) $ECHO_C" >&6
  6168. fi
  6169. ac_res=`eval echo '${'$as_ac_Header'}'`
  6170. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6171. echo "${ECHO_T}$ac_res" >&6; }
  6172. else
  6173. # Is the header compilable?
  6174. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6175. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6176. cat >conftest.$ac_ext <<_ACEOF
  6177. /* confdefs.h. */
  6178. _ACEOF
  6179. cat confdefs.h >>conftest.$ac_ext
  6180. cat >>conftest.$ac_ext <<_ACEOF
  6181. /* end confdefs.h. */
  6182. $ac_includes_default
  6183. #include <$ac_header>
  6184. _ACEOF
  6185. rm -f conftest.$ac_objext
  6186. if { (ac_try="$ac_compile"
  6187. case "(($ac_try" in
  6188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6189. *) ac_try_echo=$ac_try;;
  6190. esac
  6191. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6192. (eval "$ac_compile") 2>conftest.er1
  6193. ac_status=$?
  6194. grep -v '^ *+' conftest.er1 >conftest.err
  6195. rm -f conftest.er1
  6196. cat conftest.err >&5
  6197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6198. (exit $ac_status); } && {
  6199. test -z "$ac_cxx_werror_flag" ||
  6200. test ! -s conftest.err
  6201. } && test -s conftest.$ac_objext; then
  6202. ac_header_compiler=yes
  6203. else
  6204. echo "$as_me: failed program was:" >&5
  6205. sed 's/^/| /' conftest.$ac_ext >&5
  6206. ac_header_compiler=no
  6207. fi
  6208. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6209. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6210. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6211. # Is the header present?
  6212. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6213. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6214. cat >conftest.$ac_ext <<_ACEOF
  6215. /* confdefs.h. */
  6216. _ACEOF
  6217. cat confdefs.h >>conftest.$ac_ext
  6218. cat >>conftest.$ac_ext <<_ACEOF
  6219. /* end confdefs.h. */
  6220. #include <$ac_header>
  6221. _ACEOF
  6222. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6223. case "(($ac_try" in
  6224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6225. *) ac_try_echo=$ac_try;;
  6226. esac
  6227. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6228. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6229. ac_status=$?
  6230. grep -v '^ *+' conftest.er1 >conftest.err
  6231. rm -f conftest.er1
  6232. cat conftest.err >&5
  6233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6234. (exit $ac_status); } >/dev/null && {
  6235. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6236. test ! -s conftest.err
  6237. }; then
  6238. ac_header_preproc=yes
  6239. else
  6240. echo "$as_me: failed program was:" >&5
  6241. sed 's/^/| /' conftest.$ac_ext >&5
  6242. ac_header_preproc=no
  6243. fi
  6244. rm -f conftest.err conftest.$ac_ext
  6245. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6246. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6247. # So? What about this header?
  6248. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6249. yes:no: )
  6250. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6251. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6252. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6253. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6254. ac_header_preproc=yes
  6255. ;;
  6256. no:yes:* )
  6257. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6258. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6259. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6260. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6261. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6262. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6263. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6264. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6265. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6266. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6267. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6268. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6269. ( cat <<\_ASBOX
  6270. ## ----------------------------------------------- ##
  6271. ## Report this to t-tujikawa@users.sourceforge.net ##
  6272. ## ----------------------------------------------- ##
  6273. _ASBOX
  6274. ) | sed "s/^/$as_me: WARNING: /" >&2
  6275. ;;
  6276. esac
  6277. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6278. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6279. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6280. echo $ECHO_N "(cached) $ECHO_C" >&6
  6281. else
  6282. eval "$as_ac_Header=\$ac_header_preproc"
  6283. fi
  6284. ac_res=`eval echo '${'$as_ac_Header'}'`
  6285. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6286. echo "${ECHO_T}$ac_res" >&6; }
  6287. fi
  6288. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6289. cat >>confdefs.h <<_ACEOF
  6290. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6291. _ACEOF
  6292. fi
  6293. done
  6294. # Checks for typedefs, structures, and compiler characteristics.
  6295. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6296. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  6297. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6298. echo $ECHO_N "(cached) $ECHO_C" >&6
  6299. else
  6300. cat >conftest.$ac_ext <<_ACEOF
  6301. /* confdefs.h. */
  6302. _ACEOF
  6303. cat confdefs.h >>conftest.$ac_ext
  6304. cat >>conftest.$ac_ext <<_ACEOF
  6305. /* end confdefs.h. */
  6306. #include <stdbool.h>
  6307. #ifndef bool
  6308. "error: bool is not defined"
  6309. #endif
  6310. #ifndef false
  6311. "error: false is not defined"
  6312. #endif
  6313. #if false
  6314. "error: false is not 0"
  6315. #endif
  6316. #ifndef true
  6317. "error: true is not defined"
  6318. #endif
  6319. #if true != 1
  6320. "error: true is not 1"
  6321. #endif
  6322. #ifndef __bool_true_false_are_defined
  6323. "error: __bool_true_false_are_defined is not defined"
  6324. #endif
  6325. struct s { _Bool s: 1; _Bool t; } s;
  6326. char a[true == 1 ? 1 : -1];
  6327. char b[false == 0 ? 1 : -1];
  6328. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6329. char d[(bool) 0.5 == true ? 1 : -1];
  6330. bool e = &s;
  6331. char f[(_Bool) 0.0 == false ? 1 : -1];
  6332. char g[true];
  6333. char h[sizeof (_Bool)];
  6334. char i[sizeof s.t];
  6335. enum { j = false, k = true, l = false * true, m = true * 256 };
  6336. _Bool n[m];
  6337. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6338. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6339. # if defined __xlc__ || defined __GNUC__
  6340. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6341. reported by James Lemley on 2005-10-05; see
  6342. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6343. This test is not quite right, since xlc is allowed to
  6344. reject this program, as the initializer for xlcbug is
  6345. not one of the forms that C requires support for.
  6346. However, doing the test right would require a runtime
  6347. test, and that would make cross-compilation harder.
  6348. Let us hope that IBM fixes the xlc bug, and also adds
  6349. support for this kind of constant expression. In the
  6350. meantime, this test will reject xlc, which is OK, since
  6351. our stdbool.h substitute should suffice. We also test
  6352. this with GCC, where it should work, to detect more
  6353. quickly whether someone messes up the test in the
  6354. future. */
  6355. char digs[] = "0123456789";
  6356. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6357. # endif
  6358. /* Catch a bug in an HP-UX C compiler. See
  6359. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6360. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6361. */
  6362. _Bool q = true;
  6363. _Bool *pq = &q;
  6364. int
  6365. main ()
  6366. {
  6367. *pq |= q;
  6368. *pq |= ! q;
  6369. /* Refer to every declared value, to avoid compiler optimizations. */
  6370. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6371. + !m + !n + !o + !p + !q + !pq);
  6372. ;
  6373. return 0;
  6374. }
  6375. _ACEOF
  6376. rm -f conftest.$ac_objext
  6377. if { (ac_try="$ac_compile"
  6378. case "(($ac_try" in
  6379. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6380. *) ac_try_echo=$ac_try;;
  6381. esac
  6382. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6383. (eval "$ac_compile") 2>conftest.er1
  6384. ac_status=$?
  6385. grep -v '^ *+' conftest.er1 >conftest.err
  6386. rm -f conftest.er1
  6387. cat conftest.err >&5
  6388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6389. (exit $ac_status); } && {
  6390. test -z "$ac_cxx_werror_flag" ||
  6391. test ! -s conftest.err
  6392. } && test -s conftest.$ac_objext; then
  6393. ac_cv_header_stdbool_h=yes
  6394. else
  6395. echo "$as_me: failed program was:" >&5
  6396. sed 's/^/| /' conftest.$ac_ext >&5
  6397. ac_cv_header_stdbool_h=no
  6398. fi
  6399. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6400. fi
  6401. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6402. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6403. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6404. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6405. if test "${ac_cv_type__Bool+set}" = set; then
  6406. echo $ECHO_N "(cached) $ECHO_C" >&6
  6407. else
  6408. cat >conftest.$ac_ext <<_ACEOF
  6409. /* confdefs.h. */
  6410. _ACEOF
  6411. cat confdefs.h >>conftest.$ac_ext
  6412. cat >>conftest.$ac_ext <<_ACEOF
  6413. /* end confdefs.h. */
  6414. $ac_includes_default
  6415. typedef _Bool ac__type_new_;
  6416. int
  6417. main ()
  6418. {
  6419. if ((ac__type_new_ *) 0)
  6420. return 0;
  6421. if (sizeof (ac__type_new_))
  6422. return 0;
  6423. ;
  6424. return 0;
  6425. }
  6426. _ACEOF
  6427. rm -f conftest.$ac_objext
  6428. if { (ac_try="$ac_compile"
  6429. case "(($ac_try" in
  6430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6431. *) ac_try_echo=$ac_try;;
  6432. esac
  6433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6434. (eval "$ac_compile") 2>conftest.er1
  6435. ac_status=$?
  6436. grep -v '^ *+' conftest.er1 >conftest.err
  6437. rm -f conftest.er1
  6438. cat conftest.err >&5
  6439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6440. (exit $ac_status); } && {
  6441. test -z "$ac_cxx_werror_flag" ||
  6442. test ! -s conftest.err
  6443. } && test -s conftest.$ac_objext; then
  6444. ac_cv_type__Bool=yes
  6445. else
  6446. echo "$as_me: failed program was:" >&5
  6447. sed 's/^/| /' conftest.$ac_ext >&5
  6448. ac_cv_type__Bool=no
  6449. fi
  6450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6451. fi
  6452. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  6453. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  6454. if test $ac_cv_type__Bool = yes; then
  6455. cat >>confdefs.h <<_ACEOF
  6456. #define HAVE__BOOL 1
  6457. _ACEOF
  6458. fi
  6459. if test $ac_cv_header_stdbool_h = yes; then
  6460. cat >>confdefs.h <<\_ACEOF
  6461. #define HAVE_STDBOOL_H 1
  6462. _ACEOF
  6463. fi
  6464. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6465. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  6466. if test "${ac_cv_c_const+set}" = set; then
  6467. echo $ECHO_N "(cached) $ECHO_C" >&6
  6468. else
  6469. cat >conftest.$ac_ext <<_ACEOF
  6470. /* confdefs.h. */
  6471. _ACEOF
  6472. cat confdefs.h >>conftest.$ac_ext
  6473. cat >>conftest.$ac_ext <<_ACEOF
  6474. /* end confdefs.h. */
  6475. int
  6476. main ()
  6477. {
  6478. /* FIXME: Include the comments suggested by Paul. */
  6479. #ifndef __cplusplus
  6480. /* Ultrix mips cc rejects this. */
  6481. typedef int charset[2];
  6482. const charset cs;
  6483. /* SunOS 4.1.1 cc rejects this. */
  6484. char const *const *pcpcc;
  6485. char **ppc;
  6486. /* NEC SVR4.0.2 mips cc rejects this. */
  6487. struct point {int x, y;};
  6488. static struct point const zero = {0,0};
  6489. /* AIX XL C 1.02.0.0 rejects this.
  6490. It does not let you subtract one const X* pointer from another in
  6491. an arm of an if-expression whose if-part is not a constant
  6492. expression */
  6493. const char *g = "string";
  6494. pcpcc = &g + (g ? g-g : 0);
  6495. /* HPUX 7.0 cc rejects these. */
  6496. ++pcpcc;
  6497. ppc = (char**) pcpcc;
  6498. pcpcc = (char const *const *) ppc;
  6499. { /* SCO 3.2v4 cc rejects this. */
  6500. char *t;
  6501. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6502. *t++ = 0;
  6503. if (s) return 0;
  6504. }
  6505. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6506. int x[] = {25, 17};
  6507. const int *foo = &x[0];
  6508. ++foo;
  6509. }
  6510. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6511. typedef const int *iptr;
  6512. iptr p = 0;
  6513. ++p;
  6514. }
  6515. { /* AIX XL C 1.02.0.0 rejects this saying
  6516. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6517. struct s { int j; const int *ap[3]; };
  6518. struct s *b; b->j = 5;
  6519. }
  6520. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6521. const int foo = 10;
  6522. if (!foo) return 0;
  6523. }
  6524. return !cs[0] && !zero.x;
  6525. #endif
  6526. ;
  6527. return 0;
  6528. }
  6529. _ACEOF
  6530. rm -f conftest.$ac_objext
  6531. if { (ac_try="$ac_compile"
  6532. case "(($ac_try" in
  6533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6534. *) ac_try_echo=$ac_try;;
  6535. esac
  6536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6537. (eval "$ac_compile") 2>conftest.er1
  6538. ac_status=$?
  6539. grep -v '^ *+' conftest.er1 >conftest.err
  6540. rm -f conftest.er1
  6541. cat conftest.err >&5
  6542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6543. (exit $ac_status); } && {
  6544. test -z "$ac_cxx_werror_flag" ||
  6545. test ! -s conftest.err
  6546. } && test -s conftest.$ac_objext; then
  6547. ac_cv_c_const=yes
  6548. else
  6549. echo "$as_me: failed program was:" >&5
  6550. sed 's/^/| /' conftest.$ac_ext >&5
  6551. ac_cv_c_const=no
  6552. fi
  6553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6554. fi
  6555. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6556. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  6557. if test $ac_cv_c_const = no; then
  6558. cat >>confdefs.h <<\_ACEOF
  6559. #define const
  6560. _ACEOF
  6561. fi
  6562. { echo "$as_me:$LINENO: checking for inline" >&5
  6563. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  6564. if test "${ac_cv_c_inline+set}" = set; then
  6565. echo $ECHO_N "(cached) $ECHO_C" >&6
  6566. else
  6567. ac_cv_c_inline=no
  6568. for ac_kw in inline __inline__ __inline; do
  6569. cat >conftest.$ac_ext <<_ACEOF
  6570. /* confdefs.h. */
  6571. _ACEOF
  6572. cat confdefs.h >>conftest.$ac_ext
  6573. cat >>conftest.$ac_ext <<_ACEOF
  6574. /* end confdefs.h. */
  6575. #ifndef __cplusplus
  6576. typedef int foo_t;
  6577. static $ac_kw foo_t static_foo () {return 0; }
  6578. $ac_kw foo_t foo () {return 0; }
  6579. #endif
  6580. _ACEOF
  6581. rm -f conftest.$ac_objext
  6582. if { (ac_try="$ac_compile"
  6583. case "(($ac_try" in
  6584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6585. *) ac_try_echo=$ac_try;;
  6586. esac
  6587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6588. (eval "$ac_compile") 2>conftest.er1
  6589. ac_status=$?
  6590. grep -v '^ *+' conftest.er1 >conftest.err
  6591. rm -f conftest.er1
  6592. cat conftest.err >&5
  6593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6594. (exit $ac_status); } && {
  6595. test -z "$ac_cxx_werror_flag" ||
  6596. test ! -s conftest.err
  6597. } && test -s conftest.$ac_objext; then
  6598. ac_cv_c_inline=$ac_kw
  6599. else
  6600. echo "$as_me: failed program was:" >&5
  6601. sed 's/^/| /' conftest.$ac_ext >&5
  6602. fi
  6603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6604. test "$ac_cv_c_inline" != no && break
  6605. done
  6606. fi
  6607. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6608. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  6609. case $ac_cv_c_inline in
  6610. inline | yes) ;;
  6611. *)
  6612. case $ac_cv_c_inline in
  6613. no) ac_val=;;
  6614. *) ac_val=$ac_cv_c_inline;;
  6615. esac
  6616. cat >>confdefs.h <<_ACEOF
  6617. #ifndef __cplusplus
  6618. #define inline $ac_val
  6619. #endif
  6620. _ACEOF
  6621. ;;
  6622. esac
  6623. { echo "$as_me:$LINENO: checking for size_t" >&5
  6624. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  6625. if test "${ac_cv_type_size_t+set}" = set; then
  6626. echo $ECHO_N "(cached) $ECHO_C" >&6
  6627. else
  6628. cat >conftest.$ac_ext <<_ACEOF
  6629. /* confdefs.h. */
  6630. _ACEOF
  6631. cat confdefs.h >>conftest.$ac_ext
  6632. cat >>conftest.$ac_ext <<_ACEOF
  6633. /* end confdefs.h. */
  6634. $ac_includes_default
  6635. typedef size_t ac__type_new_;
  6636. int
  6637. main ()
  6638. {
  6639. if ((ac__type_new_ *) 0)
  6640. return 0;
  6641. if (sizeof (ac__type_new_))
  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_cxx_werror_flag" ||
  6662. test ! -s conftest.err
  6663. } && test -s conftest.$ac_objext; then
  6664. ac_cv_type_size_t=yes
  6665. else
  6666. echo "$as_me: failed program was:" >&5
  6667. sed 's/^/| /' conftest.$ac_ext >&5
  6668. ac_cv_type_size_t=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_type_size_t" >&5
  6673. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  6674. if test $ac_cv_type_size_t = yes; then
  6675. :
  6676. else
  6677. cat >>confdefs.h <<_ACEOF
  6678. #define size_t unsigned int
  6679. _ACEOF
  6680. fi
  6681. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  6682. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  6683. if test "${ac_cv_header_time+set}" = set; then
  6684. echo $ECHO_N "(cached) $ECHO_C" >&6
  6685. else
  6686. cat >conftest.$ac_ext <<_ACEOF
  6687. /* confdefs.h. */
  6688. _ACEOF
  6689. cat confdefs.h >>conftest.$ac_ext
  6690. cat >>conftest.$ac_ext <<_ACEOF
  6691. /* end confdefs.h. */
  6692. #include <sys/types.h>
  6693. #include <sys/time.h>
  6694. #include <time.h>
  6695. int
  6696. main ()
  6697. {
  6698. if ((struct tm *) 0)
  6699. return 0;
  6700. ;
  6701. return 0;
  6702. }
  6703. _ACEOF
  6704. rm -f conftest.$ac_objext
  6705. if { (ac_try="$ac_compile"
  6706. case "(($ac_try" in
  6707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6708. *) ac_try_echo=$ac_try;;
  6709. esac
  6710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6711. (eval "$ac_compile") 2>conftest.er1
  6712. ac_status=$?
  6713. grep -v '^ *+' conftest.er1 >conftest.err
  6714. rm -f conftest.er1
  6715. cat conftest.err >&5
  6716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6717. (exit $ac_status); } && {
  6718. test -z "$ac_cxx_werror_flag" ||
  6719. test ! -s conftest.err
  6720. } && test -s conftest.$ac_objext; then
  6721. ac_cv_header_time=yes
  6722. else
  6723. echo "$as_me: failed program was:" >&5
  6724. sed 's/^/| /' conftest.$ac_ext >&5
  6725. ac_cv_header_time=no
  6726. fi
  6727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6728. fi
  6729. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  6730. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  6731. if test $ac_cv_header_time = yes; then
  6732. cat >>confdefs.h <<\_ACEOF
  6733. #define TIME_WITH_SYS_TIME 1
  6734. _ACEOF
  6735. fi
  6736. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6737. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  6738. if test "${ac_cv_struct_tm+set}" = set; then
  6739. echo $ECHO_N "(cached) $ECHO_C" >&6
  6740. else
  6741. cat >conftest.$ac_ext <<_ACEOF
  6742. /* confdefs.h. */
  6743. _ACEOF
  6744. cat confdefs.h >>conftest.$ac_ext
  6745. cat >>conftest.$ac_ext <<_ACEOF
  6746. /* end confdefs.h. */
  6747. #include <sys/types.h>
  6748. #include <time.h>
  6749. int
  6750. main ()
  6751. {
  6752. struct tm tm;
  6753. int *p = &tm.tm_sec;
  6754. return !p;
  6755. ;
  6756. return 0;
  6757. }
  6758. _ACEOF
  6759. rm -f conftest.$ac_objext
  6760. if { (ac_try="$ac_compile"
  6761. case "(($ac_try" in
  6762. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6763. *) ac_try_echo=$ac_try;;
  6764. esac
  6765. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6766. (eval "$ac_compile") 2>conftest.er1
  6767. ac_status=$?
  6768. grep -v '^ *+' conftest.er1 >conftest.err
  6769. rm -f conftest.er1
  6770. cat conftest.err >&5
  6771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6772. (exit $ac_status); } && {
  6773. test -z "$ac_cxx_werror_flag" ||
  6774. test ! -s conftest.err
  6775. } && test -s conftest.$ac_objext; then
  6776. ac_cv_struct_tm=time.h
  6777. else
  6778. echo "$as_me: failed program was:" >&5
  6779. sed 's/^/| /' conftest.$ac_ext >&5
  6780. ac_cv_struct_tm=sys/time.h
  6781. fi
  6782. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6783. fi
  6784. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6785. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  6786. if test $ac_cv_struct_tm = sys/time.h; then
  6787. cat >>confdefs.h <<\_ACEOF
  6788. #define TM_IN_SYS_TIME 1
  6789. _ACEOF
  6790. fi
  6791. { echo "$as_me:$LINENO: checking for working volatile" >&5
  6792. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  6793. if test "${ac_cv_c_volatile+set}" = set; then
  6794. echo $ECHO_N "(cached) $ECHO_C" >&6
  6795. else
  6796. cat >conftest.$ac_ext <<_ACEOF
  6797. /* confdefs.h. */
  6798. _ACEOF
  6799. cat confdefs.h >>conftest.$ac_ext
  6800. cat >>conftest.$ac_ext <<_ACEOF
  6801. /* end confdefs.h. */
  6802. int
  6803. main ()
  6804. {
  6805. volatile int x;
  6806. int * volatile y = (int *) 0;
  6807. return !x && !y;
  6808. ;
  6809. return 0;
  6810. }
  6811. _ACEOF
  6812. rm -f conftest.$ac_objext
  6813. if { (ac_try="$ac_compile"
  6814. case "(($ac_try" in
  6815. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6816. *) ac_try_echo=$ac_try;;
  6817. esac
  6818. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6819. (eval "$ac_compile") 2>conftest.er1
  6820. ac_status=$?
  6821. grep -v '^ *+' conftest.er1 >conftest.err
  6822. rm -f conftest.er1
  6823. cat conftest.err >&5
  6824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6825. (exit $ac_status); } && {
  6826. test -z "$ac_cxx_werror_flag" ||
  6827. test ! -s conftest.err
  6828. } && test -s conftest.$ac_objext; then
  6829. ac_cv_c_volatile=yes
  6830. else
  6831. echo "$as_me: failed program was:" >&5
  6832. sed 's/^/| /' conftest.$ac_ext >&5
  6833. ac_cv_c_volatile=no
  6834. fi
  6835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6836. fi
  6837. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  6838. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  6839. if test $ac_cv_c_volatile = no; then
  6840. cat >>confdefs.h <<\_ACEOF
  6841. #define volatile
  6842. _ACEOF
  6843. fi
  6844. # Checks for library functions.
  6845. MKINSTALLDIRS=
  6846. if test -n "$ac_aux_dir"; then
  6847. case "$ac_aux_dir" in
  6848. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  6849. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  6850. esac
  6851. fi
  6852. if test -z "$MKINSTALLDIRS"; then
  6853. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  6854. fi
  6855. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  6856. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  6857. # Check whether --enable-nls was given.
  6858. if test "${enable_nls+set}" = set; then
  6859. enableval=$enable_nls; USE_NLS=$enableval
  6860. else
  6861. USE_NLS=yes
  6862. fi
  6863. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  6864. echo "${ECHO_T}$USE_NLS" >&6; }
  6865. # Prepare PATH_SEPARATOR.
  6866. # The user is always right.
  6867. if test "${PATH_SEPARATOR+set}" != set; then
  6868. echo "#! /bin/sh" >conf$$.sh
  6869. echo "exit 0" >>conf$$.sh
  6870. chmod +x conf$$.sh
  6871. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6872. PATH_SEPARATOR=';'
  6873. else
  6874. PATH_SEPARATOR=:
  6875. fi
  6876. rm -f conf$$.sh
  6877. fi
  6878. # Find out how to test for executable files. Don't use a zero-byte file,
  6879. # as systems may use methods other than mode bits to determine executability.
  6880. cat >conf$$.file <<_ASEOF
  6881. #! /bin/sh
  6882. exit 0
  6883. _ASEOF
  6884. chmod +x conf$$.file
  6885. if test -x conf$$.file >/dev/null 2>&1; then
  6886. ac_executable_p="test -x"
  6887. else
  6888. ac_executable_p="test -f"
  6889. fi
  6890. rm -f conf$$.file
  6891. # Extract the first word of "msgfmt", so it can be a program name with args.
  6892. set dummy msgfmt; ac_word=$2
  6893. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6894. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6895. if test "${ac_cv_path_MSGFMT+set}" = set; then
  6896. echo $ECHO_N "(cached) $ECHO_C" >&6
  6897. else
  6898. case "$MSGFMT" in
  6899. [\\/]* | ?:[\\/]*)
  6900. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  6901. ;;
  6902. *)
  6903. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6904. for ac_dir in $PATH; do
  6905. IFS="$ac_save_IFS"
  6906. test -z "$ac_dir" && ac_dir=.
  6907. for ac_exec_ext in '' $ac_executable_extensions; do
  6908. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6909. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  6910. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6911. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  6912. break 2
  6913. fi
  6914. fi
  6915. done
  6916. done
  6917. IFS="$ac_save_IFS"
  6918. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  6919. ;;
  6920. esac
  6921. fi
  6922. MSGFMT="$ac_cv_path_MSGFMT"
  6923. if test "$MSGFMT" != ":"; then
  6924. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  6925. echo "${ECHO_T}$MSGFMT" >&6; }
  6926. else
  6927. { echo "$as_me:$LINENO: result: no" >&5
  6928. echo "${ECHO_T}no" >&6; }
  6929. fi
  6930. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  6931. set dummy gmsgfmt; ac_word=$2
  6932. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6933. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6934. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  6935. echo $ECHO_N "(cached) $ECHO_C" >&6
  6936. else
  6937. case $GMSGFMT in
  6938. [\\/]* | ?:[\\/]*)
  6939. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6940. ;;
  6941. *)
  6942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6943. for as_dir in $PATH
  6944. do
  6945. IFS=$as_save_IFS
  6946. test -z "$as_dir" && as_dir=.
  6947. for ac_exec_ext in '' $ac_executable_extensions; do
  6948. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6949. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  6950. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6951. break 2
  6952. fi
  6953. done
  6954. done
  6955. IFS=$as_save_IFS
  6956. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  6957. ;;
  6958. esac
  6959. fi
  6960. GMSGFMT=$ac_cv_path_GMSGFMT
  6961. if test -n "$GMSGFMT"; then
  6962. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  6963. echo "${ECHO_T}$GMSGFMT" >&6; }
  6964. else
  6965. { echo "$as_me:$LINENO: result: no" >&5
  6966. echo "${ECHO_T}no" >&6; }
  6967. fi
  6968. # Prepare PATH_SEPARATOR.
  6969. # The user is always right.
  6970. if test "${PATH_SEPARATOR+set}" != set; then
  6971. echo "#! /bin/sh" >conf$$.sh
  6972. echo "exit 0" >>conf$$.sh
  6973. chmod +x conf$$.sh
  6974. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6975. PATH_SEPARATOR=';'
  6976. else
  6977. PATH_SEPARATOR=:
  6978. fi
  6979. rm -f conf$$.sh
  6980. fi
  6981. # Find out how to test for executable files. Don't use a zero-byte file,
  6982. # as systems may use methods other than mode bits to determine executability.
  6983. cat >conf$$.file <<_ASEOF
  6984. #! /bin/sh
  6985. exit 0
  6986. _ASEOF
  6987. chmod +x conf$$.file
  6988. if test -x conf$$.file >/dev/null 2>&1; then
  6989. ac_executable_p="test -x"
  6990. else
  6991. ac_executable_p="test -f"
  6992. fi
  6993. rm -f conf$$.file
  6994. # Extract the first word of "xgettext", so it can be a program name with args.
  6995. set dummy xgettext; ac_word=$2
  6996. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6997. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6998. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  6999. echo $ECHO_N "(cached) $ECHO_C" >&6
  7000. else
  7001. case "$XGETTEXT" in
  7002. [\\/]* | ?:[\\/]*)
  7003. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  7004. ;;
  7005. *)
  7006. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7007. for ac_dir in $PATH; do
  7008. IFS="$ac_save_IFS"
  7009. test -z "$ac_dir" && ac_dir=.
  7010. for ac_exec_ext in '' $ac_executable_extensions; do
  7011. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7012. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  7013. (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
  7014. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  7015. break 2
  7016. fi
  7017. fi
  7018. done
  7019. done
  7020. IFS="$ac_save_IFS"
  7021. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  7022. ;;
  7023. esac
  7024. fi
  7025. XGETTEXT="$ac_cv_path_XGETTEXT"
  7026. if test "$XGETTEXT" != ":"; then
  7027. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  7028. echo "${ECHO_T}$XGETTEXT" >&6; }
  7029. else
  7030. { echo "$as_me:$LINENO: result: no" >&5
  7031. echo "${ECHO_T}no" >&6; }
  7032. fi
  7033. rm -f messages.po
  7034. # Prepare PATH_SEPARATOR.
  7035. # The user is always right.
  7036. if test "${PATH_SEPARATOR+set}" != set; then
  7037. echo "#! /bin/sh" >conf$$.sh
  7038. echo "exit 0" >>conf$$.sh
  7039. chmod +x conf$$.sh
  7040. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7041. PATH_SEPARATOR=';'
  7042. else
  7043. PATH_SEPARATOR=:
  7044. fi
  7045. rm -f conf$$.sh
  7046. fi
  7047. # Find out how to test for executable files. Don't use a zero-byte file,
  7048. # as systems may use methods other than mode bits to determine executability.
  7049. cat >conf$$.file <<_ASEOF
  7050. #! /bin/sh
  7051. exit 0
  7052. _ASEOF
  7053. chmod +x conf$$.file
  7054. if test -x conf$$.file >/dev/null 2>&1; then
  7055. ac_executable_p="test -x"
  7056. else
  7057. ac_executable_p="test -f"
  7058. fi
  7059. rm -f conf$$.file
  7060. # Extract the first word of "msgmerge", so it can be a program name with args.
  7061. set dummy msgmerge; ac_word=$2
  7062. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7063. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7064. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  7065. echo $ECHO_N "(cached) $ECHO_C" >&6
  7066. else
  7067. case "$MSGMERGE" in
  7068. [\\/]* | ?:[\\/]*)
  7069. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  7070. ;;
  7071. *)
  7072. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7073. for ac_dir in $PATH; do
  7074. IFS="$ac_save_IFS"
  7075. test -z "$ac_dir" && ac_dir=.
  7076. for ac_exec_ext in '' $ac_executable_extensions; do
  7077. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7078. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  7079. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  7080. break 2
  7081. fi
  7082. fi
  7083. done
  7084. done
  7085. IFS="$ac_save_IFS"
  7086. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  7087. ;;
  7088. esac
  7089. fi
  7090. MSGMERGE="$ac_cv_path_MSGMERGE"
  7091. if test "$MSGMERGE" != ":"; then
  7092. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  7093. echo "${ECHO_T}$MSGMERGE" >&6; }
  7094. else
  7095. { echo "$as_me:$LINENO: result: no" >&5
  7096. echo "${ECHO_T}no" >&6; }
  7097. fi
  7098. if test "$GMSGFMT" != ":"; then
  7099. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  7100. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7101. : ;
  7102. else
  7103. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  7104. { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  7105. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  7106. GMSGFMT=":"
  7107. fi
  7108. fi
  7109. if test "$XGETTEXT" != ":"; then
  7110. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  7111. (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
  7112. : ;
  7113. else
  7114. { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  7115. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
  7116. XGETTEXT=":"
  7117. fi
  7118. rm -f messages.po
  7119. fi
  7120. ac_config_commands="$ac_config_commands default-1"
  7121. { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  7122. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  7123. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  7124. echo $ECHO_N "(cached) $ECHO_C" >&6
  7125. else
  7126. ac_check_lib_save_LIBS=$LIBS
  7127. LIBS="-lcposix $LIBS"
  7128. cat >conftest.$ac_ext <<_ACEOF
  7129. /* confdefs.h. */
  7130. _ACEOF
  7131. cat confdefs.h >>conftest.$ac_ext
  7132. cat >>conftest.$ac_ext <<_ACEOF
  7133. /* end confdefs.h. */
  7134. /* Override any GCC internal prototype to avoid an error.
  7135. Use char because int might match the return type of a GCC
  7136. builtin and then its argument prototype would still apply. */
  7137. #ifdef __cplusplus
  7138. extern "C"
  7139. #endif
  7140. char strerror ();
  7141. int
  7142. main ()
  7143. {
  7144. return strerror ();
  7145. ;
  7146. return 0;
  7147. }
  7148. _ACEOF
  7149. rm -f conftest.$ac_objext conftest$ac_exeext
  7150. if { (ac_try="$ac_link"
  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_link") 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_cxx_werror_flag" ||
  7164. test ! -s conftest.err
  7165. } && test -s conftest$ac_exeext &&
  7166. $as_test_x conftest$ac_exeext; then
  7167. ac_cv_lib_cposix_strerror=yes
  7168. else
  7169. echo "$as_me: failed program was:" >&5
  7170. sed 's/^/| /' conftest.$ac_ext >&5
  7171. ac_cv_lib_cposix_strerror=no
  7172. fi
  7173. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7174. conftest$ac_exeext conftest.$ac_ext
  7175. LIBS=$ac_check_lib_save_LIBS
  7176. fi
  7177. { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  7178. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  7179. if test $ac_cv_lib_cposix_strerror = yes; then
  7180. LIBS="$LIBS -lcposix"
  7181. fi
  7182. { echo "$as_me:$LINENO: checking for off_t" >&5
  7183. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7184. if test "${ac_cv_type_off_t+set}" = set; then
  7185. echo $ECHO_N "(cached) $ECHO_C" >&6
  7186. else
  7187. cat >conftest.$ac_ext <<_ACEOF
  7188. /* confdefs.h. */
  7189. _ACEOF
  7190. cat confdefs.h >>conftest.$ac_ext
  7191. cat >>conftest.$ac_ext <<_ACEOF
  7192. /* end confdefs.h. */
  7193. $ac_includes_default
  7194. typedef off_t ac__type_new_;
  7195. int
  7196. main ()
  7197. {
  7198. if ((ac__type_new_ *) 0)
  7199. return 0;
  7200. if (sizeof (ac__type_new_))
  7201. return 0;
  7202. ;
  7203. return 0;
  7204. }
  7205. _ACEOF
  7206. rm -f conftest.$ac_objext
  7207. if { (ac_try="$ac_compile"
  7208. case "(($ac_try" in
  7209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7210. *) ac_try_echo=$ac_try;;
  7211. esac
  7212. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7213. (eval "$ac_compile") 2>conftest.er1
  7214. ac_status=$?
  7215. grep -v '^ *+' conftest.er1 >conftest.err
  7216. rm -f conftest.er1
  7217. cat conftest.err >&5
  7218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7219. (exit $ac_status); } && {
  7220. test -z "$ac_cxx_werror_flag" ||
  7221. test ! -s conftest.err
  7222. } && test -s conftest.$ac_objext; then
  7223. ac_cv_type_off_t=yes
  7224. else
  7225. echo "$as_me: failed program was:" >&5
  7226. sed 's/^/| /' conftest.$ac_ext >&5
  7227. ac_cv_type_off_t=no
  7228. fi
  7229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7230. fi
  7231. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7232. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7233. if test $ac_cv_type_off_t = yes; then
  7234. :
  7235. else
  7236. cat >>confdefs.h <<_ACEOF
  7237. #define off_t long int
  7238. _ACEOF
  7239. fi
  7240. for ac_header in stdlib.h unistd.h
  7241. do
  7242. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7243. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7244. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7245. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7246. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7247. echo $ECHO_N "(cached) $ECHO_C" >&6
  7248. fi
  7249. ac_res=`eval echo '${'$as_ac_Header'}'`
  7250. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7251. echo "${ECHO_T}$ac_res" >&6; }
  7252. else
  7253. # Is the header compilable?
  7254. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7255. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7256. cat >conftest.$ac_ext <<_ACEOF
  7257. /* confdefs.h. */
  7258. _ACEOF
  7259. cat confdefs.h >>conftest.$ac_ext
  7260. cat >>conftest.$ac_ext <<_ACEOF
  7261. /* end confdefs.h. */
  7262. $ac_includes_default
  7263. #include <$ac_header>
  7264. _ACEOF
  7265. rm -f conftest.$ac_objext
  7266. if { (ac_try="$ac_compile"
  7267. case "(($ac_try" in
  7268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7269. *) ac_try_echo=$ac_try;;
  7270. esac
  7271. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7272. (eval "$ac_compile") 2>conftest.er1
  7273. ac_status=$?
  7274. grep -v '^ *+' conftest.er1 >conftest.err
  7275. rm -f conftest.er1
  7276. cat conftest.err >&5
  7277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7278. (exit $ac_status); } && {
  7279. test -z "$ac_cxx_werror_flag" ||
  7280. test ! -s conftest.err
  7281. } && test -s conftest.$ac_objext; then
  7282. ac_header_compiler=yes
  7283. else
  7284. echo "$as_me: failed program was:" >&5
  7285. sed 's/^/| /' conftest.$ac_ext >&5
  7286. ac_header_compiler=no
  7287. fi
  7288. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7289. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7290. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7291. # Is the header present?
  7292. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7293. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7294. cat >conftest.$ac_ext <<_ACEOF
  7295. /* confdefs.h. */
  7296. _ACEOF
  7297. cat confdefs.h >>conftest.$ac_ext
  7298. cat >>conftest.$ac_ext <<_ACEOF
  7299. /* end confdefs.h. */
  7300. #include <$ac_header>
  7301. _ACEOF
  7302. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7303. case "(($ac_try" in
  7304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7305. *) ac_try_echo=$ac_try;;
  7306. esac
  7307. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7308. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7309. ac_status=$?
  7310. grep -v '^ *+' conftest.er1 >conftest.err
  7311. rm -f conftest.er1
  7312. cat conftest.err >&5
  7313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7314. (exit $ac_status); } >/dev/null && {
  7315. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7316. test ! -s conftest.err
  7317. }; then
  7318. ac_header_preproc=yes
  7319. else
  7320. echo "$as_me: failed program was:" >&5
  7321. sed 's/^/| /' conftest.$ac_ext >&5
  7322. ac_header_preproc=no
  7323. fi
  7324. rm -f conftest.err conftest.$ac_ext
  7325. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7326. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7327. # So? What about this header?
  7328. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7329. yes:no: )
  7330. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7331. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7332. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7333. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7334. ac_header_preproc=yes
  7335. ;;
  7336. no:yes:* )
  7337. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7338. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7339. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7340. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7341. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7342. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7343. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7344. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7345. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7346. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7347. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7348. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7349. ( cat <<\_ASBOX
  7350. ## ----------------------------------------------- ##
  7351. ## Report this to t-tujikawa@users.sourceforge.net ##
  7352. ## ----------------------------------------------- ##
  7353. _ASBOX
  7354. ) | sed "s/^/$as_me: WARNING: /" >&2
  7355. ;;
  7356. esac
  7357. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7358. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7359. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7360. echo $ECHO_N "(cached) $ECHO_C" >&6
  7361. else
  7362. eval "$as_ac_Header=\$ac_header_preproc"
  7363. fi
  7364. ac_res=`eval echo '${'$as_ac_Header'}'`
  7365. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7366. echo "${ECHO_T}$ac_res" >&6; }
  7367. fi
  7368. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7369. cat >>confdefs.h <<_ACEOF
  7370. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7371. _ACEOF
  7372. fi
  7373. done
  7374. for ac_func in getpagesize
  7375. do
  7376. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7377. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7378. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7379. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7380. echo $ECHO_N "(cached) $ECHO_C" >&6
  7381. else
  7382. cat >conftest.$ac_ext <<_ACEOF
  7383. /* confdefs.h. */
  7384. _ACEOF
  7385. cat confdefs.h >>conftest.$ac_ext
  7386. cat >>conftest.$ac_ext <<_ACEOF
  7387. /* end confdefs.h. */
  7388. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7389. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7390. #define $ac_func innocuous_$ac_func
  7391. /* System header to define __stub macros and hopefully few prototypes,
  7392. which can conflict with char $ac_func (); below.
  7393. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7394. <limits.h> exists even on freestanding compilers. */
  7395. #ifdef __STDC__
  7396. # include <limits.h>
  7397. #else
  7398. # include <assert.h>
  7399. #endif
  7400. #undef $ac_func
  7401. /* Override any GCC internal prototype to avoid an error.
  7402. Use char because int might match the return type of a GCC
  7403. builtin and then its argument prototype would still apply. */
  7404. #ifdef __cplusplus
  7405. extern "C"
  7406. #endif
  7407. char $ac_func ();
  7408. /* The GNU C library defines this for functions which it implements
  7409. to always fail with ENOSYS. Some functions are actually named
  7410. something starting with __ and the normal name is an alias. */
  7411. #if defined __stub_$ac_func || defined __stub___$ac_func
  7412. choke me
  7413. #endif
  7414. int
  7415. main ()
  7416. {
  7417. return $ac_func ();
  7418. ;
  7419. return 0;
  7420. }
  7421. _ACEOF
  7422. rm -f conftest.$ac_objext conftest$ac_exeext
  7423. if { (ac_try="$ac_link"
  7424. case "(($ac_try" in
  7425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7426. *) ac_try_echo=$ac_try;;
  7427. esac
  7428. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7429. (eval "$ac_link") 2>conftest.er1
  7430. ac_status=$?
  7431. grep -v '^ *+' conftest.er1 >conftest.err
  7432. rm -f conftest.er1
  7433. cat conftest.err >&5
  7434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7435. (exit $ac_status); } && {
  7436. test -z "$ac_cxx_werror_flag" ||
  7437. test ! -s conftest.err
  7438. } && test -s conftest$ac_exeext &&
  7439. $as_test_x conftest$ac_exeext; then
  7440. eval "$as_ac_var=yes"
  7441. else
  7442. echo "$as_me: failed program was:" >&5
  7443. sed 's/^/| /' conftest.$ac_ext >&5
  7444. eval "$as_ac_var=no"
  7445. fi
  7446. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7447. conftest$ac_exeext conftest.$ac_ext
  7448. fi
  7449. ac_res=`eval echo '${'$as_ac_var'}'`
  7450. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7451. echo "${ECHO_T}$ac_res" >&6; }
  7452. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7453. cat >>confdefs.h <<_ACEOF
  7454. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7455. _ACEOF
  7456. fi
  7457. done
  7458. { echo "$as_me:$LINENO: checking for working mmap" >&5
  7459. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  7460. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  7461. echo $ECHO_N "(cached) $ECHO_C" >&6
  7462. else
  7463. if test "$cross_compiling" = yes; then
  7464. ac_cv_func_mmap_fixed_mapped=no
  7465. else
  7466. cat >conftest.$ac_ext <<_ACEOF
  7467. /* confdefs.h. */
  7468. _ACEOF
  7469. cat confdefs.h >>conftest.$ac_ext
  7470. cat >>conftest.$ac_ext <<_ACEOF
  7471. /* end confdefs.h. */
  7472. $ac_includes_default
  7473. /* malloc might have been renamed as rpl_malloc. */
  7474. #undef malloc
  7475. /* Thanks to Mike Haertel and Jim Avera for this test.
  7476. Here is a matrix of mmap possibilities:
  7477. mmap private not fixed
  7478. mmap private fixed at somewhere currently unmapped
  7479. mmap private fixed at somewhere already mapped
  7480. mmap shared not fixed
  7481. mmap shared fixed at somewhere currently unmapped
  7482. mmap shared fixed at somewhere already mapped
  7483. For private mappings, we should verify that changes cannot be read()
  7484. back from the file, nor mmap's back from the file at a different
  7485. address. (There have been systems where private was not correctly
  7486. implemented like the infamous i386 svr4.0, and systems where the
  7487. VM page cache was not coherent with the file system buffer cache
  7488. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7489. For shared mappings, we should conversely verify that changes get
  7490. propagated back to all the places they're supposed to be.
  7491. Grep wants private fixed already mapped.
  7492. The main things grep needs to know about mmap are:
  7493. * does it exist and is it safe to write into the mmap'd area
  7494. * how to use it (BSD variants) */
  7495. #include <fcntl.h>
  7496. #include <sys/mman.h>
  7497. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7498. char *malloc ();
  7499. #endif
  7500. /* This mess was copied from the GNU getpagesize.h. */
  7501. #ifndef HAVE_GETPAGESIZE
  7502. /* Assume that all systems that can run configure have sys/param.h. */
  7503. # ifndef HAVE_SYS_PARAM_H
  7504. # define HAVE_SYS_PARAM_H 1
  7505. # endif
  7506. # ifdef _SC_PAGESIZE
  7507. # define getpagesize() sysconf(_SC_PAGESIZE)
  7508. # else /* no _SC_PAGESIZE */
  7509. # ifdef HAVE_SYS_PARAM_H
  7510. # include <sys/param.h>
  7511. # ifdef EXEC_PAGESIZE
  7512. # define getpagesize() EXEC_PAGESIZE
  7513. # else /* no EXEC_PAGESIZE */
  7514. # ifdef NBPG
  7515. # define getpagesize() NBPG * CLSIZE
  7516. # ifndef CLSIZE
  7517. # define CLSIZE 1
  7518. # endif /* no CLSIZE */
  7519. # else /* no NBPG */
  7520. # ifdef NBPC
  7521. # define getpagesize() NBPC
  7522. # else /* no NBPC */
  7523. # ifdef PAGESIZE
  7524. # define getpagesize() PAGESIZE
  7525. # endif /* PAGESIZE */
  7526. # endif /* no NBPC */
  7527. # endif /* no NBPG */
  7528. # endif /* no EXEC_PAGESIZE */
  7529. # else /* no HAVE_SYS_PARAM_H */
  7530. # define getpagesize() 8192 /* punt totally */
  7531. # endif /* no HAVE_SYS_PARAM_H */
  7532. # endif /* no _SC_PAGESIZE */
  7533. #endif /* no HAVE_GETPAGESIZE */
  7534. int
  7535. main ()
  7536. {
  7537. char *data, *data2, *data3;
  7538. int i, pagesize;
  7539. int fd;
  7540. pagesize = getpagesize ();
  7541. /* First, make a file with some known garbage in it. */
  7542. data = (char *) malloc (pagesize);
  7543. if (!data)
  7544. return 1;
  7545. for (i = 0; i < pagesize; ++i)
  7546. *(data + i) = rand ();
  7547. umask (0);
  7548. fd = creat ("conftest.mmap", 0600);
  7549. if (fd < 0)
  7550. return 1;
  7551. if (write (fd, data, pagesize) != pagesize)
  7552. return 1;
  7553. close (fd);
  7554. /* Next, try to mmap the file at a fixed address which already has
  7555. something else allocated at it. If we can, also make sure that
  7556. we see the same garbage. */
  7557. fd = open ("conftest.mmap", O_RDWR);
  7558. if (fd < 0)
  7559. return 1;
  7560. data2 = (char *) malloc (2 * pagesize);
  7561. if (!data2)
  7562. return 1;
  7563. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  7564. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7565. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7566. return 1;
  7567. for (i = 0; i < pagesize; ++i)
  7568. if (*(data + i) != *(data2 + i))
  7569. return 1;
  7570. /* Finally, make sure that changes to the mapped area do not
  7571. percolate back to the file as seen by read(). (This is a bug on
  7572. some variants of i386 svr4.0.) */
  7573. for (i = 0; i < pagesize; ++i)
  7574. *(data2 + i) = *(data2 + i) + 1;
  7575. data3 = (char *) malloc (pagesize);
  7576. if (!data3)
  7577. return 1;
  7578. if (read (fd, data3, pagesize) != pagesize)
  7579. return 1;
  7580. for (i = 0; i < pagesize; ++i)
  7581. if (*(data + i) != *(data3 + i))
  7582. return 1;
  7583. close (fd);
  7584. return 0;
  7585. }
  7586. _ACEOF
  7587. rm -f conftest$ac_exeext
  7588. if { (ac_try="$ac_link"
  7589. case "(($ac_try" in
  7590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7591. *) ac_try_echo=$ac_try;;
  7592. esac
  7593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7594. (eval "$ac_link") 2>&5
  7595. ac_status=$?
  7596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7597. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7598. { (case "(($ac_try" in
  7599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7600. *) ac_try_echo=$ac_try;;
  7601. esac
  7602. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7603. (eval "$ac_try") 2>&5
  7604. ac_status=$?
  7605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7606. (exit $ac_status); }; }; then
  7607. ac_cv_func_mmap_fixed_mapped=yes
  7608. else
  7609. echo "$as_me: program exited with status $ac_status" >&5
  7610. echo "$as_me: failed program was:" >&5
  7611. sed 's/^/| /' conftest.$ac_ext >&5
  7612. ( exit $ac_status )
  7613. ac_cv_func_mmap_fixed_mapped=no
  7614. fi
  7615. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7616. fi
  7617. fi
  7618. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7619. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  7620. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7621. cat >>confdefs.h <<\_ACEOF
  7622. #define HAVE_MMAP 1
  7623. _ACEOF
  7624. fi
  7625. rm -f conftest.mmap
  7626. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  7627. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  7628. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  7629. echo $ECHO_N "(cached) $ECHO_C" >&6
  7630. else
  7631. cat >conftest.$ac_ext <<_ACEOF
  7632. /* confdefs.h. */
  7633. _ACEOF
  7634. cat confdefs.h >>conftest.$ac_ext
  7635. cat >>conftest.$ac_ext <<_ACEOF
  7636. /* end confdefs.h. */
  7637. #include <features.h>
  7638. #ifdef __GNU_LIBRARY__
  7639. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  7640. Lucky GNU user
  7641. #endif
  7642. #endif
  7643. _ACEOF
  7644. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7645. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  7646. ac_cv_gnu_library_2_1=yes
  7647. else
  7648. ac_cv_gnu_library_2_1=no
  7649. fi
  7650. rm -f conftest*
  7651. fi
  7652. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  7653. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  7654. GLIBC21="$ac_cv_gnu_library_2_1"
  7655. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  7656. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  7657. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  7658. echo $ECHO_N "(cached) $ECHO_C" >&6
  7659. else
  7660. if test "$cross_compiling" = yes; then
  7661. # Guess based on the CPU.
  7662. case "$host_cpu" in
  7663. alpha* | i3456786 | m68k | s390*)
  7664. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  7665. *)
  7666. gt_cv_int_divbyzero_sigfpe="guessing no";;
  7667. esac
  7668. else
  7669. cat >conftest.$ac_ext <<_ACEOF
  7670. /* confdefs.h. */
  7671. _ACEOF
  7672. cat confdefs.h >>conftest.$ac_ext
  7673. cat >>conftest.$ac_ext <<_ACEOF
  7674. /* end confdefs.h. */
  7675. #include <stdlib.h>
  7676. #include <signal.h>
  7677. static void
  7678. #ifdef __cplusplus
  7679. sigfpe_handler (int sig)
  7680. #else
  7681. sigfpe_handler (sig) int sig;
  7682. #endif
  7683. {
  7684. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  7685. exit (sig != SIGFPE);
  7686. }
  7687. int x = 1;
  7688. int y = 0;
  7689. int z;
  7690. int nan;
  7691. int main ()
  7692. {
  7693. signal (SIGFPE, sigfpe_handler);
  7694. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  7695. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  7696. signal (SIGTRAP, sigfpe_handler);
  7697. #endif
  7698. /* Linux/SPARC yields signal SIGILL. */
  7699. #if defined (__sparc__) && defined (__linux__)
  7700. signal (SIGILL, sigfpe_handler);
  7701. #endif
  7702. z = x / y;
  7703. nan = y / y;
  7704. exit (1);
  7705. }
  7706. _ACEOF
  7707. rm -f conftest$ac_exeext
  7708. if { (ac_try="$ac_link"
  7709. case "(($ac_try" in
  7710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7711. *) ac_try_echo=$ac_try;;
  7712. esac
  7713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7714. (eval "$ac_link") 2>&5
  7715. ac_status=$?
  7716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7717. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7718. { (case "(($ac_try" in
  7719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7720. *) ac_try_echo=$ac_try;;
  7721. esac
  7722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7723. (eval "$ac_try") 2>&5
  7724. ac_status=$?
  7725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7726. (exit $ac_status); }; }; then
  7727. gt_cv_int_divbyzero_sigfpe=yes
  7728. else
  7729. echo "$as_me: program exited with status $ac_status" >&5
  7730. echo "$as_me: failed program was:" >&5
  7731. sed 's/^/| /' conftest.$ac_ext >&5
  7732. ( exit $ac_status )
  7733. gt_cv_int_divbyzero_sigfpe=no
  7734. fi
  7735. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7736. fi
  7737. fi
  7738. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  7739. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  7740. case "$gt_cv_int_divbyzero_sigfpe" in
  7741. *yes) value=1;;
  7742. *) value=0;;
  7743. esac
  7744. cat >>confdefs.h <<_ACEOF
  7745. #define INTDIV0_RAISES_SIGFPE $value
  7746. _ACEOF
  7747. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7748. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7749. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  7750. echo $ECHO_N "(cached) $ECHO_C" >&6
  7751. else
  7752. cat >conftest.$ac_ext <<_ACEOF
  7753. /* confdefs.h. */
  7754. _ACEOF
  7755. cat confdefs.h >>conftest.$ac_ext
  7756. cat >>conftest.$ac_ext <<_ACEOF
  7757. /* end confdefs.h. */
  7758. #include <sys/types.h>
  7759. #include <inttypes.h>
  7760. int
  7761. main ()
  7762. {
  7763. uintmax_t i = (uintmax_t) -1;
  7764. ;
  7765. return 0;
  7766. }
  7767. _ACEOF
  7768. rm -f conftest.$ac_objext
  7769. if { (ac_try="$ac_compile"
  7770. case "(($ac_try" in
  7771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7772. *) ac_try_echo=$ac_try;;
  7773. esac
  7774. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7775. (eval "$ac_compile") 2>conftest.er1
  7776. ac_status=$?
  7777. grep -v '^ *+' conftest.er1 >conftest.err
  7778. rm -f conftest.er1
  7779. cat conftest.err >&5
  7780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7781. (exit $ac_status); } && {
  7782. test -z "$ac_cxx_werror_flag" ||
  7783. test ! -s conftest.err
  7784. } && test -s conftest.$ac_objext; then
  7785. jm_ac_cv_header_inttypes_h=yes
  7786. else
  7787. echo "$as_me: failed program was:" >&5
  7788. sed 's/^/| /' conftest.$ac_ext >&5
  7789. jm_ac_cv_header_inttypes_h=no
  7790. fi
  7791. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7792. fi
  7793. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  7794. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
  7795. if test $jm_ac_cv_header_inttypes_h = yes; then
  7796. cat >>confdefs.h <<_ACEOF
  7797. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  7798. _ACEOF
  7799. fi
  7800. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  7801. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  7802. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  7803. echo $ECHO_N "(cached) $ECHO_C" >&6
  7804. else
  7805. cat >conftest.$ac_ext <<_ACEOF
  7806. /* confdefs.h. */
  7807. _ACEOF
  7808. cat confdefs.h >>conftest.$ac_ext
  7809. cat >>conftest.$ac_ext <<_ACEOF
  7810. /* end confdefs.h. */
  7811. #include <sys/types.h>
  7812. #include <stdint.h>
  7813. int
  7814. main ()
  7815. {
  7816. uintmax_t i = (uintmax_t) -1;
  7817. ;
  7818. return 0;
  7819. }
  7820. _ACEOF
  7821. rm -f conftest.$ac_objext
  7822. if { (ac_try="$ac_compile"
  7823. case "(($ac_try" in
  7824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7825. *) ac_try_echo=$ac_try;;
  7826. esac
  7827. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7828. (eval "$ac_compile") 2>conftest.er1
  7829. ac_status=$?
  7830. grep -v '^ *+' conftest.er1 >conftest.err
  7831. rm -f conftest.er1
  7832. cat conftest.err >&5
  7833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7834. (exit $ac_status); } && {
  7835. test -z "$ac_cxx_werror_flag" ||
  7836. test ! -s conftest.err
  7837. } && test -s conftest.$ac_objext; then
  7838. jm_ac_cv_header_stdint_h=yes
  7839. else
  7840. echo "$as_me: failed program was:" >&5
  7841. sed 's/^/| /' conftest.$ac_ext >&5
  7842. jm_ac_cv_header_stdint_h=no
  7843. fi
  7844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7845. fi
  7846. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  7847. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
  7848. if test $jm_ac_cv_header_stdint_h = yes; then
  7849. cat >>confdefs.h <<_ACEOF
  7850. #define HAVE_STDINT_H_WITH_UINTMAX 1
  7851. _ACEOF
  7852. fi
  7853. { echo "$as_me:$LINENO: checking for unsigned long long" >&5
  7854. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
  7855. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  7856. echo $ECHO_N "(cached) $ECHO_C" >&6
  7857. else
  7858. cat >conftest.$ac_ext <<_ACEOF
  7859. /* confdefs.h. */
  7860. _ACEOF
  7861. cat confdefs.h >>conftest.$ac_ext
  7862. cat >>conftest.$ac_ext <<_ACEOF
  7863. /* end confdefs.h. */
  7864. unsigned long long ull = 1; int i = 63;
  7865. int
  7866. main ()
  7867. {
  7868. unsigned long long ullmax = (unsigned long long) -1;
  7869. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  7870. ;
  7871. return 0;
  7872. }
  7873. _ACEOF
  7874. rm -f conftest.$ac_objext conftest$ac_exeext
  7875. if { (ac_try="$ac_link"
  7876. case "(($ac_try" in
  7877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7878. *) ac_try_echo=$ac_try;;
  7879. esac
  7880. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7881. (eval "$ac_link") 2>conftest.er1
  7882. ac_status=$?
  7883. grep -v '^ *+' conftest.er1 >conftest.err
  7884. rm -f conftest.er1
  7885. cat conftest.err >&5
  7886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7887. (exit $ac_status); } && {
  7888. test -z "$ac_cxx_werror_flag" ||
  7889. test ! -s conftest.err
  7890. } && test -s conftest$ac_exeext &&
  7891. $as_test_x conftest$ac_exeext; then
  7892. ac_cv_type_unsigned_long_long=yes
  7893. else
  7894. echo "$as_me: failed program was:" >&5
  7895. sed 's/^/| /' conftest.$ac_ext >&5
  7896. ac_cv_type_unsigned_long_long=no
  7897. fi
  7898. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7899. conftest$ac_exeext conftest.$ac_ext
  7900. fi
  7901. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  7902. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
  7903. if test $ac_cv_type_unsigned_long_long = yes; then
  7904. cat >>confdefs.h <<\_ACEOF
  7905. #define HAVE_UNSIGNED_LONG_LONG 1
  7906. _ACEOF
  7907. fi
  7908. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  7909. test $ac_cv_type_unsigned_long_long = yes \
  7910. && ac_type='unsigned long long' \
  7911. || ac_type='unsigned long'
  7912. cat >>confdefs.h <<_ACEOF
  7913. #define uintmax_t $ac_type
  7914. _ACEOF
  7915. else
  7916. cat >>confdefs.h <<\_ACEOF
  7917. #define HAVE_UINTMAX_T 1
  7918. _ACEOF
  7919. fi
  7920. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7921. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7922. if test "${gt_cv_header_inttypes_h+set}" = set; then
  7923. echo $ECHO_N "(cached) $ECHO_C" >&6
  7924. else
  7925. cat >conftest.$ac_ext <<_ACEOF
  7926. /* confdefs.h. */
  7927. _ACEOF
  7928. cat confdefs.h >>conftest.$ac_ext
  7929. cat >>conftest.$ac_ext <<_ACEOF
  7930. /* end confdefs.h. */
  7931. #include <sys/types.h>
  7932. #include <inttypes.h>
  7933. int
  7934. main ()
  7935. {
  7936. ;
  7937. return 0;
  7938. }
  7939. _ACEOF
  7940. rm -f conftest.$ac_objext
  7941. if { (ac_try="$ac_compile"
  7942. case "(($ac_try" in
  7943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7944. *) ac_try_echo=$ac_try;;
  7945. esac
  7946. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7947. (eval "$ac_compile") 2>conftest.er1
  7948. ac_status=$?
  7949. grep -v '^ *+' conftest.er1 >conftest.err
  7950. rm -f conftest.er1
  7951. cat conftest.err >&5
  7952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7953. (exit $ac_status); } && {
  7954. test -z "$ac_cxx_werror_flag" ||
  7955. test ! -s conftest.err
  7956. } && test -s conftest.$ac_objext; then
  7957. gt_cv_header_inttypes_h=yes
  7958. else
  7959. echo "$as_me: failed program was:" >&5
  7960. sed 's/^/| /' conftest.$ac_ext >&5
  7961. gt_cv_header_inttypes_h=no
  7962. fi
  7963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7964. fi
  7965. { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  7966. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
  7967. if test $gt_cv_header_inttypes_h = yes; then
  7968. cat >>confdefs.h <<_ACEOF
  7969. #define HAVE_INTTYPES_H 1
  7970. _ACEOF
  7971. fi
  7972. if test $gt_cv_header_inttypes_h = yes; then
  7973. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  7974. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  7975. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  7976. echo $ECHO_N "(cached) $ECHO_C" >&6
  7977. else
  7978. cat >conftest.$ac_ext <<_ACEOF
  7979. /* confdefs.h. */
  7980. _ACEOF
  7981. cat confdefs.h >>conftest.$ac_ext
  7982. cat >>conftest.$ac_ext <<_ACEOF
  7983. /* end confdefs.h. */
  7984. #include <inttypes.h>
  7985. #ifdef PRId32
  7986. char *p = PRId32;
  7987. #endif
  7988. int
  7989. main ()
  7990. {
  7991. ;
  7992. return 0;
  7993. }
  7994. _ACEOF
  7995. rm -f conftest.$ac_objext
  7996. if { (ac_try="$ac_compile"
  7997. case "(($ac_try" in
  7998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7999. *) ac_try_echo=$ac_try;;
  8000. esac
  8001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8002. (eval "$ac_compile") 2>conftest.er1
  8003. ac_status=$?
  8004. grep -v '^ *+' conftest.er1 >conftest.err
  8005. rm -f conftest.er1
  8006. cat conftest.err >&5
  8007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8008. (exit $ac_status); } && {
  8009. test -z "$ac_cxx_werror_flag" ||
  8010. test ! -s conftest.err
  8011. } && test -s conftest.$ac_objext; then
  8012. gt_cv_inttypes_pri_broken=no
  8013. else
  8014. echo "$as_me: failed program was:" >&5
  8015. sed 's/^/| /' conftest.$ac_ext >&5
  8016. gt_cv_inttypes_pri_broken=yes
  8017. fi
  8018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8019. fi
  8020. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  8021. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  8022. fi
  8023. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8024. cat >>confdefs.h <<_ACEOF
  8025. #define PRI_MACROS_BROKEN 1
  8026. _ACEOF
  8027. fi
  8028. if test "X$prefix" = "XNONE"; then
  8029. acl_final_prefix="$ac_default_prefix"
  8030. else
  8031. acl_final_prefix="$prefix"
  8032. fi
  8033. if test "X$exec_prefix" = "XNONE"; then
  8034. acl_final_exec_prefix='${prefix}'
  8035. else
  8036. acl_final_exec_prefix="$exec_prefix"
  8037. fi
  8038. acl_save_prefix="$prefix"
  8039. prefix="$acl_final_prefix"
  8040. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8041. prefix="$acl_save_prefix"
  8042. # Check whether --with-gnu-ld was given.
  8043. if test "${with_gnu_ld+set}" = set; then
  8044. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8045. else
  8046. with_gnu_ld=no
  8047. fi
  8048. # Prepare PATH_SEPARATOR.
  8049. # The user is always right.
  8050. if test "${PATH_SEPARATOR+set}" != set; then
  8051. echo "#! /bin/sh" >conf$$.sh
  8052. echo "exit 0" >>conf$$.sh
  8053. chmod +x conf$$.sh
  8054. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8055. PATH_SEPARATOR=';'
  8056. else
  8057. PATH_SEPARATOR=:
  8058. fi
  8059. rm -f conf$$.sh
  8060. fi
  8061. ac_prog=ld
  8062. if test "$GCC" = yes; then
  8063. # Check if gcc -print-prog-name=ld gives a path.
  8064. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  8065. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  8066. case $host in
  8067. *-*-mingw*)
  8068. # gcc leaves a trailing carriage return which upsets mingw
  8069. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8070. *)
  8071. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8072. esac
  8073. case $ac_prog in
  8074. # Accept absolute paths.
  8075. [\\/]* | [A-Za-z]:[\\/]*)
  8076. re_direlt='/[^/][^/]*/\.\./'
  8077. # Canonicalize the path of ld
  8078. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8079. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8080. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8081. done
  8082. test -z "$LD" && LD="$ac_prog"
  8083. ;;
  8084. "")
  8085. # If it fails, then pretend we aren't using GCC.
  8086. ac_prog=ld
  8087. ;;
  8088. *)
  8089. # If it is relative, then search for the first ld in PATH.
  8090. with_gnu_ld=unknown
  8091. ;;
  8092. esac
  8093. elif test "$with_gnu_ld" = yes; then
  8094. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  8095. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  8096. else
  8097. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8098. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  8099. fi
  8100. if test "${acl_cv_path_LD+set}" = set; then
  8101. echo $ECHO_N "(cached) $ECHO_C" >&6
  8102. else
  8103. if test -z "$LD"; then
  8104. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8105. for ac_dir in $PATH; do
  8106. test -z "$ac_dir" && ac_dir=.
  8107. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8108. acl_cv_path_LD="$ac_dir/$ac_prog"
  8109. # Check to see if the program is GNU ld. I'd rather use --version,
  8110. # but apparently some GNU ld's only accept -v.
  8111. # Break only if it was the GNU/non-GNU ld that we prefer.
  8112. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  8113. test "$with_gnu_ld" != no && break
  8114. else
  8115. test "$with_gnu_ld" != yes && break
  8116. fi
  8117. fi
  8118. done
  8119. IFS="$ac_save_ifs"
  8120. else
  8121. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8122. fi
  8123. fi
  8124. LD="$acl_cv_path_LD"
  8125. if test -n "$LD"; then
  8126. { echo "$as_me:$LINENO: result: $LD" >&5
  8127. echo "${ECHO_T}$LD" >&6; }
  8128. else
  8129. { echo "$as_me:$LINENO: result: no" >&5
  8130. echo "${ECHO_T}no" >&6; }
  8131. fi
  8132. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8133. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8134. { (exit 1); exit 1; }; }
  8135. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8136. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  8137. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  8138. echo $ECHO_N "(cached) $ECHO_C" >&6
  8139. else
  8140. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8141. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  8142. acl_cv_prog_gnu_ld=yes
  8143. else
  8144. acl_cv_prog_gnu_ld=no
  8145. fi
  8146. fi
  8147. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  8148. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  8149. with_gnu_ld=$acl_cv_prog_gnu_ld
  8150. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  8151. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  8152. if test "${acl_cv_rpath+set}" = set; then
  8153. echo $ECHO_N "(cached) $ECHO_C" >&6
  8154. else
  8155. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8156. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8157. . ./conftest.sh
  8158. rm -f ./conftest.sh
  8159. acl_cv_rpath=done
  8160. fi
  8161. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  8162. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  8163. wl="$acl_cv_wl"
  8164. libext="$acl_cv_libext"
  8165. shlibext="$acl_cv_shlibext"
  8166. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8167. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8168. hardcode_direct="$acl_cv_hardcode_direct"
  8169. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8170. # Check whether --enable-rpath was given.
  8171. if test "${enable_rpath+set}" = set; then
  8172. enableval=$enable_rpath; :
  8173. else
  8174. enable_rpath=yes
  8175. fi
  8176. use_additional=yes
  8177. acl_save_prefix="$prefix"
  8178. prefix="$acl_final_prefix"
  8179. acl_save_exec_prefix="$exec_prefix"
  8180. exec_prefix="$acl_final_exec_prefix"
  8181. eval additional_includedir=\"$includedir\"
  8182. eval additional_libdir=\"$libdir\"
  8183. exec_prefix="$acl_save_exec_prefix"
  8184. prefix="$acl_save_prefix"
  8185. # Check whether --with-libiconv-prefix was given.
  8186. if test "${with_libiconv_prefix+set}" = set; then
  8187. withval=$with_libiconv_prefix;
  8188. if test "X$withval" = "Xno"; then
  8189. use_additional=no
  8190. else
  8191. if test "X$withval" = "X"; then
  8192. acl_save_prefix="$prefix"
  8193. prefix="$acl_final_prefix"
  8194. acl_save_exec_prefix="$exec_prefix"
  8195. exec_prefix="$acl_final_exec_prefix"
  8196. eval additional_includedir=\"$includedir\"
  8197. eval additional_libdir=\"$libdir\"
  8198. exec_prefix="$acl_save_exec_prefix"
  8199. prefix="$acl_save_prefix"
  8200. else
  8201. additional_includedir="$withval/include"
  8202. additional_libdir="$withval/lib"
  8203. fi
  8204. fi
  8205. fi
  8206. LIBICONV=
  8207. LTLIBICONV=
  8208. INCICONV=
  8209. rpathdirs=
  8210. ltrpathdirs=
  8211. names_already_handled=
  8212. names_next_round='iconv '
  8213. while test -n "$names_next_round"; do
  8214. names_this_round="$names_next_round"
  8215. names_next_round=
  8216. for name in $names_this_round; do
  8217. already_handled=
  8218. for n in $names_already_handled; do
  8219. if test "$n" = "$name"; then
  8220. already_handled=yes
  8221. break
  8222. fi
  8223. done
  8224. if test -z "$already_handled"; then
  8225. names_already_handled="$names_already_handled $name"
  8226. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8227. eval value=\"\$HAVE_LIB$uppername\"
  8228. if test -n "$value"; then
  8229. if test "$value" = yes; then
  8230. eval value=\"\$LIB$uppername\"
  8231. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  8232. eval value=\"\$LTLIB$uppername\"
  8233. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  8234. else
  8235. :
  8236. fi
  8237. else
  8238. found_dir=
  8239. found_la=
  8240. found_so=
  8241. found_a=
  8242. if test $use_additional = yes; then
  8243. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8244. found_dir="$additional_libdir"
  8245. found_so="$additional_libdir/lib$name.$shlibext"
  8246. if test -f "$additional_libdir/lib$name.la"; then
  8247. found_la="$additional_libdir/lib$name.la"
  8248. fi
  8249. else
  8250. if test -f "$additional_libdir/lib$name.$libext"; then
  8251. found_dir="$additional_libdir"
  8252. found_a="$additional_libdir/lib$name.$libext"
  8253. if test -f "$additional_libdir/lib$name.la"; then
  8254. found_la="$additional_libdir/lib$name.la"
  8255. fi
  8256. fi
  8257. fi
  8258. fi
  8259. if test "X$found_dir" = "X"; then
  8260. for x in $LDFLAGS $LTLIBICONV; do
  8261. acl_save_prefix="$prefix"
  8262. prefix="$acl_final_prefix"
  8263. acl_save_exec_prefix="$exec_prefix"
  8264. exec_prefix="$acl_final_exec_prefix"
  8265. eval x=\"$x\"
  8266. exec_prefix="$acl_save_exec_prefix"
  8267. prefix="$acl_save_prefix"
  8268. case "$x" in
  8269. -L*)
  8270. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8271. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8272. found_dir="$dir"
  8273. found_so="$dir/lib$name.$shlibext"
  8274. if test -f "$dir/lib$name.la"; then
  8275. found_la="$dir/lib$name.la"
  8276. fi
  8277. else
  8278. if test -f "$dir/lib$name.$libext"; then
  8279. found_dir="$dir"
  8280. found_a="$dir/lib$name.$libext"
  8281. if test -f "$dir/lib$name.la"; then
  8282. found_la="$dir/lib$name.la"
  8283. fi
  8284. fi
  8285. fi
  8286. ;;
  8287. esac
  8288. if test "X$found_dir" != "X"; then
  8289. break
  8290. fi
  8291. done
  8292. fi
  8293. if test "X$found_dir" != "X"; then
  8294. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  8295. if test "X$found_so" != "X"; then
  8296. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8297. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8298. else
  8299. haveit=
  8300. for x in $ltrpathdirs; do
  8301. if test "X$x" = "X$found_dir"; then
  8302. haveit=yes
  8303. break
  8304. fi
  8305. done
  8306. if test -z "$haveit"; then
  8307. ltrpathdirs="$ltrpathdirs $found_dir"
  8308. fi
  8309. if test "$hardcode_direct" = yes; then
  8310. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8311. else
  8312. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8313. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8314. haveit=
  8315. for x in $rpathdirs; do
  8316. if test "X$x" = "X$found_dir"; then
  8317. haveit=yes
  8318. break
  8319. fi
  8320. done
  8321. if test -z "$haveit"; then
  8322. rpathdirs="$rpathdirs $found_dir"
  8323. fi
  8324. else
  8325. haveit=
  8326. for x in $LDFLAGS $LIBICONV; do
  8327. acl_save_prefix="$prefix"
  8328. prefix="$acl_final_prefix"
  8329. acl_save_exec_prefix="$exec_prefix"
  8330. exec_prefix="$acl_final_exec_prefix"
  8331. eval x=\"$x\"
  8332. exec_prefix="$acl_save_exec_prefix"
  8333. prefix="$acl_save_prefix"
  8334. if test "X$x" = "X-L$found_dir"; then
  8335. haveit=yes
  8336. break
  8337. fi
  8338. done
  8339. if test -z "$haveit"; then
  8340. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  8341. fi
  8342. if test "$hardcode_minus_L" != no; then
  8343. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8344. else
  8345. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8346. fi
  8347. fi
  8348. fi
  8349. fi
  8350. else
  8351. if test "X$found_a" != "X"; then
  8352. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  8353. else
  8354. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  8355. fi
  8356. fi
  8357. additional_includedir=
  8358. case "$found_dir" in
  8359. */lib | */lib/)
  8360. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8361. additional_includedir="$basedir/include"
  8362. ;;
  8363. esac
  8364. if test "X$additional_includedir" != "X"; then
  8365. if test "X$additional_includedir" != "X/usr/include"; then
  8366. haveit=
  8367. if test "X$additional_includedir" = "X/usr/local/include"; then
  8368. if test -n "$GCC"; then
  8369. case $host_os in
  8370. linux*) haveit=yes;;
  8371. esac
  8372. fi
  8373. fi
  8374. if test -z "$haveit"; then
  8375. for x in $CPPFLAGS $INCICONV; do
  8376. acl_save_prefix="$prefix"
  8377. prefix="$acl_final_prefix"
  8378. acl_save_exec_prefix="$exec_prefix"
  8379. exec_prefix="$acl_final_exec_prefix"
  8380. eval x=\"$x\"
  8381. exec_prefix="$acl_save_exec_prefix"
  8382. prefix="$acl_save_prefix"
  8383. if test "X$x" = "X-I$additional_includedir"; then
  8384. haveit=yes
  8385. break
  8386. fi
  8387. done
  8388. if test -z "$haveit"; then
  8389. if test -d "$additional_includedir"; then
  8390. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  8391. fi
  8392. fi
  8393. fi
  8394. fi
  8395. fi
  8396. if test -n "$found_la"; then
  8397. save_libdir="$libdir"
  8398. case "$found_la" in
  8399. */* | *\\*) . "$found_la" ;;
  8400. *) . "./$found_la" ;;
  8401. esac
  8402. libdir="$save_libdir"
  8403. for dep in $dependency_libs; do
  8404. case "$dep" in
  8405. -L*)
  8406. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8407. if test "X$additional_libdir" != "X/usr/lib"; then
  8408. haveit=
  8409. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8410. if test -n "$GCC"; then
  8411. case $host_os in
  8412. linux*) haveit=yes;;
  8413. esac
  8414. fi
  8415. fi
  8416. if test -z "$haveit"; then
  8417. haveit=
  8418. for x in $LDFLAGS $LIBICONV; do
  8419. acl_save_prefix="$prefix"
  8420. prefix="$acl_final_prefix"
  8421. acl_save_exec_prefix="$exec_prefix"
  8422. exec_prefix="$acl_final_exec_prefix"
  8423. eval x=\"$x\"
  8424. exec_prefix="$acl_save_exec_prefix"
  8425. prefix="$acl_save_prefix"
  8426. if test "X$x" = "X-L$additional_libdir"; then
  8427. haveit=yes
  8428. break
  8429. fi
  8430. done
  8431. if test -z "$haveit"; then
  8432. if test -d "$additional_libdir"; then
  8433. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  8434. fi
  8435. fi
  8436. haveit=
  8437. for x in $LDFLAGS $LTLIBICONV; do
  8438. acl_save_prefix="$prefix"
  8439. prefix="$acl_final_prefix"
  8440. acl_save_exec_prefix="$exec_prefix"
  8441. exec_prefix="$acl_final_exec_prefix"
  8442. eval x=\"$x\"
  8443. exec_prefix="$acl_save_exec_prefix"
  8444. prefix="$acl_save_prefix"
  8445. if test "X$x" = "X-L$additional_libdir"; then
  8446. haveit=yes
  8447. break
  8448. fi
  8449. done
  8450. if test -z "$haveit"; then
  8451. if test -d "$additional_libdir"; then
  8452. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  8453. fi
  8454. fi
  8455. fi
  8456. fi
  8457. ;;
  8458. -R*)
  8459. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8460. if test "$enable_rpath" != no; then
  8461. haveit=
  8462. for x in $rpathdirs; do
  8463. if test "X$x" = "X$dir"; then
  8464. haveit=yes
  8465. break
  8466. fi
  8467. done
  8468. if test -z "$haveit"; then
  8469. rpathdirs="$rpathdirs $dir"
  8470. fi
  8471. haveit=
  8472. for x in $ltrpathdirs; do
  8473. if test "X$x" = "X$dir"; then
  8474. haveit=yes
  8475. break
  8476. fi
  8477. done
  8478. if test -z "$haveit"; then
  8479. ltrpathdirs="$ltrpathdirs $dir"
  8480. fi
  8481. fi
  8482. ;;
  8483. -l*)
  8484. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8485. ;;
  8486. *.la)
  8487. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8488. ;;
  8489. *)
  8490. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  8491. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  8492. ;;
  8493. esac
  8494. done
  8495. fi
  8496. else
  8497. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8498. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  8499. fi
  8500. fi
  8501. fi
  8502. done
  8503. done
  8504. if test "X$rpathdirs" != "X"; then
  8505. if test -n "$hardcode_libdir_separator"; then
  8506. alldirs=
  8507. for found_dir in $rpathdirs; do
  8508. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8509. done
  8510. acl_save_libdir="$libdir"
  8511. libdir="$alldirs"
  8512. eval flag=\"$hardcode_libdir_flag_spec\"
  8513. libdir="$acl_save_libdir"
  8514. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8515. else
  8516. for found_dir in $rpathdirs; do
  8517. acl_save_libdir="$libdir"
  8518. libdir="$found_dir"
  8519. eval flag=\"$hardcode_libdir_flag_spec\"
  8520. libdir="$acl_save_libdir"
  8521. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8522. done
  8523. fi
  8524. fi
  8525. if test "X$ltrpathdirs" != "X"; then
  8526. for found_dir in $ltrpathdirs; do
  8527. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  8528. done
  8529. fi
  8530. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  8531. stdlib.h string.h unistd.h sys/param.h
  8532. do
  8533. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8534. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8535. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8536. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8537. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8538. echo $ECHO_N "(cached) $ECHO_C" >&6
  8539. fi
  8540. ac_res=`eval echo '${'$as_ac_Header'}'`
  8541. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8542. echo "${ECHO_T}$ac_res" >&6; }
  8543. else
  8544. # Is the header compilable?
  8545. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8546. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8547. cat >conftest.$ac_ext <<_ACEOF
  8548. /* confdefs.h. */
  8549. _ACEOF
  8550. cat confdefs.h >>conftest.$ac_ext
  8551. cat >>conftest.$ac_ext <<_ACEOF
  8552. /* end confdefs.h. */
  8553. $ac_includes_default
  8554. #include <$ac_header>
  8555. _ACEOF
  8556. rm -f conftest.$ac_objext
  8557. if { (ac_try="$ac_compile"
  8558. case "(($ac_try" in
  8559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8560. *) ac_try_echo=$ac_try;;
  8561. esac
  8562. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8563. (eval "$ac_compile") 2>conftest.er1
  8564. ac_status=$?
  8565. grep -v '^ *+' conftest.er1 >conftest.err
  8566. rm -f conftest.er1
  8567. cat conftest.err >&5
  8568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8569. (exit $ac_status); } && {
  8570. test -z "$ac_cxx_werror_flag" ||
  8571. test ! -s conftest.err
  8572. } && test -s conftest.$ac_objext; then
  8573. ac_header_compiler=yes
  8574. else
  8575. echo "$as_me: failed program was:" >&5
  8576. sed 's/^/| /' conftest.$ac_ext >&5
  8577. ac_header_compiler=no
  8578. fi
  8579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8580. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8581. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8582. # Is the header present?
  8583. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8584. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8585. cat >conftest.$ac_ext <<_ACEOF
  8586. /* confdefs.h. */
  8587. _ACEOF
  8588. cat confdefs.h >>conftest.$ac_ext
  8589. cat >>conftest.$ac_ext <<_ACEOF
  8590. /* end confdefs.h. */
  8591. #include <$ac_header>
  8592. _ACEOF
  8593. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8594. case "(($ac_try" in
  8595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8596. *) ac_try_echo=$ac_try;;
  8597. esac
  8598. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8599. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8600. ac_status=$?
  8601. grep -v '^ *+' conftest.er1 >conftest.err
  8602. rm -f conftest.er1
  8603. cat conftest.err >&5
  8604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8605. (exit $ac_status); } >/dev/null && {
  8606. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8607. test ! -s conftest.err
  8608. }; then
  8609. ac_header_preproc=yes
  8610. else
  8611. echo "$as_me: failed program was:" >&5
  8612. sed 's/^/| /' conftest.$ac_ext >&5
  8613. ac_header_preproc=no
  8614. fi
  8615. rm -f conftest.err conftest.$ac_ext
  8616. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8617. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8618. # So? What about this header?
  8619. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8620. yes:no: )
  8621. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8622. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8623. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8624. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8625. ac_header_preproc=yes
  8626. ;;
  8627. no:yes:* )
  8628. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8629. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8630. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8631. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8632. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8633. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8634. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8635. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8636. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8637. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8638. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8639. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8640. ( cat <<\_ASBOX
  8641. ## ----------------------------------------------- ##
  8642. ## Report this to t-tujikawa@users.sourceforge.net ##
  8643. ## ----------------------------------------------- ##
  8644. _ASBOX
  8645. ) | sed "s/^/$as_me: WARNING: /" >&2
  8646. ;;
  8647. esac
  8648. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8649. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8650. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8651. echo $ECHO_N "(cached) $ECHO_C" >&6
  8652. else
  8653. eval "$as_ac_Header=\$ac_header_preproc"
  8654. fi
  8655. ac_res=`eval echo '${'$as_ac_Header'}'`
  8656. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8657. echo "${ECHO_T}$ac_res" >&6; }
  8658. fi
  8659. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8660. cat >>confdefs.h <<_ACEOF
  8661. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8662. _ACEOF
  8663. fi
  8664. done
  8665. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  8666. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  8667. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  8668. __fsetlocking
  8669. do
  8670. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8671. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8672. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8673. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8674. echo $ECHO_N "(cached) $ECHO_C" >&6
  8675. else
  8676. cat >conftest.$ac_ext <<_ACEOF
  8677. /* confdefs.h. */
  8678. _ACEOF
  8679. cat confdefs.h >>conftest.$ac_ext
  8680. cat >>conftest.$ac_ext <<_ACEOF
  8681. /* end confdefs.h. */
  8682. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8683. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8684. #define $ac_func innocuous_$ac_func
  8685. /* System header to define __stub macros and hopefully few prototypes,
  8686. which can conflict with char $ac_func (); below.
  8687. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8688. <limits.h> exists even on freestanding compilers. */
  8689. #ifdef __STDC__
  8690. # include <limits.h>
  8691. #else
  8692. # include <assert.h>
  8693. #endif
  8694. #undef $ac_func
  8695. /* Override any GCC internal prototype to avoid an error.
  8696. Use char because int might match the return type of a GCC
  8697. builtin and then its argument prototype would still apply. */
  8698. #ifdef __cplusplus
  8699. extern "C"
  8700. #endif
  8701. char $ac_func ();
  8702. /* The GNU C library defines this for functions which it implements
  8703. to always fail with ENOSYS. Some functions are actually named
  8704. something starting with __ and the normal name is an alias. */
  8705. #if defined __stub_$ac_func || defined __stub___$ac_func
  8706. choke me
  8707. #endif
  8708. int
  8709. main ()
  8710. {
  8711. return $ac_func ();
  8712. ;
  8713. return 0;
  8714. }
  8715. _ACEOF
  8716. rm -f conftest.$ac_objext conftest$ac_exeext
  8717. if { (ac_try="$ac_link"
  8718. case "(($ac_try" in
  8719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8720. *) ac_try_echo=$ac_try;;
  8721. esac
  8722. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8723. (eval "$ac_link") 2>conftest.er1
  8724. ac_status=$?
  8725. grep -v '^ *+' conftest.er1 >conftest.err
  8726. rm -f conftest.er1
  8727. cat conftest.err >&5
  8728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8729. (exit $ac_status); } && {
  8730. test -z "$ac_cxx_werror_flag" ||
  8731. test ! -s conftest.err
  8732. } && test -s conftest$ac_exeext &&
  8733. $as_test_x conftest$ac_exeext; then
  8734. eval "$as_ac_var=yes"
  8735. else
  8736. echo "$as_me: failed program was:" >&5
  8737. sed 's/^/| /' conftest.$ac_ext >&5
  8738. eval "$as_ac_var=no"
  8739. fi
  8740. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8741. conftest$ac_exeext conftest.$ac_ext
  8742. fi
  8743. ac_res=`eval echo '${'$as_ac_var'}'`
  8744. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8745. echo "${ECHO_T}$ac_res" >&6; }
  8746. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8747. cat >>confdefs.h <<_ACEOF
  8748. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8749. _ACEOF
  8750. fi
  8751. done
  8752. am_save_CPPFLAGS="$CPPFLAGS"
  8753. for element in $INCICONV; do
  8754. haveit=
  8755. for x in $CPPFLAGS; do
  8756. acl_save_prefix="$prefix"
  8757. prefix="$acl_final_prefix"
  8758. acl_save_exec_prefix="$exec_prefix"
  8759. exec_prefix="$acl_final_exec_prefix"
  8760. eval x=\"$x\"
  8761. exec_prefix="$acl_save_exec_prefix"
  8762. prefix="$acl_save_prefix"
  8763. if test "X$x" = "X$element"; then
  8764. haveit=yes
  8765. break
  8766. fi
  8767. done
  8768. if test -z "$haveit"; then
  8769. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8770. fi
  8771. done
  8772. { echo "$as_me:$LINENO: checking for iconv" >&5
  8773. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  8774. if test "${am_cv_func_iconv+set}" = set; then
  8775. echo $ECHO_N "(cached) $ECHO_C" >&6
  8776. else
  8777. am_cv_func_iconv="no, consider installing GNU libiconv"
  8778. am_cv_lib_iconv=no
  8779. cat >conftest.$ac_ext <<_ACEOF
  8780. /* confdefs.h. */
  8781. _ACEOF
  8782. cat confdefs.h >>conftest.$ac_ext
  8783. cat >>conftest.$ac_ext <<_ACEOF
  8784. /* end confdefs.h. */
  8785. #include <stdlib.h>
  8786. #include <iconv.h>
  8787. int
  8788. main ()
  8789. {
  8790. iconv_t cd = iconv_open("","");
  8791. iconv(cd,NULL,NULL,NULL,NULL);
  8792. iconv_close(cd);
  8793. ;
  8794. return 0;
  8795. }
  8796. _ACEOF
  8797. rm -f conftest.$ac_objext conftest$ac_exeext
  8798. if { (ac_try="$ac_link"
  8799. case "(($ac_try" in
  8800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8801. *) ac_try_echo=$ac_try;;
  8802. esac
  8803. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8804. (eval "$ac_link") 2>conftest.er1
  8805. ac_status=$?
  8806. grep -v '^ *+' conftest.er1 >conftest.err
  8807. rm -f conftest.er1
  8808. cat conftest.err >&5
  8809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8810. (exit $ac_status); } && {
  8811. test -z "$ac_cxx_werror_flag" ||
  8812. test ! -s conftest.err
  8813. } && test -s conftest$ac_exeext &&
  8814. $as_test_x conftest$ac_exeext; then
  8815. am_cv_func_iconv=yes
  8816. else
  8817. echo "$as_me: failed program was:" >&5
  8818. sed 's/^/| /' conftest.$ac_ext >&5
  8819. fi
  8820. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8821. conftest$ac_exeext conftest.$ac_ext
  8822. if test "$am_cv_func_iconv" != yes; then
  8823. am_save_LIBS="$LIBS"
  8824. LIBS="$LIBS $LIBICONV"
  8825. cat >conftest.$ac_ext <<_ACEOF
  8826. /* confdefs.h. */
  8827. _ACEOF
  8828. cat confdefs.h >>conftest.$ac_ext
  8829. cat >>conftest.$ac_ext <<_ACEOF
  8830. /* end confdefs.h. */
  8831. #include <stdlib.h>
  8832. #include <iconv.h>
  8833. int
  8834. main ()
  8835. {
  8836. iconv_t cd = iconv_open("","");
  8837. iconv(cd,NULL,NULL,NULL,NULL);
  8838. iconv_close(cd);
  8839. ;
  8840. return 0;
  8841. }
  8842. _ACEOF
  8843. rm -f conftest.$ac_objext conftest$ac_exeext
  8844. if { (ac_try="$ac_link"
  8845. case "(($ac_try" in
  8846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8847. *) ac_try_echo=$ac_try;;
  8848. esac
  8849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8850. (eval "$ac_link") 2>conftest.er1
  8851. ac_status=$?
  8852. grep -v '^ *+' conftest.er1 >conftest.err
  8853. rm -f conftest.er1
  8854. cat conftest.err >&5
  8855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8856. (exit $ac_status); } && {
  8857. test -z "$ac_cxx_werror_flag" ||
  8858. test ! -s conftest.err
  8859. } && test -s conftest$ac_exeext &&
  8860. $as_test_x conftest$ac_exeext; then
  8861. am_cv_lib_iconv=yes
  8862. am_cv_func_iconv=yes
  8863. else
  8864. echo "$as_me: failed program was:" >&5
  8865. sed 's/^/| /' conftest.$ac_ext >&5
  8866. fi
  8867. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8868. conftest$ac_exeext conftest.$ac_ext
  8869. LIBS="$am_save_LIBS"
  8870. fi
  8871. fi
  8872. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  8873. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  8874. if test "$am_cv_func_iconv" = yes; then
  8875. cat >>confdefs.h <<\_ACEOF
  8876. #define HAVE_ICONV 1
  8877. _ACEOF
  8878. fi
  8879. if test "$am_cv_lib_iconv" = yes; then
  8880. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  8881. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  8882. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  8883. echo "${ECHO_T}$LIBICONV" >&6; }
  8884. else
  8885. CPPFLAGS="$am_save_CPPFLAGS"
  8886. LIBICONV=
  8887. LTLIBICONV=
  8888. fi
  8889. if test "$am_cv_func_iconv" = yes; then
  8890. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  8891. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  8892. if test "${am_cv_proto_iconv+set}" = set; then
  8893. echo $ECHO_N "(cached) $ECHO_C" >&6
  8894. else
  8895. cat >conftest.$ac_ext <<_ACEOF
  8896. /* confdefs.h. */
  8897. _ACEOF
  8898. cat confdefs.h >>conftest.$ac_ext
  8899. cat >>conftest.$ac_ext <<_ACEOF
  8900. /* end confdefs.h. */
  8901. #include <stdlib.h>
  8902. #include <iconv.h>
  8903. extern
  8904. #ifdef __cplusplus
  8905. "C"
  8906. #endif
  8907. #if defined(__STDC__) || defined(__cplusplus)
  8908. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  8909. #else
  8910. size_t iconv();
  8911. #endif
  8912. int
  8913. main ()
  8914. {
  8915. ;
  8916. return 0;
  8917. }
  8918. _ACEOF
  8919. rm -f conftest.$ac_objext
  8920. if { (ac_try="$ac_compile"
  8921. case "(($ac_try" in
  8922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8923. *) ac_try_echo=$ac_try;;
  8924. esac
  8925. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8926. (eval "$ac_compile") 2>conftest.er1
  8927. ac_status=$?
  8928. grep -v '^ *+' conftest.er1 >conftest.err
  8929. rm -f conftest.er1
  8930. cat conftest.err >&5
  8931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8932. (exit $ac_status); } && {
  8933. test -z "$ac_cxx_werror_flag" ||
  8934. test ! -s conftest.err
  8935. } && test -s conftest.$ac_objext; then
  8936. am_cv_proto_iconv_arg1=""
  8937. else
  8938. echo "$as_me: failed program was:" >&5
  8939. sed 's/^/| /' conftest.$ac_ext >&5
  8940. am_cv_proto_iconv_arg1="const"
  8941. fi
  8942. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8943. 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);"
  8944. fi
  8945. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  8946. { echo "$as_me:$LINENO: result: ${ac_t:-
  8947. }$am_cv_proto_iconv" >&5
  8948. echo "${ECHO_T}${ac_t:-
  8949. }$am_cv_proto_iconv" >&6; }
  8950. cat >>confdefs.h <<_ACEOF
  8951. #define ICONV_CONST $am_cv_proto_iconv_arg1
  8952. _ACEOF
  8953. fi
  8954. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  8955. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  8956. if test "${am_cv_langinfo_codeset+set}" = set; then
  8957. echo $ECHO_N "(cached) $ECHO_C" >&6
  8958. else
  8959. cat >conftest.$ac_ext <<_ACEOF
  8960. /* confdefs.h. */
  8961. _ACEOF
  8962. cat confdefs.h >>conftest.$ac_ext
  8963. cat >>conftest.$ac_ext <<_ACEOF
  8964. /* end confdefs.h. */
  8965. #include <langinfo.h>
  8966. int
  8967. main ()
  8968. {
  8969. char* cs = nl_langinfo(CODESET);
  8970. ;
  8971. return 0;
  8972. }
  8973. _ACEOF
  8974. rm -f conftest.$ac_objext conftest$ac_exeext
  8975. if { (ac_try="$ac_link"
  8976. case "(($ac_try" in
  8977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8978. *) ac_try_echo=$ac_try;;
  8979. esac
  8980. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8981. (eval "$ac_link") 2>conftest.er1
  8982. ac_status=$?
  8983. grep -v '^ *+' conftest.er1 >conftest.err
  8984. rm -f conftest.er1
  8985. cat conftest.err >&5
  8986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8987. (exit $ac_status); } && {
  8988. test -z "$ac_cxx_werror_flag" ||
  8989. test ! -s conftest.err
  8990. } && test -s conftest$ac_exeext &&
  8991. $as_test_x conftest$ac_exeext; then
  8992. am_cv_langinfo_codeset=yes
  8993. else
  8994. echo "$as_me: failed program was:" >&5
  8995. sed 's/^/| /' conftest.$ac_ext >&5
  8996. am_cv_langinfo_codeset=no
  8997. fi
  8998. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8999. conftest$ac_exeext conftest.$ac_ext
  9000. fi
  9001. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  9002. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  9003. if test $am_cv_langinfo_codeset = yes; then
  9004. cat >>confdefs.h <<\_ACEOF
  9005. #define HAVE_LANGINFO_CODESET 1
  9006. _ACEOF
  9007. fi
  9008. if test $ac_cv_header_locale_h = yes; then
  9009. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  9010. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  9011. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  9012. echo $ECHO_N "(cached) $ECHO_C" >&6
  9013. else
  9014. cat >conftest.$ac_ext <<_ACEOF
  9015. /* confdefs.h. */
  9016. _ACEOF
  9017. cat confdefs.h >>conftest.$ac_ext
  9018. cat >>conftest.$ac_ext <<_ACEOF
  9019. /* end confdefs.h. */
  9020. #include <locale.h>
  9021. int
  9022. main ()
  9023. {
  9024. return LC_MESSAGES
  9025. ;
  9026. return 0;
  9027. }
  9028. _ACEOF
  9029. rm -f conftest.$ac_objext conftest$ac_exeext
  9030. if { (ac_try="$ac_link"
  9031. case "(($ac_try" in
  9032. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9033. *) ac_try_echo=$ac_try;;
  9034. esac
  9035. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9036. (eval "$ac_link") 2>conftest.er1
  9037. ac_status=$?
  9038. grep -v '^ *+' conftest.er1 >conftest.err
  9039. rm -f conftest.er1
  9040. cat conftest.err >&5
  9041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9042. (exit $ac_status); } && {
  9043. test -z "$ac_cxx_werror_flag" ||
  9044. test ! -s conftest.err
  9045. } && test -s conftest$ac_exeext &&
  9046. $as_test_x conftest$ac_exeext; then
  9047. am_cv_val_LC_MESSAGES=yes
  9048. else
  9049. echo "$as_me: failed program was:" >&5
  9050. sed 's/^/| /' conftest.$ac_ext >&5
  9051. am_cv_val_LC_MESSAGES=no
  9052. fi
  9053. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9054. conftest$ac_exeext conftest.$ac_ext
  9055. fi
  9056. { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  9057. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  9058. if test $am_cv_val_LC_MESSAGES = yes; then
  9059. cat >>confdefs.h <<\_ACEOF
  9060. #define HAVE_LC_MESSAGES 1
  9061. _ACEOF
  9062. fi
  9063. fi
  9064. for ac_prog in bison
  9065. do
  9066. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9067. set dummy $ac_prog; ac_word=$2
  9068. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9069. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9070. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  9071. echo $ECHO_N "(cached) $ECHO_C" >&6
  9072. else
  9073. if test -n "$INTLBISON"; then
  9074. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  9075. else
  9076. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9077. for as_dir in $PATH
  9078. do
  9079. IFS=$as_save_IFS
  9080. test -z "$as_dir" && as_dir=.
  9081. for ac_exec_ext in '' $ac_executable_extensions; do
  9082. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9083. ac_cv_prog_INTLBISON="$ac_prog"
  9084. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9085. break 2
  9086. fi
  9087. done
  9088. done
  9089. IFS=$as_save_IFS
  9090. fi
  9091. fi
  9092. INTLBISON=$ac_cv_prog_INTLBISON
  9093. if test -n "$INTLBISON"; then
  9094. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  9095. echo "${ECHO_T}$INTLBISON" >&6; }
  9096. else
  9097. { echo "$as_me:$LINENO: result: no" >&5
  9098. echo "${ECHO_T}no" >&6; }
  9099. fi
  9100. test -n "$INTLBISON" && break
  9101. done
  9102. if test -z "$INTLBISON"; then
  9103. ac_verc_fail=yes
  9104. else
  9105. { echo "$as_me:$LINENO: checking version of bison" >&5
  9106. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  9107. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  9108. case $ac_prog_version in
  9109. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  9110. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  9111. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  9112. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  9113. esac
  9114. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  9115. echo "${ECHO_T}$ac_prog_version" >&6; }
  9116. fi
  9117. if test $ac_verc_fail = yes; then
  9118. INTLBISON=:
  9119. fi
  9120. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9121. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9122. # Check whether --enable-nls was given.
  9123. if test "${enable_nls+set}" = set; then
  9124. enableval=$enable_nls; USE_NLS=$enableval
  9125. else
  9126. USE_NLS=yes
  9127. fi
  9128. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9129. echo "${ECHO_T}$USE_NLS" >&6; }
  9130. BUILD_INCLUDED_LIBINTL=no
  9131. USE_INCLUDED_LIBINTL=no
  9132. LIBINTL=
  9133. LTLIBINTL=
  9134. POSUB=
  9135. if test "$USE_NLS" = "yes"; then
  9136. gt_use_preinstalled_gnugettext=no
  9137. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  9138. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  9139. # Check whether --with-included-gettext was given.
  9140. if test "${with_included_gettext+set}" = set; then
  9141. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  9142. else
  9143. nls_cv_force_use_gnu_gettext=no
  9144. fi
  9145. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  9146. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  9147. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  9148. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  9149. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  9150. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  9151. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  9152. echo $ECHO_N "(cached) $ECHO_C" >&6
  9153. else
  9154. cat >conftest.$ac_ext <<_ACEOF
  9155. /* confdefs.h. */
  9156. _ACEOF
  9157. cat confdefs.h >>conftest.$ac_ext
  9158. cat >>conftest.$ac_ext <<_ACEOF
  9159. /* end confdefs.h. */
  9160. #include <libintl.h>
  9161. extern int _nl_msg_cat_cntr;
  9162. extern int *_nl_domain_bindings;
  9163. int
  9164. main ()
  9165. {
  9166. bindtextdomain ("", "");
  9167. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  9168. ;
  9169. return 0;
  9170. }
  9171. _ACEOF
  9172. rm -f conftest.$ac_objext conftest$ac_exeext
  9173. if { (ac_try="$ac_link"
  9174. case "(($ac_try" in
  9175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9176. *) ac_try_echo=$ac_try;;
  9177. esac
  9178. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9179. (eval "$ac_link") 2>conftest.er1
  9180. ac_status=$?
  9181. grep -v '^ *+' conftest.er1 >conftest.err
  9182. rm -f conftest.er1
  9183. cat conftest.err >&5
  9184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9185. (exit $ac_status); } && {
  9186. test -z "$ac_cxx_werror_flag" ||
  9187. test ! -s conftest.err
  9188. } && test -s conftest$ac_exeext &&
  9189. $as_test_x conftest$ac_exeext; then
  9190. gt_cv_func_gnugettext1_libc=yes
  9191. else
  9192. echo "$as_me: failed program was:" >&5
  9193. sed 's/^/| /' conftest.$ac_ext >&5
  9194. gt_cv_func_gnugettext1_libc=no
  9195. fi
  9196. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9197. conftest$ac_exeext conftest.$ac_ext
  9198. fi
  9199. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  9200. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
  9201. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  9202. use_additional=yes
  9203. acl_save_prefix="$prefix"
  9204. prefix="$acl_final_prefix"
  9205. acl_save_exec_prefix="$exec_prefix"
  9206. exec_prefix="$acl_final_exec_prefix"
  9207. eval additional_includedir=\"$includedir\"
  9208. eval additional_libdir=\"$libdir\"
  9209. exec_prefix="$acl_save_exec_prefix"
  9210. prefix="$acl_save_prefix"
  9211. # Check whether --with-libintl-prefix was given.
  9212. if test "${with_libintl_prefix+set}" = set; then
  9213. withval=$with_libintl_prefix;
  9214. if test "X$withval" = "Xno"; then
  9215. use_additional=no
  9216. else
  9217. if test "X$withval" = "X"; then
  9218. acl_save_prefix="$prefix"
  9219. prefix="$acl_final_prefix"
  9220. acl_save_exec_prefix="$exec_prefix"
  9221. exec_prefix="$acl_final_exec_prefix"
  9222. eval additional_includedir=\"$includedir\"
  9223. eval additional_libdir=\"$libdir\"
  9224. exec_prefix="$acl_save_exec_prefix"
  9225. prefix="$acl_save_prefix"
  9226. else
  9227. additional_includedir="$withval/include"
  9228. additional_libdir="$withval/lib"
  9229. fi
  9230. fi
  9231. fi
  9232. LIBINTL=
  9233. LTLIBINTL=
  9234. INCINTL=
  9235. rpathdirs=
  9236. ltrpathdirs=
  9237. names_already_handled=
  9238. names_next_round='intl '
  9239. while test -n "$names_next_round"; do
  9240. names_this_round="$names_next_round"
  9241. names_next_round=
  9242. for name in $names_this_round; do
  9243. already_handled=
  9244. for n in $names_already_handled; do
  9245. if test "$n" = "$name"; then
  9246. already_handled=yes
  9247. break
  9248. fi
  9249. done
  9250. if test -z "$already_handled"; then
  9251. names_already_handled="$names_already_handled $name"
  9252. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9253. eval value=\"\$HAVE_LIB$uppername\"
  9254. if test -n "$value"; then
  9255. if test "$value" = yes; then
  9256. eval value=\"\$LIB$uppername\"
  9257. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  9258. eval value=\"\$LTLIB$uppername\"
  9259. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  9260. else
  9261. :
  9262. fi
  9263. else
  9264. found_dir=
  9265. found_la=
  9266. found_so=
  9267. found_a=
  9268. if test $use_additional = yes; then
  9269. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  9270. found_dir="$additional_libdir"
  9271. found_so="$additional_libdir/lib$name.$shlibext"
  9272. if test -f "$additional_libdir/lib$name.la"; then
  9273. found_la="$additional_libdir/lib$name.la"
  9274. fi
  9275. else
  9276. if test -f "$additional_libdir/lib$name.$libext"; then
  9277. found_dir="$additional_libdir"
  9278. found_a="$additional_libdir/lib$name.$libext"
  9279. if test -f "$additional_libdir/lib$name.la"; then
  9280. found_la="$additional_libdir/lib$name.la"
  9281. fi
  9282. fi
  9283. fi
  9284. fi
  9285. if test "X$found_dir" = "X"; then
  9286. for x in $LDFLAGS $LTLIBINTL; do
  9287. acl_save_prefix="$prefix"
  9288. prefix="$acl_final_prefix"
  9289. acl_save_exec_prefix="$exec_prefix"
  9290. exec_prefix="$acl_final_exec_prefix"
  9291. eval x=\"$x\"
  9292. exec_prefix="$acl_save_exec_prefix"
  9293. prefix="$acl_save_prefix"
  9294. case "$x" in
  9295. -L*)
  9296. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9297. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  9298. found_dir="$dir"
  9299. found_so="$dir/lib$name.$shlibext"
  9300. if test -f "$dir/lib$name.la"; then
  9301. found_la="$dir/lib$name.la"
  9302. fi
  9303. else
  9304. if test -f "$dir/lib$name.$libext"; then
  9305. found_dir="$dir"
  9306. found_a="$dir/lib$name.$libext"
  9307. if test -f "$dir/lib$name.la"; then
  9308. found_la="$dir/lib$name.la"
  9309. fi
  9310. fi
  9311. fi
  9312. ;;
  9313. esac
  9314. if test "X$found_dir" != "X"; then
  9315. break
  9316. fi
  9317. done
  9318. fi
  9319. if test "X$found_dir" != "X"; then
  9320. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  9321. if test "X$found_so" != "X"; then
  9322. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  9323. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9324. else
  9325. haveit=
  9326. for x in $ltrpathdirs; do
  9327. if test "X$x" = "X$found_dir"; then
  9328. haveit=yes
  9329. break
  9330. fi
  9331. done
  9332. if test -z "$haveit"; then
  9333. ltrpathdirs="$ltrpathdirs $found_dir"
  9334. fi
  9335. if test "$hardcode_direct" = yes; then
  9336. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9337. else
  9338. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  9339. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9340. haveit=
  9341. for x in $rpathdirs; do
  9342. if test "X$x" = "X$found_dir"; then
  9343. haveit=yes
  9344. break
  9345. fi
  9346. done
  9347. if test -z "$haveit"; then
  9348. rpathdirs="$rpathdirs $found_dir"
  9349. fi
  9350. else
  9351. haveit=
  9352. for x in $LDFLAGS $LIBINTL; do
  9353. acl_save_prefix="$prefix"
  9354. prefix="$acl_final_prefix"
  9355. acl_save_exec_prefix="$exec_prefix"
  9356. exec_prefix="$acl_final_exec_prefix"
  9357. eval x=\"$x\"
  9358. exec_prefix="$acl_save_exec_prefix"
  9359. prefix="$acl_save_prefix"
  9360. if test "X$x" = "X-L$found_dir"; then
  9361. haveit=yes
  9362. break
  9363. fi
  9364. done
  9365. if test -z "$haveit"; then
  9366. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  9367. fi
  9368. if test "$hardcode_minus_L" != no; then
  9369. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9370. else
  9371. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9372. fi
  9373. fi
  9374. fi
  9375. fi
  9376. else
  9377. if test "X$found_a" != "X"; then
  9378. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  9379. else
  9380. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  9381. fi
  9382. fi
  9383. additional_includedir=
  9384. case "$found_dir" in
  9385. */lib | */lib/)
  9386. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  9387. additional_includedir="$basedir/include"
  9388. ;;
  9389. esac
  9390. if test "X$additional_includedir" != "X"; then
  9391. if test "X$additional_includedir" != "X/usr/include"; then
  9392. haveit=
  9393. if test "X$additional_includedir" = "X/usr/local/include"; then
  9394. if test -n "$GCC"; then
  9395. case $host_os in
  9396. linux*) haveit=yes;;
  9397. esac
  9398. fi
  9399. fi
  9400. if test -z "$haveit"; then
  9401. for x in $CPPFLAGS $INCINTL; do
  9402. acl_save_prefix="$prefix"
  9403. prefix="$acl_final_prefix"
  9404. acl_save_exec_prefix="$exec_prefix"
  9405. exec_prefix="$acl_final_exec_prefix"
  9406. eval x=\"$x\"
  9407. exec_prefix="$acl_save_exec_prefix"
  9408. prefix="$acl_save_prefix"
  9409. if test "X$x" = "X-I$additional_includedir"; then
  9410. haveit=yes
  9411. break
  9412. fi
  9413. done
  9414. if test -z "$haveit"; then
  9415. if test -d "$additional_includedir"; then
  9416. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  9417. fi
  9418. fi
  9419. fi
  9420. fi
  9421. fi
  9422. if test -n "$found_la"; then
  9423. save_libdir="$libdir"
  9424. case "$found_la" in
  9425. */* | *\\*) . "$found_la" ;;
  9426. *) . "./$found_la" ;;
  9427. esac
  9428. libdir="$save_libdir"
  9429. for dep in $dependency_libs; do
  9430. case "$dep" in
  9431. -L*)
  9432. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9433. if test "X$additional_libdir" != "X/usr/lib"; then
  9434. haveit=
  9435. if test "X$additional_libdir" = "X/usr/local/lib"; then
  9436. if test -n "$GCC"; then
  9437. case $host_os in
  9438. linux*) haveit=yes;;
  9439. esac
  9440. fi
  9441. fi
  9442. if test -z "$haveit"; then
  9443. haveit=
  9444. for x in $LDFLAGS $LIBINTL; do
  9445. acl_save_prefix="$prefix"
  9446. prefix="$acl_final_prefix"
  9447. acl_save_exec_prefix="$exec_prefix"
  9448. exec_prefix="$acl_final_exec_prefix"
  9449. eval x=\"$x\"
  9450. exec_prefix="$acl_save_exec_prefix"
  9451. prefix="$acl_save_prefix"
  9452. if test "X$x" = "X-L$additional_libdir"; then
  9453. haveit=yes
  9454. break
  9455. fi
  9456. done
  9457. if test -z "$haveit"; then
  9458. if test -d "$additional_libdir"; then
  9459. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  9460. fi
  9461. fi
  9462. haveit=
  9463. for x in $LDFLAGS $LTLIBINTL; do
  9464. acl_save_prefix="$prefix"
  9465. prefix="$acl_final_prefix"
  9466. acl_save_exec_prefix="$exec_prefix"
  9467. exec_prefix="$acl_final_exec_prefix"
  9468. eval x=\"$x\"
  9469. exec_prefix="$acl_save_exec_prefix"
  9470. prefix="$acl_save_prefix"
  9471. if test "X$x" = "X-L$additional_libdir"; then
  9472. haveit=yes
  9473. break
  9474. fi
  9475. done
  9476. if test -z "$haveit"; then
  9477. if test -d "$additional_libdir"; then
  9478. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  9479. fi
  9480. fi
  9481. fi
  9482. fi
  9483. ;;
  9484. -R*)
  9485. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9486. if test "$enable_rpath" != no; then
  9487. haveit=
  9488. for x in $rpathdirs; do
  9489. if test "X$x" = "X$dir"; then
  9490. haveit=yes
  9491. break
  9492. fi
  9493. done
  9494. if test -z "$haveit"; then
  9495. rpathdirs="$rpathdirs $dir"
  9496. fi
  9497. haveit=
  9498. for x in $ltrpathdirs; do
  9499. if test "X$x" = "X$dir"; then
  9500. haveit=yes
  9501. break
  9502. fi
  9503. done
  9504. if test -z "$haveit"; then
  9505. ltrpathdirs="$ltrpathdirs $dir"
  9506. fi
  9507. fi
  9508. ;;
  9509. -l*)
  9510. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9511. ;;
  9512. *.la)
  9513. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9514. ;;
  9515. *)
  9516. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  9517. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  9518. ;;
  9519. esac
  9520. done
  9521. fi
  9522. else
  9523. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9524. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  9525. fi
  9526. fi
  9527. fi
  9528. done
  9529. done
  9530. if test "X$rpathdirs" != "X"; then
  9531. if test -n "$hardcode_libdir_separator"; then
  9532. alldirs=
  9533. for found_dir in $rpathdirs; do
  9534. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  9535. done
  9536. acl_save_libdir="$libdir"
  9537. libdir="$alldirs"
  9538. eval flag=\"$hardcode_libdir_flag_spec\"
  9539. libdir="$acl_save_libdir"
  9540. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9541. else
  9542. for found_dir in $rpathdirs; do
  9543. acl_save_libdir="$libdir"
  9544. libdir="$found_dir"
  9545. eval flag=\"$hardcode_libdir_flag_spec\"
  9546. libdir="$acl_save_libdir"
  9547. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9548. done
  9549. fi
  9550. fi
  9551. if test "X$ltrpathdirs" != "X"; then
  9552. for found_dir in $ltrpathdirs; do
  9553. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  9554. done
  9555. fi
  9556. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  9557. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  9558. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  9559. echo $ECHO_N "(cached) $ECHO_C" >&6
  9560. else
  9561. gt_save_CPPFLAGS="$CPPFLAGS"
  9562. CPPFLAGS="$CPPFLAGS $INCINTL"
  9563. gt_save_LIBS="$LIBS"
  9564. LIBS="$LIBS $LIBINTL"
  9565. cat >conftest.$ac_ext <<_ACEOF
  9566. /* confdefs.h. */
  9567. _ACEOF
  9568. cat confdefs.h >>conftest.$ac_ext
  9569. cat >>conftest.$ac_ext <<_ACEOF
  9570. /* end confdefs.h. */
  9571. #include <libintl.h>
  9572. extern int _nl_msg_cat_cntr;
  9573. extern
  9574. #ifdef __cplusplus
  9575. "C"
  9576. #endif
  9577. const char *_nl_expand_alias ();
  9578. int
  9579. main ()
  9580. {
  9581. bindtextdomain ("", "");
  9582. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9583. ;
  9584. return 0;
  9585. }
  9586. _ACEOF
  9587. rm -f conftest.$ac_objext conftest$ac_exeext
  9588. if { (ac_try="$ac_link"
  9589. case "(($ac_try" in
  9590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9591. *) ac_try_echo=$ac_try;;
  9592. esac
  9593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9594. (eval "$ac_link") 2>conftest.er1
  9595. ac_status=$?
  9596. grep -v '^ *+' conftest.er1 >conftest.err
  9597. rm -f conftest.er1
  9598. cat conftest.err >&5
  9599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9600. (exit $ac_status); } && {
  9601. test -z "$ac_cxx_werror_flag" ||
  9602. test ! -s conftest.err
  9603. } && test -s conftest$ac_exeext &&
  9604. $as_test_x conftest$ac_exeext; then
  9605. gt_cv_func_gnugettext1_libintl=yes
  9606. else
  9607. echo "$as_me: failed program was:" >&5
  9608. sed 's/^/| /' conftest.$ac_ext >&5
  9609. gt_cv_func_gnugettext1_libintl=no
  9610. fi
  9611. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9612. conftest$ac_exeext conftest.$ac_ext
  9613. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  9614. LIBS="$LIBS $LIBICONV"
  9615. cat >conftest.$ac_ext <<_ACEOF
  9616. /* confdefs.h. */
  9617. _ACEOF
  9618. cat confdefs.h >>conftest.$ac_ext
  9619. cat >>conftest.$ac_ext <<_ACEOF
  9620. /* end confdefs.h. */
  9621. #include <libintl.h>
  9622. extern int _nl_msg_cat_cntr;
  9623. extern
  9624. #ifdef __cplusplus
  9625. "C"
  9626. #endif
  9627. const char *_nl_expand_alias ();
  9628. int
  9629. main ()
  9630. {
  9631. bindtextdomain ("", "");
  9632. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9633. ;
  9634. return 0;
  9635. }
  9636. _ACEOF
  9637. rm -f conftest.$ac_objext conftest$ac_exeext
  9638. if { (ac_try="$ac_link"
  9639. case "(($ac_try" in
  9640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9641. *) ac_try_echo=$ac_try;;
  9642. esac
  9643. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9644. (eval "$ac_link") 2>conftest.er1
  9645. ac_status=$?
  9646. grep -v '^ *+' conftest.er1 >conftest.err
  9647. rm -f conftest.er1
  9648. cat conftest.err >&5
  9649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9650. (exit $ac_status); } && {
  9651. test -z "$ac_cxx_werror_flag" ||
  9652. test ! -s conftest.err
  9653. } && test -s conftest$ac_exeext &&
  9654. $as_test_x conftest$ac_exeext; then
  9655. LIBINTL="$LIBINTL $LIBICONV"
  9656. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  9657. gt_cv_func_gnugettext1_libintl=yes
  9658. else
  9659. echo "$as_me: failed program was:" >&5
  9660. sed 's/^/| /' conftest.$ac_ext >&5
  9661. fi
  9662. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9663. conftest$ac_exeext conftest.$ac_ext
  9664. fi
  9665. CPPFLAGS="$gt_save_CPPFLAGS"
  9666. LIBS="$gt_save_LIBS"
  9667. fi
  9668. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  9669. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
  9670. fi
  9671. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  9672. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  9673. && test "$PACKAGE" != gettext-runtime \
  9674. && test "$PACKAGE" != gettext-tools; }; then
  9675. gt_use_preinstalled_gnugettext=yes
  9676. else
  9677. LIBINTL=
  9678. LTLIBINTL=
  9679. INCINTL=
  9680. fi
  9681. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  9682. nls_cv_use_gnu_gettext=yes
  9683. fi
  9684. fi
  9685. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  9686. BUILD_INCLUDED_LIBINTL=yes
  9687. USE_INCLUDED_LIBINTL=yes
  9688. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  9689. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  9690. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  9691. fi
  9692. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9693. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9694. CATOBJEXT=.gmo
  9695. fi
  9696. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9697. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9698. cat >>confdefs.h <<\_ACEOF
  9699. #define ENABLE_NLS 1
  9700. _ACEOF
  9701. else
  9702. USE_NLS=no
  9703. fi
  9704. fi
  9705. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  9706. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  9707. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9708. echo "${ECHO_T}$USE_NLS" >&6; }
  9709. if test "$USE_NLS" = "yes"; then
  9710. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  9711. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  9712. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9713. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9714. gt_source="external libintl"
  9715. else
  9716. gt_source="libc"
  9717. fi
  9718. else
  9719. gt_source="included intl directory"
  9720. fi
  9721. { echo "$as_me:$LINENO: result: $gt_source" >&5
  9722. echo "${ECHO_T}$gt_source" >&6; }
  9723. fi
  9724. if test "$USE_NLS" = "yes"; then
  9725. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9726. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9727. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  9728. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  9729. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  9730. echo "${ECHO_T}$LIBINTL" >&6; }
  9731. for element in $INCINTL; do
  9732. haveit=
  9733. for x in $CPPFLAGS; do
  9734. acl_save_prefix="$prefix"
  9735. prefix="$acl_final_prefix"
  9736. acl_save_exec_prefix="$exec_prefix"
  9737. exec_prefix="$acl_final_exec_prefix"
  9738. eval x=\"$x\"
  9739. exec_prefix="$acl_save_exec_prefix"
  9740. prefix="$acl_save_prefix"
  9741. if test "X$x" = "X$element"; then
  9742. haveit=yes
  9743. break
  9744. fi
  9745. done
  9746. if test -z "$haveit"; then
  9747. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9748. fi
  9749. done
  9750. fi
  9751. cat >>confdefs.h <<\_ACEOF
  9752. #define HAVE_GETTEXT 1
  9753. _ACEOF
  9754. cat >>confdefs.h <<\_ACEOF
  9755. #define HAVE_DCGETTEXT 1
  9756. _ACEOF
  9757. fi
  9758. POSUB=po
  9759. fi
  9760. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  9761. BUILD_INCLUDED_LIBINTL=yes
  9762. fi
  9763. nls_cv_header_intl=
  9764. nls_cv_header_libgt=
  9765. DATADIRNAME=share
  9766. INSTOBJEXT=.mo
  9767. GENCAT=gencat
  9768. if test "$USE_INCLUDED_LIBINTL" = yes; then
  9769. INTLOBJS="\$(GETTOBJS)"
  9770. fi
  9771. INTL_LIBTOOL_SUFFIX_PREFIX=
  9772. INTLLIBS="$LIBINTL"
  9773. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  9774. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  9775. if test "${ac_cv_lib_error_at_line+set}" = set; then
  9776. echo $ECHO_N "(cached) $ECHO_C" >&6
  9777. else
  9778. cat >conftest.$ac_ext <<_ACEOF
  9779. /* confdefs.h. */
  9780. _ACEOF
  9781. cat confdefs.h >>conftest.$ac_ext
  9782. cat >>conftest.$ac_ext <<_ACEOF
  9783. /* end confdefs.h. */
  9784. #include <error.h>
  9785. int
  9786. main ()
  9787. {
  9788. error_at_line (0, 0, "", 0, "an error occurred");
  9789. ;
  9790. return 0;
  9791. }
  9792. _ACEOF
  9793. rm -f conftest.$ac_objext conftest$ac_exeext
  9794. if { (ac_try="$ac_link"
  9795. case "(($ac_try" in
  9796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9797. *) ac_try_echo=$ac_try;;
  9798. esac
  9799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9800. (eval "$ac_link") 2>conftest.er1
  9801. ac_status=$?
  9802. grep -v '^ *+' conftest.er1 >conftest.err
  9803. rm -f conftest.er1
  9804. cat conftest.err >&5
  9805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9806. (exit $ac_status); } && {
  9807. test -z "$ac_cxx_werror_flag" ||
  9808. test ! -s conftest.err
  9809. } && test -s conftest$ac_exeext &&
  9810. $as_test_x conftest$ac_exeext; then
  9811. ac_cv_lib_error_at_line=yes
  9812. else
  9813. echo "$as_me: failed program was:" >&5
  9814. sed 's/^/| /' conftest.$ac_ext >&5
  9815. ac_cv_lib_error_at_line=no
  9816. fi
  9817. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9818. conftest$ac_exeext conftest.$ac_ext
  9819. fi
  9820. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  9821. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  9822. if test $ac_cv_lib_error_at_line = no; then
  9823. case " $LIBOBJS " in
  9824. *" error.$ac_objext "* ) ;;
  9825. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  9826. ;;
  9827. esac
  9828. fi
  9829. case "$target" in
  9830. *mingw*)
  9831. ;;
  9832. *)
  9833. for ac_header in stdlib.h
  9834. do
  9835. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9836. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9837. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9838. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9839. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9840. echo $ECHO_N "(cached) $ECHO_C" >&6
  9841. fi
  9842. ac_res=`eval echo '${'$as_ac_Header'}'`
  9843. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9844. echo "${ECHO_T}$ac_res" >&6; }
  9845. else
  9846. # Is the header compilable?
  9847. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9848. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9849. cat >conftest.$ac_ext <<_ACEOF
  9850. /* confdefs.h. */
  9851. _ACEOF
  9852. cat confdefs.h >>conftest.$ac_ext
  9853. cat >>conftest.$ac_ext <<_ACEOF
  9854. /* end confdefs.h. */
  9855. $ac_includes_default
  9856. #include <$ac_header>
  9857. _ACEOF
  9858. rm -f conftest.$ac_objext
  9859. if { (ac_try="$ac_compile"
  9860. case "(($ac_try" in
  9861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9862. *) ac_try_echo=$ac_try;;
  9863. esac
  9864. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9865. (eval "$ac_compile") 2>conftest.er1
  9866. ac_status=$?
  9867. grep -v '^ *+' conftest.er1 >conftest.err
  9868. rm -f conftest.er1
  9869. cat conftest.err >&5
  9870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9871. (exit $ac_status); } && {
  9872. test -z "$ac_cxx_werror_flag" ||
  9873. test ! -s conftest.err
  9874. } && test -s conftest.$ac_objext; then
  9875. ac_header_compiler=yes
  9876. else
  9877. echo "$as_me: failed program was:" >&5
  9878. sed 's/^/| /' conftest.$ac_ext >&5
  9879. ac_header_compiler=no
  9880. fi
  9881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9882. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9883. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9884. # Is the header present?
  9885. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9886. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9887. cat >conftest.$ac_ext <<_ACEOF
  9888. /* confdefs.h. */
  9889. _ACEOF
  9890. cat confdefs.h >>conftest.$ac_ext
  9891. cat >>conftest.$ac_ext <<_ACEOF
  9892. /* end confdefs.h. */
  9893. #include <$ac_header>
  9894. _ACEOF
  9895. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9896. case "(($ac_try" in
  9897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9898. *) ac_try_echo=$ac_try;;
  9899. esac
  9900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9901. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9902. ac_status=$?
  9903. grep -v '^ *+' conftest.er1 >conftest.err
  9904. rm -f conftest.er1
  9905. cat conftest.err >&5
  9906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9907. (exit $ac_status); } >/dev/null && {
  9908. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9909. test ! -s conftest.err
  9910. }; then
  9911. ac_header_preproc=yes
  9912. else
  9913. echo "$as_me: failed program was:" >&5
  9914. sed 's/^/| /' conftest.$ac_ext >&5
  9915. ac_header_preproc=no
  9916. fi
  9917. rm -f conftest.err conftest.$ac_ext
  9918. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9919. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9920. # So? What about this header?
  9921. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9922. yes:no: )
  9923. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9924. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9925. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9926. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9927. ac_header_preproc=yes
  9928. ;;
  9929. no:yes:* )
  9930. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9931. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9932. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9933. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9934. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9935. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9936. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9937. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9938. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9939. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9940. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9941. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9942. ( cat <<\_ASBOX
  9943. ## ----------------------------------------------- ##
  9944. ## Report this to t-tujikawa@users.sourceforge.net ##
  9945. ## ----------------------------------------------- ##
  9946. _ASBOX
  9947. ) | sed "s/^/$as_me: WARNING: /" >&2
  9948. ;;
  9949. esac
  9950. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9951. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9952. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9953. echo $ECHO_N "(cached) $ECHO_C" >&6
  9954. else
  9955. eval "$as_ac_Header=\$ac_header_preproc"
  9956. fi
  9957. ac_res=`eval echo '${'$as_ac_Header'}'`
  9958. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9959. echo "${ECHO_T}$ac_res" >&6; }
  9960. fi
  9961. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9962. cat >>confdefs.h <<_ACEOF
  9963. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9964. _ACEOF
  9965. fi
  9966. done
  9967. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9968. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  9969. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9970. echo $ECHO_N "(cached) $ECHO_C" >&6
  9971. else
  9972. if test "$cross_compiling" = yes; then
  9973. ac_cv_func_malloc_0_nonnull=no
  9974. else
  9975. cat >conftest.$ac_ext <<_ACEOF
  9976. /* confdefs.h. */
  9977. _ACEOF
  9978. cat confdefs.h >>conftest.$ac_ext
  9979. cat >>conftest.$ac_ext <<_ACEOF
  9980. /* end confdefs.h. */
  9981. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9982. # include <stdlib.h>
  9983. #else
  9984. char *malloc ();
  9985. #endif
  9986. int
  9987. main ()
  9988. {
  9989. return ! malloc (0);
  9990. ;
  9991. return 0;
  9992. }
  9993. _ACEOF
  9994. rm -f conftest$ac_exeext
  9995. if { (ac_try="$ac_link"
  9996. case "(($ac_try" in
  9997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9998. *) ac_try_echo=$ac_try;;
  9999. esac
  10000. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10001. (eval "$ac_link") 2>&5
  10002. ac_status=$?
  10003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10004. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10005. { (case "(($ac_try" in
  10006. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10007. *) ac_try_echo=$ac_try;;
  10008. esac
  10009. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10010. (eval "$ac_try") 2>&5
  10011. ac_status=$?
  10012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10013. (exit $ac_status); }; }; then
  10014. ac_cv_func_malloc_0_nonnull=yes
  10015. else
  10016. echo "$as_me: program exited with status $ac_status" >&5
  10017. echo "$as_me: failed program was:" >&5
  10018. sed 's/^/| /' conftest.$ac_ext >&5
  10019. ( exit $ac_status )
  10020. ac_cv_func_malloc_0_nonnull=no
  10021. fi
  10022. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10023. fi
  10024. fi
  10025. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  10026. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  10027. if test $ac_cv_func_malloc_0_nonnull = yes; then
  10028. cat >>confdefs.h <<\_ACEOF
  10029. #define HAVE_MALLOC 1
  10030. _ACEOF
  10031. else
  10032. cat >>confdefs.h <<\_ACEOF
  10033. #define HAVE_MALLOC 0
  10034. _ACEOF
  10035. case " $LIBOBJS " in
  10036. *" malloc.$ac_objext "* ) ;;
  10037. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  10038. ;;
  10039. esac
  10040. cat >>confdefs.h <<\_ACEOF
  10041. #define malloc rpl_malloc
  10042. _ACEOF
  10043. fi
  10044. for ac_header in stdlib.h
  10045. do
  10046. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10047. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10048. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10049. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10050. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10051. echo $ECHO_N "(cached) $ECHO_C" >&6
  10052. fi
  10053. ac_res=`eval echo '${'$as_ac_Header'}'`
  10054. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10055. echo "${ECHO_T}$ac_res" >&6; }
  10056. else
  10057. # Is the header compilable?
  10058. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10059. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10060. cat >conftest.$ac_ext <<_ACEOF
  10061. /* confdefs.h. */
  10062. _ACEOF
  10063. cat confdefs.h >>conftest.$ac_ext
  10064. cat >>conftest.$ac_ext <<_ACEOF
  10065. /* end confdefs.h. */
  10066. $ac_includes_default
  10067. #include <$ac_header>
  10068. _ACEOF
  10069. rm -f conftest.$ac_objext
  10070. if { (ac_try="$ac_compile"
  10071. case "(($ac_try" in
  10072. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10073. *) ac_try_echo=$ac_try;;
  10074. esac
  10075. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10076. (eval "$ac_compile") 2>conftest.er1
  10077. ac_status=$?
  10078. grep -v '^ *+' conftest.er1 >conftest.err
  10079. rm -f conftest.er1
  10080. cat conftest.err >&5
  10081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10082. (exit $ac_status); } && {
  10083. test -z "$ac_cxx_werror_flag" ||
  10084. test ! -s conftest.err
  10085. } && test -s conftest.$ac_objext; then
  10086. ac_header_compiler=yes
  10087. else
  10088. echo "$as_me: failed program was:" >&5
  10089. sed 's/^/| /' conftest.$ac_ext >&5
  10090. ac_header_compiler=no
  10091. fi
  10092. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10093. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10094. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10095. # Is the header present?
  10096. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10097. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10098. cat >conftest.$ac_ext <<_ACEOF
  10099. /* confdefs.h. */
  10100. _ACEOF
  10101. cat confdefs.h >>conftest.$ac_ext
  10102. cat >>conftest.$ac_ext <<_ACEOF
  10103. /* end confdefs.h. */
  10104. #include <$ac_header>
  10105. _ACEOF
  10106. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10107. case "(($ac_try" in
  10108. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10109. *) ac_try_echo=$ac_try;;
  10110. esac
  10111. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10112. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10113. ac_status=$?
  10114. grep -v '^ *+' conftest.er1 >conftest.err
  10115. rm -f conftest.er1
  10116. cat conftest.err >&5
  10117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10118. (exit $ac_status); } >/dev/null && {
  10119. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10120. test ! -s conftest.err
  10121. }; then
  10122. ac_header_preproc=yes
  10123. else
  10124. echo "$as_me: failed program was:" >&5
  10125. sed 's/^/| /' conftest.$ac_ext >&5
  10126. ac_header_preproc=no
  10127. fi
  10128. rm -f conftest.err conftest.$ac_ext
  10129. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10130. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10131. # So? What about this header?
  10132. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10133. yes:no: )
  10134. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10135. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10136. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10137. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10138. ac_header_preproc=yes
  10139. ;;
  10140. no:yes:* )
  10141. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10142. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10143. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10144. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10145. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10146. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10147. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10148. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10149. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10150. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10151. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10152. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10153. ( cat <<\_ASBOX
  10154. ## ----------------------------------------------- ##
  10155. ## Report this to t-tujikawa@users.sourceforge.net ##
  10156. ## ----------------------------------------------- ##
  10157. _ASBOX
  10158. ) | sed "s/^/$as_me: WARNING: /" >&2
  10159. ;;
  10160. esac
  10161. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10162. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10163. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10164. echo $ECHO_N "(cached) $ECHO_C" >&6
  10165. else
  10166. eval "$as_ac_Header=\$ac_header_preproc"
  10167. fi
  10168. ac_res=`eval echo '${'$as_ac_Header'}'`
  10169. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10170. echo "${ECHO_T}$ac_res" >&6; }
  10171. fi
  10172. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10173. cat >>confdefs.h <<_ACEOF
  10174. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10175. _ACEOF
  10176. fi
  10177. done
  10178. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10179. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  10180. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10181. echo $ECHO_N "(cached) $ECHO_C" >&6
  10182. else
  10183. if test "$cross_compiling" = yes; then
  10184. ac_cv_func_realloc_0_nonnull=no
  10185. else
  10186. cat >conftest.$ac_ext <<_ACEOF
  10187. /* confdefs.h. */
  10188. _ACEOF
  10189. cat confdefs.h >>conftest.$ac_ext
  10190. cat >>conftest.$ac_ext <<_ACEOF
  10191. /* end confdefs.h. */
  10192. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10193. # include <stdlib.h>
  10194. #else
  10195. char *realloc ();
  10196. #endif
  10197. int
  10198. main ()
  10199. {
  10200. return ! realloc (0, 0);
  10201. ;
  10202. return 0;
  10203. }
  10204. _ACEOF
  10205. rm -f conftest$ac_exeext
  10206. if { (ac_try="$ac_link"
  10207. case "(($ac_try" in
  10208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10209. *) ac_try_echo=$ac_try;;
  10210. esac
  10211. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10212. (eval "$ac_link") 2>&5
  10213. ac_status=$?
  10214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10215. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10216. { (case "(($ac_try" in
  10217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10218. *) ac_try_echo=$ac_try;;
  10219. esac
  10220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10221. (eval "$ac_try") 2>&5
  10222. ac_status=$?
  10223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10224. (exit $ac_status); }; }; then
  10225. ac_cv_func_realloc_0_nonnull=yes
  10226. else
  10227. echo "$as_me: program exited with status $ac_status" >&5
  10228. echo "$as_me: failed program was:" >&5
  10229. sed 's/^/| /' conftest.$ac_ext >&5
  10230. ( exit $ac_status )
  10231. ac_cv_func_realloc_0_nonnull=no
  10232. fi
  10233. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10234. fi
  10235. fi
  10236. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10237. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  10238. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10239. cat >>confdefs.h <<\_ACEOF
  10240. #define HAVE_REALLOC 1
  10241. _ACEOF
  10242. else
  10243. cat >>confdefs.h <<\_ACEOF
  10244. #define HAVE_REALLOC 0
  10245. _ACEOF
  10246. case " $LIBOBJS " in
  10247. *" realloc.$ac_objext "* ) ;;
  10248. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  10249. ;;
  10250. esac
  10251. cat >>confdefs.h <<\_ACEOF
  10252. #define realloc rpl_realloc
  10253. _ACEOF
  10254. fi
  10255. ;;
  10256. esac
  10257. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  10258. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  10259. if test "${ac_cv_func_memcmp_working+set}" = set; then
  10260. echo $ECHO_N "(cached) $ECHO_C" >&6
  10261. else
  10262. if test "$cross_compiling" = yes; then
  10263. ac_cv_func_memcmp_working=no
  10264. else
  10265. cat >conftest.$ac_ext <<_ACEOF
  10266. /* confdefs.h. */
  10267. _ACEOF
  10268. cat confdefs.h >>conftest.$ac_ext
  10269. cat >>conftest.$ac_ext <<_ACEOF
  10270. /* end confdefs.h. */
  10271. $ac_includes_default
  10272. int
  10273. main ()
  10274. {
  10275. /* Some versions of memcmp are not 8-bit clean. */
  10276. char c0 = '\100', c1 = '\200', c2 = '\201';
  10277. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  10278. return 1;
  10279. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  10280. or more and with at least one buffer not starting on a 4-byte boundary.
  10281. William Lewis provided this test program. */
  10282. {
  10283. char foo[21];
  10284. char bar[21];
  10285. int i;
  10286. for (i = 0; i < 4; i++)
  10287. {
  10288. char *a = foo + i;
  10289. char *b = bar + i;
  10290. strcpy (a, "--------01111111");
  10291. strcpy (b, "--------10000000");
  10292. if (memcmp (a, b, 16) >= 0)
  10293. return 1;
  10294. }
  10295. return 0;
  10296. }
  10297. ;
  10298. return 0;
  10299. }
  10300. _ACEOF
  10301. rm -f conftest$ac_exeext
  10302. if { (ac_try="$ac_link"
  10303. case "(($ac_try" in
  10304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10305. *) ac_try_echo=$ac_try;;
  10306. esac
  10307. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10308. (eval "$ac_link") 2>&5
  10309. ac_status=$?
  10310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10311. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10312. { (case "(($ac_try" in
  10313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10314. *) ac_try_echo=$ac_try;;
  10315. esac
  10316. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10317. (eval "$ac_try") 2>&5
  10318. ac_status=$?
  10319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10320. (exit $ac_status); }; }; then
  10321. ac_cv_func_memcmp_working=yes
  10322. else
  10323. echo "$as_me: program exited with status $ac_status" >&5
  10324. echo "$as_me: failed program was:" >&5
  10325. sed 's/^/| /' conftest.$ac_ext >&5
  10326. ( exit $ac_status )
  10327. ac_cv_func_memcmp_working=no
  10328. fi
  10329. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10330. fi
  10331. fi
  10332. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  10333. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  10334. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  10335. *" memcmp.$ac_objext "* ) ;;
  10336. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  10337. ;;
  10338. esac
  10339. for ac_header in stdlib.h unistd.h
  10340. do
  10341. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10342. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10343. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10344. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10345. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10346. echo $ECHO_N "(cached) $ECHO_C" >&6
  10347. fi
  10348. ac_res=`eval echo '${'$as_ac_Header'}'`
  10349. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10350. echo "${ECHO_T}$ac_res" >&6; }
  10351. else
  10352. # Is the header compilable?
  10353. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10354. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10355. cat >conftest.$ac_ext <<_ACEOF
  10356. /* confdefs.h. */
  10357. _ACEOF
  10358. cat confdefs.h >>conftest.$ac_ext
  10359. cat >>conftest.$ac_ext <<_ACEOF
  10360. /* end confdefs.h. */
  10361. $ac_includes_default
  10362. #include <$ac_header>
  10363. _ACEOF
  10364. rm -f conftest.$ac_objext
  10365. if { (ac_try="$ac_compile"
  10366. case "(($ac_try" in
  10367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10368. *) ac_try_echo=$ac_try;;
  10369. esac
  10370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10371. (eval "$ac_compile") 2>conftest.er1
  10372. ac_status=$?
  10373. grep -v '^ *+' conftest.er1 >conftest.err
  10374. rm -f conftest.er1
  10375. cat conftest.err >&5
  10376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10377. (exit $ac_status); } && {
  10378. test -z "$ac_cxx_werror_flag" ||
  10379. test ! -s conftest.err
  10380. } && test -s conftest.$ac_objext; then
  10381. ac_header_compiler=yes
  10382. else
  10383. echo "$as_me: failed program was:" >&5
  10384. sed 's/^/| /' conftest.$ac_ext >&5
  10385. ac_header_compiler=no
  10386. fi
  10387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10388. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10389. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10390. # Is the header present?
  10391. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10392. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10393. cat >conftest.$ac_ext <<_ACEOF
  10394. /* confdefs.h. */
  10395. _ACEOF
  10396. cat confdefs.h >>conftest.$ac_ext
  10397. cat >>conftest.$ac_ext <<_ACEOF
  10398. /* end confdefs.h. */
  10399. #include <$ac_header>
  10400. _ACEOF
  10401. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10402. case "(($ac_try" in
  10403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10404. *) ac_try_echo=$ac_try;;
  10405. esac
  10406. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10407. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10408. ac_status=$?
  10409. grep -v '^ *+' conftest.er1 >conftest.err
  10410. rm -f conftest.er1
  10411. cat conftest.err >&5
  10412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10413. (exit $ac_status); } >/dev/null && {
  10414. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10415. test ! -s conftest.err
  10416. }; then
  10417. ac_header_preproc=yes
  10418. else
  10419. echo "$as_me: failed program was:" >&5
  10420. sed 's/^/| /' conftest.$ac_ext >&5
  10421. ac_header_preproc=no
  10422. fi
  10423. rm -f conftest.err conftest.$ac_ext
  10424. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10425. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10426. # So? What about this header?
  10427. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10428. yes:no: )
  10429. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10430. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10431. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10432. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10433. ac_header_preproc=yes
  10434. ;;
  10435. no:yes:* )
  10436. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10437. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10438. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10439. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10440. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10441. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10442. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10443. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10444. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10445. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10446. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10447. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10448. ( cat <<\_ASBOX
  10449. ## ----------------------------------------------- ##
  10450. ## Report this to t-tujikawa@users.sourceforge.net ##
  10451. ## ----------------------------------------------- ##
  10452. _ASBOX
  10453. ) | sed "s/^/$as_me: WARNING: /" >&2
  10454. ;;
  10455. esac
  10456. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10457. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10458. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10459. echo $ECHO_N "(cached) $ECHO_C" >&6
  10460. else
  10461. eval "$as_ac_Header=\$ac_header_preproc"
  10462. fi
  10463. ac_res=`eval echo '${'$as_ac_Header'}'`
  10464. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10465. echo "${ECHO_T}$ac_res" >&6; }
  10466. fi
  10467. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10468. cat >>confdefs.h <<_ACEOF
  10469. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10470. _ACEOF
  10471. fi
  10472. done
  10473. for ac_func in getpagesize
  10474. do
  10475. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10476. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10477. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10478. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10479. echo $ECHO_N "(cached) $ECHO_C" >&6
  10480. else
  10481. cat >conftest.$ac_ext <<_ACEOF
  10482. /* confdefs.h. */
  10483. _ACEOF
  10484. cat confdefs.h >>conftest.$ac_ext
  10485. cat >>conftest.$ac_ext <<_ACEOF
  10486. /* end confdefs.h. */
  10487. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10488. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10489. #define $ac_func innocuous_$ac_func
  10490. /* System header to define __stub macros and hopefully few prototypes,
  10491. which can conflict with char $ac_func (); below.
  10492. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10493. <limits.h> exists even on freestanding compilers. */
  10494. #ifdef __STDC__
  10495. # include <limits.h>
  10496. #else
  10497. # include <assert.h>
  10498. #endif
  10499. #undef $ac_func
  10500. /* Override any GCC internal prototype to avoid an error.
  10501. Use char because int might match the return type of a GCC
  10502. builtin and then its argument prototype would still apply. */
  10503. #ifdef __cplusplus
  10504. extern "C"
  10505. #endif
  10506. char $ac_func ();
  10507. /* The GNU C library defines this for functions which it implements
  10508. to always fail with ENOSYS. Some functions are actually named
  10509. something starting with __ and the normal name is an alias. */
  10510. #if defined __stub_$ac_func || defined __stub___$ac_func
  10511. choke me
  10512. #endif
  10513. int
  10514. main ()
  10515. {
  10516. return $ac_func ();
  10517. ;
  10518. return 0;
  10519. }
  10520. _ACEOF
  10521. rm -f conftest.$ac_objext conftest$ac_exeext
  10522. if { (ac_try="$ac_link"
  10523. case "(($ac_try" in
  10524. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10525. *) ac_try_echo=$ac_try;;
  10526. esac
  10527. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10528. (eval "$ac_link") 2>conftest.er1
  10529. ac_status=$?
  10530. grep -v '^ *+' conftest.er1 >conftest.err
  10531. rm -f conftest.er1
  10532. cat conftest.err >&5
  10533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10534. (exit $ac_status); } && {
  10535. test -z "$ac_cxx_werror_flag" ||
  10536. test ! -s conftest.err
  10537. } && test -s conftest$ac_exeext &&
  10538. $as_test_x conftest$ac_exeext; then
  10539. eval "$as_ac_var=yes"
  10540. else
  10541. echo "$as_me: failed program was:" >&5
  10542. sed 's/^/| /' conftest.$ac_ext >&5
  10543. eval "$as_ac_var=no"
  10544. fi
  10545. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10546. conftest$ac_exeext conftest.$ac_ext
  10547. fi
  10548. ac_res=`eval echo '${'$as_ac_var'}'`
  10549. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10550. echo "${ECHO_T}$ac_res" >&6; }
  10551. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10552. cat >>confdefs.h <<_ACEOF
  10553. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10554. _ACEOF
  10555. fi
  10556. done
  10557. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10558. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10559. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10560. echo $ECHO_N "(cached) $ECHO_C" >&6
  10561. else
  10562. if test "$cross_compiling" = yes; then
  10563. ac_cv_func_mmap_fixed_mapped=no
  10564. else
  10565. cat >conftest.$ac_ext <<_ACEOF
  10566. /* confdefs.h. */
  10567. _ACEOF
  10568. cat confdefs.h >>conftest.$ac_ext
  10569. cat >>conftest.$ac_ext <<_ACEOF
  10570. /* end confdefs.h. */
  10571. $ac_includes_default
  10572. /* malloc might have been renamed as rpl_malloc. */
  10573. #undef malloc
  10574. /* Thanks to Mike Haertel and Jim Avera for this test.
  10575. Here is a matrix of mmap possibilities:
  10576. mmap private not fixed
  10577. mmap private fixed at somewhere currently unmapped
  10578. mmap private fixed at somewhere already mapped
  10579. mmap shared not fixed
  10580. mmap shared fixed at somewhere currently unmapped
  10581. mmap shared fixed at somewhere already mapped
  10582. For private mappings, we should verify that changes cannot be read()
  10583. back from the file, nor mmap's back from the file at a different
  10584. address. (There have been systems where private was not correctly
  10585. implemented like the infamous i386 svr4.0, and systems where the
  10586. VM page cache was not coherent with the file system buffer cache
  10587. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10588. For shared mappings, we should conversely verify that changes get
  10589. propagated back to all the places they're supposed to be.
  10590. Grep wants private fixed already mapped.
  10591. The main things grep needs to know about mmap are:
  10592. * does it exist and is it safe to write into the mmap'd area
  10593. * how to use it (BSD variants) */
  10594. #include <fcntl.h>
  10595. #include <sys/mman.h>
  10596. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10597. char *malloc ();
  10598. #endif
  10599. /* This mess was copied from the GNU getpagesize.h. */
  10600. #ifndef HAVE_GETPAGESIZE
  10601. /* Assume that all systems that can run configure have sys/param.h. */
  10602. # ifndef HAVE_SYS_PARAM_H
  10603. # define HAVE_SYS_PARAM_H 1
  10604. # endif
  10605. # ifdef _SC_PAGESIZE
  10606. # define getpagesize() sysconf(_SC_PAGESIZE)
  10607. # else /* no _SC_PAGESIZE */
  10608. # ifdef HAVE_SYS_PARAM_H
  10609. # include <sys/param.h>
  10610. # ifdef EXEC_PAGESIZE
  10611. # define getpagesize() EXEC_PAGESIZE
  10612. # else /* no EXEC_PAGESIZE */
  10613. # ifdef NBPG
  10614. # define getpagesize() NBPG * CLSIZE
  10615. # ifndef CLSIZE
  10616. # define CLSIZE 1
  10617. # endif /* no CLSIZE */
  10618. # else /* no NBPG */
  10619. # ifdef NBPC
  10620. # define getpagesize() NBPC
  10621. # else /* no NBPC */
  10622. # ifdef PAGESIZE
  10623. # define getpagesize() PAGESIZE
  10624. # endif /* PAGESIZE */
  10625. # endif /* no NBPC */
  10626. # endif /* no NBPG */
  10627. # endif /* no EXEC_PAGESIZE */
  10628. # else /* no HAVE_SYS_PARAM_H */
  10629. # define getpagesize() 8192 /* punt totally */
  10630. # endif /* no HAVE_SYS_PARAM_H */
  10631. # endif /* no _SC_PAGESIZE */
  10632. #endif /* no HAVE_GETPAGESIZE */
  10633. int
  10634. main ()
  10635. {
  10636. char *data, *data2, *data3;
  10637. int i, pagesize;
  10638. int fd;
  10639. pagesize = getpagesize ();
  10640. /* First, make a file with some known garbage in it. */
  10641. data = (char *) malloc (pagesize);
  10642. if (!data)
  10643. return 1;
  10644. for (i = 0; i < pagesize; ++i)
  10645. *(data + i) = rand ();
  10646. umask (0);
  10647. fd = creat ("conftest.mmap", 0600);
  10648. if (fd < 0)
  10649. return 1;
  10650. if (write (fd, data, pagesize) != pagesize)
  10651. return 1;
  10652. close (fd);
  10653. /* Next, try to mmap the file at a fixed address which already has
  10654. something else allocated at it. If we can, also make sure that
  10655. we see the same garbage. */
  10656. fd = open ("conftest.mmap", O_RDWR);
  10657. if (fd < 0)
  10658. return 1;
  10659. data2 = (char *) malloc (2 * pagesize);
  10660. if (!data2)
  10661. return 1;
  10662. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10663. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10664. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10665. return 1;
  10666. for (i = 0; i < pagesize; ++i)
  10667. if (*(data + i) != *(data2 + i))
  10668. return 1;
  10669. /* Finally, make sure that changes to the mapped area do not
  10670. percolate back to the file as seen by read(). (This is a bug on
  10671. some variants of i386 svr4.0.) */
  10672. for (i = 0; i < pagesize; ++i)
  10673. *(data2 + i) = *(data2 + i) + 1;
  10674. data3 = (char *) malloc (pagesize);
  10675. if (!data3)
  10676. return 1;
  10677. if (read (fd, data3, pagesize) != pagesize)
  10678. return 1;
  10679. for (i = 0; i < pagesize; ++i)
  10680. if (*(data + i) != *(data3 + i))
  10681. return 1;
  10682. close (fd);
  10683. return 0;
  10684. }
  10685. _ACEOF
  10686. rm -f conftest$ac_exeext
  10687. if { (ac_try="$ac_link"
  10688. case "(($ac_try" in
  10689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10690. *) ac_try_echo=$ac_try;;
  10691. esac
  10692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10693. (eval "$ac_link") 2>&5
  10694. ac_status=$?
  10695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10696. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10697. { (case "(($ac_try" in
  10698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10699. *) ac_try_echo=$ac_try;;
  10700. esac
  10701. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10702. (eval "$ac_try") 2>&5
  10703. ac_status=$?
  10704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10705. (exit $ac_status); }; }; then
  10706. ac_cv_func_mmap_fixed_mapped=yes
  10707. else
  10708. echo "$as_me: program exited with status $ac_status" >&5
  10709. echo "$as_me: failed program was:" >&5
  10710. sed 's/^/| /' conftest.$ac_ext >&5
  10711. ( exit $ac_status )
  10712. ac_cv_func_mmap_fixed_mapped=no
  10713. fi
  10714. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10715. fi
  10716. fi
  10717. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10718. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10719. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10720. cat >>confdefs.h <<\_ACEOF
  10721. #define HAVE_MMAP 1
  10722. _ACEOF
  10723. fi
  10724. rm -f conftest.mmap
  10725. for ac_header in sys/select.h sys/socket.h
  10726. do
  10727. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10728. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10729. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10730. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10731. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10732. echo $ECHO_N "(cached) $ECHO_C" >&6
  10733. fi
  10734. ac_res=`eval echo '${'$as_ac_Header'}'`
  10735. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10736. echo "${ECHO_T}$ac_res" >&6; }
  10737. else
  10738. # Is the header compilable?
  10739. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10740. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10741. cat >conftest.$ac_ext <<_ACEOF
  10742. /* confdefs.h. */
  10743. _ACEOF
  10744. cat confdefs.h >>conftest.$ac_ext
  10745. cat >>conftest.$ac_ext <<_ACEOF
  10746. /* end confdefs.h. */
  10747. $ac_includes_default
  10748. #include <$ac_header>
  10749. _ACEOF
  10750. rm -f conftest.$ac_objext
  10751. if { (ac_try="$ac_compile"
  10752. case "(($ac_try" in
  10753. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10754. *) ac_try_echo=$ac_try;;
  10755. esac
  10756. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10757. (eval "$ac_compile") 2>conftest.er1
  10758. ac_status=$?
  10759. grep -v '^ *+' conftest.er1 >conftest.err
  10760. rm -f conftest.er1
  10761. cat conftest.err >&5
  10762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10763. (exit $ac_status); } && {
  10764. test -z "$ac_cxx_werror_flag" ||
  10765. test ! -s conftest.err
  10766. } && test -s conftest.$ac_objext; then
  10767. ac_header_compiler=yes
  10768. else
  10769. echo "$as_me: failed program was:" >&5
  10770. sed 's/^/| /' conftest.$ac_ext >&5
  10771. ac_header_compiler=no
  10772. fi
  10773. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10774. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10775. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10776. # Is the header present?
  10777. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10778. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10779. cat >conftest.$ac_ext <<_ACEOF
  10780. /* confdefs.h. */
  10781. _ACEOF
  10782. cat confdefs.h >>conftest.$ac_ext
  10783. cat >>conftest.$ac_ext <<_ACEOF
  10784. /* end confdefs.h. */
  10785. #include <$ac_header>
  10786. _ACEOF
  10787. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10788. case "(($ac_try" in
  10789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10790. *) ac_try_echo=$ac_try;;
  10791. esac
  10792. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10793. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10794. ac_status=$?
  10795. grep -v '^ *+' conftest.er1 >conftest.err
  10796. rm -f conftest.er1
  10797. cat conftest.err >&5
  10798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10799. (exit $ac_status); } >/dev/null && {
  10800. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10801. test ! -s conftest.err
  10802. }; then
  10803. ac_header_preproc=yes
  10804. else
  10805. echo "$as_me: failed program was:" >&5
  10806. sed 's/^/| /' conftest.$ac_ext >&5
  10807. ac_header_preproc=no
  10808. fi
  10809. rm -f conftest.err conftest.$ac_ext
  10810. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10811. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10812. # So? What about this header?
  10813. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10814. yes:no: )
  10815. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10816. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10817. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10818. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10819. ac_header_preproc=yes
  10820. ;;
  10821. no:yes:* )
  10822. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10823. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10824. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10825. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10826. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10827. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10828. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10829. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10830. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10831. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10832. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10833. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10834. ( cat <<\_ASBOX
  10835. ## ----------------------------------------------- ##
  10836. ## Report this to t-tujikawa@users.sourceforge.net ##
  10837. ## ----------------------------------------------- ##
  10838. _ASBOX
  10839. ) | sed "s/^/$as_me: WARNING: /" >&2
  10840. ;;
  10841. esac
  10842. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10843. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10844. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10845. echo $ECHO_N "(cached) $ECHO_C" >&6
  10846. else
  10847. eval "$as_ac_Header=\$ac_header_preproc"
  10848. fi
  10849. ac_res=`eval echo '${'$as_ac_Header'}'`
  10850. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10851. echo "${ECHO_T}$ac_res" >&6; }
  10852. fi
  10853. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10854. cat >>confdefs.h <<_ACEOF
  10855. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10856. _ACEOF
  10857. fi
  10858. done
  10859. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10860. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  10861. if test "${ac_cv_func_select_args+set}" = set; then
  10862. echo $ECHO_N "(cached) $ECHO_C" >&6
  10863. else
  10864. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10865. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  10866. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10867. cat >conftest.$ac_ext <<_ACEOF
  10868. /* confdefs.h. */
  10869. _ACEOF
  10870. cat confdefs.h >>conftest.$ac_ext
  10871. cat >>conftest.$ac_ext <<_ACEOF
  10872. /* end confdefs.h. */
  10873. $ac_includes_default
  10874. #ifdef HAVE_SYS_SELECT_H
  10875. # include <sys/select.h>
  10876. #endif
  10877. #ifdef HAVE_SYS_SOCKET_H
  10878. # include <sys/socket.h>
  10879. #endif
  10880. int
  10881. main ()
  10882. {
  10883. extern int select ($ac_arg1,
  10884. $ac_arg234, $ac_arg234, $ac_arg234,
  10885. $ac_arg5);
  10886. ;
  10887. return 0;
  10888. }
  10889. _ACEOF
  10890. rm -f conftest.$ac_objext
  10891. if { (ac_try="$ac_compile"
  10892. case "(($ac_try" in
  10893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10894. *) ac_try_echo=$ac_try;;
  10895. esac
  10896. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10897. (eval "$ac_compile") 2>conftest.er1
  10898. ac_status=$?
  10899. grep -v '^ *+' conftest.er1 >conftest.err
  10900. rm -f conftest.er1
  10901. cat conftest.err >&5
  10902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10903. (exit $ac_status); } && {
  10904. test -z "$ac_cxx_werror_flag" ||
  10905. test ! -s conftest.err
  10906. } && test -s conftest.$ac_objext; then
  10907. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10908. else
  10909. echo "$as_me: failed program was:" >&5
  10910. sed 's/^/| /' conftest.$ac_ext >&5
  10911. fi
  10912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10913. done
  10914. done
  10915. done
  10916. # Provide a safe default value.
  10917. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10918. fi
  10919. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10920. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  10921. ac_save_IFS=$IFS; IFS=','
  10922. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10923. IFS=$ac_save_IFS
  10924. shift
  10925. cat >>confdefs.h <<_ACEOF
  10926. #define SELECT_TYPE_ARG1 $1
  10927. _ACEOF
  10928. cat >>confdefs.h <<_ACEOF
  10929. #define SELECT_TYPE_ARG234 ($2)
  10930. _ACEOF
  10931. cat >>confdefs.h <<_ACEOF
  10932. #define SELECT_TYPE_ARG5 ($3)
  10933. _ACEOF
  10934. rm -f conftest*
  10935. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  10936. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  10937. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  10938. echo $ECHO_N "(cached) $ECHO_C" >&6
  10939. else
  10940. rm -f conftest.sym conftest.file
  10941. echo >conftest.file
  10942. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  10943. if test "$cross_compiling" = yes; then
  10944. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10945. else
  10946. cat >conftest.$ac_ext <<_ACEOF
  10947. /* confdefs.h. */
  10948. _ACEOF
  10949. cat confdefs.h >>conftest.$ac_ext
  10950. cat >>conftest.$ac_ext <<_ACEOF
  10951. /* end confdefs.h. */
  10952. $ac_includes_default
  10953. int
  10954. main ()
  10955. {
  10956. struct stat sbuf;
  10957. /* Linux will dereference the symlink and fail.
  10958. That is better in the sense that it means we will not
  10959. have to compile and use the lstat wrapper. */
  10960. return lstat ("conftest.sym/", &sbuf) == 0;
  10961. ;
  10962. return 0;
  10963. }
  10964. _ACEOF
  10965. rm -f conftest$ac_exeext
  10966. if { (ac_try="$ac_link"
  10967. case "(($ac_try" in
  10968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10969. *) ac_try_echo=$ac_try;;
  10970. esac
  10971. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10972. (eval "$ac_link") 2>&5
  10973. ac_status=$?
  10974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10975. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10976. { (case "(($ac_try" in
  10977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10978. *) ac_try_echo=$ac_try;;
  10979. esac
  10980. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10981. (eval "$ac_try") 2>&5
  10982. ac_status=$?
  10983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10984. (exit $ac_status); }; }; then
  10985. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  10986. else
  10987. echo "$as_me: program exited with status $ac_status" >&5
  10988. echo "$as_me: failed program was:" >&5
  10989. sed 's/^/| /' conftest.$ac_ext >&5
  10990. ( exit $ac_status )
  10991. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10992. fi
  10993. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10994. fi
  10995. else
  10996. # If the `ln -s' command failed, then we probably don't even
  10997. # have an lstat function.
  10998. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10999. fi
  11000. rm -f conftest.sym conftest.file
  11001. fi
  11002. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  11003. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  11004. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  11005. cat >>confdefs.h <<_ACEOF
  11006. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  11007. _ACEOF
  11008. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  11009. case " $LIBOBJS " in
  11010. *" lstat.$ac_objext "* ) ;;
  11011. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  11012. ;;
  11013. esac
  11014. fi
  11015. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  11016. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  11017. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  11018. echo $ECHO_N "(cached) $ECHO_C" >&6
  11019. else
  11020. if test "$cross_compiling" = yes; then
  11021. ac_cv_func_stat_empty_string_bug=yes
  11022. else
  11023. cat >conftest.$ac_ext <<_ACEOF
  11024. /* confdefs.h. */
  11025. _ACEOF
  11026. cat confdefs.h >>conftest.$ac_ext
  11027. cat >>conftest.$ac_ext <<_ACEOF
  11028. /* end confdefs.h. */
  11029. $ac_includes_default
  11030. int
  11031. main ()
  11032. {
  11033. struct stat sbuf;
  11034. return stat ("", &sbuf) == 0;
  11035. ;
  11036. return 0;
  11037. }
  11038. _ACEOF
  11039. rm -f conftest$ac_exeext
  11040. if { (ac_try="$ac_link"
  11041. case "(($ac_try" in
  11042. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11043. *) ac_try_echo=$ac_try;;
  11044. esac
  11045. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11046. (eval "$ac_link") 2>&5
  11047. ac_status=$?
  11048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11049. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11050. { (case "(($ac_try" in
  11051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11052. *) ac_try_echo=$ac_try;;
  11053. esac
  11054. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11055. (eval "$ac_try") 2>&5
  11056. ac_status=$?
  11057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11058. (exit $ac_status); }; }; then
  11059. ac_cv_func_stat_empty_string_bug=no
  11060. else
  11061. echo "$as_me: program exited with status $ac_status" >&5
  11062. echo "$as_me: failed program was:" >&5
  11063. sed 's/^/| /' conftest.$ac_ext >&5
  11064. ( exit $ac_status )
  11065. ac_cv_func_stat_empty_string_bug=yes
  11066. fi
  11067. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11068. fi
  11069. fi
  11070. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  11071. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  11072. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11073. case " $LIBOBJS " in
  11074. *" stat.$ac_objext "* ) ;;
  11075. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11076. ;;
  11077. esac
  11078. cat >>confdefs.h <<_ACEOF
  11079. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11080. _ACEOF
  11081. fi
  11082. for ac_func in vprintf
  11083. do
  11084. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11085. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11086. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11087. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11088. echo $ECHO_N "(cached) $ECHO_C" >&6
  11089. else
  11090. cat >conftest.$ac_ext <<_ACEOF
  11091. /* confdefs.h. */
  11092. _ACEOF
  11093. cat confdefs.h >>conftest.$ac_ext
  11094. cat >>conftest.$ac_ext <<_ACEOF
  11095. /* end confdefs.h. */
  11096. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11097. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11098. #define $ac_func innocuous_$ac_func
  11099. /* System header to define __stub macros and hopefully few prototypes,
  11100. which can conflict with char $ac_func (); below.
  11101. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11102. <limits.h> exists even on freestanding compilers. */
  11103. #ifdef __STDC__
  11104. # include <limits.h>
  11105. #else
  11106. # include <assert.h>
  11107. #endif
  11108. #undef $ac_func
  11109. /* Override any GCC internal prototype to avoid an error.
  11110. Use char because int might match the return type of a GCC
  11111. builtin and then its argument prototype would still apply. */
  11112. #ifdef __cplusplus
  11113. extern "C"
  11114. #endif
  11115. char $ac_func ();
  11116. /* The GNU C library defines this for functions which it implements
  11117. to always fail with ENOSYS. Some functions are actually named
  11118. something starting with __ and the normal name is an alias. */
  11119. #if defined __stub_$ac_func || defined __stub___$ac_func
  11120. choke me
  11121. #endif
  11122. int
  11123. main ()
  11124. {
  11125. return $ac_func ();
  11126. ;
  11127. return 0;
  11128. }
  11129. _ACEOF
  11130. rm -f conftest.$ac_objext conftest$ac_exeext
  11131. if { (ac_try="$ac_link"
  11132. case "(($ac_try" in
  11133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11134. *) ac_try_echo=$ac_try;;
  11135. esac
  11136. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11137. (eval "$ac_link") 2>conftest.er1
  11138. ac_status=$?
  11139. grep -v '^ *+' conftest.er1 >conftest.err
  11140. rm -f conftest.er1
  11141. cat conftest.err >&5
  11142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11143. (exit $ac_status); } && {
  11144. test -z "$ac_cxx_werror_flag" ||
  11145. test ! -s conftest.err
  11146. } && test -s conftest$ac_exeext &&
  11147. $as_test_x conftest$ac_exeext; then
  11148. eval "$as_ac_var=yes"
  11149. else
  11150. echo "$as_me: failed program was:" >&5
  11151. sed 's/^/| /' conftest.$ac_ext >&5
  11152. eval "$as_ac_var=no"
  11153. fi
  11154. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11155. conftest$ac_exeext conftest.$ac_ext
  11156. fi
  11157. ac_res=`eval echo '${'$as_ac_var'}'`
  11158. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11159. echo "${ECHO_T}$ac_res" >&6; }
  11160. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11161. cat >>confdefs.h <<_ACEOF
  11162. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11163. _ACEOF
  11164. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  11165. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  11166. if test "${ac_cv_func__doprnt+set}" = set; then
  11167. echo $ECHO_N "(cached) $ECHO_C" >&6
  11168. else
  11169. cat >conftest.$ac_ext <<_ACEOF
  11170. /* confdefs.h. */
  11171. _ACEOF
  11172. cat confdefs.h >>conftest.$ac_ext
  11173. cat >>conftest.$ac_ext <<_ACEOF
  11174. /* end confdefs.h. */
  11175. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  11176. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11177. #define _doprnt innocuous__doprnt
  11178. /* System header to define __stub macros and hopefully few prototypes,
  11179. which can conflict with char _doprnt (); below.
  11180. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11181. <limits.h> exists even on freestanding compilers. */
  11182. #ifdef __STDC__
  11183. # include <limits.h>
  11184. #else
  11185. # include <assert.h>
  11186. #endif
  11187. #undef _doprnt
  11188. /* Override any GCC internal prototype to avoid an error.
  11189. Use char because int might match the return type of a GCC
  11190. builtin and then its argument prototype would still apply. */
  11191. #ifdef __cplusplus
  11192. extern "C"
  11193. #endif
  11194. char _doprnt ();
  11195. /* The GNU C library defines this for functions which it implements
  11196. to always fail with ENOSYS. Some functions are actually named
  11197. something starting with __ and the normal name is an alias. */
  11198. #if defined __stub__doprnt || defined __stub____doprnt
  11199. choke me
  11200. #endif
  11201. int
  11202. main ()
  11203. {
  11204. return _doprnt ();
  11205. ;
  11206. return 0;
  11207. }
  11208. _ACEOF
  11209. rm -f conftest.$ac_objext conftest$ac_exeext
  11210. if { (ac_try="$ac_link"
  11211. case "(($ac_try" in
  11212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11213. *) ac_try_echo=$ac_try;;
  11214. esac
  11215. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11216. (eval "$ac_link") 2>conftest.er1
  11217. ac_status=$?
  11218. grep -v '^ *+' conftest.er1 >conftest.err
  11219. rm -f conftest.er1
  11220. cat conftest.err >&5
  11221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11222. (exit $ac_status); } && {
  11223. test -z "$ac_cxx_werror_flag" ||
  11224. test ! -s conftest.err
  11225. } && test -s conftest$ac_exeext &&
  11226. $as_test_x conftest$ac_exeext; then
  11227. ac_cv_func__doprnt=yes
  11228. else
  11229. echo "$as_me: failed program was:" >&5
  11230. sed 's/^/| /' conftest.$ac_ext >&5
  11231. ac_cv_func__doprnt=no
  11232. fi
  11233. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11234. conftest$ac_exeext conftest.$ac_ext
  11235. fi
  11236. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  11237. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  11238. if test $ac_cv_func__doprnt = yes; then
  11239. cat >>confdefs.h <<\_ACEOF
  11240. #define HAVE_DOPRNT 1
  11241. _ACEOF
  11242. fi
  11243. fi
  11244. done
  11245. for ac_func in __argz_count __argz_next __argz_stringify daemon ftruncate getcwd getpagesize inet_ntoa memchr mempcpy memset mkdir munmap nl_langinfo posix_memalign random rmdir select setlocale sigaction sleep socket srandom stpcpy strcasecmp strchr strcspn strdup strerror strstr strtol strtoul unsetenv usleep
  11246. do
  11247. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11248. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11249. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11250. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11251. echo $ECHO_N "(cached) $ECHO_C" >&6
  11252. else
  11253. cat >conftest.$ac_ext <<_ACEOF
  11254. /* confdefs.h. */
  11255. _ACEOF
  11256. cat confdefs.h >>conftest.$ac_ext
  11257. cat >>conftest.$ac_ext <<_ACEOF
  11258. /* end confdefs.h. */
  11259. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11260. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11261. #define $ac_func innocuous_$ac_func
  11262. /* System header to define __stub macros and hopefully few prototypes,
  11263. which can conflict with char $ac_func (); below.
  11264. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11265. <limits.h> exists even on freestanding compilers. */
  11266. #ifdef __STDC__
  11267. # include <limits.h>
  11268. #else
  11269. # include <assert.h>
  11270. #endif
  11271. #undef $ac_func
  11272. /* Override any GCC internal prototype to avoid an error.
  11273. Use char because int might match the return type of a GCC
  11274. builtin and then its argument prototype would still apply. */
  11275. #ifdef __cplusplus
  11276. extern "C"
  11277. #endif
  11278. char $ac_func ();
  11279. /* The GNU C library defines this for functions which it implements
  11280. to always fail with ENOSYS. Some functions are actually named
  11281. something starting with __ and the normal name is an alias. */
  11282. #if defined __stub_$ac_func || defined __stub___$ac_func
  11283. choke me
  11284. #endif
  11285. int
  11286. main ()
  11287. {
  11288. return $ac_func ();
  11289. ;
  11290. return 0;
  11291. }
  11292. _ACEOF
  11293. rm -f conftest.$ac_objext conftest$ac_exeext
  11294. if { (ac_try="$ac_link"
  11295. case "(($ac_try" in
  11296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11297. *) ac_try_echo=$ac_try;;
  11298. esac
  11299. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11300. (eval "$ac_link") 2>conftest.er1
  11301. ac_status=$?
  11302. grep -v '^ *+' conftest.er1 >conftest.err
  11303. rm -f conftest.er1
  11304. cat conftest.err >&5
  11305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11306. (exit $ac_status); } && {
  11307. test -z "$ac_cxx_werror_flag" ||
  11308. test ! -s conftest.err
  11309. } && test -s conftest$ac_exeext &&
  11310. $as_test_x conftest$ac_exeext; then
  11311. eval "$as_ac_var=yes"
  11312. else
  11313. echo "$as_me: failed program was:" >&5
  11314. sed 's/^/| /' conftest.$ac_ext >&5
  11315. eval "$as_ac_var=no"
  11316. fi
  11317. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11318. conftest$ac_exeext conftest.$ac_ext
  11319. fi
  11320. ac_res=`eval echo '${'$as_ac_var'}'`
  11321. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11322. echo "${ECHO_T}$ac_res" >&6; }
  11323. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11324. cat >>confdefs.h <<_ACEOF
  11325. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11326. _ACEOF
  11327. fi
  11328. done
  11329. for ac_func in basename
  11330. do
  11331. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11332. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11333. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11334. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11335. echo $ECHO_N "(cached) $ECHO_C" >&6
  11336. else
  11337. cat >conftest.$ac_ext <<_ACEOF
  11338. /* confdefs.h. */
  11339. _ACEOF
  11340. cat confdefs.h >>conftest.$ac_ext
  11341. cat >>conftest.$ac_ext <<_ACEOF
  11342. /* end confdefs.h. */
  11343. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11344. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11345. #define $ac_func innocuous_$ac_func
  11346. /* System header to define __stub macros and hopefully few prototypes,
  11347. which can conflict with char $ac_func (); below.
  11348. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11349. <limits.h> exists even on freestanding compilers. */
  11350. #ifdef __STDC__
  11351. # include <limits.h>
  11352. #else
  11353. # include <assert.h>
  11354. #endif
  11355. #undef $ac_func
  11356. /* Override any GCC internal prototype to avoid an error.
  11357. Use char because int might match the return type of a GCC
  11358. builtin and then its argument prototype would still apply. */
  11359. #ifdef __cplusplus
  11360. extern "C"
  11361. #endif
  11362. char $ac_func ();
  11363. /* The GNU C library defines this for functions which it implements
  11364. to always fail with ENOSYS. Some functions are actually named
  11365. something starting with __ and the normal name is an alias. */
  11366. #if defined __stub_$ac_func || defined __stub___$ac_func
  11367. choke me
  11368. #endif
  11369. int
  11370. main ()
  11371. {
  11372. return $ac_func ();
  11373. ;
  11374. return 0;
  11375. }
  11376. _ACEOF
  11377. rm -f conftest.$ac_objext conftest$ac_exeext
  11378. if { (ac_try="$ac_link"
  11379. case "(($ac_try" in
  11380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11381. *) ac_try_echo=$ac_try;;
  11382. esac
  11383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11384. (eval "$ac_link") 2>conftest.er1
  11385. ac_status=$?
  11386. grep -v '^ *+' conftest.er1 >conftest.err
  11387. rm -f conftest.er1
  11388. cat conftest.err >&5
  11389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11390. (exit $ac_status); } && {
  11391. test -z "$ac_cxx_werror_flag" ||
  11392. test ! -s conftest.err
  11393. } && test -s conftest$ac_exeext &&
  11394. $as_test_x conftest$ac_exeext; then
  11395. eval "$as_ac_var=yes"
  11396. else
  11397. echo "$as_me: failed program was:" >&5
  11398. sed 's/^/| /' conftest.$ac_ext >&5
  11399. eval "$as_ac_var=no"
  11400. fi
  11401. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11402. conftest$ac_exeext conftest.$ac_ext
  11403. fi
  11404. ac_res=`eval echo '${'$as_ac_var'}'`
  11405. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11406. echo "${ECHO_T}$ac_res" >&6; }
  11407. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11408. cat >>confdefs.h <<_ACEOF
  11409. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11410. _ACEOF
  11411. if true; then
  11412. HAVE_BASENAME_TRUE=
  11413. HAVE_BASENAME_FALSE='#'
  11414. else
  11415. HAVE_BASENAME_TRUE='#'
  11416. HAVE_BASENAME_FALSE=
  11417. fi
  11418. else
  11419. if false; then
  11420. HAVE_BASENAME_TRUE=
  11421. HAVE_BASENAME_FALSE='#'
  11422. else
  11423. HAVE_BASENAME_TRUE='#'
  11424. HAVE_BASENAME_FALSE=
  11425. fi
  11426. fi
  11427. done
  11428. for ac_func in gai_strerror
  11429. do
  11430. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11431. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11432. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11433. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11434. echo $ECHO_N "(cached) $ECHO_C" >&6
  11435. else
  11436. cat >conftest.$ac_ext <<_ACEOF
  11437. /* confdefs.h. */
  11438. _ACEOF
  11439. cat confdefs.h >>conftest.$ac_ext
  11440. cat >>conftest.$ac_ext <<_ACEOF
  11441. /* end confdefs.h. */
  11442. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11443. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11444. #define $ac_func innocuous_$ac_func
  11445. /* System header to define __stub macros and hopefully few prototypes,
  11446. which can conflict with char $ac_func (); below.
  11447. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11448. <limits.h> exists even on freestanding compilers. */
  11449. #ifdef __STDC__
  11450. # include <limits.h>
  11451. #else
  11452. # include <assert.h>
  11453. #endif
  11454. #undef $ac_func
  11455. /* Override any GCC internal prototype to avoid an error.
  11456. Use char because int might match the return type of a GCC
  11457. builtin and then its argument prototype would still apply. */
  11458. #ifdef __cplusplus
  11459. extern "C"
  11460. #endif
  11461. char $ac_func ();
  11462. /* The GNU C library defines this for functions which it implements
  11463. to always fail with ENOSYS. Some functions are actually named
  11464. something starting with __ and the normal name is an alias. */
  11465. #if defined __stub_$ac_func || defined __stub___$ac_func
  11466. choke me
  11467. #endif
  11468. int
  11469. main ()
  11470. {
  11471. return $ac_func ();
  11472. ;
  11473. return 0;
  11474. }
  11475. _ACEOF
  11476. rm -f conftest.$ac_objext conftest$ac_exeext
  11477. if { (ac_try="$ac_link"
  11478. case "(($ac_try" in
  11479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11480. *) ac_try_echo=$ac_try;;
  11481. esac
  11482. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11483. (eval "$ac_link") 2>conftest.er1
  11484. ac_status=$?
  11485. grep -v '^ *+' conftest.er1 >conftest.err
  11486. rm -f conftest.er1
  11487. cat conftest.err >&5
  11488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11489. (exit $ac_status); } && {
  11490. test -z "$ac_cxx_werror_flag" ||
  11491. test ! -s conftest.err
  11492. } && test -s conftest$ac_exeext &&
  11493. $as_test_x conftest$ac_exeext; then
  11494. eval "$as_ac_var=yes"
  11495. else
  11496. echo "$as_me: failed program was:" >&5
  11497. sed 's/^/| /' conftest.$ac_ext >&5
  11498. eval "$as_ac_var=no"
  11499. fi
  11500. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11501. conftest$ac_exeext conftest.$ac_ext
  11502. fi
  11503. ac_res=`eval echo '${'$as_ac_var'}'`
  11504. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11505. echo "${ECHO_T}$ac_res" >&6; }
  11506. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11507. cat >>confdefs.h <<_ACEOF
  11508. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11509. _ACEOF
  11510. if true; then
  11511. HAVE_GAI_STRERROR_TRUE=
  11512. HAVE_GAI_STRERROR_FALSE='#'
  11513. else
  11514. HAVE_GAI_STRERROR_TRUE='#'
  11515. HAVE_GAI_STRERROR_FALSE=
  11516. fi
  11517. else
  11518. if false; then
  11519. HAVE_GAI_STRERROR_TRUE=
  11520. HAVE_GAI_STRERROR_FALSE='#'
  11521. else
  11522. HAVE_GAI_STRERROR_TRUE='#'
  11523. HAVE_GAI_STRERROR_FALSE=
  11524. fi
  11525. fi
  11526. done
  11527. for ac_func in getaddrinfo
  11528. do
  11529. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11530. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11531. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11532. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11533. echo $ECHO_N "(cached) $ECHO_C" >&6
  11534. else
  11535. cat >conftest.$ac_ext <<_ACEOF
  11536. /* confdefs.h. */
  11537. _ACEOF
  11538. cat confdefs.h >>conftest.$ac_ext
  11539. cat >>conftest.$ac_ext <<_ACEOF
  11540. /* end confdefs.h. */
  11541. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11542. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11543. #define $ac_func innocuous_$ac_func
  11544. /* System header to define __stub macros and hopefully few prototypes,
  11545. which can conflict with char $ac_func (); below.
  11546. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11547. <limits.h> exists even on freestanding compilers. */
  11548. #ifdef __STDC__
  11549. # include <limits.h>
  11550. #else
  11551. # include <assert.h>
  11552. #endif
  11553. #undef $ac_func
  11554. /* Override any GCC internal prototype to avoid an error.
  11555. Use char because int might match the return type of a GCC
  11556. builtin and then its argument prototype would still apply. */
  11557. #ifdef __cplusplus
  11558. extern "C"
  11559. #endif
  11560. char $ac_func ();
  11561. /* The GNU C library defines this for functions which it implements
  11562. to always fail with ENOSYS. Some functions are actually named
  11563. something starting with __ and the normal name is an alias. */
  11564. #if defined __stub_$ac_func || defined __stub___$ac_func
  11565. choke me
  11566. #endif
  11567. int
  11568. main ()
  11569. {
  11570. return $ac_func ();
  11571. ;
  11572. return 0;
  11573. }
  11574. _ACEOF
  11575. rm -f conftest.$ac_objext conftest$ac_exeext
  11576. if { (ac_try="$ac_link"
  11577. case "(($ac_try" in
  11578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11579. *) ac_try_echo=$ac_try;;
  11580. esac
  11581. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11582. (eval "$ac_link") 2>conftest.er1
  11583. ac_status=$?
  11584. grep -v '^ *+' conftest.er1 >conftest.err
  11585. rm -f conftest.er1
  11586. cat conftest.err >&5
  11587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11588. (exit $ac_status); } && {
  11589. test -z "$ac_cxx_werror_flag" ||
  11590. test ! -s conftest.err
  11591. } && test -s conftest$ac_exeext &&
  11592. $as_test_x conftest$ac_exeext; then
  11593. eval "$as_ac_var=yes"
  11594. else
  11595. echo "$as_me: failed program was:" >&5
  11596. sed 's/^/| /' conftest.$ac_ext >&5
  11597. eval "$as_ac_var=no"
  11598. fi
  11599. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11600. conftest$ac_exeext conftest.$ac_ext
  11601. fi
  11602. ac_res=`eval echo '${'$as_ac_var'}'`
  11603. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11604. echo "${ECHO_T}$ac_res" >&6; }
  11605. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11606. cat >>confdefs.h <<_ACEOF
  11607. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11608. _ACEOF
  11609. if true; then
  11610. HAVE_GETADDRINFO_TRUE=
  11611. HAVE_GETADDRINFO_FALSE='#'
  11612. else
  11613. HAVE_GETADDRINFO_TRUE='#'
  11614. HAVE_GETADDRINFO_FALSE=
  11615. fi
  11616. else
  11617. if false; then
  11618. HAVE_GETADDRINFO_TRUE=
  11619. HAVE_GETADDRINFO_FALSE='#'
  11620. else
  11621. HAVE_GETADDRINFO_TRUE='#'
  11622. HAVE_GETADDRINFO_FALSE=
  11623. fi
  11624. fi
  11625. done
  11626. for ac_func in gettimeofday
  11627. do
  11628. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11629. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11630. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11631. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11632. echo $ECHO_N "(cached) $ECHO_C" >&6
  11633. else
  11634. cat >conftest.$ac_ext <<_ACEOF
  11635. /* confdefs.h. */
  11636. _ACEOF
  11637. cat confdefs.h >>conftest.$ac_ext
  11638. cat >>conftest.$ac_ext <<_ACEOF
  11639. /* end confdefs.h. */
  11640. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11641. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11642. #define $ac_func innocuous_$ac_func
  11643. /* System header to define __stub macros and hopefully few prototypes,
  11644. which can conflict with char $ac_func (); below.
  11645. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11646. <limits.h> exists even on freestanding compilers. */
  11647. #ifdef __STDC__
  11648. # include <limits.h>
  11649. #else
  11650. # include <assert.h>
  11651. #endif
  11652. #undef $ac_func
  11653. /* Override any GCC internal prototype to avoid an error.
  11654. Use char because int might match the return type of a GCC
  11655. builtin and then its argument prototype would still apply. */
  11656. #ifdef __cplusplus
  11657. extern "C"
  11658. #endif
  11659. char $ac_func ();
  11660. /* The GNU C library defines this for functions which it implements
  11661. to always fail with ENOSYS. Some functions are actually named
  11662. something starting with __ and the normal name is an alias. */
  11663. #if defined __stub_$ac_func || defined __stub___$ac_func
  11664. choke me
  11665. #endif
  11666. int
  11667. main ()
  11668. {
  11669. return $ac_func ();
  11670. ;
  11671. return 0;
  11672. }
  11673. _ACEOF
  11674. rm -f conftest.$ac_objext conftest$ac_exeext
  11675. if { (ac_try="$ac_link"
  11676. case "(($ac_try" in
  11677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11678. *) ac_try_echo=$ac_try;;
  11679. esac
  11680. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11681. (eval "$ac_link") 2>conftest.er1
  11682. ac_status=$?
  11683. grep -v '^ *+' conftest.er1 >conftest.err
  11684. rm -f conftest.er1
  11685. cat conftest.err >&5
  11686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11687. (exit $ac_status); } && {
  11688. test -z "$ac_cxx_werror_flag" ||
  11689. test ! -s conftest.err
  11690. } && test -s conftest$ac_exeext &&
  11691. $as_test_x conftest$ac_exeext; then
  11692. eval "$as_ac_var=yes"
  11693. else
  11694. echo "$as_me: failed program was:" >&5
  11695. sed 's/^/| /' conftest.$ac_ext >&5
  11696. eval "$as_ac_var=no"
  11697. fi
  11698. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11699. conftest$ac_exeext conftest.$ac_ext
  11700. fi
  11701. ac_res=`eval echo '${'$as_ac_var'}'`
  11702. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11703. echo "${ECHO_T}$ac_res" >&6; }
  11704. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11705. cat >>confdefs.h <<_ACEOF
  11706. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11707. _ACEOF
  11708. if true; then
  11709. HAVE_GETTIMEOFDAY_TRUE=
  11710. HAVE_GETTIMEOFDAY_FALSE='#'
  11711. else
  11712. HAVE_GETTIMEOFDAY_TRUE='#'
  11713. HAVE_GETTIMEOFDAY_FALSE=
  11714. fi
  11715. else
  11716. if false; then
  11717. HAVE_GETTIMEOFDAY_TRUE=
  11718. HAVE_GETTIMEOFDAY_FALSE='#'
  11719. else
  11720. HAVE_GETTIMEOFDAY_TRUE='#'
  11721. HAVE_GETTIMEOFDAY_FALSE=
  11722. fi
  11723. fi
  11724. done
  11725. for ac_func in inet_aton
  11726. do
  11727. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11728. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11729. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11730. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11731. echo $ECHO_N "(cached) $ECHO_C" >&6
  11732. else
  11733. cat >conftest.$ac_ext <<_ACEOF
  11734. /* confdefs.h. */
  11735. _ACEOF
  11736. cat confdefs.h >>conftest.$ac_ext
  11737. cat >>conftest.$ac_ext <<_ACEOF
  11738. /* end confdefs.h. */
  11739. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11740. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11741. #define $ac_func innocuous_$ac_func
  11742. /* System header to define __stub macros and hopefully few prototypes,
  11743. which can conflict with char $ac_func (); below.
  11744. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11745. <limits.h> exists even on freestanding compilers. */
  11746. #ifdef __STDC__
  11747. # include <limits.h>
  11748. #else
  11749. # include <assert.h>
  11750. #endif
  11751. #undef $ac_func
  11752. /* Override any GCC internal prototype to avoid an error.
  11753. Use char because int might match the return type of a GCC
  11754. builtin and then its argument prototype would still apply. */
  11755. #ifdef __cplusplus
  11756. extern "C"
  11757. #endif
  11758. char $ac_func ();
  11759. /* The GNU C library defines this for functions which it implements
  11760. to always fail with ENOSYS. Some functions are actually named
  11761. something starting with __ and the normal name is an alias. */
  11762. #if defined __stub_$ac_func || defined __stub___$ac_func
  11763. choke me
  11764. #endif
  11765. int
  11766. main ()
  11767. {
  11768. return $ac_func ();
  11769. ;
  11770. return 0;
  11771. }
  11772. _ACEOF
  11773. rm -f conftest.$ac_objext conftest$ac_exeext
  11774. if { (ac_try="$ac_link"
  11775. case "(($ac_try" in
  11776. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11777. *) ac_try_echo=$ac_try;;
  11778. esac
  11779. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11780. (eval "$ac_link") 2>conftest.er1
  11781. ac_status=$?
  11782. grep -v '^ *+' conftest.er1 >conftest.err
  11783. rm -f conftest.er1
  11784. cat conftest.err >&5
  11785. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11786. (exit $ac_status); } && {
  11787. test -z "$ac_cxx_werror_flag" ||
  11788. test ! -s conftest.err
  11789. } && test -s conftest$ac_exeext &&
  11790. $as_test_x conftest$ac_exeext; then
  11791. eval "$as_ac_var=yes"
  11792. else
  11793. echo "$as_me: failed program was:" >&5
  11794. sed 's/^/| /' conftest.$ac_ext >&5
  11795. eval "$as_ac_var=no"
  11796. fi
  11797. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11798. conftest$ac_exeext conftest.$ac_ext
  11799. fi
  11800. ac_res=`eval echo '${'$as_ac_var'}'`
  11801. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11802. echo "${ECHO_T}$ac_res" >&6; }
  11803. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11804. cat >>confdefs.h <<_ACEOF
  11805. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11806. _ACEOF
  11807. if true; then
  11808. HAVE_INET_ATON_TRUE=
  11809. HAVE_INET_ATON_FALSE='#'
  11810. else
  11811. HAVE_INET_ATON_TRUE='#'
  11812. HAVE_INET_ATON_FALSE=
  11813. fi
  11814. else
  11815. if false; then
  11816. HAVE_INET_ATON_TRUE=
  11817. HAVE_INET_ATON_FALSE='#'
  11818. else
  11819. HAVE_INET_ATON_TRUE='#'
  11820. HAVE_INET_ATON_FALSE=
  11821. fi
  11822. fi
  11823. done
  11824. for ac_func in localtime_r
  11825. do
  11826. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11827. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11828. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11829. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11830. echo $ECHO_N "(cached) $ECHO_C" >&6
  11831. else
  11832. cat >conftest.$ac_ext <<_ACEOF
  11833. /* confdefs.h. */
  11834. _ACEOF
  11835. cat confdefs.h >>conftest.$ac_ext
  11836. cat >>conftest.$ac_ext <<_ACEOF
  11837. /* end confdefs.h. */
  11838. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11839. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11840. #define $ac_func innocuous_$ac_func
  11841. /* System header to define __stub macros and hopefully few prototypes,
  11842. which can conflict with char $ac_func (); below.
  11843. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11844. <limits.h> exists even on freestanding compilers. */
  11845. #ifdef __STDC__
  11846. # include <limits.h>
  11847. #else
  11848. # include <assert.h>
  11849. #endif
  11850. #undef $ac_func
  11851. /* Override any GCC internal prototype to avoid an error.
  11852. Use char because int might match the return type of a GCC
  11853. builtin and then its argument prototype would still apply. */
  11854. #ifdef __cplusplus
  11855. extern "C"
  11856. #endif
  11857. char $ac_func ();
  11858. /* The GNU C library defines this for functions which it implements
  11859. to always fail with ENOSYS. Some functions are actually named
  11860. something starting with __ and the normal name is an alias. */
  11861. #if defined __stub_$ac_func || defined __stub___$ac_func
  11862. choke me
  11863. #endif
  11864. int
  11865. main ()
  11866. {
  11867. return $ac_func ();
  11868. ;
  11869. return 0;
  11870. }
  11871. _ACEOF
  11872. rm -f conftest.$ac_objext conftest$ac_exeext
  11873. if { (ac_try="$ac_link"
  11874. case "(($ac_try" in
  11875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11876. *) ac_try_echo=$ac_try;;
  11877. esac
  11878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11879. (eval "$ac_link") 2>conftest.er1
  11880. ac_status=$?
  11881. grep -v '^ *+' conftest.er1 >conftest.err
  11882. rm -f conftest.er1
  11883. cat conftest.err >&5
  11884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11885. (exit $ac_status); } && {
  11886. test -z "$ac_cxx_werror_flag" ||
  11887. test ! -s conftest.err
  11888. } && test -s conftest$ac_exeext &&
  11889. $as_test_x conftest$ac_exeext; then
  11890. eval "$as_ac_var=yes"
  11891. else
  11892. echo "$as_me: failed program was:" >&5
  11893. sed 's/^/| /' conftest.$ac_ext >&5
  11894. eval "$as_ac_var=no"
  11895. fi
  11896. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11897. conftest$ac_exeext conftest.$ac_ext
  11898. fi
  11899. ac_res=`eval echo '${'$as_ac_var'}'`
  11900. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11901. echo "${ECHO_T}$ac_res" >&6; }
  11902. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11903. cat >>confdefs.h <<_ACEOF
  11904. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11905. _ACEOF
  11906. if true; then
  11907. HAVE_LOCALTIME_R_TRUE=
  11908. HAVE_LOCALTIME_R_FALSE='#'
  11909. else
  11910. HAVE_LOCALTIME_R_TRUE='#'
  11911. HAVE_LOCALTIME_R_FALSE=
  11912. fi
  11913. else
  11914. if false; then
  11915. HAVE_LOCALTIME_R_TRUE=
  11916. HAVE_LOCALTIME_R_FALSE='#'
  11917. else
  11918. HAVE_LOCALTIME_R_TRUE='#'
  11919. HAVE_LOCALTIME_R_FALSE=
  11920. fi
  11921. fi
  11922. done
  11923. for ac_func in strptime
  11924. do
  11925. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11926. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11927. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11928. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11929. echo $ECHO_N "(cached) $ECHO_C" >&6
  11930. else
  11931. cat >conftest.$ac_ext <<_ACEOF
  11932. /* confdefs.h. */
  11933. _ACEOF
  11934. cat confdefs.h >>conftest.$ac_ext
  11935. cat >>conftest.$ac_ext <<_ACEOF
  11936. /* end confdefs.h. */
  11937. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11938. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11939. #define $ac_func innocuous_$ac_func
  11940. /* System header to define __stub macros and hopefully few prototypes,
  11941. which can conflict with char $ac_func (); below.
  11942. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11943. <limits.h> exists even on freestanding compilers. */
  11944. #ifdef __STDC__
  11945. # include <limits.h>
  11946. #else
  11947. # include <assert.h>
  11948. #endif
  11949. #undef $ac_func
  11950. /* Override any GCC internal prototype to avoid an error.
  11951. Use char because int might match the return type of a GCC
  11952. builtin and then its argument prototype would still apply. */
  11953. #ifdef __cplusplus
  11954. extern "C"
  11955. #endif
  11956. char $ac_func ();
  11957. /* The GNU C library defines this for functions which it implements
  11958. to always fail with ENOSYS. Some functions are actually named
  11959. something starting with __ and the normal name is an alias. */
  11960. #if defined __stub_$ac_func || defined __stub___$ac_func
  11961. choke me
  11962. #endif
  11963. int
  11964. main ()
  11965. {
  11966. return $ac_func ();
  11967. ;
  11968. return 0;
  11969. }
  11970. _ACEOF
  11971. rm -f conftest.$ac_objext conftest$ac_exeext
  11972. if { (ac_try="$ac_link"
  11973. case "(($ac_try" in
  11974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11975. *) ac_try_echo=$ac_try;;
  11976. esac
  11977. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11978. (eval "$ac_link") 2>conftest.er1
  11979. ac_status=$?
  11980. grep -v '^ *+' conftest.er1 >conftest.err
  11981. rm -f conftest.er1
  11982. cat conftest.err >&5
  11983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11984. (exit $ac_status); } && {
  11985. test -z "$ac_cxx_werror_flag" ||
  11986. test ! -s conftest.err
  11987. } && test -s conftest$ac_exeext &&
  11988. $as_test_x conftest$ac_exeext; then
  11989. eval "$as_ac_var=yes"
  11990. else
  11991. echo "$as_me: failed program was:" >&5
  11992. sed 's/^/| /' conftest.$ac_ext >&5
  11993. eval "$as_ac_var=no"
  11994. fi
  11995. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11996. conftest$ac_exeext conftest.$ac_ext
  11997. fi
  11998. ac_res=`eval echo '${'$as_ac_var'}'`
  11999. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12000. echo "${ECHO_T}$ac_res" >&6; }
  12001. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12002. cat >>confdefs.h <<_ACEOF
  12003. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12004. _ACEOF
  12005. if true; then
  12006. HAVE_STRPTIME_TRUE=
  12007. HAVE_STRPTIME_FALSE='#'
  12008. else
  12009. HAVE_STRPTIME_TRUE='#'
  12010. HAVE_STRPTIME_FALSE=
  12011. fi
  12012. else
  12013. if false; then
  12014. HAVE_STRPTIME_TRUE=
  12015. HAVE_STRPTIME_FALSE='#'
  12016. else
  12017. HAVE_STRPTIME_TRUE='#'
  12018. HAVE_STRPTIME_FALSE=
  12019. fi
  12020. fi
  12021. done
  12022. for ac_func in timegm
  12023. do
  12024. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12025. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12026. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12027. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12028. echo $ECHO_N "(cached) $ECHO_C" >&6
  12029. else
  12030. cat >conftest.$ac_ext <<_ACEOF
  12031. /* confdefs.h. */
  12032. _ACEOF
  12033. cat confdefs.h >>conftest.$ac_ext
  12034. cat >>conftest.$ac_ext <<_ACEOF
  12035. /* end confdefs.h. */
  12036. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12037. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12038. #define $ac_func innocuous_$ac_func
  12039. /* System header to define __stub macros and hopefully few prototypes,
  12040. which can conflict with char $ac_func (); below.
  12041. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12042. <limits.h> exists even on freestanding compilers. */
  12043. #ifdef __STDC__
  12044. # include <limits.h>
  12045. #else
  12046. # include <assert.h>
  12047. #endif
  12048. #undef $ac_func
  12049. /* Override any GCC internal prototype to avoid an error.
  12050. Use char because int might match the return type of a GCC
  12051. builtin and then its argument prototype would still apply. */
  12052. #ifdef __cplusplus
  12053. extern "C"
  12054. #endif
  12055. char $ac_func ();
  12056. /* The GNU C library defines this for functions which it implements
  12057. to always fail with ENOSYS. Some functions are actually named
  12058. something starting with __ and the normal name is an alias. */
  12059. #if defined __stub_$ac_func || defined __stub___$ac_func
  12060. choke me
  12061. #endif
  12062. int
  12063. main ()
  12064. {
  12065. return $ac_func ();
  12066. ;
  12067. return 0;
  12068. }
  12069. _ACEOF
  12070. rm -f conftest.$ac_objext conftest$ac_exeext
  12071. if { (ac_try="$ac_link"
  12072. case "(($ac_try" in
  12073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12074. *) ac_try_echo=$ac_try;;
  12075. esac
  12076. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12077. (eval "$ac_link") 2>conftest.er1
  12078. ac_status=$?
  12079. grep -v '^ *+' conftest.er1 >conftest.err
  12080. rm -f conftest.er1
  12081. cat conftest.err >&5
  12082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12083. (exit $ac_status); } && {
  12084. test -z "$ac_cxx_werror_flag" ||
  12085. test ! -s conftest.err
  12086. } && test -s conftest$ac_exeext &&
  12087. $as_test_x conftest$ac_exeext; then
  12088. eval "$as_ac_var=yes"
  12089. else
  12090. echo "$as_me: failed program was:" >&5
  12091. sed 's/^/| /' conftest.$ac_ext >&5
  12092. eval "$as_ac_var=no"
  12093. fi
  12094. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12095. conftest$ac_exeext conftest.$ac_ext
  12096. fi
  12097. ac_res=`eval echo '${'$as_ac_var'}'`
  12098. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12099. echo "${ECHO_T}$ac_res" >&6; }
  12100. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12101. cat >>confdefs.h <<_ACEOF
  12102. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12103. _ACEOF
  12104. if true; then
  12105. HAVE_TIMEGM_TRUE=
  12106. HAVE_TIMEGM_FALSE='#'
  12107. else
  12108. HAVE_TIMEGM_TRUE='#'
  12109. HAVE_TIMEGM_FALSE=
  12110. fi
  12111. else
  12112. if false; then
  12113. HAVE_TIMEGM_TRUE=
  12114. HAVE_TIMEGM_FALSE='#'
  12115. else
  12116. HAVE_TIMEGM_TRUE='#'
  12117. HAVE_TIMEGM_FALSE=
  12118. fi
  12119. fi
  12120. done
  12121. case "$target" in
  12122. *mingw*)
  12123. if true; then
  12124. HAVE_GETADDRINFO_TRUE=
  12125. HAVE_GETADDRINFO_FALSE='#'
  12126. else
  12127. HAVE_GETADDRINFO_TRUE='#'
  12128. HAVE_GETADDRINFO_FALSE=
  12129. fi
  12130. if false; then
  12131. HAVE_GAI_STRERROR_TRUE=
  12132. HAVE_GAI_STRERROR_FALSE='#'
  12133. else
  12134. HAVE_GAI_STRERROR_TRUE='#'
  12135. HAVE_GAI_STRERROR_FALSE=
  12136. fi
  12137. ;;
  12138. esac
  12139. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile doc/Makefile"
  12140. cat >confcache <<\_ACEOF
  12141. # This file is a shell script that caches the results of configure
  12142. # tests run on this system so they can be shared between configure
  12143. # scripts and configure runs, see configure's option --config-cache.
  12144. # It is not useful on other systems. If it contains results you don't
  12145. # want to keep, you may remove or edit it.
  12146. #
  12147. # config.status only pays attention to the cache file if you give it
  12148. # the --recheck option to rerun configure.
  12149. #
  12150. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12151. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12152. # following values.
  12153. _ACEOF
  12154. # The following way of writing the cache mishandles newlines in values,
  12155. # but we know of no workaround that is simple, portable, and efficient.
  12156. # So, we kill variables containing newlines.
  12157. # Ultrix sh set writes to stderr and can't be redirected directly,
  12158. # and sets the high bit in the cache file unless we assign to the vars.
  12159. (
  12160. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12161. eval ac_val=\$$ac_var
  12162. case $ac_val in #(
  12163. *${as_nl}*)
  12164. case $ac_var in #(
  12165. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  12166. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  12167. esac
  12168. case $ac_var in #(
  12169. _ | IFS | as_nl) ;; #(
  12170. *) $as_unset $ac_var ;;
  12171. esac ;;
  12172. esac
  12173. done
  12174. (set) 2>&1 |
  12175. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12176. *${as_nl}ac_space=\ *)
  12177. # `set' does not quote correctly, so add quotes (double-quote
  12178. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12179. sed -n \
  12180. "s/'/'\\\\''/g;
  12181. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12182. ;; #(
  12183. *)
  12184. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12185. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12186. ;;
  12187. esac |
  12188. sort
  12189. ) |
  12190. sed '
  12191. /^ac_cv_env_/b end
  12192. t clear
  12193. :clear
  12194. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12195. t end
  12196. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12197. :end' >>confcache
  12198. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12199. if test -w "$cache_file"; then
  12200. test "x$cache_file" != "x/dev/null" &&
  12201. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12202. echo "$as_me: updating cache $cache_file" >&6;}
  12203. cat confcache >$cache_file
  12204. else
  12205. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12206. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12207. fi
  12208. fi
  12209. rm -f confcache
  12210. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12211. # Let make expand exec_prefix.
  12212. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12213. DEFS=-DHAVE_CONFIG_H
  12214. ac_libobjs=
  12215. ac_ltlibobjs=
  12216. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12217. # 1. Remove the extension, and $U if already installed.
  12218. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12219. ac_i=`echo "$ac_i" | sed "$ac_script"`
  12220. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12221. # will be set to the directory where LIBOBJS objects are built.
  12222. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12223. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12224. done
  12225. LIBOBJS=$ac_libobjs
  12226. LTLIBOBJS=$ac_ltlibobjs
  12227. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12228. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  12229. Usually this means the macro was only invoked conditionally." >&5
  12230. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  12231. Usually this means the macro was only invoked conditionally." >&2;}
  12232. { (exit 1); exit 1; }; }
  12233. fi
  12234. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12235. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  12236. Usually this means the macro was only invoked conditionally." >&5
  12237. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  12238. Usually this means the macro was only invoked conditionally." >&2;}
  12239. { (exit 1); exit 1; }; }
  12240. fi
  12241. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12242. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  12243. Usually this means the macro was only invoked conditionally." >&5
  12244. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  12245. Usually this means the macro was only invoked conditionally." >&2;}
  12246. { (exit 1); exit 1; }; }
  12247. fi
  12248. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  12249. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12250. Usually this means the macro was only invoked conditionally." >&5
  12251. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12252. Usually this means the macro was only invoked conditionally." >&2;}
  12253. { (exit 1); exit 1; }; }
  12254. fi
  12255. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  12256. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12257. Usually this means the macro was only invoked conditionally." >&5
  12258. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12259. Usually this means the macro was only invoked conditionally." >&2;}
  12260. { (exit 1); exit 1; }; }
  12261. fi
  12262. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12263. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12264. Usually this means the macro was only invoked conditionally." >&5
  12265. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12266. Usually this means the macro was only invoked conditionally." >&2;}
  12267. { (exit 1); exit 1; }; }
  12268. fi
  12269. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12270. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12271. Usually this means the macro was only invoked conditionally." >&5
  12272. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12273. Usually this means the macro was only invoked conditionally." >&2;}
  12274. { (exit 1); exit 1; }; }
  12275. fi
  12276. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12277. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  12278. Usually this means the macro was only invoked conditionally." >&5
  12279. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  12280. Usually this means the macro was only invoked conditionally." >&2;}
  12281. { (exit 1); exit 1; }; }
  12282. fi
  12283. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12284. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  12285. Usually this means the macro was only invoked conditionally." >&5
  12286. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  12287. Usually this means the macro was only invoked conditionally." >&2;}
  12288. { (exit 1); exit 1; }; }
  12289. fi
  12290. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12291. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12292. Usually this means the macro was only invoked conditionally." >&5
  12293. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12294. Usually this means the macro was only invoked conditionally." >&2;}
  12295. { (exit 1); exit 1; }; }
  12296. fi
  12297. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12298. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12299. Usually this means the macro was only invoked conditionally." >&5
  12300. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12301. Usually this means the macro was only invoked conditionally." >&2;}
  12302. { (exit 1); exit 1; }; }
  12303. fi
  12304. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  12305. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  12306. Usually this means the macro was only invoked conditionally." >&5
  12307. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  12308. Usually this means the macro was only invoked conditionally." >&2;}
  12309. { (exit 1); exit 1; }; }
  12310. fi
  12311. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  12312. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  12313. Usually this means the macro was only invoked conditionally." >&5
  12314. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  12315. Usually this means the macro was only invoked conditionally." >&2;}
  12316. { (exit 1); exit 1; }; }
  12317. fi
  12318. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12319. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12320. Usually this means the macro was only invoked conditionally." >&5
  12321. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12322. Usually this means the macro was only invoked conditionally." >&2;}
  12323. { (exit 1); exit 1; }; }
  12324. fi
  12325. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12326. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12327. Usually this means the macro was only invoked conditionally." >&5
  12328. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12329. Usually this means the macro was only invoked conditionally." >&2;}
  12330. { (exit 1); exit 1; }; }
  12331. fi
  12332. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12333. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12334. Usually this means the macro was only invoked conditionally." >&5
  12335. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12336. Usually this means the macro was only invoked conditionally." >&2;}
  12337. { (exit 1); exit 1; }; }
  12338. fi
  12339. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12340. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12341. Usually this means the macro was only invoked conditionally." >&5
  12342. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12343. Usually this means the macro was only invoked conditionally." >&2;}
  12344. { (exit 1); exit 1; }; }
  12345. fi
  12346. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12347. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12348. Usually this means the macro was only invoked conditionally." >&5
  12349. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12350. Usually this means the macro was only invoked conditionally." >&2;}
  12351. { (exit 1); exit 1; }; }
  12352. fi
  12353. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12354. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12355. Usually this means the macro was only invoked conditionally." >&5
  12356. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12357. Usually this means the macro was only invoked conditionally." >&2;}
  12358. { (exit 1); exit 1; }; }
  12359. fi
  12360. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  12361. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  12362. Usually this means the macro was only invoked conditionally." >&5
  12363. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  12364. Usually this means the macro was only invoked conditionally." >&2;}
  12365. { (exit 1); exit 1; }; }
  12366. fi
  12367. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  12368. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  12369. Usually this means the macro was only invoked conditionally." >&5
  12370. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  12371. Usually this means the macro was only invoked conditionally." >&2;}
  12372. { (exit 1); exit 1; }; }
  12373. fi
  12374. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  12375. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12376. Usually this means the macro was only invoked conditionally." >&5
  12377. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12378. Usually this means the macro was only invoked conditionally." >&2;}
  12379. { (exit 1); exit 1; }; }
  12380. fi
  12381. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  12382. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12383. Usually this means the macro was only invoked conditionally." >&5
  12384. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12385. Usually this means the macro was only invoked conditionally." >&2;}
  12386. { (exit 1); exit 1; }; }
  12387. fi
  12388. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  12389. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  12390. Usually this means the macro was only invoked conditionally." >&5
  12391. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  12392. Usually this means the macro was only invoked conditionally." >&2;}
  12393. { (exit 1); exit 1; }; }
  12394. fi
  12395. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  12396. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  12397. Usually this means the macro was only invoked conditionally." >&5
  12398. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  12399. Usually this means the macro was only invoked conditionally." >&2;}
  12400. { (exit 1); exit 1; }; }
  12401. fi
  12402. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  12403. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  12404. Usually this means the macro was only invoked conditionally." >&5
  12405. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  12406. Usually this means the macro was only invoked conditionally." >&2;}
  12407. { (exit 1); exit 1; }; }
  12408. fi
  12409. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  12410. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  12411. Usually this means the macro was only invoked conditionally." >&5
  12412. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  12413. Usually this means the macro was only invoked conditionally." >&2;}
  12414. { (exit 1); exit 1; }; }
  12415. fi
  12416. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12417. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12418. Usually this means the macro was only invoked conditionally." >&5
  12419. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12420. Usually this means the macro was only invoked conditionally." >&2;}
  12421. { (exit 1); exit 1; }; }
  12422. fi
  12423. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12424. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12425. Usually this means the macro was only invoked conditionally." >&5
  12426. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12427. Usually this means the macro was only invoked conditionally." >&2;}
  12428. { (exit 1); exit 1; }; }
  12429. fi
  12430. : ${CONFIG_STATUS=./config.status}
  12431. ac_clean_files_save=$ac_clean_files
  12432. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12433. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12434. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12435. cat >$CONFIG_STATUS <<_ACEOF
  12436. #! $SHELL
  12437. # Generated by $as_me.
  12438. # Run this file to recreate the current configuration.
  12439. # Compiler output produced by configure, useful for debugging
  12440. # configure, is in config.log if it exists.
  12441. debug=false
  12442. ac_cs_recheck=false
  12443. ac_cs_silent=false
  12444. SHELL=\${CONFIG_SHELL-$SHELL}
  12445. _ACEOF
  12446. cat >>$CONFIG_STATUS <<\_ACEOF
  12447. ## --------------------- ##
  12448. ## M4sh Initialization. ##
  12449. ## --------------------- ##
  12450. # Be more Bourne compatible
  12451. DUALCASE=1; export DUALCASE # for MKS sh
  12452. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12453. emulate sh
  12454. NULLCMD=:
  12455. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12456. # is contrary to our usage. Disable this feature.
  12457. alias -g '${1+"$@"}'='"$@"'
  12458. setopt NO_GLOB_SUBST
  12459. else
  12460. case `(set -o) 2>/dev/null` in
  12461. *posix*) set -o posix ;;
  12462. esac
  12463. fi
  12464. # PATH needs CR
  12465. # Avoid depending upon Character Ranges.
  12466. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12467. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12468. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12469. as_cr_digits='0123456789'
  12470. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12471. # The user is always right.
  12472. if test "${PATH_SEPARATOR+set}" != set; then
  12473. echo "#! /bin/sh" >conf$$.sh
  12474. echo "exit 0" >>conf$$.sh
  12475. chmod +x conf$$.sh
  12476. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12477. PATH_SEPARATOR=';'
  12478. else
  12479. PATH_SEPARATOR=:
  12480. fi
  12481. rm -f conf$$.sh
  12482. fi
  12483. # Support unset when possible.
  12484. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12485. as_unset=unset
  12486. else
  12487. as_unset=false
  12488. fi
  12489. # IFS
  12490. # We need space, tab and new line, in precisely that order. Quoting is
  12491. # there to prevent editors from complaining about space-tab.
  12492. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12493. # splitting by setting IFS to empty value.)
  12494. as_nl='
  12495. '
  12496. IFS=" "" $as_nl"
  12497. # Find who we are. Look in the path if we contain no directory separator.
  12498. case $0 in
  12499. *[\\/]* ) as_myself=$0 ;;
  12500. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12501. for as_dir in $PATH
  12502. do
  12503. IFS=$as_save_IFS
  12504. test -z "$as_dir" && as_dir=.
  12505. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12506. done
  12507. IFS=$as_save_IFS
  12508. ;;
  12509. esac
  12510. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12511. # in which case we are not to be found in the path.
  12512. if test "x$as_myself" = x; then
  12513. as_myself=$0
  12514. fi
  12515. if test ! -f "$as_myself"; then
  12516. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12517. { (exit 1); exit 1; }
  12518. fi
  12519. # Work around bugs in pre-3.0 UWIN ksh.
  12520. for as_var in ENV MAIL MAILPATH
  12521. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12522. done
  12523. PS1='$ '
  12524. PS2='> '
  12525. PS4='+ '
  12526. # NLS nuisances.
  12527. for as_var in \
  12528. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12529. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12530. LC_TELEPHONE LC_TIME
  12531. do
  12532. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12533. eval $as_var=C; export $as_var
  12534. else
  12535. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12536. fi
  12537. done
  12538. # Required to use basename.
  12539. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12540. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12541. as_expr=expr
  12542. else
  12543. as_expr=false
  12544. fi
  12545. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12546. as_basename=basename
  12547. else
  12548. as_basename=false
  12549. fi
  12550. # Name of the executable.
  12551. as_me=`$as_basename -- "$0" ||
  12552. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12553. X"$0" : 'X\(//\)$' \| \
  12554. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12555. echo X/"$0" |
  12556. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12557. s//\1/
  12558. q
  12559. }
  12560. /^X\/\(\/\/\)$/{
  12561. s//\1/
  12562. q
  12563. }
  12564. /^X\/\(\/\).*/{
  12565. s//\1/
  12566. q
  12567. }
  12568. s/.*/./; q'`
  12569. # CDPATH.
  12570. $as_unset CDPATH
  12571. as_lineno_1=$LINENO
  12572. as_lineno_2=$LINENO
  12573. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12574. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12575. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12576. # uniformly replaced by the line number. The first 'sed' inserts a
  12577. # line-number line after each line using $LINENO; the second 'sed'
  12578. # does the real work. The second script uses 'N' to pair each
  12579. # line-number line with the line containing $LINENO, and appends
  12580. # trailing '-' during substitution so that $LINENO is not a special
  12581. # case at line end.
  12582. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12583. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12584. # E. McMahon (1931-1989) for sed's syntax. :-)
  12585. sed -n '
  12586. p
  12587. /[$]LINENO/=
  12588. ' <$as_myself |
  12589. sed '
  12590. s/[$]LINENO.*/&-/
  12591. t lineno
  12592. b
  12593. :lineno
  12594. N
  12595. :loop
  12596. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12597. t loop
  12598. s/-\n.*//
  12599. ' >$as_me.lineno &&
  12600. chmod +x "$as_me.lineno" ||
  12601. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12602. { (exit 1); exit 1; }; }
  12603. # Don't try to exec as it changes $[0], causing all sort of problems
  12604. # (the dirname of $[0] is not the place where we might find the
  12605. # original and so on. Autoconf is especially sensitive to this).
  12606. . "./$as_me.lineno"
  12607. # Exit status is that of the last command.
  12608. exit
  12609. }
  12610. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12611. as_dirname=dirname
  12612. else
  12613. as_dirname=false
  12614. fi
  12615. ECHO_C= ECHO_N= ECHO_T=
  12616. case `echo -n x` in
  12617. -n*)
  12618. case `echo 'x\c'` in
  12619. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12620. *) ECHO_C='\c';;
  12621. esac;;
  12622. *)
  12623. ECHO_N='-n';;
  12624. esac
  12625. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12626. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12627. as_expr=expr
  12628. else
  12629. as_expr=false
  12630. fi
  12631. rm -f conf$$ conf$$.exe conf$$.file
  12632. if test -d conf$$.dir; then
  12633. rm -f conf$$.dir/conf$$.file
  12634. else
  12635. rm -f conf$$.dir
  12636. mkdir conf$$.dir
  12637. fi
  12638. echo >conf$$.file
  12639. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12640. as_ln_s='ln -s'
  12641. # ... but there are two gotchas:
  12642. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12643. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12644. # In both cases, we have to default to `cp -p'.
  12645. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12646. as_ln_s='cp -p'
  12647. elif ln conf$$.file conf$$ 2>/dev/null; then
  12648. as_ln_s=ln
  12649. else
  12650. as_ln_s='cp -p'
  12651. fi
  12652. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12653. rmdir conf$$.dir 2>/dev/null
  12654. if mkdir -p . 2>/dev/null; then
  12655. as_mkdir_p=:
  12656. else
  12657. test -d ./-p && rmdir ./-p
  12658. as_mkdir_p=false
  12659. fi
  12660. if test -x / >/dev/null 2>&1; then
  12661. as_test_x='test -x'
  12662. else
  12663. if ls -dL / >/dev/null 2>&1; then
  12664. as_ls_L_option=L
  12665. else
  12666. as_ls_L_option=
  12667. fi
  12668. as_test_x='
  12669. eval sh -c '\''
  12670. if test -d "$1"; then
  12671. test -d "$1/.";
  12672. else
  12673. case $1 in
  12674. -*)set "./$1";;
  12675. esac;
  12676. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12677. ???[sx]*):;;*)false;;esac;fi
  12678. '\'' sh
  12679. '
  12680. fi
  12681. as_executable_p=$as_test_x
  12682. # Sed expression to map a string onto a valid CPP name.
  12683. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12684. # Sed expression to map a string onto a valid variable name.
  12685. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12686. exec 6>&1
  12687. # Save the log message, to keep $[0] and so on meaningful, and to
  12688. # report actual input values of CONFIG_FILES etc. instead of their
  12689. # values after options handling.
  12690. ac_log="
  12691. This file was extended by aria2c $as_me 0.12.0rc, which was
  12692. generated by GNU Autoconf 2.61. Invocation command line was
  12693. CONFIG_FILES = $CONFIG_FILES
  12694. CONFIG_HEADERS = $CONFIG_HEADERS
  12695. CONFIG_LINKS = $CONFIG_LINKS
  12696. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12697. $ $0 $@
  12698. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12699. "
  12700. _ACEOF
  12701. cat >>$CONFIG_STATUS <<_ACEOF
  12702. # Files that config.status was made for.
  12703. config_files="$ac_config_files"
  12704. config_headers="$ac_config_headers"
  12705. config_commands="$ac_config_commands"
  12706. _ACEOF
  12707. cat >>$CONFIG_STATUS <<\_ACEOF
  12708. ac_cs_usage="\
  12709. \`$as_me' instantiates files from templates according to the
  12710. current configuration.
  12711. Usage: $0 [OPTIONS] [FILE]...
  12712. -h, --help print this help, then exit
  12713. -V, --version print version number and configuration settings, then exit
  12714. -q, --quiet do not print progress messages
  12715. -d, --debug don't remove temporary files
  12716. --recheck update $as_me by reconfiguring in the same conditions
  12717. --file=FILE[:TEMPLATE]
  12718. instantiate the configuration file FILE
  12719. --header=FILE[:TEMPLATE]
  12720. instantiate the configuration header FILE
  12721. Configuration files:
  12722. $config_files
  12723. Configuration headers:
  12724. $config_headers
  12725. Configuration commands:
  12726. $config_commands
  12727. Report bugs to <bug-autoconf@gnu.org>."
  12728. _ACEOF
  12729. cat >>$CONFIG_STATUS <<_ACEOF
  12730. ac_cs_version="\\
  12731. aria2c config.status 0.12.0rc
  12732. configured by $0, generated by GNU Autoconf 2.61,
  12733. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12734. Copyright (C) 2006 Free Software Foundation, Inc.
  12735. This config.status script is free software; the Free Software Foundation
  12736. gives unlimited permission to copy, distribute and modify it."
  12737. ac_pwd='$ac_pwd'
  12738. srcdir='$srcdir'
  12739. INSTALL='$INSTALL'
  12740. _ACEOF
  12741. cat >>$CONFIG_STATUS <<\_ACEOF
  12742. # If no file are specified by the user, then we need to provide default
  12743. # value. By we need to know if files were specified by the user.
  12744. ac_need_defaults=:
  12745. while test $# != 0
  12746. do
  12747. case $1 in
  12748. --*=*)
  12749. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12750. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12751. ac_shift=:
  12752. ;;
  12753. *)
  12754. ac_option=$1
  12755. ac_optarg=$2
  12756. ac_shift=shift
  12757. ;;
  12758. esac
  12759. case $ac_option in
  12760. # Handling of the options.
  12761. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12762. ac_cs_recheck=: ;;
  12763. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12764. echo "$ac_cs_version"; exit ;;
  12765. --debug | --debu | --deb | --de | --d | -d )
  12766. debug=: ;;
  12767. --file | --fil | --fi | --f )
  12768. $ac_shift
  12769. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12770. ac_need_defaults=false;;
  12771. --header | --heade | --head | --hea )
  12772. $ac_shift
  12773. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12774. ac_need_defaults=false;;
  12775. --he | --h)
  12776. # Conflict between --help and --header
  12777. { echo "$as_me: error: ambiguous option: $1
  12778. Try \`$0 --help' for more information." >&2
  12779. { (exit 1); exit 1; }; };;
  12780. --help | --hel | -h )
  12781. echo "$ac_cs_usage"; exit ;;
  12782. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12783. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12784. ac_cs_silent=: ;;
  12785. # This is an error.
  12786. -*) { echo "$as_me: error: unrecognized option: $1
  12787. Try \`$0 --help' for more information." >&2
  12788. { (exit 1); exit 1; }; } ;;
  12789. *) ac_config_targets="$ac_config_targets $1"
  12790. ac_need_defaults=false ;;
  12791. esac
  12792. shift
  12793. done
  12794. ac_configure_extra_args=
  12795. if $ac_cs_silent; then
  12796. exec 6>/dev/null
  12797. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12798. fi
  12799. _ACEOF
  12800. cat >>$CONFIG_STATUS <<_ACEOF
  12801. if \$ac_cs_recheck; then
  12802. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12803. CONFIG_SHELL=$SHELL
  12804. export CONFIG_SHELL
  12805. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12806. fi
  12807. _ACEOF
  12808. cat >>$CONFIG_STATUS <<\_ACEOF
  12809. exec 5>>config.log
  12810. {
  12811. echo
  12812. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12813. ## Running $as_me. ##
  12814. _ASBOX
  12815. echo "$ac_log"
  12816. } >&5
  12817. _ACEOF
  12818. cat >>$CONFIG_STATUS <<_ACEOF
  12819. #
  12820. # INIT-COMMANDS
  12821. #
  12822. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12823. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  12824. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  12825. # from automake.
  12826. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  12827. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  12828. LINGUAS="${LINGUAS-%UNSET%}"
  12829. _ACEOF
  12830. cat >>$CONFIG_STATUS <<\_ACEOF
  12831. # Handling of arguments.
  12832. for ac_config_target in $ac_config_targets
  12833. do
  12834. case $ac_config_target in
  12835. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12836. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12837. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  12838. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12839. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12840. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  12841. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  12842. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  12843. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  12844. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12845. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12846. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12847. { (exit 1); exit 1; }; };;
  12848. esac
  12849. done
  12850. # If the user did not use the arguments to specify the items to instantiate,
  12851. # then the envvar interface is used. Set only those that are not.
  12852. # We use the long form for the default assignment because of an extremely
  12853. # bizarre bug on SunOS 4.1.3.
  12854. if $ac_need_defaults; then
  12855. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12856. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12857. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12858. fi
  12859. # Have a temporary directory for convenience. Make it in the build tree
  12860. # simply because there is no reason against having it here, and in addition,
  12861. # creating and moving files from /tmp can sometimes cause problems.
  12862. # Hook for its removal unless debugging.
  12863. # Note that there is a small window in which the directory will not be cleaned:
  12864. # after its creation but before its name has been assigned to `$tmp'.
  12865. $debug ||
  12866. {
  12867. tmp=
  12868. trap 'exit_status=$?
  12869. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12870. ' 0
  12871. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12872. }
  12873. # Create a (secure) tmp directory for tmp files.
  12874. {
  12875. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12876. test -n "$tmp" && test -d "$tmp"
  12877. } ||
  12878. {
  12879. tmp=./conf$$-$RANDOM
  12880. (umask 077 && mkdir "$tmp")
  12881. } ||
  12882. {
  12883. echo "$me: cannot create a temporary directory in ." >&2
  12884. { (exit 1); exit 1; }
  12885. }
  12886. #
  12887. # Set up the sed scripts for CONFIG_FILES section.
  12888. #
  12889. # No need to generate the scripts if there are no CONFIG_FILES.
  12890. # This happens for instance when ./config.status config.h
  12891. if test -n "$CONFIG_FILES"; then
  12892. _ACEOF
  12893. ac_delim='%!_!# '
  12894. for ac_last_try in false false false false false :; do
  12895. cat >conf$$subs.sed <<_ACEOF
  12896. SHELL!$SHELL$ac_delim
  12897. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  12898. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  12899. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  12900. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  12901. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  12902. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  12903. exec_prefix!$exec_prefix$ac_delim
  12904. prefix!$prefix$ac_delim
  12905. program_transform_name!$program_transform_name$ac_delim
  12906. bindir!$bindir$ac_delim
  12907. sbindir!$sbindir$ac_delim
  12908. libexecdir!$libexecdir$ac_delim
  12909. datarootdir!$datarootdir$ac_delim
  12910. datadir!$datadir$ac_delim
  12911. sysconfdir!$sysconfdir$ac_delim
  12912. sharedstatedir!$sharedstatedir$ac_delim
  12913. localstatedir!$localstatedir$ac_delim
  12914. includedir!$includedir$ac_delim
  12915. oldincludedir!$oldincludedir$ac_delim
  12916. docdir!$docdir$ac_delim
  12917. infodir!$infodir$ac_delim
  12918. htmldir!$htmldir$ac_delim
  12919. dvidir!$dvidir$ac_delim
  12920. pdfdir!$pdfdir$ac_delim
  12921. psdir!$psdir$ac_delim
  12922. libdir!$libdir$ac_delim
  12923. localedir!$localedir$ac_delim
  12924. mandir!$mandir$ac_delim
  12925. DEFS!$DEFS$ac_delim
  12926. ECHO_C!$ECHO_C$ac_delim
  12927. ECHO_N!$ECHO_N$ac_delim
  12928. ECHO_T!$ECHO_T$ac_delim
  12929. LIBS!$LIBS$ac_delim
  12930. build_alias!$build_alias$ac_delim
  12931. host_alias!$host_alias$ac_delim
  12932. target_alias!$target_alias$ac_delim
  12933. build!$build$ac_delim
  12934. build_cpu!$build_cpu$ac_delim
  12935. build_vendor!$build_vendor$ac_delim
  12936. build_os!$build_os$ac_delim
  12937. host!$host$ac_delim
  12938. host_cpu!$host_cpu$ac_delim
  12939. host_vendor!$host_vendor$ac_delim
  12940. host_os!$host_os$ac_delim
  12941. target!$target$ac_delim
  12942. target_cpu!$target_cpu$ac_delim
  12943. target_vendor!$target_vendor$ac_delim
  12944. target_os!$target_os$ac_delim
  12945. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  12946. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  12947. INSTALL_DATA!$INSTALL_DATA$ac_delim
  12948. CYGPATH_W!$CYGPATH_W$ac_delim
  12949. PACKAGE!$PACKAGE$ac_delim
  12950. VERSION!$VERSION$ac_delim
  12951. ACLOCAL!$ACLOCAL$ac_delim
  12952. AUTOCONF!$AUTOCONF$ac_delim
  12953. AUTOMAKE!$AUTOMAKE$ac_delim
  12954. AUTOHEADER!$AUTOHEADER$ac_delim
  12955. MAKEINFO!$MAKEINFO$ac_delim
  12956. install_sh!$install_sh$ac_delim
  12957. STRIP!$STRIP$ac_delim
  12958. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  12959. mkdir_p!$mkdir_p$ac_delim
  12960. AWK!$AWK$ac_delim
  12961. SET_MAKE!$SET_MAKE$ac_delim
  12962. am__leading_dot!$am__leading_dot$ac_delim
  12963. AMTAR!$AMTAR$ac_delim
  12964. am__tar!$am__tar$ac_delim
  12965. am__untar!$am__untar$ac_delim
  12966. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  12967. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  12968. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  12969. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  12970. CXX!$CXX$ac_delim
  12971. CXXFLAGS!$CXXFLAGS$ac_delim
  12972. LDFLAGS!$LDFLAGS$ac_delim
  12973. CPPFLAGS!$CPPFLAGS$ac_delim
  12974. ac_ct_CXX!$ac_ct_CXX$ac_delim
  12975. EXEEXT!$EXEEXT$ac_delim
  12976. OBJEXT!$OBJEXT$ac_delim
  12977. DEPDIR!$DEPDIR$ac_delim
  12978. am__include!$am__include$ac_delim
  12979. am__quote!$am__quote$ac_delim
  12980. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  12981. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  12982. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  12983. CXXDEPMODE!$CXXDEPMODE$ac_delim
  12984. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  12985. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  12986. CC!$CC$ac_delim
  12987. CFLAGS!$CFLAGS$ac_delim
  12988. ac_ct_CC!$ac_ct_CC$ac_delim
  12989. CCDEPMODE!$CCDEPMODE$ac_delim
  12990. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  12991. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  12992. RANLIB!$RANLIB$ac_delim
  12993. _ACEOF
  12994. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  12995. break
  12996. elif $ac_last_try; then
  12997. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12998. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12999. { (exit 1); exit 1; }; }
  13000. else
  13001. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13002. fi
  13003. done
  13004. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  13005. if test -n "$ac_eof"; then
  13006. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  13007. ac_eof=`expr $ac_eof + 1`
  13008. fi
  13009. cat >>$CONFIG_STATUS <<_ACEOF
  13010. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  13011. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13012. _ACEOF
  13013. sed '
  13014. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  13015. s/^/s,@/; s/!/@,|#_!!_#|/
  13016. :n
  13017. t n
  13018. s/'"$ac_delim"'$/,g/; t
  13019. s/$/\\/; p
  13020. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  13021. ' >>$CONFIG_STATUS <conf$$subs.sed
  13022. rm -f conf$$subs.sed
  13023. cat >>$CONFIG_STATUS <<_ACEOF
  13024. CEOF$ac_eof
  13025. _ACEOF
  13026. ac_delim='%!_!# '
  13027. for ac_last_try in false false false false false :; do
  13028. cat >conf$$subs.sed <<_ACEOF
  13029. YACC!$YACC$ac_delim
  13030. YFLAGS!$YFLAGS$ac_delim
  13031. XML2_CONFIG!$XML2_CONFIG$ac_delim
  13032. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  13033. XML_LIBS!$XML_LIBS$ac_delim
  13034. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  13035. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  13036. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  13037. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  13038. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  13039. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  13040. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  13041. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  13042. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  13043. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  13044. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  13045. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  13046. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  13047. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  13048. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  13049. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  13050. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  13051. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  13052. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  13053. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  13054. ALLOCA!$ALLOCA$ac_delim
  13055. CXXCPP!$CXXCPP$ac_delim
  13056. GREP!$GREP$ac_delim
  13057. EGREP!$EGREP$ac_delim
  13058. MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
  13059. USE_NLS!$USE_NLS$ac_delim
  13060. MSGFMT!$MSGFMT$ac_delim
  13061. GMSGFMT!$GMSGFMT$ac_delim
  13062. XGETTEXT!$XGETTEXT$ac_delim
  13063. MSGMERGE!$MSGMERGE$ac_delim
  13064. GLIBC21!$GLIBC21$ac_delim
  13065. LIBICONV!$LIBICONV$ac_delim
  13066. LTLIBICONV!$LTLIBICONV$ac_delim
  13067. INTLBISON!$INTLBISON$ac_delim
  13068. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  13069. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  13070. CATOBJEXT!$CATOBJEXT$ac_delim
  13071. DATADIRNAME!$DATADIRNAME$ac_delim
  13072. INSTOBJEXT!$INSTOBJEXT$ac_delim
  13073. GENCAT!$GENCAT$ac_delim
  13074. INTLOBJS!$INTLOBJS$ac_delim
  13075. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  13076. INTLLIBS!$INTLLIBS$ac_delim
  13077. LIBINTL!$LIBINTL$ac_delim
  13078. LTLIBINTL!$LTLIBINTL$ac_delim
  13079. POSUB!$POSUB$ac_delim
  13080. LIBOBJS!$LIBOBJS$ac_delim
  13081. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  13082. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  13083. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  13084. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  13085. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  13086. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  13087. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  13088. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  13089. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  13090. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  13091. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  13092. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  13093. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  13094. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  13095. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  13096. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  13097. LTLIBOBJS!$LTLIBOBJS$ac_delim
  13098. _ACEOF
  13099. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 69; then
  13100. break
  13101. elif $ac_last_try; then
  13102. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  13103. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  13104. { (exit 1); exit 1; }; }
  13105. else
  13106. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13107. fi
  13108. done
  13109. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  13110. if test -n "$ac_eof"; then
  13111. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  13112. ac_eof=`expr $ac_eof + 1`
  13113. fi
  13114. cat >>$CONFIG_STATUS <<_ACEOF
  13115. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  13116. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  13117. _ACEOF
  13118. sed '
  13119. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  13120. s/^/s,@/; s/!/@,|#_!!_#|/
  13121. :n
  13122. t n
  13123. s/'"$ac_delim"'$/,g/; t
  13124. s/$/\\/; p
  13125. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  13126. ' >>$CONFIG_STATUS <conf$$subs.sed
  13127. rm -f conf$$subs.sed
  13128. cat >>$CONFIG_STATUS <<_ACEOF
  13129. :end
  13130. s/|#_!!_#|//g
  13131. CEOF$ac_eof
  13132. _ACEOF
  13133. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13134. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13135. # trailing colons and then remove the whole line if VPATH becomes empty
  13136. # (actually we leave an empty line to preserve line numbers).
  13137. if test "x$srcdir" = x.; then
  13138. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13139. s/:*\$(srcdir):*/:/
  13140. s/:*\${srcdir}:*/:/
  13141. s/:*@srcdir@:*/:/
  13142. s/^\([^=]*=[ ]*\):*/\1/
  13143. s/:*$//
  13144. s/^[^=]*=[ ]*$//
  13145. }'
  13146. fi
  13147. cat >>$CONFIG_STATUS <<\_ACEOF
  13148. fi # test -n "$CONFIG_FILES"
  13149. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  13150. do
  13151. case $ac_tag in
  13152. :[FHLC]) ac_mode=$ac_tag; continue;;
  13153. esac
  13154. case $ac_mode$ac_tag in
  13155. :[FHL]*:*);;
  13156. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  13157. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  13158. { (exit 1); exit 1; }; };;
  13159. :[FH]-) ac_tag=-:-;;
  13160. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  13161. esac
  13162. ac_save_IFS=$IFS
  13163. IFS=:
  13164. set x $ac_tag
  13165. IFS=$ac_save_IFS
  13166. shift
  13167. ac_file=$1
  13168. shift
  13169. case $ac_mode in
  13170. :L) ac_source=$1;;
  13171. :[FH])
  13172. ac_file_inputs=
  13173. for ac_f
  13174. do
  13175. case $ac_f in
  13176. -) ac_f="$tmp/stdin";;
  13177. *) # Look for the file first in the build tree, then in the source tree
  13178. # (if the path is not absolute). The absolute path cannot be DOS-style,
  13179. # because $ac_f cannot contain `:'.
  13180. test -f "$ac_f" ||
  13181. case $ac_f in
  13182. [\\/$]*) false;;
  13183. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  13184. esac ||
  13185. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  13186. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  13187. { (exit 1); exit 1; }; };;
  13188. esac
  13189. ac_file_inputs="$ac_file_inputs $ac_f"
  13190. done
  13191. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13192. # use $as_me), people would be surprised to read:
  13193. # /* config.h. Generated by config.status. */
  13194. configure_input="Generated from "`IFS=:
  13195. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  13196. if test x"$ac_file" != x-; then
  13197. configure_input="$ac_file. $configure_input"
  13198. { echo "$as_me:$LINENO: creating $ac_file" >&5
  13199. echo "$as_me: creating $ac_file" >&6;}
  13200. fi
  13201. case $ac_tag in
  13202. *:-:* | *:-) cat >"$tmp/stdin";;
  13203. esac
  13204. ;;
  13205. esac
  13206. ac_dir=`$as_dirname -- "$ac_file" ||
  13207. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13208. X"$ac_file" : 'X\(//\)[^/]' \| \
  13209. X"$ac_file" : 'X\(//\)$' \| \
  13210. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13211. echo X"$ac_file" |
  13212. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13213. s//\1/
  13214. q
  13215. }
  13216. /^X\(\/\/\)[^/].*/{
  13217. s//\1/
  13218. q
  13219. }
  13220. /^X\(\/\/\)$/{
  13221. s//\1/
  13222. q
  13223. }
  13224. /^X\(\/\).*/{
  13225. s//\1/
  13226. q
  13227. }
  13228. s/.*/./; q'`
  13229. { as_dir="$ac_dir"
  13230. case $as_dir in #(
  13231. -*) as_dir=./$as_dir;;
  13232. esac
  13233. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13234. as_dirs=
  13235. while :; do
  13236. case $as_dir in #(
  13237. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  13238. *) as_qdir=$as_dir;;
  13239. esac
  13240. as_dirs="'$as_qdir' $as_dirs"
  13241. as_dir=`$as_dirname -- "$as_dir" ||
  13242. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13243. X"$as_dir" : 'X\(//\)[^/]' \| \
  13244. X"$as_dir" : 'X\(//\)$' \| \
  13245. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13246. echo X"$as_dir" |
  13247. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13248. s//\1/
  13249. q
  13250. }
  13251. /^X\(\/\/\)[^/].*/{
  13252. s//\1/
  13253. q
  13254. }
  13255. /^X\(\/\/\)$/{
  13256. s//\1/
  13257. q
  13258. }
  13259. /^X\(\/\).*/{
  13260. s//\1/
  13261. q
  13262. }
  13263. s/.*/./; q'`
  13264. test -d "$as_dir" && break
  13265. done
  13266. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13267. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13268. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13269. { (exit 1); exit 1; }; }; }
  13270. ac_builddir=.
  13271. case "$ac_dir" in
  13272. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13273. *)
  13274. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  13275. # A ".." for each directory in $ac_dir_suffix.
  13276. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  13277. case $ac_top_builddir_sub in
  13278. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13279. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13280. esac ;;
  13281. esac
  13282. ac_abs_top_builddir=$ac_pwd
  13283. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13284. # for backward compatibility:
  13285. ac_top_builddir=$ac_top_build_prefix
  13286. case $srcdir in
  13287. .) # We are building in place.
  13288. ac_srcdir=.
  13289. ac_top_srcdir=$ac_top_builddir_sub
  13290. ac_abs_top_srcdir=$ac_pwd ;;
  13291. [\\/]* | ?:[\\/]* ) # Absolute name.
  13292. ac_srcdir=$srcdir$ac_dir_suffix;
  13293. ac_top_srcdir=$srcdir
  13294. ac_abs_top_srcdir=$srcdir ;;
  13295. *) # Relative name.
  13296. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13297. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13298. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13299. esac
  13300. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13301. case $ac_mode in
  13302. :F)
  13303. #
  13304. # CONFIG_FILE
  13305. #
  13306. case $INSTALL in
  13307. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13308. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13309. esac
  13310. _ACEOF
  13311. cat >>$CONFIG_STATUS <<\_ACEOF
  13312. # If the template does not know about datarootdir, expand it.
  13313. # FIXME: This hack should be removed a few years after 2.60.
  13314. ac_datarootdir_hack=; ac_datarootdir_seen=
  13315. case `sed -n '/datarootdir/ {
  13316. p
  13317. q
  13318. }
  13319. /@datadir@/p
  13320. /@docdir@/p
  13321. /@infodir@/p
  13322. /@localedir@/p
  13323. /@mandir@/p
  13324. ' $ac_file_inputs` in
  13325. *datarootdir*) ac_datarootdir_seen=yes;;
  13326. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13327. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13328. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13329. _ACEOF
  13330. cat >>$CONFIG_STATUS <<_ACEOF
  13331. ac_datarootdir_hack='
  13332. s&@datadir@&$datadir&g
  13333. s&@docdir@&$docdir&g
  13334. s&@infodir@&$infodir&g
  13335. s&@localedir@&$localedir&g
  13336. s&@mandir@&$mandir&g
  13337. s&\\\${datarootdir}&$datarootdir&g' ;;
  13338. esac
  13339. _ACEOF
  13340. # Neutralize VPATH when `$srcdir' = `.'.
  13341. # Shell code in configure.ac might set extrasub.
  13342. # FIXME: do we really want to maintain this feature?
  13343. cat >>$CONFIG_STATUS <<_ACEOF
  13344. sed "$ac_vpsub
  13345. $extrasub
  13346. _ACEOF
  13347. cat >>$CONFIG_STATUS <<\_ACEOF
  13348. :t
  13349. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13350. s&@configure_input@&$configure_input&;t t
  13351. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13352. s&@srcdir@&$ac_srcdir&;t t
  13353. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13354. s&@top_srcdir@&$ac_top_srcdir&;t t
  13355. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13356. s&@builddir@&$ac_builddir&;t t
  13357. s&@abs_builddir@&$ac_abs_builddir&;t t
  13358. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13359. s&@INSTALL@&$ac_INSTALL&;t t
  13360. $ac_datarootdir_hack
  13361. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  13362. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13363. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13364. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13365. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13366. which seems to be undefined. Please make sure it is defined." >&5
  13367. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13368. which seems to be undefined. Please make sure it is defined." >&2;}
  13369. rm -f "$tmp/stdin"
  13370. case $ac_file in
  13371. -) cat "$tmp/out"; rm -f "$tmp/out";;
  13372. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  13373. esac
  13374. ;;
  13375. :H)
  13376. #
  13377. # CONFIG_HEADER
  13378. #
  13379. _ACEOF
  13380. # Transform confdefs.h into a sed script `conftest.defines', that
  13381. # substitutes the proper values into config.h.in to produce config.h.
  13382. rm -f conftest.defines conftest.tail
  13383. # First, append a space to every undef/define line, to ease matching.
  13384. echo 's/$/ /' >conftest.defines
  13385. # Then, protect against being on the right side of a sed subst, or in
  13386. # an unquoted here document, in config.status. If some macros were
  13387. # called several times there might be several #defines for the same
  13388. # symbol, which is useless. But do not sort them, since the last
  13389. # AC_DEFINE must be honored.
  13390. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13391. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  13392. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  13393. # PARAMS is the parameter list in the macro definition--in most cases, it's
  13394. # just an empty string.
  13395. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  13396. ac_dB='\\)[ (].*,\\1define\\2'
  13397. ac_dC=' '
  13398. ac_dD=' ,'
  13399. uniq confdefs.h |
  13400. sed -n '
  13401. t rset
  13402. :rset
  13403. s/^[ ]*#[ ]*define[ ][ ]*//
  13404. t ok
  13405. d
  13406. :ok
  13407. s/[\\&,]/\\&/g
  13408. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  13409. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  13410. ' >>conftest.defines
  13411. # Remove the space that was appended to ease matching.
  13412. # Then replace #undef with comments. This is necessary, for
  13413. # example, in the case of _POSIX_SOURCE, which is predefined and required
  13414. # on some systems where configure will not decide to define it.
  13415. # (The regexp can be short, since the line contains either #define or #undef.)
  13416. echo 's/ $//
  13417. s,^[ #]*u.*,/* & */,' >>conftest.defines
  13418. # Break up conftest.defines:
  13419. ac_max_sed_lines=50
  13420. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  13421. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  13422. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  13423. # et cetera.
  13424. ac_in='$ac_file_inputs'
  13425. ac_out='"$tmp/out1"'
  13426. ac_nxt='"$tmp/out2"'
  13427. while :
  13428. do
  13429. # Write a here document:
  13430. cat >>$CONFIG_STATUS <<_ACEOF
  13431. # First, check the format of the line:
  13432. cat >"\$tmp/defines.sed" <<\\CEOF
  13433. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  13434. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  13435. b
  13436. :def
  13437. _ACEOF
  13438. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  13439. echo 'CEOF
  13440. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  13441. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  13442. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  13443. grep . conftest.tail >/dev/null || break
  13444. rm -f conftest.defines
  13445. mv conftest.tail conftest.defines
  13446. done
  13447. rm -f conftest.defines conftest.tail
  13448. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  13449. cat >>$CONFIG_STATUS <<\_ACEOF
  13450. if test x"$ac_file" != x-; then
  13451. echo "/* $configure_input */" >"$tmp/config.h"
  13452. cat "$ac_result" >>"$tmp/config.h"
  13453. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  13454. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13455. echo "$as_me: $ac_file is unchanged" >&6;}
  13456. else
  13457. rm -f $ac_file
  13458. mv "$tmp/config.h" $ac_file
  13459. fi
  13460. else
  13461. echo "/* $configure_input */"
  13462. cat "$ac_result"
  13463. fi
  13464. rm -f "$tmp/out12"
  13465. # Compute $ac_file's index in $config_headers.
  13466. _am_stamp_count=1
  13467. for _am_header in $config_headers :; do
  13468. case $_am_header in
  13469. $ac_file | $ac_file:* )
  13470. break ;;
  13471. * )
  13472. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13473. esac
  13474. done
  13475. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  13476. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13477. X$ac_file : 'X\(//\)[^/]' \| \
  13478. X$ac_file : 'X\(//\)$' \| \
  13479. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  13480. echo X$ac_file |
  13481. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13482. s//\1/
  13483. q
  13484. }
  13485. /^X\(\/\/\)[^/].*/{
  13486. s//\1/
  13487. q
  13488. }
  13489. /^X\(\/\/\)$/{
  13490. s//\1/
  13491. q
  13492. }
  13493. /^X\(\/\).*/{
  13494. s//\1/
  13495. q
  13496. }
  13497. s/.*/./; q'`/stamp-h$_am_stamp_count
  13498. ;;
  13499. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  13500. echo "$as_me: executing $ac_file commands" >&6;}
  13501. ;;
  13502. esac
  13503. case $ac_file$ac_mode in
  13504. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  13505. # Strip MF so we end up with the name of the file.
  13506. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13507. # Check whether this is an Automake generated Makefile or not.
  13508. # We used to match only the files named `Makefile.in', but
  13509. # some people rename them; so instead we look at the file content.
  13510. # Grep'ing the first line is not enough: some people post-process
  13511. # each Makefile.in and add a new line on top of each file to say so.
  13512. # So let's grep whole file.
  13513. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  13514. dirpart=`$as_dirname -- "$mf" ||
  13515. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13516. X"$mf" : 'X\(//\)[^/]' \| \
  13517. X"$mf" : 'X\(//\)$' \| \
  13518. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13519. echo X"$mf" |
  13520. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13521. s//\1/
  13522. q
  13523. }
  13524. /^X\(\/\/\)[^/].*/{
  13525. s//\1/
  13526. q
  13527. }
  13528. /^X\(\/\/\)$/{
  13529. s//\1/
  13530. q
  13531. }
  13532. /^X\(\/\).*/{
  13533. s//\1/
  13534. q
  13535. }
  13536. s/.*/./; q'`
  13537. else
  13538. continue
  13539. fi
  13540. # Extract the definition of DEPDIR, am__include, and am__quote
  13541. # from the Makefile without running `make'.
  13542. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13543. test -z "$DEPDIR" && continue
  13544. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13545. test -z "am__include" && continue
  13546. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13547. # When using ansi2knr, U may be empty or an underscore; expand it
  13548. U=`sed -n 's/^U = //p' < "$mf"`
  13549. # Find all dependency output files, they are included files with
  13550. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13551. # simplest approach to changing $(DEPDIR) to its actual value in the
  13552. # expansion.
  13553. for file in `sed -n "
  13554. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13555. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13556. # Make sure the directory exists.
  13557. test -f "$dirpart/$file" && continue
  13558. fdir=`$as_dirname -- "$file" ||
  13559. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13560. X"$file" : 'X\(//\)[^/]' \| \
  13561. X"$file" : 'X\(//\)$' \| \
  13562. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13563. echo X"$file" |
  13564. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13565. s//\1/
  13566. q
  13567. }
  13568. /^X\(\/\/\)[^/].*/{
  13569. s//\1/
  13570. q
  13571. }
  13572. /^X\(\/\/\)$/{
  13573. s//\1/
  13574. q
  13575. }
  13576. /^X\(\/\).*/{
  13577. s//\1/
  13578. q
  13579. }
  13580. s/.*/./; q'`
  13581. { as_dir=$dirpart/$fdir
  13582. case $as_dir in #(
  13583. -*) as_dir=./$as_dir;;
  13584. esac
  13585. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13586. as_dirs=
  13587. while :; do
  13588. case $as_dir in #(
  13589. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  13590. *) as_qdir=$as_dir;;
  13591. esac
  13592. as_dirs="'$as_qdir' $as_dirs"
  13593. as_dir=`$as_dirname -- "$as_dir" ||
  13594. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13595. X"$as_dir" : 'X\(//\)[^/]' \| \
  13596. X"$as_dir" : 'X\(//\)$' \| \
  13597. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13598. echo X"$as_dir" |
  13599. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13600. s//\1/
  13601. q
  13602. }
  13603. /^X\(\/\/\)[^/].*/{
  13604. s//\1/
  13605. q
  13606. }
  13607. /^X\(\/\/\)$/{
  13608. s//\1/
  13609. q
  13610. }
  13611. /^X\(\/\).*/{
  13612. s//\1/
  13613. q
  13614. }
  13615. s/.*/./; q'`
  13616. test -d "$as_dir" && break
  13617. done
  13618. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13619. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13620. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13621. { (exit 1); exit 1; }; }; }
  13622. # echo "creating $dirpart/$file"
  13623. echo '# dummy' > "$dirpart/$file"
  13624. done
  13625. done
  13626. ;;
  13627. "default-1":C)
  13628. for ac_file in $CONFIG_FILES; do
  13629. # Support "outfile[:infile[:infile...]]"
  13630. case "$ac_file" in
  13631. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  13632. esac
  13633. # PO directories have a Makefile.in generated from Makefile.in.in.
  13634. case "$ac_file" in */Makefile.in)
  13635. # Adjust a relative srcdir.
  13636. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  13637. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  13638. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  13639. # In autoconf-2.13 it is called $ac_given_srcdir.
  13640. # In autoconf-2.50 it is called $srcdir.
  13641. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  13642. case "$ac_given_srcdir" in
  13643. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  13644. /*) top_srcdir="$ac_given_srcdir" ;;
  13645. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  13646. esac
  13647. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  13648. rm -f "$ac_dir/POTFILES"
  13649. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  13650. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  13651. POMAKEFILEDEPS="POTFILES.in"
  13652. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  13653. # on $ac_dir but don't depend on user-specified configuration
  13654. # parameters.
  13655. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  13656. # The LINGUAS file contains the set of available languages.
  13657. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  13658. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  13659. fi
  13660. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  13661. # Hide the ALL_LINGUAS assigment from automake.
  13662. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  13663. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  13664. else
  13665. # The set of available languages was given in configure.in.
  13666. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  13667. fi
  13668. case "$ac_given_srcdir" in
  13669. .) srcdirpre= ;;
  13670. *) srcdirpre='$(srcdir)/' ;;
  13671. esac
  13672. POFILES=
  13673. GMOFILES=
  13674. UPDATEPOFILES=
  13675. DUMMYPOFILES=
  13676. for lang in $ALL_LINGUAS; do
  13677. POFILES="$POFILES $srcdirpre$lang.po"
  13678. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  13679. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  13680. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  13681. done
  13682. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  13683. # environment variable.
  13684. INST_LINGUAS=
  13685. if test -n "$ALL_LINGUAS"; then
  13686. for presentlang in $ALL_LINGUAS; do
  13687. useit=no
  13688. if test "%UNSET%" != "$LINGUAS"; then
  13689. desiredlanguages="$LINGUAS"
  13690. else
  13691. desiredlanguages="$ALL_LINGUAS"
  13692. fi
  13693. for desiredlang in $desiredlanguages; do
  13694. # Use the presentlang catalog if desiredlang is
  13695. # a. equal to presentlang, or
  13696. # b. a variant of presentlang (because in this case,
  13697. # presentlang can be used as a fallback for messages
  13698. # which are not translated in the desiredlang catalog).
  13699. case "$desiredlang" in
  13700. "$presentlang"*) useit=yes;;
  13701. esac
  13702. done
  13703. if test $useit = yes; then
  13704. INST_LINGUAS="$INST_LINGUAS $presentlang"
  13705. fi
  13706. done
  13707. fi
  13708. CATALOGS=
  13709. if test -n "$INST_LINGUAS"; then
  13710. for lang in $INST_LINGUAS; do
  13711. CATALOGS="$CATALOGS $lang.gmo"
  13712. done
  13713. fi
  13714. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  13715. 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"
  13716. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  13717. if test -f "$f"; then
  13718. case "$f" in
  13719. *.orig | *.bak | *~) ;;
  13720. *) cat "$f" >> "$ac_dir/Makefile" ;;
  13721. esac
  13722. fi
  13723. done
  13724. fi
  13725. ;;
  13726. esac
  13727. done ;;
  13728. esac
  13729. done # for ac_tag
  13730. { (exit 0); exit 0; }
  13731. _ACEOF
  13732. chmod +x $CONFIG_STATUS
  13733. ac_clean_files=$ac_clean_files_save
  13734. # configure is writing to config.log, and then calls config.status.
  13735. # config.status does its own redirection, appending to config.log.
  13736. # Unfortunately, on DOS this fails, as config.log is still kept open
  13737. # by configure, so config.status won't be able to write to it; its
  13738. # output is simply discarded. So we exec the FD to /dev/null,
  13739. # effectively closing config.log, so it can be properly (re)opened and
  13740. # appended to by config.status. When coming back to configure, we
  13741. # need to make the FD available again.
  13742. if test "$no_create" != yes; then
  13743. ac_cs_success=:
  13744. ac_config_status_args=
  13745. test "$silent" = yes &&
  13746. ac_config_status_args="$ac_config_status_args --quiet"
  13747. exec 5>/dev/null
  13748. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13749. exec 5>>config.log
  13750. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13751. # would make configure fail if this is the last instruction.
  13752. $ac_cs_success || { (exit 1); exit 1; }
  13753. fi
  13754. echo " "
  13755. echo "Build: $build"
  13756. echo "Target: $target"
  13757. echo "Install prefix: $prefix"
  13758. echo "CFLAGS: $CFLAGS"
  13759. echo "CPPFLAGS: $CPPFLAGS"
  13760. echo "LDFLAGS: $LDFLAGS"
  13761. echo "LIBS: $LIBS"
  13762. echo "GnuTLS: $have_libgnutls"
  13763. echo "OpenSSL: $have_openssl"
  13764. echo "LibXML2: $have_libxml2"
  13765. echo "LibAres: $have_libares"
  13766. echo "LibCares: $have_libcares"
  13767. echo "Bittorrent: $enable_bittorrent"
  13768. echo "Metalink: $enable_metalink"