configure 399 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 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 more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.9.0'
  496. PACKAGE_STRING='aria2c 0.9.0'
  497. PACKAGE_BUGREPORT='tujikawa@rednoah.com'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. ac_subst_vars='SHELL
  535. PATH_SEPARATOR
  536. PACKAGE_NAME
  537. PACKAGE_TARNAME
  538. PACKAGE_VERSION
  539. PACKAGE_STRING
  540. PACKAGE_BUGREPORT
  541. exec_prefix
  542. prefix
  543. program_transform_name
  544. bindir
  545. sbindir
  546. libexecdir
  547. datarootdir
  548. datadir
  549. sysconfdir
  550. sharedstatedir
  551. localstatedir
  552. includedir
  553. oldincludedir
  554. docdir
  555. infodir
  556. htmldir
  557. dvidir
  558. pdfdir
  559. psdir
  560. libdir
  561. localedir
  562. mandir
  563. DEFS
  564. ECHO_C
  565. ECHO_N
  566. ECHO_T
  567. LIBS
  568. build_alias
  569. host_alias
  570. target_alias
  571. INSTALL_PROGRAM
  572. INSTALL_SCRIPT
  573. INSTALL_DATA
  574. CYGPATH_W
  575. PACKAGE
  576. VERSION
  577. ACLOCAL
  578. AUTOCONF
  579. AUTOMAKE
  580. AUTOHEADER
  581. MAKEINFO
  582. install_sh
  583. STRIP
  584. INSTALL_STRIP_PROGRAM
  585. mkdir_p
  586. AWK
  587. SET_MAKE
  588. am__leading_dot
  589. AMTAR
  590. am__tar
  591. am__untar
  592. CPPUNIT_CONFIG
  593. CPPUNIT_CFLAGS
  594. CPPUNIT_LIBS
  595. CXX
  596. CXXFLAGS
  597. LDFLAGS
  598. CPPFLAGS
  599. ac_ct_CXX
  600. EXEEXT
  601. OBJEXT
  602. DEPDIR
  603. am__include
  604. am__quote
  605. AMDEP_TRUE
  606. AMDEP_FALSE
  607. AMDEPBACKSLASH
  608. CXXDEPMODE
  609. am__fastdepCXX_TRUE
  610. am__fastdepCXX_FALSE
  611. CC
  612. CFLAGS
  613. ac_ct_CC
  614. CCDEPMODE
  615. am__fastdepCC_TRUE
  616. am__fastdepCC_FALSE
  617. RANLIB
  618. YACC
  619. YFLAGS
  620. XML2_CONFIG
  621. XML_CPPFLAGS
  622. XML_LIBS
  623. LIBGNUTLS_CONFIG
  624. LIBGNUTLS_CFLAGS
  625. LIBGNUTLS_LIBS
  626. LIBGCRYPT_CONFIG
  627. LIBGCRYPT_CFLAGS
  628. LIBGCRYPT_LIBS
  629. OPENSSL_LIBS
  630. OPENSSL_CFLAGS
  631. LIBCARES_LIBS
  632. LIBCARES_CPPFLAGS
  633. LIBARES_LIBS
  634. LIBARES_CPPFLAGS
  635. ENABLE_BITTORRENT_TRUE
  636. ENABLE_BITTORRENT_FALSE
  637. ENABLE_METALINK_TRUE
  638. ENABLE_METALINK_FALSE
  639. ENABLE_ASYNC_DNS_TRUE
  640. ENABLE_ASYNC_DNS_FALSE
  641. ALLOCA
  642. CPP
  643. GREP
  644. EGREP
  645. MKINSTALLDIRS
  646. USE_NLS
  647. MSGFMT
  648. GMSGFMT
  649. XGETTEXT
  650. MSGMERGE
  651. build
  652. build_cpu
  653. build_vendor
  654. build_os
  655. host
  656. host_cpu
  657. host_vendor
  658. host_os
  659. GLIBC21
  660. LIBICONV
  661. LTLIBICONV
  662. INTLBISON
  663. BUILD_INCLUDED_LIBINTL
  664. USE_INCLUDED_LIBINTL
  665. CATOBJEXT
  666. DATADIRNAME
  667. INSTOBJEXT
  668. GENCAT
  669. INTLOBJS
  670. INTL_LIBTOOL_SUFFIX_PREFIX
  671. INTLLIBS
  672. LIBINTL
  673. LTLIBINTL
  674. POSUB
  675. LIBOBJS
  676. LTLIBOBJS'
  677. ac_subst_files=''
  678. ac_precious_vars='build_alias
  679. host_alias
  680. target_alias
  681. CXX
  682. CXXFLAGS
  683. LDFLAGS
  684. LIBS
  685. CPPFLAGS
  686. CCC
  687. CC
  688. CFLAGS
  689. YACC
  690. YFLAGS
  691. CPP'
  692. # Initialize some variables set by options.
  693. ac_init_help=
  694. ac_init_version=false
  695. # The variables have the same names as the options, with
  696. # dashes changed to underlines.
  697. cache_file=/dev/null
  698. exec_prefix=NONE
  699. no_create=
  700. no_recursion=
  701. prefix=NONE
  702. program_prefix=NONE
  703. program_suffix=NONE
  704. program_transform_name=s,x,x,
  705. silent=
  706. site=
  707. srcdir=
  708. verbose=
  709. x_includes=NONE
  710. x_libraries=NONE
  711. # Installation directory options.
  712. # These are left unexpanded so users can "make install exec_prefix=/foo"
  713. # and all the variables that are supposed to be based on exec_prefix
  714. # by default will actually change.
  715. # Use braces instead of parens because sh, perl, etc. also accept them.
  716. # (The list follows the same order as the GNU Coding Standards.)
  717. bindir='${exec_prefix}/bin'
  718. sbindir='${exec_prefix}/sbin'
  719. libexecdir='${exec_prefix}/libexec'
  720. datarootdir='${prefix}/share'
  721. datadir='${datarootdir}'
  722. sysconfdir='${prefix}/etc'
  723. sharedstatedir='${prefix}/com'
  724. localstatedir='${prefix}/var'
  725. includedir='${prefix}/include'
  726. oldincludedir='/usr/include'
  727. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  728. infodir='${datarootdir}/info'
  729. htmldir='${docdir}'
  730. dvidir='${docdir}'
  731. pdfdir='${docdir}'
  732. psdir='${docdir}'
  733. libdir='${exec_prefix}/lib'
  734. localedir='${datarootdir}/locale'
  735. mandir='${datarootdir}/man'
  736. ac_prev=
  737. ac_dashdash=
  738. for ac_option
  739. do
  740. # If the previous option needs an argument, assign it.
  741. if test -n "$ac_prev"; then
  742. eval $ac_prev=\$ac_option
  743. ac_prev=
  744. continue
  745. fi
  746. case $ac_option in
  747. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  748. *) ac_optarg=yes ;;
  749. esac
  750. # Accept the important Cygnus configure options, so we can diagnose typos.
  751. case $ac_dashdash$ac_option in
  752. --)
  753. ac_dashdash=yes ;;
  754. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  755. ac_prev=bindir ;;
  756. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  757. bindir=$ac_optarg ;;
  758. -build | --build | --buil | --bui | --bu)
  759. ac_prev=build_alias ;;
  760. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  761. build_alias=$ac_optarg ;;
  762. -cache-file | --cache-file | --cache-fil | --cache-fi \
  763. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  764. ac_prev=cache_file ;;
  765. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  766. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  767. cache_file=$ac_optarg ;;
  768. --config-cache | -C)
  769. cache_file=config.cache ;;
  770. -datadir | --datadir | --datadi | --datad)
  771. ac_prev=datadir ;;
  772. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  773. datadir=$ac_optarg ;;
  774. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  775. | --dataroo | --dataro | --datar)
  776. ac_prev=datarootdir ;;
  777. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  778. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  779. datarootdir=$ac_optarg ;;
  780. -disable-* | --disable-*)
  781. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  782. # Reject names that are not valid shell variable names.
  783. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  784. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  785. { (exit 1); exit 1; }; }
  786. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  787. eval enable_$ac_feature=no ;;
  788. -docdir | --docdir | --docdi | --doc | --do)
  789. ac_prev=docdir ;;
  790. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  791. docdir=$ac_optarg ;;
  792. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  793. ac_prev=dvidir ;;
  794. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  795. dvidir=$ac_optarg ;;
  796. -enable-* | --enable-*)
  797. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  798. # Reject names that are not valid shell variable names.
  799. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  800. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  801. { (exit 1); exit 1; }; }
  802. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  803. eval enable_$ac_feature=\$ac_optarg ;;
  804. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  805. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  806. | --exec | --exe | --ex)
  807. ac_prev=exec_prefix ;;
  808. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  809. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  810. | --exec=* | --exe=* | --ex=*)
  811. exec_prefix=$ac_optarg ;;
  812. -gas | --gas | --ga | --g)
  813. # Obsolete; use --with-gas.
  814. with_gas=yes ;;
  815. -help | --help | --hel | --he | -h)
  816. ac_init_help=long ;;
  817. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  818. ac_init_help=recursive ;;
  819. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  820. ac_init_help=short ;;
  821. -host | --host | --hos | --ho)
  822. ac_prev=host_alias ;;
  823. -host=* | --host=* | --hos=* | --ho=*)
  824. host_alias=$ac_optarg ;;
  825. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  826. ac_prev=htmldir ;;
  827. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  828. | --ht=*)
  829. htmldir=$ac_optarg ;;
  830. -includedir | --includedir | --includedi | --included | --include \
  831. | --includ | --inclu | --incl | --inc)
  832. ac_prev=includedir ;;
  833. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  834. | --includ=* | --inclu=* | --incl=* | --inc=*)
  835. includedir=$ac_optarg ;;
  836. -infodir | --infodir | --infodi | --infod | --info | --inf)
  837. ac_prev=infodir ;;
  838. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  839. infodir=$ac_optarg ;;
  840. -libdir | --libdir | --libdi | --libd)
  841. ac_prev=libdir ;;
  842. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  843. libdir=$ac_optarg ;;
  844. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  845. | --libexe | --libex | --libe)
  846. ac_prev=libexecdir ;;
  847. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  848. | --libexe=* | --libex=* | --libe=*)
  849. libexecdir=$ac_optarg ;;
  850. -localedir | --localedir | --localedi | --localed | --locale)
  851. ac_prev=localedir ;;
  852. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  853. localedir=$ac_optarg ;;
  854. -localstatedir | --localstatedir | --localstatedi | --localstated \
  855. | --localstate | --localstat | --localsta | --localst | --locals)
  856. ac_prev=localstatedir ;;
  857. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  858. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  859. localstatedir=$ac_optarg ;;
  860. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  861. ac_prev=mandir ;;
  862. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  863. mandir=$ac_optarg ;;
  864. -nfp | --nfp | --nf)
  865. # Obsolete; use --without-fp.
  866. with_fp=no ;;
  867. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  868. | --no-cr | --no-c | -n)
  869. no_create=yes ;;
  870. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  871. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  872. no_recursion=yes ;;
  873. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  874. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  875. | --oldin | --oldi | --old | --ol | --o)
  876. ac_prev=oldincludedir ;;
  877. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  878. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  879. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  880. oldincludedir=$ac_optarg ;;
  881. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  882. ac_prev=prefix ;;
  883. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  884. prefix=$ac_optarg ;;
  885. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  886. | --program-pre | --program-pr | --program-p)
  887. ac_prev=program_prefix ;;
  888. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  889. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  890. program_prefix=$ac_optarg ;;
  891. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  892. | --program-suf | --program-su | --program-s)
  893. ac_prev=program_suffix ;;
  894. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  895. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  896. program_suffix=$ac_optarg ;;
  897. -program-transform-name | --program-transform-name \
  898. | --program-transform-nam | --program-transform-na \
  899. | --program-transform-n | --program-transform- \
  900. | --program-transform | --program-transfor \
  901. | --program-transfo | --program-transf \
  902. | --program-trans | --program-tran \
  903. | --progr-tra | --program-tr | --program-t)
  904. ac_prev=program_transform_name ;;
  905. -program-transform-name=* | --program-transform-name=* \
  906. | --program-transform-nam=* | --program-transform-na=* \
  907. | --program-transform-n=* | --program-transform-=* \
  908. | --program-transform=* | --program-transfor=* \
  909. | --program-transfo=* | --program-transf=* \
  910. | --program-trans=* | --program-tran=* \
  911. | --progr-tra=* | --program-tr=* | --program-t=*)
  912. program_transform_name=$ac_optarg ;;
  913. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  914. ac_prev=pdfdir ;;
  915. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  916. pdfdir=$ac_optarg ;;
  917. -psdir | --psdir | --psdi | --psd | --ps)
  918. ac_prev=psdir ;;
  919. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  920. psdir=$ac_optarg ;;
  921. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  922. | -silent | --silent | --silen | --sile | --sil)
  923. silent=yes ;;
  924. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  925. ac_prev=sbindir ;;
  926. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  927. | --sbi=* | --sb=*)
  928. sbindir=$ac_optarg ;;
  929. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  930. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  931. | --sharedst | --shareds | --shared | --share | --shar \
  932. | --sha | --sh)
  933. ac_prev=sharedstatedir ;;
  934. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  935. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  936. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  937. | --sha=* | --sh=*)
  938. sharedstatedir=$ac_optarg ;;
  939. -site | --site | --sit)
  940. ac_prev=site ;;
  941. -site=* | --site=* | --sit=*)
  942. site=$ac_optarg ;;
  943. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  944. ac_prev=srcdir ;;
  945. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  946. srcdir=$ac_optarg ;;
  947. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  948. | --syscon | --sysco | --sysc | --sys | --sy)
  949. ac_prev=sysconfdir ;;
  950. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  951. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  952. sysconfdir=$ac_optarg ;;
  953. -target | --target | --targe | --targ | --tar | --ta | --t)
  954. ac_prev=target_alias ;;
  955. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  956. target_alias=$ac_optarg ;;
  957. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  958. verbose=yes ;;
  959. -version | --version | --versio | --versi | --vers | -V)
  960. ac_init_version=: ;;
  961. -with-* | --with-*)
  962. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  963. # Reject names that are not valid shell variable names.
  964. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  965. { echo "$as_me: error: invalid package name: $ac_package" >&2
  966. { (exit 1); exit 1; }; }
  967. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  968. eval with_$ac_package=\$ac_optarg ;;
  969. -without-* | --without-*)
  970. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  971. # Reject names that are not valid shell variable names.
  972. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  973. { echo "$as_me: error: invalid package name: $ac_package" >&2
  974. { (exit 1); exit 1; }; }
  975. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  976. eval with_$ac_package=no ;;
  977. --x)
  978. # Obsolete; use --with-x.
  979. with_x=yes ;;
  980. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  981. | --x-incl | --x-inc | --x-in | --x-i)
  982. ac_prev=x_includes ;;
  983. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  984. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  985. x_includes=$ac_optarg ;;
  986. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  987. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  988. ac_prev=x_libraries ;;
  989. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  990. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  991. x_libraries=$ac_optarg ;;
  992. -*) { echo "$as_me: error: unrecognized option: $ac_option
  993. Try \`$0 --help' for more information." >&2
  994. { (exit 1); exit 1; }; }
  995. ;;
  996. *=*)
  997. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  998. # Reject names that are not valid shell variable names.
  999. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1000. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1001. { (exit 1); exit 1; }; }
  1002. eval $ac_envvar=\$ac_optarg
  1003. export $ac_envvar ;;
  1004. *)
  1005. # FIXME: should be removed in autoconf 3.0.
  1006. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1007. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1008. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1009. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1010. ;;
  1011. esac
  1012. done
  1013. if test -n "$ac_prev"; then
  1014. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1015. { echo "$as_me: error: missing argument to $ac_option" >&2
  1016. { (exit 1); exit 1; }; }
  1017. fi
  1018. # Be sure to have absolute directory names.
  1019. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1020. datadir sysconfdir sharedstatedir localstatedir includedir \
  1021. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1022. libdir localedir mandir
  1023. do
  1024. eval ac_val=\$$ac_var
  1025. case $ac_val in
  1026. [\\/$]* | ?:[\\/]* ) continue;;
  1027. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1028. esac
  1029. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1030. { (exit 1); exit 1; }; }
  1031. done
  1032. # There might be people who depend on the old broken behavior: `$host'
  1033. # used to hold the argument of --host etc.
  1034. # FIXME: To remove some day.
  1035. build=$build_alias
  1036. host=$host_alias
  1037. target=$target_alias
  1038. # FIXME: To remove some day.
  1039. if test "x$host_alias" != x; then
  1040. if test "x$build_alias" = x; then
  1041. cross_compiling=maybe
  1042. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1043. If a cross compiler is detected then cross compile mode will be used." >&2
  1044. elif test "x$build_alias" != "x$host_alias"; then
  1045. cross_compiling=yes
  1046. fi
  1047. fi
  1048. ac_tool_prefix=
  1049. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1050. test "$silent" = yes && exec 6>/dev/null
  1051. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1052. ac_ls_di=`ls -di .` &&
  1053. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1054. { echo "$as_me: error: Working directory cannot be determined" >&2
  1055. { (exit 1); exit 1; }; }
  1056. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1057. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1058. { (exit 1); exit 1; }; }
  1059. # Find the source files, if location was not specified.
  1060. if test -z "$srcdir"; then
  1061. ac_srcdir_defaulted=yes
  1062. # Try the directory containing this script, then the parent directory.
  1063. ac_confdir=`$as_dirname -- "$0" ||
  1064. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1065. X"$0" : 'X\(//\)[^/]' \| \
  1066. X"$0" : 'X\(//\)$' \| \
  1067. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1068. echo X"$0" |
  1069. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1070. s//\1/
  1071. q
  1072. }
  1073. /^X\(\/\/\)[^/].*/{
  1074. s//\1/
  1075. q
  1076. }
  1077. /^X\(\/\/\)$/{
  1078. s//\1/
  1079. q
  1080. }
  1081. /^X\(\/\).*/{
  1082. s//\1/
  1083. q
  1084. }
  1085. s/.*/./; q'`
  1086. srcdir=$ac_confdir
  1087. if test ! -r "$srcdir/$ac_unique_file"; then
  1088. srcdir=..
  1089. fi
  1090. else
  1091. ac_srcdir_defaulted=no
  1092. fi
  1093. if test ! -r "$srcdir/$ac_unique_file"; then
  1094. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1095. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1096. { (exit 1); exit 1; }; }
  1097. fi
  1098. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1099. ac_abs_confdir=`(
  1100. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1101. { (exit 1); exit 1; }; }
  1102. pwd)`
  1103. # When building in place, set srcdir=.
  1104. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1105. srcdir=.
  1106. fi
  1107. # Remove unnecessary trailing slashes from srcdir.
  1108. # Double slashes in file names in object file debugging info
  1109. # mess up M-x gdb in Emacs.
  1110. case $srcdir in
  1111. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1112. esac
  1113. for ac_var in $ac_precious_vars; do
  1114. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1115. eval ac_env_${ac_var}_value=\$${ac_var}
  1116. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1117. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1118. done
  1119. #
  1120. # Report the --help message.
  1121. #
  1122. if test "$ac_init_help" = "long"; then
  1123. # Omit some internal or obsolete options to make the list less imposing.
  1124. # This message is too long to be a string in the A/UX 3.1 sh.
  1125. cat <<_ACEOF
  1126. \`configure' configures aria2c 0.9.0 to adapt to many kinds of systems.
  1127. Usage: $0 [OPTION]... [VAR=VALUE]...
  1128. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1129. VAR=VALUE. See below for descriptions of some of the useful variables.
  1130. Defaults for the options are specified in brackets.
  1131. Configuration:
  1132. -h, --help display this help and exit
  1133. --help=short display options specific to this package
  1134. --help=recursive display the short help of all the included packages
  1135. -V, --version display version information and exit
  1136. -q, --quiet, --silent do not print \`checking...' messages
  1137. --cache-file=FILE cache test results in FILE [disabled]
  1138. -C, --config-cache alias for \`--cache-file=config.cache'
  1139. -n, --no-create do not create output files
  1140. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1141. Installation directories:
  1142. --prefix=PREFIX install architecture-independent files in PREFIX
  1143. [$ac_default_prefix]
  1144. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1145. [PREFIX]
  1146. By default, \`make install' will install all the files in
  1147. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1148. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1149. for instance \`--prefix=\$HOME'.
  1150. For better control, use the options below.
  1151. Fine tuning of the installation directories:
  1152. --bindir=DIR user executables [EPREFIX/bin]
  1153. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1154. --libexecdir=DIR program executables [EPREFIX/libexec]
  1155. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1156. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1157. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1158. --libdir=DIR object code libraries [EPREFIX/lib]
  1159. --includedir=DIR C header files [PREFIX/include]
  1160. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1161. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1162. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1163. --infodir=DIR info documentation [DATAROOTDIR/info]
  1164. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1165. --mandir=DIR man documentation [DATAROOTDIR/man]
  1166. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1167. --htmldir=DIR html documentation [DOCDIR]
  1168. --dvidir=DIR dvi documentation [DOCDIR]
  1169. --pdfdir=DIR pdf documentation [DOCDIR]
  1170. --psdir=DIR ps documentation [DOCDIR]
  1171. _ACEOF
  1172. cat <<\_ACEOF
  1173. Program names:
  1174. --program-prefix=PREFIX prepend PREFIX to installed program names
  1175. --program-suffix=SUFFIX append SUFFIX to installed program names
  1176. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1177. System types:
  1178. --build=BUILD configure for building on BUILD [guessed]
  1179. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1180. _ACEOF
  1181. fi
  1182. if test -n "$ac_init_help"; then
  1183. case $ac_init_help in
  1184. short | recursive ) echo "Configuration of aria2c 0.9.0:";;
  1185. esac
  1186. cat <<\_ACEOF
  1187. Optional Features:
  1188. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1189. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1190. --enable-bittorrent enable BitTorrent support. Default: yes
  1191. --enable-metalink enable Metalink support. Default: yes
  1192. --disable-dependency-tracking speeds up one-time build
  1193. --enable-dependency-tracking do not reject slow dependency extractors
  1194. --disable-xmltest Do not try to compile and run a test LIBXML program
  1195. --disable-nls do not use Native Language Support
  1196. --disable-rpath do not hardcode runtime library paths
  1197. Optional Packages:
  1198. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1199. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1200. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1201. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1202. --with-gnutls use gnutls library if installed. Default: yes
  1203. --with-openssl use openssl library if installed. Default: yes
  1204. --with-libxml2 use libxml2 library if installed. Default: yes
  1205. --with-libares use ares library if installed. Default: yes
  1206. --with-libcares use c-ares library if installed. Default: yes
  1207. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1208. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1209. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1210. --with-libgcrypt-prefix=PFX
  1211. prefix where LIBGCRYPT is installed (optional)
  1212. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1213. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1214. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1215. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1216. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1217. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1218. --with-included-gettext use the GNU gettext library included here
  1219. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1220. --without-libintl-prefix don't search for libintl in includedir and libdir
  1221. Some influential environment variables:
  1222. CXX C++ compiler command
  1223. CXXFLAGS C++ compiler flags
  1224. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1225. nonstandard directory <lib dir>
  1226. LIBS libraries to pass to the linker, e.g. -l<library>
  1227. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1228. you have headers in a nonstandard directory <include dir>
  1229. CC C compiler command
  1230. CFLAGS C compiler flags
  1231. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1232. the first program found out of: `bison -y', `byacc', `yacc'.
  1233. YFLAGS The list of arguments that will be passed by default to $YACC.
  1234. This script will default YFLAGS to the empty string to avoid a
  1235. default value of `-d' given by some make applications.
  1236. CPP C preprocessor
  1237. Use these variables to override the choices made by `configure' or to help
  1238. it to find libraries and programs with nonstandard names/locations.
  1239. Report bugs to <tujikawa@rednoah.com>.
  1240. _ACEOF
  1241. ac_status=$?
  1242. fi
  1243. if test "$ac_init_help" = "recursive"; then
  1244. # If there are subdirs, report their specific --help.
  1245. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1246. test -d "$ac_dir" || continue
  1247. ac_builddir=.
  1248. case "$ac_dir" in
  1249. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1250. *)
  1251. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1252. # A ".." for each directory in $ac_dir_suffix.
  1253. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1254. case $ac_top_builddir_sub in
  1255. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1256. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1257. esac ;;
  1258. esac
  1259. ac_abs_top_builddir=$ac_pwd
  1260. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1261. # for backward compatibility:
  1262. ac_top_builddir=$ac_top_build_prefix
  1263. case $srcdir in
  1264. .) # We are building in place.
  1265. ac_srcdir=.
  1266. ac_top_srcdir=$ac_top_builddir_sub
  1267. ac_abs_top_srcdir=$ac_pwd ;;
  1268. [\\/]* | ?:[\\/]* ) # Absolute name.
  1269. ac_srcdir=$srcdir$ac_dir_suffix;
  1270. ac_top_srcdir=$srcdir
  1271. ac_abs_top_srcdir=$srcdir ;;
  1272. *) # Relative name.
  1273. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1274. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1275. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1276. esac
  1277. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1278. cd "$ac_dir" || { ac_status=$?; continue; }
  1279. # Check for guested configure.
  1280. if test -f "$ac_srcdir/configure.gnu"; then
  1281. echo &&
  1282. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1283. elif test -f "$ac_srcdir/configure"; then
  1284. echo &&
  1285. $SHELL "$ac_srcdir/configure" --help=recursive
  1286. else
  1287. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1288. fi || ac_status=$?
  1289. cd "$ac_pwd" || { ac_status=$?; break; }
  1290. done
  1291. fi
  1292. test -n "$ac_init_help" && exit $ac_status
  1293. if $ac_init_version; then
  1294. cat <<\_ACEOF
  1295. aria2c configure 0.9.0
  1296. generated by GNU Autoconf 2.61
  1297. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1298. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1299. This configure script is free software; the Free Software Foundation
  1300. gives unlimited permission to copy, distribute and modify it.
  1301. _ACEOF
  1302. exit
  1303. fi
  1304. cat >config.log <<_ACEOF
  1305. This file contains any messages produced by compilers while
  1306. running configure, to aid debugging if configure makes a mistake.
  1307. It was created by aria2c $as_me 0.9.0, which was
  1308. generated by GNU Autoconf 2.61. Invocation command line was
  1309. $ $0 $@
  1310. _ACEOF
  1311. exec 5>>config.log
  1312. {
  1313. cat <<_ASUNAME
  1314. ## --------- ##
  1315. ## Platform. ##
  1316. ## --------- ##
  1317. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1318. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1319. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1320. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1321. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1322. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1323. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1324. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1325. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1326. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1327. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1328. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1329. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1330. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1331. _ASUNAME
  1332. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1333. for as_dir in $PATH
  1334. do
  1335. IFS=$as_save_IFS
  1336. test -z "$as_dir" && as_dir=.
  1337. echo "PATH: $as_dir"
  1338. done
  1339. IFS=$as_save_IFS
  1340. } >&5
  1341. cat >&5 <<_ACEOF
  1342. ## ----------- ##
  1343. ## Core tests. ##
  1344. ## ----------- ##
  1345. _ACEOF
  1346. # Keep a trace of the command line.
  1347. # Strip out --no-create and --no-recursion so they do not pile up.
  1348. # Strip out --silent because we don't want to record it for future runs.
  1349. # Also quote any args containing shell meta-characters.
  1350. # Make two passes to allow for proper duplicate-argument suppression.
  1351. ac_configure_args=
  1352. ac_configure_args0=
  1353. ac_configure_args1=
  1354. ac_must_keep_next=false
  1355. for ac_pass in 1 2
  1356. do
  1357. for ac_arg
  1358. do
  1359. case $ac_arg in
  1360. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1361. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1362. | -silent | --silent | --silen | --sile | --sil)
  1363. continue ;;
  1364. *\'*)
  1365. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1366. esac
  1367. case $ac_pass in
  1368. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1369. 2)
  1370. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1371. if test $ac_must_keep_next = true; then
  1372. ac_must_keep_next=false # Got value, back to normal.
  1373. else
  1374. case $ac_arg in
  1375. *=* | --config-cache | -C | -disable-* | --disable-* \
  1376. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1377. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1378. | -with-* | --with-* | -without-* | --without-* | --x)
  1379. case "$ac_configure_args0 " in
  1380. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1381. esac
  1382. ;;
  1383. -* ) ac_must_keep_next=true ;;
  1384. esac
  1385. fi
  1386. ac_configure_args="$ac_configure_args '$ac_arg'"
  1387. ;;
  1388. esac
  1389. done
  1390. done
  1391. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1392. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1393. # When interrupted or exit'd, cleanup temporary files, and complete
  1394. # config.log. We remove comments because anyway the quotes in there
  1395. # would cause problems or look ugly.
  1396. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1397. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1398. trap 'exit_status=$?
  1399. # Save into config.log some information that might help in debugging.
  1400. {
  1401. echo
  1402. cat <<\_ASBOX
  1403. ## ---------------- ##
  1404. ## Cache variables. ##
  1405. ## ---------------- ##
  1406. _ASBOX
  1407. echo
  1408. # The following way of writing the cache mishandles newlines in values,
  1409. (
  1410. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1411. eval ac_val=\$$ac_var
  1412. case $ac_val in #(
  1413. *${as_nl}*)
  1414. case $ac_var in #(
  1415. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1416. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1417. esac
  1418. case $ac_var in #(
  1419. _ | IFS | as_nl) ;; #(
  1420. *) $as_unset $ac_var ;;
  1421. esac ;;
  1422. esac
  1423. done
  1424. (set) 2>&1 |
  1425. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1426. *${as_nl}ac_space=\ *)
  1427. sed -n \
  1428. "s/'\''/'\''\\\\'\'''\''/g;
  1429. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1430. ;; #(
  1431. *)
  1432. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1433. ;;
  1434. esac |
  1435. sort
  1436. )
  1437. echo
  1438. cat <<\_ASBOX
  1439. ## ----------------- ##
  1440. ## Output variables. ##
  1441. ## ----------------- ##
  1442. _ASBOX
  1443. echo
  1444. for ac_var in $ac_subst_vars
  1445. do
  1446. eval ac_val=\$$ac_var
  1447. case $ac_val in
  1448. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1449. esac
  1450. echo "$ac_var='\''$ac_val'\''"
  1451. done | sort
  1452. echo
  1453. if test -n "$ac_subst_files"; then
  1454. cat <<\_ASBOX
  1455. ## ------------------- ##
  1456. ## File substitutions. ##
  1457. ## ------------------- ##
  1458. _ASBOX
  1459. echo
  1460. for ac_var in $ac_subst_files
  1461. do
  1462. eval ac_val=\$$ac_var
  1463. case $ac_val in
  1464. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1465. esac
  1466. echo "$ac_var='\''$ac_val'\''"
  1467. done | sort
  1468. echo
  1469. fi
  1470. if test -s confdefs.h; then
  1471. cat <<\_ASBOX
  1472. ## ----------- ##
  1473. ## confdefs.h. ##
  1474. ## ----------- ##
  1475. _ASBOX
  1476. echo
  1477. cat confdefs.h
  1478. echo
  1479. fi
  1480. test "$ac_signal" != 0 &&
  1481. echo "$as_me: caught signal $ac_signal"
  1482. echo "$as_me: exit $exit_status"
  1483. } >&5
  1484. rm -f core *.core core.conftest.* &&
  1485. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1486. exit $exit_status
  1487. ' 0
  1488. for ac_signal in 1 2 13 15; do
  1489. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1490. done
  1491. ac_signal=0
  1492. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1493. rm -f -r conftest* confdefs.h
  1494. # Predefined preprocessor variables.
  1495. cat >>confdefs.h <<_ACEOF
  1496. #define PACKAGE_NAME "$PACKAGE_NAME"
  1497. _ACEOF
  1498. cat >>confdefs.h <<_ACEOF
  1499. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1500. _ACEOF
  1501. cat >>confdefs.h <<_ACEOF
  1502. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1503. _ACEOF
  1504. cat >>confdefs.h <<_ACEOF
  1505. #define PACKAGE_STRING "$PACKAGE_STRING"
  1506. _ACEOF
  1507. cat >>confdefs.h <<_ACEOF
  1508. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1509. _ACEOF
  1510. # Let the site file select an alternate cache file if it wants to.
  1511. # Prefer explicitly selected file to automatically selected ones.
  1512. if test -n "$CONFIG_SITE"; then
  1513. set x "$CONFIG_SITE"
  1514. elif test "x$prefix" != xNONE; then
  1515. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1516. else
  1517. set x "$ac_default_prefix/share/config.site" \
  1518. "$ac_default_prefix/etc/config.site"
  1519. fi
  1520. shift
  1521. for ac_site_file
  1522. do
  1523. if test -r "$ac_site_file"; then
  1524. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1525. echo "$as_me: loading site script $ac_site_file" >&6;}
  1526. sed 's/^/| /' "$ac_site_file" >&5
  1527. . "$ac_site_file"
  1528. fi
  1529. done
  1530. if test -r "$cache_file"; then
  1531. # Some versions of bash will fail to source /dev/null (special
  1532. # files actually), so we avoid doing that.
  1533. if test -f "$cache_file"; then
  1534. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1535. echo "$as_me: loading cache $cache_file" >&6;}
  1536. case $cache_file in
  1537. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1538. *) . "./$cache_file";;
  1539. esac
  1540. fi
  1541. else
  1542. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1543. echo "$as_me: creating cache $cache_file" >&6;}
  1544. >$cache_file
  1545. fi
  1546. # Check that the precious variables saved in the cache have kept the same
  1547. # value.
  1548. ac_cache_corrupted=false
  1549. for ac_var in $ac_precious_vars; do
  1550. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1551. eval ac_new_set=\$ac_env_${ac_var}_set
  1552. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1553. eval ac_new_val=\$ac_env_${ac_var}_value
  1554. case $ac_old_set,$ac_new_set in
  1555. set,)
  1556. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1557. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1558. ac_cache_corrupted=: ;;
  1559. ,set)
  1560. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1561. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1562. ac_cache_corrupted=: ;;
  1563. ,);;
  1564. *)
  1565. if test "x$ac_old_val" != "x$ac_new_val"; then
  1566. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1567. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1568. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1569. echo "$as_me: former value: $ac_old_val" >&2;}
  1570. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1571. echo "$as_me: current value: $ac_new_val" >&2;}
  1572. ac_cache_corrupted=:
  1573. fi;;
  1574. esac
  1575. # Pass precious variables to config.status.
  1576. if test "$ac_new_set" = set; then
  1577. case $ac_new_val in
  1578. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1579. *) ac_arg=$ac_var=$ac_new_val ;;
  1580. esac
  1581. case " $ac_configure_args " in
  1582. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1583. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1584. esac
  1585. fi
  1586. done
  1587. if $ac_cache_corrupted; then
  1588. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1589. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1590. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1591. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1592. { (exit 1); exit 1; }; }
  1593. fi
  1594. ac_ext=c
  1595. ac_cpp='$CPP $CPPFLAGS'
  1596. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1597. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1598. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1599. am__api_version="1.9"
  1600. ac_aux_dir=
  1601. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1602. if test -f "$ac_dir/install-sh"; then
  1603. ac_aux_dir=$ac_dir
  1604. ac_install_sh="$ac_aux_dir/install-sh -c"
  1605. break
  1606. elif test -f "$ac_dir/install.sh"; then
  1607. ac_aux_dir=$ac_dir
  1608. ac_install_sh="$ac_aux_dir/install.sh -c"
  1609. break
  1610. elif test -f "$ac_dir/shtool"; then
  1611. ac_aux_dir=$ac_dir
  1612. ac_install_sh="$ac_aux_dir/shtool install -c"
  1613. break
  1614. fi
  1615. done
  1616. if test -z "$ac_aux_dir"; then
  1617. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1618. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1619. { (exit 1); exit 1; }; }
  1620. fi
  1621. # These three variables are undocumented and unsupported,
  1622. # and are intended to be withdrawn in a future Autoconf release.
  1623. # They can cause serious problems if a builder's source tree is in a directory
  1624. # whose full name contains unusual characters.
  1625. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1626. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1627. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1628. # Find a good install program. We prefer a C program (faster),
  1629. # so one script is as good as another. But avoid the broken or
  1630. # incompatible versions:
  1631. # SysV /etc/install, /usr/sbin/install
  1632. # SunOS /usr/etc/install
  1633. # IRIX /sbin/install
  1634. # AIX /bin/install
  1635. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1636. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1637. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1638. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1639. # OS/2's system install, which has a completely different semantic
  1640. # ./install, which can be erroneously created by make from ./install.sh.
  1641. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1642. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1643. if test -z "$INSTALL"; then
  1644. if test "${ac_cv_path_install+set}" = set; then
  1645. echo $ECHO_N "(cached) $ECHO_C" >&6
  1646. else
  1647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1648. for as_dir in $PATH
  1649. do
  1650. IFS=$as_save_IFS
  1651. test -z "$as_dir" && as_dir=.
  1652. # Account for people who put trailing slashes in PATH elements.
  1653. case $as_dir/ in
  1654. ./ | .// | /cC/* | \
  1655. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1656. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1657. /usr/ucb/* ) ;;
  1658. *)
  1659. # OSF1 and SCO ODT 3.0 have their own names for install.
  1660. # Don't use installbsd from OSF since it installs stuff as root
  1661. # by default.
  1662. for ac_prog in ginstall scoinst install; do
  1663. for ac_exec_ext in '' $ac_executable_extensions; do
  1664. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1665. if test $ac_prog = install &&
  1666. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1667. # AIX install. It has an incompatible calling convention.
  1668. :
  1669. elif test $ac_prog = install &&
  1670. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1671. # program-specific install script used by HP pwplus--don't use.
  1672. :
  1673. else
  1674. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1675. break 3
  1676. fi
  1677. fi
  1678. done
  1679. done
  1680. ;;
  1681. esac
  1682. done
  1683. IFS=$as_save_IFS
  1684. fi
  1685. if test "${ac_cv_path_install+set}" = set; then
  1686. INSTALL=$ac_cv_path_install
  1687. else
  1688. # As a last resort, use the slow shell script. Don't cache a
  1689. # value for INSTALL within a source directory, because that will
  1690. # break other packages using the cache if that directory is
  1691. # removed, or if the value is a relative name.
  1692. INSTALL=$ac_install_sh
  1693. fi
  1694. fi
  1695. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1696. echo "${ECHO_T}$INSTALL" >&6; }
  1697. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1698. # It thinks the first close brace ends the variable substitution.
  1699. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1700. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1701. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1702. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1703. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1704. # Just in case
  1705. sleep 1
  1706. echo timestamp > conftest.file
  1707. # Do `set' in a subshell so we don't clobber the current shell's
  1708. # arguments. Must try -L first in case configure is actually a
  1709. # symlink; some systems play weird games with the mod time of symlinks
  1710. # (eg FreeBSD returns the mod time of the symlink's containing
  1711. # directory).
  1712. if (
  1713. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1714. if test "$*" = "X"; then
  1715. # -L didn't work.
  1716. set X `ls -t $srcdir/configure conftest.file`
  1717. fi
  1718. rm -f conftest.file
  1719. if test "$*" != "X $srcdir/configure conftest.file" \
  1720. && test "$*" != "X conftest.file $srcdir/configure"; then
  1721. # If neither matched, then we have a broken ls. This can happen
  1722. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1723. # broken ls alias from the environment. This has actually
  1724. # happened. Such a system could not be considered "sane".
  1725. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1726. alias in your environment" >&5
  1727. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1728. alias in your environment" >&2;}
  1729. { (exit 1); exit 1; }; }
  1730. fi
  1731. test "$2" = conftest.file
  1732. )
  1733. then
  1734. # Ok.
  1735. :
  1736. else
  1737. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1738. Check your system clock" >&5
  1739. echo "$as_me: error: newly created file is older than distributed files!
  1740. Check your system clock" >&2;}
  1741. { (exit 1); exit 1; }; }
  1742. fi
  1743. { echo "$as_me:$LINENO: result: yes" >&5
  1744. echo "${ECHO_T}yes" >&6; }
  1745. test "$program_prefix" != NONE &&
  1746. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1747. # Use a double $ so make ignores it.
  1748. test "$program_suffix" != NONE &&
  1749. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1750. # Double any \ or $. echo might interpret backslashes.
  1751. # By default was `s,x,x', remove it if useless.
  1752. cat <<\_ACEOF >conftest.sed
  1753. s/[\\$]/&&/g;s/;s,x,x,$//
  1754. _ACEOF
  1755. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1756. rm -f conftest.sed
  1757. # expand $ac_aux_dir to an absolute path
  1758. am_aux_dir=`cd $ac_aux_dir && pwd`
  1759. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1760. # Use eval to expand $SHELL
  1761. if eval "$MISSING --run true"; then
  1762. am_missing_run="$MISSING --run "
  1763. else
  1764. am_missing_run=
  1765. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1766. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1767. fi
  1768. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1769. # We used to keeping the `.' as first argument, in order to
  1770. # allow $(mkdir_p) to be used without argument. As in
  1771. # $(mkdir_p) $(somedir)
  1772. # where $(somedir) is conditionally defined. However this is wrong
  1773. # for two reasons:
  1774. # 1. if the package is installed by a user who cannot write `.'
  1775. # make install will fail,
  1776. # 2. the above comment should most certainly read
  1777. # $(mkdir_p) $(DESTDIR)$(somedir)
  1778. # so it does not work when $(somedir) is undefined and
  1779. # $(DESTDIR) is not.
  1780. # To support the latter case, we have to write
  1781. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1782. # so the `.' trick is pointless.
  1783. mkdir_p='mkdir -p --'
  1784. else
  1785. # On NextStep and OpenStep, the `mkdir' command does not
  1786. # recognize any option. It will interpret all options as
  1787. # directories to create, and then abort because `.' already
  1788. # exists.
  1789. for d in ./-p ./--version;
  1790. do
  1791. test -d $d && rmdir $d
  1792. done
  1793. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1794. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1795. mkdir_p='$(mkinstalldirs)'
  1796. else
  1797. mkdir_p='$(install_sh) -d'
  1798. fi
  1799. fi
  1800. for ac_prog in gawk mawk nawk awk
  1801. do
  1802. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1803. set dummy $ac_prog; ac_word=$2
  1804. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1805. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1806. if test "${ac_cv_prog_AWK+set}" = set; then
  1807. echo $ECHO_N "(cached) $ECHO_C" >&6
  1808. else
  1809. if test -n "$AWK"; then
  1810. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1811. else
  1812. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1813. for as_dir in $PATH
  1814. do
  1815. IFS=$as_save_IFS
  1816. test -z "$as_dir" && as_dir=.
  1817. for ac_exec_ext in '' $ac_executable_extensions; do
  1818. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1819. ac_cv_prog_AWK="$ac_prog"
  1820. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1821. break 2
  1822. fi
  1823. done
  1824. done
  1825. IFS=$as_save_IFS
  1826. fi
  1827. fi
  1828. AWK=$ac_cv_prog_AWK
  1829. if test -n "$AWK"; then
  1830. { echo "$as_me:$LINENO: result: $AWK" >&5
  1831. echo "${ECHO_T}$AWK" >&6; }
  1832. else
  1833. { echo "$as_me:$LINENO: result: no" >&5
  1834. echo "${ECHO_T}no" >&6; }
  1835. fi
  1836. test -n "$AWK" && break
  1837. done
  1838. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1839. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1840. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1841. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1842. echo $ECHO_N "(cached) $ECHO_C" >&6
  1843. else
  1844. cat >conftest.make <<\_ACEOF
  1845. SHELL = /bin/sh
  1846. all:
  1847. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1848. _ACEOF
  1849. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1850. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1851. *@@@%%%=?*=@@@%%%*)
  1852. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1853. *)
  1854. eval ac_cv_prog_make_${ac_make}_set=no;;
  1855. esac
  1856. rm -f conftest.make
  1857. fi
  1858. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1859. { echo "$as_me:$LINENO: result: yes" >&5
  1860. echo "${ECHO_T}yes" >&6; }
  1861. SET_MAKE=
  1862. else
  1863. { echo "$as_me:$LINENO: result: no" >&5
  1864. echo "${ECHO_T}no" >&6; }
  1865. SET_MAKE="MAKE=${MAKE-make}"
  1866. fi
  1867. rm -rf .tst 2>/dev/null
  1868. mkdir .tst 2>/dev/null
  1869. if test -d .tst; then
  1870. am__leading_dot=.
  1871. else
  1872. am__leading_dot=_
  1873. fi
  1874. rmdir .tst 2>/dev/null
  1875. # test to see if srcdir already configured
  1876. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1877. test -f $srcdir/config.status; then
  1878. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1879. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1880. { (exit 1); exit 1; }; }
  1881. fi
  1882. # test whether we have cygpath
  1883. if test -z "$CYGPATH_W"; then
  1884. if (cygpath --version) >/dev/null 2>/dev/null; then
  1885. CYGPATH_W='cygpath -w'
  1886. else
  1887. CYGPATH_W=echo
  1888. fi
  1889. fi
  1890. # Define the identity of the package.
  1891. PACKAGE='aria2c'
  1892. VERSION='0.9.0'
  1893. cat >>confdefs.h <<_ACEOF
  1894. #define PACKAGE "$PACKAGE"
  1895. _ACEOF
  1896. cat >>confdefs.h <<_ACEOF
  1897. #define VERSION "$VERSION"
  1898. _ACEOF
  1899. # Some tools Automake needs.
  1900. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  1901. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  1902. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  1903. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  1904. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  1905. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  1906. # Installed binaries are usually stripped using `strip' when the user
  1907. # run `make install-strip'. However `strip' might not be the right
  1908. # tool to use in cross-compilation environments, therefore Automake
  1909. # will honor the `STRIP' environment variable to overrule this program.
  1910. if test "$cross_compiling" != no; then
  1911. if test -n "$ac_tool_prefix"; then
  1912. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  1913. set dummy ${ac_tool_prefix}strip; ac_word=$2
  1914. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1915. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1916. if test "${ac_cv_prog_STRIP+set}" = set; then
  1917. echo $ECHO_N "(cached) $ECHO_C" >&6
  1918. else
  1919. if test -n "$STRIP"; then
  1920. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  1921. else
  1922. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1923. for as_dir in $PATH
  1924. do
  1925. IFS=$as_save_IFS
  1926. test -z "$as_dir" && as_dir=.
  1927. for ac_exec_ext in '' $ac_executable_extensions; do
  1928. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1929. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  1930. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1931. break 2
  1932. fi
  1933. done
  1934. done
  1935. IFS=$as_save_IFS
  1936. fi
  1937. fi
  1938. STRIP=$ac_cv_prog_STRIP
  1939. if test -n "$STRIP"; then
  1940. { echo "$as_me:$LINENO: result: $STRIP" >&5
  1941. echo "${ECHO_T}$STRIP" >&6; }
  1942. else
  1943. { echo "$as_me:$LINENO: result: no" >&5
  1944. echo "${ECHO_T}no" >&6; }
  1945. fi
  1946. fi
  1947. if test -z "$ac_cv_prog_STRIP"; then
  1948. ac_ct_STRIP=$STRIP
  1949. # Extract the first word of "strip", so it can be a program name with args.
  1950. set dummy strip; ac_word=$2
  1951. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1952. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1953. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  1954. echo $ECHO_N "(cached) $ECHO_C" >&6
  1955. else
  1956. if test -n "$ac_ct_STRIP"; then
  1957. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  1958. else
  1959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1960. for as_dir in $PATH
  1961. do
  1962. IFS=$as_save_IFS
  1963. test -z "$as_dir" && as_dir=.
  1964. for ac_exec_ext in '' $ac_executable_extensions; do
  1965. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1966. ac_cv_prog_ac_ct_STRIP="strip"
  1967. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1968. break 2
  1969. fi
  1970. done
  1971. done
  1972. IFS=$as_save_IFS
  1973. fi
  1974. fi
  1975. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  1976. if test -n "$ac_ct_STRIP"; then
  1977. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  1978. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  1979. else
  1980. { echo "$as_me:$LINENO: result: no" >&5
  1981. echo "${ECHO_T}no" >&6; }
  1982. fi
  1983. if test "x$ac_ct_STRIP" = x; then
  1984. STRIP=":"
  1985. else
  1986. case $cross_compiling:$ac_tool_warned in
  1987. yes:)
  1988. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1989. whose name does not start with the host triplet. If you think this
  1990. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1991. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1992. whose name does not start with the host triplet. If you think this
  1993. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1994. ac_tool_warned=yes ;;
  1995. esac
  1996. STRIP=$ac_ct_STRIP
  1997. fi
  1998. else
  1999. STRIP="$ac_cv_prog_STRIP"
  2000. fi
  2001. fi
  2002. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2003. # We need awk for the "check" target. The system "awk" is bad on
  2004. # some platforms.
  2005. # Always define AMTAR for backward compatibility.
  2006. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2007. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2008. # Check whether --with-cppunit-prefix was given.
  2009. if test "${with_cppunit_prefix+set}" = set; then
  2010. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2011. else
  2012. cppunit_config_prefix=""
  2013. fi
  2014. # Check whether --with-cppunit-exec-prefix was given.
  2015. if test "${with_cppunit_exec_prefix+set}" = set; then
  2016. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2017. else
  2018. cppunit_config_exec_prefix=""
  2019. fi
  2020. if test x$cppunit_config_exec_prefix != x ; then
  2021. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2022. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2023. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2024. fi
  2025. fi
  2026. if test x$cppunit_config_prefix != x ; then
  2027. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2028. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2029. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2030. fi
  2031. fi
  2032. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2033. set dummy cppunit-config; ac_word=$2
  2034. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2035. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2036. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2037. echo $ECHO_N "(cached) $ECHO_C" >&6
  2038. else
  2039. case $CPPUNIT_CONFIG in
  2040. [\\/]* | ?:[\\/]*)
  2041. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2042. ;;
  2043. *)
  2044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2045. for as_dir in $PATH
  2046. do
  2047. IFS=$as_save_IFS
  2048. test -z "$as_dir" && as_dir=.
  2049. for ac_exec_ext in '' $ac_executable_extensions; do
  2050. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2051. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2052. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2053. break 2
  2054. fi
  2055. done
  2056. done
  2057. IFS=$as_save_IFS
  2058. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2059. ;;
  2060. esac
  2061. fi
  2062. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2063. if test -n "$CPPUNIT_CONFIG"; then
  2064. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2065. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2066. else
  2067. { echo "$as_me:$LINENO: result: no" >&5
  2068. echo "${ECHO_T}no" >&6; }
  2069. fi
  2070. cppunit_version_min=1.10.2
  2071. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2072. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2073. no_cppunit=""
  2074. if test "$CPPUNIT_CONFIG" = "no" ; then
  2075. { echo "$as_me:$LINENO: result: no" >&5
  2076. echo "${ECHO_T}no" >&6; }
  2077. no_cppunit=yes
  2078. else
  2079. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2080. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2081. cppunit_version=`$CPPUNIT_CONFIG --version`
  2082. cppunit_major_version=`echo $cppunit_version | \
  2083. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2084. cppunit_minor_version=`echo $cppunit_version | \
  2085. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2086. cppunit_micro_version=`echo $cppunit_version | \
  2087. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2088. cppunit_major_min=`echo $cppunit_version_min | \
  2089. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2090. if test "x${cppunit_major_min}" = "x" ; then
  2091. cppunit_major_min=0
  2092. fi
  2093. cppunit_minor_min=`echo $cppunit_version_min | \
  2094. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2095. if test "x${cppunit_minor_min}" = "x" ; then
  2096. cppunit_minor_min=0
  2097. fi
  2098. cppunit_micro_min=`echo $cppunit_version_min | \
  2099. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2100. if test "x${cppunit_micro_min}" = "x" ; then
  2101. cppunit_micro_min=0
  2102. fi
  2103. cppunit_version_proper=`expr \
  2104. $cppunit_major_version \> $cppunit_major_min \| \
  2105. $cppunit_major_version \= $cppunit_major_min \& \
  2106. $cppunit_minor_version \> $cppunit_minor_min \| \
  2107. $cppunit_major_version \= $cppunit_major_min \& \
  2108. $cppunit_minor_version \= $cppunit_minor_min \& \
  2109. $cppunit_micro_version \>= $cppunit_micro_min `
  2110. if test "$cppunit_version_proper" = "1" ; then
  2111. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2112. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2113. else
  2114. { echo "$as_me:$LINENO: result: no" >&5
  2115. echo "${ECHO_T}no" >&6; }
  2116. no_cppunit=yes
  2117. fi
  2118. fi
  2119. if test "x$no_cppunit" = x ; then
  2120. :
  2121. else
  2122. CPPUNIT_CFLAGS=""
  2123. CPPUNIT_LIBS=""
  2124. :
  2125. fi
  2126. ac_config_headers="$ac_config_headers config.h"
  2127. # Set localedir
  2128. localedir=${datadir}/locale
  2129. # Checks for arguments.
  2130. # Check whether --with-gnutls was given.
  2131. if test "${with_gnutls+set}" = set; then
  2132. withval=$with_gnutls; with_gnutls=$withval
  2133. else
  2134. with_gnutls=yes
  2135. fi
  2136. # Check whether --with-openssl was given.
  2137. if test "${with_openssl+set}" = set; then
  2138. withval=$with_openssl; with_openssl=$withval
  2139. else
  2140. with_openssl=yes
  2141. fi
  2142. # Check whether --with-libxml2 was given.
  2143. if test "${with_libxml2+set}" = set; then
  2144. withval=$with_libxml2; with_libxml2=$withval
  2145. else
  2146. with_libxml2=yes
  2147. fi
  2148. # Check whether --with-libares was given.
  2149. if test "${with_libares+set}" = set; then
  2150. withval=$with_libares; with_libares=$withval
  2151. else
  2152. with_libares=yes
  2153. fi
  2154. # Check whether --with-libcares was given.
  2155. if test "${with_libcares+set}" = set; then
  2156. withval=$with_libcares; with_libcares=$withval
  2157. else
  2158. with_libcares=yes
  2159. fi
  2160. # Check whether --enable-bittorrent was given.
  2161. if test "${enable_bittorrent+set}" = set; then
  2162. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2163. else
  2164. enable_bittorrent=yes
  2165. fi
  2166. # Check whether --enable-metalink was given.
  2167. if test "${enable_metalink+set}" = set; then
  2168. enableval=$enable_metalink; enable_metalink=$enableval
  2169. else
  2170. enable_metalink=yes
  2171. fi
  2172. # Checks for programs.
  2173. ac_ext=cpp
  2174. ac_cpp='$CXXCPP $CPPFLAGS'
  2175. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2176. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2177. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2178. if test -z "$CXX"; then
  2179. if test -n "$CCC"; then
  2180. CXX=$CCC
  2181. else
  2182. if test -n "$ac_tool_prefix"; then
  2183. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2184. do
  2185. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2186. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2187. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2188. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2189. if test "${ac_cv_prog_CXX+set}" = set; then
  2190. echo $ECHO_N "(cached) $ECHO_C" >&6
  2191. else
  2192. if test -n "$CXX"; then
  2193. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2194. else
  2195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2196. for as_dir in $PATH
  2197. do
  2198. IFS=$as_save_IFS
  2199. test -z "$as_dir" && as_dir=.
  2200. for ac_exec_ext in '' $ac_executable_extensions; do
  2201. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2202. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2203. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2204. break 2
  2205. fi
  2206. done
  2207. done
  2208. IFS=$as_save_IFS
  2209. fi
  2210. fi
  2211. CXX=$ac_cv_prog_CXX
  2212. if test -n "$CXX"; then
  2213. { echo "$as_me:$LINENO: result: $CXX" >&5
  2214. echo "${ECHO_T}$CXX" >&6; }
  2215. else
  2216. { echo "$as_me:$LINENO: result: no" >&5
  2217. echo "${ECHO_T}no" >&6; }
  2218. fi
  2219. test -n "$CXX" && break
  2220. done
  2221. fi
  2222. if test -z "$CXX"; then
  2223. ac_ct_CXX=$CXX
  2224. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2225. do
  2226. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2227. set dummy $ac_prog; ac_word=$2
  2228. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2229. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2230. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2231. echo $ECHO_N "(cached) $ECHO_C" >&6
  2232. else
  2233. if test -n "$ac_ct_CXX"; then
  2234. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2235. else
  2236. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2237. for as_dir in $PATH
  2238. do
  2239. IFS=$as_save_IFS
  2240. test -z "$as_dir" && as_dir=.
  2241. for ac_exec_ext in '' $ac_executable_extensions; do
  2242. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2243. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2244. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2245. break 2
  2246. fi
  2247. done
  2248. done
  2249. IFS=$as_save_IFS
  2250. fi
  2251. fi
  2252. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2253. if test -n "$ac_ct_CXX"; then
  2254. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2255. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2256. else
  2257. { echo "$as_me:$LINENO: result: no" >&5
  2258. echo "${ECHO_T}no" >&6; }
  2259. fi
  2260. test -n "$ac_ct_CXX" && break
  2261. done
  2262. if test "x$ac_ct_CXX" = x; then
  2263. CXX="g++"
  2264. else
  2265. case $cross_compiling:$ac_tool_warned in
  2266. yes:)
  2267. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2268. whose name does not start with the host triplet. If you think this
  2269. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2270. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2271. whose name does not start with the host triplet. If you think this
  2272. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2273. ac_tool_warned=yes ;;
  2274. esac
  2275. CXX=$ac_ct_CXX
  2276. fi
  2277. fi
  2278. fi
  2279. fi
  2280. # Provide some information about the compiler.
  2281. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2282. ac_compiler=`set X $ac_compile; echo $2`
  2283. { (ac_try="$ac_compiler --version >&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 --version >&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. { (ac_try="$ac_compiler -V >&5"
  2304. case "(($ac_try" in
  2305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2306. *) ac_try_echo=$ac_try;;
  2307. esac
  2308. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2309. (eval "$ac_compiler -V >&5") 2>&5
  2310. ac_status=$?
  2311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2312. (exit $ac_status); }
  2313. cat >conftest.$ac_ext <<_ACEOF
  2314. /* confdefs.h. */
  2315. _ACEOF
  2316. cat confdefs.h >>conftest.$ac_ext
  2317. cat >>conftest.$ac_ext <<_ACEOF
  2318. /* end confdefs.h. */
  2319. int
  2320. main ()
  2321. {
  2322. ;
  2323. return 0;
  2324. }
  2325. _ACEOF
  2326. ac_clean_files_save=$ac_clean_files
  2327. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2328. # Try to create an executable without -o first, disregard a.out.
  2329. # It will help us diagnose broken compilers, and finding out an intuition
  2330. # of exeext.
  2331. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2332. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2333. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2334. #
  2335. # List of possible output files, starting from the most likely.
  2336. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2337. # only as a last resort. b.out is created by i960 compilers.
  2338. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2339. #
  2340. # The IRIX 6 linker writes into existing files which may not be
  2341. # executable, retaining their permissions. Remove them first so a
  2342. # subsequent execution test works.
  2343. ac_rmfiles=
  2344. for ac_file in $ac_files
  2345. do
  2346. case $ac_file in
  2347. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2348. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2349. esac
  2350. done
  2351. rm -f $ac_rmfiles
  2352. if { (ac_try="$ac_link_default"
  2353. case "(($ac_try" in
  2354. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2355. *) ac_try_echo=$ac_try;;
  2356. esac
  2357. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2358. (eval "$ac_link_default") 2>&5
  2359. ac_status=$?
  2360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2361. (exit $ac_status); }; then
  2362. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2363. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2364. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2365. # so that the user can short-circuit this test for compilers unknown to
  2366. # Autoconf.
  2367. for ac_file in $ac_files ''
  2368. do
  2369. test -f "$ac_file" || continue
  2370. case $ac_file in
  2371. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2372. ;;
  2373. [ab].out )
  2374. # We found the default executable, but exeext='' is most
  2375. # certainly right.
  2376. break;;
  2377. *.* )
  2378. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2379. then :; else
  2380. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2381. fi
  2382. # We set ac_cv_exeext here because the later test for it is not
  2383. # safe: cross compilers may not add the suffix if given an `-o'
  2384. # argument, so we may need to know it at that point already.
  2385. # Even if this section looks crufty: it has the advantage of
  2386. # actually working.
  2387. break;;
  2388. * )
  2389. break;;
  2390. esac
  2391. done
  2392. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2393. else
  2394. ac_file=''
  2395. fi
  2396. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2397. echo "${ECHO_T}$ac_file" >&6; }
  2398. if test -z "$ac_file"; then
  2399. echo "$as_me: failed program was:" >&5
  2400. sed 's/^/| /' conftest.$ac_ext >&5
  2401. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2402. See \`config.log' for more details." >&5
  2403. echo "$as_me: error: C++ compiler cannot create executables
  2404. See \`config.log' for more details." >&2;}
  2405. { (exit 77); exit 77; }; }
  2406. fi
  2407. ac_exeext=$ac_cv_exeext
  2408. # Check that the compiler produces executables we can run. If not, either
  2409. # the compiler is broken, or we cross compile.
  2410. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2411. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2412. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2413. # If not cross compiling, check that we can run a simple program.
  2414. if test "$cross_compiling" != yes; then
  2415. if { ac_try='./$ac_file'
  2416. { (case "(($ac_try" in
  2417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2418. *) ac_try_echo=$ac_try;;
  2419. esac
  2420. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2421. (eval "$ac_try") 2>&5
  2422. ac_status=$?
  2423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2424. (exit $ac_status); }; }; then
  2425. cross_compiling=no
  2426. else
  2427. if test "$cross_compiling" = maybe; then
  2428. cross_compiling=yes
  2429. else
  2430. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2431. If you meant to cross compile, use \`--host'.
  2432. See \`config.log' for more details." >&5
  2433. echo "$as_me: error: cannot run C++ compiled programs.
  2434. If you meant to cross compile, use \`--host'.
  2435. See \`config.log' for more details." >&2;}
  2436. { (exit 1); exit 1; }; }
  2437. fi
  2438. fi
  2439. fi
  2440. { echo "$as_me:$LINENO: result: yes" >&5
  2441. echo "${ECHO_T}yes" >&6; }
  2442. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2443. ac_clean_files=$ac_clean_files_save
  2444. # Check that the compiler produces executables we can run. If not, either
  2445. # the compiler is broken, or we cross compile.
  2446. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2447. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2448. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2449. echo "${ECHO_T}$cross_compiling" >&6; }
  2450. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2451. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2452. if { (ac_try="$ac_link"
  2453. case "(($ac_try" in
  2454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2455. *) ac_try_echo=$ac_try;;
  2456. esac
  2457. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2458. (eval "$ac_link") 2>&5
  2459. ac_status=$?
  2460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2461. (exit $ac_status); }; then
  2462. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2463. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2464. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2465. # `rm'.
  2466. for ac_file in conftest.exe conftest conftest.*; do
  2467. test -f "$ac_file" || continue
  2468. case $ac_file in
  2469. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2470. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2471. break;;
  2472. * ) break;;
  2473. esac
  2474. done
  2475. else
  2476. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2477. See \`config.log' for more details." >&5
  2478. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2479. See \`config.log' for more details." >&2;}
  2480. { (exit 1); exit 1; }; }
  2481. fi
  2482. rm -f conftest$ac_cv_exeext
  2483. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2484. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2485. rm -f conftest.$ac_ext
  2486. EXEEXT=$ac_cv_exeext
  2487. ac_exeext=$EXEEXT
  2488. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2489. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2490. if test "${ac_cv_objext+set}" = set; then
  2491. echo $ECHO_N "(cached) $ECHO_C" >&6
  2492. else
  2493. cat >conftest.$ac_ext <<_ACEOF
  2494. /* confdefs.h. */
  2495. _ACEOF
  2496. cat confdefs.h >>conftest.$ac_ext
  2497. cat >>conftest.$ac_ext <<_ACEOF
  2498. /* end confdefs.h. */
  2499. int
  2500. main ()
  2501. {
  2502. ;
  2503. return 0;
  2504. }
  2505. _ACEOF
  2506. rm -f conftest.o conftest.obj
  2507. if { (ac_try="$ac_compile"
  2508. case "(($ac_try" in
  2509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2510. *) ac_try_echo=$ac_try;;
  2511. esac
  2512. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2513. (eval "$ac_compile") 2>&5
  2514. ac_status=$?
  2515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2516. (exit $ac_status); }; then
  2517. for ac_file in conftest.o conftest.obj conftest.*; do
  2518. test -f "$ac_file" || continue;
  2519. case $ac_file in
  2520. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2521. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2522. break;;
  2523. esac
  2524. done
  2525. else
  2526. echo "$as_me: failed program was:" >&5
  2527. sed 's/^/| /' conftest.$ac_ext >&5
  2528. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2529. See \`config.log' for more details." >&5
  2530. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2531. See \`config.log' for more details." >&2;}
  2532. { (exit 1); exit 1; }; }
  2533. fi
  2534. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2535. fi
  2536. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2537. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2538. OBJEXT=$ac_cv_objext
  2539. ac_objext=$OBJEXT
  2540. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2541. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2542. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2543. echo $ECHO_N "(cached) $ECHO_C" >&6
  2544. else
  2545. cat >conftest.$ac_ext <<_ACEOF
  2546. /* confdefs.h. */
  2547. _ACEOF
  2548. cat confdefs.h >>conftest.$ac_ext
  2549. cat >>conftest.$ac_ext <<_ACEOF
  2550. /* end confdefs.h. */
  2551. int
  2552. main ()
  2553. {
  2554. #ifndef __GNUC__
  2555. choke me
  2556. #endif
  2557. ;
  2558. return 0;
  2559. }
  2560. _ACEOF
  2561. rm -f conftest.$ac_objext
  2562. if { (ac_try="$ac_compile"
  2563. case "(($ac_try" in
  2564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2565. *) ac_try_echo=$ac_try;;
  2566. esac
  2567. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2568. (eval "$ac_compile") 2>conftest.er1
  2569. ac_status=$?
  2570. grep -v '^ *+' conftest.er1 >conftest.err
  2571. rm -f conftest.er1
  2572. cat conftest.err >&5
  2573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2574. (exit $ac_status); } && {
  2575. test -z "$ac_cxx_werror_flag" ||
  2576. test ! -s conftest.err
  2577. } && test -s conftest.$ac_objext; then
  2578. ac_compiler_gnu=yes
  2579. else
  2580. echo "$as_me: failed program was:" >&5
  2581. sed 's/^/| /' conftest.$ac_ext >&5
  2582. ac_compiler_gnu=no
  2583. fi
  2584. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2585. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2586. fi
  2587. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2588. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2589. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2590. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2591. ac_save_CXXFLAGS=$CXXFLAGS
  2592. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2593. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2594. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2595. echo $ECHO_N "(cached) $ECHO_C" >&6
  2596. else
  2597. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2598. ac_cxx_werror_flag=yes
  2599. ac_cv_prog_cxx_g=no
  2600. CXXFLAGS="-g"
  2601. cat >conftest.$ac_ext <<_ACEOF
  2602. /* confdefs.h. */
  2603. _ACEOF
  2604. cat confdefs.h >>conftest.$ac_ext
  2605. cat >>conftest.$ac_ext <<_ACEOF
  2606. /* end confdefs.h. */
  2607. int
  2608. main ()
  2609. {
  2610. ;
  2611. return 0;
  2612. }
  2613. _ACEOF
  2614. rm -f conftest.$ac_objext
  2615. if { (ac_try="$ac_compile"
  2616. case "(($ac_try" in
  2617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2618. *) ac_try_echo=$ac_try;;
  2619. esac
  2620. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2621. (eval "$ac_compile") 2>conftest.er1
  2622. ac_status=$?
  2623. grep -v '^ *+' conftest.er1 >conftest.err
  2624. rm -f conftest.er1
  2625. cat conftest.err >&5
  2626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2627. (exit $ac_status); } && {
  2628. test -z "$ac_cxx_werror_flag" ||
  2629. test ! -s conftest.err
  2630. } && test -s conftest.$ac_objext; then
  2631. ac_cv_prog_cxx_g=yes
  2632. else
  2633. echo "$as_me: failed program was:" >&5
  2634. sed 's/^/| /' conftest.$ac_ext >&5
  2635. CXXFLAGS=""
  2636. cat >conftest.$ac_ext <<_ACEOF
  2637. /* confdefs.h. */
  2638. _ACEOF
  2639. cat confdefs.h >>conftest.$ac_ext
  2640. cat >>conftest.$ac_ext <<_ACEOF
  2641. /* end confdefs.h. */
  2642. int
  2643. main ()
  2644. {
  2645. ;
  2646. return 0;
  2647. }
  2648. _ACEOF
  2649. rm -f conftest.$ac_objext
  2650. if { (ac_try="$ac_compile"
  2651. case "(($ac_try" in
  2652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2653. *) ac_try_echo=$ac_try;;
  2654. esac
  2655. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2656. (eval "$ac_compile") 2>conftest.er1
  2657. ac_status=$?
  2658. grep -v '^ *+' conftest.er1 >conftest.err
  2659. rm -f conftest.er1
  2660. cat conftest.err >&5
  2661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2662. (exit $ac_status); } && {
  2663. test -z "$ac_cxx_werror_flag" ||
  2664. test ! -s conftest.err
  2665. } && test -s conftest.$ac_objext; then
  2666. :
  2667. else
  2668. echo "$as_me: failed program was:" >&5
  2669. sed 's/^/| /' conftest.$ac_ext >&5
  2670. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2671. CXXFLAGS="-g"
  2672. cat >conftest.$ac_ext <<_ACEOF
  2673. /* confdefs.h. */
  2674. _ACEOF
  2675. cat confdefs.h >>conftest.$ac_ext
  2676. cat >>conftest.$ac_ext <<_ACEOF
  2677. /* end confdefs.h. */
  2678. int
  2679. main ()
  2680. {
  2681. ;
  2682. return 0;
  2683. }
  2684. _ACEOF
  2685. rm -f conftest.$ac_objext
  2686. if { (ac_try="$ac_compile"
  2687. case "(($ac_try" in
  2688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2689. *) ac_try_echo=$ac_try;;
  2690. esac
  2691. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2692. (eval "$ac_compile") 2>conftest.er1
  2693. ac_status=$?
  2694. grep -v '^ *+' conftest.er1 >conftest.err
  2695. rm -f conftest.er1
  2696. cat conftest.err >&5
  2697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2698. (exit $ac_status); } && {
  2699. test -z "$ac_cxx_werror_flag" ||
  2700. test ! -s conftest.err
  2701. } && test -s conftest.$ac_objext; then
  2702. ac_cv_prog_cxx_g=yes
  2703. else
  2704. echo "$as_me: failed program was:" >&5
  2705. sed 's/^/| /' conftest.$ac_ext >&5
  2706. fi
  2707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2708. fi
  2709. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2710. fi
  2711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2712. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2713. fi
  2714. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2715. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2716. if test "$ac_test_CXXFLAGS" = set; then
  2717. CXXFLAGS=$ac_save_CXXFLAGS
  2718. elif test $ac_cv_prog_cxx_g = yes; then
  2719. if test "$GXX" = yes; then
  2720. CXXFLAGS="-g -O2"
  2721. else
  2722. CXXFLAGS="-g"
  2723. fi
  2724. else
  2725. if test "$GXX" = yes; then
  2726. CXXFLAGS="-O2"
  2727. else
  2728. CXXFLAGS=
  2729. fi
  2730. fi
  2731. ac_ext=c
  2732. ac_cpp='$CPP $CPPFLAGS'
  2733. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2734. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2735. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2736. DEPDIR="${am__leading_dot}deps"
  2737. ac_config_commands="$ac_config_commands depfiles"
  2738. am_make=${MAKE-make}
  2739. cat > confinc << 'END'
  2740. am__doit:
  2741. @echo done
  2742. .PHONY: am__doit
  2743. END
  2744. # If we don't find an include directive, just comment out the code.
  2745. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2746. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2747. am__include="#"
  2748. am__quote=
  2749. _am_result=none
  2750. # First try GNU make style include.
  2751. echo "include confinc" > confmf
  2752. # We grep out `Entering directory' and `Leaving directory'
  2753. # messages which can occur if `w' ends up in MAKEFLAGS.
  2754. # In particular we don't look at `^make:' because GNU make might
  2755. # be invoked under some other name (usually "gmake"), in which
  2756. # case it prints its new name instead of `make'.
  2757. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2758. am__include=include
  2759. am__quote=
  2760. _am_result=GNU
  2761. fi
  2762. # Now try BSD make style include.
  2763. if test "$am__include" = "#"; then
  2764. echo '.include "confinc"' > confmf
  2765. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2766. am__include=.include
  2767. am__quote="\""
  2768. _am_result=BSD
  2769. fi
  2770. fi
  2771. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2772. echo "${ECHO_T}$_am_result" >&6; }
  2773. rm -f confinc confmf
  2774. # Check whether --enable-dependency-tracking was given.
  2775. if test "${enable_dependency_tracking+set}" = set; then
  2776. enableval=$enable_dependency_tracking;
  2777. fi
  2778. if test "x$enable_dependency_tracking" != xno; then
  2779. am_depcomp="$ac_aux_dir/depcomp"
  2780. AMDEPBACKSLASH='\'
  2781. fi
  2782. if test "x$enable_dependency_tracking" != xno; then
  2783. AMDEP_TRUE=
  2784. AMDEP_FALSE='#'
  2785. else
  2786. AMDEP_TRUE='#'
  2787. AMDEP_FALSE=
  2788. fi
  2789. depcc="$CXX" am_compiler_list=
  2790. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2791. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2792. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2793. echo $ECHO_N "(cached) $ECHO_C" >&6
  2794. else
  2795. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2796. # We make a subdir and do the tests there. Otherwise we can end up
  2797. # making bogus files that we don't know about and never remove. For
  2798. # instance it was reported that on HP-UX the gcc test will end up
  2799. # making a dummy file named `D' -- because `-MD' means `put the output
  2800. # in D'.
  2801. mkdir conftest.dir
  2802. # Copy depcomp to subdir because otherwise we won't find it if we're
  2803. # using a relative directory.
  2804. cp "$am_depcomp" conftest.dir
  2805. cd conftest.dir
  2806. # We will build objects and dependencies in a subdirectory because
  2807. # it helps to detect inapplicable dependency modes. For instance
  2808. # both Tru64's cc and ICC support -MD to output dependencies as a
  2809. # side effect of compilation, but ICC will put the dependencies in
  2810. # the current directory while Tru64 will put them in the object
  2811. # directory.
  2812. mkdir sub
  2813. am_cv_CXX_dependencies_compiler_type=none
  2814. if test "$am_compiler_list" = ""; then
  2815. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2816. fi
  2817. for depmode in $am_compiler_list; do
  2818. # Setup a source with many dependencies, because some compilers
  2819. # like to wrap large dependency lists on column 80 (with \), and
  2820. # we should not choose a depcomp mode which is confused by this.
  2821. #
  2822. # We need to recreate these files for each test, as the compiler may
  2823. # overwrite some of them when testing with obscure command lines.
  2824. # This happens at least with the AIX C compiler.
  2825. : > sub/conftest.c
  2826. for i in 1 2 3 4 5 6; do
  2827. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2828. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2829. # Solaris 8's {/usr,}/bin/sh.
  2830. touch sub/conftst$i.h
  2831. done
  2832. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2833. case $depmode in
  2834. nosideeffect)
  2835. # after this tag, mechanisms are not by side-effect, so they'll
  2836. # only be used when explicitly requested
  2837. if test "x$enable_dependency_tracking" = xyes; then
  2838. continue
  2839. else
  2840. break
  2841. fi
  2842. ;;
  2843. none) break ;;
  2844. esac
  2845. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2846. # mode. It turns out that the SunPro C++ compiler does not properly
  2847. # handle `-M -o', and we need to detect this.
  2848. if depmode=$depmode \
  2849. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2850. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2851. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2852. >/dev/null 2>conftest.err &&
  2853. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2854. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2855. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2856. # icc doesn't choke on unknown options, it will just issue warnings
  2857. # or remarks (even with -Werror). So we grep stderr for any message
  2858. # that says an option was ignored or not supported.
  2859. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2860. # icc: Command line warning: ignoring option '-M'; no argument required
  2861. # The diagnosis changed in icc 8.0:
  2862. # icc: Command line remark: option '-MP' not supported
  2863. if (grep 'ignoring option' conftest.err ||
  2864. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  2865. am_cv_CXX_dependencies_compiler_type=$depmode
  2866. break
  2867. fi
  2868. fi
  2869. done
  2870. cd ..
  2871. rm -rf conftest.dir
  2872. else
  2873. am_cv_CXX_dependencies_compiler_type=none
  2874. fi
  2875. fi
  2876. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  2877. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  2878. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  2879. if
  2880. test "x$enable_dependency_tracking" != xno \
  2881. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  2882. am__fastdepCXX_TRUE=
  2883. am__fastdepCXX_FALSE='#'
  2884. else
  2885. am__fastdepCXX_TRUE='#'
  2886. am__fastdepCXX_FALSE=
  2887. fi
  2888. ac_ext=c
  2889. ac_cpp='$CPP $CPPFLAGS'
  2890. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2891. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2892. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2893. if test -n "$ac_tool_prefix"; then
  2894. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2895. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2896. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2897. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2898. if test "${ac_cv_prog_CC+set}" = set; then
  2899. echo $ECHO_N "(cached) $ECHO_C" >&6
  2900. else
  2901. if test -n "$CC"; then
  2902. ac_cv_prog_CC="$CC" # Let the user override the test.
  2903. else
  2904. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2905. for as_dir in $PATH
  2906. do
  2907. IFS=$as_save_IFS
  2908. test -z "$as_dir" && as_dir=.
  2909. for ac_exec_ext in '' $ac_executable_extensions; do
  2910. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2911. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2912. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2913. break 2
  2914. fi
  2915. done
  2916. done
  2917. IFS=$as_save_IFS
  2918. fi
  2919. fi
  2920. CC=$ac_cv_prog_CC
  2921. if test -n "$CC"; then
  2922. { echo "$as_me:$LINENO: result: $CC" >&5
  2923. echo "${ECHO_T}$CC" >&6; }
  2924. else
  2925. { echo "$as_me:$LINENO: result: no" >&5
  2926. echo "${ECHO_T}no" >&6; }
  2927. fi
  2928. fi
  2929. if test -z "$ac_cv_prog_CC"; then
  2930. ac_ct_CC=$CC
  2931. # Extract the first word of "gcc", so it can be a program name with args.
  2932. set dummy gcc; ac_word=$2
  2933. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2934. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2935. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2936. echo $ECHO_N "(cached) $ECHO_C" >&6
  2937. else
  2938. if test -n "$ac_ct_CC"; then
  2939. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2940. else
  2941. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2942. for as_dir in $PATH
  2943. do
  2944. IFS=$as_save_IFS
  2945. test -z "$as_dir" && as_dir=.
  2946. for ac_exec_ext in '' $ac_executable_extensions; do
  2947. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2948. ac_cv_prog_ac_ct_CC="gcc"
  2949. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2950. break 2
  2951. fi
  2952. done
  2953. done
  2954. IFS=$as_save_IFS
  2955. fi
  2956. fi
  2957. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2958. if test -n "$ac_ct_CC"; then
  2959. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2960. echo "${ECHO_T}$ac_ct_CC" >&6; }
  2961. else
  2962. { echo "$as_me:$LINENO: result: no" >&5
  2963. echo "${ECHO_T}no" >&6; }
  2964. fi
  2965. if test "x$ac_ct_CC" = x; then
  2966. CC=""
  2967. else
  2968. case $cross_compiling:$ac_tool_warned in
  2969. yes:)
  2970. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2971. whose name does not start with the host triplet. If you think this
  2972. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2973. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2974. whose name does not start with the host triplet. If you think this
  2975. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2976. ac_tool_warned=yes ;;
  2977. esac
  2978. CC=$ac_ct_CC
  2979. fi
  2980. else
  2981. CC="$ac_cv_prog_CC"
  2982. fi
  2983. if test -z "$CC"; then
  2984. if test -n "$ac_tool_prefix"; then
  2985. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2986. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2987. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2988. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2989. if test "${ac_cv_prog_CC+set}" = set; then
  2990. echo $ECHO_N "(cached) $ECHO_C" >&6
  2991. else
  2992. if test -n "$CC"; then
  2993. ac_cv_prog_CC="$CC" # Let the user override the test.
  2994. else
  2995. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2996. for as_dir in $PATH
  2997. do
  2998. IFS=$as_save_IFS
  2999. test -z "$as_dir" && as_dir=.
  3000. for ac_exec_ext in '' $ac_executable_extensions; do
  3001. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3002. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3003. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3004. break 2
  3005. fi
  3006. done
  3007. done
  3008. IFS=$as_save_IFS
  3009. fi
  3010. fi
  3011. CC=$ac_cv_prog_CC
  3012. if test -n "$CC"; then
  3013. { echo "$as_me:$LINENO: result: $CC" >&5
  3014. echo "${ECHO_T}$CC" >&6; }
  3015. else
  3016. { echo "$as_me:$LINENO: result: no" >&5
  3017. echo "${ECHO_T}no" >&6; }
  3018. fi
  3019. fi
  3020. fi
  3021. if test -z "$CC"; then
  3022. # Extract the first word of "cc", so it can be a program name with args.
  3023. set dummy cc; ac_word=$2
  3024. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3025. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3026. if test "${ac_cv_prog_CC+set}" = set; then
  3027. echo $ECHO_N "(cached) $ECHO_C" >&6
  3028. else
  3029. if test -n "$CC"; then
  3030. ac_cv_prog_CC="$CC" # Let the user override the test.
  3031. else
  3032. ac_prog_rejected=no
  3033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3034. for as_dir in $PATH
  3035. do
  3036. IFS=$as_save_IFS
  3037. test -z "$as_dir" && as_dir=.
  3038. for ac_exec_ext in '' $ac_executable_extensions; do
  3039. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3040. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3041. ac_prog_rejected=yes
  3042. continue
  3043. fi
  3044. ac_cv_prog_CC="cc"
  3045. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3046. break 2
  3047. fi
  3048. done
  3049. done
  3050. IFS=$as_save_IFS
  3051. if test $ac_prog_rejected = yes; then
  3052. # We found a bogon in the path, so make sure we never use it.
  3053. set dummy $ac_cv_prog_CC
  3054. shift
  3055. if test $# != 0; then
  3056. # We chose a different compiler from the bogus one.
  3057. # However, it has the same basename, so the bogon will be chosen
  3058. # first if we set CC to just the basename; use the full file name.
  3059. shift
  3060. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3061. fi
  3062. fi
  3063. fi
  3064. fi
  3065. CC=$ac_cv_prog_CC
  3066. if test -n "$CC"; then
  3067. { echo "$as_me:$LINENO: result: $CC" >&5
  3068. echo "${ECHO_T}$CC" >&6; }
  3069. else
  3070. { echo "$as_me:$LINENO: result: no" >&5
  3071. echo "${ECHO_T}no" >&6; }
  3072. fi
  3073. fi
  3074. if test -z "$CC"; then
  3075. if test -n "$ac_tool_prefix"; then
  3076. for ac_prog in cl.exe
  3077. do
  3078. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3079. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3080. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3081. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3082. if test "${ac_cv_prog_CC+set}" = set; then
  3083. echo $ECHO_N "(cached) $ECHO_C" >&6
  3084. else
  3085. if test -n "$CC"; then
  3086. ac_cv_prog_CC="$CC" # Let the user override the test.
  3087. else
  3088. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3089. for as_dir in $PATH
  3090. do
  3091. IFS=$as_save_IFS
  3092. test -z "$as_dir" && as_dir=.
  3093. for ac_exec_ext in '' $ac_executable_extensions; do
  3094. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3095. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3096. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3097. break 2
  3098. fi
  3099. done
  3100. done
  3101. IFS=$as_save_IFS
  3102. fi
  3103. fi
  3104. CC=$ac_cv_prog_CC
  3105. if test -n "$CC"; then
  3106. { echo "$as_me:$LINENO: result: $CC" >&5
  3107. echo "${ECHO_T}$CC" >&6; }
  3108. else
  3109. { echo "$as_me:$LINENO: result: no" >&5
  3110. echo "${ECHO_T}no" >&6; }
  3111. fi
  3112. test -n "$CC" && break
  3113. done
  3114. fi
  3115. if test -z "$CC"; then
  3116. ac_ct_CC=$CC
  3117. for ac_prog in cl.exe
  3118. do
  3119. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3120. set dummy $ac_prog; ac_word=$2
  3121. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3122. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3123. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3124. echo $ECHO_N "(cached) $ECHO_C" >&6
  3125. else
  3126. if test -n "$ac_ct_CC"; then
  3127. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3128. else
  3129. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3130. for as_dir in $PATH
  3131. do
  3132. IFS=$as_save_IFS
  3133. test -z "$as_dir" && as_dir=.
  3134. for ac_exec_ext in '' $ac_executable_extensions; do
  3135. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3136. ac_cv_prog_ac_ct_CC="$ac_prog"
  3137. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3138. break 2
  3139. fi
  3140. done
  3141. done
  3142. IFS=$as_save_IFS
  3143. fi
  3144. fi
  3145. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3146. if test -n "$ac_ct_CC"; then
  3147. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3148. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3149. else
  3150. { echo "$as_me:$LINENO: result: no" >&5
  3151. echo "${ECHO_T}no" >&6; }
  3152. fi
  3153. test -n "$ac_ct_CC" && break
  3154. done
  3155. if test "x$ac_ct_CC" = x; then
  3156. CC=""
  3157. else
  3158. case $cross_compiling:$ac_tool_warned in
  3159. yes:)
  3160. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3161. whose name does not start with the host triplet. If you think this
  3162. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3163. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3164. whose name does not start with the host triplet. If you think this
  3165. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3166. ac_tool_warned=yes ;;
  3167. esac
  3168. CC=$ac_ct_CC
  3169. fi
  3170. fi
  3171. fi
  3172. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3173. See \`config.log' for more details." >&5
  3174. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3175. See \`config.log' for more details." >&2;}
  3176. { (exit 1); exit 1; }; }
  3177. # Provide some information about the compiler.
  3178. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3179. ac_compiler=`set X $ac_compile; echo $2`
  3180. { (ac_try="$ac_compiler --version >&5"
  3181. case "(($ac_try" in
  3182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3183. *) ac_try_echo=$ac_try;;
  3184. esac
  3185. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3186. (eval "$ac_compiler --version >&5") 2>&5
  3187. ac_status=$?
  3188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3189. (exit $ac_status); }
  3190. { (ac_try="$ac_compiler -v >&5"
  3191. case "(($ac_try" in
  3192. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3193. *) ac_try_echo=$ac_try;;
  3194. esac
  3195. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3196. (eval "$ac_compiler -v >&5") 2>&5
  3197. ac_status=$?
  3198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3199. (exit $ac_status); }
  3200. { (ac_try="$ac_compiler -V >&5"
  3201. case "(($ac_try" in
  3202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3203. *) ac_try_echo=$ac_try;;
  3204. esac
  3205. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3206. (eval "$ac_compiler -V >&5") 2>&5
  3207. ac_status=$?
  3208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3209. (exit $ac_status); }
  3210. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3211. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3212. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3213. echo $ECHO_N "(cached) $ECHO_C" >&6
  3214. else
  3215. cat >conftest.$ac_ext <<_ACEOF
  3216. /* confdefs.h. */
  3217. _ACEOF
  3218. cat confdefs.h >>conftest.$ac_ext
  3219. cat >>conftest.$ac_ext <<_ACEOF
  3220. /* end confdefs.h. */
  3221. int
  3222. main ()
  3223. {
  3224. #ifndef __GNUC__
  3225. choke me
  3226. #endif
  3227. ;
  3228. return 0;
  3229. }
  3230. _ACEOF
  3231. rm -f conftest.$ac_objext
  3232. if { (ac_try="$ac_compile"
  3233. case "(($ac_try" in
  3234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3235. *) ac_try_echo=$ac_try;;
  3236. esac
  3237. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3238. (eval "$ac_compile") 2>conftest.er1
  3239. ac_status=$?
  3240. grep -v '^ *+' conftest.er1 >conftest.err
  3241. rm -f conftest.er1
  3242. cat conftest.err >&5
  3243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3244. (exit $ac_status); } && {
  3245. test -z "$ac_c_werror_flag" ||
  3246. test ! -s conftest.err
  3247. } && test -s conftest.$ac_objext; then
  3248. ac_compiler_gnu=yes
  3249. else
  3250. echo "$as_me: failed program was:" >&5
  3251. sed 's/^/| /' conftest.$ac_ext >&5
  3252. ac_compiler_gnu=no
  3253. fi
  3254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3255. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3256. fi
  3257. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3258. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3259. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3260. ac_test_CFLAGS=${CFLAGS+set}
  3261. ac_save_CFLAGS=$CFLAGS
  3262. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3263. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3264. if test "${ac_cv_prog_cc_g+set}" = set; then
  3265. echo $ECHO_N "(cached) $ECHO_C" >&6
  3266. else
  3267. ac_save_c_werror_flag=$ac_c_werror_flag
  3268. ac_c_werror_flag=yes
  3269. ac_cv_prog_cc_g=no
  3270. CFLAGS="-g"
  3271. cat >conftest.$ac_ext <<_ACEOF
  3272. /* confdefs.h. */
  3273. _ACEOF
  3274. cat confdefs.h >>conftest.$ac_ext
  3275. cat >>conftest.$ac_ext <<_ACEOF
  3276. /* end confdefs.h. */
  3277. int
  3278. main ()
  3279. {
  3280. ;
  3281. return 0;
  3282. }
  3283. _ACEOF
  3284. rm -f conftest.$ac_objext
  3285. if { (ac_try="$ac_compile"
  3286. case "(($ac_try" in
  3287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3288. *) ac_try_echo=$ac_try;;
  3289. esac
  3290. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3291. (eval "$ac_compile") 2>conftest.er1
  3292. ac_status=$?
  3293. grep -v '^ *+' conftest.er1 >conftest.err
  3294. rm -f conftest.er1
  3295. cat conftest.err >&5
  3296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3297. (exit $ac_status); } && {
  3298. test -z "$ac_c_werror_flag" ||
  3299. test ! -s conftest.err
  3300. } && test -s conftest.$ac_objext; then
  3301. ac_cv_prog_cc_g=yes
  3302. else
  3303. echo "$as_me: failed program was:" >&5
  3304. sed 's/^/| /' conftest.$ac_ext >&5
  3305. CFLAGS=""
  3306. cat >conftest.$ac_ext <<_ACEOF
  3307. /* confdefs.h. */
  3308. _ACEOF
  3309. cat confdefs.h >>conftest.$ac_ext
  3310. cat >>conftest.$ac_ext <<_ACEOF
  3311. /* end confdefs.h. */
  3312. int
  3313. main ()
  3314. {
  3315. ;
  3316. return 0;
  3317. }
  3318. _ACEOF
  3319. rm -f conftest.$ac_objext
  3320. if { (ac_try="$ac_compile"
  3321. case "(($ac_try" in
  3322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3323. *) ac_try_echo=$ac_try;;
  3324. esac
  3325. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3326. (eval "$ac_compile") 2>conftest.er1
  3327. ac_status=$?
  3328. grep -v '^ *+' conftest.er1 >conftest.err
  3329. rm -f conftest.er1
  3330. cat conftest.err >&5
  3331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3332. (exit $ac_status); } && {
  3333. test -z "$ac_c_werror_flag" ||
  3334. test ! -s conftest.err
  3335. } && test -s conftest.$ac_objext; then
  3336. :
  3337. else
  3338. echo "$as_me: failed program was:" >&5
  3339. sed 's/^/| /' conftest.$ac_ext >&5
  3340. ac_c_werror_flag=$ac_save_c_werror_flag
  3341. CFLAGS="-g"
  3342. cat >conftest.$ac_ext <<_ACEOF
  3343. /* confdefs.h. */
  3344. _ACEOF
  3345. cat confdefs.h >>conftest.$ac_ext
  3346. cat >>conftest.$ac_ext <<_ACEOF
  3347. /* end confdefs.h. */
  3348. int
  3349. main ()
  3350. {
  3351. ;
  3352. return 0;
  3353. }
  3354. _ACEOF
  3355. rm -f conftest.$ac_objext
  3356. if { (ac_try="$ac_compile"
  3357. case "(($ac_try" in
  3358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3359. *) ac_try_echo=$ac_try;;
  3360. esac
  3361. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3362. (eval "$ac_compile") 2>conftest.er1
  3363. ac_status=$?
  3364. grep -v '^ *+' conftest.er1 >conftest.err
  3365. rm -f conftest.er1
  3366. cat conftest.err >&5
  3367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3368. (exit $ac_status); } && {
  3369. test -z "$ac_c_werror_flag" ||
  3370. test ! -s conftest.err
  3371. } && test -s conftest.$ac_objext; then
  3372. ac_cv_prog_cc_g=yes
  3373. else
  3374. echo "$as_me: failed program was:" >&5
  3375. sed 's/^/| /' conftest.$ac_ext >&5
  3376. fi
  3377. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3378. fi
  3379. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3380. fi
  3381. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3382. ac_c_werror_flag=$ac_save_c_werror_flag
  3383. fi
  3384. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3385. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3386. if test "$ac_test_CFLAGS" = set; then
  3387. CFLAGS=$ac_save_CFLAGS
  3388. elif test $ac_cv_prog_cc_g = yes; then
  3389. if test "$GCC" = yes; then
  3390. CFLAGS="-g -O2"
  3391. else
  3392. CFLAGS="-g"
  3393. fi
  3394. else
  3395. if test "$GCC" = yes; then
  3396. CFLAGS="-O2"
  3397. else
  3398. CFLAGS=
  3399. fi
  3400. fi
  3401. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3402. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3403. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3404. echo $ECHO_N "(cached) $ECHO_C" >&6
  3405. else
  3406. ac_cv_prog_cc_c89=no
  3407. ac_save_CC=$CC
  3408. cat >conftest.$ac_ext <<_ACEOF
  3409. /* confdefs.h. */
  3410. _ACEOF
  3411. cat confdefs.h >>conftest.$ac_ext
  3412. cat >>conftest.$ac_ext <<_ACEOF
  3413. /* end confdefs.h. */
  3414. #include <stdarg.h>
  3415. #include <stdio.h>
  3416. #include <sys/types.h>
  3417. #include <sys/stat.h>
  3418. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3419. struct buf { int x; };
  3420. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3421. static char *e (p, i)
  3422. char **p;
  3423. int i;
  3424. {
  3425. return p[i];
  3426. }
  3427. static char *f (char * (*g) (char **, int), char **p, ...)
  3428. {
  3429. char *s;
  3430. va_list v;
  3431. va_start (v,p);
  3432. s = g (p, va_arg (v,int));
  3433. va_end (v);
  3434. return s;
  3435. }
  3436. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3437. function prototypes and stuff, but not '\xHH' hex character constants.
  3438. These don't provoke an error unfortunately, instead are silently treated
  3439. as 'x'. The following induces an error, until -std is added to get
  3440. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3441. array size at least. It's necessary to write '\x00'==0 to get something
  3442. that's true only with -std. */
  3443. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3444. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3445. inside strings and character constants. */
  3446. #define FOO(x) 'x'
  3447. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3448. int test (int i, double x);
  3449. struct s1 {int (*f) (int a);};
  3450. struct s2 {int (*f) (double a);};
  3451. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3452. int argc;
  3453. char **argv;
  3454. int
  3455. main ()
  3456. {
  3457. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3458. ;
  3459. return 0;
  3460. }
  3461. _ACEOF
  3462. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3463. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3464. do
  3465. CC="$ac_save_CC $ac_arg"
  3466. rm -f conftest.$ac_objext
  3467. if { (ac_try="$ac_compile"
  3468. case "(($ac_try" in
  3469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3470. *) ac_try_echo=$ac_try;;
  3471. esac
  3472. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3473. (eval "$ac_compile") 2>conftest.er1
  3474. ac_status=$?
  3475. grep -v '^ *+' conftest.er1 >conftest.err
  3476. rm -f conftest.er1
  3477. cat conftest.err >&5
  3478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3479. (exit $ac_status); } && {
  3480. test -z "$ac_c_werror_flag" ||
  3481. test ! -s conftest.err
  3482. } && test -s conftest.$ac_objext; then
  3483. ac_cv_prog_cc_c89=$ac_arg
  3484. else
  3485. echo "$as_me: failed program was:" >&5
  3486. sed 's/^/| /' conftest.$ac_ext >&5
  3487. fi
  3488. rm -f core conftest.err conftest.$ac_objext
  3489. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3490. done
  3491. rm -f conftest.$ac_ext
  3492. CC=$ac_save_CC
  3493. fi
  3494. # AC_CACHE_VAL
  3495. case "x$ac_cv_prog_cc_c89" in
  3496. x)
  3497. { echo "$as_me:$LINENO: result: none needed" >&5
  3498. echo "${ECHO_T}none needed" >&6; } ;;
  3499. xno)
  3500. { echo "$as_me:$LINENO: result: unsupported" >&5
  3501. echo "${ECHO_T}unsupported" >&6; } ;;
  3502. *)
  3503. CC="$CC $ac_cv_prog_cc_c89"
  3504. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3505. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3506. esac
  3507. ac_ext=c
  3508. ac_cpp='$CPP $CPPFLAGS'
  3509. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3510. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3511. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3512. depcc="$CC" am_compiler_list=
  3513. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3514. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3515. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3516. echo $ECHO_N "(cached) $ECHO_C" >&6
  3517. else
  3518. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3519. # We make a subdir and do the tests there. Otherwise we can end up
  3520. # making bogus files that we don't know about and never remove. For
  3521. # instance it was reported that on HP-UX the gcc test will end up
  3522. # making a dummy file named `D' -- because `-MD' means `put the output
  3523. # in D'.
  3524. mkdir conftest.dir
  3525. # Copy depcomp to subdir because otherwise we won't find it if we're
  3526. # using a relative directory.
  3527. cp "$am_depcomp" conftest.dir
  3528. cd conftest.dir
  3529. # We will build objects and dependencies in a subdirectory because
  3530. # it helps to detect inapplicable dependency modes. For instance
  3531. # both Tru64's cc and ICC support -MD to output dependencies as a
  3532. # side effect of compilation, but ICC will put the dependencies in
  3533. # the current directory while Tru64 will put them in the object
  3534. # directory.
  3535. mkdir sub
  3536. am_cv_CC_dependencies_compiler_type=none
  3537. if test "$am_compiler_list" = ""; then
  3538. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3539. fi
  3540. for depmode in $am_compiler_list; do
  3541. # Setup a source with many dependencies, because some compilers
  3542. # like to wrap large dependency lists on column 80 (with \), and
  3543. # we should not choose a depcomp mode which is confused by this.
  3544. #
  3545. # We need to recreate these files for each test, as the compiler may
  3546. # overwrite some of them when testing with obscure command lines.
  3547. # This happens at least with the AIX C compiler.
  3548. : > sub/conftest.c
  3549. for i in 1 2 3 4 5 6; do
  3550. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3551. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3552. # Solaris 8's {/usr,}/bin/sh.
  3553. touch sub/conftst$i.h
  3554. done
  3555. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3556. case $depmode in
  3557. nosideeffect)
  3558. # after this tag, mechanisms are not by side-effect, so they'll
  3559. # only be used when explicitly requested
  3560. if test "x$enable_dependency_tracking" = xyes; then
  3561. continue
  3562. else
  3563. break
  3564. fi
  3565. ;;
  3566. none) break ;;
  3567. esac
  3568. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3569. # mode. It turns out that the SunPro C++ compiler does not properly
  3570. # handle `-M -o', and we need to detect this.
  3571. if depmode=$depmode \
  3572. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3573. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3574. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3575. >/dev/null 2>conftest.err &&
  3576. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3577. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3578. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3579. # icc doesn't choke on unknown options, it will just issue warnings
  3580. # or remarks (even with -Werror). So we grep stderr for any message
  3581. # that says an option was ignored or not supported.
  3582. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3583. # icc: Command line warning: ignoring option '-M'; no argument required
  3584. # The diagnosis changed in icc 8.0:
  3585. # icc: Command line remark: option '-MP' not supported
  3586. if (grep 'ignoring option' conftest.err ||
  3587. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3588. am_cv_CC_dependencies_compiler_type=$depmode
  3589. break
  3590. fi
  3591. fi
  3592. done
  3593. cd ..
  3594. rm -rf conftest.dir
  3595. else
  3596. am_cv_CC_dependencies_compiler_type=none
  3597. fi
  3598. fi
  3599. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3600. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3601. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3602. if
  3603. test "x$enable_dependency_tracking" != xno \
  3604. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3605. am__fastdepCC_TRUE=
  3606. am__fastdepCC_FALSE='#'
  3607. else
  3608. am__fastdepCC_TRUE='#'
  3609. am__fastdepCC_FALSE=
  3610. fi
  3611. # Find a good install program. We prefer a C program (faster),
  3612. # so one script is as good as another. But avoid the broken or
  3613. # incompatible versions:
  3614. # SysV /etc/install, /usr/sbin/install
  3615. # SunOS /usr/etc/install
  3616. # IRIX /sbin/install
  3617. # AIX /bin/install
  3618. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3619. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3620. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3621. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3622. # OS/2's system install, which has a completely different semantic
  3623. # ./install, which can be erroneously created by make from ./install.sh.
  3624. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3625. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3626. if test -z "$INSTALL"; then
  3627. if test "${ac_cv_path_install+set}" = set; then
  3628. echo $ECHO_N "(cached) $ECHO_C" >&6
  3629. else
  3630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3631. for as_dir in $PATH
  3632. do
  3633. IFS=$as_save_IFS
  3634. test -z "$as_dir" && as_dir=.
  3635. # Account for people who put trailing slashes in PATH elements.
  3636. case $as_dir/ in
  3637. ./ | .// | /cC/* | \
  3638. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3639. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3640. /usr/ucb/* ) ;;
  3641. *)
  3642. # OSF1 and SCO ODT 3.0 have their own names for install.
  3643. # Don't use installbsd from OSF since it installs stuff as root
  3644. # by default.
  3645. for ac_prog in ginstall scoinst install; do
  3646. for ac_exec_ext in '' $ac_executable_extensions; do
  3647. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3648. if test $ac_prog = install &&
  3649. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3650. # AIX install. It has an incompatible calling convention.
  3651. :
  3652. elif test $ac_prog = install &&
  3653. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3654. # program-specific install script used by HP pwplus--don't use.
  3655. :
  3656. else
  3657. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3658. break 3
  3659. fi
  3660. fi
  3661. done
  3662. done
  3663. ;;
  3664. esac
  3665. done
  3666. IFS=$as_save_IFS
  3667. fi
  3668. if test "${ac_cv_path_install+set}" = set; then
  3669. INSTALL=$ac_cv_path_install
  3670. else
  3671. # As a last resort, use the slow shell script. Don't cache a
  3672. # value for INSTALL within a source directory, because that will
  3673. # break other packages using the cache if that directory is
  3674. # removed, or if the value is a relative name.
  3675. INSTALL=$ac_install_sh
  3676. fi
  3677. fi
  3678. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3679. echo "${ECHO_T}$INSTALL" >&6; }
  3680. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3681. # It thinks the first close brace ends the variable substitution.
  3682. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3683. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3684. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3685. if test -n "$ac_tool_prefix"; then
  3686. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3687. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3688. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3689. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3690. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3691. echo $ECHO_N "(cached) $ECHO_C" >&6
  3692. else
  3693. if test -n "$RANLIB"; then
  3694. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3695. else
  3696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3697. for as_dir in $PATH
  3698. do
  3699. IFS=$as_save_IFS
  3700. test -z "$as_dir" && as_dir=.
  3701. for ac_exec_ext in '' $ac_executable_extensions; do
  3702. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3703. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3704. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3705. break 2
  3706. fi
  3707. done
  3708. done
  3709. IFS=$as_save_IFS
  3710. fi
  3711. fi
  3712. RANLIB=$ac_cv_prog_RANLIB
  3713. if test -n "$RANLIB"; then
  3714. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3715. echo "${ECHO_T}$RANLIB" >&6; }
  3716. else
  3717. { echo "$as_me:$LINENO: result: no" >&5
  3718. echo "${ECHO_T}no" >&6; }
  3719. fi
  3720. fi
  3721. if test -z "$ac_cv_prog_RANLIB"; then
  3722. ac_ct_RANLIB=$RANLIB
  3723. # Extract the first word of "ranlib", so it can be a program name with args.
  3724. set dummy ranlib; ac_word=$2
  3725. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3726. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3727. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3728. echo $ECHO_N "(cached) $ECHO_C" >&6
  3729. else
  3730. if test -n "$ac_ct_RANLIB"; then
  3731. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3732. else
  3733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3734. for as_dir in $PATH
  3735. do
  3736. IFS=$as_save_IFS
  3737. test -z "$as_dir" && as_dir=.
  3738. for ac_exec_ext in '' $ac_executable_extensions; do
  3739. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3740. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3741. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3742. break 2
  3743. fi
  3744. done
  3745. done
  3746. IFS=$as_save_IFS
  3747. fi
  3748. fi
  3749. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3750. if test -n "$ac_ct_RANLIB"; then
  3751. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3752. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3753. else
  3754. { echo "$as_me:$LINENO: result: no" >&5
  3755. echo "${ECHO_T}no" >&6; }
  3756. fi
  3757. if test "x$ac_ct_RANLIB" = x; then
  3758. RANLIB=":"
  3759. else
  3760. case $cross_compiling:$ac_tool_warned in
  3761. yes:)
  3762. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3763. whose name does not start with the host triplet. If you think this
  3764. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3765. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3766. whose name does not start with the host triplet. If you think this
  3767. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3768. ac_tool_warned=yes ;;
  3769. esac
  3770. RANLIB=$ac_ct_RANLIB
  3771. fi
  3772. else
  3773. RANLIB="$ac_cv_prog_RANLIB"
  3774. fi
  3775. for ac_prog in 'bison -y' byacc
  3776. do
  3777. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3778. set dummy $ac_prog; ac_word=$2
  3779. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3780. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3781. if test "${ac_cv_prog_YACC+set}" = set; then
  3782. echo $ECHO_N "(cached) $ECHO_C" >&6
  3783. else
  3784. if test -n "$YACC"; then
  3785. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3786. else
  3787. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3788. for as_dir in $PATH
  3789. do
  3790. IFS=$as_save_IFS
  3791. test -z "$as_dir" && as_dir=.
  3792. for ac_exec_ext in '' $ac_executable_extensions; do
  3793. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3794. ac_cv_prog_YACC="$ac_prog"
  3795. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3796. break 2
  3797. fi
  3798. done
  3799. done
  3800. IFS=$as_save_IFS
  3801. fi
  3802. fi
  3803. YACC=$ac_cv_prog_YACC
  3804. if test -n "$YACC"; then
  3805. { echo "$as_me:$LINENO: result: $YACC" >&5
  3806. echo "${ECHO_T}$YACC" >&6; }
  3807. else
  3808. { echo "$as_me:$LINENO: result: no" >&5
  3809. echo "${ECHO_T}no" >&6; }
  3810. fi
  3811. test -n "$YACC" && break
  3812. done
  3813. test -n "$YACC" || YACC="yacc"
  3814. # Checks for libraries.
  3815. if test "x$with_libxml2" = "xyes"; then
  3816. # Check whether --with-xml-prefix was given.
  3817. if test "${with_xml_prefix+set}" = set; then
  3818. withval=$with_xml_prefix; xml_config_prefix="$withval"
  3819. else
  3820. xml_config_prefix=""
  3821. fi
  3822. # Check whether --with-xml-exec-prefix was given.
  3823. if test "${with_xml_exec_prefix+set}" = set; then
  3824. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  3825. else
  3826. xml_config_exec_prefix=""
  3827. fi
  3828. # Check whether --enable-xmltest was given.
  3829. if test "${enable_xmltest+set}" = set; then
  3830. enableval=$enable_xmltest;
  3831. else
  3832. enable_xmltest=yes
  3833. fi
  3834. if test x$xml_config_exec_prefix != x ; then
  3835. xml_config_args="$xml_config_args"
  3836. if test x${XML2_CONFIG+set} != xset ; then
  3837. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  3838. fi
  3839. fi
  3840. if test x$xml_config_prefix != x ; then
  3841. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  3842. if test x${XML2_CONFIG+set} != xset ; then
  3843. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  3844. fi
  3845. fi
  3846. # Extract the first word of "xml2-config", so it can be a program name with args.
  3847. set dummy xml2-config; ac_word=$2
  3848. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3849. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3850. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  3851. echo $ECHO_N "(cached) $ECHO_C" >&6
  3852. else
  3853. case $XML2_CONFIG in
  3854. [\\/]* | ?:[\\/]*)
  3855. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  3856. ;;
  3857. *)
  3858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3859. for as_dir in $PATH
  3860. do
  3861. IFS=$as_save_IFS
  3862. test -z "$as_dir" && as_dir=.
  3863. for ac_exec_ext in '' $ac_executable_extensions; do
  3864. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3865. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  3866. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3867. break 2
  3868. fi
  3869. done
  3870. done
  3871. IFS=$as_save_IFS
  3872. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  3873. ;;
  3874. esac
  3875. fi
  3876. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  3877. if test -n "$XML2_CONFIG"; then
  3878. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  3879. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  3880. else
  3881. { echo "$as_me:$LINENO: result: no" >&5
  3882. echo "${ECHO_T}no" >&6; }
  3883. fi
  3884. min_xml_version=2.6.24
  3885. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  3886. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  3887. no_xml=""
  3888. if test "$XML2_CONFIG" = "no" ; then
  3889. no_xml=yes
  3890. else
  3891. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  3892. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  3893. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  3894. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  3895. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  3896. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  3897. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  3898. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  3899. if test "x$enable_xmltest" = "xyes" ; then
  3900. ac_save_CPPFLAGS="$CPPFLAGS"
  3901. ac_save_LIBS="$LIBS"
  3902. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  3903. LIBS="$XML_LIBS $LIBS"
  3904. rm -f conf.xmltest
  3905. if test "$cross_compiling" = yes; then
  3906. echo $ac_n "cross compiling; assumed OK... $ac_c"
  3907. else
  3908. cat >conftest.$ac_ext <<_ACEOF
  3909. /* confdefs.h. */
  3910. _ACEOF
  3911. cat confdefs.h >>conftest.$ac_ext
  3912. cat >>conftest.$ac_ext <<_ACEOF
  3913. /* end confdefs.h. */
  3914. #include <stdlib.h>
  3915. #include <stdio.h>
  3916. #include <string.h>
  3917. #include <libxml/xmlversion.h>
  3918. int
  3919. main()
  3920. {
  3921. int xml_major_version, xml_minor_version, xml_micro_version;
  3922. int major, minor, micro;
  3923. char *tmp_version;
  3924. system("touch conf.xmltest");
  3925. /* Capture xml2-config output via autoconf/configure variables */
  3926. /* HP/UX 9 (%@#!) writes to sscanf strings */
  3927. tmp_version = (char *)strdup("$min_xml_version");
  3928. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  3929. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  3930. exit(1);
  3931. }
  3932. free(tmp_version);
  3933. /* Capture the version information from the header files */
  3934. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  3935. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  3936. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  3937. exit(1);
  3938. }
  3939. free(tmp_version);
  3940. /* Compare xml2-config output to the libxml headers */
  3941. if ((xml_major_version != $xml_config_major_version) ||
  3942. (xml_minor_version != $xml_config_minor_version) ||
  3943. (xml_micro_version != $xml_config_micro_version))
  3944. {
  3945. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  3946. xml_major_version, xml_minor_version, xml_micro_version);
  3947. printf("*** xml2-config (version %d.%d.%d)\n",
  3948. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  3949. return 1;
  3950. }
  3951. /* Compare the headers to the library to make sure we match */
  3952. /* Less than ideal -- doesn't provide us with return value feedback,
  3953. * only exits if there's a serious mismatch between header and library.
  3954. */
  3955. LIBXML_TEST_VERSION;
  3956. /* Test that the library is greater than our minimum version */
  3957. if ((xml_major_version > major) ||
  3958. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  3959. ((xml_major_version == major) && (xml_minor_version == minor) &&
  3960. (xml_micro_version >= micro)))
  3961. {
  3962. return 0;
  3963. }
  3964. else
  3965. {
  3966. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  3967. xml_major_version, xml_minor_version, xml_micro_version);
  3968. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  3969. major, minor, micro);
  3970. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  3971. printf("***\n");
  3972. printf("*** If you have already installed a sufficiently new version, this error\n");
  3973. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  3974. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  3975. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  3976. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  3977. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  3978. printf("*** so that the correct libraries are found at run-time))\n");
  3979. }
  3980. return 1;
  3981. }
  3982. _ACEOF
  3983. rm -f conftest$ac_exeext
  3984. if { (ac_try="$ac_link"
  3985. case "(($ac_try" in
  3986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3987. *) ac_try_echo=$ac_try;;
  3988. esac
  3989. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3990. (eval "$ac_link") 2>&5
  3991. ac_status=$?
  3992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3993. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3994. { (case "(($ac_try" in
  3995. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3996. *) ac_try_echo=$ac_try;;
  3997. esac
  3998. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3999. (eval "$ac_try") 2>&5
  4000. ac_status=$?
  4001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4002. (exit $ac_status); }; }; then
  4003. :
  4004. else
  4005. echo "$as_me: program exited with status $ac_status" >&5
  4006. echo "$as_me: failed program was:" >&5
  4007. sed 's/^/| /' conftest.$ac_ext >&5
  4008. ( exit $ac_status )
  4009. no_xml=yes
  4010. fi
  4011. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4012. fi
  4013. CPPFLAGS="$ac_save_CPPFLAGS"
  4014. LIBS="$ac_save_LIBS"
  4015. fi
  4016. fi
  4017. if test "x$no_xml" = x ; then
  4018. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  4019. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  4020. have_libxml2=yes
  4021. else
  4022. { echo "$as_me:$LINENO: result: no" >&5
  4023. echo "${ECHO_T}no" >&6; }
  4024. if test "$XML2_CONFIG" = "no" ; then
  4025. echo "*** The xml2-config script installed by LIBXML could not be found"
  4026. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  4027. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  4028. echo "*** full path to xml2-config."
  4029. else
  4030. if test -f conf.xmltest ; then
  4031. :
  4032. else
  4033. echo "*** Could not run libxml test program, checking why..."
  4034. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4035. LIBS="$LIBS $XML_LIBS"
  4036. cat >conftest.$ac_ext <<_ACEOF
  4037. /* confdefs.h. */
  4038. _ACEOF
  4039. cat confdefs.h >>conftest.$ac_ext
  4040. cat >>conftest.$ac_ext <<_ACEOF
  4041. /* end confdefs.h. */
  4042. #include <libxml/xmlversion.h>
  4043. #include <stdio.h>
  4044. int
  4045. main ()
  4046. {
  4047. LIBXML_TEST_VERSION; return 0;
  4048. ;
  4049. return 0;
  4050. }
  4051. _ACEOF
  4052. rm -f conftest.$ac_objext conftest$ac_exeext
  4053. if { (ac_try="$ac_link"
  4054. case "(($ac_try" in
  4055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4056. *) ac_try_echo=$ac_try;;
  4057. esac
  4058. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4059. (eval "$ac_link") 2>conftest.er1
  4060. ac_status=$?
  4061. grep -v '^ *+' conftest.er1 >conftest.err
  4062. rm -f conftest.er1
  4063. cat conftest.err >&5
  4064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4065. (exit $ac_status); } && {
  4066. test -z "$ac_c_werror_flag" ||
  4067. test ! -s conftest.err
  4068. } && test -s conftest$ac_exeext &&
  4069. $as_test_x conftest$ac_exeext; then
  4070. echo "*** The test program compiled, but did not run. This usually means"
  4071. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  4072. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  4073. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4074. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4075. echo "*** is required on your system"
  4076. echo "***"
  4077. echo "*** If you have an old version installed, it is best to remove it, although"
  4078. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4079. else
  4080. echo "$as_me: failed program was:" >&5
  4081. sed 's/^/| /' conftest.$ac_ext >&5
  4082. echo "*** The test program failed to compile or link. See the file config.log for the"
  4083. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  4084. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  4085. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  4086. fi
  4087. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4088. conftest$ac_exeext conftest.$ac_ext
  4089. CPPFLAGS="$ac_save_CPPFLAGS"
  4090. LIBS="$ac_save_LIBS"
  4091. fi
  4092. fi
  4093. XML_CPPFLAGS=""
  4094. XML_LIBS=""
  4095. :
  4096. fi
  4097. rm -f conf.xmltest
  4098. if test "x$have_libxml2" = "xyes"; then
  4099. cat >>confdefs.h <<\_ACEOF
  4100. #define HAVE_LIBXML2 1
  4101. _ACEOF
  4102. fi
  4103. fi
  4104. if test "x$with_gnutls" = "xyes"; then
  4105. # Check whether --with-libgnutls-prefix was given.
  4106. if test "${with_libgnutls_prefix+set}" = set; then
  4107. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  4108. else
  4109. libgnutls_config_prefix=""
  4110. fi
  4111. if test x$libgnutls_config_prefix != x ; then
  4112. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  4113. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  4114. fi
  4115. fi
  4116. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  4117. set dummy libgnutls-config; ac_word=$2
  4118. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4119. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4120. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  4121. echo $ECHO_N "(cached) $ECHO_C" >&6
  4122. else
  4123. case $LIBGNUTLS_CONFIG in
  4124. [\\/]* | ?:[\\/]*)
  4125. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  4126. ;;
  4127. *)
  4128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4129. for as_dir in $PATH
  4130. do
  4131. IFS=$as_save_IFS
  4132. test -z "$as_dir" && as_dir=.
  4133. for ac_exec_ext in '' $ac_executable_extensions; do
  4134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4135. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4136. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4137. break 2
  4138. fi
  4139. done
  4140. done
  4141. IFS=$as_save_IFS
  4142. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  4143. ;;
  4144. esac
  4145. fi
  4146. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  4147. if test -n "$LIBGNUTLS_CONFIG"; then
  4148. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  4149. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  4150. else
  4151. { echo "$as_me:$LINENO: result: no" >&5
  4152. echo "${ECHO_T}no" >&6; }
  4153. fi
  4154. min_libgnutls_version=1.2.9
  4155. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  4156. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  4157. no_libgnutls=""
  4158. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4159. no_libgnutls=yes
  4160. else
  4161. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  4162. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  4163. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  4164. ac_save_CFLAGS="$CFLAGS"
  4165. ac_save_LIBS="$LIBS"
  4166. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4167. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4168. rm -f conf.libgnutlstest
  4169. if test "$cross_compiling" = yes; then
  4170. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4171. else
  4172. cat >conftest.$ac_ext <<_ACEOF
  4173. /* confdefs.h. */
  4174. _ACEOF
  4175. cat confdefs.h >>conftest.$ac_ext
  4176. cat >>conftest.$ac_ext <<_ACEOF
  4177. /* end confdefs.h. */
  4178. #include <stdio.h>
  4179. #include <stdlib.h>
  4180. #include <string.h>
  4181. #include <gnutls/gnutls.h>
  4182. int
  4183. main ()
  4184. {
  4185. system ("touch conf.libgnutlstest");
  4186. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  4187. {
  4188. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  4189. "$libgnutls_config_version", gnutls_check_version(NULL) );
  4190. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  4191. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  4192. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  4193. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  4194. printf("*** required on your system.\n");
  4195. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  4196. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  4197. printf("*** before re-running configure\n");
  4198. }
  4199. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  4200. {
  4201. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  4202. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  4203. }
  4204. else
  4205. {
  4206. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  4207. {
  4208. return 0;
  4209. }
  4210. else
  4211. {
  4212. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  4213. gnutls_check_version(NULL) );
  4214. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  4215. "$min_libgnutls_version" );
  4216. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  4217. printf("*** \n");
  4218. printf("*** If you have already installed a sufficiently new version, this error\n");
  4219. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  4220. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4221. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  4222. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  4223. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4224. printf("*** so that the correct libraries are found at run-time))\n");
  4225. }
  4226. }
  4227. return 1;
  4228. }
  4229. _ACEOF
  4230. rm -f conftest$ac_exeext
  4231. if { (ac_try="$ac_link"
  4232. case "(($ac_try" in
  4233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4234. *) ac_try_echo=$ac_try;;
  4235. esac
  4236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4237. (eval "$ac_link") 2>&5
  4238. ac_status=$?
  4239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4240. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4241. { (case "(($ac_try" in
  4242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4243. *) ac_try_echo=$ac_try;;
  4244. esac
  4245. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4246. (eval "$ac_try") 2>&5
  4247. ac_status=$?
  4248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4249. (exit $ac_status); }; }; then
  4250. :
  4251. else
  4252. echo "$as_me: program exited with status $ac_status" >&5
  4253. echo "$as_me: failed program was:" >&5
  4254. sed 's/^/| /' conftest.$ac_ext >&5
  4255. ( exit $ac_status )
  4256. no_libgnutls=yes
  4257. fi
  4258. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4259. fi
  4260. CFLAGS="$ac_save_CFLAGS"
  4261. LIBS="$ac_save_LIBS"
  4262. fi
  4263. if test "x$no_libgnutls" = x ; then
  4264. { echo "$as_me:$LINENO: result: yes" >&5
  4265. echo "${ECHO_T}yes" >&6; }
  4266. have_libgnutls=yes
  4267. else
  4268. if test -f conf.libgnutlstest ; then
  4269. :
  4270. else
  4271. { echo "$as_me:$LINENO: result: no" >&5
  4272. echo "${ECHO_T}no" >&6; }
  4273. fi
  4274. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4275. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  4276. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  4277. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  4278. echo "*** full path to libgnutls-config."
  4279. else
  4280. if test -f conf.libgnutlstest ; then
  4281. :
  4282. else
  4283. echo "*** Could not run libgnutls test program, checking why..."
  4284. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4285. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4286. cat >conftest.$ac_ext <<_ACEOF
  4287. /* confdefs.h. */
  4288. _ACEOF
  4289. cat confdefs.h >>conftest.$ac_ext
  4290. cat >>conftest.$ac_ext <<_ACEOF
  4291. /* end confdefs.h. */
  4292. #include <stdio.h>
  4293. #include <stdlib.h>
  4294. #include <string.h>
  4295. #include <gnutls/gnutls.h>
  4296. int
  4297. main ()
  4298. {
  4299. return !!gnutls_check_version(NULL);
  4300. ;
  4301. return 0;
  4302. }
  4303. _ACEOF
  4304. rm -f conftest.$ac_objext conftest$ac_exeext
  4305. if { (ac_try="$ac_link"
  4306. case "(($ac_try" in
  4307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4308. *) ac_try_echo=$ac_try;;
  4309. esac
  4310. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4311. (eval "$ac_link") 2>conftest.er1
  4312. ac_status=$?
  4313. grep -v '^ *+' conftest.er1 >conftest.err
  4314. rm -f conftest.er1
  4315. cat conftest.err >&5
  4316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4317. (exit $ac_status); } && {
  4318. test -z "$ac_c_werror_flag" ||
  4319. test ! -s conftest.err
  4320. } && test -s conftest$ac_exeext &&
  4321. $as_test_x conftest$ac_exeext; then
  4322. echo "*** The test program compiled, but did not run. This usually means"
  4323. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  4324. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  4325. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4326. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4327. echo "*** is required on your system"
  4328. echo "***"
  4329. echo "*** If you have an old version installed, it is best to remove it, although"
  4330. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4331. echo "***"
  4332. else
  4333. echo "$as_me: failed program was:" >&5
  4334. sed 's/^/| /' conftest.$ac_ext >&5
  4335. echo "*** The test program failed to compile or link. See the file config.log for the"
  4336. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  4337. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  4338. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  4339. fi
  4340. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4341. conftest$ac_exeext conftest.$ac_ext
  4342. CFLAGS="$ac_save_CFLAGS"
  4343. LIBS="$ac_save_LIBS"
  4344. fi
  4345. fi
  4346. LIBGNUTLS_CFLAGS=""
  4347. LIBGNUTLS_LIBS=""
  4348. :
  4349. fi
  4350. rm -f conf.libgnutlstest
  4351. if test "x$have_libgnutls" = "xyes"; then
  4352. cat >>confdefs.h <<\_ACEOF
  4353. #define HAVE_LIBGNUTLS 1
  4354. _ACEOF
  4355. fi
  4356. fi
  4357. if test "x$have_libgnutls" = "xyes"; then
  4358. # Check whether --with-libgcrypt-prefix was given.
  4359. if test "${with_libgcrypt_prefix+set}" = set; then
  4360. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  4361. else
  4362. libgcrypt_config_prefix=""
  4363. fi
  4364. if test x$libgcrypt_config_prefix != x ; then
  4365. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  4366. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  4367. fi
  4368. fi
  4369. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  4370. set dummy libgcrypt-config; ac_word=$2
  4371. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4372. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4373. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  4374. echo $ECHO_N "(cached) $ECHO_C" >&6
  4375. else
  4376. case $LIBGCRYPT_CONFIG in
  4377. [\\/]* | ?:[\\/]*)
  4378. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  4379. ;;
  4380. *)
  4381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4382. for as_dir in $PATH
  4383. do
  4384. IFS=$as_save_IFS
  4385. test -z "$as_dir" && as_dir=.
  4386. for ac_exec_ext in '' $ac_executable_extensions; do
  4387. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4388. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4389. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4390. break 2
  4391. fi
  4392. done
  4393. done
  4394. IFS=$as_save_IFS
  4395. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  4396. ;;
  4397. esac
  4398. fi
  4399. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  4400. if test -n "$LIBGCRYPT_CONFIG"; then
  4401. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  4402. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  4403. else
  4404. { echo "$as_me:$LINENO: result: no" >&5
  4405. echo "${ECHO_T}no" >&6; }
  4406. fi
  4407. tmp=1.2.2
  4408. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  4409. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  4410. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  4411. else
  4412. req_libgcrypt_api=0
  4413. min_libgcrypt_version="$tmp"
  4414. fi
  4415. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  4416. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  4417. ok=no
  4418. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  4419. req_major=`echo $min_libgcrypt_version | \
  4420. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  4421. req_minor=`echo $min_libgcrypt_version | \
  4422. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  4423. req_micro=`echo $min_libgcrypt_version | \
  4424. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  4425. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  4426. major=`echo $libgcrypt_config_version | \
  4427. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  4428. minor=`echo $libgcrypt_config_version | \
  4429. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  4430. micro=`echo $libgcrypt_config_version | \
  4431. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  4432. if test "$major" -gt "$req_major"; then
  4433. ok=yes
  4434. else
  4435. if test "$major" -eq "$req_major"; then
  4436. if test "$minor" -gt "$req_minor"; then
  4437. ok=yes
  4438. else
  4439. if test "$minor" -eq "$req_minor"; then
  4440. if test "$micro" -ge "$req_micro"; then
  4441. ok=yes
  4442. fi
  4443. fi
  4444. fi
  4445. fi
  4446. fi
  4447. fi
  4448. if test $ok = yes; then
  4449. { echo "$as_me:$LINENO: result: yes" >&5
  4450. echo "${ECHO_T}yes" >&6; }
  4451. else
  4452. { echo "$as_me:$LINENO: result: no" >&5
  4453. echo "${ECHO_T}no" >&6; }
  4454. fi
  4455. if test $ok = yes; then
  4456. # If we have a recent libgcrypt, we should also check that the
  4457. # API is compatible
  4458. if test "$req_libgcrypt_api" -gt 0 ; then
  4459. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  4460. if test "$tmp" -gt 0 ; then
  4461. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  4462. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  4463. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  4464. { echo "$as_me:$LINENO: result: okay" >&5
  4465. echo "${ECHO_T}okay" >&6; }
  4466. else
  4467. ok=no
  4468. { echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  4469. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6; }
  4470. fi
  4471. fi
  4472. fi
  4473. fi
  4474. if test $ok = yes; then
  4475. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  4476. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  4477. have_libgcrypt=yes
  4478. else
  4479. LIBGCRYPT_CFLAGS=""
  4480. LIBGCRYPT_LIBS=""
  4481. :
  4482. fi
  4483. if test "x$have_libgcrypt" = "xyes"; then
  4484. cat >>confdefs.h <<\_ACEOF
  4485. #define HAVE_LIBGCRYPT 1
  4486. _ACEOF
  4487. fi
  4488. fi
  4489. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  4490. # Check whether --with-openssl-prefix was given.
  4491. if test "${with_openssl_prefix+set}" = set; then
  4492. withval=$with_openssl_prefix; openssl_prefix=$withval
  4493. else
  4494. openssl_prefix=""
  4495. fi
  4496. if test "x$openssl_prefix" = "x"; then
  4497. openssl_prefix="/usr/local"
  4498. fi
  4499. openssl_prefix_lib=$openssl_prefix/lib
  4500. openssl_prefix_include=$openssl_prefix/include
  4501. LIBS_save=$LIBS
  4502. CPPFLAGS_save=$CPPFLAGS
  4503. LIBS="-L$openssl_prefix_lib $LIBS"
  4504. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4505. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4506. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  4507. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4508. echo $ECHO_N "(cached) $ECHO_C" >&6
  4509. else
  4510. ac_check_lib_save_LIBS=$LIBS
  4511. LIBS="-lssl $LIBS"
  4512. cat >conftest.$ac_ext <<_ACEOF
  4513. /* confdefs.h. */
  4514. _ACEOF
  4515. cat confdefs.h >>conftest.$ac_ext
  4516. cat >>conftest.$ac_ext <<_ACEOF
  4517. /* end confdefs.h. */
  4518. /* Override any GCC internal prototype to avoid an error.
  4519. Use char because int might match the return type of a GCC
  4520. builtin and then its argument prototype would still apply. */
  4521. #ifdef __cplusplus
  4522. extern "C"
  4523. #endif
  4524. char SSL_library_init ();
  4525. int
  4526. main ()
  4527. {
  4528. return SSL_library_init ();
  4529. ;
  4530. return 0;
  4531. }
  4532. _ACEOF
  4533. rm -f conftest.$ac_objext conftest$ac_exeext
  4534. if { (ac_try="$ac_link"
  4535. case "(($ac_try" in
  4536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4537. *) ac_try_echo=$ac_try;;
  4538. esac
  4539. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4540. (eval "$ac_link") 2>conftest.er1
  4541. ac_status=$?
  4542. grep -v '^ *+' conftest.er1 >conftest.err
  4543. rm -f conftest.er1
  4544. cat conftest.err >&5
  4545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4546. (exit $ac_status); } && {
  4547. test -z "$ac_c_werror_flag" ||
  4548. test ! -s conftest.err
  4549. } && test -s conftest$ac_exeext &&
  4550. $as_test_x conftest$ac_exeext; then
  4551. ac_cv_lib_ssl_SSL_library_init=yes
  4552. else
  4553. echo "$as_me: failed program was:" >&5
  4554. sed 's/^/| /' conftest.$ac_ext >&5
  4555. ac_cv_lib_ssl_SSL_library_init=no
  4556. fi
  4557. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4558. conftest$ac_exeext conftest.$ac_ext
  4559. LIBS=$ac_check_lib_save_LIBS
  4560. fi
  4561. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4562. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  4563. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4564. have_openssl=yes
  4565. fi
  4566. if test "x$have_openssl" = "xyes"; then
  4567. have_openssl=no
  4568. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4569. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  4570. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4571. echo $ECHO_N "(cached) $ECHO_C" >&6
  4572. else
  4573. ac_check_lib_save_LIBS=$LIBS
  4574. LIBS="-lcrypto $LIBS"
  4575. cat >conftest.$ac_ext <<_ACEOF
  4576. /* confdefs.h. */
  4577. _ACEOF
  4578. cat confdefs.h >>conftest.$ac_ext
  4579. cat >>conftest.$ac_ext <<_ACEOF
  4580. /* end confdefs.h. */
  4581. int
  4582. main ()
  4583. {
  4584. return main ();
  4585. ;
  4586. return 0;
  4587. }
  4588. _ACEOF
  4589. rm -f conftest.$ac_objext conftest$ac_exeext
  4590. if { (ac_try="$ac_link"
  4591. case "(($ac_try" in
  4592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4593. *) ac_try_echo=$ac_try;;
  4594. esac
  4595. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4596. (eval "$ac_link") 2>conftest.er1
  4597. ac_status=$?
  4598. grep -v '^ *+' conftest.er1 >conftest.err
  4599. rm -f conftest.er1
  4600. cat conftest.err >&5
  4601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4602. (exit $ac_status); } && {
  4603. test -z "$ac_c_werror_flag" ||
  4604. test ! -s conftest.err
  4605. } && test -s conftest$ac_exeext &&
  4606. $as_test_x conftest$ac_exeext; then
  4607. ac_cv_lib_crypto_main=yes
  4608. else
  4609. echo "$as_me: failed program was:" >&5
  4610. sed 's/^/| /' conftest.$ac_ext >&5
  4611. ac_cv_lib_crypto_main=no
  4612. fi
  4613. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4614. conftest$ac_exeext conftest.$ac_ext
  4615. LIBS=$ac_check_lib_save_LIBS
  4616. fi
  4617. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4618. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  4619. if test $ac_cv_lib_crypto_main = yes; then
  4620. have_openssl=yes
  4621. fi
  4622. if test "x$have_openssl" = "xyes"; then
  4623. cat >>confdefs.h <<\_ACEOF
  4624. #define HAVE_LIBSSL 1
  4625. _ACEOF
  4626. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4627. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4628. fi
  4629. fi
  4630. LIBS=$LIBS_save
  4631. CPPFLAGS=$CPPFLAGS_save
  4632. fi
  4633. if test "x$with_libcares" = "xyes"; then
  4634. # Check whether --with-libcares-prefix was given.
  4635. if test "${with_libcares_prefix+set}" = set; then
  4636. withval=$with_libcares_prefix; libcares_prefix=$withval
  4637. else
  4638. libcares_prefix=""
  4639. fi
  4640. if test "x$libcares_prefix" = "x"; then
  4641. libcares_prefix="/usr"
  4642. fi
  4643. libcares_prefix_lib=$libcares_prefix/lib
  4644. libcares_prefix_include=$libcares_prefix/include
  4645. LIBS_save=$LIBS
  4646. CPPFLAGS_save=$CPPFLAGS
  4647. LIBS="-L$libcares_prefix_lib $LIBS"
  4648. CPPFLAGS="-I$libcares_prefix_include $CPPFLAGS"
  4649. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  4650. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  4651. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  4652. echo $ECHO_N "(cached) $ECHO_C" >&6
  4653. else
  4654. ac_check_lib_save_LIBS=$LIBS
  4655. LIBS="-lcares $LIBS"
  4656. cat >conftest.$ac_ext <<_ACEOF
  4657. /* confdefs.h. */
  4658. _ACEOF
  4659. cat confdefs.h >>conftest.$ac_ext
  4660. cat >>conftest.$ac_ext <<_ACEOF
  4661. /* end confdefs.h. */
  4662. /* Override any GCC internal prototype to avoid an error.
  4663. Use char because int might match the return type of a GCC
  4664. builtin and then its argument prototype would still apply. */
  4665. #ifdef __cplusplus
  4666. extern "C"
  4667. #endif
  4668. char ares_init ();
  4669. int
  4670. main ()
  4671. {
  4672. return ares_init ();
  4673. ;
  4674. return 0;
  4675. }
  4676. _ACEOF
  4677. rm -f conftest.$ac_objext conftest$ac_exeext
  4678. if { (ac_try="$ac_link"
  4679. case "(($ac_try" in
  4680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4681. *) ac_try_echo=$ac_try;;
  4682. esac
  4683. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4684. (eval "$ac_link") 2>conftest.er1
  4685. ac_status=$?
  4686. grep -v '^ *+' conftest.er1 >conftest.err
  4687. rm -f conftest.er1
  4688. cat conftest.err >&5
  4689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4690. (exit $ac_status); } && {
  4691. test -z "$ac_c_werror_flag" ||
  4692. test ! -s conftest.err
  4693. } && test -s conftest$ac_exeext &&
  4694. $as_test_x conftest$ac_exeext; then
  4695. ac_cv_lib_cares_ares_init=yes
  4696. else
  4697. echo "$as_me: failed program was:" >&5
  4698. sed 's/^/| /' conftest.$ac_ext >&5
  4699. ac_cv_lib_cares_ares_init=no
  4700. fi
  4701. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4702. conftest$ac_exeext conftest.$ac_ext
  4703. LIBS=$ac_check_lib_save_LIBS
  4704. fi
  4705. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  4706. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  4707. if test $ac_cv_lib_cares_ares_init = yes; then
  4708. have_libcares=yes
  4709. fi
  4710. if test "x$have_libcares" = "xyes"; then
  4711. cat >>confdefs.h <<\_ACEOF
  4712. #define HAVE_LIBCARES 1
  4713. _ACEOF
  4714. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  4715. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  4716. fi
  4717. LIBS=$LIBS_save
  4718. CPPFLAGS=$CPPFLAGS_save
  4719. fi
  4720. if test "x$have_libcares" = "x"; then
  4721. if test "x$with_libares" = "xyes"; then
  4722. # Check whether --with-libares-prefix was given.
  4723. if test "${with_libares_prefix+set}" = set; then
  4724. withval=$with_libares_prefix; libares_prefix=$withval
  4725. else
  4726. libares_prefix=""
  4727. fi
  4728. if test "x$libares_prefix" = "x"; then
  4729. libares_prefix="/usr"
  4730. fi
  4731. libares_prefix_lib=$libares_prefix/lib
  4732. libares_prefix_include=$libares_prefix/include
  4733. LIBS_save=$LIBS
  4734. CPPFLAGS_save=$CPPFLAGS
  4735. LIBS="-L$libares_prefix_lib $LIBS"
  4736. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  4737. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  4738. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  4739. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  4740. echo $ECHO_N "(cached) $ECHO_C" >&6
  4741. else
  4742. ac_check_lib_save_LIBS=$LIBS
  4743. LIBS="-lares $LIBS"
  4744. cat >conftest.$ac_ext <<_ACEOF
  4745. /* confdefs.h. */
  4746. _ACEOF
  4747. cat confdefs.h >>conftest.$ac_ext
  4748. cat >>conftest.$ac_ext <<_ACEOF
  4749. /* end confdefs.h. */
  4750. /* Override any GCC internal prototype to avoid an error.
  4751. Use char because int might match the return type of a GCC
  4752. builtin and then its argument prototype would still apply. */
  4753. #ifdef __cplusplus
  4754. extern "C"
  4755. #endif
  4756. char ares_init ();
  4757. int
  4758. main ()
  4759. {
  4760. return ares_init ();
  4761. ;
  4762. return 0;
  4763. }
  4764. _ACEOF
  4765. rm -f conftest.$ac_objext conftest$ac_exeext
  4766. if { (ac_try="$ac_link"
  4767. case "(($ac_try" in
  4768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4769. *) ac_try_echo=$ac_try;;
  4770. esac
  4771. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4772. (eval "$ac_link") 2>conftest.er1
  4773. ac_status=$?
  4774. grep -v '^ *+' conftest.er1 >conftest.err
  4775. rm -f conftest.er1
  4776. cat conftest.err >&5
  4777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4778. (exit $ac_status); } && {
  4779. test -z "$ac_c_werror_flag" ||
  4780. test ! -s conftest.err
  4781. } && test -s conftest$ac_exeext &&
  4782. $as_test_x conftest$ac_exeext; then
  4783. ac_cv_lib_ares_ares_init=yes
  4784. else
  4785. echo "$as_me: failed program was:" >&5
  4786. sed 's/^/| /' conftest.$ac_ext >&5
  4787. ac_cv_lib_ares_ares_init=no
  4788. fi
  4789. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4790. conftest$ac_exeext conftest.$ac_ext
  4791. LIBS=$ac_check_lib_save_LIBS
  4792. fi
  4793. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  4794. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  4795. if test $ac_cv_lib_ares_ares_init = yes; then
  4796. have_libares=yes
  4797. fi
  4798. if test "x$have_libares" = "xyes"; then
  4799. cat >>confdefs.h <<\_ACEOF
  4800. #define HAVE_LIBARES 1
  4801. _ACEOF
  4802. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  4803. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  4804. fi
  4805. LIBS=$LIBS_save
  4806. CPPFLAGS=$CPPFLAGS_save
  4807. fi
  4808. fi
  4809. # Define variables based on the result of the checks for libraries.
  4810. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  4811. cat >>confdefs.h <<\_ACEOF
  4812. #define ENABLE_SSL 1
  4813. _ACEOF
  4814. fi
  4815. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  4816. cat >>confdefs.h <<\_ACEOF
  4817. #define ENABLE_MESSAGE_DIGEST 1
  4818. _ACEOF
  4819. enable_message_digest=yes
  4820. fi
  4821. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  4822. cat >>confdefs.h <<\_ACEOF
  4823. #define ENABLE_BITTORRENT 1
  4824. _ACEOF
  4825. if true; then
  4826. ENABLE_BITTORRENT_TRUE=
  4827. ENABLE_BITTORRENT_FALSE='#'
  4828. else
  4829. ENABLE_BITTORRENT_TRUE='#'
  4830. ENABLE_BITTORRENT_FALSE=
  4831. fi
  4832. else
  4833. if false; then
  4834. ENABLE_BITTORRENT_TRUE=
  4835. ENABLE_BITTORRENT_FALSE='#'
  4836. else
  4837. ENABLE_BITTORRENT_TRUE='#'
  4838. ENABLE_BITTORRENT_FALSE=
  4839. fi
  4840. fi
  4841. if test "x$have_libxml2" = "xyes" && test "x$enable_metalink" = "xyes"; then
  4842. cat >>confdefs.h <<\_ACEOF
  4843. #define ENABLE_METALINK 1
  4844. _ACEOF
  4845. if true; then
  4846. ENABLE_METALINK_TRUE=
  4847. ENABLE_METALINK_FALSE='#'
  4848. else
  4849. ENABLE_METALINK_TRUE='#'
  4850. ENABLE_METALINK_FALSE=
  4851. fi
  4852. else
  4853. if false; then
  4854. ENABLE_METALINK_TRUE=
  4855. ENABLE_METALINK_FALSE='#'
  4856. else
  4857. ENABLE_METALINK_TRUE='#'
  4858. ENABLE_METALINK_FALSE=
  4859. fi
  4860. fi
  4861. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  4862. cat >>confdefs.h <<\_ACEOF
  4863. #define ENABLE_ASYNC_DNS 1
  4864. _ACEOF
  4865. if true; then
  4866. ENABLE_ASYNC_DNS_TRUE=
  4867. ENABLE_ASYNC_DNS_FALSE='#'
  4868. else
  4869. ENABLE_ASYNC_DNS_TRUE='#'
  4870. ENABLE_ASYNC_DNS_FALSE=
  4871. fi
  4872. else
  4873. if false; then
  4874. ENABLE_ASYNC_DNS_TRUE=
  4875. ENABLE_ASYNC_DNS_FALSE='#'
  4876. else
  4877. ENABLE_ASYNC_DNS_TRUE='#'
  4878. ENABLE_ASYNC_DNS_FALSE=
  4879. fi
  4880. fi
  4881. # Checks for header files.
  4882. ac_ext=c
  4883. ac_cpp='$CPP $CPPFLAGS'
  4884. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4885. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4886. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4887. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4888. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  4889. # On Suns, sometimes $CPP names a directory.
  4890. if test -n "$CPP" && test -d "$CPP"; then
  4891. CPP=
  4892. fi
  4893. if test -z "$CPP"; then
  4894. if test "${ac_cv_prog_CPP+set}" = set; then
  4895. echo $ECHO_N "(cached) $ECHO_C" >&6
  4896. else
  4897. # Double quotes because CPP needs to be expanded
  4898. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4899. do
  4900. ac_preproc_ok=false
  4901. for ac_c_preproc_warn_flag in '' yes
  4902. do
  4903. # Use a header file that comes with gcc, so configuring glibc
  4904. # with a fresh cross-compiler works.
  4905. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4906. # <limits.h> exists even on freestanding compilers.
  4907. # On the NeXT, cc -E runs the code through the compiler's parser,
  4908. # not just through cpp. "Syntax error" is here to catch this case.
  4909. cat >conftest.$ac_ext <<_ACEOF
  4910. /* confdefs.h. */
  4911. _ACEOF
  4912. cat confdefs.h >>conftest.$ac_ext
  4913. cat >>conftest.$ac_ext <<_ACEOF
  4914. /* end confdefs.h. */
  4915. #ifdef __STDC__
  4916. # include <limits.h>
  4917. #else
  4918. # include <assert.h>
  4919. #endif
  4920. Syntax error
  4921. _ACEOF
  4922. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4923. case "(($ac_try" in
  4924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4925. *) ac_try_echo=$ac_try;;
  4926. esac
  4927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4928. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4929. ac_status=$?
  4930. grep -v '^ *+' conftest.er1 >conftest.err
  4931. rm -f conftest.er1
  4932. cat conftest.err >&5
  4933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4934. (exit $ac_status); } >/dev/null && {
  4935. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4936. test ! -s conftest.err
  4937. }; then
  4938. :
  4939. else
  4940. echo "$as_me: failed program was:" >&5
  4941. sed 's/^/| /' conftest.$ac_ext >&5
  4942. # Broken: fails on valid input.
  4943. continue
  4944. fi
  4945. rm -f conftest.err conftest.$ac_ext
  4946. # OK, works on sane cases. Now check whether nonexistent headers
  4947. # can be detected and how.
  4948. cat >conftest.$ac_ext <<_ACEOF
  4949. /* confdefs.h. */
  4950. _ACEOF
  4951. cat confdefs.h >>conftest.$ac_ext
  4952. cat >>conftest.$ac_ext <<_ACEOF
  4953. /* end confdefs.h. */
  4954. #include <ac_nonexistent.h>
  4955. _ACEOF
  4956. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4957. case "(($ac_try" in
  4958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4959. *) ac_try_echo=$ac_try;;
  4960. esac
  4961. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4962. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4963. ac_status=$?
  4964. grep -v '^ *+' conftest.er1 >conftest.err
  4965. rm -f conftest.er1
  4966. cat conftest.err >&5
  4967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4968. (exit $ac_status); } >/dev/null && {
  4969. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  4970. test ! -s conftest.err
  4971. }; then
  4972. # Broken: success on invalid input.
  4973. continue
  4974. else
  4975. echo "$as_me: failed program was:" >&5
  4976. sed 's/^/| /' conftest.$ac_ext >&5
  4977. # Passes both tests.
  4978. ac_preproc_ok=:
  4979. break
  4980. fi
  4981. rm -f conftest.err conftest.$ac_ext
  4982. done
  4983. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4984. rm -f conftest.err conftest.$ac_ext
  4985. if $ac_preproc_ok; then
  4986. break
  4987. fi
  4988. done
  4989. ac_cv_prog_CPP=$CPP
  4990. fi
  4991. CPP=$ac_cv_prog_CPP
  4992. else
  4993. ac_cv_prog_CPP=$CPP
  4994. fi
  4995. { echo "$as_me:$LINENO: result: $CPP" >&5
  4996. echo "${ECHO_T}$CPP" >&6; }
  4997. ac_preproc_ok=false
  4998. for ac_c_preproc_warn_flag in '' yes
  4999. do
  5000. # Use a header file that comes with gcc, so configuring glibc
  5001. # with a fresh cross-compiler works.
  5002. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5003. # <limits.h> exists even on freestanding compilers.
  5004. # On the NeXT, cc -E runs the code through the compiler's parser,
  5005. # not just through cpp. "Syntax error" is here to catch this case.
  5006. cat >conftest.$ac_ext <<_ACEOF
  5007. /* confdefs.h. */
  5008. _ACEOF
  5009. cat confdefs.h >>conftest.$ac_ext
  5010. cat >>conftest.$ac_ext <<_ACEOF
  5011. /* end confdefs.h. */
  5012. #ifdef __STDC__
  5013. # include <limits.h>
  5014. #else
  5015. # include <assert.h>
  5016. #endif
  5017. Syntax error
  5018. _ACEOF
  5019. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5020. case "(($ac_try" in
  5021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5022. *) ac_try_echo=$ac_try;;
  5023. esac
  5024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5025. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5026. ac_status=$?
  5027. grep -v '^ *+' conftest.er1 >conftest.err
  5028. rm -f conftest.er1
  5029. cat conftest.err >&5
  5030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5031. (exit $ac_status); } >/dev/null && {
  5032. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5033. test ! -s conftest.err
  5034. }; then
  5035. :
  5036. else
  5037. echo "$as_me: failed program was:" >&5
  5038. sed 's/^/| /' conftest.$ac_ext >&5
  5039. # Broken: fails on valid input.
  5040. continue
  5041. fi
  5042. rm -f conftest.err conftest.$ac_ext
  5043. # OK, works on sane cases. Now check whether nonexistent headers
  5044. # can be detected and how.
  5045. cat >conftest.$ac_ext <<_ACEOF
  5046. /* confdefs.h. */
  5047. _ACEOF
  5048. cat confdefs.h >>conftest.$ac_ext
  5049. cat >>conftest.$ac_ext <<_ACEOF
  5050. /* end confdefs.h. */
  5051. #include <ac_nonexistent.h>
  5052. _ACEOF
  5053. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5054. case "(($ac_try" in
  5055. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5056. *) ac_try_echo=$ac_try;;
  5057. esac
  5058. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5059. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5060. ac_status=$?
  5061. grep -v '^ *+' conftest.er1 >conftest.err
  5062. rm -f conftest.er1
  5063. cat conftest.err >&5
  5064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5065. (exit $ac_status); } >/dev/null && {
  5066. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5067. test ! -s conftest.err
  5068. }; then
  5069. # Broken: success on invalid input.
  5070. continue
  5071. else
  5072. echo "$as_me: failed program was:" >&5
  5073. sed 's/^/| /' conftest.$ac_ext >&5
  5074. # Passes both tests.
  5075. ac_preproc_ok=:
  5076. break
  5077. fi
  5078. rm -f conftest.err conftest.$ac_ext
  5079. done
  5080. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5081. rm -f conftest.err conftest.$ac_ext
  5082. if $ac_preproc_ok; then
  5083. :
  5084. else
  5085. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5086. See \`config.log' for more details." >&5
  5087. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5088. See \`config.log' for more details." >&2;}
  5089. { (exit 1); exit 1; }; }
  5090. fi
  5091. ac_ext=c
  5092. ac_cpp='$CPP $CPPFLAGS'
  5093. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5094. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5095. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5096. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5097. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5098. if test "${ac_cv_path_GREP+set}" = set; then
  5099. echo $ECHO_N "(cached) $ECHO_C" >&6
  5100. else
  5101. # Extract the first word of "grep ggrep" to use in msg output
  5102. if test -z "$GREP"; then
  5103. set dummy grep ggrep; ac_prog_name=$2
  5104. if test "${ac_cv_path_GREP+set}" = set; then
  5105. echo $ECHO_N "(cached) $ECHO_C" >&6
  5106. else
  5107. ac_path_GREP_found=false
  5108. # Loop through the user's path and test for each of PROGNAME-LIST
  5109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5110. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5111. do
  5112. IFS=$as_save_IFS
  5113. test -z "$as_dir" && as_dir=.
  5114. for ac_prog in grep ggrep; do
  5115. for ac_exec_ext in '' $ac_executable_extensions; do
  5116. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5117. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5118. # Check for GNU ac_path_GREP and select it if it is found.
  5119. # Check for GNU $ac_path_GREP
  5120. case `"$ac_path_GREP" --version 2>&1` in
  5121. *GNU*)
  5122. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5123. *)
  5124. ac_count=0
  5125. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5126. while :
  5127. do
  5128. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5129. mv "conftest.tmp" "conftest.in"
  5130. cp "conftest.in" "conftest.nl"
  5131. echo 'GREP' >> "conftest.nl"
  5132. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5133. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5134. ac_count=`expr $ac_count + 1`
  5135. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5136. # Best one so far, save it but keep looking for a better one
  5137. ac_cv_path_GREP="$ac_path_GREP"
  5138. ac_path_GREP_max=$ac_count
  5139. fi
  5140. # 10*(2^10) chars as input seems more than enough
  5141. test $ac_count -gt 10 && break
  5142. done
  5143. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5144. esac
  5145. $ac_path_GREP_found && break 3
  5146. done
  5147. done
  5148. done
  5149. IFS=$as_save_IFS
  5150. fi
  5151. GREP="$ac_cv_path_GREP"
  5152. if test -z "$GREP"; then
  5153. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5154. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5155. { (exit 1); exit 1; }; }
  5156. fi
  5157. else
  5158. ac_cv_path_GREP=$GREP
  5159. fi
  5160. fi
  5161. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5162. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5163. GREP="$ac_cv_path_GREP"
  5164. { echo "$as_me:$LINENO: checking for egrep" >&5
  5165. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5166. if test "${ac_cv_path_EGREP+set}" = set; then
  5167. echo $ECHO_N "(cached) $ECHO_C" >&6
  5168. else
  5169. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5170. then ac_cv_path_EGREP="$GREP -E"
  5171. else
  5172. # Extract the first word of "egrep" to use in msg output
  5173. if test -z "$EGREP"; then
  5174. set dummy egrep; ac_prog_name=$2
  5175. if test "${ac_cv_path_EGREP+set}" = set; then
  5176. echo $ECHO_N "(cached) $ECHO_C" >&6
  5177. else
  5178. ac_path_EGREP_found=false
  5179. # Loop through the user's path and test for each of PROGNAME-LIST
  5180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5181. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5182. do
  5183. IFS=$as_save_IFS
  5184. test -z "$as_dir" && as_dir=.
  5185. for ac_prog in egrep; do
  5186. for ac_exec_ext in '' $ac_executable_extensions; do
  5187. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5188. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5189. # Check for GNU ac_path_EGREP and select it if it is found.
  5190. # Check for GNU $ac_path_EGREP
  5191. case `"$ac_path_EGREP" --version 2>&1` in
  5192. *GNU*)
  5193. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5194. *)
  5195. ac_count=0
  5196. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5197. while :
  5198. do
  5199. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5200. mv "conftest.tmp" "conftest.in"
  5201. cp "conftest.in" "conftest.nl"
  5202. echo 'EGREP' >> "conftest.nl"
  5203. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5204. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5205. ac_count=`expr $ac_count + 1`
  5206. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5207. # Best one so far, save it but keep looking for a better one
  5208. ac_cv_path_EGREP="$ac_path_EGREP"
  5209. ac_path_EGREP_max=$ac_count
  5210. fi
  5211. # 10*(2^10) chars as input seems more than enough
  5212. test $ac_count -gt 10 && break
  5213. done
  5214. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5215. esac
  5216. $ac_path_EGREP_found && break 3
  5217. done
  5218. done
  5219. done
  5220. IFS=$as_save_IFS
  5221. fi
  5222. EGREP="$ac_cv_path_EGREP"
  5223. if test -z "$EGREP"; then
  5224. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5225. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5226. { (exit 1); exit 1; }; }
  5227. fi
  5228. else
  5229. ac_cv_path_EGREP=$EGREP
  5230. fi
  5231. fi
  5232. fi
  5233. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5234. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5235. EGREP="$ac_cv_path_EGREP"
  5236. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5237. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5238. if test "${ac_cv_header_stdc+set}" = set; then
  5239. echo $ECHO_N "(cached) $ECHO_C" >&6
  5240. else
  5241. cat >conftest.$ac_ext <<_ACEOF
  5242. /* confdefs.h. */
  5243. _ACEOF
  5244. cat confdefs.h >>conftest.$ac_ext
  5245. cat >>conftest.$ac_ext <<_ACEOF
  5246. /* end confdefs.h. */
  5247. #include <stdlib.h>
  5248. #include <stdarg.h>
  5249. #include <string.h>
  5250. #include <float.h>
  5251. int
  5252. main ()
  5253. {
  5254. ;
  5255. return 0;
  5256. }
  5257. _ACEOF
  5258. rm -f conftest.$ac_objext
  5259. if { (ac_try="$ac_compile"
  5260. case "(($ac_try" in
  5261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5262. *) ac_try_echo=$ac_try;;
  5263. esac
  5264. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5265. (eval "$ac_compile") 2>conftest.er1
  5266. ac_status=$?
  5267. grep -v '^ *+' conftest.er1 >conftest.err
  5268. rm -f conftest.er1
  5269. cat conftest.err >&5
  5270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5271. (exit $ac_status); } && {
  5272. test -z "$ac_c_werror_flag" ||
  5273. test ! -s conftest.err
  5274. } && test -s conftest.$ac_objext; then
  5275. ac_cv_header_stdc=yes
  5276. else
  5277. echo "$as_me: failed program was:" >&5
  5278. sed 's/^/| /' conftest.$ac_ext >&5
  5279. ac_cv_header_stdc=no
  5280. fi
  5281. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5282. if test $ac_cv_header_stdc = yes; then
  5283. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5284. cat >conftest.$ac_ext <<_ACEOF
  5285. /* confdefs.h. */
  5286. _ACEOF
  5287. cat confdefs.h >>conftest.$ac_ext
  5288. cat >>conftest.$ac_ext <<_ACEOF
  5289. /* end confdefs.h. */
  5290. #include <string.h>
  5291. _ACEOF
  5292. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5293. $EGREP "memchr" >/dev/null 2>&1; then
  5294. :
  5295. else
  5296. ac_cv_header_stdc=no
  5297. fi
  5298. rm -f conftest*
  5299. fi
  5300. if test $ac_cv_header_stdc = yes; then
  5301. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5302. cat >conftest.$ac_ext <<_ACEOF
  5303. /* confdefs.h. */
  5304. _ACEOF
  5305. cat confdefs.h >>conftest.$ac_ext
  5306. cat >>conftest.$ac_ext <<_ACEOF
  5307. /* end confdefs.h. */
  5308. #include <stdlib.h>
  5309. _ACEOF
  5310. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5311. $EGREP "free" >/dev/null 2>&1; then
  5312. :
  5313. else
  5314. ac_cv_header_stdc=no
  5315. fi
  5316. rm -f conftest*
  5317. fi
  5318. if test $ac_cv_header_stdc = yes; then
  5319. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5320. if test "$cross_compiling" = yes; then
  5321. :
  5322. else
  5323. cat >conftest.$ac_ext <<_ACEOF
  5324. /* confdefs.h. */
  5325. _ACEOF
  5326. cat confdefs.h >>conftest.$ac_ext
  5327. cat >>conftest.$ac_ext <<_ACEOF
  5328. /* end confdefs.h. */
  5329. #include <ctype.h>
  5330. #include <stdlib.h>
  5331. #if ((' ' & 0x0FF) == 0x020)
  5332. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5333. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5334. #else
  5335. # define ISLOWER(c) \
  5336. (('a' <= (c) && (c) <= 'i') \
  5337. || ('j' <= (c) && (c) <= 'r') \
  5338. || ('s' <= (c) && (c) <= 'z'))
  5339. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5340. #endif
  5341. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5342. int
  5343. main ()
  5344. {
  5345. int i;
  5346. for (i = 0; i < 256; i++)
  5347. if (XOR (islower (i), ISLOWER (i))
  5348. || toupper (i) != TOUPPER (i))
  5349. return 2;
  5350. return 0;
  5351. }
  5352. _ACEOF
  5353. rm -f conftest$ac_exeext
  5354. if { (ac_try="$ac_link"
  5355. case "(($ac_try" in
  5356. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5357. *) ac_try_echo=$ac_try;;
  5358. esac
  5359. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5360. (eval "$ac_link") 2>&5
  5361. ac_status=$?
  5362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5363. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5364. { (case "(($ac_try" in
  5365. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5366. *) ac_try_echo=$ac_try;;
  5367. esac
  5368. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5369. (eval "$ac_try") 2>&5
  5370. ac_status=$?
  5371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5372. (exit $ac_status); }; }; then
  5373. :
  5374. else
  5375. echo "$as_me: program exited with status $ac_status" >&5
  5376. echo "$as_me: failed program was:" >&5
  5377. sed 's/^/| /' conftest.$ac_ext >&5
  5378. ( exit $ac_status )
  5379. ac_cv_header_stdc=no
  5380. fi
  5381. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5382. fi
  5383. fi
  5384. fi
  5385. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5386. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5387. if test $ac_cv_header_stdc = yes; then
  5388. cat >>confdefs.h <<\_ACEOF
  5389. #define STDC_HEADERS 1
  5390. _ACEOF
  5391. fi
  5392. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5393. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5394. inttypes.h stdint.h unistd.h
  5395. do
  5396. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5397. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5398. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5399. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5400. echo $ECHO_N "(cached) $ECHO_C" >&6
  5401. else
  5402. cat >conftest.$ac_ext <<_ACEOF
  5403. /* confdefs.h. */
  5404. _ACEOF
  5405. cat confdefs.h >>conftest.$ac_ext
  5406. cat >>conftest.$ac_ext <<_ACEOF
  5407. /* end confdefs.h. */
  5408. $ac_includes_default
  5409. #include <$ac_header>
  5410. _ACEOF
  5411. rm -f conftest.$ac_objext
  5412. if { (ac_try="$ac_compile"
  5413. case "(($ac_try" in
  5414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5415. *) ac_try_echo=$ac_try;;
  5416. esac
  5417. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5418. (eval "$ac_compile") 2>conftest.er1
  5419. ac_status=$?
  5420. grep -v '^ *+' conftest.er1 >conftest.err
  5421. rm -f conftest.er1
  5422. cat conftest.err >&5
  5423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5424. (exit $ac_status); } && {
  5425. test -z "$ac_c_werror_flag" ||
  5426. test ! -s conftest.err
  5427. } && test -s conftest.$ac_objext; then
  5428. eval "$as_ac_Header=yes"
  5429. else
  5430. echo "$as_me: failed program was:" >&5
  5431. sed 's/^/| /' conftest.$ac_ext >&5
  5432. eval "$as_ac_Header=no"
  5433. fi
  5434. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5435. fi
  5436. ac_res=`eval echo '${'$as_ac_Header'}'`
  5437. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5438. echo "${ECHO_T}$ac_res" >&6; }
  5439. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5440. cat >>confdefs.h <<_ACEOF
  5441. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5442. _ACEOF
  5443. fi
  5444. done
  5445. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5446. # for constant arguments. Useless!
  5447. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  5448. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  5449. if test "${ac_cv_working_alloca_h+set}" = set; then
  5450. echo $ECHO_N "(cached) $ECHO_C" >&6
  5451. else
  5452. cat >conftest.$ac_ext <<_ACEOF
  5453. /* confdefs.h. */
  5454. _ACEOF
  5455. cat confdefs.h >>conftest.$ac_ext
  5456. cat >>conftest.$ac_ext <<_ACEOF
  5457. /* end confdefs.h. */
  5458. #include <alloca.h>
  5459. int
  5460. main ()
  5461. {
  5462. char *p = (char *) alloca (2 * sizeof (int));
  5463. if (p) return 0;
  5464. ;
  5465. return 0;
  5466. }
  5467. _ACEOF
  5468. rm -f conftest.$ac_objext conftest$ac_exeext
  5469. if { (ac_try="$ac_link"
  5470. case "(($ac_try" in
  5471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5472. *) ac_try_echo=$ac_try;;
  5473. esac
  5474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5475. (eval "$ac_link") 2>conftest.er1
  5476. ac_status=$?
  5477. grep -v '^ *+' conftest.er1 >conftest.err
  5478. rm -f conftest.er1
  5479. cat conftest.err >&5
  5480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5481. (exit $ac_status); } && {
  5482. test -z "$ac_c_werror_flag" ||
  5483. test ! -s conftest.err
  5484. } && test -s conftest$ac_exeext &&
  5485. $as_test_x conftest$ac_exeext; then
  5486. ac_cv_working_alloca_h=yes
  5487. else
  5488. echo "$as_me: failed program was:" >&5
  5489. sed 's/^/| /' conftest.$ac_ext >&5
  5490. ac_cv_working_alloca_h=no
  5491. fi
  5492. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5493. conftest$ac_exeext conftest.$ac_ext
  5494. fi
  5495. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  5496. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  5497. if test $ac_cv_working_alloca_h = yes; then
  5498. cat >>confdefs.h <<\_ACEOF
  5499. #define HAVE_ALLOCA_H 1
  5500. _ACEOF
  5501. fi
  5502. { echo "$as_me:$LINENO: checking for alloca" >&5
  5503. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  5504. if test "${ac_cv_func_alloca_works+set}" = set; then
  5505. echo $ECHO_N "(cached) $ECHO_C" >&6
  5506. else
  5507. cat >conftest.$ac_ext <<_ACEOF
  5508. /* confdefs.h. */
  5509. _ACEOF
  5510. cat confdefs.h >>conftest.$ac_ext
  5511. cat >>conftest.$ac_ext <<_ACEOF
  5512. /* end confdefs.h. */
  5513. #ifdef __GNUC__
  5514. # define alloca __builtin_alloca
  5515. #else
  5516. # ifdef _MSC_VER
  5517. # include <malloc.h>
  5518. # define alloca _alloca
  5519. # else
  5520. # ifdef HAVE_ALLOCA_H
  5521. # include <alloca.h>
  5522. # else
  5523. # ifdef _AIX
  5524. #pragma alloca
  5525. # else
  5526. # ifndef alloca /* predefined by HP cc +Olibcalls */
  5527. char *alloca ();
  5528. # endif
  5529. # endif
  5530. # endif
  5531. # endif
  5532. #endif
  5533. int
  5534. main ()
  5535. {
  5536. char *p = (char *) alloca (1);
  5537. if (p) return 0;
  5538. ;
  5539. return 0;
  5540. }
  5541. _ACEOF
  5542. rm -f conftest.$ac_objext conftest$ac_exeext
  5543. if { (ac_try="$ac_link"
  5544. case "(($ac_try" in
  5545. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5546. *) ac_try_echo=$ac_try;;
  5547. esac
  5548. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5549. (eval "$ac_link") 2>conftest.er1
  5550. ac_status=$?
  5551. grep -v '^ *+' conftest.er1 >conftest.err
  5552. rm -f conftest.er1
  5553. cat conftest.err >&5
  5554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5555. (exit $ac_status); } && {
  5556. test -z "$ac_c_werror_flag" ||
  5557. test ! -s conftest.err
  5558. } && test -s conftest$ac_exeext &&
  5559. $as_test_x conftest$ac_exeext; then
  5560. ac_cv_func_alloca_works=yes
  5561. else
  5562. echo "$as_me: failed program was:" >&5
  5563. sed 's/^/| /' conftest.$ac_ext >&5
  5564. ac_cv_func_alloca_works=no
  5565. fi
  5566. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5567. conftest$ac_exeext conftest.$ac_ext
  5568. fi
  5569. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  5570. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  5571. if test $ac_cv_func_alloca_works = yes; then
  5572. cat >>confdefs.h <<\_ACEOF
  5573. #define HAVE_ALLOCA 1
  5574. _ACEOF
  5575. else
  5576. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5577. # that cause trouble. Some versions do not even contain alloca or
  5578. # contain a buggy version. If you still want to use their alloca,
  5579. # use ar to extract alloca.o from them instead of compiling alloca.c.
  5580. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  5581. cat >>confdefs.h <<\_ACEOF
  5582. #define C_ALLOCA 1
  5583. _ACEOF
  5584. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  5585. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  5586. if test "${ac_cv_os_cray+set}" = set; then
  5587. echo $ECHO_N "(cached) $ECHO_C" >&6
  5588. else
  5589. cat >conftest.$ac_ext <<_ACEOF
  5590. /* confdefs.h. */
  5591. _ACEOF
  5592. cat confdefs.h >>conftest.$ac_ext
  5593. cat >>conftest.$ac_ext <<_ACEOF
  5594. /* end confdefs.h. */
  5595. #if defined CRAY && ! defined CRAY2
  5596. webecray
  5597. #else
  5598. wenotbecray
  5599. #endif
  5600. _ACEOF
  5601. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5602. $EGREP "webecray" >/dev/null 2>&1; then
  5603. ac_cv_os_cray=yes
  5604. else
  5605. ac_cv_os_cray=no
  5606. fi
  5607. rm -f conftest*
  5608. fi
  5609. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  5610. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  5611. if test $ac_cv_os_cray = yes; then
  5612. for ac_func in _getb67 GETB67 getb67; do
  5613. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5614. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5615. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5616. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5617. echo $ECHO_N "(cached) $ECHO_C" >&6
  5618. else
  5619. cat >conftest.$ac_ext <<_ACEOF
  5620. /* confdefs.h. */
  5621. _ACEOF
  5622. cat confdefs.h >>conftest.$ac_ext
  5623. cat >>conftest.$ac_ext <<_ACEOF
  5624. /* end confdefs.h. */
  5625. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5626. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5627. #define $ac_func innocuous_$ac_func
  5628. /* System header to define __stub macros and hopefully few prototypes,
  5629. which can conflict with char $ac_func (); below.
  5630. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5631. <limits.h> exists even on freestanding compilers. */
  5632. #ifdef __STDC__
  5633. # include <limits.h>
  5634. #else
  5635. # include <assert.h>
  5636. #endif
  5637. #undef $ac_func
  5638. /* Override any GCC internal prototype to avoid an error.
  5639. Use char because int might match the return type of a GCC
  5640. builtin and then its argument prototype would still apply. */
  5641. #ifdef __cplusplus
  5642. extern "C"
  5643. #endif
  5644. char $ac_func ();
  5645. /* The GNU C library defines this for functions which it implements
  5646. to always fail with ENOSYS. Some functions are actually named
  5647. something starting with __ and the normal name is an alias. */
  5648. #if defined __stub_$ac_func || defined __stub___$ac_func
  5649. choke me
  5650. #endif
  5651. int
  5652. main ()
  5653. {
  5654. return $ac_func ();
  5655. ;
  5656. return 0;
  5657. }
  5658. _ACEOF
  5659. rm -f conftest.$ac_objext conftest$ac_exeext
  5660. if { (ac_try="$ac_link"
  5661. case "(($ac_try" in
  5662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5663. *) ac_try_echo=$ac_try;;
  5664. esac
  5665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5666. (eval "$ac_link") 2>conftest.er1
  5667. ac_status=$?
  5668. grep -v '^ *+' conftest.er1 >conftest.err
  5669. rm -f conftest.er1
  5670. cat conftest.err >&5
  5671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5672. (exit $ac_status); } && {
  5673. test -z "$ac_c_werror_flag" ||
  5674. test ! -s conftest.err
  5675. } && test -s conftest$ac_exeext &&
  5676. $as_test_x conftest$ac_exeext; then
  5677. eval "$as_ac_var=yes"
  5678. else
  5679. echo "$as_me: failed program was:" >&5
  5680. sed 's/^/| /' conftest.$ac_ext >&5
  5681. eval "$as_ac_var=no"
  5682. fi
  5683. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5684. conftest$ac_exeext conftest.$ac_ext
  5685. fi
  5686. ac_res=`eval echo '${'$as_ac_var'}'`
  5687. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5688. echo "${ECHO_T}$ac_res" >&6; }
  5689. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5690. cat >>confdefs.h <<_ACEOF
  5691. #define CRAY_STACKSEG_END $ac_func
  5692. _ACEOF
  5693. break
  5694. fi
  5695. done
  5696. fi
  5697. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  5698. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  5699. if test "${ac_cv_c_stack_direction+set}" = set; then
  5700. echo $ECHO_N "(cached) $ECHO_C" >&6
  5701. else
  5702. if test "$cross_compiling" = yes; then
  5703. ac_cv_c_stack_direction=0
  5704. else
  5705. cat >conftest.$ac_ext <<_ACEOF
  5706. /* confdefs.h. */
  5707. _ACEOF
  5708. cat confdefs.h >>conftest.$ac_ext
  5709. cat >>conftest.$ac_ext <<_ACEOF
  5710. /* end confdefs.h. */
  5711. $ac_includes_default
  5712. int
  5713. find_stack_direction ()
  5714. {
  5715. static char *addr = 0;
  5716. auto char dummy;
  5717. if (addr == 0)
  5718. {
  5719. addr = &dummy;
  5720. return find_stack_direction ();
  5721. }
  5722. else
  5723. return (&dummy > addr) ? 1 : -1;
  5724. }
  5725. int
  5726. main ()
  5727. {
  5728. return find_stack_direction () < 0;
  5729. }
  5730. _ACEOF
  5731. rm -f conftest$ac_exeext
  5732. if { (ac_try="$ac_link"
  5733. case "(($ac_try" in
  5734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5735. *) ac_try_echo=$ac_try;;
  5736. esac
  5737. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5738. (eval "$ac_link") 2>&5
  5739. ac_status=$?
  5740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5741. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5742. { (case "(($ac_try" in
  5743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5744. *) ac_try_echo=$ac_try;;
  5745. esac
  5746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5747. (eval "$ac_try") 2>&5
  5748. ac_status=$?
  5749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5750. (exit $ac_status); }; }; then
  5751. ac_cv_c_stack_direction=1
  5752. else
  5753. echo "$as_me: program exited with status $ac_status" >&5
  5754. echo "$as_me: failed program was:" >&5
  5755. sed 's/^/| /' conftest.$ac_ext >&5
  5756. ( exit $ac_status )
  5757. ac_cv_c_stack_direction=-1
  5758. fi
  5759. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5760. fi
  5761. fi
  5762. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  5763. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  5764. cat >>confdefs.h <<_ACEOF
  5765. #define STACK_DIRECTION $ac_cv_c_stack_direction
  5766. _ACEOF
  5767. fi
  5768. #AC_HEADER_STDC
  5769. 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
  5770. do
  5771. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5772. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5773. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5774. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5775. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5776. echo $ECHO_N "(cached) $ECHO_C" >&6
  5777. fi
  5778. ac_res=`eval echo '${'$as_ac_Header'}'`
  5779. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5780. echo "${ECHO_T}$ac_res" >&6; }
  5781. else
  5782. # Is the header compilable?
  5783. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5784. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5785. cat >conftest.$ac_ext <<_ACEOF
  5786. /* confdefs.h. */
  5787. _ACEOF
  5788. cat confdefs.h >>conftest.$ac_ext
  5789. cat >>conftest.$ac_ext <<_ACEOF
  5790. /* end confdefs.h. */
  5791. $ac_includes_default
  5792. #include <$ac_header>
  5793. _ACEOF
  5794. rm -f conftest.$ac_objext
  5795. if { (ac_try="$ac_compile"
  5796. case "(($ac_try" in
  5797. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5798. *) ac_try_echo=$ac_try;;
  5799. esac
  5800. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5801. (eval "$ac_compile") 2>conftest.er1
  5802. ac_status=$?
  5803. grep -v '^ *+' conftest.er1 >conftest.err
  5804. rm -f conftest.er1
  5805. cat conftest.err >&5
  5806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5807. (exit $ac_status); } && {
  5808. test -z "$ac_c_werror_flag" ||
  5809. test ! -s conftest.err
  5810. } && test -s conftest.$ac_objext; then
  5811. ac_header_compiler=yes
  5812. else
  5813. echo "$as_me: failed program was:" >&5
  5814. sed 's/^/| /' conftest.$ac_ext >&5
  5815. ac_header_compiler=no
  5816. fi
  5817. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5818. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5819. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5820. # Is the header present?
  5821. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5822. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5823. cat >conftest.$ac_ext <<_ACEOF
  5824. /* confdefs.h. */
  5825. _ACEOF
  5826. cat confdefs.h >>conftest.$ac_ext
  5827. cat >>conftest.$ac_ext <<_ACEOF
  5828. /* end confdefs.h. */
  5829. #include <$ac_header>
  5830. _ACEOF
  5831. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5832. case "(($ac_try" in
  5833. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5834. *) ac_try_echo=$ac_try;;
  5835. esac
  5836. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5837. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5838. ac_status=$?
  5839. grep -v '^ *+' conftest.er1 >conftest.err
  5840. rm -f conftest.er1
  5841. cat conftest.err >&5
  5842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5843. (exit $ac_status); } >/dev/null && {
  5844. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5845. test ! -s conftest.err
  5846. }; then
  5847. ac_header_preproc=yes
  5848. else
  5849. echo "$as_me: failed program was:" >&5
  5850. sed 's/^/| /' conftest.$ac_ext >&5
  5851. ac_header_preproc=no
  5852. fi
  5853. rm -f conftest.err conftest.$ac_ext
  5854. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5855. echo "${ECHO_T}$ac_header_preproc" >&6; }
  5856. # So? What about this header?
  5857. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5858. yes:no: )
  5859. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5860. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5861. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5862. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5863. ac_header_preproc=yes
  5864. ;;
  5865. no:yes:* )
  5866. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5867. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5868. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5869. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5870. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5871. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5872. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5873. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5874. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5875. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5876. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5877. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5878. ( cat <<\_ASBOX
  5879. ## ----------------------------------- ##
  5880. ## Report this to tujikawa@rednoah.com ##
  5881. ## ----------------------------------- ##
  5882. _ASBOX
  5883. ) | sed "s/^/$as_me: WARNING: /" >&2
  5884. ;;
  5885. esac
  5886. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5887. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5888. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5889. echo $ECHO_N "(cached) $ECHO_C" >&6
  5890. else
  5891. eval "$as_ac_Header=\$ac_header_preproc"
  5892. fi
  5893. ac_res=`eval echo '${'$as_ac_Header'}'`
  5894. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5895. echo "${ECHO_T}$ac_res" >&6; }
  5896. fi
  5897. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5898. cat >>confdefs.h <<_ACEOF
  5899. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5900. _ACEOF
  5901. fi
  5902. done
  5903. # Checks for typedefs, structures, and compiler characteristics.
  5904. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  5905. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  5906. if test "${ac_cv_header_stdbool_h+set}" = set; then
  5907. echo $ECHO_N "(cached) $ECHO_C" >&6
  5908. else
  5909. cat >conftest.$ac_ext <<_ACEOF
  5910. /* confdefs.h. */
  5911. _ACEOF
  5912. cat confdefs.h >>conftest.$ac_ext
  5913. cat >>conftest.$ac_ext <<_ACEOF
  5914. /* end confdefs.h. */
  5915. #include <stdbool.h>
  5916. #ifndef bool
  5917. "error: bool is not defined"
  5918. #endif
  5919. #ifndef false
  5920. "error: false is not defined"
  5921. #endif
  5922. #if false
  5923. "error: false is not 0"
  5924. #endif
  5925. #ifndef true
  5926. "error: true is not defined"
  5927. #endif
  5928. #if true != 1
  5929. "error: true is not 1"
  5930. #endif
  5931. #ifndef __bool_true_false_are_defined
  5932. "error: __bool_true_false_are_defined is not defined"
  5933. #endif
  5934. struct s { _Bool s: 1; _Bool t; } s;
  5935. char a[true == 1 ? 1 : -1];
  5936. char b[false == 0 ? 1 : -1];
  5937. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  5938. char d[(bool) 0.5 == true ? 1 : -1];
  5939. bool e = &s;
  5940. char f[(_Bool) 0.0 == false ? 1 : -1];
  5941. char g[true];
  5942. char h[sizeof (_Bool)];
  5943. char i[sizeof s.t];
  5944. enum { j = false, k = true, l = false * true, m = true * 256 };
  5945. _Bool n[m];
  5946. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  5947. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  5948. # if defined __xlc__ || defined __GNUC__
  5949. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  5950. reported by James Lemley on 2005-10-05; see
  5951. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  5952. This test is not quite right, since xlc is allowed to
  5953. reject this program, as the initializer for xlcbug is
  5954. not one of the forms that C requires support for.
  5955. However, doing the test right would require a runtime
  5956. test, and that would make cross-compilation harder.
  5957. Let us hope that IBM fixes the xlc bug, and also adds
  5958. support for this kind of constant expression. In the
  5959. meantime, this test will reject xlc, which is OK, since
  5960. our stdbool.h substitute should suffice. We also test
  5961. this with GCC, where it should work, to detect more
  5962. quickly whether someone messes up the test in the
  5963. future. */
  5964. char digs[] = "0123456789";
  5965. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  5966. # endif
  5967. /* Catch a bug in an HP-UX C compiler. See
  5968. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  5969. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  5970. */
  5971. _Bool q = true;
  5972. _Bool *pq = &q;
  5973. int
  5974. main ()
  5975. {
  5976. *pq |= q;
  5977. *pq |= ! q;
  5978. /* Refer to every declared value, to avoid compiler optimizations. */
  5979. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  5980. + !m + !n + !o + !p + !q + !pq);
  5981. ;
  5982. return 0;
  5983. }
  5984. _ACEOF
  5985. rm -f conftest.$ac_objext
  5986. if { (ac_try="$ac_compile"
  5987. case "(($ac_try" in
  5988. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5989. *) ac_try_echo=$ac_try;;
  5990. esac
  5991. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5992. (eval "$ac_compile") 2>conftest.er1
  5993. ac_status=$?
  5994. grep -v '^ *+' conftest.er1 >conftest.err
  5995. rm -f conftest.er1
  5996. cat conftest.err >&5
  5997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5998. (exit $ac_status); } && {
  5999. test -z "$ac_c_werror_flag" ||
  6000. test ! -s conftest.err
  6001. } && test -s conftest.$ac_objext; then
  6002. ac_cv_header_stdbool_h=yes
  6003. else
  6004. echo "$as_me: failed program was:" >&5
  6005. sed 's/^/| /' conftest.$ac_ext >&5
  6006. ac_cv_header_stdbool_h=no
  6007. fi
  6008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6009. fi
  6010. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6011. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6012. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6013. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6014. if test "${ac_cv_type__Bool+set}" = set; then
  6015. echo $ECHO_N "(cached) $ECHO_C" >&6
  6016. else
  6017. cat >conftest.$ac_ext <<_ACEOF
  6018. /* confdefs.h. */
  6019. _ACEOF
  6020. cat confdefs.h >>conftest.$ac_ext
  6021. cat >>conftest.$ac_ext <<_ACEOF
  6022. /* end confdefs.h. */
  6023. $ac_includes_default
  6024. typedef _Bool ac__type_new_;
  6025. int
  6026. main ()
  6027. {
  6028. if ((ac__type_new_ *) 0)
  6029. return 0;
  6030. if (sizeof (ac__type_new_))
  6031. return 0;
  6032. ;
  6033. return 0;
  6034. }
  6035. _ACEOF
  6036. rm -f conftest.$ac_objext
  6037. if { (ac_try="$ac_compile"
  6038. case "(($ac_try" in
  6039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6040. *) ac_try_echo=$ac_try;;
  6041. esac
  6042. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6043. (eval "$ac_compile") 2>conftest.er1
  6044. ac_status=$?
  6045. grep -v '^ *+' conftest.er1 >conftest.err
  6046. rm -f conftest.er1
  6047. cat conftest.err >&5
  6048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6049. (exit $ac_status); } && {
  6050. test -z "$ac_c_werror_flag" ||
  6051. test ! -s conftest.err
  6052. } && test -s conftest.$ac_objext; then
  6053. ac_cv_type__Bool=yes
  6054. else
  6055. echo "$as_me: failed program was:" >&5
  6056. sed 's/^/| /' conftest.$ac_ext >&5
  6057. ac_cv_type__Bool=no
  6058. fi
  6059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6060. fi
  6061. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  6062. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  6063. if test $ac_cv_type__Bool = yes; then
  6064. cat >>confdefs.h <<_ACEOF
  6065. #define HAVE__BOOL 1
  6066. _ACEOF
  6067. fi
  6068. if test $ac_cv_header_stdbool_h = yes; then
  6069. cat >>confdefs.h <<\_ACEOF
  6070. #define HAVE_STDBOOL_H 1
  6071. _ACEOF
  6072. fi
  6073. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6074. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  6075. if test "${ac_cv_c_const+set}" = set; then
  6076. echo $ECHO_N "(cached) $ECHO_C" >&6
  6077. else
  6078. cat >conftest.$ac_ext <<_ACEOF
  6079. /* confdefs.h. */
  6080. _ACEOF
  6081. cat confdefs.h >>conftest.$ac_ext
  6082. cat >>conftest.$ac_ext <<_ACEOF
  6083. /* end confdefs.h. */
  6084. int
  6085. main ()
  6086. {
  6087. /* FIXME: Include the comments suggested by Paul. */
  6088. #ifndef __cplusplus
  6089. /* Ultrix mips cc rejects this. */
  6090. typedef int charset[2];
  6091. const charset cs;
  6092. /* SunOS 4.1.1 cc rejects this. */
  6093. char const *const *pcpcc;
  6094. char **ppc;
  6095. /* NEC SVR4.0.2 mips cc rejects this. */
  6096. struct point {int x, y;};
  6097. static struct point const zero = {0,0};
  6098. /* AIX XL C 1.02.0.0 rejects this.
  6099. It does not let you subtract one const X* pointer from another in
  6100. an arm of an if-expression whose if-part is not a constant
  6101. expression */
  6102. const char *g = "string";
  6103. pcpcc = &g + (g ? g-g : 0);
  6104. /* HPUX 7.0 cc rejects these. */
  6105. ++pcpcc;
  6106. ppc = (char**) pcpcc;
  6107. pcpcc = (char const *const *) ppc;
  6108. { /* SCO 3.2v4 cc rejects this. */
  6109. char *t;
  6110. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6111. *t++ = 0;
  6112. if (s) return 0;
  6113. }
  6114. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6115. int x[] = {25, 17};
  6116. const int *foo = &x[0];
  6117. ++foo;
  6118. }
  6119. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6120. typedef const int *iptr;
  6121. iptr p = 0;
  6122. ++p;
  6123. }
  6124. { /* AIX XL C 1.02.0.0 rejects this saying
  6125. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6126. struct s { int j; const int *ap[3]; };
  6127. struct s *b; b->j = 5;
  6128. }
  6129. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6130. const int foo = 10;
  6131. if (!foo) return 0;
  6132. }
  6133. return !cs[0] && !zero.x;
  6134. #endif
  6135. ;
  6136. return 0;
  6137. }
  6138. _ACEOF
  6139. rm -f conftest.$ac_objext
  6140. if { (ac_try="$ac_compile"
  6141. case "(($ac_try" in
  6142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6143. *) ac_try_echo=$ac_try;;
  6144. esac
  6145. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6146. (eval "$ac_compile") 2>conftest.er1
  6147. ac_status=$?
  6148. grep -v '^ *+' conftest.er1 >conftest.err
  6149. rm -f conftest.er1
  6150. cat conftest.err >&5
  6151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6152. (exit $ac_status); } && {
  6153. test -z "$ac_c_werror_flag" ||
  6154. test ! -s conftest.err
  6155. } && test -s conftest.$ac_objext; then
  6156. ac_cv_c_const=yes
  6157. else
  6158. echo "$as_me: failed program was:" >&5
  6159. sed 's/^/| /' conftest.$ac_ext >&5
  6160. ac_cv_c_const=no
  6161. fi
  6162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6163. fi
  6164. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6165. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  6166. if test $ac_cv_c_const = no; then
  6167. cat >>confdefs.h <<\_ACEOF
  6168. #define const
  6169. _ACEOF
  6170. fi
  6171. { echo "$as_me:$LINENO: checking for inline" >&5
  6172. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  6173. if test "${ac_cv_c_inline+set}" = set; then
  6174. echo $ECHO_N "(cached) $ECHO_C" >&6
  6175. else
  6176. ac_cv_c_inline=no
  6177. for ac_kw in inline __inline__ __inline; do
  6178. cat >conftest.$ac_ext <<_ACEOF
  6179. /* confdefs.h. */
  6180. _ACEOF
  6181. cat confdefs.h >>conftest.$ac_ext
  6182. cat >>conftest.$ac_ext <<_ACEOF
  6183. /* end confdefs.h. */
  6184. #ifndef __cplusplus
  6185. typedef int foo_t;
  6186. static $ac_kw foo_t static_foo () {return 0; }
  6187. $ac_kw foo_t foo () {return 0; }
  6188. #endif
  6189. _ACEOF
  6190. rm -f conftest.$ac_objext
  6191. if { (ac_try="$ac_compile"
  6192. case "(($ac_try" in
  6193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6194. *) ac_try_echo=$ac_try;;
  6195. esac
  6196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6197. (eval "$ac_compile") 2>conftest.er1
  6198. ac_status=$?
  6199. grep -v '^ *+' conftest.er1 >conftest.err
  6200. rm -f conftest.er1
  6201. cat conftest.err >&5
  6202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6203. (exit $ac_status); } && {
  6204. test -z "$ac_c_werror_flag" ||
  6205. test ! -s conftest.err
  6206. } && test -s conftest.$ac_objext; then
  6207. ac_cv_c_inline=$ac_kw
  6208. else
  6209. echo "$as_me: failed program was:" >&5
  6210. sed 's/^/| /' conftest.$ac_ext >&5
  6211. fi
  6212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6213. test "$ac_cv_c_inline" != no && break
  6214. done
  6215. fi
  6216. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6217. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  6218. case $ac_cv_c_inline in
  6219. inline | yes) ;;
  6220. *)
  6221. case $ac_cv_c_inline in
  6222. no) ac_val=;;
  6223. *) ac_val=$ac_cv_c_inline;;
  6224. esac
  6225. cat >>confdefs.h <<_ACEOF
  6226. #ifndef __cplusplus
  6227. #define inline $ac_val
  6228. #endif
  6229. _ACEOF
  6230. ;;
  6231. esac
  6232. { echo "$as_me:$LINENO: checking for size_t" >&5
  6233. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  6234. if test "${ac_cv_type_size_t+set}" = set; then
  6235. echo $ECHO_N "(cached) $ECHO_C" >&6
  6236. else
  6237. cat >conftest.$ac_ext <<_ACEOF
  6238. /* confdefs.h. */
  6239. _ACEOF
  6240. cat confdefs.h >>conftest.$ac_ext
  6241. cat >>conftest.$ac_ext <<_ACEOF
  6242. /* end confdefs.h. */
  6243. $ac_includes_default
  6244. typedef size_t ac__type_new_;
  6245. int
  6246. main ()
  6247. {
  6248. if ((ac__type_new_ *) 0)
  6249. return 0;
  6250. if (sizeof (ac__type_new_))
  6251. return 0;
  6252. ;
  6253. return 0;
  6254. }
  6255. _ACEOF
  6256. rm -f conftest.$ac_objext
  6257. if { (ac_try="$ac_compile"
  6258. case "(($ac_try" in
  6259. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6260. *) ac_try_echo=$ac_try;;
  6261. esac
  6262. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6263. (eval "$ac_compile") 2>conftest.er1
  6264. ac_status=$?
  6265. grep -v '^ *+' conftest.er1 >conftest.err
  6266. rm -f conftest.er1
  6267. cat conftest.err >&5
  6268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6269. (exit $ac_status); } && {
  6270. test -z "$ac_c_werror_flag" ||
  6271. test ! -s conftest.err
  6272. } && test -s conftest.$ac_objext; then
  6273. ac_cv_type_size_t=yes
  6274. else
  6275. echo "$as_me: failed program was:" >&5
  6276. sed 's/^/| /' conftest.$ac_ext >&5
  6277. ac_cv_type_size_t=no
  6278. fi
  6279. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6280. fi
  6281. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6282. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  6283. if test $ac_cv_type_size_t = yes; then
  6284. :
  6285. else
  6286. cat >>confdefs.h <<_ACEOF
  6287. #define size_t unsigned int
  6288. _ACEOF
  6289. fi
  6290. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  6291. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  6292. if test "${ac_cv_header_time+set}" = set; then
  6293. echo $ECHO_N "(cached) $ECHO_C" >&6
  6294. else
  6295. cat >conftest.$ac_ext <<_ACEOF
  6296. /* confdefs.h. */
  6297. _ACEOF
  6298. cat confdefs.h >>conftest.$ac_ext
  6299. cat >>conftest.$ac_ext <<_ACEOF
  6300. /* end confdefs.h. */
  6301. #include <sys/types.h>
  6302. #include <sys/time.h>
  6303. #include <time.h>
  6304. int
  6305. main ()
  6306. {
  6307. if ((struct tm *) 0)
  6308. return 0;
  6309. ;
  6310. return 0;
  6311. }
  6312. _ACEOF
  6313. rm -f conftest.$ac_objext
  6314. if { (ac_try="$ac_compile"
  6315. case "(($ac_try" in
  6316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6317. *) ac_try_echo=$ac_try;;
  6318. esac
  6319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6320. (eval "$ac_compile") 2>conftest.er1
  6321. ac_status=$?
  6322. grep -v '^ *+' conftest.er1 >conftest.err
  6323. rm -f conftest.er1
  6324. cat conftest.err >&5
  6325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6326. (exit $ac_status); } && {
  6327. test -z "$ac_c_werror_flag" ||
  6328. test ! -s conftest.err
  6329. } && test -s conftest.$ac_objext; then
  6330. ac_cv_header_time=yes
  6331. else
  6332. echo "$as_me: failed program was:" >&5
  6333. sed 's/^/| /' conftest.$ac_ext >&5
  6334. ac_cv_header_time=no
  6335. fi
  6336. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6337. fi
  6338. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  6339. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  6340. if test $ac_cv_header_time = yes; then
  6341. cat >>confdefs.h <<\_ACEOF
  6342. #define TIME_WITH_SYS_TIME 1
  6343. _ACEOF
  6344. fi
  6345. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6346. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  6347. if test "${ac_cv_struct_tm+set}" = set; then
  6348. echo $ECHO_N "(cached) $ECHO_C" >&6
  6349. else
  6350. cat >conftest.$ac_ext <<_ACEOF
  6351. /* confdefs.h. */
  6352. _ACEOF
  6353. cat confdefs.h >>conftest.$ac_ext
  6354. cat >>conftest.$ac_ext <<_ACEOF
  6355. /* end confdefs.h. */
  6356. #include <sys/types.h>
  6357. #include <time.h>
  6358. int
  6359. main ()
  6360. {
  6361. struct tm tm;
  6362. int *p = &tm.tm_sec;
  6363. return !p;
  6364. ;
  6365. return 0;
  6366. }
  6367. _ACEOF
  6368. rm -f conftest.$ac_objext
  6369. if { (ac_try="$ac_compile"
  6370. case "(($ac_try" in
  6371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6372. *) ac_try_echo=$ac_try;;
  6373. esac
  6374. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6375. (eval "$ac_compile") 2>conftest.er1
  6376. ac_status=$?
  6377. grep -v '^ *+' conftest.er1 >conftest.err
  6378. rm -f conftest.er1
  6379. cat conftest.err >&5
  6380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6381. (exit $ac_status); } && {
  6382. test -z "$ac_c_werror_flag" ||
  6383. test ! -s conftest.err
  6384. } && test -s conftest.$ac_objext; then
  6385. ac_cv_struct_tm=time.h
  6386. else
  6387. echo "$as_me: failed program was:" >&5
  6388. sed 's/^/| /' conftest.$ac_ext >&5
  6389. ac_cv_struct_tm=sys/time.h
  6390. fi
  6391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6392. fi
  6393. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6394. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  6395. if test $ac_cv_struct_tm = sys/time.h; then
  6396. cat >>confdefs.h <<\_ACEOF
  6397. #define TM_IN_SYS_TIME 1
  6398. _ACEOF
  6399. fi
  6400. { echo "$as_me:$LINENO: checking for working volatile" >&5
  6401. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  6402. if test "${ac_cv_c_volatile+set}" = set; then
  6403. echo $ECHO_N "(cached) $ECHO_C" >&6
  6404. else
  6405. cat >conftest.$ac_ext <<_ACEOF
  6406. /* confdefs.h. */
  6407. _ACEOF
  6408. cat confdefs.h >>conftest.$ac_ext
  6409. cat >>conftest.$ac_ext <<_ACEOF
  6410. /* end confdefs.h. */
  6411. int
  6412. main ()
  6413. {
  6414. volatile int x;
  6415. int * volatile y = (int *) 0;
  6416. return !x && !y;
  6417. ;
  6418. return 0;
  6419. }
  6420. _ACEOF
  6421. rm -f conftest.$ac_objext
  6422. if { (ac_try="$ac_compile"
  6423. case "(($ac_try" in
  6424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6425. *) ac_try_echo=$ac_try;;
  6426. esac
  6427. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6428. (eval "$ac_compile") 2>conftest.er1
  6429. ac_status=$?
  6430. grep -v '^ *+' conftest.er1 >conftest.err
  6431. rm -f conftest.er1
  6432. cat conftest.err >&5
  6433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6434. (exit $ac_status); } && {
  6435. test -z "$ac_c_werror_flag" ||
  6436. test ! -s conftest.err
  6437. } && test -s conftest.$ac_objext; then
  6438. ac_cv_c_volatile=yes
  6439. else
  6440. echo "$as_me: failed program was:" >&5
  6441. sed 's/^/| /' conftest.$ac_ext >&5
  6442. ac_cv_c_volatile=no
  6443. fi
  6444. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6445. fi
  6446. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  6447. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  6448. if test $ac_cv_c_volatile = no; then
  6449. cat >>confdefs.h <<\_ACEOF
  6450. #define volatile
  6451. _ACEOF
  6452. fi
  6453. # Checks for library functions.
  6454. MKINSTALLDIRS=
  6455. if test -n "$ac_aux_dir"; then
  6456. case "$ac_aux_dir" in
  6457. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  6458. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  6459. esac
  6460. fi
  6461. if test -z "$MKINSTALLDIRS"; then
  6462. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  6463. fi
  6464. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  6465. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  6466. # Check whether --enable-nls was given.
  6467. if test "${enable_nls+set}" = set; then
  6468. enableval=$enable_nls; USE_NLS=$enableval
  6469. else
  6470. USE_NLS=yes
  6471. fi
  6472. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  6473. echo "${ECHO_T}$USE_NLS" >&6; }
  6474. # Prepare PATH_SEPARATOR.
  6475. # The user is always right.
  6476. if test "${PATH_SEPARATOR+set}" != set; then
  6477. echo "#! /bin/sh" >conf$$.sh
  6478. echo "exit 0" >>conf$$.sh
  6479. chmod +x conf$$.sh
  6480. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6481. PATH_SEPARATOR=';'
  6482. else
  6483. PATH_SEPARATOR=:
  6484. fi
  6485. rm -f conf$$.sh
  6486. fi
  6487. # Find out how to test for executable files. Don't use a zero-byte file,
  6488. # as systems may use methods other than mode bits to determine executability.
  6489. cat >conf$$.file <<_ASEOF
  6490. #! /bin/sh
  6491. exit 0
  6492. _ASEOF
  6493. chmod +x conf$$.file
  6494. if test -x conf$$.file >/dev/null 2>&1; then
  6495. ac_executable_p="test -x"
  6496. else
  6497. ac_executable_p="test -f"
  6498. fi
  6499. rm -f conf$$.file
  6500. # Extract the first word of "msgfmt", so it can be a program name with args.
  6501. set dummy msgfmt; ac_word=$2
  6502. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6503. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6504. if test "${ac_cv_path_MSGFMT+set}" = set; then
  6505. echo $ECHO_N "(cached) $ECHO_C" >&6
  6506. else
  6507. case "$MSGFMT" in
  6508. [\\/]* | ?:[\\/]*)
  6509. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  6510. ;;
  6511. *)
  6512. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6513. for ac_dir in $PATH; do
  6514. IFS="$ac_save_IFS"
  6515. test -z "$ac_dir" && ac_dir=.
  6516. for ac_exec_ext in '' $ac_executable_extensions; do
  6517. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6518. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  6519. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6520. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  6521. break 2
  6522. fi
  6523. fi
  6524. done
  6525. done
  6526. IFS="$ac_save_IFS"
  6527. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  6528. ;;
  6529. esac
  6530. fi
  6531. MSGFMT="$ac_cv_path_MSGFMT"
  6532. if test "$MSGFMT" != ":"; then
  6533. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  6534. echo "${ECHO_T}$MSGFMT" >&6; }
  6535. else
  6536. { echo "$as_me:$LINENO: result: no" >&5
  6537. echo "${ECHO_T}no" >&6; }
  6538. fi
  6539. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  6540. set dummy gmsgfmt; ac_word=$2
  6541. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6542. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6543. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  6544. echo $ECHO_N "(cached) $ECHO_C" >&6
  6545. else
  6546. case $GMSGFMT in
  6547. [\\/]* | ?:[\\/]*)
  6548. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6549. ;;
  6550. *)
  6551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6552. for as_dir in $PATH
  6553. do
  6554. IFS=$as_save_IFS
  6555. test -z "$as_dir" && as_dir=.
  6556. for ac_exec_ext in '' $ac_executable_extensions; do
  6557. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6558. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  6559. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6560. break 2
  6561. fi
  6562. done
  6563. done
  6564. IFS=$as_save_IFS
  6565. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  6566. ;;
  6567. esac
  6568. fi
  6569. GMSGFMT=$ac_cv_path_GMSGFMT
  6570. if test -n "$GMSGFMT"; then
  6571. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  6572. echo "${ECHO_T}$GMSGFMT" >&6; }
  6573. else
  6574. { echo "$as_me:$LINENO: result: no" >&5
  6575. echo "${ECHO_T}no" >&6; }
  6576. fi
  6577. # Prepare PATH_SEPARATOR.
  6578. # The user is always right.
  6579. if test "${PATH_SEPARATOR+set}" != set; then
  6580. echo "#! /bin/sh" >conf$$.sh
  6581. echo "exit 0" >>conf$$.sh
  6582. chmod +x conf$$.sh
  6583. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6584. PATH_SEPARATOR=';'
  6585. else
  6586. PATH_SEPARATOR=:
  6587. fi
  6588. rm -f conf$$.sh
  6589. fi
  6590. # Find out how to test for executable files. Don't use a zero-byte file,
  6591. # as systems may use methods other than mode bits to determine executability.
  6592. cat >conf$$.file <<_ASEOF
  6593. #! /bin/sh
  6594. exit 0
  6595. _ASEOF
  6596. chmod +x conf$$.file
  6597. if test -x conf$$.file >/dev/null 2>&1; then
  6598. ac_executable_p="test -x"
  6599. else
  6600. ac_executable_p="test -f"
  6601. fi
  6602. rm -f conf$$.file
  6603. # Extract the first word of "xgettext", so it can be a program name with args.
  6604. set dummy xgettext; ac_word=$2
  6605. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6606. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6607. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  6608. echo $ECHO_N "(cached) $ECHO_C" >&6
  6609. else
  6610. case "$XGETTEXT" in
  6611. [\\/]* | ?:[\\/]*)
  6612. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6613. ;;
  6614. *)
  6615. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6616. for ac_dir in $PATH; do
  6617. IFS="$ac_save_IFS"
  6618. test -z "$ac_dir" && ac_dir=.
  6619. for ac_exec_ext in '' $ac_executable_extensions; do
  6620. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6621. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6622. (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
  6623. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  6624. break 2
  6625. fi
  6626. fi
  6627. done
  6628. done
  6629. IFS="$ac_save_IFS"
  6630. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6631. ;;
  6632. esac
  6633. fi
  6634. XGETTEXT="$ac_cv_path_XGETTEXT"
  6635. if test "$XGETTEXT" != ":"; then
  6636. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  6637. echo "${ECHO_T}$XGETTEXT" >&6; }
  6638. else
  6639. { echo "$as_me:$LINENO: result: no" >&5
  6640. echo "${ECHO_T}no" >&6; }
  6641. fi
  6642. rm -f messages.po
  6643. # Prepare PATH_SEPARATOR.
  6644. # The user is always right.
  6645. if test "${PATH_SEPARATOR+set}" != set; then
  6646. echo "#! /bin/sh" >conf$$.sh
  6647. echo "exit 0" >>conf$$.sh
  6648. chmod +x conf$$.sh
  6649. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6650. PATH_SEPARATOR=';'
  6651. else
  6652. PATH_SEPARATOR=:
  6653. fi
  6654. rm -f conf$$.sh
  6655. fi
  6656. # Find out how to test for executable files. Don't use a zero-byte file,
  6657. # as systems may use methods other than mode bits to determine executability.
  6658. cat >conf$$.file <<_ASEOF
  6659. #! /bin/sh
  6660. exit 0
  6661. _ASEOF
  6662. chmod +x conf$$.file
  6663. if test -x conf$$.file >/dev/null 2>&1; then
  6664. ac_executable_p="test -x"
  6665. else
  6666. ac_executable_p="test -f"
  6667. fi
  6668. rm -f conf$$.file
  6669. # Extract the first word of "msgmerge", so it can be a program name with args.
  6670. set dummy msgmerge; ac_word=$2
  6671. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6672. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6673. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  6674. echo $ECHO_N "(cached) $ECHO_C" >&6
  6675. else
  6676. case "$MSGMERGE" in
  6677. [\\/]* | ?:[\\/]*)
  6678. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  6679. ;;
  6680. *)
  6681. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6682. for ac_dir in $PATH; do
  6683. IFS="$ac_save_IFS"
  6684. test -z "$ac_dir" && ac_dir=.
  6685. for ac_exec_ext in '' $ac_executable_extensions; do
  6686. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6687. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  6688. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  6689. break 2
  6690. fi
  6691. fi
  6692. done
  6693. done
  6694. IFS="$ac_save_IFS"
  6695. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  6696. ;;
  6697. esac
  6698. fi
  6699. MSGMERGE="$ac_cv_path_MSGMERGE"
  6700. if test "$MSGMERGE" != ":"; then
  6701. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  6702. echo "${ECHO_T}$MSGMERGE" >&6; }
  6703. else
  6704. { echo "$as_me:$LINENO: result: no" >&5
  6705. echo "${ECHO_T}no" >&6; }
  6706. fi
  6707. if test "$GMSGFMT" != ":"; then
  6708. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  6709. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6710. : ;
  6711. else
  6712. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  6713. { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  6714. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  6715. GMSGFMT=":"
  6716. fi
  6717. fi
  6718. if test "$XGETTEXT" != ":"; then
  6719. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6720. (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
  6721. : ;
  6722. else
  6723. { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  6724. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
  6725. XGETTEXT=":"
  6726. fi
  6727. rm -f messages.po
  6728. fi
  6729. ac_config_commands="$ac_config_commands default-1"
  6730. # Make sure we can run config.sub.
  6731. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  6732. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  6733. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  6734. { (exit 1); exit 1; }; }
  6735. { echo "$as_me:$LINENO: checking build system type" >&5
  6736. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  6737. if test "${ac_cv_build+set}" = set; then
  6738. echo $ECHO_N "(cached) $ECHO_C" >&6
  6739. else
  6740. ac_build_alias=$build_alias
  6741. test "x$ac_build_alias" = x &&
  6742. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  6743. test "x$ac_build_alias" = x &&
  6744. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  6745. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  6746. { (exit 1); exit 1; }; }
  6747. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  6748. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  6749. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  6750. { (exit 1); exit 1; }; }
  6751. fi
  6752. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  6753. echo "${ECHO_T}$ac_cv_build" >&6; }
  6754. case $ac_cv_build in
  6755. *-*-*) ;;
  6756. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  6757. echo "$as_me: error: invalid value of canonical build" >&2;}
  6758. { (exit 1); exit 1; }; };;
  6759. esac
  6760. build=$ac_cv_build
  6761. ac_save_IFS=$IFS; IFS='-'
  6762. set x $ac_cv_build
  6763. shift
  6764. build_cpu=$1
  6765. build_vendor=$2
  6766. shift; shift
  6767. # Remember, the first character of IFS is used to create $*,
  6768. # except with old shells:
  6769. build_os=$*
  6770. IFS=$ac_save_IFS
  6771. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  6772. { echo "$as_me:$LINENO: checking host system type" >&5
  6773. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  6774. if test "${ac_cv_host+set}" = set; then
  6775. echo $ECHO_N "(cached) $ECHO_C" >&6
  6776. else
  6777. if test "x$host_alias" = x; then
  6778. ac_cv_host=$ac_cv_build
  6779. else
  6780. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  6781. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  6782. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  6783. { (exit 1); exit 1; }; }
  6784. fi
  6785. fi
  6786. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  6787. echo "${ECHO_T}$ac_cv_host" >&6; }
  6788. case $ac_cv_host in
  6789. *-*-*) ;;
  6790. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  6791. echo "$as_me: error: invalid value of canonical host" >&2;}
  6792. { (exit 1); exit 1; }; };;
  6793. esac
  6794. host=$ac_cv_host
  6795. ac_save_IFS=$IFS; IFS='-'
  6796. set x $ac_cv_host
  6797. shift
  6798. host_cpu=$1
  6799. host_vendor=$2
  6800. shift; shift
  6801. # Remember, the first character of IFS is used to create $*,
  6802. # except with old shells:
  6803. host_os=$*
  6804. IFS=$ac_save_IFS
  6805. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  6806. { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  6807. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  6808. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  6809. echo $ECHO_N "(cached) $ECHO_C" >&6
  6810. else
  6811. ac_check_lib_save_LIBS=$LIBS
  6812. LIBS="-lcposix $LIBS"
  6813. cat >conftest.$ac_ext <<_ACEOF
  6814. /* confdefs.h. */
  6815. _ACEOF
  6816. cat confdefs.h >>conftest.$ac_ext
  6817. cat >>conftest.$ac_ext <<_ACEOF
  6818. /* end confdefs.h. */
  6819. /* Override any GCC internal prototype to avoid an error.
  6820. Use char because int might match the return type of a GCC
  6821. builtin and then its argument prototype would still apply. */
  6822. #ifdef __cplusplus
  6823. extern "C"
  6824. #endif
  6825. char strerror ();
  6826. int
  6827. main ()
  6828. {
  6829. return strerror ();
  6830. ;
  6831. return 0;
  6832. }
  6833. _ACEOF
  6834. rm -f conftest.$ac_objext conftest$ac_exeext
  6835. if { (ac_try="$ac_link"
  6836. case "(($ac_try" in
  6837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6838. *) ac_try_echo=$ac_try;;
  6839. esac
  6840. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6841. (eval "$ac_link") 2>conftest.er1
  6842. ac_status=$?
  6843. grep -v '^ *+' conftest.er1 >conftest.err
  6844. rm -f conftest.er1
  6845. cat conftest.err >&5
  6846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6847. (exit $ac_status); } && {
  6848. test -z "$ac_c_werror_flag" ||
  6849. test ! -s conftest.err
  6850. } && test -s conftest$ac_exeext &&
  6851. $as_test_x conftest$ac_exeext; then
  6852. ac_cv_lib_cposix_strerror=yes
  6853. else
  6854. echo "$as_me: failed program was:" >&5
  6855. sed 's/^/| /' conftest.$ac_ext >&5
  6856. ac_cv_lib_cposix_strerror=no
  6857. fi
  6858. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6859. conftest$ac_exeext conftest.$ac_ext
  6860. LIBS=$ac_check_lib_save_LIBS
  6861. fi
  6862. { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  6863. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  6864. if test $ac_cv_lib_cposix_strerror = yes; then
  6865. LIBS="$LIBS -lcposix"
  6866. fi
  6867. { echo "$as_me:$LINENO: checking for off_t" >&5
  6868. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  6869. if test "${ac_cv_type_off_t+set}" = set; then
  6870. echo $ECHO_N "(cached) $ECHO_C" >&6
  6871. else
  6872. cat >conftest.$ac_ext <<_ACEOF
  6873. /* confdefs.h. */
  6874. _ACEOF
  6875. cat confdefs.h >>conftest.$ac_ext
  6876. cat >>conftest.$ac_ext <<_ACEOF
  6877. /* end confdefs.h. */
  6878. $ac_includes_default
  6879. typedef off_t ac__type_new_;
  6880. int
  6881. main ()
  6882. {
  6883. if ((ac__type_new_ *) 0)
  6884. return 0;
  6885. if (sizeof (ac__type_new_))
  6886. return 0;
  6887. ;
  6888. return 0;
  6889. }
  6890. _ACEOF
  6891. rm -f conftest.$ac_objext
  6892. if { (ac_try="$ac_compile"
  6893. case "(($ac_try" in
  6894. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6895. *) ac_try_echo=$ac_try;;
  6896. esac
  6897. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6898. (eval "$ac_compile") 2>conftest.er1
  6899. ac_status=$?
  6900. grep -v '^ *+' conftest.er1 >conftest.err
  6901. rm -f conftest.er1
  6902. cat conftest.err >&5
  6903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6904. (exit $ac_status); } && {
  6905. test -z "$ac_c_werror_flag" ||
  6906. test ! -s conftest.err
  6907. } && test -s conftest.$ac_objext; then
  6908. ac_cv_type_off_t=yes
  6909. else
  6910. echo "$as_me: failed program was:" >&5
  6911. sed 's/^/| /' conftest.$ac_ext >&5
  6912. ac_cv_type_off_t=no
  6913. fi
  6914. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6915. fi
  6916. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  6917. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  6918. if test $ac_cv_type_off_t = yes; then
  6919. :
  6920. else
  6921. cat >>confdefs.h <<_ACEOF
  6922. #define off_t long int
  6923. _ACEOF
  6924. fi
  6925. for ac_header in stdlib.h unistd.h
  6926. do
  6927. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6928. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6929. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6930. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6931. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6932. echo $ECHO_N "(cached) $ECHO_C" >&6
  6933. fi
  6934. ac_res=`eval echo '${'$as_ac_Header'}'`
  6935. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6936. echo "${ECHO_T}$ac_res" >&6; }
  6937. else
  6938. # Is the header compilable?
  6939. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6940. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6941. cat >conftest.$ac_ext <<_ACEOF
  6942. /* confdefs.h. */
  6943. _ACEOF
  6944. cat confdefs.h >>conftest.$ac_ext
  6945. cat >>conftest.$ac_ext <<_ACEOF
  6946. /* end confdefs.h. */
  6947. $ac_includes_default
  6948. #include <$ac_header>
  6949. _ACEOF
  6950. rm -f conftest.$ac_objext
  6951. if { (ac_try="$ac_compile"
  6952. case "(($ac_try" in
  6953. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6954. *) ac_try_echo=$ac_try;;
  6955. esac
  6956. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6957. (eval "$ac_compile") 2>conftest.er1
  6958. ac_status=$?
  6959. grep -v '^ *+' conftest.er1 >conftest.err
  6960. rm -f conftest.er1
  6961. cat conftest.err >&5
  6962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6963. (exit $ac_status); } && {
  6964. test -z "$ac_c_werror_flag" ||
  6965. test ! -s conftest.err
  6966. } && test -s conftest.$ac_objext; then
  6967. ac_header_compiler=yes
  6968. else
  6969. echo "$as_me: failed program was:" >&5
  6970. sed 's/^/| /' conftest.$ac_ext >&5
  6971. ac_header_compiler=no
  6972. fi
  6973. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6974. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6975. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6976. # Is the header present?
  6977. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6978. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6979. cat >conftest.$ac_ext <<_ACEOF
  6980. /* confdefs.h. */
  6981. _ACEOF
  6982. cat confdefs.h >>conftest.$ac_ext
  6983. cat >>conftest.$ac_ext <<_ACEOF
  6984. /* end confdefs.h. */
  6985. #include <$ac_header>
  6986. _ACEOF
  6987. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6988. case "(($ac_try" in
  6989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6990. *) ac_try_echo=$ac_try;;
  6991. esac
  6992. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6993. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6994. ac_status=$?
  6995. grep -v '^ *+' conftest.er1 >conftest.err
  6996. rm -f conftest.er1
  6997. cat conftest.err >&5
  6998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6999. (exit $ac_status); } >/dev/null && {
  7000. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7001. test ! -s conftest.err
  7002. }; then
  7003. ac_header_preproc=yes
  7004. else
  7005. echo "$as_me: failed program was:" >&5
  7006. sed 's/^/| /' conftest.$ac_ext >&5
  7007. ac_header_preproc=no
  7008. fi
  7009. rm -f conftest.err conftest.$ac_ext
  7010. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7011. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7012. # So? What about this header?
  7013. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7014. yes:no: )
  7015. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7016. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7017. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7018. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7019. ac_header_preproc=yes
  7020. ;;
  7021. no:yes:* )
  7022. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7023. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7024. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7025. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7026. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7027. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7028. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7029. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7030. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7031. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7032. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7033. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7034. ( cat <<\_ASBOX
  7035. ## ----------------------------------- ##
  7036. ## Report this to tujikawa@rednoah.com ##
  7037. ## ----------------------------------- ##
  7038. _ASBOX
  7039. ) | sed "s/^/$as_me: WARNING: /" >&2
  7040. ;;
  7041. esac
  7042. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7043. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7044. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7045. echo $ECHO_N "(cached) $ECHO_C" >&6
  7046. else
  7047. eval "$as_ac_Header=\$ac_header_preproc"
  7048. fi
  7049. ac_res=`eval echo '${'$as_ac_Header'}'`
  7050. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7051. echo "${ECHO_T}$ac_res" >&6; }
  7052. fi
  7053. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7054. cat >>confdefs.h <<_ACEOF
  7055. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7056. _ACEOF
  7057. fi
  7058. done
  7059. for ac_func in getpagesize
  7060. do
  7061. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7062. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7063. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7064. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7065. echo $ECHO_N "(cached) $ECHO_C" >&6
  7066. else
  7067. cat >conftest.$ac_ext <<_ACEOF
  7068. /* confdefs.h. */
  7069. _ACEOF
  7070. cat confdefs.h >>conftest.$ac_ext
  7071. cat >>conftest.$ac_ext <<_ACEOF
  7072. /* end confdefs.h. */
  7073. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7074. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7075. #define $ac_func innocuous_$ac_func
  7076. /* System header to define __stub macros and hopefully few prototypes,
  7077. which can conflict with char $ac_func (); below.
  7078. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7079. <limits.h> exists even on freestanding compilers. */
  7080. #ifdef __STDC__
  7081. # include <limits.h>
  7082. #else
  7083. # include <assert.h>
  7084. #endif
  7085. #undef $ac_func
  7086. /* Override any GCC internal prototype to avoid an error.
  7087. Use char because int might match the return type of a GCC
  7088. builtin and then its argument prototype would still apply. */
  7089. #ifdef __cplusplus
  7090. extern "C"
  7091. #endif
  7092. char $ac_func ();
  7093. /* The GNU C library defines this for functions which it implements
  7094. to always fail with ENOSYS. Some functions are actually named
  7095. something starting with __ and the normal name is an alias. */
  7096. #if defined __stub_$ac_func || defined __stub___$ac_func
  7097. choke me
  7098. #endif
  7099. int
  7100. main ()
  7101. {
  7102. return $ac_func ();
  7103. ;
  7104. return 0;
  7105. }
  7106. _ACEOF
  7107. rm -f conftest.$ac_objext conftest$ac_exeext
  7108. if { (ac_try="$ac_link"
  7109. case "(($ac_try" in
  7110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7111. *) ac_try_echo=$ac_try;;
  7112. esac
  7113. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7114. (eval "$ac_link") 2>conftest.er1
  7115. ac_status=$?
  7116. grep -v '^ *+' conftest.er1 >conftest.err
  7117. rm -f conftest.er1
  7118. cat conftest.err >&5
  7119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7120. (exit $ac_status); } && {
  7121. test -z "$ac_c_werror_flag" ||
  7122. test ! -s conftest.err
  7123. } && test -s conftest$ac_exeext &&
  7124. $as_test_x conftest$ac_exeext; then
  7125. eval "$as_ac_var=yes"
  7126. else
  7127. echo "$as_me: failed program was:" >&5
  7128. sed 's/^/| /' conftest.$ac_ext >&5
  7129. eval "$as_ac_var=no"
  7130. fi
  7131. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7132. conftest$ac_exeext conftest.$ac_ext
  7133. fi
  7134. ac_res=`eval echo '${'$as_ac_var'}'`
  7135. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7136. echo "${ECHO_T}$ac_res" >&6; }
  7137. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7138. cat >>confdefs.h <<_ACEOF
  7139. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7140. _ACEOF
  7141. fi
  7142. done
  7143. { echo "$as_me:$LINENO: checking for working mmap" >&5
  7144. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  7145. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  7146. echo $ECHO_N "(cached) $ECHO_C" >&6
  7147. else
  7148. if test "$cross_compiling" = yes; then
  7149. ac_cv_func_mmap_fixed_mapped=no
  7150. else
  7151. cat >conftest.$ac_ext <<_ACEOF
  7152. /* confdefs.h. */
  7153. _ACEOF
  7154. cat confdefs.h >>conftest.$ac_ext
  7155. cat >>conftest.$ac_ext <<_ACEOF
  7156. /* end confdefs.h. */
  7157. $ac_includes_default
  7158. /* malloc might have been renamed as rpl_malloc. */
  7159. #undef malloc
  7160. /* Thanks to Mike Haertel and Jim Avera for this test.
  7161. Here is a matrix of mmap possibilities:
  7162. mmap private not fixed
  7163. mmap private fixed at somewhere currently unmapped
  7164. mmap private fixed at somewhere already mapped
  7165. mmap shared not fixed
  7166. mmap shared fixed at somewhere currently unmapped
  7167. mmap shared fixed at somewhere already mapped
  7168. For private mappings, we should verify that changes cannot be read()
  7169. back from the file, nor mmap's back from the file at a different
  7170. address. (There have been systems where private was not correctly
  7171. implemented like the infamous i386 svr4.0, and systems where the
  7172. VM page cache was not coherent with the file system buffer cache
  7173. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7174. For shared mappings, we should conversely verify that changes get
  7175. propagated back to all the places they're supposed to be.
  7176. Grep wants private fixed already mapped.
  7177. The main things grep needs to know about mmap are:
  7178. * does it exist and is it safe to write into the mmap'd area
  7179. * how to use it (BSD variants) */
  7180. #include <fcntl.h>
  7181. #include <sys/mman.h>
  7182. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7183. char *malloc ();
  7184. #endif
  7185. /* This mess was copied from the GNU getpagesize.h. */
  7186. #ifndef HAVE_GETPAGESIZE
  7187. /* Assume that all systems that can run configure have sys/param.h. */
  7188. # ifndef HAVE_SYS_PARAM_H
  7189. # define HAVE_SYS_PARAM_H 1
  7190. # endif
  7191. # ifdef _SC_PAGESIZE
  7192. # define getpagesize() sysconf(_SC_PAGESIZE)
  7193. # else /* no _SC_PAGESIZE */
  7194. # ifdef HAVE_SYS_PARAM_H
  7195. # include <sys/param.h>
  7196. # ifdef EXEC_PAGESIZE
  7197. # define getpagesize() EXEC_PAGESIZE
  7198. # else /* no EXEC_PAGESIZE */
  7199. # ifdef NBPG
  7200. # define getpagesize() NBPG * CLSIZE
  7201. # ifndef CLSIZE
  7202. # define CLSIZE 1
  7203. # endif /* no CLSIZE */
  7204. # else /* no NBPG */
  7205. # ifdef NBPC
  7206. # define getpagesize() NBPC
  7207. # else /* no NBPC */
  7208. # ifdef PAGESIZE
  7209. # define getpagesize() PAGESIZE
  7210. # endif /* PAGESIZE */
  7211. # endif /* no NBPC */
  7212. # endif /* no NBPG */
  7213. # endif /* no EXEC_PAGESIZE */
  7214. # else /* no HAVE_SYS_PARAM_H */
  7215. # define getpagesize() 8192 /* punt totally */
  7216. # endif /* no HAVE_SYS_PARAM_H */
  7217. # endif /* no _SC_PAGESIZE */
  7218. #endif /* no HAVE_GETPAGESIZE */
  7219. int
  7220. main ()
  7221. {
  7222. char *data, *data2, *data3;
  7223. int i, pagesize;
  7224. int fd;
  7225. pagesize = getpagesize ();
  7226. /* First, make a file with some known garbage in it. */
  7227. data = (char *) malloc (pagesize);
  7228. if (!data)
  7229. return 1;
  7230. for (i = 0; i < pagesize; ++i)
  7231. *(data + i) = rand ();
  7232. umask (0);
  7233. fd = creat ("conftest.mmap", 0600);
  7234. if (fd < 0)
  7235. return 1;
  7236. if (write (fd, data, pagesize) != pagesize)
  7237. return 1;
  7238. close (fd);
  7239. /* Next, try to mmap the file at a fixed address which already has
  7240. something else allocated at it. If we can, also make sure that
  7241. we see the same garbage. */
  7242. fd = open ("conftest.mmap", O_RDWR);
  7243. if (fd < 0)
  7244. return 1;
  7245. data2 = (char *) malloc (2 * pagesize);
  7246. if (!data2)
  7247. return 1;
  7248. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  7249. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7250. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7251. return 1;
  7252. for (i = 0; i < pagesize; ++i)
  7253. if (*(data + i) != *(data2 + i))
  7254. return 1;
  7255. /* Finally, make sure that changes to the mapped area do not
  7256. percolate back to the file as seen by read(). (This is a bug on
  7257. some variants of i386 svr4.0.) */
  7258. for (i = 0; i < pagesize; ++i)
  7259. *(data2 + i) = *(data2 + i) + 1;
  7260. data3 = (char *) malloc (pagesize);
  7261. if (!data3)
  7262. return 1;
  7263. if (read (fd, data3, pagesize) != pagesize)
  7264. return 1;
  7265. for (i = 0; i < pagesize; ++i)
  7266. if (*(data + i) != *(data3 + i))
  7267. return 1;
  7268. close (fd);
  7269. return 0;
  7270. }
  7271. _ACEOF
  7272. rm -f conftest$ac_exeext
  7273. if { (ac_try="$ac_link"
  7274. case "(($ac_try" in
  7275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7276. *) ac_try_echo=$ac_try;;
  7277. esac
  7278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7279. (eval "$ac_link") 2>&5
  7280. ac_status=$?
  7281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7282. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7283. { (case "(($ac_try" in
  7284. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7285. *) ac_try_echo=$ac_try;;
  7286. esac
  7287. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7288. (eval "$ac_try") 2>&5
  7289. ac_status=$?
  7290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7291. (exit $ac_status); }; }; then
  7292. ac_cv_func_mmap_fixed_mapped=yes
  7293. else
  7294. echo "$as_me: program exited with status $ac_status" >&5
  7295. echo "$as_me: failed program was:" >&5
  7296. sed 's/^/| /' conftest.$ac_ext >&5
  7297. ( exit $ac_status )
  7298. ac_cv_func_mmap_fixed_mapped=no
  7299. fi
  7300. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7301. fi
  7302. fi
  7303. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7304. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  7305. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7306. cat >>confdefs.h <<\_ACEOF
  7307. #define HAVE_MMAP 1
  7308. _ACEOF
  7309. fi
  7310. rm -f conftest.mmap
  7311. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  7312. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  7313. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  7314. echo $ECHO_N "(cached) $ECHO_C" >&6
  7315. else
  7316. cat >conftest.$ac_ext <<_ACEOF
  7317. /* confdefs.h. */
  7318. _ACEOF
  7319. cat confdefs.h >>conftest.$ac_ext
  7320. cat >>conftest.$ac_ext <<_ACEOF
  7321. /* end confdefs.h. */
  7322. #include <features.h>
  7323. #ifdef __GNU_LIBRARY__
  7324. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  7325. Lucky GNU user
  7326. #endif
  7327. #endif
  7328. _ACEOF
  7329. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7330. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  7331. ac_cv_gnu_library_2_1=yes
  7332. else
  7333. ac_cv_gnu_library_2_1=no
  7334. fi
  7335. rm -f conftest*
  7336. fi
  7337. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  7338. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  7339. GLIBC21="$ac_cv_gnu_library_2_1"
  7340. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  7341. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  7342. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  7343. echo $ECHO_N "(cached) $ECHO_C" >&6
  7344. else
  7345. if test "$cross_compiling" = yes; then
  7346. # Guess based on the CPU.
  7347. case "$host_cpu" in
  7348. alpha* | i3456786 | m68k | s390*)
  7349. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  7350. *)
  7351. gt_cv_int_divbyzero_sigfpe="guessing no";;
  7352. esac
  7353. else
  7354. cat >conftest.$ac_ext <<_ACEOF
  7355. /* confdefs.h. */
  7356. _ACEOF
  7357. cat confdefs.h >>conftest.$ac_ext
  7358. cat >>conftest.$ac_ext <<_ACEOF
  7359. /* end confdefs.h. */
  7360. #include <stdlib.h>
  7361. #include <signal.h>
  7362. static void
  7363. #ifdef __cplusplus
  7364. sigfpe_handler (int sig)
  7365. #else
  7366. sigfpe_handler (sig) int sig;
  7367. #endif
  7368. {
  7369. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  7370. exit (sig != SIGFPE);
  7371. }
  7372. int x = 1;
  7373. int y = 0;
  7374. int z;
  7375. int nan;
  7376. int main ()
  7377. {
  7378. signal (SIGFPE, sigfpe_handler);
  7379. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  7380. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  7381. signal (SIGTRAP, sigfpe_handler);
  7382. #endif
  7383. /* Linux/SPARC yields signal SIGILL. */
  7384. #if defined (__sparc__) && defined (__linux__)
  7385. signal (SIGILL, sigfpe_handler);
  7386. #endif
  7387. z = x / y;
  7388. nan = y / y;
  7389. exit (1);
  7390. }
  7391. _ACEOF
  7392. rm -f conftest$ac_exeext
  7393. if { (ac_try="$ac_link"
  7394. case "(($ac_try" in
  7395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7396. *) ac_try_echo=$ac_try;;
  7397. esac
  7398. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7399. (eval "$ac_link") 2>&5
  7400. ac_status=$?
  7401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7402. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7403. { (case "(($ac_try" in
  7404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7405. *) ac_try_echo=$ac_try;;
  7406. esac
  7407. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7408. (eval "$ac_try") 2>&5
  7409. ac_status=$?
  7410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7411. (exit $ac_status); }; }; then
  7412. gt_cv_int_divbyzero_sigfpe=yes
  7413. else
  7414. echo "$as_me: program exited with status $ac_status" >&5
  7415. echo "$as_me: failed program was:" >&5
  7416. sed 's/^/| /' conftest.$ac_ext >&5
  7417. ( exit $ac_status )
  7418. gt_cv_int_divbyzero_sigfpe=no
  7419. fi
  7420. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7421. fi
  7422. fi
  7423. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  7424. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  7425. case "$gt_cv_int_divbyzero_sigfpe" in
  7426. *yes) value=1;;
  7427. *) value=0;;
  7428. esac
  7429. cat >>confdefs.h <<_ACEOF
  7430. #define INTDIV0_RAISES_SIGFPE $value
  7431. _ACEOF
  7432. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7433. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7434. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  7435. echo $ECHO_N "(cached) $ECHO_C" >&6
  7436. else
  7437. cat >conftest.$ac_ext <<_ACEOF
  7438. /* confdefs.h. */
  7439. _ACEOF
  7440. cat confdefs.h >>conftest.$ac_ext
  7441. cat >>conftest.$ac_ext <<_ACEOF
  7442. /* end confdefs.h. */
  7443. #include <sys/types.h>
  7444. #include <inttypes.h>
  7445. int
  7446. main ()
  7447. {
  7448. uintmax_t i = (uintmax_t) -1;
  7449. ;
  7450. return 0;
  7451. }
  7452. _ACEOF
  7453. rm -f conftest.$ac_objext
  7454. if { (ac_try="$ac_compile"
  7455. case "(($ac_try" in
  7456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7457. *) ac_try_echo=$ac_try;;
  7458. esac
  7459. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7460. (eval "$ac_compile") 2>conftest.er1
  7461. ac_status=$?
  7462. grep -v '^ *+' conftest.er1 >conftest.err
  7463. rm -f conftest.er1
  7464. cat conftest.err >&5
  7465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7466. (exit $ac_status); } && {
  7467. test -z "$ac_c_werror_flag" ||
  7468. test ! -s conftest.err
  7469. } && test -s conftest.$ac_objext; then
  7470. jm_ac_cv_header_inttypes_h=yes
  7471. else
  7472. echo "$as_me: failed program was:" >&5
  7473. sed 's/^/| /' conftest.$ac_ext >&5
  7474. jm_ac_cv_header_inttypes_h=no
  7475. fi
  7476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7477. fi
  7478. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  7479. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
  7480. if test $jm_ac_cv_header_inttypes_h = yes; then
  7481. cat >>confdefs.h <<_ACEOF
  7482. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  7483. _ACEOF
  7484. fi
  7485. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  7486. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  7487. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  7488. echo $ECHO_N "(cached) $ECHO_C" >&6
  7489. else
  7490. cat >conftest.$ac_ext <<_ACEOF
  7491. /* confdefs.h. */
  7492. _ACEOF
  7493. cat confdefs.h >>conftest.$ac_ext
  7494. cat >>conftest.$ac_ext <<_ACEOF
  7495. /* end confdefs.h. */
  7496. #include <sys/types.h>
  7497. #include <stdint.h>
  7498. int
  7499. main ()
  7500. {
  7501. uintmax_t i = (uintmax_t) -1;
  7502. ;
  7503. return 0;
  7504. }
  7505. _ACEOF
  7506. rm -f conftest.$ac_objext
  7507. if { (ac_try="$ac_compile"
  7508. case "(($ac_try" in
  7509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7510. *) ac_try_echo=$ac_try;;
  7511. esac
  7512. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7513. (eval "$ac_compile") 2>conftest.er1
  7514. ac_status=$?
  7515. grep -v '^ *+' conftest.er1 >conftest.err
  7516. rm -f conftest.er1
  7517. cat conftest.err >&5
  7518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7519. (exit $ac_status); } && {
  7520. test -z "$ac_c_werror_flag" ||
  7521. test ! -s conftest.err
  7522. } && test -s conftest.$ac_objext; then
  7523. jm_ac_cv_header_stdint_h=yes
  7524. else
  7525. echo "$as_me: failed program was:" >&5
  7526. sed 's/^/| /' conftest.$ac_ext >&5
  7527. jm_ac_cv_header_stdint_h=no
  7528. fi
  7529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7530. fi
  7531. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  7532. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
  7533. if test $jm_ac_cv_header_stdint_h = yes; then
  7534. cat >>confdefs.h <<_ACEOF
  7535. #define HAVE_STDINT_H_WITH_UINTMAX 1
  7536. _ACEOF
  7537. fi
  7538. { echo "$as_me:$LINENO: checking for unsigned long long" >&5
  7539. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
  7540. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  7541. echo $ECHO_N "(cached) $ECHO_C" >&6
  7542. else
  7543. cat >conftest.$ac_ext <<_ACEOF
  7544. /* confdefs.h. */
  7545. _ACEOF
  7546. cat confdefs.h >>conftest.$ac_ext
  7547. cat >>conftest.$ac_ext <<_ACEOF
  7548. /* end confdefs.h. */
  7549. unsigned long long ull = 1; int i = 63;
  7550. int
  7551. main ()
  7552. {
  7553. unsigned long long ullmax = (unsigned long long) -1;
  7554. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  7555. ;
  7556. return 0;
  7557. }
  7558. _ACEOF
  7559. rm -f conftest.$ac_objext conftest$ac_exeext
  7560. if { (ac_try="$ac_link"
  7561. case "(($ac_try" in
  7562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7563. *) ac_try_echo=$ac_try;;
  7564. esac
  7565. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7566. (eval "$ac_link") 2>conftest.er1
  7567. ac_status=$?
  7568. grep -v '^ *+' conftest.er1 >conftest.err
  7569. rm -f conftest.er1
  7570. cat conftest.err >&5
  7571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7572. (exit $ac_status); } && {
  7573. test -z "$ac_c_werror_flag" ||
  7574. test ! -s conftest.err
  7575. } && test -s conftest$ac_exeext &&
  7576. $as_test_x conftest$ac_exeext; then
  7577. ac_cv_type_unsigned_long_long=yes
  7578. else
  7579. echo "$as_me: failed program was:" >&5
  7580. sed 's/^/| /' conftest.$ac_ext >&5
  7581. ac_cv_type_unsigned_long_long=no
  7582. fi
  7583. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7584. conftest$ac_exeext conftest.$ac_ext
  7585. fi
  7586. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  7587. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
  7588. if test $ac_cv_type_unsigned_long_long = yes; then
  7589. cat >>confdefs.h <<\_ACEOF
  7590. #define HAVE_UNSIGNED_LONG_LONG 1
  7591. _ACEOF
  7592. fi
  7593. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  7594. test $ac_cv_type_unsigned_long_long = yes \
  7595. && ac_type='unsigned long long' \
  7596. || ac_type='unsigned long'
  7597. cat >>confdefs.h <<_ACEOF
  7598. #define uintmax_t $ac_type
  7599. _ACEOF
  7600. else
  7601. cat >>confdefs.h <<\_ACEOF
  7602. #define HAVE_UINTMAX_T 1
  7603. _ACEOF
  7604. fi
  7605. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7606. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7607. if test "${gt_cv_header_inttypes_h+set}" = set; then
  7608. echo $ECHO_N "(cached) $ECHO_C" >&6
  7609. else
  7610. cat >conftest.$ac_ext <<_ACEOF
  7611. /* confdefs.h. */
  7612. _ACEOF
  7613. cat confdefs.h >>conftest.$ac_ext
  7614. cat >>conftest.$ac_ext <<_ACEOF
  7615. /* end confdefs.h. */
  7616. #include <sys/types.h>
  7617. #include <inttypes.h>
  7618. int
  7619. main ()
  7620. {
  7621. ;
  7622. return 0;
  7623. }
  7624. _ACEOF
  7625. rm -f conftest.$ac_objext
  7626. if { (ac_try="$ac_compile"
  7627. case "(($ac_try" in
  7628. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7629. *) ac_try_echo=$ac_try;;
  7630. esac
  7631. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7632. (eval "$ac_compile") 2>conftest.er1
  7633. ac_status=$?
  7634. grep -v '^ *+' conftest.er1 >conftest.err
  7635. rm -f conftest.er1
  7636. cat conftest.err >&5
  7637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7638. (exit $ac_status); } && {
  7639. test -z "$ac_c_werror_flag" ||
  7640. test ! -s conftest.err
  7641. } && test -s conftest.$ac_objext; then
  7642. gt_cv_header_inttypes_h=yes
  7643. else
  7644. echo "$as_me: failed program was:" >&5
  7645. sed 's/^/| /' conftest.$ac_ext >&5
  7646. gt_cv_header_inttypes_h=no
  7647. fi
  7648. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7649. fi
  7650. { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  7651. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
  7652. if test $gt_cv_header_inttypes_h = yes; then
  7653. cat >>confdefs.h <<_ACEOF
  7654. #define HAVE_INTTYPES_H 1
  7655. _ACEOF
  7656. fi
  7657. if test $gt_cv_header_inttypes_h = yes; then
  7658. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  7659. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  7660. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  7661. echo $ECHO_N "(cached) $ECHO_C" >&6
  7662. else
  7663. cat >conftest.$ac_ext <<_ACEOF
  7664. /* confdefs.h. */
  7665. _ACEOF
  7666. cat confdefs.h >>conftest.$ac_ext
  7667. cat >>conftest.$ac_ext <<_ACEOF
  7668. /* end confdefs.h. */
  7669. #include <inttypes.h>
  7670. #ifdef PRId32
  7671. char *p = PRId32;
  7672. #endif
  7673. int
  7674. main ()
  7675. {
  7676. ;
  7677. return 0;
  7678. }
  7679. _ACEOF
  7680. rm -f conftest.$ac_objext
  7681. if { (ac_try="$ac_compile"
  7682. case "(($ac_try" in
  7683. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7684. *) ac_try_echo=$ac_try;;
  7685. esac
  7686. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7687. (eval "$ac_compile") 2>conftest.er1
  7688. ac_status=$?
  7689. grep -v '^ *+' conftest.er1 >conftest.err
  7690. rm -f conftest.er1
  7691. cat conftest.err >&5
  7692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7693. (exit $ac_status); } && {
  7694. test -z "$ac_c_werror_flag" ||
  7695. test ! -s conftest.err
  7696. } && test -s conftest.$ac_objext; then
  7697. gt_cv_inttypes_pri_broken=no
  7698. else
  7699. echo "$as_me: failed program was:" >&5
  7700. sed 's/^/| /' conftest.$ac_ext >&5
  7701. gt_cv_inttypes_pri_broken=yes
  7702. fi
  7703. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7704. fi
  7705. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  7706. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  7707. fi
  7708. if test "$gt_cv_inttypes_pri_broken" = yes; then
  7709. cat >>confdefs.h <<_ACEOF
  7710. #define PRI_MACROS_BROKEN 1
  7711. _ACEOF
  7712. fi
  7713. if test "X$prefix" = "XNONE"; then
  7714. acl_final_prefix="$ac_default_prefix"
  7715. else
  7716. acl_final_prefix="$prefix"
  7717. fi
  7718. if test "X$exec_prefix" = "XNONE"; then
  7719. acl_final_exec_prefix='${prefix}'
  7720. else
  7721. acl_final_exec_prefix="$exec_prefix"
  7722. fi
  7723. acl_save_prefix="$prefix"
  7724. prefix="$acl_final_prefix"
  7725. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  7726. prefix="$acl_save_prefix"
  7727. # Check whether --with-gnu-ld was given.
  7728. if test "${with_gnu_ld+set}" = set; then
  7729. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  7730. else
  7731. with_gnu_ld=no
  7732. fi
  7733. # Prepare PATH_SEPARATOR.
  7734. # The user is always right.
  7735. if test "${PATH_SEPARATOR+set}" != set; then
  7736. echo "#! /bin/sh" >conf$$.sh
  7737. echo "exit 0" >>conf$$.sh
  7738. chmod +x conf$$.sh
  7739. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7740. PATH_SEPARATOR=';'
  7741. else
  7742. PATH_SEPARATOR=:
  7743. fi
  7744. rm -f conf$$.sh
  7745. fi
  7746. ac_prog=ld
  7747. if test "$GCC" = yes; then
  7748. # Check if gcc -print-prog-name=ld gives a path.
  7749. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  7750. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  7751. case $host in
  7752. *-*-mingw*)
  7753. # gcc leaves a trailing carriage return which upsets mingw
  7754. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7755. *)
  7756. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7757. esac
  7758. case $ac_prog in
  7759. # Accept absolute paths.
  7760. [\\/]* | [A-Za-z]:[\\/]*)
  7761. re_direlt='/[^/][^/]*/\.\./'
  7762. # Canonicalize the path of ld
  7763. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  7764. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  7765. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  7766. done
  7767. test -z "$LD" && LD="$ac_prog"
  7768. ;;
  7769. "")
  7770. # If it fails, then pretend we aren't using GCC.
  7771. ac_prog=ld
  7772. ;;
  7773. *)
  7774. # If it is relative, then search for the first ld in PATH.
  7775. with_gnu_ld=unknown
  7776. ;;
  7777. esac
  7778. elif test "$with_gnu_ld" = yes; then
  7779. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  7780. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  7781. else
  7782. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  7783. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  7784. fi
  7785. if test "${acl_cv_path_LD+set}" = set; then
  7786. echo $ECHO_N "(cached) $ECHO_C" >&6
  7787. else
  7788. if test -z "$LD"; then
  7789. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  7790. for ac_dir in $PATH; do
  7791. test -z "$ac_dir" && ac_dir=.
  7792. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7793. acl_cv_path_LD="$ac_dir/$ac_prog"
  7794. # Check to see if the program is GNU ld. I'd rather use --version,
  7795. # but apparently some GNU ld's only accept -v.
  7796. # Break only if it was the GNU/non-GNU ld that we prefer.
  7797. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  7798. test "$with_gnu_ld" != no && break
  7799. else
  7800. test "$with_gnu_ld" != yes && break
  7801. fi
  7802. fi
  7803. done
  7804. IFS="$ac_save_ifs"
  7805. else
  7806. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  7807. fi
  7808. fi
  7809. LD="$acl_cv_path_LD"
  7810. if test -n "$LD"; then
  7811. { echo "$as_me:$LINENO: result: $LD" >&5
  7812. echo "${ECHO_T}$LD" >&6; }
  7813. else
  7814. { echo "$as_me:$LINENO: result: no" >&5
  7815. echo "${ECHO_T}no" >&6; }
  7816. fi
  7817. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  7818. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  7819. { (exit 1); exit 1; }; }
  7820. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  7821. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  7822. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  7823. echo $ECHO_N "(cached) $ECHO_C" >&6
  7824. else
  7825. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  7826. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  7827. acl_cv_prog_gnu_ld=yes
  7828. else
  7829. acl_cv_prog_gnu_ld=no
  7830. fi
  7831. fi
  7832. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  7833. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  7834. with_gnu_ld=$acl_cv_prog_gnu_ld
  7835. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  7836. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  7837. if test "${acl_cv_rpath+set}" = set; then
  7838. echo $ECHO_N "(cached) $ECHO_C" >&6
  7839. else
  7840. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  7841. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  7842. . ./conftest.sh
  7843. rm -f ./conftest.sh
  7844. acl_cv_rpath=done
  7845. fi
  7846. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  7847. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  7848. wl="$acl_cv_wl"
  7849. libext="$acl_cv_libext"
  7850. shlibext="$acl_cv_shlibext"
  7851. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  7852. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  7853. hardcode_direct="$acl_cv_hardcode_direct"
  7854. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  7855. # Check whether --enable-rpath was given.
  7856. if test "${enable_rpath+set}" = set; then
  7857. enableval=$enable_rpath; :
  7858. else
  7859. enable_rpath=yes
  7860. fi
  7861. use_additional=yes
  7862. acl_save_prefix="$prefix"
  7863. prefix="$acl_final_prefix"
  7864. acl_save_exec_prefix="$exec_prefix"
  7865. exec_prefix="$acl_final_exec_prefix"
  7866. eval additional_includedir=\"$includedir\"
  7867. eval additional_libdir=\"$libdir\"
  7868. exec_prefix="$acl_save_exec_prefix"
  7869. prefix="$acl_save_prefix"
  7870. # Check whether --with-libiconv-prefix was given.
  7871. if test "${with_libiconv_prefix+set}" = set; then
  7872. withval=$with_libiconv_prefix;
  7873. if test "X$withval" = "Xno"; then
  7874. use_additional=no
  7875. else
  7876. if test "X$withval" = "X"; then
  7877. acl_save_prefix="$prefix"
  7878. prefix="$acl_final_prefix"
  7879. acl_save_exec_prefix="$exec_prefix"
  7880. exec_prefix="$acl_final_exec_prefix"
  7881. eval additional_includedir=\"$includedir\"
  7882. eval additional_libdir=\"$libdir\"
  7883. exec_prefix="$acl_save_exec_prefix"
  7884. prefix="$acl_save_prefix"
  7885. else
  7886. additional_includedir="$withval/include"
  7887. additional_libdir="$withval/lib"
  7888. fi
  7889. fi
  7890. fi
  7891. LIBICONV=
  7892. LTLIBICONV=
  7893. INCICONV=
  7894. rpathdirs=
  7895. ltrpathdirs=
  7896. names_already_handled=
  7897. names_next_round='iconv '
  7898. while test -n "$names_next_round"; do
  7899. names_this_round="$names_next_round"
  7900. names_next_round=
  7901. for name in $names_this_round; do
  7902. already_handled=
  7903. for n in $names_already_handled; do
  7904. if test "$n" = "$name"; then
  7905. already_handled=yes
  7906. break
  7907. fi
  7908. done
  7909. if test -z "$already_handled"; then
  7910. names_already_handled="$names_already_handled $name"
  7911. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7912. eval value=\"\$HAVE_LIB$uppername\"
  7913. if test -n "$value"; then
  7914. if test "$value" = yes; then
  7915. eval value=\"\$LIB$uppername\"
  7916. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  7917. eval value=\"\$LTLIB$uppername\"
  7918. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  7919. else
  7920. :
  7921. fi
  7922. else
  7923. found_dir=
  7924. found_la=
  7925. found_so=
  7926. found_a=
  7927. if test $use_additional = yes; then
  7928. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  7929. found_dir="$additional_libdir"
  7930. found_so="$additional_libdir/lib$name.$shlibext"
  7931. if test -f "$additional_libdir/lib$name.la"; then
  7932. found_la="$additional_libdir/lib$name.la"
  7933. fi
  7934. else
  7935. if test -f "$additional_libdir/lib$name.$libext"; then
  7936. found_dir="$additional_libdir"
  7937. found_a="$additional_libdir/lib$name.$libext"
  7938. if test -f "$additional_libdir/lib$name.la"; then
  7939. found_la="$additional_libdir/lib$name.la"
  7940. fi
  7941. fi
  7942. fi
  7943. fi
  7944. if test "X$found_dir" = "X"; then
  7945. for x in $LDFLAGS $LTLIBICONV; do
  7946. acl_save_prefix="$prefix"
  7947. prefix="$acl_final_prefix"
  7948. acl_save_exec_prefix="$exec_prefix"
  7949. exec_prefix="$acl_final_exec_prefix"
  7950. eval x=\"$x\"
  7951. exec_prefix="$acl_save_exec_prefix"
  7952. prefix="$acl_save_prefix"
  7953. case "$x" in
  7954. -L*)
  7955. dir=`echo "X$x" | sed -e 's/^X-L//'`
  7956. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  7957. found_dir="$dir"
  7958. found_so="$dir/lib$name.$shlibext"
  7959. if test -f "$dir/lib$name.la"; then
  7960. found_la="$dir/lib$name.la"
  7961. fi
  7962. else
  7963. if test -f "$dir/lib$name.$libext"; then
  7964. found_dir="$dir"
  7965. found_a="$dir/lib$name.$libext"
  7966. if test -f "$dir/lib$name.la"; then
  7967. found_la="$dir/lib$name.la"
  7968. fi
  7969. fi
  7970. fi
  7971. ;;
  7972. esac
  7973. if test "X$found_dir" != "X"; then
  7974. break
  7975. fi
  7976. done
  7977. fi
  7978. if test "X$found_dir" != "X"; then
  7979. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  7980. if test "X$found_so" != "X"; then
  7981. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  7982. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7983. else
  7984. haveit=
  7985. for x in $ltrpathdirs; do
  7986. if test "X$x" = "X$found_dir"; then
  7987. haveit=yes
  7988. break
  7989. fi
  7990. done
  7991. if test -z "$haveit"; then
  7992. ltrpathdirs="$ltrpathdirs $found_dir"
  7993. fi
  7994. if test "$hardcode_direct" = yes; then
  7995. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7996. else
  7997. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  7998. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  7999. haveit=
  8000. for x in $rpathdirs; do
  8001. if test "X$x" = "X$found_dir"; then
  8002. haveit=yes
  8003. break
  8004. fi
  8005. done
  8006. if test -z "$haveit"; then
  8007. rpathdirs="$rpathdirs $found_dir"
  8008. fi
  8009. else
  8010. haveit=
  8011. for x in $LDFLAGS $LIBICONV; do
  8012. acl_save_prefix="$prefix"
  8013. prefix="$acl_final_prefix"
  8014. acl_save_exec_prefix="$exec_prefix"
  8015. exec_prefix="$acl_final_exec_prefix"
  8016. eval x=\"$x\"
  8017. exec_prefix="$acl_save_exec_prefix"
  8018. prefix="$acl_save_prefix"
  8019. if test "X$x" = "X-L$found_dir"; then
  8020. haveit=yes
  8021. break
  8022. fi
  8023. done
  8024. if test -z "$haveit"; then
  8025. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  8026. fi
  8027. if test "$hardcode_minus_L" != no; then
  8028. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8029. else
  8030. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8031. fi
  8032. fi
  8033. fi
  8034. fi
  8035. else
  8036. if test "X$found_a" != "X"; then
  8037. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  8038. else
  8039. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  8040. fi
  8041. fi
  8042. additional_includedir=
  8043. case "$found_dir" in
  8044. */lib | */lib/)
  8045. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8046. additional_includedir="$basedir/include"
  8047. ;;
  8048. esac
  8049. if test "X$additional_includedir" != "X"; then
  8050. if test "X$additional_includedir" != "X/usr/include"; then
  8051. haveit=
  8052. if test "X$additional_includedir" = "X/usr/local/include"; then
  8053. if test -n "$GCC"; then
  8054. case $host_os in
  8055. linux*) haveit=yes;;
  8056. esac
  8057. fi
  8058. fi
  8059. if test -z "$haveit"; then
  8060. for x in $CPPFLAGS $INCICONV; do
  8061. acl_save_prefix="$prefix"
  8062. prefix="$acl_final_prefix"
  8063. acl_save_exec_prefix="$exec_prefix"
  8064. exec_prefix="$acl_final_exec_prefix"
  8065. eval x=\"$x\"
  8066. exec_prefix="$acl_save_exec_prefix"
  8067. prefix="$acl_save_prefix"
  8068. if test "X$x" = "X-I$additional_includedir"; then
  8069. haveit=yes
  8070. break
  8071. fi
  8072. done
  8073. if test -z "$haveit"; then
  8074. if test -d "$additional_includedir"; then
  8075. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  8076. fi
  8077. fi
  8078. fi
  8079. fi
  8080. fi
  8081. if test -n "$found_la"; then
  8082. save_libdir="$libdir"
  8083. case "$found_la" in
  8084. */* | *\\*) . "$found_la" ;;
  8085. *) . "./$found_la" ;;
  8086. esac
  8087. libdir="$save_libdir"
  8088. for dep in $dependency_libs; do
  8089. case "$dep" in
  8090. -L*)
  8091. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8092. if test "X$additional_libdir" != "X/usr/lib"; then
  8093. haveit=
  8094. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8095. if test -n "$GCC"; then
  8096. case $host_os in
  8097. linux*) haveit=yes;;
  8098. esac
  8099. fi
  8100. fi
  8101. if test -z "$haveit"; then
  8102. haveit=
  8103. for x in $LDFLAGS $LIBICONV; do
  8104. acl_save_prefix="$prefix"
  8105. prefix="$acl_final_prefix"
  8106. acl_save_exec_prefix="$exec_prefix"
  8107. exec_prefix="$acl_final_exec_prefix"
  8108. eval x=\"$x\"
  8109. exec_prefix="$acl_save_exec_prefix"
  8110. prefix="$acl_save_prefix"
  8111. if test "X$x" = "X-L$additional_libdir"; then
  8112. haveit=yes
  8113. break
  8114. fi
  8115. done
  8116. if test -z "$haveit"; then
  8117. if test -d "$additional_libdir"; then
  8118. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  8119. fi
  8120. fi
  8121. haveit=
  8122. for x in $LDFLAGS $LTLIBICONV; do
  8123. acl_save_prefix="$prefix"
  8124. prefix="$acl_final_prefix"
  8125. acl_save_exec_prefix="$exec_prefix"
  8126. exec_prefix="$acl_final_exec_prefix"
  8127. eval x=\"$x\"
  8128. exec_prefix="$acl_save_exec_prefix"
  8129. prefix="$acl_save_prefix"
  8130. if test "X$x" = "X-L$additional_libdir"; then
  8131. haveit=yes
  8132. break
  8133. fi
  8134. done
  8135. if test -z "$haveit"; then
  8136. if test -d "$additional_libdir"; then
  8137. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  8138. fi
  8139. fi
  8140. fi
  8141. fi
  8142. ;;
  8143. -R*)
  8144. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8145. if test "$enable_rpath" != no; then
  8146. haveit=
  8147. for x in $rpathdirs; do
  8148. if test "X$x" = "X$dir"; then
  8149. haveit=yes
  8150. break
  8151. fi
  8152. done
  8153. if test -z "$haveit"; then
  8154. rpathdirs="$rpathdirs $dir"
  8155. fi
  8156. haveit=
  8157. for x in $ltrpathdirs; do
  8158. if test "X$x" = "X$dir"; then
  8159. haveit=yes
  8160. break
  8161. fi
  8162. done
  8163. if test -z "$haveit"; then
  8164. ltrpathdirs="$ltrpathdirs $dir"
  8165. fi
  8166. fi
  8167. ;;
  8168. -l*)
  8169. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8170. ;;
  8171. *.la)
  8172. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8173. ;;
  8174. *)
  8175. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  8176. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  8177. ;;
  8178. esac
  8179. done
  8180. fi
  8181. else
  8182. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8183. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  8184. fi
  8185. fi
  8186. fi
  8187. done
  8188. done
  8189. if test "X$rpathdirs" != "X"; then
  8190. if test -n "$hardcode_libdir_separator"; then
  8191. alldirs=
  8192. for found_dir in $rpathdirs; do
  8193. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8194. done
  8195. acl_save_libdir="$libdir"
  8196. libdir="$alldirs"
  8197. eval flag=\"$hardcode_libdir_flag_spec\"
  8198. libdir="$acl_save_libdir"
  8199. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8200. else
  8201. for found_dir in $rpathdirs; do
  8202. acl_save_libdir="$libdir"
  8203. libdir="$found_dir"
  8204. eval flag=\"$hardcode_libdir_flag_spec\"
  8205. libdir="$acl_save_libdir"
  8206. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8207. done
  8208. fi
  8209. fi
  8210. if test "X$ltrpathdirs" != "X"; then
  8211. for found_dir in $ltrpathdirs; do
  8212. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  8213. done
  8214. fi
  8215. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  8216. stdlib.h string.h unistd.h sys/param.h
  8217. do
  8218. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8219. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8220. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8221. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8222. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8223. echo $ECHO_N "(cached) $ECHO_C" >&6
  8224. fi
  8225. ac_res=`eval echo '${'$as_ac_Header'}'`
  8226. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8227. echo "${ECHO_T}$ac_res" >&6; }
  8228. else
  8229. # Is the header compilable?
  8230. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8231. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8232. cat >conftest.$ac_ext <<_ACEOF
  8233. /* confdefs.h. */
  8234. _ACEOF
  8235. cat confdefs.h >>conftest.$ac_ext
  8236. cat >>conftest.$ac_ext <<_ACEOF
  8237. /* end confdefs.h. */
  8238. $ac_includes_default
  8239. #include <$ac_header>
  8240. _ACEOF
  8241. rm -f conftest.$ac_objext
  8242. if { (ac_try="$ac_compile"
  8243. case "(($ac_try" in
  8244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8245. *) ac_try_echo=$ac_try;;
  8246. esac
  8247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8248. (eval "$ac_compile") 2>conftest.er1
  8249. ac_status=$?
  8250. grep -v '^ *+' conftest.er1 >conftest.err
  8251. rm -f conftest.er1
  8252. cat conftest.err >&5
  8253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8254. (exit $ac_status); } && {
  8255. test -z "$ac_c_werror_flag" ||
  8256. test ! -s conftest.err
  8257. } && test -s conftest.$ac_objext; then
  8258. ac_header_compiler=yes
  8259. else
  8260. echo "$as_me: failed program was:" >&5
  8261. sed 's/^/| /' conftest.$ac_ext >&5
  8262. ac_header_compiler=no
  8263. fi
  8264. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8265. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8266. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8267. # Is the header present?
  8268. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8269. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8270. cat >conftest.$ac_ext <<_ACEOF
  8271. /* confdefs.h. */
  8272. _ACEOF
  8273. cat confdefs.h >>conftest.$ac_ext
  8274. cat >>conftest.$ac_ext <<_ACEOF
  8275. /* end confdefs.h. */
  8276. #include <$ac_header>
  8277. _ACEOF
  8278. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8279. case "(($ac_try" in
  8280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8281. *) ac_try_echo=$ac_try;;
  8282. esac
  8283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8284. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8285. ac_status=$?
  8286. grep -v '^ *+' conftest.er1 >conftest.err
  8287. rm -f conftest.er1
  8288. cat conftest.err >&5
  8289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8290. (exit $ac_status); } >/dev/null && {
  8291. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8292. test ! -s conftest.err
  8293. }; then
  8294. ac_header_preproc=yes
  8295. else
  8296. echo "$as_me: failed program was:" >&5
  8297. sed 's/^/| /' conftest.$ac_ext >&5
  8298. ac_header_preproc=no
  8299. fi
  8300. rm -f conftest.err conftest.$ac_ext
  8301. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8302. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8303. # So? What about this header?
  8304. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8305. yes:no: )
  8306. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8307. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8308. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8309. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8310. ac_header_preproc=yes
  8311. ;;
  8312. no:yes:* )
  8313. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8314. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8315. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8316. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8317. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8318. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8319. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8320. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8321. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8322. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8323. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8324. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8325. ( cat <<\_ASBOX
  8326. ## ----------------------------------- ##
  8327. ## Report this to tujikawa@rednoah.com ##
  8328. ## ----------------------------------- ##
  8329. _ASBOX
  8330. ) | sed "s/^/$as_me: WARNING: /" >&2
  8331. ;;
  8332. esac
  8333. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8334. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8335. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8336. echo $ECHO_N "(cached) $ECHO_C" >&6
  8337. else
  8338. eval "$as_ac_Header=\$ac_header_preproc"
  8339. fi
  8340. ac_res=`eval echo '${'$as_ac_Header'}'`
  8341. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8342. echo "${ECHO_T}$ac_res" >&6; }
  8343. fi
  8344. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8345. cat >>confdefs.h <<_ACEOF
  8346. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8347. _ACEOF
  8348. fi
  8349. done
  8350. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  8351. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  8352. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  8353. __fsetlocking
  8354. do
  8355. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8356. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8357. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8358. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8359. echo $ECHO_N "(cached) $ECHO_C" >&6
  8360. else
  8361. cat >conftest.$ac_ext <<_ACEOF
  8362. /* confdefs.h. */
  8363. _ACEOF
  8364. cat confdefs.h >>conftest.$ac_ext
  8365. cat >>conftest.$ac_ext <<_ACEOF
  8366. /* end confdefs.h. */
  8367. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8368. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8369. #define $ac_func innocuous_$ac_func
  8370. /* System header to define __stub macros and hopefully few prototypes,
  8371. which can conflict with char $ac_func (); below.
  8372. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8373. <limits.h> exists even on freestanding compilers. */
  8374. #ifdef __STDC__
  8375. # include <limits.h>
  8376. #else
  8377. # include <assert.h>
  8378. #endif
  8379. #undef $ac_func
  8380. /* Override any GCC internal prototype to avoid an error.
  8381. Use char because int might match the return type of a GCC
  8382. builtin and then its argument prototype would still apply. */
  8383. #ifdef __cplusplus
  8384. extern "C"
  8385. #endif
  8386. char $ac_func ();
  8387. /* The GNU C library defines this for functions which it implements
  8388. to always fail with ENOSYS. Some functions are actually named
  8389. something starting with __ and the normal name is an alias. */
  8390. #if defined __stub_$ac_func || defined __stub___$ac_func
  8391. choke me
  8392. #endif
  8393. int
  8394. main ()
  8395. {
  8396. return $ac_func ();
  8397. ;
  8398. return 0;
  8399. }
  8400. _ACEOF
  8401. rm -f conftest.$ac_objext conftest$ac_exeext
  8402. if { (ac_try="$ac_link"
  8403. case "(($ac_try" in
  8404. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8405. *) ac_try_echo=$ac_try;;
  8406. esac
  8407. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8408. (eval "$ac_link") 2>conftest.er1
  8409. ac_status=$?
  8410. grep -v '^ *+' conftest.er1 >conftest.err
  8411. rm -f conftest.er1
  8412. cat conftest.err >&5
  8413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8414. (exit $ac_status); } && {
  8415. test -z "$ac_c_werror_flag" ||
  8416. test ! -s conftest.err
  8417. } && test -s conftest$ac_exeext &&
  8418. $as_test_x conftest$ac_exeext; then
  8419. eval "$as_ac_var=yes"
  8420. else
  8421. echo "$as_me: failed program was:" >&5
  8422. sed 's/^/| /' conftest.$ac_ext >&5
  8423. eval "$as_ac_var=no"
  8424. fi
  8425. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8426. conftest$ac_exeext conftest.$ac_ext
  8427. fi
  8428. ac_res=`eval echo '${'$as_ac_var'}'`
  8429. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8430. echo "${ECHO_T}$ac_res" >&6; }
  8431. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8432. cat >>confdefs.h <<_ACEOF
  8433. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8434. _ACEOF
  8435. fi
  8436. done
  8437. am_save_CPPFLAGS="$CPPFLAGS"
  8438. for element in $INCICONV; do
  8439. haveit=
  8440. for x in $CPPFLAGS; do
  8441. acl_save_prefix="$prefix"
  8442. prefix="$acl_final_prefix"
  8443. acl_save_exec_prefix="$exec_prefix"
  8444. exec_prefix="$acl_final_exec_prefix"
  8445. eval x=\"$x\"
  8446. exec_prefix="$acl_save_exec_prefix"
  8447. prefix="$acl_save_prefix"
  8448. if test "X$x" = "X$element"; then
  8449. haveit=yes
  8450. break
  8451. fi
  8452. done
  8453. if test -z "$haveit"; then
  8454. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8455. fi
  8456. done
  8457. { echo "$as_me:$LINENO: checking for iconv" >&5
  8458. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  8459. if test "${am_cv_func_iconv+set}" = set; then
  8460. echo $ECHO_N "(cached) $ECHO_C" >&6
  8461. else
  8462. am_cv_func_iconv="no, consider installing GNU libiconv"
  8463. am_cv_lib_iconv=no
  8464. cat >conftest.$ac_ext <<_ACEOF
  8465. /* confdefs.h. */
  8466. _ACEOF
  8467. cat confdefs.h >>conftest.$ac_ext
  8468. cat >>conftest.$ac_ext <<_ACEOF
  8469. /* end confdefs.h. */
  8470. #include <stdlib.h>
  8471. #include <iconv.h>
  8472. int
  8473. main ()
  8474. {
  8475. iconv_t cd = iconv_open("","");
  8476. iconv(cd,NULL,NULL,NULL,NULL);
  8477. iconv_close(cd);
  8478. ;
  8479. return 0;
  8480. }
  8481. _ACEOF
  8482. rm -f conftest.$ac_objext conftest$ac_exeext
  8483. if { (ac_try="$ac_link"
  8484. case "(($ac_try" in
  8485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8486. *) ac_try_echo=$ac_try;;
  8487. esac
  8488. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8489. (eval "$ac_link") 2>conftest.er1
  8490. ac_status=$?
  8491. grep -v '^ *+' conftest.er1 >conftest.err
  8492. rm -f conftest.er1
  8493. cat conftest.err >&5
  8494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8495. (exit $ac_status); } && {
  8496. test -z "$ac_c_werror_flag" ||
  8497. test ! -s conftest.err
  8498. } && test -s conftest$ac_exeext &&
  8499. $as_test_x conftest$ac_exeext; then
  8500. am_cv_func_iconv=yes
  8501. else
  8502. echo "$as_me: failed program was:" >&5
  8503. sed 's/^/| /' conftest.$ac_ext >&5
  8504. fi
  8505. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8506. conftest$ac_exeext conftest.$ac_ext
  8507. if test "$am_cv_func_iconv" != yes; then
  8508. am_save_LIBS="$LIBS"
  8509. LIBS="$LIBS $LIBICONV"
  8510. cat >conftest.$ac_ext <<_ACEOF
  8511. /* confdefs.h. */
  8512. _ACEOF
  8513. cat confdefs.h >>conftest.$ac_ext
  8514. cat >>conftest.$ac_ext <<_ACEOF
  8515. /* end confdefs.h. */
  8516. #include <stdlib.h>
  8517. #include <iconv.h>
  8518. int
  8519. main ()
  8520. {
  8521. iconv_t cd = iconv_open("","");
  8522. iconv(cd,NULL,NULL,NULL,NULL);
  8523. iconv_close(cd);
  8524. ;
  8525. return 0;
  8526. }
  8527. _ACEOF
  8528. rm -f conftest.$ac_objext conftest$ac_exeext
  8529. if { (ac_try="$ac_link"
  8530. case "(($ac_try" in
  8531. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8532. *) ac_try_echo=$ac_try;;
  8533. esac
  8534. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8535. (eval "$ac_link") 2>conftest.er1
  8536. ac_status=$?
  8537. grep -v '^ *+' conftest.er1 >conftest.err
  8538. rm -f conftest.er1
  8539. cat conftest.err >&5
  8540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8541. (exit $ac_status); } && {
  8542. test -z "$ac_c_werror_flag" ||
  8543. test ! -s conftest.err
  8544. } && test -s conftest$ac_exeext &&
  8545. $as_test_x conftest$ac_exeext; then
  8546. am_cv_lib_iconv=yes
  8547. am_cv_func_iconv=yes
  8548. else
  8549. echo "$as_me: failed program was:" >&5
  8550. sed 's/^/| /' conftest.$ac_ext >&5
  8551. fi
  8552. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8553. conftest$ac_exeext conftest.$ac_ext
  8554. LIBS="$am_save_LIBS"
  8555. fi
  8556. fi
  8557. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  8558. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  8559. if test "$am_cv_func_iconv" = yes; then
  8560. cat >>confdefs.h <<\_ACEOF
  8561. #define HAVE_ICONV 1
  8562. _ACEOF
  8563. fi
  8564. if test "$am_cv_lib_iconv" = yes; then
  8565. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  8566. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  8567. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  8568. echo "${ECHO_T}$LIBICONV" >&6; }
  8569. else
  8570. CPPFLAGS="$am_save_CPPFLAGS"
  8571. LIBICONV=
  8572. LTLIBICONV=
  8573. fi
  8574. if test "$am_cv_func_iconv" = yes; then
  8575. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  8576. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  8577. if test "${am_cv_proto_iconv+set}" = set; then
  8578. echo $ECHO_N "(cached) $ECHO_C" >&6
  8579. else
  8580. cat >conftest.$ac_ext <<_ACEOF
  8581. /* confdefs.h. */
  8582. _ACEOF
  8583. cat confdefs.h >>conftest.$ac_ext
  8584. cat >>conftest.$ac_ext <<_ACEOF
  8585. /* end confdefs.h. */
  8586. #include <stdlib.h>
  8587. #include <iconv.h>
  8588. extern
  8589. #ifdef __cplusplus
  8590. "C"
  8591. #endif
  8592. #if defined(__STDC__) || defined(__cplusplus)
  8593. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  8594. #else
  8595. size_t iconv();
  8596. #endif
  8597. int
  8598. main ()
  8599. {
  8600. ;
  8601. return 0;
  8602. }
  8603. _ACEOF
  8604. rm -f conftest.$ac_objext
  8605. if { (ac_try="$ac_compile"
  8606. case "(($ac_try" in
  8607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8608. *) ac_try_echo=$ac_try;;
  8609. esac
  8610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8611. (eval "$ac_compile") 2>conftest.er1
  8612. ac_status=$?
  8613. grep -v '^ *+' conftest.er1 >conftest.err
  8614. rm -f conftest.er1
  8615. cat conftest.err >&5
  8616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8617. (exit $ac_status); } && {
  8618. test -z "$ac_c_werror_flag" ||
  8619. test ! -s conftest.err
  8620. } && test -s conftest.$ac_objext; then
  8621. am_cv_proto_iconv_arg1=""
  8622. else
  8623. echo "$as_me: failed program was:" >&5
  8624. sed 's/^/| /' conftest.$ac_ext >&5
  8625. am_cv_proto_iconv_arg1="const"
  8626. fi
  8627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8628. 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);"
  8629. fi
  8630. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  8631. { echo "$as_me:$LINENO: result: ${ac_t:-
  8632. }$am_cv_proto_iconv" >&5
  8633. echo "${ECHO_T}${ac_t:-
  8634. }$am_cv_proto_iconv" >&6; }
  8635. cat >>confdefs.h <<_ACEOF
  8636. #define ICONV_CONST $am_cv_proto_iconv_arg1
  8637. _ACEOF
  8638. fi
  8639. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  8640. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  8641. if test "${am_cv_langinfo_codeset+set}" = set; then
  8642. echo $ECHO_N "(cached) $ECHO_C" >&6
  8643. else
  8644. cat >conftest.$ac_ext <<_ACEOF
  8645. /* confdefs.h. */
  8646. _ACEOF
  8647. cat confdefs.h >>conftest.$ac_ext
  8648. cat >>conftest.$ac_ext <<_ACEOF
  8649. /* end confdefs.h. */
  8650. #include <langinfo.h>
  8651. int
  8652. main ()
  8653. {
  8654. char* cs = nl_langinfo(CODESET);
  8655. ;
  8656. return 0;
  8657. }
  8658. _ACEOF
  8659. rm -f conftest.$ac_objext conftest$ac_exeext
  8660. if { (ac_try="$ac_link"
  8661. case "(($ac_try" in
  8662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8663. *) ac_try_echo=$ac_try;;
  8664. esac
  8665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8666. (eval "$ac_link") 2>conftest.er1
  8667. ac_status=$?
  8668. grep -v '^ *+' conftest.er1 >conftest.err
  8669. rm -f conftest.er1
  8670. cat conftest.err >&5
  8671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8672. (exit $ac_status); } && {
  8673. test -z "$ac_c_werror_flag" ||
  8674. test ! -s conftest.err
  8675. } && test -s conftest$ac_exeext &&
  8676. $as_test_x conftest$ac_exeext; then
  8677. am_cv_langinfo_codeset=yes
  8678. else
  8679. echo "$as_me: failed program was:" >&5
  8680. sed 's/^/| /' conftest.$ac_ext >&5
  8681. am_cv_langinfo_codeset=no
  8682. fi
  8683. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8684. conftest$ac_exeext conftest.$ac_ext
  8685. fi
  8686. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  8687. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  8688. if test $am_cv_langinfo_codeset = yes; then
  8689. cat >>confdefs.h <<\_ACEOF
  8690. #define HAVE_LANGINFO_CODESET 1
  8691. _ACEOF
  8692. fi
  8693. if test $ac_cv_header_locale_h = yes; then
  8694. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  8695. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  8696. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  8697. echo $ECHO_N "(cached) $ECHO_C" >&6
  8698. else
  8699. cat >conftest.$ac_ext <<_ACEOF
  8700. /* confdefs.h. */
  8701. _ACEOF
  8702. cat confdefs.h >>conftest.$ac_ext
  8703. cat >>conftest.$ac_ext <<_ACEOF
  8704. /* end confdefs.h. */
  8705. #include <locale.h>
  8706. int
  8707. main ()
  8708. {
  8709. return LC_MESSAGES
  8710. ;
  8711. return 0;
  8712. }
  8713. _ACEOF
  8714. rm -f conftest.$ac_objext conftest$ac_exeext
  8715. if { (ac_try="$ac_link"
  8716. case "(($ac_try" in
  8717. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8718. *) ac_try_echo=$ac_try;;
  8719. esac
  8720. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8721. (eval "$ac_link") 2>conftest.er1
  8722. ac_status=$?
  8723. grep -v '^ *+' conftest.er1 >conftest.err
  8724. rm -f conftest.er1
  8725. cat conftest.err >&5
  8726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8727. (exit $ac_status); } && {
  8728. test -z "$ac_c_werror_flag" ||
  8729. test ! -s conftest.err
  8730. } && test -s conftest$ac_exeext &&
  8731. $as_test_x conftest$ac_exeext; then
  8732. am_cv_val_LC_MESSAGES=yes
  8733. else
  8734. echo "$as_me: failed program was:" >&5
  8735. sed 's/^/| /' conftest.$ac_ext >&5
  8736. am_cv_val_LC_MESSAGES=no
  8737. fi
  8738. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8739. conftest$ac_exeext conftest.$ac_ext
  8740. fi
  8741. { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  8742. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  8743. if test $am_cv_val_LC_MESSAGES = yes; then
  8744. cat >>confdefs.h <<\_ACEOF
  8745. #define HAVE_LC_MESSAGES 1
  8746. _ACEOF
  8747. fi
  8748. fi
  8749. for ac_prog in bison
  8750. do
  8751. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8752. set dummy $ac_prog; ac_word=$2
  8753. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8754. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8755. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  8756. echo $ECHO_N "(cached) $ECHO_C" >&6
  8757. else
  8758. if test -n "$INTLBISON"; then
  8759. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  8760. else
  8761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8762. for as_dir in $PATH
  8763. do
  8764. IFS=$as_save_IFS
  8765. test -z "$as_dir" && as_dir=.
  8766. for ac_exec_ext in '' $ac_executable_extensions; do
  8767. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8768. ac_cv_prog_INTLBISON="$ac_prog"
  8769. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8770. break 2
  8771. fi
  8772. done
  8773. done
  8774. IFS=$as_save_IFS
  8775. fi
  8776. fi
  8777. INTLBISON=$ac_cv_prog_INTLBISON
  8778. if test -n "$INTLBISON"; then
  8779. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  8780. echo "${ECHO_T}$INTLBISON" >&6; }
  8781. else
  8782. { echo "$as_me:$LINENO: result: no" >&5
  8783. echo "${ECHO_T}no" >&6; }
  8784. fi
  8785. test -n "$INTLBISON" && break
  8786. done
  8787. if test -z "$INTLBISON"; then
  8788. ac_verc_fail=yes
  8789. else
  8790. { echo "$as_me:$LINENO: checking version of bison" >&5
  8791. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  8792. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  8793. case $ac_prog_version in
  8794. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  8795. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  8796. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  8797. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  8798. esac
  8799. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  8800. echo "${ECHO_T}$ac_prog_version" >&6; }
  8801. fi
  8802. if test $ac_verc_fail = yes; then
  8803. INTLBISON=:
  8804. fi
  8805. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8806. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  8807. # Check whether --enable-nls was given.
  8808. if test "${enable_nls+set}" = set; then
  8809. enableval=$enable_nls; USE_NLS=$enableval
  8810. else
  8811. USE_NLS=yes
  8812. fi
  8813. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8814. echo "${ECHO_T}$USE_NLS" >&6; }
  8815. BUILD_INCLUDED_LIBINTL=no
  8816. USE_INCLUDED_LIBINTL=no
  8817. LIBINTL=
  8818. LTLIBINTL=
  8819. POSUB=
  8820. if test "$USE_NLS" = "yes"; then
  8821. gt_use_preinstalled_gnugettext=no
  8822. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  8823. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  8824. # Check whether --with-included-gettext was given.
  8825. if test "${with_included_gettext+set}" = set; then
  8826. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  8827. else
  8828. nls_cv_force_use_gnu_gettext=no
  8829. fi
  8830. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  8831. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  8832. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  8833. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  8834. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  8835. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  8836. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  8837. echo $ECHO_N "(cached) $ECHO_C" >&6
  8838. else
  8839. cat >conftest.$ac_ext <<_ACEOF
  8840. /* confdefs.h. */
  8841. _ACEOF
  8842. cat confdefs.h >>conftest.$ac_ext
  8843. cat >>conftest.$ac_ext <<_ACEOF
  8844. /* end confdefs.h. */
  8845. #include <libintl.h>
  8846. extern int _nl_msg_cat_cntr;
  8847. extern int *_nl_domain_bindings;
  8848. int
  8849. main ()
  8850. {
  8851. bindtextdomain ("", "");
  8852. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  8853. ;
  8854. return 0;
  8855. }
  8856. _ACEOF
  8857. rm -f conftest.$ac_objext conftest$ac_exeext
  8858. if { (ac_try="$ac_link"
  8859. case "(($ac_try" in
  8860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8861. *) ac_try_echo=$ac_try;;
  8862. esac
  8863. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8864. (eval "$ac_link") 2>conftest.er1
  8865. ac_status=$?
  8866. grep -v '^ *+' conftest.er1 >conftest.err
  8867. rm -f conftest.er1
  8868. cat conftest.err >&5
  8869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8870. (exit $ac_status); } && {
  8871. test -z "$ac_c_werror_flag" ||
  8872. test ! -s conftest.err
  8873. } && test -s conftest$ac_exeext &&
  8874. $as_test_x conftest$ac_exeext; then
  8875. gt_cv_func_gnugettext1_libc=yes
  8876. else
  8877. echo "$as_me: failed program was:" >&5
  8878. sed 's/^/| /' conftest.$ac_ext >&5
  8879. gt_cv_func_gnugettext1_libc=no
  8880. fi
  8881. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8882. conftest$ac_exeext conftest.$ac_ext
  8883. fi
  8884. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  8885. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
  8886. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  8887. use_additional=yes
  8888. acl_save_prefix="$prefix"
  8889. prefix="$acl_final_prefix"
  8890. acl_save_exec_prefix="$exec_prefix"
  8891. exec_prefix="$acl_final_exec_prefix"
  8892. eval additional_includedir=\"$includedir\"
  8893. eval additional_libdir=\"$libdir\"
  8894. exec_prefix="$acl_save_exec_prefix"
  8895. prefix="$acl_save_prefix"
  8896. # Check whether --with-libintl-prefix was given.
  8897. if test "${with_libintl_prefix+set}" = set; then
  8898. withval=$with_libintl_prefix;
  8899. if test "X$withval" = "Xno"; then
  8900. use_additional=no
  8901. else
  8902. if test "X$withval" = "X"; then
  8903. acl_save_prefix="$prefix"
  8904. prefix="$acl_final_prefix"
  8905. acl_save_exec_prefix="$exec_prefix"
  8906. exec_prefix="$acl_final_exec_prefix"
  8907. eval additional_includedir=\"$includedir\"
  8908. eval additional_libdir=\"$libdir\"
  8909. exec_prefix="$acl_save_exec_prefix"
  8910. prefix="$acl_save_prefix"
  8911. else
  8912. additional_includedir="$withval/include"
  8913. additional_libdir="$withval/lib"
  8914. fi
  8915. fi
  8916. fi
  8917. LIBINTL=
  8918. LTLIBINTL=
  8919. INCINTL=
  8920. rpathdirs=
  8921. ltrpathdirs=
  8922. names_already_handled=
  8923. names_next_round='intl '
  8924. while test -n "$names_next_round"; do
  8925. names_this_round="$names_next_round"
  8926. names_next_round=
  8927. for name in $names_this_round; do
  8928. already_handled=
  8929. for n in $names_already_handled; do
  8930. if test "$n" = "$name"; then
  8931. already_handled=yes
  8932. break
  8933. fi
  8934. done
  8935. if test -z "$already_handled"; then
  8936. names_already_handled="$names_already_handled $name"
  8937. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  8938. eval value=\"\$HAVE_LIB$uppername\"
  8939. if test -n "$value"; then
  8940. if test "$value" = yes; then
  8941. eval value=\"\$LIB$uppername\"
  8942. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  8943. eval value=\"\$LTLIB$uppername\"
  8944. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  8945. else
  8946. :
  8947. fi
  8948. else
  8949. found_dir=
  8950. found_la=
  8951. found_so=
  8952. found_a=
  8953. if test $use_additional = yes; then
  8954. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8955. found_dir="$additional_libdir"
  8956. found_so="$additional_libdir/lib$name.$shlibext"
  8957. if test -f "$additional_libdir/lib$name.la"; then
  8958. found_la="$additional_libdir/lib$name.la"
  8959. fi
  8960. else
  8961. if test -f "$additional_libdir/lib$name.$libext"; then
  8962. found_dir="$additional_libdir"
  8963. found_a="$additional_libdir/lib$name.$libext"
  8964. if test -f "$additional_libdir/lib$name.la"; then
  8965. found_la="$additional_libdir/lib$name.la"
  8966. fi
  8967. fi
  8968. fi
  8969. fi
  8970. if test "X$found_dir" = "X"; then
  8971. for x in $LDFLAGS $LTLIBINTL; do
  8972. acl_save_prefix="$prefix"
  8973. prefix="$acl_final_prefix"
  8974. acl_save_exec_prefix="$exec_prefix"
  8975. exec_prefix="$acl_final_exec_prefix"
  8976. eval x=\"$x\"
  8977. exec_prefix="$acl_save_exec_prefix"
  8978. prefix="$acl_save_prefix"
  8979. case "$x" in
  8980. -L*)
  8981. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8982. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8983. found_dir="$dir"
  8984. found_so="$dir/lib$name.$shlibext"
  8985. if test -f "$dir/lib$name.la"; then
  8986. found_la="$dir/lib$name.la"
  8987. fi
  8988. else
  8989. if test -f "$dir/lib$name.$libext"; then
  8990. found_dir="$dir"
  8991. found_a="$dir/lib$name.$libext"
  8992. if test -f "$dir/lib$name.la"; then
  8993. found_la="$dir/lib$name.la"
  8994. fi
  8995. fi
  8996. fi
  8997. ;;
  8998. esac
  8999. if test "X$found_dir" != "X"; then
  9000. break
  9001. fi
  9002. done
  9003. fi
  9004. if test "X$found_dir" != "X"; then
  9005. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  9006. if test "X$found_so" != "X"; then
  9007. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  9008. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9009. else
  9010. haveit=
  9011. for x in $ltrpathdirs; do
  9012. if test "X$x" = "X$found_dir"; then
  9013. haveit=yes
  9014. break
  9015. fi
  9016. done
  9017. if test -z "$haveit"; then
  9018. ltrpathdirs="$ltrpathdirs $found_dir"
  9019. fi
  9020. if test "$hardcode_direct" = yes; then
  9021. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9022. else
  9023. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  9024. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9025. haveit=
  9026. for x in $rpathdirs; do
  9027. if test "X$x" = "X$found_dir"; then
  9028. haveit=yes
  9029. break
  9030. fi
  9031. done
  9032. if test -z "$haveit"; then
  9033. rpathdirs="$rpathdirs $found_dir"
  9034. fi
  9035. else
  9036. haveit=
  9037. for x in $LDFLAGS $LIBINTL; do
  9038. acl_save_prefix="$prefix"
  9039. prefix="$acl_final_prefix"
  9040. acl_save_exec_prefix="$exec_prefix"
  9041. exec_prefix="$acl_final_exec_prefix"
  9042. eval x=\"$x\"
  9043. exec_prefix="$acl_save_exec_prefix"
  9044. prefix="$acl_save_prefix"
  9045. if test "X$x" = "X-L$found_dir"; then
  9046. haveit=yes
  9047. break
  9048. fi
  9049. done
  9050. if test -z "$haveit"; then
  9051. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  9052. fi
  9053. if test "$hardcode_minus_L" != no; then
  9054. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9055. else
  9056. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9057. fi
  9058. fi
  9059. fi
  9060. fi
  9061. else
  9062. if test "X$found_a" != "X"; then
  9063. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  9064. else
  9065. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  9066. fi
  9067. fi
  9068. additional_includedir=
  9069. case "$found_dir" in
  9070. */lib | */lib/)
  9071. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  9072. additional_includedir="$basedir/include"
  9073. ;;
  9074. esac
  9075. if test "X$additional_includedir" != "X"; then
  9076. if test "X$additional_includedir" != "X/usr/include"; then
  9077. haveit=
  9078. if test "X$additional_includedir" = "X/usr/local/include"; then
  9079. if test -n "$GCC"; then
  9080. case $host_os in
  9081. linux*) haveit=yes;;
  9082. esac
  9083. fi
  9084. fi
  9085. if test -z "$haveit"; then
  9086. for x in $CPPFLAGS $INCINTL; do
  9087. acl_save_prefix="$prefix"
  9088. prefix="$acl_final_prefix"
  9089. acl_save_exec_prefix="$exec_prefix"
  9090. exec_prefix="$acl_final_exec_prefix"
  9091. eval x=\"$x\"
  9092. exec_prefix="$acl_save_exec_prefix"
  9093. prefix="$acl_save_prefix"
  9094. if test "X$x" = "X-I$additional_includedir"; then
  9095. haveit=yes
  9096. break
  9097. fi
  9098. done
  9099. if test -z "$haveit"; then
  9100. if test -d "$additional_includedir"; then
  9101. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  9102. fi
  9103. fi
  9104. fi
  9105. fi
  9106. fi
  9107. if test -n "$found_la"; then
  9108. save_libdir="$libdir"
  9109. case "$found_la" in
  9110. */* | *\\*) . "$found_la" ;;
  9111. *) . "./$found_la" ;;
  9112. esac
  9113. libdir="$save_libdir"
  9114. for dep in $dependency_libs; do
  9115. case "$dep" in
  9116. -L*)
  9117. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9118. if test "X$additional_libdir" != "X/usr/lib"; then
  9119. haveit=
  9120. if test "X$additional_libdir" = "X/usr/local/lib"; then
  9121. if test -n "$GCC"; then
  9122. case $host_os in
  9123. linux*) haveit=yes;;
  9124. esac
  9125. fi
  9126. fi
  9127. if test -z "$haveit"; then
  9128. haveit=
  9129. for x in $LDFLAGS $LIBINTL; do
  9130. acl_save_prefix="$prefix"
  9131. prefix="$acl_final_prefix"
  9132. acl_save_exec_prefix="$exec_prefix"
  9133. exec_prefix="$acl_final_exec_prefix"
  9134. eval x=\"$x\"
  9135. exec_prefix="$acl_save_exec_prefix"
  9136. prefix="$acl_save_prefix"
  9137. if test "X$x" = "X-L$additional_libdir"; then
  9138. haveit=yes
  9139. break
  9140. fi
  9141. done
  9142. if test -z "$haveit"; then
  9143. if test -d "$additional_libdir"; then
  9144. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  9145. fi
  9146. fi
  9147. haveit=
  9148. for x in $LDFLAGS $LTLIBINTL; do
  9149. acl_save_prefix="$prefix"
  9150. prefix="$acl_final_prefix"
  9151. acl_save_exec_prefix="$exec_prefix"
  9152. exec_prefix="$acl_final_exec_prefix"
  9153. eval x=\"$x\"
  9154. exec_prefix="$acl_save_exec_prefix"
  9155. prefix="$acl_save_prefix"
  9156. if test "X$x" = "X-L$additional_libdir"; then
  9157. haveit=yes
  9158. break
  9159. fi
  9160. done
  9161. if test -z "$haveit"; then
  9162. if test -d "$additional_libdir"; then
  9163. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  9164. fi
  9165. fi
  9166. fi
  9167. fi
  9168. ;;
  9169. -R*)
  9170. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9171. if test "$enable_rpath" != no; then
  9172. haveit=
  9173. for x in $rpathdirs; do
  9174. if test "X$x" = "X$dir"; then
  9175. haveit=yes
  9176. break
  9177. fi
  9178. done
  9179. if test -z "$haveit"; then
  9180. rpathdirs="$rpathdirs $dir"
  9181. fi
  9182. haveit=
  9183. for x in $ltrpathdirs; do
  9184. if test "X$x" = "X$dir"; then
  9185. haveit=yes
  9186. break
  9187. fi
  9188. done
  9189. if test -z "$haveit"; then
  9190. ltrpathdirs="$ltrpathdirs $dir"
  9191. fi
  9192. fi
  9193. ;;
  9194. -l*)
  9195. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9196. ;;
  9197. *.la)
  9198. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9199. ;;
  9200. *)
  9201. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  9202. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  9203. ;;
  9204. esac
  9205. done
  9206. fi
  9207. else
  9208. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9209. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  9210. fi
  9211. fi
  9212. fi
  9213. done
  9214. done
  9215. if test "X$rpathdirs" != "X"; then
  9216. if test -n "$hardcode_libdir_separator"; then
  9217. alldirs=
  9218. for found_dir in $rpathdirs; do
  9219. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  9220. done
  9221. acl_save_libdir="$libdir"
  9222. libdir="$alldirs"
  9223. eval flag=\"$hardcode_libdir_flag_spec\"
  9224. libdir="$acl_save_libdir"
  9225. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9226. else
  9227. for found_dir in $rpathdirs; do
  9228. acl_save_libdir="$libdir"
  9229. libdir="$found_dir"
  9230. eval flag=\"$hardcode_libdir_flag_spec\"
  9231. libdir="$acl_save_libdir"
  9232. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9233. done
  9234. fi
  9235. fi
  9236. if test "X$ltrpathdirs" != "X"; then
  9237. for found_dir in $ltrpathdirs; do
  9238. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  9239. done
  9240. fi
  9241. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  9242. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  9243. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  9244. echo $ECHO_N "(cached) $ECHO_C" >&6
  9245. else
  9246. gt_save_CPPFLAGS="$CPPFLAGS"
  9247. CPPFLAGS="$CPPFLAGS $INCINTL"
  9248. gt_save_LIBS="$LIBS"
  9249. LIBS="$LIBS $LIBINTL"
  9250. cat >conftest.$ac_ext <<_ACEOF
  9251. /* confdefs.h. */
  9252. _ACEOF
  9253. cat confdefs.h >>conftest.$ac_ext
  9254. cat >>conftest.$ac_ext <<_ACEOF
  9255. /* end confdefs.h. */
  9256. #include <libintl.h>
  9257. extern int _nl_msg_cat_cntr;
  9258. extern
  9259. #ifdef __cplusplus
  9260. "C"
  9261. #endif
  9262. const char *_nl_expand_alias ();
  9263. int
  9264. main ()
  9265. {
  9266. bindtextdomain ("", "");
  9267. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9268. ;
  9269. return 0;
  9270. }
  9271. _ACEOF
  9272. rm -f conftest.$ac_objext conftest$ac_exeext
  9273. if { (ac_try="$ac_link"
  9274. case "(($ac_try" in
  9275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9276. *) ac_try_echo=$ac_try;;
  9277. esac
  9278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9279. (eval "$ac_link") 2>conftest.er1
  9280. ac_status=$?
  9281. grep -v '^ *+' conftest.er1 >conftest.err
  9282. rm -f conftest.er1
  9283. cat conftest.err >&5
  9284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9285. (exit $ac_status); } && {
  9286. test -z "$ac_c_werror_flag" ||
  9287. test ! -s conftest.err
  9288. } && test -s conftest$ac_exeext &&
  9289. $as_test_x conftest$ac_exeext; then
  9290. gt_cv_func_gnugettext1_libintl=yes
  9291. else
  9292. echo "$as_me: failed program was:" >&5
  9293. sed 's/^/| /' conftest.$ac_ext >&5
  9294. gt_cv_func_gnugettext1_libintl=no
  9295. fi
  9296. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9297. conftest$ac_exeext conftest.$ac_ext
  9298. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  9299. LIBS="$LIBS $LIBICONV"
  9300. cat >conftest.$ac_ext <<_ACEOF
  9301. /* confdefs.h. */
  9302. _ACEOF
  9303. cat confdefs.h >>conftest.$ac_ext
  9304. cat >>conftest.$ac_ext <<_ACEOF
  9305. /* end confdefs.h. */
  9306. #include <libintl.h>
  9307. extern int _nl_msg_cat_cntr;
  9308. extern
  9309. #ifdef __cplusplus
  9310. "C"
  9311. #endif
  9312. const char *_nl_expand_alias ();
  9313. int
  9314. main ()
  9315. {
  9316. bindtextdomain ("", "");
  9317. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9318. ;
  9319. return 0;
  9320. }
  9321. _ACEOF
  9322. rm -f conftest.$ac_objext conftest$ac_exeext
  9323. if { (ac_try="$ac_link"
  9324. case "(($ac_try" in
  9325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9326. *) ac_try_echo=$ac_try;;
  9327. esac
  9328. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9329. (eval "$ac_link") 2>conftest.er1
  9330. ac_status=$?
  9331. grep -v '^ *+' conftest.er1 >conftest.err
  9332. rm -f conftest.er1
  9333. cat conftest.err >&5
  9334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9335. (exit $ac_status); } && {
  9336. test -z "$ac_c_werror_flag" ||
  9337. test ! -s conftest.err
  9338. } && test -s conftest$ac_exeext &&
  9339. $as_test_x conftest$ac_exeext; then
  9340. LIBINTL="$LIBINTL $LIBICONV"
  9341. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  9342. gt_cv_func_gnugettext1_libintl=yes
  9343. else
  9344. echo "$as_me: failed program was:" >&5
  9345. sed 's/^/| /' conftest.$ac_ext >&5
  9346. fi
  9347. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9348. conftest$ac_exeext conftest.$ac_ext
  9349. fi
  9350. CPPFLAGS="$gt_save_CPPFLAGS"
  9351. LIBS="$gt_save_LIBS"
  9352. fi
  9353. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  9354. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
  9355. fi
  9356. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  9357. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  9358. && test "$PACKAGE" != gettext-runtime \
  9359. && test "$PACKAGE" != gettext-tools; }; then
  9360. gt_use_preinstalled_gnugettext=yes
  9361. else
  9362. LIBINTL=
  9363. LTLIBINTL=
  9364. INCINTL=
  9365. fi
  9366. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  9367. nls_cv_use_gnu_gettext=yes
  9368. fi
  9369. fi
  9370. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  9371. BUILD_INCLUDED_LIBINTL=yes
  9372. USE_INCLUDED_LIBINTL=yes
  9373. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  9374. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  9375. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  9376. fi
  9377. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9378. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9379. CATOBJEXT=.gmo
  9380. fi
  9381. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9382. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9383. cat >>confdefs.h <<\_ACEOF
  9384. #define ENABLE_NLS 1
  9385. _ACEOF
  9386. else
  9387. USE_NLS=no
  9388. fi
  9389. fi
  9390. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  9391. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  9392. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9393. echo "${ECHO_T}$USE_NLS" >&6; }
  9394. if test "$USE_NLS" = "yes"; then
  9395. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  9396. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  9397. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9398. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9399. gt_source="external libintl"
  9400. else
  9401. gt_source="libc"
  9402. fi
  9403. else
  9404. gt_source="included intl directory"
  9405. fi
  9406. { echo "$as_me:$LINENO: result: $gt_source" >&5
  9407. echo "${ECHO_T}$gt_source" >&6; }
  9408. fi
  9409. if test "$USE_NLS" = "yes"; then
  9410. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9411. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9412. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  9413. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  9414. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  9415. echo "${ECHO_T}$LIBINTL" >&6; }
  9416. for element in $INCINTL; do
  9417. haveit=
  9418. for x in $CPPFLAGS; do
  9419. acl_save_prefix="$prefix"
  9420. prefix="$acl_final_prefix"
  9421. acl_save_exec_prefix="$exec_prefix"
  9422. exec_prefix="$acl_final_exec_prefix"
  9423. eval x=\"$x\"
  9424. exec_prefix="$acl_save_exec_prefix"
  9425. prefix="$acl_save_prefix"
  9426. if test "X$x" = "X$element"; then
  9427. haveit=yes
  9428. break
  9429. fi
  9430. done
  9431. if test -z "$haveit"; then
  9432. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9433. fi
  9434. done
  9435. fi
  9436. cat >>confdefs.h <<\_ACEOF
  9437. #define HAVE_GETTEXT 1
  9438. _ACEOF
  9439. cat >>confdefs.h <<\_ACEOF
  9440. #define HAVE_DCGETTEXT 1
  9441. _ACEOF
  9442. fi
  9443. POSUB=po
  9444. fi
  9445. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  9446. BUILD_INCLUDED_LIBINTL=yes
  9447. fi
  9448. nls_cv_header_intl=
  9449. nls_cv_header_libgt=
  9450. DATADIRNAME=share
  9451. INSTOBJEXT=.mo
  9452. GENCAT=gencat
  9453. if test "$USE_INCLUDED_LIBINTL" = yes; then
  9454. INTLOBJS="\$(GETTOBJS)"
  9455. fi
  9456. INTL_LIBTOOL_SUFFIX_PREFIX=
  9457. INTLLIBS="$LIBINTL"
  9458. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  9459. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  9460. if test "${ac_cv_lib_error_at_line+set}" = set; then
  9461. echo $ECHO_N "(cached) $ECHO_C" >&6
  9462. else
  9463. cat >conftest.$ac_ext <<_ACEOF
  9464. /* confdefs.h. */
  9465. _ACEOF
  9466. cat confdefs.h >>conftest.$ac_ext
  9467. cat >>conftest.$ac_ext <<_ACEOF
  9468. /* end confdefs.h. */
  9469. #include <error.h>
  9470. int
  9471. main ()
  9472. {
  9473. error_at_line (0, 0, "", 0, "an error occurred");
  9474. ;
  9475. return 0;
  9476. }
  9477. _ACEOF
  9478. rm -f conftest.$ac_objext conftest$ac_exeext
  9479. if { (ac_try="$ac_link"
  9480. case "(($ac_try" in
  9481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9482. *) ac_try_echo=$ac_try;;
  9483. esac
  9484. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9485. (eval "$ac_link") 2>conftest.er1
  9486. ac_status=$?
  9487. grep -v '^ *+' conftest.er1 >conftest.err
  9488. rm -f conftest.er1
  9489. cat conftest.err >&5
  9490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9491. (exit $ac_status); } && {
  9492. test -z "$ac_c_werror_flag" ||
  9493. test ! -s conftest.err
  9494. } && test -s conftest$ac_exeext &&
  9495. $as_test_x conftest$ac_exeext; then
  9496. ac_cv_lib_error_at_line=yes
  9497. else
  9498. echo "$as_me: failed program was:" >&5
  9499. sed 's/^/| /' conftest.$ac_ext >&5
  9500. ac_cv_lib_error_at_line=no
  9501. fi
  9502. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9503. conftest$ac_exeext conftest.$ac_ext
  9504. fi
  9505. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  9506. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  9507. if test $ac_cv_lib_error_at_line = no; then
  9508. case " $LIBOBJS " in
  9509. *" error.$ac_objext "* ) ;;
  9510. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  9511. ;;
  9512. esac
  9513. fi
  9514. for ac_header in stdlib.h
  9515. do
  9516. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9517. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9518. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9519. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9520. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9521. echo $ECHO_N "(cached) $ECHO_C" >&6
  9522. fi
  9523. ac_res=`eval echo '${'$as_ac_Header'}'`
  9524. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9525. echo "${ECHO_T}$ac_res" >&6; }
  9526. else
  9527. # Is the header compilable?
  9528. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9529. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9530. cat >conftest.$ac_ext <<_ACEOF
  9531. /* confdefs.h. */
  9532. _ACEOF
  9533. cat confdefs.h >>conftest.$ac_ext
  9534. cat >>conftest.$ac_ext <<_ACEOF
  9535. /* end confdefs.h. */
  9536. $ac_includes_default
  9537. #include <$ac_header>
  9538. _ACEOF
  9539. rm -f conftest.$ac_objext
  9540. if { (ac_try="$ac_compile"
  9541. case "(($ac_try" in
  9542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9543. *) ac_try_echo=$ac_try;;
  9544. esac
  9545. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9546. (eval "$ac_compile") 2>conftest.er1
  9547. ac_status=$?
  9548. grep -v '^ *+' conftest.er1 >conftest.err
  9549. rm -f conftest.er1
  9550. cat conftest.err >&5
  9551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9552. (exit $ac_status); } && {
  9553. test -z "$ac_c_werror_flag" ||
  9554. test ! -s conftest.err
  9555. } && test -s conftest.$ac_objext; then
  9556. ac_header_compiler=yes
  9557. else
  9558. echo "$as_me: failed program was:" >&5
  9559. sed 's/^/| /' conftest.$ac_ext >&5
  9560. ac_header_compiler=no
  9561. fi
  9562. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9563. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9564. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9565. # Is the header present?
  9566. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9567. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9568. cat >conftest.$ac_ext <<_ACEOF
  9569. /* confdefs.h. */
  9570. _ACEOF
  9571. cat confdefs.h >>conftest.$ac_ext
  9572. cat >>conftest.$ac_ext <<_ACEOF
  9573. /* end confdefs.h. */
  9574. #include <$ac_header>
  9575. _ACEOF
  9576. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9577. case "(($ac_try" in
  9578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9579. *) ac_try_echo=$ac_try;;
  9580. esac
  9581. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9582. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9583. ac_status=$?
  9584. grep -v '^ *+' conftest.er1 >conftest.err
  9585. rm -f conftest.er1
  9586. cat conftest.err >&5
  9587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9588. (exit $ac_status); } >/dev/null && {
  9589. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9590. test ! -s conftest.err
  9591. }; then
  9592. ac_header_preproc=yes
  9593. else
  9594. echo "$as_me: failed program was:" >&5
  9595. sed 's/^/| /' conftest.$ac_ext >&5
  9596. ac_header_preproc=no
  9597. fi
  9598. rm -f conftest.err conftest.$ac_ext
  9599. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9600. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9601. # So? What about this header?
  9602. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9603. yes:no: )
  9604. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9605. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9606. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9607. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9608. ac_header_preproc=yes
  9609. ;;
  9610. no:yes:* )
  9611. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9612. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9613. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9614. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9615. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9616. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9617. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9618. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9619. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9620. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9621. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9622. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9623. ( cat <<\_ASBOX
  9624. ## ----------------------------------- ##
  9625. ## Report this to tujikawa@rednoah.com ##
  9626. ## ----------------------------------- ##
  9627. _ASBOX
  9628. ) | sed "s/^/$as_me: WARNING: /" >&2
  9629. ;;
  9630. esac
  9631. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9632. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9633. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9634. echo $ECHO_N "(cached) $ECHO_C" >&6
  9635. else
  9636. eval "$as_ac_Header=\$ac_header_preproc"
  9637. fi
  9638. ac_res=`eval echo '${'$as_ac_Header'}'`
  9639. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9640. echo "${ECHO_T}$ac_res" >&6; }
  9641. fi
  9642. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9643. cat >>confdefs.h <<_ACEOF
  9644. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9645. _ACEOF
  9646. fi
  9647. done
  9648. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9649. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  9650. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9651. echo $ECHO_N "(cached) $ECHO_C" >&6
  9652. else
  9653. if test "$cross_compiling" = yes; then
  9654. ac_cv_func_malloc_0_nonnull=no
  9655. else
  9656. cat >conftest.$ac_ext <<_ACEOF
  9657. /* confdefs.h. */
  9658. _ACEOF
  9659. cat confdefs.h >>conftest.$ac_ext
  9660. cat >>conftest.$ac_ext <<_ACEOF
  9661. /* end confdefs.h. */
  9662. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9663. # include <stdlib.h>
  9664. #else
  9665. char *malloc ();
  9666. #endif
  9667. int
  9668. main ()
  9669. {
  9670. return ! malloc (0);
  9671. ;
  9672. return 0;
  9673. }
  9674. _ACEOF
  9675. rm -f conftest$ac_exeext
  9676. if { (ac_try="$ac_link"
  9677. case "(($ac_try" in
  9678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9679. *) ac_try_echo=$ac_try;;
  9680. esac
  9681. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9682. (eval "$ac_link") 2>&5
  9683. ac_status=$?
  9684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9685. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9686. { (case "(($ac_try" in
  9687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9688. *) ac_try_echo=$ac_try;;
  9689. esac
  9690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9691. (eval "$ac_try") 2>&5
  9692. ac_status=$?
  9693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9694. (exit $ac_status); }; }; then
  9695. ac_cv_func_malloc_0_nonnull=yes
  9696. else
  9697. echo "$as_me: program exited with status $ac_status" >&5
  9698. echo "$as_me: failed program was:" >&5
  9699. sed 's/^/| /' conftest.$ac_ext >&5
  9700. ( exit $ac_status )
  9701. ac_cv_func_malloc_0_nonnull=no
  9702. fi
  9703. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9704. fi
  9705. fi
  9706. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9707. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  9708. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9709. cat >>confdefs.h <<\_ACEOF
  9710. #define HAVE_MALLOC 1
  9711. _ACEOF
  9712. else
  9713. cat >>confdefs.h <<\_ACEOF
  9714. #define HAVE_MALLOC 0
  9715. _ACEOF
  9716. case " $LIBOBJS " in
  9717. *" malloc.$ac_objext "* ) ;;
  9718. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9719. ;;
  9720. esac
  9721. cat >>confdefs.h <<\_ACEOF
  9722. #define malloc rpl_malloc
  9723. _ACEOF
  9724. fi
  9725. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  9726. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  9727. if test "${ac_cv_func_memcmp_working+set}" = set; then
  9728. echo $ECHO_N "(cached) $ECHO_C" >&6
  9729. else
  9730. if test "$cross_compiling" = yes; then
  9731. ac_cv_func_memcmp_working=no
  9732. else
  9733. cat >conftest.$ac_ext <<_ACEOF
  9734. /* confdefs.h. */
  9735. _ACEOF
  9736. cat confdefs.h >>conftest.$ac_ext
  9737. cat >>conftest.$ac_ext <<_ACEOF
  9738. /* end confdefs.h. */
  9739. $ac_includes_default
  9740. int
  9741. main ()
  9742. {
  9743. /* Some versions of memcmp are not 8-bit clean. */
  9744. char c0 = '\100', c1 = '\200', c2 = '\201';
  9745. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  9746. return 1;
  9747. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  9748. or more and with at least one buffer not starting on a 4-byte boundary.
  9749. William Lewis provided this test program. */
  9750. {
  9751. char foo[21];
  9752. char bar[21];
  9753. int i;
  9754. for (i = 0; i < 4; i++)
  9755. {
  9756. char *a = foo + i;
  9757. char *b = bar + i;
  9758. strcpy (a, "--------01111111");
  9759. strcpy (b, "--------10000000");
  9760. if (memcmp (a, b, 16) >= 0)
  9761. return 1;
  9762. }
  9763. return 0;
  9764. }
  9765. ;
  9766. return 0;
  9767. }
  9768. _ACEOF
  9769. rm -f conftest$ac_exeext
  9770. if { (ac_try="$ac_link"
  9771. case "(($ac_try" in
  9772. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9773. *) ac_try_echo=$ac_try;;
  9774. esac
  9775. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9776. (eval "$ac_link") 2>&5
  9777. ac_status=$?
  9778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9779. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9780. { (case "(($ac_try" in
  9781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9782. *) ac_try_echo=$ac_try;;
  9783. esac
  9784. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9785. (eval "$ac_try") 2>&5
  9786. ac_status=$?
  9787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9788. (exit $ac_status); }; }; then
  9789. ac_cv_func_memcmp_working=yes
  9790. else
  9791. echo "$as_me: program exited with status $ac_status" >&5
  9792. echo "$as_me: failed program was:" >&5
  9793. sed 's/^/| /' conftest.$ac_ext >&5
  9794. ( exit $ac_status )
  9795. ac_cv_func_memcmp_working=no
  9796. fi
  9797. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9798. fi
  9799. fi
  9800. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  9801. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  9802. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  9803. *" memcmp.$ac_objext "* ) ;;
  9804. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  9805. ;;
  9806. esac
  9807. for ac_header in stdlib.h unistd.h
  9808. do
  9809. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9810. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9811. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9812. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9813. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9814. echo $ECHO_N "(cached) $ECHO_C" >&6
  9815. fi
  9816. ac_res=`eval echo '${'$as_ac_Header'}'`
  9817. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9818. echo "${ECHO_T}$ac_res" >&6; }
  9819. else
  9820. # Is the header compilable?
  9821. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9822. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9823. cat >conftest.$ac_ext <<_ACEOF
  9824. /* confdefs.h. */
  9825. _ACEOF
  9826. cat confdefs.h >>conftest.$ac_ext
  9827. cat >>conftest.$ac_ext <<_ACEOF
  9828. /* end confdefs.h. */
  9829. $ac_includes_default
  9830. #include <$ac_header>
  9831. _ACEOF
  9832. rm -f conftest.$ac_objext
  9833. if { (ac_try="$ac_compile"
  9834. case "(($ac_try" in
  9835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9836. *) ac_try_echo=$ac_try;;
  9837. esac
  9838. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9839. (eval "$ac_compile") 2>conftest.er1
  9840. ac_status=$?
  9841. grep -v '^ *+' conftest.er1 >conftest.err
  9842. rm -f conftest.er1
  9843. cat conftest.err >&5
  9844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9845. (exit $ac_status); } && {
  9846. test -z "$ac_c_werror_flag" ||
  9847. test ! -s conftest.err
  9848. } && test -s conftest.$ac_objext; then
  9849. ac_header_compiler=yes
  9850. else
  9851. echo "$as_me: failed program was:" >&5
  9852. sed 's/^/| /' conftest.$ac_ext >&5
  9853. ac_header_compiler=no
  9854. fi
  9855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9856. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9857. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9858. # Is the header present?
  9859. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9860. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9861. cat >conftest.$ac_ext <<_ACEOF
  9862. /* confdefs.h. */
  9863. _ACEOF
  9864. cat confdefs.h >>conftest.$ac_ext
  9865. cat >>conftest.$ac_ext <<_ACEOF
  9866. /* end confdefs.h. */
  9867. #include <$ac_header>
  9868. _ACEOF
  9869. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9870. case "(($ac_try" in
  9871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9872. *) ac_try_echo=$ac_try;;
  9873. esac
  9874. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9875. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9876. ac_status=$?
  9877. grep -v '^ *+' conftest.er1 >conftest.err
  9878. rm -f conftest.er1
  9879. cat conftest.err >&5
  9880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9881. (exit $ac_status); } >/dev/null && {
  9882. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9883. test ! -s conftest.err
  9884. }; then
  9885. ac_header_preproc=yes
  9886. else
  9887. echo "$as_me: failed program was:" >&5
  9888. sed 's/^/| /' conftest.$ac_ext >&5
  9889. ac_header_preproc=no
  9890. fi
  9891. rm -f conftest.err conftest.$ac_ext
  9892. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9893. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9894. # So? What about this header?
  9895. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9896. yes:no: )
  9897. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9898. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9899. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9900. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9901. ac_header_preproc=yes
  9902. ;;
  9903. no:yes:* )
  9904. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9905. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9906. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9907. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9908. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9909. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9910. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9911. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9912. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9913. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9914. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9915. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9916. ( cat <<\_ASBOX
  9917. ## ----------------------------------- ##
  9918. ## Report this to tujikawa@rednoah.com ##
  9919. ## ----------------------------------- ##
  9920. _ASBOX
  9921. ) | sed "s/^/$as_me: WARNING: /" >&2
  9922. ;;
  9923. esac
  9924. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9925. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9926. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9927. echo $ECHO_N "(cached) $ECHO_C" >&6
  9928. else
  9929. eval "$as_ac_Header=\$ac_header_preproc"
  9930. fi
  9931. ac_res=`eval echo '${'$as_ac_Header'}'`
  9932. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9933. echo "${ECHO_T}$ac_res" >&6; }
  9934. fi
  9935. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9936. cat >>confdefs.h <<_ACEOF
  9937. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9938. _ACEOF
  9939. fi
  9940. done
  9941. for ac_func in getpagesize
  9942. do
  9943. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9944. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9945. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9946. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9947. echo $ECHO_N "(cached) $ECHO_C" >&6
  9948. else
  9949. cat >conftest.$ac_ext <<_ACEOF
  9950. /* confdefs.h. */
  9951. _ACEOF
  9952. cat confdefs.h >>conftest.$ac_ext
  9953. cat >>conftest.$ac_ext <<_ACEOF
  9954. /* end confdefs.h. */
  9955. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9956. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9957. #define $ac_func innocuous_$ac_func
  9958. /* System header to define __stub macros and hopefully few prototypes,
  9959. which can conflict with char $ac_func (); below.
  9960. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9961. <limits.h> exists even on freestanding compilers. */
  9962. #ifdef __STDC__
  9963. # include <limits.h>
  9964. #else
  9965. # include <assert.h>
  9966. #endif
  9967. #undef $ac_func
  9968. /* Override any GCC internal prototype to avoid an error.
  9969. Use char because int might match the return type of a GCC
  9970. builtin and then its argument prototype would still apply. */
  9971. #ifdef __cplusplus
  9972. extern "C"
  9973. #endif
  9974. char $ac_func ();
  9975. /* The GNU C library defines this for functions which it implements
  9976. to always fail with ENOSYS. Some functions are actually named
  9977. something starting with __ and the normal name is an alias. */
  9978. #if defined __stub_$ac_func || defined __stub___$ac_func
  9979. choke me
  9980. #endif
  9981. int
  9982. main ()
  9983. {
  9984. return $ac_func ();
  9985. ;
  9986. return 0;
  9987. }
  9988. _ACEOF
  9989. rm -f conftest.$ac_objext conftest$ac_exeext
  9990. if { (ac_try="$ac_link"
  9991. case "(($ac_try" in
  9992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9993. *) ac_try_echo=$ac_try;;
  9994. esac
  9995. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9996. (eval "$ac_link") 2>conftest.er1
  9997. ac_status=$?
  9998. grep -v '^ *+' conftest.er1 >conftest.err
  9999. rm -f conftest.er1
  10000. cat conftest.err >&5
  10001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10002. (exit $ac_status); } && {
  10003. test -z "$ac_c_werror_flag" ||
  10004. test ! -s conftest.err
  10005. } && test -s conftest$ac_exeext &&
  10006. $as_test_x conftest$ac_exeext; then
  10007. eval "$as_ac_var=yes"
  10008. else
  10009. echo "$as_me: failed program was:" >&5
  10010. sed 's/^/| /' conftest.$ac_ext >&5
  10011. eval "$as_ac_var=no"
  10012. fi
  10013. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10014. conftest$ac_exeext conftest.$ac_ext
  10015. fi
  10016. ac_res=`eval echo '${'$as_ac_var'}'`
  10017. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10018. echo "${ECHO_T}$ac_res" >&6; }
  10019. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10020. cat >>confdefs.h <<_ACEOF
  10021. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10022. _ACEOF
  10023. fi
  10024. done
  10025. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10026. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10027. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10028. echo $ECHO_N "(cached) $ECHO_C" >&6
  10029. else
  10030. if test "$cross_compiling" = yes; then
  10031. ac_cv_func_mmap_fixed_mapped=no
  10032. else
  10033. cat >conftest.$ac_ext <<_ACEOF
  10034. /* confdefs.h. */
  10035. _ACEOF
  10036. cat confdefs.h >>conftest.$ac_ext
  10037. cat >>conftest.$ac_ext <<_ACEOF
  10038. /* end confdefs.h. */
  10039. $ac_includes_default
  10040. /* malloc might have been renamed as rpl_malloc. */
  10041. #undef malloc
  10042. /* Thanks to Mike Haertel and Jim Avera for this test.
  10043. Here is a matrix of mmap possibilities:
  10044. mmap private not fixed
  10045. mmap private fixed at somewhere currently unmapped
  10046. mmap private fixed at somewhere already mapped
  10047. mmap shared not fixed
  10048. mmap shared fixed at somewhere currently unmapped
  10049. mmap shared fixed at somewhere already mapped
  10050. For private mappings, we should verify that changes cannot be read()
  10051. back from the file, nor mmap's back from the file at a different
  10052. address. (There have been systems where private was not correctly
  10053. implemented like the infamous i386 svr4.0, and systems where the
  10054. VM page cache was not coherent with the file system buffer cache
  10055. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10056. For shared mappings, we should conversely verify that changes get
  10057. propagated back to all the places they're supposed to be.
  10058. Grep wants private fixed already mapped.
  10059. The main things grep needs to know about mmap are:
  10060. * does it exist and is it safe to write into the mmap'd area
  10061. * how to use it (BSD variants) */
  10062. #include <fcntl.h>
  10063. #include <sys/mman.h>
  10064. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10065. char *malloc ();
  10066. #endif
  10067. /* This mess was copied from the GNU getpagesize.h. */
  10068. #ifndef HAVE_GETPAGESIZE
  10069. /* Assume that all systems that can run configure have sys/param.h. */
  10070. # ifndef HAVE_SYS_PARAM_H
  10071. # define HAVE_SYS_PARAM_H 1
  10072. # endif
  10073. # ifdef _SC_PAGESIZE
  10074. # define getpagesize() sysconf(_SC_PAGESIZE)
  10075. # else /* no _SC_PAGESIZE */
  10076. # ifdef HAVE_SYS_PARAM_H
  10077. # include <sys/param.h>
  10078. # ifdef EXEC_PAGESIZE
  10079. # define getpagesize() EXEC_PAGESIZE
  10080. # else /* no EXEC_PAGESIZE */
  10081. # ifdef NBPG
  10082. # define getpagesize() NBPG * CLSIZE
  10083. # ifndef CLSIZE
  10084. # define CLSIZE 1
  10085. # endif /* no CLSIZE */
  10086. # else /* no NBPG */
  10087. # ifdef NBPC
  10088. # define getpagesize() NBPC
  10089. # else /* no NBPC */
  10090. # ifdef PAGESIZE
  10091. # define getpagesize() PAGESIZE
  10092. # endif /* PAGESIZE */
  10093. # endif /* no NBPC */
  10094. # endif /* no NBPG */
  10095. # endif /* no EXEC_PAGESIZE */
  10096. # else /* no HAVE_SYS_PARAM_H */
  10097. # define getpagesize() 8192 /* punt totally */
  10098. # endif /* no HAVE_SYS_PARAM_H */
  10099. # endif /* no _SC_PAGESIZE */
  10100. #endif /* no HAVE_GETPAGESIZE */
  10101. int
  10102. main ()
  10103. {
  10104. char *data, *data2, *data3;
  10105. int i, pagesize;
  10106. int fd;
  10107. pagesize = getpagesize ();
  10108. /* First, make a file with some known garbage in it. */
  10109. data = (char *) malloc (pagesize);
  10110. if (!data)
  10111. return 1;
  10112. for (i = 0; i < pagesize; ++i)
  10113. *(data + i) = rand ();
  10114. umask (0);
  10115. fd = creat ("conftest.mmap", 0600);
  10116. if (fd < 0)
  10117. return 1;
  10118. if (write (fd, data, pagesize) != pagesize)
  10119. return 1;
  10120. close (fd);
  10121. /* Next, try to mmap the file at a fixed address which already has
  10122. something else allocated at it. If we can, also make sure that
  10123. we see the same garbage. */
  10124. fd = open ("conftest.mmap", O_RDWR);
  10125. if (fd < 0)
  10126. return 1;
  10127. data2 = (char *) malloc (2 * pagesize);
  10128. if (!data2)
  10129. return 1;
  10130. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10131. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10132. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10133. return 1;
  10134. for (i = 0; i < pagesize; ++i)
  10135. if (*(data + i) != *(data2 + i))
  10136. return 1;
  10137. /* Finally, make sure that changes to the mapped area do not
  10138. percolate back to the file as seen by read(). (This is a bug on
  10139. some variants of i386 svr4.0.) */
  10140. for (i = 0; i < pagesize; ++i)
  10141. *(data2 + i) = *(data2 + i) + 1;
  10142. data3 = (char *) malloc (pagesize);
  10143. if (!data3)
  10144. return 1;
  10145. if (read (fd, data3, pagesize) != pagesize)
  10146. return 1;
  10147. for (i = 0; i < pagesize; ++i)
  10148. if (*(data + i) != *(data3 + i))
  10149. return 1;
  10150. close (fd);
  10151. return 0;
  10152. }
  10153. _ACEOF
  10154. rm -f conftest$ac_exeext
  10155. if { (ac_try="$ac_link"
  10156. case "(($ac_try" in
  10157. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10158. *) ac_try_echo=$ac_try;;
  10159. esac
  10160. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10161. (eval "$ac_link") 2>&5
  10162. ac_status=$?
  10163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10164. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10165. { (case "(($ac_try" in
  10166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10167. *) ac_try_echo=$ac_try;;
  10168. esac
  10169. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10170. (eval "$ac_try") 2>&5
  10171. ac_status=$?
  10172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10173. (exit $ac_status); }; }; then
  10174. ac_cv_func_mmap_fixed_mapped=yes
  10175. else
  10176. echo "$as_me: program exited with status $ac_status" >&5
  10177. echo "$as_me: failed program was:" >&5
  10178. sed 's/^/| /' conftest.$ac_ext >&5
  10179. ( exit $ac_status )
  10180. ac_cv_func_mmap_fixed_mapped=no
  10181. fi
  10182. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10183. fi
  10184. fi
  10185. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10186. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10187. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10188. cat >>confdefs.h <<\_ACEOF
  10189. #define HAVE_MMAP 1
  10190. _ACEOF
  10191. fi
  10192. rm -f conftest.mmap
  10193. for ac_header in stdlib.h
  10194. do
  10195. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10196. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10197. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10198. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10199. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10200. echo $ECHO_N "(cached) $ECHO_C" >&6
  10201. fi
  10202. ac_res=`eval echo '${'$as_ac_Header'}'`
  10203. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10204. echo "${ECHO_T}$ac_res" >&6; }
  10205. else
  10206. # Is the header compilable?
  10207. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10208. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10209. cat >conftest.$ac_ext <<_ACEOF
  10210. /* confdefs.h. */
  10211. _ACEOF
  10212. cat confdefs.h >>conftest.$ac_ext
  10213. cat >>conftest.$ac_ext <<_ACEOF
  10214. /* end confdefs.h. */
  10215. $ac_includes_default
  10216. #include <$ac_header>
  10217. _ACEOF
  10218. rm -f conftest.$ac_objext
  10219. if { (ac_try="$ac_compile"
  10220. case "(($ac_try" in
  10221. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10222. *) ac_try_echo=$ac_try;;
  10223. esac
  10224. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10225. (eval "$ac_compile") 2>conftest.er1
  10226. ac_status=$?
  10227. grep -v '^ *+' conftest.er1 >conftest.err
  10228. rm -f conftest.er1
  10229. cat conftest.err >&5
  10230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10231. (exit $ac_status); } && {
  10232. test -z "$ac_c_werror_flag" ||
  10233. test ! -s conftest.err
  10234. } && test -s conftest.$ac_objext; then
  10235. ac_header_compiler=yes
  10236. else
  10237. echo "$as_me: failed program was:" >&5
  10238. sed 's/^/| /' conftest.$ac_ext >&5
  10239. ac_header_compiler=no
  10240. fi
  10241. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10242. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10243. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10244. # Is the header present?
  10245. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10246. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10247. cat >conftest.$ac_ext <<_ACEOF
  10248. /* confdefs.h. */
  10249. _ACEOF
  10250. cat confdefs.h >>conftest.$ac_ext
  10251. cat >>conftest.$ac_ext <<_ACEOF
  10252. /* end confdefs.h. */
  10253. #include <$ac_header>
  10254. _ACEOF
  10255. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10256. case "(($ac_try" in
  10257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10258. *) ac_try_echo=$ac_try;;
  10259. esac
  10260. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10261. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10262. ac_status=$?
  10263. grep -v '^ *+' conftest.er1 >conftest.err
  10264. rm -f conftest.er1
  10265. cat conftest.err >&5
  10266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10267. (exit $ac_status); } >/dev/null && {
  10268. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10269. test ! -s conftest.err
  10270. }; then
  10271. ac_header_preproc=yes
  10272. else
  10273. echo "$as_me: failed program was:" >&5
  10274. sed 's/^/| /' conftest.$ac_ext >&5
  10275. ac_header_preproc=no
  10276. fi
  10277. rm -f conftest.err conftest.$ac_ext
  10278. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10279. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10280. # So? What about this header?
  10281. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10282. yes:no: )
  10283. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10284. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10285. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10286. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10287. ac_header_preproc=yes
  10288. ;;
  10289. no:yes:* )
  10290. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10291. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10292. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10293. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10294. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10295. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10296. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10297. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10298. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10299. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10300. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10301. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10302. ( cat <<\_ASBOX
  10303. ## ----------------------------------- ##
  10304. ## Report this to tujikawa@rednoah.com ##
  10305. ## ----------------------------------- ##
  10306. _ASBOX
  10307. ) | sed "s/^/$as_me: WARNING: /" >&2
  10308. ;;
  10309. esac
  10310. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10311. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10312. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10313. echo $ECHO_N "(cached) $ECHO_C" >&6
  10314. else
  10315. eval "$as_ac_Header=\$ac_header_preproc"
  10316. fi
  10317. ac_res=`eval echo '${'$as_ac_Header'}'`
  10318. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10319. echo "${ECHO_T}$ac_res" >&6; }
  10320. fi
  10321. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10322. cat >>confdefs.h <<_ACEOF
  10323. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10324. _ACEOF
  10325. fi
  10326. done
  10327. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10328. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  10329. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10330. echo $ECHO_N "(cached) $ECHO_C" >&6
  10331. else
  10332. if test "$cross_compiling" = yes; then
  10333. ac_cv_func_realloc_0_nonnull=no
  10334. else
  10335. cat >conftest.$ac_ext <<_ACEOF
  10336. /* confdefs.h. */
  10337. _ACEOF
  10338. cat confdefs.h >>conftest.$ac_ext
  10339. cat >>conftest.$ac_ext <<_ACEOF
  10340. /* end confdefs.h. */
  10341. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10342. # include <stdlib.h>
  10343. #else
  10344. char *realloc ();
  10345. #endif
  10346. int
  10347. main ()
  10348. {
  10349. return ! realloc (0, 0);
  10350. ;
  10351. return 0;
  10352. }
  10353. _ACEOF
  10354. rm -f conftest$ac_exeext
  10355. if { (ac_try="$ac_link"
  10356. case "(($ac_try" in
  10357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10358. *) ac_try_echo=$ac_try;;
  10359. esac
  10360. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10361. (eval "$ac_link") 2>&5
  10362. ac_status=$?
  10363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10364. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10365. { (case "(($ac_try" in
  10366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10367. *) ac_try_echo=$ac_try;;
  10368. esac
  10369. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10370. (eval "$ac_try") 2>&5
  10371. ac_status=$?
  10372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10373. (exit $ac_status); }; }; then
  10374. ac_cv_func_realloc_0_nonnull=yes
  10375. else
  10376. echo "$as_me: program exited with status $ac_status" >&5
  10377. echo "$as_me: failed program was:" >&5
  10378. sed 's/^/| /' conftest.$ac_ext >&5
  10379. ( exit $ac_status )
  10380. ac_cv_func_realloc_0_nonnull=no
  10381. fi
  10382. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10383. fi
  10384. fi
  10385. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10386. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  10387. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10388. cat >>confdefs.h <<\_ACEOF
  10389. #define HAVE_REALLOC 1
  10390. _ACEOF
  10391. else
  10392. cat >>confdefs.h <<\_ACEOF
  10393. #define HAVE_REALLOC 0
  10394. _ACEOF
  10395. case " $LIBOBJS " in
  10396. *" realloc.$ac_objext "* ) ;;
  10397. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  10398. ;;
  10399. esac
  10400. cat >>confdefs.h <<\_ACEOF
  10401. #define realloc rpl_realloc
  10402. _ACEOF
  10403. fi
  10404. for ac_header in sys/select.h sys/socket.h
  10405. do
  10406. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10407. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10408. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10409. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10410. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10411. echo $ECHO_N "(cached) $ECHO_C" >&6
  10412. fi
  10413. ac_res=`eval echo '${'$as_ac_Header'}'`
  10414. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10415. echo "${ECHO_T}$ac_res" >&6; }
  10416. else
  10417. # Is the header compilable?
  10418. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10419. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10420. cat >conftest.$ac_ext <<_ACEOF
  10421. /* confdefs.h. */
  10422. _ACEOF
  10423. cat confdefs.h >>conftest.$ac_ext
  10424. cat >>conftest.$ac_ext <<_ACEOF
  10425. /* end confdefs.h. */
  10426. $ac_includes_default
  10427. #include <$ac_header>
  10428. _ACEOF
  10429. rm -f conftest.$ac_objext
  10430. if { (ac_try="$ac_compile"
  10431. case "(($ac_try" in
  10432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10433. *) ac_try_echo=$ac_try;;
  10434. esac
  10435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10436. (eval "$ac_compile") 2>conftest.er1
  10437. ac_status=$?
  10438. grep -v '^ *+' conftest.er1 >conftest.err
  10439. rm -f conftest.er1
  10440. cat conftest.err >&5
  10441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10442. (exit $ac_status); } && {
  10443. test -z "$ac_c_werror_flag" ||
  10444. test ! -s conftest.err
  10445. } && test -s conftest.$ac_objext; then
  10446. ac_header_compiler=yes
  10447. else
  10448. echo "$as_me: failed program was:" >&5
  10449. sed 's/^/| /' conftest.$ac_ext >&5
  10450. ac_header_compiler=no
  10451. fi
  10452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10453. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10454. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10455. # Is the header present?
  10456. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10457. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10458. cat >conftest.$ac_ext <<_ACEOF
  10459. /* confdefs.h. */
  10460. _ACEOF
  10461. cat confdefs.h >>conftest.$ac_ext
  10462. cat >>conftest.$ac_ext <<_ACEOF
  10463. /* end confdefs.h. */
  10464. #include <$ac_header>
  10465. _ACEOF
  10466. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10467. case "(($ac_try" in
  10468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10469. *) ac_try_echo=$ac_try;;
  10470. esac
  10471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10472. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10473. ac_status=$?
  10474. grep -v '^ *+' conftest.er1 >conftest.err
  10475. rm -f conftest.er1
  10476. cat conftest.err >&5
  10477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10478. (exit $ac_status); } >/dev/null && {
  10479. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10480. test ! -s conftest.err
  10481. }; then
  10482. ac_header_preproc=yes
  10483. else
  10484. echo "$as_me: failed program was:" >&5
  10485. sed 's/^/| /' conftest.$ac_ext >&5
  10486. ac_header_preproc=no
  10487. fi
  10488. rm -f conftest.err conftest.$ac_ext
  10489. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10490. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10491. # So? What about this header?
  10492. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10493. yes:no: )
  10494. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10495. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10496. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10497. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10498. ac_header_preproc=yes
  10499. ;;
  10500. no:yes:* )
  10501. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10502. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10503. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10504. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10505. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10506. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10507. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10508. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10509. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10510. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10511. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10512. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10513. ( cat <<\_ASBOX
  10514. ## ----------------------------------- ##
  10515. ## Report this to tujikawa@rednoah.com ##
  10516. ## ----------------------------------- ##
  10517. _ASBOX
  10518. ) | sed "s/^/$as_me: WARNING: /" >&2
  10519. ;;
  10520. esac
  10521. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10522. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10523. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10524. echo $ECHO_N "(cached) $ECHO_C" >&6
  10525. else
  10526. eval "$as_ac_Header=\$ac_header_preproc"
  10527. fi
  10528. ac_res=`eval echo '${'$as_ac_Header'}'`
  10529. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10530. echo "${ECHO_T}$ac_res" >&6; }
  10531. fi
  10532. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10533. cat >>confdefs.h <<_ACEOF
  10534. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10535. _ACEOF
  10536. fi
  10537. done
  10538. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10539. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  10540. if test "${ac_cv_func_select_args+set}" = set; then
  10541. echo $ECHO_N "(cached) $ECHO_C" >&6
  10542. else
  10543. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10544. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  10545. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10546. cat >conftest.$ac_ext <<_ACEOF
  10547. /* confdefs.h. */
  10548. _ACEOF
  10549. cat confdefs.h >>conftest.$ac_ext
  10550. cat >>conftest.$ac_ext <<_ACEOF
  10551. /* end confdefs.h. */
  10552. $ac_includes_default
  10553. #ifdef HAVE_SYS_SELECT_H
  10554. # include <sys/select.h>
  10555. #endif
  10556. #ifdef HAVE_SYS_SOCKET_H
  10557. # include <sys/socket.h>
  10558. #endif
  10559. int
  10560. main ()
  10561. {
  10562. extern int select ($ac_arg1,
  10563. $ac_arg234, $ac_arg234, $ac_arg234,
  10564. $ac_arg5);
  10565. ;
  10566. return 0;
  10567. }
  10568. _ACEOF
  10569. rm -f conftest.$ac_objext
  10570. if { (ac_try="$ac_compile"
  10571. case "(($ac_try" in
  10572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10573. *) ac_try_echo=$ac_try;;
  10574. esac
  10575. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10576. (eval "$ac_compile") 2>conftest.er1
  10577. ac_status=$?
  10578. grep -v '^ *+' conftest.er1 >conftest.err
  10579. rm -f conftest.er1
  10580. cat conftest.err >&5
  10581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10582. (exit $ac_status); } && {
  10583. test -z "$ac_c_werror_flag" ||
  10584. test ! -s conftest.err
  10585. } && test -s conftest.$ac_objext; then
  10586. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10587. else
  10588. echo "$as_me: failed program was:" >&5
  10589. sed 's/^/| /' conftest.$ac_ext >&5
  10590. fi
  10591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10592. done
  10593. done
  10594. done
  10595. # Provide a safe default value.
  10596. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10597. fi
  10598. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10599. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  10600. ac_save_IFS=$IFS; IFS=','
  10601. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10602. IFS=$ac_save_IFS
  10603. shift
  10604. cat >>confdefs.h <<_ACEOF
  10605. #define SELECT_TYPE_ARG1 $1
  10606. _ACEOF
  10607. cat >>confdefs.h <<_ACEOF
  10608. #define SELECT_TYPE_ARG234 ($2)
  10609. _ACEOF
  10610. cat >>confdefs.h <<_ACEOF
  10611. #define SELECT_TYPE_ARG5 ($3)
  10612. _ACEOF
  10613. rm -f conftest*
  10614. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  10615. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  10616. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  10617. echo $ECHO_N "(cached) $ECHO_C" >&6
  10618. else
  10619. rm -f conftest.sym conftest.file
  10620. echo >conftest.file
  10621. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  10622. if test "$cross_compiling" = yes; then
  10623. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10624. else
  10625. cat >conftest.$ac_ext <<_ACEOF
  10626. /* confdefs.h. */
  10627. _ACEOF
  10628. cat confdefs.h >>conftest.$ac_ext
  10629. cat >>conftest.$ac_ext <<_ACEOF
  10630. /* end confdefs.h. */
  10631. $ac_includes_default
  10632. int
  10633. main ()
  10634. {
  10635. struct stat sbuf;
  10636. /* Linux will dereference the symlink and fail.
  10637. That is better in the sense that it means we will not
  10638. have to compile and use the lstat wrapper. */
  10639. return lstat ("conftest.sym/", &sbuf) == 0;
  10640. ;
  10641. return 0;
  10642. }
  10643. _ACEOF
  10644. rm -f conftest$ac_exeext
  10645. if { (ac_try="$ac_link"
  10646. case "(($ac_try" in
  10647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10648. *) ac_try_echo=$ac_try;;
  10649. esac
  10650. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10651. (eval "$ac_link") 2>&5
  10652. ac_status=$?
  10653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10654. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10655. { (case "(($ac_try" in
  10656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10657. *) ac_try_echo=$ac_try;;
  10658. esac
  10659. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10660. (eval "$ac_try") 2>&5
  10661. ac_status=$?
  10662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10663. (exit $ac_status); }; }; then
  10664. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  10665. else
  10666. echo "$as_me: program exited with status $ac_status" >&5
  10667. echo "$as_me: failed program was:" >&5
  10668. sed 's/^/| /' conftest.$ac_ext >&5
  10669. ( exit $ac_status )
  10670. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10671. fi
  10672. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10673. fi
  10674. else
  10675. # If the `ln -s' command failed, then we probably don't even
  10676. # have an lstat function.
  10677. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10678. fi
  10679. rm -f conftest.sym conftest.file
  10680. fi
  10681. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  10682. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  10683. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  10684. cat >>confdefs.h <<_ACEOF
  10685. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  10686. _ACEOF
  10687. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  10688. case " $LIBOBJS " in
  10689. *" lstat.$ac_objext "* ) ;;
  10690. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  10691. ;;
  10692. esac
  10693. fi
  10694. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10695. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  10696. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10697. echo $ECHO_N "(cached) $ECHO_C" >&6
  10698. else
  10699. if test "$cross_compiling" = yes; then
  10700. ac_cv_func_stat_empty_string_bug=yes
  10701. else
  10702. cat >conftest.$ac_ext <<_ACEOF
  10703. /* confdefs.h. */
  10704. _ACEOF
  10705. cat confdefs.h >>conftest.$ac_ext
  10706. cat >>conftest.$ac_ext <<_ACEOF
  10707. /* end confdefs.h. */
  10708. $ac_includes_default
  10709. int
  10710. main ()
  10711. {
  10712. struct stat sbuf;
  10713. return stat ("", &sbuf) == 0;
  10714. ;
  10715. return 0;
  10716. }
  10717. _ACEOF
  10718. rm -f conftest$ac_exeext
  10719. if { (ac_try="$ac_link"
  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_link") 2>&5
  10726. ac_status=$?
  10727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10728. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10729. { (case "(($ac_try" in
  10730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10731. *) ac_try_echo=$ac_try;;
  10732. esac
  10733. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10734. (eval "$ac_try") 2>&5
  10735. ac_status=$?
  10736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10737. (exit $ac_status); }; }; then
  10738. ac_cv_func_stat_empty_string_bug=no
  10739. else
  10740. echo "$as_me: program exited with status $ac_status" >&5
  10741. echo "$as_me: failed program was:" >&5
  10742. sed 's/^/| /' conftest.$ac_ext >&5
  10743. ( exit $ac_status )
  10744. ac_cv_func_stat_empty_string_bug=yes
  10745. fi
  10746. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10747. fi
  10748. fi
  10749. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10750. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  10751. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10752. case " $LIBOBJS " in
  10753. *" stat.$ac_objext "* ) ;;
  10754. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  10755. ;;
  10756. esac
  10757. cat >>confdefs.h <<_ACEOF
  10758. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10759. _ACEOF
  10760. fi
  10761. for ac_func in vprintf
  10762. do
  10763. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10764. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10765. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10766. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10767. echo $ECHO_N "(cached) $ECHO_C" >&6
  10768. else
  10769. cat >conftest.$ac_ext <<_ACEOF
  10770. /* confdefs.h. */
  10771. _ACEOF
  10772. cat confdefs.h >>conftest.$ac_ext
  10773. cat >>conftest.$ac_ext <<_ACEOF
  10774. /* end confdefs.h. */
  10775. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10776. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10777. #define $ac_func innocuous_$ac_func
  10778. /* System header to define __stub macros and hopefully few prototypes,
  10779. which can conflict with char $ac_func (); below.
  10780. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10781. <limits.h> exists even on freestanding compilers. */
  10782. #ifdef __STDC__
  10783. # include <limits.h>
  10784. #else
  10785. # include <assert.h>
  10786. #endif
  10787. #undef $ac_func
  10788. /* Override any GCC internal prototype to avoid an error.
  10789. Use char because int might match the return type of a GCC
  10790. builtin and then its argument prototype would still apply. */
  10791. #ifdef __cplusplus
  10792. extern "C"
  10793. #endif
  10794. char $ac_func ();
  10795. /* The GNU C library defines this for functions which it implements
  10796. to always fail with ENOSYS. Some functions are actually named
  10797. something starting with __ and the normal name is an alias. */
  10798. #if defined __stub_$ac_func || defined __stub___$ac_func
  10799. choke me
  10800. #endif
  10801. int
  10802. main ()
  10803. {
  10804. return $ac_func ();
  10805. ;
  10806. return 0;
  10807. }
  10808. _ACEOF
  10809. rm -f conftest.$ac_objext conftest$ac_exeext
  10810. if { (ac_try="$ac_link"
  10811. case "(($ac_try" in
  10812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10813. *) ac_try_echo=$ac_try;;
  10814. esac
  10815. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10816. (eval "$ac_link") 2>conftest.er1
  10817. ac_status=$?
  10818. grep -v '^ *+' conftest.er1 >conftest.err
  10819. rm -f conftest.er1
  10820. cat conftest.err >&5
  10821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10822. (exit $ac_status); } && {
  10823. test -z "$ac_c_werror_flag" ||
  10824. test ! -s conftest.err
  10825. } && test -s conftest$ac_exeext &&
  10826. $as_test_x conftest$ac_exeext; then
  10827. eval "$as_ac_var=yes"
  10828. else
  10829. echo "$as_me: failed program was:" >&5
  10830. sed 's/^/| /' conftest.$ac_ext >&5
  10831. eval "$as_ac_var=no"
  10832. fi
  10833. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10834. conftest$ac_exeext conftest.$ac_ext
  10835. fi
  10836. ac_res=`eval echo '${'$as_ac_var'}'`
  10837. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10838. echo "${ECHO_T}$ac_res" >&6; }
  10839. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10840. cat >>confdefs.h <<_ACEOF
  10841. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10842. _ACEOF
  10843. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  10844. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  10845. if test "${ac_cv_func__doprnt+set}" = set; then
  10846. echo $ECHO_N "(cached) $ECHO_C" >&6
  10847. else
  10848. cat >conftest.$ac_ext <<_ACEOF
  10849. /* confdefs.h. */
  10850. _ACEOF
  10851. cat confdefs.h >>conftest.$ac_ext
  10852. cat >>conftest.$ac_ext <<_ACEOF
  10853. /* end confdefs.h. */
  10854. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  10855. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10856. #define _doprnt innocuous__doprnt
  10857. /* System header to define __stub macros and hopefully few prototypes,
  10858. which can conflict with char _doprnt (); below.
  10859. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10860. <limits.h> exists even on freestanding compilers. */
  10861. #ifdef __STDC__
  10862. # include <limits.h>
  10863. #else
  10864. # include <assert.h>
  10865. #endif
  10866. #undef _doprnt
  10867. /* Override any GCC internal prototype to avoid an error.
  10868. Use char because int might match the return type of a GCC
  10869. builtin and then its argument prototype would still apply. */
  10870. #ifdef __cplusplus
  10871. extern "C"
  10872. #endif
  10873. char _doprnt ();
  10874. /* The GNU C library defines this for functions which it implements
  10875. to always fail with ENOSYS. Some functions are actually named
  10876. something starting with __ and the normal name is an alias. */
  10877. #if defined __stub__doprnt || defined __stub____doprnt
  10878. choke me
  10879. #endif
  10880. int
  10881. main ()
  10882. {
  10883. return _doprnt ();
  10884. ;
  10885. return 0;
  10886. }
  10887. _ACEOF
  10888. rm -f conftest.$ac_objext conftest$ac_exeext
  10889. if { (ac_try="$ac_link"
  10890. case "(($ac_try" in
  10891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10892. *) ac_try_echo=$ac_try;;
  10893. esac
  10894. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10895. (eval "$ac_link") 2>conftest.er1
  10896. ac_status=$?
  10897. grep -v '^ *+' conftest.er1 >conftest.err
  10898. rm -f conftest.er1
  10899. cat conftest.err >&5
  10900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10901. (exit $ac_status); } && {
  10902. test -z "$ac_c_werror_flag" ||
  10903. test ! -s conftest.err
  10904. } && test -s conftest$ac_exeext &&
  10905. $as_test_x conftest$ac_exeext; then
  10906. ac_cv_func__doprnt=yes
  10907. else
  10908. echo "$as_me: failed program was:" >&5
  10909. sed 's/^/| /' conftest.$ac_ext >&5
  10910. ac_cv_func__doprnt=no
  10911. fi
  10912. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10913. conftest$ac_exeext conftest.$ac_ext
  10914. fi
  10915. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  10916. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  10917. if test $ac_cv_func__doprnt = yes; then
  10918. cat >>confdefs.h <<\_ACEOF
  10919. #define HAVE_DOPRNT 1
  10920. _ACEOF
  10921. fi
  10922. fi
  10923. done
  10924. 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
  10925. do
  10926. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10927. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10928. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10929. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10930. echo $ECHO_N "(cached) $ECHO_C" >&6
  10931. else
  10932. cat >conftest.$ac_ext <<_ACEOF
  10933. /* confdefs.h. */
  10934. _ACEOF
  10935. cat confdefs.h >>conftest.$ac_ext
  10936. cat >>conftest.$ac_ext <<_ACEOF
  10937. /* end confdefs.h. */
  10938. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10939. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10940. #define $ac_func innocuous_$ac_func
  10941. /* System header to define __stub macros and hopefully few prototypes,
  10942. which can conflict with char $ac_func (); below.
  10943. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10944. <limits.h> exists even on freestanding compilers. */
  10945. #ifdef __STDC__
  10946. # include <limits.h>
  10947. #else
  10948. # include <assert.h>
  10949. #endif
  10950. #undef $ac_func
  10951. /* Override any GCC internal prototype to avoid an error.
  10952. Use char because int might match the return type of a GCC
  10953. builtin and then its argument prototype would still apply. */
  10954. #ifdef __cplusplus
  10955. extern "C"
  10956. #endif
  10957. char $ac_func ();
  10958. /* The GNU C library defines this for functions which it implements
  10959. to always fail with ENOSYS. Some functions are actually named
  10960. something starting with __ and the normal name is an alias. */
  10961. #if defined __stub_$ac_func || defined __stub___$ac_func
  10962. choke me
  10963. #endif
  10964. int
  10965. main ()
  10966. {
  10967. return $ac_func ();
  10968. ;
  10969. return 0;
  10970. }
  10971. _ACEOF
  10972. rm -f conftest.$ac_objext conftest$ac_exeext
  10973. if { (ac_try="$ac_link"
  10974. case "(($ac_try" in
  10975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10976. *) ac_try_echo=$ac_try;;
  10977. esac
  10978. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10979. (eval "$ac_link") 2>conftest.er1
  10980. ac_status=$?
  10981. grep -v '^ *+' conftest.er1 >conftest.err
  10982. rm -f conftest.er1
  10983. cat conftest.err >&5
  10984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10985. (exit $ac_status); } && {
  10986. test -z "$ac_c_werror_flag" ||
  10987. test ! -s conftest.err
  10988. } && test -s conftest$ac_exeext &&
  10989. $as_test_x conftest$ac_exeext; then
  10990. eval "$as_ac_var=yes"
  10991. else
  10992. echo "$as_me: failed program was:" >&5
  10993. sed 's/^/| /' conftest.$ac_ext >&5
  10994. eval "$as_ac_var=no"
  10995. fi
  10996. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10997. conftest$ac_exeext conftest.$ac_ext
  10998. fi
  10999. ac_res=`eval echo '${'$as_ac_var'}'`
  11000. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11001. echo "${ECHO_T}$ac_res" >&6; }
  11002. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11003. cat >>confdefs.h <<_ACEOF
  11004. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11005. _ACEOF
  11006. fi
  11007. done
  11008. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile doc/Makefile"
  11009. cat >confcache <<\_ACEOF
  11010. # This file is a shell script that caches the results of configure
  11011. # tests run on this system so they can be shared between configure
  11012. # scripts and configure runs, see configure's option --config-cache.
  11013. # It is not useful on other systems. If it contains results you don't
  11014. # want to keep, you may remove or edit it.
  11015. #
  11016. # config.status only pays attention to the cache file if you give it
  11017. # the --recheck option to rerun configure.
  11018. #
  11019. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11020. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11021. # following values.
  11022. _ACEOF
  11023. # The following way of writing the cache mishandles newlines in values,
  11024. # but we know of no workaround that is simple, portable, and efficient.
  11025. # So, we kill variables containing newlines.
  11026. # Ultrix sh set writes to stderr and can't be redirected directly,
  11027. # and sets the high bit in the cache file unless we assign to the vars.
  11028. (
  11029. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11030. eval ac_val=\$$ac_var
  11031. case $ac_val in #(
  11032. *${as_nl}*)
  11033. case $ac_var in #(
  11034. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11035. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11036. esac
  11037. case $ac_var in #(
  11038. _ | IFS | as_nl) ;; #(
  11039. *) $as_unset $ac_var ;;
  11040. esac ;;
  11041. esac
  11042. done
  11043. (set) 2>&1 |
  11044. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11045. *${as_nl}ac_space=\ *)
  11046. # `set' does not quote correctly, so add quotes (double-quote
  11047. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11048. sed -n \
  11049. "s/'/'\\\\''/g;
  11050. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11051. ;; #(
  11052. *)
  11053. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11054. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11055. ;;
  11056. esac |
  11057. sort
  11058. ) |
  11059. sed '
  11060. /^ac_cv_env_/b end
  11061. t clear
  11062. :clear
  11063. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11064. t end
  11065. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11066. :end' >>confcache
  11067. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11068. if test -w "$cache_file"; then
  11069. test "x$cache_file" != "x/dev/null" &&
  11070. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11071. echo "$as_me: updating cache $cache_file" >&6;}
  11072. cat confcache >$cache_file
  11073. else
  11074. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11075. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11076. fi
  11077. fi
  11078. rm -f confcache
  11079. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11080. # Let make expand exec_prefix.
  11081. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11082. DEFS=-DHAVE_CONFIG_H
  11083. ac_libobjs=
  11084. ac_ltlibobjs=
  11085. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11086. # 1. Remove the extension, and $U if already installed.
  11087. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11088. ac_i=`echo "$ac_i" | sed "$ac_script"`
  11089. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11090. # will be set to the directory where LIBOBJS objects are built.
  11091. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11092. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  11093. done
  11094. LIBOBJS=$ac_libobjs
  11095. LTLIBOBJS=$ac_ltlibobjs
  11096. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11097. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  11098. Usually this means the macro was only invoked conditionally." >&5
  11099. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  11100. Usually this means the macro was only invoked conditionally." >&2;}
  11101. { (exit 1); exit 1; }; }
  11102. fi
  11103. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  11104. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  11105. Usually this means the macro was only invoked conditionally." >&5
  11106. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  11107. Usually this means the macro was only invoked conditionally." >&2;}
  11108. { (exit 1); exit 1; }; }
  11109. fi
  11110. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11111. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  11112. Usually this means the macro was only invoked conditionally." >&5
  11113. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  11114. Usually this means the macro was only invoked conditionally." >&2;}
  11115. { (exit 1); exit 1; }; }
  11116. fi
  11117. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  11118. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11119. Usually this means the macro was only invoked conditionally." >&5
  11120. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11121. Usually this means the macro was only invoked conditionally." >&2;}
  11122. { (exit 1); exit 1; }; }
  11123. fi
  11124. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  11125. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11126. Usually this means the macro was only invoked conditionally." >&5
  11127. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11128. Usually this means the macro was only invoked conditionally." >&2;}
  11129. { (exit 1); exit 1; }; }
  11130. fi
  11131. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  11132. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  11133. Usually this means the macro was only invoked conditionally." >&5
  11134. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  11135. Usually this means the macro was only invoked conditionally." >&2;}
  11136. { (exit 1); exit 1; }; }
  11137. fi
  11138. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  11139. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  11140. Usually this means the macro was only invoked conditionally." >&5
  11141. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  11142. Usually this means the macro was only invoked conditionally." >&2;}
  11143. { (exit 1); exit 1; }; }
  11144. fi
  11145. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  11146. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11147. Usually this means the macro was only invoked conditionally." >&5
  11148. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11149. Usually this means the macro was only invoked conditionally." >&2;}
  11150. { (exit 1); exit 1; }; }
  11151. fi
  11152. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  11153. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11154. Usually this means the macro was only invoked conditionally." >&5
  11155. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11156. Usually this means the macro was only invoked conditionally." >&2;}
  11157. { (exit 1); exit 1; }; }
  11158. fi
  11159. : ${CONFIG_STATUS=./config.status}
  11160. ac_clean_files_save=$ac_clean_files
  11161. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11162. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11163. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11164. cat >$CONFIG_STATUS <<_ACEOF
  11165. #! $SHELL
  11166. # Generated by $as_me.
  11167. # Run this file to recreate the current configuration.
  11168. # Compiler output produced by configure, useful for debugging
  11169. # configure, is in config.log if it exists.
  11170. debug=false
  11171. ac_cs_recheck=false
  11172. ac_cs_silent=false
  11173. SHELL=\${CONFIG_SHELL-$SHELL}
  11174. _ACEOF
  11175. cat >>$CONFIG_STATUS <<\_ACEOF
  11176. ## --------------------- ##
  11177. ## M4sh Initialization. ##
  11178. ## --------------------- ##
  11179. # Be more Bourne compatible
  11180. DUALCASE=1; export DUALCASE # for MKS sh
  11181. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11182. emulate sh
  11183. NULLCMD=:
  11184. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11185. # is contrary to our usage. Disable this feature.
  11186. alias -g '${1+"$@"}'='"$@"'
  11187. setopt NO_GLOB_SUBST
  11188. else
  11189. case `(set -o) 2>/dev/null` in
  11190. *posix*) set -o posix ;;
  11191. esac
  11192. fi
  11193. # PATH needs CR
  11194. # Avoid depending upon Character Ranges.
  11195. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11196. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11197. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11198. as_cr_digits='0123456789'
  11199. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11200. # The user is always right.
  11201. if test "${PATH_SEPARATOR+set}" != set; then
  11202. echo "#! /bin/sh" >conf$$.sh
  11203. echo "exit 0" >>conf$$.sh
  11204. chmod +x conf$$.sh
  11205. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11206. PATH_SEPARATOR=';'
  11207. else
  11208. PATH_SEPARATOR=:
  11209. fi
  11210. rm -f conf$$.sh
  11211. fi
  11212. # Support unset when possible.
  11213. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11214. as_unset=unset
  11215. else
  11216. as_unset=false
  11217. fi
  11218. # IFS
  11219. # We need space, tab and new line, in precisely that order. Quoting is
  11220. # there to prevent editors from complaining about space-tab.
  11221. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11222. # splitting by setting IFS to empty value.)
  11223. as_nl='
  11224. '
  11225. IFS=" "" $as_nl"
  11226. # Find who we are. Look in the path if we contain no directory separator.
  11227. case $0 in
  11228. *[\\/]* ) as_myself=$0 ;;
  11229. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11230. for as_dir in $PATH
  11231. do
  11232. IFS=$as_save_IFS
  11233. test -z "$as_dir" && as_dir=.
  11234. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11235. done
  11236. IFS=$as_save_IFS
  11237. ;;
  11238. esac
  11239. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11240. # in which case we are not to be found in the path.
  11241. if test "x$as_myself" = x; then
  11242. as_myself=$0
  11243. fi
  11244. if test ! -f "$as_myself"; then
  11245. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11246. { (exit 1); exit 1; }
  11247. fi
  11248. # Work around bugs in pre-3.0 UWIN ksh.
  11249. for as_var in ENV MAIL MAILPATH
  11250. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  11251. done
  11252. PS1='$ '
  11253. PS2='> '
  11254. PS4='+ '
  11255. # NLS nuisances.
  11256. for as_var in \
  11257. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11258. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11259. LC_TELEPHONE LC_TIME
  11260. do
  11261. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11262. eval $as_var=C; export $as_var
  11263. else
  11264. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  11265. fi
  11266. done
  11267. # Required to use basename.
  11268. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11269. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11270. as_expr=expr
  11271. else
  11272. as_expr=false
  11273. fi
  11274. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11275. as_basename=basename
  11276. else
  11277. as_basename=false
  11278. fi
  11279. # Name of the executable.
  11280. as_me=`$as_basename -- "$0" ||
  11281. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11282. X"$0" : 'X\(//\)$' \| \
  11283. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11284. echo X/"$0" |
  11285. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11286. s//\1/
  11287. q
  11288. }
  11289. /^X\/\(\/\/\)$/{
  11290. s//\1/
  11291. q
  11292. }
  11293. /^X\/\(\/\).*/{
  11294. s//\1/
  11295. q
  11296. }
  11297. s/.*/./; q'`
  11298. # CDPATH.
  11299. $as_unset CDPATH
  11300. as_lineno_1=$LINENO
  11301. as_lineno_2=$LINENO
  11302. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11303. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  11304. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11305. # uniformly replaced by the line number. The first 'sed' inserts a
  11306. # line-number line after each line using $LINENO; the second 'sed'
  11307. # does the real work. The second script uses 'N' to pair each
  11308. # line-number line with the line containing $LINENO, and appends
  11309. # trailing '-' during substitution so that $LINENO is not a special
  11310. # case at line end.
  11311. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11312. # scripts with optimization help from Paolo Bonzini. Blame Lee
  11313. # E. McMahon (1931-1989) for sed's syntax. :-)
  11314. sed -n '
  11315. p
  11316. /[$]LINENO/=
  11317. ' <$as_myself |
  11318. sed '
  11319. s/[$]LINENO.*/&-/
  11320. t lineno
  11321. b
  11322. :lineno
  11323. N
  11324. :loop
  11325. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  11326. t loop
  11327. s/-\n.*//
  11328. ' >$as_me.lineno &&
  11329. chmod +x "$as_me.lineno" ||
  11330. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  11331. { (exit 1); exit 1; }; }
  11332. # Don't try to exec as it changes $[0], causing all sort of problems
  11333. # (the dirname of $[0] is not the place where we might find the
  11334. # original and so on. Autoconf is especially sensitive to this).
  11335. . "./$as_me.lineno"
  11336. # Exit status is that of the last command.
  11337. exit
  11338. }
  11339. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11340. as_dirname=dirname
  11341. else
  11342. as_dirname=false
  11343. fi
  11344. ECHO_C= ECHO_N= ECHO_T=
  11345. case `echo -n x` in
  11346. -n*)
  11347. case `echo 'x\c'` in
  11348. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11349. *) ECHO_C='\c';;
  11350. esac;;
  11351. *)
  11352. ECHO_N='-n';;
  11353. esac
  11354. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11355. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11356. as_expr=expr
  11357. else
  11358. as_expr=false
  11359. fi
  11360. rm -f conf$$ conf$$.exe conf$$.file
  11361. if test -d conf$$.dir; then
  11362. rm -f conf$$.dir/conf$$.file
  11363. else
  11364. rm -f conf$$.dir
  11365. mkdir conf$$.dir
  11366. fi
  11367. echo >conf$$.file
  11368. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11369. as_ln_s='ln -s'
  11370. # ... but there are two gotchas:
  11371. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11372. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11373. # In both cases, we have to default to `cp -p'.
  11374. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11375. as_ln_s='cp -p'
  11376. elif ln conf$$.file conf$$ 2>/dev/null; then
  11377. as_ln_s=ln
  11378. else
  11379. as_ln_s='cp -p'
  11380. fi
  11381. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11382. rmdir conf$$.dir 2>/dev/null
  11383. if mkdir -p . 2>/dev/null; then
  11384. as_mkdir_p=:
  11385. else
  11386. test -d ./-p && rmdir ./-p
  11387. as_mkdir_p=false
  11388. fi
  11389. if test -x / >/dev/null 2>&1; then
  11390. as_test_x='test -x'
  11391. else
  11392. if ls -dL / >/dev/null 2>&1; then
  11393. as_ls_L_option=L
  11394. else
  11395. as_ls_L_option=
  11396. fi
  11397. as_test_x='
  11398. eval sh -c '\''
  11399. if test -d "$1"; then
  11400. test -d "$1/.";
  11401. else
  11402. case $1 in
  11403. -*)set "./$1";;
  11404. esac;
  11405. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  11406. ???[sx]*):;;*)false;;esac;fi
  11407. '\'' sh
  11408. '
  11409. fi
  11410. as_executable_p=$as_test_x
  11411. # Sed expression to map a string onto a valid CPP name.
  11412. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11413. # Sed expression to map a string onto a valid variable name.
  11414. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11415. exec 6>&1
  11416. # Save the log message, to keep $[0] and so on meaningful, and to
  11417. # report actual input values of CONFIG_FILES etc. instead of their
  11418. # values after options handling.
  11419. ac_log="
  11420. This file was extended by aria2c $as_me 0.9.0, which was
  11421. generated by GNU Autoconf 2.61. Invocation command line was
  11422. CONFIG_FILES = $CONFIG_FILES
  11423. CONFIG_HEADERS = $CONFIG_HEADERS
  11424. CONFIG_LINKS = $CONFIG_LINKS
  11425. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11426. $ $0 $@
  11427. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11428. "
  11429. _ACEOF
  11430. cat >>$CONFIG_STATUS <<_ACEOF
  11431. # Files that config.status was made for.
  11432. config_files="$ac_config_files"
  11433. config_headers="$ac_config_headers"
  11434. config_commands="$ac_config_commands"
  11435. _ACEOF
  11436. cat >>$CONFIG_STATUS <<\_ACEOF
  11437. ac_cs_usage="\
  11438. \`$as_me' instantiates files from templates according to the
  11439. current configuration.
  11440. Usage: $0 [OPTIONS] [FILE]...
  11441. -h, --help print this help, then exit
  11442. -V, --version print version number and configuration settings, then exit
  11443. -q, --quiet do not print progress messages
  11444. -d, --debug don't remove temporary files
  11445. --recheck update $as_me by reconfiguring in the same conditions
  11446. --file=FILE[:TEMPLATE]
  11447. instantiate the configuration file FILE
  11448. --header=FILE[:TEMPLATE]
  11449. instantiate the configuration header FILE
  11450. Configuration files:
  11451. $config_files
  11452. Configuration headers:
  11453. $config_headers
  11454. Configuration commands:
  11455. $config_commands
  11456. Report bugs to <bug-autoconf@gnu.org>."
  11457. _ACEOF
  11458. cat >>$CONFIG_STATUS <<_ACEOF
  11459. ac_cs_version="\\
  11460. aria2c config.status 0.9.0
  11461. configured by $0, generated by GNU Autoconf 2.61,
  11462. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11463. Copyright (C) 2006 Free Software Foundation, Inc.
  11464. This config.status script is free software; the Free Software Foundation
  11465. gives unlimited permission to copy, distribute and modify it."
  11466. ac_pwd='$ac_pwd'
  11467. srcdir='$srcdir'
  11468. INSTALL='$INSTALL'
  11469. _ACEOF
  11470. cat >>$CONFIG_STATUS <<\_ACEOF
  11471. # If no file are specified by the user, then we need to provide default
  11472. # value. By we need to know if files were specified by the user.
  11473. ac_need_defaults=:
  11474. while test $# != 0
  11475. do
  11476. case $1 in
  11477. --*=*)
  11478. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11479. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11480. ac_shift=:
  11481. ;;
  11482. *)
  11483. ac_option=$1
  11484. ac_optarg=$2
  11485. ac_shift=shift
  11486. ;;
  11487. esac
  11488. case $ac_option in
  11489. # Handling of the options.
  11490. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11491. ac_cs_recheck=: ;;
  11492. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11493. echo "$ac_cs_version"; exit ;;
  11494. --debug | --debu | --deb | --de | --d | -d )
  11495. debug=: ;;
  11496. --file | --fil | --fi | --f )
  11497. $ac_shift
  11498. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11499. ac_need_defaults=false;;
  11500. --header | --heade | --head | --hea )
  11501. $ac_shift
  11502. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11503. ac_need_defaults=false;;
  11504. --he | --h)
  11505. # Conflict between --help and --header
  11506. { echo "$as_me: error: ambiguous option: $1
  11507. Try \`$0 --help' for more information." >&2
  11508. { (exit 1); exit 1; }; };;
  11509. --help | --hel | -h )
  11510. echo "$ac_cs_usage"; exit ;;
  11511. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11512. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11513. ac_cs_silent=: ;;
  11514. # This is an error.
  11515. -*) { echo "$as_me: error: unrecognized option: $1
  11516. Try \`$0 --help' for more information." >&2
  11517. { (exit 1); exit 1; }; } ;;
  11518. *) ac_config_targets="$ac_config_targets $1"
  11519. ac_need_defaults=false ;;
  11520. esac
  11521. shift
  11522. done
  11523. ac_configure_extra_args=
  11524. if $ac_cs_silent; then
  11525. exec 6>/dev/null
  11526. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11527. fi
  11528. _ACEOF
  11529. cat >>$CONFIG_STATUS <<_ACEOF
  11530. if \$ac_cs_recheck; then
  11531. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11532. CONFIG_SHELL=$SHELL
  11533. export CONFIG_SHELL
  11534. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11535. fi
  11536. _ACEOF
  11537. cat >>$CONFIG_STATUS <<\_ACEOF
  11538. exec 5>>config.log
  11539. {
  11540. echo
  11541. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11542. ## Running $as_me. ##
  11543. _ASBOX
  11544. echo "$ac_log"
  11545. } >&5
  11546. _ACEOF
  11547. cat >>$CONFIG_STATUS <<_ACEOF
  11548. #
  11549. # INIT-COMMANDS
  11550. #
  11551. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11552. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  11553. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  11554. # from automake.
  11555. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  11556. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  11557. LINGUAS="${LINGUAS-%UNSET%}"
  11558. _ACEOF
  11559. cat >>$CONFIG_STATUS <<\_ACEOF
  11560. # Handling of arguments.
  11561. for ac_config_target in $ac_config_targets
  11562. do
  11563. case $ac_config_target in
  11564. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11565. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11566. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  11567. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11568. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11569. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  11570. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  11571. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  11572. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  11573. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  11574. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11575. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11576. { (exit 1); exit 1; }; };;
  11577. esac
  11578. done
  11579. # If the user did not use the arguments to specify the items to instantiate,
  11580. # then the envvar interface is used. Set only those that are not.
  11581. # We use the long form for the default assignment because of an extremely
  11582. # bizarre bug on SunOS 4.1.3.
  11583. if $ac_need_defaults; then
  11584. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11585. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11586. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11587. fi
  11588. # Have a temporary directory for convenience. Make it in the build tree
  11589. # simply because there is no reason against having it here, and in addition,
  11590. # creating and moving files from /tmp can sometimes cause problems.
  11591. # Hook for its removal unless debugging.
  11592. # Note that there is a small window in which the directory will not be cleaned:
  11593. # after its creation but before its name has been assigned to `$tmp'.
  11594. $debug ||
  11595. {
  11596. tmp=
  11597. trap 'exit_status=$?
  11598. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11599. ' 0
  11600. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11601. }
  11602. # Create a (secure) tmp directory for tmp files.
  11603. {
  11604. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11605. test -n "$tmp" && test -d "$tmp"
  11606. } ||
  11607. {
  11608. tmp=./conf$$-$RANDOM
  11609. (umask 077 && mkdir "$tmp")
  11610. } ||
  11611. {
  11612. echo "$me: cannot create a temporary directory in ." >&2
  11613. { (exit 1); exit 1; }
  11614. }
  11615. #
  11616. # Set up the sed scripts for CONFIG_FILES section.
  11617. #
  11618. # No need to generate the scripts if there are no CONFIG_FILES.
  11619. # This happens for instance when ./config.status config.h
  11620. if test -n "$CONFIG_FILES"; then
  11621. _ACEOF
  11622. ac_delim='%!_!# '
  11623. for ac_last_try in false false false false false :; do
  11624. cat >conf$$subs.sed <<_ACEOF
  11625. SHELL!$SHELL$ac_delim
  11626. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  11627. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  11628. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  11629. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  11630. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  11631. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  11632. exec_prefix!$exec_prefix$ac_delim
  11633. prefix!$prefix$ac_delim
  11634. program_transform_name!$program_transform_name$ac_delim
  11635. bindir!$bindir$ac_delim
  11636. sbindir!$sbindir$ac_delim
  11637. libexecdir!$libexecdir$ac_delim
  11638. datarootdir!$datarootdir$ac_delim
  11639. datadir!$datadir$ac_delim
  11640. sysconfdir!$sysconfdir$ac_delim
  11641. sharedstatedir!$sharedstatedir$ac_delim
  11642. localstatedir!$localstatedir$ac_delim
  11643. includedir!$includedir$ac_delim
  11644. oldincludedir!$oldincludedir$ac_delim
  11645. docdir!$docdir$ac_delim
  11646. infodir!$infodir$ac_delim
  11647. htmldir!$htmldir$ac_delim
  11648. dvidir!$dvidir$ac_delim
  11649. pdfdir!$pdfdir$ac_delim
  11650. psdir!$psdir$ac_delim
  11651. libdir!$libdir$ac_delim
  11652. localedir!$localedir$ac_delim
  11653. mandir!$mandir$ac_delim
  11654. DEFS!$DEFS$ac_delim
  11655. ECHO_C!$ECHO_C$ac_delim
  11656. ECHO_N!$ECHO_N$ac_delim
  11657. ECHO_T!$ECHO_T$ac_delim
  11658. LIBS!$LIBS$ac_delim
  11659. build_alias!$build_alias$ac_delim
  11660. host_alias!$host_alias$ac_delim
  11661. target_alias!$target_alias$ac_delim
  11662. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  11663. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  11664. INSTALL_DATA!$INSTALL_DATA$ac_delim
  11665. CYGPATH_W!$CYGPATH_W$ac_delim
  11666. PACKAGE!$PACKAGE$ac_delim
  11667. VERSION!$VERSION$ac_delim
  11668. ACLOCAL!$ACLOCAL$ac_delim
  11669. AUTOCONF!$AUTOCONF$ac_delim
  11670. AUTOMAKE!$AUTOMAKE$ac_delim
  11671. AUTOHEADER!$AUTOHEADER$ac_delim
  11672. MAKEINFO!$MAKEINFO$ac_delim
  11673. install_sh!$install_sh$ac_delim
  11674. STRIP!$STRIP$ac_delim
  11675. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  11676. mkdir_p!$mkdir_p$ac_delim
  11677. AWK!$AWK$ac_delim
  11678. SET_MAKE!$SET_MAKE$ac_delim
  11679. am__leading_dot!$am__leading_dot$ac_delim
  11680. AMTAR!$AMTAR$ac_delim
  11681. am__tar!$am__tar$ac_delim
  11682. am__untar!$am__untar$ac_delim
  11683. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  11684. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  11685. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  11686. CXX!$CXX$ac_delim
  11687. CXXFLAGS!$CXXFLAGS$ac_delim
  11688. LDFLAGS!$LDFLAGS$ac_delim
  11689. CPPFLAGS!$CPPFLAGS$ac_delim
  11690. ac_ct_CXX!$ac_ct_CXX$ac_delim
  11691. EXEEXT!$EXEEXT$ac_delim
  11692. OBJEXT!$OBJEXT$ac_delim
  11693. DEPDIR!$DEPDIR$ac_delim
  11694. am__include!$am__include$ac_delim
  11695. am__quote!$am__quote$ac_delim
  11696. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  11697. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  11698. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  11699. CXXDEPMODE!$CXXDEPMODE$ac_delim
  11700. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  11701. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  11702. CC!$CC$ac_delim
  11703. CFLAGS!$CFLAGS$ac_delim
  11704. ac_ct_CC!$ac_ct_CC$ac_delim
  11705. CCDEPMODE!$CCDEPMODE$ac_delim
  11706. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  11707. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  11708. RANLIB!$RANLIB$ac_delim
  11709. YACC!$YACC$ac_delim
  11710. YFLAGS!$YFLAGS$ac_delim
  11711. XML2_CONFIG!$XML2_CONFIG$ac_delim
  11712. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  11713. XML_LIBS!$XML_LIBS$ac_delim
  11714. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  11715. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  11716. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  11717. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  11718. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  11719. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  11720. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  11721. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  11722. _ACEOF
  11723. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  11724. break
  11725. elif $ac_last_try; then
  11726. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  11727. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  11728. { (exit 1); exit 1; }; }
  11729. else
  11730. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11731. fi
  11732. done
  11733. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  11734. if test -n "$ac_eof"; then
  11735. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  11736. ac_eof=`expr $ac_eof + 1`
  11737. fi
  11738. cat >>$CONFIG_STATUS <<_ACEOF
  11739. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  11740. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11741. _ACEOF
  11742. sed '
  11743. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  11744. s/^/s,@/; s/!/@,|#_!!_#|/
  11745. :n
  11746. t n
  11747. s/'"$ac_delim"'$/,g/; t
  11748. s/$/\\/; p
  11749. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  11750. ' >>$CONFIG_STATUS <conf$$subs.sed
  11751. rm -f conf$$subs.sed
  11752. cat >>$CONFIG_STATUS <<_ACEOF
  11753. CEOF$ac_eof
  11754. _ACEOF
  11755. ac_delim='%!_!# '
  11756. for ac_last_try in false false false false false :; do
  11757. cat >conf$$subs.sed <<_ACEOF
  11758. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  11759. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  11760. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  11761. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  11762. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  11763. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  11764. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  11765. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  11766. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  11767. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  11768. ALLOCA!$ALLOCA$ac_delim
  11769. CPP!$CPP$ac_delim
  11770. GREP!$GREP$ac_delim
  11771. EGREP!$EGREP$ac_delim
  11772. MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
  11773. USE_NLS!$USE_NLS$ac_delim
  11774. MSGFMT!$MSGFMT$ac_delim
  11775. GMSGFMT!$GMSGFMT$ac_delim
  11776. XGETTEXT!$XGETTEXT$ac_delim
  11777. MSGMERGE!$MSGMERGE$ac_delim
  11778. build!$build$ac_delim
  11779. build_cpu!$build_cpu$ac_delim
  11780. build_vendor!$build_vendor$ac_delim
  11781. build_os!$build_os$ac_delim
  11782. host!$host$ac_delim
  11783. host_cpu!$host_cpu$ac_delim
  11784. host_vendor!$host_vendor$ac_delim
  11785. host_os!$host_os$ac_delim
  11786. GLIBC21!$GLIBC21$ac_delim
  11787. LIBICONV!$LIBICONV$ac_delim
  11788. LTLIBICONV!$LTLIBICONV$ac_delim
  11789. INTLBISON!$INTLBISON$ac_delim
  11790. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  11791. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  11792. CATOBJEXT!$CATOBJEXT$ac_delim
  11793. DATADIRNAME!$DATADIRNAME$ac_delim
  11794. INSTOBJEXT!$INSTOBJEXT$ac_delim
  11795. GENCAT!$GENCAT$ac_delim
  11796. INTLOBJS!$INTLOBJS$ac_delim
  11797. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  11798. INTLLIBS!$INTLLIBS$ac_delim
  11799. LIBINTL!$LIBINTL$ac_delim
  11800. LTLIBINTL!$LTLIBINTL$ac_delim
  11801. POSUB!$POSUB$ac_delim
  11802. LIBOBJS!$LIBOBJS$ac_delim
  11803. LTLIBOBJS!$LTLIBOBJS$ac_delim
  11804. _ACEOF
  11805. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
  11806. break
  11807. elif $ac_last_try; then
  11808. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  11809. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  11810. { (exit 1); exit 1; }; }
  11811. else
  11812. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11813. fi
  11814. done
  11815. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  11816. if test -n "$ac_eof"; then
  11817. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  11818. ac_eof=`expr $ac_eof + 1`
  11819. fi
  11820. cat >>$CONFIG_STATUS <<_ACEOF
  11821. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  11822. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  11823. _ACEOF
  11824. sed '
  11825. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  11826. s/^/s,@/; s/!/@,|#_!!_#|/
  11827. :n
  11828. t n
  11829. s/'"$ac_delim"'$/,g/; t
  11830. s/$/\\/; p
  11831. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  11832. ' >>$CONFIG_STATUS <conf$$subs.sed
  11833. rm -f conf$$subs.sed
  11834. cat >>$CONFIG_STATUS <<_ACEOF
  11835. :end
  11836. s/|#_!!_#|//g
  11837. CEOF$ac_eof
  11838. _ACEOF
  11839. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11840. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11841. # trailing colons and then remove the whole line if VPATH becomes empty
  11842. # (actually we leave an empty line to preserve line numbers).
  11843. if test "x$srcdir" = x.; then
  11844. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11845. s/:*\$(srcdir):*/:/
  11846. s/:*\${srcdir}:*/:/
  11847. s/:*@srcdir@:*/:/
  11848. s/^\([^=]*=[ ]*\):*/\1/
  11849. s/:*$//
  11850. s/^[^=]*=[ ]*$//
  11851. }'
  11852. fi
  11853. cat >>$CONFIG_STATUS <<\_ACEOF
  11854. fi # test -n "$CONFIG_FILES"
  11855. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  11856. do
  11857. case $ac_tag in
  11858. :[FHLC]) ac_mode=$ac_tag; continue;;
  11859. esac
  11860. case $ac_mode$ac_tag in
  11861. :[FHL]*:*);;
  11862. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  11863. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  11864. { (exit 1); exit 1; }; };;
  11865. :[FH]-) ac_tag=-:-;;
  11866. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11867. esac
  11868. ac_save_IFS=$IFS
  11869. IFS=:
  11870. set x $ac_tag
  11871. IFS=$ac_save_IFS
  11872. shift
  11873. ac_file=$1
  11874. shift
  11875. case $ac_mode in
  11876. :L) ac_source=$1;;
  11877. :[FH])
  11878. ac_file_inputs=
  11879. for ac_f
  11880. do
  11881. case $ac_f in
  11882. -) ac_f="$tmp/stdin";;
  11883. *) # Look for the file first in the build tree, then in the source tree
  11884. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11885. # because $ac_f cannot contain `:'.
  11886. test -f "$ac_f" ||
  11887. case $ac_f in
  11888. [\\/$]*) false;;
  11889. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11890. esac ||
  11891. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  11892. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  11893. { (exit 1); exit 1; }; };;
  11894. esac
  11895. ac_file_inputs="$ac_file_inputs $ac_f"
  11896. done
  11897. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11898. # use $as_me), people would be surprised to read:
  11899. # /* config.h. Generated by config.status. */
  11900. configure_input="Generated from "`IFS=:
  11901. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  11902. if test x"$ac_file" != x-; then
  11903. configure_input="$ac_file. $configure_input"
  11904. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11905. echo "$as_me: creating $ac_file" >&6;}
  11906. fi
  11907. case $ac_tag in
  11908. *:-:* | *:-) cat >"$tmp/stdin";;
  11909. esac
  11910. ;;
  11911. esac
  11912. ac_dir=`$as_dirname -- "$ac_file" ||
  11913. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11914. X"$ac_file" : 'X\(//\)[^/]' \| \
  11915. X"$ac_file" : 'X\(//\)$' \| \
  11916. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11917. echo X"$ac_file" |
  11918. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11919. s//\1/
  11920. q
  11921. }
  11922. /^X\(\/\/\)[^/].*/{
  11923. s//\1/
  11924. q
  11925. }
  11926. /^X\(\/\/\)$/{
  11927. s//\1/
  11928. q
  11929. }
  11930. /^X\(\/\).*/{
  11931. s//\1/
  11932. q
  11933. }
  11934. s/.*/./; q'`
  11935. { as_dir="$ac_dir"
  11936. case $as_dir in #(
  11937. -*) as_dir=./$as_dir;;
  11938. esac
  11939. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  11940. as_dirs=
  11941. while :; do
  11942. case $as_dir in #(
  11943. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  11944. *) as_qdir=$as_dir;;
  11945. esac
  11946. as_dirs="'$as_qdir' $as_dirs"
  11947. as_dir=`$as_dirname -- "$as_dir" ||
  11948. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11949. X"$as_dir" : 'X\(//\)[^/]' \| \
  11950. X"$as_dir" : 'X\(//\)$' \| \
  11951. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11952. echo X"$as_dir" |
  11953. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11954. s//\1/
  11955. q
  11956. }
  11957. /^X\(\/\/\)[^/].*/{
  11958. s//\1/
  11959. q
  11960. }
  11961. /^X\(\/\/\)$/{
  11962. s//\1/
  11963. q
  11964. }
  11965. /^X\(\/\).*/{
  11966. s//\1/
  11967. q
  11968. }
  11969. s/.*/./; q'`
  11970. test -d "$as_dir" && break
  11971. done
  11972. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11973. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  11974. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  11975. { (exit 1); exit 1; }; }; }
  11976. ac_builddir=.
  11977. case "$ac_dir" in
  11978. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11979. *)
  11980. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11981. # A ".." for each directory in $ac_dir_suffix.
  11982. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  11983. case $ac_top_builddir_sub in
  11984. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11985. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11986. esac ;;
  11987. esac
  11988. ac_abs_top_builddir=$ac_pwd
  11989. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11990. # for backward compatibility:
  11991. ac_top_builddir=$ac_top_build_prefix
  11992. case $srcdir in
  11993. .) # We are building in place.
  11994. ac_srcdir=.
  11995. ac_top_srcdir=$ac_top_builddir_sub
  11996. ac_abs_top_srcdir=$ac_pwd ;;
  11997. [\\/]* | ?:[\\/]* ) # Absolute name.
  11998. ac_srcdir=$srcdir$ac_dir_suffix;
  11999. ac_top_srcdir=$srcdir
  12000. ac_abs_top_srcdir=$srcdir ;;
  12001. *) # Relative name.
  12002. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12003. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12004. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12005. esac
  12006. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12007. case $ac_mode in
  12008. :F)
  12009. #
  12010. # CONFIG_FILE
  12011. #
  12012. case $INSTALL in
  12013. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12014. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12015. esac
  12016. _ACEOF
  12017. cat >>$CONFIG_STATUS <<\_ACEOF
  12018. # If the template does not know about datarootdir, expand it.
  12019. # FIXME: This hack should be removed a few years after 2.60.
  12020. ac_datarootdir_hack=; ac_datarootdir_seen=
  12021. case `sed -n '/datarootdir/ {
  12022. p
  12023. q
  12024. }
  12025. /@datadir@/p
  12026. /@docdir@/p
  12027. /@infodir@/p
  12028. /@localedir@/p
  12029. /@mandir@/p
  12030. ' $ac_file_inputs` in
  12031. *datarootdir*) ac_datarootdir_seen=yes;;
  12032. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12033. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12034. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12035. _ACEOF
  12036. cat >>$CONFIG_STATUS <<_ACEOF
  12037. ac_datarootdir_hack='
  12038. s&@datadir@&$datadir&g
  12039. s&@docdir@&$docdir&g
  12040. s&@infodir@&$infodir&g
  12041. s&@localedir@&$localedir&g
  12042. s&@mandir@&$mandir&g
  12043. s&\\\${datarootdir}&$datarootdir&g' ;;
  12044. esac
  12045. _ACEOF
  12046. # Neutralize VPATH when `$srcdir' = `.'.
  12047. # Shell code in configure.ac might set extrasub.
  12048. # FIXME: do we really want to maintain this feature?
  12049. cat >>$CONFIG_STATUS <<_ACEOF
  12050. sed "$ac_vpsub
  12051. $extrasub
  12052. _ACEOF
  12053. cat >>$CONFIG_STATUS <<\_ACEOF
  12054. :t
  12055. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12056. s&@configure_input@&$configure_input&;t t
  12057. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12058. s&@srcdir@&$ac_srcdir&;t t
  12059. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12060. s&@top_srcdir@&$ac_top_srcdir&;t t
  12061. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12062. s&@builddir@&$ac_builddir&;t t
  12063. s&@abs_builddir@&$ac_abs_builddir&;t t
  12064. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12065. s&@INSTALL@&$ac_INSTALL&;t t
  12066. $ac_datarootdir_hack
  12067. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  12068. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12069. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12070. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12071. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12072. which seems to be undefined. Please make sure it is defined." >&5
  12073. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12074. which seems to be undefined. Please make sure it is defined." >&2;}
  12075. rm -f "$tmp/stdin"
  12076. case $ac_file in
  12077. -) cat "$tmp/out"; rm -f "$tmp/out";;
  12078. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  12079. esac
  12080. ;;
  12081. :H)
  12082. #
  12083. # CONFIG_HEADER
  12084. #
  12085. _ACEOF
  12086. # Transform confdefs.h into a sed script `conftest.defines', that
  12087. # substitutes the proper values into config.h.in to produce config.h.
  12088. rm -f conftest.defines conftest.tail
  12089. # First, append a space to every undef/define line, to ease matching.
  12090. echo 's/$/ /' >conftest.defines
  12091. # Then, protect against being on the right side of a sed subst, or in
  12092. # an unquoted here document, in config.status. If some macros were
  12093. # called several times there might be several #defines for the same
  12094. # symbol, which is useless. But do not sort them, since the last
  12095. # AC_DEFINE must be honored.
  12096. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12097. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  12098. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  12099. # PARAMS is the parameter list in the macro definition--in most cases, it's
  12100. # just an empty string.
  12101. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  12102. ac_dB='\\)[ (].*,\\1define\\2'
  12103. ac_dC=' '
  12104. ac_dD=' ,'
  12105. uniq confdefs.h |
  12106. sed -n '
  12107. t rset
  12108. :rset
  12109. s/^[ ]*#[ ]*define[ ][ ]*//
  12110. t ok
  12111. d
  12112. :ok
  12113. s/[\\&,]/\\&/g
  12114. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  12115. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  12116. ' >>conftest.defines
  12117. # Remove the space that was appended to ease matching.
  12118. # Then replace #undef with comments. This is necessary, for
  12119. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12120. # on some systems where configure will not decide to define it.
  12121. # (The regexp can be short, since the line contains either #define or #undef.)
  12122. echo 's/ $//
  12123. s,^[ #]*u.*,/* & */,' >>conftest.defines
  12124. # Break up conftest.defines:
  12125. ac_max_sed_lines=50
  12126. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  12127. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  12128. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  12129. # et cetera.
  12130. ac_in='$ac_file_inputs'
  12131. ac_out='"$tmp/out1"'
  12132. ac_nxt='"$tmp/out2"'
  12133. while :
  12134. do
  12135. # Write a here document:
  12136. cat >>$CONFIG_STATUS <<_ACEOF
  12137. # First, check the format of the line:
  12138. cat >"\$tmp/defines.sed" <<\\CEOF
  12139. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  12140. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  12141. b
  12142. :def
  12143. _ACEOF
  12144. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  12145. echo 'CEOF
  12146. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  12147. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  12148. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  12149. grep . conftest.tail >/dev/null || break
  12150. rm -f conftest.defines
  12151. mv conftest.tail conftest.defines
  12152. done
  12153. rm -f conftest.defines conftest.tail
  12154. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  12155. cat >>$CONFIG_STATUS <<\_ACEOF
  12156. if test x"$ac_file" != x-; then
  12157. echo "/* $configure_input */" >"$tmp/config.h"
  12158. cat "$ac_result" >>"$tmp/config.h"
  12159. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  12160. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12161. echo "$as_me: $ac_file is unchanged" >&6;}
  12162. else
  12163. rm -f $ac_file
  12164. mv "$tmp/config.h" $ac_file
  12165. fi
  12166. else
  12167. echo "/* $configure_input */"
  12168. cat "$ac_result"
  12169. fi
  12170. rm -f "$tmp/out12"
  12171. # Compute $ac_file's index in $config_headers.
  12172. _am_stamp_count=1
  12173. for _am_header in $config_headers :; do
  12174. case $_am_header in
  12175. $ac_file | $ac_file:* )
  12176. break ;;
  12177. * )
  12178. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12179. esac
  12180. done
  12181. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  12182. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12183. X$ac_file : 'X\(//\)[^/]' \| \
  12184. X$ac_file : 'X\(//\)$' \| \
  12185. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  12186. echo X$ac_file |
  12187. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12188. s//\1/
  12189. q
  12190. }
  12191. /^X\(\/\/\)[^/].*/{
  12192. s//\1/
  12193. q
  12194. }
  12195. /^X\(\/\/\)$/{
  12196. s//\1/
  12197. q
  12198. }
  12199. /^X\(\/\).*/{
  12200. s//\1/
  12201. q
  12202. }
  12203. s/.*/./; q'`/stamp-h$_am_stamp_count
  12204. ;;
  12205. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  12206. echo "$as_me: executing $ac_file commands" >&6;}
  12207. ;;
  12208. esac
  12209. case $ac_file$ac_mode in
  12210. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  12211. # Strip MF so we end up with the name of the file.
  12212. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12213. # Check whether this is an Automake generated Makefile or not.
  12214. # We used to match only the files named `Makefile.in', but
  12215. # some people rename them; so instead we look at the file content.
  12216. # Grep'ing the first line is not enough: some people post-process
  12217. # each Makefile.in and add a new line on top of each file to say so.
  12218. # So let's grep whole file.
  12219. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  12220. dirpart=`$as_dirname -- "$mf" ||
  12221. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12222. X"$mf" : 'X\(//\)[^/]' \| \
  12223. X"$mf" : 'X\(//\)$' \| \
  12224. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12225. echo X"$mf" |
  12226. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12227. s//\1/
  12228. q
  12229. }
  12230. /^X\(\/\/\)[^/].*/{
  12231. s//\1/
  12232. q
  12233. }
  12234. /^X\(\/\/\)$/{
  12235. s//\1/
  12236. q
  12237. }
  12238. /^X\(\/\).*/{
  12239. s//\1/
  12240. q
  12241. }
  12242. s/.*/./; q'`
  12243. else
  12244. continue
  12245. fi
  12246. # Extract the definition of DEPDIR, am__include, and am__quote
  12247. # from the Makefile without running `make'.
  12248. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12249. test -z "$DEPDIR" && continue
  12250. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12251. test -z "am__include" && continue
  12252. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12253. # When using ansi2knr, U may be empty or an underscore; expand it
  12254. U=`sed -n 's/^U = //p' < "$mf"`
  12255. # Find all dependency output files, they are included files with
  12256. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12257. # simplest approach to changing $(DEPDIR) to its actual value in the
  12258. # expansion.
  12259. for file in `sed -n "
  12260. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12261. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12262. # Make sure the directory exists.
  12263. test -f "$dirpart/$file" && continue
  12264. fdir=`$as_dirname -- "$file" ||
  12265. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12266. X"$file" : 'X\(//\)[^/]' \| \
  12267. X"$file" : 'X\(//\)$' \| \
  12268. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12269. echo X"$file" |
  12270. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12271. s//\1/
  12272. q
  12273. }
  12274. /^X\(\/\/\)[^/].*/{
  12275. s//\1/
  12276. q
  12277. }
  12278. /^X\(\/\/\)$/{
  12279. s//\1/
  12280. q
  12281. }
  12282. /^X\(\/\).*/{
  12283. s//\1/
  12284. q
  12285. }
  12286. s/.*/./; q'`
  12287. { as_dir=$dirpart/$fdir
  12288. case $as_dir in #(
  12289. -*) as_dir=./$as_dir;;
  12290. esac
  12291. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  12292. as_dirs=
  12293. while :; do
  12294. case $as_dir in #(
  12295. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  12296. *) as_qdir=$as_dir;;
  12297. esac
  12298. as_dirs="'$as_qdir' $as_dirs"
  12299. as_dir=`$as_dirname -- "$as_dir" ||
  12300. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12301. X"$as_dir" : 'X\(//\)[^/]' \| \
  12302. X"$as_dir" : 'X\(//\)$' \| \
  12303. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12304. echo X"$as_dir" |
  12305. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12306. s//\1/
  12307. q
  12308. }
  12309. /^X\(\/\/\)[^/].*/{
  12310. s//\1/
  12311. q
  12312. }
  12313. /^X\(\/\/\)$/{
  12314. s//\1/
  12315. q
  12316. }
  12317. /^X\(\/\).*/{
  12318. s//\1/
  12319. q
  12320. }
  12321. s/.*/./; q'`
  12322. test -d "$as_dir" && break
  12323. done
  12324. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12325. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  12326. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  12327. { (exit 1); exit 1; }; }; }
  12328. # echo "creating $dirpart/$file"
  12329. echo '# dummy' > "$dirpart/$file"
  12330. done
  12331. done
  12332. ;;
  12333. "default-1":C)
  12334. for ac_file in $CONFIG_FILES; do
  12335. # Support "outfile[:infile[:infile...]]"
  12336. case "$ac_file" in
  12337. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  12338. esac
  12339. # PO directories have a Makefile.in generated from Makefile.in.in.
  12340. case "$ac_file" in */Makefile.in)
  12341. # Adjust a relative srcdir.
  12342. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  12343. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  12344. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  12345. # In autoconf-2.13 it is called $ac_given_srcdir.
  12346. # In autoconf-2.50 it is called $srcdir.
  12347. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  12348. case "$ac_given_srcdir" in
  12349. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  12350. /*) top_srcdir="$ac_given_srcdir" ;;
  12351. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  12352. esac
  12353. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  12354. rm -f "$ac_dir/POTFILES"
  12355. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  12356. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  12357. POMAKEFILEDEPS="POTFILES.in"
  12358. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  12359. # on $ac_dir but don't depend on user-specified configuration
  12360. # parameters.
  12361. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  12362. # The LINGUAS file contains the set of available languages.
  12363. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  12364. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  12365. fi
  12366. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  12367. # Hide the ALL_LINGUAS assigment from automake.
  12368. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  12369. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  12370. else
  12371. # The set of available languages was given in configure.in.
  12372. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  12373. fi
  12374. case "$ac_given_srcdir" in
  12375. .) srcdirpre= ;;
  12376. *) srcdirpre='$(srcdir)/' ;;
  12377. esac
  12378. POFILES=
  12379. GMOFILES=
  12380. UPDATEPOFILES=
  12381. DUMMYPOFILES=
  12382. for lang in $ALL_LINGUAS; do
  12383. POFILES="$POFILES $srcdirpre$lang.po"
  12384. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  12385. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  12386. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  12387. done
  12388. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  12389. # environment variable.
  12390. INST_LINGUAS=
  12391. if test -n "$ALL_LINGUAS"; then
  12392. for presentlang in $ALL_LINGUAS; do
  12393. useit=no
  12394. if test "%UNSET%" != "$LINGUAS"; then
  12395. desiredlanguages="$LINGUAS"
  12396. else
  12397. desiredlanguages="$ALL_LINGUAS"
  12398. fi
  12399. for desiredlang in $desiredlanguages; do
  12400. # Use the presentlang catalog if desiredlang is
  12401. # a. equal to presentlang, or
  12402. # b. a variant of presentlang (because in this case,
  12403. # presentlang can be used as a fallback for messages
  12404. # which are not translated in the desiredlang catalog).
  12405. case "$desiredlang" in
  12406. "$presentlang"*) useit=yes;;
  12407. esac
  12408. done
  12409. if test $useit = yes; then
  12410. INST_LINGUAS="$INST_LINGUAS $presentlang"
  12411. fi
  12412. done
  12413. fi
  12414. CATALOGS=
  12415. if test -n "$INST_LINGUAS"; then
  12416. for lang in $INST_LINGUAS; do
  12417. CATALOGS="$CATALOGS $lang.gmo"
  12418. done
  12419. fi
  12420. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  12421. 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"
  12422. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  12423. if test -f "$f"; then
  12424. case "$f" in
  12425. *.orig | *.bak | *~) ;;
  12426. *) cat "$f" >> "$ac_dir/Makefile" ;;
  12427. esac
  12428. fi
  12429. done
  12430. fi
  12431. ;;
  12432. esac
  12433. done ;;
  12434. esac
  12435. done # for ac_tag
  12436. { (exit 0); exit 0; }
  12437. _ACEOF
  12438. chmod +x $CONFIG_STATUS
  12439. ac_clean_files=$ac_clean_files_save
  12440. # configure is writing to config.log, and then calls config.status.
  12441. # config.status does its own redirection, appending to config.log.
  12442. # Unfortunately, on DOS this fails, as config.log is still kept open
  12443. # by configure, so config.status won't be able to write to it; its
  12444. # output is simply discarded. So we exec the FD to /dev/null,
  12445. # effectively closing config.log, so it can be properly (re)opened and
  12446. # appended to by config.status. When coming back to configure, we
  12447. # need to make the FD available again.
  12448. if test "$no_create" != yes; then
  12449. ac_cs_success=:
  12450. ac_config_status_args=
  12451. test "$silent" = yes &&
  12452. ac_config_status_args="$ac_config_status_args --quiet"
  12453. exec 5>/dev/null
  12454. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12455. exec 5>>config.log
  12456. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12457. # would make configure fail if this is the last instruction.
  12458. $ac_cs_success || { (exit 1); exit 1; }
  12459. fi