configure 430 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.60a for aria2c 0.9.0.
  4. #
  5. # Report bugs to <tujikawa@rednoah.com>.
  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 Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. setopt NO_GLOB_SUBST
  22. else
  23. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  24. fi
  25. BIN_SH=xpg4; export BIN_SH # for Tru64
  26. DUALCASE=1; export DUALCASE # for MKS sh
  27. # PATH needs CR
  28. # Avoid depending upon Character Ranges.
  29. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  30. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  31. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  32. as_cr_digits='0123456789'
  33. as_cr_alnum=$as_cr_Letters$as_cr_digits
  34. # The user is always right.
  35. if test "${PATH_SEPARATOR+set}" != set; then
  36. echo "#! /bin/sh" >conf$$.sh
  37. echo "exit 0" >>conf$$.sh
  38. chmod +x conf$$.sh
  39. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  40. PATH_SEPARATOR=';'
  41. else
  42. PATH_SEPARATOR=:
  43. fi
  44. rm -f conf$$.sh
  45. fi
  46. # Support unset when possible.
  47. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  48. as_unset=unset
  49. else
  50. as_unset=false
  51. fi
  52. # IFS
  53. # We need space, tab and new line, in precisely that order. Quoting is
  54. # there to prevent editors from complaining about space-tab.
  55. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  56. # splitting by setting IFS to empty value.)
  57. as_nl='
  58. '
  59. IFS=" "" $as_nl"
  60. # Find who we are. Look in the path if we contain no directory separator.
  61. case $0 in
  62. *[\\/]* ) as_myself=$0 ;;
  63. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  64. for as_dir in $PATH
  65. do
  66. IFS=$as_save_IFS
  67. test -z "$as_dir" && as_dir=.
  68. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  69. done
  70. IFS=$as_save_IFS
  71. ;;
  72. esac
  73. # We did not find ourselves, most probably we were run as `sh COMMAND'
  74. # in which case we are not to be found in the path.
  75. if test "x$as_myself" = x; then
  76. as_myself=$0
  77. fi
  78. if test ! -f "$as_myself"; then
  79. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  80. { (exit 1); exit 1; }
  81. fi
  82. # Work around bugs in pre-3.0 UWIN ksh.
  83. for as_var in ENV MAIL MAILPATH
  84. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  85. done
  86. PS1='$ '
  87. PS2='> '
  88. PS4='+ '
  89. # NLS nuisances.
  90. for as_var in \
  91. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  92. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  93. LC_TELEPHONE LC_TIME
  94. do
  95. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  96. eval $as_var=C; export $as_var
  97. else
  98. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  99. fi
  100. done
  101. # Required to use basename.
  102. if expr a : '\(a\)' >/dev/null 2>&1 &&
  103. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  104. as_expr=expr
  105. else
  106. as_expr=false
  107. fi
  108. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  109. as_basename=basename
  110. else
  111. as_basename=false
  112. fi
  113. # Name of the executable.
  114. as_me=`$as_basename -- "$0" ||
  115. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  116. X"$0" : 'X\(//\)$' \| \
  117. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  118. echo X/"$0" |
  119. sed '/^.*\/\([^/][^/]*\)\/*$/{
  120. s//\1/
  121. q
  122. }
  123. /^X\/\(\/\/\)$/{
  124. s//\1/
  125. q
  126. }
  127. /^X\/\(\/\).*/{
  128. s//\1/
  129. q
  130. }
  131. s/.*/./; q'`
  132. # CDPATH.
  133. $as_unset CDPATH
  134. if test "x$CONFIG_SHELL" = x; then
  135. if (eval ":") 2>/dev/null; then
  136. as_have_required=yes
  137. else
  138. as_have_required=no
  139. fi
  140. if test $as_have_required = yes && (eval ":
  141. (as_func_return () {
  142. (exit \$1)
  143. }
  144. as_func_success () {
  145. as_func_return 0
  146. }
  147. as_func_failure () {
  148. as_func_return 1
  149. }
  150. as_func_ret_success () {
  151. return 0
  152. }
  153. as_func_ret_failure () {
  154. return 1
  155. }
  156. exitcode=0
  157. if as_func_success; then
  158. :
  159. else
  160. exitcode=1
  161. echo as_func_success failed.
  162. fi
  163. if as_func_failure; then
  164. exitcode=1
  165. echo as_func_failure succeeded.
  166. fi
  167. if as_func_ret_success; then
  168. :
  169. else
  170. exitcode=1
  171. echo as_func_ret_success failed.
  172. fi
  173. if as_func_ret_failure; then
  174. exitcode=1
  175. echo as_func_ret_failure succeeded.
  176. fi
  177. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  178. :
  179. else
  180. exitcode=1
  181. echo positional parameters were not saved.
  182. fi
  183. test \$exitcode = 0) || { (exit 1); exit 1; }
  184. (
  185. as_lineno_1=\$LINENO
  186. as_lineno_2=\$LINENO
  187. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  188. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  189. ") 2> /dev/null; then
  190. :
  191. else
  192. as_candidate_shells=
  193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  194. for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  195. do
  196. IFS=$as_save_IFS
  197. test -z "$as_dir" && as_dir=.
  198. case $as_dir in
  199. /*)
  200. for as_base in sh bash ksh sh5; do
  201. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  202. done;;
  203. esac
  204. done
  205. IFS=$as_save_IFS
  206. for as_shell in $as_candidate_shells $SHELL; do
  207. # Try only shells that exist, to save several forks.
  208. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  209. { ("$as_shell") 2> /dev/null <<\_ASEOF
  210. # Be Bourne compatible
  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 *posix*) set -o posix;; esac
  220. fi
  221. BIN_SH=xpg4; export BIN_SH # for Tru64
  222. DUALCASE=1; export DUALCASE # for MKS sh
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. # Be Bourne compatible
  230. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  231. emulate sh
  232. NULLCMD=:
  233. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  234. # is contrary to our usage. Disable this feature.
  235. alias -g '${1+"$@"}'='"$@"'
  236. setopt NO_GLOB_SUBST
  237. else
  238. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  239. fi
  240. BIN_SH=xpg4; export BIN_SH # for Tru64
  241. DUALCASE=1; export DUALCASE # for MKS sh
  242. :
  243. (as_func_return () {
  244. (exit $1)
  245. }
  246. as_func_success () {
  247. as_func_return 0
  248. }
  249. as_func_failure () {
  250. as_func_return 1
  251. }
  252. as_func_ret_success () {
  253. return 0
  254. }
  255. as_func_ret_failure () {
  256. return 1
  257. }
  258. exitcode=0
  259. if as_func_success; then
  260. :
  261. else
  262. exitcode=1
  263. echo as_func_success failed.
  264. fi
  265. if as_func_failure; then
  266. exitcode=1
  267. echo as_func_failure succeeded.
  268. fi
  269. if as_func_ret_success; then
  270. :
  271. else
  272. exitcode=1
  273. echo as_func_ret_success failed.
  274. fi
  275. if as_func_ret_failure; then
  276. exitcode=1
  277. echo as_func_ret_failure succeeded.
  278. fi
  279. if ( set x; as_func_ret_success y && test x = "$1" ); then
  280. :
  281. else
  282. exitcode=1
  283. echo positional parameters were not saved.
  284. fi
  285. test $exitcode = 0) || { (exit 1); exit 1; }
  286. (
  287. as_lineno_1=$LINENO
  288. as_lineno_2=$LINENO
  289. test "x$as_lineno_1" != "x$as_lineno_2" &&
  290. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  291. _ASEOF
  292. }; then
  293. break
  294. fi
  295. fi
  296. done
  297. if test "x$CONFIG_SHELL" != x; then
  298. for as_var in BASH_ENV ENV
  299. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  300. done
  301. export CONFIG_SHELL
  302. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  303. fi
  304. if test $as_have_required = no; then
  305. echo This script requires a shell more modern than all the
  306. echo shells that I found on your system. Please install a
  307. echo modern shell, or manually run the script under such a
  308. echo shell if you do have one.
  309. { (exit 1); exit 1; }
  310. fi
  311. fi
  312. fi
  313. (eval "as_func_return () {
  314. (exit \$1)
  315. }
  316. as_func_success () {
  317. as_func_return 0
  318. }
  319. as_func_failure () {
  320. as_func_return 1
  321. }
  322. as_func_ret_success () {
  323. return 0
  324. }
  325. as_func_ret_failure () {
  326. return 1
  327. }
  328. exitcode=0
  329. if as_func_success; then
  330. :
  331. else
  332. exitcode=1
  333. echo as_func_success failed.
  334. fi
  335. if as_func_failure; then
  336. exitcode=1
  337. echo as_func_failure succeeded.
  338. fi
  339. if as_func_ret_success; then
  340. :
  341. else
  342. exitcode=1
  343. echo as_func_ret_success failed.
  344. fi
  345. if as_func_ret_failure; then
  346. exitcode=1
  347. echo as_func_ret_failure succeeded.
  348. fi
  349. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  350. :
  351. else
  352. exitcode=1
  353. echo positional parameters were not saved.
  354. fi
  355. test \$exitcode = 0") || {
  356. echo No shell found that supports shell functions.
  357. echo Please tell autoconf@gnu.org about your system,
  358. echo including any error possibly output before this
  359. echo message
  360. }
  361. as_lineno_1=$LINENO
  362. as_lineno_2=$LINENO
  363. test "x$as_lineno_1" != "x$as_lineno_2" &&
  364. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  365. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  366. # uniformly replaced by the line number. The first 'sed' inserts a
  367. # line-number line after each line using $LINENO; the second 'sed'
  368. # does the real work. The second script uses 'N' to pair each
  369. # line-number line with the line containing $LINENO, and appends
  370. # trailing '-' during substitution so that $LINENO is not a special
  371. # case at line end.
  372. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  373. # scripts with optimization help from Paolo Bonzini. Blame Lee
  374. # E. McMahon (1931-1989) for sed's syntax. :-)
  375. sed -n '
  376. p
  377. /[$]LINENO/=
  378. ' <$as_myself |
  379. sed '
  380. s/[$]LINENO.*/&-/
  381. t lineno
  382. b
  383. :lineno
  384. N
  385. :loop
  386. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  387. t loop
  388. s/-\n.*//
  389. ' >$as_me.lineno &&
  390. chmod +x "$as_me.lineno" ||
  391. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  392. { (exit 1); exit 1; }; }
  393. # Don't try to exec as it changes $[0], causing all sort of problems
  394. # (the dirname of $[0] is not the place where we might find the
  395. # original and so on. Autoconf is especially sensitive to this).
  396. . "./$as_me.lineno"
  397. # Exit status is that of the last command.
  398. exit
  399. }
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. ECHO_C= ECHO_N= ECHO_T=
  406. case `echo -n x` in
  407. -n*)
  408. case `echo 'x\c'` in
  409. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  410. *) ECHO_C='\c';;
  411. esac;;
  412. *)
  413. ECHO_N='-n';;
  414. esac
  415. if expr a : '\(a\)' >/dev/null 2>&1 &&
  416. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  417. as_expr=expr
  418. else
  419. as_expr=false
  420. fi
  421. rm -f conf$$ conf$$.exe conf$$.file
  422. if test -d conf$$.dir; then
  423. rm -f conf$$.dir/conf$$.file
  424. else
  425. rm -f conf$$.dir
  426. mkdir conf$$.dir
  427. fi
  428. echo >conf$$.file
  429. if ln -s conf$$.file conf$$ 2>/dev/null; then
  430. as_ln_s='ln -s'
  431. # ... but there are two gotchas:
  432. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  433. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  434. # In both cases, we have to default to `cp -p'.
  435. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  436. as_ln_s='cp -p'
  437. elif ln conf$$.file conf$$ 2>/dev/null; then
  438. as_ln_s=ln
  439. else
  440. as_ln_s='cp -p'
  441. fi
  442. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  443. rmdir conf$$.dir 2>/dev/null
  444. if mkdir -p . 2>/dev/null; then
  445. as_mkdir_p=:
  446. else
  447. test -d ./-p && rmdir ./-p
  448. as_mkdir_p=false
  449. fi
  450. # Find out whether ``test -x'' works. Don't use a zero-byte file, as
  451. # systems may use methods other than mode bits to determine executability.
  452. cat >conf$$.file <<_ASEOF
  453. #! /bin/sh
  454. exit 0
  455. _ASEOF
  456. chmod +x conf$$.file
  457. if test -x conf$$.file >/dev/null 2>&1; then
  458. as_executable_p="test -x"
  459. else
  460. as_executable_p=:
  461. fi
  462. rm -f conf$$.file
  463. # Sed expression to map a string onto a valid CPP name.
  464. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  465. # Sed expression to map a string onto a valid variable name.
  466. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  467. exec 7<&0 </dev/null 6>&1
  468. # Name of the host.
  469. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  470. # so uname gets run too.
  471. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  472. #
  473. # Initializations.
  474. #
  475. ac_default_prefix=/usr/local
  476. ac_clean_files=
  477. ac_config_libobj_dir=.
  478. LIBOBJS=
  479. cross_compiling=no
  480. subdirs=
  481. MFLAGS=
  482. MAKEFLAGS=
  483. SHELL=${CONFIG_SHELL-/bin/sh}
  484. # Identity of this package.
  485. PACKAGE_NAME='aria2c'
  486. PACKAGE_TARNAME='aria2c'
  487. PACKAGE_VERSION='0.9.0'
  488. PACKAGE_STRING='aria2c 0.9.0'
  489. PACKAGE_BUGREPORT='tujikawa@rednoah.com'
  490. ac_unique_file="src/Socket.h"
  491. # Factoring default headers for most tests.
  492. ac_includes_default="\
  493. #include <stdio.h>
  494. #ifdef HAVE_SYS_TYPES_H
  495. # include <sys/types.h>
  496. #endif
  497. #ifdef HAVE_SYS_STAT_H
  498. # include <sys/stat.h>
  499. #endif
  500. #ifdef STDC_HEADERS
  501. # include <stdlib.h>
  502. # include <stddef.h>
  503. #else
  504. # ifdef HAVE_STDLIB_H
  505. # include <stdlib.h>
  506. # endif
  507. #endif
  508. #ifdef HAVE_STRING_H
  509. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  510. # include <memory.h>
  511. # endif
  512. # include <string.h>
  513. #endif
  514. #ifdef HAVE_STRINGS_H
  515. # include <strings.h>
  516. #endif
  517. #ifdef HAVE_INTTYPES_H
  518. # include <inttypes.h>
  519. #endif
  520. #ifdef HAVE_STDINT_H
  521. # include <stdint.h>
  522. #endif
  523. #ifdef HAVE_UNISTD_H
  524. # include <unistd.h>
  525. #endif"
  526. ac_subst_vars='SHELL
  527. PATH_SEPARATOR
  528. PACKAGE_NAME
  529. PACKAGE_TARNAME
  530. PACKAGE_VERSION
  531. PACKAGE_STRING
  532. PACKAGE_BUGREPORT
  533. exec_prefix
  534. prefix
  535. program_transform_name
  536. bindir
  537. sbindir
  538. libexecdir
  539. datarootdir
  540. datadir
  541. sysconfdir
  542. sharedstatedir
  543. localstatedir
  544. includedir
  545. oldincludedir
  546. docdir
  547. infodir
  548. htmldir
  549. dvidir
  550. pdfdir
  551. psdir
  552. libdir
  553. localedir
  554. mandir
  555. DEFS
  556. ECHO_C
  557. ECHO_N
  558. ECHO_T
  559. LIBS
  560. build_alias
  561. host_alias
  562. target_alias
  563. INSTALL_PROGRAM
  564. INSTALL_SCRIPT
  565. INSTALL_DATA
  566. CYGPATH_W
  567. PACKAGE
  568. VERSION
  569. ACLOCAL
  570. AUTOCONF
  571. AUTOMAKE
  572. AUTOHEADER
  573. MAKEINFO
  574. install_sh
  575. STRIP
  576. INSTALL_STRIP_PROGRAM
  577. mkdir_p
  578. AWK
  579. SET_MAKE
  580. am__leading_dot
  581. AMTAR
  582. am__tar
  583. am__untar
  584. CPPUNIT_CONFIG
  585. CPPUNIT_CFLAGS
  586. CPPUNIT_LIBS
  587. CXX
  588. CXXFLAGS
  589. LDFLAGS
  590. CPPFLAGS
  591. ac_ct_CXX
  592. EXEEXT
  593. OBJEXT
  594. DEPDIR
  595. am__include
  596. am__quote
  597. AMDEP_TRUE
  598. AMDEP_FALSE
  599. AMDEPBACKSLASH
  600. CXXDEPMODE
  601. am__fastdepCXX_TRUE
  602. am__fastdepCXX_FALSE
  603. CC
  604. CFLAGS
  605. ac_ct_CC
  606. CCDEPMODE
  607. am__fastdepCC_TRUE
  608. am__fastdepCC_FALSE
  609. RANLIB
  610. YACC
  611. YFLAGS
  612. XML2_CONFIG
  613. XML_CPPFLAGS
  614. XML_LIBS
  615. LIBGNUTLS_CONFIG
  616. LIBGNUTLS_CFLAGS
  617. LIBGNUTLS_LIBS
  618. LIBGCRYPT_CONFIG
  619. LIBGCRYPT_CFLAGS
  620. LIBGCRYPT_LIBS
  621. OPENSSL_LIBS
  622. OPENSSL_CFLAGS
  623. LIBCARES_LIBS
  624. LIBCARES_CPPFLAGS
  625. LIBARES_LIBS
  626. LIBARES_CPPFLAGS
  627. ENABLE_BITTORRENT_TRUE
  628. ENABLE_BITTORRENT_FALSE
  629. ENABLE_METALINK_TRUE
  630. ENABLE_METALINK_FALSE
  631. ENABLE_ASYNC_DNS_TRUE
  632. ENABLE_ASYNC_DNS_FALSE
  633. ALLOCA
  634. CPP
  635. GREP
  636. EGREP
  637. MKINSTALLDIRS
  638. USE_NLS
  639. MSGFMT
  640. GMSGFMT
  641. XGETTEXT
  642. MSGMERGE
  643. build
  644. build_cpu
  645. build_vendor
  646. build_os
  647. host
  648. host_cpu
  649. host_vendor
  650. host_os
  651. GLIBC21
  652. LIBICONV
  653. LTLIBICONV
  654. INTLBISON
  655. BUILD_INCLUDED_LIBINTL
  656. USE_INCLUDED_LIBINTL
  657. CATOBJEXT
  658. DATADIRNAME
  659. INSTOBJEXT
  660. GENCAT
  661. INTLOBJS
  662. INTL_LIBTOOL_SUFFIX_PREFIX
  663. INTLLIBS
  664. LIBINTL
  665. LTLIBINTL
  666. POSUB
  667. LIBOBJS
  668. LTLIBOBJS'
  669. ac_subst_files=''
  670. ac_precious_vars='build_alias
  671. host_alias
  672. target_alias
  673. CXX
  674. CXXFLAGS
  675. LDFLAGS
  676. CPPFLAGS
  677. CCC
  678. CC
  679. CFLAGS
  680. YACC
  681. YFLAGS
  682. CPP'
  683. # Initialize some variables set by options.
  684. ac_init_help=
  685. ac_init_version=false
  686. # The variables have the same names as the options, with
  687. # dashes changed to underlines.
  688. cache_file=/dev/null
  689. exec_prefix=NONE
  690. no_create=
  691. no_recursion=
  692. prefix=NONE
  693. program_prefix=NONE
  694. program_suffix=NONE
  695. program_transform_name=s,x,x,
  696. silent=
  697. site=
  698. srcdir=
  699. verbose=
  700. x_includes=NONE
  701. x_libraries=NONE
  702. # Installation directory options.
  703. # These are left unexpanded so users can "make install exec_prefix=/foo"
  704. # and all the variables that are supposed to be based on exec_prefix
  705. # by default will actually change.
  706. # Use braces instead of parens because sh, perl, etc. also accept them.
  707. # (The list follows the same order as the GNU Coding Standards.)
  708. bindir='${exec_prefix}/bin'
  709. sbindir='${exec_prefix}/sbin'
  710. libexecdir='${exec_prefix}/libexec'
  711. datarootdir='${prefix}/share'
  712. datadir='${datarootdir}'
  713. sysconfdir='${prefix}/etc'
  714. sharedstatedir='${prefix}/com'
  715. localstatedir='${prefix}/var'
  716. includedir='${prefix}/include'
  717. oldincludedir='/usr/include'
  718. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  719. infodir='${datarootdir}/info'
  720. htmldir='${docdir}'
  721. dvidir='${docdir}'
  722. pdfdir='${docdir}'
  723. psdir='${docdir}'
  724. libdir='${exec_prefix}/lib'
  725. localedir='${datarootdir}/locale'
  726. mandir='${datarootdir}/man'
  727. ac_prev=
  728. ac_dashdash=
  729. for ac_option
  730. do
  731. # If the previous option needs an argument, assign it.
  732. if test -n "$ac_prev"; then
  733. eval $ac_prev=\$ac_option
  734. ac_prev=
  735. continue
  736. fi
  737. case $ac_option in
  738. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  739. *) ac_optarg=yes ;;
  740. esac
  741. # Accept the important Cygnus configure options, so we can diagnose typos.
  742. case $ac_dashdash$ac_option in
  743. --)
  744. ac_dashdash=yes ;;
  745. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  746. ac_prev=bindir ;;
  747. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  748. bindir=$ac_optarg ;;
  749. -build | --build | --buil | --bui | --bu)
  750. ac_prev=build_alias ;;
  751. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  752. build_alias=$ac_optarg ;;
  753. -cache-file | --cache-file | --cache-fil | --cache-fi \
  754. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  755. ac_prev=cache_file ;;
  756. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  757. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  758. cache_file=$ac_optarg ;;
  759. --config-cache | -C)
  760. cache_file=config.cache ;;
  761. -datadir | --datadir | --datadi | --datad)
  762. ac_prev=datadir ;;
  763. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  764. datadir=$ac_optarg ;;
  765. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  766. | --dataroo | --dataro | --datar)
  767. ac_prev=datarootdir ;;
  768. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  769. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  770. datarootdir=$ac_optarg ;;
  771. -disable-* | --disable-*)
  772. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  773. # Reject names that are not valid shell variable names.
  774. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  775. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  776. { (exit 1); exit 1; }; }
  777. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  778. eval enable_$ac_feature=no ;;
  779. -docdir | --docdir | --docdi | --doc | --do)
  780. ac_prev=docdir ;;
  781. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  782. docdir=$ac_optarg ;;
  783. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  784. ac_prev=dvidir ;;
  785. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  786. dvidir=$ac_optarg ;;
  787. -enable-* | --enable-*)
  788. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  789. # Reject names that are not valid shell variable names.
  790. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  791. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  792. { (exit 1); exit 1; }; }
  793. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  794. eval enable_$ac_feature=\$ac_optarg ;;
  795. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  796. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  797. | --exec | --exe | --ex)
  798. ac_prev=exec_prefix ;;
  799. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  800. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  801. | --exec=* | --exe=* | --ex=*)
  802. exec_prefix=$ac_optarg ;;
  803. -gas | --gas | --ga | --g)
  804. # Obsolete; use --with-gas.
  805. with_gas=yes ;;
  806. -help | --help | --hel | --he | -h)
  807. ac_init_help=long ;;
  808. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  809. ac_init_help=recursive ;;
  810. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  811. ac_init_help=short ;;
  812. -host | --host | --hos | --ho)
  813. ac_prev=host_alias ;;
  814. -host=* | --host=* | --hos=* | --ho=*)
  815. host_alias=$ac_optarg ;;
  816. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  817. ac_prev=htmldir ;;
  818. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  819. | --ht=*)
  820. htmldir=$ac_optarg ;;
  821. -includedir | --includedir | --includedi | --included | --include \
  822. | --includ | --inclu | --incl | --inc)
  823. ac_prev=includedir ;;
  824. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  825. | --includ=* | --inclu=* | --incl=* | --inc=*)
  826. includedir=$ac_optarg ;;
  827. -infodir | --infodir | --infodi | --infod | --info | --inf)
  828. ac_prev=infodir ;;
  829. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  830. infodir=$ac_optarg ;;
  831. -libdir | --libdir | --libdi | --libd)
  832. ac_prev=libdir ;;
  833. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  834. libdir=$ac_optarg ;;
  835. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  836. | --libexe | --libex | --libe)
  837. ac_prev=libexecdir ;;
  838. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  839. | --libexe=* | --libex=* | --libe=*)
  840. libexecdir=$ac_optarg ;;
  841. -localedir | --localedir | --localedi | --localed | --locale)
  842. ac_prev=localedir ;;
  843. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  844. localedir=$ac_optarg ;;
  845. -localstatedir | --localstatedir | --localstatedi | --localstated \
  846. | --localstate | --localstat | --localsta | --localst | --locals)
  847. ac_prev=localstatedir ;;
  848. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  849. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  850. localstatedir=$ac_optarg ;;
  851. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  852. ac_prev=mandir ;;
  853. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  854. mandir=$ac_optarg ;;
  855. -nfp | --nfp | --nf)
  856. # Obsolete; use --without-fp.
  857. with_fp=no ;;
  858. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  859. | --no-cr | --no-c | -n)
  860. no_create=yes ;;
  861. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  862. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  863. no_recursion=yes ;;
  864. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  865. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  866. | --oldin | --oldi | --old | --ol | --o)
  867. ac_prev=oldincludedir ;;
  868. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  869. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  870. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  871. oldincludedir=$ac_optarg ;;
  872. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  873. ac_prev=prefix ;;
  874. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  875. prefix=$ac_optarg ;;
  876. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  877. | --program-pre | --program-pr | --program-p)
  878. ac_prev=program_prefix ;;
  879. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  880. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  881. program_prefix=$ac_optarg ;;
  882. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  883. | --program-suf | --program-su | --program-s)
  884. ac_prev=program_suffix ;;
  885. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  886. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  887. program_suffix=$ac_optarg ;;
  888. -program-transform-name | --program-transform-name \
  889. | --program-transform-nam | --program-transform-na \
  890. | --program-transform-n | --program-transform- \
  891. | --program-transform | --program-transfor \
  892. | --program-transfo | --program-transf \
  893. | --program-trans | --program-tran \
  894. | --progr-tra | --program-tr | --program-t)
  895. ac_prev=program_transform_name ;;
  896. -program-transform-name=* | --program-transform-name=* \
  897. | --program-transform-nam=* | --program-transform-na=* \
  898. | --program-transform-n=* | --program-transform-=* \
  899. | --program-transform=* | --program-transfor=* \
  900. | --program-transfo=* | --program-transf=* \
  901. | --program-trans=* | --program-tran=* \
  902. | --progr-tra=* | --program-tr=* | --program-t=*)
  903. program_transform_name=$ac_optarg ;;
  904. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  905. ac_prev=pdfdir ;;
  906. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  907. pdfdir=$ac_optarg ;;
  908. -psdir | --psdir | --psdi | --psd | --ps)
  909. ac_prev=psdir ;;
  910. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  911. psdir=$ac_optarg ;;
  912. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  913. | -silent | --silent | --silen | --sile | --sil)
  914. silent=yes ;;
  915. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  916. ac_prev=sbindir ;;
  917. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  918. | --sbi=* | --sb=*)
  919. sbindir=$ac_optarg ;;
  920. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  921. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  922. | --sharedst | --shareds | --shared | --share | --shar \
  923. | --sha | --sh)
  924. ac_prev=sharedstatedir ;;
  925. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  926. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  927. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  928. | --sha=* | --sh=*)
  929. sharedstatedir=$ac_optarg ;;
  930. -site | --site | --sit)
  931. ac_prev=site ;;
  932. -site=* | --site=* | --sit=*)
  933. site=$ac_optarg ;;
  934. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  935. ac_prev=srcdir ;;
  936. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  937. srcdir=$ac_optarg ;;
  938. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  939. | --syscon | --sysco | --sysc | --sys | --sy)
  940. ac_prev=sysconfdir ;;
  941. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  942. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  943. sysconfdir=$ac_optarg ;;
  944. -target | --target | --targe | --targ | --tar | --ta | --t)
  945. ac_prev=target_alias ;;
  946. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  947. target_alias=$ac_optarg ;;
  948. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  949. verbose=yes ;;
  950. -version | --version | --versio | --versi | --vers | -V)
  951. ac_init_version=: ;;
  952. -with-* | --with-*)
  953. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  954. # Reject names that are not valid shell variable names.
  955. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  956. { echo "$as_me: error: invalid package name: $ac_package" >&2
  957. { (exit 1); exit 1; }; }
  958. ac_package=`echo $ac_package| sed 's/-/_/g'`
  959. eval with_$ac_package=\$ac_optarg ;;
  960. -without-* | --without-*)
  961. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  962. # Reject names that are not valid shell variable names.
  963. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  964. { echo "$as_me: error: invalid package name: $ac_package" >&2
  965. { (exit 1); exit 1; }; }
  966. ac_package=`echo $ac_package | sed 's/-/_/g'`
  967. eval with_$ac_package=no ;;
  968. --x)
  969. # Obsolete; use --with-x.
  970. with_x=yes ;;
  971. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  972. | --x-incl | --x-inc | --x-in | --x-i)
  973. ac_prev=x_includes ;;
  974. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  975. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  976. x_includes=$ac_optarg ;;
  977. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  978. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  979. ac_prev=x_libraries ;;
  980. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  981. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  982. x_libraries=$ac_optarg ;;
  983. -*) { echo "$as_me: error: unrecognized option: $ac_option
  984. Try \`$0 --help' for more information." >&2
  985. { (exit 1); exit 1; }; }
  986. ;;
  987. *=*)
  988. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  989. # Reject names that are not valid shell variable names.
  990. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  991. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  992. { (exit 1); exit 1; }; }
  993. eval $ac_envvar=\$ac_optarg
  994. export $ac_envvar ;;
  995. *)
  996. # FIXME: should be removed in autoconf 3.0.
  997. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  998. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  999. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1000. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1001. ;;
  1002. esac
  1003. done
  1004. if test -n "$ac_prev"; then
  1005. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1006. { echo "$as_me: error: missing argument to $ac_option" >&2
  1007. { (exit 1); exit 1; }; }
  1008. fi
  1009. # Be sure to have absolute directory names.
  1010. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1011. datadir sysconfdir sharedstatedir localstatedir includedir \
  1012. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1013. libdir localedir mandir
  1014. do
  1015. eval ac_val=\$$ac_var
  1016. case $ac_val in
  1017. [\\/$]* | ?:[\\/]* ) continue;;
  1018. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1019. esac
  1020. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1021. { (exit 1); exit 1; }; }
  1022. done
  1023. # There might be people who depend on the old broken behavior: `$host'
  1024. # used to hold the argument of --host etc.
  1025. # FIXME: To remove some day.
  1026. build=$build_alias
  1027. host=$host_alias
  1028. target=$target_alias
  1029. # FIXME: To remove some day.
  1030. if test "x$host_alias" != x; then
  1031. if test "x$build_alias" = x; then
  1032. cross_compiling=maybe
  1033. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1034. If a cross compiler is detected then cross compile mode will be used." >&2
  1035. elif test "x$build_alias" != "x$host_alias"; then
  1036. cross_compiling=yes
  1037. fi
  1038. fi
  1039. ac_tool_prefix=
  1040. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1041. test "$silent" = yes && exec 6>/dev/null
  1042. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1043. ac_ls_di=`ls -di .` &&
  1044. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1045. { echo "$as_me: error: Working directory cannot be determined" >&2
  1046. { (exit 1); exit 1; }; }
  1047. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1048. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1049. { (exit 1); exit 1; }; }
  1050. # Find the source files, if location was not specified.
  1051. if test -z "$srcdir"; then
  1052. ac_srcdir_defaulted=yes
  1053. # Try the directory containing this script, then the parent directory.
  1054. ac_confdir=`$as_dirname -- "$0" ||
  1055. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1056. X"$0" : 'X\(//\)[^/]' \| \
  1057. X"$0" : 'X\(//\)$' \| \
  1058. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1059. echo X"$0" |
  1060. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1061. s//\1/
  1062. q
  1063. }
  1064. /^X\(\/\/\)[^/].*/{
  1065. s//\1/
  1066. q
  1067. }
  1068. /^X\(\/\/\)$/{
  1069. s//\1/
  1070. q
  1071. }
  1072. /^X\(\/\).*/{
  1073. s//\1/
  1074. q
  1075. }
  1076. s/.*/./; q'`
  1077. srcdir=$ac_confdir
  1078. if test ! -r "$srcdir/$ac_unique_file"; then
  1079. srcdir=..
  1080. fi
  1081. else
  1082. ac_srcdir_defaulted=no
  1083. fi
  1084. if test ! -r "$srcdir/$ac_unique_file"; then
  1085. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1086. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1087. { (exit 1); exit 1; }; }
  1088. fi
  1089. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1090. ac_abs_confdir=`(
  1091. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1092. { (exit 1); exit 1; }; }
  1093. pwd)`
  1094. # When building in place, set srcdir=.
  1095. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1096. srcdir=.
  1097. fi
  1098. # Remove unnecessary trailing slashes from srcdir.
  1099. # Double slashes in file names in object file debugging info
  1100. # mess up M-x gdb in Emacs.
  1101. case $srcdir in
  1102. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1103. esac
  1104. for ac_var in $ac_precious_vars; do
  1105. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1106. eval ac_env_${ac_var}_value=\$${ac_var}
  1107. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1108. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1109. done
  1110. #
  1111. # Report the --help message.
  1112. #
  1113. if test "$ac_init_help" = "long"; then
  1114. # Omit some internal or obsolete options to make the list less imposing.
  1115. # This message is too long to be a string in the A/UX 3.1 sh.
  1116. cat <<_ACEOF
  1117. \`configure' configures aria2c 0.9.0 to adapt to many kinds of systems.
  1118. Usage: $0 [OPTION]... [VAR=VALUE]...
  1119. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1120. VAR=VALUE. See below for descriptions of some of the useful variables.
  1121. Defaults for the options are specified in brackets.
  1122. Configuration:
  1123. -h, --help display this help and exit
  1124. --help=short display options specific to this package
  1125. --help=recursive display the short help of all the included packages
  1126. -V, --version display version information and exit
  1127. -q, --quiet, --silent do not print \`checking...' messages
  1128. --cache-file=FILE cache test results in FILE [disabled]
  1129. -C, --config-cache alias for \`--cache-file=config.cache'
  1130. -n, --no-create do not create output files
  1131. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1132. Installation directories:
  1133. --prefix=PREFIX install architecture-independent files in PREFIX
  1134. [$ac_default_prefix]
  1135. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1136. [PREFIX]
  1137. By default, \`make install' will install all the files in
  1138. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1139. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1140. for instance \`--prefix=\$HOME'.
  1141. For better control, use the options below.
  1142. Fine tuning of the installation directories:
  1143. --bindir=DIR user executables [EPREFIX/bin]
  1144. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1145. --libexecdir=DIR program executables [EPREFIX/libexec]
  1146. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1147. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1148. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1149. --libdir=DIR object code libraries [EPREFIX/lib]
  1150. --includedir=DIR C header files [PREFIX/include]
  1151. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1152. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1153. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1154. --infodir=DIR info documentation [DATAROOTDIR/info]
  1155. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1156. --mandir=DIR man documentation [DATAROOTDIR/man]
  1157. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1158. --htmldir=DIR html documentation [DOCDIR]
  1159. --dvidir=DIR dvi documentation [DOCDIR]
  1160. --pdfdir=DIR pdf documentation [DOCDIR]
  1161. --psdir=DIR ps documentation [DOCDIR]
  1162. _ACEOF
  1163. cat <<\_ACEOF
  1164. Program names:
  1165. --program-prefix=PREFIX prepend PREFIX to installed program names
  1166. --program-suffix=SUFFIX append SUFFIX to installed program names
  1167. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1168. System types:
  1169. --build=BUILD configure for building on BUILD [guessed]
  1170. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1171. _ACEOF
  1172. fi
  1173. if test -n "$ac_init_help"; then
  1174. case $ac_init_help in
  1175. short | recursive ) echo "Configuration of aria2c 0.9.0:";;
  1176. esac
  1177. cat <<\_ACEOF
  1178. Optional Features:
  1179. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1180. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1181. --enable-bittorrent enable BitTorrent support. Default: yes
  1182. --enable-metalink enable Metalink support. Default: yes
  1183. --disable-dependency-tracking speeds up one-time build
  1184. --enable-dependency-tracking do not reject slow dependency extractors
  1185. --disable-xmltest Do not try to compile and run a test LIBXML program
  1186. --disable-nls do not use Native Language Support
  1187. --disable-rpath do not hardcode runtime library paths
  1188. Optional Packages:
  1189. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1190. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1191. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1192. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1193. --with-gnutls use gnutls library if installed. Default: yes
  1194. --with-openssl use openssl library if installed. Default: yes
  1195. --with-libxml2 use libxml2 library if installed. Default: yes
  1196. --with-libares use ares library if installed. Default: yes
  1197. --with-libcares use c-ares library if installed. Default: yes
  1198. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1199. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1200. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1201. --with-libgcrypt-prefix=PFX
  1202. prefix where LIBGCRYPT is installed (optional)
  1203. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1204. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1205. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1206. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1207. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1208. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1209. --with-included-gettext use the GNU gettext library included here
  1210. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1211. --without-libintl-prefix don't search for libintl in includedir and libdir
  1212. Some influential environment variables:
  1213. CXX C++ compiler command
  1214. CXXFLAGS C++ compiler flags
  1215. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1216. nonstandard directory <lib dir>
  1217. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1218. you have headers in a nonstandard directory <include dir>
  1219. CC C compiler command
  1220. CFLAGS C compiler flags
  1221. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1222. the first program found out of: `bison -y', `byacc', `yacc'.
  1223. YFLAGS The list of arguments that will be passed by default to $YACC.
  1224. This script will default YFLAGS to the empty string to avoid a
  1225. default value of `-d' given by some make applications.
  1226. CPP C preprocessor
  1227. Use these variables to override the choices made by `configure' or to help
  1228. it to find libraries and programs with nonstandard names/locations.
  1229. Report bugs to <tujikawa@rednoah.com>.
  1230. _ACEOF
  1231. ac_status=$?
  1232. fi
  1233. if test "$ac_init_help" = "recursive"; then
  1234. # If there are subdirs, report their specific --help.
  1235. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1236. test -d "$ac_dir" || continue
  1237. ac_builddir=.
  1238. case "$ac_dir" in
  1239. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1240. *)
  1241. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1242. # A ".." for each directory in $ac_dir_suffix.
  1243. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1244. case $ac_top_builddir_sub in
  1245. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1246. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1247. esac ;;
  1248. esac
  1249. ac_abs_top_builddir=$ac_pwd
  1250. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1251. # for backward compatibility:
  1252. ac_top_builddir=$ac_top_build_prefix
  1253. case $srcdir in
  1254. .) # We are building in place.
  1255. ac_srcdir=.
  1256. ac_top_srcdir=$ac_top_builddir_sub
  1257. ac_abs_top_srcdir=$ac_pwd ;;
  1258. [\\/]* | ?:[\\/]* ) # Absolute name.
  1259. ac_srcdir=$srcdir$ac_dir_suffix;
  1260. ac_top_srcdir=$srcdir
  1261. ac_abs_top_srcdir=$srcdir ;;
  1262. *) # Relative name.
  1263. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1264. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1265. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1266. esac
  1267. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1268. cd "$ac_dir" || { ac_status=$?; continue; }
  1269. # Check for guested configure.
  1270. if test -f "$ac_srcdir/configure.gnu"; then
  1271. echo &&
  1272. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1273. elif test -f "$ac_srcdir/configure"; then
  1274. echo &&
  1275. $SHELL "$ac_srcdir/configure" --help=recursive
  1276. else
  1277. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1278. fi || ac_status=$?
  1279. cd "$ac_pwd" || { ac_status=$?; break; }
  1280. done
  1281. fi
  1282. test -n "$ac_init_help" && exit $ac_status
  1283. if $ac_init_version; then
  1284. cat <<\_ACEOF
  1285. aria2c configure 0.9.0
  1286. generated by GNU Autoconf 2.60a
  1287. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1288. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1289. This configure script is free software; the Free Software Foundation
  1290. gives unlimited permission to copy, distribute and modify it.
  1291. _ACEOF
  1292. exit
  1293. fi
  1294. cat >config.log <<_ACEOF
  1295. This file contains any messages produced by compilers while
  1296. running configure, to aid debugging if configure makes a mistake.
  1297. It was created by aria2c $as_me 0.9.0, which was
  1298. generated by GNU Autoconf 2.60a. Invocation command line was
  1299. $ $0 $@
  1300. _ACEOF
  1301. exec 5>>config.log
  1302. {
  1303. cat <<_ASUNAME
  1304. ## --------- ##
  1305. ## Platform. ##
  1306. ## --------- ##
  1307. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1308. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1309. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1310. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1311. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1312. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1313. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1314. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1315. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1316. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1317. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1318. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1319. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1320. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1321. _ASUNAME
  1322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1323. for as_dir in $PATH
  1324. do
  1325. IFS=$as_save_IFS
  1326. test -z "$as_dir" && as_dir=.
  1327. echo "PATH: $as_dir"
  1328. done
  1329. IFS=$as_save_IFS
  1330. } >&5
  1331. cat >&5 <<_ACEOF
  1332. ## ----------- ##
  1333. ## Core tests. ##
  1334. ## ----------- ##
  1335. _ACEOF
  1336. # Keep a trace of the command line.
  1337. # Strip out --no-create and --no-recursion so they do not pile up.
  1338. # Strip out --silent because we don't want to record it for future runs.
  1339. # Also quote any args containing shell meta-characters.
  1340. # Make two passes to allow for proper duplicate-argument suppression.
  1341. ac_configure_args=
  1342. ac_configure_args0=
  1343. ac_configure_args1=
  1344. ac_must_keep_next=false
  1345. for ac_pass in 1 2
  1346. do
  1347. for ac_arg
  1348. do
  1349. case $ac_arg in
  1350. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1351. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1352. | -silent | --silent | --silen | --sile | --sil)
  1353. continue ;;
  1354. *\'*)
  1355. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1356. esac
  1357. case $ac_pass in
  1358. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1359. 2)
  1360. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1361. if test $ac_must_keep_next = true; then
  1362. ac_must_keep_next=false # Got value, back to normal.
  1363. else
  1364. case $ac_arg in
  1365. *=* | --config-cache | -C | -disable-* | --disable-* \
  1366. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1367. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1368. | -with-* | --with-* | -without-* | --without-* | --x)
  1369. case "$ac_configure_args0 " in
  1370. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1371. esac
  1372. ;;
  1373. -* ) ac_must_keep_next=true ;;
  1374. esac
  1375. fi
  1376. ac_configure_args="$ac_configure_args '$ac_arg'"
  1377. ;;
  1378. esac
  1379. done
  1380. done
  1381. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1382. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1383. # When interrupted or exit'd, cleanup temporary files, and complete
  1384. # config.log. We remove comments because anyway the quotes in there
  1385. # would cause problems or look ugly.
  1386. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1387. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1388. trap 'exit_status=$?
  1389. # Save into config.log some information that might help in debugging.
  1390. {
  1391. echo
  1392. cat <<\_ASBOX
  1393. ## ---------------- ##
  1394. ## Cache variables. ##
  1395. ## ---------------- ##
  1396. _ASBOX
  1397. echo
  1398. # The following way of writing the cache mishandles newlines in values,
  1399. (
  1400. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1401. eval ac_val=\$$ac_var
  1402. case $ac_val in #(
  1403. *${as_nl}*)
  1404. case $ac_var in #(
  1405. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1406. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1407. esac
  1408. case $ac_var in #(
  1409. _ | IFS | as_nl) ;; #(
  1410. *) $as_unset $ac_var ;;
  1411. esac ;;
  1412. esac
  1413. done
  1414. (set) 2>&1 |
  1415. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1416. *${as_nl}ac_space=\ *)
  1417. sed -n \
  1418. "s/'\''/'\''\\\\'\'''\''/g;
  1419. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1420. ;; #(
  1421. *)
  1422. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1423. ;;
  1424. esac |
  1425. sort
  1426. )
  1427. echo
  1428. cat <<\_ASBOX
  1429. ## ----------------- ##
  1430. ## Output variables. ##
  1431. ## ----------------- ##
  1432. _ASBOX
  1433. echo
  1434. for ac_var in $ac_subst_vars
  1435. do
  1436. eval ac_val=\$$ac_var
  1437. case $ac_val in
  1438. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1439. esac
  1440. echo "$ac_var='\''$ac_val'\''"
  1441. done | sort
  1442. echo
  1443. if test -n "$ac_subst_files"; then
  1444. cat <<\_ASBOX
  1445. ## ------------------- ##
  1446. ## File substitutions. ##
  1447. ## ------------------- ##
  1448. _ASBOX
  1449. echo
  1450. for ac_var in $ac_subst_files
  1451. do
  1452. eval ac_val=\$$ac_var
  1453. case $ac_val in
  1454. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1455. esac
  1456. echo "$ac_var='\''$ac_val'\''"
  1457. done | sort
  1458. echo
  1459. fi
  1460. if test -s confdefs.h; then
  1461. cat <<\_ASBOX
  1462. ## ----------- ##
  1463. ## confdefs.h. ##
  1464. ## ----------- ##
  1465. _ASBOX
  1466. echo
  1467. cat confdefs.h
  1468. echo
  1469. fi
  1470. test "$ac_signal" != 0 &&
  1471. echo "$as_me: caught signal $ac_signal"
  1472. echo "$as_me: exit $exit_status"
  1473. } >&5
  1474. rm -f core *.core core.conftest.* &&
  1475. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1476. exit $exit_status
  1477. ' 0
  1478. for ac_signal in 1 2 13 15; do
  1479. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1480. done
  1481. ac_signal=0
  1482. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1483. rm -f -r conftest* confdefs.h
  1484. # Predefined preprocessor variables.
  1485. cat >>confdefs.h <<_ACEOF
  1486. #define PACKAGE_NAME "$PACKAGE_NAME"
  1487. _ACEOF
  1488. cat >>confdefs.h <<_ACEOF
  1489. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1490. _ACEOF
  1491. cat >>confdefs.h <<_ACEOF
  1492. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1493. _ACEOF
  1494. cat >>confdefs.h <<_ACEOF
  1495. #define PACKAGE_STRING "$PACKAGE_STRING"
  1496. _ACEOF
  1497. cat >>confdefs.h <<_ACEOF
  1498. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1499. _ACEOF
  1500. # Let the site file select an alternate cache file if it wants to.
  1501. # Prefer explicitly selected file to automatically selected ones.
  1502. if test -n "$CONFIG_SITE"; then
  1503. set x "$CONFIG_SITE"
  1504. elif test "x$prefix" != xNONE; then
  1505. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1506. else
  1507. set x "$ac_default_prefix/share/config.site" \
  1508. "$ac_default_prefix/etc/config.site"
  1509. fi
  1510. shift
  1511. for ac_site_file
  1512. do
  1513. if test -r "$ac_site_file"; then
  1514. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1515. echo "$as_me: loading site script $ac_site_file" >&6;}
  1516. sed 's/^/| /' "$ac_site_file" >&5
  1517. . "$ac_site_file"
  1518. fi
  1519. done
  1520. if test -r "$cache_file"; then
  1521. # Some versions of bash will fail to source /dev/null (special
  1522. # files actually), so we avoid doing that.
  1523. if test -f "$cache_file"; then
  1524. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1525. echo "$as_me: loading cache $cache_file" >&6;}
  1526. case $cache_file in
  1527. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1528. *) . "./$cache_file";;
  1529. esac
  1530. fi
  1531. else
  1532. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1533. echo "$as_me: creating cache $cache_file" >&6;}
  1534. >$cache_file
  1535. fi
  1536. # Check that the precious variables saved in the cache have kept the same
  1537. # value.
  1538. ac_cache_corrupted=false
  1539. for ac_var in $ac_precious_vars; do
  1540. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1541. eval ac_new_set=\$ac_env_${ac_var}_set
  1542. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1543. eval ac_new_val=\$ac_env_${ac_var}_value
  1544. case $ac_old_set,$ac_new_set in
  1545. set,)
  1546. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1547. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1548. ac_cache_corrupted=: ;;
  1549. ,set)
  1550. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1551. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1552. ac_cache_corrupted=: ;;
  1553. ,);;
  1554. *)
  1555. if test "x$ac_old_val" != "x$ac_new_val"; then
  1556. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1557. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1558. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1559. echo "$as_me: former value: $ac_old_val" >&2;}
  1560. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1561. echo "$as_me: current value: $ac_new_val" >&2;}
  1562. ac_cache_corrupted=:
  1563. fi;;
  1564. esac
  1565. # Pass precious variables to config.status.
  1566. if test "$ac_new_set" = set; then
  1567. case $ac_new_val in
  1568. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1569. *) ac_arg=$ac_var=$ac_new_val ;;
  1570. esac
  1571. case " $ac_configure_args " in
  1572. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1573. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1574. esac
  1575. fi
  1576. done
  1577. if $ac_cache_corrupted; then
  1578. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1579. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1580. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1581. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1582. { (exit 1); exit 1; }; }
  1583. fi
  1584. ac_ext=c
  1585. ac_cpp='$CPP $CPPFLAGS'
  1586. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1587. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1588. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1589. am__api_version="1.9"
  1590. ac_aux_dir=
  1591. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1592. if test -f "$ac_dir/install-sh"; then
  1593. ac_aux_dir=$ac_dir
  1594. ac_install_sh="$ac_aux_dir/install-sh -c"
  1595. break
  1596. elif test -f "$ac_dir/install.sh"; then
  1597. ac_aux_dir=$ac_dir
  1598. ac_install_sh="$ac_aux_dir/install.sh -c"
  1599. break
  1600. elif test -f "$ac_dir/shtool"; then
  1601. ac_aux_dir=$ac_dir
  1602. ac_install_sh="$ac_aux_dir/shtool install -c"
  1603. break
  1604. fi
  1605. done
  1606. if test -z "$ac_aux_dir"; then
  1607. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1608. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1609. { (exit 1); exit 1; }; }
  1610. fi
  1611. # These three variables are undocumented and unsupported,
  1612. # and are intended to be withdrawn in a future Autoconf release.
  1613. # They can cause serious problems if a builder's source tree is in a directory
  1614. # whose full name contains unusual characters.
  1615. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1616. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1617. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1618. # Find a good install program. We prefer a C program (faster),
  1619. # so one script is as good as another. But avoid the broken or
  1620. # incompatible versions:
  1621. # SysV /etc/install, /usr/sbin/install
  1622. # SunOS /usr/etc/install
  1623. # IRIX /sbin/install
  1624. # AIX /bin/install
  1625. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1626. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1627. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1628. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1629. # OS/2's system install, which has a completely different semantic
  1630. # ./install, which can be erroneously created by make from ./install.sh.
  1631. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1632. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1633. if test -z "$INSTALL"; then
  1634. if test "${ac_cv_path_install+set}" = set; then
  1635. echo $ECHO_N "(cached) $ECHO_C" >&6
  1636. else
  1637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1638. for as_dir in $PATH
  1639. do
  1640. IFS=$as_save_IFS
  1641. test -z "$as_dir" && as_dir=.
  1642. # Account for people who put trailing slashes in PATH elements.
  1643. case $as_dir/ in
  1644. ./ | .// | /cC/* | \
  1645. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1646. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1647. /usr/ucb/* ) ;;
  1648. *)
  1649. # OSF1 and SCO ODT 3.0 have their own names for install.
  1650. # Don't use installbsd from OSF since it installs stuff as root
  1651. # by default.
  1652. for ac_prog in ginstall scoinst install; do
  1653. for ac_exec_ext in '' $ac_executable_extensions; do
  1654. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1655. if test $ac_prog = install &&
  1656. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1657. # AIX install. It has an incompatible calling convention.
  1658. :
  1659. elif test $ac_prog = install &&
  1660. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1661. # program-specific install script used by HP pwplus--don't use.
  1662. :
  1663. else
  1664. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1665. break 3
  1666. fi
  1667. fi
  1668. done
  1669. done
  1670. ;;
  1671. esac
  1672. done
  1673. IFS=$as_save_IFS
  1674. fi
  1675. if test "${ac_cv_path_install+set}" = set; then
  1676. INSTALL=$ac_cv_path_install
  1677. else
  1678. # As a last resort, use the slow shell script. Don't cache a
  1679. # value for INSTALL within a source directory, because that will
  1680. # break other packages using the cache if that directory is
  1681. # removed, or if the value is a relative name.
  1682. INSTALL=$ac_install_sh
  1683. fi
  1684. fi
  1685. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1686. echo "${ECHO_T}$INSTALL" >&6; }
  1687. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1688. # It thinks the first close brace ends the variable substitution.
  1689. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1690. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1691. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1692. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1693. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1694. # Just in case
  1695. sleep 1
  1696. echo timestamp > conftest.file
  1697. # Do `set' in a subshell so we don't clobber the current shell's
  1698. # arguments. Must try -L first in case configure is actually a
  1699. # symlink; some systems play weird games with the mod time of symlinks
  1700. # (eg FreeBSD returns the mod time of the symlink's containing
  1701. # directory).
  1702. if (
  1703. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1704. if test "$*" = "X"; then
  1705. # -L didn't work.
  1706. set X `ls -t $srcdir/configure conftest.file`
  1707. fi
  1708. rm -f conftest.file
  1709. if test "$*" != "X $srcdir/configure conftest.file" \
  1710. && test "$*" != "X conftest.file $srcdir/configure"; then
  1711. # If neither matched, then we have a broken ls. This can happen
  1712. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1713. # broken ls alias from the environment. This has actually
  1714. # happened. Such a system could not be considered "sane".
  1715. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1716. alias in your environment" >&5
  1717. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1718. alias in your environment" >&2;}
  1719. { (exit 1); exit 1; }; }
  1720. fi
  1721. test "$2" = conftest.file
  1722. )
  1723. then
  1724. # Ok.
  1725. :
  1726. else
  1727. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1728. Check your system clock" >&5
  1729. echo "$as_me: error: newly created file is older than distributed files!
  1730. Check your system clock" >&2;}
  1731. { (exit 1); exit 1; }; }
  1732. fi
  1733. { echo "$as_me:$LINENO: result: yes" >&5
  1734. echo "${ECHO_T}yes" >&6; }
  1735. test "$program_prefix" != NONE &&
  1736. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1737. # Use a double $ so make ignores it.
  1738. test "$program_suffix" != NONE &&
  1739. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1740. # Double any \ or $. echo might interpret backslashes.
  1741. # By default was `s,x,x', remove it if useless.
  1742. cat <<\_ACEOF >conftest.sed
  1743. s/[\\$]/&&/g;s/;s,x,x,$//
  1744. _ACEOF
  1745. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1746. rm -f conftest.sed
  1747. # expand $ac_aux_dir to an absolute path
  1748. am_aux_dir=`cd $ac_aux_dir && pwd`
  1749. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1750. # Use eval to expand $SHELL
  1751. if eval "$MISSING --run true"; then
  1752. am_missing_run="$MISSING --run "
  1753. else
  1754. am_missing_run=
  1755. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1756. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1757. fi
  1758. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1759. # We used to keeping the `.' as first argument, in order to
  1760. # allow $(mkdir_p) to be used without argument. As in
  1761. # $(mkdir_p) $(somedir)
  1762. # where $(somedir) is conditionally defined. However this is wrong
  1763. # for two reasons:
  1764. # 1. if the package is installed by a user who cannot write `.'
  1765. # make install will fail,
  1766. # 2. the above comment should most certainly read
  1767. # $(mkdir_p) $(DESTDIR)$(somedir)
  1768. # so it does not work when $(somedir) is undefined and
  1769. # $(DESTDIR) is not.
  1770. # To support the latter case, we have to write
  1771. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1772. # so the `.' trick is pointless.
  1773. mkdir_p='mkdir -p --'
  1774. else
  1775. # On NextStep and OpenStep, the `mkdir' command does not
  1776. # recognize any option. It will interpret all options as
  1777. # directories to create, and then abort because `.' already
  1778. # exists.
  1779. for d in ./-p ./--version;
  1780. do
  1781. test -d $d && rmdir $d
  1782. done
  1783. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1784. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1785. mkdir_p='$(mkinstalldirs)'
  1786. else
  1787. mkdir_p='$(install_sh) -d'
  1788. fi
  1789. fi
  1790. for ac_prog in gawk mawk nawk awk
  1791. do
  1792. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1793. set dummy $ac_prog; ac_word=$2
  1794. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1795. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1796. if test "${ac_cv_prog_AWK+set}" = set; then
  1797. echo $ECHO_N "(cached) $ECHO_C" >&6
  1798. else
  1799. if test -n "$AWK"; then
  1800. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1801. else
  1802. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1803. for as_dir in $PATH
  1804. do
  1805. IFS=$as_save_IFS
  1806. test -z "$as_dir" && as_dir=.
  1807. for ac_exec_ext in '' $ac_executable_extensions; do
  1808. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  1809. ac_cv_prog_AWK="$ac_prog"
  1810. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1811. break 2
  1812. fi
  1813. done
  1814. done
  1815. IFS=$as_save_IFS
  1816. fi
  1817. fi
  1818. AWK=$ac_cv_prog_AWK
  1819. if test -n "$AWK"; then
  1820. { echo "$as_me:$LINENO: result: $AWK" >&5
  1821. echo "${ECHO_T}$AWK" >&6; }
  1822. else
  1823. { echo "$as_me:$LINENO: result: no" >&5
  1824. echo "${ECHO_T}no" >&6; }
  1825. fi
  1826. test -n "$AWK" && break
  1827. done
  1828. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1829. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1830. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1831. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1832. echo $ECHO_N "(cached) $ECHO_C" >&6
  1833. else
  1834. cat >conftest.make <<\_ACEOF
  1835. SHELL = /bin/sh
  1836. all:
  1837. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1838. _ACEOF
  1839. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1840. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1841. *@@@%%%=?*=@@@%%%*)
  1842. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1843. *)
  1844. eval ac_cv_prog_make_${ac_make}_set=no;;
  1845. esac
  1846. rm -f conftest.make
  1847. fi
  1848. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1849. { echo "$as_me:$LINENO: result: yes" >&5
  1850. echo "${ECHO_T}yes" >&6; }
  1851. SET_MAKE=
  1852. else
  1853. { echo "$as_me:$LINENO: result: no" >&5
  1854. echo "${ECHO_T}no" >&6; }
  1855. SET_MAKE="MAKE=${MAKE-make}"
  1856. fi
  1857. rm -rf .tst 2>/dev/null
  1858. mkdir .tst 2>/dev/null
  1859. if test -d .tst; then
  1860. am__leading_dot=.
  1861. else
  1862. am__leading_dot=_
  1863. fi
  1864. rmdir .tst 2>/dev/null
  1865. # test to see if srcdir already configured
  1866. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1867. test -f $srcdir/config.status; then
  1868. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1869. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1870. { (exit 1); exit 1; }; }
  1871. fi
  1872. # test whether we have cygpath
  1873. if test -z "$CYGPATH_W"; then
  1874. if (cygpath --version) >/dev/null 2>/dev/null; then
  1875. CYGPATH_W='cygpath -w'
  1876. else
  1877. CYGPATH_W=echo
  1878. fi
  1879. fi
  1880. # Define the identity of the package.
  1881. PACKAGE='aria2c'
  1882. VERSION='0.9.0'
  1883. cat >>confdefs.h <<_ACEOF
  1884. #define PACKAGE "$PACKAGE"
  1885. _ACEOF
  1886. cat >>confdefs.h <<_ACEOF
  1887. #define VERSION "$VERSION"
  1888. _ACEOF
  1889. # Some tools Automake needs.
  1890. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1891. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1892. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1893. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1894. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1895. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1896. # Installed binaries are usually stripped using `strip' when the user
  1897. # run `make install-strip'. However `strip' might not be the right
  1898. # tool to use in cross-compilation environments, therefore Automake
  1899. # will honor the `STRIP' environment variable to overrule this program.
  1900. if test "$cross_compiling" != no; then
  1901. if test -n "$ac_tool_prefix"; then
  1902. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1903. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1904. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1905. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1906. if test "${ac_cv_prog_STRIP+set}" = set; then
  1907. echo $ECHO_N "(cached) $ECHO_C" >&6
  1908. else
  1909. if test -n "$STRIP"; then
  1910. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1911. else
  1912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1913. for as_dir in $PATH
  1914. do
  1915. IFS=$as_save_IFS
  1916. test -z "$as_dir" && as_dir=.
  1917. for ac_exec_ext in '' $ac_executable_extensions; do
  1918. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  1919. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1920. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1921. break 2
  1922. fi
  1923. done
  1924. done
  1925. IFS=$as_save_IFS
  1926. fi
  1927. fi
  1928. STRIP=$ac_cv_prog_STRIP
  1929. if test -n "$STRIP"; then
  1930. { echo "$as_me:$LINENO: result: $STRIP" >&5
  1931. echo "${ECHO_T}$STRIP" >&6; }
  1932. else
  1933. { echo "$as_me:$LINENO: result: no" >&5
  1934. echo "${ECHO_T}no" >&6; }
  1935. fi
  1936. fi
  1937. if test -z "$ac_cv_prog_STRIP"; then
  1938. ac_ct_STRIP=$STRIP
  1939. # Extract the first word of "strip", so it can be a program name with args.
  1940. set dummy strip; ac_word=$2
  1941. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1942. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1943. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1944. echo $ECHO_N "(cached) $ECHO_C" >&6
  1945. else
  1946. if test -n "$ac_ct_STRIP"; then
  1947. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1948. else
  1949. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1950. for as_dir in $PATH
  1951. do
  1952. IFS=$as_save_IFS
  1953. test -z "$as_dir" && as_dir=.
  1954. for ac_exec_ext in '' $ac_executable_extensions; do
  1955. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  1956. ac_cv_prog_ac_ct_STRIP="strip"
  1957. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1958. break 2
  1959. fi
  1960. done
  1961. done
  1962. IFS=$as_save_IFS
  1963. fi
  1964. fi
  1965. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1966. if test -n "$ac_ct_STRIP"; then
  1967. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1968. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  1969. else
  1970. { echo "$as_me:$LINENO: result: no" >&5
  1971. echo "${ECHO_T}no" >&6; }
  1972. fi
  1973. if test "x$ac_ct_STRIP" = x; then
  1974. STRIP=":"
  1975. else
  1976. case $cross_compiling:$ac_tool_warned in
  1977. yes:)
  1978. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1979. whose name does not start with the host triplet. If you think this
  1980. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1981. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1982. whose name does not start with the host triplet. If you think this
  1983. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1984. ac_tool_warned=yes ;;
  1985. esac
  1986. STRIP=$ac_ct_STRIP
  1987. fi
  1988. else
  1989. STRIP="$ac_cv_prog_STRIP"
  1990. fi
  1991. fi
  1992. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  1993. # We need awk for the "check" target. The system "awk" is bad on
  1994. # some platforms.
  1995. # Always define AMTAR for backward compatibility.
  1996. AMTAR=${AMTAR-"${am_missing_run}tar"}
  1997. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  1998. # Check whether --with-cppunit-prefix was given.
  1999. if test "${with_cppunit_prefix+set}" = set; then
  2000. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2001. else
  2002. cppunit_config_prefix=""
  2003. fi
  2004. # Check whether --with-cppunit-exec-prefix was given.
  2005. if test "${with_cppunit_exec_prefix+set}" = set; then
  2006. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2007. else
  2008. cppunit_config_exec_prefix=""
  2009. fi
  2010. if test x$cppunit_config_exec_prefix != x ; then
  2011. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2012. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2013. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2014. fi
  2015. fi
  2016. if test x$cppunit_config_prefix != x ; then
  2017. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2018. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2019. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2020. fi
  2021. fi
  2022. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2023. set dummy cppunit-config; ac_word=$2
  2024. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2025. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2026. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2027. echo $ECHO_N "(cached) $ECHO_C" >&6
  2028. else
  2029. case $CPPUNIT_CONFIG in
  2030. [\\/]* | ?:[\\/]*)
  2031. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2032. ;;
  2033. *)
  2034. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2035. for as_dir in $PATH
  2036. do
  2037. IFS=$as_save_IFS
  2038. test -z "$as_dir" && as_dir=.
  2039. for ac_exec_ext in '' $ac_executable_extensions; do
  2040. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2041. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2042. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2043. break 2
  2044. fi
  2045. done
  2046. done
  2047. IFS=$as_save_IFS
  2048. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2049. ;;
  2050. esac
  2051. fi
  2052. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2053. if test -n "$CPPUNIT_CONFIG"; then
  2054. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2055. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2056. else
  2057. { echo "$as_me:$LINENO: result: no" >&5
  2058. echo "${ECHO_T}no" >&6; }
  2059. fi
  2060. cppunit_version_min=1.10.2
  2061. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2062. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2063. no_cppunit=""
  2064. if test "$CPPUNIT_CONFIG" = "no" ; then
  2065. { echo "$as_me:$LINENO: result: no" >&5
  2066. echo "${ECHO_T}no" >&6; }
  2067. no_cppunit=yes
  2068. else
  2069. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2070. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2071. cppunit_version=`$CPPUNIT_CONFIG --version`
  2072. cppunit_major_version=`echo $cppunit_version | \
  2073. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2074. cppunit_minor_version=`echo $cppunit_version | \
  2075. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2076. cppunit_micro_version=`echo $cppunit_version | \
  2077. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2078. cppunit_major_min=`echo $cppunit_version_min | \
  2079. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2080. if test "x${cppunit_major_min}" = "x" ; then
  2081. cppunit_major_min=0
  2082. fi
  2083. cppunit_minor_min=`echo $cppunit_version_min | \
  2084. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2085. if test "x${cppunit_minor_min}" = "x" ; then
  2086. cppunit_minor_min=0
  2087. fi
  2088. cppunit_micro_min=`echo $cppunit_version_min | \
  2089. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2090. if test "x${cppunit_micro_min}" = "x" ; then
  2091. cppunit_micro_min=0
  2092. fi
  2093. cppunit_version_proper=`expr \
  2094. $cppunit_major_version \> $cppunit_major_min \| \
  2095. $cppunit_major_version \= $cppunit_major_min \& \
  2096. $cppunit_minor_version \> $cppunit_minor_min \| \
  2097. $cppunit_major_version \= $cppunit_major_min \& \
  2098. $cppunit_minor_version \= $cppunit_minor_min \& \
  2099. $cppunit_micro_version \>= $cppunit_micro_min `
  2100. if test "$cppunit_version_proper" = "1" ; then
  2101. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2102. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2103. else
  2104. { echo "$as_me:$LINENO: result: no" >&5
  2105. echo "${ECHO_T}no" >&6; }
  2106. no_cppunit=yes
  2107. fi
  2108. fi
  2109. if test "x$no_cppunit" = x ; then
  2110. :
  2111. else
  2112. CPPUNIT_CFLAGS=""
  2113. CPPUNIT_LIBS=""
  2114. :
  2115. fi
  2116. ac_config_headers="$ac_config_headers config.h"
  2117. # Set localedir
  2118. localedir=${datadir}/locale
  2119. # Checks for arguments.
  2120. # Check whether --with-gnutls was given.
  2121. if test "${with_gnutls+set}" = set; then
  2122. withval=$with_gnutls; with_gnutls=$withval
  2123. else
  2124. with_gnutls=yes
  2125. fi
  2126. # Check whether --with-openssl was given.
  2127. if test "${with_openssl+set}" = set; then
  2128. withval=$with_openssl; with_openssl=$withval
  2129. else
  2130. with_openssl=yes
  2131. fi
  2132. # Check whether --with-libxml2 was given.
  2133. if test "${with_libxml2+set}" = set; then
  2134. withval=$with_libxml2; with_libxml2=$withval
  2135. else
  2136. with_libxml2=yes
  2137. fi
  2138. # Check whether --with-libares was given.
  2139. if test "${with_libares+set}" = set; then
  2140. withval=$with_libares; with_libares=$withval
  2141. else
  2142. with_libares=yes
  2143. fi
  2144. # Check whether --with-libcares was given.
  2145. if test "${with_libcares+set}" = set; then
  2146. withval=$with_libcares; with_libcares=$withval
  2147. else
  2148. with_libcares=yes
  2149. fi
  2150. # Check whether --enable-bittorrent was given.
  2151. if test "${enable_bittorrent+set}" = set; then
  2152. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2153. else
  2154. enable_bittorrent=yes
  2155. fi
  2156. # Check whether --enable-metalink was given.
  2157. if test "${enable_metalink+set}" = set; then
  2158. enableval=$enable_metalink; enable_metalink=$enableval
  2159. else
  2160. enable_metalink=yes
  2161. fi
  2162. # Checks for programs.
  2163. ac_ext=cpp
  2164. ac_cpp='$CXXCPP $CPPFLAGS'
  2165. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2166. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2167. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2168. if test -z "$CXX"; then
  2169. if test -n "$CCC"; then
  2170. CXX=$CCC
  2171. else
  2172. if test -n "$ac_tool_prefix"; then
  2173. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2174. do
  2175. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2176. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2177. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2178. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2179. if test "${ac_cv_prog_CXX+set}" = set; then
  2180. echo $ECHO_N "(cached) $ECHO_C" >&6
  2181. else
  2182. if test -n "$CXX"; then
  2183. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2184. else
  2185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2186. for as_dir in $PATH
  2187. do
  2188. IFS=$as_save_IFS
  2189. test -z "$as_dir" && as_dir=.
  2190. for ac_exec_ext in '' $ac_executable_extensions; do
  2191. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2192. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2193. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2194. break 2
  2195. fi
  2196. done
  2197. done
  2198. IFS=$as_save_IFS
  2199. fi
  2200. fi
  2201. CXX=$ac_cv_prog_CXX
  2202. if test -n "$CXX"; then
  2203. { echo "$as_me:$LINENO: result: $CXX" >&5
  2204. echo "${ECHO_T}$CXX" >&6; }
  2205. else
  2206. { echo "$as_me:$LINENO: result: no" >&5
  2207. echo "${ECHO_T}no" >&6; }
  2208. fi
  2209. test -n "$CXX" && break
  2210. done
  2211. fi
  2212. if test -z "$CXX"; then
  2213. ac_ct_CXX=$CXX
  2214. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2215. do
  2216. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2217. set dummy $ac_prog; ac_word=$2
  2218. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2219. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2220. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2221. echo $ECHO_N "(cached) $ECHO_C" >&6
  2222. else
  2223. if test -n "$ac_ct_CXX"; then
  2224. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2225. else
  2226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2227. for as_dir in $PATH
  2228. do
  2229. IFS=$as_save_IFS
  2230. test -z "$as_dir" && as_dir=.
  2231. for ac_exec_ext in '' $ac_executable_extensions; do
  2232. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2233. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2234. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2235. break 2
  2236. fi
  2237. done
  2238. done
  2239. IFS=$as_save_IFS
  2240. fi
  2241. fi
  2242. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2243. if test -n "$ac_ct_CXX"; then
  2244. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2245. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2246. else
  2247. { echo "$as_me:$LINENO: result: no" >&5
  2248. echo "${ECHO_T}no" >&6; }
  2249. fi
  2250. test -n "$ac_ct_CXX" && break
  2251. done
  2252. if test "x$ac_ct_CXX" = x; then
  2253. CXX="g++"
  2254. else
  2255. case $cross_compiling:$ac_tool_warned in
  2256. yes:)
  2257. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2258. whose name does not start with the host triplet. If you think this
  2259. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2260. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2261. whose name does not start with the host triplet. If you think this
  2262. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2263. ac_tool_warned=yes ;;
  2264. esac
  2265. CXX=$ac_ct_CXX
  2266. fi
  2267. fi
  2268. fi
  2269. fi
  2270. # Provide some information about the compiler.
  2271. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2272. ac_compiler=`set X $ac_compile; echo $2`
  2273. { (ac_try="$ac_compiler --version >&5"
  2274. case "(($ac_try" in
  2275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2276. *) ac_try_echo=$ac_try;;
  2277. esac
  2278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2279. (eval "$ac_compiler --version >&5") 2>&5
  2280. ac_status=$?
  2281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2282. (exit $ac_status); }
  2283. { (ac_try="$ac_compiler -v >&5"
  2284. case "(($ac_try" in
  2285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2286. *) ac_try_echo=$ac_try;;
  2287. esac
  2288. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2289. (eval "$ac_compiler -v >&5") 2>&5
  2290. ac_status=$?
  2291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2292. (exit $ac_status); }
  2293. { (ac_try="$ac_compiler -V >&5"
  2294. case "(($ac_try" in
  2295. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2296. *) ac_try_echo=$ac_try;;
  2297. esac
  2298. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2299. (eval "$ac_compiler -V >&5") 2>&5
  2300. ac_status=$?
  2301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2302. (exit $ac_status); }
  2303. cat >conftest.$ac_ext <<_ACEOF
  2304. /* confdefs.h. */
  2305. _ACEOF
  2306. cat confdefs.h >>conftest.$ac_ext
  2307. cat >>conftest.$ac_ext <<_ACEOF
  2308. /* end confdefs.h. */
  2309. int
  2310. main ()
  2311. {
  2312. ;
  2313. return 0;
  2314. }
  2315. _ACEOF
  2316. ac_clean_files_save=$ac_clean_files
  2317. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2318. # Try to create an executable without -o first, disregard a.out.
  2319. # It will help us diagnose broken compilers, and finding out an intuition
  2320. # of exeext.
  2321. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2322. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2323. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2324. #
  2325. # List of possible output files, starting from the most likely.
  2326. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2327. # only as a last resort. b.out is created by i960 compilers.
  2328. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2329. #
  2330. # The IRIX 6 linker writes into existing files which may not be
  2331. # executable, retaining their permissions. Remove them first so a
  2332. # subsequent execution test works.
  2333. ac_rmfiles=
  2334. for ac_file in $ac_files
  2335. do
  2336. case $ac_file in
  2337. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2338. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2339. esac
  2340. done
  2341. rm -f $ac_rmfiles
  2342. if { (ac_try="$ac_link_default"
  2343. case "(($ac_try" in
  2344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2345. *) ac_try_echo=$ac_try;;
  2346. esac
  2347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2348. (eval "$ac_link_default") 2>&5
  2349. ac_status=$?
  2350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2351. (exit $ac_status); }; then
  2352. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2353. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2354. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2355. # so that the user can short-circuit this test for compilers unknown to
  2356. # Autoconf.
  2357. for ac_file in $ac_files ''
  2358. do
  2359. test -f "$ac_file" || continue
  2360. case $ac_file in
  2361. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2362. ;;
  2363. [ab].out )
  2364. # We found the default executable, but exeext='' is most
  2365. # certainly right.
  2366. break;;
  2367. *.* )
  2368. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2369. then :; else
  2370. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2371. fi
  2372. # We set ac_cv_exeext here because the later test for it is not
  2373. # safe: cross compilers may not add the suffix if given an `-o'
  2374. # argument, so we may need to know it at that point already.
  2375. # Even if this section looks crufty: it has the advantage of
  2376. # actually working.
  2377. break;;
  2378. * )
  2379. break;;
  2380. esac
  2381. done
  2382. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2383. else
  2384. ac_file=''
  2385. fi
  2386. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2387. echo "${ECHO_T}$ac_file" >&6; }
  2388. if test -z "$ac_file"; then
  2389. echo "$as_me: failed program was:" >&5
  2390. sed 's/^/| /' conftest.$ac_ext >&5
  2391. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2392. See \`config.log' for more details." >&5
  2393. echo "$as_me: error: C++ compiler cannot create executables
  2394. See \`config.log' for more details." >&2;}
  2395. { (exit 77); exit 77; }; }
  2396. fi
  2397. ac_exeext=$ac_cv_exeext
  2398. # Check that the compiler produces executables we can run. If not, either
  2399. # the compiler is broken, or we cross compile.
  2400. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2401. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2402. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2403. # If not cross compiling, check that we can run a simple program.
  2404. if test "$cross_compiling" != yes; then
  2405. if { ac_try='./$ac_file'
  2406. { (case "(($ac_try" in
  2407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2408. *) ac_try_echo=$ac_try;;
  2409. esac
  2410. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2411. (eval "$ac_try") 2>&5
  2412. ac_status=$?
  2413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2414. (exit $ac_status); }; }; then
  2415. cross_compiling=no
  2416. else
  2417. if test "$cross_compiling" = maybe; then
  2418. cross_compiling=yes
  2419. else
  2420. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2421. If you meant to cross compile, use \`--host'.
  2422. See \`config.log' for more details." >&5
  2423. echo "$as_me: error: cannot run C++ compiled programs.
  2424. If you meant to cross compile, use \`--host'.
  2425. See \`config.log' for more details." >&2;}
  2426. { (exit 1); exit 1; }; }
  2427. fi
  2428. fi
  2429. fi
  2430. { echo "$as_me:$LINENO: result: yes" >&5
  2431. echo "${ECHO_T}yes" >&6; }
  2432. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2433. ac_clean_files=$ac_clean_files_save
  2434. # Check that the compiler produces executables we can run. If not, either
  2435. # the compiler is broken, or we cross compile.
  2436. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2437. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2438. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2439. echo "${ECHO_T}$cross_compiling" >&6; }
  2440. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2441. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2442. if { (ac_try="$ac_link"
  2443. case "(($ac_try" in
  2444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2445. *) ac_try_echo=$ac_try;;
  2446. esac
  2447. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2448. (eval "$ac_link") 2>&5
  2449. ac_status=$?
  2450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2451. (exit $ac_status); }; then
  2452. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2453. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2454. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2455. # `rm'.
  2456. for ac_file in conftest.exe conftest conftest.*; do
  2457. test -f "$ac_file" || continue
  2458. case $ac_file in
  2459. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2460. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2461. break;;
  2462. * ) break;;
  2463. esac
  2464. done
  2465. else
  2466. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2467. See \`config.log' for more details." >&5
  2468. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2469. See \`config.log' for more details." >&2;}
  2470. { (exit 1); exit 1; }; }
  2471. fi
  2472. rm -f conftest$ac_cv_exeext
  2473. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2474. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2475. rm -f conftest.$ac_ext
  2476. EXEEXT=$ac_cv_exeext
  2477. ac_exeext=$EXEEXT
  2478. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2479. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2480. if test "${ac_cv_objext+set}" = set; then
  2481. echo $ECHO_N "(cached) $ECHO_C" >&6
  2482. else
  2483. cat >conftest.$ac_ext <<_ACEOF
  2484. /* confdefs.h. */
  2485. _ACEOF
  2486. cat confdefs.h >>conftest.$ac_ext
  2487. cat >>conftest.$ac_ext <<_ACEOF
  2488. /* end confdefs.h. */
  2489. int
  2490. main ()
  2491. {
  2492. ;
  2493. return 0;
  2494. }
  2495. _ACEOF
  2496. rm -f conftest.o conftest.obj
  2497. if { (ac_try="$ac_compile"
  2498. case "(($ac_try" in
  2499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2500. *) ac_try_echo=$ac_try;;
  2501. esac
  2502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2503. (eval "$ac_compile") 2>&5
  2504. ac_status=$?
  2505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2506. (exit $ac_status); }; then
  2507. for ac_file in conftest.o conftest.obj conftest.*; do
  2508. test -f "$ac_file" || continue;
  2509. case $ac_file in
  2510. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2511. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2512. break;;
  2513. esac
  2514. done
  2515. else
  2516. echo "$as_me: failed program was:" >&5
  2517. sed 's/^/| /' conftest.$ac_ext >&5
  2518. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2519. See \`config.log' for more details." >&5
  2520. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2521. See \`config.log' for more details." >&2;}
  2522. { (exit 1); exit 1; }; }
  2523. fi
  2524. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2525. fi
  2526. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2527. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2528. OBJEXT=$ac_cv_objext
  2529. ac_objext=$OBJEXT
  2530. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2531. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2532. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2533. echo $ECHO_N "(cached) $ECHO_C" >&6
  2534. else
  2535. cat >conftest.$ac_ext <<_ACEOF
  2536. /* confdefs.h. */
  2537. _ACEOF
  2538. cat confdefs.h >>conftest.$ac_ext
  2539. cat >>conftest.$ac_ext <<_ACEOF
  2540. /* end confdefs.h. */
  2541. int
  2542. main ()
  2543. {
  2544. #ifndef __GNUC__
  2545. choke me
  2546. #endif
  2547. ;
  2548. return 0;
  2549. }
  2550. _ACEOF
  2551. rm -f conftest.$ac_objext
  2552. if { (ac_try="$ac_compile"
  2553. case "(($ac_try" in
  2554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2555. *) ac_try_echo=$ac_try;;
  2556. esac
  2557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2558. (eval "$ac_compile") 2>conftest.er1
  2559. ac_status=$?
  2560. grep -v '^ *+' conftest.er1 >conftest.err
  2561. rm -f conftest.er1
  2562. cat conftest.err >&5
  2563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2564. (exit $ac_status); } &&
  2565. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2566. { (case "(($ac_try" in
  2567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2568. *) ac_try_echo=$ac_try;;
  2569. esac
  2570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2571. (eval "$ac_try") 2>&5
  2572. ac_status=$?
  2573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2574. (exit $ac_status); }; } &&
  2575. { ac_try='test -s conftest.$ac_objext'
  2576. { (case "(($ac_try" in
  2577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2578. *) ac_try_echo=$ac_try;;
  2579. esac
  2580. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2581. (eval "$ac_try") 2>&5
  2582. ac_status=$?
  2583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2584. (exit $ac_status); }; }; then
  2585. ac_compiler_gnu=yes
  2586. else
  2587. echo "$as_me: failed program was:" >&5
  2588. sed 's/^/| /' conftest.$ac_ext >&5
  2589. ac_compiler_gnu=no
  2590. fi
  2591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2592. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2593. fi
  2594. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2595. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2596. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2597. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2598. ac_save_CXXFLAGS=$CXXFLAGS
  2599. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2600. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2601. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2602. echo $ECHO_N "(cached) $ECHO_C" >&6
  2603. else
  2604. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2605. ac_cxx_werror_flag=yes
  2606. ac_cv_prog_cxx_g=no
  2607. CXXFLAGS="-g"
  2608. cat >conftest.$ac_ext <<_ACEOF
  2609. /* confdefs.h. */
  2610. _ACEOF
  2611. cat confdefs.h >>conftest.$ac_ext
  2612. cat >>conftest.$ac_ext <<_ACEOF
  2613. /* end confdefs.h. */
  2614. int
  2615. main ()
  2616. {
  2617. ;
  2618. return 0;
  2619. }
  2620. _ACEOF
  2621. rm -f conftest.$ac_objext
  2622. if { (ac_try="$ac_compile"
  2623. case "(($ac_try" in
  2624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2625. *) ac_try_echo=$ac_try;;
  2626. esac
  2627. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2628. (eval "$ac_compile") 2>conftest.er1
  2629. ac_status=$?
  2630. grep -v '^ *+' conftest.er1 >conftest.err
  2631. rm -f conftest.er1
  2632. cat conftest.err >&5
  2633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2634. (exit $ac_status); } &&
  2635. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2636. { (case "(($ac_try" in
  2637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2638. *) ac_try_echo=$ac_try;;
  2639. esac
  2640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2641. (eval "$ac_try") 2>&5
  2642. ac_status=$?
  2643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2644. (exit $ac_status); }; } &&
  2645. { ac_try='test -s conftest.$ac_objext'
  2646. { (case "(($ac_try" in
  2647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2648. *) ac_try_echo=$ac_try;;
  2649. esac
  2650. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2651. (eval "$ac_try") 2>&5
  2652. ac_status=$?
  2653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2654. (exit $ac_status); }; }; then
  2655. ac_cv_prog_cxx_g=yes
  2656. else
  2657. echo "$as_me: failed program was:" >&5
  2658. sed 's/^/| /' conftest.$ac_ext >&5
  2659. CXXFLAGS=""
  2660. cat >conftest.$ac_ext <<_ACEOF
  2661. /* confdefs.h. */
  2662. _ACEOF
  2663. cat confdefs.h >>conftest.$ac_ext
  2664. cat >>conftest.$ac_ext <<_ACEOF
  2665. /* end confdefs.h. */
  2666. int
  2667. main ()
  2668. {
  2669. ;
  2670. return 0;
  2671. }
  2672. _ACEOF
  2673. rm -f conftest.$ac_objext
  2674. if { (ac_try="$ac_compile"
  2675. case "(($ac_try" in
  2676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2677. *) ac_try_echo=$ac_try;;
  2678. esac
  2679. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2680. (eval "$ac_compile") 2>conftest.er1
  2681. ac_status=$?
  2682. grep -v '^ *+' conftest.er1 >conftest.err
  2683. rm -f conftest.er1
  2684. cat conftest.err >&5
  2685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2686. (exit $ac_status); } &&
  2687. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2688. { (case "(($ac_try" in
  2689. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2690. *) ac_try_echo=$ac_try;;
  2691. esac
  2692. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2693. (eval "$ac_try") 2>&5
  2694. ac_status=$?
  2695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2696. (exit $ac_status); }; } &&
  2697. { ac_try='test -s conftest.$ac_objext'
  2698. { (case "(($ac_try" in
  2699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2700. *) ac_try_echo=$ac_try;;
  2701. esac
  2702. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2703. (eval "$ac_try") 2>&5
  2704. ac_status=$?
  2705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2706. (exit $ac_status); }; }; then
  2707. :
  2708. else
  2709. echo "$as_me: failed program was:" >&5
  2710. sed 's/^/| /' conftest.$ac_ext >&5
  2711. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2712. CXXFLAGS="-g"
  2713. cat >conftest.$ac_ext <<_ACEOF
  2714. /* confdefs.h. */
  2715. _ACEOF
  2716. cat confdefs.h >>conftest.$ac_ext
  2717. cat >>conftest.$ac_ext <<_ACEOF
  2718. /* end confdefs.h. */
  2719. int
  2720. main ()
  2721. {
  2722. ;
  2723. return 0;
  2724. }
  2725. _ACEOF
  2726. rm -f conftest.$ac_objext
  2727. if { (ac_try="$ac_compile"
  2728. case "(($ac_try" in
  2729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2730. *) ac_try_echo=$ac_try;;
  2731. esac
  2732. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2733. (eval "$ac_compile") 2>conftest.er1
  2734. ac_status=$?
  2735. grep -v '^ *+' conftest.er1 >conftest.err
  2736. rm -f conftest.er1
  2737. cat conftest.err >&5
  2738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2739. (exit $ac_status); } &&
  2740. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2741. { (case "(($ac_try" in
  2742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2743. *) ac_try_echo=$ac_try;;
  2744. esac
  2745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2746. (eval "$ac_try") 2>&5
  2747. ac_status=$?
  2748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2749. (exit $ac_status); }; } &&
  2750. { ac_try='test -s conftest.$ac_objext'
  2751. { (case "(($ac_try" in
  2752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2753. *) ac_try_echo=$ac_try;;
  2754. esac
  2755. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2756. (eval "$ac_try") 2>&5
  2757. ac_status=$?
  2758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2759. (exit $ac_status); }; }; then
  2760. ac_cv_prog_cxx_g=yes
  2761. else
  2762. echo "$as_me: failed program was:" >&5
  2763. sed 's/^/| /' conftest.$ac_ext >&5
  2764. fi
  2765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2766. fi
  2767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2768. fi
  2769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2770. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2771. fi
  2772. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2773. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2774. if test "$ac_test_CXXFLAGS" = set; then
  2775. CXXFLAGS=$ac_save_CXXFLAGS
  2776. elif test $ac_cv_prog_cxx_g = yes; then
  2777. if test "$GXX" = yes; then
  2778. CXXFLAGS="-g -O2"
  2779. else
  2780. CXXFLAGS="-g"
  2781. fi
  2782. else
  2783. if test "$GXX" = yes; then
  2784. CXXFLAGS="-O2"
  2785. else
  2786. CXXFLAGS=
  2787. fi
  2788. fi
  2789. ac_ext=c
  2790. ac_cpp='$CPP $CPPFLAGS'
  2791. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2792. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2793. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2794. DEPDIR="${am__leading_dot}deps"
  2795. ac_config_commands="$ac_config_commands depfiles"
  2796. am_make=${MAKE-make}
  2797. cat > confinc << 'END'
  2798. am__doit:
  2799. @echo done
  2800. .PHONY: am__doit
  2801. END
  2802. # If we don't find an include directive, just comment out the code.
  2803. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2804. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2805. am__include="#"
  2806. am__quote=
  2807. _am_result=none
  2808. # First try GNU make style include.
  2809. echo "include confinc" > confmf
  2810. # We grep out `Entering directory' and `Leaving directory'
  2811. # messages which can occur if `w' ends up in MAKEFLAGS.
  2812. # In particular we don't look at `^make:' because GNU make might
  2813. # be invoked under some other name (usually "gmake"), in which
  2814. # case it prints its new name instead of `make'.
  2815. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2816. am__include=include
  2817. am__quote=
  2818. _am_result=GNU
  2819. fi
  2820. # Now try BSD make style include.
  2821. if test "$am__include" = "#"; then
  2822. echo '.include "confinc"' > confmf
  2823. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2824. am__include=.include
  2825. am__quote="\""
  2826. _am_result=BSD
  2827. fi
  2828. fi
  2829. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2830. echo "${ECHO_T}$_am_result" >&6; }
  2831. rm -f confinc confmf
  2832. # Check whether --enable-dependency-tracking was given.
  2833. if test "${enable_dependency_tracking+set}" = set; then
  2834. enableval=$enable_dependency_tracking;
  2835. fi
  2836. if test "x$enable_dependency_tracking" != xno; then
  2837. am_depcomp="$ac_aux_dir/depcomp"
  2838. AMDEPBACKSLASH='\'
  2839. fi
  2840. if test "x$enable_dependency_tracking" != xno; then
  2841. AMDEP_TRUE=
  2842. AMDEP_FALSE='#'
  2843. else
  2844. AMDEP_TRUE='#'
  2845. AMDEP_FALSE=
  2846. fi
  2847. depcc="$CXX" am_compiler_list=
  2848. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2849. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2850. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2851. echo $ECHO_N "(cached) $ECHO_C" >&6
  2852. else
  2853. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2854. # We make a subdir and do the tests there. Otherwise we can end up
  2855. # making bogus files that we don't know about and never remove. For
  2856. # instance it was reported that on HP-UX the gcc test will end up
  2857. # making a dummy file named `D' -- because `-MD' means `put the output
  2858. # in D'.
  2859. mkdir conftest.dir
  2860. # Copy depcomp to subdir because otherwise we won't find it if we're
  2861. # using a relative directory.
  2862. cp "$am_depcomp" conftest.dir
  2863. cd conftest.dir
  2864. # We will build objects and dependencies in a subdirectory because
  2865. # it helps to detect inapplicable dependency modes. For instance
  2866. # both Tru64's cc and ICC support -MD to output dependencies as a
  2867. # side effect of compilation, but ICC will put the dependencies in
  2868. # the current directory while Tru64 will put them in the object
  2869. # directory.
  2870. mkdir sub
  2871. am_cv_CXX_dependencies_compiler_type=none
  2872. if test "$am_compiler_list" = ""; then
  2873. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2874. fi
  2875. for depmode in $am_compiler_list; do
  2876. # Setup a source with many dependencies, because some compilers
  2877. # like to wrap large dependency lists on column 80 (with \), and
  2878. # we should not choose a depcomp mode which is confused by this.
  2879. #
  2880. # We need to recreate these files for each test, as the compiler may
  2881. # overwrite some of them when testing with obscure command lines.
  2882. # This happens at least with the AIX C compiler.
  2883. : > sub/conftest.c
  2884. for i in 1 2 3 4 5 6; do
  2885. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2886. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2887. # Solaris 8's {/usr,}/bin/sh.
  2888. touch sub/conftst$i.h
  2889. done
  2890. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2891. case $depmode in
  2892. nosideeffect)
  2893. # after this tag, mechanisms are not by side-effect, so they'll
  2894. # only be used when explicitly requested
  2895. if test "x$enable_dependency_tracking" = xyes; then
  2896. continue
  2897. else
  2898. break
  2899. fi
  2900. ;;
  2901. none) break ;;
  2902. esac
  2903. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2904. # mode. It turns out that the SunPro C++ compiler does not properly
  2905. # handle `-M -o', and we need to detect this.
  2906. if depmode=$depmode \
  2907. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2908. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2909. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2910. >/dev/null 2>conftest.err &&
  2911. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2912. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2913. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2914. # icc doesn't choke on unknown options, it will just issue warnings
  2915. # or remarks (even with -Werror). So we grep stderr for any message
  2916. # that says an option was ignored or not supported.
  2917. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2918. # icc: Command line warning: ignoring option '-M'; no argument required
  2919. # The diagnosis changed in icc 8.0:
  2920. # icc: Command line remark: option '-MP' not supported
  2921. if (grep 'ignoring option' conftest.err ||
  2922. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2923. am_cv_CXX_dependencies_compiler_type=$depmode
  2924. break
  2925. fi
  2926. fi
  2927. done
  2928. cd ..
  2929. rm -rf conftest.dir
  2930. else
  2931. am_cv_CXX_dependencies_compiler_type=none
  2932. fi
  2933. fi
  2934. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2935. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  2936. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2937. if
  2938. test "x$enable_dependency_tracking" != xno \
  2939. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2940. am__fastdepCXX_TRUE=
  2941. am__fastdepCXX_FALSE='#'
  2942. else
  2943. am__fastdepCXX_TRUE='#'
  2944. am__fastdepCXX_FALSE=
  2945. fi
  2946. ac_ext=c
  2947. ac_cpp='$CPP $CPPFLAGS'
  2948. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2949. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2950. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2951. if test -n "$ac_tool_prefix"; then
  2952. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2953. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2954. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2955. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2956. if test "${ac_cv_prog_CC+set}" = set; then
  2957. echo $ECHO_N "(cached) $ECHO_C" >&6
  2958. else
  2959. if test -n "$CC"; then
  2960. ac_cv_prog_CC="$CC" # Let the user override the test.
  2961. else
  2962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2963. for as_dir in $PATH
  2964. do
  2965. IFS=$as_save_IFS
  2966. test -z "$as_dir" && as_dir=.
  2967. for ac_exec_ext in '' $ac_executable_extensions; do
  2968. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  2969. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2970. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2971. break 2
  2972. fi
  2973. done
  2974. done
  2975. IFS=$as_save_IFS
  2976. fi
  2977. fi
  2978. CC=$ac_cv_prog_CC
  2979. if test -n "$CC"; then
  2980. { echo "$as_me:$LINENO: result: $CC" >&5
  2981. echo "${ECHO_T}$CC" >&6; }
  2982. else
  2983. { echo "$as_me:$LINENO: result: no" >&5
  2984. echo "${ECHO_T}no" >&6; }
  2985. fi
  2986. fi
  2987. if test -z "$ac_cv_prog_CC"; then
  2988. ac_ct_CC=$CC
  2989. # Extract the first word of "gcc", so it can be a program name with args.
  2990. set dummy gcc; ac_word=$2
  2991. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2992. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2993. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2994. echo $ECHO_N "(cached) $ECHO_C" >&6
  2995. else
  2996. if test -n "$ac_ct_CC"; then
  2997. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2998. else
  2999. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3000. for as_dir in $PATH
  3001. do
  3002. IFS=$as_save_IFS
  3003. test -z "$as_dir" && as_dir=.
  3004. for ac_exec_ext in '' $ac_executable_extensions; do
  3005. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3006. ac_cv_prog_ac_ct_CC="gcc"
  3007. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3008. break 2
  3009. fi
  3010. done
  3011. done
  3012. IFS=$as_save_IFS
  3013. fi
  3014. fi
  3015. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3016. if test -n "$ac_ct_CC"; then
  3017. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3018. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3019. else
  3020. { echo "$as_me:$LINENO: result: no" >&5
  3021. echo "${ECHO_T}no" >&6; }
  3022. fi
  3023. if test "x$ac_ct_CC" = x; then
  3024. CC=""
  3025. else
  3026. case $cross_compiling:$ac_tool_warned in
  3027. yes:)
  3028. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3029. whose name does not start with the host triplet. If you think this
  3030. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3031. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3032. whose name does not start with the host triplet. If you think this
  3033. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3034. ac_tool_warned=yes ;;
  3035. esac
  3036. CC=$ac_ct_CC
  3037. fi
  3038. else
  3039. CC="$ac_cv_prog_CC"
  3040. fi
  3041. if test -z "$CC"; then
  3042. if test -n "$ac_tool_prefix"; then
  3043. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3044. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3045. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3046. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3047. if test "${ac_cv_prog_CC+set}" = set; then
  3048. echo $ECHO_N "(cached) $ECHO_C" >&6
  3049. else
  3050. if test -n "$CC"; then
  3051. ac_cv_prog_CC="$CC" # Let the user override the test.
  3052. else
  3053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3054. for as_dir in $PATH
  3055. do
  3056. IFS=$as_save_IFS
  3057. test -z "$as_dir" && as_dir=.
  3058. for ac_exec_ext in '' $ac_executable_extensions; do
  3059. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3060. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3061. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3062. break 2
  3063. fi
  3064. done
  3065. done
  3066. IFS=$as_save_IFS
  3067. fi
  3068. fi
  3069. CC=$ac_cv_prog_CC
  3070. if test -n "$CC"; then
  3071. { echo "$as_me:$LINENO: result: $CC" >&5
  3072. echo "${ECHO_T}$CC" >&6; }
  3073. else
  3074. { echo "$as_me:$LINENO: result: no" >&5
  3075. echo "${ECHO_T}no" >&6; }
  3076. fi
  3077. fi
  3078. fi
  3079. if test -z "$CC"; then
  3080. # Extract the first word of "cc", so it can be a program name with args.
  3081. set dummy cc; ac_word=$2
  3082. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3083. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3084. if test "${ac_cv_prog_CC+set}" = set; then
  3085. echo $ECHO_N "(cached) $ECHO_C" >&6
  3086. else
  3087. if test -n "$CC"; then
  3088. ac_cv_prog_CC="$CC" # Let the user override the test.
  3089. else
  3090. ac_prog_rejected=no
  3091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3092. for as_dir in $PATH
  3093. do
  3094. IFS=$as_save_IFS
  3095. test -z "$as_dir" && as_dir=.
  3096. for ac_exec_ext in '' $ac_executable_extensions; do
  3097. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3098. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3099. ac_prog_rejected=yes
  3100. continue
  3101. fi
  3102. ac_cv_prog_CC="cc"
  3103. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3104. break 2
  3105. fi
  3106. done
  3107. done
  3108. IFS=$as_save_IFS
  3109. if test $ac_prog_rejected = yes; then
  3110. # We found a bogon in the path, so make sure we never use it.
  3111. set dummy $ac_cv_prog_CC
  3112. shift
  3113. if test $# != 0; then
  3114. # We chose a different compiler from the bogus one.
  3115. # However, it has the same basename, so the bogon will be chosen
  3116. # first if we set CC to just the basename; use the full file name.
  3117. shift
  3118. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3119. fi
  3120. fi
  3121. fi
  3122. fi
  3123. CC=$ac_cv_prog_CC
  3124. if test -n "$CC"; then
  3125. { echo "$as_me:$LINENO: result: $CC" >&5
  3126. echo "${ECHO_T}$CC" >&6; }
  3127. else
  3128. { echo "$as_me:$LINENO: result: no" >&5
  3129. echo "${ECHO_T}no" >&6; }
  3130. fi
  3131. fi
  3132. if test -z "$CC"; then
  3133. if test -n "$ac_tool_prefix"; then
  3134. for ac_prog in cl.exe
  3135. do
  3136. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3137. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3138. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3139. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3140. if test "${ac_cv_prog_CC+set}" = set; then
  3141. echo $ECHO_N "(cached) $ECHO_C" >&6
  3142. else
  3143. if test -n "$CC"; then
  3144. ac_cv_prog_CC="$CC" # Let the user override the test.
  3145. else
  3146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3147. for as_dir in $PATH
  3148. do
  3149. IFS=$as_save_IFS
  3150. test -z "$as_dir" && as_dir=.
  3151. for ac_exec_ext in '' $ac_executable_extensions; do
  3152. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3153. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3154. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3155. break 2
  3156. fi
  3157. done
  3158. done
  3159. IFS=$as_save_IFS
  3160. fi
  3161. fi
  3162. CC=$ac_cv_prog_CC
  3163. if test -n "$CC"; then
  3164. { echo "$as_me:$LINENO: result: $CC" >&5
  3165. echo "${ECHO_T}$CC" >&6; }
  3166. else
  3167. { echo "$as_me:$LINENO: result: no" >&5
  3168. echo "${ECHO_T}no" >&6; }
  3169. fi
  3170. test -n "$CC" && break
  3171. done
  3172. fi
  3173. if test -z "$CC"; then
  3174. ac_ct_CC=$CC
  3175. for ac_prog in cl.exe
  3176. do
  3177. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3178. set dummy $ac_prog; ac_word=$2
  3179. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3180. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3181. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3182. echo $ECHO_N "(cached) $ECHO_C" >&6
  3183. else
  3184. if test -n "$ac_ct_CC"; then
  3185. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3186. else
  3187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3188. for as_dir in $PATH
  3189. do
  3190. IFS=$as_save_IFS
  3191. test -z "$as_dir" && as_dir=.
  3192. for ac_exec_ext in '' $ac_executable_extensions; do
  3193. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  3194. ac_cv_prog_ac_ct_CC="$ac_prog"
  3195. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3196. break 2
  3197. fi
  3198. done
  3199. done
  3200. IFS=$as_save_IFS
  3201. fi
  3202. fi
  3203. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3204. if test -n "$ac_ct_CC"; then
  3205. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3206. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3207. else
  3208. { echo "$as_me:$LINENO: result: no" >&5
  3209. echo "${ECHO_T}no" >&6; }
  3210. fi
  3211. test -n "$ac_ct_CC" && break
  3212. done
  3213. if test "x$ac_ct_CC" = x; then
  3214. CC=""
  3215. else
  3216. case $cross_compiling:$ac_tool_warned in
  3217. yes:)
  3218. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3219. whose name does not start with the host triplet. If you think this
  3220. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3221. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3222. whose name does not start with the host triplet. If you think this
  3223. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3224. ac_tool_warned=yes ;;
  3225. esac
  3226. CC=$ac_ct_CC
  3227. fi
  3228. fi
  3229. fi
  3230. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3231. See \`config.log' for more details." >&5
  3232. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3233. See \`config.log' for more details." >&2;}
  3234. { (exit 1); exit 1; }; }
  3235. # Provide some information about the compiler.
  3236. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3237. ac_compiler=`set X $ac_compile; echo $2`
  3238. { (ac_try="$ac_compiler --version >&5"
  3239. case "(($ac_try" in
  3240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3241. *) ac_try_echo=$ac_try;;
  3242. esac
  3243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3244. (eval "$ac_compiler --version >&5") 2>&5
  3245. ac_status=$?
  3246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3247. (exit $ac_status); }
  3248. { (ac_try="$ac_compiler -v >&5"
  3249. case "(($ac_try" in
  3250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3251. *) ac_try_echo=$ac_try;;
  3252. esac
  3253. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3254. (eval "$ac_compiler -v >&5") 2>&5
  3255. ac_status=$?
  3256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3257. (exit $ac_status); }
  3258. { (ac_try="$ac_compiler -V >&5"
  3259. case "(($ac_try" in
  3260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3261. *) ac_try_echo=$ac_try;;
  3262. esac
  3263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3264. (eval "$ac_compiler -V >&5") 2>&5
  3265. ac_status=$?
  3266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3267. (exit $ac_status); }
  3268. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3269. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3270. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3271. echo $ECHO_N "(cached) $ECHO_C" >&6
  3272. else
  3273. cat >conftest.$ac_ext <<_ACEOF
  3274. /* confdefs.h. */
  3275. _ACEOF
  3276. cat confdefs.h >>conftest.$ac_ext
  3277. cat >>conftest.$ac_ext <<_ACEOF
  3278. /* end confdefs.h. */
  3279. int
  3280. main ()
  3281. {
  3282. #ifndef __GNUC__
  3283. choke me
  3284. #endif
  3285. ;
  3286. return 0;
  3287. }
  3288. _ACEOF
  3289. rm -f conftest.$ac_objext
  3290. if { (ac_try="$ac_compile"
  3291. case "(($ac_try" in
  3292. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3293. *) ac_try_echo=$ac_try;;
  3294. esac
  3295. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3296. (eval "$ac_compile") 2>conftest.er1
  3297. ac_status=$?
  3298. grep -v '^ *+' conftest.er1 >conftest.err
  3299. rm -f conftest.er1
  3300. cat conftest.err >&5
  3301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3302. (exit $ac_status); } &&
  3303. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3304. { (case "(($ac_try" in
  3305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3306. *) ac_try_echo=$ac_try;;
  3307. esac
  3308. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3309. (eval "$ac_try") 2>&5
  3310. ac_status=$?
  3311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3312. (exit $ac_status); }; } &&
  3313. { ac_try='test -s conftest.$ac_objext'
  3314. { (case "(($ac_try" in
  3315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3316. *) ac_try_echo=$ac_try;;
  3317. esac
  3318. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3319. (eval "$ac_try") 2>&5
  3320. ac_status=$?
  3321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3322. (exit $ac_status); }; }; then
  3323. ac_compiler_gnu=yes
  3324. else
  3325. echo "$as_me: failed program was:" >&5
  3326. sed 's/^/| /' conftest.$ac_ext >&5
  3327. ac_compiler_gnu=no
  3328. fi
  3329. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3330. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3331. fi
  3332. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3333. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3334. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3335. ac_test_CFLAGS=${CFLAGS+set}
  3336. ac_save_CFLAGS=$CFLAGS
  3337. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3338. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3339. if test "${ac_cv_prog_cc_g+set}" = set; then
  3340. echo $ECHO_N "(cached) $ECHO_C" >&6
  3341. else
  3342. ac_save_c_werror_flag=$ac_c_werror_flag
  3343. ac_c_werror_flag=yes
  3344. ac_cv_prog_cc_g=no
  3345. CFLAGS="-g"
  3346. cat >conftest.$ac_ext <<_ACEOF
  3347. /* confdefs.h. */
  3348. _ACEOF
  3349. cat confdefs.h >>conftest.$ac_ext
  3350. cat >>conftest.$ac_ext <<_ACEOF
  3351. /* end confdefs.h. */
  3352. int
  3353. main ()
  3354. {
  3355. ;
  3356. return 0;
  3357. }
  3358. _ACEOF
  3359. rm -f conftest.$ac_objext
  3360. if { (ac_try="$ac_compile"
  3361. case "(($ac_try" in
  3362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3363. *) ac_try_echo=$ac_try;;
  3364. esac
  3365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3366. (eval "$ac_compile") 2>conftest.er1
  3367. ac_status=$?
  3368. grep -v '^ *+' conftest.er1 >conftest.err
  3369. rm -f conftest.er1
  3370. cat conftest.err >&5
  3371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3372. (exit $ac_status); } &&
  3373. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3374. { (case "(($ac_try" in
  3375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3376. *) ac_try_echo=$ac_try;;
  3377. esac
  3378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3379. (eval "$ac_try") 2>&5
  3380. ac_status=$?
  3381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3382. (exit $ac_status); }; } &&
  3383. { ac_try='test -s conftest.$ac_objext'
  3384. { (case "(($ac_try" in
  3385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3386. *) ac_try_echo=$ac_try;;
  3387. esac
  3388. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3389. (eval "$ac_try") 2>&5
  3390. ac_status=$?
  3391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392. (exit $ac_status); }; }; then
  3393. ac_cv_prog_cc_g=yes
  3394. else
  3395. echo "$as_me: failed program was:" >&5
  3396. sed 's/^/| /' conftest.$ac_ext >&5
  3397. CFLAGS=""
  3398. cat >conftest.$ac_ext <<_ACEOF
  3399. /* confdefs.h. */
  3400. _ACEOF
  3401. cat confdefs.h >>conftest.$ac_ext
  3402. cat >>conftest.$ac_ext <<_ACEOF
  3403. /* end confdefs.h. */
  3404. int
  3405. main ()
  3406. {
  3407. ;
  3408. return 0;
  3409. }
  3410. _ACEOF
  3411. rm -f conftest.$ac_objext
  3412. if { (ac_try="$ac_compile"
  3413. case "(($ac_try" in
  3414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3415. *) ac_try_echo=$ac_try;;
  3416. esac
  3417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3418. (eval "$ac_compile") 2>conftest.er1
  3419. ac_status=$?
  3420. grep -v '^ *+' conftest.er1 >conftest.err
  3421. rm -f conftest.er1
  3422. cat conftest.err >&5
  3423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3424. (exit $ac_status); } &&
  3425. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3426. { (case "(($ac_try" in
  3427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3428. *) ac_try_echo=$ac_try;;
  3429. esac
  3430. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3431. (eval "$ac_try") 2>&5
  3432. ac_status=$?
  3433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3434. (exit $ac_status); }; } &&
  3435. { ac_try='test -s conftest.$ac_objext'
  3436. { (case "(($ac_try" in
  3437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3438. *) ac_try_echo=$ac_try;;
  3439. esac
  3440. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3441. (eval "$ac_try") 2>&5
  3442. ac_status=$?
  3443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3444. (exit $ac_status); }; }; then
  3445. :
  3446. else
  3447. echo "$as_me: failed program was:" >&5
  3448. sed 's/^/| /' conftest.$ac_ext >&5
  3449. ac_c_werror_flag=$ac_save_c_werror_flag
  3450. CFLAGS="-g"
  3451. cat >conftest.$ac_ext <<_ACEOF
  3452. /* confdefs.h. */
  3453. _ACEOF
  3454. cat confdefs.h >>conftest.$ac_ext
  3455. cat >>conftest.$ac_ext <<_ACEOF
  3456. /* end confdefs.h. */
  3457. int
  3458. main ()
  3459. {
  3460. ;
  3461. return 0;
  3462. }
  3463. _ACEOF
  3464. rm -f conftest.$ac_objext
  3465. if { (ac_try="$ac_compile"
  3466. case "(($ac_try" in
  3467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3468. *) ac_try_echo=$ac_try;;
  3469. esac
  3470. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3471. (eval "$ac_compile") 2>conftest.er1
  3472. ac_status=$?
  3473. grep -v '^ *+' conftest.er1 >conftest.err
  3474. rm -f conftest.er1
  3475. cat conftest.err >&5
  3476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3477. (exit $ac_status); } &&
  3478. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3479. { (case "(($ac_try" in
  3480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3481. *) ac_try_echo=$ac_try;;
  3482. esac
  3483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3484. (eval "$ac_try") 2>&5
  3485. ac_status=$?
  3486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3487. (exit $ac_status); }; } &&
  3488. { ac_try='test -s conftest.$ac_objext'
  3489. { (case "(($ac_try" in
  3490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3491. *) ac_try_echo=$ac_try;;
  3492. esac
  3493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3494. (eval "$ac_try") 2>&5
  3495. ac_status=$?
  3496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3497. (exit $ac_status); }; }; then
  3498. ac_cv_prog_cc_g=yes
  3499. else
  3500. echo "$as_me: failed program was:" >&5
  3501. sed 's/^/| /' conftest.$ac_ext >&5
  3502. fi
  3503. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3504. fi
  3505. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3506. fi
  3507. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3508. ac_c_werror_flag=$ac_save_c_werror_flag
  3509. fi
  3510. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3511. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3512. if test "$ac_test_CFLAGS" = set; then
  3513. CFLAGS=$ac_save_CFLAGS
  3514. elif test $ac_cv_prog_cc_g = yes; then
  3515. if test "$GCC" = yes; then
  3516. CFLAGS="-g -O2"
  3517. else
  3518. CFLAGS="-g"
  3519. fi
  3520. else
  3521. if test "$GCC" = yes; then
  3522. CFLAGS="-O2"
  3523. else
  3524. CFLAGS=
  3525. fi
  3526. fi
  3527. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3528. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3529. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3530. echo $ECHO_N "(cached) $ECHO_C" >&6
  3531. else
  3532. ac_cv_prog_cc_c89=no
  3533. ac_save_CC=$CC
  3534. cat >conftest.$ac_ext <<_ACEOF
  3535. /* confdefs.h. */
  3536. _ACEOF
  3537. cat confdefs.h >>conftest.$ac_ext
  3538. cat >>conftest.$ac_ext <<_ACEOF
  3539. /* end confdefs.h. */
  3540. #include <stdarg.h>
  3541. #include <stdio.h>
  3542. #include <sys/types.h>
  3543. #include <sys/stat.h>
  3544. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3545. struct buf { int x; };
  3546. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3547. static char *e (p, i)
  3548. char **p;
  3549. int i;
  3550. {
  3551. return p[i];
  3552. }
  3553. static char *f (char * (*g) (char **, int), char **p, ...)
  3554. {
  3555. char *s;
  3556. va_list v;
  3557. va_start (v,p);
  3558. s = g (p, va_arg (v,int));
  3559. va_end (v);
  3560. return s;
  3561. }
  3562. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3563. function prototypes and stuff, but not '\xHH' hex character constants.
  3564. These don't provoke an error unfortunately, instead are silently treated
  3565. as 'x'. The following induces an error, until -std is added to get
  3566. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3567. array size at least. It's necessary to write '\x00'==0 to get something
  3568. that's true only with -std. */
  3569. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3570. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3571. inside strings and character constants. */
  3572. #define FOO(x) 'x'
  3573. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3574. int test (int i, double x);
  3575. struct s1 {int (*f) (int a);};
  3576. struct s2 {int (*f) (double a);};
  3577. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3578. int argc;
  3579. char **argv;
  3580. int
  3581. main ()
  3582. {
  3583. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3584. ;
  3585. return 0;
  3586. }
  3587. _ACEOF
  3588. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3589. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3590. do
  3591. CC="$ac_save_CC $ac_arg"
  3592. rm -f conftest.$ac_objext
  3593. if { (ac_try="$ac_compile"
  3594. case "(($ac_try" in
  3595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3596. *) ac_try_echo=$ac_try;;
  3597. esac
  3598. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3599. (eval "$ac_compile") 2>conftest.er1
  3600. ac_status=$?
  3601. grep -v '^ *+' conftest.er1 >conftest.err
  3602. rm -f conftest.er1
  3603. cat conftest.err >&5
  3604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3605. (exit $ac_status); } &&
  3606. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3607. { (case "(($ac_try" in
  3608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3609. *) ac_try_echo=$ac_try;;
  3610. esac
  3611. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3612. (eval "$ac_try") 2>&5
  3613. ac_status=$?
  3614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3615. (exit $ac_status); }; } &&
  3616. { ac_try='test -s conftest.$ac_objext'
  3617. { (case "(($ac_try" in
  3618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3619. *) ac_try_echo=$ac_try;;
  3620. esac
  3621. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3622. (eval "$ac_try") 2>&5
  3623. ac_status=$?
  3624. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3625. (exit $ac_status); }; }; 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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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_executable_p "$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. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4210. { (case "(($ac_try" in
  4211. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4212. *) ac_try_echo=$ac_try;;
  4213. esac
  4214. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4215. (eval "$ac_try") 2>&5
  4216. ac_status=$?
  4217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4218. (exit $ac_status); }; } &&
  4219. { ac_try='test -s conftest$ac_exeext'
  4220. { (case "(($ac_try" in
  4221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4222. *) ac_try_echo=$ac_try;;
  4223. esac
  4224. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4225. (eval "$ac_try") 2>&5
  4226. ac_status=$?
  4227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4228. (exit $ac_status); }; }; then
  4229. echo "*** The test program compiled, but did not run. This usually means"
  4230. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  4231. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  4232. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4233. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4234. echo "*** is required on your system"
  4235. echo "***"
  4236. echo "*** If you have an old version installed, it is best to remove it, although"
  4237. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4238. else
  4239. echo "$as_me: failed program was:" >&5
  4240. sed 's/^/| /' conftest.$ac_ext >&5
  4241. echo "*** The test program failed to compile or link. See the file config.log for the"
  4242. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  4243. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  4244. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  4245. fi
  4246. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4247. conftest$ac_exeext conftest.$ac_ext
  4248. CPPFLAGS="$ac_save_CPPFLAGS"
  4249. LIBS="$ac_save_LIBS"
  4250. fi
  4251. fi
  4252. XML_CPPFLAGS=""
  4253. XML_LIBS=""
  4254. :
  4255. fi
  4256. rm -f conf.xmltest
  4257. if test "x$have_libxml2" = "xyes"; then
  4258. cat >>confdefs.h <<\_ACEOF
  4259. #define HAVE_LIBXML2 1
  4260. _ACEOF
  4261. fi
  4262. fi
  4263. if test "x$with_gnutls" = "xyes"; then
  4264. # Check whether --with-libgnutls-prefix was given.
  4265. if test "${with_libgnutls_prefix+set}" = set; then
  4266. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  4267. else
  4268. libgnutls_config_prefix=""
  4269. fi
  4270. if test x$libgnutls_config_prefix != x ; then
  4271. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  4272. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  4273. fi
  4274. fi
  4275. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  4276. set dummy libgnutls-config; ac_word=$2
  4277. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4278. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4279. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  4280. echo $ECHO_N "(cached) $ECHO_C" >&6
  4281. else
  4282. case $LIBGNUTLS_CONFIG in
  4283. [\\/]* | ?:[\\/]*)
  4284. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  4285. ;;
  4286. *)
  4287. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4288. for as_dir in $PATH
  4289. do
  4290. IFS=$as_save_IFS
  4291. test -z "$as_dir" && as_dir=.
  4292. for ac_exec_ext in '' $ac_executable_extensions; do
  4293. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4294. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4295. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4296. break 2
  4297. fi
  4298. done
  4299. done
  4300. IFS=$as_save_IFS
  4301. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  4302. ;;
  4303. esac
  4304. fi
  4305. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  4306. if test -n "$LIBGNUTLS_CONFIG"; then
  4307. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  4308. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  4309. else
  4310. { echo "$as_me:$LINENO: result: no" >&5
  4311. echo "${ECHO_T}no" >&6; }
  4312. fi
  4313. min_libgnutls_version=1.2.9
  4314. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  4315. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  4316. no_libgnutls=""
  4317. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4318. no_libgnutls=yes
  4319. else
  4320. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  4321. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  4322. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  4323. ac_save_CFLAGS="$CFLAGS"
  4324. ac_save_LIBS="$LIBS"
  4325. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4326. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4327. rm -f conf.libgnutlstest
  4328. if test "$cross_compiling" = yes; then
  4329. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4330. else
  4331. cat >conftest.$ac_ext <<_ACEOF
  4332. /* confdefs.h. */
  4333. _ACEOF
  4334. cat confdefs.h >>conftest.$ac_ext
  4335. cat >>conftest.$ac_ext <<_ACEOF
  4336. /* end confdefs.h. */
  4337. #include <stdio.h>
  4338. #include <stdlib.h>
  4339. #include <string.h>
  4340. #include <gnutls/gnutls.h>
  4341. int
  4342. main ()
  4343. {
  4344. system ("touch conf.libgnutlstest");
  4345. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  4346. {
  4347. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  4348. "$libgnutls_config_version", gnutls_check_version(NULL) );
  4349. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  4350. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  4351. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  4352. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  4353. printf("*** required on your system.\n");
  4354. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  4355. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  4356. printf("*** before re-running configure\n");
  4357. }
  4358. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  4359. {
  4360. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  4361. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  4362. }
  4363. else
  4364. {
  4365. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  4366. {
  4367. return 0;
  4368. }
  4369. else
  4370. {
  4371. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  4372. gnutls_check_version(NULL) );
  4373. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  4374. "$min_libgnutls_version" );
  4375. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  4376. printf("*** \n");
  4377. printf("*** If you have already installed a sufficiently new version, this error\n");
  4378. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  4379. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4380. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  4381. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  4382. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4383. printf("*** so that the correct libraries are found at run-time))\n");
  4384. }
  4385. }
  4386. return 1;
  4387. }
  4388. _ACEOF
  4389. rm -f conftest$ac_exeext
  4390. if { (ac_try="$ac_link"
  4391. case "(($ac_try" in
  4392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4393. *) ac_try_echo=$ac_try;;
  4394. esac
  4395. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4396. (eval "$ac_link") 2>&5
  4397. ac_status=$?
  4398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4399. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4400. { (case "(($ac_try" in
  4401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4402. *) ac_try_echo=$ac_try;;
  4403. esac
  4404. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4405. (eval "$ac_try") 2>&5
  4406. ac_status=$?
  4407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4408. (exit $ac_status); }; }; then
  4409. :
  4410. else
  4411. echo "$as_me: program exited with status $ac_status" >&5
  4412. echo "$as_me: failed program was:" >&5
  4413. sed 's/^/| /' conftest.$ac_ext >&5
  4414. ( exit $ac_status )
  4415. no_libgnutls=yes
  4416. fi
  4417. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4418. fi
  4419. CFLAGS="$ac_save_CFLAGS"
  4420. LIBS="$ac_save_LIBS"
  4421. fi
  4422. if test "x$no_libgnutls" = x ; then
  4423. { echo "$as_me:$LINENO: result: yes" >&5
  4424. echo "${ECHO_T}yes" >&6; }
  4425. have_libgnutls=yes
  4426. else
  4427. if test -f conf.libgnutlstest ; then
  4428. :
  4429. else
  4430. { echo "$as_me:$LINENO: result: no" >&5
  4431. echo "${ECHO_T}no" >&6; }
  4432. fi
  4433. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4434. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  4435. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  4436. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  4437. echo "*** full path to libgnutls-config."
  4438. else
  4439. if test -f conf.libgnutlstest ; then
  4440. :
  4441. else
  4442. echo "*** Could not run libgnutls test program, checking why..."
  4443. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4444. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4445. cat >conftest.$ac_ext <<_ACEOF
  4446. /* confdefs.h. */
  4447. _ACEOF
  4448. cat confdefs.h >>conftest.$ac_ext
  4449. cat >>conftest.$ac_ext <<_ACEOF
  4450. /* end confdefs.h. */
  4451. #include <stdio.h>
  4452. #include <stdlib.h>
  4453. #include <string.h>
  4454. #include <gnutls/gnutls.h>
  4455. int
  4456. main ()
  4457. {
  4458. return !!gnutls_check_version(NULL);
  4459. ;
  4460. return 0;
  4461. }
  4462. _ACEOF
  4463. rm -f conftest.$ac_objext conftest$ac_exeext
  4464. if { (ac_try="$ac_link"
  4465. case "(($ac_try" in
  4466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4467. *) ac_try_echo=$ac_try;;
  4468. esac
  4469. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4470. (eval "$ac_link") 2>conftest.er1
  4471. ac_status=$?
  4472. grep -v '^ *+' conftest.er1 >conftest.err
  4473. rm -f conftest.er1
  4474. cat conftest.err >&5
  4475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4476. (exit $ac_status); } &&
  4477. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4478. { (case "(($ac_try" in
  4479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4480. *) ac_try_echo=$ac_try;;
  4481. esac
  4482. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4483. (eval "$ac_try") 2>&5
  4484. ac_status=$?
  4485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4486. (exit $ac_status); }; } &&
  4487. { ac_try='test -s conftest$ac_exeext'
  4488. { (case "(($ac_try" in
  4489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4490. *) ac_try_echo=$ac_try;;
  4491. esac
  4492. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4493. (eval "$ac_try") 2>&5
  4494. ac_status=$?
  4495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4496. (exit $ac_status); }; }; then
  4497. echo "*** The test program compiled, but did not run. This usually means"
  4498. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  4499. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  4500. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4501. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4502. echo "*** is required on your system"
  4503. echo "***"
  4504. echo "*** If you have an old version installed, it is best to remove it, although"
  4505. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4506. echo "***"
  4507. else
  4508. echo "$as_me: failed program was:" >&5
  4509. sed 's/^/| /' conftest.$ac_ext >&5
  4510. echo "*** The test program failed to compile or link. See the file config.log for the"
  4511. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  4512. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  4513. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  4514. fi
  4515. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4516. conftest$ac_exeext conftest.$ac_ext
  4517. CFLAGS="$ac_save_CFLAGS"
  4518. LIBS="$ac_save_LIBS"
  4519. fi
  4520. fi
  4521. LIBGNUTLS_CFLAGS=""
  4522. LIBGNUTLS_LIBS=""
  4523. :
  4524. fi
  4525. rm -f conf.libgnutlstest
  4526. if test "x$have_libgnutls" = "xyes"; then
  4527. cat >>confdefs.h <<\_ACEOF
  4528. #define HAVE_LIBGNUTLS 1
  4529. _ACEOF
  4530. fi
  4531. fi
  4532. if test "x$have_libgnutls" = "xyes"; then
  4533. # Check whether --with-libgcrypt-prefix was given.
  4534. if test "${with_libgcrypt_prefix+set}" = set; then
  4535. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  4536. else
  4537. libgcrypt_config_prefix=""
  4538. fi
  4539. if test x$libgcrypt_config_prefix != x ; then
  4540. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  4541. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  4542. fi
  4543. fi
  4544. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  4545. set dummy libgcrypt-config; ac_word=$2
  4546. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4547. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4548. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  4549. echo $ECHO_N "(cached) $ECHO_C" >&6
  4550. else
  4551. case $LIBGCRYPT_CONFIG in
  4552. [\\/]* | ?:[\\/]*)
  4553. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  4554. ;;
  4555. *)
  4556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4557. for as_dir in $PATH
  4558. do
  4559. IFS=$as_save_IFS
  4560. test -z "$as_dir" && as_dir=.
  4561. for ac_exec_ext in '' $ac_executable_extensions; do
  4562. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  4563. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4564. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4565. break 2
  4566. fi
  4567. done
  4568. done
  4569. IFS=$as_save_IFS
  4570. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  4571. ;;
  4572. esac
  4573. fi
  4574. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  4575. if test -n "$LIBGCRYPT_CONFIG"; then
  4576. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  4577. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  4578. else
  4579. { echo "$as_me:$LINENO: result: no" >&5
  4580. echo "${ECHO_T}no" >&6; }
  4581. fi
  4582. tmp=1.2.2
  4583. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  4584. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  4585. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  4586. else
  4587. req_libgcrypt_api=0
  4588. min_libgcrypt_version="$tmp"
  4589. fi
  4590. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  4591. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  4592. ok=no
  4593. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  4594. req_major=`echo $min_libgcrypt_version | \
  4595. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  4596. req_minor=`echo $min_libgcrypt_version | \
  4597. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  4598. req_micro=`echo $min_libgcrypt_version | \
  4599. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  4600. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  4601. major=`echo $libgcrypt_config_version | \
  4602. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  4603. minor=`echo $libgcrypt_config_version | \
  4604. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  4605. micro=`echo $libgcrypt_config_version | \
  4606. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  4607. if test "$major" -gt "$req_major"; then
  4608. ok=yes
  4609. else
  4610. if test "$major" -eq "$req_major"; then
  4611. if test "$minor" -gt "$req_minor"; then
  4612. ok=yes
  4613. else
  4614. if test "$minor" -eq "$req_minor"; then
  4615. if test "$micro" -ge "$req_micro"; then
  4616. ok=yes
  4617. fi
  4618. fi
  4619. fi
  4620. fi
  4621. fi
  4622. fi
  4623. if test $ok = yes; then
  4624. { echo "$as_me:$LINENO: result: yes" >&5
  4625. echo "${ECHO_T}yes" >&6; }
  4626. else
  4627. { echo "$as_me:$LINENO: result: no" >&5
  4628. echo "${ECHO_T}no" >&6; }
  4629. fi
  4630. if test $ok = yes; then
  4631. # If we have a recent libgcrypt, we should also check that the
  4632. # API is compatible
  4633. if test "$req_libgcrypt_api" -gt 0 ; then
  4634. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  4635. if test "$tmp" -gt 0 ; then
  4636. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  4637. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  4638. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  4639. { echo "$as_me:$LINENO: result: okay" >&5
  4640. echo "${ECHO_T}okay" >&6; }
  4641. else
  4642. ok=no
  4643. { echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  4644. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6; }
  4645. fi
  4646. fi
  4647. fi
  4648. fi
  4649. if test $ok = yes; then
  4650. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  4651. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  4652. have_libgcrypt=yes
  4653. else
  4654. LIBGCRYPT_CFLAGS=""
  4655. LIBGCRYPT_LIBS=""
  4656. :
  4657. fi
  4658. if test "x$have_libgcrypt" = "xyes"; then
  4659. cat >>confdefs.h <<\_ACEOF
  4660. #define HAVE_LIBGCRYPT 1
  4661. _ACEOF
  4662. fi
  4663. fi
  4664. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  4665. # Check whether --with-openssl-prefix was given.
  4666. if test "${with_openssl_prefix+set}" = set; then
  4667. withval=$with_openssl_prefix; openssl_prefix=$withval
  4668. else
  4669. openssl_prefix=""
  4670. fi
  4671. if test "x$openssl_prefix" = "x"; then
  4672. openssl_prefix="/usr/local"
  4673. fi
  4674. openssl_prefix_lib=$openssl_prefix/lib
  4675. openssl_prefix_include=$openssl_prefix/include
  4676. LIBS_save=$LIBS
  4677. CPPFLAGS_save=$CPPFLAGS
  4678. LIBS="-L$openssl_prefix_lib $LIBS"
  4679. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4680. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4681. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  4682. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4683. echo $ECHO_N "(cached) $ECHO_C" >&6
  4684. else
  4685. ac_check_lib_save_LIBS=$LIBS
  4686. LIBS="-lssl $LIBS"
  4687. cat >conftest.$ac_ext <<_ACEOF
  4688. /* confdefs.h. */
  4689. _ACEOF
  4690. cat confdefs.h >>conftest.$ac_ext
  4691. cat >>conftest.$ac_ext <<_ACEOF
  4692. /* end confdefs.h. */
  4693. /* Override any GCC internal prototype to avoid an error.
  4694. Use char because int might match the return type of a GCC
  4695. builtin and then its argument prototype would still apply. */
  4696. #ifdef __cplusplus
  4697. extern "C"
  4698. #endif
  4699. char SSL_library_init ();
  4700. int
  4701. main ()
  4702. {
  4703. return SSL_library_init ();
  4704. ;
  4705. return 0;
  4706. }
  4707. _ACEOF
  4708. rm -f conftest.$ac_objext conftest$ac_exeext
  4709. if { (ac_try="$ac_link"
  4710. case "(($ac_try" in
  4711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4712. *) ac_try_echo=$ac_try;;
  4713. esac
  4714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4715. (eval "$ac_link") 2>conftest.er1
  4716. ac_status=$?
  4717. grep -v '^ *+' conftest.er1 >conftest.err
  4718. rm -f conftest.er1
  4719. cat conftest.err >&5
  4720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4721. (exit $ac_status); } &&
  4722. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4723. { (case "(($ac_try" in
  4724. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4725. *) ac_try_echo=$ac_try;;
  4726. esac
  4727. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4728. (eval "$ac_try") 2>&5
  4729. ac_status=$?
  4730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4731. (exit $ac_status); }; } &&
  4732. { ac_try='test -s conftest$ac_exeext'
  4733. { (case "(($ac_try" in
  4734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4735. *) ac_try_echo=$ac_try;;
  4736. esac
  4737. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4738. (eval "$ac_try") 2>&5
  4739. ac_status=$?
  4740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4741. (exit $ac_status); }; }; then
  4742. ac_cv_lib_ssl_SSL_library_init=yes
  4743. else
  4744. echo "$as_me: failed program was:" >&5
  4745. sed 's/^/| /' conftest.$ac_ext >&5
  4746. ac_cv_lib_ssl_SSL_library_init=no
  4747. fi
  4748. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4749. conftest$ac_exeext conftest.$ac_ext
  4750. LIBS=$ac_check_lib_save_LIBS
  4751. fi
  4752. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4753. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  4754. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4755. have_openssl=yes
  4756. fi
  4757. if test "x$have_openssl" = "xyes"; then
  4758. have_openssl=no
  4759. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4760. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  4761. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4762. echo $ECHO_N "(cached) $ECHO_C" >&6
  4763. else
  4764. ac_check_lib_save_LIBS=$LIBS
  4765. LIBS="-lcrypto $LIBS"
  4766. cat >conftest.$ac_ext <<_ACEOF
  4767. /* confdefs.h. */
  4768. _ACEOF
  4769. cat confdefs.h >>conftest.$ac_ext
  4770. cat >>conftest.$ac_ext <<_ACEOF
  4771. /* end confdefs.h. */
  4772. int
  4773. main ()
  4774. {
  4775. return main ();
  4776. ;
  4777. return 0;
  4778. }
  4779. _ACEOF
  4780. rm -f conftest.$ac_objext conftest$ac_exeext
  4781. if { (ac_try="$ac_link"
  4782. case "(($ac_try" in
  4783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4784. *) ac_try_echo=$ac_try;;
  4785. esac
  4786. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4787. (eval "$ac_link") 2>conftest.er1
  4788. ac_status=$?
  4789. grep -v '^ *+' conftest.er1 >conftest.err
  4790. rm -f conftest.er1
  4791. cat conftest.err >&5
  4792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4793. (exit $ac_status); } &&
  4794. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4795. { (case "(($ac_try" in
  4796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4797. *) ac_try_echo=$ac_try;;
  4798. esac
  4799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4800. (eval "$ac_try") 2>&5
  4801. ac_status=$?
  4802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4803. (exit $ac_status); }; } &&
  4804. { ac_try='test -s conftest$ac_exeext'
  4805. { (case "(($ac_try" in
  4806. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4807. *) ac_try_echo=$ac_try;;
  4808. esac
  4809. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4810. (eval "$ac_try") 2>&5
  4811. ac_status=$?
  4812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4813. (exit $ac_status); }; }; then
  4814. ac_cv_lib_crypto_main=yes
  4815. else
  4816. echo "$as_me: failed program was:" >&5
  4817. sed 's/^/| /' conftest.$ac_ext >&5
  4818. ac_cv_lib_crypto_main=no
  4819. fi
  4820. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4821. conftest$ac_exeext conftest.$ac_ext
  4822. LIBS=$ac_check_lib_save_LIBS
  4823. fi
  4824. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4825. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  4826. if test $ac_cv_lib_crypto_main = yes; then
  4827. have_openssl=yes
  4828. fi
  4829. if test "x$have_openssl" = "xyes"; then
  4830. cat >>confdefs.h <<\_ACEOF
  4831. #define HAVE_LIBSSL 1
  4832. _ACEOF
  4833. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4834. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4835. fi
  4836. fi
  4837. LIBS=$LIBS_save
  4838. CPPFLAGS=$CPPFLAGS_save
  4839. fi
  4840. if test "x$with_libcares" = "xyes"; then
  4841. # Check whether --with-libcares-prefix was given.
  4842. if test "${with_libcares_prefix+set}" = set; then
  4843. withval=$with_libcares_prefix; libcares_prefix=$withval
  4844. else
  4845. libcares_prefix=""
  4846. fi
  4847. if test "x$libcares_prefix" = "x"; then
  4848. libcares_prefix="/usr"
  4849. fi
  4850. libcares_prefix_lib=$libcares_prefix/lib
  4851. libcares_prefix_include=$libcares_prefix/include
  4852. LIBS_save=$LIBS
  4853. CPPFLAGS_save=$CPPFLAGS
  4854. LIBS="-L$libcares_prefix_lib $LIBS"
  4855. CPPFLAGS="-I$libcares_prefix_include $CPPFLAGS"
  4856. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  4857. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  4858. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  4859. echo $ECHO_N "(cached) $ECHO_C" >&6
  4860. else
  4861. ac_check_lib_save_LIBS=$LIBS
  4862. LIBS="-lcares $LIBS"
  4863. cat >conftest.$ac_ext <<_ACEOF
  4864. /* confdefs.h. */
  4865. _ACEOF
  4866. cat confdefs.h >>conftest.$ac_ext
  4867. cat >>conftest.$ac_ext <<_ACEOF
  4868. /* end confdefs.h. */
  4869. /* Override any GCC internal prototype to avoid an error.
  4870. Use char because int might match the return type of a GCC
  4871. builtin and then its argument prototype would still apply. */
  4872. #ifdef __cplusplus
  4873. extern "C"
  4874. #endif
  4875. char ares_init ();
  4876. int
  4877. main ()
  4878. {
  4879. return ares_init ();
  4880. ;
  4881. return 0;
  4882. }
  4883. _ACEOF
  4884. rm -f conftest.$ac_objext conftest$ac_exeext
  4885. if { (ac_try="$ac_link"
  4886. case "(($ac_try" in
  4887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4888. *) ac_try_echo=$ac_try;;
  4889. esac
  4890. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4891. (eval "$ac_link") 2>conftest.er1
  4892. ac_status=$?
  4893. grep -v '^ *+' conftest.er1 >conftest.err
  4894. rm -f conftest.er1
  4895. cat conftest.err >&5
  4896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4897. (exit $ac_status); } &&
  4898. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4899. { (case "(($ac_try" in
  4900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4901. *) ac_try_echo=$ac_try;;
  4902. esac
  4903. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4904. (eval "$ac_try") 2>&5
  4905. ac_status=$?
  4906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4907. (exit $ac_status); }; } &&
  4908. { ac_try='test -s conftest$ac_exeext'
  4909. { (case "(($ac_try" in
  4910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4911. *) ac_try_echo=$ac_try;;
  4912. esac
  4913. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4914. (eval "$ac_try") 2>&5
  4915. ac_status=$?
  4916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4917. (exit $ac_status); }; }; then
  4918. ac_cv_lib_cares_ares_init=yes
  4919. else
  4920. echo "$as_me: failed program was:" >&5
  4921. sed 's/^/| /' conftest.$ac_ext >&5
  4922. ac_cv_lib_cares_ares_init=no
  4923. fi
  4924. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4925. conftest$ac_exeext conftest.$ac_ext
  4926. LIBS=$ac_check_lib_save_LIBS
  4927. fi
  4928. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  4929. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  4930. if test $ac_cv_lib_cares_ares_init = yes; then
  4931. have_libcares=yes
  4932. fi
  4933. if test "x$have_libcares" = "xyes"; then
  4934. cat >>confdefs.h <<\_ACEOF
  4935. #define HAVE_LIBCARES 1
  4936. _ACEOF
  4937. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  4938. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  4939. fi
  4940. LIBS=$LIBS_save
  4941. CPPFLAGS=$CPPFLAGS_save
  4942. fi
  4943. if test "x$have_libcares" = "x"; then
  4944. if test "x$with_libares" = "xyes"; then
  4945. # Check whether --with-libares-prefix was given.
  4946. if test "${with_libares_prefix+set}" = set; then
  4947. withval=$with_libares_prefix; libares_prefix=$withval
  4948. else
  4949. libares_prefix=""
  4950. fi
  4951. if test "x$libares_prefix" = "x"; then
  4952. libares_prefix="/usr"
  4953. fi
  4954. libares_prefix_lib=$libares_prefix/lib
  4955. libares_prefix_include=$libares_prefix/include
  4956. LIBS_save=$LIBS
  4957. CPPFLAGS_save=$CPPFLAGS
  4958. LIBS="-L$libares_prefix_lib $LIBS"
  4959. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  4960. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  4961. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  4962. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  4963. echo $ECHO_N "(cached) $ECHO_C" >&6
  4964. else
  4965. ac_check_lib_save_LIBS=$LIBS
  4966. LIBS="-lares $LIBS"
  4967. cat >conftest.$ac_ext <<_ACEOF
  4968. /* confdefs.h. */
  4969. _ACEOF
  4970. cat confdefs.h >>conftest.$ac_ext
  4971. cat >>conftest.$ac_ext <<_ACEOF
  4972. /* end confdefs.h. */
  4973. /* Override any GCC internal prototype to avoid an error.
  4974. Use char because int might match the return type of a GCC
  4975. builtin and then its argument prototype would still apply. */
  4976. #ifdef __cplusplus
  4977. extern "C"
  4978. #endif
  4979. char ares_init ();
  4980. int
  4981. main ()
  4982. {
  4983. return ares_init ();
  4984. ;
  4985. return 0;
  4986. }
  4987. _ACEOF
  4988. rm -f conftest.$ac_objext conftest$ac_exeext
  4989. if { (ac_try="$ac_link"
  4990. case "(($ac_try" in
  4991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4992. *) ac_try_echo=$ac_try;;
  4993. esac
  4994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4995. (eval "$ac_link") 2>conftest.er1
  4996. ac_status=$?
  4997. grep -v '^ *+' conftest.er1 >conftest.err
  4998. rm -f conftest.er1
  4999. cat conftest.err >&5
  5000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5001. (exit $ac_status); } &&
  5002. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5003. { (case "(($ac_try" in
  5004. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5005. *) ac_try_echo=$ac_try;;
  5006. esac
  5007. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5008. (eval "$ac_try") 2>&5
  5009. ac_status=$?
  5010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5011. (exit $ac_status); }; } &&
  5012. { ac_try='test -s conftest$ac_exeext'
  5013. { (case "(($ac_try" in
  5014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5015. *) ac_try_echo=$ac_try;;
  5016. esac
  5017. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5018. (eval "$ac_try") 2>&5
  5019. ac_status=$?
  5020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5021. (exit $ac_status); }; }; then
  5022. ac_cv_lib_ares_ares_init=yes
  5023. else
  5024. echo "$as_me: failed program was:" >&5
  5025. sed 's/^/| /' conftest.$ac_ext >&5
  5026. ac_cv_lib_ares_ares_init=no
  5027. fi
  5028. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5029. conftest$ac_exeext conftest.$ac_ext
  5030. LIBS=$ac_check_lib_save_LIBS
  5031. fi
  5032. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  5033. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  5034. if test $ac_cv_lib_ares_ares_init = yes; then
  5035. have_libares=yes
  5036. fi
  5037. if test "x$have_libares" = "xyes"; then
  5038. cat >>confdefs.h <<\_ACEOF
  5039. #define HAVE_LIBARES 1
  5040. _ACEOF
  5041. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  5042. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  5043. fi
  5044. LIBS=$LIBS_save
  5045. CPPFLAGS=$CPPFLAGS_save
  5046. fi
  5047. fi
  5048. # Define variables based on the result of the checks for libraries.
  5049. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  5050. cat >>confdefs.h <<\_ACEOF
  5051. #define ENABLE_SSL 1
  5052. _ACEOF
  5053. fi
  5054. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  5055. cat >>confdefs.h <<\_ACEOF
  5056. #define ENABLE_MESSAGE_DIGEST 1
  5057. _ACEOF
  5058. enable_message_digest=yes
  5059. fi
  5060. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  5061. cat >>confdefs.h <<\_ACEOF
  5062. #define ENABLE_BITTORRENT 1
  5063. _ACEOF
  5064. if true; then
  5065. ENABLE_BITTORRENT_TRUE=
  5066. ENABLE_BITTORRENT_FALSE='#'
  5067. else
  5068. ENABLE_BITTORRENT_TRUE='#'
  5069. ENABLE_BITTORRENT_FALSE=
  5070. fi
  5071. else
  5072. if false; then
  5073. ENABLE_BITTORRENT_TRUE=
  5074. ENABLE_BITTORRENT_FALSE='#'
  5075. else
  5076. ENABLE_BITTORRENT_TRUE='#'
  5077. ENABLE_BITTORRENT_FALSE=
  5078. fi
  5079. fi
  5080. if test "x$have_libxml2" = "xyes" && test "x$enable_metalink" = "xyes"; then
  5081. cat >>confdefs.h <<\_ACEOF
  5082. #define ENABLE_METALINK 1
  5083. _ACEOF
  5084. if true; then
  5085. ENABLE_METALINK_TRUE=
  5086. ENABLE_METALINK_FALSE='#'
  5087. else
  5088. ENABLE_METALINK_TRUE='#'
  5089. ENABLE_METALINK_FALSE=
  5090. fi
  5091. else
  5092. if false; then
  5093. ENABLE_METALINK_TRUE=
  5094. ENABLE_METALINK_FALSE='#'
  5095. else
  5096. ENABLE_METALINK_TRUE='#'
  5097. ENABLE_METALINK_FALSE=
  5098. fi
  5099. fi
  5100. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  5101. cat >>confdefs.h <<\_ACEOF
  5102. #define ENABLE_ASYNC_DNS 1
  5103. _ACEOF
  5104. if true; then
  5105. ENABLE_ASYNC_DNS_TRUE=
  5106. ENABLE_ASYNC_DNS_FALSE='#'
  5107. else
  5108. ENABLE_ASYNC_DNS_TRUE='#'
  5109. ENABLE_ASYNC_DNS_FALSE=
  5110. fi
  5111. else
  5112. if false; then
  5113. ENABLE_ASYNC_DNS_TRUE=
  5114. ENABLE_ASYNC_DNS_FALSE='#'
  5115. else
  5116. ENABLE_ASYNC_DNS_TRUE='#'
  5117. ENABLE_ASYNC_DNS_FALSE=
  5118. fi
  5119. fi
  5120. # Checks for header files.
  5121. ac_ext=c
  5122. ac_cpp='$CPP $CPPFLAGS'
  5123. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5124. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5125. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5126. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5127. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5128. # On Suns, sometimes $CPP names a directory.
  5129. if test -n "$CPP" && test -d "$CPP"; then
  5130. CPP=
  5131. fi
  5132. if test -z "$CPP"; then
  5133. if test "${ac_cv_prog_CPP+set}" = set; then
  5134. echo $ECHO_N "(cached) $ECHO_C" >&6
  5135. else
  5136. # Double quotes because CPP needs to be expanded
  5137. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5138. do
  5139. ac_preproc_ok=false
  5140. for ac_c_preproc_warn_flag in '' yes
  5141. do
  5142. # Use a header file that comes with gcc, so configuring glibc
  5143. # with a fresh cross-compiler works.
  5144. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5145. # <limits.h> exists even on freestanding compilers.
  5146. # On the NeXT, cc -E runs the code through the compiler's parser,
  5147. # not just through cpp. "Syntax error" is here to catch this case.
  5148. cat >conftest.$ac_ext <<_ACEOF
  5149. /* confdefs.h. */
  5150. _ACEOF
  5151. cat confdefs.h >>conftest.$ac_ext
  5152. cat >>conftest.$ac_ext <<_ACEOF
  5153. /* end confdefs.h. */
  5154. #ifdef __STDC__
  5155. # include <limits.h>
  5156. #else
  5157. # include <assert.h>
  5158. #endif
  5159. Syntax error
  5160. _ACEOF
  5161. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5162. case "(($ac_try" in
  5163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5164. *) ac_try_echo=$ac_try;;
  5165. esac
  5166. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5167. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5168. ac_status=$?
  5169. grep -v '^ *+' conftest.er1 >conftest.err
  5170. rm -f conftest.er1
  5171. cat conftest.err >&5
  5172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5173. (exit $ac_status); } >/dev/null; then
  5174. if test -s conftest.err; then
  5175. ac_cpp_err=$ac_c_preproc_warn_flag
  5176. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5177. else
  5178. ac_cpp_err=
  5179. fi
  5180. else
  5181. ac_cpp_err=yes
  5182. fi
  5183. if test -z "$ac_cpp_err"; then
  5184. :
  5185. else
  5186. echo "$as_me: failed program was:" >&5
  5187. sed 's/^/| /' conftest.$ac_ext >&5
  5188. # Broken: fails on valid input.
  5189. continue
  5190. fi
  5191. rm -f conftest.err conftest.$ac_ext
  5192. # OK, works on sane cases. Now check whether nonexistent headers
  5193. # can be detected and how.
  5194. cat >conftest.$ac_ext <<_ACEOF
  5195. /* confdefs.h. */
  5196. _ACEOF
  5197. cat confdefs.h >>conftest.$ac_ext
  5198. cat >>conftest.$ac_ext <<_ACEOF
  5199. /* end confdefs.h. */
  5200. #include <ac_nonexistent.h>
  5201. _ACEOF
  5202. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5203. case "(($ac_try" in
  5204. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5205. *) ac_try_echo=$ac_try;;
  5206. esac
  5207. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5208. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5209. ac_status=$?
  5210. grep -v '^ *+' conftest.er1 >conftest.err
  5211. rm -f conftest.er1
  5212. cat conftest.err >&5
  5213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5214. (exit $ac_status); } >/dev/null; then
  5215. if test -s conftest.err; then
  5216. ac_cpp_err=$ac_c_preproc_warn_flag
  5217. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5218. else
  5219. ac_cpp_err=
  5220. fi
  5221. else
  5222. ac_cpp_err=yes
  5223. fi
  5224. if test -z "$ac_cpp_err"; then
  5225. # Broken: success on invalid input.
  5226. continue
  5227. else
  5228. echo "$as_me: failed program was:" >&5
  5229. sed 's/^/| /' conftest.$ac_ext >&5
  5230. # Passes both tests.
  5231. ac_preproc_ok=:
  5232. break
  5233. fi
  5234. rm -f conftest.err conftest.$ac_ext
  5235. done
  5236. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5237. rm -f conftest.err conftest.$ac_ext
  5238. if $ac_preproc_ok; then
  5239. break
  5240. fi
  5241. done
  5242. ac_cv_prog_CPP=$CPP
  5243. fi
  5244. CPP=$ac_cv_prog_CPP
  5245. else
  5246. ac_cv_prog_CPP=$CPP
  5247. fi
  5248. { echo "$as_me:$LINENO: result: $CPP" >&5
  5249. echo "${ECHO_T}$CPP" >&6; }
  5250. ac_preproc_ok=false
  5251. for ac_c_preproc_warn_flag in '' yes
  5252. do
  5253. # Use a header file that comes with gcc, so configuring glibc
  5254. # with a fresh cross-compiler works.
  5255. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5256. # <limits.h> exists even on freestanding compilers.
  5257. # On the NeXT, cc -E runs the code through the compiler's parser,
  5258. # not just through cpp. "Syntax error" is here to catch this case.
  5259. cat >conftest.$ac_ext <<_ACEOF
  5260. /* confdefs.h. */
  5261. _ACEOF
  5262. cat confdefs.h >>conftest.$ac_ext
  5263. cat >>conftest.$ac_ext <<_ACEOF
  5264. /* end confdefs.h. */
  5265. #ifdef __STDC__
  5266. # include <limits.h>
  5267. #else
  5268. # include <assert.h>
  5269. #endif
  5270. Syntax error
  5271. _ACEOF
  5272. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5273. case "(($ac_try" in
  5274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5275. *) ac_try_echo=$ac_try;;
  5276. esac
  5277. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5278. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5279. ac_status=$?
  5280. grep -v '^ *+' conftest.er1 >conftest.err
  5281. rm -f conftest.er1
  5282. cat conftest.err >&5
  5283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5284. (exit $ac_status); } >/dev/null; then
  5285. if test -s conftest.err; then
  5286. ac_cpp_err=$ac_c_preproc_warn_flag
  5287. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5288. else
  5289. ac_cpp_err=
  5290. fi
  5291. else
  5292. ac_cpp_err=yes
  5293. fi
  5294. if test -z "$ac_cpp_err"; then
  5295. :
  5296. else
  5297. echo "$as_me: failed program was:" >&5
  5298. sed 's/^/| /' conftest.$ac_ext >&5
  5299. # Broken: fails on valid input.
  5300. continue
  5301. fi
  5302. rm -f conftest.err conftest.$ac_ext
  5303. # OK, works on sane cases. Now check whether nonexistent headers
  5304. # can be detected and how.
  5305. cat >conftest.$ac_ext <<_ACEOF
  5306. /* confdefs.h. */
  5307. _ACEOF
  5308. cat confdefs.h >>conftest.$ac_ext
  5309. cat >>conftest.$ac_ext <<_ACEOF
  5310. /* end confdefs.h. */
  5311. #include <ac_nonexistent.h>
  5312. _ACEOF
  5313. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5314. case "(($ac_try" in
  5315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5316. *) ac_try_echo=$ac_try;;
  5317. esac
  5318. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5319. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5320. ac_status=$?
  5321. grep -v '^ *+' conftest.er1 >conftest.err
  5322. rm -f conftest.er1
  5323. cat conftest.err >&5
  5324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5325. (exit $ac_status); } >/dev/null; then
  5326. if test -s conftest.err; then
  5327. ac_cpp_err=$ac_c_preproc_warn_flag
  5328. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5329. else
  5330. ac_cpp_err=
  5331. fi
  5332. else
  5333. ac_cpp_err=yes
  5334. fi
  5335. if test -z "$ac_cpp_err"; then
  5336. # Broken: success on invalid input.
  5337. continue
  5338. else
  5339. echo "$as_me: failed program was:" >&5
  5340. sed 's/^/| /' conftest.$ac_ext >&5
  5341. # Passes both tests.
  5342. ac_preproc_ok=:
  5343. break
  5344. fi
  5345. rm -f conftest.err conftest.$ac_ext
  5346. done
  5347. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5348. rm -f conftest.err conftest.$ac_ext
  5349. if $ac_preproc_ok; then
  5350. :
  5351. else
  5352. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5353. See \`config.log' for more details." >&5
  5354. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5355. See \`config.log' for more details." >&2;}
  5356. { (exit 1); exit 1; }; }
  5357. fi
  5358. ac_ext=c
  5359. ac_cpp='$CPP $CPPFLAGS'
  5360. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5361. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5362. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5363. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5364. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5365. if test "${ac_cv_path_GREP+set}" = set; then
  5366. echo $ECHO_N "(cached) $ECHO_C" >&6
  5367. else
  5368. # Extract the first word of "grep ggrep" to use in msg output
  5369. if test -z "$GREP"; then
  5370. set dummy grep ggrep; ac_prog_name=$2
  5371. if test "${ac_cv_path_GREP+set}" = set; then
  5372. echo $ECHO_N "(cached) $ECHO_C" >&6
  5373. else
  5374. ac_path_GREP_found=false
  5375. # Loop through the user's path and test for each of PROGNAME-LIST
  5376. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5377. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5378. do
  5379. IFS=$as_save_IFS
  5380. test -z "$as_dir" && as_dir=.
  5381. for ac_prog in grep ggrep; do
  5382. for ac_exec_ext in '' $ac_executable_extensions; do
  5383. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5384. { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
  5385. # Check for GNU ac_path_GREP and select it if it is found.
  5386. # Check for GNU $ac_path_GREP
  5387. case `"$ac_path_GREP" --version 2>&1` in
  5388. *GNU*)
  5389. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5390. *)
  5391. ac_count=0
  5392. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5393. while :
  5394. do
  5395. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5396. mv "conftest.tmp" "conftest.in"
  5397. cp "conftest.in" "conftest.nl"
  5398. echo 'GREP' >> "conftest.nl"
  5399. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5400. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5401. ac_count=`expr $ac_count + 1`
  5402. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5403. # Best one so far, save it but keep looking for a better one
  5404. ac_cv_path_GREP="$ac_path_GREP"
  5405. ac_path_GREP_max=$ac_count
  5406. fi
  5407. # 10*(2^10) chars as input seems more than enough
  5408. test $ac_count -gt 10 && break
  5409. done
  5410. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5411. esac
  5412. $ac_path_GREP_found && break 3
  5413. done
  5414. done
  5415. done
  5416. IFS=$as_save_IFS
  5417. fi
  5418. GREP="$ac_cv_path_GREP"
  5419. if test -z "$GREP"; then
  5420. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5421. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5422. { (exit 1); exit 1; }; }
  5423. fi
  5424. else
  5425. ac_cv_path_GREP=$GREP
  5426. fi
  5427. fi
  5428. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5429. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5430. GREP="$ac_cv_path_GREP"
  5431. { echo "$as_me:$LINENO: checking for egrep" >&5
  5432. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5433. if test "${ac_cv_path_EGREP+set}" = set; then
  5434. echo $ECHO_N "(cached) $ECHO_C" >&6
  5435. else
  5436. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5437. then ac_cv_path_EGREP="$GREP -E"
  5438. else
  5439. # Extract the first word of "egrep" to use in msg output
  5440. if test -z "$EGREP"; then
  5441. set dummy egrep; ac_prog_name=$2
  5442. if test "${ac_cv_path_EGREP+set}" = set; then
  5443. echo $ECHO_N "(cached) $ECHO_C" >&6
  5444. else
  5445. ac_path_EGREP_found=false
  5446. # Loop through the user's path and test for each of PROGNAME-LIST
  5447. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5448. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5449. do
  5450. IFS=$as_save_IFS
  5451. test -z "$as_dir" && as_dir=.
  5452. for ac_prog in egrep; do
  5453. for ac_exec_ext in '' $ac_executable_extensions; do
  5454. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5455. { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
  5456. # Check for GNU ac_path_EGREP and select it if it is found.
  5457. # Check for GNU $ac_path_EGREP
  5458. case `"$ac_path_EGREP" --version 2>&1` in
  5459. *GNU*)
  5460. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5461. *)
  5462. ac_count=0
  5463. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5464. while :
  5465. do
  5466. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5467. mv "conftest.tmp" "conftest.in"
  5468. cp "conftest.in" "conftest.nl"
  5469. echo 'EGREP' >> "conftest.nl"
  5470. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5471. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5472. ac_count=`expr $ac_count + 1`
  5473. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5474. # Best one so far, save it but keep looking for a better one
  5475. ac_cv_path_EGREP="$ac_path_EGREP"
  5476. ac_path_EGREP_max=$ac_count
  5477. fi
  5478. # 10*(2^10) chars as input seems more than enough
  5479. test $ac_count -gt 10 && break
  5480. done
  5481. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5482. esac
  5483. $ac_path_EGREP_found && break 3
  5484. done
  5485. done
  5486. done
  5487. IFS=$as_save_IFS
  5488. fi
  5489. EGREP="$ac_cv_path_EGREP"
  5490. if test -z "$EGREP"; then
  5491. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5492. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5493. { (exit 1); exit 1; }; }
  5494. fi
  5495. else
  5496. ac_cv_path_EGREP=$EGREP
  5497. fi
  5498. fi
  5499. fi
  5500. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5501. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5502. EGREP="$ac_cv_path_EGREP"
  5503. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5504. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5505. if test "${ac_cv_header_stdc+set}" = set; then
  5506. echo $ECHO_N "(cached) $ECHO_C" >&6
  5507. else
  5508. cat >conftest.$ac_ext <<_ACEOF
  5509. /* confdefs.h. */
  5510. _ACEOF
  5511. cat confdefs.h >>conftest.$ac_ext
  5512. cat >>conftest.$ac_ext <<_ACEOF
  5513. /* end confdefs.h. */
  5514. #include <stdlib.h>
  5515. #include <stdarg.h>
  5516. #include <string.h>
  5517. #include <float.h>
  5518. int
  5519. main ()
  5520. {
  5521. ;
  5522. return 0;
  5523. }
  5524. _ACEOF
  5525. rm -f conftest.$ac_objext
  5526. if { (ac_try="$ac_compile"
  5527. case "(($ac_try" in
  5528. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5529. *) ac_try_echo=$ac_try;;
  5530. esac
  5531. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5532. (eval "$ac_compile") 2>conftest.er1
  5533. ac_status=$?
  5534. grep -v '^ *+' conftest.er1 >conftest.err
  5535. rm -f conftest.er1
  5536. cat conftest.err >&5
  5537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5538. (exit $ac_status); } &&
  5539. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5540. { (case "(($ac_try" in
  5541. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5542. *) ac_try_echo=$ac_try;;
  5543. esac
  5544. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5545. (eval "$ac_try") 2>&5
  5546. ac_status=$?
  5547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5548. (exit $ac_status); }; } &&
  5549. { ac_try='test -s conftest.$ac_objext'
  5550. { (case "(($ac_try" in
  5551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5552. *) ac_try_echo=$ac_try;;
  5553. esac
  5554. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5555. (eval "$ac_try") 2>&5
  5556. ac_status=$?
  5557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5558. (exit $ac_status); }; }; then
  5559. ac_cv_header_stdc=yes
  5560. else
  5561. echo "$as_me: failed program was:" >&5
  5562. sed 's/^/| /' conftest.$ac_ext >&5
  5563. ac_cv_header_stdc=no
  5564. fi
  5565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5566. if test $ac_cv_header_stdc = yes; then
  5567. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5568. cat >conftest.$ac_ext <<_ACEOF
  5569. /* confdefs.h. */
  5570. _ACEOF
  5571. cat confdefs.h >>conftest.$ac_ext
  5572. cat >>conftest.$ac_ext <<_ACEOF
  5573. /* end confdefs.h. */
  5574. #include <string.h>
  5575. _ACEOF
  5576. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5577. $EGREP "memchr" >/dev/null 2>&1; then
  5578. :
  5579. else
  5580. ac_cv_header_stdc=no
  5581. fi
  5582. rm -f conftest*
  5583. fi
  5584. if test $ac_cv_header_stdc = yes; then
  5585. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5586. cat >conftest.$ac_ext <<_ACEOF
  5587. /* confdefs.h. */
  5588. _ACEOF
  5589. cat confdefs.h >>conftest.$ac_ext
  5590. cat >>conftest.$ac_ext <<_ACEOF
  5591. /* end confdefs.h. */
  5592. #include <stdlib.h>
  5593. _ACEOF
  5594. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5595. $EGREP "free" >/dev/null 2>&1; then
  5596. :
  5597. else
  5598. ac_cv_header_stdc=no
  5599. fi
  5600. rm -f conftest*
  5601. fi
  5602. if test $ac_cv_header_stdc = yes; then
  5603. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5604. if test "$cross_compiling" = yes; then
  5605. :
  5606. else
  5607. cat >conftest.$ac_ext <<_ACEOF
  5608. /* confdefs.h. */
  5609. _ACEOF
  5610. cat confdefs.h >>conftest.$ac_ext
  5611. cat >>conftest.$ac_ext <<_ACEOF
  5612. /* end confdefs.h. */
  5613. #include <ctype.h>
  5614. #include <stdlib.h>
  5615. #if ((' ' & 0x0FF) == 0x020)
  5616. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5617. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5618. #else
  5619. # define ISLOWER(c) \
  5620. (('a' <= (c) && (c) <= 'i') \
  5621. || ('j' <= (c) && (c) <= 'r') \
  5622. || ('s' <= (c) && (c) <= 'z'))
  5623. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5624. #endif
  5625. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5626. int
  5627. main ()
  5628. {
  5629. int i;
  5630. for (i = 0; i < 256; i++)
  5631. if (XOR (islower (i), ISLOWER (i))
  5632. || toupper (i) != TOUPPER (i))
  5633. return 2;
  5634. return 0;
  5635. }
  5636. _ACEOF
  5637. rm -f conftest$ac_exeext
  5638. if { (ac_try="$ac_link"
  5639. case "(($ac_try" in
  5640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5641. *) ac_try_echo=$ac_try;;
  5642. esac
  5643. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5644. (eval "$ac_link") 2>&5
  5645. ac_status=$?
  5646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5647. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5648. { (case "(($ac_try" in
  5649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5650. *) ac_try_echo=$ac_try;;
  5651. esac
  5652. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5653. (eval "$ac_try") 2>&5
  5654. ac_status=$?
  5655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5656. (exit $ac_status); }; }; then
  5657. :
  5658. else
  5659. echo "$as_me: program exited with status $ac_status" >&5
  5660. echo "$as_me: failed program was:" >&5
  5661. sed 's/^/| /' conftest.$ac_ext >&5
  5662. ( exit $ac_status )
  5663. ac_cv_header_stdc=no
  5664. fi
  5665. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5666. fi
  5667. fi
  5668. fi
  5669. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5670. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5671. if test $ac_cv_header_stdc = yes; then
  5672. cat >>confdefs.h <<\_ACEOF
  5673. #define STDC_HEADERS 1
  5674. _ACEOF
  5675. fi
  5676. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5677. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5678. inttypes.h stdint.h unistd.h
  5679. do
  5680. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5681. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5682. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5683. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5684. echo $ECHO_N "(cached) $ECHO_C" >&6
  5685. else
  5686. cat >conftest.$ac_ext <<_ACEOF
  5687. /* confdefs.h. */
  5688. _ACEOF
  5689. cat confdefs.h >>conftest.$ac_ext
  5690. cat >>conftest.$ac_ext <<_ACEOF
  5691. /* end confdefs.h. */
  5692. $ac_includes_default
  5693. #include <$ac_header>
  5694. _ACEOF
  5695. rm -f conftest.$ac_objext
  5696. if { (ac_try="$ac_compile"
  5697. case "(($ac_try" in
  5698. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5699. *) ac_try_echo=$ac_try;;
  5700. esac
  5701. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5702. (eval "$ac_compile") 2>conftest.er1
  5703. ac_status=$?
  5704. grep -v '^ *+' conftest.er1 >conftest.err
  5705. rm -f conftest.er1
  5706. cat conftest.err >&5
  5707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5708. (exit $ac_status); } &&
  5709. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5710. { (case "(($ac_try" in
  5711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5712. *) ac_try_echo=$ac_try;;
  5713. esac
  5714. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5715. (eval "$ac_try") 2>&5
  5716. ac_status=$?
  5717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5718. (exit $ac_status); }; } &&
  5719. { ac_try='test -s conftest.$ac_objext'
  5720. { (case "(($ac_try" in
  5721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5722. *) ac_try_echo=$ac_try;;
  5723. esac
  5724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5725. (eval "$ac_try") 2>&5
  5726. ac_status=$?
  5727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5728. (exit $ac_status); }; }; then
  5729. eval "$as_ac_Header=yes"
  5730. else
  5731. echo "$as_me: failed program was:" >&5
  5732. sed 's/^/| /' conftest.$ac_ext >&5
  5733. eval "$as_ac_Header=no"
  5734. fi
  5735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5736. fi
  5737. ac_res=`eval echo '${'$as_ac_Header'}'`
  5738. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5739. echo "${ECHO_T}$ac_res" >&6; }
  5740. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5741. cat >>confdefs.h <<_ACEOF
  5742. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5743. _ACEOF
  5744. fi
  5745. done
  5746. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5747. # for constant arguments. Useless!
  5748. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  5749. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  5750. if test "${ac_cv_working_alloca_h+set}" = set; then
  5751. echo $ECHO_N "(cached) $ECHO_C" >&6
  5752. else
  5753. cat >conftest.$ac_ext <<_ACEOF
  5754. /* confdefs.h. */
  5755. _ACEOF
  5756. cat confdefs.h >>conftest.$ac_ext
  5757. cat >>conftest.$ac_ext <<_ACEOF
  5758. /* end confdefs.h. */
  5759. #include <alloca.h>
  5760. int
  5761. main ()
  5762. {
  5763. char *p = (char *) alloca (2 * sizeof (int));
  5764. if (p) return 0;
  5765. ;
  5766. return 0;
  5767. }
  5768. _ACEOF
  5769. rm -f conftest.$ac_objext conftest$ac_exeext
  5770. if { (ac_try="$ac_link"
  5771. case "(($ac_try" in
  5772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5773. *) ac_try_echo=$ac_try;;
  5774. esac
  5775. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5776. (eval "$ac_link") 2>conftest.er1
  5777. ac_status=$?
  5778. grep -v '^ *+' conftest.er1 >conftest.err
  5779. rm -f conftest.er1
  5780. cat conftest.err >&5
  5781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5782. (exit $ac_status); } &&
  5783. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5784. { (case "(($ac_try" in
  5785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5786. *) ac_try_echo=$ac_try;;
  5787. esac
  5788. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5789. (eval "$ac_try") 2>&5
  5790. ac_status=$?
  5791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5792. (exit $ac_status); }; } &&
  5793. { ac_try='test -s conftest$ac_exeext'
  5794. { (case "(($ac_try" in
  5795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5796. *) ac_try_echo=$ac_try;;
  5797. esac
  5798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5799. (eval "$ac_try") 2>&5
  5800. ac_status=$?
  5801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5802. (exit $ac_status); }; }; then
  5803. ac_cv_working_alloca_h=yes
  5804. else
  5805. echo "$as_me: failed program was:" >&5
  5806. sed 's/^/| /' conftest.$ac_ext >&5
  5807. ac_cv_working_alloca_h=no
  5808. fi
  5809. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5810. conftest$ac_exeext conftest.$ac_ext
  5811. fi
  5812. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  5813. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  5814. if test $ac_cv_working_alloca_h = yes; then
  5815. cat >>confdefs.h <<\_ACEOF
  5816. #define HAVE_ALLOCA_H 1
  5817. _ACEOF
  5818. fi
  5819. { echo "$as_me:$LINENO: checking for alloca" >&5
  5820. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  5821. if test "${ac_cv_func_alloca_works+set}" = set; then
  5822. echo $ECHO_N "(cached) $ECHO_C" >&6
  5823. else
  5824. cat >conftest.$ac_ext <<_ACEOF
  5825. /* confdefs.h. */
  5826. _ACEOF
  5827. cat confdefs.h >>conftest.$ac_ext
  5828. cat >>conftest.$ac_ext <<_ACEOF
  5829. /* end confdefs.h. */
  5830. #ifdef __GNUC__
  5831. # define alloca __builtin_alloca
  5832. #else
  5833. # ifdef _MSC_VER
  5834. # include <malloc.h>
  5835. # define alloca _alloca
  5836. # else
  5837. # ifdef HAVE_ALLOCA_H
  5838. # include <alloca.h>
  5839. # else
  5840. # ifdef _AIX
  5841. #pragma alloca
  5842. # else
  5843. # ifndef alloca /* predefined by HP cc +Olibcalls */
  5844. char *alloca ();
  5845. # endif
  5846. # endif
  5847. # endif
  5848. # endif
  5849. #endif
  5850. int
  5851. main ()
  5852. {
  5853. char *p = (char *) alloca (1);
  5854. if (p) return 0;
  5855. ;
  5856. return 0;
  5857. }
  5858. _ACEOF
  5859. rm -f conftest.$ac_objext conftest$ac_exeext
  5860. if { (ac_try="$ac_link"
  5861. case "(($ac_try" in
  5862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5863. *) ac_try_echo=$ac_try;;
  5864. esac
  5865. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5866. (eval "$ac_link") 2>conftest.er1
  5867. ac_status=$?
  5868. grep -v '^ *+' conftest.er1 >conftest.err
  5869. rm -f conftest.er1
  5870. cat conftest.err >&5
  5871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5872. (exit $ac_status); } &&
  5873. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5874. { (case "(($ac_try" in
  5875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5876. *) ac_try_echo=$ac_try;;
  5877. esac
  5878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5879. (eval "$ac_try") 2>&5
  5880. ac_status=$?
  5881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5882. (exit $ac_status); }; } &&
  5883. { ac_try='test -s conftest$ac_exeext'
  5884. { (case "(($ac_try" in
  5885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5886. *) ac_try_echo=$ac_try;;
  5887. esac
  5888. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5889. (eval "$ac_try") 2>&5
  5890. ac_status=$?
  5891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5892. (exit $ac_status); }; }; then
  5893. ac_cv_func_alloca_works=yes
  5894. else
  5895. echo "$as_me: failed program was:" >&5
  5896. sed 's/^/| /' conftest.$ac_ext >&5
  5897. ac_cv_func_alloca_works=no
  5898. fi
  5899. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5900. conftest$ac_exeext conftest.$ac_ext
  5901. fi
  5902. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  5903. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  5904. if test $ac_cv_func_alloca_works = yes; then
  5905. cat >>confdefs.h <<\_ACEOF
  5906. #define HAVE_ALLOCA 1
  5907. _ACEOF
  5908. else
  5909. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5910. # that cause trouble. Some versions do not even contain alloca or
  5911. # contain a buggy version. If you still want to use their alloca,
  5912. # use ar to extract alloca.o from them instead of compiling alloca.c.
  5913. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  5914. cat >>confdefs.h <<\_ACEOF
  5915. #define C_ALLOCA 1
  5916. _ACEOF
  5917. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  5918. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  5919. if test "${ac_cv_os_cray+set}" = set; then
  5920. echo $ECHO_N "(cached) $ECHO_C" >&6
  5921. else
  5922. cat >conftest.$ac_ext <<_ACEOF
  5923. /* confdefs.h. */
  5924. _ACEOF
  5925. cat confdefs.h >>conftest.$ac_ext
  5926. cat >>conftest.$ac_ext <<_ACEOF
  5927. /* end confdefs.h. */
  5928. #if defined CRAY && ! defined CRAY2
  5929. webecray
  5930. #else
  5931. wenotbecray
  5932. #endif
  5933. _ACEOF
  5934. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5935. $EGREP "webecray" >/dev/null 2>&1; then
  5936. ac_cv_os_cray=yes
  5937. else
  5938. ac_cv_os_cray=no
  5939. fi
  5940. rm -f conftest*
  5941. fi
  5942. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  5943. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  5944. if test $ac_cv_os_cray = yes; then
  5945. for ac_func in _getb67 GETB67 getb67; do
  5946. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5947. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5948. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5949. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5950. echo $ECHO_N "(cached) $ECHO_C" >&6
  5951. else
  5952. cat >conftest.$ac_ext <<_ACEOF
  5953. /* confdefs.h. */
  5954. _ACEOF
  5955. cat confdefs.h >>conftest.$ac_ext
  5956. cat >>conftest.$ac_ext <<_ACEOF
  5957. /* end confdefs.h. */
  5958. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5959. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5960. #define $ac_func innocuous_$ac_func
  5961. /* System header to define __stub macros and hopefully few prototypes,
  5962. which can conflict with char $ac_func (); below.
  5963. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5964. <limits.h> exists even on freestanding compilers. */
  5965. #ifdef __STDC__
  5966. # include <limits.h>
  5967. #else
  5968. # include <assert.h>
  5969. #endif
  5970. #undef $ac_func
  5971. /* Override any GCC internal prototype to avoid an error.
  5972. Use char because int might match the return type of a GCC
  5973. builtin and then its argument prototype would still apply. */
  5974. #ifdef __cplusplus
  5975. extern "C"
  5976. #endif
  5977. char $ac_func ();
  5978. /* The GNU C library defines this for functions which it implements
  5979. to always fail with ENOSYS. Some functions are actually named
  5980. something starting with __ and the normal name is an alias. */
  5981. #if defined __stub_$ac_func || defined __stub___$ac_func
  5982. choke me
  5983. #endif
  5984. int
  5985. main ()
  5986. {
  5987. return $ac_func ();
  5988. ;
  5989. return 0;
  5990. }
  5991. _ACEOF
  5992. rm -f conftest.$ac_objext conftest$ac_exeext
  5993. if { (ac_try="$ac_link"
  5994. case "(($ac_try" in
  5995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5996. *) ac_try_echo=$ac_try;;
  5997. esac
  5998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5999. (eval "$ac_link") 2>conftest.er1
  6000. ac_status=$?
  6001. grep -v '^ *+' conftest.er1 >conftest.err
  6002. rm -f conftest.er1
  6003. cat conftest.err >&5
  6004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6005. (exit $ac_status); } &&
  6006. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6007. { (case "(($ac_try" in
  6008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6009. *) ac_try_echo=$ac_try;;
  6010. esac
  6011. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6012. (eval "$ac_try") 2>&5
  6013. ac_status=$?
  6014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6015. (exit $ac_status); }; } &&
  6016. { ac_try='test -s conftest$ac_exeext'
  6017. { (case "(($ac_try" in
  6018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6019. *) ac_try_echo=$ac_try;;
  6020. esac
  6021. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6022. (eval "$ac_try") 2>&5
  6023. ac_status=$?
  6024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6025. (exit $ac_status); }; }; then
  6026. eval "$as_ac_var=yes"
  6027. else
  6028. echo "$as_me: failed program was:" >&5
  6029. sed 's/^/| /' conftest.$ac_ext >&5
  6030. eval "$as_ac_var=no"
  6031. fi
  6032. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6033. conftest$ac_exeext conftest.$ac_ext
  6034. fi
  6035. ac_res=`eval echo '${'$as_ac_var'}'`
  6036. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6037. echo "${ECHO_T}$ac_res" >&6; }
  6038. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6039. cat >>confdefs.h <<_ACEOF
  6040. #define CRAY_STACKSEG_END $ac_func
  6041. _ACEOF
  6042. break
  6043. fi
  6044. done
  6045. fi
  6046. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6047. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6048. if test "${ac_cv_c_stack_direction+set}" = set; then
  6049. echo $ECHO_N "(cached) $ECHO_C" >&6
  6050. else
  6051. if test "$cross_compiling" = yes; then
  6052. ac_cv_c_stack_direction=0
  6053. else
  6054. cat >conftest.$ac_ext <<_ACEOF
  6055. /* confdefs.h. */
  6056. _ACEOF
  6057. cat confdefs.h >>conftest.$ac_ext
  6058. cat >>conftest.$ac_ext <<_ACEOF
  6059. /* end confdefs.h. */
  6060. $ac_includes_default
  6061. int
  6062. find_stack_direction ()
  6063. {
  6064. static char *addr = 0;
  6065. auto char dummy;
  6066. if (addr == 0)
  6067. {
  6068. addr = &dummy;
  6069. return find_stack_direction ();
  6070. }
  6071. else
  6072. return (&dummy > addr) ? 1 : -1;
  6073. }
  6074. int
  6075. main ()
  6076. {
  6077. return find_stack_direction () < 0;
  6078. }
  6079. _ACEOF
  6080. rm -f conftest$ac_exeext
  6081. if { (ac_try="$ac_link"
  6082. case "(($ac_try" in
  6083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6084. *) ac_try_echo=$ac_try;;
  6085. esac
  6086. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6087. (eval "$ac_link") 2>&5
  6088. ac_status=$?
  6089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6090. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6091. { (case "(($ac_try" in
  6092. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6093. *) ac_try_echo=$ac_try;;
  6094. esac
  6095. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6096. (eval "$ac_try") 2>&5
  6097. ac_status=$?
  6098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6099. (exit $ac_status); }; }; then
  6100. ac_cv_c_stack_direction=1
  6101. else
  6102. echo "$as_me: program exited with status $ac_status" >&5
  6103. echo "$as_me: failed program was:" >&5
  6104. sed 's/^/| /' conftest.$ac_ext >&5
  6105. ( exit $ac_status )
  6106. ac_cv_c_stack_direction=-1
  6107. fi
  6108. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6109. fi
  6110. fi
  6111. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6112. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6113. cat >>confdefs.h <<_ACEOF
  6114. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6115. _ACEOF
  6116. fi
  6117. #AC_HEADER_STDC
  6118. for ac_header in argz.h arpa/inet.h fcntl.h inttypes.h langinfo.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/param.h sys/socket.h sys/time.h unistd.h
  6119. do
  6120. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6121. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6122. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6123. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6124. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6125. echo $ECHO_N "(cached) $ECHO_C" >&6
  6126. fi
  6127. ac_res=`eval echo '${'$as_ac_Header'}'`
  6128. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6129. echo "${ECHO_T}$ac_res" >&6; }
  6130. else
  6131. # Is the header compilable?
  6132. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6133. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6134. cat >conftest.$ac_ext <<_ACEOF
  6135. /* confdefs.h. */
  6136. _ACEOF
  6137. cat confdefs.h >>conftest.$ac_ext
  6138. cat >>conftest.$ac_ext <<_ACEOF
  6139. /* end confdefs.h. */
  6140. $ac_includes_default
  6141. #include <$ac_header>
  6142. _ACEOF
  6143. rm -f conftest.$ac_objext
  6144. if { (ac_try="$ac_compile"
  6145. case "(($ac_try" in
  6146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6147. *) ac_try_echo=$ac_try;;
  6148. esac
  6149. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6150. (eval "$ac_compile") 2>conftest.er1
  6151. ac_status=$?
  6152. grep -v '^ *+' conftest.er1 >conftest.err
  6153. rm -f conftest.er1
  6154. cat conftest.err >&5
  6155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6156. (exit $ac_status); } &&
  6157. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6158. { (case "(($ac_try" in
  6159. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6160. *) ac_try_echo=$ac_try;;
  6161. esac
  6162. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6163. (eval "$ac_try") 2>&5
  6164. ac_status=$?
  6165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6166. (exit $ac_status); }; } &&
  6167. { ac_try='test -s conftest.$ac_objext'
  6168. { (case "(($ac_try" in
  6169. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6170. *) ac_try_echo=$ac_try;;
  6171. esac
  6172. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6173. (eval "$ac_try") 2>&5
  6174. ac_status=$?
  6175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6176. (exit $ac_status); }; }; then
  6177. ac_header_compiler=yes
  6178. else
  6179. echo "$as_me: failed program was:" >&5
  6180. sed 's/^/| /' conftest.$ac_ext >&5
  6181. ac_header_compiler=no
  6182. fi
  6183. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6184. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6185. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6186. # Is the header present?
  6187. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6188. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6189. cat >conftest.$ac_ext <<_ACEOF
  6190. /* confdefs.h. */
  6191. _ACEOF
  6192. cat confdefs.h >>conftest.$ac_ext
  6193. cat >>conftest.$ac_ext <<_ACEOF
  6194. /* end confdefs.h. */
  6195. #include <$ac_header>
  6196. _ACEOF
  6197. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6198. case "(($ac_try" in
  6199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6200. *) ac_try_echo=$ac_try;;
  6201. esac
  6202. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6203. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6204. ac_status=$?
  6205. grep -v '^ *+' conftest.er1 >conftest.err
  6206. rm -f conftest.er1
  6207. cat conftest.err >&5
  6208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6209. (exit $ac_status); } >/dev/null; then
  6210. if test -s conftest.err; then
  6211. ac_cpp_err=$ac_c_preproc_warn_flag
  6212. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6213. else
  6214. ac_cpp_err=
  6215. fi
  6216. else
  6217. ac_cpp_err=yes
  6218. fi
  6219. if test -z "$ac_cpp_err"; then
  6220. ac_header_preproc=yes
  6221. else
  6222. echo "$as_me: failed program was:" >&5
  6223. sed 's/^/| /' conftest.$ac_ext >&5
  6224. ac_header_preproc=no
  6225. fi
  6226. rm -f conftest.err conftest.$ac_ext
  6227. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6228. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6229. # So? What about this header?
  6230. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6231. yes:no: )
  6232. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6233. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6234. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6235. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6236. ac_header_preproc=yes
  6237. ;;
  6238. no:yes:* )
  6239. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6240. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6241. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6242. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6243. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6244. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6245. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6246. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6247. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6248. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6249. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6250. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6251. ( cat <<\_ASBOX
  6252. ## ----------------------------------- ##
  6253. ## Report this to tujikawa@rednoah.com ##
  6254. ## ----------------------------------- ##
  6255. _ASBOX
  6256. ) | sed "s/^/$as_me: WARNING: /" >&2
  6257. ;;
  6258. esac
  6259. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6260. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6261. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6262. echo $ECHO_N "(cached) $ECHO_C" >&6
  6263. else
  6264. eval "$as_ac_Header=\$ac_header_preproc"
  6265. fi
  6266. ac_res=`eval echo '${'$as_ac_Header'}'`
  6267. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6268. echo "${ECHO_T}$ac_res" >&6; }
  6269. fi
  6270. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6271. cat >>confdefs.h <<_ACEOF
  6272. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6273. _ACEOF
  6274. fi
  6275. done
  6276. # Checks for typedefs, structures, and compiler characteristics.
  6277. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6278. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  6279. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6280. echo $ECHO_N "(cached) $ECHO_C" >&6
  6281. else
  6282. cat >conftest.$ac_ext <<_ACEOF
  6283. /* confdefs.h. */
  6284. _ACEOF
  6285. cat confdefs.h >>conftest.$ac_ext
  6286. cat >>conftest.$ac_ext <<_ACEOF
  6287. /* end confdefs.h. */
  6288. #include <stdbool.h>
  6289. #ifndef bool
  6290. "error: bool is not defined"
  6291. #endif
  6292. #ifndef false
  6293. "error: false is not defined"
  6294. #endif
  6295. #if false
  6296. "error: false is not 0"
  6297. #endif
  6298. #ifndef true
  6299. "error: true is not defined"
  6300. #endif
  6301. #if true != 1
  6302. "error: true is not 1"
  6303. #endif
  6304. #ifndef __bool_true_false_are_defined
  6305. "error: __bool_true_false_are_defined is not defined"
  6306. #endif
  6307. struct s { _Bool s: 1; _Bool t; } s;
  6308. char a[true == 1 ? 1 : -1];
  6309. char b[false == 0 ? 1 : -1];
  6310. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6311. char d[(bool) 0.5 == true ? 1 : -1];
  6312. bool e = &s;
  6313. char f[(_Bool) 0.0 == false ? 1 : -1];
  6314. char g[true];
  6315. char h[sizeof (_Bool)];
  6316. char i[sizeof s.t];
  6317. enum { j = false, k = true, l = false * true, m = true * 256 };
  6318. _Bool n[m];
  6319. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6320. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6321. # if defined __xlc__ || defined __GNUC__
  6322. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6323. reported by James Lemley on 2005-10-05; see
  6324. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6325. This test is not quite right, since xlc is allowed to
  6326. reject this program, as the initializer for xlcbug is
  6327. not one of the forms that C requires support for.
  6328. However, doing the test right would require a runtime
  6329. test, and that would make cross-compilation harder.
  6330. Let us hope that IBM fixes the xlc bug, and also adds
  6331. support for this kind of constant expression. In the
  6332. meantime, this test will reject xlc, which is OK, since
  6333. our stdbool.h substitute should suffice. We also test
  6334. this with GCC, where it should work, to detect more
  6335. quickly whether someone messes up the test in the
  6336. future. */
  6337. char digs[] = "0123456789";
  6338. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6339. # endif
  6340. /* Catch a bug in an HP-UX C compiler. See
  6341. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6342. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6343. */
  6344. _Bool q = true;
  6345. _Bool *pq = &q;
  6346. int
  6347. main ()
  6348. {
  6349. *pq |= q;
  6350. *pq |= ! q;
  6351. /* Refer to every declared value, to avoid compiler optimizations. */
  6352. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6353. + !m + !n + !o + !p + !q + !pq);
  6354. ;
  6355. return 0;
  6356. }
  6357. _ACEOF
  6358. rm -f conftest.$ac_objext
  6359. if { (ac_try="$ac_compile"
  6360. case "(($ac_try" in
  6361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6362. *) ac_try_echo=$ac_try;;
  6363. esac
  6364. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6365. (eval "$ac_compile") 2>conftest.er1
  6366. ac_status=$?
  6367. grep -v '^ *+' conftest.er1 >conftest.err
  6368. rm -f conftest.er1
  6369. cat conftest.err >&5
  6370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6371. (exit $ac_status); } &&
  6372. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6373. { (case "(($ac_try" in
  6374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6375. *) ac_try_echo=$ac_try;;
  6376. esac
  6377. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6378. (eval "$ac_try") 2>&5
  6379. ac_status=$?
  6380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6381. (exit $ac_status); }; } &&
  6382. { ac_try='test -s conftest.$ac_objext'
  6383. { (case "(($ac_try" in
  6384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6385. *) ac_try_echo=$ac_try;;
  6386. esac
  6387. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6388. (eval "$ac_try") 2>&5
  6389. ac_status=$?
  6390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6391. (exit $ac_status); }; }; then
  6392. ac_cv_header_stdbool_h=yes
  6393. else
  6394. echo "$as_me: failed program was:" >&5
  6395. sed 's/^/| /' conftest.$ac_ext >&5
  6396. ac_cv_header_stdbool_h=no
  6397. fi
  6398. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6399. fi
  6400. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6401. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6402. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6403. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6404. if test "${ac_cv_type__Bool+set}" = set; then
  6405. echo $ECHO_N "(cached) $ECHO_C" >&6
  6406. else
  6407. cat >conftest.$ac_ext <<_ACEOF
  6408. /* confdefs.h. */
  6409. _ACEOF
  6410. cat confdefs.h >>conftest.$ac_ext
  6411. cat >>conftest.$ac_ext <<_ACEOF
  6412. /* end confdefs.h. */
  6413. $ac_includes_default
  6414. typedef _Bool ac__type_new_;
  6415. int
  6416. main ()
  6417. {
  6418. if ((ac__type_new_ *) 0)
  6419. return 0;
  6420. if (sizeof (ac__type_new_))
  6421. return 0;
  6422. ;
  6423. return 0;
  6424. }
  6425. _ACEOF
  6426. rm -f conftest.$ac_objext
  6427. if { (ac_try="$ac_compile"
  6428. case "(($ac_try" in
  6429. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6430. *) ac_try_echo=$ac_try;;
  6431. esac
  6432. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6433. (eval "$ac_compile") 2>conftest.er1
  6434. ac_status=$?
  6435. grep -v '^ *+' conftest.er1 >conftest.err
  6436. rm -f conftest.er1
  6437. cat conftest.err >&5
  6438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6439. (exit $ac_status); } &&
  6440. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6441. { (case "(($ac_try" in
  6442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6443. *) ac_try_echo=$ac_try;;
  6444. esac
  6445. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6446. (eval "$ac_try") 2>&5
  6447. ac_status=$?
  6448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6449. (exit $ac_status); }; } &&
  6450. { ac_try='test -s conftest.$ac_objext'
  6451. { (case "(($ac_try" in
  6452. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6453. *) ac_try_echo=$ac_try;;
  6454. esac
  6455. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6456. (eval "$ac_try") 2>&5
  6457. ac_status=$?
  6458. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6459. (exit $ac_status); }; }; then
  6460. ac_cv_type__Bool=yes
  6461. else
  6462. echo "$as_me: failed program was:" >&5
  6463. sed 's/^/| /' conftest.$ac_ext >&5
  6464. ac_cv_type__Bool=no
  6465. fi
  6466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6467. fi
  6468. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  6469. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  6470. if test $ac_cv_type__Bool = yes; then
  6471. cat >>confdefs.h <<_ACEOF
  6472. #define HAVE__BOOL 1
  6473. _ACEOF
  6474. fi
  6475. if test $ac_cv_header_stdbool_h = yes; then
  6476. cat >>confdefs.h <<\_ACEOF
  6477. #define HAVE_STDBOOL_H 1
  6478. _ACEOF
  6479. fi
  6480. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6481. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  6482. if test "${ac_cv_c_const+set}" = set; then
  6483. echo $ECHO_N "(cached) $ECHO_C" >&6
  6484. else
  6485. cat >conftest.$ac_ext <<_ACEOF
  6486. /* confdefs.h. */
  6487. _ACEOF
  6488. cat confdefs.h >>conftest.$ac_ext
  6489. cat >>conftest.$ac_ext <<_ACEOF
  6490. /* end confdefs.h. */
  6491. int
  6492. main ()
  6493. {
  6494. /* FIXME: Include the comments suggested by Paul. */
  6495. #ifndef __cplusplus
  6496. /* Ultrix mips cc rejects this. */
  6497. typedef int charset[2];
  6498. const charset cs;
  6499. /* SunOS 4.1.1 cc rejects this. */
  6500. char const *const *pcpcc;
  6501. char **ppc;
  6502. /* NEC SVR4.0.2 mips cc rejects this. */
  6503. struct point {int x, y;};
  6504. static struct point const zero = {0,0};
  6505. /* AIX XL C 1.02.0.0 rejects this.
  6506. It does not let you subtract one const X* pointer from another in
  6507. an arm of an if-expression whose if-part is not a constant
  6508. expression */
  6509. const char *g = "string";
  6510. pcpcc = &g + (g ? g-g : 0);
  6511. /* HPUX 7.0 cc rejects these. */
  6512. ++pcpcc;
  6513. ppc = (char**) pcpcc;
  6514. pcpcc = (char const *const *) ppc;
  6515. { /* SCO 3.2v4 cc rejects this. */
  6516. char *t;
  6517. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6518. *t++ = 0;
  6519. if (s) return 0;
  6520. }
  6521. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6522. int x[] = {25, 17};
  6523. const int *foo = &x[0];
  6524. ++foo;
  6525. }
  6526. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6527. typedef const int *iptr;
  6528. iptr p = 0;
  6529. ++p;
  6530. }
  6531. { /* AIX XL C 1.02.0.0 rejects this saying
  6532. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6533. struct s { int j; const int *ap[3]; };
  6534. struct s *b; b->j = 5;
  6535. }
  6536. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6537. const int foo = 10;
  6538. if (!foo) return 0;
  6539. }
  6540. return !cs[0] && !zero.x;
  6541. #endif
  6542. ;
  6543. return 0;
  6544. }
  6545. _ACEOF
  6546. rm -f conftest.$ac_objext
  6547. if { (ac_try="$ac_compile"
  6548. case "(($ac_try" in
  6549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6550. *) ac_try_echo=$ac_try;;
  6551. esac
  6552. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6553. (eval "$ac_compile") 2>conftest.er1
  6554. ac_status=$?
  6555. grep -v '^ *+' conftest.er1 >conftest.err
  6556. rm -f conftest.er1
  6557. cat conftest.err >&5
  6558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6559. (exit $ac_status); } &&
  6560. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6561. { (case "(($ac_try" in
  6562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6563. *) ac_try_echo=$ac_try;;
  6564. esac
  6565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6566. (eval "$ac_try") 2>&5
  6567. ac_status=$?
  6568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6569. (exit $ac_status); }; } &&
  6570. { ac_try='test -s conftest.$ac_objext'
  6571. { (case "(($ac_try" in
  6572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6573. *) ac_try_echo=$ac_try;;
  6574. esac
  6575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6576. (eval "$ac_try") 2>&5
  6577. ac_status=$?
  6578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6579. (exit $ac_status); }; }; then
  6580. ac_cv_c_const=yes
  6581. else
  6582. echo "$as_me: failed program was:" >&5
  6583. sed 's/^/| /' conftest.$ac_ext >&5
  6584. ac_cv_c_const=no
  6585. fi
  6586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6587. fi
  6588. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6589. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  6590. if test $ac_cv_c_const = no; then
  6591. cat >>confdefs.h <<\_ACEOF
  6592. #define const
  6593. _ACEOF
  6594. fi
  6595. { echo "$as_me:$LINENO: checking for inline" >&5
  6596. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  6597. if test "${ac_cv_c_inline+set}" = set; then
  6598. echo $ECHO_N "(cached) $ECHO_C" >&6
  6599. else
  6600. ac_cv_c_inline=no
  6601. for ac_kw in inline __inline__ __inline; do
  6602. cat >conftest.$ac_ext <<_ACEOF
  6603. /* confdefs.h. */
  6604. _ACEOF
  6605. cat confdefs.h >>conftest.$ac_ext
  6606. cat >>conftest.$ac_ext <<_ACEOF
  6607. /* end confdefs.h. */
  6608. #ifndef __cplusplus
  6609. typedef int foo_t;
  6610. static $ac_kw foo_t static_foo () {return 0; }
  6611. $ac_kw foo_t foo () {return 0; }
  6612. #endif
  6613. _ACEOF
  6614. rm -f conftest.$ac_objext
  6615. if { (ac_try="$ac_compile"
  6616. case "(($ac_try" in
  6617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6618. *) ac_try_echo=$ac_try;;
  6619. esac
  6620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6621. (eval "$ac_compile") 2>conftest.er1
  6622. ac_status=$?
  6623. grep -v '^ *+' conftest.er1 >conftest.err
  6624. rm -f conftest.er1
  6625. cat conftest.err >&5
  6626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6627. (exit $ac_status); } &&
  6628. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6629. { (case "(($ac_try" in
  6630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6631. *) ac_try_echo=$ac_try;;
  6632. esac
  6633. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6634. (eval "$ac_try") 2>&5
  6635. ac_status=$?
  6636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6637. (exit $ac_status); }; } &&
  6638. { ac_try='test -s conftest.$ac_objext'
  6639. { (case "(($ac_try" in
  6640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6641. *) ac_try_echo=$ac_try;;
  6642. esac
  6643. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6644. (eval "$ac_try") 2>&5
  6645. ac_status=$?
  6646. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6647. (exit $ac_status); }; }; then
  6648. ac_cv_c_inline=$ac_kw
  6649. else
  6650. echo "$as_me: failed program was:" >&5
  6651. sed 's/^/| /' conftest.$ac_ext >&5
  6652. fi
  6653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6654. test "$ac_cv_c_inline" != no && break
  6655. done
  6656. fi
  6657. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6658. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  6659. case $ac_cv_c_inline in
  6660. inline | yes) ;;
  6661. *)
  6662. case $ac_cv_c_inline in
  6663. no) ac_val=;;
  6664. *) ac_val=$ac_cv_c_inline;;
  6665. esac
  6666. cat >>confdefs.h <<_ACEOF
  6667. #ifndef __cplusplus
  6668. #define inline $ac_val
  6669. #endif
  6670. _ACEOF
  6671. ;;
  6672. esac
  6673. { echo "$as_me:$LINENO: checking for size_t" >&5
  6674. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  6675. if test "${ac_cv_type_size_t+set}" = set; then
  6676. echo $ECHO_N "(cached) $ECHO_C" >&6
  6677. else
  6678. cat >conftest.$ac_ext <<_ACEOF
  6679. /* confdefs.h. */
  6680. _ACEOF
  6681. cat confdefs.h >>conftest.$ac_ext
  6682. cat >>conftest.$ac_ext <<_ACEOF
  6683. /* end confdefs.h. */
  6684. $ac_includes_default
  6685. typedef size_t ac__type_new_;
  6686. int
  6687. main ()
  6688. {
  6689. if ((ac__type_new_ *) 0)
  6690. return 0;
  6691. if (sizeof (ac__type_new_))
  6692. return 0;
  6693. ;
  6694. return 0;
  6695. }
  6696. _ACEOF
  6697. rm -f conftest.$ac_objext
  6698. if { (ac_try="$ac_compile"
  6699. case "(($ac_try" in
  6700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6701. *) ac_try_echo=$ac_try;;
  6702. esac
  6703. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6704. (eval "$ac_compile") 2>conftest.er1
  6705. ac_status=$?
  6706. grep -v '^ *+' conftest.er1 >conftest.err
  6707. rm -f conftest.er1
  6708. cat conftest.err >&5
  6709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6710. (exit $ac_status); } &&
  6711. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6712. { (case "(($ac_try" in
  6713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6714. *) ac_try_echo=$ac_try;;
  6715. esac
  6716. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6717. (eval "$ac_try") 2>&5
  6718. ac_status=$?
  6719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6720. (exit $ac_status); }; } &&
  6721. { ac_try='test -s conftest.$ac_objext'
  6722. { (case "(($ac_try" in
  6723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6724. *) ac_try_echo=$ac_try;;
  6725. esac
  6726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6727. (eval "$ac_try") 2>&5
  6728. ac_status=$?
  6729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6730. (exit $ac_status); }; }; then
  6731. ac_cv_type_size_t=yes
  6732. else
  6733. echo "$as_me: failed program was:" >&5
  6734. sed 's/^/| /' conftest.$ac_ext >&5
  6735. ac_cv_type_size_t=no
  6736. fi
  6737. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6738. fi
  6739. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6740. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  6741. if test $ac_cv_type_size_t = yes; then
  6742. :
  6743. else
  6744. cat >>confdefs.h <<_ACEOF
  6745. #define size_t unsigned int
  6746. _ACEOF
  6747. fi
  6748. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  6749. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  6750. if test "${ac_cv_header_time+set}" = set; then
  6751. echo $ECHO_N "(cached) $ECHO_C" >&6
  6752. else
  6753. cat >conftest.$ac_ext <<_ACEOF
  6754. /* confdefs.h. */
  6755. _ACEOF
  6756. cat confdefs.h >>conftest.$ac_ext
  6757. cat >>conftest.$ac_ext <<_ACEOF
  6758. /* end confdefs.h. */
  6759. #include <sys/types.h>
  6760. #include <sys/time.h>
  6761. #include <time.h>
  6762. int
  6763. main ()
  6764. {
  6765. if ((struct tm *) 0)
  6766. return 0;
  6767. ;
  6768. return 0;
  6769. }
  6770. _ACEOF
  6771. rm -f conftest.$ac_objext
  6772. if { (ac_try="$ac_compile"
  6773. case "(($ac_try" in
  6774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6775. *) ac_try_echo=$ac_try;;
  6776. esac
  6777. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6778. (eval "$ac_compile") 2>conftest.er1
  6779. ac_status=$?
  6780. grep -v '^ *+' conftest.er1 >conftest.err
  6781. rm -f conftest.er1
  6782. cat conftest.err >&5
  6783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6784. (exit $ac_status); } &&
  6785. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6786. { (case "(($ac_try" in
  6787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6788. *) ac_try_echo=$ac_try;;
  6789. esac
  6790. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6791. (eval "$ac_try") 2>&5
  6792. ac_status=$?
  6793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6794. (exit $ac_status); }; } &&
  6795. { ac_try='test -s conftest.$ac_objext'
  6796. { (case "(($ac_try" in
  6797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6798. *) ac_try_echo=$ac_try;;
  6799. esac
  6800. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6801. (eval "$ac_try") 2>&5
  6802. ac_status=$?
  6803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6804. (exit $ac_status); }; }; then
  6805. ac_cv_header_time=yes
  6806. else
  6807. echo "$as_me: failed program was:" >&5
  6808. sed 's/^/| /' conftest.$ac_ext >&5
  6809. ac_cv_header_time=no
  6810. fi
  6811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6812. fi
  6813. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  6814. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  6815. if test $ac_cv_header_time = yes; then
  6816. cat >>confdefs.h <<\_ACEOF
  6817. #define TIME_WITH_SYS_TIME 1
  6818. _ACEOF
  6819. fi
  6820. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6821. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  6822. if test "${ac_cv_struct_tm+set}" = set; then
  6823. echo $ECHO_N "(cached) $ECHO_C" >&6
  6824. else
  6825. cat >conftest.$ac_ext <<_ACEOF
  6826. /* confdefs.h. */
  6827. _ACEOF
  6828. cat confdefs.h >>conftest.$ac_ext
  6829. cat >>conftest.$ac_ext <<_ACEOF
  6830. /* end confdefs.h. */
  6831. #include <sys/types.h>
  6832. #include <time.h>
  6833. int
  6834. main ()
  6835. {
  6836. struct tm *tp; tp->tm_sec;
  6837. ;
  6838. return 0;
  6839. }
  6840. _ACEOF
  6841. rm -f conftest.$ac_objext
  6842. if { (ac_try="$ac_compile"
  6843. case "(($ac_try" in
  6844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6845. *) ac_try_echo=$ac_try;;
  6846. esac
  6847. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6848. (eval "$ac_compile") 2>conftest.er1
  6849. ac_status=$?
  6850. grep -v '^ *+' conftest.er1 >conftest.err
  6851. rm -f conftest.er1
  6852. cat conftest.err >&5
  6853. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6854. (exit $ac_status); } &&
  6855. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6856. { (case "(($ac_try" in
  6857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6858. *) ac_try_echo=$ac_try;;
  6859. esac
  6860. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6861. (eval "$ac_try") 2>&5
  6862. ac_status=$?
  6863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6864. (exit $ac_status); }; } &&
  6865. { ac_try='test -s conftest.$ac_objext'
  6866. { (case "(($ac_try" in
  6867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6868. *) ac_try_echo=$ac_try;;
  6869. esac
  6870. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6871. (eval "$ac_try") 2>&5
  6872. ac_status=$?
  6873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6874. (exit $ac_status); }; }; then
  6875. ac_cv_struct_tm=time.h
  6876. else
  6877. echo "$as_me: failed program was:" >&5
  6878. sed 's/^/| /' conftest.$ac_ext >&5
  6879. ac_cv_struct_tm=sys/time.h
  6880. fi
  6881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6882. fi
  6883. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6884. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  6885. if test $ac_cv_struct_tm = sys/time.h; then
  6886. cat >>confdefs.h <<\_ACEOF
  6887. #define TM_IN_SYS_TIME 1
  6888. _ACEOF
  6889. fi
  6890. { echo "$as_me:$LINENO: checking for working volatile" >&5
  6891. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  6892. if test "${ac_cv_c_volatile+set}" = set; then
  6893. echo $ECHO_N "(cached) $ECHO_C" >&6
  6894. else
  6895. cat >conftest.$ac_ext <<_ACEOF
  6896. /* confdefs.h. */
  6897. _ACEOF
  6898. cat confdefs.h >>conftest.$ac_ext
  6899. cat >>conftest.$ac_ext <<_ACEOF
  6900. /* end confdefs.h. */
  6901. int
  6902. main ()
  6903. {
  6904. volatile int x;
  6905. int * volatile y = (int *) 0;
  6906. return !x && !y;
  6907. ;
  6908. return 0;
  6909. }
  6910. _ACEOF
  6911. rm -f conftest.$ac_objext
  6912. if { (ac_try="$ac_compile"
  6913. case "(($ac_try" in
  6914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6915. *) ac_try_echo=$ac_try;;
  6916. esac
  6917. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6918. (eval "$ac_compile") 2>conftest.er1
  6919. ac_status=$?
  6920. grep -v '^ *+' conftest.er1 >conftest.err
  6921. rm -f conftest.er1
  6922. cat conftest.err >&5
  6923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6924. (exit $ac_status); } &&
  6925. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6926. { (case "(($ac_try" in
  6927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6928. *) ac_try_echo=$ac_try;;
  6929. esac
  6930. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6931. (eval "$ac_try") 2>&5
  6932. ac_status=$?
  6933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6934. (exit $ac_status); }; } &&
  6935. { ac_try='test -s conftest.$ac_objext'
  6936. { (case "(($ac_try" in
  6937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6938. *) ac_try_echo=$ac_try;;
  6939. esac
  6940. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6941. (eval "$ac_try") 2>&5
  6942. ac_status=$?
  6943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6944. (exit $ac_status); }; }; then
  6945. ac_cv_c_volatile=yes
  6946. else
  6947. echo "$as_me: failed program was:" >&5
  6948. sed 's/^/| /' conftest.$ac_ext >&5
  6949. ac_cv_c_volatile=no
  6950. fi
  6951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6952. fi
  6953. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  6954. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  6955. if test $ac_cv_c_volatile = no; then
  6956. cat >>confdefs.h <<\_ACEOF
  6957. #define volatile
  6958. _ACEOF
  6959. fi
  6960. # Checks for library functions.
  6961. MKINSTALLDIRS=
  6962. if test -n "$ac_aux_dir"; then
  6963. case "$ac_aux_dir" in
  6964. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  6965. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  6966. esac
  6967. fi
  6968. if test -z "$MKINSTALLDIRS"; then
  6969. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  6970. fi
  6971. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  6972. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  6973. # Check whether --enable-nls was given.
  6974. if test "${enable_nls+set}" = set; then
  6975. enableval=$enable_nls; USE_NLS=$enableval
  6976. else
  6977. USE_NLS=yes
  6978. fi
  6979. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  6980. echo "${ECHO_T}$USE_NLS" >&6; }
  6981. # Prepare PATH_SEPARATOR.
  6982. # The user is always right.
  6983. if test "${PATH_SEPARATOR+set}" != set; then
  6984. echo "#! /bin/sh" >conf$$.sh
  6985. echo "exit 0" >>conf$$.sh
  6986. chmod +x conf$$.sh
  6987. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6988. PATH_SEPARATOR=';'
  6989. else
  6990. PATH_SEPARATOR=:
  6991. fi
  6992. rm -f conf$$.sh
  6993. fi
  6994. # Find out how to test for executable files. Don't use a zero-byte file,
  6995. # as systems may use methods other than mode bits to determine executability.
  6996. cat >conf$$.file <<_ASEOF
  6997. #! /bin/sh
  6998. exit 0
  6999. _ASEOF
  7000. chmod +x conf$$.file
  7001. if test -x conf$$.file >/dev/null 2>&1; then
  7002. ac_executable_p="test -x"
  7003. else
  7004. ac_executable_p="test -f"
  7005. fi
  7006. rm -f conf$$.file
  7007. # Extract the first word of "msgfmt", so it can be a program name with args.
  7008. set dummy msgfmt; ac_word=$2
  7009. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7010. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7011. if test "${ac_cv_path_MSGFMT+set}" = set; then
  7012. echo $ECHO_N "(cached) $ECHO_C" >&6
  7013. else
  7014. case "$MSGFMT" in
  7015. [\\/]* | ?:[\\/]*)
  7016. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7017. ;;
  7018. *)
  7019. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7020. for ac_dir in $PATH; do
  7021. IFS="$ac_save_IFS"
  7022. test -z "$ac_dir" && ac_dir=.
  7023. for ac_exec_ext in '' $ac_executable_extensions; do
  7024. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7025. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  7026. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7027. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  7028. break 2
  7029. fi
  7030. fi
  7031. done
  7032. done
  7033. IFS="$ac_save_IFS"
  7034. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  7035. ;;
  7036. esac
  7037. fi
  7038. MSGFMT="$ac_cv_path_MSGFMT"
  7039. if test "$MSGFMT" != ":"; then
  7040. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  7041. echo "${ECHO_T}$MSGFMT" >&6; }
  7042. else
  7043. { echo "$as_me:$LINENO: result: no" >&5
  7044. echo "${ECHO_T}no" >&6; }
  7045. fi
  7046. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7047. set dummy gmsgfmt; ac_word=$2
  7048. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7049. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7050. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  7051. echo $ECHO_N "(cached) $ECHO_C" >&6
  7052. else
  7053. case $GMSGFMT in
  7054. [\\/]* | ?:[\\/]*)
  7055. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7056. ;;
  7057. *)
  7058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7059. for as_dir in $PATH
  7060. do
  7061. IFS=$as_save_IFS
  7062. test -z "$as_dir" && as_dir=.
  7063. for ac_exec_ext in '' $ac_executable_extensions; do
  7064. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  7065. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7066. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7067. break 2
  7068. fi
  7069. done
  7070. done
  7071. IFS=$as_save_IFS
  7072. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7073. ;;
  7074. esac
  7075. fi
  7076. GMSGFMT=$ac_cv_path_GMSGFMT
  7077. if test -n "$GMSGFMT"; then
  7078. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  7079. echo "${ECHO_T}$GMSGFMT" >&6; }
  7080. else
  7081. { echo "$as_me:$LINENO: result: no" >&5
  7082. echo "${ECHO_T}no" >&6; }
  7083. fi
  7084. # Prepare PATH_SEPARATOR.
  7085. # The user is always right.
  7086. if test "${PATH_SEPARATOR+set}" != set; then
  7087. echo "#! /bin/sh" >conf$$.sh
  7088. echo "exit 0" >>conf$$.sh
  7089. chmod +x conf$$.sh
  7090. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7091. PATH_SEPARATOR=';'
  7092. else
  7093. PATH_SEPARATOR=:
  7094. fi
  7095. rm -f conf$$.sh
  7096. fi
  7097. # Find out how to test for executable files. Don't use a zero-byte file,
  7098. # as systems may use methods other than mode bits to determine executability.
  7099. cat >conf$$.file <<_ASEOF
  7100. #! /bin/sh
  7101. exit 0
  7102. _ASEOF
  7103. chmod +x conf$$.file
  7104. if test -x conf$$.file >/dev/null 2>&1; then
  7105. ac_executable_p="test -x"
  7106. else
  7107. ac_executable_p="test -f"
  7108. fi
  7109. rm -f conf$$.file
  7110. # Extract the first word of "xgettext", so it can be a program name with args.
  7111. set dummy xgettext; ac_word=$2
  7112. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7113. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7114. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  7115. echo $ECHO_N "(cached) $ECHO_C" >&6
  7116. else
  7117. case "$XGETTEXT" in
  7118. [\\/]* | ?:[\\/]*)
  7119. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  7120. ;;
  7121. *)
  7122. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7123. for ac_dir in $PATH; do
  7124. IFS="$ac_save_IFS"
  7125. test -z "$ac_dir" && ac_dir=.
  7126. for ac_exec_ext in '' $ac_executable_extensions; do
  7127. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7128. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  7129. (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
  7130. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  7131. break 2
  7132. fi
  7133. fi
  7134. done
  7135. done
  7136. IFS="$ac_save_IFS"
  7137. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  7138. ;;
  7139. esac
  7140. fi
  7141. XGETTEXT="$ac_cv_path_XGETTEXT"
  7142. if test "$XGETTEXT" != ":"; then
  7143. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  7144. echo "${ECHO_T}$XGETTEXT" >&6; }
  7145. else
  7146. { echo "$as_me:$LINENO: result: no" >&5
  7147. echo "${ECHO_T}no" >&6; }
  7148. fi
  7149. rm -f messages.po
  7150. # Prepare PATH_SEPARATOR.
  7151. # The user is always right.
  7152. if test "${PATH_SEPARATOR+set}" != set; then
  7153. echo "#! /bin/sh" >conf$$.sh
  7154. echo "exit 0" >>conf$$.sh
  7155. chmod +x conf$$.sh
  7156. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7157. PATH_SEPARATOR=';'
  7158. else
  7159. PATH_SEPARATOR=:
  7160. fi
  7161. rm -f conf$$.sh
  7162. fi
  7163. # Find out how to test for executable files. Don't use a zero-byte file,
  7164. # as systems may use methods other than mode bits to determine executability.
  7165. cat >conf$$.file <<_ASEOF
  7166. #! /bin/sh
  7167. exit 0
  7168. _ASEOF
  7169. chmod +x conf$$.file
  7170. if test -x conf$$.file >/dev/null 2>&1; then
  7171. ac_executable_p="test -x"
  7172. else
  7173. ac_executable_p="test -f"
  7174. fi
  7175. rm -f conf$$.file
  7176. # Extract the first word of "msgmerge", so it can be a program name with args.
  7177. set dummy msgmerge; ac_word=$2
  7178. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7179. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7180. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  7181. echo $ECHO_N "(cached) $ECHO_C" >&6
  7182. else
  7183. case "$MSGMERGE" in
  7184. [\\/]* | ?:[\\/]*)
  7185. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  7186. ;;
  7187. *)
  7188. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7189. for ac_dir in $PATH; do
  7190. IFS="$ac_save_IFS"
  7191. test -z "$ac_dir" && ac_dir=.
  7192. for ac_exec_ext in '' $ac_executable_extensions; do
  7193. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7194. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  7195. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  7196. break 2
  7197. fi
  7198. fi
  7199. done
  7200. done
  7201. IFS="$ac_save_IFS"
  7202. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  7203. ;;
  7204. esac
  7205. fi
  7206. MSGMERGE="$ac_cv_path_MSGMERGE"
  7207. if test "$MSGMERGE" != ":"; then
  7208. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  7209. echo "${ECHO_T}$MSGMERGE" >&6; }
  7210. else
  7211. { echo "$as_me:$LINENO: result: no" >&5
  7212. echo "${ECHO_T}no" >&6; }
  7213. fi
  7214. if test "$GMSGFMT" != ":"; then
  7215. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  7216. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7217. : ;
  7218. else
  7219. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  7220. { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  7221. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  7222. GMSGFMT=":"
  7223. fi
  7224. fi
  7225. if test "$XGETTEXT" != ":"; then
  7226. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  7227. (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
  7228. : ;
  7229. else
  7230. { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  7231. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
  7232. XGETTEXT=":"
  7233. fi
  7234. rm -f messages.po
  7235. fi
  7236. ac_config_commands="$ac_config_commands default-1"
  7237. # Make sure we can run config.sub.
  7238. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  7239. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  7240. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  7241. { (exit 1); exit 1; }; }
  7242. { echo "$as_me:$LINENO: checking build system type" >&5
  7243. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  7244. if test "${ac_cv_build+set}" = set; then
  7245. echo $ECHO_N "(cached) $ECHO_C" >&6
  7246. else
  7247. ac_build_alias=$build_alias
  7248. test "x$ac_build_alias" = x &&
  7249. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  7250. test "x$ac_build_alias" = x &&
  7251. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  7252. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  7253. { (exit 1); exit 1; }; }
  7254. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  7255. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  7256. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  7257. { (exit 1); exit 1; }; }
  7258. fi
  7259. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  7260. echo "${ECHO_T}$ac_cv_build" >&6; }
  7261. case $ac_cv_build in
  7262. *-*-*) ;;
  7263. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  7264. echo "$as_me: error: invalid value of canonical build" >&2;}
  7265. { (exit 1); exit 1; }; };;
  7266. esac
  7267. build=$ac_cv_build
  7268. ac_save_IFS=$IFS; IFS='-'
  7269. set x $ac_cv_build
  7270. shift
  7271. build_cpu=$1
  7272. build_vendor=$2
  7273. shift; shift
  7274. # Remember, the first character of IFS is used to create $*,
  7275. # except with old shells:
  7276. build_os=$*
  7277. IFS=$ac_save_IFS
  7278. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  7279. { echo "$as_me:$LINENO: checking host system type" >&5
  7280. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  7281. if test "${ac_cv_host+set}" = set; then
  7282. echo $ECHO_N "(cached) $ECHO_C" >&6
  7283. else
  7284. if test "x$host_alias" = x; then
  7285. ac_cv_host=$ac_cv_build
  7286. else
  7287. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  7288. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  7289. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  7290. { (exit 1); exit 1; }; }
  7291. fi
  7292. fi
  7293. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  7294. echo "${ECHO_T}$ac_cv_host" >&6; }
  7295. case $ac_cv_host in
  7296. *-*-*) ;;
  7297. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  7298. echo "$as_me: error: invalid value of canonical host" >&2;}
  7299. { (exit 1); exit 1; }; };;
  7300. esac
  7301. host=$ac_cv_host
  7302. ac_save_IFS=$IFS; IFS='-'
  7303. set x $ac_cv_host
  7304. shift
  7305. host_cpu=$1
  7306. host_vendor=$2
  7307. shift; shift
  7308. # Remember, the first character of IFS is used to create $*,
  7309. # except with old shells:
  7310. host_os=$*
  7311. IFS=$ac_save_IFS
  7312. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  7313. { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  7314. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  7315. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  7316. echo $ECHO_N "(cached) $ECHO_C" >&6
  7317. else
  7318. ac_check_lib_save_LIBS=$LIBS
  7319. LIBS="-lcposix $LIBS"
  7320. cat >conftest.$ac_ext <<_ACEOF
  7321. /* confdefs.h. */
  7322. _ACEOF
  7323. cat confdefs.h >>conftest.$ac_ext
  7324. cat >>conftest.$ac_ext <<_ACEOF
  7325. /* end confdefs.h. */
  7326. /* Override any GCC internal prototype to avoid an error.
  7327. Use char because int might match the return type of a GCC
  7328. builtin and then its argument prototype would still apply. */
  7329. #ifdef __cplusplus
  7330. extern "C"
  7331. #endif
  7332. char strerror ();
  7333. int
  7334. main ()
  7335. {
  7336. return strerror ();
  7337. ;
  7338. return 0;
  7339. }
  7340. _ACEOF
  7341. rm -f conftest.$ac_objext conftest$ac_exeext
  7342. if { (ac_try="$ac_link"
  7343. case "(($ac_try" in
  7344. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7345. *) ac_try_echo=$ac_try;;
  7346. esac
  7347. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7348. (eval "$ac_link") 2>conftest.er1
  7349. ac_status=$?
  7350. grep -v '^ *+' conftest.er1 >conftest.err
  7351. rm -f conftest.er1
  7352. cat conftest.err >&5
  7353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7354. (exit $ac_status); } &&
  7355. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7356. { (case "(($ac_try" in
  7357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7358. *) ac_try_echo=$ac_try;;
  7359. esac
  7360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7361. (eval "$ac_try") 2>&5
  7362. ac_status=$?
  7363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7364. (exit $ac_status); }; } &&
  7365. { ac_try='test -s conftest$ac_exeext'
  7366. { (case "(($ac_try" in
  7367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7368. *) ac_try_echo=$ac_try;;
  7369. esac
  7370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7371. (eval "$ac_try") 2>&5
  7372. ac_status=$?
  7373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7374. (exit $ac_status); }; }; then
  7375. ac_cv_lib_cposix_strerror=yes
  7376. else
  7377. echo "$as_me: failed program was:" >&5
  7378. sed 's/^/| /' conftest.$ac_ext >&5
  7379. ac_cv_lib_cposix_strerror=no
  7380. fi
  7381. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7382. conftest$ac_exeext conftest.$ac_ext
  7383. LIBS=$ac_check_lib_save_LIBS
  7384. fi
  7385. { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  7386. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  7387. if test $ac_cv_lib_cposix_strerror = yes; then
  7388. LIBS="$LIBS -lcposix"
  7389. fi
  7390. { echo "$as_me:$LINENO: checking for off_t" >&5
  7391. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  7392. if test "${ac_cv_type_off_t+set}" = set; then
  7393. echo $ECHO_N "(cached) $ECHO_C" >&6
  7394. else
  7395. cat >conftest.$ac_ext <<_ACEOF
  7396. /* confdefs.h. */
  7397. _ACEOF
  7398. cat confdefs.h >>conftest.$ac_ext
  7399. cat >>conftest.$ac_ext <<_ACEOF
  7400. /* end confdefs.h. */
  7401. $ac_includes_default
  7402. typedef off_t ac__type_new_;
  7403. int
  7404. main ()
  7405. {
  7406. if ((ac__type_new_ *) 0)
  7407. return 0;
  7408. if (sizeof (ac__type_new_))
  7409. return 0;
  7410. ;
  7411. return 0;
  7412. }
  7413. _ACEOF
  7414. rm -f conftest.$ac_objext
  7415. if { (ac_try="$ac_compile"
  7416. case "(($ac_try" in
  7417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7418. *) ac_try_echo=$ac_try;;
  7419. esac
  7420. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7421. (eval "$ac_compile") 2>conftest.er1
  7422. ac_status=$?
  7423. grep -v '^ *+' conftest.er1 >conftest.err
  7424. rm -f conftest.er1
  7425. cat conftest.err >&5
  7426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7427. (exit $ac_status); } &&
  7428. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7429. { (case "(($ac_try" in
  7430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7431. *) ac_try_echo=$ac_try;;
  7432. esac
  7433. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7434. (eval "$ac_try") 2>&5
  7435. ac_status=$?
  7436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7437. (exit $ac_status); }; } &&
  7438. { ac_try='test -s conftest.$ac_objext'
  7439. { (case "(($ac_try" in
  7440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7441. *) ac_try_echo=$ac_try;;
  7442. esac
  7443. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7444. (eval "$ac_try") 2>&5
  7445. ac_status=$?
  7446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7447. (exit $ac_status); }; }; then
  7448. ac_cv_type_off_t=yes
  7449. else
  7450. echo "$as_me: failed program was:" >&5
  7451. sed 's/^/| /' conftest.$ac_ext >&5
  7452. ac_cv_type_off_t=no
  7453. fi
  7454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7455. fi
  7456. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  7457. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  7458. if test $ac_cv_type_off_t = yes; then
  7459. :
  7460. else
  7461. cat >>confdefs.h <<_ACEOF
  7462. #define off_t long int
  7463. _ACEOF
  7464. fi
  7465. for ac_header in stdlib.h unistd.h
  7466. do
  7467. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7468. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7469. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7470. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7471. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7472. echo $ECHO_N "(cached) $ECHO_C" >&6
  7473. fi
  7474. ac_res=`eval echo '${'$as_ac_Header'}'`
  7475. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7476. echo "${ECHO_T}$ac_res" >&6; }
  7477. else
  7478. # Is the header compilable?
  7479. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7480. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7481. cat >conftest.$ac_ext <<_ACEOF
  7482. /* confdefs.h. */
  7483. _ACEOF
  7484. cat confdefs.h >>conftest.$ac_ext
  7485. cat >>conftest.$ac_ext <<_ACEOF
  7486. /* end confdefs.h. */
  7487. $ac_includes_default
  7488. #include <$ac_header>
  7489. _ACEOF
  7490. rm -f conftest.$ac_objext
  7491. if { (ac_try="$ac_compile"
  7492. case "(($ac_try" in
  7493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7494. *) ac_try_echo=$ac_try;;
  7495. esac
  7496. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7497. (eval "$ac_compile") 2>conftest.er1
  7498. ac_status=$?
  7499. grep -v '^ *+' conftest.er1 >conftest.err
  7500. rm -f conftest.er1
  7501. cat conftest.err >&5
  7502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7503. (exit $ac_status); } &&
  7504. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7505. { (case "(($ac_try" in
  7506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7507. *) ac_try_echo=$ac_try;;
  7508. esac
  7509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7510. (eval "$ac_try") 2>&5
  7511. ac_status=$?
  7512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7513. (exit $ac_status); }; } &&
  7514. { ac_try='test -s conftest.$ac_objext'
  7515. { (case "(($ac_try" in
  7516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7517. *) ac_try_echo=$ac_try;;
  7518. esac
  7519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7520. (eval "$ac_try") 2>&5
  7521. ac_status=$?
  7522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7523. (exit $ac_status); }; }; then
  7524. ac_header_compiler=yes
  7525. else
  7526. echo "$as_me: failed program was:" >&5
  7527. sed 's/^/| /' conftest.$ac_ext >&5
  7528. ac_header_compiler=no
  7529. fi
  7530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7531. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7532. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7533. # Is the header present?
  7534. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7535. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7536. cat >conftest.$ac_ext <<_ACEOF
  7537. /* confdefs.h. */
  7538. _ACEOF
  7539. cat confdefs.h >>conftest.$ac_ext
  7540. cat >>conftest.$ac_ext <<_ACEOF
  7541. /* end confdefs.h. */
  7542. #include <$ac_header>
  7543. _ACEOF
  7544. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7545. case "(($ac_try" in
  7546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7547. *) ac_try_echo=$ac_try;;
  7548. esac
  7549. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7550. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7551. ac_status=$?
  7552. grep -v '^ *+' conftest.er1 >conftest.err
  7553. rm -f conftest.er1
  7554. cat conftest.err >&5
  7555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7556. (exit $ac_status); } >/dev/null; then
  7557. if test -s conftest.err; then
  7558. ac_cpp_err=$ac_c_preproc_warn_flag
  7559. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7560. else
  7561. ac_cpp_err=
  7562. fi
  7563. else
  7564. ac_cpp_err=yes
  7565. fi
  7566. if test -z "$ac_cpp_err"; then
  7567. ac_header_preproc=yes
  7568. else
  7569. echo "$as_me: failed program was:" >&5
  7570. sed 's/^/| /' conftest.$ac_ext >&5
  7571. ac_header_preproc=no
  7572. fi
  7573. rm -f conftest.err conftest.$ac_ext
  7574. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7575. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7576. # So? What about this header?
  7577. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7578. yes:no: )
  7579. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7580. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7581. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7582. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7583. ac_header_preproc=yes
  7584. ;;
  7585. no:yes:* )
  7586. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7587. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7588. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7589. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7590. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7591. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7592. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7593. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7594. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7595. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7596. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7597. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7598. ( cat <<\_ASBOX
  7599. ## ----------------------------------- ##
  7600. ## Report this to tujikawa@rednoah.com ##
  7601. ## ----------------------------------- ##
  7602. _ASBOX
  7603. ) | sed "s/^/$as_me: WARNING: /" >&2
  7604. ;;
  7605. esac
  7606. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7607. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7608. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7609. echo $ECHO_N "(cached) $ECHO_C" >&6
  7610. else
  7611. eval "$as_ac_Header=\$ac_header_preproc"
  7612. fi
  7613. ac_res=`eval echo '${'$as_ac_Header'}'`
  7614. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7615. echo "${ECHO_T}$ac_res" >&6; }
  7616. fi
  7617. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7618. cat >>confdefs.h <<_ACEOF
  7619. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7620. _ACEOF
  7621. fi
  7622. done
  7623. for ac_func in getpagesize
  7624. do
  7625. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7626. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7627. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7628. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7629. echo $ECHO_N "(cached) $ECHO_C" >&6
  7630. else
  7631. cat >conftest.$ac_ext <<_ACEOF
  7632. /* confdefs.h. */
  7633. _ACEOF
  7634. cat confdefs.h >>conftest.$ac_ext
  7635. cat >>conftest.$ac_ext <<_ACEOF
  7636. /* end confdefs.h. */
  7637. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7638. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7639. #define $ac_func innocuous_$ac_func
  7640. /* System header to define __stub macros and hopefully few prototypes,
  7641. which can conflict with char $ac_func (); below.
  7642. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7643. <limits.h> exists even on freestanding compilers. */
  7644. #ifdef __STDC__
  7645. # include <limits.h>
  7646. #else
  7647. # include <assert.h>
  7648. #endif
  7649. #undef $ac_func
  7650. /* Override any GCC internal prototype to avoid an error.
  7651. Use char because int might match the return type of a GCC
  7652. builtin and then its argument prototype would still apply. */
  7653. #ifdef __cplusplus
  7654. extern "C"
  7655. #endif
  7656. char $ac_func ();
  7657. /* The GNU C library defines this for functions which it implements
  7658. to always fail with ENOSYS. Some functions are actually named
  7659. something starting with __ and the normal name is an alias. */
  7660. #if defined __stub_$ac_func || defined __stub___$ac_func
  7661. choke me
  7662. #endif
  7663. int
  7664. main ()
  7665. {
  7666. return $ac_func ();
  7667. ;
  7668. return 0;
  7669. }
  7670. _ACEOF
  7671. rm -f conftest.$ac_objext conftest$ac_exeext
  7672. if { (ac_try="$ac_link"
  7673. case "(($ac_try" in
  7674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7675. *) ac_try_echo=$ac_try;;
  7676. esac
  7677. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7678. (eval "$ac_link") 2>conftest.er1
  7679. ac_status=$?
  7680. grep -v '^ *+' conftest.er1 >conftest.err
  7681. rm -f conftest.er1
  7682. cat conftest.err >&5
  7683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7684. (exit $ac_status); } &&
  7685. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7686. { (case "(($ac_try" in
  7687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7688. *) ac_try_echo=$ac_try;;
  7689. esac
  7690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7691. (eval "$ac_try") 2>&5
  7692. ac_status=$?
  7693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7694. (exit $ac_status); }; } &&
  7695. { ac_try='test -s conftest$ac_exeext'
  7696. { (case "(($ac_try" in
  7697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7698. *) ac_try_echo=$ac_try;;
  7699. esac
  7700. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7701. (eval "$ac_try") 2>&5
  7702. ac_status=$?
  7703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7704. (exit $ac_status); }; }; then
  7705. eval "$as_ac_var=yes"
  7706. else
  7707. echo "$as_me: failed program was:" >&5
  7708. sed 's/^/| /' conftest.$ac_ext >&5
  7709. eval "$as_ac_var=no"
  7710. fi
  7711. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7712. conftest$ac_exeext conftest.$ac_ext
  7713. fi
  7714. ac_res=`eval echo '${'$as_ac_var'}'`
  7715. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7716. echo "${ECHO_T}$ac_res" >&6; }
  7717. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7718. cat >>confdefs.h <<_ACEOF
  7719. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7720. _ACEOF
  7721. fi
  7722. done
  7723. { echo "$as_me:$LINENO: checking for working mmap" >&5
  7724. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  7725. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  7726. echo $ECHO_N "(cached) $ECHO_C" >&6
  7727. else
  7728. if test "$cross_compiling" = yes; then
  7729. ac_cv_func_mmap_fixed_mapped=no
  7730. else
  7731. cat >conftest.$ac_ext <<_ACEOF
  7732. /* confdefs.h. */
  7733. _ACEOF
  7734. cat confdefs.h >>conftest.$ac_ext
  7735. cat >>conftest.$ac_ext <<_ACEOF
  7736. /* end confdefs.h. */
  7737. $ac_includes_default
  7738. /* malloc might have been renamed as rpl_malloc. */
  7739. #undef malloc
  7740. /* Thanks to Mike Haertel and Jim Avera for this test.
  7741. Here is a matrix of mmap possibilities:
  7742. mmap private not fixed
  7743. mmap private fixed at somewhere currently unmapped
  7744. mmap private fixed at somewhere already mapped
  7745. mmap shared not fixed
  7746. mmap shared fixed at somewhere currently unmapped
  7747. mmap shared fixed at somewhere already mapped
  7748. For private mappings, we should verify that changes cannot be read()
  7749. back from the file, nor mmap's back from the file at a different
  7750. address. (There have been systems where private was not correctly
  7751. implemented like the infamous i386 svr4.0, and systems where the
  7752. VM page cache was not coherent with the file system buffer cache
  7753. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7754. For shared mappings, we should conversely verify that changes get
  7755. propagated back to all the places they're supposed to be.
  7756. Grep wants private fixed already mapped.
  7757. The main things grep needs to know about mmap are:
  7758. * does it exist and is it safe to write into the mmap'd area
  7759. * how to use it (BSD variants) */
  7760. #include <fcntl.h>
  7761. #include <sys/mman.h>
  7762. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7763. char *malloc ();
  7764. #endif
  7765. /* This mess was copied from the GNU getpagesize.h. */
  7766. #ifndef HAVE_GETPAGESIZE
  7767. /* Assume that all systems that can run configure have sys/param.h. */
  7768. # ifndef HAVE_SYS_PARAM_H
  7769. # define HAVE_SYS_PARAM_H 1
  7770. # endif
  7771. # ifdef _SC_PAGESIZE
  7772. # define getpagesize() sysconf(_SC_PAGESIZE)
  7773. # else /* no _SC_PAGESIZE */
  7774. # ifdef HAVE_SYS_PARAM_H
  7775. # include <sys/param.h>
  7776. # ifdef EXEC_PAGESIZE
  7777. # define getpagesize() EXEC_PAGESIZE
  7778. # else /* no EXEC_PAGESIZE */
  7779. # ifdef NBPG
  7780. # define getpagesize() NBPG * CLSIZE
  7781. # ifndef CLSIZE
  7782. # define CLSIZE 1
  7783. # endif /* no CLSIZE */
  7784. # else /* no NBPG */
  7785. # ifdef NBPC
  7786. # define getpagesize() NBPC
  7787. # else /* no NBPC */
  7788. # ifdef PAGESIZE
  7789. # define getpagesize() PAGESIZE
  7790. # endif /* PAGESIZE */
  7791. # endif /* no NBPC */
  7792. # endif /* no NBPG */
  7793. # endif /* no EXEC_PAGESIZE */
  7794. # else /* no HAVE_SYS_PARAM_H */
  7795. # define getpagesize() 8192 /* punt totally */
  7796. # endif /* no HAVE_SYS_PARAM_H */
  7797. # endif /* no _SC_PAGESIZE */
  7798. #endif /* no HAVE_GETPAGESIZE */
  7799. int
  7800. main ()
  7801. {
  7802. char *data, *data2, *data3;
  7803. int i, pagesize;
  7804. int fd;
  7805. pagesize = getpagesize ();
  7806. /* First, make a file with some known garbage in it. */
  7807. data = (char *) malloc (pagesize);
  7808. if (!data)
  7809. return 1;
  7810. for (i = 0; i < pagesize; ++i)
  7811. *(data + i) = rand ();
  7812. umask (0);
  7813. fd = creat ("conftest.mmap", 0600);
  7814. if (fd < 0)
  7815. return 1;
  7816. if (write (fd, data, pagesize) != pagesize)
  7817. return 1;
  7818. close (fd);
  7819. /* Next, try to mmap the file at a fixed address which already has
  7820. something else allocated at it. If we can, also make sure that
  7821. we see the same garbage. */
  7822. fd = open ("conftest.mmap", O_RDWR);
  7823. if (fd < 0)
  7824. return 1;
  7825. data2 = (char *) malloc (2 * pagesize);
  7826. if (!data2)
  7827. return 1;
  7828. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  7829. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7830. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7831. return 1;
  7832. for (i = 0; i < pagesize; ++i)
  7833. if (*(data + i) != *(data2 + i))
  7834. return 1;
  7835. /* Finally, make sure that changes to the mapped area do not
  7836. percolate back to the file as seen by read(). (This is a bug on
  7837. some variants of i386 svr4.0.) */
  7838. for (i = 0; i < pagesize; ++i)
  7839. *(data2 + i) = *(data2 + i) + 1;
  7840. data3 = (char *) malloc (pagesize);
  7841. if (!data3)
  7842. return 1;
  7843. if (read (fd, data3, pagesize) != pagesize)
  7844. return 1;
  7845. for (i = 0; i < pagesize; ++i)
  7846. if (*(data + i) != *(data3 + i))
  7847. return 1;
  7848. close (fd);
  7849. return 0;
  7850. }
  7851. _ACEOF
  7852. rm -f conftest$ac_exeext
  7853. if { (ac_try="$ac_link"
  7854. case "(($ac_try" in
  7855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7856. *) ac_try_echo=$ac_try;;
  7857. esac
  7858. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7859. (eval "$ac_link") 2>&5
  7860. ac_status=$?
  7861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7862. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7863. { (case "(($ac_try" in
  7864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7865. *) ac_try_echo=$ac_try;;
  7866. esac
  7867. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7868. (eval "$ac_try") 2>&5
  7869. ac_status=$?
  7870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7871. (exit $ac_status); }; }; then
  7872. ac_cv_func_mmap_fixed_mapped=yes
  7873. else
  7874. echo "$as_me: program exited with status $ac_status" >&5
  7875. echo "$as_me: failed program was:" >&5
  7876. sed 's/^/| /' conftest.$ac_ext >&5
  7877. ( exit $ac_status )
  7878. ac_cv_func_mmap_fixed_mapped=no
  7879. fi
  7880. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7881. fi
  7882. fi
  7883. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7884. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  7885. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7886. cat >>confdefs.h <<\_ACEOF
  7887. #define HAVE_MMAP 1
  7888. _ACEOF
  7889. fi
  7890. rm -f conftest.mmap
  7891. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  7892. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  7893. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  7894. echo $ECHO_N "(cached) $ECHO_C" >&6
  7895. else
  7896. cat >conftest.$ac_ext <<_ACEOF
  7897. /* confdefs.h. */
  7898. _ACEOF
  7899. cat confdefs.h >>conftest.$ac_ext
  7900. cat >>conftest.$ac_ext <<_ACEOF
  7901. /* end confdefs.h. */
  7902. #include <features.h>
  7903. #ifdef __GNU_LIBRARY__
  7904. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  7905. Lucky GNU user
  7906. #endif
  7907. #endif
  7908. _ACEOF
  7909. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7910. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  7911. ac_cv_gnu_library_2_1=yes
  7912. else
  7913. ac_cv_gnu_library_2_1=no
  7914. fi
  7915. rm -f conftest*
  7916. fi
  7917. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  7918. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  7919. GLIBC21="$ac_cv_gnu_library_2_1"
  7920. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  7921. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  7922. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  7923. echo $ECHO_N "(cached) $ECHO_C" >&6
  7924. else
  7925. if test "$cross_compiling" = yes; then
  7926. # Guess based on the CPU.
  7927. case "$host_cpu" in
  7928. alpha* | i3456786 | m68k | s390*)
  7929. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  7930. *)
  7931. gt_cv_int_divbyzero_sigfpe="guessing no";;
  7932. esac
  7933. else
  7934. cat >conftest.$ac_ext <<_ACEOF
  7935. /* confdefs.h. */
  7936. _ACEOF
  7937. cat confdefs.h >>conftest.$ac_ext
  7938. cat >>conftest.$ac_ext <<_ACEOF
  7939. /* end confdefs.h. */
  7940. #include <stdlib.h>
  7941. #include <signal.h>
  7942. static void
  7943. #ifdef __cplusplus
  7944. sigfpe_handler (int sig)
  7945. #else
  7946. sigfpe_handler (sig) int sig;
  7947. #endif
  7948. {
  7949. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  7950. exit (sig != SIGFPE);
  7951. }
  7952. int x = 1;
  7953. int y = 0;
  7954. int z;
  7955. int nan;
  7956. int main ()
  7957. {
  7958. signal (SIGFPE, sigfpe_handler);
  7959. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  7960. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  7961. signal (SIGTRAP, sigfpe_handler);
  7962. #endif
  7963. /* Linux/SPARC yields signal SIGILL. */
  7964. #if defined (__sparc__) && defined (__linux__)
  7965. signal (SIGILL, sigfpe_handler);
  7966. #endif
  7967. z = x / y;
  7968. nan = y / y;
  7969. exit (1);
  7970. }
  7971. _ACEOF
  7972. rm -f conftest$ac_exeext
  7973. if { (ac_try="$ac_link"
  7974. case "(($ac_try" in
  7975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7976. *) ac_try_echo=$ac_try;;
  7977. esac
  7978. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7979. (eval "$ac_link") 2>&5
  7980. ac_status=$?
  7981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7982. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7983. { (case "(($ac_try" in
  7984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7985. *) ac_try_echo=$ac_try;;
  7986. esac
  7987. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7988. (eval "$ac_try") 2>&5
  7989. ac_status=$?
  7990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7991. (exit $ac_status); }; }; then
  7992. gt_cv_int_divbyzero_sigfpe=yes
  7993. else
  7994. echo "$as_me: program exited with status $ac_status" >&5
  7995. echo "$as_me: failed program was:" >&5
  7996. sed 's/^/| /' conftest.$ac_ext >&5
  7997. ( exit $ac_status )
  7998. gt_cv_int_divbyzero_sigfpe=no
  7999. fi
  8000. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8001. fi
  8002. fi
  8003. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8004. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  8005. case "$gt_cv_int_divbyzero_sigfpe" in
  8006. *yes) value=1;;
  8007. *) value=0;;
  8008. esac
  8009. cat >>confdefs.h <<_ACEOF
  8010. #define INTDIV0_RAISES_SIGFPE $value
  8011. _ACEOF
  8012. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  8013. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  8014. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  8015. echo $ECHO_N "(cached) $ECHO_C" >&6
  8016. else
  8017. cat >conftest.$ac_ext <<_ACEOF
  8018. /* confdefs.h. */
  8019. _ACEOF
  8020. cat confdefs.h >>conftest.$ac_ext
  8021. cat >>conftest.$ac_ext <<_ACEOF
  8022. /* end confdefs.h. */
  8023. #include <sys/types.h>
  8024. #include <inttypes.h>
  8025. int
  8026. main ()
  8027. {
  8028. uintmax_t i = (uintmax_t) -1;
  8029. ;
  8030. return 0;
  8031. }
  8032. _ACEOF
  8033. rm -f conftest.$ac_objext
  8034. if { (ac_try="$ac_compile"
  8035. case "(($ac_try" in
  8036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8037. *) ac_try_echo=$ac_try;;
  8038. esac
  8039. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8040. (eval "$ac_compile") 2>conftest.er1
  8041. ac_status=$?
  8042. grep -v '^ *+' conftest.er1 >conftest.err
  8043. rm -f conftest.er1
  8044. cat conftest.err >&5
  8045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8046. (exit $ac_status); } &&
  8047. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8048. { (case "(($ac_try" in
  8049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8050. *) ac_try_echo=$ac_try;;
  8051. esac
  8052. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8053. (eval "$ac_try") 2>&5
  8054. ac_status=$?
  8055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8056. (exit $ac_status); }; } &&
  8057. { ac_try='test -s conftest.$ac_objext'
  8058. { (case "(($ac_try" in
  8059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8060. *) ac_try_echo=$ac_try;;
  8061. esac
  8062. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8063. (eval "$ac_try") 2>&5
  8064. ac_status=$?
  8065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8066. (exit $ac_status); }; }; then
  8067. jm_ac_cv_header_inttypes_h=yes
  8068. else
  8069. echo "$as_me: failed program was:" >&5
  8070. sed 's/^/| /' conftest.$ac_ext >&5
  8071. jm_ac_cv_header_inttypes_h=no
  8072. fi
  8073. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8074. fi
  8075. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  8076. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
  8077. if test $jm_ac_cv_header_inttypes_h = yes; then
  8078. cat >>confdefs.h <<_ACEOF
  8079. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8080. _ACEOF
  8081. fi
  8082. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  8083. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  8084. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  8085. echo $ECHO_N "(cached) $ECHO_C" >&6
  8086. else
  8087. cat >conftest.$ac_ext <<_ACEOF
  8088. /* confdefs.h. */
  8089. _ACEOF
  8090. cat confdefs.h >>conftest.$ac_ext
  8091. cat >>conftest.$ac_ext <<_ACEOF
  8092. /* end confdefs.h. */
  8093. #include <sys/types.h>
  8094. #include <stdint.h>
  8095. int
  8096. main ()
  8097. {
  8098. uintmax_t i = (uintmax_t) -1;
  8099. ;
  8100. return 0;
  8101. }
  8102. _ACEOF
  8103. rm -f conftest.$ac_objext
  8104. if { (ac_try="$ac_compile"
  8105. case "(($ac_try" in
  8106. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8107. *) ac_try_echo=$ac_try;;
  8108. esac
  8109. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8110. (eval "$ac_compile") 2>conftest.er1
  8111. ac_status=$?
  8112. grep -v '^ *+' conftest.er1 >conftest.err
  8113. rm -f conftest.er1
  8114. cat conftest.err >&5
  8115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8116. (exit $ac_status); } &&
  8117. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8118. { (case "(($ac_try" in
  8119. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8120. *) ac_try_echo=$ac_try;;
  8121. esac
  8122. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8123. (eval "$ac_try") 2>&5
  8124. ac_status=$?
  8125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8126. (exit $ac_status); }; } &&
  8127. { ac_try='test -s conftest.$ac_objext'
  8128. { (case "(($ac_try" in
  8129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8130. *) ac_try_echo=$ac_try;;
  8131. esac
  8132. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8133. (eval "$ac_try") 2>&5
  8134. ac_status=$?
  8135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8136. (exit $ac_status); }; }; then
  8137. jm_ac_cv_header_stdint_h=yes
  8138. else
  8139. echo "$as_me: failed program was:" >&5
  8140. sed 's/^/| /' conftest.$ac_ext >&5
  8141. jm_ac_cv_header_stdint_h=no
  8142. fi
  8143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8144. fi
  8145. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  8146. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
  8147. if test $jm_ac_cv_header_stdint_h = yes; then
  8148. cat >>confdefs.h <<_ACEOF
  8149. #define HAVE_STDINT_H_WITH_UINTMAX 1
  8150. _ACEOF
  8151. fi
  8152. { echo "$as_me:$LINENO: checking for unsigned long long" >&5
  8153. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
  8154. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  8155. echo $ECHO_N "(cached) $ECHO_C" >&6
  8156. else
  8157. cat >conftest.$ac_ext <<_ACEOF
  8158. /* confdefs.h. */
  8159. _ACEOF
  8160. cat confdefs.h >>conftest.$ac_ext
  8161. cat >>conftest.$ac_ext <<_ACEOF
  8162. /* end confdefs.h. */
  8163. unsigned long long ull = 1; int i = 63;
  8164. int
  8165. main ()
  8166. {
  8167. unsigned long long ullmax = (unsigned long long) -1;
  8168. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  8169. ;
  8170. return 0;
  8171. }
  8172. _ACEOF
  8173. rm -f conftest.$ac_objext conftest$ac_exeext
  8174. if { (ac_try="$ac_link"
  8175. case "(($ac_try" in
  8176. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8177. *) ac_try_echo=$ac_try;;
  8178. esac
  8179. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8180. (eval "$ac_link") 2>conftest.er1
  8181. ac_status=$?
  8182. grep -v '^ *+' conftest.er1 >conftest.err
  8183. rm -f conftest.er1
  8184. cat conftest.err >&5
  8185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8186. (exit $ac_status); } &&
  8187. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8188. { (case "(($ac_try" in
  8189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8190. *) ac_try_echo=$ac_try;;
  8191. esac
  8192. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8193. (eval "$ac_try") 2>&5
  8194. ac_status=$?
  8195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8196. (exit $ac_status); }; } &&
  8197. { ac_try='test -s conftest$ac_exeext'
  8198. { (case "(($ac_try" in
  8199. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8200. *) ac_try_echo=$ac_try;;
  8201. esac
  8202. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8203. (eval "$ac_try") 2>&5
  8204. ac_status=$?
  8205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8206. (exit $ac_status); }; }; then
  8207. ac_cv_type_unsigned_long_long=yes
  8208. else
  8209. echo "$as_me: failed program was:" >&5
  8210. sed 's/^/| /' conftest.$ac_ext >&5
  8211. ac_cv_type_unsigned_long_long=no
  8212. fi
  8213. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8214. conftest$ac_exeext conftest.$ac_ext
  8215. fi
  8216. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  8217. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
  8218. if test $ac_cv_type_unsigned_long_long = yes; then
  8219. cat >>confdefs.h <<\_ACEOF
  8220. #define HAVE_UNSIGNED_LONG_LONG 1
  8221. _ACEOF
  8222. fi
  8223. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  8224. test $ac_cv_type_unsigned_long_long = yes \
  8225. && ac_type='unsigned long long' \
  8226. || ac_type='unsigned long'
  8227. cat >>confdefs.h <<_ACEOF
  8228. #define uintmax_t $ac_type
  8229. _ACEOF
  8230. else
  8231. cat >>confdefs.h <<\_ACEOF
  8232. #define HAVE_UINTMAX_T 1
  8233. _ACEOF
  8234. fi
  8235. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  8236. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  8237. if test "${gt_cv_header_inttypes_h+set}" = set; then
  8238. echo $ECHO_N "(cached) $ECHO_C" >&6
  8239. else
  8240. cat >conftest.$ac_ext <<_ACEOF
  8241. /* confdefs.h. */
  8242. _ACEOF
  8243. cat confdefs.h >>conftest.$ac_ext
  8244. cat >>conftest.$ac_ext <<_ACEOF
  8245. /* end confdefs.h. */
  8246. #include <sys/types.h>
  8247. #include <inttypes.h>
  8248. int
  8249. main ()
  8250. {
  8251. ;
  8252. return 0;
  8253. }
  8254. _ACEOF
  8255. rm -f conftest.$ac_objext
  8256. if { (ac_try="$ac_compile"
  8257. case "(($ac_try" in
  8258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8259. *) ac_try_echo=$ac_try;;
  8260. esac
  8261. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8262. (eval "$ac_compile") 2>conftest.er1
  8263. ac_status=$?
  8264. grep -v '^ *+' conftest.er1 >conftest.err
  8265. rm -f conftest.er1
  8266. cat conftest.err >&5
  8267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8268. (exit $ac_status); } &&
  8269. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8270. { (case "(($ac_try" in
  8271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8272. *) ac_try_echo=$ac_try;;
  8273. esac
  8274. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8275. (eval "$ac_try") 2>&5
  8276. ac_status=$?
  8277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8278. (exit $ac_status); }; } &&
  8279. { ac_try='test -s conftest.$ac_objext'
  8280. { (case "(($ac_try" in
  8281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8282. *) ac_try_echo=$ac_try;;
  8283. esac
  8284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8285. (eval "$ac_try") 2>&5
  8286. ac_status=$?
  8287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8288. (exit $ac_status); }; }; then
  8289. gt_cv_header_inttypes_h=yes
  8290. else
  8291. echo "$as_me: failed program was:" >&5
  8292. sed 's/^/| /' conftest.$ac_ext >&5
  8293. gt_cv_header_inttypes_h=no
  8294. fi
  8295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8296. fi
  8297. { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  8298. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
  8299. if test $gt_cv_header_inttypes_h = yes; then
  8300. cat >>confdefs.h <<_ACEOF
  8301. #define HAVE_INTTYPES_H 1
  8302. _ACEOF
  8303. fi
  8304. if test $gt_cv_header_inttypes_h = yes; then
  8305. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8306. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  8307. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  8308. echo $ECHO_N "(cached) $ECHO_C" >&6
  8309. else
  8310. cat >conftest.$ac_ext <<_ACEOF
  8311. /* confdefs.h. */
  8312. _ACEOF
  8313. cat confdefs.h >>conftest.$ac_ext
  8314. cat >>conftest.$ac_ext <<_ACEOF
  8315. /* end confdefs.h. */
  8316. #include <inttypes.h>
  8317. #ifdef PRId32
  8318. char *p = PRId32;
  8319. #endif
  8320. int
  8321. main ()
  8322. {
  8323. ;
  8324. return 0;
  8325. }
  8326. _ACEOF
  8327. rm -f conftest.$ac_objext
  8328. if { (ac_try="$ac_compile"
  8329. case "(($ac_try" in
  8330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8331. *) ac_try_echo=$ac_try;;
  8332. esac
  8333. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8334. (eval "$ac_compile") 2>conftest.er1
  8335. ac_status=$?
  8336. grep -v '^ *+' conftest.er1 >conftest.err
  8337. rm -f conftest.er1
  8338. cat conftest.err >&5
  8339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8340. (exit $ac_status); } &&
  8341. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8342. { (case "(($ac_try" in
  8343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8344. *) ac_try_echo=$ac_try;;
  8345. esac
  8346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8347. (eval "$ac_try") 2>&5
  8348. ac_status=$?
  8349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8350. (exit $ac_status); }; } &&
  8351. { ac_try='test -s conftest.$ac_objext'
  8352. { (case "(($ac_try" in
  8353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8354. *) ac_try_echo=$ac_try;;
  8355. esac
  8356. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8357. (eval "$ac_try") 2>&5
  8358. ac_status=$?
  8359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8360. (exit $ac_status); }; }; then
  8361. gt_cv_inttypes_pri_broken=no
  8362. else
  8363. echo "$as_me: failed program was:" >&5
  8364. sed 's/^/| /' conftest.$ac_ext >&5
  8365. gt_cv_inttypes_pri_broken=yes
  8366. fi
  8367. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8368. fi
  8369. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  8370. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  8371. fi
  8372. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8373. cat >>confdefs.h <<_ACEOF
  8374. #define PRI_MACROS_BROKEN 1
  8375. _ACEOF
  8376. fi
  8377. if test "X$prefix" = "XNONE"; then
  8378. acl_final_prefix="$ac_default_prefix"
  8379. else
  8380. acl_final_prefix="$prefix"
  8381. fi
  8382. if test "X$exec_prefix" = "XNONE"; then
  8383. acl_final_exec_prefix='${prefix}'
  8384. else
  8385. acl_final_exec_prefix="$exec_prefix"
  8386. fi
  8387. acl_save_prefix="$prefix"
  8388. prefix="$acl_final_prefix"
  8389. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8390. prefix="$acl_save_prefix"
  8391. # Check whether --with-gnu-ld was given.
  8392. if test "${with_gnu_ld+set}" = set; then
  8393. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8394. else
  8395. with_gnu_ld=no
  8396. fi
  8397. # Prepare PATH_SEPARATOR.
  8398. # The user is always right.
  8399. if test "${PATH_SEPARATOR+set}" != set; then
  8400. echo "#! /bin/sh" >conf$$.sh
  8401. echo "exit 0" >>conf$$.sh
  8402. chmod +x conf$$.sh
  8403. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8404. PATH_SEPARATOR=';'
  8405. else
  8406. PATH_SEPARATOR=:
  8407. fi
  8408. rm -f conf$$.sh
  8409. fi
  8410. ac_prog=ld
  8411. if test "$GCC" = yes; then
  8412. # Check if gcc -print-prog-name=ld gives a path.
  8413. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  8414. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  8415. case $host in
  8416. *-*-mingw*)
  8417. # gcc leaves a trailing carriage return which upsets mingw
  8418. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8419. *)
  8420. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8421. esac
  8422. case $ac_prog in
  8423. # Accept absolute paths.
  8424. [\\/]* | [A-Za-z]:[\\/]*)
  8425. re_direlt='/[^/][^/]*/\.\./'
  8426. # Canonicalize the path of ld
  8427. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8428. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8429. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8430. done
  8431. test -z "$LD" && LD="$ac_prog"
  8432. ;;
  8433. "")
  8434. # If it fails, then pretend we aren't using GCC.
  8435. ac_prog=ld
  8436. ;;
  8437. *)
  8438. # If it is relative, then search for the first ld in PATH.
  8439. with_gnu_ld=unknown
  8440. ;;
  8441. esac
  8442. elif test "$with_gnu_ld" = yes; then
  8443. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  8444. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  8445. else
  8446. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8447. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  8448. fi
  8449. if test "${acl_cv_path_LD+set}" = set; then
  8450. echo $ECHO_N "(cached) $ECHO_C" >&6
  8451. else
  8452. if test -z "$LD"; then
  8453. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8454. for ac_dir in $PATH; do
  8455. test -z "$ac_dir" && ac_dir=.
  8456. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8457. acl_cv_path_LD="$ac_dir/$ac_prog"
  8458. # Check to see if the program is GNU ld. I'd rather use --version,
  8459. # but apparently some GNU ld's only accept -v.
  8460. # Break only if it was the GNU/non-GNU ld that we prefer.
  8461. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  8462. test "$with_gnu_ld" != no && break
  8463. else
  8464. test "$with_gnu_ld" != yes && break
  8465. fi
  8466. fi
  8467. done
  8468. IFS="$ac_save_ifs"
  8469. else
  8470. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8471. fi
  8472. fi
  8473. LD="$acl_cv_path_LD"
  8474. if test -n "$LD"; then
  8475. { echo "$as_me:$LINENO: result: $LD" >&5
  8476. echo "${ECHO_T}$LD" >&6; }
  8477. else
  8478. { echo "$as_me:$LINENO: result: no" >&5
  8479. echo "${ECHO_T}no" >&6; }
  8480. fi
  8481. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8482. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8483. { (exit 1); exit 1; }; }
  8484. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8485. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  8486. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  8487. echo $ECHO_N "(cached) $ECHO_C" >&6
  8488. else
  8489. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8490. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  8491. acl_cv_prog_gnu_ld=yes
  8492. else
  8493. acl_cv_prog_gnu_ld=no
  8494. fi
  8495. fi
  8496. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  8497. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  8498. with_gnu_ld=$acl_cv_prog_gnu_ld
  8499. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  8500. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  8501. if test "${acl_cv_rpath+set}" = set; then
  8502. echo $ECHO_N "(cached) $ECHO_C" >&6
  8503. else
  8504. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8505. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8506. . ./conftest.sh
  8507. rm -f ./conftest.sh
  8508. acl_cv_rpath=done
  8509. fi
  8510. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  8511. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  8512. wl="$acl_cv_wl"
  8513. libext="$acl_cv_libext"
  8514. shlibext="$acl_cv_shlibext"
  8515. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8516. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8517. hardcode_direct="$acl_cv_hardcode_direct"
  8518. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8519. # Check whether --enable-rpath was given.
  8520. if test "${enable_rpath+set}" = set; then
  8521. enableval=$enable_rpath; :
  8522. else
  8523. enable_rpath=yes
  8524. fi
  8525. use_additional=yes
  8526. acl_save_prefix="$prefix"
  8527. prefix="$acl_final_prefix"
  8528. acl_save_exec_prefix="$exec_prefix"
  8529. exec_prefix="$acl_final_exec_prefix"
  8530. eval additional_includedir=\"$includedir\"
  8531. eval additional_libdir=\"$libdir\"
  8532. exec_prefix="$acl_save_exec_prefix"
  8533. prefix="$acl_save_prefix"
  8534. # Check whether --with-libiconv-prefix was given.
  8535. if test "${with_libiconv_prefix+set}" = set; then
  8536. withval=$with_libiconv_prefix;
  8537. if test "X$withval" = "Xno"; then
  8538. use_additional=no
  8539. else
  8540. if test "X$withval" = "X"; then
  8541. acl_save_prefix="$prefix"
  8542. prefix="$acl_final_prefix"
  8543. acl_save_exec_prefix="$exec_prefix"
  8544. exec_prefix="$acl_final_exec_prefix"
  8545. eval additional_includedir=\"$includedir\"
  8546. eval additional_libdir=\"$libdir\"
  8547. exec_prefix="$acl_save_exec_prefix"
  8548. prefix="$acl_save_prefix"
  8549. else
  8550. additional_includedir="$withval/include"
  8551. additional_libdir="$withval/lib"
  8552. fi
  8553. fi
  8554. fi
  8555. LIBICONV=
  8556. LTLIBICONV=
  8557. INCICONV=
  8558. rpathdirs=
  8559. ltrpathdirs=
  8560. names_already_handled=
  8561. names_next_round='iconv '
  8562. while test -n "$names_next_round"; do
  8563. names_this_round="$names_next_round"
  8564. names_next_round=
  8565. for name in $names_this_round; do
  8566. already_handled=
  8567. for n in $names_already_handled; do
  8568. if test "$n" = "$name"; then
  8569. already_handled=yes
  8570. break
  8571. fi
  8572. done
  8573. if test -z "$already_handled"; then
  8574. names_already_handled="$names_already_handled $name"
  8575. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8576. eval value=\"\$HAVE_LIB$uppername\"
  8577. if test -n "$value"; then
  8578. if test "$value" = yes; then
  8579. eval value=\"\$LIB$uppername\"
  8580. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  8581. eval value=\"\$LTLIB$uppername\"
  8582. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  8583. else
  8584. :
  8585. fi
  8586. else
  8587. found_dir=
  8588. found_la=
  8589. found_so=
  8590. found_a=
  8591. if test $use_additional = yes; then
  8592. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8593. found_dir="$additional_libdir"
  8594. found_so="$additional_libdir/lib$name.$shlibext"
  8595. if test -f "$additional_libdir/lib$name.la"; then
  8596. found_la="$additional_libdir/lib$name.la"
  8597. fi
  8598. else
  8599. if test -f "$additional_libdir/lib$name.$libext"; then
  8600. found_dir="$additional_libdir"
  8601. found_a="$additional_libdir/lib$name.$libext"
  8602. if test -f "$additional_libdir/lib$name.la"; then
  8603. found_la="$additional_libdir/lib$name.la"
  8604. fi
  8605. fi
  8606. fi
  8607. fi
  8608. if test "X$found_dir" = "X"; then
  8609. for x in $LDFLAGS $LTLIBICONV; do
  8610. acl_save_prefix="$prefix"
  8611. prefix="$acl_final_prefix"
  8612. acl_save_exec_prefix="$exec_prefix"
  8613. exec_prefix="$acl_final_exec_prefix"
  8614. eval x=\"$x\"
  8615. exec_prefix="$acl_save_exec_prefix"
  8616. prefix="$acl_save_prefix"
  8617. case "$x" in
  8618. -L*)
  8619. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8620. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8621. found_dir="$dir"
  8622. found_so="$dir/lib$name.$shlibext"
  8623. if test -f "$dir/lib$name.la"; then
  8624. found_la="$dir/lib$name.la"
  8625. fi
  8626. else
  8627. if test -f "$dir/lib$name.$libext"; then
  8628. found_dir="$dir"
  8629. found_a="$dir/lib$name.$libext"
  8630. if test -f "$dir/lib$name.la"; then
  8631. found_la="$dir/lib$name.la"
  8632. fi
  8633. fi
  8634. fi
  8635. ;;
  8636. esac
  8637. if test "X$found_dir" != "X"; then
  8638. break
  8639. fi
  8640. done
  8641. fi
  8642. if test "X$found_dir" != "X"; then
  8643. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  8644. if test "X$found_so" != "X"; then
  8645. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8646. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8647. else
  8648. haveit=
  8649. for x in $ltrpathdirs; do
  8650. if test "X$x" = "X$found_dir"; then
  8651. haveit=yes
  8652. break
  8653. fi
  8654. done
  8655. if test -z "$haveit"; then
  8656. ltrpathdirs="$ltrpathdirs $found_dir"
  8657. fi
  8658. if test "$hardcode_direct" = yes; then
  8659. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8660. else
  8661. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8662. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8663. haveit=
  8664. for x in $rpathdirs; do
  8665. if test "X$x" = "X$found_dir"; then
  8666. haveit=yes
  8667. break
  8668. fi
  8669. done
  8670. if test -z "$haveit"; then
  8671. rpathdirs="$rpathdirs $found_dir"
  8672. fi
  8673. else
  8674. haveit=
  8675. for x in $LDFLAGS $LIBICONV; do
  8676. acl_save_prefix="$prefix"
  8677. prefix="$acl_final_prefix"
  8678. acl_save_exec_prefix="$exec_prefix"
  8679. exec_prefix="$acl_final_exec_prefix"
  8680. eval x=\"$x\"
  8681. exec_prefix="$acl_save_exec_prefix"
  8682. prefix="$acl_save_prefix"
  8683. if test "X$x" = "X-L$found_dir"; then
  8684. haveit=yes
  8685. break
  8686. fi
  8687. done
  8688. if test -z "$haveit"; then
  8689. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  8690. fi
  8691. if test "$hardcode_minus_L" != no; then
  8692. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8693. else
  8694. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8695. fi
  8696. fi
  8697. fi
  8698. fi
  8699. else
  8700. if test "X$found_a" != "X"; then
  8701. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  8702. else
  8703. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  8704. fi
  8705. fi
  8706. additional_includedir=
  8707. case "$found_dir" in
  8708. */lib | */lib/)
  8709. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8710. additional_includedir="$basedir/include"
  8711. ;;
  8712. esac
  8713. if test "X$additional_includedir" != "X"; then
  8714. if test "X$additional_includedir" != "X/usr/include"; then
  8715. haveit=
  8716. if test "X$additional_includedir" = "X/usr/local/include"; then
  8717. if test -n "$GCC"; then
  8718. case $host_os in
  8719. linux*) haveit=yes;;
  8720. esac
  8721. fi
  8722. fi
  8723. if test -z "$haveit"; then
  8724. for x in $CPPFLAGS $INCICONV; do
  8725. acl_save_prefix="$prefix"
  8726. prefix="$acl_final_prefix"
  8727. acl_save_exec_prefix="$exec_prefix"
  8728. exec_prefix="$acl_final_exec_prefix"
  8729. eval x=\"$x\"
  8730. exec_prefix="$acl_save_exec_prefix"
  8731. prefix="$acl_save_prefix"
  8732. if test "X$x" = "X-I$additional_includedir"; then
  8733. haveit=yes
  8734. break
  8735. fi
  8736. done
  8737. if test -z "$haveit"; then
  8738. if test -d "$additional_includedir"; then
  8739. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  8740. fi
  8741. fi
  8742. fi
  8743. fi
  8744. fi
  8745. if test -n "$found_la"; then
  8746. save_libdir="$libdir"
  8747. case "$found_la" in
  8748. */* | *\\*) . "$found_la" ;;
  8749. *) . "./$found_la" ;;
  8750. esac
  8751. libdir="$save_libdir"
  8752. for dep in $dependency_libs; do
  8753. case "$dep" in
  8754. -L*)
  8755. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8756. if test "X$additional_libdir" != "X/usr/lib"; then
  8757. haveit=
  8758. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8759. if test -n "$GCC"; then
  8760. case $host_os in
  8761. linux*) haveit=yes;;
  8762. esac
  8763. fi
  8764. fi
  8765. if test -z "$haveit"; then
  8766. haveit=
  8767. for x in $LDFLAGS $LIBICONV; do
  8768. acl_save_prefix="$prefix"
  8769. prefix="$acl_final_prefix"
  8770. acl_save_exec_prefix="$exec_prefix"
  8771. exec_prefix="$acl_final_exec_prefix"
  8772. eval x=\"$x\"
  8773. exec_prefix="$acl_save_exec_prefix"
  8774. prefix="$acl_save_prefix"
  8775. if test "X$x" = "X-L$additional_libdir"; then
  8776. haveit=yes
  8777. break
  8778. fi
  8779. done
  8780. if test -z "$haveit"; then
  8781. if test -d "$additional_libdir"; then
  8782. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  8783. fi
  8784. fi
  8785. haveit=
  8786. for x in $LDFLAGS $LTLIBICONV; do
  8787. acl_save_prefix="$prefix"
  8788. prefix="$acl_final_prefix"
  8789. acl_save_exec_prefix="$exec_prefix"
  8790. exec_prefix="$acl_final_exec_prefix"
  8791. eval x=\"$x\"
  8792. exec_prefix="$acl_save_exec_prefix"
  8793. prefix="$acl_save_prefix"
  8794. if test "X$x" = "X-L$additional_libdir"; then
  8795. haveit=yes
  8796. break
  8797. fi
  8798. done
  8799. if test -z "$haveit"; then
  8800. if test -d "$additional_libdir"; then
  8801. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  8802. fi
  8803. fi
  8804. fi
  8805. fi
  8806. ;;
  8807. -R*)
  8808. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8809. if test "$enable_rpath" != no; then
  8810. haveit=
  8811. for x in $rpathdirs; do
  8812. if test "X$x" = "X$dir"; then
  8813. haveit=yes
  8814. break
  8815. fi
  8816. done
  8817. if test -z "$haveit"; then
  8818. rpathdirs="$rpathdirs $dir"
  8819. fi
  8820. haveit=
  8821. for x in $ltrpathdirs; do
  8822. if test "X$x" = "X$dir"; then
  8823. haveit=yes
  8824. break
  8825. fi
  8826. done
  8827. if test -z "$haveit"; then
  8828. ltrpathdirs="$ltrpathdirs $dir"
  8829. fi
  8830. fi
  8831. ;;
  8832. -l*)
  8833. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8834. ;;
  8835. *.la)
  8836. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8837. ;;
  8838. *)
  8839. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  8840. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  8841. ;;
  8842. esac
  8843. done
  8844. fi
  8845. else
  8846. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8847. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  8848. fi
  8849. fi
  8850. fi
  8851. done
  8852. done
  8853. if test "X$rpathdirs" != "X"; then
  8854. if test -n "$hardcode_libdir_separator"; then
  8855. alldirs=
  8856. for found_dir in $rpathdirs; do
  8857. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8858. done
  8859. acl_save_libdir="$libdir"
  8860. libdir="$alldirs"
  8861. eval flag=\"$hardcode_libdir_flag_spec\"
  8862. libdir="$acl_save_libdir"
  8863. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8864. else
  8865. for found_dir in $rpathdirs; do
  8866. acl_save_libdir="$libdir"
  8867. libdir="$found_dir"
  8868. eval flag=\"$hardcode_libdir_flag_spec\"
  8869. libdir="$acl_save_libdir"
  8870. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8871. done
  8872. fi
  8873. fi
  8874. if test "X$ltrpathdirs" != "X"; then
  8875. for found_dir in $ltrpathdirs; do
  8876. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  8877. done
  8878. fi
  8879. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  8880. stdlib.h string.h unistd.h sys/param.h
  8881. do
  8882. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8883. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8884. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8885. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8886. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8887. echo $ECHO_N "(cached) $ECHO_C" >&6
  8888. fi
  8889. ac_res=`eval echo '${'$as_ac_Header'}'`
  8890. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8891. echo "${ECHO_T}$ac_res" >&6; }
  8892. else
  8893. # Is the header compilable?
  8894. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8895. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8896. cat >conftest.$ac_ext <<_ACEOF
  8897. /* confdefs.h. */
  8898. _ACEOF
  8899. cat confdefs.h >>conftest.$ac_ext
  8900. cat >>conftest.$ac_ext <<_ACEOF
  8901. /* end confdefs.h. */
  8902. $ac_includes_default
  8903. #include <$ac_header>
  8904. _ACEOF
  8905. rm -f conftest.$ac_objext
  8906. if { (ac_try="$ac_compile"
  8907. case "(($ac_try" in
  8908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8909. *) ac_try_echo=$ac_try;;
  8910. esac
  8911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8912. (eval "$ac_compile") 2>conftest.er1
  8913. ac_status=$?
  8914. grep -v '^ *+' conftest.er1 >conftest.err
  8915. rm -f conftest.er1
  8916. cat conftest.err >&5
  8917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8918. (exit $ac_status); } &&
  8919. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8920. { (case "(($ac_try" in
  8921. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8922. *) ac_try_echo=$ac_try;;
  8923. esac
  8924. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8925. (eval "$ac_try") 2>&5
  8926. ac_status=$?
  8927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8928. (exit $ac_status); }; } &&
  8929. { ac_try='test -s conftest.$ac_objext'
  8930. { (case "(($ac_try" in
  8931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8932. *) ac_try_echo=$ac_try;;
  8933. esac
  8934. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8935. (eval "$ac_try") 2>&5
  8936. ac_status=$?
  8937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8938. (exit $ac_status); }; }; then
  8939. ac_header_compiler=yes
  8940. else
  8941. echo "$as_me: failed program was:" >&5
  8942. sed 's/^/| /' conftest.$ac_ext >&5
  8943. ac_header_compiler=no
  8944. fi
  8945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8946. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8947. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8948. # Is the header present?
  8949. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8950. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8951. cat >conftest.$ac_ext <<_ACEOF
  8952. /* confdefs.h. */
  8953. _ACEOF
  8954. cat confdefs.h >>conftest.$ac_ext
  8955. cat >>conftest.$ac_ext <<_ACEOF
  8956. /* end confdefs.h. */
  8957. #include <$ac_header>
  8958. _ACEOF
  8959. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8960. case "(($ac_try" in
  8961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8962. *) ac_try_echo=$ac_try;;
  8963. esac
  8964. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8965. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8966. ac_status=$?
  8967. grep -v '^ *+' conftest.er1 >conftest.err
  8968. rm -f conftest.er1
  8969. cat conftest.err >&5
  8970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8971. (exit $ac_status); } >/dev/null; then
  8972. if test -s conftest.err; then
  8973. ac_cpp_err=$ac_c_preproc_warn_flag
  8974. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8975. else
  8976. ac_cpp_err=
  8977. fi
  8978. else
  8979. ac_cpp_err=yes
  8980. fi
  8981. if test -z "$ac_cpp_err"; then
  8982. ac_header_preproc=yes
  8983. else
  8984. echo "$as_me: failed program was:" >&5
  8985. sed 's/^/| /' conftest.$ac_ext >&5
  8986. ac_header_preproc=no
  8987. fi
  8988. rm -f conftest.err conftest.$ac_ext
  8989. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8990. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8991. # So? What about this header?
  8992. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8993. yes:no: )
  8994. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8995. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8996. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8997. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8998. ac_header_preproc=yes
  8999. ;;
  9000. no:yes:* )
  9001. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9002. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9003. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9004. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9005. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9006. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9007. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9008. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9009. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9010. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9011. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9012. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9013. ( cat <<\_ASBOX
  9014. ## ----------------------------------- ##
  9015. ## Report this to tujikawa@rednoah.com ##
  9016. ## ----------------------------------- ##
  9017. _ASBOX
  9018. ) | sed "s/^/$as_me: WARNING: /" >&2
  9019. ;;
  9020. esac
  9021. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9022. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9023. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9024. echo $ECHO_N "(cached) $ECHO_C" >&6
  9025. else
  9026. eval "$as_ac_Header=\$ac_header_preproc"
  9027. fi
  9028. ac_res=`eval echo '${'$as_ac_Header'}'`
  9029. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9030. echo "${ECHO_T}$ac_res" >&6; }
  9031. fi
  9032. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9033. cat >>confdefs.h <<_ACEOF
  9034. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9035. _ACEOF
  9036. fi
  9037. done
  9038. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  9039. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  9040. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  9041. __fsetlocking
  9042. do
  9043. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9044. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9045. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9046. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9047. echo $ECHO_N "(cached) $ECHO_C" >&6
  9048. else
  9049. cat >conftest.$ac_ext <<_ACEOF
  9050. /* confdefs.h. */
  9051. _ACEOF
  9052. cat confdefs.h >>conftest.$ac_ext
  9053. cat >>conftest.$ac_ext <<_ACEOF
  9054. /* end confdefs.h. */
  9055. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9056. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9057. #define $ac_func innocuous_$ac_func
  9058. /* System header to define __stub macros and hopefully few prototypes,
  9059. which can conflict with char $ac_func (); below.
  9060. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9061. <limits.h> exists even on freestanding compilers. */
  9062. #ifdef __STDC__
  9063. # include <limits.h>
  9064. #else
  9065. # include <assert.h>
  9066. #endif
  9067. #undef $ac_func
  9068. /* Override any GCC internal prototype to avoid an error.
  9069. Use char because int might match the return type of a GCC
  9070. builtin and then its argument prototype would still apply. */
  9071. #ifdef __cplusplus
  9072. extern "C"
  9073. #endif
  9074. char $ac_func ();
  9075. /* The GNU C library defines this for functions which it implements
  9076. to always fail with ENOSYS. Some functions are actually named
  9077. something starting with __ and the normal name is an alias. */
  9078. #if defined __stub_$ac_func || defined __stub___$ac_func
  9079. choke me
  9080. #endif
  9081. int
  9082. main ()
  9083. {
  9084. return $ac_func ();
  9085. ;
  9086. return 0;
  9087. }
  9088. _ACEOF
  9089. rm -f conftest.$ac_objext conftest$ac_exeext
  9090. if { (ac_try="$ac_link"
  9091. case "(($ac_try" in
  9092. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9093. *) ac_try_echo=$ac_try;;
  9094. esac
  9095. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9096. (eval "$ac_link") 2>conftest.er1
  9097. ac_status=$?
  9098. grep -v '^ *+' conftest.er1 >conftest.err
  9099. rm -f conftest.er1
  9100. cat conftest.err >&5
  9101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9102. (exit $ac_status); } &&
  9103. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9104. { (case "(($ac_try" in
  9105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9106. *) ac_try_echo=$ac_try;;
  9107. esac
  9108. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9109. (eval "$ac_try") 2>&5
  9110. ac_status=$?
  9111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9112. (exit $ac_status); }; } &&
  9113. { ac_try='test -s conftest$ac_exeext'
  9114. { (case "(($ac_try" in
  9115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9116. *) ac_try_echo=$ac_try;;
  9117. esac
  9118. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9119. (eval "$ac_try") 2>&5
  9120. ac_status=$?
  9121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9122. (exit $ac_status); }; }; then
  9123. eval "$as_ac_var=yes"
  9124. else
  9125. echo "$as_me: failed program was:" >&5
  9126. sed 's/^/| /' conftest.$ac_ext >&5
  9127. eval "$as_ac_var=no"
  9128. fi
  9129. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9130. conftest$ac_exeext conftest.$ac_ext
  9131. fi
  9132. ac_res=`eval echo '${'$as_ac_var'}'`
  9133. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9134. echo "${ECHO_T}$ac_res" >&6; }
  9135. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9136. cat >>confdefs.h <<_ACEOF
  9137. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9138. _ACEOF
  9139. fi
  9140. done
  9141. am_save_CPPFLAGS="$CPPFLAGS"
  9142. for element in $INCICONV; do
  9143. haveit=
  9144. for x in $CPPFLAGS; do
  9145. acl_save_prefix="$prefix"
  9146. prefix="$acl_final_prefix"
  9147. acl_save_exec_prefix="$exec_prefix"
  9148. exec_prefix="$acl_final_exec_prefix"
  9149. eval x=\"$x\"
  9150. exec_prefix="$acl_save_exec_prefix"
  9151. prefix="$acl_save_prefix"
  9152. if test "X$x" = "X$element"; then
  9153. haveit=yes
  9154. break
  9155. fi
  9156. done
  9157. if test -z "$haveit"; then
  9158. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9159. fi
  9160. done
  9161. { echo "$as_me:$LINENO: checking for iconv" >&5
  9162. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  9163. if test "${am_cv_func_iconv+set}" = set; then
  9164. echo $ECHO_N "(cached) $ECHO_C" >&6
  9165. else
  9166. am_cv_func_iconv="no, consider installing GNU libiconv"
  9167. am_cv_lib_iconv=no
  9168. cat >conftest.$ac_ext <<_ACEOF
  9169. /* confdefs.h. */
  9170. _ACEOF
  9171. cat confdefs.h >>conftest.$ac_ext
  9172. cat >>conftest.$ac_ext <<_ACEOF
  9173. /* end confdefs.h. */
  9174. #include <stdlib.h>
  9175. #include <iconv.h>
  9176. int
  9177. main ()
  9178. {
  9179. iconv_t cd = iconv_open("","");
  9180. iconv(cd,NULL,NULL,NULL,NULL);
  9181. iconv_close(cd);
  9182. ;
  9183. return 0;
  9184. }
  9185. _ACEOF
  9186. rm -f conftest.$ac_objext conftest$ac_exeext
  9187. if { (ac_try="$ac_link"
  9188. case "(($ac_try" in
  9189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9190. *) ac_try_echo=$ac_try;;
  9191. esac
  9192. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9193. (eval "$ac_link") 2>conftest.er1
  9194. ac_status=$?
  9195. grep -v '^ *+' conftest.er1 >conftest.err
  9196. rm -f conftest.er1
  9197. cat conftest.err >&5
  9198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9199. (exit $ac_status); } &&
  9200. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9201. { (case "(($ac_try" in
  9202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9203. *) ac_try_echo=$ac_try;;
  9204. esac
  9205. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9206. (eval "$ac_try") 2>&5
  9207. ac_status=$?
  9208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9209. (exit $ac_status); }; } &&
  9210. { ac_try='test -s conftest$ac_exeext'
  9211. { (case "(($ac_try" in
  9212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9213. *) ac_try_echo=$ac_try;;
  9214. esac
  9215. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9216. (eval "$ac_try") 2>&5
  9217. ac_status=$?
  9218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9219. (exit $ac_status); }; }; then
  9220. am_cv_func_iconv=yes
  9221. else
  9222. echo "$as_me: failed program was:" >&5
  9223. sed 's/^/| /' conftest.$ac_ext >&5
  9224. fi
  9225. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9226. conftest$ac_exeext conftest.$ac_ext
  9227. if test "$am_cv_func_iconv" != yes; then
  9228. am_save_LIBS="$LIBS"
  9229. LIBS="$LIBS $LIBICONV"
  9230. cat >conftest.$ac_ext <<_ACEOF
  9231. /* confdefs.h. */
  9232. _ACEOF
  9233. cat confdefs.h >>conftest.$ac_ext
  9234. cat >>conftest.$ac_ext <<_ACEOF
  9235. /* end confdefs.h. */
  9236. #include <stdlib.h>
  9237. #include <iconv.h>
  9238. int
  9239. main ()
  9240. {
  9241. iconv_t cd = iconv_open("","");
  9242. iconv(cd,NULL,NULL,NULL,NULL);
  9243. iconv_close(cd);
  9244. ;
  9245. return 0;
  9246. }
  9247. _ACEOF
  9248. rm -f conftest.$ac_objext conftest$ac_exeext
  9249. if { (ac_try="$ac_link"
  9250. case "(($ac_try" in
  9251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9252. *) ac_try_echo=$ac_try;;
  9253. esac
  9254. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9255. (eval "$ac_link") 2>conftest.er1
  9256. ac_status=$?
  9257. grep -v '^ *+' conftest.er1 >conftest.err
  9258. rm -f conftest.er1
  9259. cat conftest.err >&5
  9260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9261. (exit $ac_status); } &&
  9262. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9263. { (case "(($ac_try" in
  9264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9265. *) ac_try_echo=$ac_try;;
  9266. esac
  9267. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9268. (eval "$ac_try") 2>&5
  9269. ac_status=$?
  9270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9271. (exit $ac_status); }; } &&
  9272. { ac_try='test -s conftest$ac_exeext'
  9273. { (case "(($ac_try" in
  9274. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9275. *) ac_try_echo=$ac_try;;
  9276. esac
  9277. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9278. (eval "$ac_try") 2>&5
  9279. ac_status=$?
  9280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9281. (exit $ac_status); }; }; then
  9282. am_cv_lib_iconv=yes
  9283. am_cv_func_iconv=yes
  9284. else
  9285. echo "$as_me: failed program was:" >&5
  9286. sed 's/^/| /' conftest.$ac_ext >&5
  9287. fi
  9288. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9289. conftest$ac_exeext conftest.$ac_ext
  9290. LIBS="$am_save_LIBS"
  9291. fi
  9292. fi
  9293. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  9294. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  9295. if test "$am_cv_func_iconv" = yes; then
  9296. cat >>confdefs.h <<\_ACEOF
  9297. #define HAVE_ICONV 1
  9298. _ACEOF
  9299. fi
  9300. if test "$am_cv_lib_iconv" = yes; then
  9301. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  9302. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  9303. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  9304. echo "${ECHO_T}$LIBICONV" >&6; }
  9305. else
  9306. CPPFLAGS="$am_save_CPPFLAGS"
  9307. LIBICONV=
  9308. LTLIBICONV=
  9309. fi
  9310. if test "$am_cv_func_iconv" = yes; then
  9311. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  9312. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  9313. if test "${am_cv_proto_iconv+set}" = set; then
  9314. echo $ECHO_N "(cached) $ECHO_C" >&6
  9315. else
  9316. cat >conftest.$ac_ext <<_ACEOF
  9317. /* confdefs.h. */
  9318. _ACEOF
  9319. cat confdefs.h >>conftest.$ac_ext
  9320. cat >>conftest.$ac_ext <<_ACEOF
  9321. /* end confdefs.h. */
  9322. #include <stdlib.h>
  9323. #include <iconv.h>
  9324. extern
  9325. #ifdef __cplusplus
  9326. "C"
  9327. #endif
  9328. #if defined(__STDC__) || defined(__cplusplus)
  9329. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  9330. #else
  9331. size_t iconv();
  9332. #endif
  9333. int
  9334. main ()
  9335. {
  9336. ;
  9337. return 0;
  9338. }
  9339. _ACEOF
  9340. rm -f conftest.$ac_objext
  9341. if { (ac_try="$ac_compile"
  9342. case "(($ac_try" in
  9343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9344. *) ac_try_echo=$ac_try;;
  9345. esac
  9346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9347. (eval "$ac_compile") 2>conftest.er1
  9348. ac_status=$?
  9349. grep -v '^ *+' conftest.er1 >conftest.err
  9350. rm -f conftest.er1
  9351. cat conftest.err >&5
  9352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9353. (exit $ac_status); } &&
  9354. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9355. { (case "(($ac_try" in
  9356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9357. *) ac_try_echo=$ac_try;;
  9358. esac
  9359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9360. (eval "$ac_try") 2>&5
  9361. ac_status=$?
  9362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9363. (exit $ac_status); }; } &&
  9364. { ac_try='test -s conftest.$ac_objext'
  9365. { (case "(($ac_try" in
  9366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9367. *) ac_try_echo=$ac_try;;
  9368. esac
  9369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9370. (eval "$ac_try") 2>&5
  9371. ac_status=$?
  9372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9373. (exit $ac_status); }; }; then
  9374. am_cv_proto_iconv_arg1=""
  9375. else
  9376. echo "$as_me: failed program was:" >&5
  9377. sed 's/^/| /' conftest.$ac_ext >&5
  9378. am_cv_proto_iconv_arg1="const"
  9379. fi
  9380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9381. 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);"
  9382. fi
  9383. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  9384. { echo "$as_me:$LINENO: result: ${ac_t:-
  9385. }$am_cv_proto_iconv" >&5
  9386. echo "${ECHO_T}${ac_t:-
  9387. }$am_cv_proto_iconv" >&6; }
  9388. cat >>confdefs.h <<_ACEOF
  9389. #define ICONV_CONST $am_cv_proto_iconv_arg1
  9390. _ACEOF
  9391. fi
  9392. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  9393. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  9394. if test "${am_cv_langinfo_codeset+set}" = set; then
  9395. echo $ECHO_N "(cached) $ECHO_C" >&6
  9396. else
  9397. cat >conftest.$ac_ext <<_ACEOF
  9398. /* confdefs.h. */
  9399. _ACEOF
  9400. cat confdefs.h >>conftest.$ac_ext
  9401. cat >>conftest.$ac_ext <<_ACEOF
  9402. /* end confdefs.h. */
  9403. #include <langinfo.h>
  9404. int
  9405. main ()
  9406. {
  9407. char* cs = nl_langinfo(CODESET);
  9408. ;
  9409. return 0;
  9410. }
  9411. _ACEOF
  9412. rm -f conftest.$ac_objext conftest$ac_exeext
  9413. if { (ac_try="$ac_link"
  9414. case "(($ac_try" in
  9415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9416. *) ac_try_echo=$ac_try;;
  9417. esac
  9418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9419. (eval "$ac_link") 2>conftest.er1
  9420. ac_status=$?
  9421. grep -v '^ *+' conftest.er1 >conftest.err
  9422. rm -f conftest.er1
  9423. cat conftest.err >&5
  9424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9425. (exit $ac_status); } &&
  9426. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9427. { (case "(($ac_try" in
  9428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9429. *) ac_try_echo=$ac_try;;
  9430. esac
  9431. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9432. (eval "$ac_try") 2>&5
  9433. ac_status=$?
  9434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9435. (exit $ac_status); }; } &&
  9436. { ac_try='test -s conftest$ac_exeext'
  9437. { (case "(($ac_try" in
  9438. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9439. *) ac_try_echo=$ac_try;;
  9440. esac
  9441. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9442. (eval "$ac_try") 2>&5
  9443. ac_status=$?
  9444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9445. (exit $ac_status); }; }; then
  9446. am_cv_langinfo_codeset=yes
  9447. else
  9448. echo "$as_me: failed program was:" >&5
  9449. sed 's/^/| /' conftest.$ac_ext >&5
  9450. am_cv_langinfo_codeset=no
  9451. fi
  9452. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9453. conftest$ac_exeext conftest.$ac_ext
  9454. fi
  9455. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  9456. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  9457. if test $am_cv_langinfo_codeset = yes; then
  9458. cat >>confdefs.h <<\_ACEOF
  9459. #define HAVE_LANGINFO_CODESET 1
  9460. _ACEOF
  9461. fi
  9462. if test $ac_cv_header_locale_h = yes; then
  9463. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  9464. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  9465. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  9466. echo $ECHO_N "(cached) $ECHO_C" >&6
  9467. else
  9468. cat >conftest.$ac_ext <<_ACEOF
  9469. /* confdefs.h. */
  9470. _ACEOF
  9471. cat confdefs.h >>conftest.$ac_ext
  9472. cat >>conftest.$ac_ext <<_ACEOF
  9473. /* end confdefs.h. */
  9474. #include <locale.h>
  9475. int
  9476. main ()
  9477. {
  9478. return LC_MESSAGES
  9479. ;
  9480. return 0;
  9481. }
  9482. _ACEOF
  9483. rm -f conftest.$ac_objext conftest$ac_exeext
  9484. if { (ac_try="$ac_link"
  9485. case "(($ac_try" in
  9486. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9487. *) ac_try_echo=$ac_try;;
  9488. esac
  9489. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9490. (eval "$ac_link") 2>conftest.er1
  9491. ac_status=$?
  9492. grep -v '^ *+' conftest.er1 >conftest.err
  9493. rm -f conftest.er1
  9494. cat conftest.err >&5
  9495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9496. (exit $ac_status); } &&
  9497. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9498. { (case "(($ac_try" in
  9499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9500. *) ac_try_echo=$ac_try;;
  9501. esac
  9502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9503. (eval "$ac_try") 2>&5
  9504. ac_status=$?
  9505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9506. (exit $ac_status); }; } &&
  9507. { ac_try='test -s conftest$ac_exeext'
  9508. { (case "(($ac_try" in
  9509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9510. *) ac_try_echo=$ac_try;;
  9511. esac
  9512. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9513. (eval "$ac_try") 2>&5
  9514. ac_status=$?
  9515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9516. (exit $ac_status); }; }; then
  9517. am_cv_val_LC_MESSAGES=yes
  9518. else
  9519. echo "$as_me: failed program was:" >&5
  9520. sed 's/^/| /' conftest.$ac_ext >&5
  9521. am_cv_val_LC_MESSAGES=no
  9522. fi
  9523. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9524. conftest$ac_exeext conftest.$ac_ext
  9525. fi
  9526. { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  9527. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  9528. if test $am_cv_val_LC_MESSAGES = yes; then
  9529. cat >>confdefs.h <<\_ACEOF
  9530. #define HAVE_LC_MESSAGES 1
  9531. _ACEOF
  9532. fi
  9533. fi
  9534. for ac_prog in bison
  9535. do
  9536. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9537. set dummy $ac_prog; ac_word=$2
  9538. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  9539. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  9540. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  9541. echo $ECHO_N "(cached) $ECHO_C" >&6
  9542. else
  9543. if test -n "$INTLBISON"; then
  9544. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  9545. else
  9546. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9547. for as_dir in $PATH
  9548. do
  9549. IFS=$as_save_IFS
  9550. test -z "$as_dir" && as_dir=.
  9551. for ac_exec_ext in '' $ac_executable_extensions; do
  9552. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
  9553. ac_cv_prog_INTLBISON="$ac_prog"
  9554. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  9555. break 2
  9556. fi
  9557. done
  9558. done
  9559. IFS=$as_save_IFS
  9560. fi
  9561. fi
  9562. INTLBISON=$ac_cv_prog_INTLBISON
  9563. if test -n "$INTLBISON"; then
  9564. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  9565. echo "${ECHO_T}$INTLBISON" >&6; }
  9566. else
  9567. { echo "$as_me:$LINENO: result: no" >&5
  9568. echo "${ECHO_T}no" >&6; }
  9569. fi
  9570. test -n "$INTLBISON" && break
  9571. done
  9572. if test -z "$INTLBISON"; then
  9573. ac_verc_fail=yes
  9574. else
  9575. { echo "$as_me:$LINENO: checking version of bison" >&5
  9576. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  9577. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  9578. case $ac_prog_version in
  9579. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  9580. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  9581. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  9582. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  9583. esac
  9584. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  9585. echo "${ECHO_T}$ac_prog_version" >&6; }
  9586. fi
  9587. if test $ac_verc_fail = yes; then
  9588. INTLBISON=:
  9589. fi
  9590. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  9591. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  9592. # Check whether --enable-nls was given.
  9593. if test "${enable_nls+set}" = set; then
  9594. enableval=$enable_nls; USE_NLS=$enableval
  9595. else
  9596. USE_NLS=yes
  9597. fi
  9598. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9599. echo "${ECHO_T}$USE_NLS" >&6; }
  9600. BUILD_INCLUDED_LIBINTL=no
  9601. USE_INCLUDED_LIBINTL=no
  9602. LIBINTL=
  9603. LTLIBINTL=
  9604. POSUB=
  9605. if test "$USE_NLS" = "yes"; then
  9606. gt_use_preinstalled_gnugettext=no
  9607. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  9608. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  9609. # Check whether --with-included-gettext was given.
  9610. if test "${with_included_gettext+set}" = set; then
  9611. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  9612. else
  9613. nls_cv_force_use_gnu_gettext=no
  9614. fi
  9615. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  9616. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  9617. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  9618. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  9619. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  9620. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  9621. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  9622. echo $ECHO_N "(cached) $ECHO_C" >&6
  9623. else
  9624. cat >conftest.$ac_ext <<_ACEOF
  9625. /* confdefs.h. */
  9626. _ACEOF
  9627. cat confdefs.h >>conftest.$ac_ext
  9628. cat >>conftest.$ac_ext <<_ACEOF
  9629. /* end confdefs.h. */
  9630. #include <libintl.h>
  9631. extern int _nl_msg_cat_cntr;
  9632. extern int *_nl_domain_bindings;
  9633. int
  9634. main ()
  9635. {
  9636. bindtextdomain ("", "");
  9637. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  9638. ;
  9639. return 0;
  9640. }
  9641. _ACEOF
  9642. rm -f conftest.$ac_objext conftest$ac_exeext
  9643. if { (ac_try="$ac_link"
  9644. case "(($ac_try" in
  9645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9646. *) ac_try_echo=$ac_try;;
  9647. esac
  9648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9649. (eval "$ac_link") 2>conftest.er1
  9650. ac_status=$?
  9651. grep -v '^ *+' conftest.er1 >conftest.err
  9652. rm -f conftest.er1
  9653. cat conftest.err >&5
  9654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9655. (exit $ac_status); } &&
  9656. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9657. { (case "(($ac_try" in
  9658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9659. *) ac_try_echo=$ac_try;;
  9660. esac
  9661. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9662. (eval "$ac_try") 2>&5
  9663. ac_status=$?
  9664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9665. (exit $ac_status); }; } &&
  9666. { ac_try='test -s conftest$ac_exeext'
  9667. { (case "(($ac_try" in
  9668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9669. *) ac_try_echo=$ac_try;;
  9670. esac
  9671. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9672. (eval "$ac_try") 2>&5
  9673. ac_status=$?
  9674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9675. (exit $ac_status); }; }; then
  9676. gt_cv_func_gnugettext1_libc=yes
  9677. else
  9678. echo "$as_me: failed program was:" >&5
  9679. sed 's/^/| /' conftest.$ac_ext >&5
  9680. gt_cv_func_gnugettext1_libc=no
  9681. fi
  9682. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9683. conftest$ac_exeext conftest.$ac_ext
  9684. fi
  9685. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  9686. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
  9687. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  9688. use_additional=yes
  9689. acl_save_prefix="$prefix"
  9690. prefix="$acl_final_prefix"
  9691. acl_save_exec_prefix="$exec_prefix"
  9692. exec_prefix="$acl_final_exec_prefix"
  9693. eval additional_includedir=\"$includedir\"
  9694. eval additional_libdir=\"$libdir\"
  9695. exec_prefix="$acl_save_exec_prefix"
  9696. prefix="$acl_save_prefix"
  9697. # Check whether --with-libintl-prefix was given.
  9698. if test "${with_libintl_prefix+set}" = set; then
  9699. withval=$with_libintl_prefix;
  9700. if test "X$withval" = "Xno"; then
  9701. use_additional=no
  9702. else
  9703. if test "X$withval" = "X"; then
  9704. acl_save_prefix="$prefix"
  9705. prefix="$acl_final_prefix"
  9706. acl_save_exec_prefix="$exec_prefix"
  9707. exec_prefix="$acl_final_exec_prefix"
  9708. eval additional_includedir=\"$includedir\"
  9709. eval additional_libdir=\"$libdir\"
  9710. exec_prefix="$acl_save_exec_prefix"
  9711. prefix="$acl_save_prefix"
  9712. else
  9713. additional_includedir="$withval/include"
  9714. additional_libdir="$withval/lib"
  9715. fi
  9716. fi
  9717. fi
  9718. LIBINTL=
  9719. LTLIBINTL=
  9720. INCINTL=
  9721. rpathdirs=
  9722. ltrpathdirs=
  9723. names_already_handled=
  9724. names_next_round='intl '
  9725. while test -n "$names_next_round"; do
  9726. names_this_round="$names_next_round"
  9727. names_next_round=
  9728. for name in $names_this_round; do
  9729. already_handled=
  9730. for n in $names_already_handled; do
  9731. if test "$n" = "$name"; then
  9732. already_handled=yes
  9733. break
  9734. fi
  9735. done
  9736. if test -z "$already_handled"; then
  9737. names_already_handled="$names_already_handled $name"
  9738. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9739. eval value=\"\$HAVE_LIB$uppername\"
  9740. if test -n "$value"; then
  9741. if test "$value" = yes; then
  9742. eval value=\"\$LIB$uppername\"
  9743. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  9744. eval value=\"\$LTLIB$uppername\"
  9745. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  9746. else
  9747. :
  9748. fi
  9749. else
  9750. found_dir=
  9751. found_la=
  9752. found_so=
  9753. found_a=
  9754. if test $use_additional = yes; then
  9755. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  9756. found_dir="$additional_libdir"
  9757. found_so="$additional_libdir/lib$name.$shlibext"
  9758. if test -f "$additional_libdir/lib$name.la"; then
  9759. found_la="$additional_libdir/lib$name.la"
  9760. fi
  9761. else
  9762. if test -f "$additional_libdir/lib$name.$libext"; then
  9763. found_dir="$additional_libdir"
  9764. found_a="$additional_libdir/lib$name.$libext"
  9765. if test -f "$additional_libdir/lib$name.la"; then
  9766. found_la="$additional_libdir/lib$name.la"
  9767. fi
  9768. fi
  9769. fi
  9770. fi
  9771. if test "X$found_dir" = "X"; then
  9772. for x in $LDFLAGS $LTLIBINTL; do
  9773. acl_save_prefix="$prefix"
  9774. prefix="$acl_final_prefix"
  9775. acl_save_exec_prefix="$exec_prefix"
  9776. exec_prefix="$acl_final_exec_prefix"
  9777. eval x=\"$x\"
  9778. exec_prefix="$acl_save_exec_prefix"
  9779. prefix="$acl_save_prefix"
  9780. case "$x" in
  9781. -L*)
  9782. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9783. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  9784. found_dir="$dir"
  9785. found_so="$dir/lib$name.$shlibext"
  9786. if test -f "$dir/lib$name.la"; then
  9787. found_la="$dir/lib$name.la"
  9788. fi
  9789. else
  9790. if test -f "$dir/lib$name.$libext"; then
  9791. found_dir="$dir"
  9792. found_a="$dir/lib$name.$libext"
  9793. if test -f "$dir/lib$name.la"; then
  9794. found_la="$dir/lib$name.la"
  9795. fi
  9796. fi
  9797. fi
  9798. ;;
  9799. esac
  9800. if test "X$found_dir" != "X"; then
  9801. break
  9802. fi
  9803. done
  9804. fi
  9805. if test "X$found_dir" != "X"; then
  9806. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  9807. if test "X$found_so" != "X"; then
  9808. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  9809. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9810. else
  9811. haveit=
  9812. for x in $ltrpathdirs; do
  9813. if test "X$x" = "X$found_dir"; then
  9814. haveit=yes
  9815. break
  9816. fi
  9817. done
  9818. if test -z "$haveit"; then
  9819. ltrpathdirs="$ltrpathdirs $found_dir"
  9820. fi
  9821. if test "$hardcode_direct" = yes; then
  9822. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9823. else
  9824. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  9825. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9826. haveit=
  9827. for x in $rpathdirs; do
  9828. if test "X$x" = "X$found_dir"; then
  9829. haveit=yes
  9830. break
  9831. fi
  9832. done
  9833. if test -z "$haveit"; then
  9834. rpathdirs="$rpathdirs $found_dir"
  9835. fi
  9836. else
  9837. haveit=
  9838. for x in $LDFLAGS $LIBINTL; do
  9839. acl_save_prefix="$prefix"
  9840. prefix="$acl_final_prefix"
  9841. acl_save_exec_prefix="$exec_prefix"
  9842. exec_prefix="$acl_final_exec_prefix"
  9843. eval x=\"$x\"
  9844. exec_prefix="$acl_save_exec_prefix"
  9845. prefix="$acl_save_prefix"
  9846. if test "X$x" = "X-L$found_dir"; then
  9847. haveit=yes
  9848. break
  9849. fi
  9850. done
  9851. if test -z "$haveit"; then
  9852. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  9853. fi
  9854. if test "$hardcode_minus_L" != no; then
  9855. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9856. else
  9857. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9858. fi
  9859. fi
  9860. fi
  9861. fi
  9862. else
  9863. if test "X$found_a" != "X"; then
  9864. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  9865. else
  9866. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  9867. fi
  9868. fi
  9869. additional_includedir=
  9870. case "$found_dir" in
  9871. */lib | */lib/)
  9872. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  9873. additional_includedir="$basedir/include"
  9874. ;;
  9875. esac
  9876. if test "X$additional_includedir" != "X"; then
  9877. if test "X$additional_includedir" != "X/usr/include"; then
  9878. haveit=
  9879. if test "X$additional_includedir" = "X/usr/local/include"; then
  9880. if test -n "$GCC"; then
  9881. case $host_os in
  9882. linux*) haveit=yes;;
  9883. esac
  9884. fi
  9885. fi
  9886. if test -z "$haveit"; then
  9887. for x in $CPPFLAGS $INCINTL; do
  9888. acl_save_prefix="$prefix"
  9889. prefix="$acl_final_prefix"
  9890. acl_save_exec_prefix="$exec_prefix"
  9891. exec_prefix="$acl_final_exec_prefix"
  9892. eval x=\"$x\"
  9893. exec_prefix="$acl_save_exec_prefix"
  9894. prefix="$acl_save_prefix"
  9895. if test "X$x" = "X-I$additional_includedir"; then
  9896. haveit=yes
  9897. break
  9898. fi
  9899. done
  9900. if test -z "$haveit"; then
  9901. if test -d "$additional_includedir"; then
  9902. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  9903. fi
  9904. fi
  9905. fi
  9906. fi
  9907. fi
  9908. if test -n "$found_la"; then
  9909. save_libdir="$libdir"
  9910. case "$found_la" in
  9911. */* | *\\*) . "$found_la" ;;
  9912. *) . "./$found_la" ;;
  9913. esac
  9914. libdir="$save_libdir"
  9915. for dep in $dependency_libs; do
  9916. case "$dep" in
  9917. -L*)
  9918. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9919. if test "X$additional_libdir" != "X/usr/lib"; then
  9920. haveit=
  9921. if test "X$additional_libdir" = "X/usr/local/lib"; then
  9922. if test -n "$GCC"; then
  9923. case $host_os in
  9924. linux*) haveit=yes;;
  9925. esac
  9926. fi
  9927. fi
  9928. if test -z "$haveit"; then
  9929. haveit=
  9930. for x in $LDFLAGS $LIBINTL; do
  9931. acl_save_prefix="$prefix"
  9932. prefix="$acl_final_prefix"
  9933. acl_save_exec_prefix="$exec_prefix"
  9934. exec_prefix="$acl_final_exec_prefix"
  9935. eval x=\"$x\"
  9936. exec_prefix="$acl_save_exec_prefix"
  9937. prefix="$acl_save_prefix"
  9938. if test "X$x" = "X-L$additional_libdir"; then
  9939. haveit=yes
  9940. break
  9941. fi
  9942. done
  9943. if test -z "$haveit"; then
  9944. if test -d "$additional_libdir"; then
  9945. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  9946. fi
  9947. fi
  9948. haveit=
  9949. for x in $LDFLAGS $LTLIBINTL; do
  9950. acl_save_prefix="$prefix"
  9951. prefix="$acl_final_prefix"
  9952. acl_save_exec_prefix="$exec_prefix"
  9953. exec_prefix="$acl_final_exec_prefix"
  9954. eval x=\"$x\"
  9955. exec_prefix="$acl_save_exec_prefix"
  9956. prefix="$acl_save_prefix"
  9957. if test "X$x" = "X-L$additional_libdir"; then
  9958. haveit=yes
  9959. break
  9960. fi
  9961. done
  9962. if test -z "$haveit"; then
  9963. if test -d "$additional_libdir"; then
  9964. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  9965. fi
  9966. fi
  9967. fi
  9968. fi
  9969. ;;
  9970. -R*)
  9971. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9972. if test "$enable_rpath" != no; then
  9973. haveit=
  9974. for x in $rpathdirs; do
  9975. if test "X$x" = "X$dir"; then
  9976. haveit=yes
  9977. break
  9978. fi
  9979. done
  9980. if test -z "$haveit"; then
  9981. rpathdirs="$rpathdirs $dir"
  9982. fi
  9983. haveit=
  9984. for x in $ltrpathdirs; do
  9985. if test "X$x" = "X$dir"; then
  9986. haveit=yes
  9987. break
  9988. fi
  9989. done
  9990. if test -z "$haveit"; then
  9991. ltrpathdirs="$ltrpathdirs $dir"
  9992. fi
  9993. fi
  9994. ;;
  9995. -l*)
  9996. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9997. ;;
  9998. *.la)
  9999. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  10000. ;;
  10001. *)
  10002. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  10003. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  10004. ;;
  10005. esac
  10006. done
  10007. fi
  10008. else
  10009. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  10010. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  10011. fi
  10012. fi
  10013. fi
  10014. done
  10015. done
  10016. if test "X$rpathdirs" != "X"; then
  10017. if test -n "$hardcode_libdir_separator"; then
  10018. alldirs=
  10019. for found_dir in $rpathdirs; do
  10020. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  10021. done
  10022. acl_save_libdir="$libdir"
  10023. libdir="$alldirs"
  10024. eval flag=\"$hardcode_libdir_flag_spec\"
  10025. libdir="$acl_save_libdir"
  10026. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  10027. else
  10028. for found_dir in $rpathdirs; do
  10029. acl_save_libdir="$libdir"
  10030. libdir="$found_dir"
  10031. eval flag=\"$hardcode_libdir_flag_spec\"
  10032. libdir="$acl_save_libdir"
  10033. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  10034. done
  10035. fi
  10036. fi
  10037. if test "X$ltrpathdirs" != "X"; then
  10038. for found_dir in $ltrpathdirs; do
  10039. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  10040. done
  10041. fi
  10042. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  10043. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  10044. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  10045. echo $ECHO_N "(cached) $ECHO_C" >&6
  10046. else
  10047. gt_save_CPPFLAGS="$CPPFLAGS"
  10048. CPPFLAGS="$CPPFLAGS $INCINTL"
  10049. gt_save_LIBS="$LIBS"
  10050. LIBS="$LIBS $LIBINTL"
  10051. cat >conftest.$ac_ext <<_ACEOF
  10052. /* confdefs.h. */
  10053. _ACEOF
  10054. cat confdefs.h >>conftest.$ac_ext
  10055. cat >>conftest.$ac_ext <<_ACEOF
  10056. /* end confdefs.h. */
  10057. #include <libintl.h>
  10058. extern int _nl_msg_cat_cntr;
  10059. extern
  10060. #ifdef __cplusplus
  10061. "C"
  10062. #endif
  10063. const char *_nl_expand_alias ();
  10064. int
  10065. main ()
  10066. {
  10067. bindtextdomain ("", "");
  10068. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  10069. ;
  10070. return 0;
  10071. }
  10072. _ACEOF
  10073. rm -f conftest.$ac_objext conftest$ac_exeext
  10074. if { (ac_try="$ac_link"
  10075. case "(($ac_try" in
  10076. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10077. *) ac_try_echo=$ac_try;;
  10078. esac
  10079. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10080. (eval "$ac_link") 2>conftest.er1
  10081. ac_status=$?
  10082. grep -v '^ *+' conftest.er1 >conftest.err
  10083. rm -f conftest.er1
  10084. cat conftest.err >&5
  10085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10086. (exit $ac_status); } &&
  10087. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10088. { (case "(($ac_try" in
  10089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10090. *) ac_try_echo=$ac_try;;
  10091. esac
  10092. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10093. (eval "$ac_try") 2>&5
  10094. ac_status=$?
  10095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10096. (exit $ac_status); }; } &&
  10097. { ac_try='test -s conftest$ac_exeext'
  10098. { (case "(($ac_try" in
  10099. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10100. *) ac_try_echo=$ac_try;;
  10101. esac
  10102. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10103. (eval "$ac_try") 2>&5
  10104. ac_status=$?
  10105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10106. (exit $ac_status); }; }; then
  10107. gt_cv_func_gnugettext1_libintl=yes
  10108. else
  10109. echo "$as_me: failed program was:" >&5
  10110. sed 's/^/| /' conftest.$ac_ext >&5
  10111. gt_cv_func_gnugettext1_libintl=no
  10112. fi
  10113. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10114. conftest$ac_exeext conftest.$ac_ext
  10115. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  10116. LIBS="$LIBS $LIBICONV"
  10117. cat >conftest.$ac_ext <<_ACEOF
  10118. /* confdefs.h. */
  10119. _ACEOF
  10120. cat confdefs.h >>conftest.$ac_ext
  10121. cat >>conftest.$ac_ext <<_ACEOF
  10122. /* end confdefs.h. */
  10123. #include <libintl.h>
  10124. extern int _nl_msg_cat_cntr;
  10125. extern
  10126. #ifdef __cplusplus
  10127. "C"
  10128. #endif
  10129. const char *_nl_expand_alias ();
  10130. int
  10131. main ()
  10132. {
  10133. bindtextdomain ("", "");
  10134. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  10135. ;
  10136. return 0;
  10137. }
  10138. _ACEOF
  10139. rm -f conftest.$ac_objext conftest$ac_exeext
  10140. if { (ac_try="$ac_link"
  10141. case "(($ac_try" in
  10142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10143. *) ac_try_echo=$ac_try;;
  10144. esac
  10145. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10146. (eval "$ac_link") 2>conftest.er1
  10147. ac_status=$?
  10148. grep -v '^ *+' conftest.er1 >conftest.err
  10149. rm -f conftest.er1
  10150. cat conftest.err >&5
  10151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10152. (exit $ac_status); } &&
  10153. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10154. { (case "(($ac_try" in
  10155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10156. *) ac_try_echo=$ac_try;;
  10157. esac
  10158. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10159. (eval "$ac_try") 2>&5
  10160. ac_status=$?
  10161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10162. (exit $ac_status); }; } &&
  10163. { ac_try='test -s conftest$ac_exeext'
  10164. { (case "(($ac_try" in
  10165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10166. *) ac_try_echo=$ac_try;;
  10167. esac
  10168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10169. (eval "$ac_try") 2>&5
  10170. ac_status=$?
  10171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10172. (exit $ac_status); }; }; then
  10173. LIBINTL="$LIBINTL $LIBICONV"
  10174. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  10175. gt_cv_func_gnugettext1_libintl=yes
  10176. else
  10177. echo "$as_me: failed program was:" >&5
  10178. sed 's/^/| /' conftest.$ac_ext >&5
  10179. fi
  10180. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10181. conftest$ac_exeext conftest.$ac_ext
  10182. fi
  10183. CPPFLAGS="$gt_save_CPPFLAGS"
  10184. LIBS="$gt_save_LIBS"
  10185. fi
  10186. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  10187. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
  10188. fi
  10189. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  10190. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  10191. && test "$PACKAGE" != gettext-runtime \
  10192. && test "$PACKAGE" != gettext-tools; }; then
  10193. gt_use_preinstalled_gnugettext=yes
  10194. else
  10195. LIBINTL=
  10196. LTLIBINTL=
  10197. INCINTL=
  10198. fi
  10199. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  10200. nls_cv_use_gnu_gettext=yes
  10201. fi
  10202. fi
  10203. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  10204. BUILD_INCLUDED_LIBINTL=yes
  10205. USE_INCLUDED_LIBINTL=yes
  10206. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  10207. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  10208. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  10209. fi
  10210. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  10211. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  10212. CATOBJEXT=.gmo
  10213. fi
  10214. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  10215. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  10216. cat >>confdefs.h <<\_ACEOF
  10217. #define ENABLE_NLS 1
  10218. _ACEOF
  10219. else
  10220. USE_NLS=no
  10221. fi
  10222. fi
  10223. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  10224. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  10225. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  10226. echo "${ECHO_T}$USE_NLS" >&6; }
  10227. if test "$USE_NLS" = "yes"; then
  10228. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  10229. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  10230. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  10231. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  10232. gt_source="external libintl"
  10233. else
  10234. gt_source="libc"
  10235. fi
  10236. else
  10237. gt_source="included intl directory"
  10238. fi
  10239. { echo "$as_me:$LINENO: result: $gt_source" >&5
  10240. echo "${ECHO_T}$gt_source" >&6; }
  10241. fi
  10242. if test "$USE_NLS" = "yes"; then
  10243. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  10244. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  10245. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  10246. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  10247. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  10248. echo "${ECHO_T}$LIBINTL" >&6; }
  10249. for element in $INCINTL; do
  10250. haveit=
  10251. for x in $CPPFLAGS; do
  10252. acl_save_prefix="$prefix"
  10253. prefix="$acl_final_prefix"
  10254. acl_save_exec_prefix="$exec_prefix"
  10255. exec_prefix="$acl_final_exec_prefix"
  10256. eval x=\"$x\"
  10257. exec_prefix="$acl_save_exec_prefix"
  10258. prefix="$acl_save_prefix"
  10259. if test "X$x" = "X$element"; then
  10260. haveit=yes
  10261. break
  10262. fi
  10263. done
  10264. if test -z "$haveit"; then
  10265. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10266. fi
  10267. done
  10268. fi
  10269. cat >>confdefs.h <<\_ACEOF
  10270. #define HAVE_GETTEXT 1
  10271. _ACEOF
  10272. cat >>confdefs.h <<\_ACEOF
  10273. #define HAVE_DCGETTEXT 1
  10274. _ACEOF
  10275. fi
  10276. POSUB=po
  10277. fi
  10278. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  10279. BUILD_INCLUDED_LIBINTL=yes
  10280. fi
  10281. nls_cv_header_intl=
  10282. nls_cv_header_libgt=
  10283. DATADIRNAME=share
  10284. INSTOBJEXT=.mo
  10285. GENCAT=gencat
  10286. if test "$USE_INCLUDED_LIBINTL" = yes; then
  10287. INTLOBJS="\$(GETTOBJS)"
  10288. fi
  10289. INTL_LIBTOOL_SUFFIX_PREFIX=
  10290. INTLLIBS="$LIBINTL"
  10291. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  10292. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  10293. if test "${ac_cv_lib_error_at_line+set}" = set; then
  10294. echo $ECHO_N "(cached) $ECHO_C" >&6
  10295. else
  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. int
  10304. main ()
  10305. {
  10306. error_at_line (0, 0, "", 0, "");
  10307. ;
  10308. return 0;
  10309. }
  10310. _ACEOF
  10311. rm -f conftest.$ac_objext conftest$ac_exeext
  10312. if { (ac_try="$ac_link"
  10313. case "(($ac_try" in
  10314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10315. *) ac_try_echo=$ac_try;;
  10316. esac
  10317. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10318. (eval "$ac_link") 2>conftest.er1
  10319. ac_status=$?
  10320. grep -v '^ *+' conftest.er1 >conftest.err
  10321. rm -f conftest.er1
  10322. cat conftest.err >&5
  10323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10324. (exit $ac_status); } &&
  10325. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10326. { (case "(($ac_try" in
  10327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10328. *) ac_try_echo=$ac_try;;
  10329. esac
  10330. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10331. (eval "$ac_try") 2>&5
  10332. ac_status=$?
  10333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10334. (exit $ac_status); }; } &&
  10335. { ac_try='test -s conftest$ac_exeext'
  10336. { (case "(($ac_try" in
  10337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10338. *) ac_try_echo=$ac_try;;
  10339. esac
  10340. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10341. (eval "$ac_try") 2>&5
  10342. ac_status=$?
  10343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10344. (exit $ac_status); }; }; then
  10345. ac_cv_lib_error_at_line=yes
  10346. else
  10347. echo "$as_me: failed program was:" >&5
  10348. sed 's/^/| /' conftest.$ac_ext >&5
  10349. ac_cv_lib_error_at_line=no
  10350. fi
  10351. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10352. conftest$ac_exeext conftest.$ac_ext
  10353. fi
  10354. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  10355. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  10356. if test $ac_cv_lib_error_at_line = no; then
  10357. case " $LIBOBJS " in
  10358. *" error.$ac_objext "* ) ;;
  10359. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  10360. ;;
  10361. esac
  10362. fi
  10363. for ac_header in stdlib.h
  10364. do
  10365. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10366. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10367. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10368. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10369. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10370. echo $ECHO_N "(cached) $ECHO_C" >&6
  10371. fi
  10372. ac_res=`eval echo '${'$as_ac_Header'}'`
  10373. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10374. echo "${ECHO_T}$ac_res" >&6; }
  10375. else
  10376. # Is the header compilable?
  10377. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10378. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10379. cat >conftest.$ac_ext <<_ACEOF
  10380. /* confdefs.h. */
  10381. _ACEOF
  10382. cat confdefs.h >>conftest.$ac_ext
  10383. cat >>conftest.$ac_ext <<_ACEOF
  10384. /* end confdefs.h. */
  10385. $ac_includes_default
  10386. #include <$ac_header>
  10387. _ACEOF
  10388. rm -f conftest.$ac_objext
  10389. if { (ac_try="$ac_compile"
  10390. case "(($ac_try" in
  10391. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10392. *) ac_try_echo=$ac_try;;
  10393. esac
  10394. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10395. (eval "$ac_compile") 2>conftest.er1
  10396. ac_status=$?
  10397. grep -v '^ *+' conftest.er1 >conftest.err
  10398. rm -f conftest.er1
  10399. cat conftest.err >&5
  10400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10401. (exit $ac_status); } &&
  10402. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10403. { (case "(($ac_try" in
  10404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10405. *) ac_try_echo=$ac_try;;
  10406. esac
  10407. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10408. (eval "$ac_try") 2>&5
  10409. ac_status=$?
  10410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10411. (exit $ac_status); }; } &&
  10412. { ac_try='test -s conftest.$ac_objext'
  10413. { (case "(($ac_try" in
  10414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10415. *) ac_try_echo=$ac_try;;
  10416. esac
  10417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10418. (eval "$ac_try") 2>&5
  10419. ac_status=$?
  10420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10421. (exit $ac_status); }; }; then
  10422. ac_header_compiler=yes
  10423. else
  10424. echo "$as_me: failed program was:" >&5
  10425. sed 's/^/| /' conftest.$ac_ext >&5
  10426. ac_header_compiler=no
  10427. fi
  10428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10429. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10430. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10431. # Is the header present?
  10432. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10433. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10434. cat >conftest.$ac_ext <<_ACEOF
  10435. /* confdefs.h. */
  10436. _ACEOF
  10437. cat confdefs.h >>conftest.$ac_ext
  10438. cat >>conftest.$ac_ext <<_ACEOF
  10439. /* end confdefs.h. */
  10440. #include <$ac_header>
  10441. _ACEOF
  10442. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10443. case "(($ac_try" in
  10444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10445. *) ac_try_echo=$ac_try;;
  10446. esac
  10447. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10448. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10449. ac_status=$?
  10450. grep -v '^ *+' conftest.er1 >conftest.err
  10451. rm -f conftest.er1
  10452. cat conftest.err >&5
  10453. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10454. (exit $ac_status); } >/dev/null; then
  10455. if test -s conftest.err; then
  10456. ac_cpp_err=$ac_c_preproc_warn_flag
  10457. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10458. else
  10459. ac_cpp_err=
  10460. fi
  10461. else
  10462. ac_cpp_err=yes
  10463. fi
  10464. if test -z "$ac_cpp_err"; then
  10465. ac_header_preproc=yes
  10466. else
  10467. echo "$as_me: failed program was:" >&5
  10468. sed 's/^/| /' conftest.$ac_ext >&5
  10469. ac_header_preproc=no
  10470. fi
  10471. rm -f conftest.err conftest.$ac_ext
  10472. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10473. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10474. # So? What about this header?
  10475. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10476. yes:no: )
  10477. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10478. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10479. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10480. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10481. ac_header_preproc=yes
  10482. ;;
  10483. no:yes:* )
  10484. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10485. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10486. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10487. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10488. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10489. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10490. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10491. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10492. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10493. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10494. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10495. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10496. ( cat <<\_ASBOX
  10497. ## ----------------------------------- ##
  10498. ## Report this to tujikawa@rednoah.com ##
  10499. ## ----------------------------------- ##
  10500. _ASBOX
  10501. ) | sed "s/^/$as_me: WARNING: /" >&2
  10502. ;;
  10503. esac
  10504. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10505. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10506. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10507. echo $ECHO_N "(cached) $ECHO_C" >&6
  10508. else
  10509. eval "$as_ac_Header=\$ac_header_preproc"
  10510. fi
  10511. ac_res=`eval echo '${'$as_ac_Header'}'`
  10512. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10513. echo "${ECHO_T}$ac_res" >&6; }
  10514. fi
  10515. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10516. cat >>confdefs.h <<_ACEOF
  10517. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10518. _ACEOF
  10519. fi
  10520. done
  10521. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  10522. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  10523. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  10524. echo $ECHO_N "(cached) $ECHO_C" >&6
  10525. else
  10526. if test "$cross_compiling" = yes; then
  10527. ac_cv_func_malloc_0_nonnull=no
  10528. else
  10529. cat >conftest.$ac_ext <<_ACEOF
  10530. /* confdefs.h. */
  10531. _ACEOF
  10532. cat confdefs.h >>conftest.$ac_ext
  10533. cat >>conftest.$ac_ext <<_ACEOF
  10534. /* end confdefs.h. */
  10535. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10536. # include <stdlib.h>
  10537. #else
  10538. char *malloc ();
  10539. #endif
  10540. int
  10541. main ()
  10542. {
  10543. return ! malloc (0);
  10544. ;
  10545. return 0;
  10546. }
  10547. _ACEOF
  10548. rm -f conftest$ac_exeext
  10549. if { (ac_try="$ac_link"
  10550. case "(($ac_try" in
  10551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10552. *) ac_try_echo=$ac_try;;
  10553. esac
  10554. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10555. (eval "$ac_link") 2>&5
  10556. ac_status=$?
  10557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10558. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10559. { (case "(($ac_try" in
  10560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10561. *) ac_try_echo=$ac_try;;
  10562. esac
  10563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10564. (eval "$ac_try") 2>&5
  10565. ac_status=$?
  10566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10567. (exit $ac_status); }; }; then
  10568. ac_cv_func_malloc_0_nonnull=yes
  10569. else
  10570. echo "$as_me: program exited with status $ac_status" >&5
  10571. echo "$as_me: failed program was:" >&5
  10572. sed 's/^/| /' conftest.$ac_ext >&5
  10573. ( exit $ac_status )
  10574. ac_cv_func_malloc_0_nonnull=no
  10575. fi
  10576. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10577. fi
  10578. fi
  10579. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  10580. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  10581. if test $ac_cv_func_malloc_0_nonnull = yes; then
  10582. cat >>confdefs.h <<\_ACEOF
  10583. #define HAVE_MALLOC 1
  10584. _ACEOF
  10585. else
  10586. cat >>confdefs.h <<\_ACEOF
  10587. #define HAVE_MALLOC 0
  10588. _ACEOF
  10589. case " $LIBOBJS " in
  10590. *" malloc.$ac_objext "* ) ;;
  10591. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  10592. ;;
  10593. esac
  10594. cat >>confdefs.h <<\_ACEOF
  10595. #define malloc rpl_malloc
  10596. _ACEOF
  10597. fi
  10598. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  10599. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  10600. if test "${ac_cv_func_memcmp_working+set}" = set; then
  10601. echo $ECHO_N "(cached) $ECHO_C" >&6
  10602. else
  10603. if test "$cross_compiling" = yes; then
  10604. ac_cv_func_memcmp_working=no
  10605. else
  10606. cat >conftest.$ac_ext <<_ACEOF
  10607. /* confdefs.h. */
  10608. _ACEOF
  10609. cat confdefs.h >>conftest.$ac_ext
  10610. cat >>conftest.$ac_ext <<_ACEOF
  10611. /* end confdefs.h. */
  10612. $ac_includes_default
  10613. int
  10614. main ()
  10615. {
  10616. /* Some versions of memcmp are not 8-bit clean. */
  10617. char c0 = '\100', c1 = '\200', c2 = '\201';
  10618. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  10619. return 1;
  10620. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  10621. or more and with at least one buffer not starting on a 4-byte boundary.
  10622. William Lewis provided this test program. */
  10623. {
  10624. char foo[21];
  10625. char bar[21];
  10626. int i;
  10627. for (i = 0; i < 4; i++)
  10628. {
  10629. char *a = foo + i;
  10630. char *b = bar + i;
  10631. strcpy (a, "--------01111111");
  10632. strcpy (b, "--------10000000");
  10633. if (memcmp (a, b, 16) >= 0)
  10634. return 1;
  10635. }
  10636. return 0;
  10637. }
  10638. ;
  10639. return 0;
  10640. }
  10641. _ACEOF
  10642. rm -f conftest$ac_exeext
  10643. if { (ac_try="$ac_link"
  10644. case "(($ac_try" in
  10645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10646. *) ac_try_echo=$ac_try;;
  10647. esac
  10648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10649. (eval "$ac_link") 2>&5
  10650. ac_status=$?
  10651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10652. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10653. { (case "(($ac_try" in
  10654. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10655. *) ac_try_echo=$ac_try;;
  10656. esac
  10657. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10658. (eval "$ac_try") 2>&5
  10659. ac_status=$?
  10660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10661. (exit $ac_status); }; }; then
  10662. ac_cv_func_memcmp_working=yes
  10663. else
  10664. echo "$as_me: program exited with status $ac_status" >&5
  10665. echo "$as_me: failed program was:" >&5
  10666. sed 's/^/| /' conftest.$ac_ext >&5
  10667. ( exit $ac_status )
  10668. ac_cv_func_memcmp_working=no
  10669. fi
  10670. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10671. fi
  10672. fi
  10673. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  10674. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  10675. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  10676. *" memcmp.$ac_objext "* ) ;;
  10677. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  10678. ;;
  10679. esac
  10680. for ac_header in stdlib.h unistd.h
  10681. do
  10682. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10683. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10684. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10685. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10686. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10687. echo $ECHO_N "(cached) $ECHO_C" >&6
  10688. fi
  10689. ac_res=`eval echo '${'$as_ac_Header'}'`
  10690. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10691. echo "${ECHO_T}$ac_res" >&6; }
  10692. else
  10693. # Is the header compilable?
  10694. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10695. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10696. cat >conftest.$ac_ext <<_ACEOF
  10697. /* confdefs.h. */
  10698. _ACEOF
  10699. cat confdefs.h >>conftest.$ac_ext
  10700. cat >>conftest.$ac_ext <<_ACEOF
  10701. /* end confdefs.h. */
  10702. $ac_includes_default
  10703. #include <$ac_header>
  10704. _ACEOF
  10705. rm -f conftest.$ac_objext
  10706. if { (ac_try="$ac_compile"
  10707. case "(($ac_try" in
  10708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10709. *) ac_try_echo=$ac_try;;
  10710. esac
  10711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10712. (eval "$ac_compile") 2>conftest.er1
  10713. ac_status=$?
  10714. grep -v '^ *+' conftest.er1 >conftest.err
  10715. rm -f conftest.er1
  10716. cat conftest.err >&5
  10717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10718. (exit $ac_status); } &&
  10719. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10720. { (case "(($ac_try" in
  10721. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10722. *) ac_try_echo=$ac_try;;
  10723. esac
  10724. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10725. (eval "$ac_try") 2>&5
  10726. ac_status=$?
  10727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10728. (exit $ac_status); }; } &&
  10729. { ac_try='test -s conftest.$ac_objext'
  10730. { (case "(($ac_try" in
  10731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10732. *) ac_try_echo=$ac_try;;
  10733. esac
  10734. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10735. (eval "$ac_try") 2>&5
  10736. ac_status=$?
  10737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10738. (exit $ac_status); }; }; then
  10739. ac_header_compiler=yes
  10740. else
  10741. echo "$as_me: failed program was:" >&5
  10742. sed 's/^/| /' conftest.$ac_ext >&5
  10743. ac_header_compiler=no
  10744. fi
  10745. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10746. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10747. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10748. # Is the header present?
  10749. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10750. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10751. cat >conftest.$ac_ext <<_ACEOF
  10752. /* confdefs.h. */
  10753. _ACEOF
  10754. cat confdefs.h >>conftest.$ac_ext
  10755. cat >>conftest.$ac_ext <<_ACEOF
  10756. /* end confdefs.h. */
  10757. #include <$ac_header>
  10758. _ACEOF
  10759. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10760. case "(($ac_try" in
  10761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10762. *) ac_try_echo=$ac_try;;
  10763. esac
  10764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10765. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10766. ac_status=$?
  10767. grep -v '^ *+' conftest.er1 >conftest.err
  10768. rm -f conftest.er1
  10769. cat conftest.err >&5
  10770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10771. (exit $ac_status); } >/dev/null; then
  10772. if test -s conftest.err; then
  10773. ac_cpp_err=$ac_c_preproc_warn_flag
  10774. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10775. else
  10776. ac_cpp_err=
  10777. fi
  10778. else
  10779. ac_cpp_err=yes
  10780. fi
  10781. if test -z "$ac_cpp_err"; then
  10782. ac_header_preproc=yes
  10783. else
  10784. echo "$as_me: failed program was:" >&5
  10785. sed 's/^/| /' conftest.$ac_ext >&5
  10786. ac_header_preproc=no
  10787. fi
  10788. rm -f conftest.err conftest.$ac_ext
  10789. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10790. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10791. # So? What about this header?
  10792. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10793. yes:no: )
  10794. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10795. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10796. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10797. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10798. ac_header_preproc=yes
  10799. ;;
  10800. no:yes:* )
  10801. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10802. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10803. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10804. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10805. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10806. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10807. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10808. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10809. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10810. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10811. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10812. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10813. ( cat <<\_ASBOX
  10814. ## ----------------------------------- ##
  10815. ## Report this to tujikawa@rednoah.com ##
  10816. ## ----------------------------------- ##
  10817. _ASBOX
  10818. ) | sed "s/^/$as_me: WARNING: /" >&2
  10819. ;;
  10820. esac
  10821. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10822. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10823. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10824. echo $ECHO_N "(cached) $ECHO_C" >&6
  10825. else
  10826. eval "$as_ac_Header=\$ac_header_preproc"
  10827. fi
  10828. ac_res=`eval echo '${'$as_ac_Header'}'`
  10829. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10830. echo "${ECHO_T}$ac_res" >&6; }
  10831. fi
  10832. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10833. cat >>confdefs.h <<_ACEOF
  10834. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10835. _ACEOF
  10836. fi
  10837. done
  10838. for ac_func in getpagesize
  10839. do
  10840. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10841. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10842. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10843. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10844. echo $ECHO_N "(cached) $ECHO_C" >&6
  10845. else
  10846. cat >conftest.$ac_ext <<_ACEOF
  10847. /* confdefs.h. */
  10848. _ACEOF
  10849. cat confdefs.h >>conftest.$ac_ext
  10850. cat >>conftest.$ac_ext <<_ACEOF
  10851. /* end confdefs.h. */
  10852. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10853. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10854. #define $ac_func innocuous_$ac_func
  10855. /* System header to define __stub macros and hopefully few prototypes,
  10856. which can conflict with char $ac_func (); below.
  10857. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10858. <limits.h> exists even on freestanding compilers. */
  10859. #ifdef __STDC__
  10860. # include <limits.h>
  10861. #else
  10862. # include <assert.h>
  10863. #endif
  10864. #undef $ac_func
  10865. /* Override any GCC internal prototype to avoid an error.
  10866. Use char because int might match the return type of a GCC
  10867. builtin and then its argument prototype would still apply. */
  10868. #ifdef __cplusplus
  10869. extern "C"
  10870. #endif
  10871. char $ac_func ();
  10872. /* The GNU C library defines this for functions which it implements
  10873. to always fail with ENOSYS. Some functions are actually named
  10874. something starting with __ and the normal name is an alias. */
  10875. #if defined __stub_$ac_func || defined __stub___$ac_func
  10876. choke me
  10877. #endif
  10878. int
  10879. main ()
  10880. {
  10881. return $ac_func ();
  10882. ;
  10883. return 0;
  10884. }
  10885. _ACEOF
  10886. rm -f conftest.$ac_objext conftest$ac_exeext
  10887. if { (ac_try="$ac_link"
  10888. case "(($ac_try" in
  10889. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10890. *) ac_try_echo=$ac_try;;
  10891. esac
  10892. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10893. (eval "$ac_link") 2>conftest.er1
  10894. ac_status=$?
  10895. grep -v '^ *+' conftest.er1 >conftest.err
  10896. rm -f conftest.er1
  10897. cat conftest.err >&5
  10898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10899. (exit $ac_status); } &&
  10900. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10901. { (case "(($ac_try" in
  10902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10903. *) ac_try_echo=$ac_try;;
  10904. esac
  10905. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10906. (eval "$ac_try") 2>&5
  10907. ac_status=$?
  10908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10909. (exit $ac_status); }; } &&
  10910. { ac_try='test -s conftest$ac_exeext'
  10911. { (case "(($ac_try" in
  10912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10913. *) ac_try_echo=$ac_try;;
  10914. esac
  10915. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10916. (eval "$ac_try") 2>&5
  10917. ac_status=$?
  10918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10919. (exit $ac_status); }; }; then
  10920. eval "$as_ac_var=yes"
  10921. else
  10922. echo "$as_me: failed program was:" >&5
  10923. sed 's/^/| /' conftest.$ac_ext >&5
  10924. eval "$as_ac_var=no"
  10925. fi
  10926. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10927. conftest$ac_exeext conftest.$ac_ext
  10928. fi
  10929. ac_res=`eval echo '${'$as_ac_var'}'`
  10930. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10931. echo "${ECHO_T}$ac_res" >&6; }
  10932. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10933. cat >>confdefs.h <<_ACEOF
  10934. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10935. _ACEOF
  10936. fi
  10937. done
  10938. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10939. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10940. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10941. echo $ECHO_N "(cached) $ECHO_C" >&6
  10942. else
  10943. if test "$cross_compiling" = yes; then
  10944. ac_cv_func_mmap_fixed_mapped=no
  10945. else
  10946. cat >conftest.$ac_ext <<_ACEOF
  10947. /* confdefs.h. */
  10948. _ACEOF
  10949. cat confdefs.h >>conftest.$ac_ext
  10950. cat >>conftest.$ac_ext <<_ACEOF
  10951. /* end confdefs.h. */
  10952. $ac_includes_default
  10953. /* malloc might have been renamed as rpl_malloc. */
  10954. #undef malloc
  10955. /* Thanks to Mike Haertel and Jim Avera for this test.
  10956. Here is a matrix of mmap possibilities:
  10957. mmap private not fixed
  10958. mmap private fixed at somewhere currently unmapped
  10959. mmap private fixed at somewhere already mapped
  10960. mmap shared not fixed
  10961. mmap shared fixed at somewhere currently unmapped
  10962. mmap shared fixed at somewhere already mapped
  10963. For private mappings, we should verify that changes cannot be read()
  10964. back from the file, nor mmap's back from the file at a different
  10965. address. (There have been systems where private was not correctly
  10966. implemented like the infamous i386 svr4.0, and systems where the
  10967. VM page cache was not coherent with the file system buffer cache
  10968. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10969. For shared mappings, we should conversely verify that changes get
  10970. propagated back to all the places they're supposed to be.
  10971. Grep wants private fixed already mapped.
  10972. The main things grep needs to know about mmap are:
  10973. * does it exist and is it safe to write into the mmap'd area
  10974. * how to use it (BSD variants) */
  10975. #include <fcntl.h>
  10976. #include <sys/mman.h>
  10977. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10978. char *malloc ();
  10979. #endif
  10980. /* This mess was copied from the GNU getpagesize.h. */
  10981. #ifndef HAVE_GETPAGESIZE
  10982. /* Assume that all systems that can run configure have sys/param.h. */
  10983. # ifndef HAVE_SYS_PARAM_H
  10984. # define HAVE_SYS_PARAM_H 1
  10985. # endif
  10986. # ifdef _SC_PAGESIZE
  10987. # define getpagesize() sysconf(_SC_PAGESIZE)
  10988. # else /* no _SC_PAGESIZE */
  10989. # ifdef HAVE_SYS_PARAM_H
  10990. # include <sys/param.h>
  10991. # ifdef EXEC_PAGESIZE
  10992. # define getpagesize() EXEC_PAGESIZE
  10993. # else /* no EXEC_PAGESIZE */
  10994. # ifdef NBPG
  10995. # define getpagesize() NBPG * CLSIZE
  10996. # ifndef CLSIZE
  10997. # define CLSIZE 1
  10998. # endif /* no CLSIZE */
  10999. # else /* no NBPG */
  11000. # ifdef NBPC
  11001. # define getpagesize() NBPC
  11002. # else /* no NBPC */
  11003. # ifdef PAGESIZE
  11004. # define getpagesize() PAGESIZE
  11005. # endif /* PAGESIZE */
  11006. # endif /* no NBPC */
  11007. # endif /* no NBPG */
  11008. # endif /* no EXEC_PAGESIZE */
  11009. # else /* no HAVE_SYS_PARAM_H */
  11010. # define getpagesize() 8192 /* punt totally */
  11011. # endif /* no HAVE_SYS_PARAM_H */
  11012. # endif /* no _SC_PAGESIZE */
  11013. #endif /* no HAVE_GETPAGESIZE */
  11014. int
  11015. main ()
  11016. {
  11017. char *data, *data2, *data3;
  11018. int i, pagesize;
  11019. int fd;
  11020. pagesize = getpagesize ();
  11021. /* First, make a file with some known garbage in it. */
  11022. data = (char *) malloc (pagesize);
  11023. if (!data)
  11024. return 1;
  11025. for (i = 0; i < pagesize; ++i)
  11026. *(data + i) = rand ();
  11027. umask (0);
  11028. fd = creat ("conftest.mmap", 0600);
  11029. if (fd < 0)
  11030. return 1;
  11031. if (write (fd, data, pagesize) != pagesize)
  11032. return 1;
  11033. close (fd);
  11034. /* Next, try to mmap the file at a fixed address which already has
  11035. something else allocated at it. If we can, also make sure that
  11036. we see the same garbage. */
  11037. fd = open ("conftest.mmap", O_RDWR);
  11038. if (fd < 0)
  11039. return 1;
  11040. data2 = (char *) malloc (2 * pagesize);
  11041. if (!data2)
  11042. return 1;
  11043. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  11044. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11045. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11046. return 1;
  11047. for (i = 0; i < pagesize; ++i)
  11048. if (*(data + i) != *(data2 + i))
  11049. return 1;
  11050. /* Finally, make sure that changes to the mapped area do not
  11051. percolate back to the file as seen by read(). (This is a bug on
  11052. some variants of i386 svr4.0.) */
  11053. for (i = 0; i < pagesize; ++i)
  11054. *(data2 + i) = *(data2 + i) + 1;
  11055. data3 = (char *) malloc (pagesize);
  11056. if (!data3)
  11057. return 1;
  11058. if (read (fd, data3, pagesize) != pagesize)
  11059. return 1;
  11060. for (i = 0; i < pagesize; ++i)
  11061. if (*(data + i) != *(data3 + i))
  11062. return 1;
  11063. close (fd);
  11064. return 0;
  11065. }
  11066. _ACEOF
  11067. rm -f conftest$ac_exeext
  11068. if { (ac_try="$ac_link"
  11069. case "(($ac_try" in
  11070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11071. *) ac_try_echo=$ac_try;;
  11072. esac
  11073. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11074. (eval "$ac_link") 2>&5
  11075. ac_status=$?
  11076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11077. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11078. { (case "(($ac_try" in
  11079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11080. *) ac_try_echo=$ac_try;;
  11081. esac
  11082. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11083. (eval "$ac_try") 2>&5
  11084. ac_status=$?
  11085. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11086. (exit $ac_status); }; }; then
  11087. ac_cv_func_mmap_fixed_mapped=yes
  11088. else
  11089. echo "$as_me: program exited with status $ac_status" >&5
  11090. echo "$as_me: failed program was:" >&5
  11091. sed 's/^/| /' conftest.$ac_ext >&5
  11092. ( exit $ac_status )
  11093. ac_cv_func_mmap_fixed_mapped=no
  11094. fi
  11095. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11096. fi
  11097. fi
  11098. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11099. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  11100. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11101. cat >>confdefs.h <<\_ACEOF
  11102. #define HAVE_MMAP 1
  11103. _ACEOF
  11104. fi
  11105. rm -f conftest.mmap
  11106. for ac_header in stdlib.h
  11107. do
  11108. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11109. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11110. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11111. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11112. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11113. echo $ECHO_N "(cached) $ECHO_C" >&6
  11114. fi
  11115. ac_res=`eval echo '${'$as_ac_Header'}'`
  11116. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11117. echo "${ECHO_T}$ac_res" >&6; }
  11118. else
  11119. # Is the header compilable?
  11120. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11121. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  11122. cat >conftest.$ac_ext <<_ACEOF
  11123. /* confdefs.h. */
  11124. _ACEOF
  11125. cat confdefs.h >>conftest.$ac_ext
  11126. cat >>conftest.$ac_ext <<_ACEOF
  11127. /* end confdefs.h. */
  11128. $ac_includes_default
  11129. #include <$ac_header>
  11130. _ACEOF
  11131. rm -f conftest.$ac_objext
  11132. if { (ac_try="$ac_compile"
  11133. case "(($ac_try" in
  11134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11135. *) ac_try_echo=$ac_try;;
  11136. esac
  11137. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11138. (eval "$ac_compile") 2>conftest.er1
  11139. ac_status=$?
  11140. grep -v '^ *+' conftest.er1 >conftest.err
  11141. rm -f conftest.er1
  11142. cat conftest.err >&5
  11143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11144. (exit $ac_status); } &&
  11145. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11146. { (case "(($ac_try" in
  11147. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11148. *) ac_try_echo=$ac_try;;
  11149. esac
  11150. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11151. (eval "$ac_try") 2>&5
  11152. ac_status=$?
  11153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11154. (exit $ac_status); }; } &&
  11155. { ac_try='test -s conftest.$ac_objext'
  11156. { (case "(($ac_try" in
  11157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11158. *) ac_try_echo=$ac_try;;
  11159. esac
  11160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11161. (eval "$ac_try") 2>&5
  11162. ac_status=$?
  11163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11164. (exit $ac_status); }; }; then
  11165. ac_header_compiler=yes
  11166. else
  11167. echo "$as_me: failed program was:" >&5
  11168. sed 's/^/| /' conftest.$ac_ext >&5
  11169. ac_header_compiler=no
  11170. fi
  11171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11172. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11173. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11174. # Is the header present?
  11175. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11176. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  11177. cat >conftest.$ac_ext <<_ACEOF
  11178. /* confdefs.h. */
  11179. _ACEOF
  11180. cat confdefs.h >>conftest.$ac_ext
  11181. cat >>conftest.$ac_ext <<_ACEOF
  11182. /* end confdefs.h. */
  11183. #include <$ac_header>
  11184. _ACEOF
  11185. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11186. case "(($ac_try" in
  11187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11188. *) ac_try_echo=$ac_try;;
  11189. esac
  11190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11191. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11192. ac_status=$?
  11193. grep -v '^ *+' conftest.er1 >conftest.err
  11194. rm -f conftest.er1
  11195. cat conftest.err >&5
  11196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11197. (exit $ac_status); } >/dev/null; then
  11198. if test -s conftest.err; then
  11199. ac_cpp_err=$ac_c_preproc_warn_flag
  11200. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  11201. else
  11202. ac_cpp_err=
  11203. fi
  11204. else
  11205. ac_cpp_err=yes
  11206. fi
  11207. if test -z "$ac_cpp_err"; then
  11208. ac_header_preproc=yes
  11209. else
  11210. echo "$as_me: failed program was:" >&5
  11211. sed 's/^/| /' conftest.$ac_ext >&5
  11212. ac_header_preproc=no
  11213. fi
  11214. rm -f conftest.err conftest.$ac_ext
  11215. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11216. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11217. # So? What about this header?
  11218. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11219. yes:no: )
  11220. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11221. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11222. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11223. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11224. ac_header_preproc=yes
  11225. ;;
  11226. no:yes:* )
  11227. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11228. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11229. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11230. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11231. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11232. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11233. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11234. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11235. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11236. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11237. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11238. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11239. ( cat <<\_ASBOX
  11240. ## ----------------------------------- ##
  11241. ## Report this to tujikawa@rednoah.com ##
  11242. ## ----------------------------------- ##
  11243. _ASBOX
  11244. ) | sed "s/^/$as_me: WARNING: /" >&2
  11245. ;;
  11246. esac
  11247. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11248. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11249. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11250. echo $ECHO_N "(cached) $ECHO_C" >&6
  11251. else
  11252. eval "$as_ac_Header=\$ac_header_preproc"
  11253. fi
  11254. ac_res=`eval echo '${'$as_ac_Header'}'`
  11255. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11256. echo "${ECHO_T}$ac_res" >&6; }
  11257. fi
  11258. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11259. cat >>confdefs.h <<_ACEOF
  11260. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11261. _ACEOF
  11262. fi
  11263. done
  11264. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  11265. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  11266. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  11267. echo $ECHO_N "(cached) $ECHO_C" >&6
  11268. else
  11269. if test "$cross_compiling" = yes; then
  11270. ac_cv_func_realloc_0_nonnull=no
  11271. else
  11272. cat >conftest.$ac_ext <<_ACEOF
  11273. /* confdefs.h. */
  11274. _ACEOF
  11275. cat confdefs.h >>conftest.$ac_ext
  11276. cat >>conftest.$ac_ext <<_ACEOF
  11277. /* end confdefs.h. */
  11278. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  11279. # include <stdlib.h>
  11280. #else
  11281. char *realloc ();
  11282. #endif
  11283. int
  11284. main ()
  11285. {
  11286. return ! realloc (0, 0);
  11287. ;
  11288. return 0;
  11289. }
  11290. _ACEOF
  11291. rm -f conftest$ac_exeext
  11292. if { (ac_try="$ac_link"
  11293. case "(($ac_try" in
  11294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11295. *) ac_try_echo=$ac_try;;
  11296. esac
  11297. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11298. (eval "$ac_link") 2>&5
  11299. ac_status=$?
  11300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11301. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11302. { (case "(($ac_try" in
  11303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11304. *) ac_try_echo=$ac_try;;
  11305. esac
  11306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11307. (eval "$ac_try") 2>&5
  11308. ac_status=$?
  11309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11310. (exit $ac_status); }; }; then
  11311. ac_cv_func_realloc_0_nonnull=yes
  11312. else
  11313. echo "$as_me: program exited with status $ac_status" >&5
  11314. echo "$as_me: failed program was:" >&5
  11315. sed 's/^/| /' conftest.$ac_ext >&5
  11316. ( exit $ac_status )
  11317. ac_cv_func_realloc_0_nonnull=no
  11318. fi
  11319. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11320. fi
  11321. fi
  11322. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  11323. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  11324. if test $ac_cv_func_realloc_0_nonnull = yes; then
  11325. cat >>confdefs.h <<\_ACEOF
  11326. #define HAVE_REALLOC 1
  11327. _ACEOF
  11328. else
  11329. cat >>confdefs.h <<\_ACEOF
  11330. #define HAVE_REALLOC 0
  11331. _ACEOF
  11332. case " $LIBOBJS " in
  11333. *" realloc.$ac_objext "* ) ;;
  11334. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  11335. ;;
  11336. esac
  11337. cat >>confdefs.h <<\_ACEOF
  11338. #define realloc rpl_realloc
  11339. _ACEOF
  11340. fi
  11341. for ac_header in sys/select.h sys/socket.h
  11342. do
  11343. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11344. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11345. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11346. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11347. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11348. echo $ECHO_N "(cached) $ECHO_C" >&6
  11349. fi
  11350. ac_res=`eval echo '${'$as_ac_Header'}'`
  11351. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11352. echo "${ECHO_T}$ac_res" >&6; }
  11353. else
  11354. # Is the header compilable?
  11355. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11356. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  11357. cat >conftest.$ac_ext <<_ACEOF
  11358. /* confdefs.h. */
  11359. _ACEOF
  11360. cat confdefs.h >>conftest.$ac_ext
  11361. cat >>conftest.$ac_ext <<_ACEOF
  11362. /* end confdefs.h. */
  11363. $ac_includes_default
  11364. #include <$ac_header>
  11365. _ACEOF
  11366. rm -f conftest.$ac_objext
  11367. if { (ac_try="$ac_compile"
  11368. case "(($ac_try" in
  11369. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11370. *) ac_try_echo=$ac_try;;
  11371. esac
  11372. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11373. (eval "$ac_compile") 2>conftest.er1
  11374. ac_status=$?
  11375. grep -v '^ *+' conftest.er1 >conftest.err
  11376. rm -f conftest.er1
  11377. cat conftest.err >&5
  11378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11379. (exit $ac_status); } &&
  11380. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11381. { (case "(($ac_try" in
  11382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11383. *) ac_try_echo=$ac_try;;
  11384. esac
  11385. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11386. (eval "$ac_try") 2>&5
  11387. ac_status=$?
  11388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11389. (exit $ac_status); }; } &&
  11390. { ac_try='test -s conftest.$ac_objext'
  11391. { (case "(($ac_try" in
  11392. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11393. *) ac_try_echo=$ac_try;;
  11394. esac
  11395. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11396. (eval "$ac_try") 2>&5
  11397. ac_status=$?
  11398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11399. (exit $ac_status); }; }; then
  11400. ac_header_compiler=yes
  11401. else
  11402. echo "$as_me: failed program was:" >&5
  11403. sed 's/^/| /' conftest.$ac_ext >&5
  11404. ac_header_compiler=no
  11405. fi
  11406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11407. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11408. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11409. # Is the header present?
  11410. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11411. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  11412. cat >conftest.$ac_ext <<_ACEOF
  11413. /* confdefs.h. */
  11414. _ACEOF
  11415. cat confdefs.h >>conftest.$ac_ext
  11416. cat >>conftest.$ac_ext <<_ACEOF
  11417. /* end confdefs.h. */
  11418. #include <$ac_header>
  11419. _ACEOF
  11420. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11421. case "(($ac_try" in
  11422. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11423. *) ac_try_echo=$ac_try;;
  11424. esac
  11425. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11426. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11427. ac_status=$?
  11428. grep -v '^ *+' conftest.er1 >conftest.err
  11429. rm -f conftest.er1
  11430. cat conftest.err >&5
  11431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11432. (exit $ac_status); } >/dev/null; then
  11433. if test -s conftest.err; then
  11434. ac_cpp_err=$ac_c_preproc_warn_flag
  11435. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  11436. else
  11437. ac_cpp_err=
  11438. fi
  11439. else
  11440. ac_cpp_err=yes
  11441. fi
  11442. if test -z "$ac_cpp_err"; then
  11443. ac_header_preproc=yes
  11444. else
  11445. echo "$as_me: failed program was:" >&5
  11446. sed 's/^/| /' conftest.$ac_ext >&5
  11447. ac_header_preproc=no
  11448. fi
  11449. rm -f conftest.err conftest.$ac_ext
  11450. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11451. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11452. # So? What about this header?
  11453. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  11454. yes:no: )
  11455. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11456. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11457. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11458. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11459. ac_header_preproc=yes
  11460. ;;
  11461. no:yes:* )
  11462. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11463. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11464. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11465. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11466. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11467. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11468. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11469. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11470. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11471. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11472. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11473. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11474. ( cat <<\_ASBOX
  11475. ## ----------------------------------- ##
  11476. ## Report this to tujikawa@rednoah.com ##
  11477. ## ----------------------------------- ##
  11478. _ASBOX
  11479. ) | sed "s/^/$as_me: WARNING: /" >&2
  11480. ;;
  11481. esac
  11482. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11483. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11484. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11485. echo $ECHO_N "(cached) $ECHO_C" >&6
  11486. else
  11487. eval "$as_ac_Header=\$ac_header_preproc"
  11488. fi
  11489. ac_res=`eval echo '${'$as_ac_Header'}'`
  11490. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11491. echo "${ECHO_T}$ac_res" >&6; }
  11492. fi
  11493. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11494. cat >>confdefs.h <<_ACEOF
  11495. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11496. _ACEOF
  11497. fi
  11498. done
  11499. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  11500. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  11501. if test "${ac_cv_func_select_args+set}" = set; then
  11502. echo $ECHO_N "(cached) $ECHO_C" >&6
  11503. else
  11504. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  11505. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  11506. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  11507. cat >conftest.$ac_ext <<_ACEOF
  11508. /* confdefs.h. */
  11509. _ACEOF
  11510. cat confdefs.h >>conftest.$ac_ext
  11511. cat >>conftest.$ac_ext <<_ACEOF
  11512. /* end confdefs.h. */
  11513. $ac_includes_default
  11514. #ifdef HAVE_SYS_SELECT_H
  11515. # include <sys/select.h>
  11516. #endif
  11517. #ifdef HAVE_SYS_SOCKET_H
  11518. # include <sys/socket.h>
  11519. #endif
  11520. int
  11521. main ()
  11522. {
  11523. extern int select ($ac_arg1,
  11524. $ac_arg234, $ac_arg234, $ac_arg234,
  11525. $ac_arg5);
  11526. ;
  11527. return 0;
  11528. }
  11529. _ACEOF
  11530. rm -f conftest.$ac_objext
  11531. if { (ac_try="$ac_compile"
  11532. case "(($ac_try" in
  11533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11534. *) ac_try_echo=$ac_try;;
  11535. esac
  11536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11537. (eval "$ac_compile") 2>conftest.er1
  11538. ac_status=$?
  11539. grep -v '^ *+' conftest.er1 >conftest.err
  11540. rm -f conftest.er1
  11541. cat conftest.err >&5
  11542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11543. (exit $ac_status); } &&
  11544. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11545. { (case "(($ac_try" in
  11546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11547. *) ac_try_echo=$ac_try;;
  11548. esac
  11549. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11550. (eval "$ac_try") 2>&5
  11551. ac_status=$?
  11552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11553. (exit $ac_status); }; } &&
  11554. { ac_try='test -s conftest.$ac_objext'
  11555. { (case "(($ac_try" in
  11556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11557. *) ac_try_echo=$ac_try;;
  11558. esac
  11559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11560. (eval "$ac_try") 2>&5
  11561. ac_status=$?
  11562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11563. (exit $ac_status); }; }; then
  11564. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  11565. else
  11566. echo "$as_me: failed program was:" >&5
  11567. sed 's/^/| /' conftest.$ac_ext >&5
  11568. fi
  11569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11570. done
  11571. done
  11572. done
  11573. # Provide a safe default value.
  11574. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  11575. fi
  11576. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  11577. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  11578. ac_save_IFS=$IFS; IFS=','
  11579. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  11580. IFS=$ac_save_IFS
  11581. shift
  11582. cat >>confdefs.h <<_ACEOF
  11583. #define SELECT_TYPE_ARG1 $1
  11584. _ACEOF
  11585. cat >>confdefs.h <<_ACEOF
  11586. #define SELECT_TYPE_ARG234 ($2)
  11587. _ACEOF
  11588. cat >>confdefs.h <<_ACEOF
  11589. #define SELECT_TYPE_ARG5 ($3)
  11590. _ACEOF
  11591. rm -f conftest*
  11592. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  11593. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  11594. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  11595. echo $ECHO_N "(cached) $ECHO_C" >&6
  11596. else
  11597. rm -f conftest.sym conftest.file
  11598. echo >conftest.file
  11599. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  11600. if test "$cross_compiling" = yes; then
  11601. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11602. else
  11603. cat >conftest.$ac_ext <<_ACEOF
  11604. /* confdefs.h. */
  11605. _ACEOF
  11606. cat confdefs.h >>conftest.$ac_ext
  11607. cat >>conftest.$ac_ext <<_ACEOF
  11608. /* end confdefs.h. */
  11609. $ac_includes_default
  11610. int
  11611. main ()
  11612. {
  11613. struct stat sbuf;
  11614. /* Linux will dereference the symlink and fail.
  11615. That is better in the sense that it means we will not
  11616. have to compile and use the lstat wrapper. */
  11617. return lstat ("conftest.sym/", &sbuf) == 0;
  11618. ;
  11619. return 0;
  11620. }
  11621. _ACEOF
  11622. rm -f conftest$ac_exeext
  11623. if { (ac_try="$ac_link"
  11624. case "(($ac_try" in
  11625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11626. *) ac_try_echo=$ac_try;;
  11627. esac
  11628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11629. (eval "$ac_link") 2>&5
  11630. ac_status=$?
  11631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11632. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11633. { (case "(($ac_try" in
  11634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11635. *) ac_try_echo=$ac_try;;
  11636. esac
  11637. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11638. (eval "$ac_try") 2>&5
  11639. ac_status=$?
  11640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11641. (exit $ac_status); }; }; then
  11642. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  11643. else
  11644. echo "$as_me: program exited with status $ac_status" >&5
  11645. echo "$as_me: failed program was:" >&5
  11646. sed 's/^/| /' conftest.$ac_ext >&5
  11647. ( exit $ac_status )
  11648. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11649. fi
  11650. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11651. fi
  11652. else
  11653. # If the `ln -s' command failed, then we probably don't even
  11654. # have an lstat function.
  11655. ac_cv_func_lstat_dereferences_slashed_symlink=no
  11656. fi
  11657. rm -f conftest.sym conftest.file
  11658. fi
  11659. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  11660. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  11661. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  11662. cat >>confdefs.h <<_ACEOF
  11663. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  11664. _ACEOF
  11665. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  11666. case " $LIBOBJS " in
  11667. *" lstat.$ac_objext "* ) ;;
  11668. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  11669. ;;
  11670. esac
  11671. fi
  11672. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  11673. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  11674. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  11675. echo $ECHO_N "(cached) $ECHO_C" >&6
  11676. else
  11677. if test "$cross_compiling" = yes; then
  11678. ac_cv_func_stat_empty_string_bug=yes
  11679. else
  11680. cat >conftest.$ac_ext <<_ACEOF
  11681. /* confdefs.h. */
  11682. _ACEOF
  11683. cat confdefs.h >>conftest.$ac_ext
  11684. cat >>conftest.$ac_ext <<_ACEOF
  11685. /* end confdefs.h. */
  11686. $ac_includes_default
  11687. int
  11688. main ()
  11689. {
  11690. struct stat sbuf;
  11691. return stat ("", &sbuf) == 0;
  11692. ;
  11693. return 0;
  11694. }
  11695. _ACEOF
  11696. rm -f conftest$ac_exeext
  11697. if { (ac_try="$ac_link"
  11698. case "(($ac_try" in
  11699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11700. *) ac_try_echo=$ac_try;;
  11701. esac
  11702. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11703. (eval "$ac_link") 2>&5
  11704. ac_status=$?
  11705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11706. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11707. { (case "(($ac_try" in
  11708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11709. *) ac_try_echo=$ac_try;;
  11710. esac
  11711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11712. (eval "$ac_try") 2>&5
  11713. ac_status=$?
  11714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11715. (exit $ac_status); }; }; then
  11716. ac_cv_func_stat_empty_string_bug=no
  11717. else
  11718. echo "$as_me: program exited with status $ac_status" >&5
  11719. echo "$as_me: failed program was:" >&5
  11720. sed 's/^/| /' conftest.$ac_ext >&5
  11721. ( exit $ac_status )
  11722. ac_cv_func_stat_empty_string_bug=yes
  11723. fi
  11724. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11725. fi
  11726. fi
  11727. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  11728. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  11729. if test $ac_cv_func_stat_empty_string_bug = yes; then
  11730. case " $LIBOBJS " in
  11731. *" stat.$ac_objext "* ) ;;
  11732. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  11733. ;;
  11734. esac
  11735. cat >>confdefs.h <<_ACEOF
  11736. #define HAVE_STAT_EMPTY_STRING_BUG 1
  11737. _ACEOF
  11738. fi
  11739. for ac_func in vprintf
  11740. do
  11741. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11742. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11743. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11744. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11745. echo $ECHO_N "(cached) $ECHO_C" >&6
  11746. else
  11747. cat >conftest.$ac_ext <<_ACEOF
  11748. /* confdefs.h. */
  11749. _ACEOF
  11750. cat confdefs.h >>conftest.$ac_ext
  11751. cat >>conftest.$ac_ext <<_ACEOF
  11752. /* end confdefs.h. */
  11753. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11754. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11755. #define $ac_func innocuous_$ac_func
  11756. /* System header to define __stub macros and hopefully few prototypes,
  11757. which can conflict with char $ac_func (); below.
  11758. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11759. <limits.h> exists even on freestanding compilers. */
  11760. #ifdef __STDC__
  11761. # include <limits.h>
  11762. #else
  11763. # include <assert.h>
  11764. #endif
  11765. #undef $ac_func
  11766. /* Override any GCC internal prototype to avoid an error.
  11767. Use char because int might match the return type of a GCC
  11768. builtin and then its argument prototype would still apply. */
  11769. #ifdef __cplusplus
  11770. extern "C"
  11771. #endif
  11772. char $ac_func ();
  11773. /* The GNU C library defines this for functions which it implements
  11774. to always fail with ENOSYS. Some functions are actually named
  11775. something starting with __ and the normal name is an alias. */
  11776. #if defined __stub_$ac_func || defined __stub___$ac_func
  11777. choke me
  11778. #endif
  11779. int
  11780. main ()
  11781. {
  11782. return $ac_func ();
  11783. ;
  11784. return 0;
  11785. }
  11786. _ACEOF
  11787. rm -f conftest.$ac_objext conftest$ac_exeext
  11788. if { (ac_try="$ac_link"
  11789. case "(($ac_try" in
  11790. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11791. *) ac_try_echo=$ac_try;;
  11792. esac
  11793. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11794. (eval "$ac_link") 2>conftest.er1
  11795. ac_status=$?
  11796. grep -v '^ *+' conftest.er1 >conftest.err
  11797. rm -f conftest.er1
  11798. cat conftest.err >&5
  11799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11800. (exit $ac_status); } &&
  11801. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11802. { (case "(($ac_try" in
  11803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11804. *) ac_try_echo=$ac_try;;
  11805. esac
  11806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11807. (eval "$ac_try") 2>&5
  11808. ac_status=$?
  11809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11810. (exit $ac_status); }; } &&
  11811. { ac_try='test -s conftest$ac_exeext'
  11812. { (case "(($ac_try" in
  11813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11814. *) ac_try_echo=$ac_try;;
  11815. esac
  11816. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11817. (eval "$ac_try") 2>&5
  11818. ac_status=$?
  11819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11820. (exit $ac_status); }; }; then
  11821. eval "$as_ac_var=yes"
  11822. else
  11823. echo "$as_me: failed program was:" >&5
  11824. sed 's/^/| /' conftest.$ac_ext >&5
  11825. eval "$as_ac_var=no"
  11826. fi
  11827. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11828. conftest$ac_exeext conftest.$ac_ext
  11829. fi
  11830. ac_res=`eval echo '${'$as_ac_var'}'`
  11831. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11832. echo "${ECHO_T}$ac_res" >&6; }
  11833. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11834. cat >>confdefs.h <<_ACEOF
  11835. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11836. _ACEOF
  11837. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  11838. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  11839. if test "${ac_cv_func__doprnt+set}" = set; then
  11840. echo $ECHO_N "(cached) $ECHO_C" >&6
  11841. else
  11842. cat >conftest.$ac_ext <<_ACEOF
  11843. /* confdefs.h. */
  11844. _ACEOF
  11845. cat confdefs.h >>conftest.$ac_ext
  11846. cat >>conftest.$ac_ext <<_ACEOF
  11847. /* end confdefs.h. */
  11848. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  11849. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11850. #define _doprnt innocuous__doprnt
  11851. /* System header to define __stub macros and hopefully few prototypes,
  11852. which can conflict with char _doprnt (); below.
  11853. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11854. <limits.h> exists even on freestanding compilers. */
  11855. #ifdef __STDC__
  11856. # include <limits.h>
  11857. #else
  11858. # include <assert.h>
  11859. #endif
  11860. #undef _doprnt
  11861. /* Override any GCC internal prototype to avoid an error.
  11862. Use char because int might match the return type of a GCC
  11863. builtin and then its argument prototype would still apply. */
  11864. #ifdef __cplusplus
  11865. extern "C"
  11866. #endif
  11867. char _doprnt ();
  11868. /* The GNU C library defines this for functions which it implements
  11869. to always fail with ENOSYS. Some functions are actually named
  11870. something starting with __ and the normal name is an alias. */
  11871. #if defined __stub__doprnt || defined __stub____doprnt
  11872. choke me
  11873. #endif
  11874. int
  11875. main ()
  11876. {
  11877. return _doprnt ();
  11878. ;
  11879. return 0;
  11880. }
  11881. _ACEOF
  11882. rm -f conftest.$ac_objext conftest$ac_exeext
  11883. if { (ac_try="$ac_link"
  11884. case "(($ac_try" in
  11885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11886. *) ac_try_echo=$ac_try;;
  11887. esac
  11888. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11889. (eval "$ac_link") 2>conftest.er1
  11890. ac_status=$?
  11891. grep -v '^ *+' conftest.er1 >conftest.err
  11892. rm -f conftest.er1
  11893. cat conftest.err >&5
  11894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11895. (exit $ac_status); } &&
  11896. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11897. { (case "(($ac_try" in
  11898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11899. *) ac_try_echo=$ac_try;;
  11900. esac
  11901. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11902. (eval "$ac_try") 2>&5
  11903. ac_status=$?
  11904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11905. (exit $ac_status); }; } &&
  11906. { ac_try='test -s conftest$ac_exeext'
  11907. { (case "(($ac_try" in
  11908. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11909. *) ac_try_echo=$ac_try;;
  11910. esac
  11911. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11912. (eval "$ac_try") 2>&5
  11913. ac_status=$?
  11914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11915. (exit $ac_status); }; }; then
  11916. ac_cv_func__doprnt=yes
  11917. else
  11918. echo "$as_me: failed program was:" >&5
  11919. sed 's/^/| /' conftest.$ac_ext >&5
  11920. ac_cv_func__doprnt=no
  11921. fi
  11922. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11923. conftest$ac_exeext conftest.$ac_ext
  11924. fi
  11925. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  11926. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  11927. if test $ac_cv_func__doprnt = yes; then
  11928. cat >>confdefs.h <<\_ACEOF
  11929. #define HAVE_DOPRNT 1
  11930. _ACEOF
  11931. fi
  11932. fi
  11933. done
  11934. for ac_func in __argz_count __argz_next __argz_stringify ftruncate getcwd getpagesize gettimeofday inet_ntoa memchr mempcpy memset mkdir munmap nl_langinfo rmdir select setlocale socket stpcpy strcasecmp strchr strcspn strdup strerror strstr strtol strtoul
  11935. do
  11936. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11937. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11938. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11939. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11940. echo $ECHO_N "(cached) $ECHO_C" >&6
  11941. else
  11942. cat >conftest.$ac_ext <<_ACEOF
  11943. /* confdefs.h. */
  11944. _ACEOF
  11945. cat confdefs.h >>conftest.$ac_ext
  11946. cat >>conftest.$ac_ext <<_ACEOF
  11947. /* end confdefs.h. */
  11948. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11949. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11950. #define $ac_func innocuous_$ac_func
  11951. /* System header to define __stub macros and hopefully few prototypes,
  11952. which can conflict with char $ac_func (); below.
  11953. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11954. <limits.h> exists even on freestanding compilers. */
  11955. #ifdef __STDC__
  11956. # include <limits.h>
  11957. #else
  11958. # include <assert.h>
  11959. #endif
  11960. #undef $ac_func
  11961. /* Override any GCC internal prototype to avoid an error.
  11962. Use char because int might match the return type of a GCC
  11963. builtin and then its argument prototype would still apply. */
  11964. #ifdef __cplusplus
  11965. extern "C"
  11966. #endif
  11967. char $ac_func ();
  11968. /* The GNU C library defines this for functions which it implements
  11969. to always fail with ENOSYS. Some functions are actually named
  11970. something starting with __ and the normal name is an alias. */
  11971. #if defined __stub_$ac_func || defined __stub___$ac_func
  11972. choke me
  11973. #endif
  11974. int
  11975. main ()
  11976. {
  11977. return $ac_func ();
  11978. ;
  11979. return 0;
  11980. }
  11981. _ACEOF
  11982. rm -f conftest.$ac_objext conftest$ac_exeext
  11983. if { (ac_try="$ac_link"
  11984. case "(($ac_try" in
  11985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11986. *) ac_try_echo=$ac_try;;
  11987. esac
  11988. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11989. (eval "$ac_link") 2>conftest.er1
  11990. ac_status=$?
  11991. grep -v '^ *+' conftest.er1 >conftest.err
  11992. rm -f conftest.er1
  11993. cat conftest.err >&5
  11994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11995. (exit $ac_status); } &&
  11996. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11997. { (case "(($ac_try" in
  11998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11999. *) ac_try_echo=$ac_try;;
  12000. esac
  12001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12002. (eval "$ac_try") 2>&5
  12003. ac_status=$?
  12004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12005. (exit $ac_status); }; } &&
  12006. { ac_try='test -s conftest$ac_exeext'
  12007. { (case "(($ac_try" in
  12008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12009. *) ac_try_echo=$ac_try;;
  12010. esac
  12011. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12012. (eval "$ac_try") 2>&5
  12013. ac_status=$?
  12014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12015. (exit $ac_status); }; }; then
  12016. eval "$as_ac_var=yes"
  12017. else
  12018. echo "$as_me: failed program was:" >&5
  12019. sed 's/^/| /' conftest.$ac_ext >&5
  12020. eval "$as_ac_var=no"
  12021. fi
  12022. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12023. conftest$ac_exeext conftest.$ac_ext
  12024. fi
  12025. ac_res=`eval echo '${'$as_ac_var'}'`
  12026. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12027. echo "${ECHO_T}$ac_res" >&6; }
  12028. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12029. cat >>confdefs.h <<_ACEOF
  12030. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12031. _ACEOF
  12032. fi
  12033. done
  12034. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile doc/Makefile"
  12035. cat >confcache <<\_ACEOF
  12036. # This file is a shell script that caches the results of configure
  12037. # tests run on this system so they can be shared between configure
  12038. # scripts and configure runs, see configure's option --config-cache.
  12039. # It is not useful on other systems. If it contains results you don't
  12040. # want to keep, you may remove or edit it.
  12041. #
  12042. # config.status only pays attention to the cache file if you give it
  12043. # the --recheck option to rerun configure.
  12044. #
  12045. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12046. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12047. # following values.
  12048. _ACEOF
  12049. # The following way of writing the cache mishandles newlines in values,
  12050. # but we know of no workaround that is simple, portable, and efficient.
  12051. # So, we kill variables containing newlines.
  12052. # Ultrix sh set writes to stderr and can't be redirected directly,
  12053. # and sets the high bit in the cache file unless we assign to the vars.
  12054. (
  12055. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12056. eval ac_val=\$$ac_var
  12057. case $ac_val in #(
  12058. *${as_nl}*)
  12059. case $ac_var in #(
  12060. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  12061. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  12062. esac
  12063. case $ac_var in #(
  12064. _ | IFS | as_nl) ;; #(
  12065. *) $as_unset $ac_var ;;
  12066. esac ;;
  12067. esac
  12068. done
  12069. (set) 2>&1 |
  12070. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12071. *${as_nl}ac_space=\ *)
  12072. # `set' does not quote correctly, so add quotes (double-quote
  12073. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12074. sed -n \
  12075. "s/'/'\\\\''/g;
  12076. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12077. ;; #(
  12078. *)
  12079. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12080. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12081. ;;
  12082. esac |
  12083. sort
  12084. ) |
  12085. sed '
  12086. /^ac_cv_env_/b end
  12087. t clear
  12088. :clear
  12089. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12090. t end
  12091. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12092. :end' >>confcache
  12093. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12094. if test -w "$cache_file"; then
  12095. test "x$cache_file" != "x/dev/null" &&
  12096. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  12097. echo "$as_me: updating cache $cache_file" >&6;}
  12098. cat confcache >$cache_file
  12099. else
  12100. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  12101. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12102. fi
  12103. fi
  12104. rm -f confcache
  12105. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12106. # Let make expand exec_prefix.
  12107. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12108. DEFS=-DHAVE_CONFIG_H
  12109. ac_libobjs=
  12110. ac_ltlibobjs=
  12111. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12112. # 1. Remove the extension, and $U if already installed.
  12113. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12114. ac_i=`echo "$ac_i" | sed "$ac_script"`
  12115. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12116. # will be set to the directory where LIBOBJS objects are built.
  12117. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12118. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  12119. done
  12120. LIBOBJS=$ac_libobjs
  12121. LTLIBOBJS=$ac_ltlibobjs
  12122. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12123. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  12124. Usually this means the macro was only invoked conditionally." >&5
  12125. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  12126. Usually this means the macro was only invoked conditionally." >&2;}
  12127. { (exit 1); exit 1; }; }
  12128. fi
  12129. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12130. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  12131. Usually this means the macro was only invoked conditionally." >&5
  12132. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  12133. Usually this means the macro was only invoked conditionally." >&2;}
  12134. { (exit 1); exit 1; }; }
  12135. fi
  12136. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12137. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  12138. Usually this means the macro was only invoked conditionally." >&5
  12139. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  12140. Usually this means the macro was only invoked conditionally." >&2;}
  12141. { (exit 1); exit 1; }; }
  12142. fi
  12143. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12144. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12145. Usually this means the macro was only invoked conditionally." >&5
  12146. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12147. Usually this means the macro was only invoked conditionally." >&2;}
  12148. { (exit 1); exit 1; }; }
  12149. fi
  12150. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  12151. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12152. Usually this means the macro was only invoked conditionally." >&5
  12153. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  12154. Usually this means the macro was only invoked conditionally." >&2;}
  12155. { (exit 1); exit 1; }; }
  12156. fi
  12157. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12158. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  12159. Usually this means the macro was only invoked conditionally." >&5
  12160. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  12161. Usually this means the macro was only invoked conditionally." >&2;}
  12162. { (exit 1); exit 1; }; }
  12163. fi
  12164. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  12165. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  12166. Usually this means the macro was only invoked conditionally." >&5
  12167. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  12168. Usually this means the macro was only invoked conditionally." >&2;}
  12169. { (exit 1); exit 1; }; }
  12170. fi
  12171. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12172. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12173. Usually this means the macro was only invoked conditionally." >&5
  12174. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12175. Usually this means the macro was only invoked conditionally." >&2;}
  12176. { (exit 1); exit 1; }; }
  12177. fi
  12178. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  12179. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12180. Usually this means the macro was only invoked conditionally." >&5
  12181. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  12182. Usually this means the macro was only invoked conditionally." >&2;}
  12183. { (exit 1); exit 1; }; }
  12184. fi
  12185. : ${CONFIG_STATUS=./config.status}
  12186. ac_clean_files_save=$ac_clean_files
  12187. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12188. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12189. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12190. cat >$CONFIG_STATUS <<_ACEOF
  12191. #! $SHELL
  12192. # Generated by $as_me.
  12193. # Run this file to recreate the current configuration.
  12194. # Compiler output produced by configure, useful for debugging
  12195. # configure, is in config.log if it exists.
  12196. debug=false
  12197. ac_cs_recheck=false
  12198. ac_cs_silent=false
  12199. SHELL=\${CONFIG_SHELL-$SHELL}
  12200. _ACEOF
  12201. cat >>$CONFIG_STATUS <<\_ACEOF
  12202. ## --------------------- ##
  12203. ## M4sh Initialization. ##
  12204. ## --------------------- ##
  12205. # Be Bourne compatible
  12206. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12207. emulate sh
  12208. NULLCMD=:
  12209. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12210. # is contrary to our usage. Disable this feature.
  12211. alias -g '${1+"$@"}'='"$@"'
  12212. setopt NO_GLOB_SUBST
  12213. else
  12214. case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  12215. fi
  12216. BIN_SH=xpg4; export BIN_SH # for Tru64
  12217. DUALCASE=1; export DUALCASE # for MKS sh
  12218. # PATH needs CR
  12219. # Avoid depending upon Character Ranges.
  12220. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12221. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12222. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12223. as_cr_digits='0123456789'
  12224. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12225. # The user is always right.
  12226. if test "${PATH_SEPARATOR+set}" != set; then
  12227. echo "#! /bin/sh" >conf$$.sh
  12228. echo "exit 0" >>conf$$.sh
  12229. chmod +x conf$$.sh
  12230. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12231. PATH_SEPARATOR=';'
  12232. else
  12233. PATH_SEPARATOR=:
  12234. fi
  12235. rm -f conf$$.sh
  12236. fi
  12237. # Support unset when possible.
  12238. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12239. as_unset=unset
  12240. else
  12241. as_unset=false
  12242. fi
  12243. # IFS
  12244. # We need space, tab and new line, in precisely that order. Quoting is
  12245. # there to prevent editors from complaining about space-tab.
  12246. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  12247. # splitting by setting IFS to empty value.)
  12248. as_nl='
  12249. '
  12250. IFS=" "" $as_nl"
  12251. # Find who we are. Look in the path if we contain no directory separator.
  12252. case $0 in
  12253. *[\\/]* ) as_myself=$0 ;;
  12254. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12255. for as_dir in $PATH
  12256. do
  12257. IFS=$as_save_IFS
  12258. test -z "$as_dir" && as_dir=.
  12259. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12260. done
  12261. IFS=$as_save_IFS
  12262. ;;
  12263. esac
  12264. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12265. # in which case we are not to be found in the path.
  12266. if test "x$as_myself" = x; then
  12267. as_myself=$0
  12268. fi
  12269. if test ! -f "$as_myself"; then
  12270. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  12271. { (exit 1); exit 1; }
  12272. fi
  12273. # Work around bugs in pre-3.0 UWIN ksh.
  12274. for as_var in ENV MAIL MAILPATH
  12275. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12276. done
  12277. PS1='$ '
  12278. PS2='> '
  12279. PS4='+ '
  12280. # NLS nuisances.
  12281. for as_var in \
  12282. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12283. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12284. LC_TELEPHONE LC_TIME
  12285. do
  12286. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12287. eval $as_var=C; export $as_var
  12288. else
  12289. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  12290. fi
  12291. done
  12292. # Required to use basename.
  12293. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12294. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12295. as_expr=expr
  12296. else
  12297. as_expr=false
  12298. fi
  12299. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  12300. as_basename=basename
  12301. else
  12302. as_basename=false
  12303. fi
  12304. # Name of the executable.
  12305. as_me=`$as_basename -- "$0" ||
  12306. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12307. X"$0" : 'X\(//\)$' \| \
  12308. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  12309. echo X/"$0" |
  12310. sed '/^.*\/\([^/][^/]*\)\/*$/{
  12311. s//\1/
  12312. q
  12313. }
  12314. /^X\/\(\/\/\)$/{
  12315. s//\1/
  12316. q
  12317. }
  12318. /^X\/\(\/\).*/{
  12319. s//\1/
  12320. q
  12321. }
  12322. s/.*/./; q'`
  12323. # CDPATH.
  12324. $as_unset CDPATH
  12325. as_lineno_1=$LINENO
  12326. as_lineno_2=$LINENO
  12327. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12328. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  12329. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12330. # uniformly replaced by the line number. The first 'sed' inserts a
  12331. # line-number line after each line using $LINENO; the second 'sed'
  12332. # does the real work. The second script uses 'N' to pair each
  12333. # line-number line with the line containing $LINENO, and appends
  12334. # trailing '-' during substitution so that $LINENO is not a special
  12335. # case at line end.
  12336. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12337. # scripts with optimization help from Paolo Bonzini. Blame Lee
  12338. # E. McMahon (1931-1989) for sed's syntax. :-)
  12339. sed -n '
  12340. p
  12341. /[$]LINENO/=
  12342. ' <$as_myself |
  12343. sed '
  12344. s/[$]LINENO.*/&-/
  12345. t lineno
  12346. b
  12347. :lineno
  12348. N
  12349. :loop
  12350. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12351. t loop
  12352. s/-\n.*//
  12353. ' >$as_me.lineno &&
  12354. chmod +x "$as_me.lineno" ||
  12355. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12356. { (exit 1); exit 1; }; }
  12357. # Don't try to exec as it changes $[0], causing all sort of problems
  12358. # (the dirname of $[0] is not the place where we might find the
  12359. # original and so on. Autoconf is especially sensitive to this).
  12360. . "./$as_me.lineno"
  12361. # Exit status is that of the last command.
  12362. exit
  12363. }
  12364. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12365. as_dirname=dirname
  12366. else
  12367. as_dirname=false
  12368. fi
  12369. ECHO_C= ECHO_N= ECHO_T=
  12370. case `echo -n x` in
  12371. -n*)
  12372. case `echo 'x\c'` in
  12373. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12374. *) ECHO_C='\c';;
  12375. esac;;
  12376. *)
  12377. ECHO_N='-n';;
  12378. esac
  12379. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12380. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12381. as_expr=expr
  12382. else
  12383. as_expr=false
  12384. fi
  12385. rm -f conf$$ conf$$.exe conf$$.file
  12386. if test -d conf$$.dir; then
  12387. rm -f conf$$.dir/conf$$.file
  12388. else
  12389. rm -f conf$$.dir
  12390. mkdir conf$$.dir
  12391. fi
  12392. echo >conf$$.file
  12393. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12394. as_ln_s='ln -s'
  12395. # ... but there are two gotchas:
  12396. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12397. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12398. # In both cases, we have to default to `cp -p'.
  12399. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12400. as_ln_s='cp -p'
  12401. elif ln conf$$.file conf$$ 2>/dev/null; then
  12402. as_ln_s=ln
  12403. else
  12404. as_ln_s='cp -p'
  12405. fi
  12406. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12407. rmdir conf$$.dir 2>/dev/null
  12408. if mkdir -p . 2>/dev/null; then
  12409. as_mkdir_p=:
  12410. else
  12411. test -d ./-p && rmdir ./-p
  12412. as_mkdir_p=false
  12413. fi
  12414. # Find out whether ``test -x'' works. Don't use a zero-byte file, as
  12415. # systems may use methods other than mode bits to determine executability.
  12416. cat >conf$$.file <<_ASEOF
  12417. #! /bin/sh
  12418. exit 0
  12419. _ASEOF
  12420. chmod +x conf$$.file
  12421. if test -x conf$$.file >/dev/null 2>&1; then
  12422. as_executable_p="test -x"
  12423. else
  12424. as_executable_p=:
  12425. fi
  12426. rm -f conf$$.file
  12427. # Sed expression to map a string onto a valid CPP name.
  12428. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12429. # Sed expression to map a string onto a valid variable name.
  12430. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12431. exec 6>&1
  12432. # Save the log message, to keep $[0] and so on meaningful, and to
  12433. # report actual input values of CONFIG_FILES etc. instead of their
  12434. # values after options handling.
  12435. ac_log="
  12436. This file was extended by aria2c $as_me 0.9.0, which was
  12437. generated by GNU Autoconf 2.60a. Invocation command line was
  12438. CONFIG_FILES = $CONFIG_FILES
  12439. CONFIG_HEADERS = $CONFIG_HEADERS
  12440. CONFIG_LINKS = $CONFIG_LINKS
  12441. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12442. $ $0 $@
  12443. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12444. "
  12445. _ACEOF
  12446. cat >>$CONFIG_STATUS <<_ACEOF
  12447. # Files that config.status was made for.
  12448. config_files="$ac_config_files"
  12449. config_headers="$ac_config_headers"
  12450. config_commands="$ac_config_commands"
  12451. _ACEOF
  12452. cat >>$CONFIG_STATUS <<\_ACEOF
  12453. ac_cs_usage="\
  12454. \`$as_me' instantiates files from templates according to the
  12455. current configuration.
  12456. Usage: $0 [OPTIONS] [FILE]...
  12457. -h, --help print this help, then exit
  12458. -V, --version print version number and configuration settings, then exit
  12459. -q, --quiet do not print progress messages
  12460. -d, --debug don't remove temporary files
  12461. --recheck update $as_me by reconfiguring in the same conditions
  12462. --file=FILE[:TEMPLATE]
  12463. instantiate the configuration file FILE
  12464. --header=FILE[:TEMPLATE]
  12465. instantiate the configuration header FILE
  12466. Configuration files:
  12467. $config_files
  12468. Configuration headers:
  12469. $config_headers
  12470. Configuration commands:
  12471. $config_commands
  12472. Report bugs to <bug-autoconf@gnu.org>."
  12473. _ACEOF
  12474. cat >>$CONFIG_STATUS <<_ACEOF
  12475. ac_cs_version="\\
  12476. aria2c config.status 0.9.0
  12477. configured by $0, generated by GNU Autoconf 2.60a,
  12478. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12479. Copyright (C) 2006 Free Software Foundation, Inc.
  12480. This config.status script is free software; the Free Software Foundation
  12481. gives unlimited permission to copy, distribute and modify it."
  12482. ac_pwd='$ac_pwd'
  12483. srcdir='$srcdir'
  12484. INSTALL='$INSTALL'
  12485. _ACEOF
  12486. cat >>$CONFIG_STATUS <<\_ACEOF
  12487. # If no file are specified by the user, then we need to provide default
  12488. # value. By we need to know if files were specified by the user.
  12489. ac_need_defaults=:
  12490. while test $# != 0
  12491. do
  12492. case $1 in
  12493. --*=*)
  12494. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12495. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12496. ac_shift=:
  12497. ;;
  12498. *)
  12499. ac_option=$1
  12500. ac_optarg=$2
  12501. ac_shift=shift
  12502. ;;
  12503. esac
  12504. case $ac_option in
  12505. # Handling of the options.
  12506. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12507. ac_cs_recheck=: ;;
  12508. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12509. echo "$ac_cs_version"; exit ;;
  12510. --debug | --debu | --deb | --de | --d | -d )
  12511. debug=: ;;
  12512. --file | --fil | --fi | --f )
  12513. $ac_shift
  12514. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12515. ac_need_defaults=false;;
  12516. --header | --heade | --head | --hea )
  12517. $ac_shift
  12518. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12519. ac_need_defaults=false;;
  12520. --he | --h)
  12521. # Conflict between --help and --header
  12522. { echo "$as_me: error: ambiguous option: $1
  12523. Try \`$0 --help' for more information." >&2
  12524. { (exit 1); exit 1; }; };;
  12525. --help | --hel | -h )
  12526. echo "$ac_cs_usage"; exit ;;
  12527. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12528. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12529. ac_cs_silent=: ;;
  12530. # This is an error.
  12531. -*) { echo "$as_me: error: unrecognized option: $1
  12532. Try \`$0 --help' for more information." >&2
  12533. { (exit 1); exit 1; }; } ;;
  12534. *) ac_config_targets="$ac_config_targets $1"
  12535. ac_need_defaults=false ;;
  12536. esac
  12537. shift
  12538. done
  12539. ac_configure_extra_args=
  12540. if $ac_cs_silent; then
  12541. exec 6>/dev/null
  12542. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12543. fi
  12544. _ACEOF
  12545. cat >>$CONFIG_STATUS <<_ACEOF
  12546. if \$ac_cs_recheck; then
  12547. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12548. CONFIG_SHELL=$SHELL
  12549. export CONFIG_SHELL
  12550. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12551. fi
  12552. _ACEOF
  12553. cat >>$CONFIG_STATUS <<\_ACEOF
  12554. exec 5>>config.log
  12555. {
  12556. echo
  12557. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12558. ## Running $as_me. ##
  12559. _ASBOX
  12560. echo "$ac_log"
  12561. } >&5
  12562. _ACEOF
  12563. cat >>$CONFIG_STATUS <<_ACEOF
  12564. #
  12565. # INIT-COMMANDS
  12566. #
  12567. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12568. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  12569. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  12570. # from automake.
  12571. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  12572. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  12573. LINGUAS="${LINGUAS-%UNSET%}"
  12574. _ACEOF
  12575. cat >>$CONFIG_STATUS <<\_ACEOF
  12576. # Handling of arguments.
  12577. for ac_config_target in $ac_config_targets
  12578. do
  12579. case $ac_config_target in
  12580. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12581. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12582. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  12583. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12584. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12585. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  12586. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  12587. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  12588. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  12589. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12590. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12591. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12592. { (exit 1); exit 1; }; };;
  12593. esac
  12594. done
  12595. # If the user did not use the arguments to specify the items to instantiate,
  12596. # then the envvar interface is used. Set only those that are not.
  12597. # We use the long form for the default assignment because of an extremely
  12598. # bizarre bug on SunOS 4.1.3.
  12599. if $ac_need_defaults; then
  12600. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12601. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12602. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12603. fi
  12604. # Have a temporary directory for convenience. Make it in the build tree
  12605. # simply because there is no reason against having it here, and in addition,
  12606. # creating and moving files from /tmp can sometimes cause problems.
  12607. # Hook for its removal unless debugging.
  12608. # Note that there is a small window in which the directory will not be cleaned:
  12609. # after its creation but before its name has been assigned to `$tmp'.
  12610. $debug ||
  12611. {
  12612. tmp=
  12613. trap 'exit_status=$?
  12614. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12615. ' 0
  12616. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12617. }
  12618. # Create a (secure) tmp directory for tmp files.
  12619. {
  12620. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12621. test -n "$tmp" && test -d "$tmp"
  12622. } ||
  12623. {
  12624. tmp=./conf$$-$RANDOM
  12625. (umask 077 && mkdir "$tmp")
  12626. } ||
  12627. {
  12628. echo "$me: cannot create a temporary directory in ." >&2
  12629. { (exit 1); exit 1; }
  12630. }
  12631. #
  12632. # Set up the sed scripts for CONFIG_FILES section.
  12633. #
  12634. # No need to generate the scripts if there are no CONFIG_FILES.
  12635. # This happens for instance when ./config.status config.h
  12636. if test -n "$CONFIG_FILES"; then
  12637. _ACEOF
  12638. ac_delim='%!_!# '
  12639. for ac_last_try in false false false false false :; do
  12640. cat >conf$$subs.sed <<_ACEOF
  12641. SHELL!$SHELL$ac_delim
  12642. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  12643. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  12644. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  12645. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  12646. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  12647. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  12648. exec_prefix!$exec_prefix$ac_delim
  12649. prefix!$prefix$ac_delim
  12650. program_transform_name!$program_transform_name$ac_delim
  12651. bindir!$bindir$ac_delim
  12652. sbindir!$sbindir$ac_delim
  12653. libexecdir!$libexecdir$ac_delim
  12654. datarootdir!$datarootdir$ac_delim
  12655. datadir!$datadir$ac_delim
  12656. sysconfdir!$sysconfdir$ac_delim
  12657. sharedstatedir!$sharedstatedir$ac_delim
  12658. localstatedir!$localstatedir$ac_delim
  12659. includedir!$includedir$ac_delim
  12660. oldincludedir!$oldincludedir$ac_delim
  12661. docdir!$docdir$ac_delim
  12662. infodir!$infodir$ac_delim
  12663. htmldir!$htmldir$ac_delim
  12664. dvidir!$dvidir$ac_delim
  12665. pdfdir!$pdfdir$ac_delim
  12666. psdir!$psdir$ac_delim
  12667. libdir!$libdir$ac_delim
  12668. localedir!$localedir$ac_delim
  12669. mandir!$mandir$ac_delim
  12670. DEFS!$DEFS$ac_delim
  12671. ECHO_C!$ECHO_C$ac_delim
  12672. ECHO_N!$ECHO_N$ac_delim
  12673. ECHO_T!$ECHO_T$ac_delim
  12674. LIBS!$LIBS$ac_delim
  12675. build_alias!$build_alias$ac_delim
  12676. host_alias!$host_alias$ac_delim
  12677. target_alias!$target_alias$ac_delim
  12678. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  12679. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  12680. INSTALL_DATA!$INSTALL_DATA$ac_delim
  12681. CYGPATH_W!$CYGPATH_W$ac_delim
  12682. PACKAGE!$PACKAGE$ac_delim
  12683. VERSION!$VERSION$ac_delim
  12684. ACLOCAL!$ACLOCAL$ac_delim
  12685. AUTOCONF!$AUTOCONF$ac_delim
  12686. AUTOMAKE!$AUTOMAKE$ac_delim
  12687. AUTOHEADER!$AUTOHEADER$ac_delim
  12688. MAKEINFO!$MAKEINFO$ac_delim
  12689. install_sh!$install_sh$ac_delim
  12690. STRIP!$STRIP$ac_delim
  12691. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  12692. mkdir_p!$mkdir_p$ac_delim
  12693. AWK!$AWK$ac_delim
  12694. SET_MAKE!$SET_MAKE$ac_delim
  12695. am__leading_dot!$am__leading_dot$ac_delim
  12696. AMTAR!$AMTAR$ac_delim
  12697. am__tar!$am__tar$ac_delim
  12698. am__untar!$am__untar$ac_delim
  12699. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  12700. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  12701. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  12702. CXX!$CXX$ac_delim
  12703. CXXFLAGS!$CXXFLAGS$ac_delim
  12704. LDFLAGS!$LDFLAGS$ac_delim
  12705. CPPFLAGS!$CPPFLAGS$ac_delim
  12706. ac_ct_CXX!$ac_ct_CXX$ac_delim
  12707. EXEEXT!$EXEEXT$ac_delim
  12708. OBJEXT!$OBJEXT$ac_delim
  12709. DEPDIR!$DEPDIR$ac_delim
  12710. am__include!$am__include$ac_delim
  12711. am__quote!$am__quote$ac_delim
  12712. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  12713. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  12714. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  12715. CXXDEPMODE!$CXXDEPMODE$ac_delim
  12716. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  12717. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  12718. CC!$CC$ac_delim
  12719. CFLAGS!$CFLAGS$ac_delim
  12720. ac_ct_CC!$ac_ct_CC$ac_delim
  12721. CCDEPMODE!$CCDEPMODE$ac_delim
  12722. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  12723. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  12724. RANLIB!$RANLIB$ac_delim
  12725. YACC!$YACC$ac_delim
  12726. YFLAGS!$YFLAGS$ac_delim
  12727. XML2_CONFIG!$XML2_CONFIG$ac_delim
  12728. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  12729. XML_LIBS!$XML_LIBS$ac_delim
  12730. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  12731. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  12732. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  12733. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  12734. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  12735. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  12736. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  12737. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  12738. _ACEOF
  12739. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  12740. break
  12741. elif $ac_last_try; then
  12742. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12743. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12744. { (exit 1); exit 1; }; }
  12745. else
  12746. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12747. fi
  12748. done
  12749. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  12750. if test -n "$ac_eof"; then
  12751. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  12752. ac_eof=`expr $ac_eof + 1`
  12753. fi
  12754. cat >>$CONFIG_STATUS <<_ACEOF
  12755. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  12756. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12757. _ACEOF
  12758. sed '
  12759. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  12760. s/^/s,@/; s/!/@,|#_!!_#|/
  12761. :n
  12762. t n
  12763. s/'"$ac_delim"'$/,g/; t
  12764. s/$/\\/; p
  12765. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  12766. ' >>$CONFIG_STATUS <conf$$subs.sed
  12767. rm -f conf$$subs.sed
  12768. cat >>$CONFIG_STATUS <<_ACEOF
  12769. CEOF$ac_eof
  12770. _ACEOF
  12771. ac_delim='%!_!# '
  12772. for ac_last_try in false false false false false :; do
  12773. cat >conf$$subs.sed <<_ACEOF
  12774. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  12775. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  12776. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  12777. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  12778. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  12779. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  12780. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  12781. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  12782. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  12783. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  12784. ALLOCA!$ALLOCA$ac_delim
  12785. CPP!$CPP$ac_delim
  12786. GREP!$GREP$ac_delim
  12787. EGREP!$EGREP$ac_delim
  12788. MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
  12789. USE_NLS!$USE_NLS$ac_delim
  12790. MSGFMT!$MSGFMT$ac_delim
  12791. GMSGFMT!$GMSGFMT$ac_delim
  12792. XGETTEXT!$XGETTEXT$ac_delim
  12793. MSGMERGE!$MSGMERGE$ac_delim
  12794. build!$build$ac_delim
  12795. build_cpu!$build_cpu$ac_delim
  12796. build_vendor!$build_vendor$ac_delim
  12797. build_os!$build_os$ac_delim
  12798. host!$host$ac_delim
  12799. host_cpu!$host_cpu$ac_delim
  12800. host_vendor!$host_vendor$ac_delim
  12801. host_os!$host_os$ac_delim
  12802. GLIBC21!$GLIBC21$ac_delim
  12803. LIBICONV!$LIBICONV$ac_delim
  12804. LTLIBICONV!$LTLIBICONV$ac_delim
  12805. INTLBISON!$INTLBISON$ac_delim
  12806. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  12807. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  12808. CATOBJEXT!$CATOBJEXT$ac_delim
  12809. DATADIRNAME!$DATADIRNAME$ac_delim
  12810. INSTOBJEXT!$INSTOBJEXT$ac_delim
  12811. GENCAT!$GENCAT$ac_delim
  12812. INTLOBJS!$INTLOBJS$ac_delim
  12813. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  12814. INTLLIBS!$INTLLIBS$ac_delim
  12815. LIBINTL!$LIBINTL$ac_delim
  12816. LTLIBINTL!$LTLIBINTL$ac_delim
  12817. POSUB!$POSUB$ac_delim
  12818. LIBOBJS!$LIBOBJS$ac_delim
  12819. LTLIBOBJS!$LTLIBOBJS$ac_delim
  12820. _ACEOF
  12821. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
  12822. break
  12823. elif $ac_last_try; then
  12824. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12825. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12826. { (exit 1); exit 1; }; }
  12827. else
  12828. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12829. fi
  12830. done
  12831. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  12832. if test -n "$ac_eof"; then
  12833. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  12834. ac_eof=`expr $ac_eof + 1`
  12835. fi
  12836. cat >>$CONFIG_STATUS <<_ACEOF
  12837. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  12838. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  12839. _ACEOF
  12840. sed '
  12841. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  12842. s/^/s,@/; s/!/@,|#_!!_#|/
  12843. :n
  12844. t n
  12845. s/'"$ac_delim"'$/,g/; t
  12846. s/$/\\/; p
  12847. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  12848. ' >>$CONFIG_STATUS <conf$$subs.sed
  12849. rm -f conf$$subs.sed
  12850. cat >>$CONFIG_STATUS <<_ACEOF
  12851. :end
  12852. s/|#_!!_#|//g
  12853. CEOF$ac_eof
  12854. _ACEOF
  12855. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12856. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12857. # trailing colons and then remove the whole line if VPATH becomes empty
  12858. # (actually we leave an empty line to preserve line numbers).
  12859. if test "x$srcdir" = x.; then
  12860. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12861. s/:*\$(srcdir):*/:/
  12862. s/:*\${srcdir}:*/:/
  12863. s/:*@srcdir@:*/:/
  12864. s/^\([^=]*=[ ]*\):*/\1/
  12865. s/:*$//
  12866. s/^[^=]*=[ ]*$//
  12867. }'
  12868. fi
  12869. cat >>$CONFIG_STATUS <<\_ACEOF
  12870. fi # test -n "$CONFIG_FILES"
  12871. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  12872. do
  12873. case $ac_tag in
  12874. :[FHLC]) ac_mode=$ac_tag; continue;;
  12875. esac
  12876. case $ac_mode$ac_tag in
  12877. :[FHL]*:*);;
  12878. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  12879. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  12880. { (exit 1); exit 1; }; };;
  12881. :[FH]-) ac_tag=-:-;;
  12882. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12883. esac
  12884. ac_save_IFS=$IFS
  12885. IFS=:
  12886. set x $ac_tag
  12887. IFS=$ac_save_IFS
  12888. shift
  12889. ac_file=$1
  12890. shift
  12891. case $ac_mode in
  12892. :L) ac_source=$1;;
  12893. :[FH])
  12894. ac_file_inputs=
  12895. for ac_f
  12896. do
  12897. case $ac_f in
  12898. -) ac_f="$tmp/stdin";;
  12899. *) # Look for the file first in the build tree, then in the source tree
  12900. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12901. # because $ac_f cannot contain `:'.
  12902. test -f "$ac_f" ||
  12903. case $ac_f in
  12904. [\\/$]*) false;;
  12905. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12906. esac ||
  12907. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  12908. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  12909. { (exit 1); exit 1; }; };;
  12910. esac
  12911. ac_file_inputs="$ac_file_inputs $ac_f"
  12912. done
  12913. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12914. # use $as_me), people would be surprised to read:
  12915. # /* config.h. Generated by config.status. */
  12916. configure_input="Generated from "`IFS=:
  12917. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  12918. if test x"$ac_file" != x-; then
  12919. configure_input="$ac_file. $configure_input"
  12920. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12921. echo "$as_me: creating $ac_file" >&6;}
  12922. fi
  12923. case $ac_tag in
  12924. *:-:* | *:-) cat >"$tmp/stdin";;
  12925. esac
  12926. ;;
  12927. esac
  12928. ac_dir=`$as_dirname -- "$ac_file" ||
  12929. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12930. X"$ac_file" : 'X\(//\)[^/]' \| \
  12931. X"$ac_file" : 'X\(//\)$' \| \
  12932. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12933. echo X"$ac_file" |
  12934. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12935. s//\1/
  12936. q
  12937. }
  12938. /^X\(\/\/\)[^/].*/{
  12939. s//\1/
  12940. q
  12941. }
  12942. /^X\(\/\/\)$/{
  12943. s//\1/
  12944. q
  12945. }
  12946. /^X\(\/\).*/{
  12947. s//\1/
  12948. q
  12949. }
  12950. s/.*/./; q'`
  12951. { as_dir="$ac_dir"
  12952. case $as_dir in #(
  12953. -*) as_dir=./$as_dir;;
  12954. esac
  12955. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  12956. as_dirs=
  12957. while :; do
  12958. case $as_dir in #(
  12959. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  12960. *) as_qdir=$as_dir;;
  12961. esac
  12962. as_dirs="'$as_qdir' $as_dirs"
  12963. as_dir=`$as_dirname -- "$as_dir" ||
  12964. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12965. X"$as_dir" : 'X\(//\)[^/]' \| \
  12966. X"$as_dir" : 'X\(//\)$' \| \
  12967. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12968. echo X"$as_dir" |
  12969. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12970. s//\1/
  12971. q
  12972. }
  12973. /^X\(\/\/\)[^/].*/{
  12974. s//\1/
  12975. q
  12976. }
  12977. /^X\(\/\/\)$/{
  12978. s//\1/
  12979. q
  12980. }
  12981. /^X\(\/\).*/{
  12982. s//\1/
  12983. q
  12984. }
  12985. s/.*/./; q'`
  12986. test -d "$as_dir" && break
  12987. done
  12988. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12989. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  12990. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  12991. { (exit 1); exit 1; }; }; }
  12992. ac_builddir=.
  12993. case "$ac_dir" in
  12994. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12995. *)
  12996. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12997. # A ".." for each directory in $ac_dir_suffix.
  12998. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  12999. case $ac_top_builddir_sub in
  13000. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13001. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13002. esac ;;
  13003. esac
  13004. ac_abs_top_builddir=$ac_pwd
  13005. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13006. # for backward compatibility:
  13007. ac_top_builddir=$ac_top_build_prefix
  13008. case $srcdir in
  13009. .) # We are building in place.
  13010. ac_srcdir=.
  13011. ac_top_srcdir=$ac_top_builddir_sub
  13012. ac_abs_top_srcdir=$ac_pwd ;;
  13013. [\\/]* | ?:[\\/]* ) # Absolute name.
  13014. ac_srcdir=$srcdir$ac_dir_suffix;
  13015. ac_top_srcdir=$srcdir
  13016. ac_abs_top_srcdir=$srcdir ;;
  13017. *) # Relative name.
  13018. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13019. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13020. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13021. esac
  13022. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13023. case $ac_mode in
  13024. :F)
  13025. #
  13026. # CONFIG_FILE
  13027. #
  13028. case $INSTALL in
  13029. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  13030. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  13031. esac
  13032. _ACEOF
  13033. cat >>$CONFIG_STATUS <<\_ACEOF
  13034. # If the template does not know about datarootdir, expand it.
  13035. # FIXME: This hack should be removed a few years after 2.60.
  13036. ac_datarootdir_hack=; ac_datarootdir_seen=
  13037. case `sed -n '/datarootdir/ {
  13038. p
  13039. q
  13040. }
  13041. /@datadir@/p
  13042. /@docdir@/p
  13043. /@infodir@/p
  13044. /@localedir@/p
  13045. /@mandir@/p
  13046. ' $ac_file_inputs` in
  13047. *datarootdir*) ac_datarootdir_seen=yes;;
  13048. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  13049. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  13050. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  13051. _ACEOF
  13052. cat >>$CONFIG_STATUS <<_ACEOF
  13053. ac_datarootdir_hack='
  13054. s&@datadir@&$datadir&g
  13055. s&@docdir@&$docdir&g
  13056. s&@infodir@&$infodir&g
  13057. s&@localedir@&$localedir&g
  13058. s&@mandir@&$mandir&g
  13059. s&\\\${datarootdir}&$datarootdir&g' ;;
  13060. esac
  13061. _ACEOF
  13062. # Neutralize VPATH when `$srcdir' = `.'.
  13063. # Shell code in configure.ac might set extrasub.
  13064. # FIXME: do we really want to maintain this feature?
  13065. cat >>$CONFIG_STATUS <<_ACEOF
  13066. sed "$ac_vpsub
  13067. $extrasub
  13068. _ACEOF
  13069. cat >>$CONFIG_STATUS <<\_ACEOF
  13070. :t
  13071. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  13072. s&@configure_input@&$configure_input&;t t
  13073. s&@top_builddir@&$ac_top_builddir_sub&;t t
  13074. s&@srcdir@&$ac_srcdir&;t t
  13075. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  13076. s&@top_srcdir@&$ac_top_srcdir&;t t
  13077. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  13078. s&@builddir@&$ac_builddir&;t t
  13079. s&@abs_builddir@&$ac_abs_builddir&;t t
  13080. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  13081. s&@INSTALL@&$ac_INSTALL&;t t
  13082. $ac_datarootdir_hack
  13083. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  13084. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  13085. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  13086. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  13087. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13088. which seems to be undefined. Please make sure it is defined." >&5
  13089. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  13090. which seems to be undefined. Please make sure it is defined." >&2;}
  13091. rm -f "$tmp/stdin"
  13092. case $ac_file in
  13093. -) cat "$tmp/out"; rm -f "$tmp/out";;
  13094. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  13095. esac
  13096. ;;
  13097. :H)
  13098. #
  13099. # CONFIG_HEADER
  13100. #
  13101. _ACEOF
  13102. # Transform confdefs.h into a sed script `conftest.defines', that
  13103. # substitutes the proper values into config.h.in to produce config.h.
  13104. rm -f conftest.defines conftest.tail
  13105. # First, append a space to every undef/define line, to ease matching.
  13106. echo 's/$/ /' >conftest.defines
  13107. # Then, protect against being on the right side of a sed subst, or in
  13108. # an unquoted here document, in config.status. If some macros were
  13109. # called several times there might be several #defines for the same
  13110. # symbol, which is useless. But do not sort them, since the last
  13111. # AC_DEFINE must be honored.
  13112. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13113. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  13114. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  13115. # PARAMS is the parameter list in the macro definition--in most cases, it's
  13116. # just an empty string.
  13117. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  13118. ac_dB='\\)[ (].*,\\1define\\2'
  13119. ac_dC=' '
  13120. ac_dD=' ,'
  13121. uniq confdefs.h |
  13122. sed -n '
  13123. t rset
  13124. :rset
  13125. s/^[ ]*#[ ]*define[ ][ ]*//
  13126. t ok
  13127. d
  13128. :ok
  13129. s/[\\&,]/\\&/g
  13130. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  13131. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  13132. ' >>conftest.defines
  13133. # Remove the space that was appended to ease matching.
  13134. # Then replace #undef with comments. This is necessary, for
  13135. # example, in the case of _POSIX_SOURCE, which is predefined and required
  13136. # on some systems where configure will not decide to define it.
  13137. # (The regexp can be short, since the line contains either #define or #undef.)
  13138. echo 's/ $//
  13139. s,^[ #]*u.*,/* & */,' >>conftest.defines
  13140. # Break up conftest.defines:
  13141. ac_max_sed_lines=50
  13142. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  13143. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  13144. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  13145. # et cetera.
  13146. ac_in='$ac_file_inputs'
  13147. ac_out='"$tmp/out1"'
  13148. ac_nxt='"$tmp/out2"'
  13149. while :
  13150. do
  13151. # Write a here document:
  13152. cat >>$CONFIG_STATUS <<_ACEOF
  13153. # First, check the format of the line:
  13154. cat >"\$tmp/defines.sed" <<\\CEOF
  13155. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  13156. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  13157. b
  13158. :def
  13159. _ACEOF
  13160. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  13161. echo 'CEOF
  13162. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  13163. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  13164. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  13165. grep . conftest.tail >/dev/null || break
  13166. rm -f conftest.defines
  13167. mv conftest.tail conftest.defines
  13168. done
  13169. rm -f conftest.defines conftest.tail
  13170. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  13171. cat >>$CONFIG_STATUS <<\_ACEOF
  13172. if test x"$ac_file" != x-; then
  13173. echo "/* $configure_input */" >"$tmp/config.h"
  13174. cat "$ac_result" >>"$tmp/config.h"
  13175. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  13176. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13177. echo "$as_me: $ac_file is unchanged" >&6;}
  13178. else
  13179. rm -f $ac_file
  13180. mv "$tmp/config.h" $ac_file
  13181. fi
  13182. else
  13183. echo "/* $configure_input */"
  13184. cat "$ac_result"
  13185. fi
  13186. rm -f "$tmp/out12"
  13187. # Compute $ac_file's index in $config_headers.
  13188. _am_stamp_count=1
  13189. for _am_header in $config_headers :; do
  13190. case $_am_header in
  13191. $ac_file | $ac_file:* )
  13192. break ;;
  13193. * )
  13194. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13195. esac
  13196. done
  13197. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  13198. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13199. X$ac_file : 'X\(//\)[^/]' \| \
  13200. X$ac_file : 'X\(//\)$' \| \
  13201. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  13202. echo X$ac_file |
  13203. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13204. s//\1/
  13205. q
  13206. }
  13207. /^X\(\/\/\)[^/].*/{
  13208. s//\1/
  13209. q
  13210. }
  13211. /^X\(\/\/\)$/{
  13212. s//\1/
  13213. q
  13214. }
  13215. /^X\(\/\).*/{
  13216. s//\1/
  13217. q
  13218. }
  13219. s/.*/./; q'`/stamp-h$_am_stamp_count
  13220. ;;
  13221. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  13222. echo "$as_me: executing $ac_file commands" >&6;}
  13223. ;;
  13224. esac
  13225. case $ac_file$ac_mode in
  13226. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  13227. # Strip MF so we end up with the name of the file.
  13228. mf=`echo "$mf" | sed -e 's/:.*$//'`
  13229. # Check whether this is an Automake generated Makefile or not.
  13230. # We used to match only the files named `Makefile.in', but
  13231. # some people rename them; so instead we look at the file content.
  13232. # Grep'ing the first line is not enough: some people post-process
  13233. # each Makefile.in and add a new line on top of each file to say so.
  13234. # So let's grep whole file.
  13235. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  13236. dirpart=`$as_dirname -- "$mf" ||
  13237. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13238. X"$mf" : 'X\(//\)[^/]' \| \
  13239. X"$mf" : 'X\(//\)$' \| \
  13240. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  13241. echo X"$mf" |
  13242. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13243. s//\1/
  13244. q
  13245. }
  13246. /^X\(\/\/\)[^/].*/{
  13247. s//\1/
  13248. q
  13249. }
  13250. /^X\(\/\/\)$/{
  13251. s//\1/
  13252. q
  13253. }
  13254. /^X\(\/\).*/{
  13255. s//\1/
  13256. q
  13257. }
  13258. s/.*/./; q'`
  13259. else
  13260. continue
  13261. fi
  13262. # Extract the definition of DEPDIR, am__include, and am__quote
  13263. # from the Makefile without running `make'.
  13264. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13265. test -z "$DEPDIR" && continue
  13266. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13267. test -z "am__include" && continue
  13268. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13269. # When using ansi2knr, U may be empty or an underscore; expand it
  13270. U=`sed -n 's/^U = //p' < "$mf"`
  13271. # Find all dependency output files, they are included files with
  13272. # $(DEPDIR) in their names. We invoke sed twice because it is the
  13273. # simplest approach to changing $(DEPDIR) to its actual value in the
  13274. # expansion.
  13275. for file in `sed -n "
  13276. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13277. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13278. # Make sure the directory exists.
  13279. test -f "$dirpart/$file" && continue
  13280. fdir=`$as_dirname -- "$file" ||
  13281. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13282. X"$file" : 'X\(//\)[^/]' \| \
  13283. X"$file" : 'X\(//\)$' \| \
  13284. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  13285. echo X"$file" |
  13286. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13287. s//\1/
  13288. q
  13289. }
  13290. /^X\(\/\/\)[^/].*/{
  13291. s//\1/
  13292. q
  13293. }
  13294. /^X\(\/\/\)$/{
  13295. s//\1/
  13296. q
  13297. }
  13298. /^X\(\/\).*/{
  13299. s//\1/
  13300. q
  13301. }
  13302. s/.*/./; q'`
  13303. { as_dir=$dirpart/$fdir
  13304. case $as_dir in #(
  13305. -*) as_dir=./$as_dir;;
  13306. esac
  13307. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  13308. as_dirs=
  13309. while :; do
  13310. case $as_dir in #(
  13311. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  13312. *) as_qdir=$as_dir;;
  13313. esac
  13314. as_dirs="'$as_qdir' $as_dirs"
  13315. as_dir=`$as_dirname -- "$as_dir" ||
  13316. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13317. X"$as_dir" : 'X\(//\)[^/]' \| \
  13318. X"$as_dir" : 'X\(//\)$' \| \
  13319. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13320. echo X"$as_dir" |
  13321. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13322. s//\1/
  13323. q
  13324. }
  13325. /^X\(\/\/\)[^/].*/{
  13326. s//\1/
  13327. q
  13328. }
  13329. /^X\(\/\/\)$/{
  13330. s//\1/
  13331. q
  13332. }
  13333. /^X\(\/\).*/{
  13334. s//\1/
  13335. q
  13336. }
  13337. s/.*/./; q'`
  13338. test -d "$as_dir" && break
  13339. done
  13340. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13341. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13342. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13343. { (exit 1); exit 1; }; }; }
  13344. # echo "creating $dirpart/$file"
  13345. echo '# dummy' > "$dirpart/$file"
  13346. done
  13347. done
  13348. ;;
  13349. "default-1":C)
  13350. for ac_file in $CONFIG_FILES; do
  13351. # Support "outfile[:infile[:infile...]]"
  13352. case "$ac_file" in
  13353. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  13354. esac
  13355. # PO directories have a Makefile.in generated from Makefile.in.in.
  13356. case "$ac_file" in */Makefile.in)
  13357. # Adjust a relative srcdir.
  13358. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  13359. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  13360. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  13361. # In autoconf-2.13 it is called $ac_given_srcdir.
  13362. # In autoconf-2.50 it is called $srcdir.
  13363. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  13364. case "$ac_given_srcdir" in
  13365. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  13366. /*) top_srcdir="$ac_given_srcdir" ;;
  13367. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  13368. esac
  13369. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  13370. rm -f "$ac_dir/POTFILES"
  13371. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  13372. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  13373. POMAKEFILEDEPS="POTFILES.in"
  13374. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  13375. # on $ac_dir but don't depend on user-specified configuration
  13376. # parameters.
  13377. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  13378. # The LINGUAS file contains the set of available languages.
  13379. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  13380. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  13381. fi
  13382. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  13383. # Hide the ALL_LINGUAS assigment from automake.
  13384. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  13385. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  13386. else
  13387. # The set of available languages was given in configure.in.
  13388. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  13389. fi
  13390. case "$ac_given_srcdir" in
  13391. .) srcdirpre= ;;
  13392. *) srcdirpre='$(srcdir)/' ;;
  13393. esac
  13394. POFILES=
  13395. GMOFILES=
  13396. UPDATEPOFILES=
  13397. DUMMYPOFILES=
  13398. for lang in $ALL_LINGUAS; do
  13399. POFILES="$POFILES $srcdirpre$lang.po"
  13400. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  13401. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  13402. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  13403. done
  13404. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  13405. # environment variable.
  13406. INST_LINGUAS=
  13407. if test -n "$ALL_LINGUAS"; then
  13408. for presentlang in $ALL_LINGUAS; do
  13409. useit=no
  13410. if test "%UNSET%" != "$LINGUAS"; then
  13411. desiredlanguages="$LINGUAS"
  13412. else
  13413. desiredlanguages="$ALL_LINGUAS"
  13414. fi
  13415. for desiredlang in $desiredlanguages; do
  13416. # Use the presentlang catalog if desiredlang is
  13417. # a. equal to presentlang, or
  13418. # b. a variant of presentlang (because in this case,
  13419. # presentlang can be used as a fallback for messages
  13420. # which are not translated in the desiredlang catalog).
  13421. case "$desiredlang" in
  13422. "$presentlang"*) useit=yes;;
  13423. esac
  13424. done
  13425. if test $useit = yes; then
  13426. INST_LINGUAS="$INST_LINGUAS $presentlang"
  13427. fi
  13428. done
  13429. fi
  13430. CATALOGS=
  13431. if test -n "$INST_LINGUAS"; then
  13432. for lang in $INST_LINGUAS; do
  13433. CATALOGS="$CATALOGS $lang.gmo"
  13434. done
  13435. fi
  13436. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  13437. 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"
  13438. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  13439. if test -f "$f"; then
  13440. case "$f" in
  13441. *.orig | *.bak | *~) ;;
  13442. *) cat "$f" >> "$ac_dir/Makefile" ;;
  13443. esac
  13444. fi
  13445. done
  13446. fi
  13447. ;;
  13448. esac
  13449. done ;;
  13450. esac
  13451. done # for ac_tag
  13452. { (exit 0); exit 0; }
  13453. _ACEOF
  13454. chmod +x $CONFIG_STATUS
  13455. ac_clean_files=$ac_clean_files_save
  13456. # configure is writing to config.log, and then calls config.status.
  13457. # config.status does its own redirection, appending to config.log.
  13458. # Unfortunately, on DOS this fails, as config.log is still kept open
  13459. # by configure, so config.status won't be able to write to it; its
  13460. # output is simply discarded. So we exec the FD to /dev/null,
  13461. # effectively closing config.log, so it can be properly (re)opened and
  13462. # appended to by config.status. When coming back to configure, we
  13463. # need to make the FD available again.
  13464. if test "$no_create" != yes; then
  13465. ac_cs_success=:
  13466. ac_config_status_args=
  13467. test "$silent" = yes &&
  13468. ac_config_status_args="$ac_config_status_args --quiet"
  13469. exec 5>/dev/null
  13470. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13471. exec 5>>config.log
  13472. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13473. # would make configure fail if this is the last instruction.
  13474. $ac_cs_success || { (exit 1); exit 1; }
  13475. fi