configure 580 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.12.0.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.12.0'
  496. PACKAGE_STRING='aria2c 0.12.0'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. gt_needs=
  535. ac_subst_vars='SHELL
  536. PATH_SEPARATOR
  537. PACKAGE_NAME
  538. PACKAGE_TARNAME
  539. PACKAGE_VERSION
  540. PACKAGE_STRING
  541. PACKAGE_BUGREPORT
  542. exec_prefix
  543. prefix
  544. program_transform_name
  545. bindir
  546. sbindir
  547. libexecdir
  548. datarootdir
  549. datadir
  550. sysconfdir
  551. sharedstatedir
  552. localstatedir
  553. includedir
  554. oldincludedir
  555. docdir
  556. infodir
  557. htmldir
  558. dvidir
  559. pdfdir
  560. psdir
  561. libdir
  562. localedir
  563. mandir
  564. DEFS
  565. ECHO_C
  566. ECHO_N
  567. ECHO_T
  568. LIBS
  569. build_alias
  570. host_alias
  571. target_alias
  572. build
  573. build_cpu
  574. build_vendor
  575. build_os
  576. host
  577. host_cpu
  578. host_vendor
  579. host_os
  580. target
  581. target_cpu
  582. target_vendor
  583. target_os
  584. INSTALL_PROGRAM
  585. INSTALL_SCRIPT
  586. INSTALL_DATA
  587. CYGPATH_W
  588. PACKAGE
  589. VERSION
  590. ACLOCAL
  591. AUTOCONF
  592. AUTOMAKE
  593. AUTOHEADER
  594. MAKEINFO
  595. install_sh
  596. STRIP
  597. INSTALL_STRIP_PROGRAM
  598. mkdir_p
  599. AWK
  600. SET_MAKE
  601. am__leading_dot
  602. AMTAR
  603. am__tar
  604. am__untar
  605. CPPUNIT_CONFIG
  606. CPPUNIT_CFLAGS
  607. CPPUNIT_LIBS
  608. WINSOCK_LIBS
  609. CXX
  610. CXXFLAGS
  611. LDFLAGS
  612. CPPFLAGS
  613. ac_ct_CXX
  614. EXEEXT
  615. OBJEXT
  616. DEPDIR
  617. am__include
  618. am__quote
  619. AMDEP_TRUE
  620. AMDEP_FALSE
  621. AMDEPBACKSLASH
  622. CXXDEPMODE
  623. am__fastdepCXX_TRUE
  624. am__fastdepCXX_FALSE
  625. CC
  626. CFLAGS
  627. ac_ct_CC
  628. CCDEPMODE
  629. am__fastdepCC_TRUE
  630. am__fastdepCC_FALSE
  631. RANLIB
  632. YACC
  633. YFLAGS
  634. CXXCPP
  635. GREP
  636. EGREP
  637. XML2_CONFIG
  638. XML_CPPFLAGS
  639. XML_LIBS
  640. LIBEXPAT_LIBS
  641. LIBEXPAT_CPPFLAGS
  642. LIBGNUTLS_CONFIG
  643. LIBGNUTLS_CFLAGS
  644. LIBGNUTLS_LIBS
  645. LIBGCRYPT_CONFIG
  646. LIBGCRYPT_CFLAGS
  647. LIBGCRYPT_LIBS
  648. OPENSSL_LIBS
  649. OPENSSL_CFLAGS
  650. LIBCARES_LIBS
  651. LIBCARES_CPPFLAGS
  652. LIBARES_LIBS
  653. LIBARES_CPPFLAGS
  654. ENABLE_MESSAGE_DIGEST_TRUE
  655. ENABLE_MESSAGE_DIGEST_FALSE
  656. ENABLE_BITTORRENT_TRUE
  657. ENABLE_BITTORRENT_FALSE
  658. ENABLE_METALINK_TRUE
  659. ENABLE_METALINK_FALSE
  660. ENABLE_LIBXML2_TRUE
  661. ENABLE_LIBXML2_FALSE
  662. ENABLE_LIBEXPAT_TRUE
  663. ENABLE_LIBEXPAT_FALSE
  664. ENABLE_ASYNC_DNS_TRUE
  665. ENABLE_ASYNC_DNS_FALSE
  666. ALLOCA
  667. USE_NLS
  668. GETTEXT_MACRO_VERSION
  669. MSGFMT
  670. GMSGFMT
  671. MSGFMT_015
  672. GMSGFMT_015
  673. XGETTEXT
  674. XGETTEXT_015
  675. MSGMERGE
  676. XGETTEXT_EXTRA_OPTIONS
  677. GLIBC2
  678. CFLAG_VISIBILITY
  679. HAVE_VISIBILITY
  680. PRI_MACROS_BROKEN
  681. LIBPTH
  682. LTLIBPTH
  683. LIBPTH_PREFIX
  684. LIBTHREAD
  685. LTLIBTHREAD
  686. LIBMULTITHREAD
  687. LTLIBMULTITHREAD
  688. LIBICONV
  689. LTLIBICONV
  690. INTLBISON
  691. GLIBC21
  692. INTL_MACOSX_LIBS
  693. HAVE_POSIX_PRINTF
  694. HAVE_ASPRINTF
  695. HAVE_SNPRINTF
  696. HAVE_WPRINTF
  697. WOE32DLL
  698. WOE32
  699. WINDRES
  700. LTLIBC
  701. BUILD_INCLUDED_LIBINTL
  702. USE_INCLUDED_LIBINTL
  703. CATOBJEXT
  704. DATADIRNAME
  705. INSTOBJEXT
  706. GENCAT
  707. INTLOBJS
  708. INTL_LIBTOOL_SUFFIX_PREFIX
  709. INTLLIBS
  710. LIBINTL
  711. LTLIBINTL
  712. POSUB
  713. LIBOBJS
  714. HAVE_BASENAME_TRUE
  715. HAVE_BASENAME_FALSE
  716. HAVE_GAI_STRERROR_TRUE
  717. HAVE_GAI_STRERROR_FALSE
  718. HAVE_GETADDRINFO_TRUE
  719. HAVE_GETADDRINFO_FALSE
  720. HAVE_GETTIMEOFDAY_TRUE
  721. HAVE_GETTIMEOFDAY_FALSE
  722. HAVE_INET_ATON_TRUE
  723. HAVE_INET_ATON_FALSE
  724. HAVE_LOCALTIME_R_TRUE
  725. HAVE_LOCALTIME_R_FALSE
  726. HAVE_STRPTIME_TRUE
  727. HAVE_STRPTIME_FALSE
  728. HAVE_TIMEGM_TRUE
  729. HAVE_TIMEGM_FALSE
  730. LTLIBOBJS'
  731. ac_subst_files=''
  732. ac_precious_vars='build_alias
  733. host_alias
  734. target_alias
  735. CXX
  736. CXXFLAGS
  737. LDFLAGS
  738. LIBS
  739. CPPFLAGS
  740. CCC
  741. CC
  742. CFLAGS
  743. YACC
  744. YFLAGS
  745. CXXCPP'
  746. # Initialize some variables set by options.
  747. ac_init_help=
  748. ac_init_version=false
  749. # The variables have the same names as the options, with
  750. # dashes changed to underlines.
  751. cache_file=/dev/null
  752. exec_prefix=NONE
  753. no_create=
  754. no_recursion=
  755. prefix=NONE
  756. program_prefix=NONE
  757. program_suffix=NONE
  758. program_transform_name=s,x,x,
  759. silent=
  760. site=
  761. srcdir=
  762. verbose=
  763. x_includes=NONE
  764. x_libraries=NONE
  765. # Installation directory options.
  766. # These are left unexpanded so users can "make install exec_prefix=/foo"
  767. # and all the variables that are supposed to be based on exec_prefix
  768. # by default will actually change.
  769. # Use braces instead of parens because sh, perl, etc. also accept them.
  770. # (The list follows the same order as the GNU Coding Standards.)
  771. bindir='${exec_prefix}/bin'
  772. sbindir='${exec_prefix}/sbin'
  773. libexecdir='${exec_prefix}/libexec'
  774. datarootdir='${prefix}/share'
  775. datadir='${datarootdir}'
  776. sysconfdir='${prefix}/etc'
  777. sharedstatedir='${prefix}/com'
  778. localstatedir='${prefix}/var'
  779. includedir='${prefix}/include'
  780. oldincludedir='/usr/include'
  781. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  782. infodir='${datarootdir}/info'
  783. htmldir='${docdir}'
  784. dvidir='${docdir}'
  785. pdfdir='${docdir}'
  786. psdir='${docdir}'
  787. libdir='${exec_prefix}/lib'
  788. localedir='${datarootdir}/locale'
  789. mandir='${datarootdir}/man'
  790. ac_prev=
  791. ac_dashdash=
  792. for ac_option
  793. do
  794. # If the previous option needs an argument, assign it.
  795. if test -n "$ac_prev"; then
  796. eval $ac_prev=\$ac_option
  797. ac_prev=
  798. continue
  799. fi
  800. case $ac_option in
  801. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  802. *) ac_optarg=yes ;;
  803. esac
  804. # Accept the important Cygnus configure options, so we can diagnose typos.
  805. case $ac_dashdash$ac_option in
  806. --)
  807. ac_dashdash=yes ;;
  808. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  809. ac_prev=bindir ;;
  810. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  811. bindir=$ac_optarg ;;
  812. -build | --build | --buil | --bui | --bu)
  813. ac_prev=build_alias ;;
  814. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  815. build_alias=$ac_optarg ;;
  816. -cache-file | --cache-file | --cache-fil | --cache-fi \
  817. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  818. ac_prev=cache_file ;;
  819. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  820. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  821. cache_file=$ac_optarg ;;
  822. --config-cache | -C)
  823. cache_file=config.cache ;;
  824. -datadir | --datadir | --datadi | --datad)
  825. ac_prev=datadir ;;
  826. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  827. datadir=$ac_optarg ;;
  828. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  829. | --dataroo | --dataro | --datar)
  830. ac_prev=datarootdir ;;
  831. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  832. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  833. datarootdir=$ac_optarg ;;
  834. -disable-* | --disable-*)
  835. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  836. # Reject names that are not valid shell variable names.
  837. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  838. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  839. { (exit 1); exit 1; }; }
  840. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  841. eval enable_$ac_feature=no ;;
  842. -docdir | --docdir | --docdi | --doc | --do)
  843. ac_prev=docdir ;;
  844. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  845. docdir=$ac_optarg ;;
  846. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  847. ac_prev=dvidir ;;
  848. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  849. dvidir=$ac_optarg ;;
  850. -enable-* | --enable-*)
  851. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  852. # Reject names that are not valid shell variable names.
  853. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  854. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  855. { (exit 1); exit 1; }; }
  856. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  857. eval enable_$ac_feature=\$ac_optarg ;;
  858. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  859. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  860. | --exec | --exe | --ex)
  861. ac_prev=exec_prefix ;;
  862. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  863. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  864. | --exec=* | --exe=* | --ex=*)
  865. exec_prefix=$ac_optarg ;;
  866. -gas | --gas | --ga | --g)
  867. # Obsolete; use --with-gas.
  868. with_gas=yes ;;
  869. -help | --help | --hel | --he | -h)
  870. ac_init_help=long ;;
  871. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  872. ac_init_help=recursive ;;
  873. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  874. ac_init_help=short ;;
  875. -host | --host | --hos | --ho)
  876. ac_prev=host_alias ;;
  877. -host=* | --host=* | --hos=* | --ho=*)
  878. host_alias=$ac_optarg ;;
  879. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  880. ac_prev=htmldir ;;
  881. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  882. | --ht=*)
  883. htmldir=$ac_optarg ;;
  884. -includedir | --includedir | --includedi | --included | --include \
  885. | --includ | --inclu | --incl | --inc)
  886. ac_prev=includedir ;;
  887. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  888. | --includ=* | --inclu=* | --incl=* | --inc=*)
  889. includedir=$ac_optarg ;;
  890. -infodir | --infodir | --infodi | --infod | --info | --inf)
  891. ac_prev=infodir ;;
  892. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  893. infodir=$ac_optarg ;;
  894. -libdir | --libdir | --libdi | --libd)
  895. ac_prev=libdir ;;
  896. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  897. libdir=$ac_optarg ;;
  898. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  899. | --libexe | --libex | --libe)
  900. ac_prev=libexecdir ;;
  901. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  902. | --libexe=* | --libex=* | --libe=*)
  903. libexecdir=$ac_optarg ;;
  904. -localedir | --localedir | --localedi | --localed | --locale)
  905. ac_prev=localedir ;;
  906. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  907. localedir=$ac_optarg ;;
  908. -localstatedir | --localstatedir | --localstatedi | --localstated \
  909. | --localstate | --localstat | --localsta | --localst | --locals)
  910. ac_prev=localstatedir ;;
  911. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  912. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  913. localstatedir=$ac_optarg ;;
  914. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  915. ac_prev=mandir ;;
  916. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  917. mandir=$ac_optarg ;;
  918. -nfp | --nfp | --nf)
  919. # Obsolete; use --without-fp.
  920. with_fp=no ;;
  921. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  922. | --no-cr | --no-c | -n)
  923. no_create=yes ;;
  924. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  925. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  926. no_recursion=yes ;;
  927. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  928. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  929. | --oldin | --oldi | --old | --ol | --o)
  930. ac_prev=oldincludedir ;;
  931. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  932. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  933. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  934. oldincludedir=$ac_optarg ;;
  935. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  936. ac_prev=prefix ;;
  937. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  938. prefix=$ac_optarg ;;
  939. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  940. | --program-pre | --program-pr | --program-p)
  941. ac_prev=program_prefix ;;
  942. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  943. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  944. program_prefix=$ac_optarg ;;
  945. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  946. | --program-suf | --program-su | --program-s)
  947. ac_prev=program_suffix ;;
  948. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  949. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  950. program_suffix=$ac_optarg ;;
  951. -program-transform-name | --program-transform-name \
  952. | --program-transform-nam | --program-transform-na \
  953. | --program-transform-n | --program-transform- \
  954. | --program-transform | --program-transfor \
  955. | --program-transfo | --program-transf \
  956. | --program-trans | --program-tran \
  957. | --progr-tra | --program-tr | --program-t)
  958. ac_prev=program_transform_name ;;
  959. -program-transform-name=* | --program-transform-name=* \
  960. | --program-transform-nam=* | --program-transform-na=* \
  961. | --program-transform-n=* | --program-transform-=* \
  962. | --program-transform=* | --program-transfor=* \
  963. | --program-transfo=* | --program-transf=* \
  964. | --program-trans=* | --program-tran=* \
  965. | --progr-tra=* | --program-tr=* | --program-t=*)
  966. program_transform_name=$ac_optarg ;;
  967. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  968. ac_prev=pdfdir ;;
  969. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  970. pdfdir=$ac_optarg ;;
  971. -psdir | --psdir | --psdi | --psd | --ps)
  972. ac_prev=psdir ;;
  973. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  974. psdir=$ac_optarg ;;
  975. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  976. | -silent | --silent | --silen | --sile | --sil)
  977. silent=yes ;;
  978. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  979. ac_prev=sbindir ;;
  980. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  981. | --sbi=* | --sb=*)
  982. sbindir=$ac_optarg ;;
  983. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  984. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  985. | --sharedst | --shareds | --shared | --share | --shar \
  986. | --sha | --sh)
  987. ac_prev=sharedstatedir ;;
  988. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  989. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  990. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  991. | --sha=* | --sh=*)
  992. sharedstatedir=$ac_optarg ;;
  993. -site | --site | --sit)
  994. ac_prev=site ;;
  995. -site=* | --site=* | --sit=*)
  996. site=$ac_optarg ;;
  997. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  998. ac_prev=srcdir ;;
  999. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1000. srcdir=$ac_optarg ;;
  1001. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1002. | --syscon | --sysco | --sysc | --sys | --sy)
  1003. ac_prev=sysconfdir ;;
  1004. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1005. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1006. sysconfdir=$ac_optarg ;;
  1007. -target | --target | --targe | --targ | --tar | --ta | --t)
  1008. ac_prev=target_alias ;;
  1009. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1010. target_alias=$ac_optarg ;;
  1011. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1012. verbose=yes ;;
  1013. -version | --version | --versio | --versi | --vers | -V)
  1014. ac_init_version=: ;;
  1015. -with-* | --with-*)
  1016. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1017. # Reject names that are not valid shell variable names.
  1018. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1019. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1020. { (exit 1); exit 1; }; }
  1021. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1022. eval with_$ac_package=\$ac_optarg ;;
  1023. -without-* | --without-*)
  1024. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1025. # Reject names that are not valid shell variable names.
  1026. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1027. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1028. { (exit 1); exit 1; }; }
  1029. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1030. eval with_$ac_package=no ;;
  1031. --x)
  1032. # Obsolete; use --with-x.
  1033. with_x=yes ;;
  1034. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1035. | --x-incl | --x-inc | --x-in | --x-i)
  1036. ac_prev=x_includes ;;
  1037. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1038. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1039. x_includes=$ac_optarg ;;
  1040. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1041. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1042. ac_prev=x_libraries ;;
  1043. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1044. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1045. x_libraries=$ac_optarg ;;
  1046. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1047. Try \`$0 --help' for more information." >&2
  1048. { (exit 1); exit 1; }; }
  1049. ;;
  1050. *=*)
  1051. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1052. # Reject names that are not valid shell variable names.
  1053. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1054. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1055. { (exit 1); exit 1; }; }
  1056. eval $ac_envvar=\$ac_optarg
  1057. export $ac_envvar ;;
  1058. *)
  1059. # FIXME: should be removed in autoconf 3.0.
  1060. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1061. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1062. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1063. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1064. ;;
  1065. esac
  1066. done
  1067. if test -n "$ac_prev"; then
  1068. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1069. { echo "$as_me: error: missing argument to $ac_option" >&2
  1070. { (exit 1); exit 1; }; }
  1071. fi
  1072. # Be sure to have absolute directory names.
  1073. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1074. datadir sysconfdir sharedstatedir localstatedir includedir \
  1075. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1076. libdir localedir mandir
  1077. do
  1078. eval ac_val=\$$ac_var
  1079. case $ac_val in
  1080. [\\/$]* | ?:[\\/]* ) continue;;
  1081. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1082. esac
  1083. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1084. { (exit 1); exit 1; }; }
  1085. done
  1086. # There might be people who depend on the old broken behavior: `$host'
  1087. # used to hold the argument of --host etc.
  1088. # FIXME: To remove some day.
  1089. build=$build_alias
  1090. host=$host_alias
  1091. target=$target_alias
  1092. # FIXME: To remove some day.
  1093. if test "x$host_alias" != x; then
  1094. if test "x$build_alias" = x; then
  1095. cross_compiling=maybe
  1096. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1097. If a cross compiler is detected then cross compile mode will be used." >&2
  1098. elif test "x$build_alias" != "x$host_alias"; then
  1099. cross_compiling=yes
  1100. fi
  1101. fi
  1102. ac_tool_prefix=
  1103. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1104. test "$silent" = yes && exec 6>/dev/null
  1105. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1106. ac_ls_di=`ls -di .` &&
  1107. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1108. { echo "$as_me: error: Working directory cannot be determined" >&2
  1109. { (exit 1); exit 1; }; }
  1110. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1111. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1112. { (exit 1); exit 1; }; }
  1113. # Find the source files, if location was not specified.
  1114. if test -z "$srcdir"; then
  1115. ac_srcdir_defaulted=yes
  1116. # Try the directory containing this script, then the parent directory.
  1117. ac_confdir=`$as_dirname -- "$0" ||
  1118. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1119. X"$0" : 'X\(//\)[^/]' \| \
  1120. X"$0" : 'X\(//\)$' \| \
  1121. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1122. echo X"$0" |
  1123. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1124. s//\1/
  1125. q
  1126. }
  1127. /^X\(\/\/\)[^/].*/{
  1128. s//\1/
  1129. q
  1130. }
  1131. /^X\(\/\/\)$/{
  1132. s//\1/
  1133. q
  1134. }
  1135. /^X\(\/\).*/{
  1136. s//\1/
  1137. q
  1138. }
  1139. s/.*/./; q'`
  1140. srcdir=$ac_confdir
  1141. if test ! -r "$srcdir/$ac_unique_file"; then
  1142. srcdir=..
  1143. fi
  1144. else
  1145. ac_srcdir_defaulted=no
  1146. fi
  1147. if test ! -r "$srcdir/$ac_unique_file"; then
  1148. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1149. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1150. { (exit 1); exit 1; }; }
  1151. fi
  1152. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1153. ac_abs_confdir=`(
  1154. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1155. { (exit 1); exit 1; }; }
  1156. pwd)`
  1157. # When building in place, set srcdir=.
  1158. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1159. srcdir=.
  1160. fi
  1161. # Remove unnecessary trailing slashes from srcdir.
  1162. # Double slashes in file names in object file debugging info
  1163. # mess up M-x gdb in Emacs.
  1164. case $srcdir in
  1165. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1166. esac
  1167. for ac_var in $ac_precious_vars; do
  1168. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1169. eval ac_env_${ac_var}_value=\$${ac_var}
  1170. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1171. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1172. done
  1173. #
  1174. # Report the --help message.
  1175. #
  1176. if test "$ac_init_help" = "long"; then
  1177. # Omit some internal or obsolete options to make the list less imposing.
  1178. # This message is too long to be a string in the A/UX 3.1 sh.
  1179. cat <<_ACEOF
  1180. \`configure' configures aria2c 0.12.0 to adapt to many kinds of systems.
  1181. Usage: $0 [OPTION]... [VAR=VALUE]...
  1182. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1183. VAR=VALUE. See below for descriptions of some of the useful variables.
  1184. Defaults for the options are specified in brackets.
  1185. Configuration:
  1186. -h, --help display this help and exit
  1187. --help=short display options specific to this package
  1188. --help=recursive display the short help of all the included packages
  1189. -V, --version display version information and exit
  1190. -q, --quiet, --silent do not print \`checking...' messages
  1191. --cache-file=FILE cache test results in FILE [disabled]
  1192. -C, --config-cache alias for \`--cache-file=config.cache'
  1193. -n, --no-create do not create output files
  1194. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1195. Installation directories:
  1196. --prefix=PREFIX install architecture-independent files in PREFIX
  1197. [$ac_default_prefix]
  1198. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1199. [PREFIX]
  1200. By default, \`make install' will install all the files in
  1201. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1202. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1203. for instance \`--prefix=\$HOME'.
  1204. For better control, use the options below.
  1205. Fine tuning of the installation directories:
  1206. --bindir=DIR user executables [EPREFIX/bin]
  1207. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1208. --libexecdir=DIR program executables [EPREFIX/libexec]
  1209. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1210. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1211. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1212. --libdir=DIR object code libraries [EPREFIX/lib]
  1213. --includedir=DIR C header files [PREFIX/include]
  1214. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1215. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1216. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1217. --infodir=DIR info documentation [DATAROOTDIR/info]
  1218. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1219. --mandir=DIR man documentation [DATAROOTDIR/man]
  1220. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1221. --htmldir=DIR html documentation [DOCDIR]
  1222. --dvidir=DIR dvi documentation [DOCDIR]
  1223. --pdfdir=DIR pdf documentation [DOCDIR]
  1224. --psdir=DIR ps documentation [DOCDIR]
  1225. _ACEOF
  1226. cat <<\_ACEOF
  1227. Program names:
  1228. --program-prefix=PREFIX prepend PREFIX to installed program names
  1229. --program-suffix=SUFFIX append SUFFIX to installed program names
  1230. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1231. System types:
  1232. --build=BUILD configure for building on BUILD [guessed]
  1233. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1234. --target=TARGET configure for building compilers for TARGET [HOST]
  1235. _ACEOF
  1236. fi
  1237. if test -n "$ac_init_help"; then
  1238. case $ac_init_help in
  1239. short | recursive ) echo "Configuration of aria2c 0.12.0:";;
  1240. esac
  1241. cat <<\_ACEOF
  1242. Optional Features:
  1243. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1244. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1245. --enable-bittorrent enable BitTorrent support. Default: yes
  1246. --enable-metalink enable Metalink support. Default: yes
  1247. --disable-dependency-tracking speeds up one-time build
  1248. --enable-dependency-tracking do not reject slow dependency extractors
  1249. --disable-xmltest Do not try to compile and run a test LIBXML program
  1250. --disable-nls do not use Native Language Support
  1251. --enable-threads={posix|solaris|pth|win32}
  1252. specify multithreading API
  1253. --disable-threads build without multithread safety
  1254. --disable-rpath do not hardcode runtime library paths
  1255. Optional Packages:
  1256. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1257. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1258. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1259. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1260. --with-gnutls use gnutls library if installed. Default: yes
  1261. --with-openssl use openssl library if installed. Default: yes
  1262. --with-libxml2 use libxml2 library if installed. Default: yes
  1263. --with-libexpat use libexpat library if installed. Default: yes
  1264. --with-libares use ares library if installed. Default: yes
  1265. --with-libcares use c-ares library if installed. Default: yes
  1266. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1267. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1268. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1269. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1270. --with-libgcrypt-prefix=PFX
  1271. prefix where LIBGCRYPT is installed (optional)
  1272. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1273. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1274. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1275. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1276. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1277. --without-libpth-prefix don't search for libpth in includedir and libdir
  1278. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1279. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1280. --with-included-gettext use the GNU gettext library included here
  1281. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1282. --without-libintl-prefix don't search for libintl in includedir and libdir
  1283. Some influential environment variables:
  1284. CXX C++ compiler command
  1285. CXXFLAGS C++ compiler flags
  1286. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1287. nonstandard directory <lib dir>
  1288. LIBS libraries to pass to the linker, e.g. -l<library>
  1289. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1290. you have headers in a nonstandard directory <include dir>
  1291. CC C compiler command
  1292. CFLAGS C compiler flags
  1293. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1294. the first program found out of: `bison -y', `byacc', `yacc'.
  1295. YFLAGS The list of arguments that will be passed by default to $YACC.
  1296. This script will default YFLAGS to the empty string to avoid a
  1297. default value of `-d' given by some make applications.
  1298. CXXCPP C++ preprocessor
  1299. Use these variables to override the choices made by `configure' or to help
  1300. it to find libraries and programs with nonstandard names/locations.
  1301. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1302. _ACEOF
  1303. ac_status=$?
  1304. fi
  1305. if test "$ac_init_help" = "recursive"; then
  1306. # If there are subdirs, report their specific --help.
  1307. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1308. test -d "$ac_dir" || continue
  1309. ac_builddir=.
  1310. case "$ac_dir" in
  1311. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1312. *)
  1313. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1314. # A ".." for each directory in $ac_dir_suffix.
  1315. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1316. case $ac_top_builddir_sub in
  1317. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1318. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1319. esac ;;
  1320. esac
  1321. ac_abs_top_builddir=$ac_pwd
  1322. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1323. # for backward compatibility:
  1324. ac_top_builddir=$ac_top_build_prefix
  1325. case $srcdir in
  1326. .) # We are building in place.
  1327. ac_srcdir=.
  1328. ac_top_srcdir=$ac_top_builddir_sub
  1329. ac_abs_top_srcdir=$ac_pwd ;;
  1330. [\\/]* | ?:[\\/]* ) # Absolute name.
  1331. ac_srcdir=$srcdir$ac_dir_suffix;
  1332. ac_top_srcdir=$srcdir
  1333. ac_abs_top_srcdir=$srcdir ;;
  1334. *) # Relative name.
  1335. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1336. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1337. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1338. esac
  1339. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1340. cd "$ac_dir" || { ac_status=$?; continue; }
  1341. # Check for guested configure.
  1342. if test -f "$ac_srcdir/configure.gnu"; then
  1343. echo &&
  1344. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1345. elif test -f "$ac_srcdir/configure"; then
  1346. echo &&
  1347. $SHELL "$ac_srcdir/configure" --help=recursive
  1348. else
  1349. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1350. fi || ac_status=$?
  1351. cd "$ac_pwd" || { ac_status=$?; break; }
  1352. done
  1353. fi
  1354. test -n "$ac_init_help" && exit $ac_status
  1355. if $ac_init_version; then
  1356. cat <<\_ACEOF
  1357. aria2c configure 0.12.0
  1358. generated by GNU Autoconf 2.61
  1359. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1360. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1361. This configure script is free software; the Free Software Foundation
  1362. gives unlimited permission to copy, distribute and modify it.
  1363. _ACEOF
  1364. exit
  1365. fi
  1366. cat >config.log <<_ACEOF
  1367. This file contains any messages produced by compilers while
  1368. running configure, to aid debugging if configure makes a mistake.
  1369. It was created by aria2c $as_me 0.12.0, which was
  1370. generated by GNU Autoconf 2.61. Invocation command line was
  1371. $ $0 $@
  1372. _ACEOF
  1373. exec 5>>config.log
  1374. {
  1375. cat <<_ASUNAME
  1376. ## --------- ##
  1377. ## Platform. ##
  1378. ## --------- ##
  1379. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1380. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1381. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1382. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1383. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1384. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1385. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1386. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1387. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1388. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1389. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1390. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1391. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1392. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1393. _ASUNAME
  1394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1395. for as_dir in $PATH
  1396. do
  1397. IFS=$as_save_IFS
  1398. test -z "$as_dir" && as_dir=.
  1399. echo "PATH: $as_dir"
  1400. done
  1401. IFS=$as_save_IFS
  1402. } >&5
  1403. cat >&5 <<_ACEOF
  1404. ## ----------- ##
  1405. ## Core tests. ##
  1406. ## ----------- ##
  1407. _ACEOF
  1408. # Keep a trace of the command line.
  1409. # Strip out --no-create and --no-recursion so they do not pile up.
  1410. # Strip out --silent because we don't want to record it for future runs.
  1411. # Also quote any args containing shell meta-characters.
  1412. # Make two passes to allow for proper duplicate-argument suppression.
  1413. ac_configure_args=
  1414. ac_configure_args0=
  1415. ac_configure_args1=
  1416. ac_must_keep_next=false
  1417. for ac_pass in 1 2
  1418. do
  1419. for ac_arg
  1420. do
  1421. case $ac_arg in
  1422. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1423. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1424. | -silent | --silent | --silen | --sile | --sil)
  1425. continue ;;
  1426. *\'*)
  1427. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1428. esac
  1429. case $ac_pass in
  1430. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1431. 2)
  1432. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1433. if test $ac_must_keep_next = true; then
  1434. ac_must_keep_next=false # Got value, back to normal.
  1435. else
  1436. case $ac_arg in
  1437. *=* | --config-cache | -C | -disable-* | --disable-* \
  1438. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1439. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1440. | -with-* | --with-* | -without-* | --without-* | --x)
  1441. case "$ac_configure_args0 " in
  1442. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1443. esac
  1444. ;;
  1445. -* ) ac_must_keep_next=true ;;
  1446. esac
  1447. fi
  1448. ac_configure_args="$ac_configure_args '$ac_arg'"
  1449. ;;
  1450. esac
  1451. done
  1452. done
  1453. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1454. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1455. # When interrupted or exit'd, cleanup temporary files, and complete
  1456. # config.log. We remove comments because anyway the quotes in there
  1457. # would cause problems or look ugly.
  1458. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1459. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1460. trap 'exit_status=$?
  1461. # Save into config.log some information that might help in debugging.
  1462. {
  1463. echo
  1464. cat <<\_ASBOX
  1465. ## ---------------- ##
  1466. ## Cache variables. ##
  1467. ## ---------------- ##
  1468. _ASBOX
  1469. echo
  1470. # The following way of writing the cache mishandles newlines in values,
  1471. (
  1472. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1473. eval ac_val=\$$ac_var
  1474. case $ac_val in #(
  1475. *${as_nl}*)
  1476. case $ac_var in #(
  1477. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1478. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1479. esac
  1480. case $ac_var in #(
  1481. _ | IFS | as_nl) ;; #(
  1482. *) $as_unset $ac_var ;;
  1483. esac ;;
  1484. esac
  1485. done
  1486. (set) 2>&1 |
  1487. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1488. *${as_nl}ac_space=\ *)
  1489. sed -n \
  1490. "s/'\''/'\''\\\\'\'''\''/g;
  1491. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1492. ;; #(
  1493. *)
  1494. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1495. ;;
  1496. esac |
  1497. sort
  1498. )
  1499. echo
  1500. cat <<\_ASBOX
  1501. ## ----------------- ##
  1502. ## Output variables. ##
  1503. ## ----------------- ##
  1504. _ASBOX
  1505. echo
  1506. for ac_var in $ac_subst_vars
  1507. do
  1508. eval ac_val=\$$ac_var
  1509. case $ac_val in
  1510. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1511. esac
  1512. echo "$ac_var='\''$ac_val'\''"
  1513. done | sort
  1514. echo
  1515. if test -n "$ac_subst_files"; then
  1516. cat <<\_ASBOX
  1517. ## ------------------- ##
  1518. ## File substitutions. ##
  1519. ## ------------------- ##
  1520. _ASBOX
  1521. echo
  1522. for ac_var in $ac_subst_files
  1523. do
  1524. eval ac_val=\$$ac_var
  1525. case $ac_val in
  1526. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1527. esac
  1528. echo "$ac_var='\''$ac_val'\''"
  1529. done | sort
  1530. echo
  1531. fi
  1532. if test -s confdefs.h; then
  1533. cat <<\_ASBOX
  1534. ## ----------- ##
  1535. ## confdefs.h. ##
  1536. ## ----------- ##
  1537. _ASBOX
  1538. echo
  1539. cat confdefs.h
  1540. echo
  1541. fi
  1542. test "$ac_signal" != 0 &&
  1543. echo "$as_me: caught signal $ac_signal"
  1544. echo "$as_me: exit $exit_status"
  1545. } >&5
  1546. rm -f core *.core core.conftest.* &&
  1547. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1548. exit $exit_status
  1549. ' 0
  1550. for ac_signal in 1 2 13 15; do
  1551. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1552. done
  1553. ac_signal=0
  1554. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1555. rm -f -r conftest* confdefs.h
  1556. # Predefined preprocessor variables.
  1557. cat >>confdefs.h <<_ACEOF
  1558. #define PACKAGE_NAME "$PACKAGE_NAME"
  1559. _ACEOF
  1560. cat >>confdefs.h <<_ACEOF
  1561. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1562. _ACEOF
  1563. cat >>confdefs.h <<_ACEOF
  1564. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1565. _ACEOF
  1566. cat >>confdefs.h <<_ACEOF
  1567. #define PACKAGE_STRING "$PACKAGE_STRING"
  1568. _ACEOF
  1569. cat >>confdefs.h <<_ACEOF
  1570. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1571. _ACEOF
  1572. # Let the site file select an alternate cache file if it wants to.
  1573. # Prefer explicitly selected file to automatically selected ones.
  1574. if test -n "$CONFIG_SITE"; then
  1575. set x "$CONFIG_SITE"
  1576. elif test "x$prefix" != xNONE; then
  1577. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1578. else
  1579. set x "$ac_default_prefix/share/config.site" \
  1580. "$ac_default_prefix/etc/config.site"
  1581. fi
  1582. shift
  1583. for ac_site_file
  1584. do
  1585. if test -r "$ac_site_file"; then
  1586. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1587. echo "$as_me: loading site script $ac_site_file" >&6;}
  1588. sed 's/^/| /' "$ac_site_file" >&5
  1589. . "$ac_site_file"
  1590. fi
  1591. done
  1592. if test -r "$cache_file"; then
  1593. # Some versions of bash will fail to source /dev/null (special
  1594. # files actually), so we avoid doing that.
  1595. if test -f "$cache_file"; then
  1596. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1597. echo "$as_me: loading cache $cache_file" >&6;}
  1598. case $cache_file in
  1599. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1600. *) . "./$cache_file";;
  1601. esac
  1602. fi
  1603. else
  1604. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1605. echo "$as_me: creating cache $cache_file" >&6;}
  1606. >$cache_file
  1607. fi
  1608. gt_needs="$gt_needs "
  1609. # Check that the precious variables saved in the cache have kept the same
  1610. # value.
  1611. ac_cache_corrupted=false
  1612. for ac_var in $ac_precious_vars; do
  1613. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1614. eval ac_new_set=\$ac_env_${ac_var}_set
  1615. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1616. eval ac_new_val=\$ac_env_${ac_var}_value
  1617. case $ac_old_set,$ac_new_set in
  1618. set,)
  1619. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1620. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1621. ac_cache_corrupted=: ;;
  1622. ,set)
  1623. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1624. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1625. ac_cache_corrupted=: ;;
  1626. ,);;
  1627. *)
  1628. if test "x$ac_old_val" != "x$ac_new_val"; then
  1629. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1630. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1631. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1632. echo "$as_me: former value: $ac_old_val" >&2;}
  1633. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1634. echo "$as_me: current value: $ac_new_val" >&2;}
  1635. ac_cache_corrupted=:
  1636. fi;;
  1637. esac
  1638. # Pass precious variables to config.status.
  1639. if test "$ac_new_set" = set; then
  1640. case $ac_new_val in
  1641. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1642. *) ac_arg=$ac_var=$ac_new_val ;;
  1643. esac
  1644. case " $ac_configure_args " in
  1645. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1646. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1647. esac
  1648. fi
  1649. done
  1650. if $ac_cache_corrupted; then
  1651. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1652. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1653. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1654. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1655. { (exit 1); exit 1; }; }
  1656. fi
  1657. ac_ext=c
  1658. ac_cpp='$CPP $CPPFLAGS'
  1659. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1660. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1661. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1662. ac_aux_dir=
  1663. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1664. if test -f "$ac_dir/install-sh"; then
  1665. ac_aux_dir=$ac_dir
  1666. ac_install_sh="$ac_aux_dir/install-sh -c"
  1667. break
  1668. elif test -f "$ac_dir/install.sh"; then
  1669. ac_aux_dir=$ac_dir
  1670. ac_install_sh="$ac_aux_dir/install.sh -c"
  1671. break
  1672. elif test -f "$ac_dir/shtool"; then
  1673. ac_aux_dir=$ac_dir
  1674. ac_install_sh="$ac_aux_dir/shtool install -c"
  1675. break
  1676. fi
  1677. done
  1678. if test -z "$ac_aux_dir"; then
  1679. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1680. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1681. { (exit 1); exit 1; }; }
  1682. fi
  1683. # These three variables are undocumented and unsupported,
  1684. # and are intended to be withdrawn in a future Autoconf release.
  1685. # They can cause serious problems if a builder's source tree is in a directory
  1686. # whose full name contains unusual characters.
  1687. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1688. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1689. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1690. # Make sure we can run config.sub.
  1691. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1692. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1693. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1694. { (exit 1); exit 1; }; }
  1695. { echo "$as_me:$LINENO: checking build system type" >&5
  1696. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1697. if test "${ac_cv_build+set}" = set; then
  1698. echo $ECHO_N "(cached) $ECHO_C" >&6
  1699. else
  1700. ac_build_alias=$build_alias
  1701. test "x$ac_build_alias" = x &&
  1702. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1703. test "x$ac_build_alias" = x &&
  1704. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1705. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1706. { (exit 1); exit 1; }; }
  1707. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1708. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1709. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1710. { (exit 1); exit 1; }; }
  1711. fi
  1712. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1713. echo "${ECHO_T}$ac_cv_build" >&6; }
  1714. case $ac_cv_build in
  1715. *-*-*) ;;
  1716. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1717. echo "$as_me: error: invalid value of canonical build" >&2;}
  1718. { (exit 1); exit 1; }; };;
  1719. esac
  1720. build=$ac_cv_build
  1721. ac_save_IFS=$IFS; IFS='-'
  1722. set x $ac_cv_build
  1723. shift
  1724. build_cpu=$1
  1725. build_vendor=$2
  1726. shift; shift
  1727. # Remember, the first character of IFS is used to create $*,
  1728. # except with old shells:
  1729. build_os=$*
  1730. IFS=$ac_save_IFS
  1731. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1732. { echo "$as_me:$LINENO: checking host system type" >&5
  1733. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1734. if test "${ac_cv_host+set}" = set; then
  1735. echo $ECHO_N "(cached) $ECHO_C" >&6
  1736. else
  1737. if test "x$host_alias" = x; then
  1738. ac_cv_host=$ac_cv_build
  1739. else
  1740. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1741. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1742. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1743. { (exit 1); exit 1; }; }
  1744. fi
  1745. fi
  1746. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1747. echo "${ECHO_T}$ac_cv_host" >&6; }
  1748. case $ac_cv_host in
  1749. *-*-*) ;;
  1750. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1751. echo "$as_me: error: invalid value of canonical host" >&2;}
  1752. { (exit 1); exit 1; }; };;
  1753. esac
  1754. host=$ac_cv_host
  1755. ac_save_IFS=$IFS; IFS='-'
  1756. set x $ac_cv_host
  1757. shift
  1758. host_cpu=$1
  1759. host_vendor=$2
  1760. shift; shift
  1761. # Remember, the first character of IFS is used to create $*,
  1762. # except with old shells:
  1763. host_os=$*
  1764. IFS=$ac_save_IFS
  1765. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1766. { echo "$as_me:$LINENO: checking target system type" >&5
  1767. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1768. if test "${ac_cv_target+set}" = set; then
  1769. echo $ECHO_N "(cached) $ECHO_C" >&6
  1770. else
  1771. if test "x$target_alias" = x; then
  1772. ac_cv_target=$ac_cv_host
  1773. else
  1774. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1775. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1776. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1777. { (exit 1); exit 1; }; }
  1778. fi
  1779. fi
  1780. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1781. echo "${ECHO_T}$ac_cv_target" >&6; }
  1782. case $ac_cv_target in
  1783. *-*-*) ;;
  1784. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1785. echo "$as_me: error: invalid value of canonical target" >&2;}
  1786. { (exit 1); exit 1; }; };;
  1787. esac
  1788. target=$ac_cv_target
  1789. ac_save_IFS=$IFS; IFS='-'
  1790. set x $ac_cv_target
  1791. shift
  1792. target_cpu=$1
  1793. target_vendor=$2
  1794. shift; shift
  1795. # Remember, the first character of IFS is used to create $*,
  1796. # except with old shells:
  1797. target_os=$*
  1798. IFS=$ac_save_IFS
  1799. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1800. # The aliases save the names the user supplied, while $host etc.
  1801. # will get canonicalized.
  1802. test -n "$target_alias" &&
  1803. test "$program_prefix$program_suffix$program_transform_name" = \
  1804. NONENONEs,x,x, &&
  1805. program_prefix=${target_alias}-
  1806. am__api_version="1.9"
  1807. # Find a good install program. We prefer a C program (faster),
  1808. # so one script is as good as another. But avoid the broken or
  1809. # incompatible versions:
  1810. # SysV /etc/install, /usr/sbin/install
  1811. # SunOS /usr/etc/install
  1812. # IRIX /sbin/install
  1813. # AIX /bin/install
  1814. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1815. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1816. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1817. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1818. # OS/2's system install, which has a completely different semantic
  1819. # ./install, which can be erroneously created by make from ./install.sh.
  1820. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1821. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1822. if test -z "$INSTALL"; then
  1823. if test "${ac_cv_path_install+set}" = set; then
  1824. echo $ECHO_N "(cached) $ECHO_C" >&6
  1825. else
  1826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1827. for as_dir in $PATH
  1828. do
  1829. IFS=$as_save_IFS
  1830. test -z "$as_dir" && as_dir=.
  1831. # Account for people who put trailing slashes in PATH elements.
  1832. case $as_dir/ in
  1833. ./ | .// | /cC/* | \
  1834. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1835. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1836. /usr/ucb/* ) ;;
  1837. *)
  1838. # OSF1 and SCO ODT 3.0 have their own names for install.
  1839. # Don't use installbsd from OSF since it installs stuff as root
  1840. # by default.
  1841. for ac_prog in ginstall scoinst install; do
  1842. for ac_exec_ext in '' $ac_executable_extensions; do
  1843. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1844. if test $ac_prog = install &&
  1845. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1846. # AIX install. It has an incompatible calling convention.
  1847. :
  1848. elif test $ac_prog = install &&
  1849. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1850. # program-specific install script used by HP pwplus--don't use.
  1851. :
  1852. else
  1853. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1854. break 3
  1855. fi
  1856. fi
  1857. done
  1858. done
  1859. ;;
  1860. esac
  1861. done
  1862. IFS=$as_save_IFS
  1863. fi
  1864. if test "${ac_cv_path_install+set}" = set; then
  1865. INSTALL=$ac_cv_path_install
  1866. else
  1867. # As a last resort, use the slow shell script. Don't cache a
  1868. # value for INSTALL within a source directory, because that will
  1869. # break other packages using the cache if that directory is
  1870. # removed, or if the value is a relative name.
  1871. INSTALL=$ac_install_sh
  1872. fi
  1873. fi
  1874. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1875. echo "${ECHO_T}$INSTALL" >&6; }
  1876. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1877. # It thinks the first close brace ends the variable substitution.
  1878. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1879. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1880. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1881. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1882. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1883. # Just in case
  1884. sleep 1
  1885. echo timestamp > conftest.file
  1886. # Do `set' in a subshell so we don't clobber the current shell's
  1887. # arguments. Must try -L first in case configure is actually a
  1888. # symlink; some systems play weird games with the mod time of symlinks
  1889. # (eg FreeBSD returns the mod time of the symlink's containing
  1890. # directory).
  1891. if (
  1892. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1893. if test "$*" = "X"; then
  1894. # -L didn't work.
  1895. set X `ls -t $srcdir/configure conftest.file`
  1896. fi
  1897. rm -f conftest.file
  1898. if test "$*" != "X $srcdir/configure conftest.file" \
  1899. && test "$*" != "X conftest.file $srcdir/configure"; then
  1900. # If neither matched, then we have a broken ls. This can happen
  1901. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1902. # broken ls alias from the environment. This has actually
  1903. # happened. Such a system could not be considered "sane".
  1904. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1905. alias in your environment" >&5
  1906. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1907. alias in your environment" >&2;}
  1908. { (exit 1); exit 1; }; }
  1909. fi
  1910. test "$2" = conftest.file
  1911. )
  1912. then
  1913. # Ok.
  1914. :
  1915. else
  1916. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1917. Check your system clock" >&5
  1918. echo "$as_me: error: newly created file is older than distributed files!
  1919. Check your system clock" >&2;}
  1920. { (exit 1); exit 1; }; }
  1921. fi
  1922. { echo "$as_me:$LINENO: result: yes" >&5
  1923. echo "${ECHO_T}yes" >&6; }
  1924. test "$program_prefix" != NONE &&
  1925. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1926. # Use a double $ so make ignores it.
  1927. test "$program_suffix" != NONE &&
  1928. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1929. # Double any \ or $. echo might interpret backslashes.
  1930. # By default was `s,x,x', remove it if useless.
  1931. cat <<\_ACEOF >conftest.sed
  1932. s/[\\$]/&&/g;s/;s,x,x,$//
  1933. _ACEOF
  1934. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1935. rm -f conftest.sed
  1936. # expand $ac_aux_dir to an absolute path
  1937. am_aux_dir=`cd $ac_aux_dir && pwd`
  1938. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1939. # Use eval to expand $SHELL
  1940. if eval "$MISSING --run true"; then
  1941. am_missing_run="$MISSING --run "
  1942. else
  1943. am_missing_run=
  1944. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1945. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1946. fi
  1947. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1948. # We used to keeping the `.' as first argument, in order to
  1949. # allow $(mkdir_p) to be used without argument. As in
  1950. # $(mkdir_p) $(somedir)
  1951. # where $(somedir) is conditionally defined. However this is wrong
  1952. # for two reasons:
  1953. # 1. if the package is installed by a user who cannot write `.'
  1954. # make install will fail,
  1955. # 2. the above comment should most certainly read
  1956. # $(mkdir_p) $(DESTDIR)$(somedir)
  1957. # so it does not work when $(somedir) is undefined and
  1958. # $(DESTDIR) is not.
  1959. # To support the latter case, we have to write
  1960. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1961. # so the `.' trick is pointless.
  1962. mkdir_p='mkdir -p --'
  1963. else
  1964. # On NextStep and OpenStep, the `mkdir' command does not
  1965. # recognize any option. It will interpret all options as
  1966. # directories to create, and then abort because `.' already
  1967. # exists.
  1968. for d in ./-p ./--version;
  1969. do
  1970. test -d $d && rmdir $d
  1971. done
  1972. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1973. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1974. mkdir_p='$(mkinstalldirs)'
  1975. else
  1976. mkdir_p='$(install_sh) -d'
  1977. fi
  1978. fi
  1979. for ac_prog in gawk mawk nawk awk
  1980. do
  1981. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1982. set dummy $ac_prog; ac_word=$2
  1983. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1984. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1985. if test "${ac_cv_prog_AWK+set}" = set; then
  1986. echo $ECHO_N "(cached) $ECHO_C" >&6
  1987. else
  1988. if test -n "$AWK"; then
  1989. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1990. else
  1991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1992. for as_dir in $PATH
  1993. do
  1994. IFS=$as_save_IFS
  1995. test -z "$as_dir" && as_dir=.
  1996. for ac_exec_ext in '' $ac_executable_extensions; do
  1997. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1998. ac_cv_prog_AWK="$ac_prog"
  1999. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2000. break 2
  2001. fi
  2002. done
  2003. done
  2004. IFS=$as_save_IFS
  2005. fi
  2006. fi
  2007. AWK=$ac_cv_prog_AWK
  2008. if test -n "$AWK"; then
  2009. { echo "$as_me:$LINENO: result: $AWK" >&5
  2010. echo "${ECHO_T}$AWK" >&6; }
  2011. else
  2012. { echo "$as_me:$LINENO: result: no" >&5
  2013. echo "${ECHO_T}no" >&6; }
  2014. fi
  2015. test -n "$AWK" && break
  2016. done
  2017. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2018. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2019. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2020. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2021. echo $ECHO_N "(cached) $ECHO_C" >&6
  2022. else
  2023. cat >conftest.make <<\_ACEOF
  2024. SHELL = /bin/sh
  2025. all:
  2026. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2027. _ACEOF
  2028. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2029. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2030. *@@@%%%=?*=@@@%%%*)
  2031. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2032. *)
  2033. eval ac_cv_prog_make_${ac_make}_set=no;;
  2034. esac
  2035. rm -f conftest.make
  2036. fi
  2037. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2038. { echo "$as_me:$LINENO: result: yes" >&5
  2039. echo "${ECHO_T}yes" >&6; }
  2040. SET_MAKE=
  2041. else
  2042. { echo "$as_me:$LINENO: result: no" >&5
  2043. echo "${ECHO_T}no" >&6; }
  2044. SET_MAKE="MAKE=${MAKE-make}"
  2045. fi
  2046. rm -rf .tst 2>/dev/null
  2047. mkdir .tst 2>/dev/null
  2048. if test -d .tst; then
  2049. am__leading_dot=.
  2050. else
  2051. am__leading_dot=_
  2052. fi
  2053. rmdir .tst 2>/dev/null
  2054. # test to see if srcdir already configured
  2055. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2056. test -f $srcdir/config.status; then
  2057. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2058. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2059. { (exit 1); exit 1; }; }
  2060. fi
  2061. # test whether we have cygpath
  2062. if test -z "$CYGPATH_W"; then
  2063. if (cygpath --version) >/dev/null 2>/dev/null; then
  2064. CYGPATH_W='cygpath -w'
  2065. else
  2066. CYGPATH_W=echo
  2067. fi
  2068. fi
  2069. # Define the identity of the package.
  2070. PACKAGE='aria2c'
  2071. VERSION='0.12.0'
  2072. cat >>confdefs.h <<_ACEOF
  2073. #define PACKAGE "$PACKAGE"
  2074. _ACEOF
  2075. cat >>confdefs.h <<_ACEOF
  2076. #define VERSION "$VERSION"
  2077. _ACEOF
  2078. # Some tools Automake needs.
  2079. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2080. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2081. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2082. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2083. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2084. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2085. # Installed binaries are usually stripped using `strip' when the user
  2086. # run `make install-strip'. However `strip' might not be the right
  2087. # tool to use in cross-compilation environments, therefore Automake
  2088. # will honor the `STRIP' environment variable to overrule this program.
  2089. if test "$cross_compiling" != no; then
  2090. if test -n "$ac_tool_prefix"; then
  2091. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2092. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2093. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2094. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2095. if test "${ac_cv_prog_STRIP+set}" = set; then
  2096. echo $ECHO_N "(cached) $ECHO_C" >&6
  2097. else
  2098. if test -n "$STRIP"; then
  2099. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2100. else
  2101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2102. for as_dir in $PATH
  2103. do
  2104. IFS=$as_save_IFS
  2105. test -z "$as_dir" && as_dir=.
  2106. for ac_exec_ext in '' $ac_executable_extensions; do
  2107. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2108. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2109. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2110. break 2
  2111. fi
  2112. done
  2113. done
  2114. IFS=$as_save_IFS
  2115. fi
  2116. fi
  2117. STRIP=$ac_cv_prog_STRIP
  2118. if test -n "$STRIP"; then
  2119. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2120. echo "${ECHO_T}$STRIP" >&6; }
  2121. else
  2122. { echo "$as_me:$LINENO: result: no" >&5
  2123. echo "${ECHO_T}no" >&6; }
  2124. fi
  2125. fi
  2126. if test -z "$ac_cv_prog_STRIP"; then
  2127. ac_ct_STRIP=$STRIP
  2128. # Extract the first word of "strip", so it can be a program name with args.
  2129. set dummy strip; ac_word=$2
  2130. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2131. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2132. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2133. echo $ECHO_N "(cached) $ECHO_C" >&6
  2134. else
  2135. if test -n "$ac_ct_STRIP"; then
  2136. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2137. else
  2138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2139. for as_dir in $PATH
  2140. do
  2141. IFS=$as_save_IFS
  2142. test -z "$as_dir" && as_dir=.
  2143. for ac_exec_ext in '' $ac_executable_extensions; do
  2144. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2145. ac_cv_prog_ac_ct_STRIP="strip"
  2146. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2147. break 2
  2148. fi
  2149. done
  2150. done
  2151. IFS=$as_save_IFS
  2152. fi
  2153. fi
  2154. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2155. if test -n "$ac_ct_STRIP"; then
  2156. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2157. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2158. else
  2159. { echo "$as_me:$LINENO: result: no" >&5
  2160. echo "${ECHO_T}no" >&6; }
  2161. fi
  2162. if test "x$ac_ct_STRIP" = x; then
  2163. STRIP=":"
  2164. else
  2165. case $cross_compiling:$ac_tool_warned in
  2166. yes:)
  2167. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2168. whose name does not start with the host triplet. If you think this
  2169. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2170. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2171. whose name does not start with the host triplet. If you think this
  2172. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2173. ac_tool_warned=yes ;;
  2174. esac
  2175. STRIP=$ac_ct_STRIP
  2176. fi
  2177. else
  2178. STRIP="$ac_cv_prog_STRIP"
  2179. fi
  2180. fi
  2181. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2182. # We need awk for the "check" target. The system "awk" is bad on
  2183. # some platforms.
  2184. # Always define AMTAR for backward compatibility.
  2185. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2186. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2187. # Check whether --with-cppunit-prefix was given.
  2188. if test "${with_cppunit_prefix+set}" = set; then
  2189. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2190. else
  2191. cppunit_config_prefix=""
  2192. fi
  2193. # Check whether --with-cppunit-exec-prefix was given.
  2194. if test "${with_cppunit_exec_prefix+set}" = set; then
  2195. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2196. else
  2197. cppunit_config_exec_prefix=""
  2198. fi
  2199. if test x$cppunit_config_exec_prefix != x ; then
  2200. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2201. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2202. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2203. fi
  2204. fi
  2205. if test x$cppunit_config_prefix != x ; then
  2206. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2207. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2208. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2209. fi
  2210. fi
  2211. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2212. set dummy cppunit-config; ac_word=$2
  2213. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2214. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2215. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2216. echo $ECHO_N "(cached) $ECHO_C" >&6
  2217. else
  2218. case $CPPUNIT_CONFIG in
  2219. [\\/]* | ?:[\\/]*)
  2220. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2221. ;;
  2222. *)
  2223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2224. for as_dir in $PATH
  2225. do
  2226. IFS=$as_save_IFS
  2227. test -z "$as_dir" && as_dir=.
  2228. for ac_exec_ext in '' $ac_executable_extensions; do
  2229. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2230. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2231. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2232. break 2
  2233. fi
  2234. done
  2235. done
  2236. IFS=$as_save_IFS
  2237. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2238. ;;
  2239. esac
  2240. fi
  2241. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2242. if test -n "$CPPUNIT_CONFIG"; then
  2243. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2244. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2245. else
  2246. { echo "$as_me:$LINENO: result: no" >&5
  2247. echo "${ECHO_T}no" >&6; }
  2248. fi
  2249. cppunit_version_min=1.10.2
  2250. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2251. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2252. no_cppunit=""
  2253. if test "$CPPUNIT_CONFIG" = "no" ; then
  2254. { echo "$as_me:$LINENO: result: no" >&5
  2255. echo "${ECHO_T}no" >&6; }
  2256. no_cppunit=yes
  2257. else
  2258. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2259. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2260. cppunit_version=`$CPPUNIT_CONFIG --version`
  2261. cppunit_major_version=`echo $cppunit_version | \
  2262. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2263. cppunit_minor_version=`echo $cppunit_version | \
  2264. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2265. cppunit_micro_version=`echo $cppunit_version | \
  2266. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2267. cppunit_major_min=`echo $cppunit_version_min | \
  2268. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2269. if test "x${cppunit_major_min}" = "x" ; then
  2270. cppunit_major_min=0
  2271. fi
  2272. cppunit_minor_min=`echo $cppunit_version_min | \
  2273. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2274. if test "x${cppunit_minor_min}" = "x" ; then
  2275. cppunit_minor_min=0
  2276. fi
  2277. cppunit_micro_min=`echo $cppunit_version_min | \
  2278. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2279. if test "x${cppunit_micro_min}" = "x" ; then
  2280. cppunit_micro_min=0
  2281. fi
  2282. cppunit_version_proper=`expr \
  2283. $cppunit_major_version \> $cppunit_major_min \| \
  2284. $cppunit_major_version \= $cppunit_major_min \& \
  2285. $cppunit_minor_version \> $cppunit_minor_min \| \
  2286. $cppunit_major_version \= $cppunit_major_min \& \
  2287. $cppunit_minor_version \= $cppunit_minor_min \& \
  2288. $cppunit_micro_version \>= $cppunit_micro_min `
  2289. if test "$cppunit_version_proper" = "1" ; then
  2290. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2291. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2292. else
  2293. { echo "$as_me:$LINENO: result: no" >&5
  2294. echo "${ECHO_T}no" >&6; }
  2295. no_cppunit=yes
  2296. fi
  2297. fi
  2298. if test "x$no_cppunit" = x ; then
  2299. :
  2300. else
  2301. CPPUNIT_CFLAGS=""
  2302. CPPUNIT_LIBS=""
  2303. :
  2304. fi
  2305. ac_config_headers="$ac_config_headers config.h"
  2306. case "$target" in
  2307. *mingw*|*cygwin*)
  2308. WINSOCK_LIBS="-lws2_32"
  2309. ;;
  2310. esac
  2311. cat >>confdefs.h <<_ACEOF
  2312. #define TARGET "$target"
  2313. _ACEOF
  2314. # Set localedir
  2315. localedir=${datadir}/locale
  2316. # Checks for arguments.
  2317. # Check whether --with-gnutls was given.
  2318. if test "${with_gnutls+set}" = set; then
  2319. withval=$with_gnutls; with_gnutls=$withval
  2320. else
  2321. with_gnutls=yes
  2322. fi
  2323. # Check whether --with-openssl was given.
  2324. if test "${with_openssl+set}" = set; then
  2325. withval=$with_openssl; with_openssl=$withval
  2326. else
  2327. with_openssl=yes
  2328. fi
  2329. # Check whether --with-libxml2 was given.
  2330. if test "${with_libxml2+set}" = set; then
  2331. withval=$with_libxml2; with_libxml2=$withval
  2332. else
  2333. with_libxml2=yes
  2334. fi
  2335. # Check whether --with-libexpat was given.
  2336. if test "${with_libexpat+set}" = set; then
  2337. withval=$with_libexpat; with_libexpat=$withval
  2338. else
  2339. with_libexpat=yes
  2340. fi
  2341. # Check whether --with-libares was given.
  2342. if test "${with_libares+set}" = set; then
  2343. withval=$with_libares; with_libares=$withval
  2344. else
  2345. with_libares=yes
  2346. fi
  2347. # Check whether --with-libcares was given.
  2348. if test "${with_libcares+set}" = set; then
  2349. withval=$with_libcares; with_libcares=$withval
  2350. else
  2351. with_libcares=yes
  2352. fi
  2353. # Check whether --enable-bittorrent was given.
  2354. if test "${enable_bittorrent+set}" = set; then
  2355. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2356. else
  2357. enable_bittorrent=yes
  2358. fi
  2359. # Check whether --enable-metalink was given.
  2360. if test "${enable_metalink+set}" = set; then
  2361. enableval=$enable_metalink; enable_metalink=$enableval
  2362. else
  2363. enable_metalink=yes
  2364. fi
  2365. # Checks for programs.
  2366. ac_ext=cpp
  2367. ac_cpp='$CXXCPP $CPPFLAGS'
  2368. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2369. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2370. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2371. if test -z "$CXX"; then
  2372. if test -n "$CCC"; then
  2373. CXX=$CCC
  2374. else
  2375. if test -n "$ac_tool_prefix"; then
  2376. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2377. do
  2378. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2379. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2380. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2381. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2382. if test "${ac_cv_prog_CXX+set}" = set; then
  2383. echo $ECHO_N "(cached) $ECHO_C" >&6
  2384. else
  2385. if test -n "$CXX"; then
  2386. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2387. else
  2388. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2389. for as_dir in $PATH
  2390. do
  2391. IFS=$as_save_IFS
  2392. test -z "$as_dir" && as_dir=.
  2393. for ac_exec_ext in '' $ac_executable_extensions; do
  2394. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2395. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2396. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2397. break 2
  2398. fi
  2399. done
  2400. done
  2401. IFS=$as_save_IFS
  2402. fi
  2403. fi
  2404. CXX=$ac_cv_prog_CXX
  2405. if test -n "$CXX"; then
  2406. { echo "$as_me:$LINENO: result: $CXX" >&5
  2407. echo "${ECHO_T}$CXX" >&6; }
  2408. else
  2409. { echo "$as_me:$LINENO: result: no" >&5
  2410. echo "${ECHO_T}no" >&6; }
  2411. fi
  2412. test -n "$CXX" && break
  2413. done
  2414. fi
  2415. if test -z "$CXX"; then
  2416. ac_ct_CXX=$CXX
  2417. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2418. do
  2419. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2420. set dummy $ac_prog; ac_word=$2
  2421. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2422. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2423. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2424. echo $ECHO_N "(cached) $ECHO_C" >&6
  2425. else
  2426. if test -n "$ac_ct_CXX"; then
  2427. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2428. else
  2429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2430. for as_dir in $PATH
  2431. do
  2432. IFS=$as_save_IFS
  2433. test -z "$as_dir" && as_dir=.
  2434. for ac_exec_ext in '' $ac_executable_extensions; do
  2435. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2436. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2437. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2438. break 2
  2439. fi
  2440. done
  2441. done
  2442. IFS=$as_save_IFS
  2443. fi
  2444. fi
  2445. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2446. if test -n "$ac_ct_CXX"; then
  2447. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2448. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2449. else
  2450. { echo "$as_me:$LINENO: result: no" >&5
  2451. echo "${ECHO_T}no" >&6; }
  2452. fi
  2453. test -n "$ac_ct_CXX" && break
  2454. done
  2455. if test "x$ac_ct_CXX" = x; then
  2456. CXX="g++"
  2457. else
  2458. case $cross_compiling:$ac_tool_warned in
  2459. yes:)
  2460. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2461. whose name does not start with the host triplet. If you think this
  2462. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2463. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2464. whose name does not start with the host triplet. If you think this
  2465. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2466. ac_tool_warned=yes ;;
  2467. esac
  2468. CXX=$ac_ct_CXX
  2469. fi
  2470. fi
  2471. fi
  2472. fi
  2473. # Provide some information about the compiler.
  2474. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2475. ac_compiler=`set X $ac_compile; echo $2`
  2476. { (ac_try="$ac_compiler --version >&5"
  2477. case "(($ac_try" in
  2478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2479. *) ac_try_echo=$ac_try;;
  2480. esac
  2481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2482. (eval "$ac_compiler --version >&5") 2>&5
  2483. ac_status=$?
  2484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2485. (exit $ac_status); }
  2486. { (ac_try="$ac_compiler -v >&5"
  2487. case "(($ac_try" in
  2488. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2489. *) ac_try_echo=$ac_try;;
  2490. esac
  2491. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2492. (eval "$ac_compiler -v >&5") 2>&5
  2493. ac_status=$?
  2494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2495. (exit $ac_status); }
  2496. { (ac_try="$ac_compiler -V >&5"
  2497. case "(($ac_try" in
  2498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2499. *) ac_try_echo=$ac_try;;
  2500. esac
  2501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2502. (eval "$ac_compiler -V >&5") 2>&5
  2503. ac_status=$?
  2504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2505. (exit $ac_status); }
  2506. cat >conftest.$ac_ext <<_ACEOF
  2507. /* confdefs.h. */
  2508. _ACEOF
  2509. cat confdefs.h >>conftest.$ac_ext
  2510. cat >>conftest.$ac_ext <<_ACEOF
  2511. /* end confdefs.h. */
  2512. int
  2513. main ()
  2514. {
  2515. ;
  2516. return 0;
  2517. }
  2518. _ACEOF
  2519. ac_clean_files_save=$ac_clean_files
  2520. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2521. # Try to create an executable without -o first, disregard a.out.
  2522. # It will help us diagnose broken compilers, and finding out an intuition
  2523. # of exeext.
  2524. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2525. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2526. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2527. #
  2528. # List of possible output files, starting from the most likely.
  2529. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2530. # only as a last resort. b.out is created by i960 compilers.
  2531. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2532. #
  2533. # The IRIX 6 linker writes into existing files which may not be
  2534. # executable, retaining their permissions. Remove them first so a
  2535. # subsequent execution test works.
  2536. ac_rmfiles=
  2537. for ac_file in $ac_files
  2538. do
  2539. case $ac_file in
  2540. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2541. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2542. esac
  2543. done
  2544. rm -f $ac_rmfiles
  2545. if { (ac_try="$ac_link_default"
  2546. case "(($ac_try" in
  2547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2548. *) ac_try_echo=$ac_try;;
  2549. esac
  2550. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2551. (eval "$ac_link_default") 2>&5
  2552. ac_status=$?
  2553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2554. (exit $ac_status); }; then
  2555. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2556. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2557. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2558. # so that the user can short-circuit this test for compilers unknown to
  2559. # Autoconf.
  2560. for ac_file in $ac_files ''
  2561. do
  2562. test -f "$ac_file" || continue
  2563. case $ac_file in
  2564. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2565. ;;
  2566. [ab].out )
  2567. # We found the default executable, but exeext='' is most
  2568. # certainly right.
  2569. break;;
  2570. *.* )
  2571. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2572. then :; else
  2573. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2574. fi
  2575. # We set ac_cv_exeext here because the later test for it is not
  2576. # safe: cross compilers may not add the suffix if given an `-o'
  2577. # argument, so we may need to know it at that point already.
  2578. # Even if this section looks crufty: it has the advantage of
  2579. # actually working.
  2580. break;;
  2581. * )
  2582. break;;
  2583. esac
  2584. done
  2585. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2586. else
  2587. ac_file=''
  2588. fi
  2589. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2590. echo "${ECHO_T}$ac_file" >&6; }
  2591. if test -z "$ac_file"; then
  2592. echo "$as_me: failed program was:" >&5
  2593. sed 's/^/| /' conftest.$ac_ext >&5
  2594. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2595. See \`config.log' for more details." >&5
  2596. echo "$as_me: error: C++ compiler cannot create executables
  2597. See \`config.log' for more details." >&2;}
  2598. { (exit 77); exit 77; }; }
  2599. fi
  2600. ac_exeext=$ac_cv_exeext
  2601. # Check that the compiler produces executables we can run. If not, either
  2602. # the compiler is broken, or we cross compile.
  2603. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2604. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2605. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2606. # If not cross compiling, check that we can run a simple program.
  2607. if test "$cross_compiling" != yes; then
  2608. if { ac_try='./$ac_file'
  2609. { (case "(($ac_try" in
  2610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2611. *) ac_try_echo=$ac_try;;
  2612. esac
  2613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2614. (eval "$ac_try") 2>&5
  2615. ac_status=$?
  2616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2617. (exit $ac_status); }; }; then
  2618. cross_compiling=no
  2619. else
  2620. if test "$cross_compiling" = maybe; then
  2621. cross_compiling=yes
  2622. else
  2623. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2624. If you meant to cross compile, use \`--host'.
  2625. See \`config.log' for more details." >&5
  2626. echo "$as_me: error: cannot run C++ compiled programs.
  2627. If you meant to cross compile, use \`--host'.
  2628. See \`config.log' for more details." >&2;}
  2629. { (exit 1); exit 1; }; }
  2630. fi
  2631. fi
  2632. fi
  2633. { echo "$as_me:$LINENO: result: yes" >&5
  2634. echo "${ECHO_T}yes" >&6; }
  2635. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2636. ac_clean_files=$ac_clean_files_save
  2637. # Check that the compiler produces executables we can run. If not, either
  2638. # the compiler is broken, or we cross compile.
  2639. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2640. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2641. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2642. echo "${ECHO_T}$cross_compiling" >&6; }
  2643. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2644. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2645. if { (ac_try="$ac_link"
  2646. case "(($ac_try" in
  2647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2648. *) ac_try_echo=$ac_try;;
  2649. esac
  2650. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2651. (eval "$ac_link") 2>&5
  2652. ac_status=$?
  2653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2654. (exit $ac_status); }; then
  2655. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2656. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2657. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2658. # `rm'.
  2659. for ac_file in conftest.exe conftest conftest.*; do
  2660. test -f "$ac_file" || continue
  2661. case $ac_file in
  2662. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2663. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2664. break;;
  2665. * ) break;;
  2666. esac
  2667. done
  2668. else
  2669. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2670. See \`config.log' for more details." >&5
  2671. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2672. See \`config.log' for more details." >&2;}
  2673. { (exit 1); exit 1; }; }
  2674. fi
  2675. rm -f conftest$ac_cv_exeext
  2676. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2677. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2678. rm -f conftest.$ac_ext
  2679. EXEEXT=$ac_cv_exeext
  2680. ac_exeext=$EXEEXT
  2681. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2682. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2683. if test "${ac_cv_objext+set}" = set; then
  2684. echo $ECHO_N "(cached) $ECHO_C" >&6
  2685. else
  2686. cat >conftest.$ac_ext <<_ACEOF
  2687. /* confdefs.h. */
  2688. _ACEOF
  2689. cat confdefs.h >>conftest.$ac_ext
  2690. cat >>conftest.$ac_ext <<_ACEOF
  2691. /* end confdefs.h. */
  2692. int
  2693. main ()
  2694. {
  2695. ;
  2696. return 0;
  2697. }
  2698. _ACEOF
  2699. rm -f conftest.o conftest.obj
  2700. if { (ac_try="$ac_compile"
  2701. case "(($ac_try" in
  2702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2703. *) ac_try_echo=$ac_try;;
  2704. esac
  2705. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2706. (eval "$ac_compile") 2>&5
  2707. ac_status=$?
  2708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2709. (exit $ac_status); }; then
  2710. for ac_file in conftest.o conftest.obj conftest.*; do
  2711. test -f "$ac_file" || continue;
  2712. case $ac_file in
  2713. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2714. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2715. break;;
  2716. esac
  2717. done
  2718. else
  2719. echo "$as_me: failed program was:" >&5
  2720. sed 's/^/| /' conftest.$ac_ext >&5
  2721. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2722. See \`config.log' for more details." >&5
  2723. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2724. See \`config.log' for more details." >&2;}
  2725. { (exit 1); exit 1; }; }
  2726. fi
  2727. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2728. fi
  2729. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2730. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2731. OBJEXT=$ac_cv_objext
  2732. ac_objext=$OBJEXT
  2733. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2734. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2735. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2736. echo $ECHO_N "(cached) $ECHO_C" >&6
  2737. else
  2738. cat >conftest.$ac_ext <<_ACEOF
  2739. /* confdefs.h. */
  2740. _ACEOF
  2741. cat confdefs.h >>conftest.$ac_ext
  2742. cat >>conftest.$ac_ext <<_ACEOF
  2743. /* end confdefs.h. */
  2744. int
  2745. main ()
  2746. {
  2747. #ifndef __GNUC__
  2748. choke me
  2749. #endif
  2750. ;
  2751. return 0;
  2752. }
  2753. _ACEOF
  2754. rm -f conftest.$ac_objext
  2755. if { (ac_try="$ac_compile"
  2756. case "(($ac_try" in
  2757. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2758. *) ac_try_echo=$ac_try;;
  2759. esac
  2760. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2761. (eval "$ac_compile") 2>conftest.er1
  2762. ac_status=$?
  2763. grep -v '^ *+' conftest.er1 >conftest.err
  2764. rm -f conftest.er1
  2765. cat conftest.err >&5
  2766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2767. (exit $ac_status); } && {
  2768. test -z "$ac_cxx_werror_flag" ||
  2769. test ! -s conftest.err
  2770. } && test -s conftest.$ac_objext; then
  2771. ac_compiler_gnu=yes
  2772. else
  2773. echo "$as_me: failed program was:" >&5
  2774. sed 's/^/| /' conftest.$ac_ext >&5
  2775. ac_compiler_gnu=no
  2776. fi
  2777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2778. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2779. fi
  2780. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2781. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2782. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2783. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2784. ac_save_CXXFLAGS=$CXXFLAGS
  2785. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2786. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2787. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2788. echo $ECHO_N "(cached) $ECHO_C" >&6
  2789. else
  2790. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2791. ac_cxx_werror_flag=yes
  2792. ac_cv_prog_cxx_g=no
  2793. CXXFLAGS="-g"
  2794. cat >conftest.$ac_ext <<_ACEOF
  2795. /* confdefs.h. */
  2796. _ACEOF
  2797. cat confdefs.h >>conftest.$ac_ext
  2798. cat >>conftest.$ac_ext <<_ACEOF
  2799. /* end confdefs.h. */
  2800. int
  2801. main ()
  2802. {
  2803. ;
  2804. return 0;
  2805. }
  2806. _ACEOF
  2807. rm -f conftest.$ac_objext
  2808. if { (ac_try="$ac_compile"
  2809. case "(($ac_try" in
  2810. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2811. *) ac_try_echo=$ac_try;;
  2812. esac
  2813. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2814. (eval "$ac_compile") 2>conftest.er1
  2815. ac_status=$?
  2816. grep -v '^ *+' conftest.er1 >conftest.err
  2817. rm -f conftest.er1
  2818. cat conftest.err >&5
  2819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2820. (exit $ac_status); } && {
  2821. test -z "$ac_cxx_werror_flag" ||
  2822. test ! -s conftest.err
  2823. } && test -s conftest.$ac_objext; then
  2824. ac_cv_prog_cxx_g=yes
  2825. else
  2826. echo "$as_me: failed program was:" >&5
  2827. sed 's/^/| /' conftest.$ac_ext >&5
  2828. CXXFLAGS=""
  2829. cat >conftest.$ac_ext <<_ACEOF
  2830. /* confdefs.h. */
  2831. _ACEOF
  2832. cat confdefs.h >>conftest.$ac_ext
  2833. cat >>conftest.$ac_ext <<_ACEOF
  2834. /* end confdefs.h. */
  2835. int
  2836. main ()
  2837. {
  2838. ;
  2839. return 0;
  2840. }
  2841. _ACEOF
  2842. rm -f conftest.$ac_objext
  2843. if { (ac_try="$ac_compile"
  2844. case "(($ac_try" in
  2845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2846. *) ac_try_echo=$ac_try;;
  2847. esac
  2848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2849. (eval "$ac_compile") 2>conftest.er1
  2850. ac_status=$?
  2851. grep -v '^ *+' conftest.er1 >conftest.err
  2852. rm -f conftest.er1
  2853. cat conftest.err >&5
  2854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2855. (exit $ac_status); } && {
  2856. test -z "$ac_cxx_werror_flag" ||
  2857. test ! -s conftest.err
  2858. } && test -s conftest.$ac_objext; then
  2859. :
  2860. else
  2861. echo "$as_me: failed program was:" >&5
  2862. sed 's/^/| /' conftest.$ac_ext >&5
  2863. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2864. CXXFLAGS="-g"
  2865. cat >conftest.$ac_ext <<_ACEOF
  2866. /* confdefs.h. */
  2867. _ACEOF
  2868. cat confdefs.h >>conftest.$ac_ext
  2869. cat >>conftest.$ac_ext <<_ACEOF
  2870. /* end confdefs.h. */
  2871. int
  2872. main ()
  2873. {
  2874. ;
  2875. return 0;
  2876. }
  2877. _ACEOF
  2878. rm -f conftest.$ac_objext
  2879. if { (ac_try="$ac_compile"
  2880. case "(($ac_try" in
  2881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2882. *) ac_try_echo=$ac_try;;
  2883. esac
  2884. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2885. (eval "$ac_compile") 2>conftest.er1
  2886. ac_status=$?
  2887. grep -v '^ *+' conftest.er1 >conftest.err
  2888. rm -f conftest.er1
  2889. cat conftest.err >&5
  2890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2891. (exit $ac_status); } && {
  2892. test -z "$ac_cxx_werror_flag" ||
  2893. test ! -s conftest.err
  2894. } && test -s conftest.$ac_objext; then
  2895. ac_cv_prog_cxx_g=yes
  2896. else
  2897. echo "$as_me: failed program was:" >&5
  2898. sed 's/^/| /' conftest.$ac_ext >&5
  2899. fi
  2900. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2901. fi
  2902. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2903. fi
  2904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2905. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2906. fi
  2907. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2908. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2909. if test "$ac_test_CXXFLAGS" = set; then
  2910. CXXFLAGS=$ac_save_CXXFLAGS
  2911. elif test $ac_cv_prog_cxx_g = yes; then
  2912. if test "$GXX" = yes; then
  2913. CXXFLAGS="-g -O2"
  2914. else
  2915. CXXFLAGS="-g"
  2916. fi
  2917. else
  2918. if test "$GXX" = yes; then
  2919. CXXFLAGS="-O2"
  2920. else
  2921. CXXFLAGS=
  2922. fi
  2923. fi
  2924. ac_ext=c
  2925. ac_cpp='$CPP $CPPFLAGS'
  2926. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2927. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2928. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2929. DEPDIR="${am__leading_dot}deps"
  2930. ac_config_commands="$ac_config_commands depfiles"
  2931. am_make=${MAKE-make}
  2932. cat > confinc << 'END'
  2933. am__doit:
  2934. @echo done
  2935. .PHONY: am__doit
  2936. END
  2937. # If we don't find an include directive, just comment out the code.
  2938. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2939. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2940. am__include="#"
  2941. am__quote=
  2942. _am_result=none
  2943. # First try GNU make style include.
  2944. echo "include confinc" > confmf
  2945. # We grep out `Entering directory' and `Leaving directory'
  2946. # messages which can occur if `w' ends up in MAKEFLAGS.
  2947. # In particular we don't look at `^make:' because GNU make might
  2948. # be invoked under some other name (usually "gmake"), in which
  2949. # case it prints its new name instead of `make'.
  2950. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2951. am__include=include
  2952. am__quote=
  2953. _am_result=GNU
  2954. fi
  2955. # Now try BSD make style include.
  2956. if test "$am__include" = "#"; then
  2957. echo '.include "confinc"' > confmf
  2958. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2959. am__include=.include
  2960. am__quote="\""
  2961. _am_result=BSD
  2962. fi
  2963. fi
  2964. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2965. echo "${ECHO_T}$_am_result" >&6; }
  2966. rm -f confinc confmf
  2967. # Check whether --enable-dependency-tracking was given.
  2968. if test "${enable_dependency_tracking+set}" = set; then
  2969. enableval=$enable_dependency_tracking;
  2970. fi
  2971. if test "x$enable_dependency_tracking" != xno; then
  2972. am_depcomp="$ac_aux_dir/depcomp"
  2973. AMDEPBACKSLASH='\'
  2974. fi
  2975. if test "x$enable_dependency_tracking" != xno; then
  2976. AMDEP_TRUE=
  2977. AMDEP_FALSE='#'
  2978. else
  2979. AMDEP_TRUE='#'
  2980. AMDEP_FALSE=
  2981. fi
  2982. depcc="$CXX" am_compiler_list=
  2983. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2984. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2985. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2986. echo $ECHO_N "(cached) $ECHO_C" >&6
  2987. else
  2988. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2989. # We make a subdir and do the tests there. Otherwise we can end up
  2990. # making bogus files that we don't know about and never remove. For
  2991. # instance it was reported that on HP-UX the gcc test will end up
  2992. # making a dummy file named `D' -- because `-MD' means `put the output
  2993. # in D'.
  2994. mkdir conftest.dir
  2995. # Copy depcomp to subdir because otherwise we won't find it if we're
  2996. # using a relative directory.
  2997. cp "$am_depcomp" conftest.dir
  2998. cd conftest.dir
  2999. # We will build objects and dependencies in a subdirectory because
  3000. # it helps to detect inapplicable dependency modes. For instance
  3001. # both Tru64's cc and ICC support -MD to output dependencies as a
  3002. # side effect of compilation, but ICC will put the dependencies in
  3003. # the current directory while Tru64 will put them in the object
  3004. # directory.
  3005. mkdir sub
  3006. am_cv_CXX_dependencies_compiler_type=none
  3007. if test "$am_compiler_list" = ""; then
  3008. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3009. fi
  3010. for depmode in $am_compiler_list; do
  3011. # Setup a source with many dependencies, because some compilers
  3012. # like to wrap large dependency lists on column 80 (with \), and
  3013. # we should not choose a depcomp mode which is confused by this.
  3014. #
  3015. # We need to recreate these files for each test, as the compiler may
  3016. # overwrite some of them when testing with obscure command lines.
  3017. # This happens at least with the AIX C compiler.
  3018. : > sub/conftest.c
  3019. for i in 1 2 3 4 5 6; do
  3020. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3021. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3022. # Solaris 8's {/usr,}/bin/sh.
  3023. touch sub/conftst$i.h
  3024. done
  3025. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3026. case $depmode in
  3027. nosideeffect)
  3028. # after this tag, mechanisms are not by side-effect, so they'll
  3029. # only be used when explicitly requested
  3030. if test "x$enable_dependency_tracking" = xyes; then
  3031. continue
  3032. else
  3033. break
  3034. fi
  3035. ;;
  3036. none) break ;;
  3037. esac
  3038. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3039. # mode. It turns out that the SunPro C++ compiler does not properly
  3040. # handle `-M -o', and we need to detect this.
  3041. if depmode=$depmode \
  3042. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3043. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3044. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3045. >/dev/null 2>conftest.err &&
  3046. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3047. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3048. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3049. # icc doesn't choke on unknown options, it will just issue warnings
  3050. # or remarks (even with -Werror). So we grep stderr for any message
  3051. # that says an option was ignored or not supported.
  3052. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3053. # icc: Command line warning: ignoring option '-M'; no argument required
  3054. # The diagnosis changed in icc 8.0:
  3055. # icc: Command line remark: option '-MP' not supported
  3056. if (grep 'ignoring option' conftest.err ||
  3057. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3058. am_cv_CXX_dependencies_compiler_type=$depmode
  3059. break
  3060. fi
  3061. fi
  3062. done
  3063. cd ..
  3064. rm -rf conftest.dir
  3065. else
  3066. am_cv_CXX_dependencies_compiler_type=none
  3067. fi
  3068. fi
  3069. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3070. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3071. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3072. if
  3073. test "x$enable_dependency_tracking" != xno \
  3074. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3075. am__fastdepCXX_TRUE=
  3076. am__fastdepCXX_FALSE='#'
  3077. else
  3078. am__fastdepCXX_TRUE='#'
  3079. am__fastdepCXX_FALSE=
  3080. fi
  3081. ac_ext=c
  3082. ac_cpp='$CPP $CPPFLAGS'
  3083. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3084. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3085. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3086. if test -n "$ac_tool_prefix"; then
  3087. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3088. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3089. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3090. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3091. if test "${ac_cv_prog_CC+set}" = set; then
  3092. echo $ECHO_N "(cached) $ECHO_C" >&6
  3093. else
  3094. if test -n "$CC"; then
  3095. ac_cv_prog_CC="$CC" # Let the user override the test.
  3096. else
  3097. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3098. for as_dir in $PATH
  3099. do
  3100. IFS=$as_save_IFS
  3101. test -z "$as_dir" && as_dir=.
  3102. for ac_exec_ext in '' $ac_executable_extensions; do
  3103. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3104. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3105. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3106. break 2
  3107. fi
  3108. done
  3109. done
  3110. IFS=$as_save_IFS
  3111. fi
  3112. fi
  3113. CC=$ac_cv_prog_CC
  3114. if test -n "$CC"; then
  3115. { echo "$as_me:$LINENO: result: $CC" >&5
  3116. echo "${ECHO_T}$CC" >&6; }
  3117. else
  3118. { echo "$as_me:$LINENO: result: no" >&5
  3119. echo "${ECHO_T}no" >&6; }
  3120. fi
  3121. fi
  3122. if test -z "$ac_cv_prog_CC"; then
  3123. ac_ct_CC=$CC
  3124. # Extract the first word of "gcc", so it can be a program name with args.
  3125. set dummy gcc; ac_word=$2
  3126. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3127. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3128. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3129. echo $ECHO_N "(cached) $ECHO_C" >&6
  3130. else
  3131. if test -n "$ac_ct_CC"; then
  3132. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3133. else
  3134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3135. for as_dir in $PATH
  3136. do
  3137. IFS=$as_save_IFS
  3138. test -z "$as_dir" && as_dir=.
  3139. for ac_exec_ext in '' $ac_executable_extensions; do
  3140. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3141. ac_cv_prog_ac_ct_CC="gcc"
  3142. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3143. break 2
  3144. fi
  3145. done
  3146. done
  3147. IFS=$as_save_IFS
  3148. fi
  3149. fi
  3150. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3151. if test -n "$ac_ct_CC"; then
  3152. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3153. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3154. else
  3155. { echo "$as_me:$LINENO: result: no" >&5
  3156. echo "${ECHO_T}no" >&6; }
  3157. fi
  3158. if test "x$ac_ct_CC" = x; then
  3159. CC=""
  3160. else
  3161. case $cross_compiling:$ac_tool_warned in
  3162. yes:)
  3163. { echo "$as_me:$LINENO: 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." >&5
  3166. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3167. whose name does not start with the host triplet. If you think this
  3168. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3169. ac_tool_warned=yes ;;
  3170. esac
  3171. CC=$ac_ct_CC
  3172. fi
  3173. else
  3174. CC="$ac_cv_prog_CC"
  3175. fi
  3176. if test -z "$CC"; then
  3177. if test -n "$ac_tool_prefix"; then
  3178. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3179. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3180. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3181. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3182. if test "${ac_cv_prog_CC+set}" = set; then
  3183. echo $ECHO_N "(cached) $ECHO_C" >&6
  3184. else
  3185. if test -n "$CC"; then
  3186. ac_cv_prog_CC="$CC" # Let the user override the test.
  3187. else
  3188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3189. for as_dir in $PATH
  3190. do
  3191. IFS=$as_save_IFS
  3192. test -z "$as_dir" && as_dir=.
  3193. for ac_exec_ext in '' $ac_executable_extensions; do
  3194. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3195. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3196. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3197. break 2
  3198. fi
  3199. done
  3200. done
  3201. IFS=$as_save_IFS
  3202. fi
  3203. fi
  3204. CC=$ac_cv_prog_CC
  3205. if test -n "$CC"; then
  3206. { echo "$as_me:$LINENO: result: $CC" >&5
  3207. echo "${ECHO_T}$CC" >&6; }
  3208. else
  3209. { echo "$as_me:$LINENO: result: no" >&5
  3210. echo "${ECHO_T}no" >&6; }
  3211. fi
  3212. fi
  3213. fi
  3214. if test -z "$CC"; then
  3215. # Extract the first word of "cc", so it can be a program name with args.
  3216. set dummy cc; ac_word=$2
  3217. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3218. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3219. if test "${ac_cv_prog_CC+set}" = set; then
  3220. echo $ECHO_N "(cached) $ECHO_C" >&6
  3221. else
  3222. if test -n "$CC"; then
  3223. ac_cv_prog_CC="$CC" # Let the user override the test.
  3224. else
  3225. ac_prog_rejected=no
  3226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3227. for as_dir in $PATH
  3228. do
  3229. IFS=$as_save_IFS
  3230. test -z "$as_dir" && as_dir=.
  3231. for ac_exec_ext in '' $ac_executable_extensions; do
  3232. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3233. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3234. ac_prog_rejected=yes
  3235. continue
  3236. fi
  3237. ac_cv_prog_CC="cc"
  3238. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3239. break 2
  3240. fi
  3241. done
  3242. done
  3243. IFS=$as_save_IFS
  3244. if test $ac_prog_rejected = yes; then
  3245. # We found a bogon in the path, so make sure we never use it.
  3246. set dummy $ac_cv_prog_CC
  3247. shift
  3248. if test $# != 0; then
  3249. # We chose a different compiler from the bogus one.
  3250. # However, it has the same basename, so the bogon will be chosen
  3251. # first if we set CC to just the basename; use the full file name.
  3252. shift
  3253. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3254. fi
  3255. fi
  3256. fi
  3257. fi
  3258. CC=$ac_cv_prog_CC
  3259. if test -n "$CC"; then
  3260. { echo "$as_me:$LINENO: result: $CC" >&5
  3261. echo "${ECHO_T}$CC" >&6; }
  3262. else
  3263. { echo "$as_me:$LINENO: result: no" >&5
  3264. echo "${ECHO_T}no" >&6; }
  3265. fi
  3266. fi
  3267. if test -z "$CC"; then
  3268. if test -n "$ac_tool_prefix"; then
  3269. for ac_prog in cl.exe
  3270. do
  3271. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3272. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3273. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3274. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3275. if test "${ac_cv_prog_CC+set}" = set; then
  3276. echo $ECHO_N "(cached) $ECHO_C" >&6
  3277. else
  3278. if test -n "$CC"; then
  3279. ac_cv_prog_CC="$CC" # Let the user override the test.
  3280. else
  3281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3282. for as_dir in $PATH
  3283. do
  3284. IFS=$as_save_IFS
  3285. test -z "$as_dir" && as_dir=.
  3286. for ac_exec_ext in '' $ac_executable_extensions; do
  3287. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3288. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3289. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3290. break 2
  3291. fi
  3292. done
  3293. done
  3294. IFS=$as_save_IFS
  3295. fi
  3296. fi
  3297. CC=$ac_cv_prog_CC
  3298. if test -n "$CC"; then
  3299. { echo "$as_me:$LINENO: result: $CC" >&5
  3300. echo "${ECHO_T}$CC" >&6; }
  3301. else
  3302. { echo "$as_me:$LINENO: result: no" >&5
  3303. echo "${ECHO_T}no" >&6; }
  3304. fi
  3305. test -n "$CC" && break
  3306. done
  3307. fi
  3308. if test -z "$CC"; then
  3309. ac_ct_CC=$CC
  3310. for ac_prog in cl.exe
  3311. do
  3312. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3313. set dummy $ac_prog; ac_word=$2
  3314. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3315. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3316. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3317. echo $ECHO_N "(cached) $ECHO_C" >&6
  3318. else
  3319. if test -n "$ac_ct_CC"; then
  3320. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3321. else
  3322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3323. for as_dir in $PATH
  3324. do
  3325. IFS=$as_save_IFS
  3326. test -z "$as_dir" && as_dir=.
  3327. for ac_exec_ext in '' $ac_executable_extensions; do
  3328. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3329. ac_cv_prog_ac_ct_CC="$ac_prog"
  3330. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3331. break 2
  3332. fi
  3333. done
  3334. done
  3335. IFS=$as_save_IFS
  3336. fi
  3337. fi
  3338. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3339. if test -n "$ac_ct_CC"; then
  3340. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3341. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3342. else
  3343. { echo "$as_me:$LINENO: result: no" >&5
  3344. echo "${ECHO_T}no" >&6; }
  3345. fi
  3346. test -n "$ac_ct_CC" && break
  3347. done
  3348. if test "x$ac_ct_CC" = x; then
  3349. CC=""
  3350. else
  3351. case $cross_compiling:$ac_tool_warned in
  3352. yes:)
  3353. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3354. whose name does not start with the host triplet. If you think this
  3355. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3356. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3357. whose name does not start with the host triplet. If you think this
  3358. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3359. ac_tool_warned=yes ;;
  3360. esac
  3361. CC=$ac_ct_CC
  3362. fi
  3363. fi
  3364. fi
  3365. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3366. See \`config.log' for more details." >&5
  3367. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3368. See \`config.log' for more details." >&2;}
  3369. { (exit 1); exit 1; }; }
  3370. # Provide some information about the compiler.
  3371. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3372. ac_compiler=`set X $ac_compile; echo $2`
  3373. { (ac_try="$ac_compiler --version >&5"
  3374. case "(($ac_try" in
  3375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3376. *) ac_try_echo=$ac_try;;
  3377. esac
  3378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3379. (eval "$ac_compiler --version >&5") 2>&5
  3380. ac_status=$?
  3381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3382. (exit $ac_status); }
  3383. { (ac_try="$ac_compiler -v >&5"
  3384. case "(($ac_try" in
  3385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3386. *) ac_try_echo=$ac_try;;
  3387. esac
  3388. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3389. (eval "$ac_compiler -v >&5") 2>&5
  3390. ac_status=$?
  3391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392. (exit $ac_status); }
  3393. { (ac_try="$ac_compiler -V >&5"
  3394. case "(($ac_try" in
  3395. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3396. *) ac_try_echo=$ac_try;;
  3397. esac
  3398. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3399. (eval "$ac_compiler -V >&5") 2>&5
  3400. ac_status=$?
  3401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3402. (exit $ac_status); }
  3403. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3404. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3405. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3406. echo $ECHO_N "(cached) $ECHO_C" >&6
  3407. else
  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. int
  3415. main ()
  3416. {
  3417. #ifndef __GNUC__
  3418. choke me
  3419. #endif
  3420. ;
  3421. return 0;
  3422. }
  3423. _ACEOF
  3424. rm -f conftest.$ac_objext
  3425. if { (ac_try="$ac_compile"
  3426. case "(($ac_try" in
  3427. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3428. *) ac_try_echo=$ac_try;;
  3429. esac
  3430. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3431. (eval "$ac_compile") 2>conftest.er1
  3432. ac_status=$?
  3433. grep -v '^ *+' conftest.er1 >conftest.err
  3434. rm -f conftest.er1
  3435. cat conftest.err >&5
  3436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3437. (exit $ac_status); } && {
  3438. test -z "$ac_c_werror_flag" ||
  3439. test ! -s conftest.err
  3440. } && test -s conftest.$ac_objext; then
  3441. ac_compiler_gnu=yes
  3442. else
  3443. echo "$as_me: failed program was:" >&5
  3444. sed 's/^/| /' conftest.$ac_ext >&5
  3445. ac_compiler_gnu=no
  3446. fi
  3447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3448. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3449. fi
  3450. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3451. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3452. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3453. ac_test_CFLAGS=${CFLAGS+set}
  3454. ac_save_CFLAGS=$CFLAGS
  3455. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3456. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3457. if test "${ac_cv_prog_cc_g+set}" = set; then
  3458. echo $ECHO_N "(cached) $ECHO_C" >&6
  3459. else
  3460. ac_save_c_werror_flag=$ac_c_werror_flag
  3461. ac_c_werror_flag=yes
  3462. ac_cv_prog_cc_g=no
  3463. CFLAGS="-g"
  3464. cat >conftest.$ac_ext <<_ACEOF
  3465. /* confdefs.h. */
  3466. _ACEOF
  3467. cat confdefs.h >>conftest.$ac_ext
  3468. cat >>conftest.$ac_ext <<_ACEOF
  3469. /* end confdefs.h. */
  3470. int
  3471. main ()
  3472. {
  3473. ;
  3474. return 0;
  3475. }
  3476. _ACEOF
  3477. rm -f conftest.$ac_objext
  3478. if { (ac_try="$ac_compile"
  3479. case "(($ac_try" in
  3480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3481. *) ac_try_echo=$ac_try;;
  3482. esac
  3483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3484. (eval "$ac_compile") 2>conftest.er1
  3485. ac_status=$?
  3486. grep -v '^ *+' conftest.er1 >conftest.err
  3487. rm -f conftest.er1
  3488. cat conftest.err >&5
  3489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3490. (exit $ac_status); } && {
  3491. test -z "$ac_c_werror_flag" ||
  3492. test ! -s conftest.err
  3493. } && test -s conftest.$ac_objext; then
  3494. ac_cv_prog_cc_g=yes
  3495. else
  3496. echo "$as_me: failed program was:" >&5
  3497. sed 's/^/| /' conftest.$ac_ext >&5
  3498. CFLAGS=""
  3499. cat >conftest.$ac_ext <<_ACEOF
  3500. /* confdefs.h. */
  3501. _ACEOF
  3502. cat confdefs.h >>conftest.$ac_ext
  3503. cat >>conftest.$ac_ext <<_ACEOF
  3504. /* end confdefs.h. */
  3505. int
  3506. main ()
  3507. {
  3508. ;
  3509. return 0;
  3510. }
  3511. _ACEOF
  3512. rm -f conftest.$ac_objext
  3513. if { (ac_try="$ac_compile"
  3514. case "(($ac_try" in
  3515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3516. *) ac_try_echo=$ac_try;;
  3517. esac
  3518. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3519. (eval "$ac_compile") 2>conftest.er1
  3520. ac_status=$?
  3521. grep -v '^ *+' conftest.er1 >conftest.err
  3522. rm -f conftest.er1
  3523. cat conftest.err >&5
  3524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3525. (exit $ac_status); } && {
  3526. test -z "$ac_c_werror_flag" ||
  3527. test ! -s conftest.err
  3528. } && test -s conftest.$ac_objext; then
  3529. :
  3530. else
  3531. echo "$as_me: failed program was:" >&5
  3532. sed 's/^/| /' conftest.$ac_ext >&5
  3533. ac_c_werror_flag=$ac_save_c_werror_flag
  3534. CFLAGS="-g"
  3535. cat >conftest.$ac_ext <<_ACEOF
  3536. /* confdefs.h. */
  3537. _ACEOF
  3538. cat confdefs.h >>conftest.$ac_ext
  3539. cat >>conftest.$ac_ext <<_ACEOF
  3540. /* end confdefs.h. */
  3541. int
  3542. main ()
  3543. {
  3544. ;
  3545. return 0;
  3546. }
  3547. _ACEOF
  3548. rm -f conftest.$ac_objext
  3549. if { (ac_try="$ac_compile"
  3550. case "(($ac_try" in
  3551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3552. *) ac_try_echo=$ac_try;;
  3553. esac
  3554. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3555. (eval "$ac_compile") 2>conftest.er1
  3556. ac_status=$?
  3557. grep -v '^ *+' conftest.er1 >conftest.err
  3558. rm -f conftest.er1
  3559. cat conftest.err >&5
  3560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3561. (exit $ac_status); } && {
  3562. test -z "$ac_c_werror_flag" ||
  3563. test ! -s conftest.err
  3564. } && test -s conftest.$ac_objext; then
  3565. ac_cv_prog_cc_g=yes
  3566. else
  3567. echo "$as_me: failed program was:" >&5
  3568. sed 's/^/| /' conftest.$ac_ext >&5
  3569. fi
  3570. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3571. fi
  3572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3573. fi
  3574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3575. ac_c_werror_flag=$ac_save_c_werror_flag
  3576. fi
  3577. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3578. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3579. if test "$ac_test_CFLAGS" = set; then
  3580. CFLAGS=$ac_save_CFLAGS
  3581. elif test $ac_cv_prog_cc_g = yes; then
  3582. if test "$GCC" = yes; then
  3583. CFLAGS="-g -O2"
  3584. else
  3585. CFLAGS="-g"
  3586. fi
  3587. else
  3588. if test "$GCC" = yes; then
  3589. CFLAGS="-O2"
  3590. else
  3591. CFLAGS=
  3592. fi
  3593. fi
  3594. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3595. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3596. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3597. echo $ECHO_N "(cached) $ECHO_C" >&6
  3598. else
  3599. ac_cv_prog_cc_c89=no
  3600. ac_save_CC=$CC
  3601. cat >conftest.$ac_ext <<_ACEOF
  3602. /* confdefs.h. */
  3603. _ACEOF
  3604. cat confdefs.h >>conftest.$ac_ext
  3605. cat >>conftest.$ac_ext <<_ACEOF
  3606. /* end confdefs.h. */
  3607. #include <stdarg.h>
  3608. #include <stdio.h>
  3609. #include <sys/types.h>
  3610. #include <sys/stat.h>
  3611. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3612. struct buf { int x; };
  3613. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3614. static char *e (p, i)
  3615. char **p;
  3616. int i;
  3617. {
  3618. return p[i];
  3619. }
  3620. static char *f (char * (*g) (char **, int), char **p, ...)
  3621. {
  3622. char *s;
  3623. va_list v;
  3624. va_start (v,p);
  3625. s = g (p, va_arg (v,int));
  3626. va_end (v);
  3627. return s;
  3628. }
  3629. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3630. function prototypes and stuff, but not '\xHH' hex character constants.
  3631. These don't provoke an error unfortunately, instead are silently treated
  3632. as 'x'. The following induces an error, until -std is added to get
  3633. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3634. array size at least. It's necessary to write '\x00'==0 to get something
  3635. that's true only with -std. */
  3636. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3637. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3638. inside strings and character constants. */
  3639. #define FOO(x) 'x'
  3640. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3641. int test (int i, double x);
  3642. struct s1 {int (*f) (int a);};
  3643. struct s2 {int (*f) (double a);};
  3644. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3645. int argc;
  3646. char **argv;
  3647. int
  3648. main ()
  3649. {
  3650. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3651. ;
  3652. return 0;
  3653. }
  3654. _ACEOF
  3655. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3656. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3657. do
  3658. CC="$ac_save_CC $ac_arg"
  3659. rm -f conftest.$ac_objext
  3660. if { (ac_try="$ac_compile"
  3661. case "(($ac_try" in
  3662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3663. *) ac_try_echo=$ac_try;;
  3664. esac
  3665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3666. (eval "$ac_compile") 2>conftest.er1
  3667. ac_status=$?
  3668. grep -v '^ *+' conftest.er1 >conftest.err
  3669. rm -f conftest.er1
  3670. cat conftest.err >&5
  3671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3672. (exit $ac_status); } && {
  3673. test -z "$ac_c_werror_flag" ||
  3674. test ! -s conftest.err
  3675. } && test -s conftest.$ac_objext; then
  3676. ac_cv_prog_cc_c89=$ac_arg
  3677. else
  3678. echo "$as_me: failed program was:" >&5
  3679. sed 's/^/| /' conftest.$ac_ext >&5
  3680. fi
  3681. rm -f core conftest.err conftest.$ac_objext
  3682. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3683. done
  3684. rm -f conftest.$ac_ext
  3685. CC=$ac_save_CC
  3686. fi
  3687. # AC_CACHE_VAL
  3688. case "x$ac_cv_prog_cc_c89" in
  3689. x)
  3690. { echo "$as_me:$LINENO: result: none needed" >&5
  3691. echo "${ECHO_T}none needed" >&6; } ;;
  3692. xno)
  3693. { echo "$as_me:$LINENO: result: unsupported" >&5
  3694. echo "${ECHO_T}unsupported" >&6; } ;;
  3695. *)
  3696. CC="$CC $ac_cv_prog_cc_c89"
  3697. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3698. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3699. esac
  3700. ac_ext=c
  3701. ac_cpp='$CPP $CPPFLAGS'
  3702. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3703. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3704. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3705. depcc="$CC" am_compiler_list=
  3706. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3707. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3708. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3709. echo $ECHO_N "(cached) $ECHO_C" >&6
  3710. else
  3711. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3712. # We make a subdir and do the tests there. Otherwise we can end up
  3713. # making bogus files that we don't know about and never remove. For
  3714. # instance it was reported that on HP-UX the gcc test will end up
  3715. # making a dummy file named `D' -- because `-MD' means `put the output
  3716. # in D'.
  3717. mkdir conftest.dir
  3718. # Copy depcomp to subdir because otherwise we won't find it if we're
  3719. # using a relative directory.
  3720. cp "$am_depcomp" conftest.dir
  3721. cd conftest.dir
  3722. # We will build objects and dependencies in a subdirectory because
  3723. # it helps to detect inapplicable dependency modes. For instance
  3724. # both Tru64's cc and ICC support -MD to output dependencies as a
  3725. # side effect of compilation, but ICC will put the dependencies in
  3726. # the current directory while Tru64 will put them in the object
  3727. # directory.
  3728. mkdir sub
  3729. am_cv_CC_dependencies_compiler_type=none
  3730. if test "$am_compiler_list" = ""; then
  3731. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3732. fi
  3733. for depmode in $am_compiler_list; do
  3734. # Setup a source with many dependencies, because some compilers
  3735. # like to wrap large dependency lists on column 80 (with \), and
  3736. # we should not choose a depcomp mode which is confused by this.
  3737. #
  3738. # We need to recreate these files for each test, as the compiler may
  3739. # overwrite some of them when testing with obscure command lines.
  3740. # This happens at least with the AIX C compiler.
  3741. : > sub/conftest.c
  3742. for i in 1 2 3 4 5 6; do
  3743. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3744. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3745. # Solaris 8's {/usr,}/bin/sh.
  3746. touch sub/conftst$i.h
  3747. done
  3748. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3749. case $depmode in
  3750. nosideeffect)
  3751. # after this tag, mechanisms are not by side-effect, so they'll
  3752. # only be used when explicitly requested
  3753. if test "x$enable_dependency_tracking" = xyes; then
  3754. continue
  3755. else
  3756. break
  3757. fi
  3758. ;;
  3759. none) break ;;
  3760. esac
  3761. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3762. # mode. It turns out that the SunPro C++ compiler does not properly
  3763. # handle `-M -o', and we need to detect this.
  3764. if depmode=$depmode \
  3765. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3766. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3767. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3768. >/dev/null 2>conftest.err &&
  3769. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3770. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3771. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3772. # icc doesn't choke on unknown options, it will just issue warnings
  3773. # or remarks (even with -Werror). So we grep stderr for any message
  3774. # that says an option was ignored or not supported.
  3775. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3776. # icc: Command line warning: ignoring option '-M'; no argument required
  3777. # The diagnosis changed in icc 8.0:
  3778. # icc: Command line remark: option '-MP' not supported
  3779. if (grep 'ignoring option' conftest.err ||
  3780. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3781. am_cv_CC_dependencies_compiler_type=$depmode
  3782. break
  3783. fi
  3784. fi
  3785. done
  3786. cd ..
  3787. rm -rf conftest.dir
  3788. else
  3789. am_cv_CC_dependencies_compiler_type=none
  3790. fi
  3791. fi
  3792. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3793. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3794. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3795. if
  3796. test "x$enable_dependency_tracking" != xno \
  3797. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3798. am__fastdepCC_TRUE=
  3799. am__fastdepCC_FALSE='#'
  3800. else
  3801. am__fastdepCC_TRUE='#'
  3802. am__fastdepCC_FALSE=
  3803. fi
  3804. # Find a good install program. We prefer a C program (faster),
  3805. # so one script is as good as another. But avoid the broken or
  3806. # incompatible versions:
  3807. # SysV /etc/install, /usr/sbin/install
  3808. # SunOS /usr/etc/install
  3809. # IRIX /sbin/install
  3810. # AIX /bin/install
  3811. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3812. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3813. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3814. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3815. # OS/2's system install, which has a completely different semantic
  3816. # ./install, which can be erroneously created by make from ./install.sh.
  3817. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3818. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3819. if test -z "$INSTALL"; then
  3820. if test "${ac_cv_path_install+set}" = set; then
  3821. echo $ECHO_N "(cached) $ECHO_C" >&6
  3822. else
  3823. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3824. for as_dir in $PATH
  3825. do
  3826. IFS=$as_save_IFS
  3827. test -z "$as_dir" && as_dir=.
  3828. # Account for people who put trailing slashes in PATH elements.
  3829. case $as_dir/ in
  3830. ./ | .// | /cC/* | \
  3831. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3832. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3833. /usr/ucb/* ) ;;
  3834. *)
  3835. # OSF1 and SCO ODT 3.0 have their own names for install.
  3836. # Don't use installbsd from OSF since it installs stuff as root
  3837. # by default.
  3838. for ac_prog in ginstall scoinst install; do
  3839. for ac_exec_ext in '' $ac_executable_extensions; do
  3840. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3841. if test $ac_prog = install &&
  3842. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3843. # AIX install. It has an incompatible calling convention.
  3844. :
  3845. elif test $ac_prog = install &&
  3846. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3847. # program-specific install script used by HP pwplus--don't use.
  3848. :
  3849. else
  3850. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3851. break 3
  3852. fi
  3853. fi
  3854. done
  3855. done
  3856. ;;
  3857. esac
  3858. done
  3859. IFS=$as_save_IFS
  3860. fi
  3861. if test "${ac_cv_path_install+set}" = set; then
  3862. INSTALL=$ac_cv_path_install
  3863. else
  3864. # As a last resort, use the slow shell script. Don't cache a
  3865. # value for INSTALL within a source directory, because that will
  3866. # break other packages using the cache if that directory is
  3867. # removed, or if the value is a relative name.
  3868. INSTALL=$ac_install_sh
  3869. fi
  3870. fi
  3871. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3872. echo "${ECHO_T}$INSTALL" >&6; }
  3873. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3874. # It thinks the first close brace ends the variable substitution.
  3875. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3876. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3877. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3878. if test -n "$ac_tool_prefix"; then
  3879. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3880. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3881. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3882. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3883. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3884. echo $ECHO_N "(cached) $ECHO_C" >&6
  3885. else
  3886. if test -n "$RANLIB"; then
  3887. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3888. else
  3889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3890. for as_dir in $PATH
  3891. do
  3892. IFS=$as_save_IFS
  3893. test -z "$as_dir" && as_dir=.
  3894. for ac_exec_ext in '' $ac_executable_extensions; do
  3895. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3896. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3897. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3898. break 2
  3899. fi
  3900. done
  3901. done
  3902. IFS=$as_save_IFS
  3903. fi
  3904. fi
  3905. RANLIB=$ac_cv_prog_RANLIB
  3906. if test -n "$RANLIB"; then
  3907. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3908. echo "${ECHO_T}$RANLIB" >&6; }
  3909. else
  3910. { echo "$as_me:$LINENO: result: no" >&5
  3911. echo "${ECHO_T}no" >&6; }
  3912. fi
  3913. fi
  3914. if test -z "$ac_cv_prog_RANLIB"; then
  3915. ac_ct_RANLIB=$RANLIB
  3916. # Extract the first word of "ranlib", so it can be a program name with args.
  3917. set dummy ranlib; ac_word=$2
  3918. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3919. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3920. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3921. echo $ECHO_N "(cached) $ECHO_C" >&6
  3922. else
  3923. if test -n "$ac_ct_RANLIB"; then
  3924. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3925. else
  3926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3927. for as_dir in $PATH
  3928. do
  3929. IFS=$as_save_IFS
  3930. test -z "$as_dir" && as_dir=.
  3931. for ac_exec_ext in '' $ac_executable_extensions; do
  3932. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3933. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3934. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3935. break 2
  3936. fi
  3937. done
  3938. done
  3939. IFS=$as_save_IFS
  3940. fi
  3941. fi
  3942. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3943. if test -n "$ac_ct_RANLIB"; then
  3944. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3945. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3946. else
  3947. { echo "$as_me:$LINENO: result: no" >&5
  3948. echo "${ECHO_T}no" >&6; }
  3949. fi
  3950. if test "x$ac_ct_RANLIB" = x; then
  3951. RANLIB=":"
  3952. else
  3953. case $cross_compiling:$ac_tool_warned in
  3954. yes:)
  3955. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3956. whose name does not start with the host triplet. If you think this
  3957. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3958. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3959. whose name does not start with the host triplet. If you think this
  3960. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3961. ac_tool_warned=yes ;;
  3962. esac
  3963. RANLIB=$ac_ct_RANLIB
  3964. fi
  3965. else
  3966. RANLIB="$ac_cv_prog_RANLIB"
  3967. fi
  3968. for ac_prog in 'bison -y' byacc
  3969. do
  3970. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3971. set dummy $ac_prog; ac_word=$2
  3972. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3973. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3974. if test "${ac_cv_prog_YACC+set}" = set; then
  3975. echo $ECHO_N "(cached) $ECHO_C" >&6
  3976. else
  3977. if test -n "$YACC"; then
  3978. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3979. else
  3980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3981. for as_dir in $PATH
  3982. do
  3983. IFS=$as_save_IFS
  3984. test -z "$as_dir" && as_dir=.
  3985. for ac_exec_ext in '' $ac_executable_extensions; do
  3986. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3987. ac_cv_prog_YACC="$ac_prog"
  3988. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3989. break 2
  3990. fi
  3991. done
  3992. done
  3993. IFS=$as_save_IFS
  3994. fi
  3995. fi
  3996. YACC=$ac_cv_prog_YACC
  3997. if test -n "$YACC"; then
  3998. { echo "$as_me:$LINENO: result: $YACC" >&5
  3999. echo "${ECHO_T}$YACC" >&6; }
  4000. else
  4001. { echo "$as_me:$LINENO: result: no" >&5
  4002. echo "${ECHO_T}no" >&6; }
  4003. fi
  4004. test -n "$YACC" && break
  4005. done
  4006. test -n "$YACC" || YACC="yacc"
  4007. # Setting language choice
  4008. ac_ext=cpp
  4009. ac_cpp='$CXXCPP $CPPFLAGS'
  4010. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4011. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4012. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4013. # Check for GNU library
  4014. cat >>confdefs.h <<\_ACEOF
  4015. #define _GNU_SOURCE 1
  4016. _ACEOF
  4017. # Enable system extensions
  4018. ac_ext=cpp
  4019. ac_cpp='$CXXCPP $CPPFLAGS'
  4020. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4021. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4022. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4023. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4024. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4025. if test -z "$CXXCPP"; then
  4026. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4027. echo $ECHO_N "(cached) $ECHO_C" >&6
  4028. else
  4029. # Double quotes because CXXCPP needs to be expanded
  4030. for CXXCPP in "$CXX -E" "/lib/cpp"
  4031. do
  4032. ac_preproc_ok=false
  4033. for ac_cxx_preproc_warn_flag in '' yes
  4034. do
  4035. # Use a header file that comes with gcc, so configuring glibc
  4036. # with a fresh cross-compiler works.
  4037. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4038. # <limits.h> exists even on freestanding compilers.
  4039. # On the NeXT, cc -E runs the code through the compiler's parser,
  4040. # not just through cpp. "Syntax error" is here to catch this case.
  4041. cat >conftest.$ac_ext <<_ACEOF
  4042. /* confdefs.h. */
  4043. _ACEOF
  4044. cat confdefs.h >>conftest.$ac_ext
  4045. cat >>conftest.$ac_ext <<_ACEOF
  4046. /* end confdefs.h. */
  4047. #ifdef __STDC__
  4048. # include <limits.h>
  4049. #else
  4050. # include <assert.h>
  4051. #endif
  4052. Syntax error
  4053. _ACEOF
  4054. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4055. case "(($ac_try" in
  4056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4057. *) ac_try_echo=$ac_try;;
  4058. esac
  4059. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4060. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4061. ac_status=$?
  4062. grep -v '^ *+' conftest.er1 >conftest.err
  4063. rm -f conftest.er1
  4064. cat conftest.err >&5
  4065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4066. (exit $ac_status); } >/dev/null && {
  4067. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4068. test ! -s conftest.err
  4069. }; then
  4070. :
  4071. else
  4072. echo "$as_me: failed program was:" >&5
  4073. sed 's/^/| /' conftest.$ac_ext >&5
  4074. # Broken: fails on valid input.
  4075. continue
  4076. fi
  4077. rm -f conftest.err conftest.$ac_ext
  4078. # OK, works on sane cases. Now check whether nonexistent headers
  4079. # can be detected and how.
  4080. cat >conftest.$ac_ext <<_ACEOF
  4081. /* confdefs.h. */
  4082. _ACEOF
  4083. cat confdefs.h >>conftest.$ac_ext
  4084. cat >>conftest.$ac_ext <<_ACEOF
  4085. /* end confdefs.h. */
  4086. #include <ac_nonexistent.h>
  4087. _ACEOF
  4088. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4089. case "(($ac_try" in
  4090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4091. *) ac_try_echo=$ac_try;;
  4092. esac
  4093. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4094. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4095. ac_status=$?
  4096. grep -v '^ *+' conftest.er1 >conftest.err
  4097. rm -f conftest.er1
  4098. cat conftest.err >&5
  4099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4100. (exit $ac_status); } >/dev/null && {
  4101. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4102. test ! -s conftest.err
  4103. }; then
  4104. # Broken: success on invalid input.
  4105. continue
  4106. else
  4107. echo "$as_me: failed program was:" >&5
  4108. sed 's/^/| /' conftest.$ac_ext >&5
  4109. # Passes both tests.
  4110. ac_preproc_ok=:
  4111. break
  4112. fi
  4113. rm -f conftest.err conftest.$ac_ext
  4114. done
  4115. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4116. rm -f conftest.err conftest.$ac_ext
  4117. if $ac_preproc_ok; then
  4118. break
  4119. fi
  4120. done
  4121. ac_cv_prog_CXXCPP=$CXXCPP
  4122. fi
  4123. CXXCPP=$ac_cv_prog_CXXCPP
  4124. else
  4125. ac_cv_prog_CXXCPP=$CXXCPP
  4126. fi
  4127. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4128. echo "${ECHO_T}$CXXCPP" >&6; }
  4129. ac_preproc_ok=false
  4130. for ac_cxx_preproc_warn_flag in '' yes
  4131. do
  4132. # Use a header file that comes with gcc, so configuring glibc
  4133. # with a fresh cross-compiler works.
  4134. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4135. # <limits.h> exists even on freestanding compilers.
  4136. # On the NeXT, cc -E runs the code through the compiler's parser,
  4137. # not just through cpp. "Syntax error" is here to catch this case.
  4138. cat >conftest.$ac_ext <<_ACEOF
  4139. /* confdefs.h. */
  4140. _ACEOF
  4141. cat confdefs.h >>conftest.$ac_ext
  4142. cat >>conftest.$ac_ext <<_ACEOF
  4143. /* end confdefs.h. */
  4144. #ifdef __STDC__
  4145. # include <limits.h>
  4146. #else
  4147. # include <assert.h>
  4148. #endif
  4149. Syntax error
  4150. _ACEOF
  4151. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4152. case "(($ac_try" in
  4153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4154. *) ac_try_echo=$ac_try;;
  4155. esac
  4156. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4157. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4158. ac_status=$?
  4159. grep -v '^ *+' conftest.er1 >conftest.err
  4160. rm -f conftest.er1
  4161. cat conftest.err >&5
  4162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4163. (exit $ac_status); } >/dev/null && {
  4164. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4165. test ! -s conftest.err
  4166. }; then
  4167. :
  4168. else
  4169. echo "$as_me: failed program was:" >&5
  4170. sed 's/^/| /' conftest.$ac_ext >&5
  4171. # Broken: fails on valid input.
  4172. continue
  4173. fi
  4174. rm -f conftest.err conftest.$ac_ext
  4175. # OK, works on sane cases. Now check whether nonexistent headers
  4176. # can be detected and how.
  4177. cat >conftest.$ac_ext <<_ACEOF
  4178. /* confdefs.h. */
  4179. _ACEOF
  4180. cat confdefs.h >>conftest.$ac_ext
  4181. cat >>conftest.$ac_ext <<_ACEOF
  4182. /* end confdefs.h. */
  4183. #include <ac_nonexistent.h>
  4184. _ACEOF
  4185. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4186. case "(($ac_try" in
  4187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4188. *) ac_try_echo=$ac_try;;
  4189. esac
  4190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4191. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4192. ac_status=$?
  4193. grep -v '^ *+' conftest.er1 >conftest.err
  4194. rm -f conftest.er1
  4195. cat conftest.err >&5
  4196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4197. (exit $ac_status); } >/dev/null && {
  4198. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4199. test ! -s conftest.err
  4200. }; then
  4201. # Broken: success on invalid input.
  4202. continue
  4203. else
  4204. echo "$as_me: failed program was:" >&5
  4205. sed 's/^/| /' conftest.$ac_ext >&5
  4206. # Passes both tests.
  4207. ac_preproc_ok=:
  4208. break
  4209. fi
  4210. rm -f conftest.err conftest.$ac_ext
  4211. done
  4212. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4213. rm -f conftest.err conftest.$ac_ext
  4214. if $ac_preproc_ok; then
  4215. :
  4216. else
  4217. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4218. See \`config.log' for more details." >&5
  4219. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4220. See \`config.log' for more details." >&2;}
  4221. { (exit 1); exit 1; }; }
  4222. fi
  4223. ac_ext=cpp
  4224. ac_cpp='$CXXCPP $CPPFLAGS'
  4225. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4226. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4227. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4228. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4229. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4230. if test "${ac_cv_path_GREP+set}" = set; then
  4231. echo $ECHO_N "(cached) $ECHO_C" >&6
  4232. else
  4233. # Extract the first word of "grep ggrep" to use in msg output
  4234. if test -z "$GREP"; then
  4235. set dummy grep ggrep; ac_prog_name=$2
  4236. if test "${ac_cv_path_GREP+set}" = set; then
  4237. echo $ECHO_N "(cached) $ECHO_C" >&6
  4238. else
  4239. ac_path_GREP_found=false
  4240. # Loop through the user's path and test for each of PROGNAME-LIST
  4241. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4242. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4243. do
  4244. IFS=$as_save_IFS
  4245. test -z "$as_dir" && as_dir=.
  4246. for ac_prog in grep ggrep; do
  4247. for ac_exec_ext in '' $ac_executable_extensions; do
  4248. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4249. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4250. # Check for GNU ac_path_GREP and select it if it is found.
  4251. # Check for GNU $ac_path_GREP
  4252. case `"$ac_path_GREP" --version 2>&1` in
  4253. *GNU*)
  4254. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4255. *)
  4256. ac_count=0
  4257. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4258. while :
  4259. do
  4260. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4261. mv "conftest.tmp" "conftest.in"
  4262. cp "conftest.in" "conftest.nl"
  4263. echo 'GREP' >> "conftest.nl"
  4264. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4265. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4266. ac_count=`expr $ac_count + 1`
  4267. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4268. # Best one so far, save it but keep looking for a better one
  4269. ac_cv_path_GREP="$ac_path_GREP"
  4270. ac_path_GREP_max=$ac_count
  4271. fi
  4272. # 10*(2^10) chars as input seems more than enough
  4273. test $ac_count -gt 10 && break
  4274. done
  4275. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4276. esac
  4277. $ac_path_GREP_found && break 3
  4278. done
  4279. done
  4280. done
  4281. IFS=$as_save_IFS
  4282. fi
  4283. GREP="$ac_cv_path_GREP"
  4284. if test -z "$GREP"; then
  4285. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4286. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4287. { (exit 1); exit 1; }; }
  4288. fi
  4289. else
  4290. ac_cv_path_GREP=$GREP
  4291. fi
  4292. fi
  4293. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4294. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4295. GREP="$ac_cv_path_GREP"
  4296. { echo "$as_me:$LINENO: checking for egrep" >&5
  4297. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4298. if test "${ac_cv_path_EGREP+set}" = set; then
  4299. echo $ECHO_N "(cached) $ECHO_C" >&6
  4300. else
  4301. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4302. then ac_cv_path_EGREP="$GREP -E"
  4303. else
  4304. # Extract the first word of "egrep" to use in msg output
  4305. if test -z "$EGREP"; then
  4306. set dummy egrep; ac_prog_name=$2
  4307. if test "${ac_cv_path_EGREP+set}" = set; then
  4308. echo $ECHO_N "(cached) $ECHO_C" >&6
  4309. else
  4310. ac_path_EGREP_found=false
  4311. # Loop through the user's path and test for each of PROGNAME-LIST
  4312. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4313. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4314. do
  4315. IFS=$as_save_IFS
  4316. test -z "$as_dir" && as_dir=.
  4317. for ac_prog in egrep; do
  4318. for ac_exec_ext in '' $ac_executable_extensions; do
  4319. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4320. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4321. # Check for GNU ac_path_EGREP and select it if it is found.
  4322. # Check for GNU $ac_path_EGREP
  4323. case `"$ac_path_EGREP" --version 2>&1` in
  4324. *GNU*)
  4325. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4326. *)
  4327. ac_count=0
  4328. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4329. while :
  4330. do
  4331. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4332. mv "conftest.tmp" "conftest.in"
  4333. cp "conftest.in" "conftest.nl"
  4334. echo 'EGREP' >> "conftest.nl"
  4335. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4336. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4337. ac_count=`expr $ac_count + 1`
  4338. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4339. # Best one so far, save it but keep looking for a better one
  4340. ac_cv_path_EGREP="$ac_path_EGREP"
  4341. ac_path_EGREP_max=$ac_count
  4342. fi
  4343. # 10*(2^10) chars as input seems more than enough
  4344. test $ac_count -gt 10 && break
  4345. done
  4346. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4347. esac
  4348. $ac_path_EGREP_found && break 3
  4349. done
  4350. done
  4351. done
  4352. IFS=$as_save_IFS
  4353. fi
  4354. EGREP="$ac_cv_path_EGREP"
  4355. if test -z "$EGREP"; then
  4356. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4357. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4358. { (exit 1); exit 1; }; }
  4359. fi
  4360. else
  4361. ac_cv_path_EGREP=$EGREP
  4362. fi
  4363. fi
  4364. fi
  4365. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4366. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4367. EGREP="$ac_cv_path_EGREP"
  4368. { echo "$as_me:$LINENO: checking for AIX" >&5
  4369. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4370. cat >conftest.$ac_ext <<_ACEOF
  4371. /* confdefs.h. */
  4372. _ACEOF
  4373. cat confdefs.h >>conftest.$ac_ext
  4374. cat >>conftest.$ac_ext <<_ACEOF
  4375. /* end confdefs.h. */
  4376. #ifdef _AIX
  4377. yes
  4378. #endif
  4379. _ACEOF
  4380. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4381. $EGREP "yes" >/dev/null 2>&1; then
  4382. { echo "$as_me:$LINENO: result: yes" >&5
  4383. echo "${ECHO_T}yes" >&6; }
  4384. cat >>confdefs.h <<\_ACEOF
  4385. #define _ALL_SOURCE 1
  4386. _ACEOF
  4387. else
  4388. { echo "$as_me:$LINENO: result: no" >&5
  4389. echo "${ECHO_T}no" >&6; }
  4390. fi
  4391. rm -f conftest*
  4392. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4393. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4394. if test "${ac_cv_header_stdc+set}" = set; then
  4395. echo $ECHO_N "(cached) $ECHO_C" >&6
  4396. else
  4397. cat >conftest.$ac_ext <<_ACEOF
  4398. /* confdefs.h. */
  4399. _ACEOF
  4400. cat confdefs.h >>conftest.$ac_ext
  4401. cat >>conftest.$ac_ext <<_ACEOF
  4402. /* end confdefs.h. */
  4403. #include <stdlib.h>
  4404. #include <stdarg.h>
  4405. #include <string.h>
  4406. #include <float.h>
  4407. int
  4408. main ()
  4409. {
  4410. ;
  4411. return 0;
  4412. }
  4413. _ACEOF
  4414. rm -f conftest.$ac_objext
  4415. if { (ac_try="$ac_compile"
  4416. case "(($ac_try" in
  4417. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4418. *) ac_try_echo=$ac_try;;
  4419. esac
  4420. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4421. (eval "$ac_compile") 2>conftest.er1
  4422. ac_status=$?
  4423. grep -v '^ *+' conftest.er1 >conftest.err
  4424. rm -f conftest.er1
  4425. cat conftest.err >&5
  4426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4427. (exit $ac_status); } && {
  4428. test -z "$ac_cxx_werror_flag" ||
  4429. test ! -s conftest.err
  4430. } && test -s conftest.$ac_objext; then
  4431. ac_cv_header_stdc=yes
  4432. else
  4433. echo "$as_me: failed program was:" >&5
  4434. sed 's/^/| /' conftest.$ac_ext >&5
  4435. ac_cv_header_stdc=no
  4436. fi
  4437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4438. if test $ac_cv_header_stdc = yes; then
  4439. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4440. cat >conftest.$ac_ext <<_ACEOF
  4441. /* confdefs.h. */
  4442. _ACEOF
  4443. cat confdefs.h >>conftest.$ac_ext
  4444. cat >>conftest.$ac_ext <<_ACEOF
  4445. /* end confdefs.h. */
  4446. #include <string.h>
  4447. _ACEOF
  4448. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4449. $EGREP "memchr" >/dev/null 2>&1; then
  4450. :
  4451. else
  4452. ac_cv_header_stdc=no
  4453. fi
  4454. rm -f conftest*
  4455. fi
  4456. if test $ac_cv_header_stdc = yes; then
  4457. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4458. cat >conftest.$ac_ext <<_ACEOF
  4459. /* confdefs.h. */
  4460. _ACEOF
  4461. cat confdefs.h >>conftest.$ac_ext
  4462. cat >>conftest.$ac_ext <<_ACEOF
  4463. /* end confdefs.h. */
  4464. #include <stdlib.h>
  4465. _ACEOF
  4466. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4467. $EGREP "free" >/dev/null 2>&1; then
  4468. :
  4469. else
  4470. ac_cv_header_stdc=no
  4471. fi
  4472. rm -f conftest*
  4473. fi
  4474. if test $ac_cv_header_stdc = yes; then
  4475. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4476. if test "$cross_compiling" = yes; then
  4477. :
  4478. else
  4479. cat >conftest.$ac_ext <<_ACEOF
  4480. /* confdefs.h. */
  4481. _ACEOF
  4482. cat confdefs.h >>conftest.$ac_ext
  4483. cat >>conftest.$ac_ext <<_ACEOF
  4484. /* end confdefs.h. */
  4485. #include <ctype.h>
  4486. #include <stdlib.h>
  4487. #if ((' ' & 0x0FF) == 0x020)
  4488. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4489. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4490. #else
  4491. # define ISLOWER(c) \
  4492. (('a' <= (c) && (c) <= 'i') \
  4493. || ('j' <= (c) && (c) <= 'r') \
  4494. || ('s' <= (c) && (c) <= 'z'))
  4495. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4496. #endif
  4497. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4498. int
  4499. main ()
  4500. {
  4501. int i;
  4502. for (i = 0; i < 256; i++)
  4503. if (XOR (islower (i), ISLOWER (i))
  4504. || toupper (i) != TOUPPER (i))
  4505. return 2;
  4506. return 0;
  4507. }
  4508. _ACEOF
  4509. rm -f conftest$ac_exeext
  4510. if { (ac_try="$ac_link"
  4511. case "(($ac_try" in
  4512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4513. *) ac_try_echo=$ac_try;;
  4514. esac
  4515. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4516. (eval "$ac_link") 2>&5
  4517. ac_status=$?
  4518. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4519. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4520. { (case "(($ac_try" in
  4521. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4522. *) ac_try_echo=$ac_try;;
  4523. esac
  4524. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4525. (eval "$ac_try") 2>&5
  4526. ac_status=$?
  4527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4528. (exit $ac_status); }; }; then
  4529. :
  4530. else
  4531. echo "$as_me: program exited with status $ac_status" >&5
  4532. echo "$as_me: failed program was:" >&5
  4533. sed 's/^/| /' conftest.$ac_ext >&5
  4534. ( exit $ac_status )
  4535. ac_cv_header_stdc=no
  4536. fi
  4537. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4538. fi
  4539. fi
  4540. fi
  4541. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4542. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4543. if test $ac_cv_header_stdc = yes; then
  4544. cat >>confdefs.h <<\_ACEOF
  4545. #define STDC_HEADERS 1
  4546. _ACEOF
  4547. fi
  4548. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4549. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4550. inttypes.h stdint.h unistd.h
  4551. do
  4552. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4553. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4554. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4555. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4556. echo $ECHO_N "(cached) $ECHO_C" >&6
  4557. else
  4558. cat >conftest.$ac_ext <<_ACEOF
  4559. /* confdefs.h. */
  4560. _ACEOF
  4561. cat confdefs.h >>conftest.$ac_ext
  4562. cat >>conftest.$ac_ext <<_ACEOF
  4563. /* end confdefs.h. */
  4564. $ac_includes_default
  4565. #include <$ac_header>
  4566. _ACEOF
  4567. rm -f conftest.$ac_objext
  4568. if { (ac_try="$ac_compile"
  4569. case "(($ac_try" in
  4570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4571. *) ac_try_echo=$ac_try;;
  4572. esac
  4573. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4574. (eval "$ac_compile") 2>conftest.er1
  4575. ac_status=$?
  4576. grep -v '^ *+' conftest.er1 >conftest.err
  4577. rm -f conftest.er1
  4578. cat conftest.err >&5
  4579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4580. (exit $ac_status); } && {
  4581. test -z "$ac_cxx_werror_flag" ||
  4582. test ! -s conftest.err
  4583. } && test -s conftest.$ac_objext; then
  4584. eval "$as_ac_Header=yes"
  4585. else
  4586. echo "$as_me: failed program was:" >&5
  4587. sed 's/^/| /' conftest.$ac_ext >&5
  4588. eval "$as_ac_Header=no"
  4589. fi
  4590. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4591. fi
  4592. ac_res=`eval echo '${'$as_ac_Header'}'`
  4593. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4594. echo "${ECHO_T}$ac_res" >&6; }
  4595. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4596. cat >>confdefs.h <<_ACEOF
  4597. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4598. _ACEOF
  4599. fi
  4600. done
  4601. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4602. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4603. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4604. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4605. echo $ECHO_N "(cached) $ECHO_C" >&6
  4606. fi
  4607. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4608. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4609. else
  4610. # Is the header compilable?
  4611. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4612. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4613. cat >conftest.$ac_ext <<_ACEOF
  4614. /* confdefs.h. */
  4615. _ACEOF
  4616. cat confdefs.h >>conftest.$ac_ext
  4617. cat >>conftest.$ac_ext <<_ACEOF
  4618. /* end confdefs.h. */
  4619. $ac_includes_default
  4620. #include <minix/config.h>
  4621. _ACEOF
  4622. rm -f conftest.$ac_objext
  4623. if { (ac_try="$ac_compile"
  4624. case "(($ac_try" in
  4625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4626. *) ac_try_echo=$ac_try;;
  4627. esac
  4628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4629. (eval "$ac_compile") 2>conftest.er1
  4630. ac_status=$?
  4631. grep -v '^ *+' conftest.er1 >conftest.err
  4632. rm -f conftest.er1
  4633. cat conftest.err >&5
  4634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4635. (exit $ac_status); } && {
  4636. test -z "$ac_cxx_werror_flag" ||
  4637. test ! -s conftest.err
  4638. } && test -s conftest.$ac_objext; then
  4639. ac_header_compiler=yes
  4640. else
  4641. echo "$as_me: failed program was:" >&5
  4642. sed 's/^/| /' conftest.$ac_ext >&5
  4643. ac_header_compiler=no
  4644. fi
  4645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4646. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4647. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4648. # Is the header present?
  4649. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4650. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4651. cat >conftest.$ac_ext <<_ACEOF
  4652. /* confdefs.h. */
  4653. _ACEOF
  4654. cat confdefs.h >>conftest.$ac_ext
  4655. cat >>conftest.$ac_ext <<_ACEOF
  4656. /* end confdefs.h. */
  4657. #include <minix/config.h>
  4658. _ACEOF
  4659. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4660. case "(($ac_try" in
  4661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4662. *) ac_try_echo=$ac_try;;
  4663. esac
  4664. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4665. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4666. ac_status=$?
  4667. grep -v '^ *+' conftest.er1 >conftest.err
  4668. rm -f conftest.er1
  4669. cat conftest.err >&5
  4670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4671. (exit $ac_status); } >/dev/null && {
  4672. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4673. test ! -s conftest.err
  4674. }; then
  4675. ac_header_preproc=yes
  4676. else
  4677. echo "$as_me: failed program was:" >&5
  4678. sed 's/^/| /' conftest.$ac_ext >&5
  4679. ac_header_preproc=no
  4680. fi
  4681. rm -f conftest.err conftest.$ac_ext
  4682. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4683. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4684. # So? What about this header?
  4685. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4686. yes:no: )
  4687. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4688. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4689. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4690. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4691. ac_header_preproc=yes
  4692. ;;
  4693. no:yes:* )
  4694. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4695. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4696. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4697. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4698. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4699. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4700. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4701. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4702. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4703. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4704. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4705. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4706. ( cat <<\_ASBOX
  4707. ## ----------------------------------------------- ##
  4708. ## Report this to t-tujikawa@users.sourceforge.net ##
  4709. ## ----------------------------------------------- ##
  4710. _ASBOX
  4711. ) | sed "s/^/$as_me: WARNING: /" >&2
  4712. ;;
  4713. esac
  4714. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4715. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4716. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4717. echo $ECHO_N "(cached) $ECHO_C" >&6
  4718. else
  4719. ac_cv_header_minix_config_h=$ac_header_preproc
  4720. fi
  4721. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4722. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4723. fi
  4724. if test $ac_cv_header_minix_config_h = yes; then
  4725. MINIX=yes
  4726. else
  4727. MINIX=
  4728. fi
  4729. if test "$MINIX" = yes; then
  4730. cat >>confdefs.h <<\_ACEOF
  4731. #define _POSIX_SOURCE 1
  4732. _ACEOF
  4733. cat >>confdefs.h <<\_ACEOF
  4734. #define _POSIX_1_SOURCE 2
  4735. _ACEOF
  4736. cat >>confdefs.h <<\_ACEOF
  4737. #define _MINIX 1
  4738. _ACEOF
  4739. fi
  4740. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4741. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4742. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4743. echo $ECHO_N "(cached) $ECHO_C" >&6
  4744. else
  4745. cat >conftest.$ac_ext <<_ACEOF
  4746. /* confdefs.h. */
  4747. _ACEOF
  4748. cat confdefs.h >>conftest.$ac_ext
  4749. cat >>conftest.$ac_ext <<_ACEOF
  4750. /* end confdefs.h. */
  4751. # define __EXTENSIONS__ 1
  4752. $ac_includes_default
  4753. int
  4754. main ()
  4755. {
  4756. ;
  4757. return 0;
  4758. }
  4759. _ACEOF
  4760. rm -f conftest.$ac_objext
  4761. if { (ac_try="$ac_compile"
  4762. case "(($ac_try" in
  4763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4764. *) ac_try_echo=$ac_try;;
  4765. esac
  4766. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4767. (eval "$ac_compile") 2>conftest.er1
  4768. ac_status=$?
  4769. grep -v '^ *+' conftest.er1 >conftest.err
  4770. rm -f conftest.er1
  4771. cat conftest.err >&5
  4772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4773. (exit $ac_status); } && {
  4774. test -z "$ac_cxx_werror_flag" ||
  4775. test ! -s conftest.err
  4776. } && test -s conftest.$ac_objext; then
  4777. ac_cv_safe_to_define___extensions__=yes
  4778. else
  4779. echo "$as_me: failed program was:" >&5
  4780. sed 's/^/| /' conftest.$ac_ext >&5
  4781. ac_cv_safe_to_define___extensions__=no
  4782. fi
  4783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4784. fi
  4785. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4786. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4787. test $ac_cv_safe_to_define___extensions__ = yes &&
  4788. cat >>confdefs.h <<\_ACEOF
  4789. #define __EXTENSIONS__ 1
  4790. _ACEOF
  4791. cat >>confdefs.h <<\_ACEOF
  4792. #define _POSIX_PTHREAD_SEMANTICS 1
  4793. _ACEOF
  4794. cat >>confdefs.h <<\_ACEOF
  4795. #define _TANDEM_SOURCE 1
  4796. _ACEOF
  4797. # Checks for libraries.
  4798. if test "x$with_libxml2" = "xyes"; then
  4799. # Check whether --with-xml-prefix was given.
  4800. if test "${with_xml_prefix+set}" = set; then
  4801. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4802. else
  4803. xml_config_prefix=""
  4804. fi
  4805. # Check whether --with-xml-exec-prefix was given.
  4806. if test "${with_xml_exec_prefix+set}" = set; then
  4807. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4808. else
  4809. xml_config_exec_prefix=""
  4810. fi
  4811. # Check whether --enable-xmltest was given.
  4812. if test "${enable_xmltest+set}" = set; then
  4813. enableval=$enable_xmltest;
  4814. else
  4815. enable_xmltest=yes
  4816. fi
  4817. if test x$xml_config_exec_prefix != x ; then
  4818. xml_config_args="$xml_config_args"
  4819. if test x${XML2_CONFIG+set} != xset ; then
  4820. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4821. fi
  4822. fi
  4823. if test x$xml_config_prefix != x ; then
  4824. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4825. if test x${XML2_CONFIG+set} != xset ; then
  4826. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4827. fi
  4828. fi
  4829. # Extract the first word of "xml2-config", so it can be a program name with args.
  4830. set dummy xml2-config; ac_word=$2
  4831. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4832. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4833. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4834. echo $ECHO_N "(cached) $ECHO_C" >&6
  4835. else
  4836. case $XML2_CONFIG in
  4837. [\\/]* | ?:[\\/]*)
  4838. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4839. ;;
  4840. *)
  4841. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4842. for as_dir in $PATH
  4843. do
  4844. IFS=$as_save_IFS
  4845. test -z "$as_dir" && as_dir=.
  4846. for ac_exec_ext in '' $ac_executable_extensions; do
  4847. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4848. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4849. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4850. break 2
  4851. fi
  4852. done
  4853. done
  4854. IFS=$as_save_IFS
  4855. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4856. ;;
  4857. esac
  4858. fi
  4859. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4860. if test -n "$XML2_CONFIG"; then
  4861. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4862. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4863. else
  4864. { echo "$as_me:$LINENO: result: no" >&5
  4865. echo "${ECHO_T}no" >&6; }
  4866. fi
  4867. min_xml_version=2.6.24
  4868. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4869. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4870. no_xml=""
  4871. if test "$XML2_CONFIG" = "no" ; then
  4872. no_xml=yes
  4873. else
  4874. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4875. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4876. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4877. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4878. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4879. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4880. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4881. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4882. if test "x$enable_xmltest" = "xyes" ; then
  4883. ac_save_CPPFLAGS="$CPPFLAGS"
  4884. ac_save_LIBS="$LIBS"
  4885. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4886. LIBS="$XML_LIBS $LIBS"
  4887. rm -f conf.xmltest
  4888. if test "$cross_compiling" = yes; then
  4889. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4890. else
  4891. cat >conftest.$ac_ext <<_ACEOF
  4892. /* confdefs.h. */
  4893. _ACEOF
  4894. cat confdefs.h >>conftest.$ac_ext
  4895. cat >>conftest.$ac_ext <<_ACEOF
  4896. /* end confdefs.h. */
  4897. #include <stdlib.h>
  4898. #include <stdio.h>
  4899. #include <string.h>
  4900. #include <libxml/xmlversion.h>
  4901. int
  4902. main()
  4903. {
  4904. int xml_major_version, xml_minor_version, xml_micro_version;
  4905. int major, minor, micro;
  4906. char *tmp_version;
  4907. system("touch conf.xmltest");
  4908. /* Capture xml2-config output via autoconf/configure variables */
  4909. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4910. tmp_version = (char *)strdup("$min_xml_version");
  4911. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4912. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4913. exit(1);
  4914. }
  4915. free(tmp_version);
  4916. /* Capture the version information from the header files */
  4917. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  4918. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  4919. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  4920. exit(1);
  4921. }
  4922. free(tmp_version);
  4923. /* Compare xml2-config output to the libxml headers */
  4924. if ((xml_major_version != $xml_config_major_version) ||
  4925. (xml_minor_version != $xml_config_minor_version) ||
  4926. (xml_micro_version != $xml_config_micro_version))
  4927. {
  4928. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  4929. xml_major_version, xml_minor_version, xml_micro_version);
  4930. printf("*** xml2-config (version %d.%d.%d)\n",
  4931. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  4932. return 1;
  4933. }
  4934. /* Compare the headers to the library to make sure we match */
  4935. /* Less than ideal -- doesn't provide us with return value feedback,
  4936. * only exits if there's a serious mismatch between header and library.
  4937. */
  4938. LIBXML_TEST_VERSION;
  4939. /* Test that the library is greater than our minimum version */
  4940. if ((xml_major_version > major) ||
  4941. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  4942. ((xml_major_version == major) && (xml_minor_version == minor) &&
  4943. (xml_micro_version >= micro)))
  4944. {
  4945. return 0;
  4946. }
  4947. else
  4948. {
  4949. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  4950. xml_major_version, xml_minor_version, xml_micro_version);
  4951. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  4952. major, minor, micro);
  4953. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  4954. printf("***\n");
  4955. printf("*** If you have already installed a sufficiently new version, this error\n");
  4956. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  4957. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4958. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  4959. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  4960. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4961. printf("*** so that the correct libraries are found at run-time))\n");
  4962. }
  4963. return 1;
  4964. }
  4965. _ACEOF
  4966. rm -f conftest$ac_exeext
  4967. if { (ac_try="$ac_link"
  4968. case "(($ac_try" in
  4969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4970. *) ac_try_echo=$ac_try;;
  4971. esac
  4972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4973. (eval "$ac_link") 2>&5
  4974. ac_status=$?
  4975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4976. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4977. { (case "(($ac_try" in
  4978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4979. *) ac_try_echo=$ac_try;;
  4980. esac
  4981. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4982. (eval "$ac_try") 2>&5
  4983. ac_status=$?
  4984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4985. (exit $ac_status); }; }; then
  4986. :
  4987. else
  4988. echo "$as_me: program exited with status $ac_status" >&5
  4989. echo "$as_me: failed program was:" >&5
  4990. sed 's/^/| /' conftest.$ac_ext >&5
  4991. ( exit $ac_status )
  4992. no_xml=yes
  4993. fi
  4994. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4995. fi
  4996. CPPFLAGS="$ac_save_CPPFLAGS"
  4997. LIBS="$ac_save_LIBS"
  4998. fi
  4999. fi
  5000. if test "x$no_xml" = x ; then
  5001. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5002. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5003. have_libxml2=yes
  5004. else
  5005. { echo "$as_me:$LINENO: result: no" >&5
  5006. echo "${ECHO_T}no" >&6; }
  5007. if test "$XML2_CONFIG" = "no" ; then
  5008. echo "*** The xml2-config script installed by LIBXML could not be found"
  5009. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5010. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5011. echo "*** full path to xml2-config."
  5012. else
  5013. if test -f conf.xmltest ; then
  5014. :
  5015. else
  5016. echo "*** Could not run libxml test program, checking why..."
  5017. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5018. LIBS="$LIBS $XML_LIBS"
  5019. cat >conftest.$ac_ext <<_ACEOF
  5020. /* confdefs.h. */
  5021. _ACEOF
  5022. cat confdefs.h >>conftest.$ac_ext
  5023. cat >>conftest.$ac_ext <<_ACEOF
  5024. /* end confdefs.h. */
  5025. #include <libxml/xmlversion.h>
  5026. #include <stdio.h>
  5027. int
  5028. main ()
  5029. {
  5030. LIBXML_TEST_VERSION; return 0;
  5031. ;
  5032. return 0;
  5033. }
  5034. _ACEOF
  5035. rm -f conftest.$ac_objext conftest$ac_exeext
  5036. if { (ac_try="$ac_link"
  5037. case "(($ac_try" in
  5038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5039. *) ac_try_echo=$ac_try;;
  5040. esac
  5041. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5042. (eval "$ac_link") 2>conftest.er1
  5043. ac_status=$?
  5044. grep -v '^ *+' conftest.er1 >conftest.err
  5045. rm -f conftest.er1
  5046. cat conftest.err >&5
  5047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5048. (exit $ac_status); } && {
  5049. test -z "$ac_cxx_werror_flag" ||
  5050. test ! -s conftest.err
  5051. } && test -s conftest$ac_exeext &&
  5052. $as_test_x conftest$ac_exeext; then
  5053. echo "*** The test program compiled, but did not run. This usually means"
  5054. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5055. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5056. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5057. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5058. echo "*** is required on your system"
  5059. echo "***"
  5060. echo "*** If you have an old version installed, it is best to remove it, although"
  5061. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5062. else
  5063. echo "$as_me: failed program was:" >&5
  5064. sed 's/^/| /' conftest.$ac_ext >&5
  5065. echo "*** The test program failed to compile or link. See the file config.log for the"
  5066. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5067. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5068. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5069. fi
  5070. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5071. conftest$ac_exeext conftest.$ac_ext
  5072. CPPFLAGS="$ac_save_CPPFLAGS"
  5073. LIBS="$ac_save_LIBS"
  5074. fi
  5075. fi
  5076. XML_CPPFLAGS=""
  5077. XML_LIBS=""
  5078. :
  5079. fi
  5080. rm -f conf.xmltest
  5081. if test "x$have_libxml2" = "xyes"; then
  5082. cat >>confdefs.h <<\_ACEOF
  5083. #define HAVE_LIBXML2 1
  5084. _ACEOF
  5085. fi
  5086. fi
  5087. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5088. # Check whether --with-libexpat-prefix was given.
  5089. if test "${with_libexpat_prefix+set}" = set; then
  5090. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5091. else
  5092. libexpat_prefix=""
  5093. fi
  5094. if test "x$libexpat_prefix" = "x"; then
  5095. libexpat_prefix="/usr"
  5096. fi
  5097. libexpat_prefix_lib=$libexpat_prefix/lib
  5098. libexpat_prefix_include=$libexpat_prefix/include
  5099. LIBS_save=$LIBS
  5100. CPPFLAGS_save=$CPPFLAGS
  5101. LIBS="-L$libexpat_prefix_lib $LIBS"
  5102. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5103. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5104. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5105. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5106. echo $ECHO_N "(cached) $ECHO_C" >&6
  5107. else
  5108. ac_check_lib_save_LIBS=$LIBS
  5109. LIBS="-lexpat $LIBS"
  5110. cat >conftest.$ac_ext <<_ACEOF
  5111. /* confdefs.h. */
  5112. _ACEOF
  5113. cat confdefs.h >>conftest.$ac_ext
  5114. cat >>conftest.$ac_ext <<_ACEOF
  5115. /* end confdefs.h. */
  5116. /* Override any GCC internal prototype to avoid an error.
  5117. Use char because int might match the return type of a GCC
  5118. builtin and then its argument prototype would still apply. */
  5119. #ifdef __cplusplus
  5120. extern "C"
  5121. #endif
  5122. char XML_ParserCreate ();
  5123. int
  5124. main ()
  5125. {
  5126. return XML_ParserCreate ();
  5127. ;
  5128. return 0;
  5129. }
  5130. _ACEOF
  5131. rm -f conftest.$ac_objext conftest$ac_exeext
  5132. if { (ac_try="$ac_link"
  5133. case "(($ac_try" in
  5134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5135. *) ac_try_echo=$ac_try;;
  5136. esac
  5137. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5138. (eval "$ac_link") 2>conftest.er1
  5139. ac_status=$?
  5140. grep -v '^ *+' conftest.er1 >conftest.err
  5141. rm -f conftest.er1
  5142. cat conftest.err >&5
  5143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5144. (exit $ac_status); } && {
  5145. test -z "$ac_cxx_werror_flag" ||
  5146. test ! -s conftest.err
  5147. } && test -s conftest$ac_exeext &&
  5148. $as_test_x conftest$ac_exeext; then
  5149. ac_cv_lib_expat_XML_ParserCreate=yes
  5150. else
  5151. echo "$as_me: failed program was:" >&5
  5152. sed 's/^/| /' conftest.$ac_ext >&5
  5153. ac_cv_lib_expat_XML_ParserCreate=no
  5154. fi
  5155. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5156. conftest$ac_exeext conftest.$ac_ext
  5157. LIBS=$ac_check_lib_save_LIBS
  5158. fi
  5159. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5160. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5161. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5162. have_libexpat=yes
  5163. fi
  5164. if test "x$have_libexpat" = "xyes"; then
  5165. cat >>confdefs.h <<\_ACEOF
  5166. #define HAVE_LIBEXPAT 1
  5167. _ACEOF
  5168. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5169. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5170. fi
  5171. LIBS=$LIBS_save
  5172. CPPFLAGS=$CPPFLAGS_save
  5173. fi
  5174. if test "x$with_gnutls" = "xyes"; then
  5175. # Check whether --with-libgnutls-prefix was given.
  5176. if test "${with_libgnutls_prefix+set}" = set; then
  5177. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5178. else
  5179. libgnutls_config_prefix=""
  5180. fi
  5181. if test x$libgnutls_config_prefix != x ; then
  5182. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5183. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5184. fi
  5185. fi
  5186. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5187. set dummy libgnutls-config; ac_word=$2
  5188. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5189. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5190. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5191. echo $ECHO_N "(cached) $ECHO_C" >&6
  5192. else
  5193. case $LIBGNUTLS_CONFIG in
  5194. [\\/]* | ?:[\\/]*)
  5195. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5196. ;;
  5197. *)
  5198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5199. for as_dir in $PATH
  5200. do
  5201. IFS=$as_save_IFS
  5202. test -z "$as_dir" && as_dir=.
  5203. for ac_exec_ext in '' $ac_executable_extensions; do
  5204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5205. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5206. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5207. break 2
  5208. fi
  5209. done
  5210. done
  5211. IFS=$as_save_IFS
  5212. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5213. ;;
  5214. esac
  5215. fi
  5216. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5217. if test -n "$LIBGNUTLS_CONFIG"; then
  5218. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5219. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5220. else
  5221. { echo "$as_me:$LINENO: result: no" >&5
  5222. echo "${ECHO_T}no" >&6; }
  5223. fi
  5224. min_libgnutls_version=1.2.9
  5225. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5226. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5227. no_libgnutls=""
  5228. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5229. no_libgnutls=yes
  5230. else
  5231. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5232. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5233. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5234. ac_save_CFLAGS="$CFLAGS"
  5235. ac_save_LIBS="$LIBS"
  5236. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5237. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5238. rm -f conf.libgnutlstest
  5239. if test "$cross_compiling" = yes; then
  5240. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5241. else
  5242. cat >conftest.$ac_ext <<_ACEOF
  5243. /* confdefs.h. */
  5244. _ACEOF
  5245. cat confdefs.h >>conftest.$ac_ext
  5246. cat >>conftest.$ac_ext <<_ACEOF
  5247. /* end confdefs.h. */
  5248. #include <stdio.h>
  5249. #include <stdlib.h>
  5250. #include <string.h>
  5251. #include <gnutls/gnutls.h>
  5252. int
  5253. main ()
  5254. {
  5255. system ("touch conf.libgnutlstest");
  5256. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5257. {
  5258. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5259. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5260. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5261. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5262. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5263. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5264. printf("*** required on your system.\n");
  5265. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5266. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5267. printf("*** before re-running configure\n");
  5268. }
  5269. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5270. {
  5271. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5272. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5273. }
  5274. else
  5275. {
  5276. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5277. {
  5278. return 0;
  5279. }
  5280. else
  5281. {
  5282. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5283. gnutls_check_version(NULL) );
  5284. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5285. "$min_libgnutls_version" );
  5286. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5287. printf("*** \n");
  5288. printf("*** If you have already installed a sufficiently new version, this error\n");
  5289. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5290. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5291. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5292. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5293. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5294. printf("*** so that the correct libraries are found at run-time))\n");
  5295. }
  5296. }
  5297. return 1;
  5298. }
  5299. _ACEOF
  5300. rm -f conftest$ac_exeext
  5301. if { (ac_try="$ac_link"
  5302. case "(($ac_try" in
  5303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5304. *) ac_try_echo=$ac_try;;
  5305. esac
  5306. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5307. (eval "$ac_link") 2>&5
  5308. ac_status=$?
  5309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5310. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5311. { (case "(($ac_try" in
  5312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5313. *) ac_try_echo=$ac_try;;
  5314. esac
  5315. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5316. (eval "$ac_try") 2>&5
  5317. ac_status=$?
  5318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5319. (exit $ac_status); }; }; then
  5320. :
  5321. else
  5322. echo "$as_me: program exited with status $ac_status" >&5
  5323. echo "$as_me: failed program was:" >&5
  5324. sed 's/^/| /' conftest.$ac_ext >&5
  5325. ( exit $ac_status )
  5326. no_libgnutls=yes
  5327. fi
  5328. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5329. fi
  5330. CFLAGS="$ac_save_CFLAGS"
  5331. LIBS="$ac_save_LIBS"
  5332. fi
  5333. if test "x$no_libgnutls" = x ; then
  5334. { echo "$as_me:$LINENO: result: yes" >&5
  5335. echo "${ECHO_T}yes" >&6; }
  5336. have_libgnutls=yes
  5337. else
  5338. if test -f conf.libgnutlstest ; then
  5339. :
  5340. else
  5341. { echo "$as_me:$LINENO: result: no" >&5
  5342. echo "${ECHO_T}no" >&6; }
  5343. fi
  5344. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5345. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5346. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5347. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5348. echo "*** full path to libgnutls-config."
  5349. else
  5350. if test -f conf.libgnutlstest ; then
  5351. :
  5352. else
  5353. echo "*** Could not run libgnutls test program, checking why..."
  5354. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5355. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5356. cat >conftest.$ac_ext <<_ACEOF
  5357. /* confdefs.h. */
  5358. _ACEOF
  5359. cat confdefs.h >>conftest.$ac_ext
  5360. cat >>conftest.$ac_ext <<_ACEOF
  5361. /* end confdefs.h. */
  5362. #include <stdio.h>
  5363. #include <stdlib.h>
  5364. #include <string.h>
  5365. #include <gnutls/gnutls.h>
  5366. int
  5367. main ()
  5368. {
  5369. return !!gnutls_check_version(NULL);
  5370. ;
  5371. return 0;
  5372. }
  5373. _ACEOF
  5374. rm -f conftest.$ac_objext conftest$ac_exeext
  5375. if { (ac_try="$ac_link"
  5376. case "(($ac_try" in
  5377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5378. *) ac_try_echo=$ac_try;;
  5379. esac
  5380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5381. (eval "$ac_link") 2>conftest.er1
  5382. ac_status=$?
  5383. grep -v '^ *+' conftest.er1 >conftest.err
  5384. rm -f conftest.er1
  5385. cat conftest.err >&5
  5386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5387. (exit $ac_status); } && {
  5388. test -z "$ac_cxx_werror_flag" ||
  5389. test ! -s conftest.err
  5390. } && test -s conftest$ac_exeext &&
  5391. $as_test_x conftest$ac_exeext; then
  5392. echo "*** The test program compiled, but did not run. This usually means"
  5393. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5394. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5395. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5396. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5397. echo "*** is required on your system"
  5398. echo "***"
  5399. echo "*** If you have an old version installed, it is best to remove it, although"
  5400. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5401. echo "***"
  5402. else
  5403. echo "$as_me: failed program was:" >&5
  5404. sed 's/^/| /' conftest.$ac_ext >&5
  5405. echo "*** The test program failed to compile or link. See the file config.log for the"
  5406. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5407. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5408. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5409. fi
  5410. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5411. conftest$ac_exeext conftest.$ac_ext
  5412. CFLAGS="$ac_save_CFLAGS"
  5413. LIBS="$ac_save_LIBS"
  5414. fi
  5415. fi
  5416. LIBGNUTLS_CFLAGS=""
  5417. LIBGNUTLS_LIBS=""
  5418. :
  5419. fi
  5420. rm -f conf.libgnutlstest
  5421. if test "x$have_libgnutls" = "xyes"; then
  5422. cat >>confdefs.h <<\_ACEOF
  5423. #define HAVE_LIBGNUTLS 1
  5424. _ACEOF
  5425. fi
  5426. fi
  5427. if test "x$have_libgnutls" = "xyes"; then
  5428. # Check whether --with-libgcrypt-prefix was given.
  5429. if test "${with_libgcrypt_prefix+set}" = set; then
  5430. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5431. else
  5432. libgcrypt_config_prefix=""
  5433. fi
  5434. if test x$libgcrypt_config_prefix != x ; then
  5435. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5436. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5437. fi
  5438. fi
  5439. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5440. set dummy libgcrypt-config; ac_word=$2
  5441. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5442. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5443. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5444. echo $ECHO_N "(cached) $ECHO_C" >&6
  5445. else
  5446. case $LIBGCRYPT_CONFIG in
  5447. [\\/]* | ?:[\\/]*)
  5448. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5449. ;;
  5450. *)
  5451. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5452. for as_dir in $PATH
  5453. do
  5454. IFS=$as_save_IFS
  5455. test -z "$as_dir" && as_dir=.
  5456. for ac_exec_ext in '' $ac_executable_extensions; do
  5457. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5458. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5459. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5460. break 2
  5461. fi
  5462. done
  5463. done
  5464. IFS=$as_save_IFS
  5465. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5466. ;;
  5467. esac
  5468. fi
  5469. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5470. if test -n "$LIBGCRYPT_CONFIG"; then
  5471. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5472. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5473. else
  5474. { echo "$as_me:$LINENO: result: no" >&5
  5475. echo "${ECHO_T}no" >&6; }
  5476. fi
  5477. tmp=1.2.2
  5478. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5479. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5480. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5481. else
  5482. req_libgcrypt_api=0
  5483. min_libgcrypt_version="$tmp"
  5484. fi
  5485. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5486. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5487. ok=no
  5488. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5489. req_major=`echo $min_libgcrypt_version | \
  5490. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5491. req_minor=`echo $min_libgcrypt_version | \
  5492. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5493. req_micro=`echo $min_libgcrypt_version | \
  5494. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5495. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5496. major=`echo $libgcrypt_config_version | \
  5497. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5498. minor=`echo $libgcrypt_config_version | \
  5499. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5500. micro=`echo $libgcrypt_config_version | \
  5501. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5502. if test "$major" -gt "$req_major"; then
  5503. ok=yes
  5504. else
  5505. if test "$major" -eq "$req_major"; then
  5506. if test "$minor" -gt "$req_minor"; then
  5507. ok=yes
  5508. else
  5509. if test "$minor" -eq "$req_minor"; then
  5510. if test "$micro" -ge "$req_micro"; then
  5511. ok=yes
  5512. fi
  5513. fi
  5514. fi
  5515. fi
  5516. fi
  5517. fi
  5518. if test $ok = yes; then
  5519. { echo "$as_me:$LINENO: result: yes" >&5
  5520. echo "${ECHO_T}yes" >&6; }
  5521. else
  5522. { echo "$as_me:$LINENO: result: no" >&5
  5523. echo "${ECHO_T}no" >&6; }
  5524. fi
  5525. if test $ok = yes; then
  5526. # If we have a recent libgcrypt, we should also check that the
  5527. # API is compatible
  5528. if test "$req_libgcrypt_api" -gt 0 ; then
  5529. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5530. if test "$tmp" -gt 0 ; then
  5531. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5532. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5533. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5534. { echo "$as_me:$LINENO: result: okay" >&5
  5535. echo "${ECHO_T}okay" >&6; }
  5536. else
  5537. ok=no
  5538. { echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  5539. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6; }
  5540. fi
  5541. fi
  5542. fi
  5543. fi
  5544. if test $ok = yes; then
  5545. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5546. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5547. have_libgcrypt=yes
  5548. else
  5549. LIBGCRYPT_CFLAGS=""
  5550. LIBGCRYPT_LIBS=""
  5551. :
  5552. fi
  5553. if test "x$have_libgcrypt" = "xyes"; then
  5554. cat >>confdefs.h <<\_ACEOF
  5555. #define HAVE_LIBGCRYPT 1
  5556. _ACEOF
  5557. fi
  5558. fi
  5559. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5560. # Check whether --with-openssl-prefix was given.
  5561. if test "${with_openssl_prefix+set}" = set; then
  5562. withval=$with_openssl_prefix; openssl_prefix=$withval
  5563. else
  5564. openssl_prefix=""
  5565. fi
  5566. if test "x$openssl_prefix" = "x"; then
  5567. openssl_prefix="/usr/local"
  5568. fi
  5569. openssl_prefix_lib=$openssl_prefix/lib
  5570. openssl_prefix_include=$openssl_prefix/include
  5571. LIBS_save=$LIBS
  5572. CPPFLAGS_save=$CPPFLAGS
  5573. LIBS="-L$openssl_prefix_lib $LIBS"
  5574. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5575. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5576. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5577. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5578. echo $ECHO_N "(cached) $ECHO_C" >&6
  5579. else
  5580. ac_check_lib_save_LIBS=$LIBS
  5581. LIBS="-lssl $LIBS"
  5582. cat >conftest.$ac_ext <<_ACEOF
  5583. /* confdefs.h. */
  5584. _ACEOF
  5585. cat confdefs.h >>conftest.$ac_ext
  5586. cat >>conftest.$ac_ext <<_ACEOF
  5587. /* end confdefs.h. */
  5588. /* Override any GCC internal prototype to avoid an error.
  5589. Use char because int might match the return type of a GCC
  5590. builtin and then its argument prototype would still apply. */
  5591. #ifdef __cplusplus
  5592. extern "C"
  5593. #endif
  5594. char SSL_library_init ();
  5595. int
  5596. main ()
  5597. {
  5598. return SSL_library_init ();
  5599. ;
  5600. return 0;
  5601. }
  5602. _ACEOF
  5603. rm -f conftest.$ac_objext conftest$ac_exeext
  5604. if { (ac_try="$ac_link"
  5605. case "(($ac_try" in
  5606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5607. *) ac_try_echo=$ac_try;;
  5608. esac
  5609. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5610. (eval "$ac_link") 2>conftest.er1
  5611. ac_status=$?
  5612. grep -v '^ *+' conftest.er1 >conftest.err
  5613. rm -f conftest.er1
  5614. cat conftest.err >&5
  5615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5616. (exit $ac_status); } && {
  5617. test -z "$ac_cxx_werror_flag" ||
  5618. test ! -s conftest.err
  5619. } && test -s conftest$ac_exeext &&
  5620. $as_test_x conftest$ac_exeext; then
  5621. ac_cv_lib_ssl_SSL_library_init=yes
  5622. else
  5623. echo "$as_me: failed program was:" >&5
  5624. sed 's/^/| /' conftest.$ac_ext >&5
  5625. ac_cv_lib_ssl_SSL_library_init=no
  5626. fi
  5627. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5628. conftest$ac_exeext conftest.$ac_ext
  5629. LIBS=$ac_check_lib_save_LIBS
  5630. fi
  5631. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5632. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5633. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5634. have_openssl=yes; LIBS="-lssl $LIBS"
  5635. fi
  5636. if test "x$have_openssl" = "xyes"; then
  5637. have_openssl=no
  5638. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5639. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5640. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5641. echo $ECHO_N "(cached) $ECHO_C" >&6
  5642. else
  5643. ac_check_lib_save_LIBS=$LIBS
  5644. LIBS="-lcrypto $LIBS"
  5645. cat >conftest.$ac_ext <<_ACEOF
  5646. /* confdefs.h. */
  5647. _ACEOF
  5648. cat confdefs.h >>conftest.$ac_ext
  5649. cat >>conftest.$ac_ext <<_ACEOF
  5650. /* end confdefs.h. */
  5651. int
  5652. main ()
  5653. {
  5654. return main ();
  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_cxx_werror_flag" ||
  5674. test ! -s conftest.err
  5675. } && test -s conftest$ac_exeext &&
  5676. $as_test_x conftest$ac_exeext; then
  5677. ac_cv_lib_crypto_main=yes
  5678. else
  5679. echo "$as_me: failed program was:" >&5
  5680. sed 's/^/| /' conftest.$ac_ext >&5
  5681. ac_cv_lib_crypto_main=no
  5682. fi
  5683. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5684. conftest$ac_exeext conftest.$ac_ext
  5685. LIBS=$ac_check_lib_save_LIBS
  5686. fi
  5687. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  5688. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  5689. if test $ac_cv_lib_crypto_main = yes; then
  5690. have_openssl=yes; LIBS="-lcrypto $LIBS"
  5691. fi
  5692. if test "x$have_openssl" = "xyes"; then
  5693. cat >>confdefs.h <<\_ACEOF
  5694. #define HAVE_LIBSSL 1
  5695. _ACEOF
  5696. for ac_func in EVP_DigestInit_ex
  5697. do
  5698. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5699. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5700. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5701. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5702. echo $ECHO_N "(cached) $ECHO_C" >&6
  5703. else
  5704. cat >conftest.$ac_ext <<_ACEOF
  5705. /* confdefs.h. */
  5706. _ACEOF
  5707. cat confdefs.h >>conftest.$ac_ext
  5708. cat >>conftest.$ac_ext <<_ACEOF
  5709. /* end confdefs.h. */
  5710. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5711. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5712. #define $ac_func innocuous_$ac_func
  5713. /* System header to define __stub macros and hopefully few prototypes,
  5714. which can conflict with char $ac_func (); below.
  5715. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5716. <limits.h> exists even on freestanding compilers. */
  5717. #ifdef __STDC__
  5718. # include <limits.h>
  5719. #else
  5720. # include <assert.h>
  5721. #endif
  5722. #undef $ac_func
  5723. /* Override any GCC internal prototype to avoid an error.
  5724. Use char because int might match the return type of a GCC
  5725. builtin and then its argument prototype would still apply. */
  5726. #ifdef __cplusplus
  5727. extern "C"
  5728. #endif
  5729. char $ac_func ();
  5730. /* The GNU C library defines this for functions which it implements
  5731. to always fail with ENOSYS. Some functions are actually named
  5732. something starting with __ and the normal name is an alias. */
  5733. #if defined __stub_$ac_func || defined __stub___$ac_func
  5734. choke me
  5735. #endif
  5736. int
  5737. main ()
  5738. {
  5739. return $ac_func ();
  5740. ;
  5741. return 0;
  5742. }
  5743. _ACEOF
  5744. rm -f conftest.$ac_objext conftest$ac_exeext
  5745. if { (ac_try="$ac_link"
  5746. case "(($ac_try" in
  5747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5748. *) ac_try_echo=$ac_try;;
  5749. esac
  5750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5751. (eval "$ac_link") 2>conftest.er1
  5752. ac_status=$?
  5753. grep -v '^ *+' conftest.er1 >conftest.err
  5754. rm -f conftest.er1
  5755. cat conftest.err >&5
  5756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5757. (exit $ac_status); } && {
  5758. test -z "$ac_cxx_werror_flag" ||
  5759. test ! -s conftest.err
  5760. } && test -s conftest$ac_exeext &&
  5761. $as_test_x conftest$ac_exeext; then
  5762. eval "$as_ac_var=yes"
  5763. else
  5764. echo "$as_me: failed program was:" >&5
  5765. sed 's/^/| /' conftest.$ac_ext >&5
  5766. eval "$as_ac_var=no"
  5767. fi
  5768. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5769. conftest$ac_exeext conftest.$ac_ext
  5770. fi
  5771. ac_res=`eval echo '${'$as_ac_var'}'`
  5772. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5773. echo "${ECHO_T}$ac_res" >&6; }
  5774. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5775. cat >>confdefs.h <<_ACEOF
  5776. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5777. _ACEOF
  5778. have_digestinit_ex=yes
  5779. fi
  5780. done
  5781. if test "x$have_digestinit_ex" = "x"; then
  5782. cat >>confdefs.h <<\_ACEOF
  5783. #define HAVE_OLD_LIBSSL 1
  5784. _ACEOF
  5785. fi
  5786. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  5787. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  5788. for ac_func in EVP_sha256
  5789. do
  5790. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5791. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5792. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5793. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5794. echo $ECHO_N "(cached) $ECHO_C" >&6
  5795. else
  5796. cat >conftest.$ac_ext <<_ACEOF
  5797. /* confdefs.h. */
  5798. _ACEOF
  5799. cat confdefs.h >>conftest.$ac_ext
  5800. cat >>conftest.$ac_ext <<_ACEOF
  5801. /* end confdefs.h. */
  5802. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5803. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5804. #define $ac_func innocuous_$ac_func
  5805. /* System header to define __stub macros and hopefully few prototypes,
  5806. which can conflict with char $ac_func (); below.
  5807. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5808. <limits.h> exists even on freestanding compilers. */
  5809. #ifdef __STDC__
  5810. # include <limits.h>
  5811. #else
  5812. # include <assert.h>
  5813. #endif
  5814. #undef $ac_func
  5815. /* Override any GCC internal prototype to avoid an error.
  5816. Use char because int might match the return type of a GCC
  5817. builtin and then its argument prototype would still apply. */
  5818. #ifdef __cplusplus
  5819. extern "C"
  5820. #endif
  5821. char $ac_func ();
  5822. /* The GNU C library defines this for functions which it implements
  5823. to always fail with ENOSYS. Some functions are actually named
  5824. something starting with __ and the normal name is an alias. */
  5825. #if defined __stub_$ac_func || defined __stub___$ac_func
  5826. choke me
  5827. #endif
  5828. int
  5829. main ()
  5830. {
  5831. return $ac_func ();
  5832. ;
  5833. return 0;
  5834. }
  5835. _ACEOF
  5836. rm -f conftest.$ac_objext conftest$ac_exeext
  5837. if { (ac_try="$ac_link"
  5838. case "(($ac_try" in
  5839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5840. *) ac_try_echo=$ac_try;;
  5841. esac
  5842. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5843. (eval "$ac_link") 2>conftest.er1
  5844. ac_status=$?
  5845. grep -v '^ *+' conftest.er1 >conftest.err
  5846. rm -f conftest.er1
  5847. cat conftest.err >&5
  5848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5849. (exit $ac_status); } && {
  5850. test -z "$ac_cxx_werror_flag" ||
  5851. test ! -s conftest.err
  5852. } && test -s conftest$ac_exeext &&
  5853. $as_test_x conftest$ac_exeext; then
  5854. eval "$as_ac_var=yes"
  5855. else
  5856. echo "$as_me: failed program was:" >&5
  5857. sed 's/^/| /' conftest.$ac_ext >&5
  5858. eval "$as_ac_var=no"
  5859. fi
  5860. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5861. conftest$ac_exeext conftest.$ac_ext
  5862. fi
  5863. ac_res=`eval echo '${'$as_ac_var'}'`
  5864. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5865. echo "${ECHO_T}$ac_res" >&6; }
  5866. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5867. cat >>confdefs.h <<_ACEOF
  5868. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5869. _ACEOF
  5870. fi
  5871. done
  5872. fi
  5873. fi
  5874. LIBS=$LIBS_save
  5875. CPPFLAGS=$CPPFLAGS_save
  5876. fi
  5877. if test "x$with_libcares" = "xyes"; then
  5878. # Check whether --with-libcares-prefix was given.
  5879. if test "${with_libcares_prefix+set}" = set; then
  5880. withval=$with_libcares_prefix; libcares_prefix=$withval
  5881. else
  5882. libcares_prefix=""
  5883. fi
  5884. if test "x$libcares_prefix" = "x"; then
  5885. libcares_prefix="/usr"
  5886. fi
  5887. libcares_prefix_lib=$libcares_prefix/lib
  5888. libcares_prefix_include=$libcares_prefix/include
  5889. LIBS_save=$LIBS
  5890. CPPFLAGS_save=$CPPFLAGS
  5891. LIBS="-L$libcares_prefix_lib $LIBS"
  5892. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  5893. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  5894. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  5895. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  5896. echo $ECHO_N "(cached) $ECHO_C" >&6
  5897. else
  5898. ac_check_lib_save_LIBS=$LIBS
  5899. LIBS="-lcares $LIBS"
  5900. cat >conftest.$ac_ext <<_ACEOF
  5901. /* confdefs.h. */
  5902. _ACEOF
  5903. cat confdefs.h >>conftest.$ac_ext
  5904. cat >>conftest.$ac_ext <<_ACEOF
  5905. /* end confdefs.h. */
  5906. /* Override any GCC internal prototype to avoid an error.
  5907. Use char because int might match the return type of a GCC
  5908. builtin and then its argument prototype would still apply. */
  5909. #ifdef __cplusplus
  5910. extern "C"
  5911. #endif
  5912. char ares_init ();
  5913. int
  5914. main ()
  5915. {
  5916. return ares_init ();
  5917. ;
  5918. return 0;
  5919. }
  5920. _ACEOF
  5921. rm -f conftest.$ac_objext conftest$ac_exeext
  5922. if { (ac_try="$ac_link"
  5923. case "(($ac_try" in
  5924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5925. *) ac_try_echo=$ac_try;;
  5926. esac
  5927. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5928. (eval "$ac_link") 2>conftest.er1
  5929. ac_status=$?
  5930. grep -v '^ *+' conftest.er1 >conftest.err
  5931. rm -f conftest.er1
  5932. cat conftest.err >&5
  5933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5934. (exit $ac_status); } && {
  5935. test -z "$ac_cxx_werror_flag" ||
  5936. test ! -s conftest.err
  5937. } && test -s conftest$ac_exeext &&
  5938. $as_test_x conftest$ac_exeext; then
  5939. ac_cv_lib_cares_ares_init=yes
  5940. else
  5941. echo "$as_me: failed program was:" >&5
  5942. sed 's/^/| /' conftest.$ac_ext >&5
  5943. ac_cv_lib_cares_ares_init=no
  5944. fi
  5945. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5946. conftest$ac_exeext conftest.$ac_ext
  5947. LIBS=$ac_check_lib_save_LIBS
  5948. fi
  5949. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  5950. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  5951. if test $ac_cv_lib_cares_ares_init = yes; then
  5952. have_libcares=yes
  5953. fi
  5954. if test "x$have_libcares" = "xyes"; then
  5955. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  5956. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  5957. cat >conftest.$ac_ext <<_ACEOF
  5958. /* confdefs.h. */
  5959. _ACEOF
  5960. cat confdefs.h >>conftest.$ac_ext
  5961. cat >>conftest.$ac_ext <<_ACEOF
  5962. /* end confdefs.h. */
  5963. #include <ares.h>
  5964. void callback(void* arg, int status, int timeouts, struct hostent* host);
  5965. int
  5966. main ()
  5967. {
  5968. ares_channel channel;
  5969. ares_gethostbyname(channel, "foo", 0, callback, 0);
  5970. ;
  5971. return 0;
  5972. }
  5973. _ACEOF
  5974. rm -f conftest.$ac_objext
  5975. if { (ac_try="$ac_compile"
  5976. case "(($ac_try" in
  5977. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5978. *) ac_try_echo=$ac_try;;
  5979. esac
  5980. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5981. (eval "$ac_compile") 2>conftest.er1
  5982. ac_status=$?
  5983. grep -v '^ *+' conftest.er1 >conftest.err
  5984. rm -f conftest.er1
  5985. cat conftest.err >&5
  5986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5987. (exit $ac_status); } && {
  5988. test -z "$ac_cxx_werror_flag" ||
  5989. test ! -s conftest.err
  5990. } && test -s conftest.$ac_objext; then
  5991. have_libcares1_5=yes
  5992. else
  5993. echo "$as_me: failed program was:" >&5
  5994. sed 's/^/| /' conftest.$ac_ext >&5
  5995. have_libcares1_5=no
  5996. fi
  5997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5998. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  5999. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6000. if test "x$have_libcares1_5" = "xyes"; then
  6001. cat >>confdefs.h <<\_ACEOF
  6002. #define HAVE_LIBCARES1_5 1
  6003. _ACEOF
  6004. fi
  6005. cat >>confdefs.h <<\_ACEOF
  6006. #define HAVE_LIBCARES 1
  6007. _ACEOF
  6008. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6009. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6010. fi
  6011. LIBS=$LIBS_save
  6012. CPPFLAGS=$CPPFLAGS_save
  6013. fi
  6014. if test "x$have_libcares" = "x"; then
  6015. if test "x$with_libares" = "xyes"; then
  6016. # Check whether --with-libares-prefix was given.
  6017. if test "${with_libares_prefix+set}" = set; then
  6018. withval=$with_libares_prefix; libares_prefix=$withval
  6019. else
  6020. libares_prefix=""
  6021. fi
  6022. if test "x$libares_prefix" = "x"; then
  6023. libares_prefix="/usr"
  6024. fi
  6025. libares_prefix_lib=$libares_prefix/lib
  6026. libares_prefix_include=$libares_prefix/include
  6027. LIBS_save=$LIBS
  6028. CPPFLAGS_save=$CPPFLAGS
  6029. LIBS="-L$libares_prefix_lib $LIBS"
  6030. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  6031. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  6032. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  6033. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  6034. echo $ECHO_N "(cached) $ECHO_C" >&6
  6035. else
  6036. ac_check_lib_save_LIBS=$LIBS
  6037. LIBS="-lares $LIBS"
  6038. cat >conftest.$ac_ext <<_ACEOF
  6039. /* confdefs.h. */
  6040. _ACEOF
  6041. cat confdefs.h >>conftest.$ac_ext
  6042. cat >>conftest.$ac_ext <<_ACEOF
  6043. /* end confdefs.h. */
  6044. /* Override any GCC internal prototype to avoid an error.
  6045. Use char because int might match the return type of a GCC
  6046. builtin and then its argument prototype would still apply. */
  6047. #ifdef __cplusplus
  6048. extern "C"
  6049. #endif
  6050. char ares_init ();
  6051. int
  6052. main ()
  6053. {
  6054. return ares_init ();
  6055. ;
  6056. return 0;
  6057. }
  6058. _ACEOF
  6059. rm -f conftest.$ac_objext conftest$ac_exeext
  6060. if { (ac_try="$ac_link"
  6061. case "(($ac_try" in
  6062. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6063. *) ac_try_echo=$ac_try;;
  6064. esac
  6065. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6066. (eval "$ac_link") 2>conftest.er1
  6067. ac_status=$?
  6068. grep -v '^ *+' conftest.er1 >conftest.err
  6069. rm -f conftest.er1
  6070. cat conftest.err >&5
  6071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6072. (exit $ac_status); } && {
  6073. test -z "$ac_cxx_werror_flag" ||
  6074. test ! -s conftest.err
  6075. } && test -s conftest$ac_exeext &&
  6076. $as_test_x conftest$ac_exeext; then
  6077. ac_cv_lib_ares_ares_init=yes
  6078. else
  6079. echo "$as_me: failed program was:" >&5
  6080. sed 's/^/| /' conftest.$ac_ext >&5
  6081. ac_cv_lib_ares_ares_init=no
  6082. fi
  6083. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6084. conftest$ac_exeext conftest.$ac_ext
  6085. LIBS=$ac_check_lib_save_LIBS
  6086. fi
  6087. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  6088. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  6089. if test $ac_cv_lib_ares_ares_init = yes; then
  6090. have_libares=yes
  6091. fi
  6092. if test "x$have_libares" = "xyes"; then
  6093. cat >>confdefs.h <<\_ACEOF
  6094. #define HAVE_LIBARES 1
  6095. _ACEOF
  6096. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  6097. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  6098. fi
  6099. LIBS=$LIBS_save
  6100. CPPFLAGS=$CPPFLAGS_save
  6101. fi
  6102. fi
  6103. # Define variables based on the result of the checks for libraries.
  6104. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6105. cat >>confdefs.h <<\_ACEOF
  6106. #define ENABLE_SSL 1
  6107. _ACEOF
  6108. fi
  6109. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6110. cat >>confdefs.h <<\_ACEOF
  6111. #define ENABLE_MESSAGE_DIGEST 1
  6112. _ACEOF
  6113. if true; then
  6114. ENABLE_MESSAGE_DIGEST_TRUE=
  6115. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6116. else
  6117. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6118. ENABLE_MESSAGE_DIGEST_FALSE=
  6119. fi
  6120. enable_message_digest=yes
  6121. else
  6122. if false; then
  6123. ENABLE_MESSAGE_DIGEST_TRUE=
  6124. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6125. else
  6126. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6127. ENABLE_MESSAGE_DIGEST_FALSE=
  6128. fi
  6129. fi
  6130. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  6131. cat >>confdefs.h <<\_ACEOF
  6132. #define ENABLE_BITTORRENT 1
  6133. _ACEOF
  6134. if true; then
  6135. ENABLE_BITTORRENT_TRUE=
  6136. ENABLE_BITTORRENT_FALSE='#'
  6137. else
  6138. ENABLE_BITTORRENT_TRUE='#'
  6139. ENABLE_BITTORRENT_FALSE=
  6140. fi
  6141. else
  6142. enable_bittorrent=no
  6143. if false; then
  6144. ENABLE_BITTORRENT_TRUE=
  6145. ENABLE_BITTORRENT_FALSE='#'
  6146. else
  6147. ENABLE_BITTORRENT_TRUE='#'
  6148. ENABLE_BITTORRENT_FALSE=
  6149. fi
  6150. fi
  6151. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") && test "x$enable_metalink" = "xyes"; then
  6152. cat >>confdefs.h <<\_ACEOF
  6153. #define ENABLE_METALINK 1
  6154. _ACEOF
  6155. if true; then
  6156. ENABLE_METALINK_TRUE=
  6157. ENABLE_METALINK_FALSE='#'
  6158. else
  6159. ENABLE_METALINK_TRUE='#'
  6160. ENABLE_METALINK_FALSE=
  6161. fi
  6162. else
  6163. enable_metalink=no
  6164. if false; then
  6165. ENABLE_METALINK_TRUE=
  6166. ENABLE_METALINK_FALSE='#'
  6167. else
  6168. ENABLE_METALINK_TRUE='#'
  6169. ENABLE_METALINK_FALSE=
  6170. fi
  6171. fi
  6172. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6173. ENABLE_LIBXML2_TRUE=
  6174. ENABLE_LIBXML2_FALSE='#'
  6175. else
  6176. ENABLE_LIBXML2_TRUE='#'
  6177. ENABLE_LIBXML2_FALSE=
  6178. fi
  6179. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6180. ENABLE_LIBEXPAT_TRUE=
  6181. ENABLE_LIBEXPAT_FALSE='#'
  6182. else
  6183. ENABLE_LIBEXPAT_TRUE='#'
  6184. ENABLE_LIBEXPAT_FALSE=
  6185. fi
  6186. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6187. cat >>confdefs.h <<\_ACEOF
  6188. #define ENABLE_ASYNC_DNS 1
  6189. _ACEOF
  6190. if true; then
  6191. ENABLE_ASYNC_DNS_TRUE=
  6192. ENABLE_ASYNC_DNS_FALSE='#'
  6193. else
  6194. ENABLE_ASYNC_DNS_TRUE='#'
  6195. ENABLE_ASYNC_DNS_FALSE=
  6196. fi
  6197. else
  6198. if false; then
  6199. ENABLE_ASYNC_DNS_TRUE=
  6200. ENABLE_ASYNC_DNS_FALSE='#'
  6201. else
  6202. ENABLE_ASYNC_DNS_TRUE='#'
  6203. ENABLE_ASYNC_DNS_FALSE=
  6204. fi
  6205. fi
  6206. # Checks for header files.
  6207. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6208. # for constant arguments. Useless!
  6209. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6210. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6211. if test "${ac_cv_working_alloca_h+set}" = set; then
  6212. echo $ECHO_N "(cached) $ECHO_C" >&6
  6213. else
  6214. cat >conftest.$ac_ext <<_ACEOF
  6215. /* confdefs.h. */
  6216. _ACEOF
  6217. cat confdefs.h >>conftest.$ac_ext
  6218. cat >>conftest.$ac_ext <<_ACEOF
  6219. /* end confdefs.h. */
  6220. #include <alloca.h>
  6221. int
  6222. main ()
  6223. {
  6224. char *p = (char *) alloca (2 * sizeof (int));
  6225. if (p) return 0;
  6226. ;
  6227. return 0;
  6228. }
  6229. _ACEOF
  6230. rm -f conftest.$ac_objext conftest$ac_exeext
  6231. if { (ac_try="$ac_link"
  6232. case "(($ac_try" in
  6233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6234. *) ac_try_echo=$ac_try;;
  6235. esac
  6236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6237. (eval "$ac_link") 2>conftest.er1
  6238. ac_status=$?
  6239. grep -v '^ *+' conftest.er1 >conftest.err
  6240. rm -f conftest.er1
  6241. cat conftest.err >&5
  6242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6243. (exit $ac_status); } && {
  6244. test -z "$ac_cxx_werror_flag" ||
  6245. test ! -s conftest.err
  6246. } && test -s conftest$ac_exeext &&
  6247. $as_test_x conftest$ac_exeext; then
  6248. ac_cv_working_alloca_h=yes
  6249. else
  6250. echo "$as_me: failed program was:" >&5
  6251. sed 's/^/| /' conftest.$ac_ext >&5
  6252. ac_cv_working_alloca_h=no
  6253. fi
  6254. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6255. conftest$ac_exeext conftest.$ac_ext
  6256. fi
  6257. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6258. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6259. if test $ac_cv_working_alloca_h = yes; then
  6260. cat >>confdefs.h <<\_ACEOF
  6261. #define HAVE_ALLOCA_H 1
  6262. _ACEOF
  6263. fi
  6264. { echo "$as_me:$LINENO: checking for alloca" >&5
  6265. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6266. if test "${ac_cv_func_alloca_works+set}" = set; then
  6267. echo $ECHO_N "(cached) $ECHO_C" >&6
  6268. else
  6269. cat >conftest.$ac_ext <<_ACEOF
  6270. /* confdefs.h. */
  6271. _ACEOF
  6272. cat confdefs.h >>conftest.$ac_ext
  6273. cat >>conftest.$ac_ext <<_ACEOF
  6274. /* end confdefs.h. */
  6275. #ifdef __GNUC__
  6276. # define alloca __builtin_alloca
  6277. #else
  6278. # ifdef _MSC_VER
  6279. # include <malloc.h>
  6280. # define alloca _alloca
  6281. # else
  6282. # ifdef HAVE_ALLOCA_H
  6283. # include <alloca.h>
  6284. # else
  6285. # ifdef _AIX
  6286. #pragma alloca
  6287. # else
  6288. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6289. char *alloca ();
  6290. # endif
  6291. # endif
  6292. # endif
  6293. # endif
  6294. #endif
  6295. int
  6296. main ()
  6297. {
  6298. char *p = (char *) alloca (1);
  6299. if (p) return 0;
  6300. ;
  6301. return 0;
  6302. }
  6303. _ACEOF
  6304. rm -f conftest.$ac_objext conftest$ac_exeext
  6305. if { (ac_try="$ac_link"
  6306. case "(($ac_try" in
  6307. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6308. *) ac_try_echo=$ac_try;;
  6309. esac
  6310. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6311. (eval "$ac_link") 2>conftest.er1
  6312. ac_status=$?
  6313. grep -v '^ *+' conftest.er1 >conftest.err
  6314. rm -f conftest.er1
  6315. cat conftest.err >&5
  6316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6317. (exit $ac_status); } && {
  6318. test -z "$ac_cxx_werror_flag" ||
  6319. test ! -s conftest.err
  6320. } && test -s conftest$ac_exeext &&
  6321. $as_test_x conftest$ac_exeext; then
  6322. ac_cv_func_alloca_works=yes
  6323. else
  6324. echo "$as_me: failed program was:" >&5
  6325. sed 's/^/| /' conftest.$ac_ext >&5
  6326. ac_cv_func_alloca_works=no
  6327. fi
  6328. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6329. conftest$ac_exeext conftest.$ac_ext
  6330. fi
  6331. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6332. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6333. if test $ac_cv_func_alloca_works = yes; then
  6334. cat >>confdefs.h <<\_ACEOF
  6335. #define HAVE_ALLOCA 1
  6336. _ACEOF
  6337. else
  6338. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6339. # that cause trouble. Some versions do not even contain alloca or
  6340. # contain a buggy version. If you still want to use their alloca,
  6341. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6342. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6343. cat >>confdefs.h <<\_ACEOF
  6344. #define C_ALLOCA 1
  6345. _ACEOF
  6346. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6347. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6348. if test "${ac_cv_os_cray+set}" = set; then
  6349. echo $ECHO_N "(cached) $ECHO_C" >&6
  6350. else
  6351. cat >conftest.$ac_ext <<_ACEOF
  6352. /* confdefs.h. */
  6353. _ACEOF
  6354. cat confdefs.h >>conftest.$ac_ext
  6355. cat >>conftest.$ac_ext <<_ACEOF
  6356. /* end confdefs.h. */
  6357. #if defined CRAY && ! defined CRAY2
  6358. webecray
  6359. #else
  6360. wenotbecray
  6361. #endif
  6362. _ACEOF
  6363. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6364. $EGREP "webecray" >/dev/null 2>&1; then
  6365. ac_cv_os_cray=yes
  6366. else
  6367. ac_cv_os_cray=no
  6368. fi
  6369. rm -f conftest*
  6370. fi
  6371. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6372. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6373. if test $ac_cv_os_cray = yes; then
  6374. for ac_func in _getb67 GETB67 getb67; do
  6375. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6376. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6377. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6378. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6379. echo $ECHO_N "(cached) $ECHO_C" >&6
  6380. else
  6381. cat >conftest.$ac_ext <<_ACEOF
  6382. /* confdefs.h. */
  6383. _ACEOF
  6384. cat confdefs.h >>conftest.$ac_ext
  6385. cat >>conftest.$ac_ext <<_ACEOF
  6386. /* end confdefs.h. */
  6387. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6388. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6389. #define $ac_func innocuous_$ac_func
  6390. /* System header to define __stub macros and hopefully few prototypes,
  6391. which can conflict with char $ac_func (); below.
  6392. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6393. <limits.h> exists even on freestanding compilers. */
  6394. #ifdef __STDC__
  6395. # include <limits.h>
  6396. #else
  6397. # include <assert.h>
  6398. #endif
  6399. #undef $ac_func
  6400. /* Override any GCC internal prototype to avoid an error.
  6401. Use char because int might match the return type of a GCC
  6402. builtin and then its argument prototype would still apply. */
  6403. #ifdef __cplusplus
  6404. extern "C"
  6405. #endif
  6406. char $ac_func ();
  6407. /* The GNU C library defines this for functions which it implements
  6408. to always fail with ENOSYS. Some functions are actually named
  6409. something starting with __ and the normal name is an alias. */
  6410. #if defined __stub_$ac_func || defined __stub___$ac_func
  6411. choke me
  6412. #endif
  6413. int
  6414. main ()
  6415. {
  6416. return $ac_func ();
  6417. ;
  6418. return 0;
  6419. }
  6420. _ACEOF
  6421. rm -f conftest.$ac_objext conftest$ac_exeext
  6422. if { (ac_try="$ac_link"
  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_link") 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_cxx_werror_flag" ||
  6436. test ! -s conftest.err
  6437. } && test -s conftest$ac_exeext &&
  6438. $as_test_x conftest$ac_exeext; then
  6439. eval "$as_ac_var=yes"
  6440. else
  6441. echo "$as_me: failed program was:" >&5
  6442. sed 's/^/| /' conftest.$ac_ext >&5
  6443. eval "$as_ac_var=no"
  6444. fi
  6445. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6446. conftest$ac_exeext conftest.$ac_ext
  6447. fi
  6448. ac_res=`eval echo '${'$as_ac_var'}'`
  6449. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6450. echo "${ECHO_T}$ac_res" >&6; }
  6451. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6452. cat >>confdefs.h <<_ACEOF
  6453. #define CRAY_STACKSEG_END $ac_func
  6454. _ACEOF
  6455. break
  6456. fi
  6457. done
  6458. fi
  6459. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6460. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6461. if test "${ac_cv_c_stack_direction+set}" = set; then
  6462. echo $ECHO_N "(cached) $ECHO_C" >&6
  6463. else
  6464. if test "$cross_compiling" = yes; then
  6465. ac_cv_c_stack_direction=0
  6466. else
  6467. cat >conftest.$ac_ext <<_ACEOF
  6468. /* confdefs.h. */
  6469. _ACEOF
  6470. cat confdefs.h >>conftest.$ac_ext
  6471. cat >>conftest.$ac_ext <<_ACEOF
  6472. /* end confdefs.h. */
  6473. $ac_includes_default
  6474. int
  6475. find_stack_direction ()
  6476. {
  6477. static char *addr = 0;
  6478. auto char dummy;
  6479. if (addr == 0)
  6480. {
  6481. addr = &dummy;
  6482. return find_stack_direction ();
  6483. }
  6484. else
  6485. return (&dummy > addr) ? 1 : -1;
  6486. }
  6487. int
  6488. main ()
  6489. {
  6490. return find_stack_direction () < 0;
  6491. }
  6492. _ACEOF
  6493. rm -f conftest$ac_exeext
  6494. if { (ac_try="$ac_link"
  6495. case "(($ac_try" in
  6496. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6497. *) ac_try_echo=$ac_try;;
  6498. esac
  6499. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6500. (eval "$ac_link") 2>&5
  6501. ac_status=$?
  6502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6503. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6504. { (case "(($ac_try" in
  6505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6506. *) ac_try_echo=$ac_try;;
  6507. esac
  6508. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6509. (eval "$ac_try") 2>&5
  6510. ac_status=$?
  6511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6512. (exit $ac_status); }; }; then
  6513. ac_cv_c_stack_direction=1
  6514. else
  6515. echo "$as_me: program exited with status $ac_status" >&5
  6516. echo "$as_me: failed program was:" >&5
  6517. sed 's/^/| /' conftest.$ac_ext >&5
  6518. ( exit $ac_status )
  6519. ac_cv_c_stack_direction=-1
  6520. fi
  6521. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6522. fi
  6523. fi
  6524. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6525. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6526. cat >>confdefs.h <<_ACEOF
  6527. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6528. _ACEOF
  6529. fi
  6530. #AC_HEADER_STDC
  6531. for ac_header in winsock2.h ws2tcpip.h argz.h arpa/inet.h fcntl.h inttypes.h io.h langinfo.h libgen.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/param.h sys/socket.h sys/time.h unistd.h
  6532. do
  6533. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6534. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6535. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6536. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6537. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6538. echo $ECHO_N "(cached) $ECHO_C" >&6
  6539. fi
  6540. ac_res=`eval echo '${'$as_ac_Header'}'`
  6541. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6542. echo "${ECHO_T}$ac_res" >&6; }
  6543. else
  6544. # Is the header compilable?
  6545. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6546. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6547. cat >conftest.$ac_ext <<_ACEOF
  6548. /* confdefs.h. */
  6549. _ACEOF
  6550. cat confdefs.h >>conftest.$ac_ext
  6551. cat >>conftest.$ac_ext <<_ACEOF
  6552. /* end confdefs.h. */
  6553. $ac_includes_default
  6554. #include <$ac_header>
  6555. _ACEOF
  6556. rm -f conftest.$ac_objext
  6557. if { (ac_try="$ac_compile"
  6558. case "(($ac_try" in
  6559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6560. *) ac_try_echo=$ac_try;;
  6561. esac
  6562. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6563. (eval "$ac_compile") 2>conftest.er1
  6564. ac_status=$?
  6565. grep -v '^ *+' conftest.er1 >conftest.err
  6566. rm -f conftest.er1
  6567. cat conftest.err >&5
  6568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6569. (exit $ac_status); } && {
  6570. test -z "$ac_cxx_werror_flag" ||
  6571. test ! -s conftest.err
  6572. } && test -s conftest.$ac_objext; then
  6573. ac_header_compiler=yes
  6574. else
  6575. echo "$as_me: failed program was:" >&5
  6576. sed 's/^/| /' conftest.$ac_ext >&5
  6577. ac_header_compiler=no
  6578. fi
  6579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6580. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6581. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6582. # Is the header present?
  6583. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6584. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6585. cat >conftest.$ac_ext <<_ACEOF
  6586. /* confdefs.h. */
  6587. _ACEOF
  6588. cat confdefs.h >>conftest.$ac_ext
  6589. cat >>conftest.$ac_ext <<_ACEOF
  6590. /* end confdefs.h. */
  6591. #include <$ac_header>
  6592. _ACEOF
  6593. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6594. case "(($ac_try" in
  6595. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6596. *) ac_try_echo=$ac_try;;
  6597. esac
  6598. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6599. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6600. ac_status=$?
  6601. grep -v '^ *+' conftest.er1 >conftest.err
  6602. rm -f conftest.er1
  6603. cat conftest.err >&5
  6604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6605. (exit $ac_status); } >/dev/null && {
  6606. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6607. test ! -s conftest.err
  6608. }; then
  6609. ac_header_preproc=yes
  6610. else
  6611. echo "$as_me: failed program was:" >&5
  6612. sed 's/^/| /' conftest.$ac_ext >&5
  6613. ac_header_preproc=no
  6614. fi
  6615. rm -f conftest.err conftest.$ac_ext
  6616. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6617. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6618. # So? What about this header?
  6619. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6620. yes:no: )
  6621. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6622. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6623. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6624. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6625. ac_header_preproc=yes
  6626. ;;
  6627. no:yes:* )
  6628. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6629. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6630. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6631. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6632. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6633. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6634. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6635. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6636. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6637. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6638. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6639. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6640. ( cat <<\_ASBOX
  6641. ## ----------------------------------------------- ##
  6642. ## Report this to t-tujikawa@users.sourceforge.net ##
  6643. ## ----------------------------------------------- ##
  6644. _ASBOX
  6645. ) | sed "s/^/$as_me: WARNING: /" >&2
  6646. ;;
  6647. esac
  6648. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6649. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6650. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6651. echo $ECHO_N "(cached) $ECHO_C" >&6
  6652. else
  6653. eval "$as_ac_Header=\$ac_header_preproc"
  6654. fi
  6655. ac_res=`eval echo '${'$as_ac_Header'}'`
  6656. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6657. echo "${ECHO_T}$ac_res" >&6; }
  6658. fi
  6659. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6660. cat >>confdefs.h <<_ACEOF
  6661. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6662. _ACEOF
  6663. fi
  6664. done
  6665. # Checks for typedefs, structures, and compiler characteristics.
  6666. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6667. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  6668. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6669. echo $ECHO_N "(cached) $ECHO_C" >&6
  6670. else
  6671. cat >conftest.$ac_ext <<_ACEOF
  6672. /* confdefs.h. */
  6673. _ACEOF
  6674. cat confdefs.h >>conftest.$ac_ext
  6675. cat >>conftest.$ac_ext <<_ACEOF
  6676. /* end confdefs.h. */
  6677. #include <stdbool.h>
  6678. #ifndef bool
  6679. "error: bool is not defined"
  6680. #endif
  6681. #ifndef false
  6682. "error: false is not defined"
  6683. #endif
  6684. #if false
  6685. "error: false is not 0"
  6686. #endif
  6687. #ifndef true
  6688. "error: true is not defined"
  6689. #endif
  6690. #if true != 1
  6691. "error: true is not 1"
  6692. #endif
  6693. #ifndef __bool_true_false_are_defined
  6694. "error: __bool_true_false_are_defined is not defined"
  6695. #endif
  6696. struct s { _Bool s: 1; _Bool t; } s;
  6697. char a[true == 1 ? 1 : -1];
  6698. char b[false == 0 ? 1 : -1];
  6699. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6700. char d[(bool) 0.5 == true ? 1 : -1];
  6701. bool e = &s;
  6702. char f[(_Bool) 0.0 == false ? 1 : -1];
  6703. char g[true];
  6704. char h[sizeof (_Bool)];
  6705. char i[sizeof s.t];
  6706. enum { j = false, k = true, l = false * true, m = true * 256 };
  6707. _Bool n[m];
  6708. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6709. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6710. # if defined __xlc__ || defined __GNUC__
  6711. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6712. reported by James Lemley on 2005-10-05; see
  6713. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6714. This test is not quite right, since xlc is allowed to
  6715. reject this program, as the initializer for xlcbug is
  6716. not one of the forms that C requires support for.
  6717. However, doing the test right would require a runtime
  6718. test, and that would make cross-compilation harder.
  6719. Let us hope that IBM fixes the xlc bug, and also adds
  6720. support for this kind of constant expression. In the
  6721. meantime, this test will reject xlc, which is OK, since
  6722. our stdbool.h substitute should suffice. We also test
  6723. this with GCC, where it should work, to detect more
  6724. quickly whether someone messes up the test in the
  6725. future. */
  6726. char digs[] = "0123456789";
  6727. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6728. # endif
  6729. /* Catch a bug in an HP-UX C compiler. See
  6730. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6731. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6732. */
  6733. _Bool q = true;
  6734. _Bool *pq = &q;
  6735. int
  6736. main ()
  6737. {
  6738. *pq |= q;
  6739. *pq |= ! q;
  6740. /* Refer to every declared value, to avoid compiler optimizations. */
  6741. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6742. + !m + !n + !o + !p + !q + !pq);
  6743. ;
  6744. return 0;
  6745. }
  6746. _ACEOF
  6747. rm -f conftest.$ac_objext
  6748. if { (ac_try="$ac_compile"
  6749. case "(($ac_try" in
  6750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6751. *) ac_try_echo=$ac_try;;
  6752. esac
  6753. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6754. (eval "$ac_compile") 2>conftest.er1
  6755. ac_status=$?
  6756. grep -v '^ *+' conftest.er1 >conftest.err
  6757. rm -f conftest.er1
  6758. cat conftest.err >&5
  6759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6760. (exit $ac_status); } && {
  6761. test -z "$ac_cxx_werror_flag" ||
  6762. test ! -s conftest.err
  6763. } && test -s conftest.$ac_objext; then
  6764. ac_cv_header_stdbool_h=yes
  6765. else
  6766. echo "$as_me: failed program was:" >&5
  6767. sed 's/^/| /' conftest.$ac_ext >&5
  6768. ac_cv_header_stdbool_h=no
  6769. fi
  6770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6771. fi
  6772. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6773. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6774. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6775. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6776. if test "${ac_cv_type__Bool+set}" = set; then
  6777. echo $ECHO_N "(cached) $ECHO_C" >&6
  6778. else
  6779. cat >conftest.$ac_ext <<_ACEOF
  6780. /* confdefs.h. */
  6781. _ACEOF
  6782. cat confdefs.h >>conftest.$ac_ext
  6783. cat >>conftest.$ac_ext <<_ACEOF
  6784. /* end confdefs.h. */
  6785. $ac_includes_default
  6786. typedef _Bool ac__type_new_;
  6787. int
  6788. main ()
  6789. {
  6790. if ((ac__type_new_ *) 0)
  6791. return 0;
  6792. if (sizeof (ac__type_new_))
  6793. return 0;
  6794. ;
  6795. return 0;
  6796. }
  6797. _ACEOF
  6798. rm -f conftest.$ac_objext
  6799. if { (ac_try="$ac_compile"
  6800. case "(($ac_try" in
  6801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6802. *) ac_try_echo=$ac_try;;
  6803. esac
  6804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6805. (eval "$ac_compile") 2>conftest.er1
  6806. ac_status=$?
  6807. grep -v '^ *+' conftest.er1 >conftest.err
  6808. rm -f conftest.er1
  6809. cat conftest.err >&5
  6810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6811. (exit $ac_status); } && {
  6812. test -z "$ac_cxx_werror_flag" ||
  6813. test ! -s conftest.err
  6814. } && test -s conftest.$ac_objext; then
  6815. ac_cv_type__Bool=yes
  6816. else
  6817. echo "$as_me: failed program was:" >&5
  6818. sed 's/^/| /' conftest.$ac_ext >&5
  6819. ac_cv_type__Bool=no
  6820. fi
  6821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6822. fi
  6823. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  6824. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  6825. if test $ac_cv_type__Bool = yes; then
  6826. cat >>confdefs.h <<_ACEOF
  6827. #define HAVE__BOOL 1
  6828. _ACEOF
  6829. fi
  6830. if test $ac_cv_header_stdbool_h = yes; then
  6831. cat >>confdefs.h <<\_ACEOF
  6832. #define HAVE_STDBOOL_H 1
  6833. _ACEOF
  6834. fi
  6835. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6836. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  6837. if test "${ac_cv_c_const+set}" = set; then
  6838. echo $ECHO_N "(cached) $ECHO_C" >&6
  6839. else
  6840. cat >conftest.$ac_ext <<_ACEOF
  6841. /* confdefs.h. */
  6842. _ACEOF
  6843. cat confdefs.h >>conftest.$ac_ext
  6844. cat >>conftest.$ac_ext <<_ACEOF
  6845. /* end confdefs.h. */
  6846. int
  6847. main ()
  6848. {
  6849. /* FIXME: Include the comments suggested by Paul. */
  6850. #ifndef __cplusplus
  6851. /* Ultrix mips cc rejects this. */
  6852. typedef int charset[2];
  6853. const charset cs;
  6854. /* SunOS 4.1.1 cc rejects this. */
  6855. char const *const *pcpcc;
  6856. char **ppc;
  6857. /* NEC SVR4.0.2 mips cc rejects this. */
  6858. struct point {int x, y;};
  6859. static struct point const zero = {0,0};
  6860. /* AIX XL C 1.02.0.0 rejects this.
  6861. It does not let you subtract one const X* pointer from another in
  6862. an arm of an if-expression whose if-part is not a constant
  6863. expression */
  6864. const char *g = "string";
  6865. pcpcc = &g + (g ? g-g : 0);
  6866. /* HPUX 7.0 cc rejects these. */
  6867. ++pcpcc;
  6868. ppc = (char**) pcpcc;
  6869. pcpcc = (char const *const *) ppc;
  6870. { /* SCO 3.2v4 cc rejects this. */
  6871. char *t;
  6872. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6873. *t++ = 0;
  6874. if (s) return 0;
  6875. }
  6876. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6877. int x[] = {25, 17};
  6878. const int *foo = &x[0];
  6879. ++foo;
  6880. }
  6881. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6882. typedef const int *iptr;
  6883. iptr p = 0;
  6884. ++p;
  6885. }
  6886. { /* AIX XL C 1.02.0.0 rejects this saying
  6887. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6888. struct s { int j; const int *ap[3]; };
  6889. struct s *b; b->j = 5;
  6890. }
  6891. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6892. const int foo = 10;
  6893. if (!foo) return 0;
  6894. }
  6895. return !cs[0] && !zero.x;
  6896. #endif
  6897. ;
  6898. return 0;
  6899. }
  6900. _ACEOF
  6901. rm -f conftest.$ac_objext
  6902. if { (ac_try="$ac_compile"
  6903. case "(($ac_try" in
  6904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6905. *) ac_try_echo=$ac_try;;
  6906. esac
  6907. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6908. (eval "$ac_compile") 2>conftest.er1
  6909. ac_status=$?
  6910. grep -v '^ *+' conftest.er1 >conftest.err
  6911. rm -f conftest.er1
  6912. cat conftest.err >&5
  6913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6914. (exit $ac_status); } && {
  6915. test -z "$ac_cxx_werror_flag" ||
  6916. test ! -s conftest.err
  6917. } && test -s conftest.$ac_objext; then
  6918. ac_cv_c_const=yes
  6919. else
  6920. echo "$as_me: failed program was:" >&5
  6921. sed 's/^/| /' conftest.$ac_ext >&5
  6922. ac_cv_c_const=no
  6923. fi
  6924. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6925. fi
  6926. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6927. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  6928. if test $ac_cv_c_const = no; then
  6929. cat >>confdefs.h <<\_ACEOF
  6930. #define const
  6931. _ACEOF
  6932. fi
  6933. { echo "$as_me:$LINENO: checking for inline" >&5
  6934. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  6935. if test "${ac_cv_c_inline+set}" = set; then
  6936. echo $ECHO_N "(cached) $ECHO_C" >&6
  6937. else
  6938. ac_cv_c_inline=no
  6939. for ac_kw in inline __inline__ __inline; do
  6940. cat >conftest.$ac_ext <<_ACEOF
  6941. /* confdefs.h. */
  6942. _ACEOF
  6943. cat confdefs.h >>conftest.$ac_ext
  6944. cat >>conftest.$ac_ext <<_ACEOF
  6945. /* end confdefs.h. */
  6946. #ifndef __cplusplus
  6947. typedef int foo_t;
  6948. static $ac_kw foo_t static_foo () {return 0; }
  6949. $ac_kw foo_t foo () {return 0; }
  6950. #endif
  6951. _ACEOF
  6952. rm -f conftest.$ac_objext
  6953. if { (ac_try="$ac_compile"
  6954. case "(($ac_try" in
  6955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6956. *) ac_try_echo=$ac_try;;
  6957. esac
  6958. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6959. (eval "$ac_compile") 2>conftest.er1
  6960. ac_status=$?
  6961. grep -v '^ *+' conftest.er1 >conftest.err
  6962. rm -f conftest.er1
  6963. cat conftest.err >&5
  6964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6965. (exit $ac_status); } && {
  6966. test -z "$ac_cxx_werror_flag" ||
  6967. test ! -s conftest.err
  6968. } && test -s conftest.$ac_objext; then
  6969. ac_cv_c_inline=$ac_kw
  6970. else
  6971. echo "$as_me: failed program was:" >&5
  6972. sed 's/^/| /' conftest.$ac_ext >&5
  6973. fi
  6974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6975. test "$ac_cv_c_inline" != no && break
  6976. done
  6977. fi
  6978. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6979. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  6980. case $ac_cv_c_inline in
  6981. inline | yes) ;;
  6982. *)
  6983. case $ac_cv_c_inline in
  6984. no) ac_val=;;
  6985. *) ac_val=$ac_cv_c_inline;;
  6986. esac
  6987. cat >>confdefs.h <<_ACEOF
  6988. #ifndef __cplusplus
  6989. #define inline $ac_val
  6990. #endif
  6991. _ACEOF
  6992. ;;
  6993. esac
  6994. { echo "$as_me:$LINENO: checking for size_t" >&5
  6995. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  6996. if test "${ac_cv_type_size_t+set}" = set; then
  6997. echo $ECHO_N "(cached) $ECHO_C" >&6
  6998. else
  6999. cat >conftest.$ac_ext <<_ACEOF
  7000. /* confdefs.h. */
  7001. _ACEOF
  7002. cat confdefs.h >>conftest.$ac_ext
  7003. cat >>conftest.$ac_ext <<_ACEOF
  7004. /* end confdefs.h. */
  7005. $ac_includes_default
  7006. typedef size_t ac__type_new_;
  7007. int
  7008. main ()
  7009. {
  7010. if ((ac__type_new_ *) 0)
  7011. return 0;
  7012. if (sizeof (ac__type_new_))
  7013. return 0;
  7014. ;
  7015. return 0;
  7016. }
  7017. _ACEOF
  7018. rm -f conftest.$ac_objext
  7019. if { (ac_try="$ac_compile"
  7020. case "(($ac_try" in
  7021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7022. *) ac_try_echo=$ac_try;;
  7023. esac
  7024. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7025. (eval "$ac_compile") 2>conftest.er1
  7026. ac_status=$?
  7027. grep -v '^ *+' conftest.er1 >conftest.err
  7028. rm -f conftest.er1
  7029. cat conftest.err >&5
  7030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7031. (exit $ac_status); } && {
  7032. test -z "$ac_cxx_werror_flag" ||
  7033. test ! -s conftest.err
  7034. } && test -s conftest.$ac_objext; then
  7035. ac_cv_type_size_t=yes
  7036. else
  7037. echo "$as_me: failed program was:" >&5
  7038. sed 's/^/| /' conftest.$ac_ext >&5
  7039. ac_cv_type_size_t=no
  7040. fi
  7041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7042. fi
  7043. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  7044. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  7045. if test $ac_cv_type_size_t = yes; then
  7046. :
  7047. else
  7048. cat >>confdefs.h <<_ACEOF
  7049. #define size_t unsigned int
  7050. _ACEOF
  7051. fi
  7052. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  7053. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  7054. if test "${ac_cv_header_time+set}" = set; then
  7055. echo $ECHO_N "(cached) $ECHO_C" >&6
  7056. else
  7057. cat >conftest.$ac_ext <<_ACEOF
  7058. /* confdefs.h. */
  7059. _ACEOF
  7060. cat confdefs.h >>conftest.$ac_ext
  7061. cat >>conftest.$ac_ext <<_ACEOF
  7062. /* end confdefs.h. */
  7063. #include <sys/types.h>
  7064. #include <sys/time.h>
  7065. #include <time.h>
  7066. int
  7067. main ()
  7068. {
  7069. if ((struct tm *) 0)
  7070. return 0;
  7071. ;
  7072. return 0;
  7073. }
  7074. _ACEOF
  7075. rm -f conftest.$ac_objext
  7076. if { (ac_try="$ac_compile"
  7077. case "(($ac_try" in
  7078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7079. *) ac_try_echo=$ac_try;;
  7080. esac
  7081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7082. (eval "$ac_compile") 2>conftest.er1
  7083. ac_status=$?
  7084. grep -v '^ *+' conftest.er1 >conftest.err
  7085. rm -f conftest.er1
  7086. cat conftest.err >&5
  7087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7088. (exit $ac_status); } && {
  7089. test -z "$ac_cxx_werror_flag" ||
  7090. test ! -s conftest.err
  7091. } && test -s conftest.$ac_objext; then
  7092. ac_cv_header_time=yes
  7093. else
  7094. echo "$as_me: failed program was:" >&5
  7095. sed 's/^/| /' conftest.$ac_ext >&5
  7096. ac_cv_header_time=no
  7097. fi
  7098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7099. fi
  7100. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  7101. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  7102. if test $ac_cv_header_time = yes; then
  7103. cat >>confdefs.h <<\_ACEOF
  7104. #define TIME_WITH_SYS_TIME 1
  7105. _ACEOF
  7106. fi
  7107. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7108. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  7109. if test "${ac_cv_struct_tm+set}" = set; then
  7110. echo $ECHO_N "(cached) $ECHO_C" >&6
  7111. else
  7112. cat >conftest.$ac_ext <<_ACEOF
  7113. /* confdefs.h. */
  7114. _ACEOF
  7115. cat confdefs.h >>conftest.$ac_ext
  7116. cat >>conftest.$ac_ext <<_ACEOF
  7117. /* end confdefs.h. */
  7118. #include <sys/types.h>
  7119. #include <time.h>
  7120. int
  7121. main ()
  7122. {
  7123. struct tm tm;
  7124. int *p = &tm.tm_sec;
  7125. return !p;
  7126. ;
  7127. return 0;
  7128. }
  7129. _ACEOF
  7130. rm -f conftest.$ac_objext
  7131. if { (ac_try="$ac_compile"
  7132. case "(($ac_try" in
  7133. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7134. *) ac_try_echo=$ac_try;;
  7135. esac
  7136. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7137. (eval "$ac_compile") 2>conftest.er1
  7138. ac_status=$?
  7139. grep -v '^ *+' conftest.er1 >conftest.err
  7140. rm -f conftest.er1
  7141. cat conftest.err >&5
  7142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7143. (exit $ac_status); } && {
  7144. test -z "$ac_cxx_werror_flag" ||
  7145. test ! -s conftest.err
  7146. } && test -s conftest.$ac_objext; then
  7147. ac_cv_struct_tm=time.h
  7148. else
  7149. echo "$as_me: failed program was:" >&5
  7150. sed 's/^/| /' conftest.$ac_ext >&5
  7151. ac_cv_struct_tm=sys/time.h
  7152. fi
  7153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7154. fi
  7155. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7156. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  7157. if test $ac_cv_struct_tm = sys/time.h; then
  7158. cat >>confdefs.h <<\_ACEOF
  7159. #define TM_IN_SYS_TIME 1
  7160. _ACEOF
  7161. fi
  7162. { echo "$as_me:$LINENO: checking for working volatile" >&5
  7163. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  7164. if test "${ac_cv_c_volatile+set}" = set; then
  7165. echo $ECHO_N "(cached) $ECHO_C" >&6
  7166. else
  7167. cat >conftest.$ac_ext <<_ACEOF
  7168. /* confdefs.h. */
  7169. _ACEOF
  7170. cat confdefs.h >>conftest.$ac_ext
  7171. cat >>conftest.$ac_ext <<_ACEOF
  7172. /* end confdefs.h. */
  7173. int
  7174. main ()
  7175. {
  7176. volatile int x;
  7177. int * volatile y = (int *) 0;
  7178. return !x && !y;
  7179. ;
  7180. return 0;
  7181. }
  7182. _ACEOF
  7183. rm -f conftest.$ac_objext
  7184. if { (ac_try="$ac_compile"
  7185. case "(($ac_try" in
  7186. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7187. *) ac_try_echo=$ac_try;;
  7188. esac
  7189. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7190. (eval "$ac_compile") 2>conftest.er1
  7191. ac_status=$?
  7192. grep -v '^ *+' conftest.er1 >conftest.err
  7193. rm -f conftest.er1
  7194. cat conftest.err >&5
  7195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7196. (exit $ac_status); } && {
  7197. test -z "$ac_cxx_werror_flag" ||
  7198. test ! -s conftest.err
  7199. } && test -s conftest.$ac_objext; then
  7200. ac_cv_c_volatile=yes
  7201. else
  7202. echo "$as_me: failed program was:" >&5
  7203. sed 's/^/| /' conftest.$ac_ext >&5
  7204. ac_cv_c_volatile=no
  7205. fi
  7206. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7207. fi
  7208. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7209. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  7210. if test $ac_cv_c_volatile = no; then
  7211. cat >>confdefs.h <<\_ACEOF
  7212. #define volatile
  7213. _ACEOF
  7214. fi
  7215. # Checks for library functions.
  7216. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  7217. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  7218. # Check whether --enable-nls was given.
  7219. if test "${enable_nls+set}" = set; then
  7220. enableval=$enable_nls; USE_NLS=$enableval
  7221. else
  7222. USE_NLS=yes
  7223. fi
  7224. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  7225. echo "${ECHO_T}$USE_NLS" >&6; }
  7226. GETTEXT_MACRO_VERSION=0.17
  7227. # Prepare PATH_SEPARATOR.
  7228. # The user is always right.
  7229. if test "${PATH_SEPARATOR+set}" != set; then
  7230. echo "#! /bin/sh" >conf$$.sh
  7231. echo "exit 0" >>conf$$.sh
  7232. chmod +x conf$$.sh
  7233. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7234. PATH_SEPARATOR=';'
  7235. else
  7236. PATH_SEPARATOR=:
  7237. fi
  7238. rm -f conf$$.sh
  7239. fi
  7240. # Find out how to test for executable files. Don't use a zero-byte file,
  7241. # as systems may use methods other than mode bits to determine executability.
  7242. cat >conf$$.file <<_ASEOF
  7243. #! /bin/sh
  7244. exit 0
  7245. _ASEOF
  7246. chmod +x conf$$.file
  7247. if test -x conf$$.file >/dev/null 2>&1; then
  7248. ac_executable_p="test -x"
  7249. else
  7250. ac_executable_p="test -f"
  7251. fi
  7252. rm -f conf$$.file
  7253. # Extract the first word of "msgfmt", so it can be a program name with args.
  7254. set dummy msgfmt; ac_word=$2
  7255. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7256. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7257. if test "${ac_cv_path_MSGFMT+set}" = set; then
  7258. echo $ECHO_N "(cached) $ECHO_C" >&6
  7259. else
  7260. case "$MSGFMT" in
  7261. [\\/]* | ?:[\\/]*)
  7262. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7263. ;;
  7264. *)
  7265. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7266. for ac_dir in $PATH; do
  7267. IFS="$ac_save_IFS"
  7268. test -z "$ac_dir" && ac_dir=.
  7269. for ac_exec_ext in '' $ac_executable_extensions; do
  7270. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7271. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7272. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  7273. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7274. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  7275. break 2
  7276. fi
  7277. fi
  7278. done
  7279. done
  7280. IFS="$ac_save_IFS"
  7281. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  7282. ;;
  7283. esac
  7284. fi
  7285. MSGFMT="$ac_cv_path_MSGFMT"
  7286. if test "$MSGFMT" != ":"; then
  7287. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  7288. echo "${ECHO_T}$MSGFMT" >&6; }
  7289. else
  7290. { echo "$as_me:$LINENO: result: no" >&5
  7291. echo "${ECHO_T}no" >&6; }
  7292. fi
  7293. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7294. set dummy gmsgfmt; ac_word=$2
  7295. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7296. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7297. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  7298. echo $ECHO_N "(cached) $ECHO_C" >&6
  7299. else
  7300. case $GMSGFMT in
  7301. [\\/]* | ?:[\\/]*)
  7302. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7303. ;;
  7304. *)
  7305. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7306. for as_dir in $PATH
  7307. do
  7308. IFS=$as_save_IFS
  7309. test -z "$as_dir" && as_dir=.
  7310. for ac_exec_ext in '' $ac_executable_extensions; do
  7311. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7312. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7313. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7314. break 2
  7315. fi
  7316. done
  7317. done
  7318. IFS=$as_save_IFS
  7319. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7320. ;;
  7321. esac
  7322. fi
  7323. GMSGFMT=$ac_cv_path_GMSGFMT
  7324. if test -n "$GMSGFMT"; then
  7325. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  7326. echo "${ECHO_T}$GMSGFMT" >&6; }
  7327. else
  7328. { echo "$as_me:$LINENO: result: no" >&5
  7329. echo "${ECHO_T}no" >&6; }
  7330. fi
  7331. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7332. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  7333. *) MSGFMT_015=$MSGFMT ;;
  7334. esac
  7335. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7336. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  7337. *) GMSGFMT_015=$GMSGFMT ;;
  7338. esac
  7339. # Prepare PATH_SEPARATOR.
  7340. # The user is always right.
  7341. if test "${PATH_SEPARATOR+set}" != set; then
  7342. echo "#! /bin/sh" >conf$$.sh
  7343. echo "exit 0" >>conf$$.sh
  7344. chmod +x conf$$.sh
  7345. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7346. PATH_SEPARATOR=';'
  7347. else
  7348. PATH_SEPARATOR=:
  7349. fi
  7350. rm -f conf$$.sh
  7351. fi
  7352. # Find out how to test for executable files. Don't use a zero-byte file,
  7353. # as systems may use methods other than mode bits to determine executability.
  7354. cat >conf$$.file <<_ASEOF
  7355. #! /bin/sh
  7356. exit 0
  7357. _ASEOF
  7358. chmod +x conf$$.file
  7359. if test -x conf$$.file >/dev/null 2>&1; then
  7360. ac_executable_p="test -x"
  7361. else
  7362. ac_executable_p="test -f"
  7363. fi
  7364. rm -f conf$$.file
  7365. # Extract the first word of "xgettext", so it can be a program name with args.
  7366. set dummy xgettext; ac_word=$2
  7367. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7368. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7369. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  7370. echo $ECHO_N "(cached) $ECHO_C" >&6
  7371. else
  7372. case "$XGETTEXT" in
  7373. [\\/]* | ?:[\\/]*)
  7374. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  7375. ;;
  7376. *)
  7377. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7378. for ac_dir in $PATH; do
  7379. IFS="$ac_save_IFS"
  7380. test -z "$ac_dir" && ac_dir=.
  7381. for ac_exec_ext in '' $ac_executable_extensions; do
  7382. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7383. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7384. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  7385. (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
  7386. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  7387. break 2
  7388. fi
  7389. fi
  7390. done
  7391. done
  7392. IFS="$ac_save_IFS"
  7393. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  7394. ;;
  7395. esac
  7396. fi
  7397. XGETTEXT="$ac_cv_path_XGETTEXT"
  7398. if test "$XGETTEXT" != ":"; then
  7399. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  7400. echo "${ECHO_T}$XGETTEXT" >&6; }
  7401. else
  7402. { echo "$as_me:$LINENO: result: no" >&5
  7403. echo "${ECHO_T}no" >&6; }
  7404. fi
  7405. rm -f messages.po
  7406. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7407. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  7408. *) XGETTEXT_015=$XGETTEXT ;;
  7409. esac
  7410. # Prepare PATH_SEPARATOR.
  7411. # The user is always right.
  7412. if test "${PATH_SEPARATOR+set}" != set; then
  7413. echo "#! /bin/sh" >conf$$.sh
  7414. echo "exit 0" >>conf$$.sh
  7415. chmod +x conf$$.sh
  7416. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7417. PATH_SEPARATOR=';'
  7418. else
  7419. PATH_SEPARATOR=:
  7420. fi
  7421. rm -f conf$$.sh
  7422. fi
  7423. # Find out how to test for executable files. Don't use a zero-byte file,
  7424. # as systems may use methods other than mode bits to determine executability.
  7425. cat >conf$$.file <<_ASEOF
  7426. #! /bin/sh
  7427. exit 0
  7428. _ASEOF
  7429. chmod +x conf$$.file
  7430. if test -x conf$$.file >/dev/null 2>&1; then
  7431. ac_executable_p="test -x"
  7432. else
  7433. ac_executable_p="test -f"
  7434. fi
  7435. rm -f conf$$.file
  7436. # Extract the first word of "msgmerge", so it can be a program name with args.
  7437. set dummy msgmerge; ac_word=$2
  7438. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7439. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7440. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  7441. echo $ECHO_N "(cached) $ECHO_C" >&6
  7442. else
  7443. case "$MSGMERGE" in
  7444. [\\/]* | ?:[\\/]*)
  7445. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  7446. ;;
  7447. *)
  7448. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7449. for ac_dir in $PATH; do
  7450. IFS="$ac_save_IFS"
  7451. test -z "$ac_dir" && ac_dir=.
  7452. for ac_exec_ext in '' $ac_executable_extensions; do
  7453. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7454. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7455. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  7456. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  7457. break 2
  7458. fi
  7459. fi
  7460. done
  7461. done
  7462. IFS="$ac_save_IFS"
  7463. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  7464. ;;
  7465. esac
  7466. fi
  7467. MSGMERGE="$ac_cv_path_MSGMERGE"
  7468. if test "$MSGMERGE" != ":"; then
  7469. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  7470. echo "${ECHO_T}$MSGMERGE" >&6; }
  7471. else
  7472. { echo "$as_me:$LINENO: result: no" >&5
  7473. echo "${ECHO_T}no" >&6; }
  7474. fi
  7475. test -n "$localedir" || localedir='${datadir}/locale'
  7476. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  7477. ac_config_commands="$ac_config_commands po-directories"
  7478. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  7479. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  7480. if test "${ac_cv_gnu_library_2+set}" = set; then
  7481. echo $ECHO_N "(cached) $ECHO_C" >&6
  7482. else
  7483. cat >conftest.$ac_ext <<_ACEOF
  7484. /* confdefs.h. */
  7485. _ACEOF
  7486. cat confdefs.h >>conftest.$ac_ext
  7487. cat >>conftest.$ac_ext <<_ACEOF
  7488. /* end confdefs.h. */
  7489. #include <features.h>
  7490. #ifdef __GNU_LIBRARY__
  7491. #if (__GLIBC__ >= 2)
  7492. Lucky GNU user
  7493. #endif
  7494. #endif
  7495. _ACEOF
  7496. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7497. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  7498. ac_cv_gnu_library_2=yes
  7499. else
  7500. ac_cv_gnu_library_2=no
  7501. fi
  7502. rm -f conftest*
  7503. fi
  7504. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  7505. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  7506. GLIBC2="$ac_cv_gnu_library_2"
  7507. CFLAG_VISIBILITY=
  7508. HAVE_VISIBILITY=0
  7509. if test -n "$GCC"; then
  7510. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  7511. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  7512. if test "${gl_cv_cc_visibility+set}" = set; then
  7513. echo $ECHO_N "(cached) $ECHO_C" >&6
  7514. else
  7515. gl_save_CFLAGS="$CFLAGS"
  7516. CFLAGS="$CFLAGS -fvisibility=hidden"
  7517. cat >conftest.$ac_ext <<_ACEOF
  7518. /* confdefs.h. */
  7519. _ACEOF
  7520. cat confdefs.h >>conftest.$ac_ext
  7521. cat >>conftest.$ac_ext <<_ACEOF
  7522. /* end confdefs.h. */
  7523. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  7524. extern __attribute__((__visibility__("default"))) int exportedvar;
  7525. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  7526. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  7527. int
  7528. main ()
  7529. {
  7530. ;
  7531. return 0;
  7532. }
  7533. _ACEOF
  7534. rm -f conftest.$ac_objext
  7535. if { (ac_try="$ac_compile"
  7536. case "(($ac_try" in
  7537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7538. *) ac_try_echo=$ac_try;;
  7539. esac
  7540. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7541. (eval "$ac_compile") 2>conftest.er1
  7542. ac_status=$?
  7543. grep -v '^ *+' conftest.er1 >conftest.err
  7544. rm -f conftest.er1
  7545. cat conftest.err >&5
  7546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7547. (exit $ac_status); } && {
  7548. test -z "$ac_cxx_werror_flag" ||
  7549. test ! -s conftest.err
  7550. } && test -s conftest.$ac_objext; then
  7551. gl_cv_cc_visibility=yes
  7552. else
  7553. echo "$as_me: failed program was:" >&5
  7554. sed 's/^/| /' conftest.$ac_ext >&5
  7555. gl_cv_cc_visibility=no
  7556. fi
  7557. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7558. CFLAGS="$gl_save_CFLAGS"
  7559. fi
  7560. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  7561. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  7562. if test $gl_cv_cc_visibility = yes; then
  7563. CFLAG_VISIBILITY="-fvisibility=hidden"
  7564. HAVE_VISIBILITY=1
  7565. fi
  7566. fi
  7567. cat >>confdefs.h <<_ACEOF
  7568. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  7569. _ACEOF
  7570. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  7571. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  7572. if test "${gl_cv_header_stdint_h+set}" = set; then
  7573. echo $ECHO_N "(cached) $ECHO_C" >&6
  7574. else
  7575. cat >conftest.$ac_ext <<_ACEOF
  7576. /* confdefs.h. */
  7577. _ACEOF
  7578. cat confdefs.h >>conftest.$ac_ext
  7579. cat >>conftest.$ac_ext <<_ACEOF
  7580. /* end confdefs.h. */
  7581. #include <sys/types.h>
  7582. #include <stdint.h>
  7583. int
  7584. main ()
  7585. {
  7586. uintmax_t i = (uintmax_t) -1; return !i;
  7587. ;
  7588. return 0;
  7589. }
  7590. _ACEOF
  7591. rm -f conftest.$ac_objext
  7592. if { (ac_try="$ac_compile"
  7593. case "(($ac_try" in
  7594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7595. *) ac_try_echo=$ac_try;;
  7596. esac
  7597. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7598. (eval "$ac_compile") 2>conftest.er1
  7599. ac_status=$?
  7600. grep -v '^ *+' conftest.er1 >conftest.err
  7601. rm -f conftest.er1
  7602. cat conftest.err >&5
  7603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7604. (exit $ac_status); } && {
  7605. test -z "$ac_cxx_werror_flag" ||
  7606. test ! -s conftest.err
  7607. } && test -s conftest.$ac_objext; then
  7608. gl_cv_header_stdint_h=yes
  7609. else
  7610. echo "$as_me: failed program was:" >&5
  7611. sed 's/^/| /' conftest.$ac_ext >&5
  7612. gl_cv_header_stdint_h=no
  7613. fi
  7614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7615. fi
  7616. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  7617. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  7618. if test $gl_cv_header_stdint_h = yes; then
  7619. cat >>confdefs.h <<_ACEOF
  7620. #define HAVE_STDINT_H_WITH_UINTMAX 1
  7621. _ACEOF
  7622. fi
  7623. for ac_header in stdlib.h unistd.h
  7624. do
  7625. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7626. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7627. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7628. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7629. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7630. echo $ECHO_N "(cached) $ECHO_C" >&6
  7631. fi
  7632. ac_res=`eval echo '${'$as_ac_Header'}'`
  7633. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7634. echo "${ECHO_T}$ac_res" >&6; }
  7635. else
  7636. # Is the header compilable?
  7637. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7638. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7639. cat >conftest.$ac_ext <<_ACEOF
  7640. /* confdefs.h. */
  7641. _ACEOF
  7642. cat confdefs.h >>conftest.$ac_ext
  7643. cat >>conftest.$ac_ext <<_ACEOF
  7644. /* end confdefs.h. */
  7645. $ac_includes_default
  7646. #include <$ac_header>
  7647. _ACEOF
  7648. rm -f conftest.$ac_objext
  7649. if { (ac_try="$ac_compile"
  7650. case "(($ac_try" in
  7651. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7652. *) ac_try_echo=$ac_try;;
  7653. esac
  7654. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7655. (eval "$ac_compile") 2>conftest.er1
  7656. ac_status=$?
  7657. grep -v '^ *+' conftest.er1 >conftest.err
  7658. rm -f conftest.er1
  7659. cat conftest.err >&5
  7660. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7661. (exit $ac_status); } && {
  7662. test -z "$ac_cxx_werror_flag" ||
  7663. test ! -s conftest.err
  7664. } && test -s conftest.$ac_objext; then
  7665. ac_header_compiler=yes
  7666. else
  7667. echo "$as_me: failed program was:" >&5
  7668. sed 's/^/| /' conftest.$ac_ext >&5
  7669. ac_header_compiler=no
  7670. fi
  7671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7672. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7673. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7674. # Is the header present?
  7675. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7676. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7677. cat >conftest.$ac_ext <<_ACEOF
  7678. /* confdefs.h. */
  7679. _ACEOF
  7680. cat confdefs.h >>conftest.$ac_ext
  7681. cat >>conftest.$ac_ext <<_ACEOF
  7682. /* end confdefs.h. */
  7683. #include <$ac_header>
  7684. _ACEOF
  7685. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7686. case "(($ac_try" in
  7687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7688. *) ac_try_echo=$ac_try;;
  7689. esac
  7690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7691. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7692. ac_status=$?
  7693. grep -v '^ *+' conftest.er1 >conftest.err
  7694. rm -f conftest.er1
  7695. cat conftest.err >&5
  7696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7697. (exit $ac_status); } >/dev/null && {
  7698. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7699. test ! -s conftest.err
  7700. }; then
  7701. ac_header_preproc=yes
  7702. else
  7703. echo "$as_me: failed program was:" >&5
  7704. sed 's/^/| /' conftest.$ac_ext >&5
  7705. ac_header_preproc=no
  7706. fi
  7707. rm -f conftest.err conftest.$ac_ext
  7708. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7709. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7710. # So? What about this header?
  7711. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7712. yes:no: )
  7713. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7714. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7715. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7716. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7717. ac_header_preproc=yes
  7718. ;;
  7719. no:yes:* )
  7720. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7721. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7722. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7723. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7724. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7725. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7726. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7727. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7728. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7729. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7730. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7731. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7732. ( cat <<\_ASBOX
  7733. ## ----------------------------------------------- ##
  7734. ## Report this to t-tujikawa@users.sourceforge.net ##
  7735. ## ----------------------------------------------- ##
  7736. _ASBOX
  7737. ) | sed "s/^/$as_me: WARNING: /" >&2
  7738. ;;
  7739. esac
  7740. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7741. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7742. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7743. echo $ECHO_N "(cached) $ECHO_C" >&6
  7744. else
  7745. eval "$as_ac_Header=\$ac_header_preproc"
  7746. fi
  7747. ac_res=`eval echo '${'$as_ac_Header'}'`
  7748. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7749. echo "${ECHO_T}$ac_res" >&6; }
  7750. fi
  7751. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7752. cat >>confdefs.h <<_ACEOF
  7753. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7754. _ACEOF
  7755. fi
  7756. done
  7757. for ac_func in getpagesize
  7758. do
  7759. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7760. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7761. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7762. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7763. echo $ECHO_N "(cached) $ECHO_C" >&6
  7764. else
  7765. cat >conftest.$ac_ext <<_ACEOF
  7766. /* confdefs.h. */
  7767. _ACEOF
  7768. cat confdefs.h >>conftest.$ac_ext
  7769. cat >>conftest.$ac_ext <<_ACEOF
  7770. /* end confdefs.h. */
  7771. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7772. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7773. #define $ac_func innocuous_$ac_func
  7774. /* System header to define __stub macros and hopefully few prototypes,
  7775. which can conflict with char $ac_func (); below.
  7776. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7777. <limits.h> exists even on freestanding compilers. */
  7778. #ifdef __STDC__
  7779. # include <limits.h>
  7780. #else
  7781. # include <assert.h>
  7782. #endif
  7783. #undef $ac_func
  7784. /* Override any GCC internal prototype to avoid an error.
  7785. Use char because int might match the return type of a GCC
  7786. builtin and then its argument prototype would still apply. */
  7787. #ifdef __cplusplus
  7788. extern "C"
  7789. #endif
  7790. char $ac_func ();
  7791. /* The GNU C library defines this for functions which it implements
  7792. to always fail with ENOSYS. Some functions are actually named
  7793. something starting with __ and the normal name is an alias. */
  7794. #if defined __stub_$ac_func || defined __stub___$ac_func
  7795. choke me
  7796. #endif
  7797. int
  7798. main ()
  7799. {
  7800. return $ac_func ();
  7801. ;
  7802. return 0;
  7803. }
  7804. _ACEOF
  7805. rm -f conftest.$ac_objext conftest$ac_exeext
  7806. if { (ac_try="$ac_link"
  7807. case "(($ac_try" in
  7808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7809. *) ac_try_echo=$ac_try;;
  7810. esac
  7811. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7812. (eval "$ac_link") 2>conftest.er1
  7813. ac_status=$?
  7814. grep -v '^ *+' conftest.er1 >conftest.err
  7815. rm -f conftest.er1
  7816. cat conftest.err >&5
  7817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7818. (exit $ac_status); } && {
  7819. test -z "$ac_cxx_werror_flag" ||
  7820. test ! -s conftest.err
  7821. } && test -s conftest$ac_exeext &&
  7822. $as_test_x conftest$ac_exeext; then
  7823. eval "$as_ac_var=yes"
  7824. else
  7825. echo "$as_me: failed program was:" >&5
  7826. sed 's/^/| /' conftest.$ac_ext >&5
  7827. eval "$as_ac_var=no"
  7828. fi
  7829. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7830. conftest$ac_exeext conftest.$ac_ext
  7831. fi
  7832. ac_res=`eval echo '${'$as_ac_var'}'`
  7833. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7834. echo "${ECHO_T}$ac_res" >&6; }
  7835. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7836. cat >>confdefs.h <<_ACEOF
  7837. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7838. _ACEOF
  7839. fi
  7840. done
  7841. { echo "$as_me:$LINENO: checking for working mmap" >&5
  7842. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  7843. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  7844. echo $ECHO_N "(cached) $ECHO_C" >&6
  7845. else
  7846. if test "$cross_compiling" = yes; then
  7847. ac_cv_func_mmap_fixed_mapped=no
  7848. else
  7849. cat >conftest.$ac_ext <<_ACEOF
  7850. /* confdefs.h. */
  7851. _ACEOF
  7852. cat confdefs.h >>conftest.$ac_ext
  7853. cat >>conftest.$ac_ext <<_ACEOF
  7854. /* end confdefs.h. */
  7855. $ac_includes_default
  7856. /* malloc might have been renamed as rpl_malloc. */
  7857. #undef malloc
  7858. /* Thanks to Mike Haertel and Jim Avera for this test.
  7859. Here is a matrix of mmap possibilities:
  7860. mmap private not fixed
  7861. mmap private fixed at somewhere currently unmapped
  7862. mmap private fixed at somewhere already mapped
  7863. mmap shared not fixed
  7864. mmap shared fixed at somewhere currently unmapped
  7865. mmap shared fixed at somewhere already mapped
  7866. For private mappings, we should verify that changes cannot be read()
  7867. back from the file, nor mmap's back from the file at a different
  7868. address. (There have been systems where private was not correctly
  7869. implemented like the infamous i386 svr4.0, and systems where the
  7870. VM page cache was not coherent with the file system buffer cache
  7871. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7872. For shared mappings, we should conversely verify that changes get
  7873. propagated back to all the places they're supposed to be.
  7874. Grep wants private fixed already mapped.
  7875. The main things grep needs to know about mmap are:
  7876. * does it exist and is it safe to write into the mmap'd area
  7877. * how to use it (BSD variants) */
  7878. #include <fcntl.h>
  7879. #include <sys/mman.h>
  7880. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7881. char *malloc ();
  7882. #endif
  7883. /* This mess was copied from the GNU getpagesize.h. */
  7884. #ifndef HAVE_GETPAGESIZE
  7885. /* Assume that all systems that can run configure have sys/param.h. */
  7886. # ifndef HAVE_SYS_PARAM_H
  7887. # define HAVE_SYS_PARAM_H 1
  7888. # endif
  7889. # ifdef _SC_PAGESIZE
  7890. # define getpagesize() sysconf(_SC_PAGESIZE)
  7891. # else /* no _SC_PAGESIZE */
  7892. # ifdef HAVE_SYS_PARAM_H
  7893. # include <sys/param.h>
  7894. # ifdef EXEC_PAGESIZE
  7895. # define getpagesize() EXEC_PAGESIZE
  7896. # else /* no EXEC_PAGESIZE */
  7897. # ifdef NBPG
  7898. # define getpagesize() NBPG * CLSIZE
  7899. # ifndef CLSIZE
  7900. # define CLSIZE 1
  7901. # endif /* no CLSIZE */
  7902. # else /* no NBPG */
  7903. # ifdef NBPC
  7904. # define getpagesize() NBPC
  7905. # else /* no NBPC */
  7906. # ifdef PAGESIZE
  7907. # define getpagesize() PAGESIZE
  7908. # endif /* PAGESIZE */
  7909. # endif /* no NBPC */
  7910. # endif /* no NBPG */
  7911. # endif /* no EXEC_PAGESIZE */
  7912. # else /* no HAVE_SYS_PARAM_H */
  7913. # define getpagesize() 8192 /* punt totally */
  7914. # endif /* no HAVE_SYS_PARAM_H */
  7915. # endif /* no _SC_PAGESIZE */
  7916. #endif /* no HAVE_GETPAGESIZE */
  7917. int
  7918. main ()
  7919. {
  7920. char *data, *data2, *data3;
  7921. int i, pagesize;
  7922. int fd;
  7923. pagesize = getpagesize ();
  7924. /* First, make a file with some known garbage in it. */
  7925. data = (char *) malloc (pagesize);
  7926. if (!data)
  7927. return 1;
  7928. for (i = 0; i < pagesize; ++i)
  7929. *(data + i) = rand ();
  7930. umask (0);
  7931. fd = creat ("conftest.mmap", 0600);
  7932. if (fd < 0)
  7933. return 1;
  7934. if (write (fd, data, pagesize) != pagesize)
  7935. return 1;
  7936. close (fd);
  7937. /* Next, try to mmap the file at a fixed address which already has
  7938. something else allocated at it. If we can, also make sure that
  7939. we see the same garbage. */
  7940. fd = open ("conftest.mmap", O_RDWR);
  7941. if (fd < 0)
  7942. return 1;
  7943. data2 = (char *) malloc (2 * pagesize);
  7944. if (!data2)
  7945. return 1;
  7946. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  7947. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7948. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7949. return 1;
  7950. for (i = 0; i < pagesize; ++i)
  7951. if (*(data + i) != *(data2 + i))
  7952. return 1;
  7953. /* Finally, make sure that changes to the mapped area do not
  7954. percolate back to the file as seen by read(). (This is a bug on
  7955. some variants of i386 svr4.0.) */
  7956. for (i = 0; i < pagesize; ++i)
  7957. *(data2 + i) = *(data2 + i) + 1;
  7958. data3 = (char *) malloc (pagesize);
  7959. if (!data3)
  7960. return 1;
  7961. if (read (fd, data3, pagesize) != pagesize)
  7962. return 1;
  7963. for (i = 0; i < pagesize; ++i)
  7964. if (*(data + i) != *(data3 + i))
  7965. return 1;
  7966. close (fd);
  7967. return 0;
  7968. }
  7969. _ACEOF
  7970. rm -f conftest$ac_exeext
  7971. if { (ac_try="$ac_link"
  7972. case "(($ac_try" in
  7973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7974. *) ac_try_echo=$ac_try;;
  7975. esac
  7976. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7977. (eval "$ac_link") 2>&5
  7978. ac_status=$?
  7979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7980. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7981. { (case "(($ac_try" in
  7982. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7983. *) ac_try_echo=$ac_try;;
  7984. esac
  7985. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7986. (eval "$ac_try") 2>&5
  7987. ac_status=$?
  7988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7989. (exit $ac_status); }; }; then
  7990. ac_cv_func_mmap_fixed_mapped=yes
  7991. else
  7992. echo "$as_me: program exited with status $ac_status" >&5
  7993. echo "$as_me: failed program was:" >&5
  7994. sed 's/^/| /' conftest.$ac_ext >&5
  7995. ( exit $ac_status )
  7996. ac_cv_func_mmap_fixed_mapped=no
  7997. fi
  7998. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7999. fi
  8000. fi
  8001. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8002. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  8003. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8004. cat >>confdefs.h <<\_ACEOF
  8005. #define HAVE_MMAP 1
  8006. _ACEOF
  8007. fi
  8008. rm -f conftest.mmap
  8009. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  8010. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  8011. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  8012. echo $ECHO_N "(cached) $ECHO_C" >&6
  8013. else
  8014. gt_cv_int_divbyzero_sigfpe=
  8015. case "$host_os" in
  8016. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8017. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8018. # compiling. If we were to perform the real test, 1 Crash Report
  8019. # dialog window would pop up.
  8020. case "$host_cpu" in
  8021. i[34567]86 | x86_64)
  8022. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8023. esac
  8024. ;;
  8025. esac
  8026. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8027. if test "$cross_compiling" = yes; then
  8028. # Guess based on the CPU.
  8029. case "$host_cpu" in
  8030. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8031. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8032. *)
  8033. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8034. esac
  8035. else
  8036. cat >conftest.$ac_ext <<_ACEOF
  8037. /* confdefs.h. */
  8038. _ACEOF
  8039. cat confdefs.h >>conftest.$ac_ext
  8040. cat >>conftest.$ac_ext <<_ACEOF
  8041. /* end confdefs.h. */
  8042. #include <stdlib.h>
  8043. #include <signal.h>
  8044. static void
  8045. sigfpe_handler (int sig)
  8046. {
  8047. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8048. exit (sig != SIGFPE);
  8049. }
  8050. int x = 1;
  8051. int y = 0;
  8052. int z;
  8053. int nan;
  8054. int main ()
  8055. {
  8056. signal (SIGFPE, sigfpe_handler);
  8057. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8058. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8059. signal (SIGTRAP, sigfpe_handler);
  8060. #endif
  8061. /* Linux/SPARC yields signal SIGILL. */
  8062. #if defined (__sparc__) && defined (__linux__)
  8063. signal (SIGILL, sigfpe_handler);
  8064. #endif
  8065. z = x / y;
  8066. nan = y / y;
  8067. exit (1);
  8068. }
  8069. _ACEOF
  8070. rm -f conftest$ac_exeext
  8071. if { (ac_try="$ac_link"
  8072. case "(($ac_try" in
  8073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8074. *) ac_try_echo=$ac_try;;
  8075. esac
  8076. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8077. (eval "$ac_link") 2>&5
  8078. ac_status=$?
  8079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8080. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8081. { (case "(($ac_try" in
  8082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8083. *) ac_try_echo=$ac_try;;
  8084. esac
  8085. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8086. (eval "$ac_try") 2>&5
  8087. ac_status=$?
  8088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8089. (exit $ac_status); }; }; then
  8090. gt_cv_int_divbyzero_sigfpe=yes
  8091. else
  8092. echo "$as_me: program exited with status $ac_status" >&5
  8093. echo "$as_me: failed program was:" >&5
  8094. sed 's/^/| /' conftest.$ac_ext >&5
  8095. ( exit $ac_status )
  8096. gt_cv_int_divbyzero_sigfpe=no
  8097. fi
  8098. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8099. fi
  8100. fi
  8101. fi
  8102. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8103. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  8104. case "$gt_cv_int_divbyzero_sigfpe" in
  8105. *yes) value=1;;
  8106. *) value=0;;
  8107. esac
  8108. cat >>confdefs.h <<_ACEOF
  8109. #define INTDIV0_RAISES_SIGFPE $value
  8110. _ACEOF
  8111. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  8112. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  8113. if test "${gl_cv_header_inttypes_h+set}" = set; then
  8114. echo $ECHO_N "(cached) $ECHO_C" >&6
  8115. else
  8116. cat >conftest.$ac_ext <<_ACEOF
  8117. /* confdefs.h. */
  8118. _ACEOF
  8119. cat confdefs.h >>conftest.$ac_ext
  8120. cat >>conftest.$ac_ext <<_ACEOF
  8121. /* end confdefs.h. */
  8122. #include <sys/types.h>
  8123. #include <inttypes.h>
  8124. int
  8125. main ()
  8126. {
  8127. uintmax_t i = (uintmax_t) -1; return !i;
  8128. ;
  8129. return 0;
  8130. }
  8131. _ACEOF
  8132. rm -f conftest.$ac_objext
  8133. if { (ac_try="$ac_compile"
  8134. case "(($ac_try" in
  8135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8136. *) ac_try_echo=$ac_try;;
  8137. esac
  8138. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8139. (eval "$ac_compile") 2>conftest.er1
  8140. ac_status=$?
  8141. grep -v '^ *+' conftest.er1 >conftest.err
  8142. rm -f conftest.er1
  8143. cat conftest.err >&5
  8144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8145. (exit $ac_status); } && {
  8146. test -z "$ac_cxx_werror_flag" ||
  8147. test ! -s conftest.err
  8148. } && test -s conftest.$ac_objext; then
  8149. gl_cv_header_inttypes_h=yes
  8150. else
  8151. echo "$as_me: failed program was:" >&5
  8152. sed 's/^/| /' conftest.$ac_ext >&5
  8153. gl_cv_header_inttypes_h=no
  8154. fi
  8155. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8156. fi
  8157. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  8158. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  8159. if test $gl_cv_header_inttypes_h = yes; then
  8160. cat >>confdefs.h <<_ACEOF
  8161. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8162. _ACEOF
  8163. fi
  8164. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  8165. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  8166. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  8167. echo $ECHO_N "(cached) $ECHO_C" >&6
  8168. else
  8169. cat >conftest.$ac_ext <<_ACEOF
  8170. /* confdefs.h. */
  8171. _ACEOF
  8172. cat confdefs.h >>conftest.$ac_ext
  8173. cat >>conftest.$ac_ext <<_ACEOF
  8174. /* end confdefs.h. */
  8175. /* Test preprocessor. */
  8176. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8177. error in preprocessor;
  8178. #endif
  8179. #if ! (18446744073709551615ULL <= -1ull)
  8180. error in preprocessor;
  8181. #endif
  8182. /* Test literals. */
  8183. long long int ll = 9223372036854775807ll;
  8184. long long int nll = -9223372036854775807LL;
  8185. unsigned long long int ull = 18446744073709551615ULL;
  8186. /* Test constant expressions. */
  8187. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8188. ? 1 : -1)];
  8189. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8190. ? 1 : -1)];
  8191. int i = 63;
  8192. int
  8193. main ()
  8194. {
  8195. /* Test availability of runtime routines for shift and division. */
  8196. long long int llmax = 9223372036854775807ll;
  8197. unsigned long long int ullmax = 18446744073709551615ull;
  8198. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8199. | (llmax / ll) | (llmax % ll)
  8200. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8201. | (ullmax / ull) | (ullmax % ull));
  8202. ;
  8203. return 0;
  8204. }
  8205. _ACEOF
  8206. rm -f conftest.$ac_objext conftest$ac_exeext
  8207. if { (ac_try="$ac_link"
  8208. case "(($ac_try" in
  8209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8210. *) ac_try_echo=$ac_try;;
  8211. esac
  8212. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8213. (eval "$ac_link") 2>conftest.er1
  8214. ac_status=$?
  8215. grep -v '^ *+' conftest.er1 >conftest.err
  8216. rm -f conftest.er1
  8217. cat conftest.err >&5
  8218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8219. (exit $ac_status); } && {
  8220. test -z "$ac_cxx_werror_flag" ||
  8221. test ! -s conftest.err
  8222. } && test -s conftest$ac_exeext &&
  8223. $as_test_x conftest$ac_exeext; then
  8224. ac_cv_type_unsigned_long_long_int=yes
  8225. else
  8226. echo "$as_me: failed program was:" >&5
  8227. sed 's/^/| /' conftest.$ac_ext >&5
  8228. ac_cv_type_unsigned_long_long_int=no
  8229. fi
  8230. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8231. conftest$ac_exeext conftest.$ac_ext
  8232. fi
  8233. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  8234. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  8235. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8236. cat >>confdefs.h <<\_ACEOF
  8237. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  8238. _ACEOF
  8239. fi
  8240. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8241. test $ac_cv_type_unsigned_long_long_int = yes \
  8242. && ac_type='unsigned long long' \
  8243. || ac_type='unsigned long'
  8244. cat >>confdefs.h <<_ACEOF
  8245. #define uintmax_t $ac_type
  8246. _ACEOF
  8247. else
  8248. cat >>confdefs.h <<\_ACEOF
  8249. #define HAVE_UINTMAX_T 1
  8250. _ACEOF
  8251. fi
  8252. for ac_header in inttypes.h
  8253. do
  8254. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8255. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8256. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8257. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8258. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8259. echo $ECHO_N "(cached) $ECHO_C" >&6
  8260. fi
  8261. ac_res=`eval echo '${'$as_ac_Header'}'`
  8262. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8263. echo "${ECHO_T}$ac_res" >&6; }
  8264. else
  8265. # Is the header compilable?
  8266. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8267. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8268. cat >conftest.$ac_ext <<_ACEOF
  8269. /* confdefs.h. */
  8270. _ACEOF
  8271. cat confdefs.h >>conftest.$ac_ext
  8272. cat >>conftest.$ac_ext <<_ACEOF
  8273. /* end confdefs.h. */
  8274. $ac_includes_default
  8275. #include <$ac_header>
  8276. _ACEOF
  8277. rm -f conftest.$ac_objext
  8278. if { (ac_try="$ac_compile"
  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_compile") 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); } && {
  8291. test -z "$ac_cxx_werror_flag" ||
  8292. test ! -s conftest.err
  8293. } && test -s conftest.$ac_objext; then
  8294. ac_header_compiler=yes
  8295. else
  8296. echo "$as_me: failed program was:" >&5
  8297. sed 's/^/| /' conftest.$ac_ext >&5
  8298. ac_header_compiler=no
  8299. fi
  8300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8301. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8302. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8303. # Is the header present?
  8304. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8305. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8306. cat >conftest.$ac_ext <<_ACEOF
  8307. /* confdefs.h. */
  8308. _ACEOF
  8309. cat confdefs.h >>conftest.$ac_ext
  8310. cat >>conftest.$ac_ext <<_ACEOF
  8311. /* end confdefs.h. */
  8312. #include <$ac_header>
  8313. _ACEOF
  8314. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8315. case "(($ac_try" in
  8316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8317. *) ac_try_echo=$ac_try;;
  8318. esac
  8319. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8320. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8321. ac_status=$?
  8322. grep -v '^ *+' conftest.er1 >conftest.err
  8323. rm -f conftest.er1
  8324. cat conftest.err >&5
  8325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8326. (exit $ac_status); } >/dev/null && {
  8327. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8328. test ! -s conftest.err
  8329. }; then
  8330. ac_header_preproc=yes
  8331. else
  8332. echo "$as_me: failed program was:" >&5
  8333. sed 's/^/| /' conftest.$ac_ext >&5
  8334. ac_header_preproc=no
  8335. fi
  8336. rm -f conftest.err conftest.$ac_ext
  8337. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8338. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8339. # So? What about this header?
  8340. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8341. yes:no: )
  8342. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8343. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8344. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8345. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8346. ac_header_preproc=yes
  8347. ;;
  8348. no:yes:* )
  8349. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8350. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8351. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8352. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8353. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8354. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8355. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8356. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8357. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8358. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8359. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8360. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8361. ( cat <<\_ASBOX
  8362. ## ----------------------------------------------- ##
  8363. ## Report this to t-tujikawa@users.sourceforge.net ##
  8364. ## ----------------------------------------------- ##
  8365. _ASBOX
  8366. ) | sed "s/^/$as_me: WARNING: /" >&2
  8367. ;;
  8368. esac
  8369. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8370. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8371. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8372. echo $ECHO_N "(cached) $ECHO_C" >&6
  8373. else
  8374. eval "$as_ac_Header=\$ac_header_preproc"
  8375. fi
  8376. ac_res=`eval echo '${'$as_ac_Header'}'`
  8377. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8378. echo "${ECHO_T}$ac_res" >&6; }
  8379. fi
  8380. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8381. cat >>confdefs.h <<_ACEOF
  8382. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8383. _ACEOF
  8384. fi
  8385. done
  8386. if test $ac_cv_header_inttypes_h = yes; then
  8387. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8388. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  8389. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  8390. echo $ECHO_N "(cached) $ECHO_C" >&6
  8391. else
  8392. cat >conftest.$ac_ext <<_ACEOF
  8393. /* confdefs.h. */
  8394. _ACEOF
  8395. cat confdefs.h >>conftest.$ac_ext
  8396. cat >>conftest.$ac_ext <<_ACEOF
  8397. /* end confdefs.h. */
  8398. #include <inttypes.h>
  8399. #ifdef PRId32
  8400. char *p = PRId32;
  8401. #endif
  8402. int
  8403. main ()
  8404. {
  8405. ;
  8406. return 0;
  8407. }
  8408. _ACEOF
  8409. rm -f conftest.$ac_objext
  8410. if { (ac_try="$ac_compile"
  8411. case "(($ac_try" in
  8412. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8413. *) ac_try_echo=$ac_try;;
  8414. esac
  8415. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8416. (eval "$ac_compile") 2>conftest.er1
  8417. ac_status=$?
  8418. grep -v '^ *+' conftest.er1 >conftest.err
  8419. rm -f conftest.er1
  8420. cat conftest.err >&5
  8421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8422. (exit $ac_status); } && {
  8423. test -z "$ac_cxx_werror_flag" ||
  8424. test ! -s conftest.err
  8425. } && test -s conftest.$ac_objext; then
  8426. gt_cv_inttypes_pri_broken=no
  8427. else
  8428. echo "$as_me: failed program was:" >&5
  8429. sed 's/^/| /' conftest.$ac_ext >&5
  8430. gt_cv_inttypes_pri_broken=yes
  8431. fi
  8432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8433. fi
  8434. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  8435. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  8436. fi
  8437. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8438. cat >>confdefs.h <<_ACEOF
  8439. #define PRI_MACROS_BROKEN 1
  8440. _ACEOF
  8441. PRI_MACROS_BROKEN=1
  8442. else
  8443. PRI_MACROS_BROKEN=0
  8444. fi
  8445. # Check whether --enable-threads was given.
  8446. if test "${enable_threads+set}" = set; then
  8447. enableval=$enable_threads; gl_use_threads=$enableval
  8448. else
  8449. case "$host_os" in
  8450. osf*) gl_use_threads=no ;;
  8451. *) gl_use_threads=yes ;;
  8452. esac
  8453. fi
  8454. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8455. # For using <pthread.h>:
  8456. case "$host_os" in
  8457. osf*)
  8458. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8459. # groks <pthread.h>. cc also understands the flag -pthread, but
  8460. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8461. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8462. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8463. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8464. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8465. ;;
  8466. esac
  8467. # Some systems optimize for single-threaded programs by default, and
  8468. # need special flags to disable these optimizations. For example, the
  8469. # definition of 'errno' in <errno.h>.
  8470. case "$host_os" in
  8471. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8472. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8473. esac
  8474. fi
  8475. if test "X$prefix" = "XNONE"; then
  8476. acl_final_prefix="$ac_default_prefix"
  8477. else
  8478. acl_final_prefix="$prefix"
  8479. fi
  8480. if test "X$exec_prefix" = "XNONE"; then
  8481. acl_final_exec_prefix='${prefix}'
  8482. else
  8483. acl_final_exec_prefix="$exec_prefix"
  8484. fi
  8485. acl_save_prefix="$prefix"
  8486. prefix="$acl_final_prefix"
  8487. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8488. prefix="$acl_save_prefix"
  8489. # Check whether --with-gnu-ld was given.
  8490. if test "${with_gnu_ld+set}" = set; then
  8491. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8492. else
  8493. with_gnu_ld=no
  8494. fi
  8495. # Prepare PATH_SEPARATOR.
  8496. # The user is always right.
  8497. if test "${PATH_SEPARATOR+set}" != set; then
  8498. echo "#! /bin/sh" >conf$$.sh
  8499. echo "exit 0" >>conf$$.sh
  8500. chmod +x conf$$.sh
  8501. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8502. PATH_SEPARATOR=';'
  8503. else
  8504. PATH_SEPARATOR=:
  8505. fi
  8506. rm -f conf$$.sh
  8507. fi
  8508. ac_prog=ld
  8509. if test "$GCC" = yes; then
  8510. # Check if gcc -print-prog-name=ld gives a path.
  8511. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  8512. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  8513. case $host in
  8514. *-*-mingw*)
  8515. # gcc leaves a trailing carriage return which upsets mingw
  8516. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8517. *)
  8518. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8519. esac
  8520. case $ac_prog in
  8521. # Accept absolute paths.
  8522. [\\/]* | [A-Za-z]:[\\/]*)
  8523. re_direlt='/[^/][^/]*/\.\./'
  8524. # Canonicalize the path of ld
  8525. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8526. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8527. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8528. done
  8529. test -z "$LD" && LD="$ac_prog"
  8530. ;;
  8531. "")
  8532. # If it fails, then pretend we aren't using GCC.
  8533. ac_prog=ld
  8534. ;;
  8535. *)
  8536. # If it is relative, then search for the first ld in PATH.
  8537. with_gnu_ld=unknown
  8538. ;;
  8539. esac
  8540. elif test "$with_gnu_ld" = yes; then
  8541. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  8542. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  8543. else
  8544. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8545. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  8546. fi
  8547. if test "${acl_cv_path_LD+set}" = set; then
  8548. echo $ECHO_N "(cached) $ECHO_C" >&6
  8549. else
  8550. if test -z "$LD"; then
  8551. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8552. for ac_dir in $PATH; do
  8553. test -z "$ac_dir" && ac_dir=.
  8554. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8555. acl_cv_path_LD="$ac_dir/$ac_prog"
  8556. # Check to see if the program is GNU ld. I'd rather use --version,
  8557. # but apparently some GNU ld's only accept -v.
  8558. # Break only if it was the GNU/non-GNU ld that we prefer.
  8559. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8560. *GNU* | *'with BFD'*)
  8561. test "$with_gnu_ld" != no && break ;;
  8562. *)
  8563. test "$with_gnu_ld" != yes && break ;;
  8564. esac
  8565. fi
  8566. done
  8567. IFS="$ac_save_ifs"
  8568. else
  8569. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8570. fi
  8571. fi
  8572. LD="$acl_cv_path_LD"
  8573. if test -n "$LD"; then
  8574. { echo "$as_me:$LINENO: result: $LD" >&5
  8575. echo "${ECHO_T}$LD" >&6; }
  8576. else
  8577. { echo "$as_me:$LINENO: result: no" >&5
  8578. echo "${ECHO_T}no" >&6; }
  8579. fi
  8580. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8581. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8582. { (exit 1); exit 1; }; }
  8583. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8584. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  8585. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  8586. echo $ECHO_N "(cached) $ECHO_C" >&6
  8587. else
  8588. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8589. case `$LD -v 2>&1 </dev/null` in
  8590. *GNU* | *'with BFD'*)
  8591. acl_cv_prog_gnu_ld=yes ;;
  8592. *)
  8593. acl_cv_prog_gnu_ld=no ;;
  8594. esac
  8595. fi
  8596. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  8597. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  8598. with_gnu_ld=$acl_cv_prog_gnu_ld
  8599. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  8600. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  8601. if test "${acl_cv_rpath+set}" = set; then
  8602. echo $ECHO_N "(cached) $ECHO_C" >&6
  8603. else
  8604. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8605. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8606. . ./conftest.sh
  8607. rm -f ./conftest.sh
  8608. acl_cv_rpath=done
  8609. fi
  8610. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  8611. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  8612. wl="$acl_cv_wl"
  8613. acl_libext="$acl_cv_libext"
  8614. acl_shlibext="$acl_cv_shlibext"
  8615. acl_libname_spec="$acl_cv_libname_spec"
  8616. acl_library_names_spec="$acl_cv_library_names_spec"
  8617. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8618. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8619. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8620. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8621. # Check whether --enable-rpath was given.
  8622. if test "${enable_rpath+set}" = set; then
  8623. enableval=$enable_rpath; :
  8624. else
  8625. enable_rpath=yes
  8626. fi
  8627. acl_libdirstem=lib
  8628. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8629. if test -n "$searchpath"; then
  8630. acl_save_IFS="${IFS= }"; IFS=":"
  8631. for searchdir in $searchpath; do
  8632. if test -d "$searchdir"; then
  8633. case "$searchdir" in
  8634. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8635. *) searchdir=`cd "$searchdir" && pwd`
  8636. case "$searchdir" in
  8637. */lib64 ) acl_libdirstem=lib64 ;;
  8638. esac ;;
  8639. esac
  8640. fi
  8641. done
  8642. IFS="$acl_save_IFS"
  8643. fi
  8644. gl_threads_api=none
  8645. LIBTHREAD=
  8646. LTLIBTHREAD=
  8647. LIBMULTITHREAD=
  8648. LTLIBMULTITHREAD=
  8649. if test "$gl_use_threads" != no; then
  8650. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  8651. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  8652. gl_have_weak=no
  8653. cat >conftest.$ac_ext <<_ACEOF
  8654. /* confdefs.h. */
  8655. _ACEOF
  8656. cat confdefs.h >>conftest.$ac_ext
  8657. cat >>conftest.$ac_ext <<_ACEOF
  8658. /* end confdefs.h. */
  8659. extern void xyzzy ();
  8660. #pragma weak xyzzy
  8661. int
  8662. main ()
  8663. {
  8664. xyzzy();
  8665. ;
  8666. return 0;
  8667. }
  8668. _ACEOF
  8669. rm -f conftest.$ac_objext conftest$ac_exeext
  8670. if { (ac_try="$ac_link"
  8671. case "(($ac_try" in
  8672. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8673. *) ac_try_echo=$ac_try;;
  8674. esac
  8675. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8676. (eval "$ac_link") 2>conftest.er1
  8677. ac_status=$?
  8678. grep -v '^ *+' conftest.er1 >conftest.err
  8679. rm -f conftest.er1
  8680. cat conftest.err >&5
  8681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8682. (exit $ac_status); } && {
  8683. test -z "$ac_cxx_werror_flag" ||
  8684. test ! -s conftest.err
  8685. } && test -s conftest$ac_exeext &&
  8686. $as_test_x conftest$ac_exeext; then
  8687. gl_have_weak=yes
  8688. else
  8689. echo "$as_me: failed program was:" >&5
  8690. sed 's/^/| /' conftest.$ac_ext >&5
  8691. fi
  8692. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8693. conftest$ac_exeext conftest.$ac_ext
  8694. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  8695. echo "${ECHO_T}$gl_have_weak" >&6; }
  8696. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8697. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8698. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8699. if test "${ac_cv_header_pthread_h+set}" = set; then
  8700. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  8701. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  8702. if test "${ac_cv_header_pthread_h+set}" = set; then
  8703. echo $ECHO_N "(cached) $ECHO_C" >&6
  8704. fi
  8705. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  8706. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  8707. else
  8708. # Is the header compilable?
  8709. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  8710. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  8711. cat >conftest.$ac_ext <<_ACEOF
  8712. /* confdefs.h. */
  8713. _ACEOF
  8714. cat confdefs.h >>conftest.$ac_ext
  8715. cat >>conftest.$ac_ext <<_ACEOF
  8716. /* end confdefs.h. */
  8717. $ac_includes_default
  8718. #include <pthread.h>
  8719. _ACEOF
  8720. rm -f conftest.$ac_objext
  8721. if { (ac_try="$ac_compile"
  8722. case "(($ac_try" in
  8723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8724. *) ac_try_echo=$ac_try;;
  8725. esac
  8726. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8727. (eval "$ac_compile") 2>conftest.er1
  8728. ac_status=$?
  8729. grep -v '^ *+' conftest.er1 >conftest.err
  8730. rm -f conftest.er1
  8731. cat conftest.err >&5
  8732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8733. (exit $ac_status); } && {
  8734. test -z "$ac_cxx_werror_flag" ||
  8735. test ! -s conftest.err
  8736. } && test -s conftest.$ac_objext; then
  8737. ac_header_compiler=yes
  8738. else
  8739. echo "$as_me: failed program was:" >&5
  8740. sed 's/^/| /' conftest.$ac_ext >&5
  8741. ac_header_compiler=no
  8742. fi
  8743. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8744. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8745. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8746. # Is the header present?
  8747. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  8748. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  8749. cat >conftest.$ac_ext <<_ACEOF
  8750. /* confdefs.h. */
  8751. _ACEOF
  8752. cat confdefs.h >>conftest.$ac_ext
  8753. cat >>conftest.$ac_ext <<_ACEOF
  8754. /* end confdefs.h. */
  8755. #include <pthread.h>
  8756. _ACEOF
  8757. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8758. case "(($ac_try" in
  8759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8760. *) ac_try_echo=$ac_try;;
  8761. esac
  8762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8763. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8764. ac_status=$?
  8765. grep -v '^ *+' conftest.er1 >conftest.err
  8766. rm -f conftest.er1
  8767. cat conftest.err >&5
  8768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8769. (exit $ac_status); } >/dev/null && {
  8770. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8771. test ! -s conftest.err
  8772. }; then
  8773. ac_header_preproc=yes
  8774. else
  8775. echo "$as_me: failed program was:" >&5
  8776. sed 's/^/| /' conftest.$ac_ext >&5
  8777. ac_header_preproc=no
  8778. fi
  8779. rm -f conftest.err conftest.$ac_ext
  8780. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8781. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8782. # So? What about this header?
  8783. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8784. yes:no: )
  8785. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8786. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8787. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  8788. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  8789. ac_header_preproc=yes
  8790. ;;
  8791. no:yes:* )
  8792. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  8793. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  8794. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  8795. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  8796. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  8797. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  8798. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  8799. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  8800. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  8801. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  8802. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  8803. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  8804. ( cat <<\_ASBOX
  8805. ## ----------------------------------------------- ##
  8806. ## Report this to t-tujikawa@users.sourceforge.net ##
  8807. ## ----------------------------------------------- ##
  8808. _ASBOX
  8809. ) | sed "s/^/$as_me: WARNING: /" >&2
  8810. ;;
  8811. esac
  8812. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  8813. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  8814. if test "${ac_cv_header_pthread_h+set}" = set; then
  8815. echo $ECHO_N "(cached) $ECHO_C" >&6
  8816. else
  8817. ac_cv_header_pthread_h=$ac_header_preproc
  8818. fi
  8819. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  8820. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  8821. fi
  8822. if test $ac_cv_header_pthread_h = yes; then
  8823. gl_have_pthread_h=yes
  8824. else
  8825. gl_have_pthread_h=no
  8826. fi
  8827. if test "$gl_have_pthread_h" = yes; then
  8828. # Other possible tests:
  8829. # -lpthreads (FSU threads, PCthreads)
  8830. # -lgthreads
  8831. gl_have_pthread=
  8832. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8833. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8834. # the second one only in libpthread, and lock.c needs it.
  8835. cat >conftest.$ac_ext <<_ACEOF
  8836. /* confdefs.h. */
  8837. _ACEOF
  8838. cat confdefs.h >>conftest.$ac_ext
  8839. cat >>conftest.$ac_ext <<_ACEOF
  8840. /* end confdefs.h. */
  8841. #include <pthread.h>
  8842. int
  8843. main ()
  8844. {
  8845. pthread_mutex_lock((pthread_mutex_t*)0);
  8846. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8847. ;
  8848. return 0;
  8849. }
  8850. _ACEOF
  8851. rm -f conftest.$ac_objext conftest$ac_exeext
  8852. if { (ac_try="$ac_link"
  8853. case "(($ac_try" in
  8854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8855. *) ac_try_echo=$ac_try;;
  8856. esac
  8857. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8858. (eval "$ac_link") 2>conftest.er1
  8859. ac_status=$?
  8860. grep -v '^ *+' conftest.er1 >conftest.err
  8861. rm -f conftest.er1
  8862. cat conftest.err >&5
  8863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8864. (exit $ac_status); } && {
  8865. test -z "$ac_cxx_werror_flag" ||
  8866. test ! -s conftest.err
  8867. } && test -s conftest$ac_exeext &&
  8868. $as_test_x conftest$ac_exeext; then
  8869. gl_have_pthread=yes
  8870. else
  8871. echo "$as_me: failed program was:" >&5
  8872. sed 's/^/| /' conftest.$ac_ext >&5
  8873. fi
  8874. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8875. conftest$ac_exeext conftest.$ac_ext
  8876. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8877. # since it is defined as a macro on OSF/1.)
  8878. if test -n "$gl_have_pthread"; then
  8879. # The program links fine without libpthread. But it may actually
  8880. # need to link with libpthread in order to create multiple threads.
  8881. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  8882. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  8883. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  8884. echo $ECHO_N "(cached) $ECHO_C" >&6
  8885. else
  8886. ac_check_lib_save_LIBS=$LIBS
  8887. LIBS="-lpthread $LIBS"
  8888. cat >conftest.$ac_ext <<_ACEOF
  8889. /* confdefs.h. */
  8890. _ACEOF
  8891. cat confdefs.h >>conftest.$ac_ext
  8892. cat >>conftest.$ac_ext <<_ACEOF
  8893. /* end confdefs.h. */
  8894. /* Override any GCC internal prototype to avoid an error.
  8895. Use char because int might match the return type of a GCC
  8896. builtin and then its argument prototype would still apply. */
  8897. #ifdef __cplusplus
  8898. extern "C"
  8899. #endif
  8900. char pthread_kill ();
  8901. int
  8902. main ()
  8903. {
  8904. return pthread_kill ();
  8905. ;
  8906. return 0;
  8907. }
  8908. _ACEOF
  8909. rm -f conftest.$ac_objext conftest$ac_exeext
  8910. if { (ac_try="$ac_link"
  8911. case "(($ac_try" in
  8912. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8913. *) ac_try_echo=$ac_try;;
  8914. esac
  8915. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8916. (eval "$ac_link") 2>conftest.er1
  8917. ac_status=$?
  8918. grep -v '^ *+' conftest.er1 >conftest.err
  8919. rm -f conftest.er1
  8920. cat conftest.err >&5
  8921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8922. (exit $ac_status); } && {
  8923. test -z "$ac_cxx_werror_flag" ||
  8924. test ! -s conftest.err
  8925. } && test -s conftest$ac_exeext &&
  8926. $as_test_x conftest$ac_exeext; then
  8927. ac_cv_lib_pthread_pthread_kill=yes
  8928. else
  8929. echo "$as_me: failed program was:" >&5
  8930. sed 's/^/| /' conftest.$ac_ext >&5
  8931. ac_cv_lib_pthread_pthread_kill=no
  8932. fi
  8933. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8934. conftest$ac_exeext conftest.$ac_ext
  8935. LIBS=$ac_check_lib_save_LIBS
  8936. fi
  8937. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8938. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  8939. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  8940. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8941. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8942. # Therefore pthread_in_use() needs to actually try to create a
  8943. # thread: pthread_create from libc will fail, whereas
  8944. # pthread_create will actually create a thread.
  8945. case "$host_os" in
  8946. solaris* | hpux*)
  8947. cat >>confdefs.h <<\_ACEOF
  8948. #define PTHREAD_IN_USE_DETECTION_HARD 1
  8949. _ACEOF
  8950. esac
  8951. fi
  8952. else
  8953. # Some library is needed. Try libpthread and libc_r.
  8954. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  8955. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  8956. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  8957. echo $ECHO_N "(cached) $ECHO_C" >&6
  8958. else
  8959. ac_check_lib_save_LIBS=$LIBS
  8960. LIBS="-lpthread $LIBS"
  8961. cat >conftest.$ac_ext <<_ACEOF
  8962. /* confdefs.h. */
  8963. _ACEOF
  8964. cat confdefs.h >>conftest.$ac_ext
  8965. cat >>conftest.$ac_ext <<_ACEOF
  8966. /* end confdefs.h. */
  8967. /* Override any GCC internal prototype to avoid an error.
  8968. Use char because int might match the return type of a GCC
  8969. builtin and then its argument prototype would still apply. */
  8970. #ifdef __cplusplus
  8971. extern "C"
  8972. #endif
  8973. char pthread_kill ();
  8974. int
  8975. main ()
  8976. {
  8977. return pthread_kill ();
  8978. ;
  8979. return 0;
  8980. }
  8981. _ACEOF
  8982. rm -f conftest.$ac_objext conftest$ac_exeext
  8983. if { (ac_try="$ac_link"
  8984. case "(($ac_try" in
  8985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8986. *) ac_try_echo=$ac_try;;
  8987. esac
  8988. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8989. (eval "$ac_link") 2>conftest.er1
  8990. ac_status=$?
  8991. grep -v '^ *+' conftest.er1 >conftest.err
  8992. rm -f conftest.er1
  8993. cat conftest.err >&5
  8994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8995. (exit $ac_status); } && {
  8996. test -z "$ac_cxx_werror_flag" ||
  8997. test ! -s conftest.err
  8998. } && test -s conftest$ac_exeext &&
  8999. $as_test_x conftest$ac_exeext; then
  9000. ac_cv_lib_pthread_pthread_kill=yes
  9001. else
  9002. echo "$as_me: failed program was:" >&5
  9003. sed 's/^/| /' conftest.$ac_ext >&5
  9004. ac_cv_lib_pthread_pthread_kill=no
  9005. fi
  9006. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9007. conftest$ac_exeext conftest.$ac_ext
  9008. LIBS=$ac_check_lib_save_LIBS
  9009. fi
  9010. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  9011. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  9012. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  9013. gl_have_pthread=yes
  9014. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  9015. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  9016. fi
  9017. if test -z "$gl_have_pthread"; then
  9018. # For FreeBSD 4.
  9019. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  9020. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  9021. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  9022. echo $ECHO_N "(cached) $ECHO_C" >&6
  9023. else
  9024. ac_check_lib_save_LIBS=$LIBS
  9025. LIBS="-lc_r $LIBS"
  9026. cat >conftest.$ac_ext <<_ACEOF
  9027. /* confdefs.h. */
  9028. _ACEOF
  9029. cat confdefs.h >>conftest.$ac_ext
  9030. cat >>conftest.$ac_ext <<_ACEOF
  9031. /* end confdefs.h. */
  9032. /* Override any GCC internal prototype to avoid an error.
  9033. Use char because int might match the return type of a GCC
  9034. builtin and then its argument prototype would still apply. */
  9035. #ifdef __cplusplus
  9036. extern "C"
  9037. #endif
  9038. char pthread_kill ();
  9039. int
  9040. main ()
  9041. {
  9042. return pthread_kill ();
  9043. ;
  9044. return 0;
  9045. }
  9046. _ACEOF
  9047. rm -f conftest.$ac_objext conftest$ac_exeext
  9048. if { (ac_try="$ac_link"
  9049. case "(($ac_try" in
  9050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9051. *) ac_try_echo=$ac_try;;
  9052. esac
  9053. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9054. (eval "$ac_link") 2>conftest.er1
  9055. ac_status=$?
  9056. grep -v '^ *+' conftest.er1 >conftest.err
  9057. rm -f conftest.er1
  9058. cat conftest.err >&5
  9059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9060. (exit $ac_status); } && {
  9061. test -z "$ac_cxx_werror_flag" ||
  9062. test ! -s conftest.err
  9063. } && test -s conftest$ac_exeext &&
  9064. $as_test_x conftest$ac_exeext; then
  9065. ac_cv_lib_c_r_pthread_kill=yes
  9066. else
  9067. echo "$as_me: failed program was:" >&5
  9068. sed 's/^/| /' conftest.$ac_ext >&5
  9069. ac_cv_lib_c_r_pthread_kill=no
  9070. fi
  9071. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9072. conftest$ac_exeext conftest.$ac_ext
  9073. LIBS=$ac_check_lib_save_LIBS
  9074. fi
  9075. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  9076. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  9077. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  9078. gl_have_pthread=yes
  9079. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  9080. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  9081. fi
  9082. fi
  9083. fi
  9084. if test -n "$gl_have_pthread"; then
  9085. gl_threads_api=posix
  9086. cat >>confdefs.h <<\_ACEOF
  9087. #define USE_POSIX_THREADS 1
  9088. _ACEOF
  9089. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9090. if test $gl_have_weak = yes; then
  9091. cat >>confdefs.h <<\_ACEOF
  9092. #define USE_POSIX_THREADS_WEAK 1
  9093. _ACEOF
  9094. LIBTHREAD=
  9095. LTLIBTHREAD=
  9096. fi
  9097. fi
  9098. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  9099. # pthread_rwlock_* functions.
  9100. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  9101. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  9102. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  9103. echo $ECHO_N "(cached) $ECHO_C" >&6
  9104. else
  9105. cat >conftest.$ac_ext <<_ACEOF
  9106. /* confdefs.h. */
  9107. _ACEOF
  9108. cat confdefs.h >>conftest.$ac_ext
  9109. cat >>conftest.$ac_ext <<_ACEOF
  9110. /* end confdefs.h. */
  9111. #include <pthread.h>
  9112. typedef pthread_rwlock_t ac__type_new_;
  9113. int
  9114. main ()
  9115. {
  9116. if ((ac__type_new_ *) 0)
  9117. return 0;
  9118. if (sizeof (ac__type_new_))
  9119. return 0;
  9120. ;
  9121. return 0;
  9122. }
  9123. _ACEOF
  9124. rm -f conftest.$ac_objext
  9125. if { (ac_try="$ac_compile"
  9126. case "(($ac_try" in
  9127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9128. *) ac_try_echo=$ac_try;;
  9129. esac
  9130. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9131. (eval "$ac_compile") 2>conftest.er1
  9132. ac_status=$?
  9133. grep -v '^ *+' conftest.er1 >conftest.err
  9134. rm -f conftest.er1
  9135. cat conftest.err >&5
  9136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9137. (exit $ac_status); } && {
  9138. test -z "$ac_cxx_werror_flag" ||
  9139. test ! -s conftest.err
  9140. } && test -s conftest.$ac_objext; then
  9141. ac_cv_type_pthread_rwlock_t=yes
  9142. else
  9143. echo "$as_me: failed program was:" >&5
  9144. sed 's/^/| /' conftest.$ac_ext >&5
  9145. ac_cv_type_pthread_rwlock_t=no
  9146. fi
  9147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9148. fi
  9149. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  9150. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  9151. if test $ac_cv_type_pthread_rwlock_t = yes; then
  9152. cat >>confdefs.h <<\_ACEOF
  9153. #define HAVE_PTHREAD_RWLOCK 1
  9154. _ACEOF
  9155. fi
  9156. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  9157. cat >conftest.$ac_ext <<_ACEOF
  9158. /* confdefs.h. */
  9159. _ACEOF
  9160. cat confdefs.h >>conftest.$ac_ext
  9161. cat >>conftest.$ac_ext <<_ACEOF
  9162. /* end confdefs.h. */
  9163. #include <pthread.h>
  9164. int
  9165. main ()
  9166. {
  9167. #if __FreeBSD__ == 4
  9168. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  9169. #else
  9170. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  9171. return !x;
  9172. #endif
  9173. ;
  9174. return 0;
  9175. }
  9176. _ACEOF
  9177. rm -f conftest.$ac_objext
  9178. if { (ac_try="$ac_compile"
  9179. case "(($ac_try" in
  9180. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9181. *) ac_try_echo=$ac_try;;
  9182. esac
  9183. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9184. (eval "$ac_compile") 2>conftest.er1
  9185. ac_status=$?
  9186. grep -v '^ *+' conftest.er1 >conftest.err
  9187. rm -f conftest.er1
  9188. cat conftest.err >&5
  9189. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9190. (exit $ac_status); } && {
  9191. test -z "$ac_cxx_werror_flag" ||
  9192. test ! -s conftest.err
  9193. } && test -s conftest.$ac_objext; then
  9194. cat >>confdefs.h <<\_ACEOF
  9195. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  9196. _ACEOF
  9197. else
  9198. echo "$as_me: failed program was:" >&5
  9199. sed 's/^/| /' conftest.$ac_ext >&5
  9200. fi
  9201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9202. fi
  9203. fi
  9204. fi
  9205. if test -z "$gl_have_pthread"; then
  9206. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  9207. gl_have_solaristhread=
  9208. gl_save_LIBS="$LIBS"
  9209. LIBS="$LIBS -lthread"
  9210. cat >conftest.$ac_ext <<_ACEOF
  9211. /* confdefs.h. */
  9212. _ACEOF
  9213. cat confdefs.h >>conftest.$ac_ext
  9214. cat >>conftest.$ac_ext <<_ACEOF
  9215. /* end confdefs.h. */
  9216. #include <thread.h>
  9217. #include <synch.h>
  9218. int
  9219. main ()
  9220. {
  9221. thr_self();
  9222. ;
  9223. return 0;
  9224. }
  9225. _ACEOF
  9226. rm -f conftest.$ac_objext conftest$ac_exeext
  9227. if { (ac_try="$ac_link"
  9228. case "(($ac_try" in
  9229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9230. *) ac_try_echo=$ac_try;;
  9231. esac
  9232. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9233. (eval "$ac_link") 2>conftest.er1
  9234. ac_status=$?
  9235. grep -v '^ *+' conftest.er1 >conftest.err
  9236. rm -f conftest.er1
  9237. cat conftest.err >&5
  9238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9239. (exit $ac_status); } && {
  9240. test -z "$ac_cxx_werror_flag" ||
  9241. test ! -s conftest.err
  9242. } && test -s conftest$ac_exeext &&
  9243. $as_test_x conftest$ac_exeext; then
  9244. gl_have_solaristhread=yes
  9245. else
  9246. echo "$as_me: failed program was:" >&5
  9247. sed 's/^/| /' conftest.$ac_ext >&5
  9248. fi
  9249. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9250. conftest$ac_exeext conftest.$ac_ext
  9251. LIBS="$gl_save_LIBS"
  9252. if test -n "$gl_have_solaristhread"; then
  9253. gl_threads_api=solaris
  9254. LIBTHREAD=-lthread
  9255. LTLIBTHREAD=-lthread
  9256. LIBMULTITHREAD="$LIBTHREAD"
  9257. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9258. cat >>confdefs.h <<\_ACEOF
  9259. #define USE_SOLARIS_THREADS 1
  9260. _ACEOF
  9261. if test $gl_have_weak = yes; then
  9262. cat >>confdefs.h <<\_ACEOF
  9263. #define USE_SOLARIS_THREADS_WEAK 1
  9264. _ACEOF
  9265. LIBTHREAD=
  9266. LTLIBTHREAD=
  9267. fi
  9268. fi
  9269. fi
  9270. fi
  9271. if test "$gl_use_threads" = pth; then
  9272. gl_save_CPPFLAGS="$CPPFLAGS"
  9273. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  9274. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  9275. if test "${ac_cv_libpth_libs+set}" = set; then
  9276. echo $ECHO_N "(cached) $ECHO_C" >&6
  9277. else
  9278. use_additional=yes
  9279. acl_save_prefix="$prefix"
  9280. prefix="$acl_final_prefix"
  9281. acl_save_exec_prefix="$exec_prefix"
  9282. exec_prefix="$acl_final_exec_prefix"
  9283. eval additional_includedir=\"$includedir\"
  9284. eval additional_libdir=\"$libdir\"
  9285. exec_prefix="$acl_save_exec_prefix"
  9286. prefix="$acl_save_prefix"
  9287. # Check whether --with-libpth-prefix was given.
  9288. if test "${with_libpth_prefix+set}" = set; then
  9289. withval=$with_libpth_prefix;
  9290. if test "X$withval" = "Xno"; then
  9291. use_additional=no
  9292. else
  9293. if test "X$withval" = "X"; then
  9294. acl_save_prefix="$prefix"
  9295. prefix="$acl_final_prefix"
  9296. acl_save_exec_prefix="$exec_prefix"
  9297. exec_prefix="$acl_final_exec_prefix"
  9298. eval additional_includedir=\"$includedir\"
  9299. eval additional_libdir=\"$libdir\"
  9300. exec_prefix="$acl_save_exec_prefix"
  9301. prefix="$acl_save_prefix"
  9302. else
  9303. additional_includedir="$withval/include"
  9304. additional_libdir="$withval/$acl_libdirstem"
  9305. fi
  9306. fi
  9307. fi
  9308. LIBPTH=
  9309. LTLIBPTH=
  9310. INCPTH=
  9311. LIBPTH_PREFIX=
  9312. rpathdirs=
  9313. ltrpathdirs=
  9314. names_already_handled=
  9315. names_next_round='pth '
  9316. while test -n "$names_next_round"; do
  9317. names_this_round="$names_next_round"
  9318. names_next_round=
  9319. for name in $names_this_round; do
  9320. already_handled=
  9321. for n in $names_already_handled; do
  9322. if test "$n" = "$name"; then
  9323. already_handled=yes
  9324. break
  9325. fi
  9326. done
  9327. if test -z "$already_handled"; then
  9328. names_already_handled="$names_already_handled $name"
  9329. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9330. eval value=\"\$HAVE_LIB$uppername\"
  9331. if test -n "$value"; then
  9332. if test "$value" = yes; then
  9333. eval value=\"\$LIB$uppername\"
  9334. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9335. eval value=\"\$LTLIB$uppername\"
  9336. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9337. else
  9338. :
  9339. fi
  9340. else
  9341. found_dir=
  9342. found_la=
  9343. found_so=
  9344. found_a=
  9345. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9346. if test -n "$acl_shlibext"; then
  9347. shrext=".$acl_shlibext" # typically: shrext=.so
  9348. else
  9349. shrext=
  9350. fi
  9351. if test $use_additional = yes; then
  9352. dir="$additional_libdir"
  9353. if test -n "$acl_shlibext"; then
  9354. if test -f "$dir/$libname$shrext"; then
  9355. found_dir="$dir"
  9356. found_so="$dir/$libname$shrext"
  9357. else
  9358. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9359. ver=`(cd "$dir" && \
  9360. for f in "$libname$shrext".*; do echo "$f"; done \
  9361. | sed -e "s,^$libname$shrext\\\\.,," \
  9362. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9363. | sed 1q ) 2>/dev/null`
  9364. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9365. found_dir="$dir"
  9366. found_so="$dir/$libname$shrext.$ver"
  9367. fi
  9368. else
  9369. eval library_names=\"$acl_library_names_spec\"
  9370. for f in $library_names; do
  9371. if test -f "$dir/$f"; then
  9372. found_dir="$dir"
  9373. found_so="$dir/$f"
  9374. break
  9375. fi
  9376. done
  9377. fi
  9378. fi
  9379. fi
  9380. if test "X$found_dir" = "X"; then
  9381. if test -f "$dir/$libname.$acl_libext"; then
  9382. found_dir="$dir"
  9383. found_a="$dir/$libname.$acl_libext"
  9384. fi
  9385. fi
  9386. if test "X$found_dir" != "X"; then
  9387. if test -f "$dir/$libname.la"; then
  9388. found_la="$dir/$libname.la"
  9389. fi
  9390. fi
  9391. fi
  9392. if test "X$found_dir" = "X"; then
  9393. for x in $LDFLAGS $LTLIBPTH; do
  9394. acl_save_prefix="$prefix"
  9395. prefix="$acl_final_prefix"
  9396. acl_save_exec_prefix="$exec_prefix"
  9397. exec_prefix="$acl_final_exec_prefix"
  9398. eval x=\"$x\"
  9399. exec_prefix="$acl_save_exec_prefix"
  9400. prefix="$acl_save_prefix"
  9401. case "$x" in
  9402. -L*)
  9403. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9404. if test -n "$acl_shlibext"; then
  9405. if test -f "$dir/$libname$shrext"; then
  9406. found_dir="$dir"
  9407. found_so="$dir/$libname$shrext"
  9408. else
  9409. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9410. ver=`(cd "$dir" && \
  9411. for f in "$libname$shrext".*; do echo "$f"; done \
  9412. | sed -e "s,^$libname$shrext\\\\.,," \
  9413. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9414. | sed 1q ) 2>/dev/null`
  9415. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9416. found_dir="$dir"
  9417. found_so="$dir/$libname$shrext.$ver"
  9418. fi
  9419. else
  9420. eval library_names=\"$acl_library_names_spec\"
  9421. for f in $library_names; do
  9422. if test -f "$dir/$f"; then
  9423. found_dir="$dir"
  9424. found_so="$dir/$f"
  9425. break
  9426. fi
  9427. done
  9428. fi
  9429. fi
  9430. fi
  9431. if test "X$found_dir" = "X"; then
  9432. if test -f "$dir/$libname.$acl_libext"; then
  9433. found_dir="$dir"
  9434. found_a="$dir/$libname.$acl_libext"
  9435. fi
  9436. fi
  9437. if test "X$found_dir" != "X"; then
  9438. if test -f "$dir/$libname.la"; then
  9439. found_la="$dir/$libname.la"
  9440. fi
  9441. fi
  9442. ;;
  9443. esac
  9444. if test "X$found_dir" != "X"; then
  9445. break
  9446. fi
  9447. done
  9448. fi
  9449. if test "X$found_dir" != "X"; then
  9450. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9451. if test "X$found_so" != "X"; then
  9452. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9453. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9454. else
  9455. haveit=
  9456. for x in $ltrpathdirs; do
  9457. if test "X$x" = "X$found_dir"; then
  9458. haveit=yes
  9459. break
  9460. fi
  9461. done
  9462. if test -z "$haveit"; then
  9463. ltrpathdirs="$ltrpathdirs $found_dir"
  9464. fi
  9465. if test "$acl_hardcode_direct" = yes; then
  9466. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9467. else
  9468. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9469. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9470. haveit=
  9471. for x in $rpathdirs; do
  9472. if test "X$x" = "X$found_dir"; then
  9473. haveit=yes
  9474. break
  9475. fi
  9476. done
  9477. if test -z "$haveit"; then
  9478. rpathdirs="$rpathdirs $found_dir"
  9479. fi
  9480. else
  9481. haveit=
  9482. for x in $LDFLAGS $LIBPTH; do
  9483. acl_save_prefix="$prefix"
  9484. prefix="$acl_final_prefix"
  9485. acl_save_exec_prefix="$exec_prefix"
  9486. exec_prefix="$acl_final_exec_prefix"
  9487. eval x=\"$x\"
  9488. exec_prefix="$acl_save_exec_prefix"
  9489. prefix="$acl_save_prefix"
  9490. if test "X$x" = "X-L$found_dir"; then
  9491. haveit=yes
  9492. break
  9493. fi
  9494. done
  9495. if test -z "$haveit"; then
  9496. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9497. fi
  9498. if test "$acl_hardcode_minus_L" != no; then
  9499. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9500. else
  9501. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9502. fi
  9503. fi
  9504. fi
  9505. fi
  9506. else
  9507. if test "X$found_a" != "X"; then
  9508. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9509. else
  9510. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9511. fi
  9512. fi
  9513. additional_includedir=
  9514. case "$found_dir" in
  9515. */$acl_libdirstem | */$acl_libdirstem/)
  9516. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9517. LIBPTH_PREFIX="$basedir"
  9518. additional_includedir="$basedir/include"
  9519. ;;
  9520. esac
  9521. if test "X$additional_includedir" != "X"; then
  9522. if test "X$additional_includedir" != "X/usr/include"; then
  9523. haveit=
  9524. if test "X$additional_includedir" = "X/usr/local/include"; then
  9525. if test -n "$GCC"; then
  9526. case $host_os in
  9527. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9528. esac
  9529. fi
  9530. fi
  9531. if test -z "$haveit"; then
  9532. for x in $CPPFLAGS $INCPTH; do
  9533. acl_save_prefix="$prefix"
  9534. prefix="$acl_final_prefix"
  9535. acl_save_exec_prefix="$exec_prefix"
  9536. exec_prefix="$acl_final_exec_prefix"
  9537. eval x=\"$x\"
  9538. exec_prefix="$acl_save_exec_prefix"
  9539. prefix="$acl_save_prefix"
  9540. if test "X$x" = "X-I$additional_includedir"; then
  9541. haveit=yes
  9542. break
  9543. fi
  9544. done
  9545. if test -z "$haveit"; then
  9546. if test -d "$additional_includedir"; then
  9547. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9548. fi
  9549. fi
  9550. fi
  9551. fi
  9552. fi
  9553. if test -n "$found_la"; then
  9554. save_libdir="$libdir"
  9555. case "$found_la" in
  9556. */* | *\\*) . "$found_la" ;;
  9557. *) . "./$found_la" ;;
  9558. esac
  9559. libdir="$save_libdir"
  9560. for dep in $dependency_libs; do
  9561. case "$dep" in
  9562. -L*)
  9563. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9564. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9565. haveit=
  9566. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9567. if test -n "$GCC"; then
  9568. case $host_os in
  9569. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9570. esac
  9571. fi
  9572. fi
  9573. if test -z "$haveit"; then
  9574. haveit=
  9575. for x in $LDFLAGS $LIBPTH; do
  9576. acl_save_prefix="$prefix"
  9577. prefix="$acl_final_prefix"
  9578. acl_save_exec_prefix="$exec_prefix"
  9579. exec_prefix="$acl_final_exec_prefix"
  9580. eval x=\"$x\"
  9581. exec_prefix="$acl_save_exec_prefix"
  9582. prefix="$acl_save_prefix"
  9583. if test "X$x" = "X-L$additional_libdir"; then
  9584. haveit=yes
  9585. break
  9586. fi
  9587. done
  9588. if test -z "$haveit"; then
  9589. if test -d "$additional_libdir"; then
  9590. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9591. fi
  9592. fi
  9593. haveit=
  9594. for x in $LDFLAGS $LTLIBPTH; do
  9595. acl_save_prefix="$prefix"
  9596. prefix="$acl_final_prefix"
  9597. acl_save_exec_prefix="$exec_prefix"
  9598. exec_prefix="$acl_final_exec_prefix"
  9599. eval x=\"$x\"
  9600. exec_prefix="$acl_save_exec_prefix"
  9601. prefix="$acl_save_prefix"
  9602. if test "X$x" = "X-L$additional_libdir"; then
  9603. haveit=yes
  9604. break
  9605. fi
  9606. done
  9607. if test -z "$haveit"; then
  9608. if test -d "$additional_libdir"; then
  9609. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9610. fi
  9611. fi
  9612. fi
  9613. fi
  9614. ;;
  9615. -R*)
  9616. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9617. if test "$enable_rpath" != no; then
  9618. haveit=
  9619. for x in $rpathdirs; do
  9620. if test "X$x" = "X$dir"; then
  9621. haveit=yes
  9622. break
  9623. fi
  9624. done
  9625. if test -z "$haveit"; then
  9626. rpathdirs="$rpathdirs $dir"
  9627. fi
  9628. haveit=
  9629. for x in $ltrpathdirs; do
  9630. if test "X$x" = "X$dir"; then
  9631. haveit=yes
  9632. break
  9633. fi
  9634. done
  9635. if test -z "$haveit"; then
  9636. ltrpathdirs="$ltrpathdirs $dir"
  9637. fi
  9638. fi
  9639. ;;
  9640. -l*)
  9641. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9642. ;;
  9643. *.la)
  9644. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9645. ;;
  9646. *)
  9647. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9648. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9649. ;;
  9650. esac
  9651. done
  9652. fi
  9653. else
  9654. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9655. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9656. fi
  9657. fi
  9658. fi
  9659. done
  9660. done
  9661. if test "X$rpathdirs" != "X"; then
  9662. if test -n "$acl_hardcode_libdir_separator"; then
  9663. alldirs=
  9664. for found_dir in $rpathdirs; do
  9665. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9666. done
  9667. acl_save_libdir="$libdir"
  9668. libdir="$alldirs"
  9669. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9670. libdir="$acl_save_libdir"
  9671. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9672. else
  9673. for found_dir in $rpathdirs; do
  9674. acl_save_libdir="$libdir"
  9675. libdir="$found_dir"
  9676. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9677. libdir="$acl_save_libdir"
  9678. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9679. done
  9680. fi
  9681. fi
  9682. if test "X$ltrpathdirs" != "X"; then
  9683. for found_dir in $ltrpathdirs; do
  9684. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9685. done
  9686. fi
  9687. ac_cv_libpth_libs="$LIBPTH"
  9688. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9689. ac_cv_libpth_cppflags="$INCPTH"
  9690. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9691. fi
  9692. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  9693. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  9694. LIBPTH="$ac_cv_libpth_libs"
  9695. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9696. INCPTH="$ac_cv_libpth_cppflags"
  9697. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9698. for element in $INCPTH; do
  9699. haveit=
  9700. for x in $CPPFLAGS; do
  9701. acl_save_prefix="$prefix"
  9702. prefix="$acl_final_prefix"
  9703. acl_save_exec_prefix="$exec_prefix"
  9704. exec_prefix="$acl_final_exec_prefix"
  9705. eval x=\"$x\"
  9706. exec_prefix="$acl_save_exec_prefix"
  9707. prefix="$acl_save_prefix"
  9708. if test "X$x" = "X$element"; then
  9709. haveit=yes
  9710. break
  9711. fi
  9712. done
  9713. if test -z "$haveit"; then
  9714. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9715. fi
  9716. done
  9717. HAVE_LIBPTH=yes
  9718. gl_have_pth=
  9719. gl_save_LIBS="$LIBS"
  9720. LIBS="$LIBS -lpth"
  9721. cat >conftest.$ac_ext <<_ACEOF
  9722. /* confdefs.h. */
  9723. _ACEOF
  9724. cat confdefs.h >>conftest.$ac_ext
  9725. cat >>conftest.$ac_ext <<_ACEOF
  9726. /* end confdefs.h. */
  9727. #include <pth.h>
  9728. int
  9729. main ()
  9730. {
  9731. pth_self();
  9732. ;
  9733. return 0;
  9734. }
  9735. _ACEOF
  9736. rm -f conftest.$ac_objext conftest$ac_exeext
  9737. if { (ac_try="$ac_link"
  9738. case "(($ac_try" in
  9739. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9740. *) ac_try_echo=$ac_try;;
  9741. esac
  9742. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9743. (eval "$ac_link") 2>conftest.er1
  9744. ac_status=$?
  9745. grep -v '^ *+' conftest.er1 >conftest.err
  9746. rm -f conftest.er1
  9747. cat conftest.err >&5
  9748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9749. (exit $ac_status); } && {
  9750. test -z "$ac_cxx_werror_flag" ||
  9751. test ! -s conftest.err
  9752. } && test -s conftest$ac_exeext &&
  9753. $as_test_x conftest$ac_exeext; then
  9754. gl_have_pth=yes
  9755. else
  9756. echo "$as_me: failed program was:" >&5
  9757. sed 's/^/| /' conftest.$ac_ext >&5
  9758. fi
  9759. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9760. conftest$ac_exeext conftest.$ac_ext
  9761. LIBS="$gl_save_LIBS"
  9762. if test -n "$gl_have_pth"; then
  9763. gl_threads_api=pth
  9764. LIBTHREAD="$LIBPTH"
  9765. LTLIBTHREAD="$LTLIBPTH"
  9766. LIBMULTITHREAD="$LIBTHREAD"
  9767. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9768. cat >>confdefs.h <<\_ACEOF
  9769. #define USE_PTH_THREADS 1
  9770. _ACEOF
  9771. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9772. if test $gl_have_weak = yes; then
  9773. cat >>confdefs.h <<\_ACEOF
  9774. #define USE_PTH_THREADS_WEAK 1
  9775. _ACEOF
  9776. LIBTHREAD=
  9777. LTLIBTHREAD=
  9778. fi
  9779. fi
  9780. else
  9781. CPPFLAGS="$gl_save_CPPFLAGS"
  9782. fi
  9783. fi
  9784. if test -z "$gl_have_pthread"; then
  9785. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9786. if { case "$host_os" in
  9787. mingw*) true;;
  9788. *) false;;
  9789. esac
  9790. }; then
  9791. gl_threads_api=win32
  9792. cat >>confdefs.h <<\_ACEOF
  9793. #define USE_WIN32_THREADS 1
  9794. _ACEOF
  9795. fi
  9796. fi
  9797. fi
  9798. fi
  9799. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  9800. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  9801. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  9802. echo "${ECHO_T}$gl_threads_api" >&6; }
  9803. use_additional=yes
  9804. acl_save_prefix="$prefix"
  9805. prefix="$acl_final_prefix"
  9806. acl_save_exec_prefix="$exec_prefix"
  9807. exec_prefix="$acl_final_exec_prefix"
  9808. eval additional_includedir=\"$includedir\"
  9809. eval additional_libdir=\"$libdir\"
  9810. exec_prefix="$acl_save_exec_prefix"
  9811. prefix="$acl_save_prefix"
  9812. # Check whether --with-libiconv-prefix was given.
  9813. if test "${with_libiconv_prefix+set}" = set; then
  9814. withval=$with_libiconv_prefix;
  9815. if test "X$withval" = "Xno"; then
  9816. use_additional=no
  9817. else
  9818. if test "X$withval" = "X"; then
  9819. acl_save_prefix="$prefix"
  9820. prefix="$acl_final_prefix"
  9821. acl_save_exec_prefix="$exec_prefix"
  9822. exec_prefix="$acl_final_exec_prefix"
  9823. eval additional_includedir=\"$includedir\"
  9824. eval additional_libdir=\"$libdir\"
  9825. exec_prefix="$acl_save_exec_prefix"
  9826. prefix="$acl_save_prefix"
  9827. else
  9828. additional_includedir="$withval/include"
  9829. additional_libdir="$withval/$acl_libdirstem"
  9830. fi
  9831. fi
  9832. fi
  9833. LIBICONV=
  9834. LTLIBICONV=
  9835. INCICONV=
  9836. LIBICONV_PREFIX=
  9837. rpathdirs=
  9838. ltrpathdirs=
  9839. names_already_handled=
  9840. names_next_round='iconv '
  9841. while test -n "$names_next_round"; do
  9842. names_this_round="$names_next_round"
  9843. names_next_round=
  9844. for name in $names_this_round; do
  9845. already_handled=
  9846. for n in $names_already_handled; do
  9847. if test "$n" = "$name"; then
  9848. already_handled=yes
  9849. break
  9850. fi
  9851. done
  9852. if test -z "$already_handled"; then
  9853. names_already_handled="$names_already_handled $name"
  9854. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9855. eval value=\"\$HAVE_LIB$uppername\"
  9856. if test -n "$value"; then
  9857. if test "$value" = yes; then
  9858. eval value=\"\$LIB$uppername\"
  9859. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9860. eval value=\"\$LTLIB$uppername\"
  9861. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9862. else
  9863. :
  9864. fi
  9865. else
  9866. found_dir=
  9867. found_la=
  9868. found_so=
  9869. found_a=
  9870. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9871. if test -n "$acl_shlibext"; then
  9872. shrext=".$acl_shlibext" # typically: shrext=.so
  9873. else
  9874. shrext=
  9875. fi
  9876. if test $use_additional = yes; then
  9877. dir="$additional_libdir"
  9878. if test -n "$acl_shlibext"; then
  9879. if test -f "$dir/$libname$shrext"; then
  9880. found_dir="$dir"
  9881. found_so="$dir/$libname$shrext"
  9882. else
  9883. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9884. ver=`(cd "$dir" && \
  9885. for f in "$libname$shrext".*; do echo "$f"; done \
  9886. | sed -e "s,^$libname$shrext\\\\.,," \
  9887. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9888. | sed 1q ) 2>/dev/null`
  9889. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9890. found_dir="$dir"
  9891. found_so="$dir/$libname$shrext.$ver"
  9892. fi
  9893. else
  9894. eval library_names=\"$acl_library_names_spec\"
  9895. for f in $library_names; do
  9896. if test -f "$dir/$f"; then
  9897. found_dir="$dir"
  9898. found_so="$dir/$f"
  9899. break
  9900. fi
  9901. done
  9902. fi
  9903. fi
  9904. fi
  9905. if test "X$found_dir" = "X"; then
  9906. if test -f "$dir/$libname.$acl_libext"; then
  9907. found_dir="$dir"
  9908. found_a="$dir/$libname.$acl_libext"
  9909. fi
  9910. fi
  9911. if test "X$found_dir" != "X"; then
  9912. if test -f "$dir/$libname.la"; then
  9913. found_la="$dir/$libname.la"
  9914. fi
  9915. fi
  9916. fi
  9917. if test "X$found_dir" = "X"; then
  9918. for x in $LDFLAGS $LTLIBICONV; do
  9919. acl_save_prefix="$prefix"
  9920. prefix="$acl_final_prefix"
  9921. acl_save_exec_prefix="$exec_prefix"
  9922. exec_prefix="$acl_final_exec_prefix"
  9923. eval x=\"$x\"
  9924. exec_prefix="$acl_save_exec_prefix"
  9925. prefix="$acl_save_prefix"
  9926. case "$x" in
  9927. -L*)
  9928. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9929. if test -n "$acl_shlibext"; then
  9930. if test -f "$dir/$libname$shrext"; then
  9931. found_dir="$dir"
  9932. found_so="$dir/$libname$shrext"
  9933. else
  9934. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9935. ver=`(cd "$dir" && \
  9936. for f in "$libname$shrext".*; do echo "$f"; done \
  9937. | sed -e "s,^$libname$shrext\\\\.,," \
  9938. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9939. | sed 1q ) 2>/dev/null`
  9940. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9941. found_dir="$dir"
  9942. found_so="$dir/$libname$shrext.$ver"
  9943. fi
  9944. else
  9945. eval library_names=\"$acl_library_names_spec\"
  9946. for f in $library_names; do
  9947. if test -f "$dir/$f"; then
  9948. found_dir="$dir"
  9949. found_so="$dir/$f"
  9950. break
  9951. fi
  9952. done
  9953. fi
  9954. fi
  9955. fi
  9956. if test "X$found_dir" = "X"; then
  9957. if test -f "$dir/$libname.$acl_libext"; then
  9958. found_dir="$dir"
  9959. found_a="$dir/$libname.$acl_libext"
  9960. fi
  9961. fi
  9962. if test "X$found_dir" != "X"; then
  9963. if test -f "$dir/$libname.la"; then
  9964. found_la="$dir/$libname.la"
  9965. fi
  9966. fi
  9967. ;;
  9968. esac
  9969. if test "X$found_dir" != "X"; then
  9970. break
  9971. fi
  9972. done
  9973. fi
  9974. if test "X$found_dir" != "X"; then
  9975. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9976. if test "X$found_so" != "X"; then
  9977. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9978. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9979. else
  9980. haveit=
  9981. for x in $ltrpathdirs; do
  9982. if test "X$x" = "X$found_dir"; then
  9983. haveit=yes
  9984. break
  9985. fi
  9986. done
  9987. if test -z "$haveit"; then
  9988. ltrpathdirs="$ltrpathdirs $found_dir"
  9989. fi
  9990. if test "$acl_hardcode_direct" = yes; then
  9991. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9992. else
  9993. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9994. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9995. haveit=
  9996. for x in $rpathdirs; do
  9997. if test "X$x" = "X$found_dir"; then
  9998. haveit=yes
  9999. break
  10000. fi
  10001. done
  10002. if test -z "$haveit"; then
  10003. rpathdirs="$rpathdirs $found_dir"
  10004. fi
  10005. else
  10006. haveit=
  10007. for x in $LDFLAGS $LIBICONV; do
  10008. acl_save_prefix="$prefix"
  10009. prefix="$acl_final_prefix"
  10010. acl_save_exec_prefix="$exec_prefix"
  10011. exec_prefix="$acl_final_exec_prefix"
  10012. eval x=\"$x\"
  10013. exec_prefix="$acl_save_exec_prefix"
  10014. prefix="$acl_save_prefix"
  10015. if test "X$x" = "X-L$found_dir"; then
  10016. haveit=yes
  10017. break
  10018. fi
  10019. done
  10020. if test -z "$haveit"; then
  10021. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  10022. fi
  10023. if test "$acl_hardcode_minus_L" != no; then
  10024. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  10025. else
  10026. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  10027. fi
  10028. fi
  10029. fi
  10030. fi
  10031. else
  10032. if test "X$found_a" != "X"; then
  10033. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  10034. else
  10035. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  10036. fi
  10037. fi
  10038. additional_includedir=
  10039. case "$found_dir" in
  10040. */$acl_libdirstem | */$acl_libdirstem/)
  10041. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  10042. LIBICONV_PREFIX="$basedir"
  10043. additional_includedir="$basedir/include"
  10044. ;;
  10045. esac
  10046. if test "X$additional_includedir" != "X"; then
  10047. if test "X$additional_includedir" != "X/usr/include"; then
  10048. haveit=
  10049. if test "X$additional_includedir" = "X/usr/local/include"; then
  10050. if test -n "$GCC"; then
  10051. case $host_os in
  10052. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  10053. esac
  10054. fi
  10055. fi
  10056. if test -z "$haveit"; then
  10057. for x in $CPPFLAGS $INCICONV; do
  10058. acl_save_prefix="$prefix"
  10059. prefix="$acl_final_prefix"
  10060. acl_save_exec_prefix="$exec_prefix"
  10061. exec_prefix="$acl_final_exec_prefix"
  10062. eval x=\"$x\"
  10063. exec_prefix="$acl_save_exec_prefix"
  10064. prefix="$acl_save_prefix"
  10065. if test "X$x" = "X-I$additional_includedir"; then
  10066. haveit=yes
  10067. break
  10068. fi
  10069. done
  10070. if test -z "$haveit"; then
  10071. if test -d "$additional_includedir"; then
  10072. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  10073. fi
  10074. fi
  10075. fi
  10076. fi
  10077. fi
  10078. if test -n "$found_la"; then
  10079. save_libdir="$libdir"
  10080. case "$found_la" in
  10081. */* | *\\*) . "$found_la" ;;
  10082. *) . "./$found_la" ;;
  10083. esac
  10084. libdir="$save_libdir"
  10085. for dep in $dependency_libs; do
  10086. case "$dep" in
  10087. -L*)
  10088. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  10089. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  10090. haveit=
  10091. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  10092. if test -n "$GCC"; then
  10093. case $host_os in
  10094. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  10095. esac
  10096. fi
  10097. fi
  10098. if test -z "$haveit"; then
  10099. haveit=
  10100. for x in $LDFLAGS $LIBICONV; do
  10101. acl_save_prefix="$prefix"
  10102. prefix="$acl_final_prefix"
  10103. acl_save_exec_prefix="$exec_prefix"
  10104. exec_prefix="$acl_final_exec_prefix"
  10105. eval x=\"$x\"
  10106. exec_prefix="$acl_save_exec_prefix"
  10107. prefix="$acl_save_prefix"
  10108. if test "X$x" = "X-L$additional_libdir"; then
  10109. haveit=yes
  10110. break
  10111. fi
  10112. done
  10113. if test -z "$haveit"; then
  10114. if test -d "$additional_libdir"; then
  10115. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  10116. fi
  10117. fi
  10118. haveit=
  10119. for x in $LDFLAGS $LTLIBICONV; do
  10120. acl_save_prefix="$prefix"
  10121. prefix="$acl_final_prefix"
  10122. acl_save_exec_prefix="$exec_prefix"
  10123. exec_prefix="$acl_final_exec_prefix"
  10124. eval x=\"$x\"
  10125. exec_prefix="$acl_save_exec_prefix"
  10126. prefix="$acl_save_prefix"
  10127. if test "X$x" = "X-L$additional_libdir"; then
  10128. haveit=yes
  10129. break
  10130. fi
  10131. done
  10132. if test -z "$haveit"; then
  10133. if test -d "$additional_libdir"; then
  10134. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  10135. fi
  10136. fi
  10137. fi
  10138. fi
  10139. ;;
  10140. -R*)
  10141. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  10142. if test "$enable_rpath" != no; then
  10143. haveit=
  10144. for x in $rpathdirs; do
  10145. if test "X$x" = "X$dir"; then
  10146. haveit=yes
  10147. break
  10148. fi
  10149. done
  10150. if test -z "$haveit"; then
  10151. rpathdirs="$rpathdirs $dir"
  10152. fi
  10153. haveit=
  10154. for x in $ltrpathdirs; do
  10155. if test "X$x" = "X$dir"; then
  10156. haveit=yes
  10157. break
  10158. fi
  10159. done
  10160. if test -z "$haveit"; then
  10161. ltrpathdirs="$ltrpathdirs $dir"
  10162. fi
  10163. fi
  10164. ;;
  10165. -l*)
  10166. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  10167. ;;
  10168. *.la)
  10169. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  10170. ;;
  10171. *)
  10172. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  10173. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  10174. ;;
  10175. esac
  10176. done
  10177. fi
  10178. else
  10179. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  10180. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  10181. fi
  10182. fi
  10183. fi
  10184. done
  10185. done
  10186. if test "X$rpathdirs" != "X"; then
  10187. if test -n "$acl_hardcode_libdir_separator"; then
  10188. alldirs=
  10189. for found_dir in $rpathdirs; do
  10190. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  10191. done
  10192. acl_save_libdir="$libdir"
  10193. libdir="$alldirs"
  10194. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10195. libdir="$acl_save_libdir"
  10196. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10197. else
  10198. for found_dir in $rpathdirs; do
  10199. acl_save_libdir="$libdir"
  10200. libdir="$found_dir"
  10201. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10202. libdir="$acl_save_libdir"
  10203. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10204. done
  10205. fi
  10206. fi
  10207. if test "X$ltrpathdirs" != "X"; then
  10208. for found_dir in $ltrpathdirs; do
  10209. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  10210. done
  10211. fi
  10212. cat >conftest.$ac_ext <<_ACEOF
  10213. /* confdefs.h. */
  10214. _ACEOF
  10215. cat confdefs.h >>conftest.$ac_ext
  10216. cat >>conftest.$ac_ext <<_ACEOF
  10217. /* end confdefs.h. */
  10218. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  10219. int
  10220. main ()
  10221. {
  10222. ;
  10223. return 0;
  10224. }
  10225. _ACEOF
  10226. rm -f conftest.$ac_objext conftest$ac_exeext
  10227. if { (ac_try="$ac_link"
  10228. case "(($ac_try" in
  10229. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10230. *) ac_try_echo=$ac_try;;
  10231. esac
  10232. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10233. (eval "$ac_link") 2>conftest.er1
  10234. ac_status=$?
  10235. grep -v '^ *+' conftest.er1 >conftest.err
  10236. rm -f conftest.er1
  10237. cat conftest.err >&5
  10238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10239. (exit $ac_status); } && {
  10240. test -z "$ac_cxx_werror_flag" ||
  10241. test ! -s conftest.err
  10242. } && test -s conftest$ac_exeext &&
  10243. $as_test_x conftest$ac_exeext; then
  10244. cat >>confdefs.h <<\_ACEOF
  10245. #define HAVE_BUILTIN_EXPECT 1
  10246. _ACEOF
  10247. else
  10248. echo "$as_me: failed program was:" >&5
  10249. sed 's/^/| /' conftest.$ac_ext >&5
  10250. fi
  10251. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10252. conftest$ac_exeext conftest.$ac_ext
  10253. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  10254. do
  10255. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10256. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10257. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10258. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10259. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10260. echo $ECHO_N "(cached) $ECHO_C" >&6
  10261. fi
  10262. ac_res=`eval echo '${'$as_ac_Header'}'`
  10263. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10264. echo "${ECHO_T}$ac_res" >&6; }
  10265. else
  10266. # Is the header compilable?
  10267. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10268. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10269. cat >conftest.$ac_ext <<_ACEOF
  10270. /* confdefs.h. */
  10271. _ACEOF
  10272. cat confdefs.h >>conftest.$ac_ext
  10273. cat >>conftest.$ac_ext <<_ACEOF
  10274. /* end confdefs.h. */
  10275. $ac_includes_default
  10276. #include <$ac_header>
  10277. _ACEOF
  10278. rm -f conftest.$ac_objext
  10279. if { (ac_try="$ac_compile"
  10280. case "(($ac_try" in
  10281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10282. *) ac_try_echo=$ac_try;;
  10283. esac
  10284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10285. (eval "$ac_compile") 2>conftest.er1
  10286. ac_status=$?
  10287. grep -v '^ *+' conftest.er1 >conftest.err
  10288. rm -f conftest.er1
  10289. cat conftest.err >&5
  10290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10291. (exit $ac_status); } && {
  10292. test -z "$ac_cxx_werror_flag" ||
  10293. test ! -s conftest.err
  10294. } && test -s conftest.$ac_objext; then
  10295. ac_header_compiler=yes
  10296. else
  10297. echo "$as_me: failed program was:" >&5
  10298. sed 's/^/| /' conftest.$ac_ext >&5
  10299. ac_header_compiler=no
  10300. fi
  10301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10302. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10303. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10304. # Is the header present?
  10305. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10306. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10307. cat >conftest.$ac_ext <<_ACEOF
  10308. /* confdefs.h. */
  10309. _ACEOF
  10310. cat confdefs.h >>conftest.$ac_ext
  10311. cat >>conftest.$ac_ext <<_ACEOF
  10312. /* end confdefs.h. */
  10313. #include <$ac_header>
  10314. _ACEOF
  10315. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10316. case "(($ac_try" in
  10317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10318. *) ac_try_echo=$ac_try;;
  10319. esac
  10320. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10321. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10322. ac_status=$?
  10323. grep -v '^ *+' conftest.er1 >conftest.err
  10324. rm -f conftest.er1
  10325. cat conftest.err >&5
  10326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10327. (exit $ac_status); } >/dev/null && {
  10328. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10329. test ! -s conftest.err
  10330. }; then
  10331. ac_header_preproc=yes
  10332. else
  10333. echo "$as_me: failed program was:" >&5
  10334. sed 's/^/| /' conftest.$ac_ext >&5
  10335. ac_header_preproc=no
  10336. fi
  10337. rm -f conftest.err conftest.$ac_ext
  10338. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10339. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10340. # So? What about this header?
  10341. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10342. yes:no: )
  10343. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10344. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10345. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10346. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10347. ac_header_preproc=yes
  10348. ;;
  10349. no:yes:* )
  10350. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10351. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10352. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10353. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10354. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10355. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10356. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10357. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10358. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10359. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10360. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10361. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10362. ( cat <<\_ASBOX
  10363. ## ----------------------------------------------- ##
  10364. ## Report this to t-tujikawa@users.sourceforge.net ##
  10365. ## ----------------------------------------------- ##
  10366. _ASBOX
  10367. ) | sed "s/^/$as_me: WARNING: /" >&2
  10368. ;;
  10369. esac
  10370. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10371. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10372. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10373. echo $ECHO_N "(cached) $ECHO_C" >&6
  10374. else
  10375. eval "$as_ac_Header=\$ac_header_preproc"
  10376. fi
  10377. ac_res=`eval echo '${'$as_ac_Header'}'`
  10378. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10379. echo "${ECHO_T}$ac_res" >&6; }
  10380. fi
  10381. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10382. cat >>confdefs.h <<_ACEOF
  10383. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10384. _ACEOF
  10385. fi
  10386. done
  10387. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  10388. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  10389. argz_next __fsetlocking
  10390. do
  10391. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10392. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10393. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10394. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10395. echo $ECHO_N "(cached) $ECHO_C" >&6
  10396. else
  10397. cat >conftest.$ac_ext <<_ACEOF
  10398. /* confdefs.h. */
  10399. _ACEOF
  10400. cat confdefs.h >>conftest.$ac_ext
  10401. cat >>conftest.$ac_ext <<_ACEOF
  10402. /* end confdefs.h. */
  10403. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10404. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10405. #define $ac_func innocuous_$ac_func
  10406. /* System header to define __stub macros and hopefully few prototypes,
  10407. which can conflict with char $ac_func (); below.
  10408. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10409. <limits.h> exists even on freestanding compilers. */
  10410. #ifdef __STDC__
  10411. # include <limits.h>
  10412. #else
  10413. # include <assert.h>
  10414. #endif
  10415. #undef $ac_func
  10416. /* Override any GCC internal prototype to avoid an error.
  10417. Use char because int might match the return type of a GCC
  10418. builtin and then its argument prototype would still apply. */
  10419. #ifdef __cplusplus
  10420. extern "C"
  10421. #endif
  10422. char $ac_func ();
  10423. /* The GNU C library defines this for functions which it implements
  10424. to always fail with ENOSYS. Some functions are actually named
  10425. something starting with __ and the normal name is an alias. */
  10426. #if defined __stub_$ac_func || defined __stub___$ac_func
  10427. choke me
  10428. #endif
  10429. int
  10430. main ()
  10431. {
  10432. return $ac_func ();
  10433. ;
  10434. return 0;
  10435. }
  10436. _ACEOF
  10437. rm -f conftest.$ac_objext conftest$ac_exeext
  10438. if { (ac_try="$ac_link"
  10439. case "(($ac_try" in
  10440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10441. *) ac_try_echo=$ac_try;;
  10442. esac
  10443. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10444. (eval "$ac_link") 2>conftest.er1
  10445. ac_status=$?
  10446. grep -v '^ *+' conftest.er1 >conftest.err
  10447. rm -f conftest.er1
  10448. cat conftest.err >&5
  10449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10450. (exit $ac_status); } && {
  10451. test -z "$ac_cxx_werror_flag" ||
  10452. test ! -s conftest.err
  10453. } && test -s conftest$ac_exeext &&
  10454. $as_test_x conftest$ac_exeext; then
  10455. eval "$as_ac_var=yes"
  10456. else
  10457. echo "$as_me: failed program was:" >&5
  10458. sed 's/^/| /' conftest.$ac_ext >&5
  10459. eval "$as_ac_var=no"
  10460. fi
  10461. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10462. conftest$ac_exeext conftest.$ac_ext
  10463. fi
  10464. ac_res=`eval echo '${'$as_ac_var'}'`
  10465. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10466. echo "${ECHO_T}$ac_res" >&6; }
  10467. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10468. cat >>confdefs.h <<_ACEOF
  10469. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10470. _ACEOF
  10471. fi
  10472. done
  10473. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  10474. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  10475. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  10476. echo $ECHO_N "(cached) $ECHO_C" >&6
  10477. else
  10478. cat >conftest.$ac_ext <<_ACEOF
  10479. /* confdefs.h. */
  10480. _ACEOF
  10481. cat confdefs.h >>conftest.$ac_ext
  10482. cat >>conftest.$ac_ext <<_ACEOF
  10483. /* end confdefs.h. */
  10484. #include <stdio.h>
  10485. int
  10486. main ()
  10487. {
  10488. #ifndef feof_unlocked
  10489. char *p = (char *) feof_unlocked;
  10490. #endif
  10491. ;
  10492. return 0;
  10493. }
  10494. _ACEOF
  10495. rm -f conftest.$ac_objext
  10496. if { (ac_try="$ac_compile"
  10497. case "(($ac_try" in
  10498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10499. *) ac_try_echo=$ac_try;;
  10500. esac
  10501. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10502. (eval "$ac_compile") 2>conftest.er1
  10503. ac_status=$?
  10504. grep -v '^ *+' conftest.er1 >conftest.err
  10505. rm -f conftest.er1
  10506. cat conftest.err >&5
  10507. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10508. (exit $ac_status); } && {
  10509. test -z "$ac_cxx_werror_flag" ||
  10510. test ! -s conftest.err
  10511. } && test -s conftest.$ac_objext; then
  10512. ac_cv_have_decl_feof_unlocked=yes
  10513. else
  10514. echo "$as_me: failed program was:" >&5
  10515. sed 's/^/| /' conftest.$ac_ext >&5
  10516. ac_cv_have_decl_feof_unlocked=no
  10517. fi
  10518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10519. fi
  10520. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  10521. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  10522. if test $ac_cv_have_decl_feof_unlocked = yes; then
  10523. gt_value=1
  10524. else
  10525. gt_value=0
  10526. fi
  10527. cat >>confdefs.h <<_ACEOF
  10528. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  10529. _ACEOF
  10530. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  10531. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  10532. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  10533. echo $ECHO_N "(cached) $ECHO_C" >&6
  10534. else
  10535. cat >conftest.$ac_ext <<_ACEOF
  10536. /* confdefs.h. */
  10537. _ACEOF
  10538. cat confdefs.h >>conftest.$ac_ext
  10539. cat >>conftest.$ac_ext <<_ACEOF
  10540. /* end confdefs.h. */
  10541. #include <stdio.h>
  10542. int
  10543. main ()
  10544. {
  10545. #ifndef fgets_unlocked
  10546. char *p = (char *) fgets_unlocked;
  10547. #endif
  10548. ;
  10549. return 0;
  10550. }
  10551. _ACEOF
  10552. rm -f conftest.$ac_objext
  10553. if { (ac_try="$ac_compile"
  10554. case "(($ac_try" in
  10555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10556. *) ac_try_echo=$ac_try;;
  10557. esac
  10558. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10559. (eval "$ac_compile") 2>conftest.er1
  10560. ac_status=$?
  10561. grep -v '^ *+' conftest.er1 >conftest.err
  10562. rm -f conftest.er1
  10563. cat conftest.err >&5
  10564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10565. (exit $ac_status); } && {
  10566. test -z "$ac_cxx_werror_flag" ||
  10567. test ! -s conftest.err
  10568. } && test -s conftest.$ac_objext; then
  10569. ac_cv_have_decl_fgets_unlocked=yes
  10570. else
  10571. echo "$as_me: failed program was:" >&5
  10572. sed 's/^/| /' conftest.$ac_ext >&5
  10573. ac_cv_have_decl_fgets_unlocked=no
  10574. fi
  10575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10576. fi
  10577. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  10578. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  10579. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10580. gt_value=1
  10581. else
  10582. gt_value=0
  10583. fi
  10584. cat >>confdefs.h <<_ACEOF
  10585. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10586. _ACEOF
  10587. am_save_CPPFLAGS="$CPPFLAGS"
  10588. for element in $INCICONV; do
  10589. haveit=
  10590. for x in $CPPFLAGS; do
  10591. acl_save_prefix="$prefix"
  10592. prefix="$acl_final_prefix"
  10593. acl_save_exec_prefix="$exec_prefix"
  10594. exec_prefix="$acl_final_exec_prefix"
  10595. eval x=\"$x\"
  10596. exec_prefix="$acl_save_exec_prefix"
  10597. prefix="$acl_save_prefix"
  10598. if test "X$x" = "X$element"; then
  10599. haveit=yes
  10600. break
  10601. fi
  10602. done
  10603. if test -z "$haveit"; then
  10604. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10605. fi
  10606. done
  10607. { echo "$as_me:$LINENO: checking for iconv" >&5
  10608. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  10609. if test "${am_cv_func_iconv+set}" = set; then
  10610. echo $ECHO_N "(cached) $ECHO_C" >&6
  10611. else
  10612. am_cv_func_iconv="no, consider installing GNU libiconv"
  10613. am_cv_lib_iconv=no
  10614. cat >conftest.$ac_ext <<_ACEOF
  10615. /* confdefs.h. */
  10616. _ACEOF
  10617. cat confdefs.h >>conftest.$ac_ext
  10618. cat >>conftest.$ac_ext <<_ACEOF
  10619. /* end confdefs.h. */
  10620. #include <stdlib.h>
  10621. #include <iconv.h>
  10622. int
  10623. main ()
  10624. {
  10625. iconv_t cd = iconv_open("","");
  10626. iconv(cd,NULL,NULL,NULL,NULL);
  10627. iconv_close(cd);
  10628. ;
  10629. return 0;
  10630. }
  10631. _ACEOF
  10632. rm -f conftest.$ac_objext conftest$ac_exeext
  10633. if { (ac_try="$ac_link"
  10634. case "(($ac_try" in
  10635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10636. *) ac_try_echo=$ac_try;;
  10637. esac
  10638. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10639. (eval "$ac_link") 2>conftest.er1
  10640. ac_status=$?
  10641. grep -v '^ *+' conftest.er1 >conftest.err
  10642. rm -f conftest.er1
  10643. cat conftest.err >&5
  10644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10645. (exit $ac_status); } && {
  10646. test -z "$ac_cxx_werror_flag" ||
  10647. test ! -s conftest.err
  10648. } && test -s conftest$ac_exeext &&
  10649. $as_test_x conftest$ac_exeext; then
  10650. am_cv_func_iconv=yes
  10651. else
  10652. echo "$as_me: failed program was:" >&5
  10653. sed 's/^/| /' conftest.$ac_ext >&5
  10654. fi
  10655. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10656. conftest$ac_exeext conftest.$ac_ext
  10657. if test "$am_cv_func_iconv" != yes; then
  10658. am_save_LIBS="$LIBS"
  10659. LIBS="$LIBS $LIBICONV"
  10660. cat >conftest.$ac_ext <<_ACEOF
  10661. /* confdefs.h. */
  10662. _ACEOF
  10663. cat confdefs.h >>conftest.$ac_ext
  10664. cat >>conftest.$ac_ext <<_ACEOF
  10665. /* end confdefs.h. */
  10666. #include <stdlib.h>
  10667. #include <iconv.h>
  10668. int
  10669. main ()
  10670. {
  10671. iconv_t cd = iconv_open("","");
  10672. iconv(cd,NULL,NULL,NULL,NULL);
  10673. iconv_close(cd);
  10674. ;
  10675. return 0;
  10676. }
  10677. _ACEOF
  10678. rm -f conftest.$ac_objext conftest$ac_exeext
  10679. if { (ac_try="$ac_link"
  10680. case "(($ac_try" in
  10681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10682. *) ac_try_echo=$ac_try;;
  10683. esac
  10684. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10685. (eval "$ac_link") 2>conftest.er1
  10686. ac_status=$?
  10687. grep -v '^ *+' conftest.er1 >conftest.err
  10688. rm -f conftest.er1
  10689. cat conftest.err >&5
  10690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10691. (exit $ac_status); } && {
  10692. test -z "$ac_cxx_werror_flag" ||
  10693. test ! -s conftest.err
  10694. } && test -s conftest$ac_exeext &&
  10695. $as_test_x conftest$ac_exeext; then
  10696. am_cv_lib_iconv=yes
  10697. am_cv_func_iconv=yes
  10698. else
  10699. echo "$as_me: failed program was:" >&5
  10700. sed 's/^/| /' conftest.$ac_ext >&5
  10701. fi
  10702. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10703. conftest$ac_exeext conftest.$ac_ext
  10704. LIBS="$am_save_LIBS"
  10705. fi
  10706. fi
  10707. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  10708. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  10709. if test "$am_cv_func_iconv" = yes; then
  10710. { echo "$as_me:$LINENO: checking for working iconv" >&5
  10711. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  10712. if test "${am_cv_func_iconv_works+set}" = set; then
  10713. echo $ECHO_N "(cached) $ECHO_C" >&6
  10714. else
  10715. am_save_LIBS="$LIBS"
  10716. if test $am_cv_lib_iconv = yes; then
  10717. LIBS="$LIBS $LIBICONV"
  10718. fi
  10719. if test "$cross_compiling" = yes; then
  10720. case "$host_os" in
  10721. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10722. *) am_cv_func_iconv_works="guessing yes" ;;
  10723. esac
  10724. else
  10725. cat >conftest.$ac_ext <<_ACEOF
  10726. /* confdefs.h. */
  10727. _ACEOF
  10728. cat confdefs.h >>conftest.$ac_ext
  10729. cat >>conftest.$ac_ext <<_ACEOF
  10730. /* end confdefs.h. */
  10731. #include <iconv.h>
  10732. #include <string.h>
  10733. int main ()
  10734. {
  10735. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10736. returns. */
  10737. {
  10738. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10739. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10740. {
  10741. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10742. char buf[10];
  10743. const char *inptr = input;
  10744. size_t inbytesleft = strlen (input);
  10745. char *outptr = buf;
  10746. size_t outbytesleft = sizeof (buf);
  10747. size_t res = iconv (cd_utf8_to_88591,
  10748. (char **) &inptr, &inbytesleft,
  10749. &outptr, &outbytesleft);
  10750. if (res == 0)
  10751. return 1;
  10752. }
  10753. }
  10754. #if 0 /* This bug could be worked around by the caller. */
  10755. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10756. {
  10757. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10758. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10759. {
  10760. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10761. char buf[50];
  10762. const char *inptr = input;
  10763. size_t inbytesleft = strlen (input);
  10764. char *outptr = buf;
  10765. size_t outbytesleft = sizeof (buf);
  10766. size_t res = iconv (cd_88591_to_utf8,
  10767. (char **) &inptr, &inbytesleft,
  10768. &outptr, &outbytesleft);
  10769. if ((int)res > 0)
  10770. return 1;
  10771. }
  10772. }
  10773. #endif
  10774. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10775. provided. */
  10776. if (/* Try standardized names. */
  10777. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10778. /* Try IRIX, OSF/1 names. */
  10779. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10780. /* Try AIX names. */
  10781. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10782. /* Try HP-UX names. */
  10783. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10784. return 1;
  10785. return 0;
  10786. }
  10787. _ACEOF
  10788. rm -f conftest$ac_exeext
  10789. if { (ac_try="$ac_link"
  10790. case "(($ac_try" in
  10791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10792. *) ac_try_echo=$ac_try;;
  10793. esac
  10794. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10795. (eval "$ac_link") 2>&5
  10796. ac_status=$?
  10797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10798. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10799. { (case "(($ac_try" in
  10800. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10801. *) ac_try_echo=$ac_try;;
  10802. esac
  10803. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10804. (eval "$ac_try") 2>&5
  10805. ac_status=$?
  10806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10807. (exit $ac_status); }; }; then
  10808. am_cv_func_iconv_works=yes
  10809. else
  10810. echo "$as_me: program exited with status $ac_status" >&5
  10811. echo "$as_me: failed program was:" >&5
  10812. sed 's/^/| /' conftest.$ac_ext >&5
  10813. ( exit $ac_status )
  10814. am_cv_func_iconv_works=no
  10815. fi
  10816. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10817. fi
  10818. LIBS="$am_save_LIBS"
  10819. fi
  10820. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  10821. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  10822. case "$am_cv_func_iconv_works" in
  10823. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10824. *) am_func_iconv=yes ;;
  10825. esac
  10826. else
  10827. am_func_iconv=no am_cv_lib_iconv=no
  10828. fi
  10829. if test "$am_func_iconv" = yes; then
  10830. cat >>confdefs.h <<\_ACEOF
  10831. #define HAVE_ICONV 1
  10832. _ACEOF
  10833. fi
  10834. if test "$am_cv_lib_iconv" = yes; then
  10835. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  10836. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  10837. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  10838. echo "${ECHO_T}$LIBICONV" >&6; }
  10839. else
  10840. CPPFLAGS="$am_save_CPPFLAGS"
  10841. LIBICONV=
  10842. LTLIBICONV=
  10843. fi
  10844. if test "$am_cv_func_iconv" = yes; then
  10845. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  10846. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  10847. if test "${am_cv_proto_iconv+set}" = set; then
  10848. echo $ECHO_N "(cached) $ECHO_C" >&6
  10849. else
  10850. cat >conftest.$ac_ext <<_ACEOF
  10851. /* confdefs.h. */
  10852. _ACEOF
  10853. cat confdefs.h >>conftest.$ac_ext
  10854. cat >>conftest.$ac_ext <<_ACEOF
  10855. /* end confdefs.h. */
  10856. #include <stdlib.h>
  10857. #include <iconv.h>
  10858. extern
  10859. #ifdef __cplusplus
  10860. "C"
  10861. #endif
  10862. #if defined(__STDC__) || defined(__cplusplus)
  10863. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10864. #else
  10865. size_t iconv();
  10866. #endif
  10867. int
  10868. main ()
  10869. {
  10870. ;
  10871. return 0;
  10872. }
  10873. _ACEOF
  10874. rm -f conftest.$ac_objext
  10875. if { (ac_try="$ac_compile"
  10876. case "(($ac_try" in
  10877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10878. *) ac_try_echo=$ac_try;;
  10879. esac
  10880. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10881. (eval "$ac_compile") 2>conftest.er1
  10882. ac_status=$?
  10883. grep -v '^ *+' conftest.er1 >conftest.err
  10884. rm -f conftest.er1
  10885. cat conftest.err >&5
  10886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10887. (exit $ac_status); } && {
  10888. test -z "$ac_cxx_werror_flag" ||
  10889. test ! -s conftest.err
  10890. } && test -s conftest.$ac_objext; then
  10891. am_cv_proto_iconv_arg1=""
  10892. else
  10893. echo "$as_me: failed program was:" >&5
  10894. sed 's/^/| /' conftest.$ac_ext >&5
  10895. am_cv_proto_iconv_arg1="const"
  10896. fi
  10897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10898. 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);"
  10899. fi
  10900. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10901. { echo "$as_me:$LINENO: result: ${ac_t:-
  10902. }$am_cv_proto_iconv" >&5
  10903. echo "${ECHO_T}${ac_t:-
  10904. }$am_cv_proto_iconv" >&6; }
  10905. cat >>confdefs.h <<_ACEOF
  10906. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10907. _ACEOF
  10908. fi
  10909. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  10910. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  10911. if test "${gt_cv_nl_locale_name+set}" = set; then
  10912. echo $ECHO_N "(cached) $ECHO_C" >&6
  10913. else
  10914. cat >conftest.$ac_ext <<_ACEOF
  10915. /* confdefs.h. */
  10916. _ACEOF
  10917. cat confdefs.h >>conftest.$ac_ext
  10918. cat >>conftest.$ac_ext <<_ACEOF
  10919. /* end confdefs.h. */
  10920. #include <langinfo.h>
  10921. #include <locale.h>
  10922. int
  10923. main ()
  10924. {
  10925. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10926. return !cs;
  10927. ;
  10928. return 0;
  10929. }
  10930. _ACEOF
  10931. rm -f conftest.$ac_objext conftest$ac_exeext
  10932. if { (ac_try="$ac_link"
  10933. case "(($ac_try" in
  10934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10935. *) ac_try_echo=$ac_try;;
  10936. esac
  10937. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10938. (eval "$ac_link") 2>conftest.er1
  10939. ac_status=$?
  10940. grep -v '^ *+' conftest.er1 >conftest.err
  10941. rm -f conftest.er1
  10942. cat conftest.err >&5
  10943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10944. (exit $ac_status); } && {
  10945. test -z "$ac_cxx_werror_flag" ||
  10946. test ! -s conftest.err
  10947. } && test -s conftest$ac_exeext &&
  10948. $as_test_x conftest$ac_exeext; then
  10949. gt_cv_nl_locale_name=yes
  10950. else
  10951. echo "$as_me: failed program was:" >&5
  10952. sed 's/^/| /' conftest.$ac_ext >&5
  10953. gt_cv_nl_locale_name=no
  10954. fi
  10955. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10956. conftest$ac_exeext conftest.$ac_ext
  10957. fi
  10958. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  10959. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  10960. if test $gt_cv_nl_locale_name = yes; then
  10961. cat >>confdefs.h <<\_ACEOF
  10962. #define HAVE_NL_LOCALE_NAME 1
  10963. _ACEOF
  10964. fi
  10965. for ac_prog in bison
  10966. do
  10967. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10968. set dummy $ac_prog; ac_word=$2
  10969. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  10970. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  10971. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  10972. echo $ECHO_N "(cached) $ECHO_C" >&6
  10973. else
  10974. if test -n "$INTLBISON"; then
  10975. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10976. else
  10977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10978. for as_dir in $PATH
  10979. do
  10980. IFS=$as_save_IFS
  10981. test -z "$as_dir" && as_dir=.
  10982. for ac_exec_ext in '' $ac_executable_extensions; do
  10983. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10984. ac_cv_prog_INTLBISON="$ac_prog"
  10985. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10986. break 2
  10987. fi
  10988. done
  10989. done
  10990. IFS=$as_save_IFS
  10991. fi
  10992. fi
  10993. INTLBISON=$ac_cv_prog_INTLBISON
  10994. if test -n "$INTLBISON"; then
  10995. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  10996. echo "${ECHO_T}$INTLBISON" >&6; }
  10997. else
  10998. { echo "$as_me:$LINENO: result: no" >&5
  10999. echo "${ECHO_T}no" >&6; }
  11000. fi
  11001. test -n "$INTLBISON" && break
  11002. done
  11003. if test -z "$INTLBISON"; then
  11004. ac_verc_fail=yes
  11005. else
  11006. { echo "$as_me:$LINENO: checking version of bison" >&5
  11007. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  11008. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  11009. case $ac_prog_version in
  11010. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  11011. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  11012. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  11013. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  11014. esac
  11015. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  11016. echo "${ECHO_T}$ac_prog_version" >&6; }
  11017. fi
  11018. if test $ac_verc_fail = yes; then
  11019. INTLBISON=:
  11020. fi
  11021. { echo "$as_me:$LINENO: checking for long long int" >&5
  11022. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  11023. if test "${ac_cv_type_long_long_int+set}" = set; then
  11024. echo $ECHO_N "(cached) $ECHO_C" >&6
  11025. else
  11026. cat >conftest.$ac_ext <<_ACEOF
  11027. /* confdefs.h. */
  11028. _ACEOF
  11029. cat confdefs.h >>conftest.$ac_ext
  11030. cat >>conftest.$ac_ext <<_ACEOF
  11031. /* end confdefs.h. */
  11032. /* Test preprocessor. */
  11033. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11034. error in preprocessor;
  11035. #endif
  11036. #if ! (18446744073709551615ULL <= -1ull)
  11037. error in preprocessor;
  11038. #endif
  11039. /* Test literals. */
  11040. long long int ll = 9223372036854775807ll;
  11041. long long int nll = -9223372036854775807LL;
  11042. unsigned long long int ull = 18446744073709551615ULL;
  11043. /* Test constant expressions. */
  11044. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11045. ? 1 : -1)];
  11046. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  11047. ? 1 : -1)];
  11048. int i = 63;
  11049. int
  11050. main ()
  11051. {
  11052. /* Test availability of runtime routines for shift and division. */
  11053. long long int llmax = 9223372036854775807ll;
  11054. unsigned long long int ullmax = 18446744073709551615ull;
  11055. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  11056. | (llmax / ll) | (llmax % ll)
  11057. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  11058. | (ullmax / ull) | (ullmax % ull));
  11059. ;
  11060. return 0;
  11061. }
  11062. _ACEOF
  11063. rm -f conftest.$ac_objext conftest$ac_exeext
  11064. if { (ac_try="$ac_link"
  11065. case "(($ac_try" in
  11066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11067. *) ac_try_echo=$ac_try;;
  11068. esac
  11069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11070. (eval "$ac_link") 2>conftest.er1
  11071. ac_status=$?
  11072. grep -v '^ *+' conftest.er1 >conftest.err
  11073. rm -f conftest.er1
  11074. cat conftest.err >&5
  11075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11076. (exit $ac_status); } && {
  11077. test -z "$ac_cxx_werror_flag" ||
  11078. test ! -s conftest.err
  11079. } && test -s conftest$ac_exeext &&
  11080. $as_test_x conftest$ac_exeext; then
  11081. if test "$cross_compiling" = yes; then
  11082. ac_cv_type_long_long_int=yes
  11083. else
  11084. cat >conftest.$ac_ext <<_ACEOF
  11085. /* confdefs.h. */
  11086. _ACEOF
  11087. cat confdefs.h >>conftest.$ac_ext
  11088. cat >>conftest.$ac_ext <<_ACEOF
  11089. /* end confdefs.h. */
  11090. #include <limits.h>
  11091. #ifndef LLONG_MAX
  11092. # define HALF \
  11093. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  11094. # define LLONG_MAX (HALF - 1 + HALF)
  11095. #endif
  11096. int
  11097. main ()
  11098. {
  11099. long long int n = 1;
  11100. int i;
  11101. for (i = 0; ; i++)
  11102. {
  11103. long long int m = n << i;
  11104. if (m >> i != n)
  11105. return 1;
  11106. if (LLONG_MAX / 2 < m)
  11107. break;
  11108. }
  11109. return 0;
  11110. ;
  11111. return 0;
  11112. }
  11113. _ACEOF
  11114. rm -f conftest$ac_exeext
  11115. if { (ac_try="$ac_link"
  11116. case "(($ac_try" in
  11117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11118. *) ac_try_echo=$ac_try;;
  11119. esac
  11120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11121. (eval "$ac_link") 2>&5
  11122. ac_status=$?
  11123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11124. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11125. { (case "(($ac_try" in
  11126. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11127. *) ac_try_echo=$ac_try;;
  11128. esac
  11129. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11130. (eval "$ac_try") 2>&5
  11131. ac_status=$?
  11132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11133. (exit $ac_status); }; }; then
  11134. ac_cv_type_long_long_int=yes
  11135. else
  11136. echo "$as_me: program exited with status $ac_status" >&5
  11137. echo "$as_me: failed program was:" >&5
  11138. sed 's/^/| /' conftest.$ac_ext >&5
  11139. ( exit $ac_status )
  11140. ac_cv_type_long_long_int=no
  11141. fi
  11142. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11143. fi
  11144. else
  11145. echo "$as_me: failed program was:" >&5
  11146. sed 's/^/| /' conftest.$ac_ext >&5
  11147. ac_cv_type_long_long_int=no
  11148. fi
  11149. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11150. conftest$ac_exeext conftest.$ac_ext
  11151. fi
  11152. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  11153. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  11154. if test $ac_cv_type_long_long_int = yes; then
  11155. cat >>confdefs.h <<\_ACEOF
  11156. #define HAVE_LONG_LONG_INT 1
  11157. _ACEOF
  11158. fi
  11159. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  11160. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  11161. if test "${gt_cv_c_wchar_t+set}" = set; then
  11162. echo $ECHO_N "(cached) $ECHO_C" >&6
  11163. else
  11164. cat >conftest.$ac_ext <<_ACEOF
  11165. /* confdefs.h. */
  11166. _ACEOF
  11167. cat confdefs.h >>conftest.$ac_ext
  11168. cat >>conftest.$ac_ext <<_ACEOF
  11169. /* end confdefs.h. */
  11170. #include <stddef.h>
  11171. wchar_t foo = (wchar_t)'\0';
  11172. int
  11173. main ()
  11174. {
  11175. ;
  11176. return 0;
  11177. }
  11178. _ACEOF
  11179. rm -f conftest.$ac_objext
  11180. if { (ac_try="$ac_compile"
  11181. case "(($ac_try" in
  11182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11183. *) ac_try_echo=$ac_try;;
  11184. esac
  11185. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11186. (eval "$ac_compile") 2>conftest.er1
  11187. ac_status=$?
  11188. grep -v '^ *+' conftest.er1 >conftest.err
  11189. rm -f conftest.er1
  11190. cat conftest.err >&5
  11191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11192. (exit $ac_status); } && {
  11193. test -z "$ac_cxx_werror_flag" ||
  11194. test ! -s conftest.err
  11195. } && test -s conftest.$ac_objext; then
  11196. gt_cv_c_wchar_t=yes
  11197. else
  11198. echo "$as_me: failed program was:" >&5
  11199. sed 's/^/| /' conftest.$ac_ext >&5
  11200. gt_cv_c_wchar_t=no
  11201. fi
  11202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11203. fi
  11204. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  11205. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  11206. if test $gt_cv_c_wchar_t = yes; then
  11207. cat >>confdefs.h <<\_ACEOF
  11208. #define HAVE_WCHAR_T 1
  11209. _ACEOF
  11210. fi
  11211. { echo "$as_me:$LINENO: checking for wint_t" >&5
  11212. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  11213. if test "${gt_cv_c_wint_t+set}" = set; then
  11214. echo $ECHO_N "(cached) $ECHO_C" >&6
  11215. else
  11216. cat >conftest.$ac_ext <<_ACEOF
  11217. /* confdefs.h. */
  11218. _ACEOF
  11219. cat confdefs.h >>conftest.$ac_ext
  11220. cat >>conftest.$ac_ext <<_ACEOF
  11221. /* end confdefs.h. */
  11222. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  11223. <wchar.h>.
  11224. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  11225. before <wchar.h>. */
  11226. #include <stddef.h>
  11227. #include <stdio.h>
  11228. #include <time.h>
  11229. #include <wchar.h>
  11230. wint_t foo = (wchar_t)'\0';
  11231. int
  11232. main ()
  11233. {
  11234. ;
  11235. return 0;
  11236. }
  11237. _ACEOF
  11238. rm -f conftest.$ac_objext
  11239. if { (ac_try="$ac_compile"
  11240. case "(($ac_try" in
  11241. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11242. *) ac_try_echo=$ac_try;;
  11243. esac
  11244. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11245. (eval "$ac_compile") 2>conftest.er1
  11246. ac_status=$?
  11247. grep -v '^ *+' conftest.er1 >conftest.err
  11248. rm -f conftest.er1
  11249. cat conftest.err >&5
  11250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11251. (exit $ac_status); } && {
  11252. test -z "$ac_cxx_werror_flag" ||
  11253. test ! -s conftest.err
  11254. } && test -s conftest.$ac_objext; then
  11255. gt_cv_c_wint_t=yes
  11256. else
  11257. echo "$as_me: failed program was:" >&5
  11258. sed 's/^/| /' conftest.$ac_ext >&5
  11259. gt_cv_c_wint_t=no
  11260. fi
  11261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11262. fi
  11263. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  11264. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  11265. if test $gt_cv_c_wint_t = yes; then
  11266. cat >>confdefs.h <<\_ACEOF
  11267. #define HAVE_WINT_T 1
  11268. _ACEOF
  11269. fi
  11270. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  11271. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  11272. if test "${gt_cv_c_intmax_t+set}" = set; then
  11273. echo $ECHO_N "(cached) $ECHO_C" >&6
  11274. else
  11275. cat >conftest.$ac_ext <<_ACEOF
  11276. /* confdefs.h. */
  11277. _ACEOF
  11278. cat confdefs.h >>conftest.$ac_ext
  11279. cat >>conftest.$ac_ext <<_ACEOF
  11280. /* end confdefs.h. */
  11281. #include <stddef.h>
  11282. #include <stdlib.h>
  11283. #if HAVE_STDINT_H_WITH_UINTMAX
  11284. #include <stdint.h>
  11285. #endif
  11286. #if HAVE_INTTYPES_H_WITH_UINTMAX
  11287. #include <inttypes.h>
  11288. #endif
  11289. int
  11290. main ()
  11291. {
  11292. intmax_t x = -1;
  11293. return !x;
  11294. ;
  11295. return 0;
  11296. }
  11297. _ACEOF
  11298. rm -f conftest.$ac_objext
  11299. if { (ac_try="$ac_compile"
  11300. case "(($ac_try" in
  11301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11302. *) ac_try_echo=$ac_try;;
  11303. esac
  11304. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11305. (eval "$ac_compile") 2>conftest.er1
  11306. ac_status=$?
  11307. grep -v '^ *+' conftest.er1 >conftest.err
  11308. rm -f conftest.er1
  11309. cat conftest.err >&5
  11310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11311. (exit $ac_status); } && {
  11312. test -z "$ac_cxx_werror_flag" ||
  11313. test ! -s conftest.err
  11314. } && test -s conftest.$ac_objext; then
  11315. gt_cv_c_intmax_t=yes
  11316. else
  11317. echo "$as_me: failed program was:" >&5
  11318. sed 's/^/| /' conftest.$ac_ext >&5
  11319. gt_cv_c_intmax_t=no
  11320. fi
  11321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11322. fi
  11323. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  11324. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  11325. if test $gt_cv_c_intmax_t = yes; then
  11326. cat >>confdefs.h <<\_ACEOF
  11327. #define HAVE_INTMAX_T 1
  11328. _ACEOF
  11329. fi
  11330. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  11331. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  11332. if test "${gt_cv_func_printf_posix+set}" = set; then
  11333. echo $ECHO_N "(cached) $ECHO_C" >&6
  11334. else
  11335. if test "$cross_compiling" = yes; then
  11336. cat >conftest.$ac_ext <<_ACEOF
  11337. /* confdefs.h. */
  11338. _ACEOF
  11339. cat confdefs.h >>conftest.$ac_ext
  11340. cat >>conftest.$ac_ext <<_ACEOF
  11341. /* end confdefs.h. */
  11342. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  11343. notposix
  11344. #endif
  11345. _ACEOF
  11346. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11347. $EGREP "notposix" >/dev/null 2>&1; then
  11348. gt_cv_func_printf_posix="guessing no"
  11349. else
  11350. gt_cv_func_printf_posix="guessing yes"
  11351. fi
  11352. rm -f conftest*
  11353. else
  11354. cat >conftest.$ac_ext <<_ACEOF
  11355. /* confdefs.h. */
  11356. _ACEOF
  11357. cat confdefs.h >>conftest.$ac_ext
  11358. cat >>conftest.$ac_ext <<_ACEOF
  11359. /* end confdefs.h. */
  11360. #include <stdio.h>
  11361. #include <string.h>
  11362. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  11363. dollar expansion (possibly an autoconf bug). */
  11364. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  11365. static char buf[100];
  11366. int main ()
  11367. {
  11368. sprintf (buf, format, 33, 55);
  11369. return (strcmp (buf, "55 33") != 0);
  11370. }
  11371. _ACEOF
  11372. rm -f conftest$ac_exeext
  11373. if { (ac_try="$ac_link"
  11374. case "(($ac_try" in
  11375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11376. *) ac_try_echo=$ac_try;;
  11377. esac
  11378. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11379. (eval "$ac_link") 2>&5
  11380. ac_status=$?
  11381. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11382. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11383. { (case "(($ac_try" in
  11384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11385. *) ac_try_echo=$ac_try;;
  11386. esac
  11387. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11388. (eval "$ac_try") 2>&5
  11389. ac_status=$?
  11390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11391. (exit $ac_status); }; }; then
  11392. gt_cv_func_printf_posix=yes
  11393. else
  11394. echo "$as_me: program exited with status $ac_status" >&5
  11395. echo "$as_me: failed program was:" >&5
  11396. sed 's/^/| /' conftest.$ac_ext >&5
  11397. ( exit $ac_status )
  11398. gt_cv_func_printf_posix=no
  11399. fi
  11400. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11401. fi
  11402. fi
  11403. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  11404. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  11405. case $gt_cv_func_printf_posix in
  11406. *yes)
  11407. cat >>confdefs.h <<\_ACEOF
  11408. #define HAVE_POSIX_PRINTF 1
  11409. _ACEOF
  11410. ;;
  11411. esac
  11412. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  11413. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  11414. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  11415. echo $ECHO_N "(cached) $ECHO_C" >&6
  11416. else
  11417. cat >conftest.$ac_ext <<_ACEOF
  11418. /* confdefs.h. */
  11419. _ACEOF
  11420. cat confdefs.h >>conftest.$ac_ext
  11421. cat >>conftest.$ac_ext <<_ACEOF
  11422. /* end confdefs.h. */
  11423. #include <features.h>
  11424. #ifdef __GNU_LIBRARY__
  11425. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  11426. Lucky GNU user
  11427. #endif
  11428. #endif
  11429. _ACEOF
  11430. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11431. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  11432. ac_cv_gnu_library_2_1=yes
  11433. else
  11434. ac_cv_gnu_library_2_1=no
  11435. fi
  11436. rm -f conftest*
  11437. fi
  11438. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  11439. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  11440. GLIBC21="$ac_cv_gnu_library_2_1"
  11441. for ac_header in stdint.h
  11442. do
  11443. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11444. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11445. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11446. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11447. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11448. echo $ECHO_N "(cached) $ECHO_C" >&6
  11449. fi
  11450. ac_res=`eval echo '${'$as_ac_Header'}'`
  11451. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11452. echo "${ECHO_T}$ac_res" >&6; }
  11453. else
  11454. # Is the header compilable?
  11455. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11456. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  11457. cat >conftest.$ac_ext <<_ACEOF
  11458. /* confdefs.h. */
  11459. _ACEOF
  11460. cat confdefs.h >>conftest.$ac_ext
  11461. cat >>conftest.$ac_ext <<_ACEOF
  11462. /* end confdefs.h. */
  11463. $ac_includes_default
  11464. #include <$ac_header>
  11465. _ACEOF
  11466. rm -f conftest.$ac_objext
  11467. if { (ac_try="$ac_compile"
  11468. case "(($ac_try" in
  11469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11470. *) ac_try_echo=$ac_try;;
  11471. esac
  11472. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11473. (eval "$ac_compile") 2>conftest.er1
  11474. ac_status=$?
  11475. grep -v '^ *+' conftest.er1 >conftest.err
  11476. rm -f conftest.er1
  11477. cat conftest.err >&5
  11478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11479. (exit $ac_status); } && {
  11480. test -z "$ac_cxx_werror_flag" ||
  11481. test ! -s conftest.err
  11482. } && test -s conftest.$ac_objext; then
  11483. ac_header_compiler=yes
  11484. else
  11485. echo "$as_me: failed program was:" >&5
  11486. sed 's/^/| /' conftest.$ac_ext >&5
  11487. ac_header_compiler=no
  11488. fi
  11489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11490. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11491. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11492. # Is the header present?
  11493. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11494. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  11495. cat >conftest.$ac_ext <<_ACEOF
  11496. /* confdefs.h. */
  11497. _ACEOF
  11498. cat confdefs.h >>conftest.$ac_ext
  11499. cat >>conftest.$ac_ext <<_ACEOF
  11500. /* end confdefs.h. */
  11501. #include <$ac_header>
  11502. _ACEOF
  11503. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11504. case "(($ac_try" in
  11505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11506. *) ac_try_echo=$ac_try;;
  11507. esac
  11508. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11509. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11510. ac_status=$?
  11511. grep -v '^ *+' conftest.er1 >conftest.err
  11512. rm -f conftest.er1
  11513. cat conftest.err >&5
  11514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11515. (exit $ac_status); } >/dev/null && {
  11516. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11517. test ! -s conftest.err
  11518. }; then
  11519. ac_header_preproc=yes
  11520. else
  11521. echo "$as_me: failed program was:" >&5
  11522. sed 's/^/| /' conftest.$ac_ext >&5
  11523. ac_header_preproc=no
  11524. fi
  11525. rm -f conftest.err conftest.$ac_ext
  11526. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11527. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11528. # So? What about this header?
  11529. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11530. yes:no: )
  11531. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11532. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11533. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11534. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11535. ac_header_preproc=yes
  11536. ;;
  11537. no:yes:* )
  11538. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11539. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11540. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11541. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11542. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11543. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11544. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11545. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11546. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11547. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11548. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11549. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11550. ( cat <<\_ASBOX
  11551. ## ----------------------------------------------- ##
  11552. ## Report this to t-tujikawa@users.sourceforge.net ##
  11553. ## ----------------------------------------------- ##
  11554. _ASBOX
  11555. ) | sed "s/^/$as_me: WARNING: /" >&2
  11556. ;;
  11557. esac
  11558. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11559. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11560. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11561. echo $ECHO_N "(cached) $ECHO_C" >&6
  11562. else
  11563. eval "$as_ac_Header=\$ac_header_preproc"
  11564. fi
  11565. ac_res=`eval echo '${'$as_ac_Header'}'`
  11566. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11567. echo "${ECHO_T}$ac_res" >&6; }
  11568. fi
  11569. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11570. cat >>confdefs.h <<_ACEOF
  11571. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11572. _ACEOF
  11573. fi
  11574. done
  11575. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  11576. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  11577. if test "${gl_cv_size_max+set}" = set; then
  11578. echo $ECHO_N "(cached) $ECHO_C" >&6
  11579. else
  11580. gl_cv_size_max=
  11581. cat >conftest.$ac_ext <<_ACEOF
  11582. /* confdefs.h. */
  11583. _ACEOF
  11584. cat confdefs.h >>conftest.$ac_ext
  11585. cat >>conftest.$ac_ext <<_ACEOF
  11586. /* end confdefs.h. */
  11587. #include <limits.h>
  11588. #if HAVE_STDINT_H
  11589. #include <stdint.h>
  11590. #endif
  11591. #ifdef SIZE_MAX
  11592. Found it
  11593. #endif
  11594. _ACEOF
  11595. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11596. $EGREP "Found it" >/dev/null 2>&1; then
  11597. gl_cv_size_max=yes
  11598. fi
  11599. rm -f conftest*
  11600. if test -z "$gl_cv_size_max"; then
  11601. if test "$cross_compiling" = yes; then
  11602. # Depending upon the size, compute the lo and hi bounds.
  11603. cat >conftest.$ac_ext <<_ACEOF
  11604. /* confdefs.h. */
  11605. _ACEOF
  11606. cat confdefs.h >>conftest.$ac_ext
  11607. cat >>conftest.$ac_ext <<_ACEOF
  11608. /* end confdefs.h. */
  11609. #include <stddef.h>
  11610. #include <limits.h>
  11611. int
  11612. main ()
  11613. {
  11614. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  11615. test_array [0] = 0
  11616. ;
  11617. return 0;
  11618. }
  11619. _ACEOF
  11620. rm -f conftest.$ac_objext
  11621. if { (ac_try="$ac_compile"
  11622. case "(($ac_try" in
  11623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11624. *) ac_try_echo=$ac_try;;
  11625. esac
  11626. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11627. (eval "$ac_compile") 2>conftest.er1
  11628. ac_status=$?
  11629. grep -v '^ *+' conftest.er1 >conftest.err
  11630. rm -f conftest.er1
  11631. cat conftest.err >&5
  11632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11633. (exit $ac_status); } && {
  11634. test -z "$ac_cxx_werror_flag" ||
  11635. test ! -s conftest.err
  11636. } && test -s conftest.$ac_objext; then
  11637. ac_lo=0 ac_mid=0
  11638. while :; do
  11639. cat >conftest.$ac_ext <<_ACEOF
  11640. /* confdefs.h. */
  11641. _ACEOF
  11642. cat confdefs.h >>conftest.$ac_ext
  11643. cat >>conftest.$ac_ext <<_ACEOF
  11644. /* end confdefs.h. */
  11645. #include <stddef.h>
  11646. #include <limits.h>
  11647. int
  11648. main ()
  11649. {
  11650. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  11651. test_array [0] = 0
  11652. ;
  11653. return 0;
  11654. }
  11655. _ACEOF
  11656. rm -f conftest.$ac_objext
  11657. if { (ac_try="$ac_compile"
  11658. case "(($ac_try" in
  11659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11660. *) ac_try_echo=$ac_try;;
  11661. esac
  11662. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11663. (eval "$ac_compile") 2>conftest.er1
  11664. ac_status=$?
  11665. grep -v '^ *+' conftest.er1 >conftest.err
  11666. rm -f conftest.er1
  11667. cat conftest.err >&5
  11668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11669. (exit $ac_status); } && {
  11670. test -z "$ac_cxx_werror_flag" ||
  11671. test ! -s conftest.err
  11672. } && test -s conftest.$ac_objext; then
  11673. ac_hi=$ac_mid; break
  11674. else
  11675. echo "$as_me: failed program was:" >&5
  11676. sed 's/^/| /' conftest.$ac_ext >&5
  11677. ac_lo=`expr $ac_mid + 1`
  11678. if test $ac_lo -le $ac_mid; then
  11679. ac_lo= ac_hi=
  11680. break
  11681. fi
  11682. ac_mid=`expr 2 '*' $ac_mid + 1`
  11683. fi
  11684. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11685. done
  11686. else
  11687. echo "$as_me: failed program was:" >&5
  11688. sed 's/^/| /' conftest.$ac_ext >&5
  11689. cat >conftest.$ac_ext <<_ACEOF
  11690. /* confdefs.h. */
  11691. _ACEOF
  11692. cat confdefs.h >>conftest.$ac_ext
  11693. cat >>conftest.$ac_ext <<_ACEOF
  11694. /* end confdefs.h. */
  11695. #include <stddef.h>
  11696. #include <limits.h>
  11697. int
  11698. main ()
  11699. {
  11700. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  11701. test_array [0] = 0
  11702. ;
  11703. return 0;
  11704. }
  11705. _ACEOF
  11706. rm -f conftest.$ac_objext
  11707. if { (ac_try="$ac_compile"
  11708. case "(($ac_try" in
  11709. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11710. *) ac_try_echo=$ac_try;;
  11711. esac
  11712. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11713. (eval "$ac_compile") 2>conftest.er1
  11714. ac_status=$?
  11715. grep -v '^ *+' conftest.er1 >conftest.err
  11716. rm -f conftest.er1
  11717. cat conftest.err >&5
  11718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11719. (exit $ac_status); } && {
  11720. test -z "$ac_cxx_werror_flag" ||
  11721. test ! -s conftest.err
  11722. } && test -s conftest.$ac_objext; then
  11723. ac_hi=-1 ac_mid=-1
  11724. while :; do
  11725. cat >conftest.$ac_ext <<_ACEOF
  11726. /* confdefs.h. */
  11727. _ACEOF
  11728. cat confdefs.h >>conftest.$ac_ext
  11729. cat >>conftest.$ac_ext <<_ACEOF
  11730. /* end confdefs.h. */
  11731. #include <stddef.h>
  11732. #include <limits.h>
  11733. int
  11734. main ()
  11735. {
  11736. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  11737. test_array [0] = 0
  11738. ;
  11739. return 0;
  11740. }
  11741. _ACEOF
  11742. rm -f conftest.$ac_objext
  11743. if { (ac_try="$ac_compile"
  11744. case "(($ac_try" in
  11745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11746. *) ac_try_echo=$ac_try;;
  11747. esac
  11748. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11749. (eval "$ac_compile") 2>conftest.er1
  11750. ac_status=$?
  11751. grep -v '^ *+' conftest.er1 >conftest.err
  11752. rm -f conftest.er1
  11753. cat conftest.err >&5
  11754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11755. (exit $ac_status); } && {
  11756. test -z "$ac_cxx_werror_flag" ||
  11757. test ! -s conftest.err
  11758. } && test -s conftest.$ac_objext; then
  11759. ac_lo=$ac_mid; break
  11760. else
  11761. echo "$as_me: failed program was:" >&5
  11762. sed 's/^/| /' conftest.$ac_ext >&5
  11763. ac_hi=`expr '(' $ac_mid ')' - 1`
  11764. if test $ac_mid -le $ac_hi; then
  11765. ac_lo= ac_hi=
  11766. break
  11767. fi
  11768. ac_mid=`expr 2 '*' $ac_mid`
  11769. fi
  11770. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11771. done
  11772. else
  11773. echo "$as_me: failed program was:" >&5
  11774. sed 's/^/| /' conftest.$ac_ext >&5
  11775. ac_lo= ac_hi=
  11776. fi
  11777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11778. fi
  11779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11780. # Binary search between lo and hi bounds.
  11781. while test "x$ac_lo" != "x$ac_hi"; do
  11782. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  11783. cat >conftest.$ac_ext <<_ACEOF
  11784. /* confdefs.h. */
  11785. _ACEOF
  11786. cat confdefs.h >>conftest.$ac_ext
  11787. cat >>conftest.$ac_ext <<_ACEOF
  11788. /* end confdefs.h. */
  11789. #include <stddef.h>
  11790. #include <limits.h>
  11791. int
  11792. main ()
  11793. {
  11794. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  11795. test_array [0] = 0
  11796. ;
  11797. return 0;
  11798. }
  11799. _ACEOF
  11800. rm -f conftest.$ac_objext
  11801. if { (ac_try="$ac_compile"
  11802. case "(($ac_try" in
  11803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11804. *) ac_try_echo=$ac_try;;
  11805. esac
  11806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11807. (eval "$ac_compile") 2>conftest.er1
  11808. ac_status=$?
  11809. grep -v '^ *+' conftest.er1 >conftest.err
  11810. rm -f conftest.er1
  11811. cat conftest.err >&5
  11812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11813. (exit $ac_status); } && {
  11814. test -z "$ac_cxx_werror_flag" ||
  11815. test ! -s conftest.err
  11816. } && test -s conftest.$ac_objext; then
  11817. ac_hi=$ac_mid
  11818. else
  11819. echo "$as_me: failed program was:" >&5
  11820. sed 's/^/| /' conftest.$ac_ext >&5
  11821. ac_lo=`expr '(' $ac_mid ')' + 1`
  11822. fi
  11823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11824. done
  11825. case $ac_lo in
  11826. ?*) size_t_bits_minus_1=$ac_lo;;
  11827. '') size_t_bits_minus_1= ;;
  11828. esac
  11829. else
  11830. cat >conftest.$ac_ext <<_ACEOF
  11831. /* confdefs.h. */
  11832. _ACEOF
  11833. cat confdefs.h >>conftest.$ac_ext
  11834. cat >>conftest.$ac_ext <<_ACEOF
  11835. /* end confdefs.h. */
  11836. #include <stddef.h>
  11837. #include <limits.h>
  11838. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  11839. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  11840. #include <stdio.h>
  11841. #include <stdlib.h>
  11842. int
  11843. main ()
  11844. {
  11845. FILE *f = fopen ("conftest.val", "w");
  11846. if (! f)
  11847. return 1;
  11848. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  11849. {
  11850. long int i = longval ();
  11851. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  11852. return 1;
  11853. fprintf (f, "%ld\n", i);
  11854. }
  11855. else
  11856. {
  11857. unsigned long int i = ulongval ();
  11858. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  11859. return 1;
  11860. fprintf (f, "%lu\n", i);
  11861. }
  11862. return ferror (f) || fclose (f) != 0;
  11863. ;
  11864. return 0;
  11865. }
  11866. _ACEOF
  11867. rm -f conftest$ac_exeext
  11868. if { (ac_try="$ac_link"
  11869. case "(($ac_try" in
  11870. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11871. *) ac_try_echo=$ac_try;;
  11872. esac
  11873. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11874. (eval "$ac_link") 2>&5
  11875. ac_status=$?
  11876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11877. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11878. { (case "(($ac_try" in
  11879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11880. *) ac_try_echo=$ac_try;;
  11881. esac
  11882. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11883. (eval "$ac_try") 2>&5
  11884. ac_status=$?
  11885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11886. (exit $ac_status); }; }; then
  11887. size_t_bits_minus_1=`cat conftest.val`
  11888. else
  11889. echo "$as_me: program exited with status $ac_status" >&5
  11890. echo "$as_me: failed program was:" >&5
  11891. sed 's/^/| /' conftest.$ac_ext >&5
  11892. ( exit $ac_status )
  11893. size_t_bits_minus_1=
  11894. fi
  11895. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11896. fi
  11897. rm -f conftest.val
  11898. if test "$cross_compiling" = yes; then
  11899. # Depending upon the size, compute the lo and hi bounds.
  11900. cat >conftest.$ac_ext <<_ACEOF
  11901. /* confdefs.h. */
  11902. _ACEOF
  11903. cat confdefs.h >>conftest.$ac_ext
  11904. cat >>conftest.$ac_ext <<_ACEOF
  11905. /* end confdefs.h. */
  11906. #include <stddef.h>
  11907. int
  11908. main ()
  11909. {
  11910. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  11911. test_array [0] = 0
  11912. ;
  11913. return 0;
  11914. }
  11915. _ACEOF
  11916. rm -f conftest.$ac_objext
  11917. if { (ac_try="$ac_compile"
  11918. case "(($ac_try" in
  11919. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11920. *) ac_try_echo=$ac_try;;
  11921. esac
  11922. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11923. (eval "$ac_compile") 2>conftest.er1
  11924. ac_status=$?
  11925. grep -v '^ *+' conftest.er1 >conftest.err
  11926. rm -f conftest.er1
  11927. cat conftest.err >&5
  11928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11929. (exit $ac_status); } && {
  11930. test -z "$ac_cxx_werror_flag" ||
  11931. test ! -s conftest.err
  11932. } && test -s conftest.$ac_objext; then
  11933. ac_lo=0 ac_mid=0
  11934. while :; do
  11935. cat >conftest.$ac_ext <<_ACEOF
  11936. /* confdefs.h. */
  11937. _ACEOF
  11938. cat confdefs.h >>conftest.$ac_ext
  11939. cat >>conftest.$ac_ext <<_ACEOF
  11940. /* end confdefs.h. */
  11941. #include <stddef.h>
  11942. int
  11943. main ()
  11944. {
  11945. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  11946. test_array [0] = 0
  11947. ;
  11948. return 0;
  11949. }
  11950. _ACEOF
  11951. rm -f conftest.$ac_objext
  11952. if { (ac_try="$ac_compile"
  11953. case "(($ac_try" in
  11954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11955. *) ac_try_echo=$ac_try;;
  11956. esac
  11957. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11958. (eval "$ac_compile") 2>conftest.er1
  11959. ac_status=$?
  11960. grep -v '^ *+' conftest.er1 >conftest.err
  11961. rm -f conftest.er1
  11962. cat conftest.err >&5
  11963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11964. (exit $ac_status); } && {
  11965. test -z "$ac_cxx_werror_flag" ||
  11966. test ! -s conftest.err
  11967. } && test -s conftest.$ac_objext; then
  11968. ac_hi=$ac_mid; break
  11969. else
  11970. echo "$as_me: failed program was:" >&5
  11971. sed 's/^/| /' conftest.$ac_ext >&5
  11972. ac_lo=`expr $ac_mid + 1`
  11973. if test $ac_lo -le $ac_mid; then
  11974. ac_lo= ac_hi=
  11975. break
  11976. fi
  11977. ac_mid=`expr 2 '*' $ac_mid + 1`
  11978. fi
  11979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11980. done
  11981. else
  11982. echo "$as_me: failed program was:" >&5
  11983. sed 's/^/| /' conftest.$ac_ext >&5
  11984. cat >conftest.$ac_ext <<_ACEOF
  11985. /* confdefs.h. */
  11986. _ACEOF
  11987. cat confdefs.h >>conftest.$ac_ext
  11988. cat >>conftest.$ac_ext <<_ACEOF
  11989. /* end confdefs.h. */
  11990. #include <stddef.h>
  11991. int
  11992. main ()
  11993. {
  11994. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  11995. test_array [0] = 0
  11996. ;
  11997. return 0;
  11998. }
  11999. _ACEOF
  12000. rm -f conftest.$ac_objext
  12001. if { (ac_try="$ac_compile"
  12002. case "(($ac_try" in
  12003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12004. *) ac_try_echo=$ac_try;;
  12005. esac
  12006. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12007. (eval "$ac_compile") 2>conftest.er1
  12008. ac_status=$?
  12009. grep -v '^ *+' conftest.er1 >conftest.err
  12010. rm -f conftest.er1
  12011. cat conftest.err >&5
  12012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12013. (exit $ac_status); } && {
  12014. test -z "$ac_cxx_werror_flag" ||
  12015. test ! -s conftest.err
  12016. } && test -s conftest.$ac_objext; then
  12017. ac_hi=-1 ac_mid=-1
  12018. while :; do
  12019. cat >conftest.$ac_ext <<_ACEOF
  12020. /* confdefs.h. */
  12021. _ACEOF
  12022. cat confdefs.h >>conftest.$ac_ext
  12023. cat >>conftest.$ac_ext <<_ACEOF
  12024. /* end confdefs.h. */
  12025. #include <stddef.h>
  12026. int
  12027. main ()
  12028. {
  12029. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  12030. test_array [0] = 0
  12031. ;
  12032. return 0;
  12033. }
  12034. _ACEOF
  12035. rm -f conftest.$ac_objext
  12036. if { (ac_try="$ac_compile"
  12037. case "(($ac_try" in
  12038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12039. *) ac_try_echo=$ac_try;;
  12040. esac
  12041. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12042. (eval "$ac_compile") 2>conftest.er1
  12043. ac_status=$?
  12044. grep -v '^ *+' conftest.er1 >conftest.err
  12045. rm -f conftest.er1
  12046. cat conftest.err >&5
  12047. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12048. (exit $ac_status); } && {
  12049. test -z "$ac_cxx_werror_flag" ||
  12050. test ! -s conftest.err
  12051. } && test -s conftest.$ac_objext; then
  12052. ac_lo=$ac_mid; break
  12053. else
  12054. echo "$as_me: failed program was:" >&5
  12055. sed 's/^/| /' conftest.$ac_ext >&5
  12056. ac_hi=`expr '(' $ac_mid ')' - 1`
  12057. if test $ac_mid -le $ac_hi; then
  12058. ac_lo= ac_hi=
  12059. break
  12060. fi
  12061. ac_mid=`expr 2 '*' $ac_mid`
  12062. fi
  12063. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12064. done
  12065. else
  12066. echo "$as_me: failed program was:" >&5
  12067. sed 's/^/| /' conftest.$ac_ext >&5
  12068. ac_lo= ac_hi=
  12069. fi
  12070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12071. fi
  12072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12073. # Binary search between lo and hi bounds.
  12074. while test "x$ac_lo" != "x$ac_hi"; do
  12075. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  12076. cat >conftest.$ac_ext <<_ACEOF
  12077. /* confdefs.h. */
  12078. _ACEOF
  12079. cat confdefs.h >>conftest.$ac_ext
  12080. cat >>conftest.$ac_ext <<_ACEOF
  12081. /* end confdefs.h. */
  12082. #include <stddef.h>
  12083. int
  12084. main ()
  12085. {
  12086. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  12087. test_array [0] = 0
  12088. ;
  12089. return 0;
  12090. }
  12091. _ACEOF
  12092. rm -f conftest.$ac_objext
  12093. if { (ac_try="$ac_compile"
  12094. case "(($ac_try" in
  12095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12096. *) ac_try_echo=$ac_try;;
  12097. esac
  12098. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12099. (eval "$ac_compile") 2>conftest.er1
  12100. ac_status=$?
  12101. grep -v '^ *+' conftest.er1 >conftest.err
  12102. rm -f conftest.er1
  12103. cat conftest.err >&5
  12104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12105. (exit $ac_status); } && {
  12106. test -z "$ac_cxx_werror_flag" ||
  12107. test ! -s conftest.err
  12108. } && test -s conftest.$ac_objext; then
  12109. ac_hi=$ac_mid
  12110. else
  12111. echo "$as_me: failed program was:" >&5
  12112. sed 's/^/| /' conftest.$ac_ext >&5
  12113. ac_lo=`expr '(' $ac_mid ')' + 1`
  12114. fi
  12115. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12116. done
  12117. case $ac_lo in
  12118. ?*) fits_in_uint=$ac_lo;;
  12119. '') fits_in_uint= ;;
  12120. esac
  12121. else
  12122. cat >conftest.$ac_ext <<_ACEOF
  12123. /* confdefs.h. */
  12124. _ACEOF
  12125. cat confdefs.h >>conftest.$ac_ext
  12126. cat >>conftest.$ac_ext <<_ACEOF
  12127. /* end confdefs.h. */
  12128. #include <stddef.h>
  12129. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  12130. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  12131. #include <stdio.h>
  12132. #include <stdlib.h>
  12133. int
  12134. main ()
  12135. {
  12136. FILE *f = fopen ("conftest.val", "w");
  12137. if (! f)
  12138. return 1;
  12139. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  12140. {
  12141. long int i = longval ();
  12142. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  12143. return 1;
  12144. fprintf (f, "%ld\n", i);
  12145. }
  12146. else
  12147. {
  12148. unsigned long int i = ulongval ();
  12149. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  12150. return 1;
  12151. fprintf (f, "%lu\n", i);
  12152. }
  12153. return ferror (f) || fclose (f) != 0;
  12154. ;
  12155. return 0;
  12156. }
  12157. _ACEOF
  12158. rm -f conftest$ac_exeext
  12159. if { (ac_try="$ac_link"
  12160. case "(($ac_try" in
  12161. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12162. *) ac_try_echo=$ac_try;;
  12163. esac
  12164. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12165. (eval "$ac_link") 2>&5
  12166. ac_status=$?
  12167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12168. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12169. { (case "(($ac_try" in
  12170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12171. *) ac_try_echo=$ac_try;;
  12172. esac
  12173. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12174. (eval "$ac_try") 2>&5
  12175. ac_status=$?
  12176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12177. (exit $ac_status); }; }; then
  12178. fits_in_uint=`cat conftest.val`
  12179. else
  12180. echo "$as_me: program exited with status $ac_status" >&5
  12181. echo "$as_me: failed program was:" >&5
  12182. sed 's/^/| /' conftest.$ac_ext >&5
  12183. ( exit $ac_status )
  12184. fits_in_uint=
  12185. fi
  12186. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12187. fi
  12188. rm -f conftest.val
  12189. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  12190. if test $fits_in_uint = 1; then
  12191. cat >conftest.$ac_ext <<_ACEOF
  12192. /* confdefs.h. */
  12193. _ACEOF
  12194. cat confdefs.h >>conftest.$ac_ext
  12195. cat >>conftest.$ac_ext <<_ACEOF
  12196. /* end confdefs.h. */
  12197. #include <stddef.h>
  12198. extern size_t foo;
  12199. extern unsigned long foo;
  12200. int
  12201. main ()
  12202. {
  12203. ;
  12204. return 0;
  12205. }
  12206. _ACEOF
  12207. rm -f conftest.$ac_objext
  12208. if { (ac_try="$ac_compile"
  12209. case "(($ac_try" in
  12210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12211. *) ac_try_echo=$ac_try;;
  12212. esac
  12213. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12214. (eval "$ac_compile") 2>conftest.er1
  12215. ac_status=$?
  12216. grep -v '^ *+' conftest.er1 >conftest.err
  12217. rm -f conftest.er1
  12218. cat conftest.err >&5
  12219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12220. (exit $ac_status); } && {
  12221. test -z "$ac_cxx_werror_flag" ||
  12222. test ! -s conftest.err
  12223. } && test -s conftest.$ac_objext; then
  12224. fits_in_uint=0
  12225. else
  12226. echo "$as_me: failed program was:" >&5
  12227. sed 's/^/| /' conftest.$ac_ext >&5
  12228. fi
  12229. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12230. fi
  12231. if test $fits_in_uint = 1; then
  12232. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  12233. else
  12234. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  12235. fi
  12236. else
  12237. gl_cv_size_max='((size_t)~(size_t)0)'
  12238. fi
  12239. fi
  12240. fi
  12241. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  12242. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  12243. if test "$gl_cv_size_max" != yes; then
  12244. cat >>confdefs.h <<_ACEOF
  12245. #define SIZE_MAX $gl_cv_size_max
  12246. _ACEOF
  12247. fi
  12248. for ac_header in stdint.h
  12249. do
  12250. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12251. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12252. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12253. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12254. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12255. echo $ECHO_N "(cached) $ECHO_C" >&6
  12256. fi
  12257. ac_res=`eval echo '${'$as_ac_Header'}'`
  12258. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12259. echo "${ECHO_T}$ac_res" >&6; }
  12260. else
  12261. # Is the header compilable?
  12262. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12263. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12264. cat >conftest.$ac_ext <<_ACEOF
  12265. /* confdefs.h. */
  12266. _ACEOF
  12267. cat confdefs.h >>conftest.$ac_ext
  12268. cat >>conftest.$ac_ext <<_ACEOF
  12269. /* end confdefs.h. */
  12270. $ac_includes_default
  12271. #include <$ac_header>
  12272. _ACEOF
  12273. rm -f conftest.$ac_objext
  12274. if { (ac_try="$ac_compile"
  12275. case "(($ac_try" in
  12276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12277. *) ac_try_echo=$ac_try;;
  12278. esac
  12279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12280. (eval "$ac_compile") 2>conftest.er1
  12281. ac_status=$?
  12282. grep -v '^ *+' conftest.er1 >conftest.err
  12283. rm -f conftest.er1
  12284. cat conftest.err >&5
  12285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12286. (exit $ac_status); } && {
  12287. test -z "$ac_cxx_werror_flag" ||
  12288. test ! -s conftest.err
  12289. } && test -s conftest.$ac_objext; then
  12290. ac_header_compiler=yes
  12291. else
  12292. echo "$as_me: failed program was:" >&5
  12293. sed 's/^/| /' conftest.$ac_ext >&5
  12294. ac_header_compiler=no
  12295. fi
  12296. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12297. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12298. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12299. # Is the header present?
  12300. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12301. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12302. cat >conftest.$ac_ext <<_ACEOF
  12303. /* confdefs.h. */
  12304. _ACEOF
  12305. cat confdefs.h >>conftest.$ac_ext
  12306. cat >>conftest.$ac_ext <<_ACEOF
  12307. /* end confdefs.h. */
  12308. #include <$ac_header>
  12309. _ACEOF
  12310. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12311. case "(($ac_try" in
  12312. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12313. *) ac_try_echo=$ac_try;;
  12314. esac
  12315. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12316. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12317. ac_status=$?
  12318. grep -v '^ *+' conftest.er1 >conftest.err
  12319. rm -f conftest.er1
  12320. cat conftest.err >&5
  12321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12322. (exit $ac_status); } >/dev/null && {
  12323. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12324. test ! -s conftest.err
  12325. }; then
  12326. ac_header_preproc=yes
  12327. else
  12328. echo "$as_me: failed program was:" >&5
  12329. sed 's/^/| /' conftest.$ac_ext >&5
  12330. ac_header_preproc=no
  12331. fi
  12332. rm -f conftest.err conftest.$ac_ext
  12333. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12334. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12335. # So? What about this header?
  12336. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12337. yes:no: )
  12338. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12339. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12340. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12341. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12342. ac_header_preproc=yes
  12343. ;;
  12344. no:yes:* )
  12345. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12346. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12347. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12348. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12349. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12350. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12351. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12352. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12353. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12354. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12355. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12356. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12357. ( cat <<\_ASBOX
  12358. ## ----------------------------------------------- ##
  12359. ## Report this to t-tujikawa@users.sourceforge.net ##
  12360. ## ----------------------------------------------- ##
  12361. _ASBOX
  12362. ) | sed "s/^/$as_me: WARNING: /" >&2
  12363. ;;
  12364. esac
  12365. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12366. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12367. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12368. echo $ECHO_N "(cached) $ECHO_C" >&6
  12369. else
  12370. eval "$as_ac_Header=\$ac_header_preproc"
  12371. fi
  12372. ac_res=`eval echo '${'$as_ac_Header'}'`
  12373. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12374. echo "${ECHO_T}$ac_res" >&6; }
  12375. fi
  12376. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12377. cat >>confdefs.h <<_ACEOF
  12378. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12379. _ACEOF
  12380. fi
  12381. done
  12382. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  12383. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  12384. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  12385. echo $ECHO_N "(cached) $ECHO_C" >&6
  12386. else
  12387. gt_save_LIBS="$LIBS"
  12388. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  12389. cat >conftest.$ac_ext <<_ACEOF
  12390. /* confdefs.h. */
  12391. _ACEOF
  12392. cat confdefs.h >>conftest.$ac_ext
  12393. cat >>conftest.$ac_ext <<_ACEOF
  12394. /* end confdefs.h. */
  12395. #include <CoreFoundation/CFPreferences.h>
  12396. int
  12397. main ()
  12398. {
  12399. CFPreferencesCopyAppValue(NULL, NULL)
  12400. ;
  12401. return 0;
  12402. }
  12403. _ACEOF
  12404. rm -f conftest.$ac_objext conftest$ac_exeext
  12405. if { (ac_try="$ac_link"
  12406. case "(($ac_try" in
  12407. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12408. *) ac_try_echo=$ac_try;;
  12409. esac
  12410. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12411. (eval "$ac_link") 2>conftest.er1
  12412. ac_status=$?
  12413. grep -v '^ *+' conftest.er1 >conftest.err
  12414. rm -f conftest.er1
  12415. cat conftest.err >&5
  12416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12417. (exit $ac_status); } && {
  12418. test -z "$ac_cxx_werror_flag" ||
  12419. test ! -s conftest.err
  12420. } && test -s conftest$ac_exeext &&
  12421. $as_test_x conftest$ac_exeext; then
  12422. gt_cv_func_CFPreferencesCopyAppValue=yes
  12423. else
  12424. echo "$as_me: failed program was:" >&5
  12425. sed 's/^/| /' conftest.$ac_ext >&5
  12426. gt_cv_func_CFPreferencesCopyAppValue=no
  12427. fi
  12428. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12429. conftest$ac_exeext conftest.$ac_ext
  12430. LIBS="$gt_save_LIBS"
  12431. fi
  12432. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  12433. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  12434. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  12435. cat >>confdefs.h <<\_ACEOF
  12436. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  12437. _ACEOF
  12438. fi
  12439. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  12440. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  12441. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  12442. echo $ECHO_N "(cached) $ECHO_C" >&6
  12443. else
  12444. gt_save_LIBS="$LIBS"
  12445. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  12446. cat >conftest.$ac_ext <<_ACEOF
  12447. /* confdefs.h. */
  12448. _ACEOF
  12449. cat confdefs.h >>conftest.$ac_ext
  12450. cat >>conftest.$ac_ext <<_ACEOF
  12451. /* end confdefs.h. */
  12452. #include <CoreFoundation/CFLocale.h>
  12453. int
  12454. main ()
  12455. {
  12456. CFLocaleCopyCurrent();
  12457. ;
  12458. return 0;
  12459. }
  12460. _ACEOF
  12461. rm -f conftest.$ac_objext conftest$ac_exeext
  12462. if { (ac_try="$ac_link"
  12463. case "(($ac_try" in
  12464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12465. *) ac_try_echo=$ac_try;;
  12466. esac
  12467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12468. (eval "$ac_link") 2>conftest.er1
  12469. ac_status=$?
  12470. grep -v '^ *+' conftest.er1 >conftest.err
  12471. rm -f conftest.er1
  12472. cat conftest.err >&5
  12473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12474. (exit $ac_status); } && {
  12475. test -z "$ac_cxx_werror_flag" ||
  12476. test ! -s conftest.err
  12477. } && test -s conftest$ac_exeext &&
  12478. $as_test_x conftest$ac_exeext; then
  12479. gt_cv_func_CFLocaleCopyCurrent=yes
  12480. else
  12481. echo "$as_me: failed program was:" >&5
  12482. sed 's/^/| /' conftest.$ac_ext >&5
  12483. gt_cv_func_CFLocaleCopyCurrent=no
  12484. fi
  12485. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12486. conftest$ac_exeext conftest.$ac_ext
  12487. LIBS="$gt_save_LIBS"
  12488. fi
  12489. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  12490. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  12491. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  12492. cat >>confdefs.h <<\_ACEOF
  12493. #define HAVE_CFLOCALECOPYCURRENT 1
  12494. _ACEOF
  12495. fi
  12496. INTL_MACOSX_LIBS=
  12497. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  12498. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  12499. fi
  12500. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  12501. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  12502. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  12503. echo $ECHO_N "(cached) $ECHO_C" >&6
  12504. else
  12505. cat >conftest.$ac_ext <<_ACEOF
  12506. /* confdefs.h. */
  12507. _ACEOF
  12508. cat confdefs.h >>conftest.$ac_ext
  12509. cat >>conftest.$ac_ext <<_ACEOF
  12510. /* end confdefs.h. */
  12511. $ac_includes_default
  12512. typedef ptrdiff_t ac__type_new_;
  12513. int
  12514. main ()
  12515. {
  12516. if ((ac__type_new_ *) 0)
  12517. return 0;
  12518. if (sizeof (ac__type_new_))
  12519. return 0;
  12520. ;
  12521. return 0;
  12522. }
  12523. _ACEOF
  12524. rm -f conftest.$ac_objext
  12525. if { (ac_try="$ac_compile"
  12526. case "(($ac_try" in
  12527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12528. *) ac_try_echo=$ac_try;;
  12529. esac
  12530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12531. (eval "$ac_compile") 2>conftest.er1
  12532. ac_status=$?
  12533. grep -v '^ *+' conftest.er1 >conftest.err
  12534. rm -f conftest.er1
  12535. cat conftest.err >&5
  12536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12537. (exit $ac_status); } && {
  12538. test -z "$ac_cxx_werror_flag" ||
  12539. test ! -s conftest.err
  12540. } && test -s conftest.$ac_objext; then
  12541. ac_cv_type_ptrdiff_t=yes
  12542. else
  12543. echo "$as_me: failed program was:" >&5
  12544. sed 's/^/| /' conftest.$ac_ext >&5
  12545. ac_cv_type_ptrdiff_t=no
  12546. fi
  12547. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12548. fi
  12549. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  12550. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  12551. if test $ac_cv_type_ptrdiff_t = yes; then
  12552. :
  12553. else
  12554. cat >>confdefs.h <<\_ACEOF
  12555. #define ptrdiff_t long
  12556. _ACEOF
  12557. fi
  12558. for ac_header in stddef.h stdlib.h string.h
  12559. do
  12560. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12561. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12562. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12563. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12564. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12565. echo $ECHO_N "(cached) $ECHO_C" >&6
  12566. fi
  12567. ac_res=`eval echo '${'$as_ac_Header'}'`
  12568. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12569. echo "${ECHO_T}$ac_res" >&6; }
  12570. else
  12571. # Is the header compilable?
  12572. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12573. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12574. cat >conftest.$ac_ext <<_ACEOF
  12575. /* confdefs.h. */
  12576. _ACEOF
  12577. cat confdefs.h >>conftest.$ac_ext
  12578. cat >>conftest.$ac_ext <<_ACEOF
  12579. /* end confdefs.h. */
  12580. $ac_includes_default
  12581. #include <$ac_header>
  12582. _ACEOF
  12583. rm -f conftest.$ac_objext
  12584. if { (ac_try="$ac_compile"
  12585. case "(($ac_try" in
  12586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12587. *) ac_try_echo=$ac_try;;
  12588. esac
  12589. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12590. (eval "$ac_compile") 2>conftest.er1
  12591. ac_status=$?
  12592. grep -v '^ *+' conftest.er1 >conftest.err
  12593. rm -f conftest.er1
  12594. cat conftest.err >&5
  12595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12596. (exit $ac_status); } && {
  12597. test -z "$ac_cxx_werror_flag" ||
  12598. test ! -s conftest.err
  12599. } && test -s conftest.$ac_objext; then
  12600. ac_header_compiler=yes
  12601. else
  12602. echo "$as_me: failed program was:" >&5
  12603. sed 's/^/| /' conftest.$ac_ext >&5
  12604. ac_header_compiler=no
  12605. fi
  12606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12607. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12608. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12609. # Is the header present?
  12610. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12611. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12612. cat >conftest.$ac_ext <<_ACEOF
  12613. /* confdefs.h. */
  12614. _ACEOF
  12615. cat confdefs.h >>conftest.$ac_ext
  12616. cat >>conftest.$ac_ext <<_ACEOF
  12617. /* end confdefs.h. */
  12618. #include <$ac_header>
  12619. _ACEOF
  12620. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12621. case "(($ac_try" in
  12622. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12623. *) ac_try_echo=$ac_try;;
  12624. esac
  12625. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12626. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12627. ac_status=$?
  12628. grep -v '^ *+' conftest.er1 >conftest.err
  12629. rm -f conftest.er1
  12630. cat conftest.err >&5
  12631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12632. (exit $ac_status); } >/dev/null && {
  12633. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12634. test ! -s conftest.err
  12635. }; then
  12636. ac_header_preproc=yes
  12637. else
  12638. echo "$as_me: failed program was:" >&5
  12639. sed 's/^/| /' conftest.$ac_ext >&5
  12640. ac_header_preproc=no
  12641. fi
  12642. rm -f conftest.err conftest.$ac_ext
  12643. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12644. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12645. # So? What about this header?
  12646. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12647. yes:no: )
  12648. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12649. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12650. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12651. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12652. ac_header_preproc=yes
  12653. ;;
  12654. no:yes:* )
  12655. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12656. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12657. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12658. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12659. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12660. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12661. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12662. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12663. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12664. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12665. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12666. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12667. ( cat <<\_ASBOX
  12668. ## ----------------------------------------------- ##
  12669. ## Report this to t-tujikawa@users.sourceforge.net ##
  12670. ## ----------------------------------------------- ##
  12671. _ASBOX
  12672. ) | sed "s/^/$as_me: WARNING: /" >&2
  12673. ;;
  12674. esac
  12675. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12676. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12677. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12678. echo $ECHO_N "(cached) $ECHO_C" >&6
  12679. else
  12680. eval "$as_ac_Header=\$ac_header_preproc"
  12681. fi
  12682. ac_res=`eval echo '${'$as_ac_Header'}'`
  12683. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12684. echo "${ECHO_T}$ac_res" >&6; }
  12685. fi
  12686. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12687. cat >>confdefs.h <<_ACEOF
  12688. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12689. _ACEOF
  12690. fi
  12691. done
  12692. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  12693. do
  12694. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12695. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12696. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12697. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12698. echo $ECHO_N "(cached) $ECHO_C" >&6
  12699. else
  12700. cat >conftest.$ac_ext <<_ACEOF
  12701. /* confdefs.h. */
  12702. _ACEOF
  12703. cat confdefs.h >>conftest.$ac_ext
  12704. cat >>conftest.$ac_ext <<_ACEOF
  12705. /* end confdefs.h. */
  12706. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12707. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12708. #define $ac_func innocuous_$ac_func
  12709. /* System header to define __stub macros and hopefully few prototypes,
  12710. which can conflict with char $ac_func (); below.
  12711. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12712. <limits.h> exists even on freestanding compilers. */
  12713. #ifdef __STDC__
  12714. # include <limits.h>
  12715. #else
  12716. # include <assert.h>
  12717. #endif
  12718. #undef $ac_func
  12719. /* Override any GCC internal prototype to avoid an error.
  12720. Use char because int might match the return type of a GCC
  12721. builtin and then its argument prototype would still apply. */
  12722. #ifdef __cplusplus
  12723. extern "C"
  12724. #endif
  12725. char $ac_func ();
  12726. /* The GNU C library defines this for functions which it implements
  12727. to always fail with ENOSYS. Some functions are actually named
  12728. something starting with __ and the normal name is an alias. */
  12729. #if defined __stub_$ac_func || defined __stub___$ac_func
  12730. choke me
  12731. #endif
  12732. int
  12733. main ()
  12734. {
  12735. return $ac_func ();
  12736. ;
  12737. return 0;
  12738. }
  12739. _ACEOF
  12740. rm -f conftest.$ac_objext conftest$ac_exeext
  12741. if { (ac_try="$ac_link"
  12742. case "(($ac_try" in
  12743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12744. *) ac_try_echo=$ac_try;;
  12745. esac
  12746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12747. (eval "$ac_link") 2>conftest.er1
  12748. ac_status=$?
  12749. grep -v '^ *+' conftest.er1 >conftest.err
  12750. rm -f conftest.er1
  12751. cat conftest.err >&5
  12752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12753. (exit $ac_status); } && {
  12754. test -z "$ac_cxx_werror_flag" ||
  12755. test ! -s conftest.err
  12756. } && test -s conftest$ac_exeext &&
  12757. $as_test_x conftest$ac_exeext; then
  12758. eval "$as_ac_var=yes"
  12759. else
  12760. echo "$as_me: failed program was:" >&5
  12761. sed 's/^/| /' conftest.$ac_ext >&5
  12762. eval "$as_ac_var=no"
  12763. fi
  12764. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12765. conftest$ac_exeext conftest.$ac_ext
  12766. fi
  12767. ac_res=`eval echo '${'$as_ac_var'}'`
  12768. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12769. echo "${ECHO_T}$ac_res" >&6; }
  12770. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12771. cat >>confdefs.h <<_ACEOF
  12772. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12773. _ACEOF
  12774. fi
  12775. done
  12776. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  12777. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  12778. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  12779. echo $ECHO_N "(cached) $ECHO_C" >&6
  12780. else
  12781. cat >conftest.$ac_ext <<_ACEOF
  12782. /* confdefs.h. */
  12783. _ACEOF
  12784. cat confdefs.h >>conftest.$ac_ext
  12785. cat >>conftest.$ac_ext <<_ACEOF
  12786. /* end confdefs.h. */
  12787. #include <stdio.h>
  12788. int
  12789. main ()
  12790. {
  12791. #ifndef _snprintf
  12792. char *p = (char *) _snprintf;
  12793. #endif
  12794. ;
  12795. return 0;
  12796. }
  12797. _ACEOF
  12798. rm -f conftest.$ac_objext
  12799. if { (ac_try="$ac_compile"
  12800. case "(($ac_try" in
  12801. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12802. *) ac_try_echo=$ac_try;;
  12803. esac
  12804. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12805. (eval "$ac_compile") 2>conftest.er1
  12806. ac_status=$?
  12807. grep -v '^ *+' conftest.er1 >conftest.err
  12808. rm -f conftest.er1
  12809. cat conftest.err >&5
  12810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12811. (exit $ac_status); } && {
  12812. test -z "$ac_cxx_werror_flag" ||
  12813. test ! -s conftest.err
  12814. } && test -s conftest.$ac_objext; then
  12815. ac_cv_have_decl__snprintf=yes
  12816. else
  12817. echo "$as_me: failed program was:" >&5
  12818. sed 's/^/| /' conftest.$ac_ext >&5
  12819. ac_cv_have_decl__snprintf=no
  12820. fi
  12821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12822. fi
  12823. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  12824. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  12825. if test $ac_cv_have_decl__snprintf = yes; then
  12826. gt_value=1
  12827. else
  12828. gt_value=0
  12829. fi
  12830. cat >>confdefs.h <<_ACEOF
  12831. #define HAVE_DECL__SNPRINTF $gt_value
  12832. _ACEOF
  12833. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  12834. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  12835. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  12836. echo $ECHO_N "(cached) $ECHO_C" >&6
  12837. else
  12838. cat >conftest.$ac_ext <<_ACEOF
  12839. /* confdefs.h. */
  12840. _ACEOF
  12841. cat confdefs.h >>conftest.$ac_ext
  12842. cat >>conftest.$ac_ext <<_ACEOF
  12843. /* end confdefs.h. */
  12844. #include <stdio.h>
  12845. int
  12846. main ()
  12847. {
  12848. #ifndef _snwprintf
  12849. char *p = (char *) _snwprintf;
  12850. #endif
  12851. ;
  12852. return 0;
  12853. }
  12854. _ACEOF
  12855. rm -f conftest.$ac_objext
  12856. if { (ac_try="$ac_compile"
  12857. case "(($ac_try" in
  12858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12859. *) ac_try_echo=$ac_try;;
  12860. esac
  12861. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12862. (eval "$ac_compile") 2>conftest.er1
  12863. ac_status=$?
  12864. grep -v '^ *+' conftest.er1 >conftest.err
  12865. rm -f conftest.er1
  12866. cat conftest.err >&5
  12867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12868. (exit $ac_status); } && {
  12869. test -z "$ac_cxx_werror_flag" ||
  12870. test ! -s conftest.err
  12871. } && test -s conftest.$ac_objext; then
  12872. ac_cv_have_decl__snwprintf=yes
  12873. else
  12874. echo "$as_me: failed program was:" >&5
  12875. sed 's/^/| /' conftest.$ac_ext >&5
  12876. ac_cv_have_decl__snwprintf=no
  12877. fi
  12878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12879. fi
  12880. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  12881. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  12882. if test $ac_cv_have_decl__snwprintf = yes; then
  12883. gt_value=1
  12884. else
  12885. gt_value=0
  12886. fi
  12887. cat >>confdefs.h <<_ACEOF
  12888. #define HAVE_DECL__SNWPRINTF $gt_value
  12889. _ACEOF
  12890. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  12891. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  12892. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  12893. echo $ECHO_N "(cached) $ECHO_C" >&6
  12894. else
  12895. cat >conftest.$ac_ext <<_ACEOF
  12896. /* confdefs.h. */
  12897. _ACEOF
  12898. cat confdefs.h >>conftest.$ac_ext
  12899. cat >>conftest.$ac_ext <<_ACEOF
  12900. /* end confdefs.h. */
  12901. #include <stdio.h>
  12902. int
  12903. main ()
  12904. {
  12905. #ifndef getc_unlocked
  12906. char *p = (char *) getc_unlocked;
  12907. #endif
  12908. ;
  12909. return 0;
  12910. }
  12911. _ACEOF
  12912. rm -f conftest.$ac_objext
  12913. if { (ac_try="$ac_compile"
  12914. case "(($ac_try" in
  12915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12916. *) ac_try_echo=$ac_try;;
  12917. esac
  12918. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12919. (eval "$ac_compile") 2>conftest.er1
  12920. ac_status=$?
  12921. grep -v '^ *+' conftest.er1 >conftest.err
  12922. rm -f conftest.er1
  12923. cat conftest.err >&5
  12924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12925. (exit $ac_status); } && {
  12926. test -z "$ac_cxx_werror_flag" ||
  12927. test ! -s conftest.err
  12928. } && test -s conftest.$ac_objext; then
  12929. ac_cv_have_decl_getc_unlocked=yes
  12930. else
  12931. echo "$as_me: failed program was:" >&5
  12932. sed 's/^/| /' conftest.$ac_ext >&5
  12933. ac_cv_have_decl_getc_unlocked=no
  12934. fi
  12935. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12936. fi
  12937. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  12938. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  12939. if test $ac_cv_have_decl_getc_unlocked = yes; then
  12940. gt_value=1
  12941. else
  12942. gt_value=0
  12943. fi
  12944. cat >>confdefs.h <<_ACEOF
  12945. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  12946. _ACEOF
  12947. case $gt_cv_func_printf_posix in
  12948. *yes) HAVE_POSIX_PRINTF=1 ;;
  12949. *) HAVE_POSIX_PRINTF=0 ;;
  12950. esac
  12951. if test "$ac_cv_func_asprintf" = yes; then
  12952. HAVE_ASPRINTF=1
  12953. else
  12954. HAVE_ASPRINTF=0
  12955. fi
  12956. if test "$ac_cv_func_snprintf" = yes; then
  12957. HAVE_SNPRINTF=1
  12958. else
  12959. HAVE_SNPRINTF=0
  12960. fi
  12961. if test "$ac_cv_func_wprintf" = yes; then
  12962. HAVE_WPRINTF=1
  12963. else
  12964. HAVE_WPRINTF=0
  12965. fi
  12966. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  12967. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  12968. if test "${am_cv_langinfo_codeset+set}" = set; then
  12969. echo $ECHO_N "(cached) $ECHO_C" >&6
  12970. else
  12971. cat >conftest.$ac_ext <<_ACEOF
  12972. /* confdefs.h. */
  12973. _ACEOF
  12974. cat confdefs.h >>conftest.$ac_ext
  12975. cat >>conftest.$ac_ext <<_ACEOF
  12976. /* end confdefs.h. */
  12977. #include <langinfo.h>
  12978. int
  12979. main ()
  12980. {
  12981. char* cs = nl_langinfo(CODESET); return !cs;
  12982. ;
  12983. return 0;
  12984. }
  12985. _ACEOF
  12986. rm -f conftest.$ac_objext conftest$ac_exeext
  12987. if { (ac_try="$ac_link"
  12988. case "(($ac_try" in
  12989. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12990. *) ac_try_echo=$ac_try;;
  12991. esac
  12992. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12993. (eval "$ac_link") 2>conftest.er1
  12994. ac_status=$?
  12995. grep -v '^ *+' conftest.er1 >conftest.err
  12996. rm -f conftest.er1
  12997. cat conftest.err >&5
  12998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12999. (exit $ac_status); } && {
  13000. test -z "$ac_cxx_werror_flag" ||
  13001. test ! -s conftest.err
  13002. } && test -s conftest$ac_exeext &&
  13003. $as_test_x conftest$ac_exeext; then
  13004. am_cv_langinfo_codeset=yes
  13005. else
  13006. echo "$as_me: failed program was:" >&5
  13007. sed 's/^/| /' conftest.$ac_ext >&5
  13008. am_cv_langinfo_codeset=no
  13009. fi
  13010. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13011. conftest$ac_exeext conftest.$ac_ext
  13012. fi
  13013. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  13014. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  13015. if test $am_cv_langinfo_codeset = yes; then
  13016. cat >>confdefs.h <<\_ACEOF
  13017. #define HAVE_LANGINFO_CODESET 1
  13018. _ACEOF
  13019. fi
  13020. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  13021. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  13022. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  13023. echo $ECHO_N "(cached) $ECHO_C" >&6
  13024. else
  13025. cat >conftest.$ac_ext <<_ACEOF
  13026. /* confdefs.h. */
  13027. _ACEOF
  13028. cat confdefs.h >>conftest.$ac_ext
  13029. cat >>conftest.$ac_ext <<_ACEOF
  13030. /* end confdefs.h. */
  13031. #include <locale.h>
  13032. int
  13033. main ()
  13034. {
  13035. return LC_MESSAGES
  13036. ;
  13037. return 0;
  13038. }
  13039. _ACEOF
  13040. rm -f conftest.$ac_objext conftest$ac_exeext
  13041. if { (ac_try="$ac_link"
  13042. case "(($ac_try" in
  13043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13044. *) ac_try_echo=$ac_try;;
  13045. esac
  13046. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13047. (eval "$ac_link") 2>conftest.er1
  13048. ac_status=$?
  13049. grep -v '^ *+' conftest.er1 >conftest.err
  13050. rm -f conftest.er1
  13051. cat conftest.err >&5
  13052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13053. (exit $ac_status); } && {
  13054. test -z "$ac_cxx_werror_flag" ||
  13055. test ! -s conftest.err
  13056. } && test -s conftest$ac_exeext &&
  13057. $as_test_x conftest$ac_exeext; then
  13058. gt_cv_val_LC_MESSAGES=yes
  13059. else
  13060. echo "$as_me: failed program was:" >&5
  13061. sed 's/^/| /' conftest.$ac_ext >&5
  13062. gt_cv_val_LC_MESSAGES=no
  13063. fi
  13064. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13065. conftest$ac_exeext conftest.$ac_ext
  13066. fi
  13067. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  13068. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  13069. if test $gt_cv_val_LC_MESSAGES = yes; then
  13070. cat >>confdefs.h <<\_ACEOF
  13071. #define HAVE_LC_MESSAGES 1
  13072. _ACEOF
  13073. fi
  13074. if test "$enable_shared" = yes; then
  13075. case "$host_os" in
  13076. mingw* | cygwin*) is_woe32dll=yes ;;
  13077. *) is_woe32dll=no ;;
  13078. esac
  13079. else
  13080. is_woe32dll=no
  13081. fi
  13082. WOE32DLL=$is_woe32dll
  13083. case "$host_os" in
  13084. mingw* | cygwin*) is_woe32=yes ;;
  13085. *) is_woe32=no ;;
  13086. esac
  13087. WOE32=$is_woe32
  13088. if test $WOE32 = yes; then
  13089. if test -n "$ac_tool_prefix"; then
  13090. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13091. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13092. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13093. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13094. if test "${ac_cv_prog_WINDRES+set}" = set; then
  13095. echo $ECHO_N "(cached) $ECHO_C" >&6
  13096. else
  13097. if test -n "$WINDRES"; then
  13098. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13099. else
  13100. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13101. for as_dir in $PATH
  13102. do
  13103. IFS=$as_save_IFS
  13104. test -z "$as_dir" && as_dir=.
  13105. for ac_exec_ext in '' $ac_executable_extensions; do
  13106. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13107. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13108. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13109. break 2
  13110. fi
  13111. done
  13112. done
  13113. IFS=$as_save_IFS
  13114. fi
  13115. fi
  13116. WINDRES=$ac_cv_prog_WINDRES
  13117. if test -n "$WINDRES"; then
  13118. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  13119. echo "${ECHO_T}$WINDRES" >&6; }
  13120. else
  13121. { echo "$as_me:$LINENO: result: no" >&5
  13122. echo "${ECHO_T}no" >&6; }
  13123. fi
  13124. fi
  13125. if test -z "$ac_cv_prog_WINDRES"; then
  13126. ac_ct_WINDRES=$WINDRES
  13127. # Extract the first word of "windres", so it can be a program name with args.
  13128. set dummy windres; ac_word=$2
  13129. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13130. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13131. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  13132. echo $ECHO_N "(cached) $ECHO_C" >&6
  13133. else
  13134. if test -n "$ac_ct_WINDRES"; then
  13135. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13136. else
  13137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13138. for as_dir in $PATH
  13139. do
  13140. IFS=$as_save_IFS
  13141. test -z "$as_dir" && as_dir=.
  13142. for ac_exec_ext in '' $ac_executable_extensions; do
  13143. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13144. ac_cv_prog_ac_ct_WINDRES="windres"
  13145. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13146. break 2
  13147. fi
  13148. done
  13149. done
  13150. IFS=$as_save_IFS
  13151. fi
  13152. fi
  13153. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13154. if test -n "$ac_ct_WINDRES"; then
  13155. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  13156. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  13157. else
  13158. { echo "$as_me:$LINENO: result: no" >&5
  13159. echo "${ECHO_T}no" >&6; }
  13160. fi
  13161. if test "x$ac_ct_WINDRES" = x; then
  13162. WINDRES=""
  13163. else
  13164. case $cross_compiling:$ac_tool_warned in
  13165. yes:)
  13166. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  13167. whose name does not start with the host triplet. If you think this
  13168. configuration is useful to you, please write to autoconf@gnu.org." >&5
  13169. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  13170. whose name does not start with the host triplet. If you think this
  13171. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  13172. ac_tool_warned=yes ;;
  13173. esac
  13174. WINDRES=$ac_ct_WINDRES
  13175. fi
  13176. else
  13177. WINDRES="$ac_cv_prog_WINDRES"
  13178. fi
  13179. fi
  13180. case "$host_os" in
  13181. hpux*) LTLIBC="" ;;
  13182. *) LTLIBC="-lc" ;;
  13183. esac
  13184. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  13185. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  13186. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  13187. echo $ECHO_N "(cached) $ECHO_C" >&6
  13188. else
  13189. gt_save_LIBS="$LIBS"
  13190. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13191. cat >conftest.$ac_ext <<_ACEOF
  13192. /* confdefs.h. */
  13193. _ACEOF
  13194. cat confdefs.h >>conftest.$ac_ext
  13195. cat >>conftest.$ac_ext <<_ACEOF
  13196. /* end confdefs.h. */
  13197. #include <CoreFoundation/CFPreferences.h>
  13198. int
  13199. main ()
  13200. {
  13201. CFPreferencesCopyAppValue(NULL, NULL)
  13202. ;
  13203. return 0;
  13204. }
  13205. _ACEOF
  13206. rm -f conftest.$ac_objext conftest$ac_exeext
  13207. if { (ac_try="$ac_link"
  13208. case "(($ac_try" in
  13209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13210. *) ac_try_echo=$ac_try;;
  13211. esac
  13212. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13213. (eval "$ac_link") 2>conftest.er1
  13214. ac_status=$?
  13215. grep -v '^ *+' conftest.er1 >conftest.err
  13216. rm -f conftest.er1
  13217. cat conftest.err >&5
  13218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13219. (exit $ac_status); } && {
  13220. test -z "$ac_cxx_werror_flag" ||
  13221. test ! -s conftest.err
  13222. } && test -s conftest$ac_exeext &&
  13223. $as_test_x conftest$ac_exeext; then
  13224. gt_cv_func_CFPreferencesCopyAppValue=yes
  13225. else
  13226. echo "$as_me: failed program was:" >&5
  13227. sed 's/^/| /' conftest.$ac_ext >&5
  13228. gt_cv_func_CFPreferencesCopyAppValue=no
  13229. fi
  13230. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13231. conftest$ac_exeext conftest.$ac_ext
  13232. LIBS="$gt_save_LIBS"
  13233. fi
  13234. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  13235. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  13236. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  13237. cat >>confdefs.h <<\_ACEOF
  13238. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  13239. _ACEOF
  13240. fi
  13241. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  13242. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  13243. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  13244. echo $ECHO_N "(cached) $ECHO_C" >&6
  13245. else
  13246. gt_save_LIBS="$LIBS"
  13247. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13248. cat >conftest.$ac_ext <<_ACEOF
  13249. /* confdefs.h. */
  13250. _ACEOF
  13251. cat confdefs.h >>conftest.$ac_ext
  13252. cat >>conftest.$ac_ext <<_ACEOF
  13253. /* end confdefs.h. */
  13254. #include <CoreFoundation/CFLocale.h>
  13255. int
  13256. main ()
  13257. {
  13258. CFLocaleCopyCurrent();
  13259. ;
  13260. return 0;
  13261. }
  13262. _ACEOF
  13263. rm -f conftest.$ac_objext conftest$ac_exeext
  13264. if { (ac_try="$ac_link"
  13265. case "(($ac_try" in
  13266. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13267. *) ac_try_echo=$ac_try;;
  13268. esac
  13269. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13270. (eval "$ac_link") 2>conftest.er1
  13271. ac_status=$?
  13272. grep -v '^ *+' conftest.er1 >conftest.err
  13273. rm -f conftest.er1
  13274. cat conftest.err >&5
  13275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13276. (exit $ac_status); } && {
  13277. test -z "$ac_cxx_werror_flag" ||
  13278. test ! -s conftest.err
  13279. } && test -s conftest$ac_exeext &&
  13280. $as_test_x conftest$ac_exeext; then
  13281. gt_cv_func_CFLocaleCopyCurrent=yes
  13282. else
  13283. echo "$as_me: failed program was:" >&5
  13284. sed 's/^/| /' conftest.$ac_ext >&5
  13285. gt_cv_func_CFLocaleCopyCurrent=no
  13286. fi
  13287. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13288. conftest$ac_exeext conftest.$ac_ext
  13289. LIBS="$gt_save_LIBS"
  13290. fi
  13291. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  13292. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  13293. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  13294. cat >>confdefs.h <<\_ACEOF
  13295. #define HAVE_CFLOCALECOPYCURRENT 1
  13296. _ACEOF
  13297. fi
  13298. INTL_MACOSX_LIBS=
  13299. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  13300. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  13301. fi
  13302. BUILD_INCLUDED_LIBINTL=no
  13303. USE_INCLUDED_LIBINTL=no
  13304. LIBINTL=
  13305. LTLIBINTL=
  13306. POSUB=
  13307. case " $gt_needs " in
  13308. *" need-formatstring-macros "*) gt_api_version=3 ;;
  13309. *" need-ngettext "*) gt_api_version=2 ;;
  13310. *) gt_api_version=1 ;;
  13311. esac
  13312. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  13313. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  13314. if test "$USE_NLS" = "yes"; then
  13315. gt_use_preinstalled_gnugettext=no
  13316. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  13317. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  13318. # Check whether --with-included-gettext was given.
  13319. if test "${with_included_gettext+set}" = set; then
  13320. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  13321. else
  13322. nls_cv_force_use_gnu_gettext=no
  13323. fi
  13324. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  13325. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  13326. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  13327. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  13328. if test $gt_api_version -ge 3; then
  13329. gt_revision_test_code='
  13330. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  13331. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  13332. #endif
  13333. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  13334. '
  13335. else
  13336. gt_revision_test_code=
  13337. fi
  13338. if test $gt_api_version -ge 2; then
  13339. gt_expression_test_code=' + * ngettext ("", "", 0)'
  13340. else
  13341. gt_expression_test_code=
  13342. fi
  13343. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  13344. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  13345. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  13346. echo $ECHO_N "(cached) $ECHO_C" >&6
  13347. else
  13348. cat >conftest.$ac_ext <<_ACEOF
  13349. /* confdefs.h. */
  13350. _ACEOF
  13351. cat confdefs.h >>conftest.$ac_ext
  13352. cat >>conftest.$ac_ext <<_ACEOF
  13353. /* end confdefs.h. */
  13354. #include <libintl.h>
  13355. $gt_revision_test_code
  13356. extern int _nl_msg_cat_cntr;
  13357. extern int *_nl_domain_bindings;
  13358. int
  13359. main ()
  13360. {
  13361. bindtextdomain ("", "");
  13362. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  13363. ;
  13364. return 0;
  13365. }
  13366. _ACEOF
  13367. rm -f conftest.$ac_objext conftest$ac_exeext
  13368. if { (ac_try="$ac_link"
  13369. case "(($ac_try" in
  13370. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13371. *) ac_try_echo=$ac_try;;
  13372. esac
  13373. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13374. (eval "$ac_link") 2>conftest.er1
  13375. ac_status=$?
  13376. grep -v '^ *+' conftest.er1 >conftest.err
  13377. rm -f conftest.er1
  13378. cat conftest.err >&5
  13379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13380. (exit $ac_status); } && {
  13381. test -z "$ac_cxx_werror_flag" ||
  13382. test ! -s conftest.err
  13383. } && test -s conftest$ac_exeext &&
  13384. $as_test_x conftest$ac_exeext; then
  13385. eval "$gt_func_gnugettext_libc=yes"
  13386. else
  13387. echo "$as_me: failed program was:" >&5
  13388. sed 's/^/| /' conftest.$ac_ext >&5
  13389. eval "$gt_func_gnugettext_libc=no"
  13390. fi
  13391. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13392. conftest$ac_exeext conftest.$ac_ext
  13393. fi
  13394. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  13395. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13396. echo "${ECHO_T}$ac_res" >&6; }
  13397. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  13398. use_additional=yes
  13399. acl_save_prefix="$prefix"
  13400. prefix="$acl_final_prefix"
  13401. acl_save_exec_prefix="$exec_prefix"
  13402. exec_prefix="$acl_final_exec_prefix"
  13403. eval additional_includedir=\"$includedir\"
  13404. eval additional_libdir=\"$libdir\"
  13405. exec_prefix="$acl_save_exec_prefix"
  13406. prefix="$acl_save_prefix"
  13407. # Check whether --with-libintl-prefix was given.
  13408. if test "${with_libintl_prefix+set}" = set; then
  13409. withval=$with_libintl_prefix;
  13410. if test "X$withval" = "Xno"; then
  13411. use_additional=no
  13412. else
  13413. if test "X$withval" = "X"; then
  13414. acl_save_prefix="$prefix"
  13415. prefix="$acl_final_prefix"
  13416. acl_save_exec_prefix="$exec_prefix"
  13417. exec_prefix="$acl_final_exec_prefix"
  13418. eval additional_includedir=\"$includedir\"
  13419. eval additional_libdir=\"$libdir\"
  13420. exec_prefix="$acl_save_exec_prefix"
  13421. prefix="$acl_save_prefix"
  13422. else
  13423. additional_includedir="$withval/include"
  13424. additional_libdir="$withval/$acl_libdirstem"
  13425. fi
  13426. fi
  13427. fi
  13428. LIBINTL=
  13429. LTLIBINTL=
  13430. INCINTL=
  13431. LIBINTL_PREFIX=
  13432. rpathdirs=
  13433. ltrpathdirs=
  13434. names_already_handled=
  13435. names_next_round='intl '
  13436. while test -n "$names_next_round"; do
  13437. names_this_round="$names_next_round"
  13438. names_next_round=
  13439. for name in $names_this_round; do
  13440. already_handled=
  13441. for n in $names_already_handled; do
  13442. if test "$n" = "$name"; then
  13443. already_handled=yes
  13444. break
  13445. fi
  13446. done
  13447. if test -z "$already_handled"; then
  13448. names_already_handled="$names_already_handled $name"
  13449. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  13450. eval value=\"\$HAVE_LIB$uppername\"
  13451. if test -n "$value"; then
  13452. if test "$value" = yes; then
  13453. eval value=\"\$LIB$uppername\"
  13454. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  13455. eval value=\"\$LTLIB$uppername\"
  13456. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  13457. else
  13458. :
  13459. fi
  13460. else
  13461. found_dir=
  13462. found_la=
  13463. found_so=
  13464. found_a=
  13465. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  13466. if test -n "$acl_shlibext"; then
  13467. shrext=".$acl_shlibext" # typically: shrext=.so
  13468. else
  13469. shrext=
  13470. fi
  13471. if test $use_additional = yes; then
  13472. dir="$additional_libdir"
  13473. if test -n "$acl_shlibext"; then
  13474. if test -f "$dir/$libname$shrext"; then
  13475. found_dir="$dir"
  13476. found_so="$dir/$libname$shrext"
  13477. else
  13478. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13479. ver=`(cd "$dir" && \
  13480. for f in "$libname$shrext".*; do echo "$f"; done \
  13481. | sed -e "s,^$libname$shrext\\\\.,," \
  13482. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13483. | sed 1q ) 2>/dev/null`
  13484. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13485. found_dir="$dir"
  13486. found_so="$dir/$libname$shrext.$ver"
  13487. fi
  13488. else
  13489. eval library_names=\"$acl_library_names_spec\"
  13490. for f in $library_names; do
  13491. if test -f "$dir/$f"; then
  13492. found_dir="$dir"
  13493. found_so="$dir/$f"
  13494. break
  13495. fi
  13496. done
  13497. fi
  13498. fi
  13499. fi
  13500. if test "X$found_dir" = "X"; then
  13501. if test -f "$dir/$libname.$acl_libext"; then
  13502. found_dir="$dir"
  13503. found_a="$dir/$libname.$acl_libext"
  13504. fi
  13505. fi
  13506. if test "X$found_dir" != "X"; then
  13507. if test -f "$dir/$libname.la"; then
  13508. found_la="$dir/$libname.la"
  13509. fi
  13510. fi
  13511. fi
  13512. if test "X$found_dir" = "X"; then
  13513. for x in $LDFLAGS $LTLIBINTL; do
  13514. acl_save_prefix="$prefix"
  13515. prefix="$acl_final_prefix"
  13516. acl_save_exec_prefix="$exec_prefix"
  13517. exec_prefix="$acl_final_exec_prefix"
  13518. eval x=\"$x\"
  13519. exec_prefix="$acl_save_exec_prefix"
  13520. prefix="$acl_save_prefix"
  13521. case "$x" in
  13522. -L*)
  13523. dir=`echo "X$x" | sed -e 's/^X-L//'`
  13524. if test -n "$acl_shlibext"; then
  13525. if test -f "$dir/$libname$shrext"; then
  13526. found_dir="$dir"
  13527. found_so="$dir/$libname$shrext"
  13528. else
  13529. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13530. ver=`(cd "$dir" && \
  13531. for f in "$libname$shrext".*; do echo "$f"; done \
  13532. | sed -e "s,^$libname$shrext\\\\.,," \
  13533. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13534. | sed 1q ) 2>/dev/null`
  13535. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13536. found_dir="$dir"
  13537. found_so="$dir/$libname$shrext.$ver"
  13538. fi
  13539. else
  13540. eval library_names=\"$acl_library_names_spec\"
  13541. for f in $library_names; do
  13542. if test -f "$dir/$f"; then
  13543. found_dir="$dir"
  13544. found_so="$dir/$f"
  13545. break
  13546. fi
  13547. done
  13548. fi
  13549. fi
  13550. fi
  13551. if test "X$found_dir" = "X"; then
  13552. if test -f "$dir/$libname.$acl_libext"; then
  13553. found_dir="$dir"
  13554. found_a="$dir/$libname.$acl_libext"
  13555. fi
  13556. fi
  13557. if test "X$found_dir" != "X"; then
  13558. if test -f "$dir/$libname.la"; then
  13559. found_la="$dir/$libname.la"
  13560. fi
  13561. fi
  13562. ;;
  13563. esac
  13564. if test "X$found_dir" != "X"; then
  13565. break
  13566. fi
  13567. done
  13568. fi
  13569. if test "X$found_dir" != "X"; then
  13570. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  13571. if test "X$found_so" != "X"; then
  13572. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  13573. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13574. else
  13575. haveit=
  13576. for x in $ltrpathdirs; do
  13577. if test "X$x" = "X$found_dir"; then
  13578. haveit=yes
  13579. break
  13580. fi
  13581. done
  13582. if test -z "$haveit"; then
  13583. ltrpathdirs="$ltrpathdirs $found_dir"
  13584. fi
  13585. if test "$acl_hardcode_direct" = yes; then
  13586. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13587. else
  13588. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  13589. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13590. haveit=
  13591. for x in $rpathdirs; do
  13592. if test "X$x" = "X$found_dir"; then
  13593. haveit=yes
  13594. break
  13595. fi
  13596. done
  13597. if test -z "$haveit"; then
  13598. rpathdirs="$rpathdirs $found_dir"
  13599. fi
  13600. else
  13601. haveit=
  13602. for x in $LDFLAGS $LIBINTL; do
  13603. acl_save_prefix="$prefix"
  13604. prefix="$acl_final_prefix"
  13605. acl_save_exec_prefix="$exec_prefix"
  13606. exec_prefix="$acl_final_exec_prefix"
  13607. eval x=\"$x\"
  13608. exec_prefix="$acl_save_exec_prefix"
  13609. prefix="$acl_save_prefix"
  13610. if test "X$x" = "X-L$found_dir"; then
  13611. haveit=yes
  13612. break
  13613. fi
  13614. done
  13615. if test -z "$haveit"; then
  13616. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  13617. fi
  13618. if test "$acl_hardcode_minus_L" != no; then
  13619. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13620. else
  13621. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  13622. fi
  13623. fi
  13624. fi
  13625. fi
  13626. else
  13627. if test "X$found_a" != "X"; then
  13628. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  13629. else
  13630. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  13631. fi
  13632. fi
  13633. additional_includedir=
  13634. case "$found_dir" in
  13635. */$acl_libdirstem | */$acl_libdirstem/)
  13636. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  13637. LIBINTL_PREFIX="$basedir"
  13638. additional_includedir="$basedir/include"
  13639. ;;
  13640. esac
  13641. if test "X$additional_includedir" != "X"; then
  13642. if test "X$additional_includedir" != "X/usr/include"; then
  13643. haveit=
  13644. if test "X$additional_includedir" = "X/usr/local/include"; then
  13645. if test -n "$GCC"; then
  13646. case $host_os in
  13647. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13648. esac
  13649. fi
  13650. fi
  13651. if test -z "$haveit"; then
  13652. for x in $CPPFLAGS $INCINTL; do
  13653. acl_save_prefix="$prefix"
  13654. prefix="$acl_final_prefix"
  13655. acl_save_exec_prefix="$exec_prefix"
  13656. exec_prefix="$acl_final_exec_prefix"
  13657. eval x=\"$x\"
  13658. exec_prefix="$acl_save_exec_prefix"
  13659. prefix="$acl_save_prefix"
  13660. if test "X$x" = "X-I$additional_includedir"; then
  13661. haveit=yes
  13662. break
  13663. fi
  13664. done
  13665. if test -z "$haveit"; then
  13666. if test -d "$additional_includedir"; then
  13667. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  13668. fi
  13669. fi
  13670. fi
  13671. fi
  13672. fi
  13673. if test -n "$found_la"; then
  13674. save_libdir="$libdir"
  13675. case "$found_la" in
  13676. */* | *\\*) . "$found_la" ;;
  13677. *) . "./$found_la" ;;
  13678. esac
  13679. libdir="$save_libdir"
  13680. for dep in $dependency_libs; do
  13681. case "$dep" in
  13682. -L*)
  13683. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13684. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  13685. haveit=
  13686. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  13687. if test -n "$GCC"; then
  13688. case $host_os in
  13689. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13690. esac
  13691. fi
  13692. fi
  13693. if test -z "$haveit"; then
  13694. haveit=
  13695. for x in $LDFLAGS $LIBINTL; do
  13696. acl_save_prefix="$prefix"
  13697. prefix="$acl_final_prefix"
  13698. acl_save_exec_prefix="$exec_prefix"
  13699. exec_prefix="$acl_final_exec_prefix"
  13700. eval x=\"$x\"
  13701. exec_prefix="$acl_save_exec_prefix"
  13702. prefix="$acl_save_prefix"
  13703. if test "X$x" = "X-L$additional_libdir"; then
  13704. haveit=yes
  13705. break
  13706. fi
  13707. done
  13708. if test -z "$haveit"; then
  13709. if test -d "$additional_libdir"; then
  13710. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  13711. fi
  13712. fi
  13713. haveit=
  13714. for x in $LDFLAGS $LTLIBINTL; do
  13715. acl_save_prefix="$prefix"
  13716. prefix="$acl_final_prefix"
  13717. acl_save_exec_prefix="$exec_prefix"
  13718. exec_prefix="$acl_final_exec_prefix"
  13719. eval x=\"$x\"
  13720. exec_prefix="$acl_save_exec_prefix"
  13721. prefix="$acl_save_prefix"
  13722. if test "X$x" = "X-L$additional_libdir"; then
  13723. haveit=yes
  13724. break
  13725. fi
  13726. done
  13727. if test -z "$haveit"; then
  13728. if test -d "$additional_libdir"; then
  13729. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  13730. fi
  13731. fi
  13732. fi
  13733. fi
  13734. ;;
  13735. -R*)
  13736. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13737. if test "$enable_rpath" != no; then
  13738. haveit=
  13739. for x in $rpathdirs; do
  13740. if test "X$x" = "X$dir"; then
  13741. haveit=yes
  13742. break
  13743. fi
  13744. done
  13745. if test -z "$haveit"; then
  13746. rpathdirs="$rpathdirs $dir"
  13747. fi
  13748. haveit=
  13749. for x in $ltrpathdirs; do
  13750. if test "X$x" = "X$dir"; then
  13751. haveit=yes
  13752. break
  13753. fi
  13754. done
  13755. if test -z "$haveit"; then
  13756. ltrpathdirs="$ltrpathdirs $dir"
  13757. fi
  13758. fi
  13759. ;;
  13760. -l*)
  13761. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13762. ;;
  13763. *.la)
  13764. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13765. ;;
  13766. *)
  13767. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  13768. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  13769. ;;
  13770. esac
  13771. done
  13772. fi
  13773. else
  13774. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  13775. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  13776. fi
  13777. fi
  13778. fi
  13779. done
  13780. done
  13781. if test "X$rpathdirs" != "X"; then
  13782. if test -n "$acl_hardcode_libdir_separator"; then
  13783. alldirs=
  13784. for found_dir in $rpathdirs; do
  13785. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  13786. done
  13787. acl_save_libdir="$libdir"
  13788. libdir="$alldirs"
  13789. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13790. libdir="$acl_save_libdir"
  13791. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  13792. else
  13793. for found_dir in $rpathdirs; do
  13794. acl_save_libdir="$libdir"
  13795. libdir="$found_dir"
  13796. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13797. libdir="$acl_save_libdir"
  13798. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  13799. done
  13800. fi
  13801. fi
  13802. if test "X$ltrpathdirs" != "X"; then
  13803. for found_dir in $ltrpathdirs; do
  13804. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  13805. done
  13806. fi
  13807. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  13808. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  13809. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  13810. echo $ECHO_N "(cached) $ECHO_C" >&6
  13811. else
  13812. gt_save_CPPFLAGS="$CPPFLAGS"
  13813. CPPFLAGS="$CPPFLAGS $INCINTL"
  13814. gt_save_LIBS="$LIBS"
  13815. LIBS="$LIBS $LIBINTL"
  13816. cat >conftest.$ac_ext <<_ACEOF
  13817. /* confdefs.h. */
  13818. _ACEOF
  13819. cat confdefs.h >>conftest.$ac_ext
  13820. cat >>conftest.$ac_ext <<_ACEOF
  13821. /* end confdefs.h. */
  13822. #include <libintl.h>
  13823. $gt_revision_test_code
  13824. extern int _nl_msg_cat_cntr;
  13825. extern
  13826. #ifdef __cplusplus
  13827. "C"
  13828. #endif
  13829. const char *_nl_expand_alias (const char *);
  13830. int
  13831. main ()
  13832. {
  13833. bindtextdomain ("", "");
  13834. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  13835. ;
  13836. return 0;
  13837. }
  13838. _ACEOF
  13839. rm -f conftest.$ac_objext conftest$ac_exeext
  13840. if { (ac_try="$ac_link"
  13841. case "(($ac_try" in
  13842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13843. *) ac_try_echo=$ac_try;;
  13844. esac
  13845. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13846. (eval "$ac_link") 2>conftest.er1
  13847. ac_status=$?
  13848. grep -v '^ *+' conftest.er1 >conftest.err
  13849. rm -f conftest.er1
  13850. cat conftest.err >&5
  13851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13852. (exit $ac_status); } && {
  13853. test -z "$ac_cxx_werror_flag" ||
  13854. test ! -s conftest.err
  13855. } && test -s conftest$ac_exeext &&
  13856. $as_test_x conftest$ac_exeext; then
  13857. eval "$gt_func_gnugettext_libintl=yes"
  13858. else
  13859. echo "$as_me: failed program was:" >&5
  13860. sed 's/^/| /' conftest.$ac_ext >&5
  13861. eval "$gt_func_gnugettext_libintl=no"
  13862. fi
  13863. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13864. conftest$ac_exeext conftest.$ac_ext
  13865. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  13866. LIBS="$LIBS $LIBICONV"
  13867. cat >conftest.$ac_ext <<_ACEOF
  13868. /* confdefs.h. */
  13869. _ACEOF
  13870. cat confdefs.h >>conftest.$ac_ext
  13871. cat >>conftest.$ac_ext <<_ACEOF
  13872. /* end confdefs.h. */
  13873. #include <libintl.h>
  13874. $gt_revision_test_code
  13875. extern int _nl_msg_cat_cntr;
  13876. extern
  13877. #ifdef __cplusplus
  13878. "C"
  13879. #endif
  13880. const char *_nl_expand_alias (const char *);
  13881. int
  13882. main ()
  13883. {
  13884. bindtextdomain ("", "");
  13885. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  13886. ;
  13887. return 0;
  13888. }
  13889. _ACEOF
  13890. rm -f conftest.$ac_objext conftest$ac_exeext
  13891. if { (ac_try="$ac_link"
  13892. case "(($ac_try" in
  13893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13894. *) ac_try_echo=$ac_try;;
  13895. esac
  13896. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13897. (eval "$ac_link") 2>conftest.er1
  13898. ac_status=$?
  13899. grep -v '^ *+' conftest.er1 >conftest.err
  13900. rm -f conftest.er1
  13901. cat conftest.err >&5
  13902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13903. (exit $ac_status); } && {
  13904. test -z "$ac_cxx_werror_flag" ||
  13905. test ! -s conftest.err
  13906. } && test -s conftest$ac_exeext &&
  13907. $as_test_x conftest$ac_exeext; then
  13908. LIBINTL="$LIBINTL $LIBICONV"
  13909. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  13910. eval "$gt_func_gnugettext_libintl=yes"
  13911. else
  13912. echo "$as_me: failed program was:" >&5
  13913. sed 's/^/| /' conftest.$ac_ext >&5
  13914. fi
  13915. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13916. conftest$ac_exeext conftest.$ac_ext
  13917. fi
  13918. CPPFLAGS="$gt_save_CPPFLAGS"
  13919. LIBS="$gt_save_LIBS"
  13920. fi
  13921. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  13922. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13923. echo "${ECHO_T}$ac_res" >&6; }
  13924. fi
  13925. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  13926. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  13927. && test "$PACKAGE" != gettext-runtime \
  13928. && test "$PACKAGE" != gettext-tools; }; then
  13929. gt_use_preinstalled_gnugettext=yes
  13930. else
  13931. LIBINTL=
  13932. LTLIBINTL=
  13933. INCINTL=
  13934. fi
  13935. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  13936. nls_cv_use_gnu_gettext=yes
  13937. fi
  13938. fi
  13939. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  13940. BUILD_INCLUDED_LIBINTL=yes
  13941. USE_INCLUDED_LIBINTL=yes
  13942. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  13943. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  13944. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  13945. fi
  13946. CATOBJEXT=
  13947. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  13948. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  13949. CATOBJEXT=.gmo
  13950. fi
  13951. if test -n "$INTL_MACOSX_LIBS"; then
  13952. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  13953. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  13954. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  13955. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  13956. fi
  13957. fi
  13958. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  13959. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  13960. cat >>confdefs.h <<\_ACEOF
  13961. #define ENABLE_NLS 1
  13962. _ACEOF
  13963. else
  13964. USE_NLS=no
  13965. fi
  13966. fi
  13967. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  13968. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  13969. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  13970. echo "${ECHO_T}$USE_NLS" >&6; }
  13971. if test "$USE_NLS" = "yes"; then
  13972. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  13973. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  13974. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  13975. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  13976. gt_source="external libintl"
  13977. else
  13978. gt_source="libc"
  13979. fi
  13980. else
  13981. gt_source="included intl directory"
  13982. fi
  13983. { echo "$as_me:$LINENO: result: $gt_source" >&5
  13984. echo "${ECHO_T}$gt_source" >&6; }
  13985. fi
  13986. if test "$USE_NLS" = "yes"; then
  13987. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  13988. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  13989. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  13990. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  13991. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  13992. echo "${ECHO_T}$LIBINTL" >&6; }
  13993. for element in $INCINTL; do
  13994. haveit=
  13995. for x in $CPPFLAGS; do
  13996. acl_save_prefix="$prefix"
  13997. prefix="$acl_final_prefix"
  13998. acl_save_exec_prefix="$exec_prefix"
  13999. exec_prefix="$acl_final_exec_prefix"
  14000. eval x=\"$x\"
  14001. exec_prefix="$acl_save_exec_prefix"
  14002. prefix="$acl_save_prefix"
  14003. if test "X$x" = "X$element"; then
  14004. haveit=yes
  14005. break
  14006. fi
  14007. done
  14008. if test -z "$haveit"; then
  14009. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  14010. fi
  14011. done
  14012. fi
  14013. cat >>confdefs.h <<\_ACEOF
  14014. #define HAVE_GETTEXT 1
  14015. _ACEOF
  14016. cat >>confdefs.h <<\_ACEOF
  14017. #define HAVE_DCGETTEXT 1
  14018. _ACEOF
  14019. fi
  14020. POSUB=po
  14021. fi
  14022. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  14023. BUILD_INCLUDED_LIBINTL=yes
  14024. fi
  14025. nls_cv_header_intl=
  14026. nls_cv_header_libgt=
  14027. DATADIRNAME=share
  14028. INSTOBJEXT=.mo
  14029. GENCAT=gencat
  14030. INTLOBJS=
  14031. if test "$USE_INCLUDED_LIBINTL" = yes; then
  14032. INTLOBJS="\$(GETTOBJS)"
  14033. fi
  14034. INTL_LIBTOOL_SUFFIX_PREFIX=
  14035. INTLLIBS="$LIBINTL"
  14036. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  14037. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  14038. if test "${ac_cv_lib_error_at_line+set}" = set; then
  14039. echo $ECHO_N "(cached) $ECHO_C" >&6
  14040. else
  14041. cat >conftest.$ac_ext <<_ACEOF
  14042. /* confdefs.h. */
  14043. _ACEOF
  14044. cat confdefs.h >>conftest.$ac_ext
  14045. cat >>conftest.$ac_ext <<_ACEOF
  14046. /* end confdefs.h. */
  14047. #include <error.h>
  14048. int
  14049. main ()
  14050. {
  14051. error_at_line (0, 0, "", 0, "an error occurred");
  14052. ;
  14053. return 0;
  14054. }
  14055. _ACEOF
  14056. rm -f conftest.$ac_objext conftest$ac_exeext
  14057. if { (ac_try="$ac_link"
  14058. case "(($ac_try" in
  14059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14060. *) ac_try_echo=$ac_try;;
  14061. esac
  14062. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14063. (eval "$ac_link") 2>conftest.er1
  14064. ac_status=$?
  14065. grep -v '^ *+' conftest.er1 >conftest.err
  14066. rm -f conftest.er1
  14067. cat conftest.err >&5
  14068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14069. (exit $ac_status); } && {
  14070. test -z "$ac_cxx_werror_flag" ||
  14071. test ! -s conftest.err
  14072. } && test -s conftest$ac_exeext &&
  14073. $as_test_x conftest$ac_exeext; then
  14074. ac_cv_lib_error_at_line=yes
  14075. else
  14076. echo "$as_me: failed program was:" >&5
  14077. sed 's/^/| /' conftest.$ac_ext >&5
  14078. ac_cv_lib_error_at_line=no
  14079. fi
  14080. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14081. conftest$ac_exeext conftest.$ac_ext
  14082. fi
  14083. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  14084. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  14085. if test $ac_cv_lib_error_at_line = no; then
  14086. case " $LIBOBJS " in
  14087. *" error.$ac_objext "* ) ;;
  14088. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14089. ;;
  14090. esac
  14091. fi
  14092. case "$target" in
  14093. *mingw*)
  14094. ;;
  14095. *)
  14096. for ac_header in stdlib.h
  14097. do
  14098. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14099. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14100. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14101. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14102. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14103. echo $ECHO_N "(cached) $ECHO_C" >&6
  14104. fi
  14105. ac_res=`eval echo '${'$as_ac_Header'}'`
  14106. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14107. echo "${ECHO_T}$ac_res" >&6; }
  14108. else
  14109. # Is the header compilable?
  14110. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14111. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14112. cat >conftest.$ac_ext <<_ACEOF
  14113. /* confdefs.h. */
  14114. _ACEOF
  14115. cat confdefs.h >>conftest.$ac_ext
  14116. cat >>conftest.$ac_ext <<_ACEOF
  14117. /* end confdefs.h. */
  14118. $ac_includes_default
  14119. #include <$ac_header>
  14120. _ACEOF
  14121. rm -f conftest.$ac_objext
  14122. if { (ac_try="$ac_compile"
  14123. case "(($ac_try" in
  14124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14125. *) ac_try_echo=$ac_try;;
  14126. esac
  14127. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14128. (eval "$ac_compile") 2>conftest.er1
  14129. ac_status=$?
  14130. grep -v '^ *+' conftest.er1 >conftest.err
  14131. rm -f conftest.er1
  14132. cat conftest.err >&5
  14133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14134. (exit $ac_status); } && {
  14135. test -z "$ac_cxx_werror_flag" ||
  14136. test ! -s conftest.err
  14137. } && test -s conftest.$ac_objext; then
  14138. ac_header_compiler=yes
  14139. else
  14140. echo "$as_me: failed program was:" >&5
  14141. sed 's/^/| /' conftest.$ac_ext >&5
  14142. ac_header_compiler=no
  14143. fi
  14144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14145. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14146. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14147. # Is the header present?
  14148. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14149. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14150. cat >conftest.$ac_ext <<_ACEOF
  14151. /* confdefs.h. */
  14152. _ACEOF
  14153. cat confdefs.h >>conftest.$ac_ext
  14154. cat >>conftest.$ac_ext <<_ACEOF
  14155. /* end confdefs.h. */
  14156. #include <$ac_header>
  14157. _ACEOF
  14158. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14159. case "(($ac_try" in
  14160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14161. *) ac_try_echo=$ac_try;;
  14162. esac
  14163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14164. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14165. ac_status=$?
  14166. grep -v '^ *+' conftest.er1 >conftest.err
  14167. rm -f conftest.er1
  14168. cat conftest.err >&5
  14169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14170. (exit $ac_status); } >/dev/null && {
  14171. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14172. test ! -s conftest.err
  14173. }; then
  14174. ac_header_preproc=yes
  14175. else
  14176. echo "$as_me: failed program was:" >&5
  14177. sed 's/^/| /' conftest.$ac_ext >&5
  14178. ac_header_preproc=no
  14179. fi
  14180. rm -f conftest.err conftest.$ac_ext
  14181. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14182. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14183. # So? What about this header?
  14184. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14185. yes:no: )
  14186. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14187. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14188. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14189. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14190. ac_header_preproc=yes
  14191. ;;
  14192. no:yes:* )
  14193. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14194. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14195. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14196. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14197. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14198. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14199. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14200. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14201. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14202. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14203. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14204. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14205. ( cat <<\_ASBOX
  14206. ## ----------------------------------------------- ##
  14207. ## Report this to t-tujikawa@users.sourceforge.net ##
  14208. ## ----------------------------------------------- ##
  14209. _ASBOX
  14210. ) | sed "s/^/$as_me: WARNING: /" >&2
  14211. ;;
  14212. esac
  14213. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14214. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14215. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14216. echo $ECHO_N "(cached) $ECHO_C" >&6
  14217. else
  14218. eval "$as_ac_Header=\$ac_header_preproc"
  14219. fi
  14220. ac_res=`eval echo '${'$as_ac_Header'}'`
  14221. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14222. echo "${ECHO_T}$ac_res" >&6; }
  14223. fi
  14224. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14225. cat >>confdefs.h <<_ACEOF
  14226. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14227. _ACEOF
  14228. fi
  14229. done
  14230. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  14231. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  14232. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  14233. echo $ECHO_N "(cached) $ECHO_C" >&6
  14234. else
  14235. if test "$cross_compiling" = yes; then
  14236. ac_cv_func_malloc_0_nonnull=no
  14237. else
  14238. cat >conftest.$ac_ext <<_ACEOF
  14239. /* confdefs.h. */
  14240. _ACEOF
  14241. cat confdefs.h >>conftest.$ac_ext
  14242. cat >>conftest.$ac_ext <<_ACEOF
  14243. /* end confdefs.h. */
  14244. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14245. # include <stdlib.h>
  14246. #else
  14247. char *malloc ();
  14248. #endif
  14249. int
  14250. main ()
  14251. {
  14252. return ! malloc (0);
  14253. ;
  14254. return 0;
  14255. }
  14256. _ACEOF
  14257. rm -f conftest$ac_exeext
  14258. if { (ac_try="$ac_link"
  14259. case "(($ac_try" in
  14260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14261. *) ac_try_echo=$ac_try;;
  14262. esac
  14263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14264. (eval "$ac_link") 2>&5
  14265. ac_status=$?
  14266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14267. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14268. { (case "(($ac_try" in
  14269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14270. *) ac_try_echo=$ac_try;;
  14271. esac
  14272. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14273. (eval "$ac_try") 2>&5
  14274. ac_status=$?
  14275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14276. (exit $ac_status); }; }; then
  14277. ac_cv_func_malloc_0_nonnull=yes
  14278. else
  14279. echo "$as_me: program exited with status $ac_status" >&5
  14280. echo "$as_me: failed program was:" >&5
  14281. sed 's/^/| /' conftest.$ac_ext >&5
  14282. ( exit $ac_status )
  14283. ac_cv_func_malloc_0_nonnull=no
  14284. fi
  14285. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14286. fi
  14287. fi
  14288. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  14289. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  14290. if test $ac_cv_func_malloc_0_nonnull = yes; then
  14291. cat >>confdefs.h <<\_ACEOF
  14292. #define HAVE_MALLOC 1
  14293. _ACEOF
  14294. else
  14295. cat >>confdefs.h <<\_ACEOF
  14296. #define HAVE_MALLOC 0
  14297. _ACEOF
  14298. case " $LIBOBJS " in
  14299. *" malloc.$ac_objext "* ) ;;
  14300. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14301. ;;
  14302. esac
  14303. cat >>confdefs.h <<\_ACEOF
  14304. #define malloc rpl_malloc
  14305. _ACEOF
  14306. fi
  14307. for ac_header in stdlib.h
  14308. do
  14309. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14310. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14311. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14312. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14313. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14314. echo $ECHO_N "(cached) $ECHO_C" >&6
  14315. fi
  14316. ac_res=`eval echo '${'$as_ac_Header'}'`
  14317. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14318. echo "${ECHO_T}$ac_res" >&6; }
  14319. else
  14320. # Is the header compilable?
  14321. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14322. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14323. cat >conftest.$ac_ext <<_ACEOF
  14324. /* confdefs.h. */
  14325. _ACEOF
  14326. cat confdefs.h >>conftest.$ac_ext
  14327. cat >>conftest.$ac_ext <<_ACEOF
  14328. /* end confdefs.h. */
  14329. $ac_includes_default
  14330. #include <$ac_header>
  14331. _ACEOF
  14332. rm -f conftest.$ac_objext
  14333. if { (ac_try="$ac_compile"
  14334. case "(($ac_try" in
  14335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14336. *) ac_try_echo=$ac_try;;
  14337. esac
  14338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14339. (eval "$ac_compile") 2>conftest.er1
  14340. ac_status=$?
  14341. grep -v '^ *+' conftest.er1 >conftest.err
  14342. rm -f conftest.er1
  14343. cat conftest.err >&5
  14344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14345. (exit $ac_status); } && {
  14346. test -z "$ac_cxx_werror_flag" ||
  14347. test ! -s conftest.err
  14348. } && test -s conftest.$ac_objext; then
  14349. ac_header_compiler=yes
  14350. else
  14351. echo "$as_me: failed program was:" >&5
  14352. sed 's/^/| /' conftest.$ac_ext >&5
  14353. ac_header_compiler=no
  14354. fi
  14355. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14356. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14357. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14358. # Is the header present?
  14359. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14360. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14361. cat >conftest.$ac_ext <<_ACEOF
  14362. /* confdefs.h. */
  14363. _ACEOF
  14364. cat confdefs.h >>conftest.$ac_ext
  14365. cat >>conftest.$ac_ext <<_ACEOF
  14366. /* end confdefs.h. */
  14367. #include <$ac_header>
  14368. _ACEOF
  14369. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14370. case "(($ac_try" in
  14371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14372. *) ac_try_echo=$ac_try;;
  14373. esac
  14374. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14375. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14376. ac_status=$?
  14377. grep -v '^ *+' conftest.er1 >conftest.err
  14378. rm -f conftest.er1
  14379. cat conftest.err >&5
  14380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14381. (exit $ac_status); } >/dev/null && {
  14382. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14383. test ! -s conftest.err
  14384. }; then
  14385. ac_header_preproc=yes
  14386. else
  14387. echo "$as_me: failed program was:" >&5
  14388. sed 's/^/| /' conftest.$ac_ext >&5
  14389. ac_header_preproc=no
  14390. fi
  14391. rm -f conftest.err conftest.$ac_ext
  14392. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14393. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14394. # So? What about this header?
  14395. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14396. yes:no: )
  14397. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14398. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14399. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14400. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14401. ac_header_preproc=yes
  14402. ;;
  14403. no:yes:* )
  14404. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14405. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14406. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14407. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14408. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14409. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14410. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14411. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14412. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14413. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14414. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14415. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14416. ( cat <<\_ASBOX
  14417. ## ----------------------------------------------- ##
  14418. ## Report this to t-tujikawa@users.sourceforge.net ##
  14419. ## ----------------------------------------------- ##
  14420. _ASBOX
  14421. ) | sed "s/^/$as_me: WARNING: /" >&2
  14422. ;;
  14423. esac
  14424. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14425. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14426. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14427. echo $ECHO_N "(cached) $ECHO_C" >&6
  14428. else
  14429. eval "$as_ac_Header=\$ac_header_preproc"
  14430. fi
  14431. ac_res=`eval echo '${'$as_ac_Header'}'`
  14432. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14433. echo "${ECHO_T}$ac_res" >&6; }
  14434. fi
  14435. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14436. cat >>confdefs.h <<_ACEOF
  14437. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14438. _ACEOF
  14439. fi
  14440. done
  14441. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  14442. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  14443. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  14444. echo $ECHO_N "(cached) $ECHO_C" >&6
  14445. else
  14446. if test "$cross_compiling" = yes; then
  14447. ac_cv_func_realloc_0_nonnull=no
  14448. else
  14449. cat >conftest.$ac_ext <<_ACEOF
  14450. /* confdefs.h. */
  14451. _ACEOF
  14452. cat confdefs.h >>conftest.$ac_ext
  14453. cat >>conftest.$ac_ext <<_ACEOF
  14454. /* end confdefs.h. */
  14455. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14456. # include <stdlib.h>
  14457. #else
  14458. char *realloc ();
  14459. #endif
  14460. int
  14461. main ()
  14462. {
  14463. return ! realloc (0, 0);
  14464. ;
  14465. return 0;
  14466. }
  14467. _ACEOF
  14468. rm -f conftest$ac_exeext
  14469. if { (ac_try="$ac_link"
  14470. case "(($ac_try" in
  14471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14472. *) ac_try_echo=$ac_try;;
  14473. esac
  14474. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14475. (eval "$ac_link") 2>&5
  14476. ac_status=$?
  14477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14478. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14479. { (case "(($ac_try" in
  14480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14481. *) ac_try_echo=$ac_try;;
  14482. esac
  14483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14484. (eval "$ac_try") 2>&5
  14485. ac_status=$?
  14486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14487. (exit $ac_status); }; }; then
  14488. ac_cv_func_realloc_0_nonnull=yes
  14489. else
  14490. echo "$as_me: program exited with status $ac_status" >&5
  14491. echo "$as_me: failed program was:" >&5
  14492. sed 's/^/| /' conftest.$ac_ext >&5
  14493. ( exit $ac_status )
  14494. ac_cv_func_realloc_0_nonnull=no
  14495. fi
  14496. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14497. fi
  14498. fi
  14499. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  14500. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  14501. if test $ac_cv_func_realloc_0_nonnull = yes; then
  14502. cat >>confdefs.h <<\_ACEOF
  14503. #define HAVE_REALLOC 1
  14504. _ACEOF
  14505. else
  14506. cat >>confdefs.h <<\_ACEOF
  14507. #define HAVE_REALLOC 0
  14508. _ACEOF
  14509. case " $LIBOBJS " in
  14510. *" realloc.$ac_objext "* ) ;;
  14511. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  14512. ;;
  14513. esac
  14514. cat >>confdefs.h <<\_ACEOF
  14515. #define realloc rpl_realloc
  14516. _ACEOF
  14517. fi
  14518. ;;
  14519. esac
  14520. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  14521. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  14522. if test "${ac_cv_func_memcmp_working+set}" = set; then
  14523. echo $ECHO_N "(cached) $ECHO_C" >&6
  14524. else
  14525. if test "$cross_compiling" = yes; then
  14526. ac_cv_func_memcmp_working=no
  14527. else
  14528. cat >conftest.$ac_ext <<_ACEOF
  14529. /* confdefs.h. */
  14530. _ACEOF
  14531. cat confdefs.h >>conftest.$ac_ext
  14532. cat >>conftest.$ac_ext <<_ACEOF
  14533. /* end confdefs.h. */
  14534. $ac_includes_default
  14535. int
  14536. main ()
  14537. {
  14538. /* Some versions of memcmp are not 8-bit clean. */
  14539. char c0 = '\100', c1 = '\200', c2 = '\201';
  14540. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14541. return 1;
  14542. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14543. or more and with at least one buffer not starting on a 4-byte boundary.
  14544. William Lewis provided this test program. */
  14545. {
  14546. char foo[21];
  14547. char bar[21];
  14548. int i;
  14549. for (i = 0; i < 4; i++)
  14550. {
  14551. char *a = foo + i;
  14552. char *b = bar + i;
  14553. strcpy (a, "--------01111111");
  14554. strcpy (b, "--------10000000");
  14555. if (memcmp (a, b, 16) >= 0)
  14556. return 1;
  14557. }
  14558. return 0;
  14559. }
  14560. ;
  14561. return 0;
  14562. }
  14563. _ACEOF
  14564. rm -f conftest$ac_exeext
  14565. if { (ac_try="$ac_link"
  14566. case "(($ac_try" in
  14567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14568. *) ac_try_echo=$ac_try;;
  14569. esac
  14570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14571. (eval "$ac_link") 2>&5
  14572. ac_status=$?
  14573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14574. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14575. { (case "(($ac_try" in
  14576. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14577. *) ac_try_echo=$ac_try;;
  14578. esac
  14579. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14580. (eval "$ac_try") 2>&5
  14581. ac_status=$?
  14582. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14583. (exit $ac_status); }; }; then
  14584. ac_cv_func_memcmp_working=yes
  14585. else
  14586. echo "$as_me: program exited with status $ac_status" >&5
  14587. echo "$as_me: failed program was:" >&5
  14588. sed 's/^/| /' conftest.$ac_ext >&5
  14589. ( exit $ac_status )
  14590. ac_cv_func_memcmp_working=no
  14591. fi
  14592. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14593. fi
  14594. fi
  14595. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  14596. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  14597. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14598. *" memcmp.$ac_objext "* ) ;;
  14599. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14600. ;;
  14601. esac
  14602. for ac_header in stdlib.h unistd.h
  14603. do
  14604. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14605. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14606. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14607. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14608. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14609. echo $ECHO_N "(cached) $ECHO_C" >&6
  14610. fi
  14611. ac_res=`eval echo '${'$as_ac_Header'}'`
  14612. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14613. echo "${ECHO_T}$ac_res" >&6; }
  14614. else
  14615. # Is the header compilable?
  14616. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14617. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14618. cat >conftest.$ac_ext <<_ACEOF
  14619. /* confdefs.h. */
  14620. _ACEOF
  14621. cat confdefs.h >>conftest.$ac_ext
  14622. cat >>conftest.$ac_ext <<_ACEOF
  14623. /* end confdefs.h. */
  14624. $ac_includes_default
  14625. #include <$ac_header>
  14626. _ACEOF
  14627. rm -f conftest.$ac_objext
  14628. if { (ac_try="$ac_compile"
  14629. case "(($ac_try" in
  14630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14631. *) ac_try_echo=$ac_try;;
  14632. esac
  14633. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14634. (eval "$ac_compile") 2>conftest.er1
  14635. ac_status=$?
  14636. grep -v '^ *+' conftest.er1 >conftest.err
  14637. rm -f conftest.er1
  14638. cat conftest.err >&5
  14639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14640. (exit $ac_status); } && {
  14641. test -z "$ac_cxx_werror_flag" ||
  14642. test ! -s conftest.err
  14643. } && test -s conftest.$ac_objext; then
  14644. ac_header_compiler=yes
  14645. else
  14646. echo "$as_me: failed program was:" >&5
  14647. sed 's/^/| /' conftest.$ac_ext >&5
  14648. ac_header_compiler=no
  14649. fi
  14650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14651. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14652. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14653. # Is the header present?
  14654. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14655. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14656. cat >conftest.$ac_ext <<_ACEOF
  14657. /* confdefs.h. */
  14658. _ACEOF
  14659. cat confdefs.h >>conftest.$ac_ext
  14660. cat >>conftest.$ac_ext <<_ACEOF
  14661. /* end confdefs.h. */
  14662. #include <$ac_header>
  14663. _ACEOF
  14664. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14665. case "(($ac_try" in
  14666. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14667. *) ac_try_echo=$ac_try;;
  14668. esac
  14669. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14670. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14671. ac_status=$?
  14672. grep -v '^ *+' conftest.er1 >conftest.err
  14673. rm -f conftest.er1
  14674. cat conftest.err >&5
  14675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14676. (exit $ac_status); } >/dev/null && {
  14677. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14678. test ! -s conftest.err
  14679. }; then
  14680. ac_header_preproc=yes
  14681. else
  14682. echo "$as_me: failed program was:" >&5
  14683. sed 's/^/| /' conftest.$ac_ext >&5
  14684. ac_header_preproc=no
  14685. fi
  14686. rm -f conftest.err conftest.$ac_ext
  14687. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14688. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14689. # So? What about this header?
  14690. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14691. yes:no: )
  14692. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14693. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14694. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14695. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14696. ac_header_preproc=yes
  14697. ;;
  14698. no:yes:* )
  14699. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14700. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14701. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14702. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14703. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14704. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14705. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14706. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14707. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14708. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14709. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14710. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14711. ( cat <<\_ASBOX
  14712. ## ----------------------------------------------- ##
  14713. ## Report this to t-tujikawa@users.sourceforge.net ##
  14714. ## ----------------------------------------------- ##
  14715. _ASBOX
  14716. ) | sed "s/^/$as_me: WARNING: /" >&2
  14717. ;;
  14718. esac
  14719. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14720. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14721. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14722. echo $ECHO_N "(cached) $ECHO_C" >&6
  14723. else
  14724. eval "$as_ac_Header=\$ac_header_preproc"
  14725. fi
  14726. ac_res=`eval echo '${'$as_ac_Header'}'`
  14727. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14728. echo "${ECHO_T}$ac_res" >&6; }
  14729. fi
  14730. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14731. cat >>confdefs.h <<_ACEOF
  14732. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14733. _ACEOF
  14734. fi
  14735. done
  14736. for ac_func in getpagesize
  14737. do
  14738. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14739. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14740. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14741. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14742. echo $ECHO_N "(cached) $ECHO_C" >&6
  14743. else
  14744. cat >conftest.$ac_ext <<_ACEOF
  14745. /* confdefs.h. */
  14746. _ACEOF
  14747. cat confdefs.h >>conftest.$ac_ext
  14748. cat >>conftest.$ac_ext <<_ACEOF
  14749. /* end confdefs.h. */
  14750. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14751. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14752. #define $ac_func innocuous_$ac_func
  14753. /* System header to define __stub macros and hopefully few prototypes,
  14754. which can conflict with char $ac_func (); below.
  14755. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14756. <limits.h> exists even on freestanding compilers. */
  14757. #ifdef __STDC__
  14758. # include <limits.h>
  14759. #else
  14760. # include <assert.h>
  14761. #endif
  14762. #undef $ac_func
  14763. /* Override any GCC internal prototype to avoid an error.
  14764. Use char because int might match the return type of a GCC
  14765. builtin and then its argument prototype would still apply. */
  14766. #ifdef __cplusplus
  14767. extern "C"
  14768. #endif
  14769. char $ac_func ();
  14770. /* The GNU C library defines this for functions which it implements
  14771. to always fail with ENOSYS. Some functions are actually named
  14772. something starting with __ and the normal name is an alias. */
  14773. #if defined __stub_$ac_func || defined __stub___$ac_func
  14774. choke me
  14775. #endif
  14776. int
  14777. main ()
  14778. {
  14779. return $ac_func ();
  14780. ;
  14781. return 0;
  14782. }
  14783. _ACEOF
  14784. rm -f conftest.$ac_objext conftest$ac_exeext
  14785. if { (ac_try="$ac_link"
  14786. case "(($ac_try" in
  14787. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14788. *) ac_try_echo=$ac_try;;
  14789. esac
  14790. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14791. (eval "$ac_link") 2>conftest.er1
  14792. ac_status=$?
  14793. grep -v '^ *+' conftest.er1 >conftest.err
  14794. rm -f conftest.er1
  14795. cat conftest.err >&5
  14796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14797. (exit $ac_status); } && {
  14798. test -z "$ac_cxx_werror_flag" ||
  14799. test ! -s conftest.err
  14800. } && test -s conftest$ac_exeext &&
  14801. $as_test_x conftest$ac_exeext; then
  14802. eval "$as_ac_var=yes"
  14803. else
  14804. echo "$as_me: failed program was:" >&5
  14805. sed 's/^/| /' conftest.$ac_ext >&5
  14806. eval "$as_ac_var=no"
  14807. fi
  14808. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14809. conftest$ac_exeext conftest.$ac_ext
  14810. fi
  14811. ac_res=`eval echo '${'$as_ac_var'}'`
  14812. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14813. echo "${ECHO_T}$ac_res" >&6; }
  14814. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14815. cat >>confdefs.h <<_ACEOF
  14816. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14817. _ACEOF
  14818. fi
  14819. done
  14820. { echo "$as_me:$LINENO: checking for working mmap" >&5
  14821. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  14822. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  14823. echo $ECHO_N "(cached) $ECHO_C" >&6
  14824. else
  14825. if test "$cross_compiling" = yes; then
  14826. ac_cv_func_mmap_fixed_mapped=no
  14827. else
  14828. cat >conftest.$ac_ext <<_ACEOF
  14829. /* confdefs.h. */
  14830. _ACEOF
  14831. cat confdefs.h >>conftest.$ac_ext
  14832. cat >>conftest.$ac_ext <<_ACEOF
  14833. /* end confdefs.h. */
  14834. $ac_includes_default
  14835. /* malloc might have been renamed as rpl_malloc. */
  14836. #undef malloc
  14837. /* Thanks to Mike Haertel and Jim Avera for this test.
  14838. Here is a matrix of mmap possibilities:
  14839. mmap private not fixed
  14840. mmap private fixed at somewhere currently unmapped
  14841. mmap private fixed at somewhere already mapped
  14842. mmap shared not fixed
  14843. mmap shared fixed at somewhere currently unmapped
  14844. mmap shared fixed at somewhere already mapped
  14845. For private mappings, we should verify that changes cannot be read()
  14846. back from the file, nor mmap's back from the file at a different
  14847. address. (There have been systems where private was not correctly
  14848. implemented like the infamous i386 svr4.0, and systems where the
  14849. VM page cache was not coherent with the file system buffer cache
  14850. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14851. For shared mappings, we should conversely verify that changes get
  14852. propagated back to all the places they're supposed to be.
  14853. Grep wants private fixed already mapped.
  14854. The main things grep needs to know about mmap are:
  14855. * does it exist and is it safe to write into the mmap'd area
  14856. * how to use it (BSD variants) */
  14857. #include <fcntl.h>
  14858. #include <sys/mman.h>
  14859. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14860. char *malloc ();
  14861. #endif
  14862. /* This mess was copied from the GNU getpagesize.h. */
  14863. #ifndef HAVE_GETPAGESIZE
  14864. /* Assume that all systems that can run configure have sys/param.h. */
  14865. # ifndef HAVE_SYS_PARAM_H
  14866. # define HAVE_SYS_PARAM_H 1
  14867. # endif
  14868. # ifdef _SC_PAGESIZE
  14869. # define getpagesize() sysconf(_SC_PAGESIZE)
  14870. # else /* no _SC_PAGESIZE */
  14871. # ifdef HAVE_SYS_PARAM_H
  14872. # include <sys/param.h>
  14873. # ifdef EXEC_PAGESIZE
  14874. # define getpagesize() EXEC_PAGESIZE
  14875. # else /* no EXEC_PAGESIZE */
  14876. # ifdef NBPG
  14877. # define getpagesize() NBPG * CLSIZE
  14878. # ifndef CLSIZE
  14879. # define CLSIZE 1
  14880. # endif /* no CLSIZE */
  14881. # else /* no NBPG */
  14882. # ifdef NBPC
  14883. # define getpagesize() NBPC
  14884. # else /* no NBPC */
  14885. # ifdef PAGESIZE
  14886. # define getpagesize() PAGESIZE
  14887. # endif /* PAGESIZE */
  14888. # endif /* no NBPC */
  14889. # endif /* no NBPG */
  14890. # endif /* no EXEC_PAGESIZE */
  14891. # else /* no HAVE_SYS_PARAM_H */
  14892. # define getpagesize() 8192 /* punt totally */
  14893. # endif /* no HAVE_SYS_PARAM_H */
  14894. # endif /* no _SC_PAGESIZE */
  14895. #endif /* no HAVE_GETPAGESIZE */
  14896. int
  14897. main ()
  14898. {
  14899. char *data, *data2, *data3;
  14900. int i, pagesize;
  14901. int fd;
  14902. pagesize = getpagesize ();
  14903. /* First, make a file with some known garbage in it. */
  14904. data = (char *) malloc (pagesize);
  14905. if (!data)
  14906. return 1;
  14907. for (i = 0; i < pagesize; ++i)
  14908. *(data + i) = rand ();
  14909. umask (0);
  14910. fd = creat ("conftest.mmap", 0600);
  14911. if (fd < 0)
  14912. return 1;
  14913. if (write (fd, data, pagesize) != pagesize)
  14914. return 1;
  14915. close (fd);
  14916. /* Next, try to mmap the file at a fixed address which already has
  14917. something else allocated at it. If we can, also make sure that
  14918. we see the same garbage. */
  14919. fd = open ("conftest.mmap", O_RDWR);
  14920. if (fd < 0)
  14921. return 1;
  14922. data2 = (char *) malloc (2 * pagesize);
  14923. if (!data2)
  14924. return 1;
  14925. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  14926. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14927. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14928. return 1;
  14929. for (i = 0; i < pagesize; ++i)
  14930. if (*(data + i) != *(data2 + i))
  14931. return 1;
  14932. /* Finally, make sure that changes to the mapped area do not
  14933. percolate back to the file as seen by read(). (This is a bug on
  14934. some variants of i386 svr4.0.) */
  14935. for (i = 0; i < pagesize; ++i)
  14936. *(data2 + i) = *(data2 + i) + 1;
  14937. data3 = (char *) malloc (pagesize);
  14938. if (!data3)
  14939. return 1;
  14940. if (read (fd, data3, pagesize) != pagesize)
  14941. return 1;
  14942. for (i = 0; i < pagesize; ++i)
  14943. if (*(data + i) != *(data3 + i))
  14944. return 1;
  14945. close (fd);
  14946. return 0;
  14947. }
  14948. _ACEOF
  14949. rm -f conftest$ac_exeext
  14950. if { (ac_try="$ac_link"
  14951. case "(($ac_try" in
  14952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14953. *) ac_try_echo=$ac_try;;
  14954. esac
  14955. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14956. (eval "$ac_link") 2>&5
  14957. ac_status=$?
  14958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14959. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14960. { (case "(($ac_try" in
  14961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14962. *) ac_try_echo=$ac_try;;
  14963. esac
  14964. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14965. (eval "$ac_try") 2>&5
  14966. ac_status=$?
  14967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14968. (exit $ac_status); }; }; then
  14969. ac_cv_func_mmap_fixed_mapped=yes
  14970. else
  14971. echo "$as_me: program exited with status $ac_status" >&5
  14972. echo "$as_me: failed program was:" >&5
  14973. sed 's/^/| /' conftest.$ac_ext >&5
  14974. ( exit $ac_status )
  14975. ac_cv_func_mmap_fixed_mapped=no
  14976. fi
  14977. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14978. fi
  14979. fi
  14980. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14981. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  14982. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14983. cat >>confdefs.h <<\_ACEOF
  14984. #define HAVE_MMAP 1
  14985. _ACEOF
  14986. fi
  14987. rm -f conftest.mmap
  14988. for ac_header in sys/select.h sys/socket.h
  14989. do
  14990. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14991. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14992. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14993. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14994. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14995. echo $ECHO_N "(cached) $ECHO_C" >&6
  14996. fi
  14997. ac_res=`eval echo '${'$as_ac_Header'}'`
  14998. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14999. echo "${ECHO_T}$ac_res" >&6; }
  15000. else
  15001. # Is the header compilable?
  15002. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15003. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15004. cat >conftest.$ac_ext <<_ACEOF
  15005. /* confdefs.h. */
  15006. _ACEOF
  15007. cat confdefs.h >>conftest.$ac_ext
  15008. cat >>conftest.$ac_ext <<_ACEOF
  15009. /* end confdefs.h. */
  15010. $ac_includes_default
  15011. #include <$ac_header>
  15012. _ACEOF
  15013. rm -f conftest.$ac_objext
  15014. if { (ac_try="$ac_compile"
  15015. case "(($ac_try" in
  15016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15017. *) ac_try_echo=$ac_try;;
  15018. esac
  15019. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15020. (eval "$ac_compile") 2>conftest.er1
  15021. ac_status=$?
  15022. grep -v '^ *+' conftest.er1 >conftest.err
  15023. rm -f conftest.er1
  15024. cat conftest.err >&5
  15025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15026. (exit $ac_status); } && {
  15027. test -z "$ac_cxx_werror_flag" ||
  15028. test ! -s conftest.err
  15029. } && test -s conftest.$ac_objext; then
  15030. ac_header_compiler=yes
  15031. else
  15032. echo "$as_me: failed program was:" >&5
  15033. sed 's/^/| /' conftest.$ac_ext >&5
  15034. ac_header_compiler=no
  15035. fi
  15036. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15037. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15038. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15039. # Is the header present?
  15040. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15041. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15042. cat >conftest.$ac_ext <<_ACEOF
  15043. /* confdefs.h. */
  15044. _ACEOF
  15045. cat confdefs.h >>conftest.$ac_ext
  15046. cat >>conftest.$ac_ext <<_ACEOF
  15047. /* end confdefs.h. */
  15048. #include <$ac_header>
  15049. _ACEOF
  15050. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15051. case "(($ac_try" in
  15052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15053. *) ac_try_echo=$ac_try;;
  15054. esac
  15055. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15056. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15057. ac_status=$?
  15058. grep -v '^ *+' conftest.er1 >conftest.err
  15059. rm -f conftest.er1
  15060. cat conftest.err >&5
  15061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15062. (exit $ac_status); } >/dev/null && {
  15063. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15064. test ! -s conftest.err
  15065. }; then
  15066. ac_header_preproc=yes
  15067. else
  15068. echo "$as_me: failed program was:" >&5
  15069. sed 's/^/| /' conftest.$ac_ext >&5
  15070. ac_header_preproc=no
  15071. fi
  15072. rm -f conftest.err conftest.$ac_ext
  15073. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15074. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15075. # So? What about this header?
  15076. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15077. yes:no: )
  15078. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15079. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15080. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15081. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15082. ac_header_preproc=yes
  15083. ;;
  15084. no:yes:* )
  15085. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15086. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15087. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15088. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15089. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15090. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15091. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15092. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15093. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15094. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15095. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15096. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15097. ( cat <<\_ASBOX
  15098. ## ----------------------------------------------- ##
  15099. ## Report this to t-tujikawa@users.sourceforge.net ##
  15100. ## ----------------------------------------------- ##
  15101. _ASBOX
  15102. ) | sed "s/^/$as_me: WARNING: /" >&2
  15103. ;;
  15104. esac
  15105. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15106. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15107. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15108. echo $ECHO_N "(cached) $ECHO_C" >&6
  15109. else
  15110. eval "$as_ac_Header=\$ac_header_preproc"
  15111. fi
  15112. ac_res=`eval echo '${'$as_ac_Header'}'`
  15113. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15114. echo "${ECHO_T}$ac_res" >&6; }
  15115. fi
  15116. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15117. cat >>confdefs.h <<_ACEOF
  15118. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15119. _ACEOF
  15120. fi
  15121. done
  15122. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  15123. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  15124. if test "${ac_cv_func_select_args+set}" = set; then
  15125. echo $ECHO_N "(cached) $ECHO_C" >&6
  15126. else
  15127. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  15128. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  15129. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  15130. cat >conftest.$ac_ext <<_ACEOF
  15131. /* confdefs.h. */
  15132. _ACEOF
  15133. cat confdefs.h >>conftest.$ac_ext
  15134. cat >>conftest.$ac_ext <<_ACEOF
  15135. /* end confdefs.h. */
  15136. $ac_includes_default
  15137. #ifdef HAVE_SYS_SELECT_H
  15138. # include <sys/select.h>
  15139. #endif
  15140. #ifdef HAVE_SYS_SOCKET_H
  15141. # include <sys/socket.h>
  15142. #endif
  15143. int
  15144. main ()
  15145. {
  15146. extern int select ($ac_arg1,
  15147. $ac_arg234, $ac_arg234, $ac_arg234,
  15148. $ac_arg5);
  15149. ;
  15150. return 0;
  15151. }
  15152. _ACEOF
  15153. rm -f conftest.$ac_objext
  15154. if { (ac_try="$ac_compile"
  15155. case "(($ac_try" in
  15156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15157. *) ac_try_echo=$ac_try;;
  15158. esac
  15159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15160. (eval "$ac_compile") 2>conftest.er1
  15161. ac_status=$?
  15162. grep -v '^ *+' conftest.er1 >conftest.err
  15163. rm -f conftest.er1
  15164. cat conftest.err >&5
  15165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15166. (exit $ac_status); } && {
  15167. test -z "$ac_cxx_werror_flag" ||
  15168. test ! -s conftest.err
  15169. } && test -s conftest.$ac_objext; then
  15170. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  15171. else
  15172. echo "$as_me: failed program was:" >&5
  15173. sed 's/^/| /' conftest.$ac_ext >&5
  15174. fi
  15175. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15176. done
  15177. done
  15178. done
  15179. # Provide a safe default value.
  15180. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  15181. fi
  15182. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  15183. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  15184. ac_save_IFS=$IFS; IFS=','
  15185. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  15186. IFS=$ac_save_IFS
  15187. shift
  15188. cat >>confdefs.h <<_ACEOF
  15189. #define SELECT_TYPE_ARG1 $1
  15190. _ACEOF
  15191. cat >>confdefs.h <<_ACEOF
  15192. #define SELECT_TYPE_ARG234 ($2)
  15193. _ACEOF
  15194. cat >>confdefs.h <<_ACEOF
  15195. #define SELECT_TYPE_ARG5 ($3)
  15196. _ACEOF
  15197. rm -f conftest*
  15198. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  15199. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  15200. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  15201. echo $ECHO_N "(cached) $ECHO_C" >&6
  15202. else
  15203. rm -f conftest.sym conftest.file
  15204. echo >conftest.file
  15205. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  15206. if test "$cross_compiling" = yes; then
  15207. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15208. else
  15209. cat >conftest.$ac_ext <<_ACEOF
  15210. /* confdefs.h. */
  15211. _ACEOF
  15212. cat confdefs.h >>conftest.$ac_ext
  15213. cat >>conftest.$ac_ext <<_ACEOF
  15214. /* end confdefs.h. */
  15215. $ac_includes_default
  15216. int
  15217. main ()
  15218. {
  15219. struct stat sbuf;
  15220. /* Linux will dereference the symlink and fail.
  15221. That is better in the sense that it means we will not
  15222. have to compile and use the lstat wrapper. */
  15223. return lstat ("conftest.sym/", &sbuf) == 0;
  15224. ;
  15225. return 0;
  15226. }
  15227. _ACEOF
  15228. rm -f conftest$ac_exeext
  15229. if { (ac_try="$ac_link"
  15230. case "(($ac_try" in
  15231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15232. *) ac_try_echo=$ac_try;;
  15233. esac
  15234. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15235. (eval "$ac_link") 2>&5
  15236. ac_status=$?
  15237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15238. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15239. { (case "(($ac_try" in
  15240. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15241. *) ac_try_echo=$ac_try;;
  15242. esac
  15243. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15244. (eval "$ac_try") 2>&5
  15245. ac_status=$?
  15246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15247. (exit $ac_status); }; }; then
  15248. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  15249. else
  15250. echo "$as_me: program exited with status $ac_status" >&5
  15251. echo "$as_me: failed program was:" >&5
  15252. sed 's/^/| /' conftest.$ac_ext >&5
  15253. ( exit $ac_status )
  15254. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15255. fi
  15256. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15257. fi
  15258. else
  15259. # If the `ln -s' command failed, then we probably don't even
  15260. # have an lstat function.
  15261. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15262. fi
  15263. rm -f conftest.sym conftest.file
  15264. fi
  15265. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  15266. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  15267. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  15268. cat >>confdefs.h <<_ACEOF
  15269. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  15270. _ACEOF
  15271. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  15272. case " $LIBOBJS " in
  15273. *" lstat.$ac_objext "* ) ;;
  15274. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  15275. ;;
  15276. esac
  15277. fi
  15278. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  15279. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  15280. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  15281. echo $ECHO_N "(cached) $ECHO_C" >&6
  15282. else
  15283. if test "$cross_compiling" = yes; then
  15284. ac_cv_func_stat_empty_string_bug=yes
  15285. else
  15286. cat >conftest.$ac_ext <<_ACEOF
  15287. /* confdefs.h. */
  15288. _ACEOF
  15289. cat confdefs.h >>conftest.$ac_ext
  15290. cat >>conftest.$ac_ext <<_ACEOF
  15291. /* end confdefs.h. */
  15292. $ac_includes_default
  15293. int
  15294. main ()
  15295. {
  15296. struct stat sbuf;
  15297. return stat ("", &sbuf) == 0;
  15298. ;
  15299. return 0;
  15300. }
  15301. _ACEOF
  15302. rm -f conftest$ac_exeext
  15303. if { (ac_try="$ac_link"
  15304. case "(($ac_try" in
  15305. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15306. *) ac_try_echo=$ac_try;;
  15307. esac
  15308. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15309. (eval "$ac_link") 2>&5
  15310. ac_status=$?
  15311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15312. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15313. { (case "(($ac_try" in
  15314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15315. *) ac_try_echo=$ac_try;;
  15316. esac
  15317. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15318. (eval "$ac_try") 2>&5
  15319. ac_status=$?
  15320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15321. (exit $ac_status); }; }; then
  15322. ac_cv_func_stat_empty_string_bug=no
  15323. else
  15324. echo "$as_me: program exited with status $ac_status" >&5
  15325. echo "$as_me: failed program was:" >&5
  15326. sed 's/^/| /' conftest.$ac_ext >&5
  15327. ( exit $ac_status )
  15328. ac_cv_func_stat_empty_string_bug=yes
  15329. fi
  15330. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15331. fi
  15332. fi
  15333. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  15334. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  15335. if test $ac_cv_func_stat_empty_string_bug = yes; then
  15336. case " $LIBOBJS " in
  15337. *" stat.$ac_objext "* ) ;;
  15338. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  15339. ;;
  15340. esac
  15341. cat >>confdefs.h <<_ACEOF
  15342. #define HAVE_STAT_EMPTY_STRING_BUG 1
  15343. _ACEOF
  15344. fi
  15345. for ac_func in vprintf
  15346. do
  15347. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15348. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15349. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15350. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15351. echo $ECHO_N "(cached) $ECHO_C" >&6
  15352. else
  15353. cat >conftest.$ac_ext <<_ACEOF
  15354. /* confdefs.h. */
  15355. _ACEOF
  15356. cat confdefs.h >>conftest.$ac_ext
  15357. cat >>conftest.$ac_ext <<_ACEOF
  15358. /* end confdefs.h. */
  15359. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15360. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15361. #define $ac_func innocuous_$ac_func
  15362. /* System header to define __stub macros and hopefully few prototypes,
  15363. which can conflict with char $ac_func (); below.
  15364. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15365. <limits.h> exists even on freestanding compilers. */
  15366. #ifdef __STDC__
  15367. # include <limits.h>
  15368. #else
  15369. # include <assert.h>
  15370. #endif
  15371. #undef $ac_func
  15372. /* Override any GCC internal prototype to avoid an error.
  15373. Use char because int might match the return type of a GCC
  15374. builtin and then its argument prototype would still apply. */
  15375. #ifdef __cplusplus
  15376. extern "C"
  15377. #endif
  15378. char $ac_func ();
  15379. /* The GNU C library defines this for functions which it implements
  15380. to always fail with ENOSYS. Some functions are actually named
  15381. something starting with __ and the normal name is an alias. */
  15382. #if defined __stub_$ac_func || defined __stub___$ac_func
  15383. choke me
  15384. #endif
  15385. int
  15386. main ()
  15387. {
  15388. return $ac_func ();
  15389. ;
  15390. return 0;
  15391. }
  15392. _ACEOF
  15393. rm -f conftest.$ac_objext conftest$ac_exeext
  15394. if { (ac_try="$ac_link"
  15395. case "(($ac_try" in
  15396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15397. *) ac_try_echo=$ac_try;;
  15398. esac
  15399. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15400. (eval "$ac_link") 2>conftest.er1
  15401. ac_status=$?
  15402. grep -v '^ *+' conftest.er1 >conftest.err
  15403. rm -f conftest.er1
  15404. cat conftest.err >&5
  15405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15406. (exit $ac_status); } && {
  15407. test -z "$ac_cxx_werror_flag" ||
  15408. test ! -s conftest.err
  15409. } && test -s conftest$ac_exeext &&
  15410. $as_test_x conftest$ac_exeext; then
  15411. eval "$as_ac_var=yes"
  15412. else
  15413. echo "$as_me: failed program was:" >&5
  15414. sed 's/^/| /' conftest.$ac_ext >&5
  15415. eval "$as_ac_var=no"
  15416. fi
  15417. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15418. conftest$ac_exeext conftest.$ac_ext
  15419. fi
  15420. ac_res=`eval echo '${'$as_ac_var'}'`
  15421. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15422. echo "${ECHO_T}$ac_res" >&6; }
  15423. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15424. cat >>confdefs.h <<_ACEOF
  15425. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15426. _ACEOF
  15427. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  15428. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  15429. if test "${ac_cv_func__doprnt+set}" = set; then
  15430. echo $ECHO_N "(cached) $ECHO_C" >&6
  15431. else
  15432. cat >conftest.$ac_ext <<_ACEOF
  15433. /* confdefs.h. */
  15434. _ACEOF
  15435. cat confdefs.h >>conftest.$ac_ext
  15436. cat >>conftest.$ac_ext <<_ACEOF
  15437. /* end confdefs.h. */
  15438. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  15439. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15440. #define _doprnt innocuous__doprnt
  15441. /* System header to define __stub macros and hopefully few prototypes,
  15442. which can conflict with char _doprnt (); below.
  15443. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15444. <limits.h> exists even on freestanding compilers. */
  15445. #ifdef __STDC__
  15446. # include <limits.h>
  15447. #else
  15448. # include <assert.h>
  15449. #endif
  15450. #undef _doprnt
  15451. /* Override any GCC internal prototype to avoid an error.
  15452. Use char because int might match the return type of a GCC
  15453. builtin and then its argument prototype would still apply. */
  15454. #ifdef __cplusplus
  15455. extern "C"
  15456. #endif
  15457. char _doprnt ();
  15458. /* The GNU C library defines this for functions which it implements
  15459. to always fail with ENOSYS. Some functions are actually named
  15460. something starting with __ and the normal name is an alias. */
  15461. #if defined __stub__doprnt || defined __stub____doprnt
  15462. choke me
  15463. #endif
  15464. int
  15465. main ()
  15466. {
  15467. return _doprnt ();
  15468. ;
  15469. return 0;
  15470. }
  15471. _ACEOF
  15472. rm -f conftest.$ac_objext conftest$ac_exeext
  15473. if { (ac_try="$ac_link"
  15474. case "(($ac_try" in
  15475. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15476. *) ac_try_echo=$ac_try;;
  15477. esac
  15478. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15479. (eval "$ac_link") 2>conftest.er1
  15480. ac_status=$?
  15481. grep -v '^ *+' conftest.er1 >conftest.err
  15482. rm -f conftest.er1
  15483. cat conftest.err >&5
  15484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15485. (exit $ac_status); } && {
  15486. test -z "$ac_cxx_werror_flag" ||
  15487. test ! -s conftest.err
  15488. } && test -s conftest$ac_exeext &&
  15489. $as_test_x conftest$ac_exeext; then
  15490. ac_cv_func__doprnt=yes
  15491. else
  15492. echo "$as_me: failed program was:" >&5
  15493. sed 's/^/| /' conftest.$ac_ext >&5
  15494. ac_cv_func__doprnt=no
  15495. fi
  15496. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15497. conftest$ac_exeext conftest.$ac_ext
  15498. fi
  15499. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  15500. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  15501. if test $ac_cv_func__doprnt = yes; then
  15502. cat >>confdefs.h <<\_ACEOF
  15503. #define HAVE_DOPRNT 1
  15504. _ACEOF
  15505. fi
  15506. fi
  15507. done
  15508. for ac_func in __argz_count __argz_next __argz_stringify daemon ftruncate getcwd getpagesize inet_ntoa memchr mempcpy memset mkdir munmap nl_langinfo posix_memalign random rmdir select setlocale sigaction sleep socket srandom stpcpy strcasecmp strchr strcspn strdup strerror strstr strtol strtoul unsetenv usleep
  15509. do
  15510. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15511. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15512. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15513. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15514. echo $ECHO_N "(cached) $ECHO_C" >&6
  15515. else
  15516. cat >conftest.$ac_ext <<_ACEOF
  15517. /* confdefs.h. */
  15518. _ACEOF
  15519. cat confdefs.h >>conftest.$ac_ext
  15520. cat >>conftest.$ac_ext <<_ACEOF
  15521. /* end confdefs.h. */
  15522. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15523. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15524. #define $ac_func innocuous_$ac_func
  15525. /* System header to define __stub macros and hopefully few prototypes,
  15526. which can conflict with char $ac_func (); below.
  15527. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15528. <limits.h> exists even on freestanding compilers. */
  15529. #ifdef __STDC__
  15530. # include <limits.h>
  15531. #else
  15532. # include <assert.h>
  15533. #endif
  15534. #undef $ac_func
  15535. /* Override any GCC internal prototype to avoid an error.
  15536. Use char because int might match the return type of a GCC
  15537. builtin and then its argument prototype would still apply. */
  15538. #ifdef __cplusplus
  15539. extern "C"
  15540. #endif
  15541. char $ac_func ();
  15542. /* The GNU C library defines this for functions which it implements
  15543. to always fail with ENOSYS. Some functions are actually named
  15544. something starting with __ and the normal name is an alias. */
  15545. #if defined __stub_$ac_func || defined __stub___$ac_func
  15546. choke me
  15547. #endif
  15548. int
  15549. main ()
  15550. {
  15551. return $ac_func ();
  15552. ;
  15553. return 0;
  15554. }
  15555. _ACEOF
  15556. rm -f conftest.$ac_objext conftest$ac_exeext
  15557. if { (ac_try="$ac_link"
  15558. case "(($ac_try" in
  15559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15560. *) ac_try_echo=$ac_try;;
  15561. esac
  15562. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15563. (eval "$ac_link") 2>conftest.er1
  15564. ac_status=$?
  15565. grep -v '^ *+' conftest.er1 >conftest.err
  15566. rm -f conftest.er1
  15567. cat conftest.err >&5
  15568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15569. (exit $ac_status); } && {
  15570. test -z "$ac_cxx_werror_flag" ||
  15571. test ! -s conftest.err
  15572. } && test -s conftest$ac_exeext &&
  15573. $as_test_x conftest$ac_exeext; then
  15574. eval "$as_ac_var=yes"
  15575. else
  15576. echo "$as_me: failed program was:" >&5
  15577. sed 's/^/| /' conftest.$ac_ext >&5
  15578. eval "$as_ac_var=no"
  15579. fi
  15580. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15581. conftest$ac_exeext conftest.$ac_ext
  15582. fi
  15583. ac_res=`eval echo '${'$as_ac_var'}'`
  15584. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15585. echo "${ECHO_T}$ac_res" >&6; }
  15586. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15587. cat >>confdefs.h <<_ACEOF
  15588. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15589. _ACEOF
  15590. fi
  15591. done
  15592. for ac_func in basename
  15593. do
  15594. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15595. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15596. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15597. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15598. echo $ECHO_N "(cached) $ECHO_C" >&6
  15599. else
  15600. cat >conftest.$ac_ext <<_ACEOF
  15601. /* confdefs.h. */
  15602. _ACEOF
  15603. cat confdefs.h >>conftest.$ac_ext
  15604. cat >>conftest.$ac_ext <<_ACEOF
  15605. /* end confdefs.h. */
  15606. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15607. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15608. #define $ac_func innocuous_$ac_func
  15609. /* System header to define __stub macros and hopefully few prototypes,
  15610. which can conflict with char $ac_func (); below.
  15611. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15612. <limits.h> exists even on freestanding compilers. */
  15613. #ifdef __STDC__
  15614. # include <limits.h>
  15615. #else
  15616. # include <assert.h>
  15617. #endif
  15618. #undef $ac_func
  15619. /* Override any GCC internal prototype to avoid an error.
  15620. Use char because int might match the return type of a GCC
  15621. builtin and then its argument prototype would still apply. */
  15622. #ifdef __cplusplus
  15623. extern "C"
  15624. #endif
  15625. char $ac_func ();
  15626. /* The GNU C library defines this for functions which it implements
  15627. to always fail with ENOSYS. Some functions are actually named
  15628. something starting with __ and the normal name is an alias. */
  15629. #if defined __stub_$ac_func || defined __stub___$ac_func
  15630. choke me
  15631. #endif
  15632. int
  15633. main ()
  15634. {
  15635. return $ac_func ();
  15636. ;
  15637. return 0;
  15638. }
  15639. _ACEOF
  15640. rm -f conftest.$ac_objext conftest$ac_exeext
  15641. if { (ac_try="$ac_link"
  15642. case "(($ac_try" in
  15643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15644. *) ac_try_echo=$ac_try;;
  15645. esac
  15646. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15647. (eval "$ac_link") 2>conftest.er1
  15648. ac_status=$?
  15649. grep -v '^ *+' conftest.er1 >conftest.err
  15650. rm -f conftest.er1
  15651. cat conftest.err >&5
  15652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15653. (exit $ac_status); } && {
  15654. test -z "$ac_cxx_werror_flag" ||
  15655. test ! -s conftest.err
  15656. } && test -s conftest$ac_exeext &&
  15657. $as_test_x conftest$ac_exeext; then
  15658. eval "$as_ac_var=yes"
  15659. else
  15660. echo "$as_me: failed program was:" >&5
  15661. sed 's/^/| /' conftest.$ac_ext >&5
  15662. eval "$as_ac_var=no"
  15663. fi
  15664. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15665. conftest$ac_exeext conftest.$ac_ext
  15666. fi
  15667. ac_res=`eval echo '${'$as_ac_var'}'`
  15668. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15669. echo "${ECHO_T}$ac_res" >&6; }
  15670. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15671. cat >>confdefs.h <<_ACEOF
  15672. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15673. _ACEOF
  15674. if true; then
  15675. HAVE_BASENAME_TRUE=
  15676. HAVE_BASENAME_FALSE='#'
  15677. else
  15678. HAVE_BASENAME_TRUE='#'
  15679. HAVE_BASENAME_FALSE=
  15680. fi
  15681. else
  15682. if false; then
  15683. HAVE_BASENAME_TRUE=
  15684. HAVE_BASENAME_FALSE='#'
  15685. else
  15686. HAVE_BASENAME_TRUE='#'
  15687. HAVE_BASENAME_FALSE=
  15688. fi
  15689. fi
  15690. done
  15691. for ac_func in gai_strerror
  15692. do
  15693. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15694. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15695. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15696. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15697. echo $ECHO_N "(cached) $ECHO_C" >&6
  15698. else
  15699. cat >conftest.$ac_ext <<_ACEOF
  15700. /* confdefs.h. */
  15701. _ACEOF
  15702. cat confdefs.h >>conftest.$ac_ext
  15703. cat >>conftest.$ac_ext <<_ACEOF
  15704. /* end confdefs.h. */
  15705. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15706. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15707. #define $ac_func innocuous_$ac_func
  15708. /* System header to define __stub macros and hopefully few prototypes,
  15709. which can conflict with char $ac_func (); below.
  15710. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15711. <limits.h> exists even on freestanding compilers. */
  15712. #ifdef __STDC__
  15713. # include <limits.h>
  15714. #else
  15715. # include <assert.h>
  15716. #endif
  15717. #undef $ac_func
  15718. /* Override any GCC internal prototype to avoid an error.
  15719. Use char because int might match the return type of a GCC
  15720. builtin and then its argument prototype would still apply. */
  15721. #ifdef __cplusplus
  15722. extern "C"
  15723. #endif
  15724. char $ac_func ();
  15725. /* The GNU C library defines this for functions which it implements
  15726. to always fail with ENOSYS. Some functions are actually named
  15727. something starting with __ and the normal name is an alias. */
  15728. #if defined __stub_$ac_func || defined __stub___$ac_func
  15729. choke me
  15730. #endif
  15731. int
  15732. main ()
  15733. {
  15734. return $ac_func ();
  15735. ;
  15736. return 0;
  15737. }
  15738. _ACEOF
  15739. rm -f conftest.$ac_objext conftest$ac_exeext
  15740. if { (ac_try="$ac_link"
  15741. case "(($ac_try" in
  15742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15743. *) ac_try_echo=$ac_try;;
  15744. esac
  15745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15746. (eval "$ac_link") 2>conftest.er1
  15747. ac_status=$?
  15748. grep -v '^ *+' conftest.er1 >conftest.err
  15749. rm -f conftest.er1
  15750. cat conftest.err >&5
  15751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15752. (exit $ac_status); } && {
  15753. test -z "$ac_cxx_werror_flag" ||
  15754. test ! -s conftest.err
  15755. } && test -s conftest$ac_exeext &&
  15756. $as_test_x conftest$ac_exeext; then
  15757. eval "$as_ac_var=yes"
  15758. else
  15759. echo "$as_me: failed program was:" >&5
  15760. sed 's/^/| /' conftest.$ac_ext >&5
  15761. eval "$as_ac_var=no"
  15762. fi
  15763. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15764. conftest$ac_exeext conftest.$ac_ext
  15765. fi
  15766. ac_res=`eval echo '${'$as_ac_var'}'`
  15767. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15768. echo "${ECHO_T}$ac_res" >&6; }
  15769. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15770. cat >>confdefs.h <<_ACEOF
  15771. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15772. _ACEOF
  15773. if true; then
  15774. HAVE_GAI_STRERROR_TRUE=
  15775. HAVE_GAI_STRERROR_FALSE='#'
  15776. else
  15777. HAVE_GAI_STRERROR_TRUE='#'
  15778. HAVE_GAI_STRERROR_FALSE=
  15779. fi
  15780. else
  15781. if false; then
  15782. HAVE_GAI_STRERROR_TRUE=
  15783. HAVE_GAI_STRERROR_FALSE='#'
  15784. else
  15785. HAVE_GAI_STRERROR_TRUE='#'
  15786. HAVE_GAI_STRERROR_FALSE=
  15787. fi
  15788. fi
  15789. done
  15790. for ac_func in getaddrinfo
  15791. do
  15792. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15793. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15794. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15795. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15796. echo $ECHO_N "(cached) $ECHO_C" >&6
  15797. else
  15798. cat >conftest.$ac_ext <<_ACEOF
  15799. /* confdefs.h. */
  15800. _ACEOF
  15801. cat confdefs.h >>conftest.$ac_ext
  15802. cat >>conftest.$ac_ext <<_ACEOF
  15803. /* end confdefs.h. */
  15804. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15805. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15806. #define $ac_func innocuous_$ac_func
  15807. /* System header to define __stub macros and hopefully few prototypes,
  15808. which can conflict with char $ac_func (); below.
  15809. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15810. <limits.h> exists even on freestanding compilers. */
  15811. #ifdef __STDC__
  15812. # include <limits.h>
  15813. #else
  15814. # include <assert.h>
  15815. #endif
  15816. #undef $ac_func
  15817. /* Override any GCC internal prototype to avoid an error.
  15818. Use char because int might match the return type of a GCC
  15819. builtin and then its argument prototype would still apply. */
  15820. #ifdef __cplusplus
  15821. extern "C"
  15822. #endif
  15823. char $ac_func ();
  15824. /* The GNU C library defines this for functions which it implements
  15825. to always fail with ENOSYS. Some functions are actually named
  15826. something starting with __ and the normal name is an alias. */
  15827. #if defined __stub_$ac_func || defined __stub___$ac_func
  15828. choke me
  15829. #endif
  15830. int
  15831. main ()
  15832. {
  15833. return $ac_func ();
  15834. ;
  15835. return 0;
  15836. }
  15837. _ACEOF
  15838. rm -f conftest.$ac_objext conftest$ac_exeext
  15839. if { (ac_try="$ac_link"
  15840. case "(($ac_try" in
  15841. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15842. *) ac_try_echo=$ac_try;;
  15843. esac
  15844. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15845. (eval "$ac_link") 2>conftest.er1
  15846. ac_status=$?
  15847. grep -v '^ *+' conftest.er1 >conftest.err
  15848. rm -f conftest.er1
  15849. cat conftest.err >&5
  15850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15851. (exit $ac_status); } && {
  15852. test -z "$ac_cxx_werror_flag" ||
  15853. test ! -s conftest.err
  15854. } && test -s conftest$ac_exeext &&
  15855. $as_test_x conftest$ac_exeext; then
  15856. eval "$as_ac_var=yes"
  15857. else
  15858. echo "$as_me: failed program was:" >&5
  15859. sed 's/^/| /' conftest.$ac_ext >&5
  15860. eval "$as_ac_var=no"
  15861. fi
  15862. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15863. conftest$ac_exeext conftest.$ac_ext
  15864. fi
  15865. ac_res=`eval echo '${'$as_ac_var'}'`
  15866. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15867. echo "${ECHO_T}$ac_res" >&6; }
  15868. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15869. cat >>confdefs.h <<_ACEOF
  15870. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15871. _ACEOF
  15872. if true; then
  15873. HAVE_GETADDRINFO_TRUE=
  15874. HAVE_GETADDRINFO_FALSE='#'
  15875. else
  15876. HAVE_GETADDRINFO_TRUE='#'
  15877. HAVE_GETADDRINFO_FALSE=
  15878. fi
  15879. else
  15880. if false; then
  15881. HAVE_GETADDRINFO_TRUE=
  15882. HAVE_GETADDRINFO_FALSE='#'
  15883. else
  15884. HAVE_GETADDRINFO_TRUE='#'
  15885. HAVE_GETADDRINFO_FALSE=
  15886. fi
  15887. fi
  15888. done
  15889. for ac_func in gettimeofday
  15890. do
  15891. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15892. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15893. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15894. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15895. echo $ECHO_N "(cached) $ECHO_C" >&6
  15896. else
  15897. cat >conftest.$ac_ext <<_ACEOF
  15898. /* confdefs.h. */
  15899. _ACEOF
  15900. cat confdefs.h >>conftest.$ac_ext
  15901. cat >>conftest.$ac_ext <<_ACEOF
  15902. /* end confdefs.h. */
  15903. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15904. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15905. #define $ac_func innocuous_$ac_func
  15906. /* System header to define __stub macros and hopefully few prototypes,
  15907. which can conflict with char $ac_func (); below.
  15908. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15909. <limits.h> exists even on freestanding compilers. */
  15910. #ifdef __STDC__
  15911. # include <limits.h>
  15912. #else
  15913. # include <assert.h>
  15914. #endif
  15915. #undef $ac_func
  15916. /* Override any GCC internal prototype to avoid an error.
  15917. Use char because int might match the return type of a GCC
  15918. builtin and then its argument prototype would still apply. */
  15919. #ifdef __cplusplus
  15920. extern "C"
  15921. #endif
  15922. char $ac_func ();
  15923. /* The GNU C library defines this for functions which it implements
  15924. to always fail with ENOSYS. Some functions are actually named
  15925. something starting with __ and the normal name is an alias. */
  15926. #if defined __stub_$ac_func || defined __stub___$ac_func
  15927. choke me
  15928. #endif
  15929. int
  15930. main ()
  15931. {
  15932. return $ac_func ();
  15933. ;
  15934. return 0;
  15935. }
  15936. _ACEOF
  15937. rm -f conftest.$ac_objext conftest$ac_exeext
  15938. if { (ac_try="$ac_link"
  15939. case "(($ac_try" in
  15940. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15941. *) ac_try_echo=$ac_try;;
  15942. esac
  15943. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15944. (eval "$ac_link") 2>conftest.er1
  15945. ac_status=$?
  15946. grep -v '^ *+' conftest.er1 >conftest.err
  15947. rm -f conftest.er1
  15948. cat conftest.err >&5
  15949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15950. (exit $ac_status); } && {
  15951. test -z "$ac_cxx_werror_flag" ||
  15952. test ! -s conftest.err
  15953. } && test -s conftest$ac_exeext &&
  15954. $as_test_x conftest$ac_exeext; then
  15955. eval "$as_ac_var=yes"
  15956. else
  15957. echo "$as_me: failed program was:" >&5
  15958. sed 's/^/| /' conftest.$ac_ext >&5
  15959. eval "$as_ac_var=no"
  15960. fi
  15961. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15962. conftest$ac_exeext conftest.$ac_ext
  15963. fi
  15964. ac_res=`eval echo '${'$as_ac_var'}'`
  15965. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15966. echo "${ECHO_T}$ac_res" >&6; }
  15967. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15968. cat >>confdefs.h <<_ACEOF
  15969. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15970. _ACEOF
  15971. if true; then
  15972. HAVE_GETTIMEOFDAY_TRUE=
  15973. HAVE_GETTIMEOFDAY_FALSE='#'
  15974. else
  15975. HAVE_GETTIMEOFDAY_TRUE='#'
  15976. HAVE_GETTIMEOFDAY_FALSE=
  15977. fi
  15978. else
  15979. if false; then
  15980. HAVE_GETTIMEOFDAY_TRUE=
  15981. HAVE_GETTIMEOFDAY_FALSE='#'
  15982. else
  15983. HAVE_GETTIMEOFDAY_TRUE='#'
  15984. HAVE_GETTIMEOFDAY_FALSE=
  15985. fi
  15986. fi
  15987. done
  15988. for ac_func in inet_aton
  15989. do
  15990. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15991. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15992. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15993. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15994. echo $ECHO_N "(cached) $ECHO_C" >&6
  15995. else
  15996. cat >conftest.$ac_ext <<_ACEOF
  15997. /* confdefs.h. */
  15998. _ACEOF
  15999. cat confdefs.h >>conftest.$ac_ext
  16000. cat >>conftest.$ac_ext <<_ACEOF
  16001. /* end confdefs.h. */
  16002. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16003. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16004. #define $ac_func innocuous_$ac_func
  16005. /* System header to define __stub macros and hopefully few prototypes,
  16006. which can conflict with char $ac_func (); below.
  16007. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16008. <limits.h> exists even on freestanding compilers. */
  16009. #ifdef __STDC__
  16010. # include <limits.h>
  16011. #else
  16012. # include <assert.h>
  16013. #endif
  16014. #undef $ac_func
  16015. /* Override any GCC internal prototype to avoid an error.
  16016. Use char because int might match the return type of a GCC
  16017. builtin and then its argument prototype would still apply. */
  16018. #ifdef __cplusplus
  16019. extern "C"
  16020. #endif
  16021. char $ac_func ();
  16022. /* The GNU C library defines this for functions which it implements
  16023. to always fail with ENOSYS. Some functions are actually named
  16024. something starting with __ and the normal name is an alias. */
  16025. #if defined __stub_$ac_func || defined __stub___$ac_func
  16026. choke me
  16027. #endif
  16028. int
  16029. main ()
  16030. {
  16031. return $ac_func ();
  16032. ;
  16033. return 0;
  16034. }
  16035. _ACEOF
  16036. rm -f conftest.$ac_objext conftest$ac_exeext
  16037. if { (ac_try="$ac_link"
  16038. case "(($ac_try" in
  16039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16040. *) ac_try_echo=$ac_try;;
  16041. esac
  16042. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16043. (eval "$ac_link") 2>conftest.er1
  16044. ac_status=$?
  16045. grep -v '^ *+' conftest.er1 >conftest.err
  16046. rm -f conftest.er1
  16047. cat conftest.err >&5
  16048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16049. (exit $ac_status); } && {
  16050. test -z "$ac_cxx_werror_flag" ||
  16051. test ! -s conftest.err
  16052. } && test -s conftest$ac_exeext &&
  16053. $as_test_x conftest$ac_exeext; then
  16054. eval "$as_ac_var=yes"
  16055. else
  16056. echo "$as_me: failed program was:" >&5
  16057. sed 's/^/| /' conftest.$ac_ext >&5
  16058. eval "$as_ac_var=no"
  16059. fi
  16060. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16061. conftest$ac_exeext conftest.$ac_ext
  16062. fi
  16063. ac_res=`eval echo '${'$as_ac_var'}'`
  16064. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16065. echo "${ECHO_T}$ac_res" >&6; }
  16066. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16067. cat >>confdefs.h <<_ACEOF
  16068. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16069. _ACEOF
  16070. if true; then
  16071. HAVE_INET_ATON_TRUE=
  16072. HAVE_INET_ATON_FALSE='#'
  16073. else
  16074. HAVE_INET_ATON_TRUE='#'
  16075. HAVE_INET_ATON_FALSE=
  16076. fi
  16077. else
  16078. if false; then
  16079. HAVE_INET_ATON_TRUE=
  16080. HAVE_INET_ATON_FALSE='#'
  16081. else
  16082. HAVE_INET_ATON_TRUE='#'
  16083. HAVE_INET_ATON_FALSE=
  16084. fi
  16085. fi
  16086. done
  16087. for ac_func in localtime_r
  16088. do
  16089. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16090. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16091. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16092. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16093. echo $ECHO_N "(cached) $ECHO_C" >&6
  16094. else
  16095. cat >conftest.$ac_ext <<_ACEOF
  16096. /* confdefs.h. */
  16097. _ACEOF
  16098. cat confdefs.h >>conftest.$ac_ext
  16099. cat >>conftest.$ac_ext <<_ACEOF
  16100. /* end confdefs.h. */
  16101. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16102. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16103. #define $ac_func innocuous_$ac_func
  16104. /* System header to define __stub macros and hopefully few prototypes,
  16105. which can conflict with char $ac_func (); below.
  16106. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16107. <limits.h> exists even on freestanding compilers. */
  16108. #ifdef __STDC__
  16109. # include <limits.h>
  16110. #else
  16111. # include <assert.h>
  16112. #endif
  16113. #undef $ac_func
  16114. /* Override any GCC internal prototype to avoid an error.
  16115. Use char because int might match the return type of a GCC
  16116. builtin and then its argument prototype would still apply. */
  16117. #ifdef __cplusplus
  16118. extern "C"
  16119. #endif
  16120. char $ac_func ();
  16121. /* The GNU C library defines this for functions which it implements
  16122. to always fail with ENOSYS. Some functions are actually named
  16123. something starting with __ and the normal name is an alias. */
  16124. #if defined __stub_$ac_func || defined __stub___$ac_func
  16125. choke me
  16126. #endif
  16127. int
  16128. main ()
  16129. {
  16130. return $ac_func ();
  16131. ;
  16132. return 0;
  16133. }
  16134. _ACEOF
  16135. rm -f conftest.$ac_objext conftest$ac_exeext
  16136. if { (ac_try="$ac_link"
  16137. case "(($ac_try" in
  16138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16139. *) ac_try_echo=$ac_try;;
  16140. esac
  16141. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16142. (eval "$ac_link") 2>conftest.er1
  16143. ac_status=$?
  16144. grep -v '^ *+' conftest.er1 >conftest.err
  16145. rm -f conftest.er1
  16146. cat conftest.err >&5
  16147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16148. (exit $ac_status); } && {
  16149. test -z "$ac_cxx_werror_flag" ||
  16150. test ! -s conftest.err
  16151. } && test -s conftest$ac_exeext &&
  16152. $as_test_x conftest$ac_exeext; then
  16153. eval "$as_ac_var=yes"
  16154. else
  16155. echo "$as_me: failed program was:" >&5
  16156. sed 's/^/| /' conftest.$ac_ext >&5
  16157. eval "$as_ac_var=no"
  16158. fi
  16159. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16160. conftest$ac_exeext conftest.$ac_ext
  16161. fi
  16162. ac_res=`eval echo '${'$as_ac_var'}'`
  16163. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16164. echo "${ECHO_T}$ac_res" >&6; }
  16165. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16166. cat >>confdefs.h <<_ACEOF
  16167. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16168. _ACEOF
  16169. if true; then
  16170. HAVE_LOCALTIME_R_TRUE=
  16171. HAVE_LOCALTIME_R_FALSE='#'
  16172. else
  16173. HAVE_LOCALTIME_R_TRUE='#'
  16174. HAVE_LOCALTIME_R_FALSE=
  16175. fi
  16176. else
  16177. if false; then
  16178. HAVE_LOCALTIME_R_TRUE=
  16179. HAVE_LOCALTIME_R_FALSE='#'
  16180. else
  16181. HAVE_LOCALTIME_R_TRUE='#'
  16182. HAVE_LOCALTIME_R_FALSE=
  16183. fi
  16184. fi
  16185. done
  16186. for ac_func in strptime
  16187. do
  16188. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16189. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16190. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16191. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16192. echo $ECHO_N "(cached) $ECHO_C" >&6
  16193. else
  16194. cat >conftest.$ac_ext <<_ACEOF
  16195. /* confdefs.h. */
  16196. _ACEOF
  16197. cat confdefs.h >>conftest.$ac_ext
  16198. cat >>conftest.$ac_ext <<_ACEOF
  16199. /* end confdefs.h. */
  16200. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16201. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16202. #define $ac_func innocuous_$ac_func
  16203. /* System header to define __stub macros and hopefully few prototypes,
  16204. which can conflict with char $ac_func (); below.
  16205. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16206. <limits.h> exists even on freestanding compilers. */
  16207. #ifdef __STDC__
  16208. # include <limits.h>
  16209. #else
  16210. # include <assert.h>
  16211. #endif
  16212. #undef $ac_func
  16213. /* Override any GCC internal prototype to avoid an error.
  16214. Use char because int might match the return type of a GCC
  16215. builtin and then its argument prototype would still apply. */
  16216. #ifdef __cplusplus
  16217. extern "C"
  16218. #endif
  16219. char $ac_func ();
  16220. /* The GNU C library defines this for functions which it implements
  16221. to always fail with ENOSYS. Some functions are actually named
  16222. something starting with __ and the normal name is an alias. */
  16223. #if defined __stub_$ac_func || defined __stub___$ac_func
  16224. choke me
  16225. #endif
  16226. int
  16227. main ()
  16228. {
  16229. return $ac_func ();
  16230. ;
  16231. return 0;
  16232. }
  16233. _ACEOF
  16234. rm -f conftest.$ac_objext conftest$ac_exeext
  16235. if { (ac_try="$ac_link"
  16236. case "(($ac_try" in
  16237. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16238. *) ac_try_echo=$ac_try;;
  16239. esac
  16240. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16241. (eval "$ac_link") 2>conftest.er1
  16242. ac_status=$?
  16243. grep -v '^ *+' conftest.er1 >conftest.err
  16244. rm -f conftest.er1
  16245. cat conftest.err >&5
  16246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16247. (exit $ac_status); } && {
  16248. test -z "$ac_cxx_werror_flag" ||
  16249. test ! -s conftest.err
  16250. } && test -s conftest$ac_exeext &&
  16251. $as_test_x conftest$ac_exeext; then
  16252. eval "$as_ac_var=yes"
  16253. else
  16254. echo "$as_me: failed program was:" >&5
  16255. sed 's/^/| /' conftest.$ac_ext >&5
  16256. eval "$as_ac_var=no"
  16257. fi
  16258. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16259. conftest$ac_exeext conftest.$ac_ext
  16260. fi
  16261. ac_res=`eval echo '${'$as_ac_var'}'`
  16262. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16263. echo "${ECHO_T}$ac_res" >&6; }
  16264. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16265. cat >>confdefs.h <<_ACEOF
  16266. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16267. _ACEOF
  16268. if true; then
  16269. HAVE_STRPTIME_TRUE=
  16270. HAVE_STRPTIME_FALSE='#'
  16271. else
  16272. HAVE_STRPTIME_TRUE='#'
  16273. HAVE_STRPTIME_FALSE=
  16274. fi
  16275. else
  16276. if false; then
  16277. HAVE_STRPTIME_TRUE=
  16278. HAVE_STRPTIME_FALSE='#'
  16279. else
  16280. HAVE_STRPTIME_TRUE='#'
  16281. HAVE_STRPTIME_FALSE=
  16282. fi
  16283. fi
  16284. done
  16285. for ac_func in timegm
  16286. do
  16287. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16288. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16289. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16290. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16291. echo $ECHO_N "(cached) $ECHO_C" >&6
  16292. else
  16293. cat >conftest.$ac_ext <<_ACEOF
  16294. /* confdefs.h. */
  16295. _ACEOF
  16296. cat confdefs.h >>conftest.$ac_ext
  16297. cat >>conftest.$ac_ext <<_ACEOF
  16298. /* end confdefs.h. */
  16299. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16300. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16301. #define $ac_func innocuous_$ac_func
  16302. /* System header to define __stub macros and hopefully few prototypes,
  16303. which can conflict with char $ac_func (); below.
  16304. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16305. <limits.h> exists even on freestanding compilers. */
  16306. #ifdef __STDC__
  16307. # include <limits.h>
  16308. #else
  16309. # include <assert.h>
  16310. #endif
  16311. #undef $ac_func
  16312. /* Override any GCC internal prototype to avoid an error.
  16313. Use char because int might match the return type of a GCC
  16314. builtin and then its argument prototype would still apply. */
  16315. #ifdef __cplusplus
  16316. extern "C"
  16317. #endif
  16318. char $ac_func ();
  16319. /* The GNU C library defines this for functions which it implements
  16320. to always fail with ENOSYS. Some functions are actually named
  16321. something starting with __ and the normal name is an alias. */
  16322. #if defined __stub_$ac_func || defined __stub___$ac_func
  16323. choke me
  16324. #endif
  16325. int
  16326. main ()
  16327. {
  16328. return $ac_func ();
  16329. ;
  16330. return 0;
  16331. }
  16332. _ACEOF
  16333. rm -f conftest.$ac_objext conftest$ac_exeext
  16334. if { (ac_try="$ac_link"
  16335. case "(($ac_try" in
  16336. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16337. *) ac_try_echo=$ac_try;;
  16338. esac
  16339. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16340. (eval "$ac_link") 2>conftest.er1
  16341. ac_status=$?
  16342. grep -v '^ *+' conftest.er1 >conftest.err
  16343. rm -f conftest.er1
  16344. cat conftest.err >&5
  16345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16346. (exit $ac_status); } && {
  16347. test -z "$ac_cxx_werror_flag" ||
  16348. test ! -s conftest.err
  16349. } && test -s conftest$ac_exeext &&
  16350. $as_test_x conftest$ac_exeext; then
  16351. eval "$as_ac_var=yes"
  16352. else
  16353. echo "$as_me: failed program was:" >&5
  16354. sed 's/^/| /' conftest.$ac_ext >&5
  16355. eval "$as_ac_var=no"
  16356. fi
  16357. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16358. conftest$ac_exeext conftest.$ac_ext
  16359. fi
  16360. ac_res=`eval echo '${'$as_ac_var'}'`
  16361. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16362. echo "${ECHO_T}$ac_res" >&6; }
  16363. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16364. cat >>confdefs.h <<_ACEOF
  16365. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16366. _ACEOF
  16367. if true; then
  16368. HAVE_TIMEGM_TRUE=
  16369. HAVE_TIMEGM_FALSE='#'
  16370. else
  16371. HAVE_TIMEGM_TRUE='#'
  16372. HAVE_TIMEGM_FALSE=
  16373. fi
  16374. else
  16375. if false; then
  16376. HAVE_TIMEGM_TRUE=
  16377. HAVE_TIMEGM_FALSE='#'
  16378. else
  16379. HAVE_TIMEGM_TRUE='#'
  16380. HAVE_TIMEGM_FALSE=
  16381. fi
  16382. fi
  16383. done
  16384. case "$target" in
  16385. *mingw*)
  16386. if true; then
  16387. HAVE_GETADDRINFO_TRUE=
  16388. HAVE_GETADDRINFO_FALSE='#'
  16389. else
  16390. HAVE_GETADDRINFO_TRUE='#'
  16391. HAVE_GETADDRINFO_FALSE=
  16392. fi
  16393. if false; then
  16394. HAVE_GAI_STRERROR_TRUE=
  16395. HAVE_GAI_STRERROR_FALSE='#'
  16396. else
  16397. HAVE_GAI_STRERROR_TRUE='#'
  16398. HAVE_GAI_STRERROR_FALSE=
  16399. fi
  16400. ;;
  16401. esac
  16402. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile doc/Makefile"
  16403. cat >confcache <<\_ACEOF
  16404. # This file is a shell script that caches the results of configure
  16405. # tests run on this system so they can be shared between configure
  16406. # scripts and configure runs, see configure's option --config-cache.
  16407. # It is not useful on other systems. If it contains results you don't
  16408. # want to keep, you may remove or edit it.
  16409. #
  16410. # config.status only pays attention to the cache file if you give it
  16411. # the --recheck option to rerun configure.
  16412. #
  16413. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  16414. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  16415. # following values.
  16416. _ACEOF
  16417. # The following way of writing the cache mishandles newlines in values,
  16418. # but we know of no workaround that is simple, portable, and efficient.
  16419. # So, we kill variables containing newlines.
  16420. # Ultrix sh set writes to stderr and can't be redirected directly,
  16421. # and sets the high bit in the cache file unless we assign to the vars.
  16422. (
  16423. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  16424. eval ac_val=\$$ac_var
  16425. case $ac_val in #(
  16426. *${as_nl}*)
  16427. case $ac_var in #(
  16428. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  16429. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  16430. esac
  16431. case $ac_var in #(
  16432. _ | IFS | as_nl) ;; #(
  16433. *) $as_unset $ac_var ;;
  16434. esac ;;
  16435. esac
  16436. done
  16437. (set) 2>&1 |
  16438. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  16439. *${as_nl}ac_space=\ *)
  16440. # `set' does not quote correctly, so add quotes (double-quote
  16441. # substitution turns \\\\ into \\, and sed turns \\ into \).
  16442. sed -n \
  16443. "s/'/'\\\\''/g;
  16444. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  16445. ;; #(
  16446. *)
  16447. # `set' quotes correctly as required by POSIX, so do not add quotes.
  16448. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  16449. ;;
  16450. esac |
  16451. sort
  16452. ) |
  16453. sed '
  16454. /^ac_cv_env_/b end
  16455. t clear
  16456. :clear
  16457. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  16458. t end
  16459. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  16460. :end' >>confcache
  16461. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  16462. if test -w "$cache_file"; then
  16463. test "x$cache_file" != "x/dev/null" &&
  16464. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  16465. echo "$as_me: updating cache $cache_file" >&6;}
  16466. cat confcache >$cache_file
  16467. else
  16468. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  16469. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  16470. fi
  16471. fi
  16472. rm -f confcache
  16473. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  16474. # Let make expand exec_prefix.
  16475. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  16476. DEFS=-DHAVE_CONFIG_H
  16477. ac_libobjs=
  16478. ac_ltlibobjs=
  16479. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  16480. # 1. Remove the extension, and $U if already installed.
  16481. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  16482. ac_i=`echo "$ac_i" | sed "$ac_script"`
  16483. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  16484. # will be set to the directory where LIBOBJS objects are built.
  16485. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  16486. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  16487. done
  16488. LIBOBJS=$ac_libobjs
  16489. LTLIBOBJS=$ac_ltlibobjs
  16490. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  16491. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  16492. Usually this means the macro was only invoked conditionally." >&5
  16493. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  16494. Usually this means the macro was only invoked conditionally." >&2;}
  16495. { (exit 1); exit 1; }; }
  16496. fi
  16497. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  16498. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  16499. Usually this means the macro was only invoked conditionally." >&5
  16500. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  16501. Usually this means the macro was only invoked conditionally." >&2;}
  16502. { (exit 1); exit 1; }; }
  16503. fi
  16504. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  16505. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  16506. Usually this means the macro was only invoked conditionally." >&5
  16507. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  16508. Usually this means the macro was only invoked conditionally." >&2;}
  16509. { (exit 1); exit 1; }; }
  16510. fi
  16511. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  16512. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  16513. Usually this means the macro was only invoked conditionally." >&5
  16514. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  16515. Usually this means the macro was only invoked conditionally." >&2;}
  16516. { (exit 1); exit 1; }; }
  16517. fi
  16518. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  16519. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  16520. Usually this means the macro was only invoked conditionally." >&5
  16521. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  16522. Usually this means the macro was only invoked conditionally." >&2;}
  16523. { (exit 1); exit 1; }; }
  16524. fi
  16525. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  16526. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  16527. Usually this means the macro was only invoked conditionally." >&5
  16528. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  16529. Usually this means the macro was only invoked conditionally." >&2;}
  16530. { (exit 1); exit 1; }; }
  16531. fi
  16532. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  16533. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  16534. Usually this means the macro was only invoked conditionally." >&5
  16535. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  16536. Usually this means the macro was only invoked conditionally." >&2;}
  16537. { (exit 1); exit 1; }; }
  16538. fi
  16539. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  16540. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  16541. Usually this means the macro was only invoked conditionally." >&5
  16542. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  16543. Usually this means the macro was only invoked conditionally." >&2;}
  16544. { (exit 1); exit 1; }; }
  16545. fi
  16546. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  16547. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  16548. Usually this means the macro was only invoked conditionally." >&5
  16549. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  16550. Usually this means the macro was only invoked conditionally." >&2;}
  16551. { (exit 1); exit 1; }; }
  16552. fi
  16553. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  16554. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  16555. Usually this means the macro was only invoked conditionally." >&5
  16556. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  16557. Usually this means the macro was only invoked conditionally." >&2;}
  16558. { (exit 1); exit 1; }; }
  16559. fi
  16560. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  16561. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  16562. Usually this means the macro was only invoked conditionally." >&5
  16563. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  16564. Usually this means the macro was only invoked conditionally." >&2;}
  16565. { (exit 1); exit 1; }; }
  16566. fi
  16567. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  16568. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  16569. Usually this means the macro was only invoked conditionally." >&5
  16570. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  16571. Usually this means the macro was only invoked conditionally." >&2;}
  16572. { (exit 1); exit 1; }; }
  16573. fi
  16574. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  16575. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  16576. Usually this means the macro was only invoked conditionally." >&5
  16577. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  16578. Usually this means the macro was only invoked conditionally." >&2;}
  16579. { (exit 1); exit 1; }; }
  16580. fi
  16581. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  16582. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  16583. Usually this means the macro was only invoked conditionally." >&5
  16584. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  16585. Usually this means the macro was only invoked conditionally." >&2;}
  16586. { (exit 1); exit 1; }; }
  16587. fi
  16588. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  16589. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  16590. Usually this means the macro was only invoked conditionally." >&5
  16591. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  16592. Usually this means the macro was only invoked conditionally." >&2;}
  16593. { (exit 1); exit 1; }; }
  16594. fi
  16595. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  16596. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16597. Usually this means the macro was only invoked conditionally." >&5
  16598. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16599. Usually this means the macro was only invoked conditionally." >&2;}
  16600. { (exit 1); exit 1; }; }
  16601. fi
  16602. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  16603. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16604. Usually this means the macro was only invoked conditionally." >&5
  16605. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16606. Usually this means the macro was only invoked conditionally." >&2;}
  16607. { (exit 1); exit 1; }; }
  16608. fi
  16609. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  16610. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16611. Usually this means the macro was only invoked conditionally." >&5
  16612. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16613. Usually this means the macro was only invoked conditionally." >&2;}
  16614. { (exit 1); exit 1; }; }
  16615. fi
  16616. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  16617. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16618. Usually this means the macro was only invoked conditionally." >&5
  16619. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16620. Usually this means the macro was only invoked conditionally." >&2;}
  16621. { (exit 1); exit 1; }; }
  16622. fi
  16623. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  16624. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  16625. Usually this means the macro was only invoked conditionally." >&5
  16626. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  16627. Usually this means the macro was only invoked conditionally." >&2;}
  16628. { (exit 1); exit 1; }; }
  16629. fi
  16630. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  16631. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  16632. Usually this means the macro was only invoked conditionally." >&5
  16633. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  16634. Usually this means the macro was only invoked conditionally." >&2;}
  16635. { (exit 1); exit 1; }; }
  16636. fi
  16637. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  16638. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  16639. Usually this means the macro was only invoked conditionally." >&5
  16640. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  16641. Usually this means the macro was only invoked conditionally." >&2;}
  16642. { (exit 1); exit 1; }; }
  16643. fi
  16644. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  16645. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  16646. Usually this means the macro was only invoked conditionally." >&5
  16647. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  16648. Usually this means the macro was only invoked conditionally." >&2;}
  16649. { (exit 1); exit 1; }; }
  16650. fi
  16651. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  16652. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  16653. Usually this means the macro was only invoked conditionally." >&5
  16654. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  16655. Usually this means the macro was only invoked conditionally." >&2;}
  16656. { (exit 1); exit 1; }; }
  16657. fi
  16658. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  16659. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  16660. Usually this means the macro was only invoked conditionally." >&5
  16661. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  16662. Usually this means the macro was only invoked conditionally." >&2;}
  16663. { (exit 1); exit 1; }; }
  16664. fi
  16665. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  16666. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  16667. Usually this means the macro was only invoked conditionally." >&5
  16668. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  16669. Usually this means the macro was only invoked conditionally." >&2;}
  16670. { (exit 1); exit 1; }; }
  16671. fi
  16672. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  16673. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  16674. Usually this means the macro was only invoked conditionally." >&5
  16675. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  16676. Usually this means the macro was only invoked conditionally." >&2;}
  16677. { (exit 1); exit 1; }; }
  16678. fi
  16679. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  16680. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  16681. Usually this means the macro was only invoked conditionally." >&5
  16682. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  16683. Usually this means the macro was only invoked conditionally." >&2;}
  16684. { (exit 1); exit 1; }; }
  16685. fi
  16686. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  16687. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  16688. Usually this means the macro was only invoked conditionally." >&5
  16689. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  16690. Usually this means the macro was only invoked conditionally." >&2;}
  16691. { (exit 1); exit 1; }; }
  16692. fi
  16693. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  16694. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16695. Usually this means the macro was only invoked conditionally." >&5
  16696. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16697. Usually this means the macro was only invoked conditionally." >&2;}
  16698. { (exit 1); exit 1; }; }
  16699. fi
  16700. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  16701. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16702. Usually this means the macro was only invoked conditionally." >&5
  16703. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16704. Usually this means the macro was only invoked conditionally." >&2;}
  16705. { (exit 1); exit 1; }; }
  16706. fi
  16707. : ${CONFIG_STATUS=./config.status}
  16708. ac_clean_files_save=$ac_clean_files
  16709. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  16710. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  16711. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  16712. cat >$CONFIG_STATUS <<_ACEOF
  16713. #! $SHELL
  16714. # Generated by $as_me.
  16715. # Run this file to recreate the current configuration.
  16716. # Compiler output produced by configure, useful for debugging
  16717. # configure, is in config.log if it exists.
  16718. debug=false
  16719. ac_cs_recheck=false
  16720. ac_cs_silent=false
  16721. SHELL=\${CONFIG_SHELL-$SHELL}
  16722. _ACEOF
  16723. cat >>$CONFIG_STATUS <<\_ACEOF
  16724. ## --------------------- ##
  16725. ## M4sh Initialization. ##
  16726. ## --------------------- ##
  16727. # Be more Bourne compatible
  16728. DUALCASE=1; export DUALCASE # for MKS sh
  16729. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16730. emulate sh
  16731. NULLCMD=:
  16732. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16733. # is contrary to our usage. Disable this feature.
  16734. alias -g '${1+"$@"}'='"$@"'
  16735. setopt NO_GLOB_SUBST
  16736. else
  16737. case `(set -o) 2>/dev/null` in
  16738. *posix*) set -o posix ;;
  16739. esac
  16740. fi
  16741. # PATH needs CR
  16742. # Avoid depending upon Character Ranges.
  16743. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16744. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16745. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  16746. as_cr_digits='0123456789'
  16747. as_cr_alnum=$as_cr_Letters$as_cr_digits
  16748. # The user is always right.
  16749. if test "${PATH_SEPARATOR+set}" != set; then
  16750. echo "#! /bin/sh" >conf$$.sh
  16751. echo "exit 0" >>conf$$.sh
  16752. chmod +x conf$$.sh
  16753. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  16754. PATH_SEPARATOR=';'
  16755. else
  16756. PATH_SEPARATOR=:
  16757. fi
  16758. rm -f conf$$.sh
  16759. fi
  16760. # Support unset when possible.
  16761. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  16762. as_unset=unset
  16763. else
  16764. as_unset=false
  16765. fi
  16766. # IFS
  16767. # We need space, tab and new line, in precisely that order. Quoting is
  16768. # there to prevent editors from complaining about space-tab.
  16769. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  16770. # splitting by setting IFS to empty value.)
  16771. as_nl='
  16772. '
  16773. IFS=" "" $as_nl"
  16774. # Find who we are. Look in the path if we contain no directory separator.
  16775. case $0 in
  16776. *[\\/]* ) as_myself=$0 ;;
  16777. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16778. for as_dir in $PATH
  16779. do
  16780. IFS=$as_save_IFS
  16781. test -z "$as_dir" && as_dir=.
  16782. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16783. done
  16784. IFS=$as_save_IFS
  16785. ;;
  16786. esac
  16787. # We did not find ourselves, most probably we were run as `sh COMMAND'
  16788. # in which case we are not to be found in the path.
  16789. if test "x$as_myself" = x; then
  16790. as_myself=$0
  16791. fi
  16792. if test ! -f "$as_myself"; then
  16793. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  16794. { (exit 1); exit 1; }
  16795. fi
  16796. # Work around bugs in pre-3.0 UWIN ksh.
  16797. for as_var in ENV MAIL MAILPATH
  16798. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  16799. done
  16800. PS1='$ '
  16801. PS2='> '
  16802. PS4='+ '
  16803. # NLS nuisances.
  16804. for as_var in \
  16805. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  16806. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  16807. LC_TELEPHONE LC_TIME
  16808. do
  16809. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  16810. eval $as_var=C; export $as_var
  16811. else
  16812. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  16813. fi
  16814. done
  16815. # Required to use basename.
  16816. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16817. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16818. as_expr=expr
  16819. else
  16820. as_expr=false
  16821. fi
  16822. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16823. as_basename=basename
  16824. else
  16825. as_basename=false
  16826. fi
  16827. # Name of the executable.
  16828. as_me=`$as_basename -- "$0" ||
  16829. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16830. X"$0" : 'X\(//\)$' \| \
  16831. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16832. echo X/"$0" |
  16833. sed '/^.*\/\([^/][^/]*\)\/*$/{
  16834. s//\1/
  16835. q
  16836. }
  16837. /^X\/\(\/\/\)$/{
  16838. s//\1/
  16839. q
  16840. }
  16841. /^X\/\(\/\).*/{
  16842. s//\1/
  16843. q
  16844. }
  16845. s/.*/./; q'`
  16846. # CDPATH.
  16847. $as_unset CDPATH
  16848. as_lineno_1=$LINENO
  16849. as_lineno_2=$LINENO
  16850. test "x$as_lineno_1" != "x$as_lineno_2" &&
  16851. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  16852. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  16853. # uniformly replaced by the line number. The first 'sed' inserts a
  16854. # line-number line after each line using $LINENO; the second 'sed'
  16855. # does the real work. The second script uses 'N' to pair each
  16856. # line-number line with the line containing $LINENO, and appends
  16857. # trailing '-' during substitution so that $LINENO is not a special
  16858. # case at line end.
  16859. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  16860. # scripts with optimization help from Paolo Bonzini. Blame Lee
  16861. # E. McMahon (1931-1989) for sed's syntax. :-)
  16862. sed -n '
  16863. p
  16864. /[$]LINENO/=
  16865. ' <$as_myself |
  16866. sed '
  16867. s/[$]LINENO.*/&-/
  16868. t lineno
  16869. b
  16870. :lineno
  16871. N
  16872. :loop
  16873. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  16874. t loop
  16875. s/-\n.*//
  16876. ' >$as_me.lineno &&
  16877. chmod +x "$as_me.lineno" ||
  16878. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  16879. { (exit 1); exit 1; }; }
  16880. # Don't try to exec as it changes $[0], causing all sort of problems
  16881. # (the dirname of $[0] is not the place where we might find the
  16882. # original and so on. Autoconf is especially sensitive to this).
  16883. . "./$as_me.lineno"
  16884. # Exit status is that of the last command.
  16885. exit
  16886. }
  16887. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16888. as_dirname=dirname
  16889. else
  16890. as_dirname=false
  16891. fi
  16892. ECHO_C= ECHO_N= ECHO_T=
  16893. case `echo -n x` in
  16894. -n*)
  16895. case `echo 'x\c'` in
  16896. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16897. *) ECHO_C='\c';;
  16898. esac;;
  16899. *)
  16900. ECHO_N='-n';;
  16901. esac
  16902. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16903. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16904. as_expr=expr
  16905. else
  16906. as_expr=false
  16907. fi
  16908. rm -f conf$$ conf$$.exe conf$$.file
  16909. if test -d conf$$.dir; then
  16910. rm -f conf$$.dir/conf$$.file
  16911. else
  16912. rm -f conf$$.dir
  16913. mkdir conf$$.dir
  16914. fi
  16915. echo >conf$$.file
  16916. if ln -s conf$$.file conf$$ 2>/dev/null; then
  16917. as_ln_s='ln -s'
  16918. # ... but there are two gotchas:
  16919. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16920. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16921. # In both cases, we have to default to `cp -p'.
  16922. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16923. as_ln_s='cp -p'
  16924. elif ln conf$$.file conf$$ 2>/dev/null; then
  16925. as_ln_s=ln
  16926. else
  16927. as_ln_s='cp -p'
  16928. fi
  16929. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16930. rmdir conf$$.dir 2>/dev/null
  16931. if mkdir -p . 2>/dev/null; then
  16932. as_mkdir_p=:
  16933. else
  16934. test -d ./-p && rmdir ./-p
  16935. as_mkdir_p=false
  16936. fi
  16937. if test -x / >/dev/null 2>&1; then
  16938. as_test_x='test -x'
  16939. else
  16940. if ls -dL / >/dev/null 2>&1; then
  16941. as_ls_L_option=L
  16942. else
  16943. as_ls_L_option=
  16944. fi
  16945. as_test_x='
  16946. eval sh -c '\''
  16947. if test -d "$1"; then
  16948. test -d "$1/.";
  16949. else
  16950. case $1 in
  16951. -*)set "./$1";;
  16952. esac;
  16953. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  16954. ???[sx]*):;;*)false;;esac;fi
  16955. '\'' sh
  16956. '
  16957. fi
  16958. as_executable_p=$as_test_x
  16959. # Sed expression to map a string onto a valid CPP name.
  16960. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16961. # Sed expression to map a string onto a valid variable name.
  16962. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16963. exec 6>&1
  16964. # Save the log message, to keep $[0] and so on meaningful, and to
  16965. # report actual input values of CONFIG_FILES etc. instead of their
  16966. # values after options handling.
  16967. ac_log="
  16968. This file was extended by aria2c $as_me 0.12.0, which was
  16969. generated by GNU Autoconf 2.61. Invocation command line was
  16970. CONFIG_FILES = $CONFIG_FILES
  16971. CONFIG_HEADERS = $CONFIG_HEADERS
  16972. CONFIG_LINKS = $CONFIG_LINKS
  16973. CONFIG_COMMANDS = $CONFIG_COMMANDS
  16974. $ $0 $@
  16975. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16976. "
  16977. _ACEOF
  16978. cat >>$CONFIG_STATUS <<_ACEOF
  16979. # Files that config.status was made for.
  16980. config_files="$ac_config_files"
  16981. config_headers="$ac_config_headers"
  16982. config_commands="$ac_config_commands"
  16983. _ACEOF
  16984. cat >>$CONFIG_STATUS <<\_ACEOF
  16985. ac_cs_usage="\
  16986. \`$as_me' instantiates files from templates according to the
  16987. current configuration.
  16988. Usage: $0 [OPTIONS] [FILE]...
  16989. -h, --help print this help, then exit
  16990. -V, --version print version number and configuration settings, then exit
  16991. -q, --quiet do not print progress messages
  16992. -d, --debug don't remove temporary files
  16993. --recheck update $as_me by reconfiguring in the same conditions
  16994. --file=FILE[:TEMPLATE]
  16995. instantiate the configuration file FILE
  16996. --header=FILE[:TEMPLATE]
  16997. instantiate the configuration header FILE
  16998. Configuration files:
  16999. $config_files
  17000. Configuration headers:
  17001. $config_headers
  17002. Configuration commands:
  17003. $config_commands
  17004. Report bugs to <bug-autoconf@gnu.org>."
  17005. _ACEOF
  17006. cat >>$CONFIG_STATUS <<_ACEOF
  17007. ac_cs_version="\\
  17008. aria2c config.status 0.12.0
  17009. configured by $0, generated by GNU Autoconf 2.61,
  17010. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  17011. Copyright (C) 2006 Free Software Foundation, Inc.
  17012. This config.status script is free software; the Free Software Foundation
  17013. gives unlimited permission to copy, distribute and modify it."
  17014. ac_pwd='$ac_pwd'
  17015. srcdir='$srcdir'
  17016. INSTALL='$INSTALL'
  17017. _ACEOF
  17018. cat >>$CONFIG_STATUS <<\_ACEOF
  17019. # If no file are specified by the user, then we need to provide default
  17020. # value. By we need to know if files were specified by the user.
  17021. ac_need_defaults=:
  17022. while test $# != 0
  17023. do
  17024. case $1 in
  17025. --*=*)
  17026. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17027. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  17028. ac_shift=:
  17029. ;;
  17030. *)
  17031. ac_option=$1
  17032. ac_optarg=$2
  17033. ac_shift=shift
  17034. ;;
  17035. esac
  17036. case $ac_option in
  17037. # Handling of the options.
  17038. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  17039. ac_cs_recheck=: ;;
  17040. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  17041. echo "$ac_cs_version"; exit ;;
  17042. --debug | --debu | --deb | --de | --d | -d )
  17043. debug=: ;;
  17044. --file | --fil | --fi | --f )
  17045. $ac_shift
  17046. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  17047. ac_need_defaults=false;;
  17048. --header | --heade | --head | --hea )
  17049. $ac_shift
  17050. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  17051. ac_need_defaults=false;;
  17052. --he | --h)
  17053. # Conflict between --help and --header
  17054. { echo "$as_me: error: ambiguous option: $1
  17055. Try \`$0 --help' for more information." >&2
  17056. { (exit 1); exit 1; }; };;
  17057. --help | --hel | -h )
  17058. echo "$ac_cs_usage"; exit ;;
  17059. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17060. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  17061. ac_cs_silent=: ;;
  17062. # This is an error.
  17063. -*) { echo "$as_me: error: unrecognized option: $1
  17064. Try \`$0 --help' for more information." >&2
  17065. { (exit 1); exit 1; }; } ;;
  17066. *) ac_config_targets="$ac_config_targets $1"
  17067. ac_need_defaults=false ;;
  17068. esac
  17069. shift
  17070. done
  17071. ac_configure_extra_args=
  17072. if $ac_cs_silent; then
  17073. exec 6>/dev/null
  17074. ac_configure_extra_args="$ac_configure_extra_args --silent"
  17075. fi
  17076. _ACEOF
  17077. cat >>$CONFIG_STATUS <<_ACEOF
  17078. if \$ac_cs_recheck; then
  17079. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  17080. CONFIG_SHELL=$SHELL
  17081. export CONFIG_SHELL
  17082. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  17083. fi
  17084. _ACEOF
  17085. cat >>$CONFIG_STATUS <<\_ACEOF
  17086. exec 5>>config.log
  17087. {
  17088. echo
  17089. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  17090. ## Running $as_me. ##
  17091. _ASBOX
  17092. echo "$ac_log"
  17093. } >&5
  17094. _ACEOF
  17095. cat >>$CONFIG_STATUS <<_ACEOF
  17096. #
  17097. # INIT-COMMANDS
  17098. #
  17099. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  17100. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  17101. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  17102. # from automake < 1.5.
  17103. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  17104. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  17105. LINGUAS="${LINGUAS-%UNSET%}"
  17106. _ACEOF
  17107. cat >>$CONFIG_STATUS <<\_ACEOF
  17108. # Handling of arguments.
  17109. for ac_config_target in $ac_config_targets
  17110. do
  17111. case $ac_config_target in
  17112. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  17113. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  17114. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  17115. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  17116. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  17117. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  17118. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  17119. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  17120. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  17121. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  17122. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  17123. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  17124. { (exit 1); exit 1; }; };;
  17125. esac
  17126. done
  17127. # If the user did not use the arguments to specify the items to instantiate,
  17128. # then the envvar interface is used. Set only those that are not.
  17129. # We use the long form for the default assignment because of an extremely
  17130. # bizarre bug on SunOS 4.1.3.
  17131. if $ac_need_defaults; then
  17132. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  17133. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  17134. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  17135. fi
  17136. # Have a temporary directory for convenience. Make it in the build tree
  17137. # simply because there is no reason against having it here, and in addition,
  17138. # creating and moving files from /tmp can sometimes cause problems.
  17139. # Hook for its removal unless debugging.
  17140. # Note that there is a small window in which the directory will not be cleaned:
  17141. # after its creation but before its name has been assigned to `$tmp'.
  17142. $debug ||
  17143. {
  17144. tmp=
  17145. trap 'exit_status=$?
  17146. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  17147. ' 0
  17148. trap '{ (exit 1); exit 1; }' 1 2 13 15
  17149. }
  17150. # Create a (secure) tmp directory for tmp files.
  17151. {
  17152. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  17153. test -n "$tmp" && test -d "$tmp"
  17154. } ||
  17155. {
  17156. tmp=./conf$$-$RANDOM
  17157. (umask 077 && mkdir "$tmp")
  17158. } ||
  17159. {
  17160. echo "$me: cannot create a temporary directory in ." >&2
  17161. { (exit 1); exit 1; }
  17162. }
  17163. #
  17164. # Set up the sed scripts for CONFIG_FILES section.
  17165. #
  17166. # No need to generate the scripts if there are no CONFIG_FILES.
  17167. # This happens for instance when ./config.status config.h
  17168. if test -n "$CONFIG_FILES"; then
  17169. _ACEOF
  17170. ac_delim='%!_!# '
  17171. for ac_last_try in false false false false false :; do
  17172. cat >conf$$subs.sed <<_ACEOF
  17173. SHELL!$SHELL$ac_delim
  17174. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  17175. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  17176. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  17177. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  17178. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  17179. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  17180. exec_prefix!$exec_prefix$ac_delim
  17181. prefix!$prefix$ac_delim
  17182. program_transform_name!$program_transform_name$ac_delim
  17183. bindir!$bindir$ac_delim
  17184. sbindir!$sbindir$ac_delim
  17185. libexecdir!$libexecdir$ac_delim
  17186. datarootdir!$datarootdir$ac_delim
  17187. datadir!$datadir$ac_delim
  17188. sysconfdir!$sysconfdir$ac_delim
  17189. sharedstatedir!$sharedstatedir$ac_delim
  17190. localstatedir!$localstatedir$ac_delim
  17191. includedir!$includedir$ac_delim
  17192. oldincludedir!$oldincludedir$ac_delim
  17193. docdir!$docdir$ac_delim
  17194. infodir!$infodir$ac_delim
  17195. htmldir!$htmldir$ac_delim
  17196. dvidir!$dvidir$ac_delim
  17197. pdfdir!$pdfdir$ac_delim
  17198. psdir!$psdir$ac_delim
  17199. libdir!$libdir$ac_delim
  17200. localedir!$localedir$ac_delim
  17201. mandir!$mandir$ac_delim
  17202. DEFS!$DEFS$ac_delim
  17203. ECHO_C!$ECHO_C$ac_delim
  17204. ECHO_N!$ECHO_N$ac_delim
  17205. ECHO_T!$ECHO_T$ac_delim
  17206. LIBS!$LIBS$ac_delim
  17207. build_alias!$build_alias$ac_delim
  17208. host_alias!$host_alias$ac_delim
  17209. target_alias!$target_alias$ac_delim
  17210. build!$build$ac_delim
  17211. build_cpu!$build_cpu$ac_delim
  17212. build_vendor!$build_vendor$ac_delim
  17213. build_os!$build_os$ac_delim
  17214. host!$host$ac_delim
  17215. host_cpu!$host_cpu$ac_delim
  17216. host_vendor!$host_vendor$ac_delim
  17217. host_os!$host_os$ac_delim
  17218. target!$target$ac_delim
  17219. target_cpu!$target_cpu$ac_delim
  17220. target_vendor!$target_vendor$ac_delim
  17221. target_os!$target_os$ac_delim
  17222. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  17223. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  17224. INSTALL_DATA!$INSTALL_DATA$ac_delim
  17225. CYGPATH_W!$CYGPATH_W$ac_delim
  17226. PACKAGE!$PACKAGE$ac_delim
  17227. VERSION!$VERSION$ac_delim
  17228. ACLOCAL!$ACLOCAL$ac_delim
  17229. AUTOCONF!$AUTOCONF$ac_delim
  17230. AUTOMAKE!$AUTOMAKE$ac_delim
  17231. AUTOHEADER!$AUTOHEADER$ac_delim
  17232. MAKEINFO!$MAKEINFO$ac_delim
  17233. install_sh!$install_sh$ac_delim
  17234. STRIP!$STRIP$ac_delim
  17235. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  17236. mkdir_p!$mkdir_p$ac_delim
  17237. AWK!$AWK$ac_delim
  17238. SET_MAKE!$SET_MAKE$ac_delim
  17239. am__leading_dot!$am__leading_dot$ac_delim
  17240. AMTAR!$AMTAR$ac_delim
  17241. am__tar!$am__tar$ac_delim
  17242. am__untar!$am__untar$ac_delim
  17243. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  17244. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  17245. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  17246. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  17247. CXX!$CXX$ac_delim
  17248. CXXFLAGS!$CXXFLAGS$ac_delim
  17249. LDFLAGS!$LDFLAGS$ac_delim
  17250. CPPFLAGS!$CPPFLAGS$ac_delim
  17251. ac_ct_CXX!$ac_ct_CXX$ac_delim
  17252. EXEEXT!$EXEEXT$ac_delim
  17253. OBJEXT!$OBJEXT$ac_delim
  17254. DEPDIR!$DEPDIR$ac_delim
  17255. am__include!$am__include$ac_delim
  17256. am__quote!$am__quote$ac_delim
  17257. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  17258. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  17259. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  17260. CXXDEPMODE!$CXXDEPMODE$ac_delim
  17261. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  17262. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  17263. CC!$CC$ac_delim
  17264. CFLAGS!$CFLAGS$ac_delim
  17265. ac_ct_CC!$ac_ct_CC$ac_delim
  17266. CCDEPMODE!$CCDEPMODE$ac_delim
  17267. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  17268. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  17269. RANLIB!$RANLIB$ac_delim
  17270. _ACEOF
  17271. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  17272. break
  17273. elif $ac_last_try; then
  17274. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  17275. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  17276. { (exit 1); exit 1; }; }
  17277. else
  17278. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17279. fi
  17280. done
  17281. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  17282. if test -n "$ac_eof"; then
  17283. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  17284. ac_eof=`expr $ac_eof + 1`
  17285. fi
  17286. cat >>$CONFIG_STATUS <<_ACEOF
  17287. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  17288. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17289. _ACEOF
  17290. sed '
  17291. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  17292. s/^/s,@/; s/!/@,|#_!!_#|/
  17293. :n
  17294. t n
  17295. s/'"$ac_delim"'$/,g/; t
  17296. s/$/\\/; p
  17297. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  17298. ' >>$CONFIG_STATUS <conf$$subs.sed
  17299. rm -f conf$$subs.sed
  17300. cat >>$CONFIG_STATUS <<_ACEOF
  17301. CEOF$ac_eof
  17302. _ACEOF
  17303. ac_delim='%!_!# '
  17304. for ac_last_try in false false false false false :; do
  17305. cat >conf$$subs.sed <<_ACEOF
  17306. YACC!$YACC$ac_delim
  17307. YFLAGS!$YFLAGS$ac_delim
  17308. CXXCPP!$CXXCPP$ac_delim
  17309. GREP!$GREP$ac_delim
  17310. EGREP!$EGREP$ac_delim
  17311. XML2_CONFIG!$XML2_CONFIG$ac_delim
  17312. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  17313. XML_LIBS!$XML_LIBS$ac_delim
  17314. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  17315. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  17316. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  17317. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  17318. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  17319. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  17320. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  17321. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  17322. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  17323. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  17324. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  17325. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  17326. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  17327. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  17328. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  17329. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  17330. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  17331. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  17332. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  17333. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  17334. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  17335. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  17336. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  17337. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  17338. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  17339. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  17340. ALLOCA!$ALLOCA$ac_delim
  17341. USE_NLS!$USE_NLS$ac_delim
  17342. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  17343. MSGFMT!$MSGFMT$ac_delim
  17344. GMSGFMT!$GMSGFMT$ac_delim
  17345. MSGFMT_015!$MSGFMT_015$ac_delim
  17346. GMSGFMT_015!$GMSGFMT_015$ac_delim
  17347. XGETTEXT!$XGETTEXT$ac_delim
  17348. XGETTEXT_015!$XGETTEXT_015$ac_delim
  17349. MSGMERGE!$MSGMERGE$ac_delim
  17350. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  17351. GLIBC2!$GLIBC2$ac_delim
  17352. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  17353. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  17354. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  17355. LIBPTH!$LIBPTH$ac_delim
  17356. LTLIBPTH!$LTLIBPTH$ac_delim
  17357. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  17358. LIBTHREAD!$LIBTHREAD$ac_delim
  17359. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  17360. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  17361. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  17362. LIBICONV!$LIBICONV$ac_delim
  17363. LTLIBICONV!$LTLIBICONV$ac_delim
  17364. INTLBISON!$INTLBISON$ac_delim
  17365. GLIBC21!$GLIBC21$ac_delim
  17366. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  17367. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  17368. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  17369. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  17370. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  17371. WOE32DLL!$WOE32DLL$ac_delim
  17372. WOE32!$WOE32$ac_delim
  17373. WINDRES!$WINDRES$ac_delim
  17374. LTLIBC!$LTLIBC$ac_delim
  17375. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  17376. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  17377. CATOBJEXT!$CATOBJEXT$ac_delim
  17378. DATADIRNAME!$DATADIRNAME$ac_delim
  17379. INSTOBJEXT!$INSTOBJEXT$ac_delim
  17380. GENCAT!$GENCAT$ac_delim
  17381. INTLOBJS!$INTLOBJS$ac_delim
  17382. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  17383. INTLLIBS!$INTLLIBS$ac_delim
  17384. LIBINTL!$LIBINTL$ac_delim
  17385. LTLIBINTL!$LTLIBINTL$ac_delim
  17386. POSUB!$POSUB$ac_delim
  17387. LIBOBJS!$LIBOBJS$ac_delim
  17388. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  17389. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  17390. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  17391. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  17392. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  17393. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  17394. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  17395. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  17396. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  17397. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  17398. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  17399. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  17400. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  17401. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  17402. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  17403. _ACEOF
  17404. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  17405. break
  17406. elif $ac_last_try; then
  17407. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  17408. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  17409. { (exit 1); exit 1; }; }
  17410. else
  17411. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17412. fi
  17413. done
  17414. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  17415. if test -n "$ac_eof"; then
  17416. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  17417. ac_eof=`expr $ac_eof + 1`
  17418. fi
  17419. cat >>$CONFIG_STATUS <<_ACEOF
  17420. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  17421. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17422. _ACEOF
  17423. sed '
  17424. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  17425. s/^/s,@/; s/!/@,|#_!!_#|/
  17426. :n
  17427. t n
  17428. s/'"$ac_delim"'$/,g/; t
  17429. s/$/\\/; p
  17430. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  17431. ' >>$CONFIG_STATUS <conf$$subs.sed
  17432. rm -f conf$$subs.sed
  17433. cat >>$CONFIG_STATUS <<_ACEOF
  17434. CEOF$ac_eof
  17435. _ACEOF
  17436. ac_delim='%!_!# '
  17437. for ac_last_try in false false false false false :; do
  17438. cat >conf$$subs.sed <<_ACEOF
  17439. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  17440. LTLIBOBJS!$LTLIBOBJS$ac_delim
  17441. _ACEOF
  17442. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
  17443. break
  17444. elif $ac_last_try; then
  17445. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  17446. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  17447. { (exit 1); exit 1; }; }
  17448. else
  17449. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17450. fi
  17451. done
  17452. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  17453. if test -n "$ac_eof"; then
  17454. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  17455. ac_eof=`expr $ac_eof + 1`
  17456. fi
  17457. cat >>$CONFIG_STATUS <<_ACEOF
  17458. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  17459. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  17460. _ACEOF
  17461. sed '
  17462. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  17463. s/^/s,@/; s/!/@,|#_!!_#|/
  17464. :n
  17465. t n
  17466. s/'"$ac_delim"'$/,g/; t
  17467. s/$/\\/; p
  17468. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  17469. ' >>$CONFIG_STATUS <conf$$subs.sed
  17470. rm -f conf$$subs.sed
  17471. cat >>$CONFIG_STATUS <<_ACEOF
  17472. :end
  17473. s/|#_!!_#|//g
  17474. CEOF$ac_eof
  17475. _ACEOF
  17476. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  17477. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  17478. # trailing colons and then remove the whole line if VPATH becomes empty
  17479. # (actually we leave an empty line to preserve line numbers).
  17480. if test "x$srcdir" = x.; then
  17481. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  17482. s/:*\$(srcdir):*/:/
  17483. s/:*\${srcdir}:*/:/
  17484. s/:*@srcdir@:*/:/
  17485. s/^\([^=]*=[ ]*\):*/\1/
  17486. s/:*$//
  17487. s/^[^=]*=[ ]*$//
  17488. }'
  17489. fi
  17490. cat >>$CONFIG_STATUS <<\_ACEOF
  17491. fi # test -n "$CONFIG_FILES"
  17492. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  17493. do
  17494. case $ac_tag in
  17495. :[FHLC]) ac_mode=$ac_tag; continue;;
  17496. esac
  17497. case $ac_mode$ac_tag in
  17498. :[FHL]*:*);;
  17499. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  17500. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  17501. { (exit 1); exit 1; }; };;
  17502. :[FH]-) ac_tag=-:-;;
  17503. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  17504. esac
  17505. ac_save_IFS=$IFS
  17506. IFS=:
  17507. set x $ac_tag
  17508. IFS=$ac_save_IFS
  17509. shift
  17510. ac_file=$1
  17511. shift
  17512. case $ac_mode in
  17513. :L) ac_source=$1;;
  17514. :[FH])
  17515. ac_file_inputs=
  17516. for ac_f
  17517. do
  17518. case $ac_f in
  17519. -) ac_f="$tmp/stdin";;
  17520. *) # Look for the file first in the build tree, then in the source tree
  17521. # (if the path is not absolute). The absolute path cannot be DOS-style,
  17522. # because $ac_f cannot contain `:'.
  17523. test -f "$ac_f" ||
  17524. case $ac_f in
  17525. [\\/$]*) false;;
  17526. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  17527. esac ||
  17528. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  17529. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  17530. { (exit 1); exit 1; }; };;
  17531. esac
  17532. ac_file_inputs="$ac_file_inputs $ac_f"
  17533. done
  17534. # Let's still pretend it is `configure' which instantiates (i.e., don't
  17535. # use $as_me), people would be surprised to read:
  17536. # /* config.h. Generated by config.status. */
  17537. configure_input="Generated from "`IFS=:
  17538. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  17539. if test x"$ac_file" != x-; then
  17540. configure_input="$ac_file. $configure_input"
  17541. { echo "$as_me:$LINENO: creating $ac_file" >&5
  17542. echo "$as_me: creating $ac_file" >&6;}
  17543. fi
  17544. case $ac_tag in
  17545. *:-:* | *:-) cat >"$tmp/stdin";;
  17546. esac
  17547. ;;
  17548. esac
  17549. ac_dir=`$as_dirname -- "$ac_file" ||
  17550. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17551. X"$ac_file" : 'X\(//\)[^/]' \| \
  17552. X"$ac_file" : 'X\(//\)$' \| \
  17553. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  17554. echo X"$ac_file" |
  17555. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17556. s//\1/
  17557. q
  17558. }
  17559. /^X\(\/\/\)[^/].*/{
  17560. s//\1/
  17561. q
  17562. }
  17563. /^X\(\/\/\)$/{
  17564. s//\1/
  17565. q
  17566. }
  17567. /^X\(\/\).*/{
  17568. s//\1/
  17569. q
  17570. }
  17571. s/.*/./; q'`
  17572. { as_dir="$ac_dir"
  17573. case $as_dir in #(
  17574. -*) as_dir=./$as_dir;;
  17575. esac
  17576. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  17577. as_dirs=
  17578. while :; do
  17579. case $as_dir in #(
  17580. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  17581. *) as_qdir=$as_dir;;
  17582. esac
  17583. as_dirs="'$as_qdir' $as_dirs"
  17584. as_dir=`$as_dirname -- "$as_dir" ||
  17585. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17586. X"$as_dir" : 'X\(//\)[^/]' \| \
  17587. X"$as_dir" : 'X\(//\)$' \| \
  17588. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17589. echo X"$as_dir" |
  17590. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17591. s//\1/
  17592. q
  17593. }
  17594. /^X\(\/\/\)[^/].*/{
  17595. s//\1/
  17596. q
  17597. }
  17598. /^X\(\/\/\)$/{
  17599. s//\1/
  17600. q
  17601. }
  17602. /^X\(\/\).*/{
  17603. s//\1/
  17604. q
  17605. }
  17606. s/.*/./; q'`
  17607. test -d "$as_dir" && break
  17608. done
  17609. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17610. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  17611. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  17612. { (exit 1); exit 1; }; }; }
  17613. ac_builddir=.
  17614. case "$ac_dir" in
  17615. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17616. *)
  17617. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  17618. # A ".." for each directory in $ac_dir_suffix.
  17619. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  17620. case $ac_top_builddir_sub in
  17621. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17622. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17623. esac ;;
  17624. esac
  17625. ac_abs_top_builddir=$ac_pwd
  17626. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17627. # for backward compatibility:
  17628. ac_top_builddir=$ac_top_build_prefix
  17629. case $srcdir in
  17630. .) # We are building in place.
  17631. ac_srcdir=.
  17632. ac_top_srcdir=$ac_top_builddir_sub
  17633. ac_abs_top_srcdir=$ac_pwd ;;
  17634. [\\/]* | ?:[\\/]* ) # Absolute name.
  17635. ac_srcdir=$srcdir$ac_dir_suffix;
  17636. ac_top_srcdir=$srcdir
  17637. ac_abs_top_srcdir=$srcdir ;;
  17638. *) # Relative name.
  17639. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17640. ac_top_srcdir=$ac_top_build_prefix$srcdir
  17641. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17642. esac
  17643. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17644. case $ac_mode in
  17645. :F)
  17646. #
  17647. # CONFIG_FILE
  17648. #
  17649. case $INSTALL in
  17650. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  17651. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  17652. esac
  17653. _ACEOF
  17654. cat >>$CONFIG_STATUS <<\_ACEOF
  17655. # If the template does not know about datarootdir, expand it.
  17656. # FIXME: This hack should be removed a few years after 2.60.
  17657. ac_datarootdir_hack=; ac_datarootdir_seen=
  17658. case `sed -n '/datarootdir/ {
  17659. p
  17660. q
  17661. }
  17662. /@datadir@/p
  17663. /@docdir@/p
  17664. /@infodir@/p
  17665. /@localedir@/p
  17666. /@mandir@/p
  17667. ' $ac_file_inputs` in
  17668. *datarootdir*) ac_datarootdir_seen=yes;;
  17669. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  17670. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  17671. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  17672. _ACEOF
  17673. cat >>$CONFIG_STATUS <<_ACEOF
  17674. ac_datarootdir_hack='
  17675. s&@datadir@&$datadir&g
  17676. s&@docdir@&$docdir&g
  17677. s&@infodir@&$infodir&g
  17678. s&@localedir@&$localedir&g
  17679. s&@mandir@&$mandir&g
  17680. s&\\\${datarootdir}&$datarootdir&g' ;;
  17681. esac
  17682. _ACEOF
  17683. # Neutralize VPATH when `$srcdir' = `.'.
  17684. # Shell code in configure.ac might set extrasub.
  17685. # FIXME: do we really want to maintain this feature?
  17686. cat >>$CONFIG_STATUS <<_ACEOF
  17687. sed "$ac_vpsub
  17688. $extrasub
  17689. _ACEOF
  17690. cat >>$CONFIG_STATUS <<\_ACEOF
  17691. :t
  17692. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17693. s&@configure_input@&$configure_input&;t t
  17694. s&@top_builddir@&$ac_top_builddir_sub&;t t
  17695. s&@srcdir@&$ac_srcdir&;t t
  17696. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  17697. s&@top_srcdir@&$ac_top_srcdir&;t t
  17698. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  17699. s&@builddir@&$ac_builddir&;t t
  17700. s&@abs_builddir@&$ac_abs_builddir&;t t
  17701. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  17702. s&@INSTALL@&$ac_INSTALL&;t t
  17703. $ac_datarootdir_hack
  17704. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  17705. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17706. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  17707. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  17708. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17709. which seems to be undefined. Please make sure it is defined." >&5
  17710. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17711. which seems to be undefined. Please make sure it is defined." >&2;}
  17712. rm -f "$tmp/stdin"
  17713. case $ac_file in
  17714. -) cat "$tmp/out"; rm -f "$tmp/out";;
  17715. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  17716. esac
  17717. ;;
  17718. :H)
  17719. #
  17720. # CONFIG_HEADER
  17721. #
  17722. _ACEOF
  17723. # Transform confdefs.h into a sed script `conftest.defines', that
  17724. # substitutes the proper values into config.h.in to produce config.h.
  17725. rm -f conftest.defines conftest.tail
  17726. # First, append a space to every undef/define line, to ease matching.
  17727. echo 's/$/ /' >conftest.defines
  17728. # Then, protect against being on the right side of a sed subst, or in
  17729. # an unquoted here document, in config.status. If some macros were
  17730. # called several times there might be several #defines for the same
  17731. # symbol, which is useless. But do not sort them, since the last
  17732. # AC_DEFINE must be honored.
  17733. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  17734. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  17735. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  17736. # PARAMS is the parameter list in the macro definition--in most cases, it's
  17737. # just an empty string.
  17738. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  17739. ac_dB='\\)[ (].*,\\1define\\2'
  17740. ac_dC=' '
  17741. ac_dD=' ,'
  17742. uniq confdefs.h |
  17743. sed -n '
  17744. t rset
  17745. :rset
  17746. s/^[ ]*#[ ]*define[ ][ ]*//
  17747. t ok
  17748. d
  17749. :ok
  17750. s/[\\&,]/\\&/g
  17751. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  17752. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  17753. ' >>conftest.defines
  17754. # Remove the space that was appended to ease matching.
  17755. # Then replace #undef with comments. This is necessary, for
  17756. # example, in the case of _POSIX_SOURCE, which is predefined and required
  17757. # on some systems where configure will not decide to define it.
  17758. # (The regexp can be short, since the line contains either #define or #undef.)
  17759. echo 's/ $//
  17760. s,^[ #]*u.*,/* & */,' >>conftest.defines
  17761. # Break up conftest.defines:
  17762. ac_max_sed_lines=50
  17763. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  17764. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  17765. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  17766. # et cetera.
  17767. ac_in='$ac_file_inputs'
  17768. ac_out='"$tmp/out1"'
  17769. ac_nxt='"$tmp/out2"'
  17770. while :
  17771. do
  17772. # Write a here document:
  17773. cat >>$CONFIG_STATUS <<_ACEOF
  17774. # First, check the format of the line:
  17775. cat >"\$tmp/defines.sed" <<\\CEOF
  17776. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  17777. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  17778. b
  17779. :def
  17780. _ACEOF
  17781. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  17782. echo 'CEOF
  17783. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  17784. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  17785. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  17786. grep . conftest.tail >/dev/null || break
  17787. rm -f conftest.defines
  17788. mv conftest.tail conftest.defines
  17789. done
  17790. rm -f conftest.defines conftest.tail
  17791. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  17792. cat >>$CONFIG_STATUS <<\_ACEOF
  17793. if test x"$ac_file" != x-; then
  17794. echo "/* $configure_input */" >"$tmp/config.h"
  17795. cat "$ac_result" >>"$tmp/config.h"
  17796. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  17797. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  17798. echo "$as_me: $ac_file is unchanged" >&6;}
  17799. else
  17800. rm -f $ac_file
  17801. mv "$tmp/config.h" $ac_file
  17802. fi
  17803. else
  17804. echo "/* $configure_input */"
  17805. cat "$ac_result"
  17806. fi
  17807. rm -f "$tmp/out12"
  17808. # Compute $ac_file's index in $config_headers.
  17809. _am_stamp_count=1
  17810. for _am_header in $config_headers :; do
  17811. case $_am_header in
  17812. $ac_file | $ac_file:* )
  17813. break ;;
  17814. * )
  17815. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  17816. esac
  17817. done
  17818. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  17819. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17820. X$ac_file : 'X\(//\)[^/]' \| \
  17821. X$ac_file : 'X\(//\)$' \| \
  17822. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  17823. echo X$ac_file |
  17824. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17825. s//\1/
  17826. q
  17827. }
  17828. /^X\(\/\/\)[^/].*/{
  17829. s//\1/
  17830. q
  17831. }
  17832. /^X\(\/\/\)$/{
  17833. s//\1/
  17834. q
  17835. }
  17836. /^X\(\/\).*/{
  17837. s//\1/
  17838. q
  17839. }
  17840. s/.*/./; q'`/stamp-h$_am_stamp_count
  17841. ;;
  17842. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  17843. echo "$as_me: executing $ac_file commands" >&6;}
  17844. ;;
  17845. esac
  17846. case $ac_file$ac_mode in
  17847. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  17848. # Strip MF so we end up with the name of the file.
  17849. mf=`echo "$mf" | sed -e 's/:.*$//'`
  17850. # Check whether this is an Automake generated Makefile or not.
  17851. # We used to match only the files named `Makefile.in', but
  17852. # some people rename them; so instead we look at the file content.
  17853. # Grep'ing the first line is not enough: some people post-process
  17854. # each Makefile.in and add a new line on top of each file to say so.
  17855. # So let's grep whole file.
  17856. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  17857. dirpart=`$as_dirname -- "$mf" ||
  17858. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17859. X"$mf" : 'X\(//\)[^/]' \| \
  17860. X"$mf" : 'X\(//\)$' \| \
  17861. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  17862. echo X"$mf" |
  17863. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17864. s//\1/
  17865. q
  17866. }
  17867. /^X\(\/\/\)[^/].*/{
  17868. s//\1/
  17869. q
  17870. }
  17871. /^X\(\/\/\)$/{
  17872. s//\1/
  17873. q
  17874. }
  17875. /^X\(\/\).*/{
  17876. s//\1/
  17877. q
  17878. }
  17879. s/.*/./; q'`
  17880. else
  17881. continue
  17882. fi
  17883. # Extract the definition of DEPDIR, am__include, and am__quote
  17884. # from the Makefile without running `make'.
  17885. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  17886. test -z "$DEPDIR" && continue
  17887. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  17888. test -z "am__include" && continue
  17889. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  17890. # When using ansi2knr, U may be empty or an underscore; expand it
  17891. U=`sed -n 's/^U = //p' < "$mf"`
  17892. # Find all dependency output files, they are included files with
  17893. # $(DEPDIR) in their names. We invoke sed twice because it is the
  17894. # simplest approach to changing $(DEPDIR) to its actual value in the
  17895. # expansion.
  17896. for file in `sed -n "
  17897. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  17898. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  17899. # Make sure the directory exists.
  17900. test -f "$dirpart/$file" && continue
  17901. fdir=`$as_dirname -- "$file" ||
  17902. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17903. X"$file" : 'X\(//\)[^/]' \| \
  17904. X"$file" : 'X\(//\)$' \| \
  17905. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  17906. echo X"$file" |
  17907. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17908. s//\1/
  17909. q
  17910. }
  17911. /^X\(\/\/\)[^/].*/{
  17912. s//\1/
  17913. q
  17914. }
  17915. /^X\(\/\/\)$/{
  17916. s//\1/
  17917. q
  17918. }
  17919. /^X\(\/\).*/{
  17920. s//\1/
  17921. q
  17922. }
  17923. s/.*/./; q'`
  17924. { as_dir=$dirpart/$fdir
  17925. case $as_dir in #(
  17926. -*) as_dir=./$as_dir;;
  17927. esac
  17928. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  17929. as_dirs=
  17930. while :; do
  17931. case $as_dir in #(
  17932. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  17933. *) as_qdir=$as_dir;;
  17934. esac
  17935. as_dirs="'$as_qdir' $as_dirs"
  17936. as_dir=`$as_dirname -- "$as_dir" ||
  17937. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17938. X"$as_dir" : 'X\(//\)[^/]' \| \
  17939. X"$as_dir" : 'X\(//\)$' \| \
  17940. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17941. echo X"$as_dir" |
  17942. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17943. s//\1/
  17944. q
  17945. }
  17946. /^X\(\/\/\)[^/].*/{
  17947. s//\1/
  17948. q
  17949. }
  17950. /^X\(\/\/\)$/{
  17951. s//\1/
  17952. q
  17953. }
  17954. /^X\(\/\).*/{
  17955. s//\1/
  17956. q
  17957. }
  17958. s/.*/./; q'`
  17959. test -d "$as_dir" && break
  17960. done
  17961. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17962. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  17963. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  17964. { (exit 1); exit 1; }; }; }
  17965. # echo "creating $dirpart/$file"
  17966. echo '# dummy' > "$dirpart/$file"
  17967. done
  17968. done
  17969. ;;
  17970. "po-directories":C)
  17971. for ac_file in $CONFIG_FILES; do
  17972. # Support "outfile[:infile[:infile...]]"
  17973. case "$ac_file" in
  17974. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  17975. esac
  17976. # PO directories have a Makefile.in generated from Makefile.in.in.
  17977. case "$ac_file" in */Makefile.in)
  17978. # Adjust a relative srcdir.
  17979. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  17980. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  17981. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  17982. # In autoconf-2.13 it is called $ac_given_srcdir.
  17983. # In autoconf-2.50 it is called $srcdir.
  17984. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  17985. case "$ac_given_srcdir" in
  17986. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  17987. /*) top_srcdir="$ac_given_srcdir" ;;
  17988. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  17989. esac
  17990. # Treat a directory as a PO directory if and only if it has a
  17991. # POTFILES.in file. This allows packages to have multiple PO
  17992. # directories under different names or in different locations.
  17993. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  17994. rm -f "$ac_dir/POTFILES"
  17995. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  17996. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  17997. POMAKEFILEDEPS="POTFILES.in"
  17998. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  17999. # on $ac_dir but don't depend on user-specified configuration
  18000. # parameters.
  18001. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  18002. # The LINGUAS file contains the set of available languages.
  18003. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  18004. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  18005. fi
  18006. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  18007. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  18008. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  18009. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  18010. else
  18011. # The set of available languages was given in configure.in.
  18012. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  18013. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  18014. fi
  18015. # Compute POFILES
  18016. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  18017. # Compute UPDATEPOFILES
  18018. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  18019. # Compute DUMMYPOFILES
  18020. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  18021. # Compute GMOFILES
  18022. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  18023. case "$ac_given_srcdir" in
  18024. .) srcdirpre= ;;
  18025. *) srcdirpre='$(srcdir)/' ;;
  18026. esac
  18027. POFILES=
  18028. UPDATEPOFILES=
  18029. DUMMYPOFILES=
  18030. GMOFILES=
  18031. for lang in $ALL_LINGUAS; do
  18032. POFILES="$POFILES $srcdirpre$lang.po"
  18033. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  18034. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  18035. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  18036. done
  18037. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  18038. # environment variable.
  18039. INST_LINGUAS=
  18040. if test -n "$ALL_LINGUAS"; then
  18041. for presentlang in $ALL_LINGUAS; do
  18042. useit=no
  18043. if test "%UNSET%" != "$LINGUAS"; then
  18044. desiredlanguages="$LINGUAS"
  18045. else
  18046. desiredlanguages="$ALL_LINGUAS"
  18047. fi
  18048. for desiredlang in $desiredlanguages; do
  18049. # Use the presentlang catalog if desiredlang is
  18050. # a. equal to presentlang, or
  18051. # b. a variant of presentlang (because in this case,
  18052. # presentlang can be used as a fallback for messages
  18053. # which are not translated in the desiredlang catalog).
  18054. case "$desiredlang" in
  18055. "$presentlang"*) useit=yes;;
  18056. esac
  18057. done
  18058. if test $useit = yes; then
  18059. INST_LINGUAS="$INST_LINGUAS $presentlang"
  18060. fi
  18061. done
  18062. fi
  18063. CATALOGS=
  18064. if test -n "$INST_LINGUAS"; then
  18065. for lang in $INST_LINGUAS; do
  18066. CATALOGS="$CATALOGS $lang.gmo"
  18067. done
  18068. fi
  18069. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  18070. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  18071. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  18072. if test -f "$f"; then
  18073. case "$f" in
  18074. *.orig | *.bak | *~) ;;
  18075. *) cat "$f" >> "$ac_dir/Makefile" ;;
  18076. esac
  18077. fi
  18078. done
  18079. fi
  18080. ;;
  18081. esac
  18082. done ;;
  18083. esac
  18084. done # for ac_tag
  18085. { (exit 0); exit 0; }
  18086. _ACEOF
  18087. chmod +x $CONFIG_STATUS
  18088. ac_clean_files=$ac_clean_files_save
  18089. # configure is writing to config.log, and then calls config.status.
  18090. # config.status does its own redirection, appending to config.log.
  18091. # Unfortunately, on DOS this fails, as config.log is still kept open
  18092. # by configure, so config.status won't be able to write to it; its
  18093. # output is simply discarded. So we exec the FD to /dev/null,
  18094. # effectively closing config.log, so it can be properly (re)opened and
  18095. # appended to by config.status. When coming back to configure, we
  18096. # need to make the FD available again.
  18097. if test "$no_create" != yes; then
  18098. ac_cs_success=:
  18099. ac_config_status_args=
  18100. test "$silent" = yes &&
  18101. ac_config_status_args="$ac_config_status_args --quiet"
  18102. exec 5>/dev/null
  18103. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  18104. exec 5>>config.log
  18105. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  18106. # would make configure fail if this is the last instruction.
  18107. $ac_cs_success || { (exit 1); exit 1; }
  18108. fi
  18109. echo " "
  18110. echo "Build: $build"
  18111. echo "Target: $target"
  18112. echo "Install prefix: $prefix"
  18113. echo "CFLAGS: $CFLAGS"
  18114. echo "CPPFLAGS: $CPPFLAGS"
  18115. echo "LDFLAGS: $LDFLAGS"
  18116. echo "LIBS: $LIBS"
  18117. echo "GnuTLS: $have_libgnutls"
  18118. echo "OpenSSL: $have_openssl"
  18119. echo "LibXML2: $have_libxml2"
  18120. echo "LibExpat: $have_libexpat"
  18121. echo "LibAres: $have_libares"
  18122. echo "LibCares: $have_libcares"
  18123. echo "Bittorrent: $enable_bittorrent"
  18124. echo "Metalink: $enable_metalink"