configure 435 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.11.1+1.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.11.1+1'
  496. PACKAGE_STRING='aria2c 0.11.1+1'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. ac_subst_vars='SHELL
  535. PATH_SEPARATOR
  536. PACKAGE_NAME
  537. PACKAGE_TARNAME
  538. PACKAGE_VERSION
  539. PACKAGE_STRING
  540. PACKAGE_BUGREPORT
  541. exec_prefix
  542. prefix
  543. program_transform_name
  544. bindir
  545. sbindir
  546. libexecdir
  547. datarootdir
  548. datadir
  549. sysconfdir
  550. sharedstatedir
  551. localstatedir
  552. includedir
  553. oldincludedir
  554. docdir
  555. infodir
  556. htmldir
  557. dvidir
  558. pdfdir
  559. psdir
  560. libdir
  561. localedir
  562. mandir
  563. DEFS
  564. ECHO_C
  565. ECHO_N
  566. ECHO_T
  567. LIBS
  568. build_alias
  569. host_alias
  570. target_alias
  571. build
  572. build_cpu
  573. build_vendor
  574. build_os
  575. host
  576. host_cpu
  577. host_vendor
  578. host_os
  579. target
  580. target_cpu
  581. target_vendor
  582. target_os
  583. INSTALL_PROGRAM
  584. INSTALL_SCRIPT
  585. INSTALL_DATA
  586. CYGPATH_W
  587. PACKAGE
  588. VERSION
  589. ACLOCAL
  590. AUTOCONF
  591. AUTOMAKE
  592. AUTOHEADER
  593. MAKEINFO
  594. install_sh
  595. STRIP
  596. INSTALL_STRIP_PROGRAM
  597. mkdir_p
  598. AWK
  599. SET_MAKE
  600. am__leading_dot
  601. AMTAR
  602. am__tar
  603. am__untar
  604. CPPUNIT_CONFIG
  605. CPPUNIT_CFLAGS
  606. CPPUNIT_LIBS
  607. WINSOCK_LIBS
  608. CXX
  609. CXXFLAGS
  610. LDFLAGS
  611. CPPFLAGS
  612. ac_ct_CXX
  613. EXEEXT
  614. OBJEXT
  615. DEPDIR
  616. am__include
  617. am__quote
  618. AMDEP_TRUE
  619. AMDEP_FALSE
  620. AMDEPBACKSLASH
  621. CXXDEPMODE
  622. am__fastdepCXX_TRUE
  623. am__fastdepCXX_FALSE
  624. CC
  625. CFLAGS
  626. ac_ct_CC
  627. CCDEPMODE
  628. am__fastdepCC_TRUE
  629. am__fastdepCC_FALSE
  630. RANLIB
  631. YACC
  632. YFLAGS
  633. XML2_CONFIG
  634. XML_CPPFLAGS
  635. XML_LIBS
  636. LIBGNUTLS_CONFIG
  637. LIBGNUTLS_CFLAGS
  638. LIBGNUTLS_LIBS
  639. LIBGCRYPT_CONFIG
  640. LIBGCRYPT_CFLAGS
  641. LIBGCRYPT_LIBS
  642. OPENSSL_LIBS
  643. OPENSSL_CFLAGS
  644. LIBCARES_LIBS
  645. LIBCARES_CPPFLAGS
  646. LIBARES_LIBS
  647. LIBARES_CPPFLAGS
  648. ENABLE_MESSAGE_DIGEST_TRUE
  649. ENABLE_MESSAGE_DIGEST_FALSE
  650. ENABLE_BITTORRENT_TRUE
  651. ENABLE_BITTORRENT_FALSE
  652. ENABLE_METALINK_TRUE
  653. ENABLE_METALINK_FALSE
  654. ENABLE_ASYNC_DNS_TRUE
  655. ENABLE_ASYNC_DNS_FALSE
  656. ALLOCA
  657. CPP
  658. GREP
  659. EGREP
  660. MKINSTALLDIRS
  661. USE_NLS
  662. MSGFMT
  663. GMSGFMT
  664. XGETTEXT
  665. MSGMERGE
  666. GLIBC21
  667. LIBICONV
  668. LTLIBICONV
  669. INTLBISON
  670. BUILD_INCLUDED_LIBINTL
  671. USE_INCLUDED_LIBINTL
  672. CATOBJEXT
  673. DATADIRNAME
  674. INSTOBJEXT
  675. GENCAT
  676. INTLOBJS
  677. INTL_LIBTOOL_SUFFIX_PREFIX
  678. INTLLIBS
  679. LIBINTL
  680. LTLIBINTL
  681. POSUB
  682. LIBOBJS
  683. HAVE_BASENAME_TRUE
  684. HAVE_BASENAME_FALSE
  685. HAVE_GAI_STRERROR_TRUE
  686. HAVE_GAI_STRERROR_FALSE
  687. HAVE_GETADDRINFO_TRUE
  688. HAVE_GETADDRINFO_FALSE
  689. HAVE_GETTIMEOFDAY_TRUE
  690. HAVE_GETTIMEOFDAY_FALSE
  691. HAVE_INET_ATON_TRUE
  692. HAVE_INET_ATON_FALSE
  693. HAVE_LOCALTIME_R_TRUE
  694. HAVE_LOCALTIME_R_FALSE
  695. HAVE_STRPTIME_TRUE
  696. HAVE_STRPTIME_FALSE
  697. LTLIBOBJS'
  698. ac_subst_files=''
  699. ac_precious_vars='build_alias
  700. host_alias
  701. target_alias
  702. CXX
  703. CXXFLAGS
  704. LDFLAGS
  705. LIBS
  706. CPPFLAGS
  707. CCC
  708. CC
  709. CFLAGS
  710. YACC
  711. YFLAGS
  712. CPP'
  713. # Initialize some variables set by options.
  714. ac_init_help=
  715. ac_init_version=false
  716. # The variables have the same names as the options, with
  717. # dashes changed to underlines.
  718. cache_file=/dev/null
  719. exec_prefix=NONE
  720. no_create=
  721. no_recursion=
  722. prefix=NONE
  723. program_prefix=NONE
  724. program_suffix=NONE
  725. program_transform_name=s,x,x,
  726. silent=
  727. site=
  728. srcdir=
  729. verbose=
  730. x_includes=NONE
  731. x_libraries=NONE
  732. # Installation directory options.
  733. # These are left unexpanded so users can "make install exec_prefix=/foo"
  734. # and all the variables that are supposed to be based on exec_prefix
  735. # by default will actually change.
  736. # Use braces instead of parens because sh, perl, etc. also accept them.
  737. # (The list follows the same order as the GNU Coding Standards.)
  738. bindir='${exec_prefix}/bin'
  739. sbindir='${exec_prefix}/sbin'
  740. libexecdir='${exec_prefix}/libexec'
  741. datarootdir='${prefix}/share'
  742. datadir='${datarootdir}'
  743. sysconfdir='${prefix}/etc'
  744. sharedstatedir='${prefix}/com'
  745. localstatedir='${prefix}/var'
  746. includedir='${prefix}/include'
  747. oldincludedir='/usr/include'
  748. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  749. infodir='${datarootdir}/info'
  750. htmldir='${docdir}'
  751. dvidir='${docdir}'
  752. pdfdir='${docdir}'
  753. psdir='${docdir}'
  754. libdir='${exec_prefix}/lib'
  755. localedir='${datarootdir}/locale'
  756. mandir='${datarootdir}/man'
  757. ac_prev=
  758. ac_dashdash=
  759. for ac_option
  760. do
  761. # If the previous option needs an argument, assign it.
  762. if test -n "$ac_prev"; then
  763. eval $ac_prev=\$ac_option
  764. ac_prev=
  765. continue
  766. fi
  767. case $ac_option in
  768. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  769. *) ac_optarg=yes ;;
  770. esac
  771. # Accept the important Cygnus configure options, so we can diagnose typos.
  772. case $ac_dashdash$ac_option in
  773. --)
  774. ac_dashdash=yes ;;
  775. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  776. ac_prev=bindir ;;
  777. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  778. bindir=$ac_optarg ;;
  779. -build | --build | --buil | --bui | --bu)
  780. ac_prev=build_alias ;;
  781. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  782. build_alias=$ac_optarg ;;
  783. -cache-file | --cache-file | --cache-fil | --cache-fi \
  784. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  785. ac_prev=cache_file ;;
  786. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  787. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  788. cache_file=$ac_optarg ;;
  789. --config-cache | -C)
  790. cache_file=config.cache ;;
  791. -datadir | --datadir | --datadi | --datad)
  792. ac_prev=datadir ;;
  793. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  794. datadir=$ac_optarg ;;
  795. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  796. | --dataroo | --dataro | --datar)
  797. ac_prev=datarootdir ;;
  798. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  799. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  800. datarootdir=$ac_optarg ;;
  801. -disable-* | --disable-*)
  802. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  803. # Reject names that are not valid shell variable names.
  804. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  805. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  806. { (exit 1); exit 1; }; }
  807. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  808. eval enable_$ac_feature=no ;;
  809. -docdir | --docdir | --docdi | --doc | --do)
  810. ac_prev=docdir ;;
  811. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  812. docdir=$ac_optarg ;;
  813. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  814. ac_prev=dvidir ;;
  815. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  816. dvidir=$ac_optarg ;;
  817. -enable-* | --enable-*)
  818. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  819. # Reject names that are not valid shell variable names.
  820. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  821. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  822. { (exit 1); exit 1; }; }
  823. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  824. eval enable_$ac_feature=\$ac_optarg ;;
  825. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  826. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  827. | --exec | --exe | --ex)
  828. ac_prev=exec_prefix ;;
  829. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  830. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  831. | --exec=* | --exe=* | --ex=*)
  832. exec_prefix=$ac_optarg ;;
  833. -gas | --gas | --ga | --g)
  834. # Obsolete; use --with-gas.
  835. with_gas=yes ;;
  836. -help | --help | --hel | --he | -h)
  837. ac_init_help=long ;;
  838. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  839. ac_init_help=recursive ;;
  840. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  841. ac_init_help=short ;;
  842. -host | --host | --hos | --ho)
  843. ac_prev=host_alias ;;
  844. -host=* | --host=* | --hos=* | --ho=*)
  845. host_alias=$ac_optarg ;;
  846. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  847. ac_prev=htmldir ;;
  848. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  849. | --ht=*)
  850. htmldir=$ac_optarg ;;
  851. -includedir | --includedir | --includedi | --included | --include \
  852. | --includ | --inclu | --incl | --inc)
  853. ac_prev=includedir ;;
  854. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  855. | --includ=* | --inclu=* | --incl=* | --inc=*)
  856. includedir=$ac_optarg ;;
  857. -infodir | --infodir | --infodi | --infod | --info | --inf)
  858. ac_prev=infodir ;;
  859. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  860. infodir=$ac_optarg ;;
  861. -libdir | --libdir | --libdi | --libd)
  862. ac_prev=libdir ;;
  863. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  864. libdir=$ac_optarg ;;
  865. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  866. | --libexe | --libex | --libe)
  867. ac_prev=libexecdir ;;
  868. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  869. | --libexe=* | --libex=* | --libe=*)
  870. libexecdir=$ac_optarg ;;
  871. -localedir | --localedir | --localedi | --localed | --locale)
  872. ac_prev=localedir ;;
  873. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  874. localedir=$ac_optarg ;;
  875. -localstatedir | --localstatedir | --localstatedi | --localstated \
  876. | --localstate | --localstat | --localsta | --localst | --locals)
  877. ac_prev=localstatedir ;;
  878. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  879. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  880. localstatedir=$ac_optarg ;;
  881. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  882. ac_prev=mandir ;;
  883. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  884. mandir=$ac_optarg ;;
  885. -nfp | --nfp | --nf)
  886. # Obsolete; use --without-fp.
  887. with_fp=no ;;
  888. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  889. | --no-cr | --no-c | -n)
  890. no_create=yes ;;
  891. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  892. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  893. no_recursion=yes ;;
  894. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  895. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  896. | --oldin | --oldi | --old | --ol | --o)
  897. ac_prev=oldincludedir ;;
  898. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  899. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  900. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  901. oldincludedir=$ac_optarg ;;
  902. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  903. ac_prev=prefix ;;
  904. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  905. prefix=$ac_optarg ;;
  906. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  907. | --program-pre | --program-pr | --program-p)
  908. ac_prev=program_prefix ;;
  909. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  910. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  911. program_prefix=$ac_optarg ;;
  912. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  913. | --program-suf | --program-su | --program-s)
  914. ac_prev=program_suffix ;;
  915. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  916. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  917. program_suffix=$ac_optarg ;;
  918. -program-transform-name | --program-transform-name \
  919. | --program-transform-nam | --program-transform-na \
  920. | --program-transform-n | --program-transform- \
  921. | --program-transform | --program-transfor \
  922. | --program-transfo | --program-transf \
  923. | --program-trans | --program-tran \
  924. | --progr-tra | --program-tr | --program-t)
  925. ac_prev=program_transform_name ;;
  926. -program-transform-name=* | --program-transform-name=* \
  927. | --program-transform-nam=* | --program-transform-na=* \
  928. | --program-transform-n=* | --program-transform-=* \
  929. | --program-transform=* | --program-transfor=* \
  930. | --program-transfo=* | --program-transf=* \
  931. | --program-trans=* | --program-tran=* \
  932. | --progr-tra=* | --program-tr=* | --program-t=*)
  933. program_transform_name=$ac_optarg ;;
  934. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  935. ac_prev=pdfdir ;;
  936. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  937. pdfdir=$ac_optarg ;;
  938. -psdir | --psdir | --psdi | --psd | --ps)
  939. ac_prev=psdir ;;
  940. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  941. psdir=$ac_optarg ;;
  942. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  943. | -silent | --silent | --silen | --sile | --sil)
  944. silent=yes ;;
  945. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  946. ac_prev=sbindir ;;
  947. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  948. | --sbi=* | --sb=*)
  949. sbindir=$ac_optarg ;;
  950. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  951. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  952. | --sharedst | --shareds | --shared | --share | --shar \
  953. | --sha | --sh)
  954. ac_prev=sharedstatedir ;;
  955. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  956. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  957. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  958. | --sha=* | --sh=*)
  959. sharedstatedir=$ac_optarg ;;
  960. -site | --site | --sit)
  961. ac_prev=site ;;
  962. -site=* | --site=* | --sit=*)
  963. site=$ac_optarg ;;
  964. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  965. ac_prev=srcdir ;;
  966. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  967. srcdir=$ac_optarg ;;
  968. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  969. | --syscon | --sysco | --sysc | --sys | --sy)
  970. ac_prev=sysconfdir ;;
  971. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  972. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  973. sysconfdir=$ac_optarg ;;
  974. -target | --target | --targe | --targ | --tar | --ta | --t)
  975. ac_prev=target_alias ;;
  976. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  977. target_alias=$ac_optarg ;;
  978. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  979. verbose=yes ;;
  980. -version | --version | --versio | --versi | --vers | -V)
  981. ac_init_version=: ;;
  982. -with-* | --with-*)
  983. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  984. # Reject names that are not valid shell variable names.
  985. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  986. { echo "$as_me: error: invalid package name: $ac_package" >&2
  987. { (exit 1); exit 1; }; }
  988. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  989. eval with_$ac_package=\$ac_optarg ;;
  990. -without-* | --without-*)
  991. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  992. # Reject names that are not valid shell variable names.
  993. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  994. { echo "$as_me: error: invalid package name: $ac_package" >&2
  995. { (exit 1); exit 1; }; }
  996. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  997. eval with_$ac_package=no ;;
  998. --x)
  999. # Obsolete; use --with-x.
  1000. with_x=yes ;;
  1001. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1002. | --x-incl | --x-inc | --x-in | --x-i)
  1003. ac_prev=x_includes ;;
  1004. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1005. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1006. x_includes=$ac_optarg ;;
  1007. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1008. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1009. ac_prev=x_libraries ;;
  1010. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1011. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1012. x_libraries=$ac_optarg ;;
  1013. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1014. Try \`$0 --help' for more information." >&2
  1015. { (exit 1); exit 1; }; }
  1016. ;;
  1017. *=*)
  1018. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1019. # Reject names that are not valid shell variable names.
  1020. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1021. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1022. { (exit 1); exit 1; }; }
  1023. eval $ac_envvar=\$ac_optarg
  1024. export $ac_envvar ;;
  1025. *)
  1026. # FIXME: should be removed in autoconf 3.0.
  1027. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1028. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1029. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1030. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1031. ;;
  1032. esac
  1033. done
  1034. if test -n "$ac_prev"; then
  1035. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1036. { echo "$as_me: error: missing argument to $ac_option" >&2
  1037. { (exit 1); exit 1; }; }
  1038. fi
  1039. # Be sure to have absolute directory names.
  1040. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1041. datadir sysconfdir sharedstatedir localstatedir includedir \
  1042. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1043. libdir localedir mandir
  1044. do
  1045. eval ac_val=\$$ac_var
  1046. case $ac_val in
  1047. [\\/$]* | ?:[\\/]* ) continue;;
  1048. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1049. esac
  1050. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1051. { (exit 1); exit 1; }; }
  1052. done
  1053. # There might be people who depend on the old broken behavior: `$host'
  1054. # used to hold the argument of --host etc.
  1055. # FIXME: To remove some day.
  1056. build=$build_alias
  1057. host=$host_alias
  1058. target=$target_alias
  1059. # FIXME: To remove some day.
  1060. if test "x$host_alias" != x; then
  1061. if test "x$build_alias" = x; then
  1062. cross_compiling=maybe
  1063. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1064. If a cross compiler is detected then cross compile mode will be used." >&2
  1065. elif test "x$build_alias" != "x$host_alias"; then
  1066. cross_compiling=yes
  1067. fi
  1068. fi
  1069. ac_tool_prefix=
  1070. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1071. test "$silent" = yes && exec 6>/dev/null
  1072. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1073. ac_ls_di=`ls -di .` &&
  1074. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1075. { echo "$as_me: error: Working directory cannot be determined" >&2
  1076. { (exit 1); exit 1; }; }
  1077. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1078. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1079. { (exit 1); exit 1; }; }
  1080. # Find the source files, if location was not specified.
  1081. if test -z "$srcdir"; then
  1082. ac_srcdir_defaulted=yes
  1083. # Try the directory containing this script, then the parent directory.
  1084. ac_confdir=`$as_dirname -- "$0" ||
  1085. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1086. X"$0" : 'X\(//\)[^/]' \| \
  1087. X"$0" : 'X\(//\)$' \| \
  1088. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1089. echo X"$0" |
  1090. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1091. s//\1/
  1092. q
  1093. }
  1094. /^X\(\/\/\)[^/].*/{
  1095. s//\1/
  1096. q
  1097. }
  1098. /^X\(\/\/\)$/{
  1099. s//\1/
  1100. q
  1101. }
  1102. /^X\(\/\).*/{
  1103. s//\1/
  1104. q
  1105. }
  1106. s/.*/./; q'`
  1107. srcdir=$ac_confdir
  1108. if test ! -r "$srcdir/$ac_unique_file"; then
  1109. srcdir=..
  1110. fi
  1111. else
  1112. ac_srcdir_defaulted=no
  1113. fi
  1114. if test ! -r "$srcdir/$ac_unique_file"; then
  1115. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1116. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1117. { (exit 1); exit 1; }; }
  1118. fi
  1119. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1120. ac_abs_confdir=`(
  1121. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1122. { (exit 1); exit 1; }; }
  1123. pwd)`
  1124. # When building in place, set srcdir=.
  1125. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1126. srcdir=.
  1127. fi
  1128. # Remove unnecessary trailing slashes from srcdir.
  1129. # Double slashes in file names in object file debugging info
  1130. # mess up M-x gdb in Emacs.
  1131. case $srcdir in
  1132. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1133. esac
  1134. for ac_var in $ac_precious_vars; do
  1135. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1136. eval ac_env_${ac_var}_value=\$${ac_var}
  1137. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1138. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1139. done
  1140. #
  1141. # Report the --help message.
  1142. #
  1143. if test "$ac_init_help" = "long"; then
  1144. # Omit some internal or obsolete options to make the list less imposing.
  1145. # This message is too long to be a string in the A/UX 3.1 sh.
  1146. cat <<_ACEOF
  1147. \`configure' configures aria2c 0.11.1+1 to adapt to many kinds of systems.
  1148. Usage: $0 [OPTION]... [VAR=VALUE]...
  1149. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1150. VAR=VALUE. See below for descriptions of some of the useful variables.
  1151. Defaults for the options are specified in brackets.
  1152. Configuration:
  1153. -h, --help display this help and exit
  1154. --help=short display options specific to this package
  1155. --help=recursive display the short help of all the included packages
  1156. -V, --version display version information and exit
  1157. -q, --quiet, --silent do not print \`checking...' messages
  1158. --cache-file=FILE cache test results in FILE [disabled]
  1159. -C, --config-cache alias for \`--cache-file=config.cache'
  1160. -n, --no-create do not create output files
  1161. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1162. Installation directories:
  1163. --prefix=PREFIX install architecture-independent files in PREFIX
  1164. [$ac_default_prefix]
  1165. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1166. [PREFIX]
  1167. By default, \`make install' will install all the files in
  1168. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1169. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1170. for instance \`--prefix=\$HOME'.
  1171. For better control, use the options below.
  1172. Fine tuning of the installation directories:
  1173. --bindir=DIR user executables [EPREFIX/bin]
  1174. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1175. --libexecdir=DIR program executables [EPREFIX/libexec]
  1176. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1177. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1178. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1179. --libdir=DIR object code libraries [EPREFIX/lib]
  1180. --includedir=DIR C header files [PREFIX/include]
  1181. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1182. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1183. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1184. --infodir=DIR info documentation [DATAROOTDIR/info]
  1185. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1186. --mandir=DIR man documentation [DATAROOTDIR/man]
  1187. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1188. --htmldir=DIR html documentation [DOCDIR]
  1189. --dvidir=DIR dvi documentation [DOCDIR]
  1190. --pdfdir=DIR pdf documentation [DOCDIR]
  1191. --psdir=DIR ps documentation [DOCDIR]
  1192. _ACEOF
  1193. cat <<\_ACEOF
  1194. Program names:
  1195. --program-prefix=PREFIX prepend PREFIX to installed program names
  1196. --program-suffix=SUFFIX append SUFFIX to installed program names
  1197. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1198. System types:
  1199. --build=BUILD configure for building on BUILD [guessed]
  1200. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1201. --target=TARGET configure for building compilers for TARGET [HOST]
  1202. _ACEOF
  1203. fi
  1204. if test -n "$ac_init_help"; then
  1205. case $ac_init_help in
  1206. short | recursive ) echo "Configuration of aria2c 0.11.1+1:";;
  1207. esac
  1208. cat <<\_ACEOF
  1209. Optional Features:
  1210. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1211. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1212. --enable-bittorrent enable BitTorrent support. Default: yes
  1213. --enable-metalink enable Metalink support. Default: yes
  1214. --disable-dependency-tracking speeds up one-time build
  1215. --enable-dependency-tracking do not reject slow dependency extractors
  1216. --disable-xmltest Do not try to compile and run a test LIBXML program
  1217. --disable-nls do not use Native Language Support
  1218. --disable-rpath do not hardcode runtime library paths
  1219. Optional Packages:
  1220. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1221. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1222. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1223. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1224. --with-gnutls use gnutls library if installed. Default: yes
  1225. --with-openssl use openssl library if installed. Default: yes
  1226. --with-libxml2 use libxml2 library if installed. Default: yes
  1227. --with-libares use ares library if installed. Default: yes
  1228. --with-libcares use c-ares library if installed. Default: yes
  1229. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1230. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1231. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1232. --with-libgcrypt-prefix=PFX
  1233. prefix where LIBGCRYPT is installed (optional)
  1234. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1235. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1236. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1237. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1238. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1239. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1240. --with-included-gettext use the GNU gettext library included here
  1241. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1242. --without-libintl-prefix don't search for libintl in includedir and libdir
  1243. Some influential environment variables:
  1244. CXX C++ compiler command
  1245. CXXFLAGS C++ compiler flags
  1246. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1247. nonstandard directory <lib dir>
  1248. LIBS libraries to pass to the linker, e.g. -l<library>
  1249. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1250. you have headers in a nonstandard directory <include dir>
  1251. CC C compiler command
  1252. CFLAGS C compiler flags
  1253. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1254. the first program found out of: `bison -y', `byacc', `yacc'.
  1255. YFLAGS The list of arguments that will be passed by default to $YACC.
  1256. This script will default YFLAGS to the empty string to avoid a
  1257. default value of `-d' given by some make applications.
  1258. CPP C preprocessor
  1259. Use these variables to override the choices made by `configure' or to help
  1260. it to find libraries and programs with nonstandard names/locations.
  1261. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1262. _ACEOF
  1263. ac_status=$?
  1264. fi
  1265. if test "$ac_init_help" = "recursive"; then
  1266. # If there are subdirs, report their specific --help.
  1267. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1268. test -d "$ac_dir" || continue
  1269. ac_builddir=.
  1270. case "$ac_dir" in
  1271. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1272. *)
  1273. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1274. # A ".." for each directory in $ac_dir_suffix.
  1275. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1276. case $ac_top_builddir_sub in
  1277. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1278. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1279. esac ;;
  1280. esac
  1281. ac_abs_top_builddir=$ac_pwd
  1282. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1283. # for backward compatibility:
  1284. ac_top_builddir=$ac_top_build_prefix
  1285. case $srcdir in
  1286. .) # We are building in place.
  1287. ac_srcdir=.
  1288. ac_top_srcdir=$ac_top_builddir_sub
  1289. ac_abs_top_srcdir=$ac_pwd ;;
  1290. [\\/]* | ?:[\\/]* ) # Absolute name.
  1291. ac_srcdir=$srcdir$ac_dir_suffix;
  1292. ac_top_srcdir=$srcdir
  1293. ac_abs_top_srcdir=$srcdir ;;
  1294. *) # Relative name.
  1295. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1296. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1297. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1298. esac
  1299. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1300. cd "$ac_dir" || { ac_status=$?; continue; }
  1301. # Check for guested configure.
  1302. if test -f "$ac_srcdir/configure.gnu"; then
  1303. echo &&
  1304. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1305. elif test -f "$ac_srcdir/configure"; then
  1306. echo &&
  1307. $SHELL "$ac_srcdir/configure" --help=recursive
  1308. else
  1309. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1310. fi || ac_status=$?
  1311. cd "$ac_pwd" || { ac_status=$?; break; }
  1312. done
  1313. fi
  1314. test -n "$ac_init_help" && exit $ac_status
  1315. if $ac_init_version; then
  1316. cat <<\_ACEOF
  1317. aria2c configure 0.11.1+1
  1318. generated by GNU Autoconf 2.61
  1319. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1320. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1321. This configure script is free software; the Free Software Foundation
  1322. gives unlimited permission to copy, distribute and modify it.
  1323. _ACEOF
  1324. exit
  1325. fi
  1326. cat >config.log <<_ACEOF
  1327. This file contains any messages produced by compilers while
  1328. running configure, to aid debugging if configure makes a mistake.
  1329. It was created by aria2c $as_me 0.11.1+1, which was
  1330. generated by GNU Autoconf 2.61. Invocation command line was
  1331. $ $0 $@
  1332. _ACEOF
  1333. exec 5>>config.log
  1334. {
  1335. cat <<_ASUNAME
  1336. ## --------- ##
  1337. ## Platform. ##
  1338. ## --------- ##
  1339. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1340. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1341. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1342. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1343. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1344. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1345. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1346. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1347. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1348. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1349. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1350. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1351. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1352. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1353. _ASUNAME
  1354. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1355. for as_dir in $PATH
  1356. do
  1357. IFS=$as_save_IFS
  1358. test -z "$as_dir" && as_dir=.
  1359. echo "PATH: $as_dir"
  1360. done
  1361. IFS=$as_save_IFS
  1362. } >&5
  1363. cat >&5 <<_ACEOF
  1364. ## ----------- ##
  1365. ## Core tests. ##
  1366. ## ----------- ##
  1367. _ACEOF
  1368. # Keep a trace of the command line.
  1369. # Strip out --no-create and --no-recursion so they do not pile up.
  1370. # Strip out --silent because we don't want to record it for future runs.
  1371. # Also quote any args containing shell meta-characters.
  1372. # Make two passes to allow for proper duplicate-argument suppression.
  1373. ac_configure_args=
  1374. ac_configure_args0=
  1375. ac_configure_args1=
  1376. ac_must_keep_next=false
  1377. for ac_pass in 1 2
  1378. do
  1379. for ac_arg
  1380. do
  1381. case $ac_arg in
  1382. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1383. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1384. | -silent | --silent | --silen | --sile | --sil)
  1385. continue ;;
  1386. *\'*)
  1387. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1388. esac
  1389. case $ac_pass in
  1390. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1391. 2)
  1392. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1393. if test $ac_must_keep_next = true; then
  1394. ac_must_keep_next=false # Got value, back to normal.
  1395. else
  1396. case $ac_arg in
  1397. *=* | --config-cache | -C | -disable-* | --disable-* \
  1398. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1399. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1400. | -with-* | --with-* | -without-* | --without-* | --x)
  1401. case "$ac_configure_args0 " in
  1402. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1403. esac
  1404. ;;
  1405. -* ) ac_must_keep_next=true ;;
  1406. esac
  1407. fi
  1408. ac_configure_args="$ac_configure_args '$ac_arg'"
  1409. ;;
  1410. esac
  1411. done
  1412. done
  1413. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1414. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1415. # When interrupted or exit'd, cleanup temporary files, and complete
  1416. # config.log. We remove comments because anyway the quotes in there
  1417. # would cause problems or look ugly.
  1418. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1419. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1420. trap 'exit_status=$?
  1421. # Save into config.log some information that might help in debugging.
  1422. {
  1423. echo
  1424. cat <<\_ASBOX
  1425. ## ---------------- ##
  1426. ## Cache variables. ##
  1427. ## ---------------- ##
  1428. _ASBOX
  1429. echo
  1430. # The following way of writing the cache mishandles newlines in values,
  1431. (
  1432. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1433. eval ac_val=\$$ac_var
  1434. case $ac_val in #(
  1435. *${as_nl}*)
  1436. case $ac_var in #(
  1437. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1438. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1439. esac
  1440. case $ac_var in #(
  1441. _ | IFS | as_nl) ;; #(
  1442. *) $as_unset $ac_var ;;
  1443. esac ;;
  1444. esac
  1445. done
  1446. (set) 2>&1 |
  1447. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1448. *${as_nl}ac_space=\ *)
  1449. sed -n \
  1450. "s/'\''/'\''\\\\'\'''\''/g;
  1451. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1452. ;; #(
  1453. *)
  1454. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1455. ;;
  1456. esac |
  1457. sort
  1458. )
  1459. echo
  1460. cat <<\_ASBOX
  1461. ## ----------------- ##
  1462. ## Output variables. ##
  1463. ## ----------------- ##
  1464. _ASBOX
  1465. echo
  1466. for ac_var in $ac_subst_vars
  1467. do
  1468. eval ac_val=\$$ac_var
  1469. case $ac_val in
  1470. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1471. esac
  1472. echo "$ac_var='\''$ac_val'\''"
  1473. done | sort
  1474. echo
  1475. if test -n "$ac_subst_files"; then
  1476. cat <<\_ASBOX
  1477. ## ------------------- ##
  1478. ## File substitutions. ##
  1479. ## ------------------- ##
  1480. _ASBOX
  1481. echo
  1482. for ac_var in $ac_subst_files
  1483. do
  1484. eval ac_val=\$$ac_var
  1485. case $ac_val in
  1486. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1487. esac
  1488. echo "$ac_var='\''$ac_val'\''"
  1489. done | sort
  1490. echo
  1491. fi
  1492. if test -s confdefs.h; then
  1493. cat <<\_ASBOX
  1494. ## ----------- ##
  1495. ## confdefs.h. ##
  1496. ## ----------- ##
  1497. _ASBOX
  1498. echo
  1499. cat confdefs.h
  1500. echo
  1501. fi
  1502. test "$ac_signal" != 0 &&
  1503. echo "$as_me: caught signal $ac_signal"
  1504. echo "$as_me: exit $exit_status"
  1505. } >&5
  1506. rm -f core *.core core.conftest.* &&
  1507. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1508. exit $exit_status
  1509. ' 0
  1510. for ac_signal in 1 2 13 15; do
  1511. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1512. done
  1513. ac_signal=0
  1514. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1515. rm -f -r conftest* confdefs.h
  1516. # Predefined preprocessor variables.
  1517. cat >>confdefs.h <<_ACEOF
  1518. #define PACKAGE_NAME "$PACKAGE_NAME"
  1519. _ACEOF
  1520. cat >>confdefs.h <<_ACEOF
  1521. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1522. _ACEOF
  1523. cat >>confdefs.h <<_ACEOF
  1524. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1525. _ACEOF
  1526. cat >>confdefs.h <<_ACEOF
  1527. #define PACKAGE_STRING "$PACKAGE_STRING"
  1528. _ACEOF
  1529. cat >>confdefs.h <<_ACEOF
  1530. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1531. _ACEOF
  1532. # Let the site file select an alternate cache file if it wants to.
  1533. # Prefer explicitly selected file to automatically selected ones.
  1534. if test -n "$CONFIG_SITE"; then
  1535. set x "$CONFIG_SITE"
  1536. elif test "x$prefix" != xNONE; then
  1537. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1538. else
  1539. set x "$ac_default_prefix/share/config.site" \
  1540. "$ac_default_prefix/etc/config.site"
  1541. fi
  1542. shift
  1543. for ac_site_file
  1544. do
  1545. if test -r "$ac_site_file"; then
  1546. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1547. echo "$as_me: loading site script $ac_site_file" >&6;}
  1548. sed 's/^/| /' "$ac_site_file" >&5
  1549. . "$ac_site_file"
  1550. fi
  1551. done
  1552. if test -r "$cache_file"; then
  1553. # Some versions of bash will fail to source /dev/null (special
  1554. # files actually), so we avoid doing that.
  1555. if test -f "$cache_file"; then
  1556. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1557. echo "$as_me: loading cache $cache_file" >&6;}
  1558. case $cache_file in
  1559. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1560. *) . "./$cache_file";;
  1561. esac
  1562. fi
  1563. else
  1564. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1565. echo "$as_me: creating cache $cache_file" >&6;}
  1566. >$cache_file
  1567. fi
  1568. # Check that the precious variables saved in the cache have kept the same
  1569. # value.
  1570. ac_cache_corrupted=false
  1571. for ac_var in $ac_precious_vars; do
  1572. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1573. eval ac_new_set=\$ac_env_${ac_var}_set
  1574. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1575. eval ac_new_val=\$ac_env_${ac_var}_value
  1576. case $ac_old_set,$ac_new_set in
  1577. set,)
  1578. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1579. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1580. ac_cache_corrupted=: ;;
  1581. ,set)
  1582. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1583. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1584. ac_cache_corrupted=: ;;
  1585. ,);;
  1586. *)
  1587. if test "x$ac_old_val" != "x$ac_new_val"; then
  1588. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1589. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1590. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1591. echo "$as_me: former value: $ac_old_val" >&2;}
  1592. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1593. echo "$as_me: current value: $ac_new_val" >&2;}
  1594. ac_cache_corrupted=:
  1595. fi;;
  1596. esac
  1597. # Pass precious variables to config.status.
  1598. if test "$ac_new_set" = set; then
  1599. case $ac_new_val in
  1600. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1601. *) ac_arg=$ac_var=$ac_new_val ;;
  1602. esac
  1603. case " $ac_configure_args " in
  1604. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1605. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1606. esac
  1607. fi
  1608. done
  1609. if $ac_cache_corrupted; then
  1610. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1611. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1612. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1613. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1614. { (exit 1); exit 1; }; }
  1615. fi
  1616. ac_ext=c
  1617. ac_cpp='$CPP $CPPFLAGS'
  1618. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1619. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1620. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1621. ac_aux_dir=
  1622. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1623. if test -f "$ac_dir/install-sh"; then
  1624. ac_aux_dir=$ac_dir
  1625. ac_install_sh="$ac_aux_dir/install-sh -c"
  1626. break
  1627. elif test -f "$ac_dir/install.sh"; then
  1628. ac_aux_dir=$ac_dir
  1629. ac_install_sh="$ac_aux_dir/install.sh -c"
  1630. break
  1631. elif test -f "$ac_dir/shtool"; then
  1632. ac_aux_dir=$ac_dir
  1633. ac_install_sh="$ac_aux_dir/shtool install -c"
  1634. break
  1635. fi
  1636. done
  1637. if test -z "$ac_aux_dir"; then
  1638. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1639. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1640. { (exit 1); exit 1; }; }
  1641. fi
  1642. # These three variables are undocumented and unsupported,
  1643. # and are intended to be withdrawn in a future Autoconf release.
  1644. # They can cause serious problems if a builder's source tree is in a directory
  1645. # whose full name contains unusual characters.
  1646. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1647. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1648. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1649. # Make sure we can run config.sub.
  1650. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1651. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1652. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1653. { (exit 1); exit 1; }; }
  1654. { echo "$as_me:$LINENO: checking build system type" >&5
  1655. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1656. if test "${ac_cv_build+set}" = set; then
  1657. echo $ECHO_N "(cached) $ECHO_C" >&6
  1658. else
  1659. ac_build_alias=$build_alias
  1660. test "x$ac_build_alias" = x &&
  1661. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1662. test "x$ac_build_alias" = x &&
  1663. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1664. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1665. { (exit 1); exit 1; }; }
  1666. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1667. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1668. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1669. { (exit 1); exit 1; }; }
  1670. fi
  1671. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1672. echo "${ECHO_T}$ac_cv_build" >&6; }
  1673. case $ac_cv_build in
  1674. *-*-*) ;;
  1675. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1676. echo "$as_me: error: invalid value of canonical build" >&2;}
  1677. { (exit 1); exit 1; }; };;
  1678. esac
  1679. build=$ac_cv_build
  1680. ac_save_IFS=$IFS; IFS='-'
  1681. set x $ac_cv_build
  1682. shift
  1683. build_cpu=$1
  1684. build_vendor=$2
  1685. shift; shift
  1686. # Remember, the first character of IFS is used to create $*,
  1687. # except with old shells:
  1688. build_os=$*
  1689. IFS=$ac_save_IFS
  1690. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1691. { echo "$as_me:$LINENO: checking host system type" >&5
  1692. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1693. if test "${ac_cv_host+set}" = set; then
  1694. echo $ECHO_N "(cached) $ECHO_C" >&6
  1695. else
  1696. if test "x$host_alias" = x; then
  1697. ac_cv_host=$ac_cv_build
  1698. else
  1699. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1700. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1701. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1702. { (exit 1); exit 1; }; }
  1703. fi
  1704. fi
  1705. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1706. echo "${ECHO_T}$ac_cv_host" >&6; }
  1707. case $ac_cv_host in
  1708. *-*-*) ;;
  1709. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1710. echo "$as_me: error: invalid value of canonical host" >&2;}
  1711. { (exit 1); exit 1; }; };;
  1712. esac
  1713. host=$ac_cv_host
  1714. ac_save_IFS=$IFS; IFS='-'
  1715. set x $ac_cv_host
  1716. shift
  1717. host_cpu=$1
  1718. host_vendor=$2
  1719. shift; shift
  1720. # Remember, the first character of IFS is used to create $*,
  1721. # except with old shells:
  1722. host_os=$*
  1723. IFS=$ac_save_IFS
  1724. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1725. { echo "$as_me:$LINENO: checking target system type" >&5
  1726. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1727. if test "${ac_cv_target+set}" = set; then
  1728. echo $ECHO_N "(cached) $ECHO_C" >&6
  1729. else
  1730. if test "x$target_alias" = x; then
  1731. ac_cv_target=$ac_cv_host
  1732. else
  1733. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1734. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1735. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1736. { (exit 1); exit 1; }; }
  1737. fi
  1738. fi
  1739. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1740. echo "${ECHO_T}$ac_cv_target" >&6; }
  1741. case $ac_cv_target in
  1742. *-*-*) ;;
  1743. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1744. echo "$as_me: error: invalid value of canonical target" >&2;}
  1745. { (exit 1); exit 1; }; };;
  1746. esac
  1747. target=$ac_cv_target
  1748. ac_save_IFS=$IFS; IFS='-'
  1749. set x $ac_cv_target
  1750. shift
  1751. target_cpu=$1
  1752. target_vendor=$2
  1753. shift; shift
  1754. # Remember, the first character of IFS is used to create $*,
  1755. # except with old shells:
  1756. target_os=$*
  1757. IFS=$ac_save_IFS
  1758. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1759. # The aliases save the names the user supplied, while $host etc.
  1760. # will get canonicalized.
  1761. test -n "$target_alias" &&
  1762. test "$program_prefix$program_suffix$program_transform_name" = \
  1763. NONENONEs,x,x, &&
  1764. program_prefix=${target_alias}-
  1765. am__api_version="1.9"
  1766. # Find a good install program. We prefer a C program (faster),
  1767. # so one script is as good as another. But avoid the broken or
  1768. # incompatible versions:
  1769. # SysV /etc/install, /usr/sbin/install
  1770. # SunOS /usr/etc/install
  1771. # IRIX /sbin/install
  1772. # AIX /bin/install
  1773. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1774. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1775. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1776. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1777. # OS/2's system install, which has a completely different semantic
  1778. # ./install, which can be erroneously created by make from ./install.sh.
  1779. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1780. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1781. if test -z "$INSTALL"; then
  1782. if test "${ac_cv_path_install+set}" = set; then
  1783. echo $ECHO_N "(cached) $ECHO_C" >&6
  1784. else
  1785. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1786. for as_dir in $PATH
  1787. do
  1788. IFS=$as_save_IFS
  1789. test -z "$as_dir" && as_dir=.
  1790. # Account for people who put trailing slashes in PATH elements.
  1791. case $as_dir/ in
  1792. ./ | .// | /cC/* | \
  1793. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1794. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1795. /usr/ucb/* ) ;;
  1796. *)
  1797. # OSF1 and SCO ODT 3.0 have their own names for install.
  1798. # Don't use installbsd from OSF since it installs stuff as root
  1799. # by default.
  1800. for ac_prog in ginstall scoinst install; do
  1801. for ac_exec_ext in '' $ac_executable_extensions; do
  1802. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1803. if test $ac_prog = install &&
  1804. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1805. # AIX install. It has an incompatible calling convention.
  1806. :
  1807. elif test $ac_prog = install &&
  1808. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1809. # program-specific install script used by HP pwplus--don't use.
  1810. :
  1811. else
  1812. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1813. break 3
  1814. fi
  1815. fi
  1816. done
  1817. done
  1818. ;;
  1819. esac
  1820. done
  1821. IFS=$as_save_IFS
  1822. fi
  1823. if test "${ac_cv_path_install+set}" = set; then
  1824. INSTALL=$ac_cv_path_install
  1825. else
  1826. # As a last resort, use the slow shell script. Don't cache a
  1827. # value for INSTALL within a source directory, because that will
  1828. # break other packages using the cache if that directory is
  1829. # removed, or if the value is a relative name.
  1830. INSTALL=$ac_install_sh
  1831. fi
  1832. fi
  1833. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1834. echo "${ECHO_T}$INSTALL" >&6; }
  1835. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1836. # It thinks the first close brace ends the variable substitution.
  1837. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1838. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1839. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1840. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1841. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1842. # Just in case
  1843. sleep 1
  1844. echo timestamp > conftest.file
  1845. # Do `set' in a subshell so we don't clobber the current shell's
  1846. # arguments. Must try -L first in case configure is actually a
  1847. # symlink; some systems play weird games with the mod time of symlinks
  1848. # (eg FreeBSD returns the mod time of the symlink's containing
  1849. # directory).
  1850. if (
  1851. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1852. if test "$*" = "X"; then
  1853. # -L didn't work.
  1854. set X `ls -t $srcdir/configure conftest.file`
  1855. fi
  1856. rm -f conftest.file
  1857. if test "$*" != "X $srcdir/configure conftest.file" \
  1858. && test "$*" != "X conftest.file $srcdir/configure"; then
  1859. # If neither matched, then we have a broken ls. This can happen
  1860. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1861. # broken ls alias from the environment. This has actually
  1862. # happened. Such a system could not be considered "sane".
  1863. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1864. alias in your environment" >&5
  1865. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1866. alias in your environment" >&2;}
  1867. { (exit 1); exit 1; }; }
  1868. fi
  1869. test "$2" = conftest.file
  1870. )
  1871. then
  1872. # Ok.
  1873. :
  1874. else
  1875. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1876. Check your system clock" >&5
  1877. echo "$as_me: error: newly created file is older than distributed files!
  1878. Check your system clock" >&2;}
  1879. { (exit 1); exit 1; }; }
  1880. fi
  1881. { echo "$as_me:$LINENO: result: yes" >&5
  1882. echo "${ECHO_T}yes" >&6; }
  1883. test "$program_prefix" != NONE &&
  1884. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1885. # Use a double $ so make ignores it.
  1886. test "$program_suffix" != NONE &&
  1887. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1888. # Double any \ or $. echo might interpret backslashes.
  1889. # By default was `s,x,x', remove it if useless.
  1890. cat <<\_ACEOF >conftest.sed
  1891. s/[\\$]/&&/g;s/;s,x,x,$//
  1892. _ACEOF
  1893. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1894. rm -f conftest.sed
  1895. # expand $ac_aux_dir to an absolute path
  1896. am_aux_dir=`cd $ac_aux_dir && pwd`
  1897. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1898. # Use eval to expand $SHELL
  1899. if eval "$MISSING --run true"; then
  1900. am_missing_run="$MISSING --run "
  1901. else
  1902. am_missing_run=
  1903. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1904. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1905. fi
  1906. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1907. # We used to keeping the `.' as first argument, in order to
  1908. # allow $(mkdir_p) to be used without argument. As in
  1909. # $(mkdir_p) $(somedir)
  1910. # where $(somedir) is conditionally defined. However this is wrong
  1911. # for two reasons:
  1912. # 1. if the package is installed by a user who cannot write `.'
  1913. # make install will fail,
  1914. # 2. the above comment should most certainly read
  1915. # $(mkdir_p) $(DESTDIR)$(somedir)
  1916. # so it does not work when $(somedir) is undefined and
  1917. # $(DESTDIR) is not.
  1918. # To support the latter case, we have to write
  1919. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1920. # so the `.' trick is pointless.
  1921. mkdir_p='mkdir -p --'
  1922. else
  1923. # On NextStep and OpenStep, the `mkdir' command does not
  1924. # recognize any option. It will interpret all options as
  1925. # directories to create, and then abort because `.' already
  1926. # exists.
  1927. for d in ./-p ./--version;
  1928. do
  1929. test -d $d && rmdir $d
  1930. done
  1931. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1932. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1933. mkdir_p='$(mkinstalldirs)'
  1934. else
  1935. mkdir_p='$(install_sh) -d'
  1936. fi
  1937. fi
  1938. for ac_prog in gawk mawk nawk awk
  1939. do
  1940. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1941. set dummy $ac_prog; ac_word=$2
  1942. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1943. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1944. if test "${ac_cv_prog_AWK+set}" = set; then
  1945. echo $ECHO_N "(cached) $ECHO_C" >&6
  1946. else
  1947. if test -n "$AWK"; then
  1948. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1949. else
  1950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1951. for as_dir in $PATH
  1952. do
  1953. IFS=$as_save_IFS
  1954. test -z "$as_dir" && as_dir=.
  1955. for ac_exec_ext in '' $ac_executable_extensions; do
  1956. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1957. ac_cv_prog_AWK="$ac_prog"
  1958. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1959. break 2
  1960. fi
  1961. done
  1962. done
  1963. IFS=$as_save_IFS
  1964. fi
  1965. fi
  1966. AWK=$ac_cv_prog_AWK
  1967. if test -n "$AWK"; then
  1968. { echo "$as_me:$LINENO: result: $AWK" >&5
  1969. echo "${ECHO_T}$AWK" >&6; }
  1970. else
  1971. { echo "$as_me:$LINENO: result: no" >&5
  1972. echo "${ECHO_T}no" >&6; }
  1973. fi
  1974. test -n "$AWK" && break
  1975. done
  1976. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1977. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1978. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1979. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1980. echo $ECHO_N "(cached) $ECHO_C" >&6
  1981. else
  1982. cat >conftest.make <<\_ACEOF
  1983. SHELL = /bin/sh
  1984. all:
  1985. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1986. _ACEOF
  1987. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1988. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1989. *@@@%%%=?*=@@@%%%*)
  1990. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1991. *)
  1992. eval ac_cv_prog_make_${ac_make}_set=no;;
  1993. esac
  1994. rm -f conftest.make
  1995. fi
  1996. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1997. { echo "$as_me:$LINENO: result: yes" >&5
  1998. echo "${ECHO_T}yes" >&6; }
  1999. SET_MAKE=
  2000. else
  2001. { echo "$as_me:$LINENO: result: no" >&5
  2002. echo "${ECHO_T}no" >&6; }
  2003. SET_MAKE="MAKE=${MAKE-make}"
  2004. fi
  2005. rm -rf .tst 2>/dev/null
  2006. mkdir .tst 2>/dev/null
  2007. if test -d .tst; then
  2008. am__leading_dot=.
  2009. else
  2010. am__leading_dot=_
  2011. fi
  2012. rmdir .tst 2>/dev/null
  2013. # test to see if srcdir already configured
  2014. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2015. test -f $srcdir/config.status; then
  2016. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2017. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2018. { (exit 1); exit 1; }; }
  2019. fi
  2020. # test whether we have cygpath
  2021. if test -z "$CYGPATH_W"; then
  2022. if (cygpath --version) >/dev/null 2>/dev/null; then
  2023. CYGPATH_W='cygpath -w'
  2024. else
  2025. CYGPATH_W=echo
  2026. fi
  2027. fi
  2028. # Define the identity of the package.
  2029. PACKAGE='aria2c'
  2030. VERSION='0.11.1+1'
  2031. cat >>confdefs.h <<_ACEOF
  2032. #define PACKAGE "$PACKAGE"
  2033. _ACEOF
  2034. cat >>confdefs.h <<_ACEOF
  2035. #define VERSION "$VERSION"
  2036. _ACEOF
  2037. # Some tools Automake needs.
  2038. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2039. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2040. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2041. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2042. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2043. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2044. # Installed binaries are usually stripped using `strip' when the user
  2045. # run `make install-strip'. However `strip' might not be the right
  2046. # tool to use in cross-compilation environments, therefore Automake
  2047. # will honor the `STRIP' environment variable to overrule this program.
  2048. if test "$cross_compiling" != no; then
  2049. if test -n "$ac_tool_prefix"; then
  2050. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2051. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2052. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2053. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2054. if test "${ac_cv_prog_STRIP+set}" = set; then
  2055. echo $ECHO_N "(cached) $ECHO_C" >&6
  2056. else
  2057. if test -n "$STRIP"; then
  2058. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2059. else
  2060. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2061. for as_dir in $PATH
  2062. do
  2063. IFS=$as_save_IFS
  2064. test -z "$as_dir" && as_dir=.
  2065. for ac_exec_ext in '' $ac_executable_extensions; do
  2066. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2067. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2068. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2069. break 2
  2070. fi
  2071. done
  2072. done
  2073. IFS=$as_save_IFS
  2074. fi
  2075. fi
  2076. STRIP=$ac_cv_prog_STRIP
  2077. if test -n "$STRIP"; then
  2078. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2079. echo "${ECHO_T}$STRIP" >&6; }
  2080. else
  2081. { echo "$as_me:$LINENO: result: no" >&5
  2082. echo "${ECHO_T}no" >&6; }
  2083. fi
  2084. fi
  2085. if test -z "$ac_cv_prog_STRIP"; then
  2086. ac_ct_STRIP=$STRIP
  2087. # Extract the first word of "strip", so it can be a program name with args.
  2088. set dummy strip; ac_word=$2
  2089. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2090. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2091. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2092. echo $ECHO_N "(cached) $ECHO_C" >&6
  2093. else
  2094. if test -n "$ac_ct_STRIP"; then
  2095. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2096. else
  2097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2098. for as_dir in $PATH
  2099. do
  2100. IFS=$as_save_IFS
  2101. test -z "$as_dir" && as_dir=.
  2102. for ac_exec_ext in '' $ac_executable_extensions; do
  2103. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2104. ac_cv_prog_ac_ct_STRIP="strip"
  2105. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2106. break 2
  2107. fi
  2108. done
  2109. done
  2110. IFS=$as_save_IFS
  2111. fi
  2112. fi
  2113. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2114. if test -n "$ac_ct_STRIP"; then
  2115. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2116. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2117. else
  2118. { echo "$as_me:$LINENO: result: no" >&5
  2119. echo "${ECHO_T}no" >&6; }
  2120. fi
  2121. if test "x$ac_ct_STRIP" = x; then
  2122. STRIP=":"
  2123. else
  2124. case $cross_compiling:$ac_tool_warned in
  2125. yes:)
  2126. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2127. whose name does not start with the host triplet. If you think this
  2128. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2129. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2130. whose name does not start with the host triplet. If you think this
  2131. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2132. ac_tool_warned=yes ;;
  2133. esac
  2134. STRIP=$ac_ct_STRIP
  2135. fi
  2136. else
  2137. STRIP="$ac_cv_prog_STRIP"
  2138. fi
  2139. fi
  2140. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2141. # We need awk for the "check" target. The system "awk" is bad on
  2142. # some platforms.
  2143. # Always define AMTAR for backward compatibility.
  2144. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2145. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2146. # Check whether --with-cppunit-prefix was given.
  2147. if test "${with_cppunit_prefix+set}" = set; then
  2148. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2149. else
  2150. cppunit_config_prefix=""
  2151. fi
  2152. # Check whether --with-cppunit-exec-prefix was given.
  2153. if test "${with_cppunit_exec_prefix+set}" = set; then
  2154. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2155. else
  2156. cppunit_config_exec_prefix=""
  2157. fi
  2158. if test x$cppunit_config_exec_prefix != x ; then
  2159. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2160. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2161. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2162. fi
  2163. fi
  2164. if test x$cppunit_config_prefix != x ; then
  2165. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2166. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2167. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2168. fi
  2169. fi
  2170. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2171. set dummy cppunit-config; ac_word=$2
  2172. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2173. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2174. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2175. echo $ECHO_N "(cached) $ECHO_C" >&6
  2176. else
  2177. case $CPPUNIT_CONFIG in
  2178. [\\/]* | ?:[\\/]*)
  2179. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2180. ;;
  2181. *)
  2182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2183. for as_dir in $PATH
  2184. do
  2185. IFS=$as_save_IFS
  2186. test -z "$as_dir" && as_dir=.
  2187. for ac_exec_ext in '' $ac_executable_extensions; do
  2188. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2189. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2190. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2191. break 2
  2192. fi
  2193. done
  2194. done
  2195. IFS=$as_save_IFS
  2196. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2197. ;;
  2198. esac
  2199. fi
  2200. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2201. if test -n "$CPPUNIT_CONFIG"; then
  2202. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2203. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2204. else
  2205. { echo "$as_me:$LINENO: result: no" >&5
  2206. echo "${ECHO_T}no" >&6; }
  2207. fi
  2208. cppunit_version_min=1.10.2
  2209. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2210. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2211. no_cppunit=""
  2212. if test "$CPPUNIT_CONFIG" = "no" ; then
  2213. { echo "$as_me:$LINENO: result: no" >&5
  2214. echo "${ECHO_T}no" >&6; }
  2215. no_cppunit=yes
  2216. else
  2217. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2218. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2219. cppunit_version=`$CPPUNIT_CONFIG --version`
  2220. cppunit_major_version=`echo $cppunit_version | \
  2221. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2222. cppunit_minor_version=`echo $cppunit_version | \
  2223. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2224. cppunit_micro_version=`echo $cppunit_version | \
  2225. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2226. cppunit_major_min=`echo $cppunit_version_min | \
  2227. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2228. if test "x${cppunit_major_min}" = "x" ; then
  2229. cppunit_major_min=0
  2230. fi
  2231. cppunit_minor_min=`echo $cppunit_version_min | \
  2232. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2233. if test "x${cppunit_minor_min}" = "x" ; then
  2234. cppunit_minor_min=0
  2235. fi
  2236. cppunit_micro_min=`echo $cppunit_version_min | \
  2237. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2238. if test "x${cppunit_micro_min}" = "x" ; then
  2239. cppunit_micro_min=0
  2240. fi
  2241. cppunit_version_proper=`expr \
  2242. $cppunit_major_version \> $cppunit_major_min \| \
  2243. $cppunit_major_version \= $cppunit_major_min \& \
  2244. $cppunit_minor_version \> $cppunit_minor_min \| \
  2245. $cppunit_major_version \= $cppunit_major_min \& \
  2246. $cppunit_minor_version \= $cppunit_minor_min \& \
  2247. $cppunit_micro_version \>= $cppunit_micro_min `
  2248. if test "$cppunit_version_proper" = "1" ; then
  2249. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2250. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2251. else
  2252. { echo "$as_me:$LINENO: result: no" >&5
  2253. echo "${ECHO_T}no" >&6; }
  2254. no_cppunit=yes
  2255. fi
  2256. fi
  2257. if test "x$no_cppunit" = x ; then
  2258. :
  2259. else
  2260. CPPUNIT_CFLAGS=""
  2261. CPPUNIT_LIBS=""
  2262. :
  2263. fi
  2264. ac_config_headers="$ac_config_headers config.h"
  2265. case "$target" in
  2266. *mingw*|*cygwin*)
  2267. WINSOCK_LIBS="-lws2_32"
  2268. ;;
  2269. esac
  2270. # Set localedir
  2271. localedir=${datadir}/locale
  2272. # Checks for arguments.
  2273. # Check whether --with-gnutls was given.
  2274. if test "${with_gnutls+set}" = set; then
  2275. withval=$with_gnutls; with_gnutls=$withval
  2276. else
  2277. with_gnutls=yes
  2278. fi
  2279. # Check whether --with-openssl was given.
  2280. if test "${with_openssl+set}" = set; then
  2281. withval=$with_openssl; with_openssl=$withval
  2282. else
  2283. with_openssl=yes
  2284. fi
  2285. # Check whether --with-libxml2 was given.
  2286. if test "${with_libxml2+set}" = set; then
  2287. withval=$with_libxml2; with_libxml2=$withval
  2288. else
  2289. with_libxml2=yes
  2290. fi
  2291. # Check whether --with-libares was given.
  2292. if test "${with_libares+set}" = set; then
  2293. withval=$with_libares; with_libares=$withval
  2294. else
  2295. with_libares=yes
  2296. fi
  2297. # Check whether --with-libcares was given.
  2298. if test "${with_libcares+set}" = set; then
  2299. withval=$with_libcares; with_libcares=$withval
  2300. else
  2301. with_libcares=yes
  2302. fi
  2303. # Check whether --enable-bittorrent was given.
  2304. if test "${enable_bittorrent+set}" = set; then
  2305. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2306. else
  2307. enable_bittorrent=yes
  2308. fi
  2309. # Check whether --enable-metalink was given.
  2310. if test "${enable_metalink+set}" = set; then
  2311. enableval=$enable_metalink; enable_metalink=$enableval
  2312. else
  2313. enable_metalink=yes
  2314. fi
  2315. # Checks for programs.
  2316. ac_ext=cpp
  2317. ac_cpp='$CXXCPP $CPPFLAGS'
  2318. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2319. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2320. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2321. if test -z "$CXX"; then
  2322. if test -n "$CCC"; then
  2323. CXX=$CCC
  2324. else
  2325. if test -n "$ac_tool_prefix"; then
  2326. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2327. do
  2328. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2329. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2330. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2331. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2332. if test "${ac_cv_prog_CXX+set}" = set; then
  2333. echo $ECHO_N "(cached) $ECHO_C" >&6
  2334. else
  2335. if test -n "$CXX"; then
  2336. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2337. else
  2338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2339. for as_dir in $PATH
  2340. do
  2341. IFS=$as_save_IFS
  2342. test -z "$as_dir" && as_dir=.
  2343. for ac_exec_ext in '' $ac_executable_extensions; do
  2344. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2345. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2346. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2347. break 2
  2348. fi
  2349. done
  2350. done
  2351. IFS=$as_save_IFS
  2352. fi
  2353. fi
  2354. CXX=$ac_cv_prog_CXX
  2355. if test -n "$CXX"; then
  2356. { echo "$as_me:$LINENO: result: $CXX" >&5
  2357. echo "${ECHO_T}$CXX" >&6; }
  2358. else
  2359. { echo "$as_me:$LINENO: result: no" >&5
  2360. echo "${ECHO_T}no" >&6; }
  2361. fi
  2362. test -n "$CXX" && break
  2363. done
  2364. fi
  2365. if test -z "$CXX"; then
  2366. ac_ct_CXX=$CXX
  2367. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2368. do
  2369. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2370. set dummy $ac_prog; ac_word=$2
  2371. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2372. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2373. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2374. echo $ECHO_N "(cached) $ECHO_C" >&6
  2375. else
  2376. if test -n "$ac_ct_CXX"; then
  2377. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2378. else
  2379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2380. for as_dir in $PATH
  2381. do
  2382. IFS=$as_save_IFS
  2383. test -z "$as_dir" && as_dir=.
  2384. for ac_exec_ext in '' $ac_executable_extensions; do
  2385. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2386. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2387. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2388. break 2
  2389. fi
  2390. done
  2391. done
  2392. IFS=$as_save_IFS
  2393. fi
  2394. fi
  2395. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2396. if test -n "$ac_ct_CXX"; then
  2397. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2398. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2399. else
  2400. { echo "$as_me:$LINENO: result: no" >&5
  2401. echo "${ECHO_T}no" >&6; }
  2402. fi
  2403. test -n "$ac_ct_CXX" && break
  2404. done
  2405. if test "x$ac_ct_CXX" = x; then
  2406. CXX="g++"
  2407. else
  2408. case $cross_compiling:$ac_tool_warned in
  2409. yes:)
  2410. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2411. whose name does not start with the host triplet. If you think this
  2412. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2413. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2414. whose name does not start with the host triplet. If you think this
  2415. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2416. ac_tool_warned=yes ;;
  2417. esac
  2418. CXX=$ac_ct_CXX
  2419. fi
  2420. fi
  2421. fi
  2422. fi
  2423. # Provide some information about the compiler.
  2424. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2425. ac_compiler=`set X $ac_compile; echo $2`
  2426. { (ac_try="$ac_compiler --version >&5"
  2427. case "(($ac_try" in
  2428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2429. *) ac_try_echo=$ac_try;;
  2430. esac
  2431. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2432. (eval "$ac_compiler --version >&5") 2>&5
  2433. ac_status=$?
  2434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2435. (exit $ac_status); }
  2436. { (ac_try="$ac_compiler -v >&5"
  2437. case "(($ac_try" in
  2438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2439. *) ac_try_echo=$ac_try;;
  2440. esac
  2441. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2442. (eval "$ac_compiler -v >&5") 2>&5
  2443. ac_status=$?
  2444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2445. (exit $ac_status); }
  2446. { (ac_try="$ac_compiler -V >&5"
  2447. case "(($ac_try" in
  2448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2449. *) ac_try_echo=$ac_try;;
  2450. esac
  2451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2452. (eval "$ac_compiler -V >&5") 2>&5
  2453. ac_status=$?
  2454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2455. (exit $ac_status); }
  2456. cat >conftest.$ac_ext <<_ACEOF
  2457. /* confdefs.h. */
  2458. _ACEOF
  2459. cat confdefs.h >>conftest.$ac_ext
  2460. cat >>conftest.$ac_ext <<_ACEOF
  2461. /* end confdefs.h. */
  2462. int
  2463. main ()
  2464. {
  2465. ;
  2466. return 0;
  2467. }
  2468. _ACEOF
  2469. ac_clean_files_save=$ac_clean_files
  2470. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2471. # Try to create an executable without -o first, disregard a.out.
  2472. # It will help us diagnose broken compilers, and finding out an intuition
  2473. # of exeext.
  2474. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2475. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2476. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2477. #
  2478. # List of possible output files, starting from the most likely.
  2479. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2480. # only as a last resort. b.out is created by i960 compilers.
  2481. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2482. #
  2483. # The IRIX 6 linker writes into existing files which may not be
  2484. # executable, retaining their permissions. Remove them first so a
  2485. # subsequent execution test works.
  2486. ac_rmfiles=
  2487. for ac_file in $ac_files
  2488. do
  2489. case $ac_file in
  2490. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2491. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2492. esac
  2493. done
  2494. rm -f $ac_rmfiles
  2495. if { (ac_try="$ac_link_default"
  2496. case "(($ac_try" in
  2497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2498. *) ac_try_echo=$ac_try;;
  2499. esac
  2500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2501. (eval "$ac_link_default") 2>&5
  2502. ac_status=$?
  2503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2504. (exit $ac_status); }; then
  2505. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2506. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2507. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2508. # so that the user can short-circuit this test for compilers unknown to
  2509. # Autoconf.
  2510. for ac_file in $ac_files ''
  2511. do
  2512. test -f "$ac_file" || continue
  2513. case $ac_file in
  2514. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2515. ;;
  2516. [ab].out )
  2517. # We found the default executable, but exeext='' is most
  2518. # certainly right.
  2519. break;;
  2520. *.* )
  2521. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2522. then :; else
  2523. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2524. fi
  2525. # We set ac_cv_exeext here because the later test for it is not
  2526. # safe: cross compilers may not add the suffix if given an `-o'
  2527. # argument, so we may need to know it at that point already.
  2528. # Even if this section looks crufty: it has the advantage of
  2529. # actually working.
  2530. break;;
  2531. * )
  2532. break;;
  2533. esac
  2534. done
  2535. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2536. else
  2537. ac_file=''
  2538. fi
  2539. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2540. echo "${ECHO_T}$ac_file" >&6; }
  2541. if test -z "$ac_file"; then
  2542. echo "$as_me: failed program was:" >&5
  2543. sed 's/^/| /' conftest.$ac_ext >&5
  2544. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2545. See \`config.log' for more details." >&5
  2546. echo "$as_me: error: C++ compiler cannot create executables
  2547. See \`config.log' for more details." >&2;}
  2548. { (exit 77); exit 77; }; }
  2549. fi
  2550. ac_exeext=$ac_cv_exeext
  2551. # Check that the compiler produces executables we can run. If not, either
  2552. # the compiler is broken, or we cross compile.
  2553. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2554. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2555. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2556. # If not cross compiling, check that we can run a simple program.
  2557. if test "$cross_compiling" != yes; then
  2558. if { ac_try='./$ac_file'
  2559. { (case "(($ac_try" in
  2560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2561. *) ac_try_echo=$ac_try;;
  2562. esac
  2563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2564. (eval "$ac_try") 2>&5
  2565. ac_status=$?
  2566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2567. (exit $ac_status); }; }; then
  2568. cross_compiling=no
  2569. else
  2570. if test "$cross_compiling" = maybe; then
  2571. cross_compiling=yes
  2572. else
  2573. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2574. If you meant to cross compile, use \`--host'.
  2575. See \`config.log' for more details." >&5
  2576. echo "$as_me: error: cannot run C++ compiled programs.
  2577. If you meant to cross compile, use \`--host'.
  2578. See \`config.log' for more details." >&2;}
  2579. { (exit 1); exit 1; }; }
  2580. fi
  2581. fi
  2582. fi
  2583. { echo "$as_me:$LINENO: result: yes" >&5
  2584. echo "${ECHO_T}yes" >&6; }
  2585. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2586. ac_clean_files=$ac_clean_files_save
  2587. # Check that the compiler produces executables we can run. If not, either
  2588. # the compiler is broken, or we cross compile.
  2589. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2590. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2591. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2592. echo "${ECHO_T}$cross_compiling" >&6; }
  2593. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2594. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2595. if { (ac_try="$ac_link"
  2596. case "(($ac_try" in
  2597. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2598. *) ac_try_echo=$ac_try;;
  2599. esac
  2600. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2601. (eval "$ac_link") 2>&5
  2602. ac_status=$?
  2603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2604. (exit $ac_status); }; then
  2605. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2606. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2607. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2608. # `rm'.
  2609. for ac_file in conftest.exe conftest conftest.*; do
  2610. test -f "$ac_file" || continue
  2611. case $ac_file in
  2612. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2613. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2614. break;;
  2615. * ) break;;
  2616. esac
  2617. done
  2618. else
  2619. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2620. See \`config.log' for more details." >&5
  2621. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2622. See \`config.log' for more details." >&2;}
  2623. { (exit 1); exit 1; }; }
  2624. fi
  2625. rm -f conftest$ac_cv_exeext
  2626. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2627. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2628. rm -f conftest.$ac_ext
  2629. EXEEXT=$ac_cv_exeext
  2630. ac_exeext=$EXEEXT
  2631. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2632. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2633. if test "${ac_cv_objext+set}" = set; then
  2634. echo $ECHO_N "(cached) $ECHO_C" >&6
  2635. else
  2636. cat >conftest.$ac_ext <<_ACEOF
  2637. /* confdefs.h. */
  2638. _ACEOF
  2639. cat confdefs.h >>conftest.$ac_ext
  2640. cat >>conftest.$ac_ext <<_ACEOF
  2641. /* end confdefs.h. */
  2642. int
  2643. main ()
  2644. {
  2645. ;
  2646. return 0;
  2647. }
  2648. _ACEOF
  2649. rm -f conftest.o conftest.obj
  2650. if { (ac_try="$ac_compile"
  2651. case "(($ac_try" in
  2652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2653. *) ac_try_echo=$ac_try;;
  2654. esac
  2655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2656. (eval "$ac_compile") 2>&5
  2657. ac_status=$?
  2658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2659. (exit $ac_status); }; then
  2660. for ac_file in conftest.o conftest.obj conftest.*; do
  2661. test -f "$ac_file" || continue;
  2662. case $ac_file in
  2663. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2664. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2665. break;;
  2666. esac
  2667. done
  2668. else
  2669. echo "$as_me: failed program was:" >&5
  2670. sed 's/^/| /' conftest.$ac_ext >&5
  2671. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2672. See \`config.log' for more details." >&5
  2673. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2674. See \`config.log' for more details." >&2;}
  2675. { (exit 1); exit 1; }; }
  2676. fi
  2677. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2678. fi
  2679. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2680. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2681. OBJEXT=$ac_cv_objext
  2682. ac_objext=$OBJEXT
  2683. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2684. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2685. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2686. echo $ECHO_N "(cached) $ECHO_C" >&6
  2687. else
  2688. cat >conftest.$ac_ext <<_ACEOF
  2689. /* confdefs.h. */
  2690. _ACEOF
  2691. cat confdefs.h >>conftest.$ac_ext
  2692. cat >>conftest.$ac_ext <<_ACEOF
  2693. /* end confdefs.h. */
  2694. int
  2695. main ()
  2696. {
  2697. #ifndef __GNUC__
  2698. choke me
  2699. #endif
  2700. ;
  2701. return 0;
  2702. }
  2703. _ACEOF
  2704. rm -f conftest.$ac_objext
  2705. if { (ac_try="$ac_compile"
  2706. case "(($ac_try" in
  2707. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2708. *) ac_try_echo=$ac_try;;
  2709. esac
  2710. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2711. (eval "$ac_compile") 2>conftest.er1
  2712. ac_status=$?
  2713. grep -v '^ *+' conftest.er1 >conftest.err
  2714. rm -f conftest.er1
  2715. cat conftest.err >&5
  2716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2717. (exit $ac_status); } && {
  2718. test -z "$ac_cxx_werror_flag" ||
  2719. test ! -s conftest.err
  2720. } && test -s conftest.$ac_objext; then
  2721. ac_compiler_gnu=yes
  2722. else
  2723. echo "$as_me: failed program was:" >&5
  2724. sed 's/^/| /' conftest.$ac_ext >&5
  2725. ac_compiler_gnu=no
  2726. fi
  2727. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2728. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2729. fi
  2730. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2731. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2732. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2733. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2734. ac_save_CXXFLAGS=$CXXFLAGS
  2735. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2736. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2737. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2738. echo $ECHO_N "(cached) $ECHO_C" >&6
  2739. else
  2740. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2741. ac_cxx_werror_flag=yes
  2742. ac_cv_prog_cxx_g=no
  2743. CXXFLAGS="-g"
  2744. cat >conftest.$ac_ext <<_ACEOF
  2745. /* confdefs.h. */
  2746. _ACEOF
  2747. cat confdefs.h >>conftest.$ac_ext
  2748. cat >>conftest.$ac_ext <<_ACEOF
  2749. /* end confdefs.h. */
  2750. int
  2751. main ()
  2752. {
  2753. ;
  2754. return 0;
  2755. }
  2756. _ACEOF
  2757. rm -f conftest.$ac_objext
  2758. if { (ac_try="$ac_compile"
  2759. case "(($ac_try" in
  2760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2761. *) ac_try_echo=$ac_try;;
  2762. esac
  2763. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2764. (eval "$ac_compile") 2>conftest.er1
  2765. ac_status=$?
  2766. grep -v '^ *+' conftest.er1 >conftest.err
  2767. rm -f conftest.er1
  2768. cat conftest.err >&5
  2769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2770. (exit $ac_status); } && {
  2771. test -z "$ac_cxx_werror_flag" ||
  2772. test ! -s conftest.err
  2773. } && test -s conftest.$ac_objext; then
  2774. ac_cv_prog_cxx_g=yes
  2775. else
  2776. echo "$as_me: failed program was:" >&5
  2777. sed 's/^/| /' conftest.$ac_ext >&5
  2778. CXXFLAGS=""
  2779. cat >conftest.$ac_ext <<_ACEOF
  2780. /* confdefs.h. */
  2781. _ACEOF
  2782. cat confdefs.h >>conftest.$ac_ext
  2783. cat >>conftest.$ac_ext <<_ACEOF
  2784. /* end confdefs.h. */
  2785. int
  2786. main ()
  2787. {
  2788. ;
  2789. return 0;
  2790. }
  2791. _ACEOF
  2792. rm -f conftest.$ac_objext
  2793. if { (ac_try="$ac_compile"
  2794. case "(($ac_try" in
  2795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2796. *) ac_try_echo=$ac_try;;
  2797. esac
  2798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2799. (eval "$ac_compile") 2>conftest.er1
  2800. ac_status=$?
  2801. grep -v '^ *+' conftest.er1 >conftest.err
  2802. rm -f conftest.er1
  2803. cat conftest.err >&5
  2804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2805. (exit $ac_status); } && {
  2806. test -z "$ac_cxx_werror_flag" ||
  2807. test ! -s conftest.err
  2808. } && test -s conftest.$ac_objext; then
  2809. :
  2810. else
  2811. echo "$as_me: failed program was:" >&5
  2812. sed 's/^/| /' conftest.$ac_ext >&5
  2813. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2814. CXXFLAGS="-g"
  2815. cat >conftest.$ac_ext <<_ACEOF
  2816. /* confdefs.h. */
  2817. _ACEOF
  2818. cat confdefs.h >>conftest.$ac_ext
  2819. cat >>conftest.$ac_ext <<_ACEOF
  2820. /* end confdefs.h. */
  2821. int
  2822. main ()
  2823. {
  2824. ;
  2825. return 0;
  2826. }
  2827. _ACEOF
  2828. rm -f conftest.$ac_objext
  2829. if { (ac_try="$ac_compile"
  2830. case "(($ac_try" in
  2831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2832. *) ac_try_echo=$ac_try;;
  2833. esac
  2834. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2835. (eval "$ac_compile") 2>conftest.er1
  2836. ac_status=$?
  2837. grep -v '^ *+' conftest.er1 >conftest.err
  2838. rm -f conftest.er1
  2839. cat conftest.err >&5
  2840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2841. (exit $ac_status); } && {
  2842. test -z "$ac_cxx_werror_flag" ||
  2843. test ! -s conftest.err
  2844. } && test -s conftest.$ac_objext; then
  2845. ac_cv_prog_cxx_g=yes
  2846. else
  2847. echo "$as_me: failed program was:" >&5
  2848. sed 's/^/| /' conftest.$ac_ext >&5
  2849. fi
  2850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2851. fi
  2852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2853. fi
  2854. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2855. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2856. fi
  2857. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2858. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2859. if test "$ac_test_CXXFLAGS" = set; then
  2860. CXXFLAGS=$ac_save_CXXFLAGS
  2861. elif test $ac_cv_prog_cxx_g = yes; then
  2862. if test "$GXX" = yes; then
  2863. CXXFLAGS="-g -O2"
  2864. else
  2865. CXXFLAGS="-g"
  2866. fi
  2867. else
  2868. if test "$GXX" = yes; then
  2869. CXXFLAGS="-O2"
  2870. else
  2871. CXXFLAGS=
  2872. fi
  2873. fi
  2874. ac_ext=c
  2875. ac_cpp='$CPP $CPPFLAGS'
  2876. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2877. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2878. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2879. DEPDIR="${am__leading_dot}deps"
  2880. ac_config_commands="$ac_config_commands depfiles"
  2881. am_make=${MAKE-make}
  2882. cat > confinc << 'END'
  2883. am__doit:
  2884. @echo done
  2885. .PHONY: am__doit
  2886. END
  2887. # If we don't find an include directive, just comment out the code.
  2888. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2889. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2890. am__include="#"
  2891. am__quote=
  2892. _am_result=none
  2893. # First try GNU make style include.
  2894. echo "include confinc" > confmf
  2895. # We grep out `Entering directory' and `Leaving directory'
  2896. # messages which can occur if `w' ends up in MAKEFLAGS.
  2897. # In particular we don't look at `^make:' because GNU make might
  2898. # be invoked under some other name (usually "gmake"), in which
  2899. # case it prints its new name instead of `make'.
  2900. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2901. am__include=include
  2902. am__quote=
  2903. _am_result=GNU
  2904. fi
  2905. # Now try BSD make style include.
  2906. if test "$am__include" = "#"; then
  2907. echo '.include "confinc"' > confmf
  2908. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2909. am__include=.include
  2910. am__quote="\""
  2911. _am_result=BSD
  2912. fi
  2913. fi
  2914. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2915. echo "${ECHO_T}$_am_result" >&6; }
  2916. rm -f confinc confmf
  2917. # Check whether --enable-dependency-tracking was given.
  2918. if test "${enable_dependency_tracking+set}" = set; then
  2919. enableval=$enable_dependency_tracking;
  2920. fi
  2921. if test "x$enable_dependency_tracking" != xno; then
  2922. am_depcomp="$ac_aux_dir/depcomp"
  2923. AMDEPBACKSLASH='\'
  2924. fi
  2925. if test "x$enable_dependency_tracking" != xno; then
  2926. AMDEP_TRUE=
  2927. AMDEP_FALSE='#'
  2928. else
  2929. AMDEP_TRUE='#'
  2930. AMDEP_FALSE=
  2931. fi
  2932. depcc="$CXX" am_compiler_list=
  2933. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2934. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2935. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2936. echo $ECHO_N "(cached) $ECHO_C" >&6
  2937. else
  2938. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2939. # We make a subdir and do the tests there. Otherwise we can end up
  2940. # making bogus files that we don't know about and never remove. For
  2941. # instance it was reported that on HP-UX the gcc test will end up
  2942. # making a dummy file named `D' -- because `-MD' means `put the output
  2943. # in D'.
  2944. mkdir conftest.dir
  2945. # Copy depcomp to subdir because otherwise we won't find it if we're
  2946. # using a relative directory.
  2947. cp "$am_depcomp" conftest.dir
  2948. cd conftest.dir
  2949. # We will build objects and dependencies in a subdirectory because
  2950. # it helps to detect inapplicable dependency modes. For instance
  2951. # both Tru64's cc and ICC support -MD to output dependencies as a
  2952. # side effect of compilation, but ICC will put the dependencies in
  2953. # the current directory while Tru64 will put them in the object
  2954. # directory.
  2955. mkdir sub
  2956. am_cv_CXX_dependencies_compiler_type=none
  2957. if test "$am_compiler_list" = ""; then
  2958. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2959. fi
  2960. for depmode in $am_compiler_list; do
  2961. # Setup a source with many dependencies, because some compilers
  2962. # like to wrap large dependency lists on column 80 (with \), and
  2963. # we should not choose a depcomp mode which is confused by this.
  2964. #
  2965. # We need to recreate these files for each test, as the compiler may
  2966. # overwrite some of them when testing with obscure command lines.
  2967. # This happens at least with the AIX C compiler.
  2968. : > sub/conftest.c
  2969. for i in 1 2 3 4 5 6; do
  2970. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2971. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2972. # Solaris 8's {/usr,}/bin/sh.
  2973. touch sub/conftst$i.h
  2974. done
  2975. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2976. case $depmode in
  2977. nosideeffect)
  2978. # after this tag, mechanisms are not by side-effect, so they'll
  2979. # only be used when explicitly requested
  2980. if test "x$enable_dependency_tracking" = xyes; then
  2981. continue
  2982. else
  2983. break
  2984. fi
  2985. ;;
  2986. none) break ;;
  2987. esac
  2988. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2989. # mode. It turns out that the SunPro C++ compiler does not properly
  2990. # handle `-M -o', and we need to detect this.
  2991. if depmode=$depmode \
  2992. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2993. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2994. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2995. >/dev/null 2>conftest.err &&
  2996. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2997. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2998. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2999. # icc doesn't choke on unknown options, it will just issue warnings
  3000. # or remarks (even with -Werror). So we grep stderr for any message
  3001. # that says an option was ignored or not supported.
  3002. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3003. # icc: Command line warning: ignoring option '-M'; no argument required
  3004. # The diagnosis changed in icc 8.0:
  3005. # icc: Command line remark: option '-MP' not supported
  3006. if (grep 'ignoring option' conftest.err ||
  3007. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3008. am_cv_CXX_dependencies_compiler_type=$depmode
  3009. break
  3010. fi
  3011. fi
  3012. done
  3013. cd ..
  3014. rm -rf conftest.dir
  3015. else
  3016. am_cv_CXX_dependencies_compiler_type=none
  3017. fi
  3018. fi
  3019. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3020. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3021. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3022. if
  3023. test "x$enable_dependency_tracking" != xno \
  3024. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3025. am__fastdepCXX_TRUE=
  3026. am__fastdepCXX_FALSE='#'
  3027. else
  3028. am__fastdepCXX_TRUE='#'
  3029. am__fastdepCXX_FALSE=
  3030. fi
  3031. ac_ext=c
  3032. ac_cpp='$CPP $CPPFLAGS'
  3033. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3034. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3036. if test -n "$ac_tool_prefix"; then
  3037. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3038. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3039. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3040. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3041. if test "${ac_cv_prog_CC+set}" = set; then
  3042. echo $ECHO_N "(cached) $ECHO_C" >&6
  3043. else
  3044. if test -n "$CC"; then
  3045. ac_cv_prog_CC="$CC" # Let the user override the test.
  3046. else
  3047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3048. for as_dir in $PATH
  3049. do
  3050. IFS=$as_save_IFS
  3051. test -z "$as_dir" && as_dir=.
  3052. for ac_exec_ext in '' $ac_executable_extensions; do
  3053. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3054. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3055. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3056. break 2
  3057. fi
  3058. done
  3059. done
  3060. IFS=$as_save_IFS
  3061. fi
  3062. fi
  3063. CC=$ac_cv_prog_CC
  3064. if test -n "$CC"; then
  3065. { echo "$as_me:$LINENO: result: $CC" >&5
  3066. echo "${ECHO_T}$CC" >&6; }
  3067. else
  3068. { echo "$as_me:$LINENO: result: no" >&5
  3069. echo "${ECHO_T}no" >&6; }
  3070. fi
  3071. fi
  3072. if test -z "$ac_cv_prog_CC"; then
  3073. ac_ct_CC=$CC
  3074. # Extract the first word of "gcc", so it can be a program name with args.
  3075. set dummy gcc; ac_word=$2
  3076. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3077. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3078. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3079. echo $ECHO_N "(cached) $ECHO_C" >&6
  3080. else
  3081. if test -n "$ac_ct_CC"; then
  3082. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3083. else
  3084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3085. for as_dir in $PATH
  3086. do
  3087. IFS=$as_save_IFS
  3088. test -z "$as_dir" && as_dir=.
  3089. for ac_exec_ext in '' $ac_executable_extensions; do
  3090. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3091. ac_cv_prog_ac_ct_CC="gcc"
  3092. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3093. break 2
  3094. fi
  3095. done
  3096. done
  3097. IFS=$as_save_IFS
  3098. fi
  3099. fi
  3100. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3101. if test -n "$ac_ct_CC"; then
  3102. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3103. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3104. else
  3105. { echo "$as_me:$LINENO: result: no" >&5
  3106. echo "${ECHO_T}no" >&6; }
  3107. fi
  3108. if test "x$ac_ct_CC" = x; then
  3109. CC=""
  3110. else
  3111. case $cross_compiling:$ac_tool_warned in
  3112. yes:)
  3113. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3114. whose name does not start with the host triplet. If you think this
  3115. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3116. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3117. whose name does not start with the host triplet. If you think this
  3118. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3119. ac_tool_warned=yes ;;
  3120. esac
  3121. CC=$ac_ct_CC
  3122. fi
  3123. else
  3124. CC="$ac_cv_prog_CC"
  3125. fi
  3126. if test -z "$CC"; then
  3127. if test -n "$ac_tool_prefix"; then
  3128. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3129. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3130. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3131. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3132. if test "${ac_cv_prog_CC+set}" = set; then
  3133. echo $ECHO_N "(cached) $ECHO_C" >&6
  3134. else
  3135. if test -n "$CC"; then
  3136. ac_cv_prog_CC="$CC" # Let the user override the test.
  3137. else
  3138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3139. for as_dir in $PATH
  3140. do
  3141. IFS=$as_save_IFS
  3142. test -z "$as_dir" && as_dir=.
  3143. for ac_exec_ext in '' $ac_executable_extensions; do
  3144. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3145. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3146. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3147. break 2
  3148. fi
  3149. done
  3150. done
  3151. IFS=$as_save_IFS
  3152. fi
  3153. fi
  3154. CC=$ac_cv_prog_CC
  3155. if test -n "$CC"; then
  3156. { echo "$as_me:$LINENO: result: $CC" >&5
  3157. echo "${ECHO_T}$CC" >&6; }
  3158. else
  3159. { echo "$as_me:$LINENO: result: no" >&5
  3160. echo "${ECHO_T}no" >&6; }
  3161. fi
  3162. fi
  3163. fi
  3164. if test -z "$CC"; then
  3165. # Extract the first word of "cc", so it can be a program name with args.
  3166. set dummy cc; ac_word=$2
  3167. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3168. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3169. if test "${ac_cv_prog_CC+set}" = set; then
  3170. echo $ECHO_N "(cached) $ECHO_C" >&6
  3171. else
  3172. if test -n "$CC"; then
  3173. ac_cv_prog_CC="$CC" # Let the user override the test.
  3174. else
  3175. ac_prog_rejected=no
  3176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3177. for as_dir in $PATH
  3178. do
  3179. IFS=$as_save_IFS
  3180. test -z "$as_dir" && as_dir=.
  3181. for ac_exec_ext in '' $ac_executable_extensions; do
  3182. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3183. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3184. ac_prog_rejected=yes
  3185. continue
  3186. fi
  3187. ac_cv_prog_CC="cc"
  3188. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3189. break 2
  3190. fi
  3191. done
  3192. done
  3193. IFS=$as_save_IFS
  3194. if test $ac_prog_rejected = yes; then
  3195. # We found a bogon in the path, so make sure we never use it.
  3196. set dummy $ac_cv_prog_CC
  3197. shift
  3198. if test $# != 0; then
  3199. # We chose a different compiler from the bogus one.
  3200. # However, it has the same basename, so the bogon will be chosen
  3201. # first if we set CC to just the basename; use the full file name.
  3202. shift
  3203. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3204. fi
  3205. fi
  3206. fi
  3207. fi
  3208. CC=$ac_cv_prog_CC
  3209. if test -n "$CC"; then
  3210. { echo "$as_me:$LINENO: result: $CC" >&5
  3211. echo "${ECHO_T}$CC" >&6; }
  3212. else
  3213. { echo "$as_me:$LINENO: result: no" >&5
  3214. echo "${ECHO_T}no" >&6; }
  3215. fi
  3216. fi
  3217. if test -z "$CC"; then
  3218. if test -n "$ac_tool_prefix"; then
  3219. for ac_prog in cl.exe
  3220. do
  3221. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3222. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3223. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3224. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3225. if test "${ac_cv_prog_CC+set}" = set; then
  3226. echo $ECHO_N "(cached) $ECHO_C" >&6
  3227. else
  3228. if test -n "$CC"; then
  3229. ac_cv_prog_CC="$CC" # Let the user override the test.
  3230. else
  3231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3232. for as_dir in $PATH
  3233. do
  3234. IFS=$as_save_IFS
  3235. test -z "$as_dir" && as_dir=.
  3236. for ac_exec_ext in '' $ac_executable_extensions; do
  3237. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3238. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3239. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3240. break 2
  3241. fi
  3242. done
  3243. done
  3244. IFS=$as_save_IFS
  3245. fi
  3246. fi
  3247. CC=$ac_cv_prog_CC
  3248. if test -n "$CC"; then
  3249. { echo "$as_me:$LINENO: result: $CC" >&5
  3250. echo "${ECHO_T}$CC" >&6; }
  3251. else
  3252. { echo "$as_me:$LINENO: result: no" >&5
  3253. echo "${ECHO_T}no" >&6; }
  3254. fi
  3255. test -n "$CC" && break
  3256. done
  3257. fi
  3258. if test -z "$CC"; then
  3259. ac_ct_CC=$CC
  3260. for ac_prog in cl.exe
  3261. do
  3262. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3263. set dummy $ac_prog; ac_word=$2
  3264. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3265. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3266. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3267. echo $ECHO_N "(cached) $ECHO_C" >&6
  3268. else
  3269. if test -n "$ac_ct_CC"; then
  3270. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3271. else
  3272. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3273. for as_dir in $PATH
  3274. do
  3275. IFS=$as_save_IFS
  3276. test -z "$as_dir" && as_dir=.
  3277. for ac_exec_ext in '' $ac_executable_extensions; do
  3278. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3279. ac_cv_prog_ac_ct_CC="$ac_prog"
  3280. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3281. break 2
  3282. fi
  3283. done
  3284. done
  3285. IFS=$as_save_IFS
  3286. fi
  3287. fi
  3288. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3289. if test -n "$ac_ct_CC"; then
  3290. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3291. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3292. else
  3293. { echo "$as_me:$LINENO: result: no" >&5
  3294. echo "${ECHO_T}no" >&6; }
  3295. fi
  3296. test -n "$ac_ct_CC" && break
  3297. done
  3298. if test "x$ac_ct_CC" = x; then
  3299. CC=""
  3300. else
  3301. case $cross_compiling:$ac_tool_warned in
  3302. yes:)
  3303. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3304. whose name does not start with the host triplet. If you think this
  3305. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3306. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3307. whose name does not start with the host triplet. If you think this
  3308. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3309. ac_tool_warned=yes ;;
  3310. esac
  3311. CC=$ac_ct_CC
  3312. fi
  3313. fi
  3314. fi
  3315. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3316. See \`config.log' for more details." >&5
  3317. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3318. See \`config.log' for more details." >&2;}
  3319. { (exit 1); exit 1; }; }
  3320. # Provide some information about the compiler.
  3321. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3322. ac_compiler=`set X $ac_compile; echo $2`
  3323. { (ac_try="$ac_compiler --version >&5"
  3324. case "(($ac_try" in
  3325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3326. *) ac_try_echo=$ac_try;;
  3327. esac
  3328. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3329. (eval "$ac_compiler --version >&5") 2>&5
  3330. ac_status=$?
  3331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3332. (exit $ac_status); }
  3333. { (ac_try="$ac_compiler -v >&5"
  3334. case "(($ac_try" in
  3335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3336. *) ac_try_echo=$ac_try;;
  3337. esac
  3338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3339. (eval "$ac_compiler -v >&5") 2>&5
  3340. ac_status=$?
  3341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3342. (exit $ac_status); }
  3343. { (ac_try="$ac_compiler -V >&5"
  3344. case "(($ac_try" in
  3345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3346. *) ac_try_echo=$ac_try;;
  3347. esac
  3348. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3349. (eval "$ac_compiler -V >&5") 2>&5
  3350. ac_status=$?
  3351. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3352. (exit $ac_status); }
  3353. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3354. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3355. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3356. echo $ECHO_N "(cached) $ECHO_C" >&6
  3357. else
  3358. cat >conftest.$ac_ext <<_ACEOF
  3359. /* confdefs.h. */
  3360. _ACEOF
  3361. cat confdefs.h >>conftest.$ac_ext
  3362. cat >>conftest.$ac_ext <<_ACEOF
  3363. /* end confdefs.h. */
  3364. int
  3365. main ()
  3366. {
  3367. #ifndef __GNUC__
  3368. choke me
  3369. #endif
  3370. ;
  3371. return 0;
  3372. }
  3373. _ACEOF
  3374. rm -f conftest.$ac_objext
  3375. if { (ac_try="$ac_compile"
  3376. case "(($ac_try" in
  3377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3378. *) ac_try_echo=$ac_try;;
  3379. esac
  3380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3381. (eval "$ac_compile") 2>conftest.er1
  3382. ac_status=$?
  3383. grep -v '^ *+' conftest.er1 >conftest.err
  3384. rm -f conftest.er1
  3385. cat conftest.err >&5
  3386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3387. (exit $ac_status); } && {
  3388. test -z "$ac_c_werror_flag" ||
  3389. test ! -s conftest.err
  3390. } && test -s conftest.$ac_objext; then
  3391. ac_compiler_gnu=yes
  3392. else
  3393. echo "$as_me: failed program was:" >&5
  3394. sed 's/^/| /' conftest.$ac_ext >&5
  3395. ac_compiler_gnu=no
  3396. fi
  3397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3398. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3399. fi
  3400. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3401. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3402. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3403. ac_test_CFLAGS=${CFLAGS+set}
  3404. ac_save_CFLAGS=$CFLAGS
  3405. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3406. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3407. if test "${ac_cv_prog_cc_g+set}" = set; then
  3408. echo $ECHO_N "(cached) $ECHO_C" >&6
  3409. else
  3410. ac_save_c_werror_flag=$ac_c_werror_flag
  3411. ac_c_werror_flag=yes
  3412. ac_cv_prog_cc_g=no
  3413. CFLAGS="-g"
  3414. cat >conftest.$ac_ext <<_ACEOF
  3415. /* confdefs.h. */
  3416. _ACEOF
  3417. cat confdefs.h >>conftest.$ac_ext
  3418. cat >>conftest.$ac_ext <<_ACEOF
  3419. /* end confdefs.h. */
  3420. int
  3421. main ()
  3422. {
  3423. ;
  3424. return 0;
  3425. }
  3426. _ACEOF
  3427. rm -f conftest.$ac_objext
  3428. if { (ac_try="$ac_compile"
  3429. case "(($ac_try" in
  3430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3431. *) ac_try_echo=$ac_try;;
  3432. esac
  3433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3434. (eval "$ac_compile") 2>conftest.er1
  3435. ac_status=$?
  3436. grep -v '^ *+' conftest.er1 >conftest.err
  3437. rm -f conftest.er1
  3438. cat conftest.err >&5
  3439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3440. (exit $ac_status); } && {
  3441. test -z "$ac_c_werror_flag" ||
  3442. test ! -s conftest.err
  3443. } && test -s conftest.$ac_objext; then
  3444. ac_cv_prog_cc_g=yes
  3445. else
  3446. echo "$as_me: failed program was:" >&5
  3447. sed 's/^/| /' conftest.$ac_ext >&5
  3448. CFLAGS=""
  3449. cat >conftest.$ac_ext <<_ACEOF
  3450. /* confdefs.h. */
  3451. _ACEOF
  3452. cat confdefs.h >>conftest.$ac_ext
  3453. cat >>conftest.$ac_ext <<_ACEOF
  3454. /* end confdefs.h. */
  3455. int
  3456. main ()
  3457. {
  3458. ;
  3459. return 0;
  3460. }
  3461. _ACEOF
  3462. rm -f conftest.$ac_objext
  3463. if { (ac_try="$ac_compile"
  3464. case "(($ac_try" in
  3465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3466. *) ac_try_echo=$ac_try;;
  3467. esac
  3468. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3469. (eval "$ac_compile") 2>conftest.er1
  3470. ac_status=$?
  3471. grep -v '^ *+' conftest.er1 >conftest.err
  3472. rm -f conftest.er1
  3473. cat conftest.err >&5
  3474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3475. (exit $ac_status); } && {
  3476. test -z "$ac_c_werror_flag" ||
  3477. test ! -s conftest.err
  3478. } && test -s conftest.$ac_objext; then
  3479. :
  3480. else
  3481. echo "$as_me: failed program was:" >&5
  3482. sed 's/^/| /' conftest.$ac_ext >&5
  3483. ac_c_werror_flag=$ac_save_c_werror_flag
  3484. CFLAGS="-g"
  3485. cat >conftest.$ac_ext <<_ACEOF
  3486. /* confdefs.h. */
  3487. _ACEOF
  3488. cat confdefs.h >>conftest.$ac_ext
  3489. cat >>conftest.$ac_ext <<_ACEOF
  3490. /* end confdefs.h. */
  3491. int
  3492. main ()
  3493. {
  3494. ;
  3495. return 0;
  3496. }
  3497. _ACEOF
  3498. rm -f conftest.$ac_objext
  3499. if { (ac_try="$ac_compile"
  3500. case "(($ac_try" in
  3501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3502. *) ac_try_echo=$ac_try;;
  3503. esac
  3504. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3505. (eval "$ac_compile") 2>conftest.er1
  3506. ac_status=$?
  3507. grep -v '^ *+' conftest.er1 >conftest.err
  3508. rm -f conftest.er1
  3509. cat conftest.err >&5
  3510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3511. (exit $ac_status); } && {
  3512. test -z "$ac_c_werror_flag" ||
  3513. test ! -s conftest.err
  3514. } && test -s conftest.$ac_objext; then
  3515. ac_cv_prog_cc_g=yes
  3516. else
  3517. echo "$as_me: failed program was:" >&5
  3518. sed 's/^/| /' conftest.$ac_ext >&5
  3519. fi
  3520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3521. fi
  3522. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3523. fi
  3524. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3525. ac_c_werror_flag=$ac_save_c_werror_flag
  3526. fi
  3527. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3528. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3529. if test "$ac_test_CFLAGS" = set; then
  3530. CFLAGS=$ac_save_CFLAGS
  3531. elif test $ac_cv_prog_cc_g = yes; then
  3532. if test "$GCC" = yes; then
  3533. CFLAGS="-g -O2"
  3534. else
  3535. CFLAGS="-g"
  3536. fi
  3537. else
  3538. if test "$GCC" = yes; then
  3539. CFLAGS="-O2"
  3540. else
  3541. CFLAGS=
  3542. fi
  3543. fi
  3544. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3545. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3546. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3547. echo $ECHO_N "(cached) $ECHO_C" >&6
  3548. else
  3549. ac_cv_prog_cc_c89=no
  3550. ac_save_CC=$CC
  3551. cat >conftest.$ac_ext <<_ACEOF
  3552. /* confdefs.h. */
  3553. _ACEOF
  3554. cat confdefs.h >>conftest.$ac_ext
  3555. cat >>conftest.$ac_ext <<_ACEOF
  3556. /* end confdefs.h. */
  3557. #include <stdarg.h>
  3558. #include <stdio.h>
  3559. #include <sys/types.h>
  3560. #include <sys/stat.h>
  3561. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3562. struct buf { int x; };
  3563. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3564. static char *e (p, i)
  3565. char **p;
  3566. int i;
  3567. {
  3568. return p[i];
  3569. }
  3570. static char *f (char * (*g) (char **, int), char **p, ...)
  3571. {
  3572. char *s;
  3573. va_list v;
  3574. va_start (v,p);
  3575. s = g (p, va_arg (v,int));
  3576. va_end (v);
  3577. return s;
  3578. }
  3579. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3580. function prototypes and stuff, but not '\xHH' hex character constants.
  3581. These don't provoke an error unfortunately, instead are silently treated
  3582. as 'x'. The following induces an error, until -std is added to get
  3583. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3584. array size at least. It's necessary to write '\x00'==0 to get something
  3585. that's true only with -std. */
  3586. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3587. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3588. inside strings and character constants. */
  3589. #define FOO(x) 'x'
  3590. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3591. int test (int i, double x);
  3592. struct s1 {int (*f) (int a);};
  3593. struct s2 {int (*f) (double a);};
  3594. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3595. int argc;
  3596. char **argv;
  3597. int
  3598. main ()
  3599. {
  3600. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3601. ;
  3602. return 0;
  3603. }
  3604. _ACEOF
  3605. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3606. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3607. do
  3608. CC="$ac_save_CC $ac_arg"
  3609. rm -f conftest.$ac_objext
  3610. if { (ac_try="$ac_compile"
  3611. case "(($ac_try" in
  3612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3613. *) ac_try_echo=$ac_try;;
  3614. esac
  3615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3616. (eval "$ac_compile") 2>conftest.er1
  3617. ac_status=$?
  3618. grep -v '^ *+' conftest.er1 >conftest.err
  3619. rm -f conftest.er1
  3620. cat conftest.err >&5
  3621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3622. (exit $ac_status); } && {
  3623. test -z "$ac_c_werror_flag" ||
  3624. test ! -s conftest.err
  3625. } && test -s conftest.$ac_objext; then
  3626. ac_cv_prog_cc_c89=$ac_arg
  3627. else
  3628. echo "$as_me: failed program was:" >&5
  3629. sed 's/^/| /' conftest.$ac_ext >&5
  3630. fi
  3631. rm -f core conftest.err conftest.$ac_objext
  3632. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3633. done
  3634. rm -f conftest.$ac_ext
  3635. CC=$ac_save_CC
  3636. fi
  3637. # AC_CACHE_VAL
  3638. case "x$ac_cv_prog_cc_c89" in
  3639. x)
  3640. { echo "$as_me:$LINENO: result: none needed" >&5
  3641. echo "${ECHO_T}none needed" >&6; } ;;
  3642. xno)
  3643. { echo "$as_me:$LINENO: result: unsupported" >&5
  3644. echo "${ECHO_T}unsupported" >&6; } ;;
  3645. *)
  3646. CC="$CC $ac_cv_prog_cc_c89"
  3647. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3648. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3649. esac
  3650. ac_ext=c
  3651. ac_cpp='$CPP $CPPFLAGS'
  3652. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3653. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3654. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3655. depcc="$CC" am_compiler_list=
  3656. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3657. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3658. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3659. echo $ECHO_N "(cached) $ECHO_C" >&6
  3660. else
  3661. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3662. # We make a subdir and do the tests there. Otherwise we can end up
  3663. # making bogus files that we don't know about and never remove. For
  3664. # instance it was reported that on HP-UX the gcc test will end up
  3665. # making a dummy file named `D' -- because `-MD' means `put the output
  3666. # in D'.
  3667. mkdir conftest.dir
  3668. # Copy depcomp to subdir because otherwise we won't find it if we're
  3669. # using a relative directory.
  3670. cp "$am_depcomp" conftest.dir
  3671. cd conftest.dir
  3672. # We will build objects and dependencies in a subdirectory because
  3673. # it helps to detect inapplicable dependency modes. For instance
  3674. # both Tru64's cc and ICC support -MD to output dependencies as a
  3675. # side effect of compilation, but ICC will put the dependencies in
  3676. # the current directory while Tru64 will put them in the object
  3677. # directory.
  3678. mkdir sub
  3679. am_cv_CC_dependencies_compiler_type=none
  3680. if test "$am_compiler_list" = ""; then
  3681. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3682. fi
  3683. for depmode in $am_compiler_list; do
  3684. # Setup a source with many dependencies, because some compilers
  3685. # like to wrap large dependency lists on column 80 (with \), and
  3686. # we should not choose a depcomp mode which is confused by this.
  3687. #
  3688. # We need to recreate these files for each test, as the compiler may
  3689. # overwrite some of them when testing with obscure command lines.
  3690. # This happens at least with the AIX C compiler.
  3691. : > sub/conftest.c
  3692. for i in 1 2 3 4 5 6; do
  3693. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3694. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3695. # Solaris 8's {/usr,}/bin/sh.
  3696. touch sub/conftst$i.h
  3697. done
  3698. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3699. case $depmode in
  3700. nosideeffect)
  3701. # after this tag, mechanisms are not by side-effect, so they'll
  3702. # only be used when explicitly requested
  3703. if test "x$enable_dependency_tracking" = xyes; then
  3704. continue
  3705. else
  3706. break
  3707. fi
  3708. ;;
  3709. none) break ;;
  3710. esac
  3711. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3712. # mode. It turns out that the SunPro C++ compiler does not properly
  3713. # handle `-M -o', and we need to detect this.
  3714. if depmode=$depmode \
  3715. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3716. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3717. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3718. >/dev/null 2>conftest.err &&
  3719. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3720. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3721. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3722. # icc doesn't choke on unknown options, it will just issue warnings
  3723. # or remarks (even with -Werror). So we grep stderr for any message
  3724. # that says an option was ignored or not supported.
  3725. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3726. # icc: Command line warning: ignoring option '-M'; no argument required
  3727. # The diagnosis changed in icc 8.0:
  3728. # icc: Command line remark: option '-MP' not supported
  3729. if (grep 'ignoring option' conftest.err ||
  3730. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3731. am_cv_CC_dependencies_compiler_type=$depmode
  3732. break
  3733. fi
  3734. fi
  3735. done
  3736. cd ..
  3737. rm -rf conftest.dir
  3738. else
  3739. am_cv_CC_dependencies_compiler_type=none
  3740. fi
  3741. fi
  3742. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3743. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3744. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3745. if
  3746. test "x$enable_dependency_tracking" != xno \
  3747. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3748. am__fastdepCC_TRUE=
  3749. am__fastdepCC_FALSE='#'
  3750. else
  3751. am__fastdepCC_TRUE='#'
  3752. am__fastdepCC_FALSE=
  3753. fi
  3754. # Find a good install program. We prefer a C program (faster),
  3755. # so one script is as good as another. But avoid the broken or
  3756. # incompatible versions:
  3757. # SysV /etc/install, /usr/sbin/install
  3758. # SunOS /usr/etc/install
  3759. # IRIX /sbin/install
  3760. # AIX /bin/install
  3761. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3762. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3763. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3764. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3765. # OS/2's system install, which has a completely different semantic
  3766. # ./install, which can be erroneously created by make from ./install.sh.
  3767. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3768. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3769. if test -z "$INSTALL"; then
  3770. if test "${ac_cv_path_install+set}" = set; then
  3771. echo $ECHO_N "(cached) $ECHO_C" >&6
  3772. else
  3773. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3774. for as_dir in $PATH
  3775. do
  3776. IFS=$as_save_IFS
  3777. test -z "$as_dir" && as_dir=.
  3778. # Account for people who put trailing slashes in PATH elements.
  3779. case $as_dir/ in
  3780. ./ | .// | /cC/* | \
  3781. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3782. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3783. /usr/ucb/* ) ;;
  3784. *)
  3785. # OSF1 and SCO ODT 3.0 have their own names for install.
  3786. # Don't use installbsd from OSF since it installs stuff as root
  3787. # by default.
  3788. for ac_prog in ginstall scoinst install; do
  3789. for ac_exec_ext in '' $ac_executable_extensions; do
  3790. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3791. if test $ac_prog = install &&
  3792. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3793. # AIX install. It has an incompatible calling convention.
  3794. :
  3795. elif test $ac_prog = install &&
  3796. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3797. # program-specific install script used by HP pwplus--don't use.
  3798. :
  3799. else
  3800. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3801. break 3
  3802. fi
  3803. fi
  3804. done
  3805. done
  3806. ;;
  3807. esac
  3808. done
  3809. IFS=$as_save_IFS
  3810. fi
  3811. if test "${ac_cv_path_install+set}" = set; then
  3812. INSTALL=$ac_cv_path_install
  3813. else
  3814. # As a last resort, use the slow shell script. Don't cache a
  3815. # value for INSTALL within a source directory, because that will
  3816. # break other packages using the cache if that directory is
  3817. # removed, or if the value is a relative name.
  3818. INSTALL=$ac_install_sh
  3819. fi
  3820. fi
  3821. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3822. echo "${ECHO_T}$INSTALL" >&6; }
  3823. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3824. # It thinks the first close brace ends the variable substitution.
  3825. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3826. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3827. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3828. if test -n "$ac_tool_prefix"; then
  3829. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3830. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3831. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3832. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3833. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3834. echo $ECHO_N "(cached) $ECHO_C" >&6
  3835. else
  3836. if test -n "$RANLIB"; then
  3837. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3838. else
  3839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3840. for as_dir in $PATH
  3841. do
  3842. IFS=$as_save_IFS
  3843. test -z "$as_dir" && as_dir=.
  3844. for ac_exec_ext in '' $ac_executable_extensions; do
  3845. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3846. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3847. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3848. break 2
  3849. fi
  3850. done
  3851. done
  3852. IFS=$as_save_IFS
  3853. fi
  3854. fi
  3855. RANLIB=$ac_cv_prog_RANLIB
  3856. if test -n "$RANLIB"; then
  3857. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3858. echo "${ECHO_T}$RANLIB" >&6; }
  3859. else
  3860. { echo "$as_me:$LINENO: result: no" >&5
  3861. echo "${ECHO_T}no" >&6; }
  3862. fi
  3863. fi
  3864. if test -z "$ac_cv_prog_RANLIB"; then
  3865. ac_ct_RANLIB=$RANLIB
  3866. # Extract the first word of "ranlib", so it can be a program name with args.
  3867. set dummy ranlib; ac_word=$2
  3868. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3869. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3870. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3871. echo $ECHO_N "(cached) $ECHO_C" >&6
  3872. else
  3873. if test -n "$ac_ct_RANLIB"; then
  3874. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3875. else
  3876. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3877. for as_dir in $PATH
  3878. do
  3879. IFS=$as_save_IFS
  3880. test -z "$as_dir" && as_dir=.
  3881. for ac_exec_ext in '' $ac_executable_extensions; do
  3882. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3883. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3884. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3885. break 2
  3886. fi
  3887. done
  3888. done
  3889. IFS=$as_save_IFS
  3890. fi
  3891. fi
  3892. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3893. if test -n "$ac_ct_RANLIB"; then
  3894. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3895. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3896. else
  3897. { echo "$as_me:$LINENO: result: no" >&5
  3898. echo "${ECHO_T}no" >&6; }
  3899. fi
  3900. if test "x$ac_ct_RANLIB" = x; then
  3901. RANLIB=":"
  3902. else
  3903. case $cross_compiling:$ac_tool_warned in
  3904. yes:)
  3905. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3906. whose name does not start with the host triplet. If you think this
  3907. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3908. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3909. whose name does not start with the host triplet. If you think this
  3910. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3911. ac_tool_warned=yes ;;
  3912. esac
  3913. RANLIB=$ac_ct_RANLIB
  3914. fi
  3915. else
  3916. RANLIB="$ac_cv_prog_RANLIB"
  3917. fi
  3918. for ac_prog in 'bison -y' byacc
  3919. do
  3920. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3921. set dummy $ac_prog; ac_word=$2
  3922. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3923. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3924. if test "${ac_cv_prog_YACC+set}" = set; then
  3925. echo $ECHO_N "(cached) $ECHO_C" >&6
  3926. else
  3927. if test -n "$YACC"; then
  3928. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3929. else
  3930. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3931. for as_dir in $PATH
  3932. do
  3933. IFS=$as_save_IFS
  3934. test -z "$as_dir" && as_dir=.
  3935. for ac_exec_ext in '' $ac_executable_extensions; do
  3936. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3937. ac_cv_prog_YACC="$ac_prog"
  3938. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3939. break 2
  3940. fi
  3941. done
  3942. done
  3943. IFS=$as_save_IFS
  3944. fi
  3945. fi
  3946. YACC=$ac_cv_prog_YACC
  3947. if test -n "$YACC"; then
  3948. { echo "$as_me:$LINENO: result: $YACC" >&5
  3949. echo "${ECHO_T}$YACC" >&6; }
  3950. else
  3951. { echo "$as_me:$LINENO: result: no" >&5
  3952. echo "${ECHO_T}no" >&6; }
  3953. fi
  3954. test -n "$YACC" && break
  3955. done
  3956. test -n "$YACC" || YACC="yacc"
  3957. # Checks for libraries.
  3958. if test "x$with_libxml2" = "xyes"; then
  3959. # Check whether --with-xml-prefix was given.
  3960. if test "${with_xml_prefix+set}" = set; then
  3961. withval=$with_xml_prefix; xml_config_prefix="$withval"
  3962. else
  3963. xml_config_prefix=""
  3964. fi
  3965. # Check whether --with-xml-exec-prefix was given.
  3966. if test "${with_xml_exec_prefix+set}" = set; then
  3967. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  3968. else
  3969. xml_config_exec_prefix=""
  3970. fi
  3971. # Check whether --enable-xmltest was given.
  3972. if test "${enable_xmltest+set}" = set; then
  3973. enableval=$enable_xmltest;
  3974. else
  3975. enable_xmltest=yes
  3976. fi
  3977. if test x$xml_config_exec_prefix != x ; then
  3978. xml_config_args="$xml_config_args"
  3979. if test x${XML2_CONFIG+set} != xset ; then
  3980. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  3981. fi
  3982. fi
  3983. if test x$xml_config_prefix != x ; then
  3984. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  3985. if test x${XML2_CONFIG+set} != xset ; then
  3986. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  3987. fi
  3988. fi
  3989. # Extract the first word of "xml2-config", so it can be a program name with args.
  3990. set dummy xml2-config; ac_word=$2
  3991. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3992. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3993. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  3994. echo $ECHO_N "(cached) $ECHO_C" >&6
  3995. else
  3996. case $XML2_CONFIG in
  3997. [\\/]* | ?:[\\/]*)
  3998. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  3999. ;;
  4000. *)
  4001. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4002. for as_dir in $PATH
  4003. do
  4004. IFS=$as_save_IFS
  4005. test -z "$as_dir" && as_dir=.
  4006. for ac_exec_ext in '' $ac_executable_extensions; do
  4007. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4008. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4009. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4010. break 2
  4011. fi
  4012. done
  4013. done
  4014. IFS=$as_save_IFS
  4015. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4016. ;;
  4017. esac
  4018. fi
  4019. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4020. if test -n "$XML2_CONFIG"; then
  4021. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4022. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4023. else
  4024. { echo "$as_me:$LINENO: result: no" >&5
  4025. echo "${ECHO_T}no" >&6; }
  4026. fi
  4027. min_xml_version=2.6.24
  4028. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4029. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4030. no_xml=""
  4031. if test "$XML2_CONFIG" = "no" ; then
  4032. no_xml=yes
  4033. else
  4034. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4035. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4036. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4037. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4038. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4039. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4040. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4041. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4042. if test "x$enable_xmltest" = "xyes" ; then
  4043. ac_save_CPPFLAGS="$CPPFLAGS"
  4044. ac_save_LIBS="$LIBS"
  4045. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4046. LIBS="$XML_LIBS $LIBS"
  4047. rm -f conf.xmltest
  4048. if test "$cross_compiling" = yes; then
  4049. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4050. else
  4051. cat >conftest.$ac_ext <<_ACEOF
  4052. /* confdefs.h. */
  4053. _ACEOF
  4054. cat confdefs.h >>conftest.$ac_ext
  4055. cat >>conftest.$ac_ext <<_ACEOF
  4056. /* end confdefs.h. */
  4057. #include <stdlib.h>
  4058. #include <stdio.h>
  4059. #include <string.h>
  4060. #include <libxml/xmlversion.h>
  4061. int
  4062. main()
  4063. {
  4064. int xml_major_version, xml_minor_version, xml_micro_version;
  4065. int major, minor, micro;
  4066. char *tmp_version;
  4067. system("touch conf.xmltest");
  4068. /* Capture xml2-config output via autoconf/configure variables */
  4069. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4070. tmp_version = (char *)strdup("$min_xml_version");
  4071. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4072. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4073. exit(1);
  4074. }
  4075. free(tmp_version);
  4076. /* Capture the version information from the header files */
  4077. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  4078. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  4079. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  4080. exit(1);
  4081. }
  4082. free(tmp_version);
  4083. /* Compare xml2-config output to the libxml headers */
  4084. if ((xml_major_version != $xml_config_major_version) ||
  4085. (xml_minor_version != $xml_config_minor_version) ||
  4086. (xml_micro_version != $xml_config_micro_version))
  4087. {
  4088. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  4089. xml_major_version, xml_minor_version, xml_micro_version);
  4090. printf("*** xml2-config (version %d.%d.%d)\n",
  4091. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  4092. return 1;
  4093. }
  4094. /* Compare the headers to the library to make sure we match */
  4095. /* Less than ideal -- doesn't provide us with return value feedback,
  4096. * only exits if there's a serious mismatch between header and library.
  4097. */
  4098. LIBXML_TEST_VERSION;
  4099. /* Test that the library is greater than our minimum version */
  4100. if ((xml_major_version > major) ||
  4101. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  4102. ((xml_major_version == major) && (xml_minor_version == minor) &&
  4103. (xml_micro_version >= micro)))
  4104. {
  4105. return 0;
  4106. }
  4107. else
  4108. {
  4109. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  4110. xml_major_version, xml_minor_version, xml_micro_version);
  4111. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  4112. major, minor, micro);
  4113. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  4114. printf("***\n");
  4115. printf("*** If you have already installed a sufficiently new version, this error\n");
  4116. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  4117. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4118. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  4119. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  4120. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4121. printf("*** so that the correct libraries are found at run-time))\n");
  4122. }
  4123. return 1;
  4124. }
  4125. _ACEOF
  4126. rm -f conftest$ac_exeext
  4127. if { (ac_try="$ac_link"
  4128. case "(($ac_try" in
  4129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4130. *) ac_try_echo=$ac_try;;
  4131. esac
  4132. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4133. (eval "$ac_link") 2>&5
  4134. ac_status=$?
  4135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4136. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4137. { (case "(($ac_try" in
  4138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4139. *) ac_try_echo=$ac_try;;
  4140. esac
  4141. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4142. (eval "$ac_try") 2>&5
  4143. ac_status=$?
  4144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4145. (exit $ac_status); }; }; then
  4146. :
  4147. else
  4148. echo "$as_me: program exited with status $ac_status" >&5
  4149. echo "$as_me: failed program was:" >&5
  4150. sed 's/^/| /' conftest.$ac_ext >&5
  4151. ( exit $ac_status )
  4152. no_xml=yes
  4153. fi
  4154. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4155. fi
  4156. CPPFLAGS="$ac_save_CPPFLAGS"
  4157. LIBS="$ac_save_LIBS"
  4158. fi
  4159. fi
  4160. if test "x$no_xml" = x ; then
  4161. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  4162. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  4163. have_libxml2=yes
  4164. else
  4165. { echo "$as_me:$LINENO: result: no" >&5
  4166. echo "${ECHO_T}no" >&6; }
  4167. if test "$XML2_CONFIG" = "no" ; then
  4168. echo "*** The xml2-config script installed by LIBXML could not be found"
  4169. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  4170. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  4171. echo "*** full path to xml2-config."
  4172. else
  4173. if test -f conf.xmltest ; then
  4174. :
  4175. else
  4176. echo "*** Could not run libxml test program, checking why..."
  4177. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4178. LIBS="$LIBS $XML_LIBS"
  4179. cat >conftest.$ac_ext <<_ACEOF
  4180. /* confdefs.h. */
  4181. _ACEOF
  4182. cat confdefs.h >>conftest.$ac_ext
  4183. cat >>conftest.$ac_ext <<_ACEOF
  4184. /* end confdefs.h. */
  4185. #include <libxml/xmlversion.h>
  4186. #include <stdio.h>
  4187. int
  4188. main ()
  4189. {
  4190. LIBXML_TEST_VERSION; return 0;
  4191. ;
  4192. return 0;
  4193. }
  4194. _ACEOF
  4195. rm -f conftest.$ac_objext conftest$ac_exeext
  4196. if { (ac_try="$ac_link"
  4197. case "(($ac_try" in
  4198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4199. *) ac_try_echo=$ac_try;;
  4200. esac
  4201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4202. (eval "$ac_link") 2>conftest.er1
  4203. ac_status=$?
  4204. grep -v '^ *+' conftest.er1 >conftest.err
  4205. rm -f conftest.er1
  4206. cat conftest.err >&5
  4207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4208. (exit $ac_status); } && {
  4209. test -z "$ac_c_werror_flag" ||
  4210. test ! -s conftest.err
  4211. } && test -s conftest$ac_exeext &&
  4212. $as_test_x conftest$ac_exeext; then
  4213. echo "*** The test program compiled, but did not run. This usually means"
  4214. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  4215. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  4216. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4217. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4218. echo "*** is required on your system"
  4219. echo "***"
  4220. echo "*** If you have an old version installed, it is best to remove it, although"
  4221. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4222. else
  4223. echo "$as_me: failed program was:" >&5
  4224. sed 's/^/| /' conftest.$ac_ext >&5
  4225. echo "*** The test program failed to compile or link. See the file config.log for the"
  4226. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  4227. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  4228. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  4229. fi
  4230. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4231. conftest$ac_exeext conftest.$ac_ext
  4232. CPPFLAGS="$ac_save_CPPFLAGS"
  4233. LIBS="$ac_save_LIBS"
  4234. fi
  4235. fi
  4236. XML_CPPFLAGS=""
  4237. XML_LIBS=""
  4238. :
  4239. fi
  4240. rm -f conf.xmltest
  4241. if test "x$have_libxml2" = "xyes"; then
  4242. cat >>confdefs.h <<\_ACEOF
  4243. #define HAVE_LIBXML2 1
  4244. _ACEOF
  4245. fi
  4246. fi
  4247. if test "x$with_gnutls" = "xyes"; then
  4248. # Check whether --with-libgnutls-prefix was given.
  4249. if test "${with_libgnutls_prefix+set}" = set; then
  4250. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  4251. else
  4252. libgnutls_config_prefix=""
  4253. fi
  4254. if test x$libgnutls_config_prefix != x ; then
  4255. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  4256. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  4257. fi
  4258. fi
  4259. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  4260. set dummy libgnutls-config; ac_word=$2
  4261. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4262. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4263. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  4264. echo $ECHO_N "(cached) $ECHO_C" >&6
  4265. else
  4266. case $LIBGNUTLS_CONFIG in
  4267. [\\/]* | ?:[\\/]*)
  4268. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  4269. ;;
  4270. *)
  4271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4272. for as_dir in $PATH
  4273. do
  4274. IFS=$as_save_IFS
  4275. test -z "$as_dir" && as_dir=.
  4276. for ac_exec_ext in '' $ac_executable_extensions; do
  4277. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4278. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4279. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4280. break 2
  4281. fi
  4282. done
  4283. done
  4284. IFS=$as_save_IFS
  4285. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  4286. ;;
  4287. esac
  4288. fi
  4289. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  4290. if test -n "$LIBGNUTLS_CONFIG"; then
  4291. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  4292. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  4293. else
  4294. { echo "$as_me:$LINENO: result: no" >&5
  4295. echo "${ECHO_T}no" >&6; }
  4296. fi
  4297. min_libgnutls_version=1.2.9
  4298. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  4299. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  4300. no_libgnutls=""
  4301. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4302. no_libgnutls=yes
  4303. else
  4304. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  4305. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  4306. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  4307. ac_save_CFLAGS="$CFLAGS"
  4308. ac_save_LIBS="$LIBS"
  4309. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4310. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4311. rm -f conf.libgnutlstest
  4312. if test "$cross_compiling" = yes; then
  4313. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4314. else
  4315. cat >conftest.$ac_ext <<_ACEOF
  4316. /* confdefs.h. */
  4317. _ACEOF
  4318. cat confdefs.h >>conftest.$ac_ext
  4319. cat >>conftest.$ac_ext <<_ACEOF
  4320. /* end confdefs.h. */
  4321. #include <stdio.h>
  4322. #include <stdlib.h>
  4323. #include <string.h>
  4324. #include <gnutls/gnutls.h>
  4325. int
  4326. main ()
  4327. {
  4328. system ("touch conf.libgnutlstest");
  4329. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  4330. {
  4331. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  4332. "$libgnutls_config_version", gnutls_check_version(NULL) );
  4333. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  4334. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  4335. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  4336. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  4337. printf("*** required on your system.\n");
  4338. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  4339. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  4340. printf("*** before re-running configure\n");
  4341. }
  4342. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  4343. {
  4344. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  4345. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  4346. }
  4347. else
  4348. {
  4349. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  4350. {
  4351. return 0;
  4352. }
  4353. else
  4354. {
  4355. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  4356. gnutls_check_version(NULL) );
  4357. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  4358. "$min_libgnutls_version" );
  4359. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  4360. printf("*** \n");
  4361. printf("*** If you have already installed a sufficiently new version, this error\n");
  4362. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  4363. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4364. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  4365. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  4366. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4367. printf("*** so that the correct libraries are found at run-time))\n");
  4368. }
  4369. }
  4370. return 1;
  4371. }
  4372. _ACEOF
  4373. rm -f conftest$ac_exeext
  4374. if { (ac_try="$ac_link"
  4375. case "(($ac_try" in
  4376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4377. *) ac_try_echo=$ac_try;;
  4378. esac
  4379. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4380. (eval "$ac_link") 2>&5
  4381. ac_status=$?
  4382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4383. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4384. { (case "(($ac_try" in
  4385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4386. *) ac_try_echo=$ac_try;;
  4387. esac
  4388. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4389. (eval "$ac_try") 2>&5
  4390. ac_status=$?
  4391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4392. (exit $ac_status); }; }; then
  4393. :
  4394. else
  4395. echo "$as_me: program exited with status $ac_status" >&5
  4396. echo "$as_me: failed program was:" >&5
  4397. sed 's/^/| /' conftest.$ac_ext >&5
  4398. ( exit $ac_status )
  4399. no_libgnutls=yes
  4400. fi
  4401. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4402. fi
  4403. CFLAGS="$ac_save_CFLAGS"
  4404. LIBS="$ac_save_LIBS"
  4405. fi
  4406. if test "x$no_libgnutls" = x ; then
  4407. { echo "$as_me:$LINENO: result: yes" >&5
  4408. echo "${ECHO_T}yes" >&6; }
  4409. have_libgnutls=yes
  4410. else
  4411. if test -f conf.libgnutlstest ; then
  4412. :
  4413. else
  4414. { echo "$as_me:$LINENO: result: no" >&5
  4415. echo "${ECHO_T}no" >&6; }
  4416. fi
  4417. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4418. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  4419. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  4420. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  4421. echo "*** full path to libgnutls-config."
  4422. else
  4423. if test -f conf.libgnutlstest ; then
  4424. :
  4425. else
  4426. echo "*** Could not run libgnutls test program, checking why..."
  4427. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4428. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4429. cat >conftest.$ac_ext <<_ACEOF
  4430. /* confdefs.h. */
  4431. _ACEOF
  4432. cat confdefs.h >>conftest.$ac_ext
  4433. cat >>conftest.$ac_ext <<_ACEOF
  4434. /* end confdefs.h. */
  4435. #include <stdio.h>
  4436. #include <stdlib.h>
  4437. #include <string.h>
  4438. #include <gnutls/gnutls.h>
  4439. int
  4440. main ()
  4441. {
  4442. return !!gnutls_check_version(NULL);
  4443. ;
  4444. return 0;
  4445. }
  4446. _ACEOF
  4447. rm -f conftest.$ac_objext conftest$ac_exeext
  4448. if { (ac_try="$ac_link"
  4449. case "(($ac_try" in
  4450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4451. *) ac_try_echo=$ac_try;;
  4452. esac
  4453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4454. (eval "$ac_link") 2>conftest.er1
  4455. ac_status=$?
  4456. grep -v '^ *+' conftest.er1 >conftest.err
  4457. rm -f conftest.er1
  4458. cat conftest.err >&5
  4459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4460. (exit $ac_status); } && {
  4461. test -z "$ac_c_werror_flag" ||
  4462. test ! -s conftest.err
  4463. } && test -s conftest$ac_exeext &&
  4464. $as_test_x conftest$ac_exeext; then
  4465. echo "*** The test program compiled, but did not run. This usually means"
  4466. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  4467. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  4468. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4469. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4470. echo "*** is required on your system"
  4471. echo "***"
  4472. echo "*** If you have an old version installed, it is best to remove it, although"
  4473. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4474. echo "***"
  4475. else
  4476. echo "$as_me: failed program was:" >&5
  4477. sed 's/^/| /' conftest.$ac_ext >&5
  4478. echo "*** The test program failed to compile or link. See the file config.log for the"
  4479. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  4480. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  4481. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  4482. fi
  4483. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4484. conftest$ac_exeext conftest.$ac_ext
  4485. CFLAGS="$ac_save_CFLAGS"
  4486. LIBS="$ac_save_LIBS"
  4487. fi
  4488. fi
  4489. LIBGNUTLS_CFLAGS=""
  4490. LIBGNUTLS_LIBS=""
  4491. :
  4492. fi
  4493. rm -f conf.libgnutlstest
  4494. if test "x$have_libgnutls" = "xyes"; then
  4495. cat >>confdefs.h <<\_ACEOF
  4496. #define HAVE_LIBGNUTLS 1
  4497. _ACEOF
  4498. fi
  4499. fi
  4500. if test "x$have_libgnutls" = "xyes"; then
  4501. # Check whether --with-libgcrypt-prefix was given.
  4502. if test "${with_libgcrypt_prefix+set}" = set; then
  4503. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  4504. else
  4505. libgcrypt_config_prefix=""
  4506. fi
  4507. if test x$libgcrypt_config_prefix != x ; then
  4508. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  4509. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  4510. fi
  4511. fi
  4512. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  4513. set dummy libgcrypt-config; ac_word=$2
  4514. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4515. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4516. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  4517. echo $ECHO_N "(cached) $ECHO_C" >&6
  4518. else
  4519. case $LIBGCRYPT_CONFIG in
  4520. [\\/]* | ?:[\\/]*)
  4521. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  4522. ;;
  4523. *)
  4524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4525. for as_dir in $PATH
  4526. do
  4527. IFS=$as_save_IFS
  4528. test -z "$as_dir" && as_dir=.
  4529. for ac_exec_ext in '' $ac_executable_extensions; do
  4530. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4531. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4532. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4533. break 2
  4534. fi
  4535. done
  4536. done
  4537. IFS=$as_save_IFS
  4538. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  4539. ;;
  4540. esac
  4541. fi
  4542. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  4543. if test -n "$LIBGCRYPT_CONFIG"; then
  4544. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  4545. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  4546. else
  4547. { echo "$as_me:$LINENO: result: no" >&5
  4548. echo "${ECHO_T}no" >&6; }
  4549. fi
  4550. tmp=1.2.2
  4551. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  4552. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  4553. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  4554. else
  4555. req_libgcrypt_api=0
  4556. min_libgcrypt_version="$tmp"
  4557. fi
  4558. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  4559. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  4560. ok=no
  4561. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  4562. req_major=`echo $min_libgcrypt_version | \
  4563. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  4564. req_minor=`echo $min_libgcrypt_version | \
  4565. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  4566. req_micro=`echo $min_libgcrypt_version | \
  4567. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  4568. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  4569. major=`echo $libgcrypt_config_version | \
  4570. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  4571. minor=`echo $libgcrypt_config_version | \
  4572. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  4573. micro=`echo $libgcrypt_config_version | \
  4574. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  4575. if test "$major" -gt "$req_major"; then
  4576. ok=yes
  4577. else
  4578. if test "$major" -eq "$req_major"; then
  4579. if test "$minor" -gt "$req_minor"; then
  4580. ok=yes
  4581. else
  4582. if test "$minor" -eq "$req_minor"; then
  4583. if test "$micro" -ge "$req_micro"; then
  4584. ok=yes
  4585. fi
  4586. fi
  4587. fi
  4588. fi
  4589. fi
  4590. fi
  4591. if test $ok = yes; then
  4592. { echo "$as_me:$LINENO: result: yes" >&5
  4593. echo "${ECHO_T}yes" >&6; }
  4594. else
  4595. { echo "$as_me:$LINENO: result: no" >&5
  4596. echo "${ECHO_T}no" >&6; }
  4597. fi
  4598. if test $ok = yes; then
  4599. # If we have a recent libgcrypt, we should also check that the
  4600. # API is compatible
  4601. if test "$req_libgcrypt_api" -gt 0 ; then
  4602. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  4603. if test "$tmp" -gt 0 ; then
  4604. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  4605. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  4606. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  4607. { echo "$as_me:$LINENO: result: okay" >&5
  4608. echo "${ECHO_T}okay" >&6; }
  4609. else
  4610. ok=no
  4611. { echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  4612. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6; }
  4613. fi
  4614. fi
  4615. fi
  4616. fi
  4617. if test $ok = yes; then
  4618. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  4619. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  4620. have_libgcrypt=yes
  4621. else
  4622. LIBGCRYPT_CFLAGS=""
  4623. LIBGCRYPT_LIBS=""
  4624. :
  4625. fi
  4626. if test "x$have_libgcrypt" = "xyes"; then
  4627. cat >>confdefs.h <<\_ACEOF
  4628. #define HAVE_LIBGCRYPT 1
  4629. _ACEOF
  4630. fi
  4631. fi
  4632. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  4633. # Check whether --with-openssl-prefix was given.
  4634. if test "${with_openssl_prefix+set}" = set; then
  4635. withval=$with_openssl_prefix; openssl_prefix=$withval
  4636. else
  4637. openssl_prefix=""
  4638. fi
  4639. if test "x$openssl_prefix" = "x"; then
  4640. openssl_prefix="/usr/local"
  4641. fi
  4642. openssl_prefix_lib=$openssl_prefix/lib
  4643. openssl_prefix_include=$openssl_prefix/include
  4644. LIBS_save=$LIBS
  4645. CPPFLAGS_save=$CPPFLAGS
  4646. LIBS="-L$openssl_prefix_lib $LIBS"
  4647. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4648. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4649. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  4650. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4651. echo $ECHO_N "(cached) $ECHO_C" >&6
  4652. else
  4653. ac_check_lib_save_LIBS=$LIBS
  4654. LIBS="-lssl $LIBS"
  4655. cat >conftest.$ac_ext <<_ACEOF
  4656. /* confdefs.h. */
  4657. _ACEOF
  4658. cat confdefs.h >>conftest.$ac_ext
  4659. cat >>conftest.$ac_ext <<_ACEOF
  4660. /* end confdefs.h. */
  4661. /* Override any GCC internal prototype to avoid an error.
  4662. Use char because int might match the return type of a GCC
  4663. builtin and then its argument prototype would still apply. */
  4664. #ifdef __cplusplus
  4665. extern "C"
  4666. #endif
  4667. char SSL_library_init ();
  4668. int
  4669. main ()
  4670. {
  4671. return SSL_library_init ();
  4672. ;
  4673. return 0;
  4674. }
  4675. _ACEOF
  4676. rm -f conftest.$ac_objext conftest$ac_exeext
  4677. if { (ac_try="$ac_link"
  4678. case "(($ac_try" in
  4679. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4680. *) ac_try_echo=$ac_try;;
  4681. esac
  4682. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4683. (eval "$ac_link") 2>conftest.er1
  4684. ac_status=$?
  4685. grep -v '^ *+' conftest.er1 >conftest.err
  4686. rm -f conftest.er1
  4687. cat conftest.err >&5
  4688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4689. (exit $ac_status); } && {
  4690. test -z "$ac_c_werror_flag" ||
  4691. test ! -s conftest.err
  4692. } && test -s conftest$ac_exeext &&
  4693. $as_test_x conftest$ac_exeext; then
  4694. ac_cv_lib_ssl_SSL_library_init=yes
  4695. else
  4696. echo "$as_me: failed program was:" >&5
  4697. sed 's/^/| /' conftest.$ac_ext >&5
  4698. ac_cv_lib_ssl_SSL_library_init=no
  4699. fi
  4700. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4701. conftest$ac_exeext conftest.$ac_ext
  4702. LIBS=$ac_check_lib_save_LIBS
  4703. fi
  4704. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4705. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  4706. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4707. have_openssl=yes; LIBS="-lssl $LIBS"
  4708. fi
  4709. if test "x$have_openssl" = "xyes"; then
  4710. have_openssl=no
  4711. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4712. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  4713. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4714. echo $ECHO_N "(cached) $ECHO_C" >&6
  4715. else
  4716. ac_check_lib_save_LIBS=$LIBS
  4717. LIBS="-lcrypto $LIBS"
  4718. cat >conftest.$ac_ext <<_ACEOF
  4719. /* confdefs.h. */
  4720. _ACEOF
  4721. cat confdefs.h >>conftest.$ac_ext
  4722. cat >>conftest.$ac_ext <<_ACEOF
  4723. /* end confdefs.h. */
  4724. int
  4725. main ()
  4726. {
  4727. return main ();
  4728. ;
  4729. return 0;
  4730. }
  4731. _ACEOF
  4732. rm -f conftest.$ac_objext conftest$ac_exeext
  4733. if { (ac_try="$ac_link"
  4734. case "(($ac_try" in
  4735. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4736. *) ac_try_echo=$ac_try;;
  4737. esac
  4738. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4739. (eval "$ac_link") 2>conftest.er1
  4740. ac_status=$?
  4741. grep -v '^ *+' conftest.er1 >conftest.err
  4742. rm -f conftest.er1
  4743. cat conftest.err >&5
  4744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4745. (exit $ac_status); } && {
  4746. test -z "$ac_c_werror_flag" ||
  4747. test ! -s conftest.err
  4748. } && test -s conftest$ac_exeext &&
  4749. $as_test_x conftest$ac_exeext; then
  4750. ac_cv_lib_crypto_main=yes
  4751. else
  4752. echo "$as_me: failed program was:" >&5
  4753. sed 's/^/| /' conftest.$ac_ext >&5
  4754. ac_cv_lib_crypto_main=no
  4755. fi
  4756. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4757. conftest$ac_exeext conftest.$ac_ext
  4758. LIBS=$ac_check_lib_save_LIBS
  4759. fi
  4760. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4761. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  4762. if test $ac_cv_lib_crypto_main = yes; then
  4763. have_openssl=yes; LIBS="-lcrypto $LIBS"
  4764. fi
  4765. if test "x$have_openssl" = "xyes"; then
  4766. cat >>confdefs.h <<\_ACEOF
  4767. #define HAVE_LIBSSL 1
  4768. _ACEOF
  4769. for ac_func in EVP_DigestInit_ex
  4770. do
  4771. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4772. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  4773. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  4774. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  4775. echo $ECHO_N "(cached) $ECHO_C" >&6
  4776. else
  4777. cat >conftest.$ac_ext <<_ACEOF
  4778. /* confdefs.h. */
  4779. _ACEOF
  4780. cat confdefs.h >>conftest.$ac_ext
  4781. cat >>conftest.$ac_ext <<_ACEOF
  4782. /* end confdefs.h. */
  4783. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4784. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4785. #define $ac_func innocuous_$ac_func
  4786. /* System header to define __stub macros and hopefully few prototypes,
  4787. which can conflict with char $ac_func (); below.
  4788. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4789. <limits.h> exists even on freestanding compilers. */
  4790. #ifdef __STDC__
  4791. # include <limits.h>
  4792. #else
  4793. # include <assert.h>
  4794. #endif
  4795. #undef $ac_func
  4796. /* Override any GCC internal prototype to avoid an error.
  4797. Use char because int might match the return type of a GCC
  4798. builtin and then its argument prototype would still apply. */
  4799. #ifdef __cplusplus
  4800. extern "C"
  4801. #endif
  4802. char $ac_func ();
  4803. /* The GNU C library defines this for functions which it implements
  4804. to always fail with ENOSYS. Some functions are actually named
  4805. something starting with __ and the normal name is an alias. */
  4806. #if defined __stub_$ac_func || defined __stub___$ac_func
  4807. choke me
  4808. #endif
  4809. int
  4810. main ()
  4811. {
  4812. return $ac_func ();
  4813. ;
  4814. return 0;
  4815. }
  4816. _ACEOF
  4817. rm -f conftest.$ac_objext conftest$ac_exeext
  4818. if { (ac_try="$ac_link"
  4819. case "(($ac_try" in
  4820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4821. *) ac_try_echo=$ac_try;;
  4822. esac
  4823. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4824. (eval "$ac_link") 2>conftest.er1
  4825. ac_status=$?
  4826. grep -v '^ *+' conftest.er1 >conftest.err
  4827. rm -f conftest.er1
  4828. cat conftest.err >&5
  4829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4830. (exit $ac_status); } && {
  4831. test -z "$ac_c_werror_flag" ||
  4832. test ! -s conftest.err
  4833. } && test -s conftest$ac_exeext &&
  4834. $as_test_x conftest$ac_exeext; then
  4835. eval "$as_ac_var=yes"
  4836. else
  4837. echo "$as_me: failed program was:" >&5
  4838. sed 's/^/| /' conftest.$ac_ext >&5
  4839. eval "$as_ac_var=no"
  4840. fi
  4841. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4842. conftest$ac_exeext conftest.$ac_ext
  4843. fi
  4844. ac_res=`eval echo '${'$as_ac_var'}'`
  4845. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4846. echo "${ECHO_T}$ac_res" >&6; }
  4847. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4848. cat >>confdefs.h <<_ACEOF
  4849. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4850. _ACEOF
  4851. have_digestinit_ex=yes
  4852. fi
  4853. done
  4854. if test "x$have_digestinit_ex" = "x"; then
  4855. cat >>confdefs.h <<\_ACEOF
  4856. #define HAVE_OLD_LIBSSL 1
  4857. _ACEOF
  4858. fi
  4859. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4860. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4861. for ac_func in EVP_sha256
  4862. do
  4863. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  4864. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  4865. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  4866. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  4867. echo $ECHO_N "(cached) $ECHO_C" >&6
  4868. else
  4869. cat >conftest.$ac_ext <<_ACEOF
  4870. /* confdefs.h. */
  4871. _ACEOF
  4872. cat confdefs.h >>conftest.$ac_ext
  4873. cat >>conftest.$ac_ext <<_ACEOF
  4874. /* end confdefs.h. */
  4875. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  4876. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4877. #define $ac_func innocuous_$ac_func
  4878. /* System header to define __stub macros and hopefully few prototypes,
  4879. which can conflict with char $ac_func (); below.
  4880. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4881. <limits.h> exists even on freestanding compilers. */
  4882. #ifdef __STDC__
  4883. # include <limits.h>
  4884. #else
  4885. # include <assert.h>
  4886. #endif
  4887. #undef $ac_func
  4888. /* Override any GCC internal prototype to avoid an error.
  4889. Use char because int might match the return type of a GCC
  4890. builtin and then its argument prototype would still apply. */
  4891. #ifdef __cplusplus
  4892. extern "C"
  4893. #endif
  4894. char $ac_func ();
  4895. /* The GNU C library defines this for functions which it implements
  4896. to always fail with ENOSYS. Some functions are actually named
  4897. something starting with __ and the normal name is an alias. */
  4898. #if defined __stub_$ac_func || defined __stub___$ac_func
  4899. choke me
  4900. #endif
  4901. int
  4902. main ()
  4903. {
  4904. return $ac_func ();
  4905. ;
  4906. return 0;
  4907. }
  4908. _ACEOF
  4909. rm -f conftest.$ac_objext conftest$ac_exeext
  4910. if { (ac_try="$ac_link"
  4911. case "(($ac_try" in
  4912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4913. *) ac_try_echo=$ac_try;;
  4914. esac
  4915. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4916. (eval "$ac_link") 2>conftest.er1
  4917. ac_status=$?
  4918. grep -v '^ *+' conftest.er1 >conftest.err
  4919. rm -f conftest.er1
  4920. cat conftest.err >&5
  4921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4922. (exit $ac_status); } && {
  4923. test -z "$ac_c_werror_flag" ||
  4924. test ! -s conftest.err
  4925. } && test -s conftest$ac_exeext &&
  4926. $as_test_x conftest$ac_exeext; then
  4927. eval "$as_ac_var=yes"
  4928. else
  4929. echo "$as_me: failed program was:" >&5
  4930. sed 's/^/| /' conftest.$ac_ext >&5
  4931. eval "$as_ac_var=no"
  4932. fi
  4933. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4934. conftest$ac_exeext conftest.$ac_ext
  4935. fi
  4936. ac_res=`eval echo '${'$as_ac_var'}'`
  4937. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4938. echo "${ECHO_T}$ac_res" >&6; }
  4939. if test `eval echo '${'$as_ac_var'}'` = yes; then
  4940. cat >>confdefs.h <<_ACEOF
  4941. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  4942. _ACEOF
  4943. fi
  4944. done
  4945. fi
  4946. fi
  4947. LIBS=$LIBS_save
  4948. CPPFLAGS=$CPPFLAGS_save
  4949. fi
  4950. if test "x$with_libcares" = "xyes"; then
  4951. # Check whether --with-libcares-prefix was given.
  4952. if test "${with_libcares_prefix+set}" = set; then
  4953. withval=$with_libcares_prefix; libcares_prefix=$withval
  4954. else
  4955. libcares_prefix=""
  4956. fi
  4957. if test "x$libcares_prefix" = "x"; then
  4958. libcares_prefix="/usr"
  4959. fi
  4960. libcares_prefix_lib=$libcares_prefix/lib
  4961. libcares_prefix_include=$libcares_prefix/include
  4962. LIBS_save=$LIBS
  4963. CPPFLAGS_save=$CPPFLAGS
  4964. LIBS="-L$libcares_prefix_lib $LIBS"
  4965. CPPFLAGS="-I$libcares_prefix_include $CPPFLAGS"
  4966. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  4967. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  4968. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  4969. echo $ECHO_N "(cached) $ECHO_C" >&6
  4970. else
  4971. ac_check_lib_save_LIBS=$LIBS
  4972. LIBS="-lcares $LIBS"
  4973. cat >conftest.$ac_ext <<_ACEOF
  4974. /* confdefs.h. */
  4975. _ACEOF
  4976. cat confdefs.h >>conftest.$ac_ext
  4977. cat >>conftest.$ac_ext <<_ACEOF
  4978. /* end confdefs.h. */
  4979. /* Override any GCC internal prototype to avoid an error.
  4980. Use char because int might match the return type of a GCC
  4981. builtin and then its argument prototype would still apply. */
  4982. #ifdef __cplusplus
  4983. extern "C"
  4984. #endif
  4985. char ares_init ();
  4986. int
  4987. main ()
  4988. {
  4989. return ares_init ();
  4990. ;
  4991. return 0;
  4992. }
  4993. _ACEOF
  4994. rm -f conftest.$ac_objext conftest$ac_exeext
  4995. if { (ac_try="$ac_link"
  4996. case "(($ac_try" in
  4997. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4998. *) ac_try_echo=$ac_try;;
  4999. esac
  5000. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5001. (eval "$ac_link") 2>conftest.er1
  5002. ac_status=$?
  5003. grep -v '^ *+' conftest.er1 >conftest.err
  5004. rm -f conftest.er1
  5005. cat conftest.err >&5
  5006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5007. (exit $ac_status); } && {
  5008. test -z "$ac_c_werror_flag" ||
  5009. test ! -s conftest.err
  5010. } && test -s conftest$ac_exeext &&
  5011. $as_test_x conftest$ac_exeext; then
  5012. ac_cv_lib_cares_ares_init=yes
  5013. else
  5014. echo "$as_me: failed program was:" >&5
  5015. sed 's/^/| /' conftest.$ac_ext >&5
  5016. ac_cv_lib_cares_ares_init=no
  5017. fi
  5018. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5019. conftest$ac_exeext conftest.$ac_ext
  5020. LIBS=$ac_check_lib_save_LIBS
  5021. fi
  5022. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  5023. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  5024. if test $ac_cv_lib_cares_ares_init = yes; then
  5025. have_libcares=yes
  5026. fi
  5027. if test "x$have_libcares" = "xyes"; then
  5028. cat >>confdefs.h <<\_ACEOF
  5029. #define HAVE_LIBCARES 1
  5030. _ACEOF
  5031. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  5032. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  5033. fi
  5034. LIBS=$LIBS_save
  5035. CPPFLAGS=$CPPFLAGS_save
  5036. fi
  5037. if test "x$have_libcares" = "x"; then
  5038. if test "x$with_libares" = "xyes"; then
  5039. # Check whether --with-libares-prefix was given.
  5040. if test "${with_libares_prefix+set}" = set; then
  5041. withval=$with_libares_prefix; libares_prefix=$withval
  5042. else
  5043. libares_prefix=""
  5044. fi
  5045. if test "x$libares_prefix" = "x"; then
  5046. libares_prefix="/usr"
  5047. fi
  5048. libares_prefix_lib=$libares_prefix/lib
  5049. libares_prefix_include=$libares_prefix/include
  5050. LIBS_save=$LIBS
  5051. CPPFLAGS_save=$CPPFLAGS
  5052. LIBS="-L$libares_prefix_lib $LIBS"
  5053. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  5054. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  5055. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  5056. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  5057. echo $ECHO_N "(cached) $ECHO_C" >&6
  5058. else
  5059. ac_check_lib_save_LIBS=$LIBS
  5060. LIBS="-lares $LIBS"
  5061. cat >conftest.$ac_ext <<_ACEOF
  5062. /* confdefs.h. */
  5063. _ACEOF
  5064. cat confdefs.h >>conftest.$ac_ext
  5065. cat >>conftest.$ac_ext <<_ACEOF
  5066. /* end confdefs.h. */
  5067. /* Override any GCC internal prototype to avoid an error.
  5068. Use char because int might match the return type of a GCC
  5069. builtin and then its argument prototype would still apply. */
  5070. #ifdef __cplusplus
  5071. extern "C"
  5072. #endif
  5073. char ares_init ();
  5074. int
  5075. main ()
  5076. {
  5077. return ares_init ();
  5078. ;
  5079. return 0;
  5080. }
  5081. _ACEOF
  5082. rm -f conftest.$ac_objext conftest$ac_exeext
  5083. if { (ac_try="$ac_link"
  5084. case "(($ac_try" in
  5085. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5086. *) ac_try_echo=$ac_try;;
  5087. esac
  5088. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5089. (eval "$ac_link") 2>conftest.er1
  5090. ac_status=$?
  5091. grep -v '^ *+' conftest.er1 >conftest.err
  5092. rm -f conftest.er1
  5093. cat conftest.err >&5
  5094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5095. (exit $ac_status); } && {
  5096. test -z "$ac_c_werror_flag" ||
  5097. test ! -s conftest.err
  5098. } && test -s conftest$ac_exeext &&
  5099. $as_test_x conftest$ac_exeext; then
  5100. ac_cv_lib_ares_ares_init=yes
  5101. else
  5102. echo "$as_me: failed program was:" >&5
  5103. sed 's/^/| /' conftest.$ac_ext >&5
  5104. ac_cv_lib_ares_ares_init=no
  5105. fi
  5106. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5107. conftest$ac_exeext conftest.$ac_ext
  5108. LIBS=$ac_check_lib_save_LIBS
  5109. fi
  5110. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  5111. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  5112. if test $ac_cv_lib_ares_ares_init = yes; then
  5113. have_libares=yes
  5114. fi
  5115. if test "x$have_libares" = "xyes"; then
  5116. cat >>confdefs.h <<\_ACEOF
  5117. #define HAVE_LIBARES 1
  5118. _ACEOF
  5119. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  5120. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  5121. fi
  5122. LIBS=$LIBS_save
  5123. CPPFLAGS=$CPPFLAGS_save
  5124. fi
  5125. fi
  5126. # Define variables based on the result of the checks for libraries.
  5127. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  5128. cat >>confdefs.h <<\_ACEOF
  5129. #define ENABLE_SSL 1
  5130. _ACEOF
  5131. fi
  5132. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  5133. cat >>confdefs.h <<\_ACEOF
  5134. #define ENABLE_MESSAGE_DIGEST 1
  5135. _ACEOF
  5136. if true; then
  5137. ENABLE_MESSAGE_DIGEST_TRUE=
  5138. ENABLE_MESSAGE_DIGEST_FALSE='#'
  5139. else
  5140. ENABLE_MESSAGE_DIGEST_TRUE='#'
  5141. ENABLE_MESSAGE_DIGEST_FALSE=
  5142. fi
  5143. enable_message_digest=yes
  5144. else
  5145. if false; then
  5146. ENABLE_MESSAGE_DIGEST_TRUE=
  5147. ENABLE_MESSAGE_DIGEST_FALSE='#'
  5148. else
  5149. ENABLE_MESSAGE_DIGEST_TRUE='#'
  5150. ENABLE_MESSAGE_DIGEST_FALSE=
  5151. fi
  5152. fi
  5153. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  5154. cat >>confdefs.h <<\_ACEOF
  5155. #define ENABLE_BITTORRENT 1
  5156. _ACEOF
  5157. if true; then
  5158. ENABLE_BITTORRENT_TRUE=
  5159. ENABLE_BITTORRENT_FALSE='#'
  5160. else
  5161. ENABLE_BITTORRENT_TRUE='#'
  5162. ENABLE_BITTORRENT_FALSE=
  5163. fi
  5164. else
  5165. if false; then
  5166. ENABLE_BITTORRENT_TRUE=
  5167. ENABLE_BITTORRENT_FALSE='#'
  5168. else
  5169. ENABLE_BITTORRENT_TRUE='#'
  5170. ENABLE_BITTORRENT_FALSE=
  5171. fi
  5172. fi
  5173. if test "x$have_libxml2" = "xyes" && test "x$enable_metalink" = "xyes"; then
  5174. cat >>confdefs.h <<\_ACEOF
  5175. #define ENABLE_METALINK 1
  5176. _ACEOF
  5177. if true; then
  5178. ENABLE_METALINK_TRUE=
  5179. ENABLE_METALINK_FALSE='#'
  5180. else
  5181. ENABLE_METALINK_TRUE='#'
  5182. ENABLE_METALINK_FALSE=
  5183. fi
  5184. else
  5185. if false; then
  5186. ENABLE_METALINK_TRUE=
  5187. ENABLE_METALINK_FALSE='#'
  5188. else
  5189. ENABLE_METALINK_TRUE='#'
  5190. ENABLE_METALINK_FALSE=
  5191. fi
  5192. fi
  5193. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  5194. cat >>confdefs.h <<\_ACEOF
  5195. #define ENABLE_ASYNC_DNS 1
  5196. _ACEOF
  5197. if true; then
  5198. ENABLE_ASYNC_DNS_TRUE=
  5199. ENABLE_ASYNC_DNS_FALSE='#'
  5200. else
  5201. ENABLE_ASYNC_DNS_TRUE='#'
  5202. ENABLE_ASYNC_DNS_FALSE=
  5203. fi
  5204. else
  5205. if false; then
  5206. ENABLE_ASYNC_DNS_TRUE=
  5207. ENABLE_ASYNC_DNS_FALSE='#'
  5208. else
  5209. ENABLE_ASYNC_DNS_TRUE='#'
  5210. ENABLE_ASYNC_DNS_FALSE=
  5211. fi
  5212. fi
  5213. # Checks for header files.
  5214. ac_ext=c
  5215. ac_cpp='$CPP $CPPFLAGS'
  5216. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5217. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5218. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5219. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5220. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5221. # On Suns, sometimes $CPP names a directory.
  5222. if test -n "$CPP" && test -d "$CPP"; then
  5223. CPP=
  5224. fi
  5225. if test -z "$CPP"; then
  5226. if test "${ac_cv_prog_CPP+set}" = set; then
  5227. echo $ECHO_N "(cached) $ECHO_C" >&6
  5228. else
  5229. # Double quotes because CPP needs to be expanded
  5230. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5231. do
  5232. ac_preproc_ok=false
  5233. for ac_c_preproc_warn_flag in '' yes
  5234. do
  5235. # Use a header file that comes with gcc, so configuring glibc
  5236. # with a fresh cross-compiler works.
  5237. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5238. # <limits.h> exists even on freestanding compilers.
  5239. # On the NeXT, cc -E runs the code through the compiler's parser,
  5240. # not just through cpp. "Syntax error" is here to catch this case.
  5241. cat >conftest.$ac_ext <<_ACEOF
  5242. /* confdefs.h. */
  5243. _ACEOF
  5244. cat confdefs.h >>conftest.$ac_ext
  5245. cat >>conftest.$ac_ext <<_ACEOF
  5246. /* end confdefs.h. */
  5247. #ifdef __STDC__
  5248. # include <limits.h>
  5249. #else
  5250. # include <assert.h>
  5251. #endif
  5252. Syntax error
  5253. _ACEOF
  5254. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5255. case "(($ac_try" in
  5256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5257. *) ac_try_echo=$ac_try;;
  5258. esac
  5259. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5260. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5261. ac_status=$?
  5262. grep -v '^ *+' conftest.er1 >conftest.err
  5263. rm -f conftest.er1
  5264. cat conftest.err >&5
  5265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5266. (exit $ac_status); } >/dev/null && {
  5267. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5268. test ! -s conftest.err
  5269. }; then
  5270. :
  5271. else
  5272. echo "$as_me: failed program was:" >&5
  5273. sed 's/^/| /' conftest.$ac_ext >&5
  5274. # Broken: fails on valid input.
  5275. continue
  5276. fi
  5277. rm -f conftest.err conftest.$ac_ext
  5278. # OK, works on sane cases. Now check whether nonexistent headers
  5279. # can be detected and how.
  5280. cat >conftest.$ac_ext <<_ACEOF
  5281. /* confdefs.h. */
  5282. _ACEOF
  5283. cat confdefs.h >>conftest.$ac_ext
  5284. cat >>conftest.$ac_ext <<_ACEOF
  5285. /* end confdefs.h. */
  5286. #include <ac_nonexistent.h>
  5287. _ACEOF
  5288. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5289. case "(($ac_try" in
  5290. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5291. *) ac_try_echo=$ac_try;;
  5292. esac
  5293. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5294. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5295. ac_status=$?
  5296. grep -v '^ *+' conftest.er1 >conftest.err
  5297. rm -f conftest.er1
  5298. cat conftest.err >&5
  5299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5300. (exit $ac_status); } >/dev/null && {
  5301. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5302. test ! -s conftest.err
  5303. }; then
  5304. # Broken: success on invalid input.
  5305. continue
  5306. else
  5307. echo "$as_me: failed program was:" >&5
  5308. sed 's/^/| /' conftest.$ac_ext >&5
  5309. # Passes both tests.
  5310. ac_preproc_ok=:
  5311. break
  5312. fi
  5313. rm -f conftest.err conftest.$ac_ext
  5314. done
  5315. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5316. rm -f conftest.err conftest.$ac_ext
  5317. if $ac_preproc_ok; then
  5318. break
  5319. fi
  5320. done
  5321. ac_cv_prog_CPP=$CPP
  5322. fi
  5323. CPP=$ac_cv_prog_CPP
  5324. else
  5325. ac_cv_prog_CPP=$CPP
  5326. fi
  5327. { echo "$as_me:$LINENO: result: $CPP" >&5
  5328. echo "${ECHO_T}$CPP" >&6; }
  5329. ac_preproc_ok=false
  5330. for ac_c_preproc_warn_flag in '' yes
  5331. do
  5332. # Use a header file that comes with gcc, so configuring glibc
  5333. # with a fresh cross-compiler works.
  5334. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5335. # <limits.h> exists even on freestanding compilers.
  5336. # On the NeXT, cc -E runs the code through the compiler's parser,
  5337. # not just through cpp. "Syntax error" is here to catch this case.
  5338. cat >conftest.$ac_ext <<_ACEOF
  5339. /* confdefs.h. */
  5340. _ACEOF
  5341. cat confdefs.h >>conftest.$ac_ext
  5342. cat >>conftest.$ac_ext <<_ACEOF
  5343. /* end confdefs.h. */
  5344. #ifdef __STDC__
  5345. # include <limits.h>
  5346. #else
  5347. # include <assert.h>
  5348. #endif
  5349. Syntax error
  5350. _ACEOF
  5351. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5352. case "(($ac_try" in
  5353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5354. *) ac_try_echo=$ac_try;;
  5355. esac
  5356. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5357. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5358. ac_status=$?
  5359. grep -v '^ *+' conftest.er1 >conftest.err
  5360. rm -f conftest.er1
  5361. cat conftest.err >&5
  5362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5363. (exit $ac_status); } >/dev/null && {
  5364. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5365. test ! -s conftest.err
  5366. }; then
  5367. :
  5368. else
  5369. echo "$as_me: failed program was:" >&5
  5370. sed 's/^/| /' conftest.$ac_ext >&5
  5371. # Broken: fails on valid input.
  5372. continue
  5373. fi
  5374. rm -f conftest.err conftest.$ac_ext
  5375. # OK, works on sane cases. Now check whether nonexistent headers
  5376. # can be detected and how.
  5377. cat >conftest.$ac_ext <<_ACEOF
  5378. /* confdefs.h. */
  5379. _ACEOF
  5380. cat confdefs.h >>conftest.$ac_ext
  5381. cat >>conftest.$ac_ext <<_ACEOF
  5382. /* end confdefs.h. */
  5383. #include <ac_nonexistent.h>
  5384. _ACEOF
  5385. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5386. case "(($ac_try" in
  5387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5388. *) ac_try_echo=$ac_try;;
  5389. esac
  5390. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5391. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5392. ac_status=$?
  5393. grep -v '^ *+' conftest.er1 >conftest.err
  5394. rm -f conftest.er1
  5395. cat conftest.err >&5
  5396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5397. (exit $ac_status); } >/dev/null && {
  5398. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5399. test ! -s conftest.err
  5400. }; then
  5401. # Broken: success on invalid input.
  5402. continue
  5403. else
  5404. echo "$as_me: failed program was:" >&5
  5405. sed 's/^/| /' conftest.$ac_ext >&5
  5406. # Passes both tests.
  5407. ac_preproc_ok=:
  5408. break
  5409. fi
  5410. rm -f conftest.err conftest.$ac_ext
  5411. done
  5412. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5413. rm -f conftest.err conftest.$ac_ext
  5414. if $ac_preproc_ok; then
  5415. :
  5416. else
  5417. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5418. See \`config.log' for more details." >&5
  5419. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5420. See \`config.log' for more details." >&2;}
  5421. { (exit 1); exit 1; }; }
  5422. fi
  5423. ac_ext=c
  5424. ac_cpp='$CPP $CPPFLAGS'
  5425. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5426. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5427. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5428. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5429. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5430. if test "${ac_cv_path_GREP+set}" = set; then
  5431. echo $ECHO_N "(cached) $ECHO_C" >&6
  5432. else
  5433. # Extract the first word of "grep ggrep" to use in msg output
  5434. if test -z "$GREP"; then
  5435. set dummy grep ggrep; ac_prog_name=$2
  5436. if test "${ac_cv_path_GREP+set}" = set; then
  5437. echo $ECHO_N "(cached) $ECHO_C" >&6
  5438. else
  5439. ac_path_GREP_found=false
  5440. # Loop through the user's path and test for each of PROGNAME-LIST
  5441. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5442. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5443. do
  5444. IFS=$as_save_IFS
  5445. test -z "$as_dir" && as_dir=.
  5446. for ac_prog in grep ggrep; do
  5447. for ac_exec_ext in '' $ac_executable_extensions; do
  5448. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5449. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5450. # Check for GNU ac_path_GREP and select it if it is found.
  5451. # Check for GNU $ac_path_GREP
  5452. case `"$ac_path_GREP" --version 2>&1` in
  5453. *GNU*)
  5454. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5455. *)
  5456. ac_count=0
  5457. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5458. while :
  5459. do
  5460. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5461. mv "conftest.tmp" "conftest.in"
  5462. cp "conftest.in" "conftest.nl"
  5463. echo 'GREP' >> "conftest.nl"
  5464. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5465. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5466. ac_count=`expr $ac_count + 1`
  5467. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5468. # Best one so far, save it but keep looking for a better one
  5469. ac_cv_path_GREP="$ac_path_GREP"
  5470. ac_path_GREP_max=$ac_count
  5471. fi
  5472. # 10*(2^10) chars as input seems more than enough
  5473. test $ac_count -gt 10 && break
  5474. done
  5475. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5476. esac
  5477. $ac_path_GREP_found && break 3
  5478. done
  5479. done
  5480. done
  5481. IFS=$as_save_IFS
  5482. fi
  5483. GREP="$ac_cv_path_GREP"
  5484. if test -z "$GREP"; then
  5485. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5486. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5487. { (exit 1); exit 1; }; }
  5488. fi
  5489. else
  5490. ac_cv_path_GREP=$GREP
  5491. fi
  5492. fi
  5493. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5494. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5495. GREP="$ac_cv_path_GREP"
  5496. { echo "$as_me:$LINENO: checking for egrep" >&5
  5497. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5498. if test "${ac_cv_path_EGREP+set}" = set; then
  5499. echo $ECHO_N "(cached) $ECHO_C" >&6
  5500. else
  5501. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5502. then ac_cv_path_EGREP="$GREP -E"
  5503. else
  5504. # Extract the first word of "egrep" to use in msg output
  5505. if test -z "$EGREP"; then
  5506. set dummy egrep; ac_prog_name=$2
  5507. if test "${ac_cv_path_EGREP+set}" = set; then
  5508. echo $ECHO_N "(cached) $ECHO_C" >&6
  5509. else
  5510. ac_path_EGREP_found=false
  5511. # Loop through the user's path and test for each of PROGNAME-LIST
  5512. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5513. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5514. do
  5515. IFS=$as_save_IFS
  5516. test -z "$as_dir" && as_dir=.
  5517. for ac_prog in egrep; do
  5518. for ac_exec_ext in '' $ac_executable_extensions; do
  5519. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5520. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5521. # Check for GNU ac_path_EGREP and select it if it is found.
  5522. # Check for GNU $ac_path_EGREP
  5523. case `"$ac_path_EGREP" --version 2>&1` in
  5524. *GNU*)
  5525. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5526. *)
  5527. ac_count=0
  5528. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5529. while :
  5530. do
  5531. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5532. mv "conftest.tmp" "conftest.in"
  5533. cp "conftest.in" "conftest.nl"
  5534. echo 'EGREP' >> "conftest.nl"
  5535. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5536. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5537. ac_count=`expr $ac_count + 1`
  5538. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5539. # Best one so far, save it but keep looking for a better one
  5540. ac_cv_path_EGREP="$ac_path_EGREP"
  5541. ac_path_EGREP_max=$ac_count
  5542. fi
  5543. # 10*(2^10) chars as input seems more than enough
  5544. test $ac_count -gt 10 && break
  5545. done
  5546. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5547. esac
  5548. $ac_path_EGREP_found && break 3
  5549. done
  5550. done
  5551. done
  5552. IFS=$as_save_IFS
  5553. fi
  5554. EGREP="$ac_cv_path_EGREP"
  5555. if test -z "$EGREP"; then
  5556. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5557. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5558. { (exit 1); exit 1; }; }
  5559. fi
  5560. else
  5561. ac_cv_path_EGREP=$EGREP
  5562. fi
  5563. fi
  5564. fi
  5565. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5566. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5567. EGREP="$ac_cv_path_EGREP"
  5568. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5569. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5570. if test "${ac_cv_header_stdc+set}" = set; then
  5571. echo $ECHO_N "(cached) $ECHO_C" >&6
  5572. else
  5573. cat >conftest.$ac_ext <<_ACEOF
  5574. /* confdefs.h. */
  5575. _ACEOF
  5576. cat confdefs.h >>conftest.$ac_ext
  5577. cat >>conftest.$ac_ext <<_ACEOF
  5578. /* end confdefs.h. */
  5579. #include <stdlib.h>
  5580. #include <stdarg.h>
  5581. #include <string.h>
  5582. #include <float.h>
  5583. int
  5584. main ()
  5585. {
  5586. ;
  5587. return 0;
  5588. }
  5589. _ACEOF
  5590. rm -f conftest.$ac_objext
  5591. if { (ac_try="$ac_compile"
  5592. case "(($ac_try" in
  5593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5594. *) ac_try_echo=$ac_try;;
  5595. esac
  5596. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5597. (eval "$ac_compile") 2>conftest.er1
  5598. ac_status=$?
  5599. grep -v '^ *+' conftest.er1 >conftest.err
  5600. rm -f conftest.er1
  5601. cat conftest.err >&5
  5602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5603. (exit $ac_status); } && {
  5604. test -z "$ac_c_werror_flag" ||
  5605. test ! -s conftest.err
  5606. } && test -s conftest.$ac_objext; then
  5607. ac_cv_header_stdc=yes
  5608. else
  5609. echo "$as_me: failed program was:" >&5
  5610. sed 's/^/| /' conftest.$ac_ext >&5
  5611. ac_cv_header_stdc=no
  5612. fi
  5613. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5614. if test $ac_cv_header_stdc = yes; then
  5615. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5616. cat >conftest.$ac_ext <<_ACEOF
  5617. /* confdefs.h. */
  5618. _ACEOF
  5619. cat confdefs.h >>conftest.$ac_ext
  5620. cat >>conftest.$ac_ext <<_ACEOF
  5621. /* end confdefs.h. */
  5622. #include <string.h>
  5623. _ACEOF
  5624. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5625. $EGREP "memchr" >/dev/null 2>&1; then
  5626. :
  5627. else
  5628. ac_cv_header_stdc=no
  5629. fi
  5630. rm -f conftest*
  5631. fi
  5632. if test $ac_cv_header_stdc = yes; then
  5633. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5634. cat >conftest.$ac_ext <<_ACEOF
  5635. /* confdefs.h. */
  5636. _ACEOF
  5637. cat confdefs.h >>conftest.$ac_ext
  5638. cat >>conftest.$ac_ext <<_ACEOF
  5639. /* end confdefs.h. */
  5640. #include <stdlib.h>
  5641. _ACEOF
  5642. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5643. $EGREP "free" >/dev/null 2>&1; then
  5644. :
  5645. else
  5646. ac_cv_header_stdc=no
  5647. fi
  5648. rm -f conftest*
  5649. fi
  5650. if test $ac_cv_header_stdc = yes; then
  5651. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5652. if test "$cross_compiling" = yes; then
  5653. :
  5654. else
  5655. cat >conftest.$ac_ext <<_ACEOF
  5656. /* confdefs.h. */
  5657. _ACEOF
  5658. cat confdefs.h >>conftest.$ac_ext
  5659. cat >>conftest.$ac_ext <<_ACEOF
  5660. /* end confdefs.h. */
  5661. #include <ctype.h>
  5662. #include <stdlib.h>
  5663. #if ((' ' & 0x0FF) == 0x020)
  5664. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5665. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5666. #else
  5667. # define ISLOWER(c) \
  5668. (('a' <= (c) && (c) <= 'i') \
  5669. || ('j' <= (c) && (c) <= 'r') \
  5670. || ('s' <= (c) && (c) <= 'z'))
  5671. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5672. #endif
  5673. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5674. int
  5675. main ()
  5676. {
  5677. int i;
  5678. for (i = 0; i < 256; i++)
  5679. if (XOR (islower (i), ISLOWER (i))
  5680. || toupper (i) != TOUPPER (i))
  5681. return 2;
  5682. return 0;
  5683. }
  5684. _ACEOF
  5685. rm -f conftest$ac_exeext
  5686. if { (ac_try="$ac_link"
  5687. case "(($ac_try" in
  5688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5689. *) ac_try_echo=$ac_try;;
  5690. esac
  5691. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5692. (eval "$ac_link") 2>&5
  5693. ac_status=$?
  5694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5695. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5696. { (case "(($ac_try" in
  5697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5698. *) ac_try_echo=$ac_try;;
  5699. esac
  5700. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5701. (eval "$ac_try") 2>&5
  5702. ac_status=$?
  5703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5704. (exit $ac_status); }; }; then
  5705. :
  5706. else
  5707. echo "$as_me: program exited with status $ac_status" >&5
  5708. echo "$as_me: failed program was:" >&5
  5709. sed 's/^/| /' conftest.$ac_ext >&5
  5710. ( exit $ac_status )
  5711. ac_cv_header_stdc=no
  5712. fi
  5713. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5714. fi
  5715. fi
  5716. fi
  5717. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5718. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5719. if test $ac_cv_header_stdc = yes; then
  5720. cat >>confdefs.h <<\_ACEOF
  5721. #define STDC_HEADERS 1
  5722. _ACEOF
  5723. fi
  5724. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5725. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5726. inttypes.h stdint.h unistd.h
  5727. do
  5728. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5729. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5730. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5731. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5732. echo $ECHO_N "(cached) $ECHO_C" >&6
  5733. else
  5734. cat >conftest.$ac_ext <<_ACEOF
  5735. /* confdefs.h. */
  5736. _ACEOF
  5737. cat confdefs.h >>conftest.$ac_ext
  5738. cat >>conftest.$ac_ext <<_ACEOF
  5739. /* end confdefs.h. */
  5740. $ac_includes_default
  5741. #include <$ac_header>
  5742. _ACEOF
  5743. rm -f conftest.$ac_objext
  5744. if { (ac_try="$ac_compile"
  5745. case "(($ac_try" in
  5746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5747. *) ac_try_echo=$ac_try;;
  5748. esac
  5749. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5750. (eval "$ac_compile") 2>conftest.er1
  5751. ac_status=$?
  5752. grep -v '^ *+' conftest.er1 >conftest.err
  5753. rm -f conftest.er1
  5754. cat conftest.err >&5
  5755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5756. (exit $ac_status); } && {
  5757. test -z "$ac_c_werror_flag" ||
  5758. test ! -s conftest.err
  5759. } && test -s conftest.$ac_objext; then
  5760. eval "$as_ac_Header=yes"
  5761. else
  5762. echo "$as_me: failed program was:" >&5
  5763. sed 's/^/| /' conftest.$ac_ext >&5
  5764. eval "$as_ac_Header=no"
  5765. fi
  5766. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5767. fi
  5768. ac_res=`eval echo '${'$as_ac_Header'}'`
  5769. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5770. echo "${ECHO_T}$ac_res" >&6; }
  5771. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5772. cat >>confdefs.h <<_ACEOF
  5773. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5774. _ACEOF
  5775. fi
  5776. done
  5777. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5778. # for constant arguments. Useless!
  5779. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  5780. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  5781. if test "${ac_cv_working_alloca_h+set}" = set; then
  5782. echo $ECHO_N "(cached) $ECHO_C" >&6
  5783. else
  5784. cat >conftest.$ac_ext <<_ACEOF
  5785. /* confdefs.h. */
  5786. _ACEOF
  5787. cat confdefs.h >>conftest.$ac_ext
  5788. cat >>conftest.$ac_ext <<_ACEOF
  5789. /* end confdefs.h. */
  5790. #include <alloca.h>
  5791. int
  5792. main ()
  5793. {
  5794. char *p = (char *) alloca (2 * sizeof (int));
  5795. if (p) return 0;
  5796. ;
  5797. return 0;
  5798. }
  5799. _ACEOF
  5800. rm -f conftest.$ac_objext conftest$ac_exeext
  5801. if { (ac_try="$ac_link"
  5802. case "(($ac_try" in
  5803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5804. *) ac_try_echo=$ac_try;;
  5805. esac
  5806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5807. (eval "$ac_link") 2>conftest.er1
  5808. ac_status=$?
  5809. grep -v '^ *+' conftest.er1 >conftest.err
  5810. rm -f conftest.er1
  5811. cat conftest.err >&5
  5812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5813. (exit $ac_status); } && {
  5814. test -z "$ac_c_werror_flag" ||
  5815. test ! -s conftest.err
  5816. } && test -s conftest$ac_exeext &&
  5817. $as_test_x conftest$ac_exeext; then
  5818. ac_cv_working_alloca_h=yes
  5819. else
  5820. echo "$as_me: failed program was:" >&5
  5821. sed 's/^/| /' conftest.$ac_ext >&5
  5822. ac_cv_working_alloca_h=no
  5823. fi
  5824. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5825. conftest$ac_exeext conftest.$ac_ext
  5826. fi
  5827. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  5828. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  5829. if test $ac_cv_working_alloca_h = yes; then
  5830. cat >>confdefs.h <<\_ACEOF
  5831. #define HAVE_ALLOCA_H 1
  5832. _ACEOF
  5833. fi
  5834. { echo "$as_me:$LINENO: checking for alloca" >&5
  5835. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  5836. if test "${ac_cv_func_alloca_works+set}" = set; then
  5837. echo $ECHO_N "(cached) $ECHO_C" >&6
  5838. else
  5839. cat >conftest.$ac_ext <<_ACEOF
  5840. /* confdefs.h. */
  5841. _ACEOF
  5842. cat confdefs.h >>conftest.$ac_ext
  5843. cat >>conftest.$ac_ext <<_ACEOF
  5844. /* end confdefs.h. */
  5845. #ifdef __GNUC__
  5846. # define alloca __builtin_alloca
  5847. #else
  5848. # ifdef _MSC_VER
  5849. # include <malloc.h>
  5850. # define alloca _alloca
  5851. # else
  5852. # ifdef HAVE_ALLOCA_H
  5853. # include <alloca.h>
  5854. # else
  5855. # ifdef _AIX
  5856. #pragma alloca
  5857. # else
  5858. # ifndef alloca /* predefined by HP cc +Olibcalls */
  5859. char *alloca ();
  5860. # endif
  5861. # endif
  5862. # endif
  5863. # endif
  5864. #endif
  5865. int
  5866. main ()
  5867. {
  5868. char *p = (char *) alloca (1);
  5869. if (p) return 0;
  5870. ;
  5871. return 0;
  5872. }
  5873. _ACEOF
  5874. rm -f conftest.$ac_objext conftest$ac_exeext
  5875. if { (ac_try="$ac_link"
  5876. case "(($ac_try" in
  5877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5878. *) ac_try_echo=$ac_try;;
  5879. esac
  5880. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5881. (eval "$ac_link") 2>conftest.er1
  5882. ac_status=$?
  5883. grep -v '^ *+' conftest.er1 >conftest.err
  5884. rm -f conftest.er1
  5885. cat conftest.err >&5
  5886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5887. (exit $ac_status); } && {
  5888. test -z "$ac_c_werror_flag" ||
  5889. test ! -s conftest.err
  5890. } && test -s conftest$ac_exeext &&
  5891. $as_test_x conftest$ac_exeext; then
  5892. ac_cv_func_alloca_works=yes
  5893. else
  5894. echo "$as_me: failed program was:" >&5
  5895. sed 's/^/| /' conftest.$ac_ext >&5
  5896. ac_cv_func_alloca_works=no
  5897. fi
  5898. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5899. conftest$ac_exeext conftest.$ac_ext
  5900. fi
  5901. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  5902. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  5903. if test $ac_cv_func_alloca_works = yes; then
  5904. cat >>confdefs.h <<\_ACEOF
  5905. #define HAVE_ALLOCA 1
  5906. _ACEOF
  5907. else
  5908. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5909. # that cause trouble. Some versions do not even contain alloca or
  5910. # contain a buggy version. If you still want to use their alloca,
  5911. # use ar to extract alloca.o from them instead of compiling alloca.c.
  5912. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  5913. cat >>confdefs.h <<\_ACEOF
  5914. #define C_ALLOCA 1
  5915. _ACEOF
  5916. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  5917. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  5918. if test "${ac_cv_os_cray+set}" = set; then
  5919. echo $ECHO_N "(cached) $ECHO_C" >&6
  5920. else
  5921. cat >conftest.$ac_ext <<_ACEOF
  5922. /* confdefs.h. */
  5923. _ACEOF
  5924. cat confdefs.h >>conftest.$ac_ext
  5925. cat >>conftest.$ac_ext <<_ACEOF
  5926. /* end confdefs.h. */
  5927. #if defined CRAY && ! defined CRAY2
  5928. webecray
  5929. #else
  5930. wenotbecray
  5931. #endif
  5932. _ACEOF
  5933. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5934. $EGREP "webecray" >/dev/null 2>&1; then
  5935. ac_cv_os_cray=yes
  5936. else
  5937. ac_cv_os_cray=no
  5938. fi
  5939. rm -f conftest*
  5940. fi
  5941. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  5942. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  5943. if test $ac_cv_os_cray = yes; then
  5944. for ac_func in _getb67 GETB67 getb67; do
  5945. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5946. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5947. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5948. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5949. echo $ECHO_N "(cached) $ECHO_C" >&6
  5950. else
  5951. cat >conftest.$ac_ext <<_ACEOF
  5952. /* confdefs.h. */
  5953. _ACEOF
  5954. cat confdefs.h >>conftest.$ac_ext
  5955. cat >>conftest.$ac_ext <<_ACEOF
  5956. /* end confdefs.h. */
  5957. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5958. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5959. #define $ac_func innocuous_$ac_func
  5960. /* System header to define __stub macros and hopefully few prototypes,
  5961. which can conflict with char $ac_func (); below.
  5962. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5963. <limits.h> exists even on freestanding compilers. */
  5964. #ifdef __STDC__
  5965. # include <limits.h>
  5966. #else
  5967. # include <assert.h>
  5968. #endif
  5969. #undef $ac_func
  5970. /* Override any GCC internal prototype to avoid an error.
  5971. Use char because int might match the return type of a GCC
  5972. builtin and then its argument prototype would still apply. */
  5973. #ifdef __cplusplus
  5974. extern "C"
  5975. #endif
  5976. char $ac_func ();
  5977. /* The GNU C library defines this for functions which it implements
  5978. to always fail with ENOSYS. Some functions are actually named
  5979. something starting with __ and the normal name is an alias. */
  5980. #if defined __stub_$ac_func || defined __stub___$ac_func
  5981. choke me
  5982. #endif
  5983. int
  5984. main ()
  5985. {
  5986. return $ac_func ();
  5987. ;
  5988. return 0;
  5989. }
  5990. _ACEOF
  5991. rm -f conftest.$ac_objext conftest$ac_exeext
  5992. if { (ac_try="$ac_link"
  5993. case "(($ac_try" in
  5994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5995. *) ac_try_echo=$ac_try;;
  5996. esac
  5997. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5998. (eval "$ac_link") 2>conftest.er1
  5999. ac_status=$?
  6000. grep -v '^ *+' conftest.er1 >conftest.err
  6001. rm -f conftest.er1
  6002. cat conftest.err >&5
  6003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6004. (exit $ac_status); } && {
  6005. test -z "$ac_c_werror_flag" ||
  6006. test ! -s conftest.err
  6007. } && test -s conftest$ac_exeext &&
  6008. $as_test_x conftest$ac_exeext; then
  6009. eval "$as_ac_var=yes"
  6010. else
  6011. echo "$as_me: failed program was:" >&5
  6012. sed 's/^/| /' conftest.$ac_ext >&5
  6013. eval "$as_ac_var=no"
  6014. fi
  6015. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6016. conftest$ac_exeext conftest.$ac_ext
  6017. fi
  6018. ac_res=`eval echo '${'$as_ac_var'}'`
  6019. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6020. echo "${ECHO_T}$ac_res" >&6; }
  6021. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6022. cat >>confdefs.h <<_ACEOF
  6023. #define CRAY_STACKSEG_END $ac_func
  6024. _ACEOF
  6025. break
  6026. fi
  6027. done
  6028. fi
  6029. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6030. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6031. if test "${ac_cv_c_stack_direction+set}" = set; then
  6032. echo $ECHO_N "(cached) $ECHO_C" >&6
  6033. else
  6034. if test "$cross_compiling" = yes; then
  6035. ac_cv_c_stack_direction=0
  6036. else
  6037. cat >conftest.$ac_ext <<_ACEOF
  6038. /* confdefs.h. */
  6039. _ACEOF
  6040. cat confdefs.h >>conftest.$ac_ext
  6041. cat >>conftest.$ac_ext <<_ACEOF
  6042. /* end confdefs.h. */
  6043. $ac_includes_default
  6044. int
  6045. find_stack_direction ()
  6046. {
  6047. static char *addr = 0;
  6048. auto char dummy;
  6049. if (addr == 0)
  6050. {
  6051. addr = &dummy;
  6052. return find_stack_direction ();
  6053. }
  6054. else
  6055. return (&dummy > addr) ? 1 : -1;
  6056. }
  6057. int
  6058. main ()
  6059. {
  6060. return find_stack_direction () < 0;
  6061. }
  6062. _ACEOF
  6063. rm -f conftest$ac_exeext
  6064. if { (ac_try="$ac_link"
  6065. case "(($ac_try" in
  6066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6067. *) ac_try_echo=$ac_try;;
  6068. esac
  6069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6070. (eval "$ac_link") 2>&5
  6071. ac_status=$?
  6072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6073. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6074. { (case "(($ac_try" in
  6075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6076. *) ac_try_echo=$ac_try;;
  6077. esac
  6078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6079. (eval "$ac_try") 2>&5
  6080. ac_status=$?
  6081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6082. (exit $ac_status); }; }; then
  6083. ac_cv_c_stack_direction=1
  6084. else
  6085. echo "$as_me: program exited with status $ac_status" >&5
  6086. echo "$as_me: failed program was:" >&5
  6087. sed 's/^/| /' conftest.$ac_ext >&5
  6088. ( exit $ac_status )
  6089. ac_cv_c_stack_direction=-1
  6090. fi
  6091. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6092. fi
  6093. fi
  6094. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6095. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6096. cat >>confdefs.h <<_ACEOF
  6097. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6098. _ACEOF
  6099. fi
  6100. #AC_HEADER_STDC
  6101. 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
  6102. do
  6103. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6104. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6105. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6106. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6107. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6108. echo $ECHO_N "(cached) $ECHO_C" >&6
  6109. fi
  6110. ac_res=`eval echo '${'$as_ac_Header'}'`
  6111. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6112. echo "${ECHO_T}$ac_res" >&6; }
  6113. else
  6114. # Is the header compilable?
  6115. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6116. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6117. cat >conftest.$ac_ext <<_ACEOF
  6118. /* confdefs.h. */
  6119. _ACEOF
  6120. cat confdefs.h >>conftest.$ac_ext
  6121. cat >>conftest.$ac_ext <<_ACEOF
  6122. /* end confdefs.h. */
  6123. $ac_includes_default
  6124. #include <$ac_header>
  6125. _ACEOF
  6126. rm -f conftest.$ac_objext
  6127. if { (ac_try="$ac_compile"
  6128. case "(($ac_try" in
  6129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6130. *) ac_try_echo=$ac_try;;
  6131. esac
  6132. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6133. (eval "$ac_compile") 2>conftest.er1
  6134. ac_status=$?
  6135. grep -v '^ *+' conftest.er1 >conftest.err
  6136. rm -f conftest.er1
  6137. cat conftest.err >&5
  6138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6139. (exit $ac_status); } && {
  6140. test -z "$ac_c_werror_flag" ||
  6141. test ! -s conftest.err
  6142. } && test -s conftest.$ac_objext; then
  6143. ac_header_compiler=yes
  6144. else
  6145. echo "$as_me: failed program was:" >&5
  6146. sed 's/^/| /' conftest.$ac_ext >&5
  6147. ac_header_compiler=no
  6148. fi
  6149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6150. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6151. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6152. # Is the header present?
  6153. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6154. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6155. cat >conftest.$ac_ext <<_ACEOF
  6156. /* confdefs.h. */
  6157. _ACEOF
  6158. cat confdefs.h >>conftest.$ac_ext
  6159. cat >>conftest.$ac_ext <<_ACEOF
  6160. /* end confdefs.h. */
  6161. #include <$ac_header>
  6162. _ACEOF
  6163. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6164. case "(($ac_try" in
  6165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6166. *) ac_try_echo=$ac_try;;
  6167. esac
  6168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6169. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6170. ac_status=$?
  6171. grep -v '^ *+' conftest.er1 >conftest.err
  6172. rm -f conftest.er1
  6173. cat conftest.err >&5
  6174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6175. (exit $ac_status); } >/dev/null && {
  6176. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6177. test ! -s conftest.err
  6178. }; then
  6179. ac_header_preproc=yes
  6180. else
  6181. echo "$as_me: failed program was:" >&5
  6182. sed 's/^/| /' conftest.$ac_ext >&5
  6183. ac_header_preproc=no
  6184. fi
  6185. rm -f conftest.err conftest.$ac_ext
  6186. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6187. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6188. # So? What about this header?
  6189. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6190. yes:no: )
  6191. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6192. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6193. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6194. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6195. ac_header_preproc=yes
  6196. ;;
  6197. no:yes:* )
  6198. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6199. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6200. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6201. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6202. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6203. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6204. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6205. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6206. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6207. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6208. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6209. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6210. ( cat <<\_ASBOX
  6211. ## ----------------------------------------------- ##
  6212. ## Report this to t-tujikawa@users.sourceforge.net ##
  6213. ## ----------------------------------------------- ##
  6214. _ASBOX
  6215. ) | sed "s/^/$as_me: WARNING: /" >&2
  6216. ;;
  6217. esac
  6218. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6219. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6220. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6221. echo $ECHO_N "(cached) $ECHO_C" >&6
  6222. else
  6223. eval "$as_ac_Header=\$ac_header_preproc"
  6224. fi
  6225. ac_res=`eval echo '${'$as_ac_Header'}'`
  6226. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6227. echo "${ECHO_T}$ac_res" >&6; }
  6228. fi
  6229. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6230. cat >>confdefs.h <<_ACEOF
  6231. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6232. _ACEOF
  6233. fi
  6234. done
  6235. # Checks for typedefs, structures, and compiler characteristics.
  6236. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6237. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  6238. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6239. echo $ECHO_N "(cached) $ECHO_C" >&6
  6240. else
  6241. cat >conftest.$ac_ext <<_ACEOF
  6242. /* confdefs.h. */
  6243. _ACEOF
  6244. cat confdefs.h >>conftest.$ac_ext
  6245. cat >>conftest.$ac_ext <<_ACEOF
  6246. /* end confdefs.h. */
  6247. #include <stdbool.h>
  6248. #ifndef bool
  6249. "error: bool is not defined"
  6250. #endif
  6251. #ifndef false
  6252. "error: false is not defined"
  6253. #endif
  6254. #if false
  6255. "error: false is not 0"
  6256. #endif
  6257. #ifndef true
  6258. "error: true is not defined"
  6259. #endif
  6260. #if true != 1
  6261. "error: true is not 1"
  6262. #endif
  6263. #ifndef __bool_true_false_are_defined
  6264. "error: __bool_true_false_are_defined is not defined"
  6265. #endif
  6266. struct s { _Bool s: 1; _Bool t; } s;
  6267. char a[true == 1 ? 1 : -1];
  6268. char b[false == 0 ? 1 : -1];
  6269. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6270. char d[(bool) 0.5 == true ? 1 : -1];
  6271. bool e = &s;
  6272. char f[(_Bool) 0.0 == false ? 1 : -1];
  6273. char g[true];
  6274. char h[sizeof (_Bool)];
  6275. char i[sizeof s.t];
  6276. enum { j = false, k = true, l = false * true, m = true * 256 };
  6277. _Bool n[m];
  6278. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6279. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6280. # if defined __xlc__ || defined __GNUC__
  6281. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6282. reported by James Lemley on 2005-10-05; see
  6283. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6284. This test is not quite right, since xlc is allowed to
  6285. reject this program, as the initializer for xlcbug is
  6286. not one of the forms that C requires support for.
  6287. However, doing the test right would require a runtime
  6288. test, and that would make cross-compilation harder.
  6289. Let us hope that IBM fixes the xlc bug, and also adds
  6290. support for this kind of constant expression. In the
  6291. meantime, this test will reject xlc, which is OK, since
  6292. our stdbool.h substitute should suffice. We also test
  6293. this with GCC, where it should work, to detect more
  6294. quickly whether someone messes up the test in the
  6295. future. */
  6296. char digs[] = "0123456789";
  6297. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6298. # endif
  6299. /* Catch a bug in an HP-UX C compiler. See
  6300. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6301. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6302. */
  6303. _Bool q = true;
  6304. _Bool *pq = &q;
  6305. int
  6306. main ()
  6307. {
  6308. *pq |= q;
  6309. *pq |= ! q;
  6310. /* Refer to every declared value, to avoid compiler optimizations. */
  6311. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6312. + !m + !n + !o + !p + !q + !pq);
  6313. ;
  6314. return 0;
  6315. }
  6316. _ACEOF
  6317. rm -f conftest.$ac_objext
  6318. if { (ac_try="$ac_compile"
  6319. case "(($ac_try" in
  6320. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6321. *) ac_try_echo=$ac_try;;
  6322. esac
  6323. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6324. (eval "$ac_compile") 2>conftest.er1
  6325. ac_status=$?
  6326. grep -v '^ *+' conftest.er1 >conftest.err
  6327. rm -f conftest.er1
  6328. cat conftest.err >&5
  6329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6330. (exit $ac_status); } && {
  6331. test -z "$ac_c_werror_flag" ||
  6332. test ! -s conftest.err
  6333. } && test -s conftest.$ac_objext; then
  6334. ac_cv_header_stdbool_h=yes
  6335. else
  6336. echo "$as_me: failed program was:" >&5
  6337. sed 's/^/| /' conftest.$ac_ext >&5
  6338. ac_cv_header_stdbool_h=no
  6339. fi
  6340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6341. fi
  6342. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6343. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6344. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6345. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6346. if test "${ac_cv_type__Bool+set}" = set; then
  6347. echo $ECHO_N "(cached) $ECHO_C" >&6
  6348. else
  6349. cat >conftest.$ac_ext <<_ACEOF
  6350. /* confdefs.h. */
  6351. _ACEOF
  6352. cat confdefs.h >>conftest.$ac_ext
  6353. cat >>conftest.$ac_ext <<_ACEOF
  6354. /* end confdefs.h. */
  6355. $ac_includes_default
  6356. typedef _Bool ac__type_new_;
  6357. int
  6358. main ()
  6359. {
  6360. if ((ac__type_new_ *) 0)
  6361. return 0;
  6362. if (sizeof (ac__type_new_))
  6363. return 0;
  6364. ;
  6365. return 0;
  6366. }
  6367. _ACEOF
  6368. rm -f conftest.$ac_objext
  6369. if { (ac_try="$ac_compile"
  6370. case "(($ac_try" in
  6371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6372. *) ac_try_echo=$ac_try;;
  6373. esac
  6374. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6375. (eval "$ac_compile") 2>conftest.er1
  6376. ac_status=$?
  6377. grep -v '^ *+' conftest.er1 >conftest.err
  6378. rm -f conftest.er1
  6379. cat conftest.err >&5
  6380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6381. (exit $ac_status); } && {
  6382. test -z "$ac_c_werror_flag" ||
  6383. test ! -s conftest.err
  6384. } && test -s conftest.$ac_objext; then
  6385. ac_cv_type__Bool=yes
  6386. else
  6387. echo "$as_me: failed program was:" >&5
  6388. sed 's/^/| /' conftest.$ac_ext >&5
  6389. ac_cv_type__Bool=no
  6390. fi
  6391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6392. fi
  6393. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  6394. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  6395. if test $ac_cv_type__Bool = yes; then
  6396. cat >>confdefs.h <<_ACEOF
  6397. #define HAVE__BOOL 1
  6398. _ACEOF
  6399. fi
  6400. if test $ac_cv_header_stdbool_h = yes; then
  6401. cat >>confdefs.h <<\_ACEOF
  6402. #define HAVE_STDBOOL_H 1
  6403. _ACEOF
  6404. fi
  6405. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6406. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  6407. if test "${ac_cv_c_const+set}" = set; then
  6408. echo $ECHO_N "(cached) $ECHO_C" >&6
  6409. else
  6410. cat >conftest.$ac_ext <<_ACEOF
  6411. /* confdefs.h. */
  6412. _ACEOF
  6413. cat confdefs.h >>conftest.$ac_ext
  6414. cat >>conftest.$ac_ext <<_ACEOF
  6415. /* end confdefs.h. */
  6416. int
  6417. main ()
  6418. {
  6419. /* FIXME: Include the comments suggested by Paul. */
  6420. #ifndef __cplusplus
  6421. /* Ultrix mips cc rejects this. */
  6422. typedef int charset[2];
  6423. const charset cs;
  6424. /* SunOS 4.1.1 cc rejects this. */
  6425. char const *const *pcpcc;
  6426. char **ppc;
  6427. /* NEC SVR4.0.2 mips cc rejects this. */
  6428. struct point {int x, y;};
  6429. static struct point const zero = {0,0};
  6430. /* AIX XL C 1.02.0.0 rejects this.
  6431. It does not let you subtract one const X* pointer from another in
  6432. an arm of an if-expression whose if-part is not a constant
  6433. expression */
  6434. const char *g = "string";
  6435. pcpcc = &g + (g ? g-g : 0);
  6436. /* HPUX 7.0 cc rejects these. */
  6437. ++pcpcc;
  6438. ppc = (char**) pcpcc;
  6439. pcpcc = (char const *const *) ppc;
  6440. { /* SCO 3.2v4 cc rejects this. */
  6441. char *t;
  6442. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6443. *t++ = 0;
  6444. if (s) return 0;
  6445. }
  6446. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6447. int x[] = {25, 17};
  6448. const int *foo = &x[0];
  6449. ++foo;
  6450. }
  6451. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6452. typedef const int *iptr;
  6453. iptr p = 0;
  6454. ++p;
  6455. }
  6456. { /* AIX XL C 1.02.0.0 rejects this saying
  6457. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6458. struct s { int j; const int *ap[3]; };
  6459. struct s *b; b->j = 5;
  6460. }
  6461. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6462. const int foo = 10;
  6463. if (!foo) return 0;
  6464. }
  6465. return !cs[0] && !zero.x;
  6466. #endif
  6467. ;
  6468. return 0;
  6469. }
  6470. _ACEOF
  6471. rm -f conftest.$ac_objext
  6472. if { (ac_try="$ac_compile"
  6473. case "(($ac_try" in
  6474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6475. *) ac_try_echo=$ac_try;;
  6476. esac
  6477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6478. (eval "$ac_compile") 2>conftest.er1
  6479. ac_status=$?
  6480. grep -v '^ *+' conftest.er1 >conftest.err
  6481. rm -f conftest.er1
  6482. cat conftest.err >&5
  6483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6484. (exit $ac_status); } && {
  6485. test -z "$ac_c_werror_flag" ||
  6486. test ! -s conftest.err
  6487. } && test -s conftest.$ac_objext; then
  6488. ac_cv_c_const=yes
  6489. else
  6490. echo "$as_me: failed program was:" >&5
  6491. sed 's/^/| /' conftest.$ac_ext >&5
  6492. ac_cv_c_const=no
  6493. fi
  6494. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6495. fi
  6496. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6497. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  6498. if test $ac_cv_c_const = no; then
  6499. cat >>confdefs.h <<\_ACEOF
  6500. #define const
  6501. _ACEOF
  6502. fi
  6503. { echo "$as_me:$LINENO: checking for inline" >&5
  6504. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  6505. if test "${ac_cv_c_inline+set}" = set; then
  6506. echo $ECHO_N "(cached) $ECHO_C" >&6
  6507. else
  6508. ac_cv_c_inline=no
  6509. for ac_kw in inline __inline__ __inline; do
  6510. cat >conftest.$ac_ext <<_ACEOF
  6511. /* confdefs.h. */
  6512. _ACEOF
  6513. cat confdefs.h >>conftest.$ac_ext
  6514. cat >>conftest.$ac_ext <<_ACEOF
  6515. /* end confdefs.h. */
  6516. #ifndef __cplusplus
  6517. typedef int foo_t;
  6518. static $ac_kw foo_t static_foo () {return 0; }
  6519. $ac_kw foo_t foo () {return 0; }
  6520. #endif
  6521. _ACEOF
  6522. rm -f conftest.$ac_objext
  6523. if { (ac_try="$ac_compile"
  6524. case "(($ac_try" in
  6525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6526. *) ac_try_echo=$ac_try;;
  6527. esac
  6528. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6529. (eval "$ac_compile") 2>conftest.er1
  6530. ac_status=$?
  6531. grep -v '^ *+' conftest.er1 >conftest.err
  6532. rm -f conftest.er1
  6533. cat conftest.err >&5
  6534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6535. (exit $ac_status); } && {
  6536. test -z "$ac_c_werror_flag" ||
  6537. test ! -s conftest.err
  6538. } && test -s conftest.$ac_objext; then
  6539. ac_cv_c_inline=$ac_kw
  6540. else
  6541. echo "$as_me: failed program was:" >&5
  6542. sed 's/^/| /' conftest.$ac_ext >&5
  6543. fi
  6544. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6545. test "$ac_cv_c_inline" != no && break
  6546. done
  6547. fi
  6548. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6549. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  6550. case $ac_cv_c_inline in
  6551. inline | yes) ;;
  6552. *)
  6553. case $ac_cv_c_inline in
  6554. no) ac_val=;;
  6555. *) ac_val=$ac_cv_c_inline;;
  6556. esac
  6557. cat >>confdefs.h <<_ACEOF
  6558. #ifndef __cplusplus
  6559. #define inline $ac_val
  6560. #endif
  6561. _ACEOF
  6562. ;;
  6563. esac
  6564. { echo "$as_me:$LINENO: checking for size_t" >&5
  6565. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  6566. if test "${ac_cv_type_size_t+set}" = set; then
  6567. echo $ECHO_N "(cached) $ECHO_C" >&6
  6568. else
  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. $ac_includes_default
  6576. typedef size_t ac__type_new_;
  6577. int
  6578. main ()
  6579. {
  6580. if ((ac__type_new_ *) 0)
  6581. return 0;
  6582. if (sizeof (ac__type_new_))
  6583. return 0;
  6584. ;
  6585. return 0;
  6586. }
  6587. _ACEOF
  6588. rm -f conftest.$ac_objext
  6589. if { (ac_try="$ac_compile"
  6590. case "(($ac_try" in
  6591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6592. *) ac_try_echo=$ac_try;;
  6593. esac
  6594. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6595. (eval "$ac_compile") 2>conftest.er1
  6596. ac_status=$?
  6597. grep -v '^ *+' conftest.er1 >conftest.err
  6598. rm -f conftest.er1
  6599. cat conftest.err >&5
  6600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6601. (exit $ac_status); } && {
  6602. test -z "$ac_c_werror_flag" ||
  6603. test ! -s conftest.err
  6604. } && test -s conftest.$ac_objext; then
  6605. ac_cv_type_size_t=yes
  6606. else
  6607. echo "$as_me: failed program was:" >&5
  6608. sed 's/^/| /' conftest.$ac_ext >&5
  6609. ac_cv_type_size_t=no
  6610. fi
  6611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6612. fi
  6613. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6614. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  6615. if test $ac_cv_type_size_t = yes; then
  6616. :
  6617. else
  6618. cat >>confdefs.h <<_ACEOF
  6619. #define size_t unsigned int
  6620. _ACEOF
  6621. fi
  6622. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  6623. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  6624. if test "${ac_cv_header_time+set}" = set; then
  6625. echo $ECHO_N "(cached) $ECHO_C" >&6
  6626. else
  6627. cat >conftest.$ac_ext <<_ACEOF
  6628. /* confdefs.h. */
  6629. _ACEOF
  6630. cat confdefs.h >>conftest.$ac_ext
  6631. cat >>conftest.$ac_ext <<_ACEOF
  6632. /* end confdefs.h. */
  6633. #include <sys/types.h>
  6634. #include <sys/time.h>
  6635. #include <time.h>
  6636. int
  6637. main ()
  6638. {
  6639. if ((struct tm *) 0)
  6640. return 0;
  6641. ;
  6642. return 0;
  6643. }
  6644. _ACEOF
  6645. rm -f conftest.$ac_objext
  6646. if { (ac_try="$ac_compile"
  6647. case "(($ac_try" in
  6648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6649. *) ac_try_echo=$ac_try;;
  6650. esac
  6651. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6652. (eval "$ac_compile") 2>conftest.er1
  6653. ac_status=$?
  6654. grep -v '^ *+' conftest.er1 >conftest.err
  6655. rm -f conftest.er1
  6656. cat conftest.err >&5
  6657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6658. (exit $ac_status); } && {
  6659. test -z "$ac_c_werror_flag" ||
  6660. test ! -s conftest.err
  6661. } && test -s conftest.$ac_objext; then
  6662. ac_cv_header_time=yes
  6663. else
  6664. echo "$as_me: failed program was:" >&5
  6665. sed 's/^/| /' conftest.$ac_ext >&5
  6666. ac_cv_header_time=no
  6667. fi
  6668. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6669. fi
  6670. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  6671. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  6672. if test $ac_cv_header_time = yes; then
  6673. cat >>confdefs.h <<\_ACEOF
  6674. #define TIME_WITH_SYS_TIME 1
  6675. _ACEOF
  6676. fi
  6677. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6678. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  6679. if test "${ac_cv_struct_tm+set}" = set; then
  6680. echo $ECHO_N "(cached) $ECHO_C" >&6
  6681. else
  6682. cat >conftest.$ac_ext <<_ACEOF
  6683. /* confdefs.h. */
  6684. _ACEOF
  6685. cat confdefs.h >>conftest.$ac_ext
  6686. cat >>conftest.$ac_ext <<_ACEOF
  6687. /* end confdefs.h. */
  6688. #include <sys/types.h>
  6689. #include <time.h>
  6690. int
  6691. main ()
  6692. {
  6693. struct tm tm;
  6694. int *p = &tm.tm_sec;
  6695. return !p;
  6696. ;
  6697. return 0;
  6698. }
  6699. _ACEOF
  6700. rm -f conftest.$ac_objext
  6701. if { (ac_try="$ac_compile"
  6702. case "(($ac_try" in
  6703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6704. *) ac_try_echo=$ac_try;;
  6705. esac
  6706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6707. (eval "$ac_compile") 2>conftest.er1
  6708. ac_status=$?
  6709. grep -v '^ *+' conftest.er1 >conftest.err
  6710. rm -f conftest.er1
  6711. cat conftest.err >&5
  6712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6713. (exit $ac_status); } && {
  6714. test -z "$ac_c_werror_flag" ||
  6715. test ! -s conftest.err
  6716. } && test -s conftest.$ac_objext; then
  6717. ac_cv_struct_tm=time.h
  6718. else
  6719. echo "$as_me: failed program was:" >&5
  6720. sed 's/^/| /' conftest.$ac_ext >&5
  6721. ac_cv_struct_tm=sys/time.h
  6722. fi
  6723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6724. fi
  6725. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6726. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  6727. if test $ac_cv_struct_tm = sys/time.h; then
  6728. cat >>confdefs.h <<\_ACEOF
  6729. #define TM_IN_SYS_TIME 1
  6730. _ACEOF
  6731. fi
  6732. { echo "$as_me:$LINENO: checking for working volatile" >&5
  6733. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  6734. if test "${ac_cv_c_volatile+set}" = set; then
  6735. echo $ECHO_N "(cached) $ECHO_C" >&6
  6736. else
  6737. cat >conftest.$ac_ext <<_ACEOF
  6738. /* confdefs.h. */
  6739. _ACEOF
  6740. cat confdefs.h >>conftest.$ac_ext
  6741. cat >>conftest.$ac_ext <<_ACEOF
  6742. /* end confdefs.h. */
  6743. int
  6744. main ()
  6745. {
  6746. volatile int x;
  6747. int * volatile y = (int *) 0;
  6748. return !x && !y;
  6749. ;
  6750. return 0;
  6751. }
  6752. _ACEOF
  6753. rm -f conftest.$ac_objext
  6754. if { (ac_try="$ac_compile"
  6755. case "(($ac_try" in
  6756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6757. *) ac_try_echo=$ac_try;;
  6758. esac
  6759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6760. (eval "$ac_compile") 2>conftest.er1
  6761. ac_status=$?
  6762. grep -v '^ *+' conftest.er1 >conftest.err
  6763. rm -f conftest.er1
  6764. cat conftest.err >&5
  6765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6766. (exit $ac_status); } && {
  6767. test -z "$ac_c_werror_flag" ||
  6768. test ! -s conftest.err
  6769. } && test -s conftest.$ac_objext; then
  6770. ac_cv_c_volatile=yes
  6771. else
  6772. echo "$as_me: failed program was:" >&5
  6773. sed 's/^/| /' conftest.$ac_ext >&5
  6774. ac_cv_c_volatile=no
  6775. fi
  6776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6777. fi
  6778. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  6779. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  6780. if test $ac_cv_c_volatile = no; then
  6781. cat >>confdefs.h <<\_ACEOF
  6782. #define volatile
  6783. _ACEOF
  6784. fi
  6785. # Checks for library functions.
  6786. MKINSTALLDIRS=
  6787. if test -n "$ac_aux_dir"; then
  6788. case "$ac_aux_dir" in
  6789. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  6790. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  6791. esac
  6792. fi
  6793. if test -z "$MKINSTALLDIRS"; then
  6794. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  6795. fi
  6796. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  6797. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  6798. # Check whether --enable-nls was given.
  6799. if test "${enable_nls+set}" = set; then
  6800. enableval=$enable_nls; USE_NLS=$enableval
  6801. else
  6802. USE_NLS=yes
  6803. fi
  6804. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  6805. echo "${ECHO_T}$USE_NLS" >&6; }
  6806. # Prepare PATH_SEPARATOR.
  6807. # The user is always right.
  6808. if test "${PATH_SEPARATOR+set}" != set; then
  6809. echo "#! /bin/sh" >conf$$.sh
  6810. echo "exit 0" >>conf$$.sh
  6811. chmod +x conf$$.sh
  6812. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6813. PATH_SEPARATOR=';'
  6814. else
  6815. PATH_SEPARATOR=:
  6816. fi
  6817. rm -f conf$$.sh
  6818. fi
  6819. # Find out how to test for executable files. Don't use a zero-byte file,
  6820. # as systems may use methods other than mode bits to determine executability.
  6821. cat >conf$$.file <<_ASEOF
  6822. #! /bin/sh
  6823. exit 0
  6824. _ASEOF
  6825. chmod +x conf$$.file
  6826. if test -x conf$$.file >/dev/null 2>&1; then
  6827. ac_executable_p="test -x"
  6828. else
  6829. ac_executable_p="test -f"
  6830. fi
  6831. rm -f conf$$.file
  6832. # Extract the first word of "msgfmt", so it can be a program name with args.
  6833. set dummy msgfmt; ac_word=$2
  6834. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6835. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6836. if test "${ac_cv_path_MSGFMT+set}" = set; then
  6837. echo $ECHO_N "(cached) $ECHO_C" >&6
  6838. else
  6839. case "$MSGFMT" in
  6840. [\\/]* | ?:[\\/]*)
  6841. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  6842. ;;
  6843. *)
  6844. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6845. for ac_dir in $PATH; do
  6846. IFS="$ac_save_IFS"
  6847. test -z "$ac_dir" && ac_dir=.
  6848. for ac_exec_ext in '' $ac_executable_extensions; do
  6849. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6850. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  6851. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6852. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  6853. break 2
  6854. fi
  6855. fi
  6856. done
  6857. done
  6858. IFS="$ac_save_IFS"
  6859. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  6860. ;;
  6861. esac
  6862. fi
  6863. MSGFMT="$ac_cv_path_MSGFMT"
  6864. if test "$MSGFMT" != ":"; then
  6865. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  6866. echo "${ECHO_T}$MSGFMT" >&6; }
  6867. else
  6868. { echo "$as_me:$LINENO: result: no" >&5
  6869. echo "${ECHO_T}no" >&6; }
  6870. fi
  6871. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  6872. set dummy gmsgfmt; ac_word=$2
  6873. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6874. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6875. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  6876. echo $ECHO_N "(cached) $ECHO_C" >&6
  6877. else
  6878. case $GMSGFMT in
  6879. [\\/]* | ?:[\\/]*)
  6880. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6881. ;;
  6882. *)
  6883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6884. for as_dir in $PATH
  6885. do
  6886. IFS=$as_save_IFS
  6887. test -z "$as_dir" && as_dir=.
  6888. for ac_exec_ext in '' $ac_executable_extensions; do
  6889. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6890. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  6891. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6892. break 2
  6893. fi
  6894. done
  6895. done
  6896. IFS=$as_save_IFS
  6897. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  6898. ;;
  6899. esac
  6900. fi
  6901. GMSGFMT=$ac_cv_path_GMSGFMT
  6902. if test -n "$GMSGFMT"; then
  6903. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  6904. echo "${ECHO_T}$GMSGFMT" >&6; }
  6905. else
  6906. { echo "$as_me:$LINENO: result: no" >&5
  6907. echo "${ECHO_T}no" >&6; }
  6908. fi
  6909. # Prepare PATH_SEPARATOR.
  6910. # The user is always right.
  6911. if test "${PATH_SEPARATOR+set}" != set; then
  6912. echo "#! /bin/sh" >conf$$.sh
  6913. echo "exit 0" >>conf$$.sh
  6914. chmod +x conf$$.sh
  6915. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6916. PATH_SEPARATOR=';'
  6917. else
  6918. PATH_SEPARATOR=:
  6919. fi
  6920. rm -f conf$$.sh
  6921. fi
  6922. # Find out how to test for executable files. Don't use a zero-byte file,
  6923. # as systems may use methods other than mode bits to determine executability.
  6924. cat >conf$$.file <<_ASEOF
  6925. #! /bin/sh
  6926. exit 0
  6927. _ASEOF
  6928. chmod +x conf$$.file
  6929. if test -x conf$$.file >/dev/null 2>&1; then
  6930. ac_executable_p="test -x"
  6931. else
  6932. ac_executable_p="test -f"
  6933. fi
  6934. rm -f conf$$.file
  6935. # Extract the first word of "xgettext", so it can be a program name with args.
  6936. set dummy xgettext; ac_word=$2
  6937. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6938. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6939. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  6940. echo $ECHO_N "(cached) $ECHO_C" >&6
  6941. else
  6942. case "$XGETTEXT" in
  6943. [\\/]* | ?:[\\/]*)
  6944. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6945. ;;
  6946. *)
  6947. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6948. for ac_dir in $PATH; do
  6949. IFS="$ac_save_IFS"
  6950. test -z "$ac_dir" && ac_dir=.
  6951. for ac_exec_ext in '' $ac_executable_extensions; do
  6952. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6953. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6954. (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
  6955. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  6956. break 2
  6957. fi
  6958. fi
  6959. done
  6960. done
  6961. IFS="$ac_save_IFS"
  6962. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6963. ;;
  6964. esac
  6965. fi
  6966. XGETTEXT="$ac_cv_path_XGETTEXT"
  6967. if test "$XGETTEXT" != ":"; then
  6968. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  6969. echo "${ECHO_T}$XGETTEXT" >&6; }
  6970. else
  6971. { echo "$as_me:$LINENO: result: no" >&5
  6972. echo "${ECHO_T}no" >&6; }
  6973. fi
  6974. rm -f messages.po
  6975. # Prepare PATH_SEPARATOR.
  6976. # The user is always right.
  6977. if test "${PATH_SEPARATOR+set}" != set; then
  6978. echo "#! /bin/sh" >conf$$.sh
  6979. echo "exit 0" >>conf$$.sh
  6980. chmod +x conf$$.sh
  6981. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6982. PATH_SEPARATOR=';'
  6983. else
  6984. PATH_SEPARATOR=:
  6985. fi
  6986. rm -f conf$$.sh
  6987. fi
  6988. # Find out how to test for executable files. Don't use a zero-byte file,
  6989. # as systems may use methods other than mode bits to determine executability.
  6990. cat >conf$$.file <<_ASEOF
  6991. #! /bin/sh
  6992. exit 0
  6993. _ASEOF
  6994. chmod +x conf$$.file
  6995. if test -x conf$$.file >/dev/null 2>&1; then
  6996. ac_executable_p="test -x"
  6997. else
  6998. ac_executable_p="test -f"
  6999. fi
  7000. rm -f conf$$.file
  7001. # Extract the first word of "msgmerge", so it can be a program name with args.
  7002. set dummy msgmerge; ac_word=$2
  7003. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7004. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7005. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  7006. echo $ECHO_N "(cached) $ECHO_C" >&6
  7007. else
  7008. case "$MSGMERGE" in
  7009. [\\/]* | ?:[\\/]*)
  7010. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  7011. ;;
  7012. *)
  7013. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7014. for ac_dir in $PATH; do
  7015. IFS="$ac_save_IFS"
  7016. test -z "$ac_dir" && ac_dir=.
  7017. for ac_exec_ext in '' $ac_executable_extensions; do
  7018. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7019. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  7020. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  7021. break 2
  7022. fi
  7023. fi
  7024. done
  7025. done
  7026. IFS="$ac_save_IFS"
  7027. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  7028. ;;
  7029. esac
  7030. fi
  7031. MSGMERGE="$ac_cv_path_MSGMERGE"
  7032. if test "$MSGMERGE" != ":"; then
  7033. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  7034. echo "${ECHO_T}$MSGMERGE" >&6; }
  7035. else
  7036. { echo "$as_me:$LINENO: result: no" >&5
  7037. echo "${ECHO_T}no" >&6; }
  7038. fi
  7039. if test "$GMSGFMT" != ":"; then
  7040. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  7041. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7042. : ;
  7043. else
  7044. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  7045. { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  7046. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  7047. GMSGFMT=":"
  7048. fi
  7049. fi
  7050. if test "$XGETTEXT" != ":"; then
  7051. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  7052. (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
  7053. : ;
  7054. else
  7055. { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  7056. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
  7057. XGETTEXT=":"
  7058. fi
  7059. rm -f messages.po
  7060. fi
  7061. ac_config_commands="$ac_config_commands default-1"
  7062. { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  7063. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  7064. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  7065. echo $ECHO_N "(cached) $ECHO_C" >&6
  7066. else
  7067. ac_check_lib_save_LIBS=$LIBS
  7068. LIBS="-lcposix $LIBS"
  7069. cat >conftest.$ac_ext <<_ACEOF
  7070. /* confdefs.h. */
  7071. _ACEOF
  7072. cat confdefs.h >>conftest.$ac_ext
  7073. cat >>conftest.$ac_ext <<_ACEOF
  7074. /* end confdefs.h. */
  7075. /* Override any GCC internal prototype to avoid an error.
  7076. Use char because int might match the return type of a GCC
  7077. builtin and then its argument prototype would still apply. */
  7078. #ifdef __cplusplus
  7079. extern "C"
  7080. #endif
  7081. char strerror ();
  7082. int
  7083. main ()
  7084. {
  7085. return strerror ();
  7086. ;
  7087. return 0;
  7088. }
  7089. _ACEOF
  7090. rm -f conftest.$ac_objext conftest$ac_exeext
  7091. if { (ac_try="$ac_link"
  7092. case "(($ac_try" in
  7093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7094. *) ac_try_echo=$ac_try;;
  7095. esac
  7096. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7097. (eval "$ac_link") 2>conftest.er1
  7098. ac_status=$?
  7099. grep -v '^ *+' conftest.er1 >conftest.err
  7100. rm -f conftest.er1
  7101. cat conftest.err >&5
  7102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7103. (exit $ac_status); } && {
  7104. test -z "$ac_c_werror_flag" ||
  7105. test ! -s conftest.err
  7106. } && test -s conftest$ac_exeext &&
  7107. $as_test_x conftest$ac_exeext; then
  7108. ac_cv_lib_cposix_strerror=yes
  7109. else
  7110. echo "$as_me: failed program was:" >&5
  7111. sed 's/^/| /' conftest.$ac_ext >&5
  7112. ac_cv_lib_cposix_strerror=no
  7113. fi
  7114. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7115. conftest$ac_exeext conftest.$ac_ext
  7116. LIBS=$ac_check_lib_save_LIBS
  7117. fi
  7118. { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  7119. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  7120. if test $ac_cv_lib_cposix_strerror = yes; then
  7121. LIBS="$LIBS -lcposix"
  7122. fi
  7123. { echo "$as_me:$LINENO: checking for off_t" >&5
  7124. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7125. if test "${ac_cv_type_off_t+set}" = set; then
  7126. echo $ECHO_N "(cached) $ECHO_C" >&6
  7127. else
  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. $ac_includes_default
  7135. typedef off_t ac__type_new_;
  7136. int
  7137. main ()
  7138. {
  7139. if ((ac__type_new_ *) 0)
  7140. return 0;
  7141. if (sizeof (ac__type_new_))
  7142. return 0;
  7143. ;
  7144. return 0;
  7145. }
  7146. _ACEOF
  7147. rm -f conftest.$ac_objext
  7148. if { (ac_try="$ac_compile"
  7149. case "(($ac_try" in
  7150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7151. *) ac_try_echo=$ac_try;;
  7152. esac
  7153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7154. (eval "$ac_compile") 2>conftest.er1
  7155. ac_status=$?
  7156. grep -v '^ *+' conftest.er1 >conftest.err
  7157. rm -f conftest.er1
  7158. cat conftest.err >&5
  7159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7160. (exit $ac_status); } && {
  7161. test -z "$ac_c_werror_flag" ||
  7162. test ! -s conftest.err
  7163. } && test -s conftest.$ac_objext; then
  7164. ac_cv_type_off_t=yes
  7165. else
  7166. echo "$as_me: failed program was:" >&5
  7167. sed 's/^/| /' conftest.$ac_ext >&5
  7168. ac_cv_type_off_t=no
  7169. fi
  7170. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7171. fi
  7172. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7173. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7174. if test $ac_cv_type_off_t = yes; then
  7175. :
  7176. else
  7177. cat >>confdefs.h <<_ACEOF
  7178. #define off_t long int
  7179. _ACEOF
  7180. fi
  7181. for ac_header in stdlib.h unistd.h
  7182. do
  7183. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7184. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7185. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7186. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7187. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7188. echo $ECHO_N "(cached) $ECHO_C" >&6
  7189. fi
  7190. ac_res=`eval echo '${'$as_ac_Header'}'`
  7191. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7192. echo "${ECHO_T}$ac_res" >&6; }
  7193. else
  7194. # Is the header compilable?
  7195. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7196. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7197. cat >conftest.$ac_ext <<_ACEOF
  7198. /* confdefs.h. */
  7199. _ACEOF
  7200. cat confdefs.h >>conftest.$ac_ext
  7201. cat >>conftest.$ac_ext <<_ACEOF
  7202. /* end confdefs.h. */
  7203. $ac_includes_default
  7204. #include <$ac_header>
  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_c_werror_flag" ||
  7221. test ! -s conftest.err
  7222. } && test -s conftest.$ac_objext; then
  7223. ac_header_compiler=yes
  7224. else
  7225. echo "$as_me: failed program was:" >&5
  7226. sed 's/^/| /' conftest.$ac_ext >&5
  7227. ac_header_compiler=no
  7228. fi
  7229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7230. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7231. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7232. # Is the header present?
  7233. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7234. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7235. cat >conftest.$ac_ext <<_ACEOF
  7236. /* confdefs.h. */
  7237. _ACEOF
  7238. cat confdefs.h >>conftest.$ac_ext
  7239. cat >>conftest.$ac_ext <<_ACEOF
  7240. /* end confdefs.h. */
  7241. #include <$ac_header>
  7242. _ACEOF
  7243. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7244. case "(($ac_try" in
  7245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7246. *) ac_try_echo=$ac_try;;
  7247. esac
  7248. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7249. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7250. ac_status=$?
  7251. grep -v '^ *+' conftest.er1 >conftest.err
  7252. rm -f conftest.er1
  7253. cat conftest.err >&5
  7254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7255. (exit $ac_status); } >/dev/null && {
  7256. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7257. test ! -s conftest.err
  7258. }; then
  7259. ac_header_preproc=yes
  7260. else
  7261. echo "$as_me: failed program was:" >&5
  7262. sed 's/^/| /' conftest.$ac_ext >&5
  7263. ac_header_preproc=no
  7264. fi
  7265. rm -f conftest.err conftest.$ac_ext
  7266. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7267. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7268. # So? What about this header?
  7269. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7270. yes:no: )
  7271. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7272. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7273. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7274. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7275. ac_header_preproc=yes
  7276. ;;
  7277. no:yes:* )
  7278. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7279. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7280. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7281. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7282. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7283. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7284. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7285. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7286. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7287. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7288. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7289. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7290. ( cat <<\_ASBOX
  7291. ## ----------------------------------------------- ##
  7292. ## Report this to t-tujikawa@users.sourceforge.net ##
  7293. ## ----------------------------------------------- ##
  7294. _ASBOX
  7295. ) | sed "s/^/$as_me: WARNING: /" >&2
  7296. ;;
  7297. esac
  7298. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7299. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7300. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7301. echo $ECHO_N "(cached) $ECHO_C" >&6
  7302. else
  7303. eval "$as_ac_Header=\$ac_header_preproc"
  7304. fi
  7305. ac_res=`eval echo '${'$as_ac_Header'}'`
  7306. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7307. echo "${ECHO_T}$ac_res" >&6; }
  7308. fi
  7309. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7310. cat >>confdefs.h <<_ACEOF
  7311. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7312. _ACEOF
  7313. fi
  7314. done
  7315. for ac_func in getpagesize
  7316. do
  7317. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7318. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7319. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7320. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7321. echo $ECHO_N "(cached) $ECHO_C" >&6
  7322. else
  7323. cat >conftest.$ac_ext <<_ACEOF
  7324. /* confdefs.h. */
  7325. _ACEOF
  7326. cat confdefs.h >>conftest.$ac_ext
  7327. cat >>conftest.$ac_ext <<_ACEOF
  7328. /* end confdefs.h. */
  7329. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7330. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7331. #define $ac_func innocuous_$ac_func
  7332. /* System header to define __stub macros and hopefully few prototypes,
  7333. which can conflict with char $ac_func (); below.
  7334. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7335. <limits.h> exists even on freestanding compilers. */
  7336. #ifdef __STDC__
  7337. # include <limits.h>
  7338. #else
  7339. # include <assert.h>
  7340. #endif
  7341. #undef $ac_func
  7342. /* Override any GCC internal prototype to avoid an error.
  7343. Use char because int might match the return type of a GCC
  7344. builtin and then its argument prototype would still apply. */
  7345. #ifdef __cplusplus
  7346. extern "C"
  7347. #endif
  7348. char $ac_func ();
  7349. /* The GNU C library defines this for functions which it implements
  7350. to always fail with ENOSYS. Some functions are actually named
  7351. something starting with __ and the normal name is an alias. */
  7352. #if defined __stub_$ac_func || defined __stub___$ac_func
  7353. choke me
  7354. #endif
  7355. int
  7356. main ()
  7357. {
  7358. return $ac_func ();
  7359. ;
  7360. return 0;
  7361. }
  7362. _ACEOF
  7363. rm -f conftest.$ac_objext conftest$ac_exeext
  7364. if { (ac_try="$ac_link"
  7365. case "(($ac_try" in
  7366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7367. *) ac_try_echo=$ac_try;;
  7368. esac
  7369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7370. (eval "$ac_link") 2>conftest.er1
  7371. ac_status=$?
  7372. grep -v '^ *+' conftest.er1 >conftest.err
  7373. rm -f conftest.er1
  7374. cat conftest.err >&5
  7375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7376. (exit $ac_status); } && {
  7377. test -z "$ac_c_werror_flag" ||
  7378. test ! -s conftest.err
  7379. } && test -s conftest$ac_exeext &&
  7380. $as_test_x conftest$ac_exeext; then
  7381. eval "$as_ac_var=yes"
  7382. else
  7383. echo "$as_me: failed program was:" >&5
  7384. sed 's/^/| /' conftest.$ac_ext >&5
  7385. eval "$as_ac_var=no"
  7386. fi
  7387. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7388. conftest$ac_exeext conftest.$ac_ext
  7389. fi
  7390. ac_res=`eval echo '${'$as_ac_var'}'`
  7391. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7392. echo "${ECHO_T}$ac_res" >&6; }
  7393. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7394. cat >>confdefs.h <<_ACEOF
  7395. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7396. _ACEOF
  7397. fi
  7398. done
  7399. { echo "$as_me:$LINENO: checking for working mmap" >&5
  7400. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  7401. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  7402. echo $ECHO_N "(cached) $ECHO_C" >&6
  7403. else
  7404. if test "$cross_compiling" = yes; then
  7405. ac_cv_func_mmap_fixed_mapped=no
  7406. else
  7407. cat >conftest.$ac_ext <<_ACEOF
  7408. /* confdefs.h. */
  7409. _ACEOF
  7410. cat confdefs.h >>conftest.$ac_ext
  7411. cat >>conftest.$ac_ext <<_ACEOF
  7412. /* end confdefs.h. */
  7413. $ac_includes_default
  7414. /* malloc might have been renamed as rpl_malloc. */
  7415. #undef malloc
  7416. /* Thanks to Mike Haertel and Jim Avera for this test.
  7417. Here is a matrix of mmap possibilities:
  7418. mmap private not fixed
  7419. mmap private fixed at somewhere currently unmapped
  7420. mmap private fixed at somewhere already mapped
  7421. mmap shared not fixed
  7422. mmap shared fixed at somewhere currently unmapped
  7423. mmap shared fixed at somewhere already mapped
  7424. For private mappings, we should verify that changes cannot be read()
  7425. back from the file, nor mmap's back from the file at a different
  7426. address. (There have been systems where private was not correctly
  7427. implemented like the infamous i386 svr4.0, and systems where the
  7428. VM page cache was not coherent with the file system buffer cache
  7429. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7430. For shared mappings, we should conversely verify that changes get
  7431. propagated back to all the places they're supposed to be.
  7432. Grep wants private fixed already mapped.
  7433. The main things grep needs to know about mmap are:
  7434. * does it exist and is it safe to write into the mmap'd area
  7435. * how to use it (BSD variants) */
  7436. #include <fcntl.h>
  7437. #include <sys/mman.h>
  7438. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7439. char *malloc ();
  7440. #endif
  7441. /* This mess was copied from the GNU getpagesize.h. */
  7442. #ifndef HAVE_GETPAGESIZE
  7443. /* Assume that all systems that can run configure have sys/param.h. */
  7444. # ifndef HAVE_SYS_PARAM_H
  7445. # define HAVE_SYS_PARAM_H 1
  7446. # endif
  7447. # ifdef _SC_PAGESIZE
  7448. # define getpagesize() sysconf(_SC_PAGESIZE)
  7449. # else /* no _SC_PAGESIZE */
  7450. # ifdef HAVE_SYS_PARAM_H
  7451. # include <sys/param.h>
  7452. # ifdef EXEC_PAGESIZE
  7453. # define getpagesize() EXEC_PAGESIZE
  7454. # else /* no EXEC_PAGESIZE */
  7455. # ifdef NBPG
  7456. # define getpagesize() NBPG * CLSIZE
  7457. # ifndef CLSIZE
  7458. # define CLSIZE 1
  7459. # endif /* no CLSIZE */
  7460. # else /* no NBPG */
  7461. # ifdef NBPC
  7462. # define getpagesize() NBPC
  7463. # else /* no NBPC */
  7464. # ifdef PAGESIZE
  7465. # define getpagesize() PAGESIZE
  7466. # endif /* PAGESIZE */
  7467. # endif /* no NBPC */
  7468. # endif /* no NBPG */
  7469. # endif /* no EXEC_PAGESIZE */
  7470. # else /* no HAVE_SYS_PARAM_H */
  7471. # define getpagesize() 8192 /* punt totally */
  7472. # endif /* no HAVE_SYS_PARAM_H */
  7473. # endif /* no _SC_PAGESIZE */
  7474. #endif /* no HAVE_GETPAGESIZE */
  7475. int
  7476. main ()
  7477. {
  7478. char *data, *data2, *data3;
  7479. int i, pagesize;
  7480. int fd;
  7481. pagesize = getpagesize ();
  7482. /* First, make a file with some known garbage in it. */
  7483. data = (char *) malloc (pagesize);
  7484. if (!data)
  7485. return 1;
  7486. for (i = 0; i < pagesize; ++i)
  7487. *(data + i) = rand ();
  7488. umask (0);
  7489. fd = creat ("conftest.mmap", 0600);
  7490. if (fd < 0)
  7491. return 1;
  7492. if (write (fd, data, pagesize) != pagesize)
  7493. return 1;
  7494. close (fd);
  7495. /* Next, try to mmap the file at a fixed address which already has
  7496. something else allocated at it. If we can, also make sure that
  7497. we see the same garbage. */
  7498. fd = open ("conftest.mmap", O_RDWR);
  7499. if (fd < 0)
  7500. return 1;
  7501. data2 = (char *) malloc (2 * pagesize);
  7502. if (!data2)
  7503. return 1;
  7504. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  7505. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7506. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7507. return 1;
  7508. for (i = 0; i < pagesize; ++i)
  7509. if (*(data + i) != *(data2 + i))
  7510. return 1;
  7511. /* Finally, make sure that changes to the mapped area do not
  7512. percolate back to the file as seen by read(). (This is a bug on
  7513. some variants of i386 svr4.0.) */
  7514. for (i = 0; i < pagesize; ++i)
  7515. *(data2 + i) = *(data2 + i) + 1;
  7516. data3 = (char *) malloc (pagesize);
  7517. if (!data3)
  7518. return 1;
  7519. if (read (fd, data3, pagesize) != pagesize)
  7520. return 1;
  7521. for (i = 0; i < pagesize; ++i)
  7522. if (*(data + i) != *(data3 + i))
  7523. return 1;
  7524. close (fd);
  7525. return 0;
  7526. }
  7527. _ACEOF
  7528. rm -f conftest$ac_exeext
  7529. if { (ac_try="$ac_link"
  7530. case "(($ac_try" in
  7531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7532. *) ac_try_echo=$ac_try;;
  7533. esac
  7534. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7535. (eval "$ac_link") 2>&5
  7536. ac_status=$?
  7537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7538. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7539. { (case "(($ac_try" in
  7540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7541. *) ac_try_echo=$ac_try;;
  7542. esac
  7543. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7544. (eval "$ac_try") 2>&5
  7545. ac_status=$?
  7546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7547. (exit $ac_status); }; }; then
  7548. ac_cv_func_mmap_fixed_mapped=yes
  7549. else
  7550. echo "$as_me: program exited with status $ac_status" >&5
  7551. echo "$as_me: failed program was:" >&5
  7552. sed 's/^/| /' conftest.$ac_ext >&5
  7553. ( exit $ac_status )
  7554. ac_cv_func_mmap_fixed_mapped=no
  7555. fi
  7556. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7557. fi
  7558. fi
  7559. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7560. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  7561. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7562. cat >>confdefs.h <<\_ACEOF
  7563. #define HAVE_MMAP 1
  7564. _ACEOF
  7565. fi
  7566. rm -f conftest.mmap
  7567. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  7568. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  7569. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  7570. echo $ECHO_N "(cached) $ECHO_C" >&6
  7571. else
  7572. cat >conftest.$ac_ext <<_ACEOF
  7573. /* confdefs.h. */
  7574. _ACEOF
  7575. cat confdefs.h >>conftest.$ac_ext
  7576. cat >>conftest.$ac_ext <<_ACEOF
  7577. /* end confdefs.h. */
  7578. #include <features.h>
  7579. #ifdef __GNU_LIBRARY__
  7580. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  7581. Lucky GNU user
  7582. #endif
  7583. #endif
  7584. _ACEOF
  7585. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7586. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  7587. ac_cv_gnu_library_2_1=yes
  7588. else
  7589. ac_cv_gnu_library_2_1=no
  7590. fi
  7591. rm -f conftest*
  7592. fi
  7593. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  7594. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  7595. GLIBC21="$ac_cv_gnu_library_2_1"
  7596. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  7597. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  7598. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  7599. echo $ECHO_N "(cached) $ECHO_C" >&6
  7600. else
  7601. if test "$cross_compiling" = yes; then
  7602. # Guess based on the CPU.
  7603. case "$host_cpu" in
  7604. alpha* | i3456786 | m68k | s390*)
  7605. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  7606. *)
  7607. gt_cv_int_divbyzero_sigfpe="guessing no";;
  7608. esac
  7609. else
  7610. cat >conftest.$ac_ext <<_ACEOF
  7611. /* confdefs.h. */
  7612. _ACEOF
  7613. cat confdefs.h >>conftest.$ac_ext
  7614. cat >>conftest.$ac_ext <<_ACEOF
  7615. /* end confdefs.h. */
  7616. #include <stdlib.h>
  7617. #include <signal.h>
  7618. static void
  7619. #ifdef __cplusplus
  7620. sigfpe_handler (int sig)
  7621. #else
  7622. sigfpe_handler (sig) int sig;
  7623. #endif
  7624. {
  7625. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  7626. exit (sig != SIGFPE);
  7627. }
  7628. int x = 1;
  7629. int y = 0;
  7630. int z;
  7631. int nan;
  7632. int main ()
  7633. {
  7634. signal (SIGFPE, sigfpe_handler);
  7635. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  7636. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  7637. signal (SIGTRAP, sigfpe_handler);
  7638. #endif
  7639. /* Linux/SPARC yields signal SIGILL. */
  7640. #if defined (__sparc__) && defined (__linux__)
  7641. signal (SIGILL, sigfpe_handler);
  7642. #endif
  7643. z = x / y;
  7644. nan = y / y;
  7645. exit (1);
  7646. }
  7647. _ACEOF
  7648. rm -f conftest$ac_exeext
  7649. if { (ac_try="$ac_link"
  7650. case "(($ac_try" in
  7651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7652. *) ac_try_echo=$ac_try;;
  7653. esac
  7654. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7655. (eval "$ac_link") 2>&5
  7656. ac_status=$?
  7657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7658. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7659. { (case "(($ac_try" in
  7660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7661. *) ac_try_echo=$ac_try;;
  7662. esac
  7663. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7664. (eval "$ac_try") 2>&5
  7665. ac_status=$?
  7666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7667. (exit $ac_status); }; }; then
  7668. gt_cv_int_divbyzero_sigfpe=yes
  7669. else
  7670. echo "$as_me: program exited with status $ac_status" >&5
  7671. echo "$as_me: failed program was:" >&5
  7672. sed 's/^/| /' conftest.$ac_ext >&5
  7673. ( exit $ac_status )
  7674. gt_cv_int_divbyzero_sigfpe=no
  7675. fi
  7676. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7677. fi
  7678. fi
  7679. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  7680. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  7681. case "$gt_cv_int_divbyzero_sigfpe" in
  7682. *yes) value=1;;
  7683. *) value=0;;
  7684. esac
  7685. cat >>confdefs.h <<_ACEOF
  7686. #define INTDIV0_RAISES_SIGFPE $value
  7687. _ACEOF
  7688. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7689. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7690. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  7691. echo $ECHO_N "(cached) $ECHO_C" >&6
  7692. else
  7693. cat >conftest.$ac_ext <<_ACEOF
  7694. /* confdefs.h. */
  7695. _ACEOF
  7696. cat confdefs.h >>conftest.$ac_ext
  7697. cat >>conftest.$ac_ext <<_ACEOF
  7698. /* end confdefs.h. */
  7699. #include <sys/types.h>
  7700. #include <inttypes.h>
  7701. int
  7702. main ()
  7703. {
  7704. uintmax_t i = (uintmax_t) -1;
  7705. ;
  7706. return 0;
  7707. }
  7708. _ACEOF
  7709. rm -f conftest.$ac_objext
  7710. if { (ac_try="$ac_compile"
  7711. case "(($ac_try" in
  7712. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7713. *) ac_try_echo=$ac_try;;
  7714. esac
  7715. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7716. (eval "$ac_compile") 2>conftest.er1
  7717. ac_status=$?
  7718. grep -v '^ *+' conftest.er1 >conftest.err
  7719. rm -f conftest.er1
  7720. cat conftest.err >&5
  7721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7722. (exit $ac_status); } && {
  7723. test -z "$ac_c_werror_flag" ||
  7724. test ! -s conftest.err
  7725. } && test -s conftest.$ac_objext; then
  7726. jm_ac_cv_header_inttypes_h=yes
  7727. else
  7728. echo "$as_me: failed program was:" >&5
  7729. sed 's/^/| /' conftest.$ac_ext >&5
  7730. jm_ac_cv_header_inttypes_h=no
  7731. fi
  7732. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7733. fi
  7734. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  7735. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
  7736. if test $jm_ac_cv_header_inttypes_h = yes; then
  7737. cat >>confdefs.h <<_ACEOF
  7738. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  7739. _ACEOF
  7740. fi
  7741. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  7742. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  7743. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  7744. echo $ECHO_N "(cached) $ECHO_C" >&6
  7745. else
  7746. cat >conftest.$ac_ext <<_ACEOF
  7747. /* confdefs.h. */
  7748. _ACEOF
  7749. cat confdefs.h >>conftest.$ac_ext
  7750. cat >>conftest.$ac_ext <<_ACEOF
  7751. /* end confdefs.h. */
  7752. #include <sys/types.h>
  7753. #include <stdint.h>
  7754. int
  7755. main ()
  7756. {
  7757. uintmax_t i = (uintmax_t) -1;
  7758. ;
  7759. return 0;
  7760. }
  7761. _ACEOF
  7762. rm -f conftest.$ac_objext
  7763. if { (ac_try="$ac_compile"
  7764. case "(($ac_try" in
  7765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7766. *) ac_try_echo=$ac_try;;
  7767. esac
  7768. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7769. (eval "$ac_compile") 2>conftest.er1
  7770. ac_status=$?
  7771. grep -v '^ *+' conftest.er1 >conftest.err
  7772. rm -f conftest.er1
  7773. cat conftest.err >&5
  7774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7775. (exit $ac_status); } && {
  7776. test -z "$ac_c_werror_flag" ||
  7777. test ! -s conftest.err
  7778. } && test -s conftest.$ac_objext; then
  7779. jm_ac_cv_header_stdint_h=yes
  7780. else
  7781. echo "$as_me: failed program was:" >&5
  7782. sed 's/^/| /' conftest.$ac_ext >&5
  7783. jm_ac_cv_header_stdint_h=no
  7784. fi
  7785. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7786. fi
  7787. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  7788. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
  7789. if test $jm_ac_cv_header_stdint_h = yes; then
  7790. cat >>confdefs.h <<_ACEOF
  7791. #define HAVE_STDINT_H_WITH_UINTMAX 1
  7792. _ACEOF
  7793. fi
  7794. { echo "$as_me:$LINENO: checking for unsigned long long" >&5
  7795. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
  7796. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  7797. echo $ECHO_N "(cached) $ECHO_C" >&6
  7798. else
  7799. cat >conftest.$ac_ext <<_ACEOF
  7800. /* confdefs.h. */
  7801. _ACEOF
  7802. cat confdefs.h >>conftest.$ac_ext
  7803. cat >>conftest.$ac_ext <<_ACEOF
  7804. /* end confdefs.h. */
  7805. unsigned long long ull = 1; int i = 63;
  7806. int
  7807. main ()
  7808. {
  7809. unsigned long long ullmax = (unsigned long long) -1;
  7810. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  7811. ;
  7812. return 0;
  7813. }
  7814. _ACEOF
  7815. rm -f conftest.$ac_objext conftest$ac_exeext
  7816. if { (ac_try="$ac_link"
  7817. case "(($ac_try" in
  7818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7819. *) ac_try_echo=$ac_try;;
  7820. esac
  7821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7822. (eval "$ac_link") 2>conftest.er1
  7823. ac_status=$?
  7824. grep -v '^ *+' conftest.er1 >conftest.err
  7825. rm -f conftest.er1
  7826. cat conftest.err >&5
  7827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7828. (exit $ac_status); } && {
  7829. test -z "$ac_c_werror_flag" ||
  7830. test ! -s conftest.err
  7831. } && test -s conftest$ac_exeext &&
  7832. $as_test_x conftest$ac_exeext; then
  7833. ac_cv_type_unsigned_long_long=yes
  7834. else
  7835. echo "$as_me: failed program was:" >&5
  7836. sed 's/^/| /' conftest.$ac_ext >&5
  7837. ac_cv_type_unsigned_long_long=no
  7838. fi
  7839. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7840. conftest$ac_exeext conftest.$ac_ext
  7841. fi
  7842. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  7843. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
  7844. if test $ac_cv_type_unsigned_long_long = yes; then
  7845. cat >>confdefs.h <<\_ACEOF
  7846. #define HAVE_UNSIGNED_LONG_LONG 1
  7847. _ACEOF
  7848. fi
  7849. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  7850. test $ac_cv_type_unsigned_long_long = yes \
  7851. && ac_type='unsigned long long' \
  7852. || ac_type='unsigned long'
  7853. cat >>confdefs.h <<_ACEOF
  7854. #define uintmax_t $ac_type
  7855. _ACEOF
  7856. else
  7857. cat >>confdefs.h <<\_ACEOF
  7858. #define HAVE_UINTMAX_T 1
  7859. _ACEOF
  7860. fi
  7861. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7862. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7863. if test "${gt_cv_header_inttypes_h+set}" = set; then
  7864. echo $ECHO_N "(cached) $ECHO_C" >&6
  7865. else
  7866. cat >conftest.$ac_ext <<_ACEOF
  7867. /* confdefs.h. */
  7868. _ACEOF
  7869. cat confdefs.h >>conftest.$ac_ext
  7870. cat >>conftest.$ac_ext <<_ACEOF
  7871. /* end confdefs.h. */
  7872. #include <sys/types.h>
  7873. #include <inttypes.h>
  7874. int
  7875. main ()
  7876. {
  7877. ;
  7878. return 0;
  7879. }
  7880. _ACEOF
  7881. rm -f conftest.$ac_objext
  7882. if { (ac_try="$ac_compile"
  7883. case "(($ac_try" in
  7884. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7885. *) ac_try_echo=$ac_try;;
  7886. esac
  7887. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7888. (eval "$ac_compile") 2>conftest.er1
  7889. ac_status=$?
  7890. grep -v '^ *+' conftest.er1 >conftest.err
  7891. rm -f conftest.er1
  7892. cat conftest.err >&5
  7893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7894. (exit $ac_status); } && {
  7895. test -z "$ac_c_werror_flag" ||
  7896. test ! -s conftest.err
  7897. } && test -s conftest.$ac_objext; then
  7898. gt_cv_header_inttypes_h=yes
  7899. else
  7900. echo "$as_me: failed program was:" >&5
  7901. sed 's/^/| /' conftest.$ac_ext >&5
  7902. gt_cv_header_inttypes_h=no
  7903. fi
  7904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7905. fi
  7906. { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  7907. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
  7908. if test $gt_cv_header_inttypes_h = yes; then
  7909. cat >>confdefs.h <<_ACEOF
  7910. #define HAVE_INTTYPES_H 1
  7911. _ACEOF
  7912. fi
  7913. if test $gt_cv_header_inttypes_h = yes; then
  7914. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  7915. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  7916. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  7917. echo $ECHO_N "(cached) $ECHO_C" >&6
  7918. else
  7919. cat >conftest.$ac_ext <<_ACEOF
  7920. /* confdefs.h. */
  7921. _ACEOF
  7922. cat confdefs.h >>conftest.$ac_ext
  7923. cat >>conftest.$ac_ext <<_ACEOF
  7924. /* end confdefs.h. */
  7925. #include <inttypes.h>
  7926. #ifdef PRId32
  7927. char *p = PRId32;
  7928. #endif
  7929. int
  7930. main ()
  7931. {
  7932. ;
  7933. return 0;
  7934. }
  7935. _ACEOF
  7936. rm -f conftest.$ac_objext
  7937. if { (ac_try="$ac_compile"
  7938. case "(($ac_try" in
  7939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7940. *) ac_try_echo=$ac_try;;
  7941. esac
  7942. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7943. (eval "$ac_compile") 2>conftest.er1
  7944. ac_status=$?
  7945. grep -v '^ *+' conftest.er1 >conftest.err
  7946. rm -f conftest.er1
  7947. cat conftest.err >&5
  7948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7949. (exit $ac_status); } && {
  7950. test -z "$ac_c_werror_flag" ||
  7951. test ! -s conftest.err
  7952. } && test -s conftest.$ac_objext; then
  7953. gt_cv_inttypes_pri_broken=no
  7954. else
  7955. echo "$as_me: failed program was:" >&5
  7956. sed 's/^/| /' conftest.$ac_ext >&5
  7957. gt_cv_inttypes_pri_broken=yes
  7958. fi
  7959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7960. fi
  7961. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  7962. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  7963. fi
  7964. if test "$gt_cv_inttypes_pri_broken" = yes; then
  7965. cat >>confdefs.h <<_ACEOF
  7966. #define PRI_MACROS_BROKEN 1
  7967. _ACEOF
  7968. fi
  7969. if test "X$prefix" = "XNONE"; then
  7970. acl_final_prefix="$ac_default_prefix"
  7971. else
  7972. acl_final_prefix="$prefix"
  7973. fi
  7974. if test "X$exec_prefix" = "XNONE"; then
  7975. acl_final_exec_prefix='${prefix}'
  7976. else
  7977. acl_final_exec_prefix="$exec_prefix"
  7978. fi
  7979. acl_save_prefix="$prefix"
  7980. prefix="$acl_final_prefix"
  7981. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  7982. prefix="$acl_save_prefix"
  7983. # Check whether --with-gnu-ld was given.
  7984. if test "${with_gnu_ld+set}" = set; then
  7985. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  7986. else
  7987. with_gnu_ld=no
  7988. fi
  7989. # Prepare PATH_SEPARATOR.
  7990. # The user is always right.
  7991. if test "${PATH_SEPARATOR+set}" != set; then
  7992. echo "#! /bin/sh" >conf$$.sh
  7993. echo "exit 0" >>conf$$.sh
  7994. chmod +x conf$$.sh
  7995. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7996. PATH_SEPARATOR=';'
  7997. else
  7998. PATH_SEPARATOR=:
  7999. fi
  8000. rm -f conf$$.sh
  8001. fi
  8002. ac_prog=ld
  8003. if test "$GCC" = yes; then
  8004. # Check if gcc -print-prog-name=ld gives a path.
  8005. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  8006. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  8007. case $host in
  8008. *-*-mingw*)
  8009. # gcc leaves a trailing carriage return which upsets mingw
  8010. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8011. *)
  8012. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8013. esac
  8014. case $ac_prog in
  8015. # Accept absolute paths.
  8016. [\\/]* | [A-Za-z]:[\\/]*)
  8017. re_direlt='/[^/][^/]*/\.\./'
  8018. # Canonicalize the path of ld
  8019. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8020. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8021. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8022. done
  8023. test -z "$LD" && LD="$ac_prog"
  8024. ;;
  8025. "")
  8026. # If it fails, then pretend we aren't using GCC.
  8027. ac_prog=ld
  8028. ;;
  8029. *)
  8030. # If it is relative, then search for the first ld in PATH.
  8031. with_gnu_ld=unknown
  8032. ;;
  8033. esac
  8034. elif test "$with_gnu_ld" = yes; then
  8035. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  8036. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  8037. else
  8038. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8039. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  8040. fi
  8041. if test "${acl_cv_path_LD+set}" = set; then
  8042. echo $ECHO_N "(cached) $ECHO_C" >&6
  8043. else
  8044. if test -z "$LD"; then
  8045. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8046. for ac_dir in $PATH; do
  8047. test -z "$ac_dir" && ac_dir=.
  8048. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8049. acl_cv_path_LD="$ac_dir/$ac_prog"
  8050. # Check to see if the program is GNU ld. I'd rather use --version,
  8051. # but apparently some GNU ld's only accept -v.
  8052. # Break only if it was the GNU/non-GNU ld that we prefer.
  8053. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  8054. test "$with_gnu_ld" != no && break
  8055. else
  8056. test "$with_gnu_ld" != yes && break
  8057. fi
  8058. fi
  8059. done
  8060. IFS="$ac_save_ifs"
  8061. else
  8062. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8063. fi
  8064. fi
  8065. LD="$acl_cv_path_LD"
  8066. if test -n "$LD"; then
  8067. { echo "$as_me:$LINENO: result: $LD" >&5
  8068. echo "${ECHO_T}$LD" >&6; }
  8069. else
  8070. { echo "$as_me:$LINENO: result: no" >&5
  8071. echo "${ECHO_T}no" >&6; }
  8072. fi
  8073. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8074. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8075. { (exit 1); exit 1; }; }
  8076. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8077. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  8078. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  8079. echo $ECHO_N "(cached) $ECHO_C" >&6
  8080. else
  8081. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8082. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  8083. acl_cv_prog_gnu_ld=yes
  8084. else
  8085. acl_cv_prog_gnu_ld=no
  8086. fi
  8087. fi
  8088. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  8089. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  8090. with_gnu_ld=$acl_cv_prog_gnu_ld
  8091. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  8092. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  8093. if test "${acl_cv_rpath+set}" = set; then
  8094. echo $ECHO_N "(cached) $ECHO_C" >&6
  8095. else
  8096. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8097. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8098. . ./conftest.sh
  8099. rm -f ./conftest.sh
  8100. acl_cv_rpath=done
  8101. fi
  8102. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  8103. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  8104. wl="$acl_cv_wl"
  8105. libext="$acl_cv_libext"
  8106. shlibext="$acl_cv_shlibext"
  8107. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8108. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8109. hardcode_direct="$acl_cv_hardcode_direct"
  8110. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8111. # Check whether --enable-rpath was given.
  8112. if test "${enable_rpath+set}" = set; then
  8113. enableval=$enable_rpath; :
  8114. else
  8115. enable_rpath=yes
  8116. fi
  8117. use_additional=yes
  8118. acl_save_prefix="$prefix"
  8119. prefix="$acl_final_prefix"
  8120. acl_save_exec_prefix="$exec_prefix"
  8121. exec_prefix="$acl_final_exec_prefix"
  8122. eval additional_includedir=\"$includedir\"
  8123. eval additional_libdir=\"$libdir\"
  8124. exec_prefix="$acl_save_exec_prefix"
  8125. prefix="$acl_save_prefix"
  8126. # Check whether --with-libiconv-prefix was given.
  8127. if test "${with_libiconv_prefix+set}" = set; then
  8128. withval=$with_libiconv_prefix;
  8129. if test "X$withval" = "Xno"; then
  8130. use_additional=no
  8131. else
  8132. if test "X$withval" = "X"; then
  8133. acl_save_prefix="$prefix"
  8134. prefix="$acl_final_prefix"
  8135. acl_save_exec_prefix="$exec_prefix"
  8136. exec_prefix="$acl_final_exec_prefix"
  8137. eval additional_includedir=\"$includedir\"
  8138. eval additional_libdir=\"$libdir\"
  8139. exec_prefix="$acl_save_exec_prefix"
  8140. prefix="$acl_save_prefix"
  8141. else
  8142. additional_includedir="$withval/include"
  8143. additional_libdir="$withval/lib"
  8144. fi
  8145. fi
  8146. fi
  8147. LIBICONV=
  8148. LTLIBICONV=
  8149. INCICONV=
  8150. rpathdirs=
  8151. ltrpathdirs=
  8152. names_already_handled=
  8153. names_next_round='iconv '
  8154. while test -n "$names_next_round"; do
  8155. names_this_round="$names_next_round"
  8156. names_next_round=
  8157. for name in $names_this_round; do
  8158. already_handled=
  8159. for n in $names_already_handled; do
  8160. if test "$n" = "$name"; then
  8161. already_handled=yes
  8162. break
  8163. fi
  8164. done
  8165. if test -z "$already_handled"; then
  8166. names_already_handled="$names_already_handled $name"
  8167. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8168. eval value=\"\$HAVE_LIB$uppername\"
  8169. if test -n "$value"; then
  8170. if test "$value" = yes; then
  8171. eval value=\"\$LIB$uppername\"
  8172. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  8173. eval value=\"\$LTLIB$uppername\"
  8174. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  8175. else
  8176. :
  8177. fi
  8178. else
  8179. found_dir=
  8180. found_la=
  8181. found_so=
  8182. found_a=
  8183. if test $use_additional = yes; then
  8184. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8185. found_dir="$additional_libdir"
  8186. found_so="$additional_libdir/lib$name.$shlibext"
  8187. if test -f "$additional_libdir/lib$name.la"; then
  8188. found_la="$additional_libdir/lib$name.la"
  8189. fi
  8190. else
  8191. if test -f "$additional_libdir/lib$name.$libext"; then
  8192. found_dir="$additional_libdir"
  8193. found_a="$additional_libdir/lib$name.$libext"
  8194. if test -f "$additional_libdir/lib$name.la"; then
  8195. found_la="$additional_libdir/lib$name.la"
  8196. fi
  8197. fi
  8198. fi
  8199. fi
  8200. if test "X$found_dir" = "X"; then
  8201. for x in $LDFLAGS $LTLIBICONV; do
  8202. acl_save_prefix="$prefix"
  8203. prefix="$acl_final_prefix"
  8204. acl_save_exec_prefix="$exec_prefix"
  8205. exec_prefix="$acl_final_exec_prefix"
  8206. eval x=\"$x\"
  8207. exec_prefix="$acl_save_exec_prefix"
  8208. prefix="$acl_save_prefix"
  8209. case "$x" in
  8210. -L*)
  8211. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8212. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8213. found_dir="$dir"
  8214. found_so="$dir/lib$name.$shlibext"
  8215. if test -f "$dir/lib$name.la"; then
  8216. found_la="$dir/lib$name.la"
  8217. fi
  8218. else
  8219. if test -f "$dir/lib$name.$libext"; then
  8220. found_dir="$dir"
  8221. found_a="$dir/lib$name.$libext"
  8222. if test -f "$dir/lib$name.la"; then
  8223. found_la="$dir/lib$name.la"
  8224. fi
  8225. fi
  8226. fi
  8227. ;;
  8228. esac
  8229. if test "X$found_dir" != "X"; then
  8230. break
  8231. fi
  8232. done
  8233. fi
  8234. if test "X$found_dir" != "X"; then
  8235. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  8236. if test "X$found_so" != "X"; then
  8237. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8238. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8239. else
  8240. haveit=
  8241. for x in $ltrpathdirs; do
  8242. if test "X$x" = "X$found_dir"; then
  8243. haveit=yes
  8244. break
  8245. fi
  8246. done
  8247. if test -z "$haveit"; then
  8248. ltrpathdirs="$ltrpathdirs $found_dir"
  8249. fi
  8250. if test "$hardcode_direct" = yes; then
  8251. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8252. else
  8253. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8254. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8255. haveit=
  8256. for x in $rpathdirs; do
  8257. if test "X$x" = "X$found_dir"; then
  8258. haveit=yes
  8259. break
  8260. fi
  8261. done
  8262. if test -z "$haveit"; then
  8263. rpathdirs="$rpathdirs $found_dir"
  8264. fi
  8265. else
  8266. haveit=
  8267. for x in $LDFLAGS $LIBICONV; do
  8268. acl_save_prefix="$prefix"
  8269. prefix="$acl_final_prefix"
  8270. acl_save_exec_prefix="$exec_prefix"
  8271. exec_prefix="$acl_final_exec_prefix"
  8272. eval x=\"$x\"
  8273. exec_prefix="$acl_save_exec_prefix"
  8274. prefix="$acl_save_prefix"
  8275. if test "X$x" = "X-L$found_dir"; then
  8276. haveit=yes
  8277. break
  8278. fi
  8279. done
  8280. if test -z "$haveit"; then
  8281. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  8282. fi
  8283. if test "$hardcode_minus_L" != no; then
  8284. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8285. else
  8286. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8287. fi
  8288. fi
  8289. fi
  8290. fi
  8291. else
  8292. if test "X$found_a" != "X"; then
  8293. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  8294. else
  8295. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  8296. fi
  8297. fi
  8298. additional_includedir=
  8299. case "$found_dir" in
  8300. */lib | */lib/)
  8301. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8302. additional_includedir="$basedir/include"
  8303. ;;
  8304. esac
  8305. if test "X$additional_includedir" != "X"; then
  8306. if test "X$additional_includedir" != "X/usr/include"; then
  8307. haveit=
  8308. if test "X$additional_includedir" = "X/usr/local/include"; then
  8309. if test -n "$GCC"; then
  8310. case $host_os in
  8311. linux*) haveit=yes;;
  8312. esac
  8313. fi
  8314. fi
  8315. if test -z "$haveit"; then
  8316. for x in $CPPFLAGS $INCICONV; do
  8317. acl_save_prefix="$prefix"
  8318. prefix="$acl_final_prefix"
  8319. acl_save_exec_prefix="$exec_prefix"
  8320. exec_prefix="$acl_final_exec_prefix"
  8321. eval x=\"$x\"
  8322. exec_prefix="$acl_save_exec_prefix"
  8323. prefix="$acl_save_prefix"
  8324. if test "X$x" = "X-I$additional_includedir"; then
  8325. haveit=yes
  8326. break
  8327. fi
  8328. done
  8329. if test -z "$haveit"; then
  8330. if test -d "$additional_includedir"; then
  8331. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  8332. fi
  8333. fi
  8334. fi
  8335. fi
  8336. fi
  8337. if test -n "$found_la"; then
  8338. save_libdir="$libdir"
  8339. case "$found_la" in
  8340. */* | *\\*) . "$found_la" ;;
  8341. *) . "./$found_la" ;;
  8342. esac
  8343. libdir="$save_libdir"
  8344. for dep in $dependency_libs; do
  8345. case "$dep" in
  8346. -L*)
  8347. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8348. if test "X$additional_libdir" != "X/usr/lib"; then
  8349. haveit=
  8350. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8351. if test -n "$GCC"; then
  8352. case $host_os in
  8353. linux*) haveit=yes;;
  8354. esac
  8355. fi
  8356. fi
  8357. if test -z "$haveit"; then
  8358. haveit=
  8359. for x in $LDFLAGS $LIBICONV; do
  8360. acl_save_prefix="$prefix"
  8361. prefix="$acl_final_prefix"
  8362. acl_save_exec_prefix="$exec_prefix"
  8363. exec_prefix="$acl_final_exec_prefix"
  8364. eval x=\"$x\"
  8365. exec_prefix="$acl_save_exec_prefix"
  8366. prefix="$acl_save_prefix"
  8367. if test "X$x" = "X-L$additional_libdir"; then
  8368. haveit=yes
  8369. break
  8370. fi
  8371. done
  8372. if test -z "$haveit"; then
  8373. if test -d "$additional_libdir"; then
  8374. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  8375. fi
  8376. fi
  8377. haveit=
  8378. for x in $LDFLAGS $LTLIBICONV; do
  8379. acl_save_prefix="$prefix"
  8380. prefix="$acl_final_prefix"
  8381. acl_save_exec_prefix="$exec_prefix"
  8382. exec_prefix="$acl_final_exec_prefix"
  8383. eval x=\"$x\"
  8384. exec_prefix="$acl_save_exec_prefix"
  8385. prefix="$acl_save_prefix"
  8386. if test "X$x" = "X-L$additional_libdir"; then
  8387. haveit=yes
  8388. break
  8389. fi
  8390. done
  8391. if test -z "$haveit"; then
  8392. if test -d "$additional_libdir"; then
  8393. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  8394. fi
  8395. fi
  8396. fi
  8397. fi
  8398. ;;
  8399. -R*)
  8400. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8401. if test "$enable_rpath" != no; then
  8402. haveit=
  8403. for x in $rpathdirs; do
  8404. if test "X$x" = "X$dir"; then
  8405. haveit=yes
  8406. break
  8407. fi
  8408. done
  8409. if test -z "$haveit"; then
  8410. rpathdirs="$rpathdirs $dir"
  8411. fi
  8412. haveit=
  8413. for x in $ltrpathdirs; do
  8414. if test "X$x" = "X$dir"; then
  8415. haveit=yes
  8416. break
  8417. fi
  8418. done
  8419. if test -z "$haveit"; then
  8420. ltrpathdirs="$ltrpathdirs $dir"
  8421. fi
  8422. fi
  8423. ;;
  8424. -l*)
  8425. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8426. ;;
  8427. *.la)
  8428. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8429. ;;
  8430. *)
  8431. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  8432. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  8433. ;;
  8434. esac
  8435. done
  8436. fi
  8437. else
  8438. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8439. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  8440. fi
  8441. fi
  8442. fi
  8443. done
  8444. done
  8445. if test "X$rpathdirs" != "X"; then
  8446. if test -n "$hardcode_libdir_separator"; then
  8447. alldirs=
  8448. for found_dir in $rpathdirs; do
  8449. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8450. done
  8451. acl_save_libdir="$libdir"
  8452. libdir="$alldirs"
  8453. eval flag=\"$hardcode_libdir_flag_spec\"
  8454. libdir="$acl_save_libdir"
  8455. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8456. else
  8457. for found_dir in $rpathdirs; do
  8458. acl_save_libdir="$libdir"
  8459. libdir="$found_dir"
  8460. eval flag=\"$hardcode_libdir_flag_spec\"
  8461. libdir="$acl_save_libdir"
  8462. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8463. done
  8464. fi
  8465. fi
  8466. if test "X$ltrpathdirs" != "X"; then
  8467. for found_dir in $ltrpathdirs; do
  8468. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  8469. done
  8470. fi
  8471. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  8472. stdlib.h string.h unistd.h sys/param.h
  8473. do
  8474. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8475. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8476. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8477. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8478. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8479. echo $ECHO_N "(cached) $ECHO_C" >&6
  8480. fi
  8481. ac_res=`eval echo '${'$as_ac_Header'}'`
  8482. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8483. echo "${ECHO_T}$ac_res" >&6; }
  8484. else
  8485. # Is the header compilable?
  8486. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8487. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8488. cat >conftest.$ac_ext <<_ACEOF
  8489. /* confdefs.h. */
  8490. _ACEOF
  8491. cat confdefs.h >>conftest.$ac_ext
  8492. cat >>conftest.$ac_ext <<_ACEOF
  8493. /* end confdefs.h. */
  8494. $ac_includes_default
  8495. #include <$ac_header>
  8496. _ACEOF
  8497. rm -f conftest.$ac_objext
  8498. if { (ac_try="$ac_compile"
  8499. case "(($ac_try" in
  8500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8501. *) ac_try_echo=$ac_try;;
  8502. esac
  8503. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8504. (eval "$ac_compile") 2>conftest.er1
  8505. ac_status=$?
  8506. grep -v '^ *+' conftest.er1 >conftest.err
  8507. rm -f conftest.er1
  8508. cat conftest.err >&5
  8509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8510. (exit $ac_status); } && {
  8511. test -z "$ac_c_werror_flag" ||
  8512. test ! -s conftest.err
  8513. } && test -s conftest.$ac_objext; then
  8514. ac_header_compiler=yes
  8515. else
  8516. echo "$as_me: failed program was:" >&5
  8517. sed 's/^/| /' conftest.$ac_ext >&5
  8518. ac_header_compiler=no
  8519. fi
  8520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8521. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8522. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8523. # Is the header present?
  8524. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8525. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8526. cat >conftest.$ac_ext <<_ACEOF
  8527. /* confdefs.h. */
  8528. _ACEOF
  8529. cat confdefs.h >>conftest.$ac_ext
  8530. cat >>conftest.$ac_ext <<_ACEOF
  8531. /* end confdefs.h. */
  8532. #include <$ac_header>
  8533. _ACEOF
  8534. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8535. case "(($ac_try" in
  8536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8537. *) ac_try_echo=$ac_try;;
  8538. esac
  8539. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8540. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8541. ac_status=$?
  8542. grep -v '^ *+' conftest.er1 >conftest.err
  8543. rm -f conftest.er1
  8544. cat conftest.err >&5
  8545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8546. (exit $ac_status); } >/dev/null && {
  8547. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8548. test ! -s conftest.err
  8549. }; then
  8550. ac_header_preproc=yes
  8551. else
  8552. echo "$as_me: failed program was:" >&5
  8553. sed 's/^/| /' conftest.$ac_ext >&5
  8554. ac_header_preproc=no
  8555. fi
  8556. rm -f conftest.err conftest.$ac_ext
  8557. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8558. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8559. # So? What about this header?
  8560. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8561. yes:no: )
  8562. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8563. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8564. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8565. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8566. ac_header_preproc=yes
  8567. ;;
  8568. no:yes:* )
  8569. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8570. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8571. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8572. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8573. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8574. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8575. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8576. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8577. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8578. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8579. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8580. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8581. ( cat <<\_ASBOX
  8582. ## ----------------------------------------------- ##
  8583. ## Report this to t-tujikawa@users.sourceforge.net ##
  8584. ## ----------------------------------------------- ##
  8585. _ASBOX
  8586. ) | sed "s/^/$as_me: WARNING: /" >&2
  8587. ;;
  8588. esac
  8589. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8590. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8591. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8592. echo $ECHO_N "(cached) $ECHO_C" >&6
  8593. else
  8594. eval "$as_ac_Header=\$ac_header_preproc"
  8595. fi
  8596. ac_res=`eval echo '${'$as_ac_Header'}'`
  8597. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8598. echo "${ECHO_T}$ac_res" >&6; }
  8599. fi
  8600. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8601. cat >>confdefs.h <<_ACEOF
  8602. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8603. _ACEOF
  8604. fi
  8605. done
  8606. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  8607. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  8608. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  8609. __fsetlocking
  8610. do
  8611. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8612. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8613. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8614. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8615. echo $ECHO_N "(cached) $ECHO_C" >&6
  8616. else
  8617. cat >conftest.$ac_ext <<_ACEOF
  8618. /* confdefs.h. */
  8619. _ACEOF
  8620. cat confdefs.h >>conftest.$ac_ext
  8621. cat >>conftest.$ac_ext <<_ACEOF
  8622. /* end confdefs.h. */
  8623. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8624. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8625. #define $ac_func innocuous_$ac_func
  8626. /* System header to define __stub macros and hopefully few prototypes,
  8627. which can conflict with char $ac_func (); below.
  8628. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8629. <limits.h> exists even on freestanding compilers. */
  8630. #ifdef __STDC__
  8631. # include <limits.h>
  8632. #else
  8633. # include <assert.h>
  8634. #endif
  8635. #undef $ac_func
  8636. /* Override any GCC internal prototype to avoid an error.
  8637. Use char because int might match the return type of a GCC
  8638. builtin and then its argument prototype would still apply. */
  8639. #ifdef __cplusplus
  8640. extern "C"
  8641. #endif
  8642. char $ac_func ();
  8643. /* The GNU C library defines this for functions which it implements
  8644. to always fail with ENOSYS. Some functions are actually named
  8645. something starting with __ and the normal name is an alias. */
  8646. #if defined __stub_$ac_func || defined __stub___$ac_func
  8647. choke me
  8648. #endif
  8649. int
  8650. main ()
  8651. {
  8652. return $ac_func ();
  8653. ;
  8654. return 0;
  8655. }
  8656. _ACEOF
  8657. rm -f conftest.$ac_objext conftest$ac_exeext
  8658. if { (ac_try="$ac_link"
  8659. case "(($ac_try" in
  8660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8661. *) ac_try_echo=$ac_try;;
  8662. esac
  8663. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8664. (eval "$ac_link") 2>conftest.er1
  8665. ac_status=$?
  8666. grep -v '^ *+' conftest.er1 >conftest.err
  8667. rm -f conftest.er1
  8668. cat conftest.err >&5
  8669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8670. (exit $ac_status); } && {
  8671. test -z "$ac_c_werror_flag" ||
  8672. test ! -s conftest.err
  8673. } && test -s conftest$ac_exeext &&
  8674. $as_test_x conftest$ac_exeext; then
  8675. eval "$as_ac_var=yes"
  8676. else
  8677. echo "$as_me: failed program was:" >&5
  8678. sed 's/^/| /' conftest.$ac_ext >&5
  8679. eval "$as_ac_var=no"
  8680. fi
  8681. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8682. conftest$ac_exeext conftest.$ac_ext
  8683. fi
  8684. ac_res=`eval echo '${'$as_ac_var'}'`
  8685. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8686. echo "${ECHO_T}$ac_res" >&6; }
  8687. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8688. cat >>confdefs.h <<_ACEOF
  8689. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8690. _ACEOF
  8691. fi
  8692. done
  8693. am_save_CPPFLAGS="$CPPFLAGS"
  8694. for element in $INCICONV; do
  8695. haveit=
  8696. for x in $CPPFLAGS; do
  8697. acl_save_prefix="$prefix"
  8698. prefix="$acl_final_prefix"
  8699. acl_save_exec_prefix="$exec_prefix"
  8700. exec_prefix="$acl_final_exec_prefix"
  8701. eval x=\"$x\"
  8702. exec_prefix="$acl_save_exec_prefix"
  8703. prefix="$acl_save_prefix"
  8704. if test "X$x" = "X$element"; then
  8705. haveit=yes
  8706. break
  8707. fi
  8708. done
  8709. if test -z "$haveit"; then
  8710. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8711. fi
  8712. done
  8713. { echo "$as_me:$LINENO: checking for iconv" >&5
  8714. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  8715. if test "${am_cv_func_iconv+set}" = set; then
  8716. echo $ECHO_N "(cached) $ECHO_C" >&6
  8717. else
  8718. am_cv_func_iconv="no, consider installing GNU libiconv"
  8719. am_cv_lib_iconv=no
  8720. cat >conftest.$ac_ext <<_ACEOF
  8721. /* confdefs.h. */
  8722. _ACEOF
  8723. cat confdefs.h >>conftest.$ac_ext
  8724. cat >>conftest.$ac_ext <<_ACEOF
  8725. /* end confdefs.h. */
  8726. #include <stdlib.h>
  8727. #include <iconv.h>
  8728. int
  8729. main ()
  8730. {
  8731. iconv_t cd = iconv_open("","");
  8732. iconv(cd,NULL,NULL,NULL,NULL);
  8733. iconv_close(cd);
  8734. ;
  8735. return 0;
  8736. }
  8737. _ACEOF
  8738. rm -f conftest.$ac_objext conftest$ac_exeext
  8739. if { (ac_try="$ac_link"
  8740. case "(($ac_try" in
  8741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8742. *) ac_try_echo=$ac_try;;
  8743. esac
  8744. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8745. (eval "$ac_link") 2>conftest.er1
  8746. ac_status=$?
  8747. grep -v '^ *+' conftest.er1 >conftest.err
  8748. rm -f conftest.er1
  8749. cat conftest.err >&5
  8750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8751. (exit $ac_status); } && {
  8752. test -z "$ac_c_werror_flag" ||
  8753. test ! -s conftest.err
  8754. } && test -s conftest$ac_exeext &&
  8755. $as_test_x conftest$ac_exeext; then
  8756. am_cv_func_iconv=yes
  8757. else
  8758. echo "$as_me: failed program was:" >&5
  8759. sed 's/^/| /' conftest.$ac_ext >&5
  8760. fi
  8761. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8762. conftest$ac_exeext conftest.$ac_ext
  8763. if test "$am_cv_func_iconv" != yes; then
  8764. am_save_LIBS="$LIBS"
  8765. LIBS="$LIBS $LIBICONV"
  8766. cat >conftest.$ac_ext <<_ACEOF
  8767. /* confdefs.h. */
  8768. _ACEOF
  8769. cat confdefs.h >>conftest.$ac_ext
  8770. cat >>conftest.$ac_ext <<_ACEOF
  8771. /* end confdefs.h. */
  8772. #include <stdlib.h>
  8773. #include <iconv.h>
  8774. int
  8775. main ()
  8776. {
  8777. iconv_t cd = iconv_open("","");
  8778. iconv(cd,NULL,NULL,NULL,NULL);
  8779. iconv_close(cd);
  8780. ;
  8781. return 0;
  8782. }
  8783. _ACEOF
  8784. rm -f conftest.$ac_objext conftest$ac_exeext
  8785. if { (ac_try="$ac_link"
  8786. case "(($ac_try" in
  8787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8788. *) ac_try_echo=$ac_try;;
  8789. esac
  8790. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8791. (eval "$ac_link") 2>conftest.er1
  8792. ac_status=$?
  8793. grep -v '^ *+' conftest.er1 >conftest.err
  8794. rm -f conftest.er1
  8795. cat conftest.err >&5
  8796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8797. (exit $ac_status); } && {
  8798. test -z "$ac_c_werror_flag" ||
  8799. test ! -s conftest.err
  8800. } && test -s conftest$ac_exeext &&
  8801. $as_test_x conftest$ac_exeext; then
  8802. am_cv_lib_iconv=yes
  8803. am_cv_func_iconv=yes
  8804. else
  8805. echo "$as_me: failed program was:" >&5
  8806. sed 's/^/| /' conftest.$ac_ext >&5
  8807. fi
  8808. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8809. conftest$ac_exeext conftest.$ac_ext
  8810. LIBS="$am_save_LIBS"
  8811. fi
  8812. fi
  8813. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  8814. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  8815. if test "$am_cv_func_iconv" = yes; then
  8816. cat >>confdefs.h <<\_ACEOF
  8817. #define HAVE_ICONV 1
  8818. _ACEOF
  8819. fi
  8820. if test "$am_cv_lib_iconv" = yes; then
  8821. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  8822. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  8823. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  8824. echo "${ECHO_T}$LIBICONV" >&6; }
  8825. else
  8826. CPPFLAGS="$am_save_CPPFLAGS"
  8827. LIBICONV=
  8828. LTLIBICONV=
  8829. fi
  8830. if test "$am_cv_func_iconv" = yes; then
  8831. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  8832. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  8833. if test "${am_cv_proto_iconv+set}" = set; then
  8834. echo $ECHO_N "(cached) $ECHO_C" >&6
  8835. else
  8836. cat >conftest.$ac_ext <<_ACEOF
  8837. /* confdefs.h. */
  8838. _ACEOF
  8839. cat confdefs.h >>conftest.$ac_ext
  8840. cat >>conftest.$ac_ext <<_ACEOF
  8841. /* end confdefs.h. */
  8842. #include <stdlib.h>
  8843. #include <iconv.h>
  8844. extern
  8845. #ifdef __cplusplus
  8846. "C"
  8847. #endif
  8848. #if defined(__STDC__) || defined(__cplusplus)
  8849. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  8850. #else
  8851. size_t iconv();
  8852. #endif
  8853. int
  8854. main ()
  8855. {
  8856. ;
  8857. return 0;
  8858. }
  8859. _ACEOF
  8860. rm -f conftest.$ac_objext
  8861. if { (ac_try="$ac_compile"
  8862. case "(($ac_try" in
  8863. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8864. *) ac_try_echo=$ac_try;;
  8865. esac
  8866. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8867. (eval "$ac_compile") 2>conftest.er1
  8868. ac_status=$?
  8869. grep -v '^ *+' conftest.er1 >conftest.err
  8870. rm -f conftest.er1
  8871. cat conftest.err >&5
  8872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8873. (exit $ac_status); } && {
  8874. test -z "$ac_c_werror_flag" ||
  8875. test ! -s conftest.err
  8876. } && test -s conftest.$ac_objext; then
  8877. am_cv_proto_iconv_arg1=""
  8878. else
  8879. echo "$as_me: failed program was:" >&5
  8880. sed 's/^/| /' conftest.$ac_ext >&5
  8881. am_cv_proto_iconv_arg1="const"
  8882. fi
  8883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8884. 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);"
  8885. fi
  8886. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  8887. { echo "$as_me:$LINENO: result: ${ac_t:-
  8888. }$am_cv_proto_iconv" >&5
  8889. echo "${ECHO_T}${ac_t:-
  8890. }$am_cv_proto_iconv" >&6; }
  8891. cat >>confdefs.h <<_ACEOF
  8892. #define ICONV_CONST $am_cv_proto_iconv_arg1
  8893. _ACEOF
  8894. fi
  8895. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  8896. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  8897. if test "${am_cv_langinfo_codeset+set}" = set; then
  8898. echo $ECHO_N "(cached) $ECHO_C" >&6
  8899. else
  8900. cat >conftest.$ac_ext <<_ACEOF
  8901. /* confdefs.h. */
  8902. _ACEOF
  8903. cat confdefs.h >>conftest.$ac_ext
  8904. cat >>conftest.$ac_ext <<_ACEOF
  8905. /* end confdefs.h. */
  8906. #include <langinfo.h>
  8907. int
  8908. main ()
  8909. {
  8910. char* cs = nl_langinfo(CODESET);
  8911. ;
  8912. return 0;
  8913. }
  8914. _ACEOF
  8915. rm -f conftest.$ac_objext conftest$ac_exeext
  8916. if { (ac_try="$ac_link"
  8917. case "(($ac_try" in
  8918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8919. *) ac_try_echo=$ac_try;;
  8920. esac
  8921. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8922. (eval "$ac_link") 2>conftest.er1
  8923. ac_status=$?
  8924. grep -v '^ *+' conftest.er1 >conftest.err
  8925. rm -f conftest.er1
  8926. cat conftest.err >&5
  8927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8928. (exit $ac_status); } && {
  8929. test -z "$ac_c_werror_flag" ||
  8930. test ! -s conftest.err
  8931. } && test -s conftest$ac_exeext &&
  8932. $as_test_x conftest$ac_exeext; then
  8933. am_cv_langinfo_codeset=yes
  8934. else
  8935. echo "$as_me: failed program was:" >&5
  8936. sed 's/^/| /' conftest.$ac_ext >&5
  8937. am_cv_langinfo_codeset=no
  8938. fi
  8939. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8940. conftest$ac_exeext conftest.$ac_ext
  8941. fi
  8942. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  8943. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  8944. if test $am_cv_langinfo_codeset = yes; then
  8945. cat >>confdefs.h <<\_ACEOF
  8946. #define HAVE_LANGINFO_CODESET 1
  8947. _ACEOF
  8948. fi
  8949. if test $ac_cv_header_locale_h = yes; then
  8950. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  8951. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  8952. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  8953. echo $ECHO_N "(cached) $ECHO_C" >&6
  8954. else
  8955. cat >conftest.$ac_ext <<_ACEOF
  8956. /* confdefs.h. */
  8957. _ACEOF
  8958. cat confdefs.h >>conftest.$ac_ext
  8959. cat >>conftest.$ac_ext <<_ACEOF
  8960. /* end confdefs.h. */
  8961. #include <locale.h>
  8962. int
  8963. main ()
  8964. {
  8965. return LC_MESSAGES
  8966. ;
  8967. return 0;
  8968. }
  8969. _ACEOF
  8970. rm -f conftest.$ac_objext conftest$ac_exeext
  8971. if { (ac_try="$ac_link"
  8972. case "(($ac_try" in
  8973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8974. *) ac_try_echo=$ac_try;;
  8975. esac
  8976. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8977. (eval "$ac_link") 2>conftest.er1
  8978. ac_status=$?
  8979. grep -v '^ *+' conftest.er1 >conftest.err
  8980. rm -f conftest.er1
  8981. cat conftest.err >&5
  8982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8983. (exit $ac_status); } && {
  8984. test -z "$ac_c_werror_flag" ||
  8985. test ! -s conftest.err
  8986. } && test -s conftest$ac_exeext &&
  8987. $as_test_x conftest$ac_exeext; then
  8988. am_cv_val_LC_MESSAGES=yes
  8989. else
  8990. echo "$as_me: failed program was:" >&5
  8991. sed 's/^/| /' conftest.$ac_ext >&5
  8992. am_cv_val_LC_MESSAGES=no
  8993. fi
  8994. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8995. conftest$ac_exeext conftest.$ac_ext
  8996. fi
  8997. { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  8998. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  8999. if test $am_cv_val_LC_MESSAGES = yes; then
  9000. cat >>confdefs.h <<\_ACEOF
  9001. #define HAVE_LC_MESSAGES 1
  9002. _ACEOF
  9003. fi
  9004. fi
  9005. for ac_prog in bison
  9006. do
  9007. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9008. set dummy $ac_prog; ac_word=$2
  9009. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9010. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9011. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  9012. echo $ECHO_N "(cached) $ECHO_C" >&6
  9013. else
  9014. if test -n "$INTLBISON"; then
  9015. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  9016. else
  9017. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9018. for as_dir in $PATH
  9019. do
  9020. IFS=$as_save_IFS
  9021. test -z "$as_dir" && as_dir=.
  9022. for ac_exec_ext in '' $ac_executable_extensions; do
  9023. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9024. ac_cv_prog_INTLBISON="$ac_prog"
  9025. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9026. break 2
  9027. fi
  9028. done
  9029. done
  9030. IFS=$as_save_IFS
  9031. fi
  9032. fi
  9033. INTLBISON=$ac_cv_prog_INTLBISON
  9034. if test -n "$INTLBISON"; then
  9035. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  9036. echo "${ECHO_T}$INTLBISON" >&6; }
  9037. else
  9038. { echo "$as_me:$LINENO: result: no" >&5
  9039. echo "${ECHO_T}no" >&6; }
  9040. fi
  9041. test -n "$INTLBISON" && break
  9042. done
  9043. if test -z "$INTLBISON"; then
  9044. ac_verc_fail=yes
  9045. else
  9046. { echo "$as_me:$LINENO: checking version of bison" >&5
  9047. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  9048. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  9049. case $ac_prog_version in
  9050. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  9051. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  9052. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  9053. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  9054. esac
  9055. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  9056. echo "${ECHO_T}$ac_prog_version" >&6; }
  9057. fi
  9058. if test $ac_verc_fail = yes; then
  9059. INTLBISON=:
  9060. fi
  9061. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9062. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9063. # Check whether --enable-nls was given.
  9064. if test "${enable_nls+set}" = set; then
  9065. enableval=$enable_nls; USE_NLS=$enableval
  9066. else
  9067. USE_NLS=yes
  9068. fi
  9069. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9070. echo "${ECHO_T}$USE_NLS" >&6; }
  9071. BUILD_INCLUDED_LIBINTL=no
  9072. USE_INCLUDED_LIBINTL=no
  9073. LIBINTL=
  9074. LTLIBINTL=
  9075. POSUB=
  9076. if test "$USE_NLS" = "yes"; then
  9077. gt_use_preinstalled_gnugettext=no
  9078. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  9079. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  9080. # Check whether --with-included-gettext was given.
  9081. if test "${with_included_gettext+set}" = set; then
  9082. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  9083. else
  9084. nls_cv_force_use_gnu_gettext=no
  9085. fi
  9086. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  9087. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  9088. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  9089. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  9090. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  9091. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  9092. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  9093. echo $ECHO_N "(cached) $ECHO_C" >&6
  9094. else
  9095. cat >conftest.$ac_ext <<_ACEOF
  9096. /* confdefs.h. */
  9097. _ACEOF
  9098. cat confdefs.h >>conftest.$ac_ext
  9099. cat >>conftest.$ac_ext <<_ACEOF
  9100. /* end confdefs.h. */
  9101. #include <libintl.h>
  9102. extern int _nl_msg_cat_cntr;
  9103. extern int *_nl_domain_bindings;
  9104. int
  9105. main ()
  9106. {
  9107. bindtextdomain ("", "");
  9108. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  9109. ;
  9110. return 0;
  9111. }
  9112. _ACEOF
  9113. rm -f conftest.$ac_objext conftest$ac_exeext
  9114. if { (ac_try="$ac_link"
  9115. case "(($ac_try" in
  9116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9117. *) ac_try_echo=$ac_try;;
  9118. esac
  9119. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9120. (eval "$ac_link") 2>conftest.er1
  9121. ac_status=$?
  9122. grep -v '^ *+' conftest.er1 >conftest.err
  9123. rm -f conftest.er1
  9124. cat conftest.err >&5
  9125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9126. (exit $ac_status); } && {
  9127. test -z "$ac_c_werror_flag" ||
  9128. test ! -s conftest.err
  9129. } && test -s conftest$ac_exeext &&
  9130. $as_test_x conftest$ac_exeext; then
  9131. gt_cv_func_gnugettext1_libc=yes
  9132. else
  9133. echo "$as_me: failed program was:" >&5
  9134. sed 's/^/| /' conftest.$ac_ext >&5
  9135. gt_cv_func_gnugettext1_libc=no
  9136. fi
  9137. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9138. conftest$ac_exeext conftest.$ac_ext
  9139. fi
  9140. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  9141. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
  9142. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  9143. use_additional=yes
  9144. acl_save_prefix="$prefix"
  9145. prefix="$acl_final_prefix"
  9146. acl_save_exec_prefix="$exec_prefix"
  9147. exec_prefix="$acl_final_exec_prefix"
  9148. eval additional_includedir=\"$includedir\"
  9149. eval additional_libdir=\"$libdir\"
  9150. exec_prefix="$acl_save_exec_prefix"
  9151. prefix="$acl_save_prefix"
  9152. # Check whether --with-libintl-prefix was given.
  9153. if test "${with_libintl_prefix+set}" = set; then
  9154. withval=$with_libintl_prefix;
  9155. if test "X$withval" = "Xno"; then
  9156. use_additional=no
  9157. else
  9158. if test "X$withval" = "X"; then
  9159. acl_save_prefix="$prefix"
  9160. prefix="$acl_final_prefix"
  9161. acl_save_exec_prefix="$exec_prefix"
  9162. exec_prefix="$acl_final_exec_prefix"
  9163. eval additional_includedir=\"$includedir\"
  9164. eval additional_libdir=\"$libdir\"
  9165. exec_prefix="$acl_save_exec_prefix"
  9166. prefix="$acl_save_prefix"
  9167. else
  9168. additional_includedir="$withval/include"
  9169. additional_libdir="$withval/lib"
  9170. fi
  9171. fi
  9172. fi
  9173. LIBINTL=
  9174. LTLIBINTL=
  9175. INCINTL=
  9176. rpathdirs=
  9177. ltrpathdirs=
  9178. names_already_handled=
  9179. names_next_round='intl '
  9180. while test -n "$names_next_round"; do
  9181. names_this_round="$names_next_round"
  9182. names_next_round=
  9183. for name in $names_this_round; do
  9184. already_handled=
  9185. for n in $names_already_handled; do
  9186. if test "$n" = "$name"; then
  9187. already_handled=yes
  9188. break
  9189. fi
  9190. done
  9191. if test -z "$already_handled"; then
  9192. names_already_handled="$names_already_handled $name"
  9193. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9194. eval value=\"\$HAVE_LIB$uppername\"
  9195. if test -n "$value"; then
  9196. if test "$value" = yes; then
  9197. eval value=\"\$LIB$uppername\"
  9198. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  9199. eval value=\"\$LTLIB$uppername\"
  9200. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  9201. else
  9202. :
  9203. fi
  9204. else
  9205. found_dir=
  9206. found_la=
  9207. found_so=
  9208. found_a=
  9209. if test $use_additional = yes; then
  9210. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  9211. found_dir="$additional_libdir"
  9212. found_so="$additional_libdir/lib$name.$shlibext"
  9213. if test -f "$additional_libdir/lib$name.la"; then
  9214. found_la="$additional_libdir/lib$name.la"
  9215. fi
  9216. else
  9217. if test -f "$additional_libdir/lib$name.$libext"; then
  9218. found_dir="$additional_libdir"
  9219. found_a="$additional_libdir/lib$name.$libext"
  9220. if test -f "$additional_libdir/lib$name.la"; then
  9221. found_la="$additional_libdir/lib$name.la"
  9222. fi
  9223. fi
  9224. fi
  9225. fi
  9226. if test "X$found_dir" = "X"; then
  9227. for x in $LDFLAGS $LTLIBINTL; do
  9228. acl_save_prefix="$prefix"
  9229. prefix="$acl_final_prefix"
  9230. acl_save_exec_prefix="$exec_prefix"
  9231. exec_prefix="$acl_final_exec_prefix"
  9232. eval x=\"$x\"
  9233. exec_prefix="$acl_save_exec_prefix"
  9234. prefix="$acl_save_prefix"
  9235. case "$x" in
  9236. -L*)
  9237. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9238. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  9239. found_dir="$dir"
  9240. found_so="$dir/lib$name.$shlibext"
  9241. if test -f "$dir/lib$name.la"; then
  9242. found_la="$dir/lib$name.la"
  9243. fi
  9244. else
  9245. if test -f "$dir/lib$name.$libext"; then
  9246. found_dir="$dir"
  9247. found_a="$dir/lib$name.$libext"
  9248. if test -f "$dir/lib$name.la"; then
  9249. found_la="$dir/lib$name.la"
  9250. fi
  9251. fi
  9252. fi
  9253. ;;
  9254. esac
  9255. if test "X$found_dir" != "X"; then
  9256. break
  9257. fi
  9258. done
  9259. fi
  9260. if test "X$found_dir" != "X"; then
  9261. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  9262. if test "X$found_so" != "X"; then
  9263. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  9264. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9265. else
  9266. haveit=
  9267. for x in $ltrpathdirs; do
  9268. if test "X$x" = "X$found_dir"; then
  9269. haveit=yes
  9270. break
  9271. fi
  9272. done
  9273. if test -z "$haveit"; then
  9274. ltrpathdirs="$ltrpathdirs $found_dir"
  9275. fi
  9276. if test "$hardcode_direct" = yes; then
  9277. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9278. else
  9279. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  9280. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9281. haveit=
  9282. for x in $rpathdirs; do
  9283. if test "X$x" = "X$found_dir"; then
  9284. haveit=yes
  9285. break
  9286. fi
  9287. done
  9288. if test -z "$haveit"; then
  9289. rpathdirs="$rpathdirs $found_dir"
  9290. fi
  9291. else
  9292. haveit=
  9293. for x in $LDFLAGS $LIBINTL; do
  9294. acl_save_prefix="$prefix"
  9295. prefix="$acl_final_prefix"
  9296. acl_save_exec_prefix="$exec_prefix"
  9297. exec_prefix="$acl_final_exec_prefix"
  9298. eval x=\"$x\"
  9299. exec_prefix="$acl_save_exec_prefix"
  9300. prefix="$acl_save_prefix"
  9301. if test "X$x" = "X-L$found_dir"; then
  9302. haveit=yes
  9303. break
  9304. fi
  9305. done
  9306. if test -z "$haveit"; then
  9307. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  9308. fi
  9309. if test "$hardcode_minus_L" != no; then
  9310. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9311. else
  9312. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9313. fi
  9314. fi
  9315. fi
  9316. fi
  9317. else
  9318. if test "X$found_a" != "X"; then
  9319. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  9320. else
  9321. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  9322. fi
  9323. fi
  9324. additional_includedir=
  9325. case "$found_dir" in
  9326. */lib | */lib/)
  9327. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  9328. additional_includedir="$basedir/include"
  9329. ;;
  9330. esac
  9331. if test "X$additional_includedir" != "X"; then
  9332. if test "X$additional_includedir" != "X/usr/include"; then
  9333. haveit=
  9334. if test "X$additional_includedir" = "X/usr/local/include"; then
  9335. if test -n "$GCC"; then
  9336. case $host_os in
  9337. linux*) haveit=yes;;
  9338. esac
  9339. fi
  9340. fi
  9341. if test -z "$haveit"; then
  9342. for x in $CPPFLAGS $INCINTL; do
  9343. acl_save_prefix="$prefix"
  9344. prefix="$acl_final_prefix"
  9345. acl_save_exec_prefix="$exec_prefix"
  9346. exec_prefix="$acl_final_exec_prefix"
  9347. eval x=\"$x\"
  9348. exec_prefix="$acl_save_exec_prefix"
  9349. prefix="$acl_save_prefix"
  9350. if test "X$x" = "X-I$additional_includedir"; then
  9351. haveit=yes
  9352. break
  9353. fi
  9354. done
  9355. if test -z "$haveit"; then
  9356. if test -d "$additional_includedir"; then
  9357. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  9358. fi
  9359. fi
  9360. fi
  9361. fi
  9362. fi
  9363. if test -n "$found_la"; then
  9364. save_libdir="$libdir"
  9365. case "$found_la" in
  9366. */* | *\\*) . "$found_la" ;;
  9367. *) . "./$found_la" ;;
  9368. esac
  9369. libdir="$save_libdir"
  9370. for dep in $dependency_libs; do
  9371. case "$dep" in
  9372. -L*)
  9373. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9374. if test "X$additional_libdir" != "X/usr/lib"; then
  9375. haveit=
  9376. if test "X$additional_libdir" = "X/usr/local/lib"; then
  9377. if test -n "$GCC"; then
  9378. case $host_os in
  9379. linux*) haveit=yes;;
  9380. esac
  9381. fi
  9382. fi
  9383. if test -z "$haveit"; then
  9384. haveit=
  9385. for x in $LDFLAGS $LIBINTL; do
  9386. acl_save_prefix="$prefix"
  9387. prefix="$acl_final_prefix"
  9388. acl_save_exec_prefix="$exec_prefix"
  9389. exec_prefix="$acl_final_exec_prefix"
  9390. eval x=\"$x\"
  9391. exec_prefix="$acl_save_exec_prefix"
  9392. prefix="$acl_save_prefix"
  9393. if test "X$x" = "X-L$additional_libdir"; then
  9394. haveit=yes
  9395. break
  9396. fi
  9397. done
  9398. if test -z "$haveit"; then
  9399. if test -d "$additional_libdir"; then
  9400. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  9401. fi
  9402. fi
  9403. haveit=
  9404. for x in $LDFLAGS $LTLIBINTL; do
  9405. acl_save_prefix="$prefix"
  9406. prefix="$acl_final_prefix"
  9407. acl_save_exec_prefix="$exec_prefix"
  9408. exec_prefix="$acl_final_exec_prefix"
  9409. eval x=\"$x\"
  9410. exec_prefix="$acl_save_exec_prefix"
  9411. prefix="$acl_save_prefix"
  9412. if test "X$x" = "X-L$additional_libdir"; then
  9413. haveit=yes
  9414. break
  9415. fi
  9416. done
  9417. if test -z "$haveit"; then
  9418. if test -d "$additional_libdir"; then
  9419. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  9420. fi
  9421. fi
  9422. fi
  9423. fi
  9424. ;;
  9425. -R*)
  9426. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9427. if test "$enable_rpath" != no; then
  9428. haveit=
  9429. for x in $rpathdirs; do
  9430. if test "X$x" = "X$dir"; then
  9431. haveit=yes
  9432. break
  9433. fi
  9434. done
  9435. if test -z "$haveit"; then
  9436. rpathdirs="$rpathdirs $dir"
  9437. fi
  9438. haveit=
  9439. for x in $ltrpathdirs; do
  9440. if test "X$x" = "X$dir"; then
  9441. haveit=yes
  9442. break
  9443. fi
  9444. done
  9445. if test -z "$haveit"; then
  9446. ltrpathdirs="$ltrpathdirs $dir"
  9447. fi
  9448. fi
  9449. ;;
  9450. -l*)
  9451. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9452. ;;
  9453. *.la)
  9454. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9455. ;;
  9456. *)
  9457. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  9458. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  9459. ;;
  9460. esac
  9461. done
  9462. fi
  9463. else
  9464. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9465. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  9466. fi
  9467. fi
  9468. fi
  9469. done
  9470. done
  9471. if test "X$rpathdirs" != "X"; then
  9472. if test -n "$hardcode_libdir_separator"; then
  9473. alldirs=
  9474. for found_dir in $rpathdirs; do
  9475. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  9476. done
  9477. acl_save_libdir="$libdir"
  9478. libdir="$alldirs"
  9479. eval flag=\"$hardcode_libdir_flag_spec\"
  9480. libdir="$acl_save_libdir"
  9481. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9482. else
  9483. for found_dir in $rpathdirs; do
  9484. acl_save_libdir="$libdir"
  9485. libdir="$found_dir"
  9486. eval flag=\"$hardcode_libdir_flag_spec\"
  9487. libdir="$acl_save_libdir"
  9488. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9489. done
  9490. fi
  9491. fi
  9492. if test "X$ltrpathdirs" != "X"; then
  9493. for found_dir in $ltrpathdirs; do
  9494. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  9495. done
  9496. fi
  9497. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  9498. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  9499. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  9500. echo $ECHO_N "(cached) $ECHO_C" >&6
  9501. else
  9502. gt_save_CPPFLAGS="$CPPFLAGS"
  9503. CPPFLAGS="$CPPFLAGS $INCINTL"
  9504. gt_save_LIBS="$LIBS"
  9505. LIBS="$LIBS $LIBINTL"
  9506. cat >conftest.$ac_ext <<_ACEOF
  9507. /* confdefs.h. */
  9508. _ACEOF
  9509. cat confdefs.h >>conftest.$ac_ext
  9510. cat >>conftest.$ac_ext <<_ACEOF
  9511. /* end confdefs.h. */
  9512. #include <libintl.h>
  9513. extern int _nl_msg_cat_cntr;
  9514. extern
  9515. #ifdef __cplusplus
  9516. "C"
  9517. #endif
  9518. const char *_nl_expand_alias ();
  9519. int
  9520. main ()
  9521. {
  9522. bindtextdomain ("", "");
  9523. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9524. ;
  9525. return 0;
  9526. }
  9527. _ACEOF
  9528. rm -f conftest.$ac_objext conftest$ac_exeext
  9529. if { (ac_try="$ac_link"
  9530. case "(($ac_try" in
  9531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9532. *) ac_try_echo=$ac_try;;
  9533. esac
  9534. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9535. (eval "$ac_link") 2>conftest.er1
  9536. ac_status=$?
  9537. grep -v '^ *+' conftest.er1 >conftest.err
  9538. rm -f conftest.er1
  9539. cat conftest.err >&5
  9540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9541. (exit $ac_status); } && {
  9542. test -z "$ac_c_werror_flag" ||
  9543. test ! -s conftest.err
  9544. } && test -s conftest$ac_exeext &&
  9545. $as_test_x conftest$ac_exeext; then
  9546. gt_cv_func_gnugettext1_libintl=yes
  9547. else
  9548. echo "$as_me: failed program was:" >&5
  9549. sed 's/^/| /' conftest.$ac_ext >&5
  9550. gt_cv_func_gnugettext1_libintl=no
  9551. fi
  9552. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9553. conftest$ac_exeext conftest.$ac_ext
  9554. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  9555. LIBS="$LIBS $LIBICONV"
  9556. cat >conftest.$ac_ext <<_ACEOF
  9557. /* confdefs.h. */
  9558. _ACEOF
  9559. cat confdefs.h >>conftest.$ac_ext
  9560. cat >>conftest.$ac_ext <<_ACEOF
  9561. /* end confdefs.h. */
  9562. #include <libintl.h>
  9563. extern int _nl_msg_cat_cntr;
  9564. extern
  9565. #ifdef __cplusplus
  9566. "C"
  9567. #endif
  9568. const char *_nl_expand_alias ();
  9569. int
  9570. main ()
  9571. {
  9572. bindtextdomain ("", "");
  9573. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9574. ;
  9575. return 0;
  9576. }
  9577. _ACEOF
  9578. rm -f conftest.$ac_objext conftest$ac_exeext
  9579. if { (ac_try="$ac_link"
  9580. case "(($ac_try" in
  9581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9582. *) ac_try_echo=$ac_try;;
  9583. esac
  9584. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9585. (eval "$ac_link") 2>conftest.er1
  9586. ac_status=$?
  9587. grep -v '^ *+' conftest.er1 >conftest.err
  9588. rm -f conftest.er1
  9589. cat conftest.err >&5
  9590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9591. (exit $ac_status); } && {
  9592. test -z "$ac_c_werror_flag" ||
  9593. test ! -s conftest.err
  9594. } && test -s conftest$ac_exeext &&
  9595. $as_test_x conftest$ac_exeext; then
  9596. LIBINTL="$LIBINTL $LIBICONV"
  9597. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  9598. gt_cv_func_gnugettext1_libintl=yes
  9599. else
  9600. echo "$as_me: failed program was:" >&5
  9601. sed 's/^/| /' conftest.$ac_ext >&5
  9602. fi
  9603. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9604. conftest$ac_exeext conftest.$ac_ext
  9605. fi
  9606. CPPFLAGS="$gt_save_CPPFLAGS"
  9607. LIBS="$gt_save_LIBS"
  9608. fi
  9609. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  9610. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
  9611. fi
  9612. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  9613. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  9614. && test "$PACKAGE" != gettext-runtime \
  9615. && test "$PACKAGE" != gettext-tools; }; then
  9616. gt_use_preinstalled_gnugettext=yes
  9617. else
  9618. LIBINTL=
  9619. LTLIBINTL=
  9620. INCINTL=
  9621. fi
  9622. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  9623. nls_cv_use_gnu_gettext=yes
  9624. fi
  9625. fi
  9626. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  9627. BUILD_INCLUDED_LIBINTL=yes
  9628. USE_INCLUDED_LIBINTL=yes
  9629. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  9630. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  9631. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  9632. fi
  9633. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9634. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9635. CATOBJEXT=.gmo
  9636. fi
  9637. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9638. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9639. cat >>confdefs.h <<\_ACEOF
  9640. #define ENABLE_NLS 1
  9641. _ACEOF
  9642. else
  9643. USE_NLS=no
  9644. fi
  9645. fi
  9646. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  9647. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  9648. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9649. echo "${ECHO_T}$USE_NLS" >&6; }
  9650. if test "$USE_NLS" = "yes"; then
  9651. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  9652. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  9653. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9654. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9655. gt_source="external libintl"
  9656. else
  9657. gt_source="libc"
  9658. fi
  9659. else
  9660. gt_source="included intl directory"
  9661. fi
  9662. { echo "$as_me:$LINENO: result: $gt_source" >&5
  9663. echo "${ECHO_T}$gt_source" >&6; }
  9664. fi
  9665. if test "$USE_NLS" = "yes"; then
  9666. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9667. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9668. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  9669. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  9670. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  9671. echo "${ECHO_T}$LIBINTL" >&6; }
  9672. for element in $INCINTL; do
  9673. haveit=
  9674. for x in $CPPFLAGS; do
  9675. acl_save_prefix="$prefix"
  9676. prefix="$acl_final_prefix"
  9677. acl_save_exec_prefix="$exec_prefix"
  9678. exec_prefix="$acl_final_exec_prefix"
  9679. eval x=\"$x\"
  9680. exec_prefix="$acl_save_exec_prefix"
  9681. prefix="$acl_save_prefix"
  9682. if test "X$x" = "X$element"; then
  9683. haveit=yes
  9684. break
  9685. fi
  9686. done
  9687. if test -z "$haveit"; then
  9688. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9689. fi
  9690. done
  9691. fi
  9692. cat >>confdefs.h <<\_ACEOF
  9693. #define HAVE_GETTEXT 1
  9694. _ACEOF
  9695. cat >>confdefs.h <<\_ACEOF
  9696. #define HAVE_DCGETTEXT 1
  9697. _ACEOF
  9698. fi
  9699. POSUB=po
  9700. fi
  9701. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  9702. BUILD_INCLUDED_LIBINTL=yes
  9703. fi
  9704. nls_cv_header_intl=
  9705. nls_cv_header_libgt=
  9706. DATADIRNAME=share
  9707. INSTOBJEXT=.mo
  9708. GENCAT=gencat
  9709. if test "$USE_INCLUDED_LIBINTL" = yes; then
  9710. INTLOBJS="\$(GETTOBJS)"
  9711. fi
  9712. INTL_LIBTOOL_SUFFIX_PREFIX=
  9713. INTLLIBS="$LIBINTL"
  9714. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  9715. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  9716. if test "${ac_cv_lib_error_at_line+set}" = set; then
  9717. echo $ECHO_N "(cached) $ECHO_C" >&6
  9718. else
  9719. cat >conftest.$ac_ext <<_ACEOF
  9720. /* confdefs.h. */
  9721. _ACEOF
  9722. cat confdefs.h >>conftest.$ac_ext
  9723. cat >>conftest.$ac_ext <<_ACEOF
  9724. /* end confdefs.h. */
  9725. #include <error.h>
  9726. int
  9727. main ()
  9728. {
  9729. error_at_line (0, 0, "", 0, "an error occurred");
  9730. ;
  9731. return 0;
  9732. }
  9733. _ACEOF
  9734. rm -f conftest.$ac_objext conftest$ac_exeext
  9735. if { (ac_try="$ac_link"
  9736. case "(($ac_try" in
  9737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9738. *) ac_try_echo=$ac_try;;
  9739. esac
  9740. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9741. (eval "$ac_link") 2>conftest.er1
  9742. ac_status=$?
  9743. grep -v '^ *+' conftest.er1 >conftest.err
  9744. rm -f conftest.er1
  9745. cat conftest.err >&5
  9746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9747. (exit $ac_status); } && {
  9748. test -z "$ac_c_werror_flag" ||
  9749. test ! -s conftest.err
  9750. } && test -s conftest$ac_exeext &&
  9751. $as_test_x conftest$ac_exeext; then
  9752. ac_cv_lib_error_at_line=yes
  9753. else
  9754. echo "$as_me: failed program was:" >&5
  9755. sed 's/^/| /' conftest.$ac_ext >&5
  9756. ac_cv_lib_error_at_line=no
  9757. fi
  9758. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9759. conftest$ac_exeext conftest.$ac_ext
  9760. fi
  9761. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  9762. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  9763. if test $ac_cv_lib_error_at_line = no; then
  9764. case " $LIBOBJS " in
  9765. *" error.$ac_objext "* ) ;;
  9766. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  9767. ;;
  9768. esac
  9769. fi
  9770. case "$target" in
  9771. *mingw*)
  9772. ;;
  9773. *)
  9774. for ac_header in stdlib.h
  9775. do
  9776. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9777. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9778. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9779. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9780. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9781. echo $ECHO_N "(cached) $ECHO_C" >&6
  9782. fi
  9783. ac_res=`eval echo '${'$as_ac_Header'}'`
  9784. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9785. echo "${ECHO_T}$ac_res" >&6; }
  9786. else
  9787. # Is the header compilable?
  9788. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9789. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9790. cat >conftest.$ac_ext <<_ACEOF
  9791. /* confdefs.h. */
  9792. _ACEOF
  9793. cat confdefs.h >>conftest.$ac_ext
  9794. cat >>conftest.$ac_ext <<_ACEOF
  9795. /* end confdefs.h. */
  9796. $ac_includes_default
  9797. #include <$ac_header>
  9798. _ACEOF
  9799. rm -f conftest.$ac_objext
  9800. if { (ac_try="$ac_compile"
  9801. case "(($ac_try" in
  9802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9803. *) ac_try_echo=$ac_try;;
  9804. esac
  9805. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9806. (eval "$ac_compile") 2>conftest.er1
  9807. ac_status=$?
  9808. grep -v '^ *+' conftest.er1 >conftest.err
  9809. rm -f conftest.er1
  9810. cat conftest.err >&5
  9811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9812. (exit $ac_status); } && {
  9813. test -z "$ac_c_werror_flag" ||
  9814. test ! -s conftest.err
  9815. } && test -s conftest.$ac_objext; then
  9816. ac_header_compiler=yes
  9817. else
  9818. echo "$as_me: failed program was:" >&5
  9819. sed 's/^/| /' conftest.$ac_ext >&5
  9820. ac_header_compiler=no
  9821. fi
  9822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9823. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9824. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9825. # Is the header present?
  9826. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9827. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9828. cat >conftest.$ac_ext <<_ACEOF
  9829. /* confdefs.h. */
  9830. _ACEOF
  9831. cat confdefs.h >>conftest.$ac_ext
  9832. cat >>conftest.$ac_ext <<_ACEOF
  9833. /* end confdefs.h. */
  9834. #include <$ac_header>
  9835. _ACEOF
  9836. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9837. case "(($ac_try" in
  9838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9839. *) ac_try_echo=$ac_try;;
  9840. esac
  9841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9842. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9843. ac_status=$?
  9844. grep -v '^ *+' conftest.er1 >conftest.err
  9845. rm -f conftest.er1
  9846. cat conftest.err >&5
  9847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9848. (exit $ac_status); } >/dev/null && {
  9849. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9850. test ! -s conftest.err
  9851. }; then
  9852. ac_header_preproc=yes
  9853. else
  9854. echo "$as_me: failed program was:" >&5
  9855. sed 's/^/| /' conftest.$ac_ext >&5
  9856. ac_header_preproc=no
  9857. fi
  9858. rm -f conftest.err conftest.$ac_ext
  9859. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9860. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9861. # So? What about this header?
  9862. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9863. yes:no: )
  9864. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9865. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9866. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9867. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9868. ac_header_preproc=yes
  9869. ;;
  9870. no:yes:* )
  9871. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9872. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9873. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9874. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9875. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9876. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9877. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9878. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9879. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9880. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9881. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9882. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9883. ( cat <<\_ASBOX
  9884. ## ----------------------------------------------- ##
  9885. ## Report this to t-tujikawa@users.sourceforge.net ##
  9886. ## ----------------------------------------------- ##
  9887. _ASBOX
  9888. ) | sed "s/^/$as_me: WARNING: /" >&2
  9889. ;;
  9890. esac
  9891. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9892. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9893. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9894. echo $ECHO_N "(cached) $ECHO_C" >&6
  9895. else
  9896. eval "$as_ac_Header=\$ac_header_preproc"
  9897. fi
  9898. ac_res=`eval echo '${'$as_ac_Header'}'`
  9899. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9900. echo "${ECHO_T}$ac_res" >&6; }
  9901. fi
  9902. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9903. cat >>confdefs.h <<_ACEOF
  9904. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9905. _ACEOF
  9906. fi
  9907. done
  9908. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9909. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  9910. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9911. echo $ECHO_N "(cached) $ECHO_C" >&6
  9912. else
  9913. if test "$cross_compiling" = yes; then
  9914. ac_cv_func_malloc_0_nonnull=no
  9915. else
  9916. cat >conftest.$ac_ext <<_ACEOF
  9917. /* confdefs.h. */
  9918. _ACEOF
  9919. cat confdefs.h >>conftest.$ac_ext
  9920. cat >>conftest.$ac_ext <<_ACEOF
  9921. /* end confdefs.h. */
  9922. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9923. # include <stdlib.h>
  9924. #else
  9925. char *malloc ();
  9926. #endif
  9927. int
  9928. main ()
  9929. {
  9930. return ! malloc (0);
  9931. ;
  9932. return 0;
  9933. }
  9934. _ACEOF
  9935. rm -f conftest$ac_exeext
  9936. if { (ac_try="$ac_link"
  9937. case "(($ac_try" in
  9938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9939. *) ac_try_echo=$ac_try;;
  9940. esac
  9941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9942. (eval "$ac_link") 2>&5
  9943. ac_status=$?
  9944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9945. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9946. { (case "(($ac_try" in
  9947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9948. *) ac_try_echo=$ac_try;;
  9949. esac
  9950. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9951. (eval "$ac_try") 2>&5
  9952. ac_status=$?
  9953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9954. (exit $ac_status); }; }; then
  9955. ac_cv_func_malloc_0_nonnull=yes
  9956. else
  9957. echo "$as_me: program exited with status $ac_status" >&5
  9958. echo "$as_me: failed program was:" >&5
  9959. sed 's/^/| /' conftest.$ac_ext >&5
  9960. ( exit $ac_status )
  9961. ac_cv_func_malloc_0_nonnull=no
  9962. fi
  9963. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9964. fi
  9965. fi
  9966. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9967. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  9968. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9969. cat >>confdefs.h <<\_ACEOF
  9970. #define HAVE_MALLOC 1
  9971. _ACEOF
  9972. else
  9973. cat >>confdefs.h <<\_ACEOF
  9974. #define HAVE_MALLOC 0
  9975. _ACEOF
  9976. case " $LIBOBJS " in
  9977. *" malloc.$ac_objext "* ) ;;
  9978. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9979. ;;
  9980. esac
  9981. cat >>confdefs.h <<\_ACEOF
  9982. #define malloc rpl_malloc
  9983. _ACEOF
  9984. fi
  9985. for ac_header in stdlib.h
  9986. do
  9987. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9988. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9989. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9990. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9991. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9992. echo $ECHO_N "(cached) $ECHO_C" >&6
  9993. fi
  9994. ac_res=`eval echo '${'$as_ac_Header'}'`
  9995. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9996. echo "${ECHO_T}$ac_res" >&6; }
  9997. else
  9998. # Is the header compilable?
  9999. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10000. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10001. cat >conftest.$ac_ext <<_ACEOF
  10002. /* confdefs.h. */
  10003. _ACEOF
  10004. cat confdefs.h >>conftest.$ac_ext
  10005. cat >>conftest.$ac_ext <<_ACEOF
  10006. /* end confdefs.h. */
  10007. $ac_includes_default
  10008. #include <$ac_header>
  10009. _ACEOF
  10010. rm -f conftest.$ac_objext
  10011. if { (ac_try="$ac_compile"
  10012. case "(($ac_try" in
  10013. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10014. *) ac_try_echo=$ac_try;;
  10015. esac
  10016. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10017. (eval "$ac_compile") 2>conftest.er1
  10018. ac_status=$?
  10019. grep -v '^ *+' conftest.er1 >conftest.err
  10020. rm -f conftest.er1
  10021. cat conftest.err >&5
  10022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10023. (exit $ac_status); } && {
  10024. test -z "$ac_c_werror_flag" ||
  10025. test ! -s conftest.err
  10026. } && test -s conftest.$ac_objext; then
  10027. ac_header_compiler=yes
  10028. else
  10029. echo "$as_me: failed program was:" >&5
  10030. sed 's/^/| /' conftest.$ac_ext >&5
  10031. ac_header_compiler=no
  10032. fi
  10033. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10034. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10035. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10036. # Is the header present?
  10037. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10038. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10039. cat >conftest.$ac_ext <<_ACEOF
  10040. /* confdefs.h. */
  10041. _ACEOF
  10042. cat confdefs.h >>conftest.$ac_ext
  10043. cat >>conftest.$ac_ext <<_ACEOF
  10044. /* end confdefs.h. */
  10045. #include <$ac_header>
  10046. _ACEOF
  10047. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10048. case "(($ac_try" in
  10049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10050. *) ac_try_echo=$ac_try;;
  10051. esac
  10052. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10053. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10054. ac_status=$?
  10055. grep -v '^ *+' conftest.er1 >conftest.err
  10056. rm -f conftest.er1
  10057. cat conftest.err >&5
  10058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10059. (exit $ac_status); } >/dev/null && {
  10060. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10061. test ! -s conftest.err
  10062. }; then
  10063. ac_header_preproc=yes
  10064. else
  10065. echo "$as_me: failed program was:" >&5
  10066. sed 's/^/| /' conftest.$ac_ext >&5
  10067. ac_header_preproc=no
  10068. fi
  10069. rm -f conftest.err conftest.$ac_ext
  10070. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10071. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10072. # So? What about this header?
  10073. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10074. yes:no: )
  10075. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10076. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10077. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10078. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10079. ac_header_preproc=yes
  10080. ;;
  10081. no:yes:* )
  10082. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10083. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10084. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10085. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10086. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10087. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10088. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10089. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10090. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10091. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10092. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10093. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10094. ( cat <<\_ASBOX
  10095. ## ----------------------------------------------- ##
  10096. ## Report this to t-tujikawa@users.sourceforge.net ##
  10097. ## ----------------------------------------------- ##
  10098. _ASBOX
  10099. ) | sed "s/^/$as_me: WARNING: /" >&2
  10100. ;;
  10101. esac
  10102. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10103. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10104. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10105. echo $ECHO_N "(cached) $ECHO_C" >&6
  10106. else
  10107. eval "$as_ac_Header=\$ac_header_preproc"
  10108. fi
  10109. ac_res=`eval echo '${'$as_ac_Header'}'`
  10110. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10111. echo "${ECHO_T}$ac_res" >&6; }
  10112. fi
  10113. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10114. cat >>confdefs.h <<_ACEOF
  10115. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10116. _ACEOF
  10117. fi
  10118. done
  10119. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10120. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  10121. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10122. echo $ECHO_N "(cached) $ECHO_C" >&6
  10123. else
  10124. if test "$cross_compiling" = yes; then
  10125. ac_cv_func_realloc_0_nonnull=no
  10126. else
  10127. cat >conftest.$ac_ext <<_ACEOF
  10128. /* confdefs.h. */
  10129. _ACEOF
  10130. cat confdefs.h >>conftest.$ac_ext
  10131. cat >>conftest.$ac_ext <<_ACEOF
  10132. /* end confdefs.h. */
  10133. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10134. # include <stdlib.h>
  10135. #else
  10136. char *realloc ();
  10137. #endif
  10138. int
  10139. main ()
  10140. {
  10141. return ! realloc (0, 0);
  10142. ;
  10143. return 0;
  10144. }
  10145. _ACEOF
  10146. rm -f conftest$ac_exeext
  10147. if { (ac_try="$ac_link"
  10148. case "(($ac_try" in
  10149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10150. *) ac_try_echo=$ac_try;;
  10151. esac
  10152. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10153. (eval "$ac_link") 2>&5
  10154. ac_status=$?
  10155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10156. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10157. { (case "(($ac_try" in
  10158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10159. *) ac_try_echo=$ac_try;;
  10160. esac
  10161. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10162. (eval "$ac_try") 2>&5
  10163. ac_status=$?
  10164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10165. (exit $ac_status); }; }; then
  10166. ac_cv_func_realloc_0_nonnull=yes
  10167. else
  10168. echo "$as_me: program exited with status $ac_status" >&5
  10169. echo "$as_me: failed program was:" >&5
  10170. sed 's/^/| /' conftest.$ac_ext >&5
  10171. ( exit $ac_status )
  10172. ac_cv_func_realloc_0_nonnull=no
  10173. fi
  10174. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10175. fi
  10176. fi
  10177. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10178. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  10179. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10180. cat >>confdefs.h <<\_ACEOF
  10181. #define HAVE_REALLOC 1
  10182. _ACEOF
  10183. else
  10184. cat >>confdefs.h <<\_ACEOF
  10185. #define HAVE_REALLOC 0
  10186. _ACEOF
  10187. case " $LIBOBJS " in
  10188. *" realloc.$ac_objext "* ) ;;
  10189. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  10190. ;;
  10191. esac
  10192. cat >>confdefs.h <<\_ACEOF
  10193. #define realloc rpl_realloc
  10194. _ACEOF
  10195. fi
  10196. ;;
  10197. esac
  10198. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  10199. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  10200. if test "${ac_cv_func_memcmp_working+set}" = set; then
  10201. echo $ECHO_N "(cached) $ECHO_C" >&6
  10202. else
  10203. if test "$cross_compiling" = yes; then
  10204. ac_cv_func_memcmp_working=no
  10205. else
  10206. cat >conftest.$ac_ext <<_ACEOF
  10207. /* confdefs.h. */
  10208. _ACEOF
  10209. cat confdefs.h >>conftest.$ac_ext
  10210. cat >>conftest.$ac_ext <<_ACEOF
  10211. /* end confdefs.h. */
  10212. $ac_includes_default
  10213. int
  10214. main ()
  10215. {
  10216. /* Some versions of memcmp are not 8-bit clean. */
  10217. char c0 = '\100', c1 = '\200', c2 = '\201';
  10218. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  10219. return 1;
  10220. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  10221. or more and with at least one buffer not starting on a 4-byte boundary.
  10222. William Lewis provided this test program. */
  10223. {
  10224. char foo[21];
  10225. char bar[21];
  10226. int i;
  10227. for (i = 0; i < 4; i++)
  10228. {
  10229. char *a = foo + i;
  10230. char *b = bar + i;
  10231. strcpy (a, "--------01111111");
  10232. strcpy (b, "--------10000000");
  10233. if (memcmp (a, b, 16) >= 0)
  10234. return 1;
  10235. }
  10236. return 0;
  10237. }
  10238. ;
  10239. return 0;
  10240. }
  10241. _ACEOF
  10242. rm -f conftest$ac_exeext
  10243. if { (ac_try="$ac_link"
  10244. case "(($ac_try" in
  10245. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10246. *) ac_try_echo=$ac_try;;
  10247. esac
  10248. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10249. (eval "$ac_link") 2>&5
  10250. ac_status=$?
  10251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10252. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10253. { (case "(($ac_try" in
  10254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10255. *) ac_try_echo=$ac_try;;
  10256. esac
  10257. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10258. (eval "$ac_try") 2>&5
  10259. ac_status=$?
  10260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10261. (exit $ac_status); }; }; then
  10262. ac_cv_func_memcmp_working=yes
  10263. else
  10264. echo "$as_me: program exited with status $ac_status" >&5
  10265. echo "$as_me: failed program was:" >&5
  10266. sed 's/^/| /' conftest.$ac_ext >&5
  10267. ( exit $ac_status )
  10268. ac_cv_func_memcmp_working=no
  10269. fi
  10270. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10271. fi
  10272. fi
  10273. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  10274. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  10275. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  10276. *" memcmp.$ac_objext "* ) ;;
  10277. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  10278. ;;
  10279. esac
  10280. for ac_header in stdlib.h unistd.h
  10281. do
  10282. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10283. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10284. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10285. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10286. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10287. echo $ECHO_N "(cached) $ECHO_C" >&6
  10288. fi
  10289. ac_res=`eval echo '${'$as_ac_Header'}'`
  10290. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10291. echo "${ECHO_T}$ac_res" >&6; }
  10292. else
  10293. # Is the header compilable?
  10294. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10295. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10296. cat >conftest.$ac_ext <<_ACEOF
  10297. /* confdefs.h. */
  10298. _ACEOF
  10299. cat confdefs.h >>conftest.$ac_ext
  10300. cat >>conftest.$ac_ext <<_ACEOF
  10301. /* end confdefs.h. */
  10302. $ac_includes_default
  10303. #include <$ac_header>
  10304. _ACEOF
  10305. rm -f conftest.$ac_objext
  10306. if { (ac_try="$ac_compile"
  10307. case "(($ac_try" in
  10308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10309. *) ac_try_echo=$ac_try;;
  10310. esac
  10311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10312. (eval "$ac_compile") 2>conftest.er1
  10313. ac_status=$?
  10314. grep -v '^ *+' conftest.er1 >conftest.err
  10315. rm -f conftest.er1
  10316. cat conftest.err >&5
  10317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10318. (exit $ac_status); } && {
  10319. test -z "$ac_c_werror_flag" ||
  10320. test ! -s conftest.err
  10321. } && test -s conftest.$ac_objext; then
  10322. ac_header_compiler=yes
  10323. else
  10324. echo "$as_me: failed program was:" >&5
  10325. sed 's/^/| /' conftest.$ac_ext >&5
  10326. ac_header_compiler=no
  10327. fi
  10328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10329. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10330. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10331. # Is the header present?
  10332. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10333. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10334. cat >conftest.$ac_ext <<_ACEOF
  10335. /* confdefs.h. */
  10336. _ACEOF
  10337. cat confdefs.h >>conftest.$ac_ext
  10338. cat >>conftest.$ac_ext <<_ACEOF
  10339. /* end confdefs.h. */
  10340. #include <$ac_header>
  10341. _ACEOF
  10342. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10343. case "(($ac_try" in
  10344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10345. *) ac_try_echo=$ac_try;;
  10346. esac
  10347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10348. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10349. ac_status=$?
  10350. grep -v '^ *+' conftest.er1 >conftest.err
  10351. rm -f conftest.er1
  10352. cat conftest.err >&5
  10353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10354. (exit $ac_status); } >/dev/null && {
  10355. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10356. test ! -s conftest.err
  10357. }; then
  10358. ac_header_preproc=yes
  10359. else
  10360. echo "$as_me: failed program was:" >&5
  10361. sed 's/^/| /' conftest.$ac_ext >&5
  10362. ac_header_preproc=no
  10363. fi
  10364. rm -f conftest.err conftest.$ac_ext
  10365. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10366. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10367. # So? What about this header?
  10368. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10369. yes:no: )
  10370. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10371. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10372. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10373. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10374. ac_header_preproc=yes
  10375. ;;
  10376. no:yes:* )
  10377. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10378. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10379. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10380. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10381. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10382. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10383. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10384. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10385. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10386. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10387. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10388. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10389. ( cat <<\_ASBOX
  10390. ## ----------------------------------------------- ##
  10391. ## Report this to t-tujikawa@users.sourceforge.net ##
  10392. ## ----------------------------------------------- ##
  10393. _ASBOX
  10394. ) | sed "s/^/$as_me: WARNING: /" >&2
  10395. ;;
  10396. esac
  10397. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10398. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10399. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10400. echo $ECHO_N "(cached) $ECHO_C" >&6
  10401. else
  10402. eval "$as_ac_Header=\$ac_header_preproc"
  10403. fi
  10404. ac_res=`eval echo '${'$as_ac_Header'}'`
  10405. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10406. echo "${ECHO_T}$ac_res" >&6; }
  10407. fi
  10408. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10409. cat >>confdefs.h <<_ACEOF
  10410. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10411. _ACEOF
  10412. fi
  10413. done
  10414. for ac_func in getpagesize
  10415. do
  10416. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10417. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10418. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10419. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10420. echo $ECHO_N "(cached) $ECHO_C" >&6
  10421. else
  10422. cat >conftest.$ac_ext <<_ACEOF
  10423. /* confdefs.h. */
  10424. _ACEOF
  10425. cat confdefs.h >>conftest.$ac_ext
  10426. cat >>conftest.$ac_ext <<_ACEOF
  10427. /* end confdefs.h. */
  10428. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10429. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10430. #define $ac_func innocuous_$ac_func
  10431. /* System header to define __stub macros and hopefully few prototypes,
  10432. which can conflict with char $ac_func (); below.
  10433. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10434. <limits.h> exists even on freestanding compilers. */
  10435. #ifdef __STDC__
  10436. # include <limits.h>
  10437. #else
  10438. # include <assert.h>
  10439. #endif
  10440. #undef $ac_func
  10441. /* Override any GCC internal prototype to avoid an error.
  10442. Use char because int might match the return type of a GCC
  10443. builtin and then its argument prototype would still apply. */
  10444. #ifdef __cplusplus
  10445. extern "C"
  10446. #endif
  10447. char $ac_func ();
  10448. /* The GNU C library defines this for functions which it implements
  10449. to always fail with ENOSYS. Some functions are actually named
  10450. something starting with __ and the normal name is an alias. */
  10451. #if defined __stub_$ac_func || defined __stub___$ac_func
  10452. choke me
  10453. #endif
  10454. int
  10455. main ()
  10456. {
  10457. return $ac_func ();
  10458. ;
  10459. return 0;
  10460. }
  10461. _ACEOF
  10462. rm -f conftest.$ac_objext conftest$ac_exeext
  10463. if { (ac_try="$ac_link"
  10464. case "(($ac_try" in
  10465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10466. *) ac_try_echo=$ac_try;;
  10467. esac
  10468. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10469. (eval "$ac_link") 2>conftest.er1
  10470. ac_status=$?
  10471. grep -v '^ *+' conftest.er1 >conftest.err
  10472. rm -f conftest.er1
  10473. cat conftest.err >&5
  10474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10475. (exit $ac_status); } && {
  10476. test -z "$ac_c_werror_flag" ||
  10477. test ! -s conftest.err
  10478. } && test -s conftest$ac_exeext &&
  10479. $as_test_x conftest$ac_exeext; then
  10480. eval "$as_ac_var=yes"
  10481. else
  10482. echo "$as_me: failed program was:" >&5
  10483. sed 's/^/| /' conftest.$ac_ext >&5
  10484. eval "$as_ac_var=no"
  10485. fi
  10486. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10487. conftest$ac_exeext conftest.$ac_ext
  10488. fi
  10489. ac_res=`eval echo '${'$as_ac_var'}'`
  10490. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10491. echo "${ECHO_T}$ac_res" >&6; }
  10492. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10493. cat >>confdefs.h <<_ACEOF
  10494. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10495. _ACEOF
  10496. fi
  10497. done
  10498. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10499. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10500. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10501. echo $ECHO_N "(cached) $ECHO_C" >&6
  10502. else
  10503. if test "$cross_compiling" = yes; then
  10504. ac_cv_func_mmap_fixed_mapped=no
  10505. else
  10506. cat >conftest.$ac_ext <<_ACEOF
  10507. /* confdefs.h. */
  10508. _ACEOF
  10509. cat confdefs.h >>conftest.$ac_ext
  10510. cat >>conftest.$ac_ext <<_ACEOF
  10511. /* end confdefs.h. */
  10512. $ac_includes_default
  10513. /* malloc might have been renamed as rpl_malloc. */
  10514. #undef malloc
  10515. /* Thanks to Mike Haertel and Jim Avera for this test.
  10516. Here is a matrix of mmap possibilities:
  10517. mmap private not fixed
  10518. mmap private fixed at somewhere currently unmapped
  10519. mmap private fixed at somewhere already mapped
  10520. mmap shared not fixed
  10521. mmap shared fixed at somewhere currently unmapped
  10522. mmap shared fixed at somewhere already mapped
  10523. For private mappings, we should verify that changes cannot be read()
  10524. back from the file, nor mmap's back from the file at a different
  10525. address. (There have been systems where private was not correctly
  10526. implemented like the infamous i386 svr4.0, and systems where the
  10527. VM page cache was not coherent with the file system buffer cache
  10528. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10529. For shared mappings, we should conversely verify that changes get
  10530. propagated back to all the places they're supposed to be.
  10531. Grep wants private fixed already mapped.
  10532. The main things grep needs to know about mmap are:
  10533. * does it exist and is it safe to write into the mmap'd area
  10534. * how to use it (BSD variants) */
  10535. #include <fcntl.h>
  10536. #include <sys/mman.h>
  10537. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10538. char *malloc ();
  10539. #endif
  10540. /* This mess was copied from the GNU getpagesize.h. */
  10541. #ifndef HAVE_GETPAGESIZE
  10542. /* Assume that all systems that can run configure have sys/param.h. */
  10543. # ifndef HAVE_SYS_PARAM_H
  10544. # define HAVE_SYS_PARAM_H 1
  10545. # endif
  10546. # ifdef _SC_PAGESIZE
  10547. # define getpagesize() sysconf(_SC_PAGESIZE)
  10548. # else /* no _SC_PAGESIZE */
  10549. # ifdef HAVE_SYS_PARAM_H
  10550. # include <sys/param.h>
  10551. # ifdef EXEC_PAGESIZE
  10552. # define getpagesize() EXEC_PAGESIZE
  10553. # else /* no EXEC_PAGESIZE */
  10554. # ifdef NBPG
  10555. # define getpagesize() NBPG * CLSIZE
  10556. # ifndef CLSIZE
  10557. # define CLSIZE 1
  10558. # endif /* no CLSIZE */
  10559. # else /* no NBPG */
  10560. # ifdef NBPC
  10561. # define getpagesize() NBPC
  10562. # else /* no NBPC */
  10563. # ifdef PAGESIZE
  10564. # define getpagesize() PAGESIZE
  10565. # endif /* PAGESIZE */
  10566. # endif /* no NBPC */
  10567. # endif /* no NBPG */
  10568. # endif /* no EXEC_PAGESIZE */
  10569. # else /* no HAVE_SYS_PARAM_H */
  10570. # define getpagesize() 8192 /* punt totally */
  10571. # endif /* no HAVE_SYS_PARAM_H */
  10572. # endif /* no _SC_PAGESIZE */
  10573. #endif /* no HAVE_GETPAGESIZE */
  10574. int
  10575. main ()
  10576. {
  10577. char *data, *data2, *data3;
  10578. int i, pagesize;
  10579. int fd;
  10580. pagesize = getpagesize ();
  10581. /* First, make a file with some known garbage in it. */
  10582. data = (char *) malloc (pagesize);
  10583. if (!data)
  10584. return 1;
  10585. for (i = 0; i < pagesize; ++i)
  10586. *(data + i) = rand ();
  10587. umask (0);
  10588. fd = creat ("conftest.mmap", 0600);
  10589. if (fd < 0)
  10590. return 1;
  10591. if (write (fd, data, pagesize) != pagesize)
  10592. return 1;
  10593. close (fd);
  10594. /* Next, try to mmap the file at a fixed address which already has
  10595. something else allocated at it. If we can, also make sure that
  10596. we see the same garbage. */
  10597. fd = open ("conftest.mmap", O_RDWR);
  10598. if (fd < 0)
  10599. return 1;
  10600. data2 = (char *) malloc (2 * pagesize);
  10601. if (!data2)
  10602. return 1;
  10603. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10604. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10605. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10606. return 1;
  10607. for (i = 0; i < pagesize; ++i)
  10608. if (*(data + i) != *(data2 + i))
  10609. return 1;
  10610. /* Finally, make sure that changes to the mapped area do not
  10611. percolate back to the file as seen by read(). (This is a bug on
  10612. some variants of i386 svr4.0.) */
  10613. for (i = 0; i < pagesize; ++i)
  10614. *(data2 + i) = *(data2 + i) + 1;
  10615. data3 = (char *) malloc (pagesize);
  10616. if (!data3)
  10617. return 1;
  10618. if (read (fd, data3, pagesize) != pagesize)
  10619. return 1;
  10620. for (i = 0; i < pagesize; ++i)
  10621. if (*(data + i) != *(data3 + i))
  10622. return 1;
  10623. close (fd);
  10624. return 0;
  10625. }
  10626. _ACEOF
  10627. rm -f conftest$ac_exeext
  10628. if { (ac_try="$ac_link"
  10629. case "(($ac_try" in
  10630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10631. *) ac_try_echo=$ac_try;;
  10632. esac
  10633. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10634. (eval "$ac_link") 2>&5
  10635. ac_status=$?
  10636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10637. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10638. { (case "(($ac_try" in
  10639. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10640. *) ac_try_echo=$ac_try;;
  10641. esac
  10642. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10643. (eval "$ac_try") 2>&5
  10644. ac_status=$?
  10645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10646. (exit $ac_status); }; }; then
  10647. ac_cv_func_mmap_fixed_mapped=yes
  10648. else
  10649. echo "$as_me: program exited with status $ac_status" >&5
  10650. echo "$as_me: failed program was:" >&5
  10651. sed 's/^/| /' conftest.$ac_ext >&5
  10652. ( exit $ac_status )
  10653. ac_cv_func_mmap_fixed_mapped=no
  10654. fi
  10655. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10656. fi
  10657. fi
  10658. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10659. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10660. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10661. cat >>confdefs.h <<\_ACEOF
  10662. #define HAVE_MMAP 1
  10663. _ACEOF
  10664. fi
  10665. rm -f conftest.mmap
  10666. for ac_header in sys/select.h sys/socket.h
  10667. do
  10668. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10669. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10670. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10671. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10672. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10673. echo $ECHO_N "(cached) $ECHO_C" >&6
  10674. fi
  10675. ac_res=`eval echo '${'$as_ac_Header'}'`
  10676. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10677. echo "${ECHO_T}$ac_res" >&6; }
  10678. else
  10679. # Is the header compilable?
  10680. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10681. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10682. cat >conftest.$ac_ext <<_ACEOF
  10683. /* confdefs.h. */
  10684. _ACEOF
  10685. cat confdefs.h >>conftest.$ac_ext
  10686. cat >>conftest.$ac_ext <<_ACEOF
  10687. /* end confdefs.h. */
  10688. $ac_includes_default
  10689. #include <$ac_header>
  10690. _ACEOF
  10691. rm -f conftest.$ac_objext
  10692. if { (ac_try="$ac_compile"
  10693. case "(($ac_try" in
  10694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10695. *) ac_try_echo=$ac_try;;
  10696. esac
  10697. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10698. (eval "$ac_compile") 2>conftest.er1
  10699. ac_status=$?
  10700. grep -v '^ *+' conftest.er1 >conftest.err
  10701. rm -f conftest.er1
  10702. cat conftest.err >&5
  10703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10704. (exit $ac_status); } && {
  10705. test -z "$ac_c_werror_flag" ||
  10706. test ! -s conftest.err
  10707. } && test -s conftest.$ac_objext; then
  10708. ac_header_compiler=yes
  10709. else
  10710. echo "$as_me: failed program was:" >&5
  10711. sed 's/^/| /' conftest.$ac_ext >&5
  10712. ac_header_compiler=no
  10713. fi
  10714. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10715. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10716. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10717. # Is the header present?
  10718. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10719. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10720. cat >conftest.$ac_ext <<_ACEOF
  10721. /* confdefs.h. */
  10722. _ACEOF
  10723. cat confdefs.h >>conftest.$ac_ext
  10724. cat >>conftest.$ac_ext <<_ACEOF
  10725. /* end confdefs.h. */
  10726. #include <$ac_header>
  10727. _ACEOF
  10728. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10729. case "(($ac_try" in
  10730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10731. *) ac_try_echo=$ac_try;;
  10732. esac
  10733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10734. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10735. ac_status=$?
  10736. grep -v '^ *+' conftest.er1 >conftest.err
  10737. rm -f conftest.er1
  10738. cat conftest.err >&5
  10739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10740. (exit $ac_status); } >/dev/null && {
  10741. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10742. test ! -s conftest.err
  10743. }; then
  10744. ac_header_preproc=yes
  10745. else
  10746. echo "$as_me: failed program was:" >&5
  10747. sed 's/^/| /' conftest.$ac_ext >&5
  10748. ac_header_preproc=no
  10749. fi
  10750. rm -f conftest.err conftest.$ac_ext
  10751. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10752. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10753. # So? What about this header?
  10754. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10755. yes:no: )
  10756. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10757. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10758. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10759. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10760. ac_header_preproc=yes
  10761. ;;
  10762. no:yes:* )
  10763. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10764. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10765. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10766. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10767. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10768. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10769. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10770. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10771. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10772. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10773. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10774. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10775. ( cat <<\_ASBOX
  10776. ## ----------------------------------------------- ##
  10777. ## Report this to t-tujikawa@users.sourceforge.net ##
  10778. ## ----------------------------------------------- ##
  10779. _ASBOX
  10780. ) | sed "s/^/$as_me: WARNING: /" >&2
  10781. ;;
  10782. esac
  10783. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10784. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10785. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10786. echo $ECHO_N "(cached) $ECHO_C" >&6
  10787. else
  10788. eval "$as_ac_Header=\$ac_header_preproc"
  10789. fi
  10790. ac_res=`eval echo '${'$as_ac_Header'}'`
  10791. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10792. echo "${ECHO_T}$ac_res" >&6; }
  10793. fi
  10794. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10795. cat >>confdefs.h <<_ACEOF
  10796. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10797. _ACEOF
  10798. fi
  10799. done
  10800. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10801. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  10802. if test "${ac_cv_func_select_args+set}" = set; then
  10803. echo $ECHO_N "(cached) $ECHO_C" >&6
  10804. else
  10805. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10806. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  10807. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10808. cat >conftest.$ac_ext <<_ACEOF
  10809. /* confdefs.h. */
  10810. _ACEOF
  10811. cat confdefs.h >>conftest.$ac_ext
  10812. cat >>conftest.$ac_ext <<_ACEOF
  10813. /* end confdefs.h. */
  10814. $ac_includes_default
  10815. #ifdef HAVE_SYS_SELECT_H
  10816. # include <sys/select.h>
  10817. #endif
  10818. #ifdef HAVE_SYS_SOCKET_H
  10819. # include <sys/socket.h>
  10820. #endif
  10821. int
  10822. main ()
  10823. {
  10824. extern int select ($ac_arg1,
  10825. $ac_arg234, $ac_arg234, $ac_arg234,
  10826. $ac_arg5);
  10827. ;
  10828. return 0;
  10829. }
  10830. _ACEOF
  10831. rm -f conftest.$ac_objext
  10832. if { (ac_try="$ac_compile"
  10833. case "(($ac_try" in
  10834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10835. *) ac_try_echo=$ac_try;;
  10836. esac
  10837. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10838. (eval "$ac_compile") 2>conftest.er1
  10839. ac_status=$?
  10840. grep -v '^ *+' conftest.er1 >conftest.err
  10841. rm -f conftest.er1
  10842. cat conftest.err >&5
  10843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10844. (exit $ac_status); } && {
  10845. test -z "$ac_c_werror_flag" ||
  10846. test ! -s conftest.err
  10847. } && test -s conftest.$ac_objext; then
  10848. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10849. else
  10850. echo "$as_me: failed program was:" >&5
  10851. sed 's/^/| /' conftest.$ac_ext >&5
  10852. fi
  10853. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10854. done
  10855. done
  10856. done
  10857. # Provide a safe default value.
  10858. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10859. fi
  10860. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10861. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  10862. ac_save_IFS=$IFS; IFS=','
  10863. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10864. IFS=$ac_save_IFS
  10865. shift
  10866. cat >>confdefs.h <<_ACEOF
  10867. #define SELECT_TYPE_ARG1 $1
  10868. _ACEOF
  10869. cat >>confdefs.h <<_ACEOF
  10870. #define SELECT_TYPE_ARG234 ($2)
  10871. _ACEOF
  10872. cat >>confdefs.h <<_ACEOF
  10873. #define SELECT_TYPE_ARG5 ($3)
  10874. _ACEOF
  10875. rm -f conftest*
  10876. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  10877. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  10878. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  10879. echo $ECHO_N "(cached) $ECHO_C" >&6
  10880. else
  10881. rm -f conftest.sym conftest.file
  10882. echo >conftest.file
  10883. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  10884. if test "$cross_compiling" = yes; then
  10885. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10886. else
  10887. cat >conftest.$ac_ext <<_ACEOF
  10888. /* confdefs.h. */
  10889. _ACEOF
  10890. cat confdefs.h >>conftest.$ac_ext
  10891. cat >>conftest.$ac_ext <<_ACEOF
  10892. /* end confdefs.h. */
  10893. $ac_includes_default
  10894. int
  10895. main ()
  10896. {
  10897. struct stat sbuf;
  10898. /* Linux will dereference the symlink and fail.
  10899. That is better in the sense that it means we will not
  10900. have to compile and use the lstat wrapper. */
  10901. return lstat ("conftest.sym/", &sbuf) == 0;
  10902. ;
  10903. return 0;
  10904. }
  10905. _ACEOF
  10906. rm -f conftest$ac_exeext
  10907. if { (ac_try="$ac_link"
  10908. case "(($ac_try" in
  10909. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10910. *) ac_try_echo=$ac_try;;
  10911. esac
  10912. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10913. (eval "$ac_link") 2>&5
  10914. ac_status=$?
  10915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10916. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10917. { (case "(($ac_try" in
  10918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10919. *) ac_try_echo=$ac_try;;
  10920. esac
  10921. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10922. (eval "$ac_try") 2>&5
  10923. ac_status=$?
  10924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10925. (exit $ac_status); }; }; then
  10926. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  10927. else
  10928. echo "$as_me: program exited with status $ac_status" >&5
  10929. echo "$as_me: failed program was:" >&5
  10930. sed 's/^/| /' conftest.$ac_ext >&5
  10931. ( exit $ac_status )
  10932. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10933. fi
  10934. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10935. fi
  10936. else
  10937. # If the `ln -s' command failed, then we probably don't even
  10938. # have an lstat function.
  10939. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10940. fi
  10941. rm -f conftest.sym conftest.file
  10942. fi
  10943. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  10944. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  10945. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  10946. cat >>confdefs.h <<_ACEOF
  10947. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  10948. _ACEOF
  10949. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  10950. case " $LIBOBJS " in
  10951. *" lstat.$ac_objext "* ) ;;
  10952. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  10953. ;;
  10954. esac
  10955. fi
  10956. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10957. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  10958. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10959. echo $ECHO_N "(cached) $ECHO_C" >&6
  10960. else
  10961. if test "$cross_compiling" = yes; then
  10962. ac_cv_func_stat_empty_string_bug=yes
  10963. else
  10964. cat >conftest.$ac_ext <<_ACEOF
  10965. /* confdefs.h. */
  10966. _ACEOF
  10967. cat confdefs.h >>conftest.$ac_ext
  10968. cat >>conftest.$ac_ext <<_ACEOF
  10969. /* end confdefs.h. */
  10970. $ac_includes_default
  10971. int
  10972. main ()
  10973. {
  10974. struct stat sbuf;
  10975. return stat ("", &sbuf) == 0;
  10976. ;
  10977. return 0;
  10978. }
  10979. _ACEOF
  10980. rm -f conftest$ac_exeext
  10981. if { (ac_try="$ac_link"
  10982. case "(($ac_try" in
  10983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10984. *) ac_try_echo=$ac_try;;
  10985. esac
  10986. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10987. (eval "$ac_link") 2>&5
  10988. ac_status=$?
  10989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10990. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10991. { (case "(($ac_try" in
  10992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10993. *) ac_try_echo=$ac_try;;
  10994. esac
  10995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10996. (eval "$ac_try") 2>&5
  10997. ac_status=$?
  10998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10999. (exit $ac_status); }; }; then
  11000. ac_cv_func_stat_empty_string_bug=no
  11001. else
  11002. echo "$as_me: program exited with status $ac_status" >&5
  11003. echo "$as_me: failed program was:" >&5
  11004. sed 's/^/| /' conftest.$ac_ext >&5
  11005. ( exit $ac_status )
  11006. ac_cv_func_stat_empty_string_bug=yes
  11007. fi
  11008. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11009. fi
  11010. fi
  11011. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  11012. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  11013. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11014. case " $LIBOBJS " in
  11015. *" stat.$ac_objext "* ) ;;
  11016. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11017. ;;
  11018. esac
  11019. cat >>confdefs.h <<_ACEOF
  11020. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11021. _ACEOF
  11022. fi
  11023. for ac_func in vprintf
  11024. do
  11025. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11026. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11027. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11028. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11029. echo $ECHO_N "(cached) $ECHO_C" >&6
  11030. else
  11031. cat >conftest.$ac_ext <<_ACEOF
  11032. /* confdefs.h. */
  11033. _ACEOF
  11034. cat confdefs.h >>conftest.$ac_ext
  11035. cat >>conftest.$ac_ext <<_ACEOF
  11036. /* end confdefs.h. */
  11037. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11038. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11039. #define $ac_func innocuous_$ac_func
  11040. /* System header to define __stub macros and hopefully few prototypes,
  11041. which can conflict with char $ac_func (); below.
  11042. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11043. <limits.h> exists even on freestanding compilers. */
  11044. #ifdef __STDC__
  11045. # include <limits.h>
  11046. #else
  11047. # include <assert.h>
  11048. #endif
  11049. #undef $ac_func
  11050. /* Override any GCC internal prototype to avoid an error.
  11051. Use char because int might match the return type of a GCC
  11052. builtin and then its argument prototype would still apply. */
  11053. #ifdef __cplusplus
  11054. extern "C"
  11055. #endif
  11056. char $ac_func ();
  11057. /* The GNU C library defines this for functions which it implements
  11058. to always fail with ENOSYS. Some functions are actually named
  11059. something starting with __ and the normal name is an alias. */
  11060. #if defined __stub_$ac_func || defined __stub___$ac_func
  11061. choke me
  11062. #endif
  11063. int
  11064. main ()
  11065. {
  11066. return $ac_func ();
  11067. ;
  11068. return 0;
  11069. }
  11070. _ACEOF
  11071. rm -f conftest.$ac_objext conftest$ac_exeext
  11072. if { (ac_try="$ac_link"
  11073. case "(($ac_try" in
  11074. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11075. *) ac_try_echo=$ac_try;;
  11076. esac
  11077. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11078. (eval "$ac_link") 2>conftest.er1
  11079. ac_status=$?
  11080. grep -v '^ *+' conftest.er1 >conftest.err
  11081. rm -f conftest.er1
  11082. cat conftest.err >&5
  11083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11084. (exit $ac_status); } && {
  11085. test -z "$ac_c_werror_flag" ||
  11086. test ! -s conftest.err
  11087. } && test -s conftest$ac_exeext &&
  11088. $as_test_x conftest$ac_exeext; then
  11089. eval "$as_ac_var=yes"
  11090. else
  11091. echo "$as_me: failed program was:" >&5
  11092. sed 's/^/| /' conftest.$ac_ext >&5
  11093. eval "$as_ac_var=no"
  11094. fi
  11095. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11096. conftest$ac_exeext conftest.$ac_ext
  11097. fi
  11098. ac_res=`eval echo '${'$as_ac_var'}'`
  11099. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11100. echo "${ECHO_T}$ac_res" >&6; }
  11101. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11102. cat >>confdefs.h <<_ACEOF
  11103. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11104. _ACEOF
  11105. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  11106. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  11107. if test "${ac_cv_func__doprnt+set}" = set; then
  11108. echo $ECHO_N "(cached) $ECHO_C" >&6
  11109. else
  11110. cat >conftest.$ac_ext <<_ACEOF
  11111. /* confdefs.h. */
  11112. _ACEOF
  11113. cat confdefs.h >>conftest.$ac_ext
  11114. cat >>conftest.$ac_ext <<_ACEOF
  11115. /* end confdefs.h. */
  11116. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  11117. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11118. #define _doprnt innocuous__doprnt
  11119. /* System header to define __stub macros and hopefully few prototypes,
  11120. which can conflict with char _doprnt (); below.
  11121. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11122. <limits.h> exists even on freestanding compilers. */
  11123. #ifdef __STDC__
  11124. # include <limits.h>
  11125. #else
  11126. # include <assert.h>
  11127. #endif
  11128. #undef _doprnt
  11129. /* Override any GCC internal prototype to avoid an error.
  11130. Use char because int might match the return type of a GCC
  11131. builtin and then its argument prototype would still apply. */
  11132. #ifdef __cplusplus
  11133. extern "C"
  11134. #endif
  11135. char _doprnt ();
  11136. /* The GNU C library defines this for functions which it implements
  11137. to always fail with ENOSYS. Some functions are actually named
  11138. something starting with __ and the normal name is an alias. */
  11139. #if defined __stub__doprnt || defined __stub____doprnt
  11140. choke me
  11141. #endif
  11142. int
  11143. main ()
  11144. {
  11145. return _doprnt ();
  11146. ;
  11147. return 0;
  11148. }
  11149. _ACEOF
  11150. rm -f conftest.$ac_objext conftest$ac_exeext
  11151. if { (ac_try="$ac_link"
  11152. case "(($ac_try" in
  11153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11154. *) ac_try_echo=$ac_try;;
  11155. esac
  11156. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11157. (eval "$ac_link") 2>conftest.er1
  11158. ac_status=$?
  11159. grep -v '^ *+' conftest.er1 >conftest.err
  11160. rm -f conftest.er1
  11161. cat conftest.err >&5
  11162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11163. (exit $ac_status); } && {
  11164. test -z "$ac_c_werror_flag" ||
  11165. test ! -s conftest.err
  11166. } && test -s conftest$ac_exeext &&
  11167. $as_test_x conftest$ac_exeext; then
  11168. ac_cv_func__doprnt=yes
  11169. else
  11170. echo "$as_me: failed program was:" >&5
  11171. sed 's/^/| /' conftest.$ac_ext >&5
  11172. ac_cv_func__doprnt=no
  11173. fi
  11174. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11175. conftest$ac_exeext conftest.$ac_ext
  11176. fi
  11177. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  11178. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  11179. if test $ac_cv_func__doprnt = yes; then
  11180. cat >>confdefs.h <<\_ACEOF
  11181. #define HAVE_DOPRNT 1
  11182. _ACEOF
  11183. fi
  11184. fi
  11185. done
  11186. for ac_func in __argz_count __argz_next __argz_stringify daemon ftruncate getcwd getpagesize inet_ntoa memchr mempcpy memset mkdir munmap nl_langinfo random rmdir select setlocale setmode sigaction sleep socket srandom stpcpy strcasecmp strchr strcspn strdup strerror strstr strtol strtoul timegm usleep
  11187. do
  11188. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11189. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11190. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11191. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11192. echo $ECHO_N "(cached) $ECHO_C" >&6
  11193. else
  11194. cat >conftest.$ac_ext <<_ACEOF
  11195. /* confdefs.h. */
  11196. _ACEOF
  11197. cat confdefs.h >>conftest.$ac_ext
  11198. cat >>conftest.$ac_ext <<_ACEOF
  11199. /* end confdefs.h. */
  11200. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11201. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11202. #define $ac_func innocuous_$ac_func
  11203. /* System header to define __stub macros and hopefully few prototypes,
  11204. which can conflict with char $ac_func (); below.
  11205. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11206. <limits.h> exists even on freestanding compilers. */
  11207. #ifdef __STDC__
  11208. # include <limits.h>
  11209. #else
  11210. # include <assert.h>
  11211. #endif
  11212. #undef $ac_func
  11213. /* Override any GCC internal prototype to avoid an error.
  11214. Use char because int might match the return type of a GCC
  11215. builtin and then its argument prototype would still apply. */
  11216. #ifdef __cplusplus
  11217. extern "C"
  11218. #endif
  11219. char $ac_func ();
  11220. /* The GNU C library defines this for functions which it implements
  11221. to always fail with ENOSYS. Some functions are actually named
  11222. something starting with __ and the normal name is an alias. */
  11223. #if defined __stub_$ac_func || defined __stub___$ac_func
  11224. choke me
  11225. #endif
  11226. int
  11227. main ()
  11228. {
  11229. return $ac_func ();
  11230. ;
  11231. return 0;
  11232. }
  11233. _ACEOF
  11234. rm -f conftest.$ac_objext conftest$ac_exeext
  11235. if { (ac_try="$ac_link"
  11236. case "(($ac_try" in
  11237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11238. *) ac_try_echo=$ac_try;;
  11239. esac
  11240. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11241. (eval "$ac_link") 2>conftest.er1
  11242. ac_status=$?
  11243. grep -v '^ *+' conftest.er1 >conftest.err
  11244. rm -f conftest.er1
  11245. cat conftest.err >&5
  11246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11247. (exit $ac_status); } && {
  11248. test -z "$ac_c_werror_flag" ||
  11249. test ! -s conftest.err
  11250. } && test -s conftest$ac_exeext &&
  11251. $as_test_x conftest$ac_exeext; then
  11252. eval "$as_ac_var=yes"
  11253. else
  11254. echo "$as_me: failed program was:" >&5
  11255. sed 's/^/| /' conftest.$ac_ext >&5
  11256. eval "$as_ac_var=no"
  11257. fi
  11258. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11259. conftest$ac_exeext conftest.$ac_ext
  11260. fi
  11261. ac_res=`eval echo '${'$as_ac_var'}'`
  11262. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11263. echo "${ECHO_T}$ac_res" >&6; }
  11264. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11265. cat >>confdefs.h <<_ACEOF
  11266. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11267. _ACEOF
  11268. fi
  11269. done
  11270. for ac_func in basename
  11271. do
  11272. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11273. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11274. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11275. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11276. echo $ECHO_N "(cached) $ECHO_C" >&6
  11277. else
  11278. cat >conftest.$ac_ext <<_ACEOF
  11279. /* confdefs.h. */
  11280. _ACEOF
  11281. cat confdefs.h >>conftest.$ac_ext
  11282. cat >>conftest.$ac_ext <<_ACEOF
  11283. /* end confdefs.h. */
  11284. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11285. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11286. #define $ac_func innocuous_$ac_func
  11287. /* System header to define __stub macros and hopefully few prototypes,
  11288. which can conflict with char $ac_func (); below.
  11289. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11290. <limits.h> exists even on freestanding compilers. */
  11291. #ifdef __STDC__
  11292. # include <limits.h>
  11293. #else
  11294. # include <assert.h>
  11295. #endif
  11296. #undef $ac_func
  11297. /* Override any GCC internal prototype to avoid an error.
  11298. Use char because int might match the return type of a GCC
  11299. builtin and then its argument prototype would still apply. */
  11300. #ifdef __cplusplus
  11301. extern "C"
  11302. #endif
  11303. char $ac_func ();
  11304. /* The GNU C library defines this for functions which it implements
  11305. to always fail with ENOSYS. Some functions are actually named
  11306. something starting with __ and the normal name is an alias. */
  11307. #if defined __stub_$ac_func || defined __stub___$ac_func
  11308. choke me
  11309. #endif
  11310. int
  11311. main ()
  11312. {
  11313. return $ac_func ();
  11314. ;
  11315. return 0;
  11316. }
  11317. _ACEOF
  11318. rm -f conftest.$ac_objext conftest$ac_exeext
  11319. if { (ac_try="$ac_link"
  11320. case "(($ac_try" in
  11321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11322. *) ac_try_echo=$ac_try;;
  11323. esac
  11324. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11325. (eval "$ac_link") 2>conftest.er1
  11326. ac_status=$?
  11327. grep -v '^ *+' conftest.er1 >conftest.err
  11328. rm -f conftest.er1
  11329. cat conftest.err >&5
  11330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11331. (exit $ac_status); } && {
  11332. test -z "$ac_c_werror_flag" ||
  11333. test ! -s conftest.err
  11334. } && test -s conftest$ac_exeext &&
  11335. $as_test_x conftest$ac_exeext; then
  11336. eval "$as_ac_var=yes"
  11337. else
  11338. echo "$as_me: failed program was:" >&5
  11339. sed 's/^/| /' conftest.$ac_ext >&5
  11340. eval "$as_ac_var=no"
  11341. fi
  11342. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11343. conftest$ac_exeext conftest.$ac_ext
  11344. fi
  11345. ac_res=`eval echo '${'$as_ac_var'}'`
  11346. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11347. echo "${ECHO_T}$ac_res" >&6; }
  11348. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11349. cat >>confdefs.h <<_ACEOF
  11350. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11351. _ACEOF
  11352. if true; then
  11353. HAVE_BASENAME_TRUE=
  11354. HAVE_BASENAME_FALSE='#'
  11355. else
  11356. HAVE_BASENAME_TRUE='#'
  11357. HAVE_BASENAME_FALSE=
  11358. fi
  11359. else
  11360. if false; then
  11361. HAVE_BASENAME_TRUE=
  11362. HAVE_BASENAME_FALSE='#'
  11363. else
  11364. HAVE_BASENAME_TRUE='#'
  11365. HAVE_BASENAME_FALSE=
  11366. fi
  11367. fi
  11368. done
  11369. for ac_func in gai_strerror
  11370. do
  11371. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11372. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11373. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11374. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11375. echo $ECHO_N "(cached) $ECHO_C" >&6
  11376. else
  11377. cat >conftest.$ac_ext <<_ACEOF
  11378. /* confdefs.h. */
  11379. _ACEOF
  11380. cat confdefs.h >>conftest.$ac_ext
  11381. cat >>conftest.$ac_ext <<_ACEOF
  11382. /* end confdefs.h. */
  11383. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11384. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11385. #define $ac_func innocuous_$ac_func
  11386. /* System header to define __stub macros and hopefully few prototypes,
  11387. which can conflict with char $ac_func (); below.
  11388. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11389. <limits.h> exists even on freestanding compilers. */
  11390. #ifdef __STDC__
  11391. # include <limits.h>
  11392. #else
  11393. # include <assert.h>
  11394. #endif
  11395. #undef $ac_func
  11396. /* Override any GCC internal prototype to avoid an error.
  11397. Use char because int might match the return type of a GCC
  11398. builtin and then its argument prototype would still apply. */
  11399. #ifdef __cplusplus
  11400. extern "C"
  11401. #endif
  11402. char $ac_func ();
  11403. /* The GNU C library defines this for functions which it implements
  11404. to always fail with ENOSYS. Some functions are actually named
  11405. something starting with __ and the normal name is an alias. */
  11406. #if defined __stub_$ac_func || defined __stub___$ac_func
  11407. choke me
  11408. #endif
  11409. int
  11410. main ()
  11411. {
  11412. return $ac_func ();
  11413. ;
  11414. return 0;
  11415. }
  11416. _ACEOF
  11417. rm -f conftest.$ac_objext conftest$ac_exeext
  11418. if { (ac_try="$ac_link"
  11419. case "(($ac_try" in
  11420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11421. *) ac_try_echo=$ac_try;;
  11422. esac
  11423. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11424. (eval "$ac_link") 2>conftest.er1
  11425. ac_status=$?
  11426. grep -v '^ *+' conftest.er1 >conftest.err
  11427. rm -f conftest.er1
  11428. cat conftest.err >&5
  11429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11430. (exit $ac_status); } && {
  11431. test -z "$ac_c_werror_flag" ||
  11432. test ! -s conftest.err
  11433. } && test -s conftest$ac_exeext &&
  11434. $as_test_x conftest$ac_exeext; then
  11435. eval "$as_ac_var=yes"
  11436. else
  11437. echo "$as_me: failed program was:" >&5
  11438. sed 's/^/| /' conftest.$ac_ext >&5
  11439. eval "$as_ac_var=no"
  11440. fi
  11441. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11442. conftest$ac_exeext conftest.$ac_ext
  11443. fi
  11444. ac_res=`eval echo '${'$as_ac_var'}'`
  11445. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11446. echo "${ECHO_T}$ac_res" >&6; }
  11447. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11448. cat >>confdefs.h <<_ACEOF
  11449. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11450. _ACEOF
  11451. if true; then
  11452. HAVE_GAI_STRERROR_TRUE=
  11453. HAVE_GAI_STRERROR_FALSE='#'
  11454. else
  11455. HAVE_GAI_STRERROR_TRUE='#'
  11456. HAVE_GAI_STRERROR_FALSE=
  11457. fi
  11458. else
  11459. if false; then
  11460. HAVE_GAI_STRERROR_TRUE=
  11461. HAVE_GAI_STRERROR_FALSE='#'
  11462. else
  11463. HAVE_GAI_STRERROR_TRUE='#'
  11464. HAVE_GAI_STRERROR_FALSE=
  11465. fi
  11466. fi
  11467. done
  11468. for ac_func in getaddrinfo
  11469. do
  11470. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11471. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11472. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11473. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11474. echo $ECHO_N "(cached) $ECHO_C" >&6
  11475. else
  11476. cat >conftest.$ac_ext <<_ACEOF
  11477. /* confdefs.h. */
  11478. _ACEOF
  11479. cat confdefs.h >>conftest.$ac_ext
  11480. cat >>conftest.$ac_ext <<_ACEOF
  11481. /* end confdefs.h. */
  11482. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11483. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11484. #define $ac_func innocuous_$ac_func
  11485. /* System header to define __stub macros and hopefully few prototypes,
  11486. which can conflict with char $ac_func (); below.
  11487. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11488. <limits.h> exists even on freestanding compilers. */
  11489. #ifdef __STDC__
  11490. # include <limits.h>
  11491. #else
  11492. # include <assert.h>
  11493. #endif
  11494. #undef $ac_func
  11495. /* Override any GCC internal prototype to avoid an error.
  11496. Use char because int might match the return type of a GCC
  11497. builtin and then its argument prototype would still apply. */
  11498. #ifdef __cplusplus
  11499. extern "C"
  11500. #endif
  11501. char $ac_func ();
  11502. /* The GNU C library defines this for functions which it implements
  11503. to always fail with ENOSYS. Some functions are actually named
  11504. something starting with __ and the normal name is an alias. */
  11505. #if defined __stub_$ac_func || defined __stub___$ac_func
  11506. choke me
  11507. #endif
  11508. int
  11509. main ()
  11510. {
  11511. return $ac_func ();
  11512. ;
  11513. return 0;
  11514. }
  11515. _ACEOF
  11516. rm -f conftest.$ac_objext conftest$ac_exeext
  11517. if { (ac_try="$ac_link"
  11518. case "(($ac_try" in
  11519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11520. *) ac_try_echo=$ac_try;;
  11521. esac
  11522. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11523. (eval "$ac_link") 2>conftest.er1
  11524. ac_status=$?
  11525. grep -v '^ *+' conftest.er1 >conftest.err
  11526. rm -f conftest.er1
  11527. cat conftest.err >&5
  11528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11529. (exit $ac_status); } && {
  11530. test -z "$ac_c_werror_flag" ||
  11531. test ! -s conftest.err
  11532. } && test -s conftest$ac_exeext &&
  11533. $as_test_x conftest$ac_exeext; then
  11534. eval "$as_ac_var=yes"
  11535. else
  11536. echo "$as_me: failed program was:" >&5
  11537. sed 's/^/| /' conftest.$ac_ext >&5
  11538. eval "$as_ac_var=no"
  11539. fi
  11540. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11541. conftest$ac_exeext conftest.$ac_ext
  11542. fi
  11543. ac_res=`eval echo '${'$as_ac_var'}'`
  11544. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11545. echo "${ECHO_T}$ac_res" >&6; }
  11546. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11547. cat >>confdefs.h <<_ACEOF
  11548. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11549. _ACEOF
  11550. if true; then
  11551. HAVE_GETADDRINFO_TRUE=
  11552. HAVE_GETADDRINFO_FALSE='#'
  11553. else
  11554. HAVE_GETADDRINFO_TRUE='#'
  11555. HAVE_GETADDRINFO_FALSE=
  11556. fi
  11557. else
  11558. if false; then
  11559. HAVE_GETADDRINFO_TRUE=
  11560. HAVE_GETADDRINFO_FALSE='#'
  11561. else
  11562. HAVE_GETADDRINFO_TRUE='#'
  11563. HAVE_GETADDRINFO_FALSE=
  11564. fi
  11565. fi
  11566. done
  11567. for ac_func in gettimeofday
  11568. do
  11569. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11570. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11571. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11572. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11573. echo $ECHO_N "(cached) $ECHO_C" >&6
  11574. else
  11575. cat >conftest.$ac_ext <<_ACEOF
  11576. /* confdefs.h. */
  11577. _ACEOF
  11578. cat confdefs.h >>conftest.$ac_ext
  11579. cat >>conftest.$ac_ext <<_ACEOF
  11580. /* end confdefs.h. */
  11581. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11582. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11583. #define $ac_func innocuous_$ac_func
  11584. /* System header to define __stub macros and hopefully few prototypes,
  11585. which can conflict with char $ac_func (); below.
  11586. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11587. <limits.h> exists even on freestanding compilers. */
  11588. #ifdef __STDC__
  11589. # include <limits.h>
  11590. #else
  11591. # include <assert.h>
  11592. #endif
  11593. #undef $ac_func
  11594. /* Override any GCC internal prototype to avoid an error.
  11595. Use char because int might match the return type of a GCC
  11596. builtin and then its argument prototype would still apply. */
  11597. #ifdef __cplusplus
  11598. extern "C"
  11599. #endif
  11600. char $ac_func ();
  11601. /* The GNU C library defines this for functions which it implements
  11602. to always fail with ENOSYS. Some functions are actually named
  11603. something starting with __ and the normal name is an alias. */
  11604. #if defined __stub_$ac_func || defined __stub___$ac_func
  11605. choke me
  11606. #endif
  11607. int
  11608. main ()
  11609. {
  11610. return $ac_func ();
  11611. ;
  11612. return 0;
  11613. }
  11614. _ACEOF
  11615. rm -f conftest.$ac_objext conftest$ac_exeext
  11616. if { (ac_try="$ac_link"
  11617. case "(($ac_try" in
  11618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11619. *) ac_try_echo=$ac_try;;
  11620. esac
  11621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11622. (eval "$ac_link") 2>conftest.er1
  11623. ac_status=$?
  11624. grep -v '^ *+' conftest.er1 >conftest.err
  11625. rm -f conftest.er1
  11626. cat conftest.err >&5
  11627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11628. (exit $ac_status); } && {
  11629. test -z "$ac_c_werror_flag" ||
  11630. test ! -s conftest.err
  11631. } && test -s conftest$ac_exeext &&
  11632. $as_test_x conftest$ac_exeext; then
  11633. eval "$as_ac_var=yes"
  11634. else
  11635. echo "$as_me: failed program was:" >&5
  11636. sed 's/^/| /' conftest.$ac_ext >&5
  11637. eval "$as_ac_var=no"
  11638. fi
  11639. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11640. conftest$ac_exeext conftest.$ac_ext
  11641. fi
  11642. ac_res=`eval echo '${'$as_ac_var'}'`
  11643. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11644. echo "${ECHO_T}$ac_res" >&6; }
  11645. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11646. cat >>confdefs.h <<_ACEOF
  11647. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11648. _ACEOF
  11649. if true; then
  11650. HAVE_GETTIMEOFDAY_TRUE=
  11651. HAVE_GETTIMEOFDAY_FALSE='#'
  11652. else
  11653. HAVE_GETTIMEOFDAY_TRUE='#'
  11654. HAVE_GETTIMEOFDAY_FALSE=
  11655. fi
  11656. else
  11657. if false; then
  11658. HAVE_GETTIMEOFDAY_TRUE=
  11659. HAVE_GETTIMEOFDAY_FALSE='#'
  11660. else
  11661. HAVE_GETTIMEOFDAY_TRUE='#'
  11662. HAVE_GETTIMEOFDAY_FALSE=
  11663. fi
  11664. fi
  11665. done
  11666. for ac_func in inet_aton
  11667. do
  11668. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11669. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11670. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11671. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11672. echo $ECHO_N "(cached) $ECHO_C" >&6
  11673. else
  11674. cat >conftest.$ac_ext <<_ACEOF
  11675. /* confdefs.h. */
  11676. _ACEOF
  11677. cat confdefs.h >>conftest.$ac_ext
  11678. cat >>conftest.$ac_ext <<_ACEOF
  11679. /* end confdefs.h. */
  11680. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11681. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11682. #define $ac_func innocuous_$ac_func
  11683. /* System header to define __stub macros and hopefully few prototypes,
  11684. which can conflict with char $ac_func (); below.
  11685. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11686. <limits.h> exists even on freestanding compilers. */
  11687. #ifdef __STDC__
  11688. # include <limits.h>
  11689. #else
  11690. # include <assert.h>
  11691. #endif
  11692. #undef $ac_func
  11693. /* Override any GCC internal prototype to avoid an error.
  11694. Use char because int might match the return type of a GCC
  11695. builtin and then its argument prototype would still apply. */
  11696. #ifdef __cplusplus
  11697. extern "C"
  11698. #endif
  11699. char $ac_func ();
  11700. /* The GNU C library defines this for functions which it implements
  11701. to always fail with ENOSYS. Some functions are actually named
  11702. something starting with __ and the normal name is an alias. */
  11703. #if defined __stub_$ac_func || defined __stub___$ac_func
  11704. choke me
  11705. #endif
  11706. int
  11707. main ()
  11708. {
  11709. return $ac_func ();
  11710. ;
  11711. return 0;
  11712. }
  11713. _ACEOF
  11714. rm -f conftest.$ac_objext conftest$ac_exeext
  11715. if { (ac_try="$ac_link"
  11716. case "(($ac_try" in
  11717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11718. *) ac_try_echo=$ac_try;;
  11719. esac
  11720. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11721. (eval "$ac_link") 2>conftest.er1
  11722. ac_status=$?
  11723. grep -v '^ *+' conftest.er1 >conftest.err
  11724. rm -f conftest.er1
  11725. cat conftest.err >&5
  11726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11727. (exit $ac_status); } && {
  11728. test -z "$ac_c_werror_flag" ||
  11729. test ! -s conftest.err
  11730. } && test -s conftest$ac_exeext &&
  11731. $as_test_x conftest$ac_exeext; then
  11732. eval "$as_ac_var=yes"
  11733. else
  11734. echo "$as_me: failed program was:" >&5
  11735. sed 's/^/| /' conftest.$ac_ext >&5
  11736. eval "$as_ac_var=no"
  11737. fi
  11738. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11739. conftest$ac_exeext conftest.$ac_ext
  11740. fi
  11741. ac_res=`eval echo '${'$as_ac_var'}'`
  11742. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11743. echo "${ECHO_T}$ac_res" >&6; }
  11744. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11745. cat >>confdefs.h <<_ACEOF
  11746. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11747. _ACEOF
  11748. if true; then
  11749. HAVE_INET_ATON_TRUE=
  11750. HAVE_INET_ATON_FALSE='#'
  11751. else
  11752. HAVE_INET_ATON_TRUE='#'
  11753. HAVE_INET_ATON_FALSE=
  11754. fi
  11755. else
  11756. if false; then
  11757. HAVE_INET_ATON_TRUE=
  11758. HAVE_INET_ATON_FALSE='#'
  11759. else
  11760. HAVE_INET_ATON_TRUE='#'
  11761. HAVE_INET_ATON_FALSE=
  11762. fi
  11763. fi
  11764. done
  11765. for ac_func in localtime_r
  11766. do
  11767. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11768. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11769. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11770. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11771. echo $ECHO_N "(cached) $ECHO_C" >&6
  11772. else
  11773. cat >conftest.$ac_ext <<_ACEOF
  11774. /* confdefs.h. */
  11775. _ACEOF
  11776. cat confdefs.h >>conftest.$ac_ext
  11777. cat >>conftest.$ac_ext <<_ACEOF
  11778. /* end confdefs.h. */
  11779. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11780. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11781. #define $ac_func innocuous_$ac_func
  11782. /* System header to define __stub macros and hopefully few prototypes,
  11783. which can conflict with char $ac_func (); below.
  11784. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11785. <limits.h> exists even on freestanding compilers. */
  11786. #ifdef __STDC__
  11787. # include <limits.h>
  11788. #else
  11789. # include <assert.h>
  11790. #endif
  11791. #undef $ac_func
  11792. /* Override any GCC internal prototype to avoid an error.
  11793. Use char because int might match the return type of a GCC
  11794. builtin and then its argument prototype would still apply. */
  11795. #ifdef __cplusplus
  11796. extern "C"
  11797. #endif
  11798. char $ac_func ();
  11799. /* The GNU C library defines this for functions which it implements
  11800. to always fail with ENOSYS. Some functions are actually named
  11801. something starting with __ and the normal name is an alias. */
  11802. #if defined __stub_$ac_func || defined __stub___$ac_func
  11803. choke me
  11804. #endif
  11805. int
  11806. main ()
  11807. {
  11808. return $ac_func ();
  11809. ;
  11810. return 0;
  11811. }
  11812. _ACEOF
  11813. rm -f conftest.$ac_objext conftest$ac_exeext
  11814. if { (ac_try="$ac_link"
  11815. case "(($ac_try" in
  11816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11817. *) ac_try_echo=$ac_try;;
  11818. esac
  11819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11820. (eval "$ac_link") 2>conftest.er1
  11821. ac_status=$?
  11822. grep -v '^ *+' conftest.er1 >conftest.err
  11823. rm -f conftest.er1
  11824. cat conftest.err >&5
  11825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11826. (exit $ac_status); } && {
  11827. test -z "$ac_c_werror_flag" ||
  11828. test ! -s conftest.err
  11829. } && test -s conftest$ac_exeext &&
  11830. $as_test_x conftest$ac_exeext; then
  11831. eval "$as_ac_var=yes"
  11832. else
  11833. echo "$as_me: failed program was:" >&5
  11834. sed 's/^/| /' conftest.$ac_ext >&5
  11835. eval "$as_ac_var=no"
  11836. fi
  11837. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11838. conftest$ac_exeext conftest.$ac_ext
  11839. fi
  11840. ac_res=`eval echo '${'$as_ac_var'}'`
  11841. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11842. echo "${ECHO_T}$ac_res" >&6; }
  11843. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11844. cat >>confdefs.h <<_ACEOF
  11845. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11846. _ACEOF
  11847. if true; then
  11848. HAVE_LOCALTIME_R_TRUE=
  11849. HAVE_LOCALTIME_R_FALSE='#'
  11850. else
  11851. HAVE_LOCALTIME_R_TRUE='#'
  11852. HAVE_LOCALTIME_R_FALSE=
  11853. fi
  11854. else
  11855. if false; then
  11856. HAVE_LOCALTIME_R_TRUE=
  11857. HAVE_LOCALTIME_R_FALSE='#'
  11858. else
  11859. HAVE_LOCALTIME_R_TRUE='#'
  11860. HAVE_LOCALTIME_R_FALSE=
  11861. fi
  11862. fi
  11863. done
  11864. for ac_func in strptime
  11865. do
  11866. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11867. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11868. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11869. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11870. echo $ECHO_N "(cached) $ECHO_C" >&6
  11871. else
  11872. cat >conftest.$ac_ext <<_ACEOF
  11873. /* confdefs.h. */
  11874. _ACEOF
  11875. cat confdefs.h >>conftest.$ac_ext
  11876. cat >>conftest.$ac_ext <<_ACEOF
  11877. /* end confdefs.h. */
  11878. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11879. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11880. #define $ac_func innocuous_$ac_func
  11881. /* System header to define __stub macros and hopefully few prototypes,
  11882. which can conflict with char $ac_func (); below.
  11883. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11884. <limits.h> exists even on freestanding compilers. */
  11885. #ifdef __STDC__
  11886. # include <limits.h>
  11887. #else
  11888. # include <assert.h>
  11889. #endif
  11890. #undef $ac_func
  11891. /* Override any GCC internal prototype to avoid an error.
  11892. Use char because int might match the return type of a GCC
  11893. builtin and then its argument prototype would still apply. */
  11894. #ifdef __cplusplus
  11895. extern "C"
  11896. #endif
  11897. char $ac_func ();
  11898. /* The GNU C library defines this for functions which it implements
  11899. to always fail with ENOSYS. Some functions are actually named
  11900. something starting with __ and the normal name is an alias. */
  11901. #if defined __stub_$ac_func || defined __stub___$ac_func
  11902. choke me
  11903. #endif
  11904. int
  11905. main ()
  11906. {
  11907. return $ac_func ();
  11908. ;
  11909. return 0;
  11910. }
  11911. _ACEOF
  11912. rm -f conftest.$ac_objext conftest$ac_exeext
  11913. if { (ac_try="$ac_link"
  11914. case "(($ac_try" in
  11915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11916. *) ac_try_echo=$ac_try;;
  11917. esac
  11918. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11919. (eval "$ac_link") 2>conftest.er1
  11920. ac_status=$?
  11921. grep -v '^ *+' conftest.er1 >conftest.err
  11922. rm -f conftest.er1
  11923. cat conftest.err >&5
  11924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11925. (exit $ac_status); } && {
  11926. test -z "$ac_c_werror_flag" ||
  11927. test ! -s conftest.err
  11928. } && test -s conftest$ac_exeext &&
  11929. $as_test_x conftest$ac_exeext; then
  11930. eval "$as_ac_var=yes"
  11931. else
  11932. echo "$as_me: failed program was:" >&5
  11933. sed 's/^/| /' conftest.$ac_ext >&5
  11934. eval "$as_ac_var=no"
  11935. fi
  11936. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11937. conftest$ac_exeext conftest.$ac_ext
  11938. fi
  11939. ac_res=`eval echo '${'$as_ac_var'}'`
  11940. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11941. echo "${ECHO_T}$ac_res" >&6; }
  11942. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11943. cat >>confdefs.h <<_ACEOF
  11944. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11945. _ACEOF
  11946. if true; then
  11947. HAVE_STRPTIME_TRUE=
  11948. HAVE_STRPTIME_FALSE='#'
  11949. else
  11950. HAVE_STRPTIME_TRUE='#'
  11951. HAVE_STRPTIME_FALSE=
  11952. fi
  11953. else
  11954. if false; then
  11955. HAVE_STRPTIME_TRUE=
  11956. HAVE_STRPTIME_FALSE='#'
  11957. else
  11958. HAVE_STRPTIME_TRUE='#'
  11959. HAVE_STRPTIME_FALSE=
  11960. fi
  11961. fi
  11962. done
  11963. case "$target" in
  11964. *mingw*)
  11965. if true; then
  11966. HAVE_GETADDRINFO_TRUE=
  11967. HAVE_GETADDRINFO_FALSE='#'
  11968. else
  11969. HAVE_GETADDRINFO_TRUE='#'
  11970. HAVE_GETADDRINFO_FALSE=
  11971. fi
  11972. ;;
  11973. esac
  11974. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile doc/Makefile"
  11975. cat >confcache <<\_ACEOF
  11976. # This file is a shell script that caches the results of configure
  11977. # tests run on this system so they can be shared between configure
  11978. # scripts and configure runs, see configure's option --config-cache.
  11979. # It is not useful on other systems. If it contains results you don't
  11980. # want to keep, you may remove or edit it.
  11981. #
  11982. # config.status only pays attention to the cache file if you give it
  11983. # the --recheck option to rerun configure.
  11984. #
  11985. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11986. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11987. # following values.
  11988. _ACEOF
  11989. # The following way of writing the cache mishandles newlines in values,
  11990. # but we know of no workaround that is simple, portable, and efficient.
  11991. # So, we kill variables containing newlines.
  11992. # Ultrix sh set writes to stderr and can't be redirected directly,
  11993. # and sets the high bit in the cache file unless we assign to the vars.
  11994. (
  11995. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11996. eval ac_val=\$$ac_var
  11997. case $ac_val in #(
  11998. *${as_nl}*)
  11999. case $ac_var in #(
  12000. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  12001. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  12002. esac
  12003. case $ac_var in #(
  12004. _ | IFS | as_nl) ;; #(
  12005. *) $as_unset $ac_var ;;
  12006. esac ;;
  12007. esac
  12008. done
  12009. (set) 2>&1 |
  12010. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12011. *${as_nl}ac_space=\ *)
  12012. # `set' does not quote correctly, so add quotes (double-quote
  12013. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12014. sed -n \
  12015. "s/'/'\\\\''/g;
  12016. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12017. ;; #(
  12018. *)
  12019. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12020. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12021. ;;
  12022. esac |
  12023. sort
  12024. ) |
  12025. sed '
  12026. /^ac_cv_env_/b end
  12027. t clear
  12028. :clear
  12029. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12030. t end
  12031. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12032. :end' >>confcache
  12033. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12034. if test -w "$cache_file"; then
  12035. test "x$cache_file" != "x/dev/null" &&
  12036. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12037. echo "$as_me: updating cache $cache_file" >&6;}
  12038. cat confcache >$cache_file
  12039. else
  12040. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12041. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12042. fi
  12043. fi
  12044. rm -f confcache
  12045. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12046. # Let make expand exec_prefix.
  12047. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12048. DEFS=-DHAVE_CONFIG_H
  12049. ac_libobjs=
  12050. ac_ltlibobjs=
  12051. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12052. # 1. Remove the extension, and $U if already installed.
  12053. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12054. ac_i=`echo "$ac_i" | sed "$ac_script"`
  12055. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12056. # will be set to the directory where LIBOBJS objects are built.
  12057. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12058. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12059. done
  12060. LIBOBJS=$ac_libobjs
  12061. LTLIBOBJS=$ac_ltlibobjs
  12062. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12063. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  12064. Usually this means the macro was only invoked conditionally." >&5
  12065. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  12066. Usually this means the macro was only invoked conditionally." >&2;}
  12067. { (exit 1); exit 1; }; }
  12068. fi
  12069. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12070. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  12071. Usually this means the macro was only invoked conditionally." >&5
  12072. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  12073. Usually this means the macro was only invoked conditionally." >&2;}
  12074. { (exit 1); exit 1; }; }
  12075. fi
  12076. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12077. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  12078. Usually this means the macro was only invoked conditionally." >&5
  12079. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  12080. Usually this means the macro was only invoked conditionally." >&2;}
  12081. { (exit 1); exit 1; }; }
  12082. fi
  12083. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  12084. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12085. Usually this means the macro was only invoked conditionally." >&5
  12086. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12087. Usually this means the macro was only invoked conditionally." >&2;}
  12088. { (exit 1); exit 1; }; }
  12089. fi
  12090. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  12091. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12092. Usually this means the macro was only invoked conditionally." >&5
  12093. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  12094. Usually this means the macro was only invoked conditionally." >&2;}
  12095. { (exit 1); exit 1; }; }
  12096. fi
  12097. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12098. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12099. Usually this means the macro was only invoked conditionally." >&5
  12100. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12101. Usually this means the macro was only invoked conditionally." >&2;}
  12102. { (exit 1); exit 1; }; }
  12103. fi
  12104. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12105. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12106. Usually this means the macro was only invoked conditionally." >&5
  12107. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12108. Usually this means the macro was only invoked conditionally." >&2;}
  12109. { (exit 1); exit 1; }; }
  12110. fi
  12111. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12112. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  12113. Usually this means the macro was only invoked conditionally." >&5
  12114. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  12115. Usually this means the macro was only invoked conditionally." >&2;}
  12116. { (exit 1); exit 1; }; }
  12117. fi
  12118. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12119. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  12120. Usually this means the macro was only invoked conditionally." >&5
  12121. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  12122. Usually this means the macro was only invoked conditionally." >&2;}
  12123. { (exit 1); exit 1; }; }
  12124. fi
  12125. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12126. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12127. Usually this means the macro was only invoked conditionally." >&5
  12128. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12129. Usually this means the macro was only invoked conditionally." >&2;}
  12130. { (exit 1); exit 1; }; }
  12131. fi
  12132. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12133. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12134. Usually this means the macro was only invoked conditionally." >&5
  12135. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12136. Usually this means the macro was only invoked conditionally." >&2;}
  12137. { (exit 1); exit 1; }; }
  12138. fi
  12139. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  12140. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  12141. Usually this means the macro was only invoked conditionally." >&5
  12142. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  12143. Usually this means the macro was only invoked conditionally." >&2;}
  12144. { (exit 1); exit 1; }; }
  12145. fi
  12146. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  12147. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  12148. Usually this means the macro was only invoked conditionally." >&5
  12149. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  12150. Usually this means the macro was only invoked conditionally." >&2;}
  12151. { (exit 1); exit 1; }; }
  12152. fi
  12153. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12154. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12155. Usually this means the macro was only invoked conditionally." >&5
  12156. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12157. Usually this means the macro was only invoked conditionally." >&2;}
  12158. { (exit 1); exit 1; }; }
  12159. fi
  12160. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  12161. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12162. Usually this means the macro was only invoked conditionally." >&5
  12163. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  12164. Usually this means the macro was only invoked conditionally." >&2;}
  12165. { (exit 1); exit 1; }; }
  12166. fi
  12167. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12168. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12169. Usually this means the macro was only invoked conditionally." >&5
  12170. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12171. Usually this means the macro was only invoked conditionally." >&2;}
  12172. { (exit 1); exit 1; }; }
  12173. fi
  12174. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12175. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12176. Usually this means the macro was only invoked conditionally." >&5
  12177. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12178. Usually this means the macro was only invoked conditionally." >&2;}
  12179. { (exit 1); exit 1; }; }
  12180. fi
  12181. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12182. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12183. Usually this means the macro was only invoked conditionally." >&5
  12184. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12185. Usually this means the macro was only invoked conditionally." >&2;}
  12186. { (exit 1); exit 1; }; }
  12187. fi
  12188. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  12189. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12190. Usually this means the macro was only invoked conditionally." >&5
  12191. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  12192. Usually this means the macro was only invoked conditionally." >&2;}
  12193. { (exit 1); exit 1; }; }
  12194. fi
  12195. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  12196. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  12197. Usually this means the macro was only invoked conditionally." >&5
  12198. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  12199. Usually this means the macro was only invoked conditionally." >&2;}
  12200. { (exit 1); exit 1; }; }
  12201. fi
  12202. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  12203. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  12204. Usually this means the macro was only invoked conditionally." >&5
  12205. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  12206. Usually this means the macro was only invoked conditionally." >&2;}
  12207. { (exit 1); exit 1; }; }
  12208. fi
  12209. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  12210. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12211. Usually this means the macro was only invoked conditionally." >&5
  12212. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12213. Usually this means the macro was only invoked conditionally." >&2;}
  12214. { (exit 1); exit 1; }; }
  12215. fi
  12216. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  12217. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12218. Usually this means the macro was only invoked conditionally." >&5
  12219. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  12220. Usually this means the macro was only invoked conditionally." >&2;}
  12221. { (exit 1); exit 1; }; }
  12222. fi
  12223. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  12224. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  12225. Usually this means the macro was only invoked conditionally." >&5
  12226. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  12227. Usually this means the macro was only invoked conditionally." >&2;}
  12228. { (exit 1); exit 1; }; }
  12229. fi
  12230. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  12231. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  12232. Usually this means the macro was only invoked conditionally." >&5
  12233. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  12234. Usually this means the macro was only invoked conditionally." >&2;}
  12235. { (exit 1); exit 1; }; }
  12236. fi
  12237. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  12238. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12239. Usually this means the macro was only invoked conditionally." >&5
  12240. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  12241. Usually this means the macro was only invoked conditionally." >&2;}
  12242. { (exit 1); exit 1; }; }
  12243. fi
  12244. : ${CONFIG_STATUS=./config.status}
  12245. ac_clean_files_save=$ac_clean_files
  12246. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12247. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12248. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12249. cat >$CONFIG_STATUS <<_ACEOF
  12250. #! $SHELL
  12251. # Generated by $as_me.
  12252. # Run this file to recreate the current configuration.
  12253. # Compiler output produced by configure, useful for debugging
  12254. # configure, is in config.log if it exists.
  12255. debug=false
  12256. ac_cs_recheck=false
  12257. ac_cs_silent=false
  12258. SHELL=\${CONFIG_SHELL-$SHELL}
  12259. _ACEOF
  12260. cat >>$CONFIG_STATUS <<\_ACEOF
  12261. ## --------------------- ##
  12262. ## M4sh Initialization. ##
  12263. ## --------------------- ##
  12264. # Be more Bourne compatible
  12265. DUALCASE=1; export DUALCASE # for MKS sh
  12266. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12267. emulate sh
  12268. NULLCMD=:
  12269. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12270. # is contrary to our usage. Disable this feature.
  12271. alias -g '${1+"$@"}'='"$@"'
  12272. setopt NO_GLOB_SUBST
  12273. else
  12274. case `(set -o) 2>/dev/null` in
  12275. *posix*) set -o posix ;;
  12276. esac
  12277. fi
  12278. # PATH needs CR
  12279. # Avoid depending upon Character Ranges.
  12280. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12281. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12282. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12283. as_cr_digits='0123456789'
  12284. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12285. # The user is always right.
  12286. if test "${PATH_SEPARATOR+set}" != set; then
  12287. echo "#! /bin/sh" >conf$$.sh
  12288. echo "exit 0" >>conf$$.sh
  12289. chmod +x conf$$.sh
  12290. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12291. PATH_SEPARATOR=';'
  12292. else
  12293. PATH_SEPARATOR=:
  12294. fi
  12295. rm -f conf$$.sh
  12296. fi
  12297. # Support unset when possible.
  12298. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12299. as_unset=unset
  12300. else
  12301. as_unset=false
  12302. fi
  12303. # IFS
  12304. # We need space, tab and new line, in precisely that order. Quoting is
  12305. # there to prevent editors from complaining about space-tab.
  12306. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12307. # splitting by setting IFS to empty value.)
  12308. as_nl='
  12309. '
  12310. IFS=" "" $as_nl"
  12311. # Find who we are. Look in the path if we contain no directory separator.
  12312. case $0 in
  12313. *[\\/]* ) as_myself=$0 ;;
  12314. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12315. for as_dir in $PATH
  12316. do
  12317. IFS=$as_save_IFS
  12318. test -z "$as_dir" && as_dir=.
  12319. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12320. done
  12321. IFS=$as_save_IFS
  12322. ;;
  12323. esac
  12324. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12325. # in which case we are not to be found in the path.
  12326. if test "x$as_myself" = x; then
  12327. as_myself=$0
  12328. fi
  12329. if test ! -f "$as_myself"; then
  12330. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12331. { (exit 1); exit 1; }
  12332. fi
  12333. # Work around bugs in pre-3.0 UWIN ksh.
  12334. for as_var in ENV MAIL MAILPATH
  12335. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12336. done
  12337. PS1='$ '
  12338. PS2='> '
  12339. PS4='+ '
  12340. # NLS nuisances.
  12341. for as_var in \
  12342. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12343. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12344. LC_TELEPHONE LC_TIME
  12345. do
  12346. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12347. eval $as_var=C; export $as_var
  12348. else
  12349. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12350. fi
  12351. done
  12352. # Required to use basename.
  12353. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12354. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12355. as_expr=expr
  12356. else
  12357. as_expr=false
  12358. fi
  12359. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12360. as_basename=basename
  12361. else
  12362. as_basename=false
  12363. fi
  12364. # Name of the executable.
  12365. as_me=`$as_basename -- "$0" ||
  12366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12367. X"$0" : 'X\(//\)$' \| \
  12368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12369. echo X/"$0" |
  12370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12371. s//\1/
  12372. q
  12373. }
  12374. /^X\/\(\/\/\)$/{
  12375. s//\1/
  12376. q
  12377. }
  12378. /^X\/\(\/\).*/{
  12379. s//\1/
  12380. q
  12381. }
  12382. s/.*/./; q'`
  12383. # CDPATH.
  12384. $as_unset CDPATH
  12385. as_lineno_1=$LINENO
  12386. as_lineno_2=$LINENO
  12387. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12388. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12389. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12390. # uniformly replaced by the line number. The first 'sed' inserts a
  12391. # line-number line after each line using $LINENO; the second 'sed'
  12392. # does the real work. The second script uses 'N' to pair each
  12393. # line-number line with the line containing $LINENO, and appends
  12394. # trailing '-' during substitution so that $LINENO is not a special
  12395. # case at line end.
  12396. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12397. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12398. # E. McMahon (1931-1989) for sed's syntax. :-)
  12399. sed -n '
  12400. p
  12401. /[$]LINENO/=
  12402. ' <$as_myself |
  12403. sed '
  12404. s/[$]LINENO.*/&-/
  12405. t lineno
  12406. b
  12407. :lineno
  12408. N
  12409. :loop
  12410. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12411. t loop
  12412. s/-\n.*//
  12413. ' >$as_me.lineno &&
  12414. chmod +x "$as_me.lineno" ||
  12415. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12416. { (exit 1); exit 1; }; }
  12417. # Don't try to exec as it changes $[0], causing all sort of problems
  12418. # (the dirname of $[0] is not the place where we might find the
  12419. # original and so on. Autoconf is especially sensitive to this).
  12420. . "./$as_me.lineno"
  12421. # Exit status is that of the last command.
  12422. exit
  12423. }
  12424. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12425. as_dirname=dirname
  12426. else
  12427. as_dirname=false
  12428. fi
  12429. ECHO_C= ECHO_N= ECHO_T=
  12430. case `echo -n x` in
  12431. -n*)
  12432. case `echo 'x\c'` in
  12433. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12434. *) ECHO_C='\c';;
  12435. esac;;
  12436. *)
  12437. ECHO_N='-n';;
  12438. esac
  12439. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12440. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12441. as_expr=expr
  12442. else
  12443. as_expr=false
  12444. fi
  12445. rm -f conf$$ conf$$.exe conf$$.file
  12446. if test -d conf$$.dir; then
  12447. rm -f conf$$.dir/conf$$.file
  12448. else
  12449. rm -f conf$$.dir
  12450. mkdir conf$$.dir
  12451. fi
  12452. echo >conf$$.file
  12453. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12454. as_ln_s='ln -s'
  12455. # ... but there are two gotchas:
  12456. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12457. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12458. # In both cases, we have to default to `cp -p'.
  12459. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12460. as_ln_s='cp -p'
  12461. elif ln conf$$.file conf$$ 2>/dev/null; then
  12462. as_ln_s=ln
  12463. else
  12464. as_ln_s='cp -p'
  12465. fi
  12466. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12467. rmdir conf$$.dir 2>/dev/null
  12468. if mkdir -p . 2>/dev/null; then
  12469. as_mkdir_p=:
  12470. else
  12471. test -d ./-p && rmdir ./-p
  12472. as_mkdir_p=false
  12473. fi
  12474. if test -x / >/dev/null 2>&1; then
  12475. as_test_x='test -x'
  12476. else
  12477. if ls -dL / >/dev/null 2>&1; then
  12478. as_ls_L_option=L
  12479. else
  12480. as_ls_L_option=
  12481. fi
  12482. as_test_x='
  12483. eval sh -c '\''
  12484. if test -d "$1"; then
  12485. test -d "$1/.";
  12486. else
  12487. case $1 in
  12488. -*)set "./$1";;
  12489. esac;
  12490. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12491. ???[sx]*):;;*)false;;esac;fi
  12492. '\'' sh
  12493. '
  12494. fi
  12495. as_executable_p=$as_test_x
  12496. # Sed expression to map a string onto a valid CPP name.
  12497. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12498. # Sed expression to map a string onto a valid variable name.
  12499. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12500. exec 6>&1
  12501. # Save the log message, to keep $[0] and so on meaningful, and to
  12502. # report actual input values of CONFIG_FILES etc. instead of their
  12503. # values after options handling.
  12504. ac_log="
  12505. This file was extended by aria2c $as_me 0.11.1+1, which was
  12506. generated by GNU Autoconf 2.61. Invocation command line was
  12507. CONFIG_FILES = $CONFIG_FILES
  12508. CONFIG_HEADERS = $CONFIG_HEADERS
  12509. CONFIG_LINKS = $CONFIG_LINKS
  12510. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12511. $ $0 $@
  12512. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12513. "
  12514. _ACEOF
  12515. cat >>$CONFIG_STATUS <<_ACEOF
  12516. # Files that config.status was made for.
  12517. config_files="$ac_config_files"
  12518. config_headers="$ac_config_headers"
  12519. config_commands="$ac_config_commands"
  12520. _ACEOF
  12521. cat >>$CONFIG_STATUS <<\_ACEOF
  12522. ac_cs_usage="\
  12523. \`$as_me' instantiates files from templates according to the
  12524. current configuration.
  12525. Usage: $0 [OPTIONS] [FILE]...
  12526. -h, --help print this help, then exit
  12527. -V, --version print version number and configuration settings, then exit
  12528. -q, --quiet do not print progress messages
  12529. -d, --debug don't remove temporary files
  12530. --recheck update $as_me by reconfiguring in the same conditions
  12531. --file=FILE[:TEMPLATE]
  12532. instantiate the configuration file FILE
  12533. --header=FILE[:TEMPLATE]
  12534. instantiate the configuration header FILE
  12535. Configuration files:
  12536. $config_files
  12537. Configuration headers:
  12538. $config_headers
  12539. Configuration commands:
  12540. $config_commands
  12541. Report bugs to <bug-autoconf@gnu.org>."
  12542. _ACEOF
  12543. cat >>$CONFIG_STATUS <<_ACEOF
  12544. ac_cs_version="\\
  12545. aria2c config.status 0.11.1+1
  12546. configured by $0, generated by GNU Autoconf 2.61,
  12547. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12548. Copyright (C) 2006 Free Software Foundation, Inc.
  12549. This config.status script is free software; the Free Software Foundation
  12550. gives unlimited permission to copy, distribute and modify it."
  12551. ac_pwd='$ac_pwd'
  12552. srcdir='$srcdir'
  12553. INSTALL='$INSTALL'
  12554. _ACEOF
  12555. cat >>$CONFIG_STATUS <<\_ACEOF
  12556. # If no file are specified by the user, then we need to provide default
  12557. # value. By we need to know if files were specified by the user.
  12558. ac_need_defaults=:
  12559. while test $# != 0
  12560. do
  12561. case $1 in
  12562. --*=*)
  12563. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12564. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12565. ac_shift=:
  12566. ;;
  12567. *)
  12568. ac_option=$1
  12569. ac_optarg=$2
  12570. ac_shift=shift
  12571. ;;
  12572. esac
  12573. case $ac_option in
  12574. # Handling of the options.
  12575. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12576. ac_cs_recheck=: ;;
  12577. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12578. echo "$ac_cs_version"; exit ;;
  12579. --debug | --debu | --deb | --de | --d | -d )
  12580. debug=: ;;
  12581. --file | --fil | --fi | --f )
  12582. $ac_shift
  12583. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12584. ac_need_defaults=false;;
  12585. --header | --heade | --head | --hea )
  12586. $ac_shift
  12587. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12588. ac_need_defaults=false;;
  12589. --he | --h)
  12590. # Conflict between --help and --header
  12591. { echo "$as_me: error: ambiguous option: $1
  12592. Try \`$0 --help' for more information." >&2
  12593. { (exit 1); exit 1; }; };;
  12594. --help | --hel | -h )
  12595. echo "$ac_cs_usage"; exit ;;
  12596. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12597. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12598. ac_cs_silent=: ;;
  12599. # This is an error.
  12600. -*) { echo "$as_me: error: unrecognized option: $1
  12601. Try \`$0 --help' for more information." >&2
  12602. { (exit 1); exit 1; }; } ;;
  12603. *) ac_config_targets="$ac_config_targets $1"
  12604. ac_need_defaults=false ;;
  12605. esac
  12606. shift
  12607. done
  12608. ac_configure_extra_args=
  12609. if $ac_cs_silent; then
  12610. exec 6>/dev/null
  12611. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12612. fi
  12613. _ACEOF
  12614. cat >>$CONFIG_STATUS <<_ACEOF
  12615. if \$ac_cs_recheck; then
  12616. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12617. CONFIG_SHELL=$SHELL
  12618. export CONFIG_SHELL
  12619. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12620. fi
  12621. _ACEOF
  12622. cat >>$CONFIG_STATUS <<\_ACEOF
  12623. exec 5>>config.log
  12624. {
  12625. echo
  12626. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12627. ## Running $as_me. ##
  12628. _ASBOX
  12629. echo "$ac_log"
  12630. } >&5
  12631. _ACEOF
  12632. cat >>$CONFIG_STATUS <<_ACEOF
  12633. #
  12634. # INIT-COMMANDS
  12635. #
  12636. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12637. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  12638. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  12639. # from automake.
  12640. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  12641. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  12642. LINGUAS="${LINGUAS-%UNSET%}"
  12643. _ACEOF
  12644. cat >>$CONFIG_STATUS <<\_ACEOF
  12645. # Handling of arguments.
  12646. for ac_config_target in $ac_config_targets
  12647. do
  12648. case $ac_config_target in
  12649. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12650. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12651. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  12652. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12653. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12654. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  12655. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  12656. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  12657. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  12658. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12659. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12660. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12661. { (exit 1); exit 1; }; };;
  12662. esac
  12663. done
  12664. # If the user did not use the arguments to specify the items to instantiate,
  12665. # then the envvar interface is used. Set only those that are not.
  12666. # We use the long form for the default assignment because of an extremely
  12667. # bizarre bug on SunOS 4.1.3.
  12668. if $ac_need_defaults; then
  12669. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12670. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12671. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12672. fi
  12673. # Have a temporary directory for convenience. Make it in the build tree
  12674. # simply because there is no reason against having it here, and in addition,
  12675. # creating and moving files from /tmp can sometimes cause problems.
  12676. # Hook for its removal unless debugging.
  12677. # Note that there is a small window in which the directory will not be cleaned:
  12678. # after its creation but before its name has been assigned to `$tmp'.
  12679. $debug ||
  12680. {
  12681. tmp=
  12682. trap 'exit_status=$?
  12683. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12684. ' 0
  12685. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12686. }
  12687. # Create a (secure) tmp directory for tmp files.
  12688. {
  12689. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12690. test -n "$tmp" && test -d "$tmp"
  12691. } ||
  12692. {
  12693. tmp=./conf$$-$RANDOM
  12694. (umask 077 && mkdir "$tmp")
  12695. } ||
  12696. {
  12697. echo "$me: cannot create a temporary directory in ." >&2
  12698. { (exit 1); exit 1; }
  12699. }
  12700. #
  12701. # Set up the sed scripts for CONFIG_FILES section.
  12702. #
  12703. # No need to generate the scripts if there are no CONFIG_FILES.
  12704. # This happens for instance when ./config.status config.h
  12705. if test -n "$CONFIG_FILES"; then
  12706. _ACEOF
  12707. ac_delim='%!_!# '
  12708. for ac_last_try in false false false false false :; do
  12709. cat >conf$$subs.sed <<_ACEOF
  12710. SHELL!$SHELL$ac_delim
  12711. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  12712. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  12713. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  12714. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  12715. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  12716. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  12717. exec_prefix!$exec_prefix$ac_delim
  12718. prefix!$prefix$ac_delim
  12719. program_transform_name!$program_transform_name$ac_delim
  12720. bindir!$bindir$ac_delim
  12721. sbindir!$sbindir$ac_delim
  12722. libexecdir!$libexecdir$ac_delim
  12723. datarootdir!$datarootdir$ac_delim
  12724. datadir!$datadir$ac_delim
  12725. sysconfdir!$sysconfdir$ac_delim
  12726. sharedstatedir!$sharedstatedir$ac_delim
  12727. localstatedir!$localstatedir$ac_delim
  12728. includedir!$includedir$ac_delim
  12729. oldincludedir!$oldincludedir$ac_delim
  12730. docdir!$docdir$ac_delim
  12731. infodir!$infodir$ac_delim
  12732. htmldir!$htmldir$ac_delim
  12733. dvidir!$dvidir$ac_delim
  12734. pdfdir!$pdfdir$ac_delim
  12735. psdir!$psdir$ac_delim
  12736. libdir!$libdir$ac_delim
  12737. localedir!$localedir$ac_delim
  12738. mandir!$mandir$ac_delim
  12739. DEFS!$DEFS$ac_delim
  12740. ECHO_C!$ECHO_C$ac_delim
  12741. ECHO_N!$ECHO_N$ac_delim
  12742. ECHO_T!$ECHO_T$ac_delim
  12743. LIBS!$LIBS$ac_delim
  12744. build_alias!$build_alias$ac_delim
  12745. host_alias!$host_alias$ac_delim
  12746. target_alias!$target_alias$ac_delim
  12747. build!$build$ac_delim
  12748. build_cpu!$build_cpu$ac_delim
  12749. build_vendor!$build_vendor$ac_delim
  12750. build_os!$build_os$ac_delim
  12751. host!$host$ac_delim
  12752. host_cpu!$host_cpu$ac_delim
  12753. host_vendor!$host_vendor$ac_delim
  12754. host_os!$host_os$ac_delim
  12755. target!$target$ac_delim
  12756. target_cpu!$target_cpu$ac_delim
  12757. target_vendor!$target_vendor$ac_delim
  12758. target_os!$target_os$ac_delim
  12759. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  12760. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  12761. INSTALL_DATA!$INSTALL_DATA$ac_delim
  12762. CYGPATH_W!$CYGPATH_W$ac_delim
  12763. PACKAGE!$PACKAGE$ac_delim
  12764. VERSION!$VERSION$ac_delim
  12765. ACLOCAL!$ACLOCAL$ac_delim
  12766. AUTOCONF!$AUTOCONF$ac_delim
  12767. AUTOMAKE!$AUTOMAKE$ac_delim
  12768. AUTOHEADER!$AUTOHEADER$ac_delim
  12769. MAKEINFO!$MAKEINFO$ac_delim
  12770. install_sh!$install_sh$ac_delim
  12771. STRIP!$STRIP$ac_delim
  12772. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  12773. mkdir_p!$mkdir_p$ac_delim
  12774. AWK!$AWK$ac_delim
  12775. SET_MAKE!$SET_MAKE$ac_delim
  12776. am__leading_dot!$am__leading_dot$ac_delim
  12777. AMTAR!$AMTAR$ac_delim
  12778. am__tar!$am__tar$ac_delim
  12779. am__untar!$am__untar$ac_delim
  12780. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  12781. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  12782. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  12783. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  12784. CXX!$CXX$ac_delim
  12785. CXXFLAGS!$CXXFLAGS$ac_delim
  12786. LDFLAGS!$LDFLAGS$ac_delim
  12787. CPPFLAGS!$CPPFLAGS$ac_delim
  12788. ac_ct_CXX!$ac_ct_CXX$ac_delim
  12789. EXEEXT!$EXEEXT$ac_delim
  12790. OBJEXT!$OBJEXT$ac_delim
  12791. DEPDIR!$DEPDIR$ac_delim
  12792. am__include!$am__include$ac_delim
  12793. am__quote!$am__quote$ac_delim
  12794. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  12795. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  12796. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  12797. CXXDEPMODE!$CXXDEPMODE$ac_delim
  12798. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  12799. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  12800. CC!$CC$ac_delim
  12801. CFLAGS!$CFLAGS$ac_delim
  12802. ac_ct_CC!$ac_ct_CC$ac_delim
  12803. CCDEPMODE!$CCDEPMODE$ac_delim
  12804. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  12805. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  12806. RANLIB!$RANLIB$ac_delim
  12807. _ACEOF
  12808. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  12809. break
  12810. elif $ac_last_try; then
  12811. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12812. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12813. { (exit 1); exit 1; }; }
  12814. else
  12815. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12816. fi
  12817. done
  12818. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  12819. if test -n "$ac_eof"; then
  12820. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  12821. ac_eof=`expr $ac_eof + 1`
  12822. fi
  12823. cat >>$CONFIG_STATUS <<_ACEOF
  12824. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  12825. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12826. _ACEOF
  12827. sed '
  12828. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  12829. s/^/s,@/; s/!/@,|#_!!_#|/
  12830. :n
  12831. t n
  12832. s/'"$ac_delim"'$/,g/; t
  12833. s/$/\\/; p
  12834. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  12835. ' >>$CONFIG_STATUS <conf$$subs.sed
  12836. rm -f conf$$subs.sed
  12837. cat >>$CONFIG_STATUS <<_ACEOF
  12838. CEOF$ac_eof
  12839. _ACEOF
  12840. ac_delim='%!_!# '
  12841. for ac_last_try in false false false false false :; do
  12842. cat >conf$$subs.sed <<_ACEOF
  12843. YACC!$YACC$ac_delim
  12844. YFLAGS!$YFLAGS$ac_delim
  12845. XML2_CONFIG!$XML2_CONFIG$ac_delim
  12846. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  12847. XML_LIBS!$XML_LIBS$ac_delim
  12848. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  12849. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  12850. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  12851. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  12852. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  12853. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  12854. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  12855. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  12856. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  12857. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  12858. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  12859. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  12860. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  12861. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  12862. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  12863. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  12864. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  12865. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  12866. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  12867. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  12868. ALLOCA!$ALLOCA$ac_delim
  12869. CPP!$CPP$ac_delim
  12870. GREP!$GREP$ac_delim
  12871. EGREP!$EGREP$ac_delim
  12872. MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
  12873. USE_NLS!$USE_NLS$ac_delim
  12874. MSGFMT!$MSGFMT$ac_delim
  12875. GMSGFMT!$GMSGFMT$ac_delim
  12876. XGETTEXT!$XGETTEXT$ac_delim
  12877. MSGMERGE!$MSGMERGE$ac_delim
  12878. GLIBC21!$GLIBC21$ac_delim
  12879. LIBICONV!$LIBICONV$ac_delim
  12880. LTLIBICONV!$LTLIBICONV$ac_delim
  12881. INTLBISON!$INTLBISON$ac_delim
  12882. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  12883. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  12884. CATOBJEXT!$CATOBJEXT$ac_delim
  12885. DATADIRNAME!$DATADIRNAME$ac_delim
  12886. INSTOBJEXT!$INSTOBJEXT$ac_delim
  12887. GENCAT!$GENCAT$ac_delim
  12888. INTLOBJS!$INTLOBJS$ac_delim
  12889. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  12890. INTLLIBS!$INTLLIBS$ac_delim
  12891. LIBINTL!$LIBINTL$ac_delim
  12892. LTLIBINTL!$LTLIBINTL$ac_delim
  12893. POSUB!$POSUB$ac_delim
  12894. LIBOBJS!$LIBOBJS$ac_delim
  12895. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  12896. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  12897. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  12898. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  12899. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  12900. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  12901. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  12902. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  12903. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  12904. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  12905. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  12906. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  12907. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  12908. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  12909. LTLIBOBJS!$LTLIBOBJS$ac_delim
  12910. _ACEOF
  12911. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 67; then
  12912. break
  12913. elif $ac_last_try; then
  12914. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12915. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12916. { (exit 1); exit 1; }; }
  12917. else
  12918. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12919. fi
  12920. done
  12921. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  12922. if test -n "$ac_eof"; then
  12923. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  12924. ac_eof=`expr $ac_eof + 1`
  12925. fi
  12926. cat >>$CONFIG_STATUS <<_ACEOF
  12927. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  12928. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  12929. _ACEOF
  12930. sed '
  12931. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  12932. s/^/s,@/; s/!/@,|#_!!_#|/
  12933. :n
  12934. t n
  12935. s/'"$ac_delim"'$/,g/; t
  12936. s/$/\\/; p
  12937. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  12938. ' >>$CONFIG_STATUS <conf$$subs.sed
  12939. rm -f conf$$subs.sed
  12940. cat >>$CONFIG_STATUS <<_ACEOF
  12941. :end
  12942. s/|#_!!_#|//g
  12943. CEOF$ac_eof
  12944. _ACEOF
  12945. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12946. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12947. # trailing colons and then remove the whole line if VPATH becomes empty
  12948. # (actually we leave an empty line to preserve line numbers).
  12949. if test "x$srcdir" = x.; then
  12950. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12951. s/:*\$(srcdir):*/:/
  12952. s/:*\${srcdir}:*/:/
  12953. s/:*@srcdir@:*/:/
  12954. s/^\([^=]*=[ ]*\):*/\1/
  12955. s/:*$//
  12956. s/^[^=]*=[ ]*$//
  12957. }'
  12958. fi
  12959. cat >>$CONFIG_STATUS <<\_ACEOF
  12960. fi # test -n "$CONFIG_FILES"
  12961. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  12962. do
  12963. case $ac_tag in
  12964. :[FHLC]) ac_mode=$ac_tag; continue;;
  12965. esac
  12966. case $ac_mode$ac_tag in
  12967. :[FHL]*:*);;
  12968. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  12969. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  12970. { (exit 1); exit 1; }; };;
  12971. :[FH]-) ac_tag=-:-;;
  12972. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12973. esac
  12974. ac_save_IFS=$IFS
  12975. IFS=:
  12976. set x $ac_tag
  12977. IFS=$ac_save_IFS
  12978. shift
  12979. ac_file=$1
  12980. shift
  12981. case $ac_mode in
  12982. :L) ac_source=$1;;
  12983. :[FH])
  12984. ac_file_inputs=
  12985. for ac_f
  12986. do
  12987. case $ac_f in
  12988. -) ac_f="$tmp/stdin";;
  12989. *) # Look for the file first in the build tree, then in the source tree
  12990. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12991. # because $ac_f cannot contain `:'.
  12992. test -f "$ac_f" ||
  12993. case $ac_f in
  12994. [\\/$]*) false;;
  12995. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12996. esac ||
  12997. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  12998. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  12999. { (exit 1); exit 1; }; };;
  13000. esac
  13001. ac_file_inputs="$ac_file_inputs $ac_f"
  13002. done
  13003. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13004. # use $as_me), people would be surprised to read:
  13005. # /* config.h. Generated by config.status. */
  13006. configure_input="Generated from "`IFS=:
  13007. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  13008. if test x"$ac_file" != x-; then
  13009. configure_input="$ac_file. $configure_input"
  13010. { echo "$as_me:$LINENO: creating $ac_file" >&5
  13011. echo "$as_me: creating $ac_file" >&6;}
  13012. fi
  13013. case $ac_tag in
  13014. *:-:* | *:-) cat >"$tmp/stdin";;
  13015. esac
  13016. ;;
  13017. esac
  13018. ac_dir=`$as_dirname -- "$ac_file" ||
  13019. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13020. X"$ac_file" : 'X\(//\)[^/]' \| \
  13021. X"$ac_file" : 'X\(//\)$' \| \
  13022. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  13023. echo X"$ac_file" |
  13024. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13025. s//\1/
  13026. q
  13027. }
  13028. /^X\(\/\/\)[^/].*/{
  13029. s//\1/
  13030. q
  13031. }
  13032. /^X\(\/\/\)$/{
  13033. s//\1/
  13034. q
  13035. }
  13036. /^X\(\/\).*/{
  13037. s//\1/
  13038. q
  13039. }
  13040. s/.*/./; q'`
  13041. { as_dir="$ac_dir"
  13042. case $as_dir in #(
  13043. -*) as_dir=./$as_dir;;
  13044. esac
  13045. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13046. as_dirs=
  13047. while :; do
  13048. case $as_dir in #(
  13049. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  13050. *) as_qdir=$as_dir;;
  13051. esac
  13052. as_dirs="'$as_qdir' $as_dirs"
  13053. as_dir=`$as_dirname -- "$as_dir" ||
  13054. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13055. X"$as_dir" : 'X\(//\)[^/]' \| \
  13056. X"$as_dir" : 'X\(//\)$' \| \
  13057. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13058. echo X"$as_dir" |
  13059. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13060. s//\1/
  13061. q
  13062. }
  13063. /^X\(\/\/\)[^/].*/{
  13064. s//\1/
  13065. q
  13066. }
  13067. /^X\(\/\/\)$/{
  13068. s//\1/
  13069. q
  13070. }
  13071. /^X\(\/\).*/{
  13072. s//\1/
  13073. q
  13074. }
  13075. s/.*/./; q'`
  13076. test -d "$as_dir" && break
  13077. done
  13078. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13079. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13080. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13081. { (exit 1); exit 1; }; }; }
  13082. ac_builddir=.
  13083. case "$ac_dir" in
  13084. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13085. *)
  13086. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  13087. # A ".." for each directory in $ac_dir_suffix.
  13088. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  13089. case $ac_top_builddir_sub in
  13090. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13091. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13092. esac ;;
  13093. esac
  13094. ac_abs_top_builddir=$ac_pwd
  13095. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13096. # for backward compatibility:
  13097. ac_top_builddir=$ac_top_build_prefix
  13098. case $srcdir in
  13099. .) # We are building in place.
  13100. ac_srcdir=.
  13101. ac_top_srcdir=$ac_top_builddir_sub
  13102. ac_abs_top_srcdir=$ac_pwd ;;
  13103. [\\/]* | ?:[\\/]* ) # Absolute name.
  13104. ac_srcdir=$srcdir$ac_dir_suffix;
  13105. ac_top_srcdir=$srcdir
  13106. ac_abs_top_srcdir=$srcdir ;;
  13107. *) # Relative name.
  13108. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13109. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13110. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13111. esac
  13112. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13113. case $ac_mode in
  13114. :F)
  13115. #
  13116. # CONFIG_FILE
  13117. #
  13118. case $INSTALL in
  13119. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13120. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13121. esac
  13122. _ACEOF
  13123. cat >>$CONFIG_STATUS <<\_ACEOF
  13124. # If the template does not know about datarootdir, expand it.
  13125. # FIXME: This hack should be removed a few years after 2.60.
  13126. ac_datarootdir_hack=; ac_datarootdir_seen=
  13127. case `sed -n '/datarootdir/ {
  13128. p
  13129. q
  13130. }
  13131. /@datadir@/p
  13132. /@docdir@/p
  13133. /@infodir@/p
  13134. /@localedir@/p
  13135. /@mandir@/p
  13136. ' $ac_file_inputs` in
  13137. *datarootdir*) ac_datarootdir_seen=yes;;
  13138. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13139. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13140. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13141. _ACEOF
  13142. cat >>$CONFIG_STATUS <<_ACEOF
  13143. ac_datarootdir_hack='
  13144. s&@datadir@&$datadir&g
  13145. s&@docdir@&$docdir&g
  13146. s&@infodir@&$infodir&g
  13147. s&@localedir@&$localedir&g
  13148. s&@mandir@&$mandir&g
  13149. s&\\\${datarootdir}&$datarootdir&g' ;;
  13150. esac
  13151. _ACEOF
  13152. # Neutralize VPATH when `$srcdir' = `.'.
  13153. # Shell code in configure.ac might set extrasub.
  13154. # FIXME: do we really want to maintain this feature?
  13155. cat >>$CONFIG_STATUS <<_ACEOF
  13156. sed "$ac_vpsub
  13157. $extrasub
  13158. _ACEOF
  13159. cat >>$CONFIG_STATUS <<\_ACEOF
  13160. :t
  13161. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13162. s&@configure_input@&$configure_input&;t t
  13163. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13164. s&@srcdir@&$ac_srcdir&;t t
  13165. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13166. s&@top_srcdir@&$ac_top_srcdir&;t t
  13167. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13168. s&@builddir@&$ac_builddir&;t t
  13169. s&@abs_builddir@&$ac_abs_builddir&;t t
  13170. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13171. s&@INSTALL@&$ac_INSTALL&;t t
  13172. $ac_datarootdir_hack
  13173. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  13174. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13175. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13176. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13177. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13178. which seems to be undefined. Please make sure it is defined." >&5
  13179. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13180. which seems to be undefined. Please make sure it is defined." >&2;}
  13181. rm -f "$tmp/stdin"
  13182. case $ac_file in
  13183. -) cat "$tmp/out"; rm -f "$tmp/out";;
  13184. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  13185. esac
  13186. ;;
  13187. :H)
  13188. #
  13189. # CONFIG_HEADER
  13190. #
  13191. _ACEOF
  13192. # Transform confdefs.h into a sed script `conftest.defines', that
  13193. # substitutes the proper values into config.h.in to produce config.h.
  13194. rm -f conftest.defines conftest.tail
  13195. # First, append a space to every undef/define line, to ease matching.
  13196. echo 's/$/ /' >conftest.defines
  13197. # Then, protect against being on the right side of a sed subst, or in
  13198. # an unquoted here document, in config.status. If some macros were
  13199. # called several times there might be several #defines for the same
  13200. # symbol, which is useless. But do not sort them, since the last
  13201. # AC_DEFINE must be honored.
  13202. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13203. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  13204. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  13205. # PARAMS is the parameter list in the macro definition--in most cases, it's
  13206. # just an empty string.
  13207. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  13208. ac_dB='\\)[ (].*,\\1define\\2'
  13209. ac_dC=' '
  13210. ac_dD=' ,'
  13211. uniq confdefs.h |
  13212. sed -n '
  13213. t rset
  13214. :rset
  13215. s/^[ ]*#[ ]*define[ ][ ]*//
  13216. t ok
  13217. d
  13218. :ok
  13219. s/[\\&,]/\\&/g
  13220. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  13221. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  13222. ' >>conftest.defines
  13223. # Remove the space that was appended to ease matching.
  13224. # Then replace #undef with comments. This is necessary, for
  13225. # example, in the case of _POSIX_SOURCE, which is predefined and required
  13226. # on some systems where configure will not decide to define it.
  13227. # (The regexp can be short, since the line contains either #define or #undef.)
  13228. echo 's/ $//
  13229. s,^[ #]*u.*,/* & */,' >>conftest.defines
  13230. # Break up conftest.defines:
  13231. ac_max_sed_lines=50
  13232. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  13233. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  13234. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  13235. # et cetera.
  13236. ac_in='$ac_file_inputs'
  13237. ac_out='"$tmp/out1"'
  13238. ac_nxt='"$tmp/out2"'
  13239. while :
  13240. do
  13241. # Write a here document:
  13242. cat >>$CONFIG_STATUS <<_ACEOF
  13243. # First, check the format of the line:
  13244. cat >"\$tmp/defines.sed" <<\\CEOF
  13245. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  13246. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  13247. b
  13248. :def
  13249. _ACEOF
  13250. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  13251. echo 'CEOF
  13252. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  13253. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  13254. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  13255. grep . conftest.tail >/dev/null || break
  13256. rm -f conftest.defines
  13257. mv conftest.tail conftest.defines
  13258. done
  13259. rm -f conftest.defines conftest.tail
  13260. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  13261. cat >>$CONFIG_STATUS <<\_ACEOF
  13262. if test x"$ac_file" != x-; then
  13263. echo "/* $configure_input */" >"$tmp/config.h"
  13264. cat "$ac_result" >>"$tmp/config.h"
  13265. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  13266. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13267. echo "$as_me: $ac_file is unchanged" >&6;}
  13268. else
  13269. rm -f $ac_file
  13270. mv "$tmp/config.h" $ac_file
  13271. fi
  13272. else
  13273. echo "/* $configure_input */"
  13274. cat "$ac_result"
  13275. fi
  13276. rm -f "$tmp/out12"
  13277. # Compute $ac_file's index in $config_headers.
  13278. _am_stamp_count=1
  13279. for _am_header in $config_headers :; do
  13280. case $_am_header in
  13281. $ac_file | $ac_file:* )
  13282. break ;;
  13283. * )
  13284. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13285. esac
  13286. done
  13287. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  13288. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13289. X$ac_file : 'X\(//\)[^/]' \| \
  13290. X$ac_file : 'X\(//\)$' \| \
  13291. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  13292. echo X$ac_file |
  13293. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13294. s//\1/
  13295. q
  13296. }
  13297. /^X\(\/\/\)[^/].*/{
  13298. s//\1/
  13299. q
  13300. }
  13301. /^X\(\/\/\)$/{
  13302. s//\1/
  13303. q
  13304. }
  13305. /^X\(\/\).*/{
  13306. s//\1/
  13307. q
  13308. }
  13309. s/.*/./; q'`/stamp-h$_am_stamp_count
  13310. ;;
  13311. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  13312. echo "$as_me: executing $ac_file commands" >&6;}
  13313. ;;
  13314. esac
  13315. case $ac_file$ac_mode in
  13316. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  13317. # Strip MF so we end up with the name of the file.
  13318. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13319. # Check whether this is an Automake generated Makefile or not.
  13320. # We used to match only the files named `Makefile.in', but
  13321. # some people rename them; so instead we look at the file content.
  13322. # Grep'ing the first line is not enough: some people post-process
  13323. # each Makefile.in and add a new line on top of each file to say so.
  13324. # So let's grep whole file.
  13325. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  13326. dirpart=`$as_dirname -- "$mf" ||
  13327. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13328. X"$mf" : 'X\(//\)[^/]' \| \
  13329. X"$mf" : 'X\(//\)$' \| \
  13330. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13331. echo X"$mf" |
  13332. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13333. s//\1/
  13334. q
  13335. }
  13336. /^X\(\/\/\)[^/].*/{
  13337. s//\1/
  13338. q
  13339. }
  13340. /^X\(\/\/\)$/{
  13341. s//\1/
  13342. q
  13343. }
  13344. /^X\(\/\).*/{
  13345. s//\1/
  13346. q
  13347. }
  13348. s/.*/./; q'`
  13349. else
  13350. continue
  13351. fi
  13352. # Extract the definition of DEPDIR, am__include, and am__quote
  13353. # from the Makefile without running `make'.
  13354. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13355. test -z "$DEPDIR" && continue
  13356. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13357. test -z "am__include" && continue
  13358. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13359. # When using ansi2knr, U may be empty or an underscore; expand it
  13360. U=`sed -n 's/^U = //p' < "$mf"`
  13361. # Find all dependency output files, they are included files with
  13362. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13363. # simplest approach to changing $(DEPDIR) to its actual value in the
  13364. # expansion.
  13365. for file in `sed -n "
  13366. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13367. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13368. # Make sure the directory exists.
  13369. test -f "$dirpart/$file" && continue
  13370. fdir=`$as_dirname -- "$file" ||
  13371. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13372. X"$file" : 'X\(//\)[^/]' \| \
  13373. X"$file" : 'X\(//\)$' \| \
  13374. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13375. echo X"$file" |
  13376. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13377. s//\1/
  13378. q
  13379. }
  13380. /^X\(\/\/\)[^/].*/{
  13381. s//\1/
  13382. q
  13383. }
  13384. /^X\(\/\/\)$/{
  13385. s//\1/
  13386. q
  13387. }
  13388. /^X\(\/\).*/{
  13389. s//\1/
  13390. q
  13391. }
  13392. s/.*/./; q'`
  13393. { as_dir=$dirpart/$fdir
  13394. case $as_dir in #(
  13395. -*) as_dir=./$as_dir;;
  13396. esac
  13397. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13398. as_dirs=
  13399. while :; do
  13400. case $as_dir in #(
  13401. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  13402. *) as_qdir=$as_dir;;
  13403. esac
  13404. as_dirs="'$as_qdir' $as_dirs"
  13405. as_dir=`$as_dirname -- "$as_dir" ||
  13406. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13407. X"$as_dir" : 'X\(//\)[^/]' \| \
  13408. X"$as_dir" : 'X\(//\)$' \| \
  13409. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13410. echo X"$as_dir" |
  13411. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13412. s//\1/
  13413. q
  13414. }
  13415. /^X\(\/\/\)[^/].*/{
  13416. s//\1/
  13417. q
  13418. }
  13419. /^X\(\/\/\)$/{
  13420. s//\1/
  13421. q
  13422. }
  13423. /^X\(\/\).*/{
  13424. s//\1/
  13425. q
  13426. }
  13427. s/.*/./; q'`
  13428. test -d "$as_dir" && break
  13429. done
  13430. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13431. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13432. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13433. { (exit 1); exit 1; }; }; }
  13434. # echo "creating $dirpart/$file"
  13435. echo '# dummy' > "$dirpart/$file"
  13436. done
  13437. done
  13438. ;;
  13439. "default-1":C)
  13440. for ac_file in $CONFIG_FILES; do
  13441. # Support "outfile[:infile[:infile...]]"
  13442. case "$ac_file" in
  13443. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  13444. esac
  13445. # PO directories have a Makefile.in generated from Makefile.in.in.
  13446. case "$ac_file" in */Makefile.in)
  13447. # Adjust a relative srcdir.
  13448. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  13449. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  13450. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  13451. # In autoconf-2.13 it is called $ac_given_srcdir.
  13452. # In autoconf-2.50 it is called $srcdir.
  13453. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  13454. case "$ac_given_srcdir" in
  13455. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  13456. /*) top_srcdir="$ac_given_srcdir" ;;
  13457. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  13458. esac
  13459. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  13460. rm -f "$ac_dir/POTFILES"
  13461. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  13462. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  13463. POMAKEFILEDEPS="POTFILES.in"
  13464. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  13465. # on $ac_dir but don't depend on user-specified configuration
  13466. # parameters.
  13467. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  13468. # The LINGUAS file contains the set of available languages.
  13469. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  13470. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  13471. fi
  13472. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  13473. # Hide the ALL_LINGUAS assigment from automake.
  13474. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  13475. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  13476. else
  13477. # The set of available languages was given in configure.in.
  13478. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  13479. fi
  13480. case "$ac_given_srcdir" in
  13481. .) srcdirpre= ;;
  13482. *) srcdirpre='$(srcdir)/' ;;
  13483. esac
  13484. POFILES=
  13485. GMOFILES=
  13486. UPDATEPOFILES=
  13487. DUMMYPOFILES=
  13488. for lang in $ALL_LINGUAS; do
  13489. POFILES="$POFILES $srcdirpre$lang.po"
  13490. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  13491. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  13492. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  13493. done
  13494. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  13495. # environment variable.
  13496. INST_LINGUAS=
  13497. if test -n "$ALL_LINGUAS"; then
  13498. for presentlang in $ALL_LINGUAS; do
  13499. useit=no
  13500. if test "%UNSET%" != "$LINGUAS"; then
  13501. desiredlanguages="$LINGUAS"
  13502. else
  13503. desiredlanguages="$ALL_LINGUAS"
  13504. fi
  13505. for desiredlang in $desiredlanguages; do
  13506. # Use the presentlang catalog if desiredlang is
  13507. # a. equal to presentlang, or
  13508. # b. a variant of presentlang (because in this case,
  13509. # presentlang can be used as a fallback for messages
  13510. # which are not translated in the desiredlang catalog).
  13511. case "$desiredlang" in
  13512. "$presentlang"*) useit=yes;;
  13513. esac
  13514. done
  13515. if test $useit = yes; then
  13516. INST_LINGUAS="$INST_LINGUAS $presentlang"
  13517. fi
  13518. done
  13519. fi
  13520. CATALOGS=
  13521. if test -n "$INST_LINGUAS"; then
  13522. for lang in $INST_LINGUAS; do
  13523. CATALOGS="$CATALOGS $lang.gmo"
  13524. done
  13525. fi
  13526. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  13527. 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"
  13528. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  13529. if test -f "$f"; then
  13530. case "$f" in
  13531. *.orig | *.bak | *~) ;;
  13532. *) cat "$f" >> "$ac_dir/Makefile" ;;
  13533. esac
  13534. fi
  13535. done
  13536. fi
  13537. ;;
  13538. esac
  13539. done ;;
  13540. esac
  13541. done # for ac_tag
  13542. { (exit 0); exit 0; }
  13543. _ACEOF
  13544. chmod +x $CONFIG_STATUS
  13545. ac_clean_files=$ac_clean_files_save
  13546. # configure is writing to config.log, and then calls config.status.
  13547. # config.status does its own redirection, appending to config.log.
  13548. # Unfortunately, on DOS this fails, as config.log is still kept open
  13549. # by configure, so config.status won't be able to write to it; its
  13550. # output is simply discarded. So we exec the FD to /dev/null,
  13551. # effectively closing config.log, so it can be properly (re)opened and
  13552. # appended to by config.status. When coming back to configure, we
  13553. # need to make the FD available again.
  13554. if test "$no_create" != yes; then
  13555. ac_cs_success=:
  13556. ac_config_status_args=
  13557. test "$silent" = yes &&
  13558. ac_config_status_args="$ac_config_status_args --quiet"
  13559. exec 5>/dev/null
  13560. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13561. exec 5>>config.log
  13562. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13563. # would make configure fail if this is the last instruction.
  13564. $ac_cs_success || { (exit 1); exit 1; }
  13565. fi