configure 590 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.13.0+1.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.13.0+1'
  496. PACKAGE_STRING='aria2c 0.13.0+1'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. 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.13.0+1 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.13.0+1:";;
  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-largefile omit support for large files
  1251. --disable-nls do not use Native Language Support
  1252. --enable-threads={posix|solaris|pth|win32}
  1253. specify multithreading API
  1254. --disable-threads build without multithread safety
  1255. --disable-rpath do not hardcode runtime library paths
  1256. Optional Packages:
  1257. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1258. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1259. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1260. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1261. --with-gnutls use gnutls library if installed. Default: yes
  1262. --with-openssl use openssl library if installed. Default: yes
  1263. --with-libxml2 use libxml2 library if installed. Default: yes
  1264. --with-libexpat use libexpat library if installed. Default: yes
  1265. --with-libares use ares library if installed. Default: yes
  1266. --with-libcares use c-ares library if installed. Default: yes
  1267. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1268. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1269. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1270. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1271. --with-libgcrypt-prefix=PFX
  1272. prefix where LIBGCRYPT is installed (optional)
  1273. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1274. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1275. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1276. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1277. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1278. --without-libpth-prefix don't search for libpth in includedir and libdir
  1279. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1280. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1281. --with-included-gettext use the GNU gettext library included here
  1282. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1283. --without-libintl-prefix don't search for libintl in includedir and libdir
  1284. Some influential environment variables:
  1285. CXX C++ compiler command
  1286. CXXFLAGS C++ compiler flags
  1287. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1288. nonstandard directory <lib dir>
  1289. LIBS libraries to pass to the linker, e.g. -l<library>
  1290. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1291. you have headers in a nonstandard directory <include dir>
  1292. CC C compiler command
  1293. CFLAGS C compiler flags
  1294. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1295. the first program found out of: `bison -y', `byacc', `yacc'.
  1296. YFLAGS The list of arguments that will be passed by default to $YACC.
  1297. This script will default YFLAGS to the empty string to avoid a
  1298. default value of `-d' given by some make applications.
  1299. CXXCPP C++ preprocessor
  1300. Use these variables to override the choices made by `configure' or to help
  1301. it to find libraries and programs with nonstandard names/locations.
  1302. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1303. _ACEOF
  1304. ac_status=$?
  1305. fi
  1306. if test "$ac_init_help" = "recursive"; then
  1307. # If there are subdirs, report their specific --help.
  1308. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1309. test -d "$ac_dir" || continue
  1310. ac_builddir=.
  1311. case "$ac_dir" in
  1312. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1313. *)
  1314. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1315. # A ".." for each directory in $ac_dir_suffix.
  1316. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1317. case $ac_top_builddir_sub in
  1318. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1319. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1320. esac ;;
  1321. esac
  1322. ac_abs_top_builddir=$ac_pwd
  1323. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1324. # for backward compatibility:
  1325. ac_top_builddir=$ac_top_build_prefix
  1326. case $srcdir in
  1327. .) # We are building in place.
  1328. ac_srcdir=.
  1329. ac_top_srcdir=$ac_top_builddir_sub
  1330. ac_abs_top_srcdir=$ac_pwd ;;
  1331. [\\/]* | ?:[\\/]* ) # Absolute name.
  1332. ac_srcdir=$srcdir$ac_dir_suffix;
  1333. ac_top_srcdir=$srcdir
  1334. ac_abs_top_srcdir=$srcdir ;;
  1335. *) # Relative name.
  1336. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1337. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1338. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1339. esac
  1340. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1341. cd "$ac_dir" || { ac_status=$?; continue; }
  1342. # Check for guested configure.
  1343. if test -f "$ac_srcdir/configure.gnu"; then
  1344. echo &&
  1345. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1346. elif test -f "$ac_srcdir/configure"; then
  1347. echo &&
  1348. $SHELL "$ac_srcdir/configure" --help=recursive
  1349. else
  1350. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1351. fi || ac_status=$?
  1352. cd "$ac_pwd" || { ac_status=$?; break; }
  1353. done
  1354. fi
  1355. test -n "$ac_init_help" && exit $ac_status
  1356. if $ac_init_version; then
  1357. cat <<\_ACEOF
  1358. aria2c configure 0.13.0+1
  1359. generated by GNU Autoconf 2.61
  1360. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1361. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1362. This configure script is free software; the Free Software Foundation
  1363. gives unlimited permission to copy, distribute and modify it.
  1364. _ACEOF
  1365. exit
  1366. fi
  1367. cat >config.log <<_ACEOF
  1368. This file contains any messages produced by compilers while
  1369. running configure, to aid debugging if configure makes a mistake.
  1370. It was created by aria2c $as_me 0.13.0+1, which was
  1371. generated by GNU Autoconf 2.61. Invocation command line was
  1372. $ $0 $@
  1373. _ACEOF
  1374. exec 5>>config.log
  1375. {
  1376. cat <<_ASUNAME
  1377. ## --------- ##
  1378. ## Platform. ##
  1379. ## --------- ##
  1380. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1381. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1382. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1383. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1384. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1385. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1386. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1387. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1388. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1389. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1390. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1391. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1392. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1393. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1394. _ASUNAME
  1395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1396. for as_dir in $PATH
  1397. do
  1398. IFS=$as_save_IFS
  1399. test -z "$as_dir" && as_dir=.
  1400. echo "PATH: $as_dir"
  1401. done
  1402. IFS=$as_save_IFS
  1403. } >&5
  1404. cat >&5 <<_ACEOF
  1405. ## ----------- ##
  1406. ## Core tests. ##
  1407. ## ----------- ##
  1408. _ACEOF
  1409. # Keep a trace of the command line.
  1410. # Strip out --no-create and --no-recursion so they do not pile up.
  1411. # Strip out --silent because we don't want to record it for future runs.
  1412. # Also quote any args containing shell meta-characters.
  1413. # Make two passes to allow for proper duplicate-argument suppression.
  1414. ac_configure_args=
  1415. ac_configure_args0=
  1416. ac_configure_args1=
  1417. ac_must_keep_next=false
  1418. for ac_pass in 1 2
  1419. do
  1420. for ac_arg
  1421. do
  1422. case $ac_arg in
  1423. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1424. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1425. | -silent | --silent | --silen | --sile | --sil)
  1426. continue ;;
  1427. *\'*)
  1428. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1429. esac
  1430. case $ac_pass in
  1431. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1432. 2)
  1433. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1434. if test $ac_must_keep_next = true; then
  1435. ac_must_keep_next=false # Got value, back to normal.
  1436. else
  1437. case $ac_arg in
  1438. *=* | --config-cache | -C | -disable-* | --disable-* \
  1439. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1440. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1441. | -with-* | --with-* | -without-* | --without-* | --x)
  1442. case "$ac_configure_args0 " in
  1443. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1444. esac
  1445. ;;
  1446. -* ) ac_must_keep_next=true ;;
  1447. esac
  1448. fi
  1449. ac_configure_args="$ac_configure_args '$ac_arg'"
  1450. ;;
  1451. esac
  1452. done
  1453. done
  1454. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1455. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1456. # When interrupted or exit'd, cleanup temporary files, and complete
  1457. # config.log. We remove comments because anyway the quotes in there
  1458. # would cause problems or look ugly.
  1459. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1460. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1461. trap 'exit_status=$?
  1462. # Save into config.log some information that might help in debugging.
  1463. {
  1464. echo
  1465. cat <<\_ASBOX
  1466. ## ---------------- ##
  1467. ## Cache variables. ##
  1468. ## ---------------- ##
  1469. _ASBOX
  1470. echo
  1471. # The following way of writing the cache mishandles newlines in values,
  1472. (
  1473. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1474. eval ac_val=\$$ac_var
  1475. case $ac_val in #(
  1476. *${as_nl}*)
  1477. case $ac_var in #(
  1478. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1479. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1480. esac
  1481. case $ac_var in #(
  1482. _ | IFS | as_nl) ;; #(
  1483. *) $as_unset $ac_var ;;
  1484. esac ;;
  1485. esac
  1486. done
  1487. (set) 2>&1 |
  1488. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1489. *${as_nl}ac_space=\ *)
  1490. sed -n \
  1491. "s/'\''/'\''\\\\'\'''\''/g;
  1492. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1493. ;; #(
  1494. *)
  1495. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1496. ;;
  1497. esac |
  1498. sort
  1499. )
  1500. echo
  1501. cat <<\_ASBOX
  1502. ## ----------------- ##
  1503. ## Output variables. ##
  1504. ## ----------------- ##
  1505. _ASBOX
  1506. echo
  1507. for ac_var in $ac_subst_vars
  1508. do
  1509. eval ac_val=\$$ac_var
  1510. case $ac_val in
  1511. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1512. esac
  1513. echo "$ac_var='\''$ac_val'\''"
  1514. done | sort
  1515. echo
  1516. if test -n "$ac_subst_files"; then
  1517. cat <<\_ASBOX
  1518. ## ------------------- ##
  1519. ## File substitutions. ##
  1520. ## ------------------- ##
  1521. _ASBOX
  1522. echo
  1523. for ac_var in $ac_subst_files
  1524. do
  1525. eval ac_val=\$$ac_var
  1526. case $ac_val in
  1527. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1528. esac
  1529. echo "$ac_var='\''$ac_val'\''"
  1530. done | sort
  1531. echo
  1532. fi
  1533. if test -s confdefs.h; then
  1534. cat <<\_ASBOX
  1535. ## ----------- ##
  1536. ## confdefs.h. ##
  1537. ## ----------- ##
  1538. _ASBOX
  1539. echo
  1540. cat confdefs.h
  1541. echo
  1542. fi
  1543. test "$ac_signal" != 0 &&
  1544. echo "$as_me: caught signal $ac_signal"
  1545. echo "$as_me: exit $exit_status"
  1546. } >&5
  1547. rm -f core *.core core.conftest.* &&
  1548. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1549. exit $exit_status
  1550. ' 0
  1551. for ac_signal in 1 2 13 15; do
  1552. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1553. done
  1554. ac_signal=0
  1555. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1556. rm -f -r conftest* confdefs.h
  1557. # Predefined preprocessor variables.
  1558. cat >>confdefs.h <<_ACEOF
  1559. #define PACKAGE_NAME "$PACKAGE_NAME"
  1560. _ACEOF
  1561. cat >>confdefs.h <<_ACEOF
  1562. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1563. _ACEOF
  1564. cat >>confdefs.h <<_ACEOF
  1565. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1566. _ACEOF
  1567. cat >>confdefs.h <<_ACEOF
  1568. #define PACKAGE_STRING "$PACKAGE_STRING"
  1569. _ACEOF
  1570. cat >>confdefs.h <<_ACEOF
  1571. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1572. _ACEOF
  1573. # Let the site file select an alternate cache file if it wants to.
  1574. # Prefer explicitly selected file to automatically selected ones.
  1575. if test -n "$CONFIG_SITE"; then
  1576. set x "$CONFIG_SITE"
  1577. elif test "x$prefix" != xNONE; then
  1578. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1579. else
  1580. set x "$ac_default_prefix/share/config.site" \
  1581. "$ac_default_prefix/etc/config.site"
  1582. fi
  1583. shift
  1584. for ac_site_file
  1585. do
  1586. if test -r "$ac_site_file"; then
  1587. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1588. echo "$as_me: loading site script $ac_site_file" >&6;}
  1589. sed 's/^/| /' "$ac_site_file" >&5
  1590. . "$ac_site_file"
  1591. fi
  1592. done
  1593. if test -r "$cache_file"; then
  1594. # Some versions of bash will fail to source /dev/null (special
  1595. # files actually), so we avoid doing that.
  1596. if test -f "$cache_file"; then
  1597. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1598. echo "$as_me: loading cache $cache_file" >&6;}
  1599. case $cache_file in
  1600. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1601. *) . "./$cache_file";;
  1602. esac
  1603. fi
  1604. else
  1605. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1606. echo "$as_me: creating cache $cache_file" >&6;}
  1607. >$cache_file
  1608. fi
  1609. gt_needs="$gt_needs "
  1610. # Check that the precious variables saved in the cache have kept the same
  1611. # value.
  1612. ac_cache_corrupted=false
  1613. for ac_var in $ac_precious_vars; do
  1614. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1615. eval ac_new_set=\$ac_env_${ac_var}_set
  1616. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1617. eval ac_new_val=\$ac_env_${ac_var}_value
  1618. case $ac_old_set,$ac_new_set in
  1619. set,)
  1620. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1621. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1622. ac_cache_corrupted=: ;;
  1623. ,set)
  1624. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1625. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1626. ac_cache_corrupted=: ;;
  1627. ,);;
  1628. *)
  1629. if test "x$ac_old_val" != "x$ac_new_val"; then
  1630. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1631. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1632. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1633. echo "$as_me: former value: $ac_old_val" >&2;}
  1634. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1635. echo "$as_me: current value: $ac_new_val" >&2;}
  1636. ac_cache_corrupted=:
  1637. fi;;
  1638. esac
  1639. # Pass precious variables to config.status.
  1640. if test "$ac_new_set" = set; then
  1641. case $ac_new_val in
  1642. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1643. *) ac_arg=$ac_var=$ac_new_val ;;
  1644. esac
  1645. case " $ac_configure_args " in
  1646. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1647. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1648. esac
  1649. fi
  1650. done
  1651. if $ac_cache_corrupted; then
  1652. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1653. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1654. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1655. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1656. { (exit 1); exit 1; }; }
  1657. fi
  1658. ac_ext=c
  1659. ac_cpp='$CPP $CPPFLAGS'
  1660. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1661. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1662. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1663. ac_aux_dir=
  1664. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1665. if test -f "$ac_dir/install-sh"; then
  1666. ac_aux_dir=$ac_dir
  1667. ac_install_sh="$ac_aux_dir/install-sh -c"
  1668. break
  1669. elif test -f "$ac_dir/install.sh"; then
  1670. ac_aux_dir=$ac_dir
  1671. ac_install_sh="$ac_aux_dir/install.sh -c"
  1672. break
  1673. elif test -f "$ac_dir/shtool"; then
  1674. ac_aux_dir=$ac_dir
  1675. ac_install_sh="$ac_aux_dir/shtool install -c"
  1676. break
  1677. fi
  1678. done
  1679. if test -z "$ac_aux_dir"; then
  1680. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1681. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1682. { (exit 1); exit 1; }; }
  1683. fi
  1684. # These three variables are undocumented and unsupported,
  1685. # and are intended to be withdrawn in a future Autoconf release.
  1686. # They can cause serious problems if a builder's source tree is in a directory
  1687. # whose full name contains unusual characters.
  1688. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1689. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1690. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1691. # Make sure we can run config.sub.
  1692. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1693. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1694. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1695. { (exit 1); exit 1; }; }
  1696. { echo "$as_me:$LINENO: checking build system type" >&5
  1697. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1698. if test "${ac_cv_build+set}" = set; then
  1699. echo $ECHO_N "(cached) $ECHO_C" >&6
  1700. else
  1701. ac_build_alias=$build_alias
  1702. test "x$ac_build_alias" = x &&
  1703. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1704. test "x$ac_build_alias" = x &&
  1705. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1706. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1707. { (exit 1); exit 1; }; }
  1708. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1709. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1710. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1711. { (exit 1); exit 1; }; }
  1712. fi
  1713. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1714. echo "${ECHO_T}$ac_cv_build" >&6; }
  1715. case $ac_cv_build in
  1716. *-*-*) ;;
  1717. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1718. echo "$as_me: error: invalid value of canonical build" >&2;}
  1719. { (exit 1); exit 1; }; };;
  1720. esac
  1721. build=$ac_cv_build
  1722. ac_save_IFS=$IFS; IFS='-'
  1723. set x $ac_cv_build
  1724. shift
  1725. build_cpu=$1
  1726. build_vendor=$2
  1727. shift; shift
  1728. # Remember, the first character of IFS is used to create $*,
  1729. # except with old shells:
  1730. build_os=$*
  1731. IFS=$ac_save_IFS
  1732. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1733. { echo "$as_me:$LINENO: checking host system type" >&5
  1734. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1735. if test "${ac_cv_host+set}" = set; then
  1736. echo $ECHO_N "(cached) $ECHO_C" >&6
  1737. else
  1738. if test "x$host_alias" = x; then
  1739. ac_cv_host=$ac_cv_build
  1740. else
  1741. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1742. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1743. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1744. { (exit 1); exit 1; }; }
  1745. fi
  1746. fi
  1747. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1748. echo "${ECHO_T}$ac_cv_host" >&6; }
  1749. case $ac_cv_host in
  1750. *-*-*) ;;
  1751. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1752. echo "$as_me: error: invalid value of canonical host" >&2;}
  1753. { (exit 1); exit 1; }; };;
  1754. esac
  1755. host=$ac_cv_host
  1756. ac_save_IFS=$IFS; IFS='-'
  1757. set x $ac_cv_host
  1758. shift
  1759. host_cpu=$1
  1760. host_vendor=$2
  1761. shift; shift
  1762. # Remember, the first character of IFS is used to create $*,
  1763. # except with old shells:
  1764. host_os=$*
  1765. IFS=$ac_save_IFS
  1766. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1767. { echo "$as_me:$LINENO: checking target system type" >&5
  1768. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1769. if test "${ac_cv_target+set}" = set; then
  1770. echo $ECHO_N "(cached) $ECHO_C" >&6
  1771. else
  1772. if test "x$target_alias" = x; then
  1773. ac_cv_target=$ac_cv_host
  1774. else
  1775. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1776. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1777. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1778. { (exit 1); exit 1; }; }
  1779. fi
  1780. fi
  1781. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1782. echo "${ECHO_T}$ac_cv_target" >&6; }
  1783. case $ac_cv_target in
  1784. *-*-*) ;;
  1785. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1786. echo "$as_me: error: invalid value of canonical target" >&2;}
  1787. { (exit 1); exit 1; }; };;
  1788. esac
  1789. target=$ac_cv_target
  1790. ac_save_IFS=$IFS; IFS='-'
  1791. set x $ac_cv_target
  1792. shift
  1793. target_cpu=$1
  1794. target_vendor=$2
  1795. shift; shift
  1796. # Remember, the first character of IFS is used to create $*,
  1797. # except with old shells:
  1798. target_os=$*
  1799. IFS=$ac_save_IFS
  1800. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1801. # The aliases save the names the user supplied, while $host etc.
  1802. # will get canonicalized.
  1803. test -n "$target_alias" &&
  1804. test "$program_prefix$program_suffix$program_transform_name" = \
  1805. NONENONEs,x,x, &&
  1806. program_prefix=${target_alias}-
  1807. am__api_version="1.9"
  1808. # Find a good install program. We prefer a C program (faster),
  1809. # so one script is as good as another. But avoid the broken or
  1810. # incompatible versions:
  1811. # SysV /etc/install, /usr/sbin/install
  1812. # SunOS /usr/etc/install
  1813. # IRIX /sbin/install
  1814. # AIX /bin/install
  1815. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1816. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1817. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1818. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1819. # OS/2's system install, which has a completely different semantic
  1820. # ./install, which can be erroneously created by make from ./install.sh.
  1821. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1822. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1823. if test -z "$INSTALL"; then
  1824. if test "${ac_cv_path_install+set}" = set; then
  1825. echo $ECHO_N "(cached) $ECHO_C" >&6
  1826. else
  1827. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1828. for as_dir in $PATH
  1829. do
  1830. IFS=$as_save_IFS
  1831. test -z "$as_dir" && as_dir=.
  1832. # Account for people who put trailing slashes in PATH elements.
  1833. case $as_dir/ in
  1834. ./ | .// | /cC/* | \
  1835. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1836. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1837. /usr/ucb/* ) ;;
  1838. *)
  1839. # OSF1 and SCO ODT 3.0 have their own names for install.
  1840. # Don't use installbsd from OSF since it installs stuff as root
  1841. # by default.
  1842. for ac_prog in ginstall scoinst install; do
  1843. for ac_exec_ext in '' $ac_executable_extensions; do
  1844. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1845. if test $ac_prog = install &&
  1846. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1847. # AIX install. It has an incompatible calling convention.
  1848. :
  1849. elif test $ac_prog = install &&
  1850. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1851. # program-specific install script used by HP pwplus--don't use.
  1852. :
  1853. else
  1854. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1855. break 3
  1856. fi
  1857. fi
  1858. done
  1859. done
  1860. ;;
  1861. esac
  1862. done
  1863. IFS=$as_save_IFS
  1864. fi
  1865. if test "${ac_cv_path_install+set}" = set; then
  1866. INSTALL=$ac_cv_path_install
  1867. else
  1868. # As a last resort, use the slow shell script. Don't cache a
  1869. # value for INSTALL within a source directory, because that will
  1870. # break other packages using the cache if that directory is
  1871. # removed, or if the value is a relative name.
  1872. INSTALL=$ac_install_sh
  1873. fi
  1874. fi
  1875. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1876. echo "${ECHO_T}$INSTALL" >&6; }
  1877. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1878. # It thinks the first close brace ends the variable substitution.
  1879. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1880. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1881. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1882. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1883. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1884. # Just in case
  1885. sleep 1
  1886. echo timestamp > conftest.file
  1887. # Do `set' in a subshell so we don't clobber the current shell's
  1888. # arguments. Must try -L first in case configure is actually a
  1889. # symlink; some systems play weird games with the mod time of symlinks
  1890. # (eg FreeBSD returns the mod time of the symlink's containing
  1891. # directory).
  1892. if (
  1893. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1894. if test "$*" = "X"; then
  1895. # -L didn't work.
  1896. set X `ls -t $srcdir/configure conftest.file`
  1897. fi
  1898. rm -f conftest.file
  1899. if test "$*" != "X $srcdir/configure conftest.file" \
  1900. && test "$*" != "X conftest.file $srcdir/configure"; then
  1901. # If neither matched, then we have a broken ls. This can happen
  1902. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1903. # broken ls alias from the environment. This has actually
  1904. # happened. Such a system could not be considered "sane".
  1905. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1906. alias in your environment" >&5
  1907. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1908. alias in your environment" >&2;}
  1909. { (exit 1); exit 1; }; }
  1910. fi
  1911. test "$2" = conftest.file
  1912. )
  1913. then
  1914. # Ok.
  1915. :
  1916. else
  1917. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1918. Check your system clock" >&5
  1919. echo "$as_me: error: newly created file is older than distributed files!
  1920. Check your system clock" >&2;}
  1921. { (exit 1); exit 1; }; }
  1922. fi
  1923. { echo "$as_me:$LINENO: result: yes" >&5
  1924. echo "${ECHO_T}yes" >&6; }
  1925. test "$program_prefix" != NONE &&
  1926. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1927. # Use a double $ so make ignores it.
  1928. test "$program_suffix" != NONE &&
  1929. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1930. # Double any \ or $. echo might interpret backslashes.
  1931. # By default was `s,x,x', remove it if useless.
  1932. cat <<\_ACEOF >conftest.sed
  1933. s/[\\$]/&&/g;s/;s,x,x,$//
  1934. _ACEOF
  1935. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1936. rm -f conftest.sed
  1937. # expand $ac_aux_dir to an absolute path
  1938. am_aux_dir=`cd $ac_aux_dir && pwd`
  1939. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1940. # Use eval to expand $SHELL
  1941. if eval "$MISSING --run true"; then
  1942. am_missing_run="$MISSING --run "
  1943. else
  1944. am_missing_run=
  1945. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1946. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1947. fi
  1948. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1949. # We used to keeping the `.' as first argument, in order to
  1950. # allow $(mkdir_p) to be used without argument. As in
  1951. # $(mkdir_p) $(somedir)
  1952. # where $(somedir) is conditionally defined. However this is wrong
  1953. # for two reasons:
  1954. # 1. if the package is installed by a user who cannot write `.'
  1955. # make install will fail,
  1956. # 2. the above comment should most certainly read
  1957. # $(mkdir_p) $(DESTDIR)$(somedir)
  1958. # so it does not work when $(somedir) is undefined and
  1959. # $(DESTDIR) is not.
  1960. # To support the latter case, we have to write
  1961. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1962. # so the `.' trick is pointless.
  1963. mkdir_p='mkdir -p --'
  1964. else
  1965. # On NextStep and OpenStep, the `mkdir' command does not
  1966. # recognize any option. It will interpret all options as
  1967. # directories to create, and then abort because `.' already
  1968. # exists.
  1969. for d in ./-p ./--version;
  1970. do
  1971. test -d $d && rmdir $d
  1972. done
  1973. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1974. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1975. mkdir_p='$(mkinstalldirs)'
  1976. else
  1977. mkdir_p='$(install_sh) -d'
  1978. fi
  1979. fi
  1980. for ac_prog in gawk mawk nawk awk
  1981. do
  1982. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1983. set dummy $ac_prog; ac_word=$2
  1984. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1985. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1986. if test "${ac_cv_prog_AWK+set}" = set; then
  1987. echo $ECHO_N "(cached) $ECHO_C" >&6
  1988. else
  1989. if test -n "$AWK"; then
  1990. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1991. else
  1992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1993. for as_dir in $PATH
  1994. do
  1995. IFS=$as_save_IFS
  1996. test -z "$as_dir" && as_dir=.
  1997. for ac_exec_ext in '' $ac_executable_extensions; do
  1998. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1999. ac_cv_prog_AWK="$ac_prog"
  2000. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2001. break 2
  2002. fi
  2003. done
  2004. done
  2005. IFS=$as_save_IFS
  2006. fi
  2007. fi
  2008. AWK=$ac_cv_prog_AWK
  2009. if test -n "$AWK"; then
  2010. { echo "$as_me:$LINENO: result: $AWK" >&5
  2011. echo "${ECHO_T}$AWK" >&6; }
  2012. else
  2013. { echo "$as_me:$LINENO: result: no" >&5
  2014. echo "${ECHO_T}no" >&6; }
  2015. fi
  2016. test -n "$AWK" && break
  2017. done
  2018. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2019. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2020. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2021. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2022. echo $ECHO_N "(cached) $ECHO_C" >&6
  2023. else
  2024. cat >conftest.make <<\_ACEOF
  2025. SHELL = /bin/sh
  2026. all:
  2027. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2028. _ACEOF
  2029. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2030. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2031. *@@@%%%=?*=@@@%%%*)
  2032. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2033. *)
  2034. eval ac_cv_prog_make_${ac_make}_set=no;;
  2035. esac
  2036. rm -f conftest.make
  2037. fi
  2038. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2039. { echo "$as_me:$LINENO: result: yes" >&5
  2040. echo "${ECHO_T}yes" >&6; }
  2041. SET_MAKE=
  2042. else
  2043. { echo "$as_me:$LINENO: result: no" >&5
  2044. echo "${ECHO_T}no" >&6; }
  2045. SET_MAKE="MAKE=${MAKE-make}"
  2046. fi
  2047. rm -rf .tst 2>/dev/null
  2048. mkdir .tst 2>/dev/null
  2049. if test -d .tst; then
  2050. am__leading_dot=.
  2051. else
  2052. am__leading_dot=_
  2053. fi
  2054. rmdir .tst 2>/dev/null
  2055. # test to see if srcdir already configured
  2056. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2057. test -f $srcdir/config.status; then
  2058. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2059. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2060. { (exit 1); exit 1; }; }
  2061. fi
  2062. # test whether we have cygpath
  2063. if test -z "$CYGPATH_W"; then
  2064. if (cygpath --version) >/dev/null 2>/dev/null; then
  2065. CYGPATH_W='cygpath -w'
  2066. else
  2067. CYGPATH_W=echo
  2068. fi
  2069. fi
  2070. # Define the identity of the package.
  2071. PACKAGE='aria2c'
  2072. VERSION='0.13.0+1'
  2073. cat >>confdefs.h <<_ACEOF
  2074. #define PACKAGE "$PACKAGE"
  2075. _ACEOF
  2076. cat >>confdefs.h <<_ACEOF
  2077. #define VERSION "$VERSION"
  2078. _ACEOF
  2079. # Some tools Automake needs.
  2080. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2081. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2082. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2083. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2084. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2085. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2086. # Installed binaries are usually stripped using `strip' when the user
  2087. # run `make install-strip'. However `strip' might not be the right
  2088. # tool to use in cross-compilation environments, therefore Automake
  2089. # will honor the `STRIP' environment variable to overrule this program.
  2090. if test "$cross_compiling" != no; then
  2091. if test -n "$ac_tool_prefix"; then
  2092. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2093. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2094. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2095. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2096. if test "${ac_cv_prog_STRIP+set}" = set; then
  2097. echo $ECHO_N "(cached) $ECHO_C" >&6
  2098. else
  2099. if test -n "$STRIP"; then
  2100. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2101. else
  2102. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2103. for as_dir in $PATH
  2104. do
  2105. IFS=$as_save_IFS
  2106. test -z "$as_dir" && as_dir=.
  2107. for ac_exec_ext in '' $ac_executable_extensions; do
  2108. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2109. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2110. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2111. break 2
  2112. fi
  2113. done
  2114. done
  2115. IFS=$as_save_IFS
  2116. fi
  2117. fi
  2118. STRIP=$ac_cv_prog_STRIP
  2119. if test -n "$STRIP"; then
  2120. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2121. echo "${ECHO_T}$STRIP" >&6; }
  2122. else
  2123. { echo "$as_me:$LINENO: result: no" >&5
  2124. echo "${ECHO_T}no" >&6; }
  2125. fi
  2126. fi
  2127. if test -z "$ac_cv_prog_STRIP"; then
  2128. ac_ct_STRIP=$STRIP
  2129. # Extract the first word of "strip", so it can be a program name with args.
  2130. set dummy strip; ac_word=$2
  2131. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2132. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2133. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2134. echo $ECHO_N "(cached) $ECHO_C" >&6
  2135. else
  2136. if test -n "$ac_ct_STRIP"; then
  2137. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2138. else
  2139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2140. for as_dir in $PATH
  2141. do
  2142. IFS=$as_save_IFS
  2143. test -z "$as_dir" && as_dir=.
  2144. for ac_exec_ext in '' $ac_executable_extensions; do
  2145. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2146. ac_cv_prog_ac_ct_STRIP="strip"
  2147. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2148. break 2
  2149. fi
  2150. done
  2151. done
  2152. IFS=$as_save_IFS
  2153. fi
  2154. fi
  2155. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2156. if test -n "$ac_ct_STRIP"; then
  2157. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2158. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2159. else
  2160. { echo "$as_me:$LINENO: result: no" >&5
  2161. echo "${ECHO_T}no" >&6; }
  2162. fi
  2163. if test "x$ac_ct_STRIP" = x; then
  2164. STRIP=":"
  2165. else
  2166. case $cross_compiling:$ac_tool_warned in
  2167. yes:)
  2168. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2169. whose name does not start with the host triplet. If you think this
  2170. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2171. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2172. whose name does not start with the host triplet. If you think this
  2173. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2174. ac_tool_warned=yes ;;
  2175. esac
  2176. STRIP=$ac_ct_STRIP
  2177. fi
  2178. else
  2179. STRIP="$ac_cv_prog_STRIP"
  2180. fi
  2181. fi
  2182. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2183. # We need awk for the "check" target. The system "awk" is bad on
  2184. # some platforms.
  2185. # Always define AMTAR for backward compatibility.
  2186. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2187. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2188. # Check whether --with-cppunit-prefix was given.
  2189. if test "${with_cppunit_prefix+set}" = set; then
  2190. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2191. else
  2192. cppunit_config_prefix=""
  2193. fi
  2194. # Check whether --with-cppunit-exec-prefix was given.
  2195. if test "${with_cppunit_exec_prefix+set}" = set; then
  2196. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2197. else
  2198. cppunit_config_exec_prefix=""
  2199. fi
  2200. if test x$cppunit_config_exec_prefix != x ; then
  2201. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2202. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2203. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2204. fi
  2205. fi
  2206. if test x$cppunit_config_prefix != x ; then
  2207. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2208. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2209. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2210. fi
  2211. fi
  2212. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2213. set dummy cppunit-config; ac_word=$2
  2214. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2215. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2216. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2217. echo $ECHO_N "(cached) $ECHO_C" >&6
  2218. else
  2219. case $CPPUNIT_CONFIG in
  2220. [\\/]* | ?:[\\/]*)
  2221. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2222. ;;
  2223. *)
  2224. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2225. for as_dir in $PATH
  2226. do
  2227. IFS=$as_save_IFS
  2228. test -z "$as_dir" && as_dir=.
  2229. for ac_exec_ext in '' $ac_executable_extensions; do
  2230. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2231. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2232. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2233. break 2
  2234. fi
  2235. done
  2236. done
  2237. IFS=$as_save_IFS
  2238. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2239. ;;
  2240. esac
  2241. fi
  2242. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2243. if test -n "$CPPUNIT_CONFIG"; then
  2244. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2245. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2246. else
  2247. { echo "$as_me:$LINENO: result: no" >&5
  2248. echo "${ECHO_T}no" >&6; }
  2249. fi
  2250. cppunit_version_min=1.10.2
  2251. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2252. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2253. no_cppunit=""
  2254. if test "$CPPUNIT_CONFIG" = "no" ; then
  2255. { echo "$as_me:$LINENO: result: no" >&5
  2256. echo "${ECHO_T}no" >&6; }
  2257. no_cppunit=yes
  2258. else
  2259. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2260. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2261. cppunit_version=`$CPPUNIT_CONFIG --version`
  2262. cppunit_major_version=`echo $cppunit_version | \
  2263. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2264. cppunit_minor_version=`echo $cppunit_version | \
  2265. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2266. cppunit_micro_version=`echo $cppunit_version | \
  2267. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2268. cppunit_major_min=`echo $cppunit_version_min | \
  2269. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2270. if test "x${cppunit_major_min}" = "x" ; then
  2271. cppunit_major_min=0
  2272. fi
  2273. cppunit_minor_min=`echo $cppunit_version_min | \
  2274. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2275. if test "x${cppunit_minor_min}" = "x" ; then
  2276. cppunit_minor_min=0
  2277. fi
  2278. cppunit_micro_min=`echo $cppunit_version_min | \
  2279. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2280. if test "x${cppunit_micro_min}" = "x" ; then
  2281. cppunit_micro_min=0
  2282. fi
  2283. cppunit_version_proper=`expr \
  2284. $cppunit_major_version \> $cppunit_major_min \| \
  2285. $cppunit_major_version \= $cppunit_major_min \& \
  2286. $cppunit_minor_version \> $cppunit_minor_min \| \
  2287. $cppunit_major_version \= $cppunit_major_min \& \
  2288. $cppunit_minor_version \= $cppunit_minor_min \& \
  2289. $cppunit_micro_version \>= $cppunit_micro_min `
  2290. if test "$cppunit_version_proper" = "1" ; then
  2291. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2292. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2293. else
  2294. { echo "$as_me:$LINENO: result: no" >&5
  2295. echo "${ECHO_T}no" >&6; }
  2296. no_cppunit=yes
  2297. fi
  2298. fi
  2299. if test "x$no_cppunit" = x ; then
  2300. :
  2301. else
  2302. CPPUNIT_CFLAGS=""
  2303. CPPUNIT_LIBS=""
  2304. :
  2305. fi
  2306. ac_config_headers="$ac_config_headers config.h"
  2307. case "$target" in
  2308. *mingw*|*cygwin*)
  2309. WINSOCK_LIBS="-lws2_32 -lpthread"
  2310. ;;
  2311. esac
  2312. cat >>confdefs.h <<_ACEOF
  2313. #define TARGET "$target"
  2314. _ACEOF
  2315. # Set localedir
  2316. localedir=${datadir}/locale
  2317. # Checks for arguments.
  2318. # Check whether --with-gnutls was given.
  2319. if test "${with_gnutls+set}" = set; then
  2320. withval=$with_gnutls; with_gnutls=$withval
  2321. else
  2322. with_gnutls=yes
  2323. fi
  2324. # Check whether --with-openssl was given.
  2325. if test "${with_openssl+set}" = set; then
  2326. withval=$with_openssl; with_openssl=$withval
  2327. else
  2328. with_openssl=yes
  2329. fi
  2330. # Check whether --with-libxml2 was given.
  2331. if test "${with_libxml2+set}" = set; then
  2332. withval=$with_libxml2; with_libxml2=$withval
  2333. else
  2334. with_libxml2=yes
  2335. fi
  2336. # Check whether --with-libexpat was given.
  2337. if test "${with_libexpat+set}" = set; then
  2338. withval=$with_libexpat; with_libexpat=$withval
  2339. else
  2340. with_libexpat=yes
  2341. fi
  2342. # Check whether --with-libares was given.
  2343. if test "${with_libares+set}" = set; then
  2344. withval=$with_libares; with_libares=$withval
  2345. else
  2346. with_libares=yes
  2347. fi
  2348. # Check whether --with-libcares was given.
  2349. if test "${with_libcares+set}" = set; then
  2350. withval=$with_libcares; with_libcares=$withval
  2351. else
  2352. with_libcares=yes
  2353. fi
  2354. # Check whether --enable-bittorrent was given.
  2355. if test "${enable_bittorrent+set}" = set; then
  2356. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2357. else
  2358. enable_bittorrent=yes
  2359. fi
  2360. # Check whether --enable-metalink was given.
  2361. if test "${enable_metalink+set}" = set; then
  2362. enableval=$enable_metalink; enable_metalink=$enableval
  2363. else
  2364. enable_metalink=yes
  2365. fi
  2366. # Checks for programs.
  2367. ac_ext=cpp
  2368. ac_cpp='$CXXCPP $CPPFLAGS'
  2369. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2370. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2371. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2372. if test -z "$CXX"; then
  2373. if test -n "$CCC"; then
  2374. CXX=$CCC
  2375. else
  2376. if test -n "$ac_tool_prefix"; then
  2377. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2378. do
  2379. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2380. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2381. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2382. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2383. if test "${ac_cv_prog_CXX+set}" = set; then
  2384. echo $ECHO_N "(cached) $ECHO_C" >&6
  2385. else
  2386. if test -n "$CXX"; then
  2387. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2388. else
  2389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2390. for as_dir in $PATH
  2391. do
  2392. IFS=$as_save_IFS
  2393. test -z "$as_dir" && as_dir=.
  2394. for ac_exec_ext in '' $ac_executable_extensions; do
  2395. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2396. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2397. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2398. break 2
  2399. fi
  2400. done
  2401. done
  2402. IFS=$as_save_IFS
  2403. fi
  2404. fi
  2405. CXX=$ac_cv_prog_CXX
  2406. if test -n "$CXX"; then
  2407. { echo "$as_me:$LINENO: result: $CXX" >&5
  2408. echo "${ECHO_T}$CXX" >&6; }
  2409. else
  2410. { echo "$as_me:$LINENO: result: no" >&5
  2411. echo "${ECHO_T}no" >&6; }
  2412. fi
  2413. test -n "$CXX" && break
  2414. done
  2415. fi
  2416. if test -z "$CXX"; then
  2417. ac_ct_CXX=$CXX
  2418. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2419. do
  2420. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2421. set dummy $ac_prog; ac_word=$2
  2422. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2423. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2424. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2425. echo $ECHO_N "(cached) $ECHO_C" >&6
  2426. else
  2427. if test -n "$ac_ct_CXX"; then
  2428. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2429. else
  2430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2431. for as_dir in $PATH
  2432. do
  2433. IFS=$as_save_IFS
  2434. test -z "$as_dir" && as_dir=.
  2435. for ac_exec_ext in '' $ac_executable_extensions; do
  2436. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2437. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2438. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2439. break 2
  2440. fi
  2441. done
  2442. done
  2443. IFS=$as_save_IFS
  2444. fi
  2445. fi
  2446. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2447. if test -n "$ac_ct_CXX"; then
  2448. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2449. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2450. else
  2451. { echo "$as_me:$LINENO: result: no" >&5
  2452. echo "${ECHO_T}no" >&6; }
  2453. fi
  2454. test -n "$ac_ct_CXX" && break
  2455. done
  2456. if test "x$ac_ct_CXX" = x; then
  2457. CXX="g++"
  2458. else
  2459. case $cross_compiling:$ac_tool_warned in
  2460. yes:)
  2461. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2462. whose name does not start with the host triplet. If you think this
  2463. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2464. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2465. whose name does not start with the host triplet. If you think this
  2466. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2467. ac_tool_warned=yes ;;
  2468. esac
  2469. CXX=$ac_ct_CXX
  2470. fi
  2471. fi
  2472. fi
  2473. fi
  2474. # Provide some information about the compiler.
  2475. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2476. ac_compiler=`set X $ac_compile; echo $2`
  2477. { (ac_try="$ac_compiler --version >&5"
  2478. case "(($ac_try" in
  2479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2480. *) ac_try_echo=$ac_try;;
  2481. esac
  2482. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2483. (eval "$ac_compiler --version >&5") 2>&5
  2484. ac_status=$?
  2485. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2486. (exit $ac_status); }
  2487. { (ac_try="$ac_compiler -v >&5"
  2488. case "(($ac_try" in
  2489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2490. *) ac_try_echo=$ac_try;;
  2491. esac
  2492. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2493. (eval "$ac_compiler -v >&5") 2>&5
  2494. ac_status=$?
  2495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2496. (exit $ac_status); }
  2497. { (ac_try="$ac_compiler -V >&5"
  2498. case "(($ac_try" in
  2499. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2500. *) ac_try_echo=$ac_try;;
  2501. esac
  2502. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2503. (eval "$ac_compiler -V >&5") 2>&5
  2504. ac_status=$?
  2505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2506. (exit $ac_status); }
  2507. cat >conftest.$ac_ext <<_ACEOF
  2508. /* confdefs.h. */
  2509. _ACEOF
  2510. cat confdefs.h >>conftest.$ac_ext
  2511. cat >>conftest.$ac_ext <<_ACEOF
  2512. /* end confdefs.h. */
  2513. int
  2514. main ()
  2515. {
  2516. ;
  2517. return 0;
  2518. }
  2519. _ACEOF
  2520. ac_clean_files_save=$ac_clean_files
  2521. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2522. # Try to create an executable without -o first, disregard a.out.
  2523. # It will help us diagnose broken compilers, and finding out an intuition
  2524. # of exeext.
  2525. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2526. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2527. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2528. #
  2529. # List of possible output files, starting from the most likely.
  2530. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2531. # only as a last resort. b.out is created by i960 compilers.
  2532. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2533. #
  2534. # The IRIX 6 linker writes into existing files which may not be
  2535. # executable, retaining their permissions. Remove them first so a
  2536. # subsequent execution test works.
  2537. ac_rmfiles=
  2538. for ac_file in $ac_files
  2539. do
  2540. case $ac_file in
  2541. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2542. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2543. esac
  2544. done
  2545. rm -f $ac_rmfiles
  2546. if { (ac_try="$ac_link_default"
  2547. case "(($ac_try" in
  2548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2549. *) ac_try_echo=$ac_try;;
  2550. esac
  2551. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2552. (eval "$ac_link_default") 2>&5
  2553. ac_status=$?
  2554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2555. (exit $ac_status); }; then
  2556. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2557. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2558. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2559. # so that the user can short-circuit this test for compilers unknown to
  2560. # Autoconf.
  2561. for ac_file in $ac_files ''
  2562. do
  2563. test -f "$ac_file" || continue
  2564. case $ac_file in
  2565. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2566. ;;
  2567. [ab].out )
  2568. # We found the default executable, but exeext='' is most
  2569. # certainly right.
  2570. break;;
  2571. *.* )
  2572. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2573. then :; else
  2574. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2575. fi
  2576. # We set ac_cv_exeext here because the later test for it is not
  2577. # safe: cross compilers may not add the suffix if given an `-o'
  2578. # argument, so we may need to know it at that point already.
  2579. # Even if this section looks crufty: it has the advantage of
  2580. # actually working.
  2581. break;;
  2582. * )
  2583. break;;
  2584. esac
  2585. done
  2586. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2587. else
  2588. ac_file=''
  2589. fi
  2590. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2591. echo "${ECHO_T}$ac_file" >&6; }
  2592. if test -z "$ac_file"; then
  2593. echo "$as_me: failed program was:" >&5
  2594. sed 's/^/| /' conftest.$ac_ext >&5
  2595. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2596. See \`config.log' for more details." >&5
  2597. echo "$as_me: error: C++ compiler cannot create executables
  2598. See \`config.log' for more details." >&2;}
  2599. { (exit 77); exit 77; }; }
  2600. fi
  2601. ac_exeext=$ac_cv_exeext
  2602. # Check that the compiler produces executables we can run. If not, either
  2603. # the compiler is broken, or we cross compile.
  2604. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2605. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2606. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2607. # If not cross compiling, check that we can run a simple program.
  2608. if test "$cross_compiling" != yes; then
  2609. if { ac_try='./$ac_file'
  2610. { (case "(($ac_try" in
  2611. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2612. *) ac_try_echo=$ac_try;;
  2613. esac
  2614. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2615. (eval "$ac_try") 2>&5
  2616. ac_status=$?
  2617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2618. (exit $ac_status); }; }; then
  2619. cross_compiling=no
  2620. else
  2621. if test "$cross_compiling" = maybe; then
  2622. cross_compiling=yes
  2623. else
  2624. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2625. If you meant to cross compile, use \`--host'.
  2626. See \`config.log' for more details." >&5
  2627. echo "$as_me: error: cannot run C++ compiled programs.
  2628. If you meant to cross compile, use \`--host'.
  2629. See \`config.log' for more details." >&2;}
  2630. { (exit 1); exit 1; }; }
  2631. fi
  2632. fi
  2633. fi
  2634. { echo "$as_me:$LINENO: result: yes" >&5
  2635. echo "${ECHO_T}yes" >&6; }
  2636. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2637. ac_clean_files=$ac_clean_files_save
  2638. # Check that the compiler produces executables we can run. If not, either
  2639. # the compiler is broken, or we cross compile.
  2640. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2641. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2642. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2643. echo "${ECHO_T}$cross_compiling" >&6; }
  2644. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2645. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2646. if { (ac_try="$ac_link"
  2647. case "(($ac_try" in
  2648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2649. *) ac_try_echo=$ac_try;;
  2650. esac
  2651. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2652. (eval "$ac_link") 2>&5
  2653. ac_status=$?
  2654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2655. (exit $ac_status); }; then
  2656. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2657. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2658. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2659. # `rm'.
  2660. for ac_file in conftest.exe conftest conftest.*; do
  2661. test -f "$ac_file" || continue
  2662. case $ac_file in
  2663. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2664. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2665. break;;
  2666. * ) break;;
  2667. esac
  2668. done
  2669. else
  2670. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2671. See \`config.log' for more details." >&5
  2672. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2673. See \`config.log' for more details." >&2;}
  2674. { (exit 1); exit 1; }; }
  2675. fi
  2676. rm -f conftest$ac_cv_exeext
  2677. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2678. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2679. rm -f conftest.$ac_ext
  2680. EXEEXT=$ac_cv_exeext
  2681. ac_exeext=$EXEEXT
  2682. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2683. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2684. if test "${ac_cv_objext+set}" = set; then
  2685. echo $ECHO_N "(cached) $ECHO_C" >&6
  2686. else
  2687. cat >conftest.$ac_ext <<_ACEOF
  2688. /* confdefs.h. */
  2689. _ACEOF
  2690. cat confdefs.h >>conftest.$ac_ext
  2691. cat >>conftest.$ac_ext <<_ACEOF
  2692. /* end confdefs.h. */
  2693. int
  2694. main ()
  2695. {
  2696. ;
  2697. return 0;
  2698. }
  2699. _ACEOF
  2700. rm -f conftest.o conftest.obj
  2701. if { (ac_try="$ac_compile"
  2702. case "(($ac_try" in
  2703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2704. *) ac_try_echo=$ac_try;;
  2705. esac
  2706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2707. (eval "$ac_compile") 2>&5
  2708. ac_status=$?
  2709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2710. (exit $ac_status); }; then
  2711. for ac_file in conftest.o conftest.obj conftest.*; do
  2712. test -f "$ac_file" || continue;
  2713. case $ac_file in
  2714. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2715. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2716. break;;
  2717. esac
  2718. done
  2719. else
  2720. echo "$as_me: failed program was:" >&5
  2721. sed 's/^/| /' conftest.$ac_ext >&5
  2722. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2723. See \`config.log' for more details." >&5
  2724. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2725. See \`config.log' for more details." >&2;}
  2726. { (exit 1); exit 1; }; }
  2727. fi
  2728. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2729. fi
  2730. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2731. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2732. OBJEXT=$ac_cv_objext
  2733. ac_objext=$OBJEXT
  2734. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2735. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2736. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2737. echo $ECHO_N "(cached) $ECHO_C" >&6
  2738. else
  2739. cat >conftest.$ac_ext <<_ACEOF
  2740. /* confdefs.h. */
  2741. _ACEOF
  2742. cat confdefs.h >>conftest.$ac_ext
  2743. cat >>conftest.$ac_ext <<_ACEOF
  2744. /* end confdefs.h. */
  2745. int
  2746. main ()
  2747. {
  2748. #ifndef __GNUC__
  2749. choke me
  2750. #endif
  2751. ;
  2752. return 0;
  2753. }
  2754. _ACEOF
  2755. rm -f conftest.$ac_objext
  2756. if { (ac_try="$ac_compile"
  2757. case "(($ac_try" in
  2758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2759. *) ac_try_echo=$ac_try;;
  2760. esac
  2761. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2762. (eval "$ac_compile") 2>conftest.er1
  2763. ac_status=$?
  2764. grep -v '^ *+' conftest.er1 >conftest.err
  2765. rm -f conftest.er1
  2766. cat conftest.err >&5
  2767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2768. (exit $ac_status); } && {
  2769. test -z "$ac_cxx_werror_flag" ||
  2770. test ! -s conftest.err
  2771. } && test -s conftest.$ac_objext; then
  2772. ac_compiler_gnu=yes
  2773. else
  2774. echo "$as_me: failed program was:" >&5
  2775. sed 's/^/| /' conftest.$ac_ext >&5
  2776. ac_compiler_gnu=no
  2777. fi
  2778. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2779. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2780. fi
  2781. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2782. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2783. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2784. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2785. ac_save_CXXFLAGS=$CXXFLAGS
  2786. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2787. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2788. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2789. echo $ECHO_N "(cached) $ECHO_C" >&6
  2790. else
  2791. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2792. ac_cxx_werror_flag=yes
  2793. ac_cv_prog_cxx_g=no
  2794. CXXFLAGS="-g"
  2795. cat >conftest.$ac_ext <<_ACEOF
  2796. /* confdefs.h. */
  2797. _ACEOF
  2798. cat confdefs.h >>conftest.$ac_ext
  2799. cat >>conftest.$ac_ext <<_ACEOF
  2800. /* end confdefs.h. */
  2801. int
  2802. main ()
  2803. {
  2804. ;
  2805. return 0;
  2806. }
  2807. _ACEOF
  2808. rm -f conftest.$ac_objext
  2809. if { (ac_try="$ac_compile"
  2810. case "(($ac_try" in
  2811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2812. *) ac_try_echo=$ac_try;;
  2813. esac
  2814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2815. (eval "$ac_compile") 2>conftest.er1
  2816. ac_status=$?
  2817. grep -v '^ *+' conftest.er1 >conftest.err
  2818. rm -f conftest.er1
  2819. cat conftest.err >&5
  2820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2821. (exit $ac_status); } && {
  2822. test -z "$ac_cxx_werror_flag" ||
  2823. test ! -s conftest.err
  2824. } && test -s conftest.$ac_objext; then
  2825. ac_cv_prog_cxx_g=yes
  2826. else
  2827. echo "$as_me: failed program was:" >&5
  2828. sed 's/^/| /' conftest.$ac_ext >&5
  2829. CXXFLAGS=""
  2830. cat >conftest.$ac_ext <<_ACEOF
  2831. /* confdefs.h. */
  2832. _ACEOF
  2833. cat confdefs.h >>conftest.$ac_ext
  2834. cat >>conftest.$ac_ext <<_ACEOF
  2835. /* end confdefs.h. */
  2836. int
  2837. main ()
  2838. {
  2839. ;
  2840. return 0;
  2841. }
  2842. _ACEOF
  2843. rm -f conftest.$ac_objext
  2844. if { (ac_try="$ac_compile"
  2845. case "(($ac_try" in
  2846. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2847. *) ac_try_echo=$ac_try;;
  2848. esac
  2849. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2850. (eval "$ac_compile") 2>conftest.er1
  2851. ac_status=$?
  2852. grep -v '^ *+' conftest.er1 >conftest.err
  2853. rm -f conftest.er1
  2854. cat conftest.err >&5
  2855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2856. (exit $ac_status); } && {
  2857. test -z "$ac_cxx_werror_flag" ||
  2858. test ! -s conftest.err
  2859. } && test -s conftest.$ac_objext; then
  2860. :
  2861. else
  2862. echo "$as_me: failed program was:" >&5
  2863. sed 's/^/| /' conftest.$ac_ext >&5
  2864. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2865. CXXFLAGS="-g"
  2866. cat >conftest.$ac_ext <<_ACEOF
  2867. /* confdefs.h. */
  2868. _ACEOF
  2869. cat confdefs.h >>conftest.$ac_ext
  2870. cat >>conftest.$ac_ext <<_ACEOF
  2871. /* end confdefs.h. */
  2872. int
  2873. main ()
  2874. {
  2875. ;
  2876. return 0;
  2877. }
  2878. _ACEOF
  2879. rm -f conftest.$ac_objext
  2880. if { (ac_try="$ac_compile"
  2881. case "(($ac_try" in
  2882. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2883. *) ac_try_echo=$ac_try;;
  2884. esac
  2885. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2886. (eval "$ac_compile") 2>conftest.er1
  2887. ac_status=$?
  2888. grep -v '^ *+' conftest.er1 >conftest.err
  2889. rm -f conftest.er1
  2890. cat conftest.err >&5
  2891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2892. (exit $ac_status); } && {
  2893. test -z "$ac_cxx_werror_flag" ||
  2894. test ! -s conftest.err
  2895. } && test -s conftest.$ac_objext; then
  2896. ac_cv_prog_cxx_g=yes
  2897. else
  2898. echo "$as_me: failed program was:" >&5
  2899. sed 's/^/| /' conftest.$ac_ext >&5
  2900. fi
  2901. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2902. fi
  2903. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2904. fi
  2905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2906. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2907. fi
  2908. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2909. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2910. if test "$ac_test_CXXFLAGS" = set; then
  2911. CXXFLAGS=$ac_save_CXXFLAGS
  2912. elif test $ac_cv_prog_cxx_g = yes; then
  2913. if test "$GXX" = yes; then
  2914. CXXFLAGS="-g -O2"
  2915. else
  2916. CXXFLAGS="-g"
  2917. fi
  2918. else
  2919. if test "$GXX" = yes; then
  2920. CXXFLAGS="-O2"
  2921. else
  2922. CXXFLAGS=
  2923. fi
  2924. fi
  2925. ac_ext=c
  2926. ac_cpp='$CPP $CPPFLAGS'
  2927. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2928. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2929. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2930. DEPDIR="${am__leading_dot}deps"
  2931. ac_config_commands="$ac_config_commands depfiles"
  2932. am_make=${MAKE-make}
  2933. cat > confinc << 'END'
  2934. am__doit:
  2935. @echo done
  2936. .PHONY: am__doit
  2937. END
  2938. # If we don't find an include directive, just comment out the code.
  2939. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2940. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2941. am__include="#"
  2942. am__quote=
  2943. _am_result=none
  2944. # First try GNU make style include.
  2945. echo "include confinc" > confmf
  2946. # We grep out `Entering directory' and `Leaving directory'
  2947. # messages which can occur if `w' ends up in MAKEFLAGS.
  2948. # In particular we don't look at `^make:' because GNU make might
  2949. # be invoked under some other name (usually "gmake"), in which
  2950. # case it prints its new name instead of `make'.
  2951. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2952. am__include=include
  2953. am__quote=
  2954. _am_result=GNU
  2955. fi
  2956. # Now try BSD make style include.
  2957. if test "$am__include" = "#"; then
  2958. echo '.include "confinc"' > confmf
  2959. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2960. am__include=.include
  2961. am__quote="\""
  2962. _am_result=BSD
  2963. fi
  2964. fi
  2965. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2966. echo "${ECHO_T}$_am_result" >&6; }
  2967. rm -f confinc confmf
  2968. # Check whether --enable-dependency-tracking was given.
  2969. if test "${enable_dependency_tracking+set}" = set; then
  2970. enableval=$enable_dependency_tracking;
  2971. fi
  2972. if test "x$enable_dependency_tracking" != xno; then
  2973. am_depcomp="$ac_aux_dir/depcomp"
  2974. AMDEPBACKSLASH='\'
  2975. fi
  2976. if test "x$enable_dependency_tracking" != xno; then
  2977. AMDEP_TRUE=
  2978. AMDEP_FALSE='#'
  2979. else
  2980. AMDEP_TRUE='#'
  2981. AMDEP_FALSE=
  2982. fi
  2983. depcc="$CXX" am_compiler_list=
  2984. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2985. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2986. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2987. echo $ECHO_N "(cached) $ECHO_C" >&6
  2988. else
  2989. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2990. # We make a subdir and do the tests there. Otherwise we can end up
  2991. # making bogus files that we don't know about and never remove. For
  2992. # instance it was reported that on HP-UX the gcc test will end up
  2993. # making a dummy file named `D' -- because `-MD' means `put the output
  2994. # in D'.
  2995. mkdir conftest.dir
  2996. # Copy depcomp to subdir because otherwise we won't find it if we're
  2997. # using a relative directory.
  2998. cp "$am_depcomp" conftest.dir
  2999. cd conftest.dir
  3000. # We will build objects and dependencies in a subdirectory because
  3001. # it helps to detect inapplicable dependency modes. For instance
  3002. # both Tru64's cc and ICC support -MD to output dependencies as a
  3003. # side effect of compilation, but ICC will put the dependencies in
  3004. # the current directory while Tru64 will put them in the object
  3005. # directory.
  3006. mkdir sub
  3007. am_cv_CXX_dependencies_compiler_type=none
  3008. if test "$am_compiler_list" = ""; then
  3009. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3010. fi
  3011. for depmode in $am_compiler_list; do
  3012. # Setup a source with many dependencies, because some compilers
  3013. # like to wrap large dependency lists on column 80 (with \), and
  3014. # we should not choose a depcomp mode which is confused by this.
  3015. #
  3016. # We need to recreate these files for each test, as the compiler may
  3017. # overwrite some of them when testing with obscure command lines.
  3018. # This happens at least with the AIX C compiler.
  3019. : > sub/conftest.c
  3020. for i in 1 2 3 4 5 6; do
  3021. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3022. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3023. # Solaris 8's {/usr,}/bin/sh.
  3024. touch sub/conftst$i.h
  3025. done
  3026. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3027. case $depmode in
  3028. nosideeffect)
  3029. # after this tag, mechanisms are not by side-effect, so they'll
  3030. # only be used when explicitly requested
  3031. if test "x$enable_dependency_tracking" = xyes; then
  3032. continue
  3033. else
  3034. break
  3035. fi
  3036. ;;
  3037. none) break ;;
  3038. esac
  3039. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3040. # mode. It turns out that the SunPro C++ compiler does not properly
  3041. # handle `-M -o', and we need to detect this.
  3042. if depmode=$depmode \
  3043. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3044. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3045. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3046. >/dev/null 2>conftest.err &&
  3047. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3048. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3049. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3050. # icc doesn't choke on unknown options, it will just issue warnings
  3051. # or remarks (even with -Werror). So we grep stderr for any message
  3052. # that says an option was ignored or not supported.
  3053. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3054. # icc: Command line warning: ignoring option '-M'; no argument required
  3055. # The diagnosis changed in icc 8.0:
  3056. # icc: Command line remark: option '-MP' not supported
  3057. if (grep 'ignoring option' conftest.err ||
  3058. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3059. am_cv_CXX_dependencies_compiler_type=$depmode
  3060. break
  3061. fi
  3062. fi
  3063. done
  3064. cd ..
  3065. rm -rf conftest.dir
  3066. else
  3067. am_cv_CXX_dependencies_compiler_type=none
  3068. fi
  3069. fi
  3070. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3071. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3072. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3073. if
  3074. test "x$enable_dependency_tracking" != xno \
  3075. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3076. am__fastdepCXX_TRUE=
  3077. am__fastdepCXX_FALSE='#'
  3078. else
  3079. am__fastdepCXX_TRUE='#'
  3080. am__fastdepCXX_FALSE=
  3081. fi
  3082. ac_ext=c
  3083. ac_cpp='$CPP $CPPFLAGS'
  3084. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3085. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3086. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3087. if test -n "$ac_tool_prefix"; then
  3088. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3089. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3090. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3091. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3092. if test "${ac_cv_prog_CC+set}" = set; then
  3093. echo $ECHO_N "(cached) $ECHO_C" >&6
  3094. else
  3095. if test -n "$CC"; then
  3096. ac_cv_prog_CC="$CC" # Let the user override the test.
  3097. else
  3098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3099. for as_dir in $PATH
  3100. do
  3101. IFS=$as_save_IFS
  3102. test -z "$as_dir" && as_dir=.
  3103. for ac_exec_ext in '' $ac_executable_extensions; do
  3104. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3105. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3106. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3107. break 2
  3108. fi
  3109. done
  3110. done
  3111. IFS=$as_save_IFS
  3112. fi
  3113. fi
  3114. CC=$ac_cv_prog_CC
  3115. if test -n "$CC"; then
  3116. { echo "$as_me:$LINENO: result: $CC" >&5
  3117. echo "${ECHO_T}$CC" >&6; }
  3118. else
  3119. { echo "$as_me:$LINENO: result: no" >&5
  3120. echo "${ECHO_T}no" >&6; }
  3121. fi
  3122. fi
  3123. if test -z "$ac_cv_prog_CC"; then
  3124. ac_ct_CC=$CC
  3125. # Extract the first word of "gcc", so it can be a program name with args.
  3126. set dummy gcc; ac_word=$2
  3127. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3128. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3129. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3130. echo $ECHO_N "(cached) $ECHO_C" >&6
  3131. else
  3132. if test -n "$ac_ct_CC"; then
  3133. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3134. else
  3135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3136. for as_dir in $PATH
  3137. do
  3138. IFS=$as_save_IFS
  3139. test -z "$as_dir" && as_dir=.
  3140. for ac_exec_ext in '' $ac_executable_extensions; do
  3141. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3142. ac_cv_prog_ac_ct_CC="gcc"
  3143. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3144. break 2
  3145. fi
  3146. done
  3147. done
  3148. IFS=$as_save_IFS
  3149. fi
  3150. fi
  3151. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3152. if test -n "$ac_ct_CC"; then
  3153. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3154. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3155. else
  3156. { echo "$as_me:$LINENO: result: no" >&5
  3157. echo "${ECHO_T}no" >&6; }
  3158. fi
  3159. if test "x$ac_ct_CC" = x; then
  3160. CC=""
  3161. else
  3162. case $cross_compiling:$ac_tool_warned in
  3163. yes:)
  3164. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3165. whose name does not start with the host triplet. If you think this
  3166. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3167. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3168. whose name does not start with the host triplet. If you think this
  3169. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3170. ac_tool_warned=yes ;;
  3171. esac
  3172. CC=$ac_ct_CC
  3173. fi
  3174. else
  3175. CC="$ac_cv_prog_CC"
  3176. fi
  3177. if test -z "$CC"; then
  3178. if test -n "$ac_tool_prefix"; then
  3179. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3180. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3181. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3182. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3183. if test "${ac_cv_prog_CC+set}" = set; then
  3184. echo $ECHO_N "(cached) $ECHO_C" >&6
  3185. else
  3186. if test -n "$CC"; then
  3187. ac_cv_prog_CC="$CC" # Let the user override the test.
  3188. else
  3189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3190. for as_dir in $PATH
  3191. do
  3192. IFS=$as_save_IFS
  3193. test -z "$as_dir" && as_dir=.
  3194. for ac_exec_ext in '' $ac_executable_extensions; do
  3195. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3196. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3197. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3198. break 2
  3199. fi
  3200. done
  3201. done
  3202. IFS=$as_save_IFS
  3203. fi
  3204. fi
  3205. CC=$ac_cv_prog_CC
  3206. if test -n "$CC"; then
  3207. { echo "$as_me:$LINENO: result: $CC" >&5
  3208. echo "${ECHO_T}$CC" >&6; }
  3209. else
  3210. { echo "$as_me:$LINENO: result: no" >&5
  3211. echo "${ECHO_T}no" >&6; }
  3212. fi
  3213. fi
  3214. fi
  3215. if test -z "$CC"; then
  3216. # Extract the first word of "cc", so it can be a program name with args.
  3217. set dummy cc; ac_word=$2
  3218. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3219. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3220. if test "${ac_cv_prog_CC+set}" = set; then
  3221. echo $ECHO_N "(cached) $ECHO_C" >&6
  3222. else
  3223. if test -n "$CC"; then
  3224. ac_cv_prog_CC="$CC" # Let the user override the test.
  3225. else
  3226. ac_prog_rejected=no
  3227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3228. for as_dir in $PATH
  3229. do
  3230. IFS=$as_save_IFS
  3231. test -z "$as_dir" && as_dir=.
  3232. for ac_exec_ext in '' $ac_executable_extensions; do
  3233. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3234. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3235. ac_prog_rejected=yes
  3236. continue
  3237. fi
  3238. ac_cv_prog_CC="cc"
  3239. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3240. break 2
  3241. fi
  3242. done
  3243. done
  3244. IFS=$as_save_IFS
  3245. if test $ac_prog_rejected = yes; then
  3246. # We found a bogon in the path, so make sure we never use it.
  3247. set dummy $ac_cv_prog_CC
  3248. shift
  3249. if test $# != 0; then
  3250. # We chose a different compiler from the bogus one.
  3251. # However, it has the same basename, so the bogon will be chosen
  3252. # first if we set CC to just the basename; use the full file name.
  3253. shift
  3254. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3255. fi
  3256. fi
  3257. fi
  3258. fi
  3259. CC=$ac_cv_prog_CC
  3260. if test -n "$CC"; then
  3261. { echo "$as_me:$LINENO: result: $CC" >&5
  3262. echo "${ECHO_T}$CC" >&6; }
  3263. else
  3264. { echo "$as_me:$LINENO: result: no" >&5
  3265. echo "${ECHO_T}no" >&6; }
  3266. fi
  3267. fi
  3268. if test -z "$CC"; then
  3269. if test -n "$ac_tool_prefix"; then
  3270. for ac_prog in cl.exe
  3271. do
  3272. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3273. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3274. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3275. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3276. if test "${ac_cv_prog_CC+set}" = set; then
  3277. echo $ECHO_N "(cached) $ECHO_C" >&6
  3278. else
  3279. if test -n "$CC"; then
  3280. ac_cv_prog_CC="$CC" # Let the user override the test.
  3281. else
  3282. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3283. for as_dir in $PATH
  3284. do
  3285. IFS=$as_save_IFS
  3286. test -z "$as_dir" && as_dir=.
  3287. for ac_exec_ext in '' $ac_executable_extensions; do
  3288. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3289. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3290. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3291. break 2
  3292. fi
  3293. done
  3294. done
  3295. IFS=$as_save_IFS
  3296. fi
  3297. fi
  3298. CC=$ac_cv_prog_CC
  3299. if test -n "$CC"; then
  3300. { echo "$as_me:$LINENO: result: $CC" >&5
  3301. echo "${ECHO_T}$CC" >&6; }
  3302. else
  3303. { echo "$as_me:$LINENO: result: no" >&5
  3304. echo "${ECHO_T}no" >&6; }
  3305. fi
  3306. test -n "$CC" && break
  3307. done
  3308. fi
  3309. if test -z "$CC"; then
  3310. ac_ct_CC=$CC
  3311. for ac_prog in cl.exe
  3312. do
  3313. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3314. set dummy $ac_prog; ac_word=$2
  3315. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3316. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3317. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3318. echo $ECHO_N "(cached) $ECHO_C" >&6
  3319. else
  3320. if test -n "$ac_ct_CC"; then
  3321. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3322. else
  3323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3324. for as_dir in $PATH
  3325. do
  3326. IFS=$as_save_IFS
  3327. test -z "$as_dir" && as_dir=.
  3328. for ac_exec_ext in '' $ac_executable_extensions; do
  3329. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3330. ac_cv_prog_ac_ct_CC="$ac_prog"
  3331. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3332. break 2
  3333. fi
  3334. done
  3335. done
  3336. IFS=$as_save_IFS
  3337. fi
  3338. fi
  3339. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3340. if test -n "$ac_ct_CC"; then
  3341. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3342. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3343. else
  3344. { echo "$as_me:$LINENO: result: no" >&5
  3345. echo "${ECHO_T}no" >&6; }
  3346. fi
  3347. test -n "$ac_ct_CC" && break
  3348. done
  3349. if test "x$ac_ct_CC" = x; then
  3350. CC=""
  3351. else
  3352. case $cross_compiling:$ac_tool_warned in
  3353. yes:)
  3354. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3355. whose name does not start with the host triplet. If you think this
  3356. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3357. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3358. whose name does not start with the host triplet. If you think this
  3359. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3360. ac_tool_warned=yes ;;
  3361. esac
  3362. CC=$ac_ct_CC
  3363. fi
  3364. fi
  3365. fi
  3366. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3367. See \`config.log' for more details." >&5
  3368. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3369. See \`config.log' for more details." >&2;}
  3370. { (exit 1); exit 1; }; }
  3371. # Provide some information about the compiler.
  3372. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3373. ac_compiler=`set X $ac_compile; echo $2`
  3374. { (ac_try="$ac_compiler --version >&5"
  3375. case "(($ac_try" in
  3376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3377. *) ac_try_echo=$ac_try;;
  3378. esac
  3379. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3380. (eval "$ac_compiler --version >&5") 2>&5
  3381. ac_status=$?
  3382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3383. (exit $ac_status); }
  3384. { (ac_try="$ac_compiler -v >&5"
  3385. case "(($ac_try" in
  3386. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3387. *) ac_try_echo=$ac_try;;
  3388. esac
  3389. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3390. (eval "$ac_compiler -v >&5") 2>&5
  3391. ac_status=$?
  3392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3393. (exit $ac_status); }
  3394. { (ac_try="$ac_compiler -V >&5"
  3395. case "(($ac_try" in
  3396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3397. *) ac_try_echo=$ac_try;;
  3398. esac
  3399. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3400. (eval "$ac_compiler -V >&5") 2>&5
  3401. ac_status=$?
  3402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3403. (exit $ac_status); }
  3404. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3405. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3406. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3407. echo $ECHO_N "(cached) $ECHO_C" >&6
  3408. else
  3409. cat >conftest.$ac_ext <<_ACEOF
  3410. /* confdefs.h. */
  3411. _ACEOF
  3412. cat confdefs.h >>conftest.$ac_ext
  3413. cat >>conftest.$ac_ext <<_ACEOF
  3414. /* end confdefs.h. */
  3415. int
  3416. main ()
  3417. {
  3418. #ifndef __GNUC__
  3419. choke me
  3420. #endif
  3421. ;
  3422. return 0;
  3423. }
  3424. _ACEOF
  3425. rm -f conftest.$ac_objext
  3426. if { (ac_try="$ac_compile"
  3427. case "(($ac_try" in
  3428. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3429. *) ac_try_echo=$ac_try;;
  3430. esac
  3431. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3432. (eval "$ac_compile") 2>conftest.er1
  3433. ac_status=$?
  3434. grep -v '^ *+' conftest.er1 >conftest.err
  3435. rm -f conftest.er1
  3436. cat conftest.err >&5
  3437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3438. (exit $ac_status); } && {
  3439. test -z "$ac_c_werror_flag" ||
  3440. test ! -s conftest.err
  3441. } && test -s conftest.$ac_objext; then
  3442. ac_compiler_gnu=yes
  3443. else
  3444. echo "$as_me: failed program was:" >&5
  3445. sed 's/^/| /' conftest.$ac_ext >&5
  3446. ac_compiler_gnu=no
  3447. fi
  3448. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3449. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3450. fi
  3451. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3452. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3453. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3454. ac_test_CFLAGS=${CFLAGS+set}
  3455. ac_save_CFLAGS=$CFLAGS
  3456. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3457. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3458. if test "${ac_cv_prog_cc_g+set}" = set; then
  3459. echo $ECHO_N "(cached) $ECHO_C" >&6
  3460. else
  3461. ac_save_c_werror_flag=$ac_c_werror_flag
  3462. ac_c_werror_flag=yes
  3463. ac_cv_prog_cc_g=no
  3464. CFLAGS="-g"
  3465. cat >conftest.$ac_ext <<_ACEOF
  3466. /* confdefs.h. */
  3467. _ACEOF
  3468. cat confdefs.h >>conftest.$ac_ext
  3469. cat >>conftest.$ac_ext <<_ACEOF
  3470. /* end confdefs.h. */
  3471. int
  3472. main ()
  3473. {
  3474. ;
  3475. return 0;
  3476. }
  3477. _ACEOF
  3478. rm -f conftest.$ac_objext
  3479. if { (ac_try="$ac_compile"
  3480. case "(($ac_try" in
  3481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3482. *) ac_try_echo=$ac_try;;
  3483. esac
  3484. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3485. (eval "$ac_compile") 2>conftest.er1
  3486. ac_status=$?
  3487. grep -v '^ *+' conftest.er1 >conftest.err
  3488. rm -f conftest.er1
  3489. cat conftest.err >&5
  3490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3491. (exit $ac_status); } && {
  3492. test -z "$ac_c_werror_flag" ||
  3493. test ! -s conftest.err
  3494. } && test -s conftest.$ac_objext; then
  3495. ac_cv_prog_cc_g=yes
  3496. else
  3497. echo "$as_me: failed program was:" >&5
  3498. sed 's/^/| /' conftest.$ac_ext >&5
  3499. CFLAGS=""
  3500. cat >conftest.$ac_ext <<_ACEOF
  3501. /* confdefs.h. */
  3502. _ACEOF
  3503. cat confdefs.h >>conftest.$ac_ext
  3504. cat >>conftest.$ac_ext <<_ACEOF
  3505. /* end confdefs.h. */
  3506. int
  3507. main ()
  3508. {
  3509. ;
  3510. return 0;
  3511. }
  3512. _ACEOF
  3513. rm -f conftest.$ac_objext
  3514. if { (ac_try="$ac_compile"
  3515. case "(($ac_try" in
  3516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3517. *) ac_try_echo=$ac_try;;
  3518. esac
  3519. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3520. (eval "$ac_compile") 2>conftest.er1
  3521. ac_status=$?
  3522. grep -v '^ *+' conftest.er1 >conftest.err
  3523. rm -f conftest.er1
  3524. cat conftest.err >&5
  3525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3526. (exit $ac_status); } && {
  3527. test -z "$ac_c_werror_flag" ||
  3528. test ! -s conftest.err
  3529. } && test -s conftest.$ac_objext; then
  3530. :
  3531. else
  3532. echo "$as_me: failed program was:" >&5
  3533. sed 's/^/| /' conftest.$ac_ext >&5
  3534. ac_c_werror_flag=$ac_save_c_werror_flag
  3535. CFLAGS="-g"
  3536. cat >conftest.$ac_ext <<_ACEOF
  3537. /* confdefs.h. */
  3538. _ACEOF
  3539. cat confdefs.h >>conftest.$ac_ext
  3540. cat >>conftest.$ac_ext <<_ACEOF
  3541. /* end confdefs.h. */
  3542. int
  3543. main ()
  3544. {
  3545. ;
  3546. return 0;
  3547. }
  3548. _ACEOF
  3549. rm -f conftest.$ac_objext
  3550. if { (ac_try="$ac_compile"
  3551. case "(($ac_try" in
  3552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3553. *) ac_try_echo=$ac_try;;
  3554. esac
  3555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3556. (eval "$ac_compile") 2>conftest.er1
  3557. ac_status=$?
  3558. grep -v '^ *+' conftest.er1 >conftest.err
  3559. rm -f conftest.er1
  3560. cat conftest.err >&5
  3561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3562. (exit $ac_status); } && {
  3563. test -z "$ac_c_werror_flag" ||
  3564. test ! -s conftest.err
  3565. } && test -s conftest.$ac_objext; then
  3566. ac_cv_prog_cc_g=yes
  3567. else
  3568. echo "$as_me: failed program was:" >&5
  3569. sed 's/^/| /' conftest.$ac_ext >&5
  3570. fi
  3571. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3572. fi
  3573. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3574. fi
  3575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3576. ac_c_werror_flag=$ac_save_c_werror_flag
  3577. fi
  3578. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3579. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3580. if test "$ac_test_CFLAGS" = set; then
  3581. CFLAGS=$ac_save_CFLAGS
  3582. elif test $ac_cv_prog_cc_g = yes; then
  3583. if test "$GCC" = yes; then
  3584. CFLAGS="-g -O2"
  3585. else
  3586. CFLAGS="-g"
  3587. fi
  3588. else
  3589. if test "$GCC" = yes; then
  3590. CFLAGS="-O2"
  3591. else
  3592. CFLAGS=
  3593. fi
  3594. fi
  3595. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3596. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3597. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3598. echo $ECHO_N "(cached) $ECHO_C" >&6
  3599. else
  3600. ac_cv_prog_cc_c89=no
  3601. ac_save_CC=$CC
  3602. cat >conftest.$ac_ext <<_ACEOF
  3603. /* confdefs.h. */
  3604. _ACEOF
  3605. cat confdefs.h >>conftest.$ac_ext
  3606. cat >>conftest.$ac_ext <<_ACEOF
  3607. /* end confdefs.h. */
  3608. #include <stdarg.h>
  3609. #include <stdio.h>
  3610. #include <sys/types.h>
  3611. #include <sys/stat.h>
  3612. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3613. struct buf { int x; };
  3614. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3615. static char *e (p, i)
  3616. char **p;
  3617. int i;
  3618. {
  3619. return p[i];
  3620. }
  3621. static char *f (char * (*g) (char **, int), char **p, ...)
  3622. {
  3623. char *s;
  3624. va_list v;
  3625. va_start (v,p);
  3626. s = g (p, va_arg (v,int));
  3627. va_end (v);
  3628. return s;
  3629. }
  3630. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3631. function prototypes and stuff, but not '\xHH' hex character constants.
  3632. These don't provoke an error unfortunately, instead are silently treated
  3633. as 'x'. The following induces an error, until -std is added to get
  3634. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3635. array size at least. It's necessary to write '\x00'==0 to get something
  3636. that's true only with -std. */
  3637. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3638. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3639. inside strings and character constants. */
  3640. #define FOO(x) 'x'
  3641. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3642. int test (int i, double x);
  3643. struct s1 {int (*f) (int a);};
  3644. struct s2 {int (*f) (double a);};
  3645. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3646. int argc;
  3647. char **argv;
  3648. int
  3649. main ()
  3650. {
  3651. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3652. ;
  3653. return 0;
  3654. }
  3655. _ACEOF
  3656. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3657. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3658. do
  3659. CC="$ac_save_CC $ac_arg"
  3660. rm -f conftest.$ac_objext
  3661. if { (ac_try="$ac_compile"
  3662. case "(($ac_try" in
  3663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3664. *) ac_try_echo=$ac_try;;
  3665. esac
  3666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3667. (eval "$ac_compile") 2>conftest.er1
  3668. ac_status=$?
  3669. grep -v '^ *+' conftest.er1 >conftest.err
  3670. rm -f conftest.er1
  3671. cat conftest.err >&5
  3672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3673. (exit $ac_status); } && {
  3674. test -z "$ac_c_werror_flag" ||
  3675. test ! -s conftest.err
  3676. } && test -s conftest.$ac_objext; then
  3677. ac_cv_prog_cc_c89=$ac_arg
  3678. else
  3679. echo "$as_me: failed program was:" >&5
  3680. sed 's/^/| /' conftest.$ac_ext >&5
  3681. fi
  3682. rm -f core conftest.err conftest.$ac_objext
  3683. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3684. done
  3685. rm -f conftest.$ac_ext
  3686. CC=$ac_save_CC
  3687. fi
  3688. # AC_CACHE_VAL
  3689. case "x$ac_cv_prog_cc_c89" in
  3690. x)
  3691. { echo "$as_me:$LINENO: result: none needed" >&5
  3692. echo "${ECHO_T}none needed" >&6; } ;;
  3693. xno)
  3694. { echo "$as_me:$LINENO: result: unsupported" >&5
  3695. echo "${ECHO_T}unsupported" >&6; } ;;
  3696. *)
  3697. CC="$CC $ac_cv_prog_cc_c89"
  3698. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3699. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3700. esac
  3701. ac_ext=c
  3702. ac_cpp='$CPP $CPPFLAGS'
  3703. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3704. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3705. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3706. depcc="$CC" am_compiler_list=
  3707. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3708. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3709. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3710. echo $ECHO_N "(cached) $ECHO_C" >&6
  3711. else
  3712. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3713. # We make a subdir and do the tests there. Otherwise we can end up
  3714. # making bogus files that we don't know about and never remove. For
  3715. # instance it was reported that on HP-UX the gcc test will end up
  3716. # making a dummy file named `D' -- because `-MD' means `put the output
  3717. # in D'.
  3718. mkdir conftest.dir
  3719. # Copy depcomp to subdir because otherwise we won't find it if we're
  3720. # using a relative directory.
  3721. cp "$am_depcomp" conftest.dir
  3722. cd conftest.dir
  3723. # We will build objects and dependencies in a subdirectory because
  3724. # it helps to detect inapplicable dependency modes. For instance
  3725. # both Tru64's cc and ICC support -MD to output dependencies as a
  3726. # side effect of compilation, but ICC will put the dependencies in
  3727. # the current directory while Tru64 will put them in the object
  3728. # directory.
  3729. mkdir sub
  3730. am_cv_CC_dependencies_compiler_type=none
  3731. if test "$am_compiler_list" = ""; then
  3732. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3733. fi
  3734. for depmode in $am_compiler_list; do
  3735. # Setup a source with many dependencies, because some compilers
  3736. # like to wrap large dependency lists on column 80 (with \), and
  3737. # we should not choose a depcomp mode which is confused by this.
  3738. #
  3739. # We need to recreate these files for each test, as the compiler may
  3740. # overwrite some of them when testing with obscure command lines.
  3741. # This happens at least with the AIX C compiler.
  3742. : > sub/conftest.c
  3743. for i in 1 2 3 4 5 6; do
  3744. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3745. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3746. # Solaris 8's {/usr,}/bin/sh.
  3747. touch sub/conftst$i.h
  3748. done
  3749. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3750. case $depmode in
  3751. nosideeffect)
  3752. # after this tag, mechanisms are not by side-effect, so they'll
  3753. # only be used when explicitly requested
  3754. if test "x$enable_dependency_tracking" = xyes; then
  3755. continue
  3756. else
  3757. break
  3758. fi
  3759. ;;
  3760. none) break ;;
  3761. esac
  3762. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3763. # mode. It turns out that the SunPro C++ compiler does not properly
  3764. # handle `-M -o', and we need to detect this.
  3765. if depmode=$depmode \
  3766. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3767. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3768. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3769. >/dev/null 2>conftest.err &&
  3770. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3771. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3772. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3773. # icc doesn't choke on unknown options, it will just issue warnings
  3774. # or remarks (even with -Werror). So we grep stderr for any message
  3775. # that says an option was ignored or not supported.
  3776. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3777. # icc: Command line warning: ignoring option '-M'; no argument required
  3778. # The diagnosis changed in icc 8.0:
  3779. # icc: Command line remark: option '-MP' not supported
  3780. if (grep 'ignoring option' conftest.err ||
  3781. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3782. am_cv_CC_dependencies_compiler_type=$depmode
  3783. break
  3784. fi
  3785. fi
  3786. done
  3787. cd ..
  3788. rm -rf conftest.dir
  3789. else
  3790. am_cv_CC_dependencies_compiler_type=none
  3791. fi
  3792. fi
  3793. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3794. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3795. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3796. if
  3797. test "x$enable_dependency_tracking" != xno \
  3798. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3799. am__fastdepCC_TRUE=
  3800. am__fastdepCC_FALSE='#'
  3801. else
  3802. am__fastdepCC_TRUE='#'
  3803. am__fastdepCC_FALSE=
  3804. fi
  3805. # Find a good install program. We prefer a C program (faster),
  3806. # so one script is as good as another. But avoid the broken or
  3807. # incompatible versions:
  3808. # SysV /etc/install, /usr/sbin/install
  3809. # SunOS /usr/etc/install
  3810. # IRIX /sbin/install
  3811. # AIX /bin/install
  3812. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3813. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3814. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3815. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3816. # OS/2's system install, which has a completely different semantic
  3817. # ./install, which can be erroneously created by make from ./install.sh.
  3818. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3819. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3820. if test -z "$INSTALL"; then
  3821. if test "${ac_cv_path_install+set}" = set; then
  3822. echo $ECHO_N "(cached) $ECHO_C" >&6
  3823. else
  3824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3825. for as_dir in $PATH
  3826. do
  3827. IFS=$as_save_IFS
  3828. test -z "$as_dir" && as_dir=.
  3829. # Account for people who put trailing slashes in PATH elements.
  3830. case $as_dir/ in
  3831. ./ | .// | /cC/* | \
  3832. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3833. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3834. /usr/ucb/* ) ;;
  3835. *)
  3836. # OSF1 and SCO ODT 3.0 have their own names for install.
  3837. # Don't use installbsd from OSF since it installs stuff as root
  3838. # by default.
  3839. for ac_prog in ginstall scoinst install; do
  3840. for ac_exec_ext in '' $ac_executable_extensions; do
  3841. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3842. if test $ac_prog = install &&
  3843. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3844. # AIX install. It has an incompatible calling convention.
  3845. :
  3846. elif test $ac_prog = install &&
  3847. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3848. # program-specific install script used by HP pwplus--don't use.
  3849. :
  3850. else
  3851. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3852. break 3
  3853. fi
  3854. fi
  3855. done
  3856. done
  3857. ;;
  3858. esac
  3859. done
  3860. IFS=$as_save_IFS
  3861. fi
  3862. if test "${ac_cv_path_install+set}" = set; then
  3863. INSTALL=$ac_cv_path_install
  3864. else
  3865. # As a last resort, use the slow shell script. Don't cache a
  3866. # value for INSTALL within a source directory, because that will
  3867. # break other packages using the cache if that directory is
  3868. # removed, or if the value is a relative name.
  3869. INSTALL=$ac_install_sh
  3870. fi
  3871. fi
  3872. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3873. echo "${ECHO_T}$INSTALL" >&6; }
  3874. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3875. # It thinks the first close brace ends the variable substitution.
  3876. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3877. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3878. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3879. if test -n "$ac_tool_prefix"; then
  3880. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3881. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3882. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3883. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3884. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3885. echo $ECHO_N "(cached) $ECHO_C" >&6
  3886. else
  3887. if test -n "$RANLIB"; then
  3888. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3889. else
  3890. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3891. for as_dir in $PATH
  3892. do
  3893. IFS=$as_save_IFS
  3894. test -z "$as_dir" && as_dir=.
  3895. for ac_exec_ext in '' $ac_executable_extensions; do
  3896. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3897. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3898. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3899. break 2
  3900. fi
  3901. done
  3902. done
  3903. IFS=$as_save_IFS
  3904. fi
  3905. fi
  3906. RANLIB=$ac_cv_prog_RANLIB
  3907. if test -n "$RANLIB"; then
  3908. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3909. echo "${ECHO_T}$RANLIB" >&6; }
  3910. else
  3911. { echo "$as_me:$LINENO: result: no" >&5
  3912. echo "${ECHO_T}no" >&6; }
  3913. fi
  3914. fi
  3915. if test -z "$ac_cv_prog_RANLIB"; then
  3916. ac_ct_RANLIB=$RANLIB
  3917. # Extract the first word of "ranlib", so it can be a program name with args.
  3918. set dummy ranlib; ac_word=$2
  3919. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3920. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3921. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3922. echo $ECHO_N "(cached) $ECHO_C" >&6
  3923. else
  3924. if test -n "$ac_ct_RANLIB"; then
  3925. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3926. else
  3927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3928. for as_dir in $PATH
  3929. do
  3930. IFS=$as_save_IFS
  3931. test -z "$as_dir" && as_dir=.
  3932. for ac_exec_ext in '' $ac_executable_extensions; do
  3933. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3934. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3935. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3936. break 2
  3937. fi
  3938. done
  3939. done
  3940. IFS=$as_save_IFS
  3941. fi
  3942. fi
  3943. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3944. if test -n "$ac_ct_RANLIB"; then
  3945. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3946. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3947. else
  3948. { echo "$as_me:$LINENO: result: no" >&5
  3949. echo "${ECHO_T}no" >&6; }
  3950. fi
  3951. if test "x$ac_ct_RANLIB" = x; then
  3952. RANLIB=":"
  3953. else
  3954. case $cross_compiling:$ac_tool_warned in
  3955. yes:)
  3956. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3957. whose name does not start with the host triplet. If you think this
  3958. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3959. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3960. whose name does not start with the host triplet. If you think this
  3961. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3962. ac_tool_warned=yes ;;
  3963. esac
  3964. RANLIB=$ac_ct_RANLIB
  3965. fi
  3966. else
  3967. RANLIB="$ac_cv_prog_RANLIB"
  3968. fi
  3969. for ac_prog in 'bison -y' byacc
  3970. do
  3971. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3972. set dummy $ac_prog; ac_word=$2
  3973. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3974. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3975. if test "${ac_cv_prog_YACC+set}" = set; then
  3976. echo $ECHO_N "(cached) $ECHO_C" >&6
  3977. else
  3978. if test -n "$YACC"; then
  3979. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3980. else
  3981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3982. for as_dir in $PATH
  3983. do
  3984. IFS=$as_save_IFS
  3985. test -z "$as_dir" && as_dir=.
  3986. for ac_exec_ext in '' $ac_executable_extensions; do
  3987. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3988. ac_cv_prog_YACC="$ac_prog"
  3989. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3990. break 2
  3991. fi
  3992. done
  3993. done
  3994. IFS=$as_save_IFS
  3995. fi
  3996. fi
  3997. YACC=$ac_cv_prog_YACC
  3998. if test -n "$YACC"; then
  3999. { echo "$as_me:$LINENO: result: $YACC" >&5
  4000. echo "${ECHO_T}$YACC" >&6; }
  4001. else
  4002. { echo "$as_me:$LINENO: result: no" >&5
  4003. echo "${ECHO_T}no" >&6; }
  4004. fi
  4005. test -n "$YACC" && break
  4006. done
  4007. test -n "$YACC" || YACC="yacc"
  4008. # Setting language choice
  4009. ac_ext=cpp
  4010. ac_cpp='$CXXCPP $CPPFLAGS'
  4011. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4012. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4013. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4014. # Check for GNU library
  4015. cat >>confdefs.h <<\_ACEOF
  4016. #define _GNU_SOURCE 1
  4017. _ACEOF
  4018. # Enable system extensions
  4019. ac_ext=cpp
  4020. ac_cpp='$CXXCPP $CPPFLAGS'
  4021. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4022. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4023. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4024. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4025. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4026. if test -z "$CXXCPP"; then
  4027. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4028. echo $ECHO_N "(cached) $ECHO_C" >&6
  4029. else
  4030. # Double quotes because CXXCPP needs to be expanded
  4031. for CXXCPP in "$CXX -E" "/lib/cpp"
  4032. do
  4033. ac_preproc_ok=false
  4034. for ac_cxx_preproc_warn_flag in '' yes
  4035. do
  4036. # Use a header file that comes with gcc, so configuring glibc
  4037. # with a fresh cross-compiler works.
  4038. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4039. # <limits.h> exists even on freestanding compilers.
  4040. # On the NeXT, cc -E runs the code through the compiler's parser,
  4041. # not just through cpp. "Syntax error" is here to catch this case.
  4042. cat >conftest.$ac_ext <<_ACEOF
  4043. /* confdefs.h. */
  4044. _ACEOF
  4045. cat confdefs.h >>conftest.$ac_ext
  4046. cat >>conftest.$ac_ext <<_ACEOF
  4047. /* end confdefs.h. */
  4048. #ifdef __STDC__
  4049. # include <limits.h>
  4050. #else
  4051. # include <assert.h>
  4052. #endif
  4053. Syntax error
  4054. _ACEOF
  4055. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4056. case "(($ac_try" in
  4057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4058. *) ac_try_echo=$ac_try;;
  4059. esac
  4060. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4061. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4062. ac_status=$?
  4063. grep -v '^ *+' conftest.er1 >conftest.err
  4064. rm -f conftest.er1
  4065. cat conftest.err >&5
  4066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4067. (exit $ac_status); } >/dev/null && {
  4068. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4069. test ! -s conftest.err
  4070. }; then
  4071. :
  4072. else
  4073. echo "$as_me: failed program was:" >&5
  4074. sed 's/^/| /' conftest.$ac_ext >&5
  4075. # Broken: fails on valid input.
  4076. continue
  4077. fi
  4078. rm -f conftest.err conftest.$ac_ext
  4079. # OK, works on sane cases. Now check whether nonexistent headers
  4080. # can be detected and how.
  4081. cat >conftest.$ac_ext <<_ACEOF
  4082. /* confdefs.h. */
  4083. _ACEOF
  4084. cat confdefs.h >>conftest.$ac_ext
  4085. cat >>conftest.$ac_ext <<_ACEOF
  4086. /* end confdefs.h. */
  4087. #include <ac_nonexistent.h>
  4088. _ACEOF
  4089. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4090. case "(($ac_try" in
  4091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4092. *) ac_try_echo=$ac_try;;
  4093. esac
  4094. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4095. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4096. ac_status=$?
  4097. grep -v '^ *+' conftest.er1 >conftest.err
  4098. rm -f conftest.er1
  4099. cat conftest.err >&5
  4100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4101. (exit $ac_status); } >/dev/null && {
  4102. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4103. test ! -s conftest.err
  4104. }; then
  4105. # Broken: success on invalid input.
  4106. continue
  4107. else
  4108. echo "$as_me: failed program was:" >&5
  4109. sed 's/^/| /' conftest.$ac_ext >&5
  4110. # Passes both tests.
  4111. ac_preproc_ok=:
  4112. break
  4113. fi
  4114. rm -f conftest.err conftest.$ac_ext
  4115. done
  4116. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4117. rm -f conftest.err conftest.$ac_ext
  4118. if $ac_preproc_ok; then
  4119. break
  4120. fi
  4121. done
  4122. ac_cv_prog_CXXCPP=$CXXCPP
  4123. fi
  4124. CXXCPP=$ac_cv_prog_CXXCPP
  4125. else
  4126. ac_cv_prog_CXXCPP=$CXXCPP
  4127. fi
  4128. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4129. echo "${ECHO_T}$CXXCPP" >&6; }
  4130. ac_preproc_ok=false
  4131. for ac_cxx_preproc_warn_flag in '' yes
  4132. do
  4133. # Use a header file that comes with gcc, so configuring glibc
  4134. # with a fresh cross-compiler works.
  4135. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4136. # <limits.h> exists even on freestanding compilers.
  4137. # On the NeXT, cc -E runs the code through the compiler's parser,
  4138. # not just through cpp. "Syntax error" is here to catch this case.
  4139. cat >conftest.$ac_ext <<_ACEOF
  4140. /* confdefs.h. */
  4141. _ACEOF
  4142. cat confdefs.h >>conftest.$ac_ext
  4143. cat >>conftest.$ac_ext <<_ACEOF
  4144. /* end confdefs.h. */
  4145. #ifdef __STDC__
  4146. # include <limits.h>
  4147. #else
  4148. # include <assert.h>
  4149. #endif
  4150. Syntax error
  4151. _ACEOF
  4152. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4153. case "(($ac_try" in
  4154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4155. *) ac_try_echo=$ac_try;;
  4156. esac
  4157. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4158. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4159. ac_status=$?
  4160. grep -v '^ *+' conftest.er1 >conftest.err
  4161. rm -f conftest.er1
  4162. cat conftest.err >&5
  4163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4164. (exit $ac_status); } >/dev/null && {
  4165. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4166. test ! -s conftest.err
  4167. }; then
  4168. :
  4169. else
  4170. echo "$as_me: failed program was:" >&5
  4171. sed 's/^/| /' conftest.$ac_ext >&5
  4172. # Broken: fails on valid input.
  4173. continue
  4174. fi
  4175. rm -f conftest.err conftest.$ac_ext
  4176. # OK, works on sane cases. Now check whether nonexistent headers
  4177. # can be detected and how.
  4178. cat >conftest.$ac_ext <<_ACEOF
  4179. /* confdefs.h. */
  4180. _ACEOF
  4181. cat confdefs.h >>conftest.$ac_ext
  4182. cat >>conftest.$ac_ext <<_ACEOF
  4183. /* end confdefs.h. */
  4184. #include <ac_nonexistent.h>
  4185. _ACEOF
  4186. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4187. case "(($ac_try" in
  4188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4189. *) ac_try_echo=$ac_try;;
  4190. esac
  4191. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4192. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4193. ac_status=$?
  4194. grep -v '^ *+' conftest.er1 >conftest.err
  4195. rm -f conftest.er1
  4196. cat conftest.err >&5
  4197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4198. (exit $ac_status); } >/dev/null && {
  4199. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4200. test ! -s conftest.err
  4201. }; then
  4202. # Broken: success on invalid input.
  4203. continue
  4204. else
  4205. echo "$as_me: failed program was:" >&5
  4206. sed 's/^/| /' conftest.$ac_ext >&5
  4207. # Passes both tests.
  4208. ac_preproc_ok=:
  4209. break
  4210. fi
  4211. rm -f conftest.err conftest.$ac_ext
  4212. done
  4213. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4214. rm -f conftest.err conftest.$ac_ext
  4215. if $ac_preproc_ok; then
  4216. :
  4217. else
  4218. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4219. See \`config.log' for more details." >&5
  4220. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4221. See \`config.log' for more details." >&2;}
  4222. { (exit 1); exit 1; }; }
  4223. fi
  4224. ac_ext=cpp
  4225. ac_cpp='$CXXCPP $CPPFLAGS'
  4226. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4227. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4228. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4229. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4230. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4231. if test "${ac_cv_path_GREP+set}" = set; then
  4232. echo $ECHO_N "(cached) $ECHO_C" >&6
  4233. else
  4234. # Extract the first word of "grep ggrep" to use in msg output
  4235. if test -z "$GREP"; then
  4236. set dummy grep ggrep; ac_prog_name=$2
  4237. if test "${ac_cv_path_GREP+set}" = set; then
  4238. echo $ECHO_N "(cached) $ECHO_C" >&6
  4239. else
  4240. ac_path_GREP_found=false
  4241. # Loop through the user's path and test for each of PROGNAME-LIST
  4242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4243. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4244. do
  4245. IFS=$as_save_IFS
  4246. test -z "$as_dir" && as_dir=.
  4247. for ac_prog in grep ggrep; do
  4248. for ac_exec_ext in '' $ac_executable_extensions; do
  4249. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4250. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4251. # Check for GNU ac_path_GREP and select it if it is found.
  4252. # Check for GNU $ac_path_GREP
  4253. case `"$ac_path_GREP" --version 2>&1` in
  4254. *GNU*)
  4255. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4256. *)
  4257. ac_count=0
  4258. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4259. while :
  4260. do
  4261. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4262. mv "conftest.tmp" "conftest.in"
  4263. cp "conftest.in" "conftest.nl"
  4264. echo 'GREP' >> "conftest.nl"
  4265. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4266. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4267. ac_count=`expr $ac_count + 1`
  4268. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4269. # Best one so far, save it but keep looking for a better one
  4270. ac_cv_path_GREP="$ac_path_GREP"
  4271. ac_path_GREP_max=$ac_count
  4272. fi
  4273. # 10*(2^10) chars as input seems more than enough
  4274. test $ac_count -gt 10 && break
  4275. done
  4276. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4277. esac
  4278. $ac_path_GREP_found && break 3
  4279. done
  4280. done
  4281. done
  4282. IFS=$as_save_IFS
  4283. fi
  4284. GREP="$ac_cv_path_GREP"
  4285. if test -z "$GREP"; then
  4286. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4287. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4288. { (exit 1); exit 1; }; }
  4289. fi
  4290. else
  4291. ac_cv_path_GREP=$GREP
  4292. fi
  4293. fi
  4294. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4295. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4296. GREP="$ac_cv_path_GREP"
  4297. { echo "$as_me:$LINENO: checking for egrep" >&5
  4298. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4299. if test "${ac_cv_path_EGREP+set}" = set; then
  4300. echo $ECHO_N "(cached) $ECHO_C" >&6
  4301. else
  4302. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4303. then ac_cv_path_EGREP="$GREP -E"
  4304. else
  4305. # Extract the first word of "egrep" to use in msg output
  4306. if test -z "$EGREP"; then
  4307. set dummy egrep; ac_prog_name=$2
  4308. if test "${ac_cv_path_EGREP+set}" = set; then
  4309. echo $ECHO_N "(cached) $ECHO_C" >&6
  4310. else
  4311. ac_path_EGREP_found=false
  4312. # Loop through the user's path and test for each of PROGNAME-LIST
  4313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4314. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4315. do
  4316. IFS=$as_save_IFS
  4317. test -z "$as_dir" && as_dir=.
  4318. for ac_prog in egrep; do
  4319. for ac_exec_ext in '' $ac_executable_extensions; do
  4320. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4321. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4322. # Check for GNU ac_path_EGREP and select it if it is found.
  4323. # Check for GNU $ac_path_EGREP
  4324. case `"$ac_path_EGREP" --version 2>&1` in
  4325. *GNU*)
  4326. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4327. *)
  4328. ac_count=0
  4329. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4330. while :
  4331. do
  4332. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4333. mv "conftest.tmp" "conftest.in"
  4334. cp "conftest.in" "conftest.nl"
  4335. echo 'EGREP' >> "conftest.nl"
  4336. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4337. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4338. ac_count=`expr $ac_count + 1`
  4339. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4340. # Best one so far, save it but keep looking for a better one
  4341. ac_cv_path_EGREP="$ac_path_EGREP"
  4342. ac_path_EGREP_max=$ac_count
  4343. fi
  4344. # 10*(2^10) chars as input seems more than enough
  4345. test $ac_count -gt 10 && break
  4346. done
  4347. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4348. esac
  4349. $ac_path_EGREP_found && break 3
  4350. done
  4351. done
  4352. done
  4353. IFS=$as_save_IFS
  4354. fi
  4355. EGREP="$ac_cv_path_EGREP"
  4356. if test -z "$EGREP"; then
  4357. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4358. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4359. { (exit 1); exit 1; }; }
  4360. fi
  4361. else
  4362. ac_cv_path_EGREP=$EGREP
  4363. fi
  4364. fi
  4365. fi
  4366. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4367. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4368. EGREP="$ac_cv_path_EGREP"
  4369. { echo "$as_me:$LINENO: checking for AIX" >&5
  4370. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4371. cat >conftest.$ac_ext <<_ACEOF
  4372. /* confdefs.h. */
  4373. _ACEOF
  4374. cat confdefs.h >>conftest.$ac_ext
  4375. cat >>conftest.$ac_ext <<_ACEOF
  4376. /* end confdefs.h. */
  4377. #ifdef _AIX
  4378. yes
  4379. #endif
  4380. _ACEOF
  4381. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4382. $EGREP "yes" >/dev/null 2>&1; then
  4383. { echo "$as_me:$LINENO: result: yes" >&5
  4384. echo "${ECHO_T}yes" >&6; }
  4385. cat >>confdefs.h <<\_ACEOF
  4386. #define _ALL_SOURCE 1
  4387. _ACEOF
  4388. else
  4389. { echo "$as_me:$LINENO: result: no" >&5
  4390. echo "${ECHO_T}no" >&6; }
  4391. fi
  4392. rm -f conftest*
  4393. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4394. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4395. if test "${ac_cv_header_stdc+set}" = set; then
  4396. echo $ECHO_N "(cached) $ECHO_C" >&6
  4397. else
  4398. cat >conftest.$ac_ext <<_ACEOF
  4399. /* confdefs.h. */
  4400. _ACEOF
  4401. cat confdefs.h >>conftest.$ac_ext
  4402. cat >>conftest.$ac_ext <<_ACEOF
  4403. /* end confdefs.h. */
  4404. #include <stdlib.h>
  4405. #include <stdarg.h>
  4406. #include <string.h>
  4407. #include <float.h>
  4408. int
  4409. main ()
  4410. {
  4411. ;
  4412. return 0;
  4413. }
  4414. _ACEOF
  4415. rm -f conftest.$ac_objext
  4416. if { (ac_try="$ac_compile"
  4417. case "(($ac_try" in
  4418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4419. *) ac_try_echo=$ac_try;;
  4420. esac
  4421. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4422. (eval "$ac_compile") 2>conftest.er1
  4423. ac_status=$?
  4424. grep -v '^ *+' conftest.er1 >conftest.err
  4425. rm -f conftest.er1
  4426. cat conftest.err >&5
  4427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4428. (exit $ac_status); } && {
  4429. test -z "$ac_cxx_werror_flag" ||
  4430. test ! -s conftest.err
  4431. } && test -s conftest.$ac_objext; then
  4432. ac_cv_header_stdc=yes
  4433. else
  4434. echo "$as_me: failed program was:" >&5
  4435. sed 's/^/| /' conftest.$ac_ext >&5
  4436. ac_cv_header_stdc=no
  4437. fi
  4438. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4439. if test $ac_cv_header_stdc = yes; then
  4440. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4441. cat >conftest.$ac_ext <<_ACEOF
  4442. /* confdefs.h. */
  4443. _ACEOF
  4444. cat confdefs.h >>conftest.$ac_ext
  4445. cat >>conftest.$ac_ext <<_ACEOF
  4446. /* end confdefs.h. */
  4447. #include <string.h>
  4448. _ACEOF
  4449. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4450. $EGREP "memchr" >/dev/null 2>&1; then
  4451. :
  4452. else
  4453. ac_cv_header_stdc=no
  4454. fi
  4455. rm -f conftest*
  4456. fi
  4457. if test $ac_cv_header_stdc = yes; then
  4458. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4459. cat >conftest.$ac_ext <<_ACEOF
  4460. /* confdefs.h. */
  4461. _ACEOF
  4462. cat confdefs.h >>conftest.$ac_ext
  4463. cat >>conftest.$ac_ext <<_ACEOF
  4464. /* end confdefs.h. */
  4465. #include <stdlib.h>
  4466. _ACEOF
  4467. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4468. $EGREP "free" >/dev/null 2>&1; then
  4469. :
  4470. else
  4471. ac_cv_header_stdc=no
  4472. fi
  4473. rm -f conftest*
  4474. fi
  4475. if test $ac_cv_header_stdc = yes; then
  4476. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4477. if test "$cross_compiling" = yes; then
  4478. :
  4479. else
  4480. cat >conftest.$ac_ext <<_ACEOF
  4481. /* confdefs.h. */
  4482. _ACEOF
  4483. cat confdefs.h >>conftest.$ac_ext
  4484. cat >>conftest.$ac_ext <<_ACEOF
  4485. /* end confdefs.h. */
  4486. #include <ctype.h>
  4487. #include <stdlib.h>
  4488. #if ((' ' & 0x0FF) == 0x020)
  4489. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4490. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4491. #else
  4492. # define ISLOWER(c) \
  4493. (('a' <= (c) && (c) <= 'i') \
  4494. || ('j' <= (c) && (c) <= 'r') \
  4495. || ('s' <= (c) && (c) <= 'z'))
  4496. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4497. #endif
  4498. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4499. int
  4500. main ()
  4501. {
  4502. int i;
  4503. for (i = 0; i < 256; i++)
  4504. if (XOR (islower (i), ISLOWER (i))
  4505. || toupper (i) != TOUPPER (i))
  4506. return 2;
  4507. return 0;
  4508. }
  4509. _ACEOF
  4510. rm -f conftest$ac_exeext
  4511. if { (ac_try="$ac_link"
  4512. case "(($ac_try" in
  4513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4514. *) ac_try_echo=$ac_try;;
  4515. esac
  4516. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4517. (eval "$ac_link") 2>&5
  4518. ac_status=$?
  4519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4520. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4521. { (case "(($ac_try" in
  4522. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4523. *) ac_try_echo=$ac_try;;
  4524. esac
  4525. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4526. (eval "$ac_try") 2>&5
  4527. ac_status=$?
  4528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4529. (exit $ac_status); }; }; then
  4530. :
  4531. else
  4532. echo "$as_me: program exited with status $ac_status" >&5
  4533. echo "$as_me: failed program was:" >&5
  4534. sed 's/^/| /' conftest.$ac_ext >&5
  4535. ( exit $ac_status )
  4536. ac_cv_header_stdc=no
  4537. fi
  4538. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4539. fi
  4540. fi
  4541. fi
  4542. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4543. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4544. if test $ac_cv_header_stdc = yes; then
  4545. cat >>confdefs.h <<\_ACEOF
  4546. #define STDC_HEADERS 1
  4547. _ACEOF
  4548. fi
  4549. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4550. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4551. inttypes.h stdint.h unistd.h
  4552. do
  4553. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4554. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4555. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4556. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4557. echo $ECHO_N "(cached) $ECHO_C" >&6
  4558. else
  4559. cat >conftest.$ac_ext <<_ACEOF
  4560. /* confdefs.h. */
  4561. _ACEOF
  4562. cat confdefs.h >>conftest.$ac_ext
  4563. cat >>conftest.$ac_ext <<_ACEOF
  4564. /* end confdefs.h. */
  4565. $ac_includes_default
  4566. #include <$ac_header>
  4567. _ACEOF
  4568. rm -f conftest.$ac_objext
  4569. if { (ac_try="$ac_compile"
  4570. case "(($ac_try" in
  4571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4572. *) ac_try_echo=$ac_try;;
  4573. esac
  4574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4575. (eval "$ac_compile") 2>conftest.er1
  4576. ac_status=$?
  4577. grep -v '^ *+' conftest.er1 >conftest.err
  4578. rm -f conftest.er1
  4579. cat conftest.err >&5
  4580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4581. (exit $ac_status); } && {
  4582. test -z "$ac_cxx_werror_flag" ||
  4583. test ! -s conftest.err
  4584. } && test -s conftest.$ac_objext; then
  4585. eval "$as_ac_Header=yes"
  4586. else
  4587. echo "$as_me: failed program was:" >&5
  4588. sed 's/^/| /' conftest.$ac_ext >&5
  4589. eval "$as_ac_Header=no"
  4590. fi
  4591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4592. fi
  4593. ac_res=`eval echo '${'$as_ac_Header'}'`
  4594. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4595. echo "${ECHO_T}$ac_res" >&6; }
  4596. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4597. cat >>confdefs.h <<_ACEOF
  4598. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4599. _ACEOF
  4600. fi
  4601. done
  4602. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4603. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4604. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4605. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4606. echo $ECHO_N "(cached) $ECHO_C" >&6
  4607. fi
  4608. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4609. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4610. else
  4611. # Is the header compilable?
  4612. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4613. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4614. cat >conftest.$ac_ext <<_ACEOF
  4615. /* confdefs.h. */
  4616. _ACEOF
  4617. cat confdefs.h >>conftest.$ac_ext
  4618. cat >>conftest.$ac_ext <<_ACEOF
  4619. /* end confdefs.h. */
  4620. $ac_includes_default
  4621. #include <minix/config.h>
  4622. _ACEOF
  4623. rm -f conftest.$ac_objext
  4624. if { (ac_try="$ac_compile"
  4625. case "(($ac_try" in
  4626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4627. *) ac_try_echo=$ac_try;;
  4628. esac
  4629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4630. (eval "$ac_compile") 2>conftest.er1
  4631. ac_status=$?
  4632. grep -v '^ *+' conftest.er1 >conftest.err
  4633. rm -f conftest.er1
  4634. cat conftest.err >&5
  4635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4636. (exit $ac_status); } && {
  4637. test -z "$ac_cxx_werror_flag" ||
  4638. test ! -s conftest.err
  4639. } && test -s conftest.$ac_objext; then
  4640. ac_header_compiler=yes
  4641. else
  4642. echo "$as_me: failed program was:" >&5
  4643. sed 's/^/| /' conftest.$ac_ext >&5
  4644. ac_header_compiler=no
  4645. fi
  4646. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4647. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4648. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4649. # Is the header present?
  4650. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4651. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4652. cat >conftest.$ac_ext <<_ACEOF
  4653. /* confdefs.h. */
  4654. _ACEOF
  4655. cat confdefs.h >>conftest.$ac_ext
  4656. cat >>conftest.$ac_ext <<_ACEOF
  4657. /* end confdefs.h. */
  4658. #include <minix/config.h>
  4659. _ACEOF
  4660. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4661. case "(($ac_try" in
  4662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4663. *) ac_try_echo=$ac_try;;
  4664. esac
  4665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4666. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4667. ac_status=$?
  4668. grep -v '^ *+' conftest.er1 >conftest.err
  4669. rm -f conftest.er1
  4670. cat conftest.err >&5
  4671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4672. (exit $ac_status); } >/dev/null && {
  4673. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4674. test ! -s conftest.err
  4675. }; then
  4676. ac_header_preproc=yes
  4677. else
  4678. echo "$as_me: failed program was:" >&5
  4679. sed 's/^/| /' conftest.$ac_ext >&5
  4680. ac_header_preproc=no
  4681. fi
  4682. rm -f conftest.err conftest.$ac_ext
  4683. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4684. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4685. # So? What about this header?
  4686. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4687. yes:no: )
  4688. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4689. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4690. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4691. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4692. ac_header_preproc=yes
  4693. ;;
  4694. no:yes:* )
  4695. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4696. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4697. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4698. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4699. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4700. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4701. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4702. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4703. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4704. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4705. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4706. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4707. ( cat <<\_ASBOX
  4708. ## ----------------------------------------------- ##
  4709. ## Report this to t-tujikawa@users.sourceforge.net ##
  4710. ## ----------------------------------------------- ##
  4711. _ASBOX
  4712. ) | sed "s/^/$as_me: WARNING: /" >&2
  4713. ;;
  4714. esac
  4715. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4716. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4717. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4718. echo $ECHO_N "(cached) $ECHO_C" >&6
  4719. else
  4720. ac_cv_header_minix_config_h=$ac_header_preproc
  4721. fi
  4722. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4723. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4724. fi
  4725. if test $ac_cv_header_minix_config_h = yes; then
  4726. MINIX=yes
  4727. else
  4728. MINIX=
  4729. fi
  4730. if test "$MINIX" = yes; then
  4731. cat >>confdefs.h <<\_ACEOF
  4732. #define _POSIX_SOURCE 1
  4733. _ACEOF
  4734. cat >>confdefs.h <<\_ACEOF
  4735. #define _POSIX_1_SOURCE 2
  4736. _ACEOF
  4737. cat >>confdefs.h <<\_ACEOF
  4738. #define _MINIX 1
  4739. _ACEOF
  4740. fi
  4741. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4742. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4743. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4744. echo $ECHO_N "(cached) $ECHO_C" >&6
  4745. else
  4746. cat >conftest.$ac_ext <<_ACEOF
  4747. /* confdefs.h. */
  4748. _ACEOF
  4749. cat confdefs.h >>conftest.$ac_ext
  4750. cat >>conftest.$ac_ext <<_ACEOF
  4751. /* end confdefs.h. */
  4752. # define __EXTENSIONS__ 1
  4753. $ac_includes_default
  4754. int
  4755. main ()
  4756. {
  4757. ;
  4758. return 0;
  4759. }
  4760. _ACEOF
  4761. rm -f conftest.$ac_objext
  4762. if { (ac_try="$ac_compile"
  4763. case "(($ac_try" in
  4764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4765. *) ac_try_echo=$ac_try;;
  4766. esac
  4767. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4768. (eval "$ac_compile") 2>conftest.er1
  4769. ac_status=$?
  4770. grep -v '^ *+' conftest.er1 >conftest.err
  4771. rm -f conftest.er1
  4772. cat conftest.err >&5
  4773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4774. (exit $ac_status); } && {
  4775. test -z "$ac_cxx_werror_flag" ||
  4776. test ! -s conftest.err
  4777. } && test -s conftest.$ac_objext; then
  4778. ac_cv_safe_to_define___extensions__=yes
  4779. else
  4780. echo "$as_me: failed program was:" >&5
  4781. sed 's/^/| /' conftest.$ac_ext >&5
  4782. ac_cv_safe_to_define___extensions__=no
  4783. fi
  4784. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4785. fi
  4786. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4787. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4788. test $ac_cv_safe_to_define___extensions__ = yes &&
  4789. cat >>confdefs.h <<\_ACEOF
  4790. #define __EXTENSIONS__ 1
  4791. _ACEOF
  4792. cat >>confdefs.h <<\_ACEOF
  4793. #define _POSIX_PTHREAD_SEMANTICS 1
  4794. _ACEOF
  4795. cat >>confdefs.h <<\_ACEOF
  4796. #define _TANDEM_SOURCE 1
  4797. _ACEOF
  4798. # Checks for libraries.
  4799. if test "x$with_libxml2" = "xyes"; then
  4800. # Check whether --with-xml-prefix was given.
  4801. if test "${with_xml_prefix+set}" = set; then
  4802. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4803. else
  4804. xml_config_prefix=""
  4805. fi
  4806. # Check whether --with-xml-exec-prefix was given.
  4807. if test "${with_xml_exec_prefix+set}" = set; then
  4808. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4809. else
  4810. xml_config_exec_prefix=""
  4811. fi
  4812. # Check whether --enable-xmltest was given.
  4813. if test "${enable_xmltest+set}" = set; then
  4814. enableval=$enable_xmltest;
  4815. else
  4816. enable_xmltest=yes
  4817. fi
  4818. if test x$xml_config_exec_prefix != x ; then
  4819. xml_config_args="$xml_config_args"
  4820. if test x${XML2_CONFIG+set} != xset ; then
  4821. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4822. fi
  4823. fi
  4824. if test x$xml_config_prefix != x ; then
  4825. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4826. if test x${XML2_CONFIG+set} != xset ; then
  4827. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4828. fi
  4829. fi
  4830. # Extract the first word of "xml2-config", so it can be a program name with args.
  4831. set dummy xml2-config; ac_word=$2
  4832. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4833. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4834. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4835. echo $ECHO_N "(cached) $ECHO_C" >&6
  4836. else
  4837. case $XML2_CONFIG in
  4838. [\\/]* | ?:[\\/]*)
  4839. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4840. ;;
  4841. *)
  4842. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4843. for as_dir in $PATH
  4844. do
  4845. IFS=$as_save_IFS
  4846. test -z "$as_dir" && as_dir=.
  4847. for ac_exec_ext in '' $ac_executable_extensions; do
  4848. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4849. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4850. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4851. break 2
  4852. fi
  4853. done
  4854. done
  4855. IFS=$as_save_IFS
  4856. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4857. ;;
  4858. esac
  4859. fi
  4860. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4861. if test -n "$XML2_CONFIG"; then
  4862. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4863. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4864. else
  4865. { echo "$as_me:$LINENO: result: no" >&5
  4866. echo "${ECHO_T}no" >&6; }
  4867. fi
  4868. min_xml_version=2.6.24
  4869. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4870. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4871. no_xml=""
  4872. if test "$XML2_CONFIG" = "no" ; then
  4873. no_xml=yes
  4874. else
  4875. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4876. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4877. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4878. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4879. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4880. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4881. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4882. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4883. if test "x$enable_xmltest" = "xyes" ; then
  4884. ac_save_CPPFLAGS="$CPPFLAGS"
  4885. ac_save_LIBS="$LIBS"
  4886. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4887. LIBS="$XML_LIBS $LIBS"
  4888. rm -f conf.xmltest
  4889. if test "$cross_compiling" = yes; then
  4890. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4891. else
  4892. cat >conftest.$ac_ext <<_ACEOF
  4893. /* confdefs.h. */
  4894. _ACEOF
  4895. cat confdefs.h >>conftest.$ac_ext
  4896. cat >>conftest.$ac_ext <<_ACEOF
  4897. /* end confdefs.h. */
  4898. #include <stdlib.h>
  4899. #include <stdio.h>
  4900. #include <string.h>
  4901. #include <libxml/xmlversion.h>
  4902. int
  4903. main()
  4904. {
  4905. int xml_major_version, xml_minor_version, xml_micro_version;
  4906. int major, minor, micro;
  4907. char *tmp_version;
  4908. system("touch conf.xmltest");
  4909. /* Capture xml2-config output via autoconf/configure variables */
  4910. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4911. tmp_version = (char *)strdup("$min_xml_version");
  4912. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4913. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4914. exit(1);
  4915. }
  4916. free(tmp_version);
  4917. /* Capture the version information from the header files */
  4918. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  4919. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  4920. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  4921. exit(1);
  4922. }
  4923. free(tmp_version);
  4924. /* Compare xml2-config output to the libxml headers */
  4925. if ((xml_major_version != $xml_config_major_version) ||
  4926. (xml_minor_version != $xml_config_minor_version) ||
  4927. (xml_micro_version != $xml_config_micro_version))
  4928. {
  4929. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  4930. xml_major_version, xml_minor_version, xml_micro_version);
  4931. printf("*** xml2-config (version %d.%d.%d)\n",
  4932. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  4933. return 1;
  4934. }
  4935. /* Compare the headers to the library to make sure we match */
  4936. /* Less than ideal -- doesn't provide us with return value feedback,
  4937. * only exits if there's a serious mismatch between header and library.
  4938. */
  4939. LIBXML_TEST_VERSION;
  4940. /* Test that the library is greater than our minimum version */
  4941. if ((xml_major_version > major) ||
  4942. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  4943. ((xml_major_version == major) && (xml_minor_version == minor) &&
  4944. (xml_micro_version >= micro)))
  4945. {
  4946. return 0;
  4947. }
  4948. else
  4949. {
  4950. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  4951. xml_major_version, xml_minor_version, xml_micro_version);
  4952. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  4953. major, minor, micro);
  4954. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  4955. printf("***\n");
  4956. printf("*** If you have already installed a sufficiently new version, this error\n");
  4957. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  4958. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4959. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  4960. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  4961. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4962. printf("*** so that the correct libraries are found at run-time))\n");
  4963. }
  4964. return 1;
  4965. }
  4966. _ACEOF
  4967. rm -f conftest$ac_exeext
  4968. if { (ac_try="$ac_link"
  4969. case "(($ac_try" in
  4970. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4971. *) ac_try_echo=$ac_try;;
  4972. esac
  4973. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4974. (eval "$ac_link") 2>&5
  4975. ac_status=$?
  4976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4977. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4978. { (case "(($ac_try" in
  4979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4980. *) ac_try_echo=$ac_try;;
  4981. esac
  4982. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4983. (eval "$ac_try") 2>&5
  4984. ac_status=$?
  4985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4986. (exit $ac_status); }; }; then
  4987. :
  4988. else
  4989. echo "$as_me: program exited with status $ac_status" >&5
  4990. echo "$as_me: failed program was:" >&5
  4991. sed 's/^/| /' conftest.$ac_ext >&5
  4992. ( exit $ac_status )
  4993. no_xml=yes
  4994. fi
  4995. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4996. fi
  4997. CPPFLAGS="$ac_save_CPPFLAGS"
  4998. LIBS="$ac_save_LIBS"
  4999. fi
  5000. fi
  5001. if test "x$no_xml" = x ; then
  5002. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5003. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5004. have_libxml2=yes
  5005. else
  5006. { echo "$as_me:$LINENO: result: no" >&5
  5007. echo "${ECHO_T}no" >&6; }
  5008. if test "$XML2_CONFIG" = "no" ; then
  5009. echo "*** The xml2-config script installed by LIBXML could not be found"
  5010. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5011. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5012. echo "*** full path to xml2-config."
  5013. else
  5014. if test -f conf.xmltest ; then
  5015. :
  5016. else
  5017. echo "*** Could not run libxml test program, checking why..."
  5018. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5019. LIBS="$LIBS $XML_LIBS"
  5020. cat >conftest.$ac_ext <<_ACEOF
  5021. /* confdefs.h. */
  5022. _ACEOF
  5023. cat confdefs.h >>conftest.$ac_ext
  5024. cat >>conftest.$ac_ext <<_ACEOF
  5025. /* end confdefs.h. */
  5026. #include <libxml/xmlversion.h>
  5027. #include <stdio.h>
  5028. int
  5029. main ()
  5030. {
  5031. LIBXML_TEST_VERSION; return 0;
  5032. ;
  5033. return 0;
  5034. }
  5035. _ACEOF
  5036. rm -f conftest.$ac_objext conftest$ac_exeext
  5037. if { (ac_try="$ac_link"
  5038. case "(($ac_try" in
  5039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5040. *) ac_try_echo=$ac_try;;
  5041. esac
  5042. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5043. (eval "$ac_link") 2>conftest.er1
  5044. ac_status=$?
  5045. grep -v '^ *+' conftest.er1 >conftest.err
  5046. rm -f conftest.er1
  5047. cat conftest.err >&5
  5048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5049. (exit $ac_status); } && {
  5050. test -z "$ac_cxx_werror_flag" ||
  5051. test ! -s conftest.err
  5052. } && test -s conftest$ac_exeext &&
  5053. $as_test_x conftest$ac_exeext; then
  5054. echo "*** The test program compiled, but did not run. This usually means"
  5055. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5056. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5057. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5058. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5059. echo "*** is required on your system"
  5060. echo "***"
  5061. echo "*** If you have an old version installed, it is best to remove it, although"
  5062. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5063. else
  5064. echo "$as_me: failed program was:" >&5
  5065. sed 's/^/| /' conftest.$ac_ext >&5
  5066. echo "*** The test program failed to compile or link. See the file config.log for the"
  5067. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5068. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5069. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5070. fi
  5071. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5072. conftest$ac_exeext conftest.$ac_ext
  5073. CPPFLAGS="$ac_save_CPPFLAGS"
  5074. LIBS="$ac_save_LIBS"
  5075. fi
  5076. fi
  5077. XML_CPPFLAGS=""
  5078. XML_LIBS=""
  5079. :
  5080. fi
  5081. rm -f conf.xmltest
  5082. if test "x$have_libxml2" = "xyes"; then
  5083. cat >>confdefs.h <<\_ACEOF
  5084. #define HAVE_LIBXML2 1
  5085. _ACEOF
  5086. fi
  5087. fi
  5088. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5089. # Check whether --with-libexpat-prefix was given.
  5090. if test "${with_libexpat_prefix+set}" = set; then
  5091. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5092. else
  5093. libexpat_prefix=""
  5094. fi
  5095. if test "x$libexpat_prefix" = "x"; then
  5096. libexpat_prefix="/usr"
  5097. fi
  5098. libexpat_prefix_lib=$libexpat_prefix/lib
  5099. libexpat_prefix_include=$libexpat_prefix/include
  5100. LIBS_save=$LIBS
  5101. CPPFLAGS_save=$CPPFLAGS
  5102. LIBS="-L$libexpat_prefix_lib $LIBS"
  5103. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5104. { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5105. echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
  5106. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5107. echo $ECHO_N "(cached) $ECHO_C" >&6
  5108. else
  5109. ac_check_lib_save_LIBS=$LIBS
  5110. LIBS="-lexpat $LIBS"
  5111. cat >conftest.$ac_ext <<_ACEOF
  5112. /* confdefs.h. */
  5113. _ACEOF
  5114. cat confdefs.h >>conftest.$ac_ext
  5115. cat >>conftest.$ac_ext <<_ACEOF
  5116. /* end confdefs.h. */
  5117. /* Override any GCC internal prototype to avoid an error.
  5118. Use char because int might match the return type of a GCC
  5119. builtin and then its argument prototype would still apply. */
  5120. #ifdef __cplusplus
  5121. extern "C"
  5122. #endif
  5123. char XML_ParserCreate ();
  5124. int
  5125. main ()
  5126. {
  5127. return XML_ParserCreate ();
  5128. ;
  5129. return 0;
  5130. }
  5131. _ACEOF
  5132. rm -f conftest.$ac_objext conftest$ac_exeext
  5133. if { (ac_try="$ac_link"
  5134. case "(($ac_try" in
  5135. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5136. *) ac_try_echo=$ac_try;;
  5137. esac
  5138. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5139. (eval "$ac_link") 2>conftest.er1
  5140. ac_status=$?
  5141. grep -v '^ *+' conftest.er1 >conftest.err
  5142. rm -f conftest.er1
  5143. cat conftest.err >&5
  5144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5145. (exit $ac_status); } && {
  5146. test -z "$ac_cxx_werror_flag" ||
  5147. test ! -s conftest.err
  5148. } && test -s conftest$ac_exeext &&
  5149. $as_test_x conftest$ac_exeext; then
  5150. ac_cv_lib_expat_XML_ParserCreate=yes
  5151. else
  5152. echo "$as_me: failed program was:" >&5
  5153. sed 's/^/| /' conftest.$ac_ext >&5
  5154. ac_cv_lib_expat_XML_ParserCreate=no
  5155. fi
  5156. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5157. conftest$ac_exeext conftest.$ac_ext
  5158. LIBS=$ac_check_lib_save_LIBS
  5159. fi
  5160. { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5161. echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5162. if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
  5163. have_libexpat=yes
  5164. fi
  5165. if test "x$have_libexpat" = "xyes"; then
  5166. cat >>confdefs.h <<\_ACEOF
  5167. #define HAVE_LIBEXPAT 1
  5168. _ACEOF
  5169. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5170. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5171. fi
  5172. LIBS=$LIBS_save
  5173. CPPFLAGS=$CPPFLAGS_save
  5174. fi
  5175. if test "x$with_gnutls" = "xyes"; then
  5176. # Check whether --with-libgnutls-prefix was given.
  5177. if test "${with_libgnutls_prefix+set}" = set; then
  5178. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5179. else
  5180. libgnutls_config_prefix=""
  5181. fi
  5182. if test x$libgnutls_config_prefix != x ; then
  5183. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5184. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5185. fi
  5186. fi
  5187. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5188. set dummy libgnutls-config; ac_word=$2
  5189. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5190. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5191. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5192. echo $ECHO_N "(cached) $ECHO_C" >&6
  5193. else
  5194. case $LIBGNUTLS_CONFIG in
  5195. [\\/]* | ?:[\\/]*)
  5196. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5197. ;;
  5198. *)
  5199. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5200. for as_dir in $PATH
  5201. do
  5202. IFS=$as_save_IFS
  5203. test -z "$as_dir" && as_dir=.
  5204. for ac_exec_ext in '' $ac_executable_extensions; do
  5205. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5206. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5207. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5208. break 2
  5209. fi
  5210. done
  5211. done
  5212. IFS=$as_save_IFS
  5213. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5214. ;;
  5215. esac
  5216. fi
  5217. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5218. if test -n "$LIBGNUTLS_CONFIG"; then
  5219. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5220. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5221. else
  5222. { echo "$as_me:$LINENO: result: no" >&5
  5223. echo "${ECHO_T}no" >&6; }
  5224. fi
  5225. min_libgnutls_version=1.2.9
  5226. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5227. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5228. no_libgnutls=""
  5229. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5230. no_libgnutls=yes
  5231. else
  5232. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5233. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5234. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5235. ac_save_CFLAGS="$CFLAGS"
  5236. ac_save_LIBS="$LIBS"
  5237. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5238. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5239. rm -f conf.libgnutlstest
  5240. if test "$cross_compiling" = yes; then
  5241. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5242. else
  5243. cat >conftest.$ac_ext <<_ACEOF
  5244. /* confdefs.h. */
  5245. _ACEOF
  5246. cat confdefs.h >>conftest.$ac_ext
  5247. cat >>conftest.$ac_ext <<_ACEOF
  5248. /* end confdefs.h. */
  5249. #include <stdio.h>
  5250. #include <stdlib.h>
  5251. #include <string.h>
  5252. #include <gnutls/gnutls.h>
  5253. int
  5254. main ()
  5255. {
  5256. system ("touch conf.libgnutlstest");
  5257. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5258. {
  5259. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5260. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5261. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5262. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5263. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5264. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5265. printf("*** required on your system.\n");
  5266. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5267. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5268. printf("*** before re-running configure\n");
  5269. }
  5270. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5271. {
  5272. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5273. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5274. }
  5275. else
  5276. {
  5277. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5278. {
  5279. return 0;
  5280. }
  5281. else
  5282. {
  5283. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5284. gnutls_check_version(NULL) );
  5285. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5286. "$min_libgnutls_version" );
  5287. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5288. printf("*** \n");
  5289. printf("*** If you have already installed a sufficiently new version, this error\n");
  5290. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5291. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5292. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5293. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5294. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5295. printf("*** so that the correct libraries are found at run-time))\n");
  5296. }
  5297. }
  5298. return 1;
  5299. }
  5300. _ACEOF
  5301. rm -f conftest$ac_exeext
  5302. if { (ac_try="$ac_link"
  5303. case "(($ac_try" in
  5304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5305. *) ac_try_echo=$ac_try;;
  5306. esac
  5307. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5308. (eval "$ac_link") 2>&5
  5309. ac_status=$?
  5310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5311. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5312. { (case "(($ac_try" in
  5313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5314. *) ac_try_echo=$ac_try;;
  5315. esac
  5316. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5317. (eval "$ac_try") 2>&5
  5318. ac_status=$?
  5319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5320. (exit $ac_status); }; }; then
  5321. :
  5322. else
  5323. echo "$as_me: program exited with status $ac_status" >&5
  5324. echo "$as_me: failed program was:" >&5
  5325. sed 's/^/| /' conftest.$ac_ext >&5
  5326. ( exit $ac_status )
  5327. no_libgnutls=yes
  5328. fi
  5329. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5330. fi
  5331. CFLAGS="$ac_save_CFLAGS"
  5332. LIBS="$ac_save_LIBS"
  5333. fi
  5334. if test "x$no_libgnutls" = x ; then
  5335. { echo "$as_me:$LINENO: result: yes" >&5
  5336. echo "${ECHO_T}yes" >&6; }
  5337. have_libgnutls=yes
  5338. else
  5339. if test -f conf.libgnutlstest ; then
  5340. :
  5341. else
  5342. { echo "$as_me:$LINENO: result: no" >&5
  5343. echo "${ECHO_T}no" >&6; }
  5344. fi
  5345. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5346. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5347. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5348. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5349. echo "*** full path to libgnutls-config."
  5350. else
  5351. if test -f conf.libgnutlstest ; then
  5352. :
  5353. else
  5354. echo "*** Could not run libgnutls test program, checking why..."
  5355. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5356. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5357. cat >conftest.$ac_ext <<_ACEOF
  5358. /* confdefs.h. */
  5359. _ACEOF
  5360. cat confdefs.h >>conftest.$ac_ext
  5361. cat >>conftest.$ac_ext <<_ACEOF
  5362. /* end confdefs.h. */
  5363. #include <stdio.h>
  5364. #include <stdlib.h>
  5365. #include <string.h>
  5366. #include <gnutls/gnutls.h>
  5367. int
  5368. main ()
  5369. {
  5370. return !!gnutls_check_version(NULL);
  5371. ;
  5372. return 0;
  5373. }
  5374. _ACEOF
  5375. rm -f conftest.$ac_objext conftest$ac_exeext
  5376. if { (ac_try="$ac_link"
  5377. case "(($ac_try" in
  5378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5379. *) ac_try_echo=$ac_try;;
  5380. esac
  5381. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5382. (eval "$ac_link") 2>conftest.er1
  5383. ac_status=$?
  5384. grep -v '^ *+' conftest.er1 >conftest.err
  5385. rm -f conftest.er1
  5386. cat conftest.err >&5
  5387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5388. (exit $ac_status); } && {
  5389. test -z "$ac_cxx_werror_flag" ||
  5390. test ! -s conftest.err
  5391. } && test -s conftest$ac_exeext &&
  5392. $as_test_x conftest$ac_exeext; then
  5393. echo "*** The test program compiled, but did not run. This usually means"
  5394. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5395. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5396. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5397. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5398. echo "*** is required on your system"
  5399. echo "***"
  5400. echo "*** If you have an old version installed, it is best to remove it, although"
  5401. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5402. echo "***"
  5403. else
  5404. echo "$as_me: failed program was:" >&5
  5405. sed 's/^/| /' conftest.$ac_ext >&5
  5406. echo "*** The test program failed to compile or link. See the file config.log for the"
  5407. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5408. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5409. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5410. fi
  5411. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5412. conftest$ac_exeext conftest.$ac_ext
  5413. CFLAGS="$ac_save_CFLAGS"
  5414. LIBS="$ac_save_LIBS"
  5415. fi
  5416. fi
  5417. LIBGNUTLS_CFLAGS=""
  5418. LIBGNUTLS_LIBS=""
  5419. :
  5420. fi
  5421. rm -f conf.libgnutlstest
  5422. if test "x$have_libgnutls" = "xyes"; then
  5423. cat >>confdefs.h <<\_ACEOF
  5424. #define HAVE_LIBGNUTLS 1
  5425. _ACEOF
  5426. fi
  5427. fi
  5428. if test "x$have_libgnutls" = "xyes"; then
  5429. # Check whether --with-libgcrypt-prefix was given.
  5430. if test "${with_libgcrypt_prefix+set}" = set; then
  5431. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5432. else
  5433. libgcrypt_config_prefix=""
  5434. fi
  5435. if test x$libgcrypt_config_prefix != x ; then
  5436. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5437. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5438. fi
  5439. fi
  5440. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5441. set dummy libgcrypt-config; ac_word=$2
  5442. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5443. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5444. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5445. echo $ECHO_N "(cached) $ECHO_C" >&6
  5446. else
  5447. case $LIBGCRYPT_CONFIG in
  5448. [\\/]* | ?:[\\/]*)
  5449. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5450. ;;
  5451. *)
  5452. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5453. for as_dir in $PATH
  5454. do
  5455. IFS=$as_save_IFS
  5456. test -z "$as_dir" && as_dir=.
  5457. for ac_exec_ext in '' $ac_executable_extensions; do
  5458. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5459. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5460. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5461. break 2
  5462. fi
  5463. done
  5464. done
  5465. IFS=$as_save_IFS
  5466. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5467. ;;
  5468. esac
  5469. fi
  5470. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5471. if test -n "$LIBGCRYPT_CONFIG"; then
  5472. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5473. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5474. else
  5475. { echo "$as_me:$LINENO: result: no" >&5
  5476. echo "${ECHO_T}no" >&6; }
  5477. fi
  5478. tmp=1.2.2
  5479. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5480. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5481. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5482. else
  5483. req_libgcrypt_api=0
  5484. min_libgcrypt_version="$tmp"
  5485. fi
  5486. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5487. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5488. ok=no
  5489. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5490. req_major=`echo $min_libgcrypt_version | \
  5491. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5492. req_minor=`echo $min_libgcrypt_version | \
  5493. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5494. req_micro=`echo $min_libgcrypt_version | \
  5495. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5496. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5497. major=`echo $libgcrypt_config_version | \
  5498. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5499. minor=`echo $libgcrypt_config_version | \
  5500. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5501. micro=`echo $libgcrypt_config_version | \
  5502. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5503. if test "$major" -gt "$req_major"; then
  5504. ok=yes
  5505. else
  5506. if test "$major" -eq "$req_major"; then
  5507. if test "$minor" -gt "$req_minor"; then
  5508. ok=yes
  5509. else
  5510. if test "$minor" -eq "$req_minor"; then
  5511. if test "$micro" -ge "$req_micro"; then
  5512. ok=yes
  5513. fi
  5514. fi
  5515. fi
  5516. fi
  5517. fi
  5518. fi
  5519. if test $ok = yes; then
  5520. { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5521. echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
  5522. else
  5523. { echo "$as_me:$LINENO: result: no" >&5
  5524. echo "${ECHO_T}no" >&6; }
  5525. fi
  5526. if test $ok = yes; then
  5527. # If we have a recent libgcrypt, we should also check that the
  5528. # API is compatible
  5529. if test "$req_libgcrypt_api" -gt 0 ; then
  5530. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5531. if test "$tmp" -gt 0 ; then
  5532. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5533. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5534. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5535. { echo "$as_me:$LINENO: result: okay" >&5
  5536. echo "${ECHO_T}okay" >&6; }
  5537. else
  5538. ok=no
  5539. { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  5540. echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  5541. fi
  5542. fi
  5543. fi
  5544. fi
  5545. if test $ok = yes; then
  5546. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5547. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5548. have_libgcrypt=yes
  5549. else
  5550. LIBGCRYPT_CFLAGS=""
  5551. LIBGCRYPT_LIBS=""
  5552. :
  5553. fi
  5554. if test "x$have_libgcrypt" = "xyes"; then
  5555. cat >>confdefs.h <<\_ACEOF
  5556. #define HAVE_LIBGCRYPT 1
  5557. _ACEOF
  5558. fi
  5559. fi
  5560. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5561. # Check whether --with-openssl-prefix was given.
  5562. if test "${with_openssl_prefix+set}" = set; then
  5563. withval=$with_openssl_prefix; openssl_prefix=$withval
  5564. else
  5565. openssl_prefix=""
  5566. fi
  5567. if test "x$openssl_prefix" = "x"; then
  5568. openssl_prefix="/usr/local"
  5569. fi
  5570. openssl_prefix_lib=$openssl_prefix/lib
  5571. openssl_prefix_include=$openssl_prefix/include
  5572. LIBS_save=$LIBS
  5573. CPPFLAGS_save=$CPPFLAGS
  5574. LIBS="-L$openssl_prefix_lib $LIBS"
  5575. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5576. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5577. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5578. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5579. echo $ECHO_N "(cached) $ECHO_C" >&6
  5580. else
  5581. ac_check_lib_save_LIBS=$LIBS
  5582. LIBS="-lssl $LIBS"
  5583. cat >conftest.$ac_ext <<_ACEOF
  5584. /* confdefs.h. */
  5585. _ACEOF
  5586. cat confdefs.h >>conftest.$ac_ext
  5587. cat >>conftest.$ac_ext <<_ACEOF
  5588. /* end confdefs.h. */
  5589. /* Override any GCC internal prototype to avoid an error.
  5590. Use char because int might match the return type of a GCC
  5591. builtin and then its argument prototype would still apply. */
  5592. #ifdef __cplusplus
  5593. extern "C"
  5594. #endif
  5595. char SSL_library_init ();
  5596. int
  5597. main ()
  5598. {
  5599. return SSL_library_init ();
  5600. ;
  5601. return 0;
  5602. }
  5603. _ACEOF
  5604. rm -f conftest.$ac_objext conftest$ac_exeext
  5605. if { (ac_try="$ac_link"
  5606. case "(($ac_try" in
  5607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5608. *) ac_try_echo=$ac_try;;
  5609. esac
  5610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5611. (eval "$ac_link") 2>conftest.er1
  5612. ac_status=$?
  5613. grep -v '^ *+' conftest.er1 >conftest.err
  5614. rm -f conftest.er1
  5615. cat conftest.err >&5
  5616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5617. (exit $ac_status); } && {
  5618. test -z "$ac_cxx_werror_flag" ||
  5619. test ! -s conftest.err
  5620. } && test -s conftest$ac_exeext &&
  5621. $as_test_x conftest$ac_exeext; then
  5622. ac_cv_lib_ssl_SSL_library_init=yes
  5623. else
  5624. echo "$as_me: failed program was:" >&5
  5625. sed 's/^/| /' conftest.$ac_ext >&5
  5626. ac_cv_lib_ssl_SSL_library_init=no
  5627. fi
  5628. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5629. conftest$ac_exeext conftest.$ac_ext
  5630. LIBS=$ac_check_lib_save_LIBS
  5631. fi
  5632. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5633. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5634. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5635. have_openssl=yes; LIBS="-lssl $LIBS"
  5636. fi
  5637. if test "x$have_openssl" = "xyes"; then
  5638. have_openssl=no
  5639. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5640. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5641. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5642. echo $ECHO_N "(cached) $ECHO_C" >&6
  5643. else
  5644. ac_check_lib_save_LIBS=$LIBS
  5645. LIBS="-lcrypto $LIBS"
  5646. cat >conftest.$ac_ext <<_ACEOF
  5647. /* confdefs.h. */
  5648. _ACEOF
  5649. cat confdefs.h >>conftest.$ac_ext
  5650. cat >>conftest.$ac_ext <<_ACEOF
  5651. /* end confdefs.h. */
  5652. int
  5653. main ()
  5654. {
  5655. return main ();
  5656. ;
  5657. return 0;
  5658. }
  5659. _ACEOF
  5660. rm -f conftest.$ac_objext conftest$ac_exeext
  5661. if { (ac_try="$ac_link"
  5662. case "(($ac_try" in
  5663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5664. *) ac_try_echo=$ac_try;;
  5665. esac
  5666. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5667. (eval "$ac_link") 2>conftest.er1
  5668. ac_status=$?
  5669. grep -v '^ *+' conftest.er1 >conftest.err
  5670. rm -f conftest.er1
  5671. cat conftest.err >&5
  5672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5673. (exit $ac_status); } && {
  5674. test -z "$ac_cxx_werror_flag" ||
  5675. test ! -s conftest.err
  5676. } && test -s conftest$ac_exeext &&
  5677. $as_test_x conftest$ac_exeext; then
  5678. ac_cv_lib_crypto_main=yes
  5679. else
  5680. echo "$as_me: failed program was:" >&5
  5681. sed 's/^/| /' conftest.$ac_ext >&5
  5682. ac_cv_lib_crypto_main=no
  5683. fi
  5684. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5685. conftest$ac_exeext conftest.$ac_ext
  5686. LIBS=$ac_check_lib_save_LIBS
  5687. fi
  5688. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  5689. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  5690. if test $ac_cv_lib_crypto_main = yes; then
  5691. have_openssl=yes; LIBS="-lcrypto $LIBS"
  5692. fi
  5693. if test "x$have_openssl" = "xyes"; then
  5694. cat >>confdefs.h <<\_ACEOF
  5695. #define HAVE_LIBSSL 1
  5696. _ACEOF
  5697. for ac_func in EVP_DigestInit_ex
  5698. do
  5699. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5700. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5701. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5702. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5703. echo $ECHO_N "(cached) $ECHO_C" >&6
  5704. else
  5705. cat >conftest.$ac_ext <<_ACEOF
  5706. /* confdefs.h. */
  5707. _ACEOF
  5708. cat confdefs.h >>conftest.$ac_ext
  5709. cat >>conftest.$ac_ext <<_ACEOF
  5710. /* end confdefs.h. */
  5711. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5712. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5713. #define $ac_func innocuous_$ac_func
  5714. /* System header to define __stub macros and hopefully few prototypes,
  5715. which can conflict with char $ac_func (); below.
  5716. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5717. <limits.h> exists even on freestanding compilers. */
  5718. #ifdef __STDC__
  5719. # include <limits.h>
  5720. #else
  5721. # include <assert.h>
  5722. #endif
  5723. #undef $ac_func
  5724. /* Override any GCC internal prototype to avoid an error.
  5725. Use char because int might match the return type of a GCC
  5726. builtin and then its argument prototype would still apply. */
  5727. #ifdef __cplusplus
  5728. extern "C"
  5729. #endif
  5730. char $ac_func ();
  5731. /* The GNU C library defines this for functions which it implements
  5732. to always fail with ENOSYS. Some functions are actually named
  5733. something starting with __ and the normal name is an alias. */
  5734. #if defined __stub_$ac_func || defined __stub___$ac_func
  5735. choke me
  5736. #endif
  5737. int
  5738. main ()
  5739. {
  5740. return $ac_func ();
  5741. ;
  5742. return 0;
  5743. }
  5744. _ACEOF
  5745. rm -f conftest.$ac_objext conftest$ac_exeext
  5746. if { (ac_try="$ac_link"
  5747. case "(($ac_try" in
  5748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5749. *) ac_try_echo=$ac_try;;
  5750. esac
  5751. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5752. (eval "$ac_link") 2>conftest.er1
  5753. ac_status=$?
  5754. grep -v '^ *+' conftest.er1 >conftest.err
  5755. rm -f conftest.er1
  5756. cat conftest.err >&5
  5757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5758. (exit $ac_status); } && {
  5759. test -z "$ac_cxx_werror_flag" ||
  5760. test ! -s conftest.err
  5761. } && test -s conftest$ac_exeext &&
  5762. $as_test_x conftest$ac_exeext; then
  5763. eval "$as_ac_var=yes"
  5764. else
  5765. echo "$as_me: failed program was:" >&5
  5766. sed 's/^/| /' conftest.$ac_ext >&5
  5767. eval "$as_ac_var=no"
  5768. fi
  5769. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5770. conftest$ac_exeext conftest.$ac_ext
  5771. fi
  5772. ac_res=`eval echo '${'$as_ac_var'}'`
  5773. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5774. echo "${ECHO_T}$ac_res" >&6; }
  5775. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5776. cat >>confdefs.h <<_ACEOF
  5777. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5778. _ACEOF
  5779. have_digestinit_ex=yes
  5780. fi
  5781. done
  5782. if test "x$have_digestinit_ex" = "x"; then
  5783. cat >>confdefs.h <<\_ACEOF
  5784. #define HAVE_OLD_LIBSSL 1
  5785. _ACEOF
  5786. fi
  5787. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  5788. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  5789. for ac_func in EVP_sha256
  5790. do
  5791. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5792. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5793. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5794. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5795. echo $ECHO_N "(cached) $ECHO_C" >&6
  5796. else
  5797. cat >conftest.$ac_ext <<_ACEOF
  5798. /* confdefs.h. */
  5799. _ACEOF
  5800. cat confdefs.h >>conftest.$ac_ext
  5801. cat >>conftest.$ac_ext <<_ACEOF
  5802. /* end confdefs.h. */
  5803. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5804. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5805. #define $ac_func innocuous_$ac_func
  5806. /* System header to define __stub macros and hopefully few prototypes,
  5807. which can conflict with char $ac_func (); below.
  5808. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5809. <limits.h> exists even on freestanding compilers. */
  5810. #ifdef __STDC__
  5811. # include <limits.h>
  5812. #else
  5813. # include <assert.h>
  5814. #endif
  5815. #undef $ac_func
  5816. /* Override any GCC internal prototype to avoid an error.
  5817. Use char because int might match the return type of a GCC
  5818. builtin and then its argument prototype would still apply. */
  5819. #ifdef __cplusplus
  5820. extern "C"
  5821. #endif
  5822. char $ac_func ();
  5823. /* The GNU C library defines this for functions which it implements
  5824. to always fail with ENOSYS. Some functions are actually named
  5825. something starting with __ and the normal name is an alias. */
  5826. #if defined __stub_$ac_func || defined __stub___$ac_func
  5827. choke me
  5828. #endif
  5829. int
  5830. main ()
  5831. {
  5832. return $ac_func ();
  5833. ;
  5834. return 0;
  5835. }
  5836. _ACEOF
  5837. rm -f conftest.$ac_objext conftest$ac_exeext
  5838. if { (ac_try="$ac_link"
  5839. case "(($ac_try" in
  5840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5841. *) ac_try_echo=$ac_try;;
  5842. esac
  5843. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5844. (eval "$ac_link") 2>conftest.er1
  5845. ac_status=$?
  5846. grep -v '^ *+' conftest.er1 >conftest.err
  5847. rm -f conftest.er1
  5848. cat conftest.err >&5
  5849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5850. (exit $ac_status); } && {
  5851. test -z "$ac_cxx_werror_flag" ||
  5852. test ! -s conftest.err
  5853. } && test -s conftest$ac_exeext &&
  5854. $as_test_x conftest$ac_exeext; then
  5855. eval "$as_ac_var=yes"
  5856. else
  5857. echo "$as_me: failed program was:" >&5
  5858. sed 's/^/| /' conftest.$ac_ext >&5
  5859. eval "$as_ac_var=no"
  5860. fi
  5861. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5862. conftest$ac_exeext conftest.$ac_ext
  5863. fi
  5864. ac_res=`eval echo '${'$as_ac_var'}'`
  5865. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5866. echo "${ECHO_T}$ac_res" >&6; }
  5867. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5868. cat >>confdefs.h <<_ACEOF
  5869. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5870. _ACEOF
  5871. fi
  5872. done
  5873. fi
  5874. fi
  5875. LIBS=$LIBS_save
  5876. CPPFLAGS=$CPPFLAGS_save
  5877. fi
  5878. if test "x$with_libcares" = "xyes"; then
  5879. # Check whether --with-libcares-prefix was given.
  5880. if test "${with_libcares_prefix+set}" = set; then
  5881. withval=$with_libcares_prefix; libcares_prefix=$withval
  5882. else
  5883. libcares_prefix=""
  5884. fi
  5885. if test "x$libcares_prefix" = "x"; then
  5886. libcares_prefix="/usr"
  5887. fi
  5888. libcares_prefix_lib=$libcares_prefix/lib
  5889. libcares_prefix_include=$libcares_prefix/include
  5890. LIBS_save=$LIBS
  5891. CPPFLAGS_save=$CPPFLAGS
  5892. LIBS="-L$libcares_prefix_lib $LIBS"
  5893. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  5894. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  5895. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  5896. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  5897. echo $ECHO_N "(cached) $ECHO_C" >&6
  5898. else
  5899. ac_check_lib_save_LIBS=$LIBS
  5900. LIBS="-lcares $LIBS"
  5901. cat >conftest.$ac_ext <<_ACEOF
  5902. /* confdefs.h. */
  5903. _ACEOF
  5904. cat confdefs.h >>conftest.$ac_ext
  5905. cat >>conftest.$ac_ext <<_ACEOF
  5906. /* end confdefs.h. */
  5907. /* Override any GCC internal prototype to avoid an error.
  5908. Use char because int might match the return type of a GCC
  5909. builtin and then its argument prototype would still apply. */
  5910. #ifdef __cplusplus
  5911. extern "C"
  5912. #endif
  5913. char ares_init ();
  5914. int
  5915. main ()
  5916. {
  5917. return ares_init ();
  5918. ;
  5919. return 0;
  5920. }
  5921. _ACEOF
  5922. rm -f conftest.$ac_objext conftest$ac_exeext
  5923. if { (ac_try="$ac_link"
  5924. case "(($ac_try" in
  5925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5926. *) ac_try_echo=$ac_try;;
  5927. esac
  5928. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5929. (eval "$ac_link") 2>conftest.er1
  5930. ac_status=$?
  5931. grep -v '^ *+' conftest.er1 >conftest.err
  5932. rm -f conftest.er1
  5933. cat conftest.err >&5
  5934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5935. (exit $ac_status); } && {
  5936. test -z "$ac_cxx_werror_flag" ||
  5937. test ! -s conftest.err
  5938. } && test -s conftest$ac_exeext &&
  5939. $as_test_x conftest$ac_exeext; then
  5940. ac_cv_lib_cares_ares_init=yes
  5941. else
  5942. echo "$as_me: failed program was:" >&5
  5943. sed 's/^/| /' conftest.$ac_ext >&5
  5944. ac_cv_lib_cares_ares_init=no
  5945. fi
  5946. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5947. conftest$ac_exeext conftest.$ac_ext
  5948. LIBS=$ac_check_lib_save_LIBS
  5949. fi
  5950. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  5951. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  5952. if test $ac_cv_lib_cares_ares_init = yes; then
  5953. have_libcares=yes
  5954. fi
  5955. if test "x$have_libcares" = "xyes"; then
  5956. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  5957. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  5958. cat >conftest.$ac_ext <<_ACEOF
  5959. /* confdefs.h. */
  5960. _ACEOF
  5961. cat confdefs.h >>conftest.$ac_ext
  5962. cat >>conftest.$ac_ext <<_ACEOF
  5963. /* end confdefs.h. */
  5964. #include <ares.h>
  5965. void callback(void* arg, int status, int timeouts, struct hostent* host);
  5966. int
  5967. main ()
  5968. {
  5969. ares_channel channel;
  5970. ares_gethostbyname(channel, "foo", 0, callback, 0);
  5971. ;
  5972. return 0;
  5973. }
  5974. _ACEOF
  5975. rm -f conftest.$ac_objext
  5976. if { (ac_try="$ac_compile"
  5977. case "(($ac_try" in
  5978. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5979. *) ac_try_echo=$ac_try;;
  5980. esac
  5981. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5982. (eval "$ac_compile") 2>conftest.er1
  5983. ac_status=$?
  5984. grep -v '^ *+' conftest.er1 >conftest.err
  5985. rm -f conftest.er1
  5986. cat conftest.err >&5
  5987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5988. (exit $ac_status); } && {
  5989. test -z "$ac_cxx_werror_flag" ||
  5990. test ! -s conftest.err
  5991. } && test -s conftest.$ac_objext; then
  5992. have_libcares1_5=yes
  5993. else
  5994. echo "$as_me: failed program was:" >&5
  5995. sed 's/^/| /' conftest.$ac_ext >&5
  5996. have_libcares1_5=no
  5997. fi
  5998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5999. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6000. echo "${ECHO_T}$have_libcares1_5" >&6; }
  6001. if test "x$have_libcares1_5" = "xyes"; then
  6002. cat >>confdefs.h <<\_ACEOF
  6003. #define HAVE_LIBCARES1_5 1
  6004. _ACEOF
  6005. fi
  6006. cat >>confdefs.h <<\_ACEOF
  6007. #define HAVE_LIBCARES 1
  6008. _ACEOF
  6009. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6010. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6011. fi
  6012. LIBS=$LIBS_save
  6013. CPPFLAGS=$CPPFLAGS_save
  6014. fi
  6015. if test "x$have_libcares" = "x"; then
  6016. if test "x$with_libares" = "xyes"; then
  6017. # Check whether --with-libares-prefix was given.
  6018. if test "${with_libares_prefix+set}" = set; then
  6019. withval=$with_libares_prefix; libares_prefix=$withval
  6020. else
  6021. libares_prefix=""
  6022. fi
  6023. if test "x$libares_prefix" = "x"; then
  6024. libares_prefix="/usr"
  6025. fi
  6026. libares_prefix_lib=$libares_prefix/lib
  6027. libares_prefix_include=$libares_prefix/include
  6028. LIBS_save=$LIBS
  6029. CPPFLAGS_save=$CPPFLAGS
  6030. LIBS="-L$libares_prefix_lib $LIBS"
  6031. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  6032. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  6033. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  6034. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  6035. echo $ECHO_N "(cached) $ECHO_C" >&6
  6036. else
  6037. ac_check_lib_save_LIBS=$LIBS
  6038. LIBS="-lares $LIBS"
  6039. cat >conftest.$ac_ext <<_ACEOF
  6040. /* confdefs.h. */
  6041. _ACEOF
  6042. cat confdefs.h >>conftest.$ac_ext
  6043. cat >>conftest.$ac_ext <<_ACEOF
  6044. /* end confdefs.h. */
  6045. /* Override any GCC internal prototype to avoid an error.
  6046. Use char because int might match the return type of a GCC
  6047. builtin and then its argument prototype would still apply. */
  6048. #ifdef __cplusplus
  6049. extern "C"
  6050. #endif
  6051. char ares_init ();
  6052. int
  6053. main ()
  6054. {
  6055. return ares_init ();
  6056. ;
  6057. return 0;
  6058. }
  6059. _ACEOF
  6060. rm -f conftest.$ac_objext conftest$ac_exeext
  6061. if { (ac_try="$ac_link"
  6062. case "(($ac_try" in
  6063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6064. *) ac_try_echo=$ac_try;;
  6065. esac
  6066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6067. (eval "$ac_link") 2>conftest.er1
  6068. ac_status=$?
  6069. grep -v '^ *+' conftest.er1 >conftest.err
  6070. rm -f conftest.er1
  6071. cat conftest.err >&5
  6072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6073. (exit $ac_status); } && {
  6074. test -z "$ac_cxx_werror_flag" ||
  6075. test ! -s conftest.err
  6076. } && test -s conftest$ac_exeext &&
  6077. $as_test_x conftest$ac_exeext; then
  6078. ac_cv_lib_ares_ares_init=yes
  6079. else
  6080. echo "$as_me: failed program was:" >&5
  6081. sed 's/^/| /' conftest.$ac_ext >&5
  6082. ac_cv_lib_ares_ares_init=no
  6083. fi
  6084. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6085. conftest$ac_exeext conftest.$ac_ext
  6086. LIBS=$ac_check_lib_save_LIBS
  6087. fi
  6088. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  6089. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  6090. if test $ac_cv_lib_ares_ares_init = yes; then
  6091. have_libares=yes
  6092. fi
  6093. if test "x$have_libares" = "xyes"; then
  6094. cat >>confdefs.h <<\_ACEOF
  6095. #define HAVE_LIBARES 1
  6096. _ACEOF
  6097. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  6098. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  6099. fi
  6100. LIBS=$LIBS_save
  6101. CPPFLAGS=$CPPFLAGS_save
  6102. fi
  6103. fi
  6104. # Define variables based on the result of the checks for libraries.
  6105. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6106. cat >>confdefs.h <<\_ACEOF
  6107. #define ENABLE_SSL 1
  6108. _ACEOF
  6109. fi
  6110. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6111. cat >>confdefs.h <<\_ACEOF
  6112. #define ENABLE_MESSAGE_DIGEST 1
  6113. _ACEOF
  6114. if true; then
  6115. ENABLE_MESSAGE_DIGEST_TRUE=
  6116. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6117. else
  6118. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6119. ENABLE_MESSAGE_DIGEST_FALSE=
  6120. fi
  6121. enable_message_digest=yes
  6122. else
  6123. if false; then
  6124. ENABLE_MESSAGE_DIGEST_TRUE=
  6125. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6126. else
  6127. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6128. ENABLE_MESSAGE_DIGEST_FALSE=
  6129. fi
  6130. fi
  6131. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  6132. cat >>confdefs.h <<\_ACEOF
  6133. #define ENABLE_BITTORRENT 1
  6134. _ACEOF
  6135. if true; then
  6136. ENABLE_BITTORRENT_TRUE=
  6137. ENABLE_BITTORRENT_FALSE='#'
  6138. else
  6139. ENABLE_BITTORRENT_TRUE='#'
  6140. ENABLE_BITTORRENT_FALSE=
  6141. fi
  6142. else
  6143. enable_bittorrent=no
  6144. if false; then
  6145. ENABLE_BITTORRENT_TRUE=
  6146. ENABLE_BITTORRENT_FALSE='#'
  6147. else
  6148. ENABLE_BITTORRENT_TRUE='#'
  6149. ENABLE_BITTORRENT_FALSE=
  6150. fi
  6151. fi
  6152. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") && test "x$enable_metalink" = "xyes"; then
  6153. cat >>confdefs.h <<\_ACEOF
  6154. #define ENABLE_METALINK 1
  6155. _ACEOF
  6156. if true; then
  6157. ENABLE_METALINK_TRUE=
  6158. ENABLE_METALINK_FALSE='#'
  6159. else
  6160. ENABLE_METALINK_TRUE='#'
  6161. ENABLE_METALINK_FALSE=
  6162. fi
  6163. else
  6164. enable_metalink=no
  6165. if false; then
  6166. ENABLE_METALINK_TRUE=
  6167. ENABLE_METALINK_FALSE='#'
  6168. else
  6169. ENABLE_METALINK_TRUE='#'
  6170. ENABLE_METALINK_FALSE=
  6171. fi
  6172. fi
  6173. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6174. ENABLE_LIBXML2_TRUE=
  6175. ENABLE_LIBXML2_FALSE='#'
  6176. else
  6177. ENABLE_LIBXML2_TRUE='#'
  6178. ENABLE_LIBXML2_FALSE=
  6179. fi
  6180. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6181. ENABLE_LIBEXPAT_TRUE=
  6182. ENABLE_LIBEXPAT_FALSE='#'
  6183. else
  6184. ENABLE_LIBEXPAT_TRUE='#'
  6185. ENABLE_LIBEXPAT_FALSE=
  6186. fi
  6187. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6188. cat >>confdefs.h <<\_ACEOF
  6189. #define ENABLE_ASYNC_DNS 1
  6190. _ACEOF
  6191. if true; then
  6192. ENABLE_ASYNC_DNS_TRUE=
  6193. ENABLE_ASYNC_DNS_FALSE='#'
  6194. else
  6195. ENABLE_ASYNC_DNS_TRUE='#'
  6196. ENABLE_ASYNC_DNS_FALSE=
  6197. fi
  6198. else
  6199. if false; then
  6200. ENABLE_ASYNC_DNS_TRUE=
  6201. ENABLE_ASYNC_DNS_FALSE='#'
  6202. else
  6203. ENABLE_ASYNC_DNS_TRUE='#'
  6204. ENABLE_ASYNC_DNS_FALSE=
  6205. fi
  6206. fi
  6207. # Checks for header files.
  6208. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6209. # for constant arguments. Useless!
  6210. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6211. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6212. if test "${ac_cv_working_alloca_h+set}" = set; then
  6213. echo $ECHO_N "(cached) $ECHO_C" >&6
  6214. else
  6215. cat >conftest.$ac_ext <<_ACEOF
  6216. /* confdefs.h. */
  6217. _ACEOF
  6218. cat confdefs.h >>conftest.$ac_ext
  6219. cat >>conftest.$ac_ext <<_ACEOF
  6220. /* end confdefs.h. */
  6221. #include <alloca.h>
  6222. int
  6223. main ()
  6224. {
  6225. char *p = (char *) alloca (2 * sizeof (int));
  6226. if (p) return 0;
  6227. ;
  6228. return 0;
  6229. }
  6230. _ACEOF
  6231. rm -f conftest.$ac_objext conftest$ac_exeext
  6232. if { (ac_try="$ac_link"
  6233. case "(($ac_try" in
  6234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6235. *) ac_try_echo=$ac_try;;
  6236. esac
  6237. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6238. (eval "$ac_link") 2>conftest.er1
  6239. ac_status=$?
  6240. grep -v '^ *+' conftest.er1 >conftest.err
  6241. rm -f conftest.er1
  6242. cat conftest.err >&5
  6243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6244. (exit $ac_status); } && {
  6245. test -z "$ac_cxx_werror_flag" ||
  6246. test ! -s conftest.err
  6247. } && test -s conftest$ac_exeext &&
  6248. $as_test_x conftest$ac_exeext; then
  6249. ac_cv_working_alloca_h=yes
  6250. else
  6251. echo "$as_me: failed program was:" >&5
  6252. sed 's/^/| /' conftest.$ac_ext >&5
  6253. ac_cv_working_alloca_h=no
  6254. fi
  6255. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6256. conftest$ac_exeext conftest.$ac_ext
  6257. fi
  6258. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6259. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6260. if test $ac_cv_working_alloca_h = yes; then
  6261. cat >>confdefs.h <<\_ACEOF
  6262. #define HAVE_ALLOCA_H 1
  6263. _ACEOF
  6264. fi
  6265. { echo "$as_me:$LINENO: checking for alloca" >&5
  6266. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6267. if test "${ac_cv_func_alloca_works+set}" = set; then
  6268. echo $ECHO_N "(cached) $ECHO_C" >&6
  6269. else
  6270. cat >conftest.$ac_ext <<_ACEOF
  6271. /* confdefs.h. */
  6272. _ACEOF
  6273. cat confdefs.h >>conftest.$ac_ext
  6274. cat >>conftest.$ac_ext <<_ACEOF
  6275. /* end confdefs.h. */
  6276. #ifdef __GNUC__
  6277. # define alloca __builtin_alloca
  6278. #else
  6279. # ifdef _MSC_VER
  6280. # include <malloc.h>
  6281. # define alloca _alloca
  6282. # else
  6283. # ifdef HAVE_ALLOCA_H
  6284. # include <alloca.h>
  6285. # else
  6286. # ifdef _AIX
  6287. #pragma alloca
  6288. # else
  6289. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6290. char *alloca ();
  6291. # endif
  6292. # endif
  6293. # endif
  6294. # endif
  6295. #endif
  6296. int
  6297. main ()
  6298. {
  6299. char *p = (char *) alloca (1);
  6300. if (p) return 0;
  6301. ;
  6302. return 0;
  6303. }
  6304. _ACEOF
  6305. rm -f conftest.$ac_objext conftest$ac_exeext
  6306. if { (ac_try="$ac_link"
  6307. case "(($ac_try" in
  6308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6309. *) ac_try_echo=$ac_try;;
  6310. esac
  6311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6312. (eval "$ac_link") 2>conftest.er1
  6313. ac_status=$?
  6314. grep -v '^ *+' conftest.er1 >conftest.err
  6315. rm -f conftest.er1
  6316. cat conftest.err >&5
  6317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6318. (exit $ac_status); } && {
  6319. test -z "$ac_cxx_werror_flag" ||
  6320. test ! -s conftest.err
  6321. } && test -s conftest$ac_exeext &&
  6322. $as_test_x conftest$ac_exeext; then
  6323. ac_cv_func_alloca_works=yes
  6324. else
  6325. echo "$as_me: failed program was:" >&5
  6326. sed 's/^/| /' conftest.$ac_ext >&5
  6327. ac_cv_func_alloca_works=no
  6328. fi
  6329. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6330. conftest$ac_exeext conftest.$ac_ext
  6331. fi
  6332. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6333. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6334. if test $ac_cv_func_alloca_works = yes; then
  6335. cat >>confdefs.h <<\_ACEOF
  6336. #define HAVE_ALLOCA 1
  6337. _ACEOF
  6338. else
  6339. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6340. # that cause trouble. Some versions do not even contain alloca or
  6341. # contain a buggy version. If you still want to use their alloca,
  6342. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6343. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6344. cat >>confdefs.h <<\_ACEOF
  6345. #define C_ALLOCA 1
  6346. _ACEOF
  6347. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6348. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6349. if test "${ac_cv_os_cray+set}" = set; then
  6350. echo $ECHO_N "(cached) $ECHO_C" >&6
  6351. else
  6352. cat >conftest.$ac_ext <<_ACEOF
  6353. /* confdefs.h. */
  6354. _ACEOF
  6355. cat confdefs.h >>conftest.$ac_ext
  6356. cat >>conftest.$ac_ext <<_ACEOF
  6357. /* end confdefs.h. */
  6358. #if defined CRAY && ! defined CRAY2
  6359. webecray
  6360. #else
  6361. wenotbecray
  6362. #endif
  6363. _ACEOF
  6364. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6365. $EGREP "webecray" >/dev/null 2>&1; then
  6366. ac_cv_os_cray=yes
  6367. else
  6368. ac_cv_os_cray=no
  6369. fi
  6370. rm -f conftest*
  6371. fi
  6372. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6373. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6374. if test $ac_cv_os_cray = yes; then
  6375. for ac_func in _getb67 GETB67 getb67; do
  6376. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6377. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6378. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6379. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6380. echo $ECHO_N "(cached) $ECHO_C" >&6
  6381. else
  6382. cat >conftest.$ac_ext <<_ACEOF
  6383. /* confdefs.h. */
  6384. _ACEOF
  6385. cat confdefs.h >>conftest.$ac_ext
  6386. cat >>conftest.$ac_ext <<_ACEOF
  6387. /* end confdefs.h. */
  6388. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6389. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6390. #define $ac_func innocuous_$ac_func
  6391. /* System header to define __stub macros and hopefully few prototypes,
  6392. which can conflict with char $ac_func (); below.
  6393. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6394. <limits.h> exists even on freestanding compilers. */
  6395. #ifdef __STDC__
  6396. # include <limits.h>
  6397. #else
  6398. # include <assert.h>
  6399. #endif
  6400. #undef $ac_func
  6401. /* Override any GCC internal prototype to avoid an error.
  6402. Use char because int might match the return type of a GCC
  6403. builtin and then its argument prototype would still apply. */
  6404. #ifdef __cplusplus
  6405. extern "C"
  6406. #endif
  6407. char $ac_func ();
  6408. /* The GNU C library defines this for functions which it implements
  6409. to always fail with ENOSYS. Some functions are actually named
  6410. something starting with __ and the normal name is an alias. */
  6411. #if defined __stub_$ac_func || defined __stub___$ac_func
  6412. choke me
  6413. #endif
  6414. int
  6415. main ()
  6416. {
  6417. return $ac_func ();
  6418. ;
  6419. return 0;
  6420. }
  6421. _ACEOF
  6422. rm -f conftest.$ac_objext conftest$ac_exeext
  6423. if { (ac_try="$ac_link"
  6424. case "(($ac_try" in
  6425. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6426. *) ac_try_echo=$ac_try;;
  6427. esac
  6428. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6429. (eval "$ac_link") 2>conftest.er1
  6430. ac_status=$?
  6431. grep -v '^ *+' conftest.er1 >conftest.err
  6432. rm -f conftest.er1
  6433. cat conftest.err >&5
  6434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6435. (exit $ac_status); } && {
  6436. test -z "$ac_cxx_werror_flag" ||
  6437. test ! -s conftest.err
  6438. } && test -s conftest$ac_exeext &&
  6439. $as_test_x conftest$ac_exeext; then
  6440. eval "$as_ac_var=yes"
  6441. else
  6442. echo "$as_me: failed program was:" >&5
  6443. sed 's/^/| /' conftest.$ac_ext >&5
  6444. eval "$as_ac_var=no"
  6445. fi
  6446. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6447. conftest$ac_exeext conftest.$ac_ext
  6448. fi
  6449. ac_res=`eval echo '${'$as_ac_var'}'`
  6450. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6451. echo "${ECHO_T}$ac_res" >&6; }
  6452. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6453. cat >>confdefs.h <<_ACEOF
  6454. #define CRAY_STACKSEG_END $ac_func
  6455. _ACEOF
  6456. break
  6457. fi
  6458. done
  6459. fi
  6460. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6461. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6462. if test "${ac_cv_c_stack_direction+set}" = set; then
  6463. echo $ECHO_N "(cached) $ECHO_C" >&6
  6464. else
  6465. if test "$cross_compiling" = yes; then
  6466. ac_cv_c_stack_direction=0
  6467. else
  6468. cat >conftest.$ac_ext <<_ACEOF
  6469. /* confdefs.h. */
  6470. _ACEOF
  6471. cat confdefs.h >>conftest.$ac_ext
  6472. cat >>conftest.$ac_ext <<_ACEOF
  6473. /* end confdefs.h. */
  6474. $ac_includes_default
  6475. int
  6476. find_stack_direction ()
  6477. {
  6478. static char *addr = 0;
  6479. auto char dummy;
  6480. if (addr == 0)
  6481. {
  6482. addr = &dummy;
  6483. return find_stack_direction ();
  6484. }
  6485. else
  6486. return (&dummy > addr) ? 1 : -1;
  6487. }
  6488. int
  6489. main ()
  6490. {
  6491. return find_stack_direction () < 0;
  6492. }
  6493. _ACEOF
  6494. rm -f conftest$ac_exeext
  6495. if { (ac_try="$ac_link"
  6496. case "(($ac_try" in
  6497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6498. *) ac_try_echo=$ac_try;;
  6499. esac
  6500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6501. (eval "$ac_link") 2>&5
  6502. ac_status=$?
  6503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6504. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6505. { (case "(($ac_try" in
  6506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6507. *) ac_try_echo=$ac_try;;
  6508. esac
  6509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6510. (eval "$ac_try") 2>&5
  6511. ac_status=$?
  6512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6513. (exit $ac_status); }; }; then
  6514. ac_cv_c_stack_direction=1
  6515. else
  6516. echo "$as_me: program exited with status $ac_status" >&5
  6517. echo "$as_me: failed program was:" >&5
  6518. sed 's/^/| /' conftest.$ac_ext >&5
  6519. ( exit $ac_status )
  6520. ac_cv_c_stack_direction=-1
  6521. fi
  6522. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6523. fi
  6524. fi
  6525. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6526. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6527. cat >>confdefs.h <<_ACEOF
  6528. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6529. _ACEOF
  6530. fi
  6531. #AC_HEADER_STDC
  6532. 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
  6533. do
  6534. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6535. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6536. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6537. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6538. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6539. echo $ECHO_N "(cached) $ECHO_C" >&6
  6540. fi
  6541. ac_res=`eval echo '${'$as_ac_Header'}'`
  6542. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6543. echo "${ECHO_T}$ac_res" >&6; }
  6544. else
  6545. # Is the header compilable?
  6546. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6547. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6548. cat >conftest.$ac_ext <<_ACEOF
  6549. /* confdefs.h. */
  6550. _ACEOF
  6551. cat confdefs.h >>conftest.$ac_ext
  6552. cat >>conftest.$ac_ext <<_ACEOF
  6553. /* end confdefs.h. */
  6554. $ac_includes_default
  6555. #include <$ac_header>
  6556. _ACEOF
  6557. rm -f conftest.$ac_objext
  6558. if { (ac_try="$ac_compile"
  6559. case "(($ac_try" in
  6560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6561. *) ac_try_echo=$ac_try;;
  6562. esac
  6563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6564. (eval "$ac_compile") 2>conftest.er1
  6565. ac_status=$?
  6566. grep -v '^ *+' conftest.er1 >conftest.err
  6567. rm -f conftest.er1
  6568. cat conftest.err >&5
  6569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6570. (exit $ac_status); } && {
  6571. test -z "$ac_cxx_werror_flag" ||
  6572. test ! -s conftest.err
  6573. } && test -s conftest.$ac_objext; then
  6574. ac_header_compiler=yes
  6575. else
  6576. echo "$as_me: failed program was:" >&5
  6577. sed 's/^/| /' conftest.$ac_ext >&5
  6578. ac_header_compiler=no
  6579. fi
  6580. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6581. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6582. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6583. # Is the header present?
  6584. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6585. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6586. cat >conftest.$ac_ext <<_ACEOF
  6587. /* confdefs.h. */
  6588. _ACEOF
  6589. cat confdefs.h >>conftest.$ac_ext
  6590. cat >>conftest.$ac_ext <<_ACEOF
  6591. /* end confdefs.h. */
  6592. #include <$ac_header>
  6593. _ACEOF
  6594. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6595. case "(($ac_try" in
  6596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6597. *) ac_try_echo=$ac_try;;
  6598. esac
  6599. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6600. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6601. ac_status=$?
  6602. grep -v '^ *+' conftest.er1 >conftest.err
  6603. rm -f conftest.er1
  6604. cat conftest.err >&5
  6605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6606. (exit $ac_status); } >/dev/null && {
  6607. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6608. test ! -s conftest.err
  6609. }; then
  6610. ac_header_preproc=yes
  6611. else
  6612. echo "$as_me: failed program was:" >&5
  6613. sed 's/^/| /' conftest.$ac_ext >&5
  6614. ac_header_preproc=no
  6615. fi
  6616. rm -f conftest.err conftest.$ac_ext
  6617. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6618. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6619. # So? What about this header?
  6620. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6621. yes:no: )
  6622. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6623. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6624. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6625. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6626. ac_header_preproc=yes
  6627. ;;
  6628. no:yes:* )
  6629. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6630. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6631. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6632. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6633. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6634. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6635. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6636. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6637. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6638. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6639. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6640. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6641. ( cat <<\_ASBOX
  6642. ## ----------------------------------------------- ##
  6643. ## Report this to t-tujikawa@users.sourceforge.net ##
  6644. ## ----------------------------------------------- ##
  6645. _ASBOX
  6646. ) | sed "s/^/$as_me: WARNING: /" >&2
  6647. ;;
  6648. esac
  6649. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6650. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6651. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6652. echo $ECHO_N "(cached) $ECHO_C" >&6
  6653. else
  6654. eval "$as_ac_Header=\$ac_header_preproc"
  6655. fi
  6656. ac_res=`eval echo '${'$as_ac_Header'}'`
  6657. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6658. echo "${ECHO_T}$ac_res" >&6; }
  6659. fi
  6660. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6661. cat >>confdefs.h <<_ACEOF
  6662. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6663. _ACEOF
  6664. fi
  6665. done
  6666. # Checks for typedefs, structures, and compiler characteristics.
  6667. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6668. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  6669. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6670. echo $ECHO_N "(cached) $ECHO_C" >&6
  6671. else
  6672. cat >conftest.$ac_ext <<_ACEOF
  6673. /* confdefs.h. */
  6674. _ACEOF
  6675. cat confdefs.h >>conftest.$ac_ext
  6676. cat >>conftest.$ac_ext <<_ACEOF
  6677. /* end confdefs.h. */
  6678. #include <stdbool.h>
  6679. #ifndef bool
  6680. "error: bool is not defined"
  6681. #endif
  6682. #ifndef false
  6683. "error: false is not defined"
  6684. #endif
  6685. #if false
  6686. "error: false is not 0"
  6687. #endif
  6688. #ifndef true
  6689. "error: true is not defined"
  6690. #endif
  6691. #if true != 1
  6692. "error: true is not 1"
  6693. #endif
  6694. #ifndef __bool_true_false_are_defined
  6695. "error: __bool_true_false_are_defined is not defined"
  6696. #endif
  6697. struct s { _Bool s: 1; _Bool t; } s;
  6698. char a[true == 1 ? 1 : -1];
  6699. char b[false == 0 ? 1 : -1];
  6700. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6701. char d[(bool) 0.5 == true ? 1 : -1];
  6702. bool e = &s;
  6703. char f[(_Bool) 0.0 == false ? 1 : -1];
  6704. char g[true];
  6705. char h[sizeof (_Bool)];
  6706. char i[sizeof s.t];
  6707. enum { j = false, k = true, l = false * true, m = true * 256 };
  6708. _Bool n[m];
  6709. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6710. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6711. # if defined __xlc__ || defined __GNUC__
  6712. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6713. reported by James Lemley on 2005-10-05; see
  6714. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6715. This test is not quite right, since xlc is allowed to
  6716. reject this program, as the initializer for xlcbug is
  6717. not one of the forms that C requires support for.
  6718. However, doing the test right would require a runtime
  6719. test, and that would make cross-compilation harder.
  6720. Let us hope that IBM fixes the xlc bug, and also adds
  6721. support for this kind of constant expression. In the
  6722. meantime, this test will reject xlc, which is OK, since
  6723. our stdbool.h substitute should suffice. We also test
  6724. this with GCC, where it should work, to detect more
  6725. quickly whether someone messes up the test in the
  6726. future. */
  6727. char digs[] = "0123456789";
  6728. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6729. # endif
  6730. /* Catch a bug in an HP-UX C compiler. See
  6731. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6732. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6733. */
  6734. _Bool q = true;
  6735. _Bool *pq = &q;
  6736. int
  6737. main ()
  6738. {
  6739. *pq |= q;
  6740. *pq |= ! q;
  6741. /* Refer to every declared value, to avoid compiler optimizations. */
  6742. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6743. + !m + !n + !o + !p + !q + !pq);
  6744. ;
  6745. return 0;
  6746. }
  6747. _ACEOF
  6748. rm -f conftest.$ac_objext
  6749. if { (ac_try="$ac_compile"
  6750. case "(($ac_try" in
  6751. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6752. *) ac_try_echo=$ac_try;;
  6753. esac
  6754. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6755. (eval "$ac_compile") 2>conftest.er1
  6756. ac_status=$?
  6757. grep -v '^ *+' conftest.er1 >conftest.err
  6758. rm -f conftest.er1
  6759. cat conftest.err >&5
  6760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6761. (exit $ac_status); } && {
  6762. test -z "$ac_cxx_werror_flag" ||
  6763. test ! -s conftest.err
  6764. } && test -s conftest.$ac_objext; then
  6765. ac_cv_header_stdbool_h=yes
  6766. else
  6767. echo "$as_me: failed program was:" >&5
  6768. sed 's/^/| /' conftest.$ac_ext >&5
  6769. ac_cv_header_stdbool_h=no
  6770. fi
  6771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6772. fi
  6773. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6774. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6775. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6776. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6777. if test "${ac_cv_type__Bool+set}" = set; then
  6778. echo $ECHO_N "(cached) $ECHO_C" >&6
  6779. else
  6780. cat >conftest.$ac_ext <<_ACEOF
  6781. /* confdefs.h. */
  6782. _ACEOF
  6783. cat confdefs.h >>conftest.$ac_ext
  6784. cat >>conftest.$ac_ext <<_ACEOF
  6785. /* end confdefs.h. */
  6786. $ac_includes_default
  6787. typedef _Bool ac__type_new_;
  6788. int
  6789. main ()
  6790. {
  6791. if ((ac__type_new_ *) 0)
  6792. return 0;
  6793. if (sizeof (ac__type_new_))
  6794. return 0;
  6795. ;
  6796. return 0;
  6797. }
  6798. _ACEOF
  6799. rm -f conftest.$ac_objext
  6800. if { (ac_try="$ac_compile"
  6801. case "(($ac_try" in
  6802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6803. *) ac_try_echo=$ac_try;;
  6804. esac
  6805. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6806. (eval "$ac_compile") 2>conftest.er1
  6807. ac_status=$?
  6808. grep -v '^ *+' conftest.er1 >conftest.err
  6809. rm -f conftest.er1
  6810. cat conftest.err >&5
  6811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6812. (exit $ac_status); } && {
  6813. test -z "$ac_cxx_werror_flag" ||
  6814. test ! -s conftest.err
  6815. } && test -s conftest.$ac_objext; then
  6816. ac_cv_type__Bool=yes
  6817. else
  6818. echo "$as_me: failed program was:" >&5
  6819. sed 's/^/| /' conftest.$ac_ext >&5
  6820. ac_cv_type__Bool=no
  6821. fi
  6822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6823. fi
  6824. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  6825. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  6826. if test $ac_cv_type__Bool = yes; then
  6827. cat >>confdefs.h <<_ACEOF
  6828. #define HAVE__BOOL 1
  6829. _ACEOF
  6830. fi
  6831. if test $ac_cv_header_stdbool_h = yes; then
  6832. cat >>confdefs.h <<\_ACEOF
  6833. #define HAVE_STDBOOL_H 1
  6834. _ACEOF
  6835. fi
  6836. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6837. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  6838. if test "${ac_cv_c_const+set}" = set; then
  6839. echo $ECHO_N "(cached) $ECHO_C" >&6
  6840. else
  6841. cat >conftest.$ac_ext <<_ACEOF
  6842. /* confdefs.h. */
  6843. _ACEOF
  6844. cat confdefs.h >>conftest.$ac_ext
  6845. cat >>conftest.$ac_ext <<_ACEOF
  6846. /* end confdefs.h. */
  6847. int
  6848. main ()
  6849. {
  6850. /* FIXME: Include the comments suggested by Paul. */
  6851. #ifndef __cplusplus
  6852. /* Ultrix mips cc rejects this. */
  6853. typedef int charset[2];
  6854. const charset cs;
  6855. /* SunOS 4.1.1 cc rejects this. */
  6856. char const *const *pcpcc;
  6857. char **ppc;
  6858. /* NEC SVR4.0.2 mips cc rejects this. */
  6859. struct point {int x, y;};
  6860. static struct point const zero = {0,0};
  6861. /* AIX XL C 1.02.0.0 rejects this.
  6862. It does not let you subtract one const X* pointer from another in
  6863. an arm of an if-expression whose if-part is not a constant
  6864. expression */
  6865. const char *g = "string";
  6866. pcpcc = &g + (g ? g-g : 0);
  6867. /* HPUX 7.0 cc rejects these. */
  6868. ++pcpcc;
  6869. ppc = (char**) pcpcc;
  6870. pcpcc = (char const *const *) ppc;
  6871. { /* SCO 3.2v4 cc rejects this. */
  6872. char *t;
  6873. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6874. *t++ = 0;
  6875. if (s) return 0;
  6876. }
  6877. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6878. int x[] = {25, 17};
  6879. const int *foo = &x[0];
  6880. ++foo;
  6881. }
  6882. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6883. typedef const int *iptr;
  6884. iptr p = 0;
  6885. ++p;
  6886. }
  6887. { /* AIX XL C 1.02.0.0 rejects this saying
  6888. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6889. struct s { int j; const int *ap[3]; };
  6890. struct s *b; b->j = 5;
  6891. }
  6892. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6893. const int foo = 10;
  6894. if (!foo) return 0;
  6895. }
  6896. return !cs[0] && !zero.x;
  6897. #endif
  6898. ;
  6899. return 0;
  6900. }
  6901. _ACEOF
  6902. rm -f conftest.$ac_objext
  6903. if { (ac_try="$ac_compile"
  6904. case "(($ac_try" in
  6905. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6906. *) ac_try_echo=$ac_try;;
  6907. esac
  6908. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6909. (eval "$ac_compile") 2>conftest.er1
  6910. ac_status=$?
  6911. grep -v '^ *+' conftest.er1 >conftest.err
  6912. rm -f conftest.er1
  6913. cat conftest.err >&5
  6914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6915. (exit $ac_status); } && {
  6916. test -z "$ac_cxx_werror_flag" ||
  6917. test ! -s conftest.err
  6918. } && test -s conftest.$ac_objext; then
  6919. ac_cv_c_const=yes
  6920. else
  6921. echo "$as_me: failed program was:" >&5
  6922. sed 's/^/| /' conftest.$ac_ext >&5
  6923. ac_cv_c_const=no
  6924. fi
  6925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6926. fi
  6927. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6928. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  6929. if test $ac_cv_c_const = no; then
  6930. cat >>confdefs.h <<\_ACEOF
  6931. #define const
  6932. _ACEOF
  6933. fi
  6934. { echo "$as_me:$LINENO: checking for inline" >&5
  6935. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  6936. if test "${ac_cv_c_inline+set}" = set; then
  6937. echo $ECHO_N "(cached) $ECHO_C" >&6
  6938. else
  6939. ac_cv_c_inline=no
  6940. for ac_kw in inline __inline__ __inline; do
  6941. cat >conftest.$ac_ext <<_ACEOF
  6942. /* confdefs.h. */
  6943. _ACEOF
  6944. cat confdefs.h >>conftest.$ac_ext
  6945. cat >>conftest.$ac_ext <<_ACEOF
  6946. /* end confdefs.h. */
  6947. #ifndef __cplusplus
  6948. typedef int foo_t;
  6949. static $ac_kw foo_t static_foo () {return 0; }
  6950. $ac_kw foo_t foo () {return 0; }
  6951. #endif
  6952. _ACEOF
  6953. rm -f conftest.$ac_objext
  6954. if { (ac_try="$ac_compile"
  6955. case "(($ac_try" in
  6956. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6957. *) ac_try_echo=$ac_try;;
  6958. esac
  6959. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6960. (eval "$ac_compile") 2>conftest.er1
  6961. ac_status=$?
  6962. grep -v '^ *+' conftest.er1 >conftest.err
  6963. rm -f conftest.er1
  6964. cat conftest.err >&5
  6965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6966. (exit $ac_status); } && {
  6967. test -z "$ac_cxx_werror_flag" ||
  6968. test ! -s conftest.err
  6969. } && test -s conftest.$ac_objext; then
  6970. ac_cv_c_inline=$ac_kw
  6971. else
  6972. echo "$as_me: failed program was:" >&5
  6973. sed 's/^/| /' conftest.$ac_ext >&5
  6974. fi
  6975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6976. test "$ac_cv_c_inline" != no && break
  6977. done
  6978. fi
  6979. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6980. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  6981. case $ac_cv_c_inline in
  6982. inline | yes) ;;
  6983. *)
  6984. case $ac_cv_c_inline in
  6985. no) ac_val=;;
  6986. *) ac_val=$ac_cv_c_inline;;
  6987. esac
  6988. cat >>confdefs.h <<_ACEOF
  6989. #ifndef __cplusplus
  6990. #define inline $ac_val
  6991. #endif
  6992. _ACEOF
  6993. ;;
  6994. esac
  6995. { echo "$as_me:$LINENO: checking for size_t" >&5
  6996. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  6997. if test "${ac_cv_type_size_t+set}" = set; then
  6998. echo $ECHO_N "(cached) $ECHO_C" >&6
  6999. else
  7000. cat >conftest.$ac_ext <<_ACEOF
  7001. /* confdefs.h. */
  7002. _ACEOF
  7003. cat confdefs.h >>conftest.$ac_ext
  7004. cat >>conftest.$ac_ext <<_ACEOF
  7005. /* end confdefs.h. */
  7006. $ac_includes_default
  7007. typedef size_t ac__type_new_;
  7008. int
  7009. main ()
  7010. {
  7011. if ((ac__type_new_ *) 0)
  7012. return 0;
  7013. if (sizeof (ac__type_new_))
  7014. return 0;
  7015. ;
  7016. return 0;
  7017. }
  7018. _ACEOF
  7019. rm -f conftest.$ac_objext
  7020. if { (ac_try="$ac_compile"
  7021. case "(($ac_try" in
  7022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7023. *) ac_try_echo=$ac_try;;
  7024. esac
  7025. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7026. (eval "$ac_compile") 2>conftest.er1
  7027. ac_status=$?
  7028. grep -v '^ *+' conftest.er1 >conftest.err
  7029. rm -f conftest.er1
  7030. cat conftest.err >&5
  7031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7032. (exit $ac_status); } && {
  7033. test -z "$ac_cxx_werror_flag" ||
  7034. test ! -s conftest.err
  7035. } && test -s conftest.$ac_objext; then
  7036. ac_cv_type_size_t=yes
  7037. else
  7038. echo "$as_me: failed program was:" >&5
  7039. sed 's/^/| /' conftest.$ac_ext >&5
  7040. ac_cv_type_size_t=no
  7041. fi
  7042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7043. fi
  7044. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  7045. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  7046. if test $ac_cv_type_size_t = yes; then
  7047. :
  7048. else
  7049. cat >>confdefs.h <<_ACEOF
  7050. #define size_t unsigned int
  7051. _ACEOF
  7052. fi
  7053. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  7054. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  7055. if test "${ac_cv_header_time+set}" = set; then
  7056. echo $ECHO_N "(cached) $ECHO_C" >&6
  7057. else
  7058. cat >conftest.$ac_ext <<_ACEOF
  7059. /* confdefs.h. */
  7060. _ACEOF
  7061. cat confdefs.h >>conftest.$ac_ext
  7062. cat >>conftest.$ac_ext <<_ACEOF
  7063. /* end confdefs.h. */
  7064. #include <sys/types.h>
  7065. #include <sys/time.h>
  7066. #include <time.h>
  7067. int
  7068. main ()
  7069. {
  7070. if ((struct tm *) 0)
  7071. return 0;
  7072. ;
  7073. return 0;
  7074. }
  7075. _ACEOF
  7076. rm -f conftest.$ac_objext
  7077. if { (ac_try="$ac_compile"
  7078. case "(($ac_try" in
  7079. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7080. *) ac_try_echo=$ac_try;;
  7081. esac
  7082. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7083. (eval "$ac_compile") 2>conftest.er1
  7084. ac_status=$?
  7085. grep -v '^ *+' conftest.er1 >conftest.err
  7086. rm -f conftest.er1
  7087. cat conftest.err >&5
  7088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7089. (exit $ac_status); } && {
  7090. test -z "$ac_cxx_werror_flag" ||
  7091. test ! -s conftest.err
  7092. } && test -s conftest.$ac_objext; then
  7093. ac_cv_header_time=yes
  7094. else
  7095. echo "$as_me: failed program was:" >&5
  7096. sed 's/^/| /' conftest.$ac_ext >&5
  7097. ac_cv_header_time=no
  7098. fi
  7099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7100. fi
  7101. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  7102. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  7103. if test $ac_cv_header_time = yes; then
  7104. cat >>confdefs.h <<\_ACEOF
  7105. #define TIME_WITH_SYS_TIME 1
  7106. _ACEOF
  7107. fi
  7108. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7109. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  7110. if test "${ac_cv_struct_tm+set}" = set; then
  7111. echo $ECHO_N "(cached) $ECHO_C" >&6
  7112. else
  7113. cat >conftest.$ac_ext <<_ACEOF
  7114. /* confdefs.h. */
  7115. _ACEOF
  7116. cat confdefs.h >>conftest.$ac_ext
  7117. cat >>conftest.$ac_ext <<_ACEOF
  7118. /* end confdefs.h. */
  7119. #include <sys/types.h>
  7120. #include <time.h>
  7121. int
  7122. main ()
  7123. {
  7124. struct tm tm;
  7125. int *p = &tm.tm_sec;
  7126. return !p;
  7127. ;
  7128. return 0;
  7129. }
  7130. _ACEOF
  7131. rm -f conftest.$ac_objext
  7132. if { (ac_try="$ac_compile"
  7133. case "(($ac_try" in
  7134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7135. *) ac_try_echo=$ac_try;;
  7136. esac
  7137. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7138. (eval "$ac_compile") 2>conftest.er1
  7139. ac_status=$?
  7140. grep -v '^ *+' conftest.er1 >conftest.err
  7141. rm -f conftest.er1
  7142. cat conftest.err >&5
  7143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7144. (exit $ac_status); } && {
  7145. test -z "$ac_cxx_werror_flag" ||
  7146. test ! -s conftest.err
  7147. } && test -s conftest.$ac_objext; then
  7148. ac_cv_struct_tm=time.h
  7149. else
  7150. echo "$as_me: failed program was:" >&5
  7151. sed 's/^/| /' conftest.$ac_ext >&5
  7152. ac_cv_struct_tm=sys/time.h
  7153. fi
  7154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7155. fi
  7156. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7157. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  7158. if test $ac_cv_struct_tm = sys/time.h; then
  7159. cat >>confdefs.h <<\_ACEOF
  7160. #define TM_IN_SYS_TIME 1
  7161. _ACEOF
  7162. fi
  7163. { echo "$as_me:$LINENO: checking for working volatile" >&5
  7164. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  7165. if test "${ac_cv_c_volatile+set}" = set; then
  7166. echo $ECHO_N "(cached) $ECHO_C" >&6
  7167. else
  7168. cat >conftest.$ac_ext <<_ACEOF
  7169. /* confdefs.h. */
  7170. _ACEOF
  7171. cat confdefs.h >>conftest.$ac_ext
  7172. cat >>conftest.$ac_ext <<_ACEOF
  7173. /* end confdefs.h. */
  7174. int
  7175. main ()
  7176. {
  7177. volatile int x;
  7178. int * volatile y = (int *) 0;
  7179. return !x && !y;
  7180. ;
  7181. return 0;
  7182. }
  7183. _ACEOF
  7184. rm -f conftest.$ac_objext
  7185. if { (ac_try="$ac_compile"
  7186. case "(($ac_try" in
  7187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7188. *) ac_try_echo=$ac_try;;
  7189. esac
  7190. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7191. (eval "$ac_compile") 2>conftest.er1
  7192. ac_status=$?
  7193. grep -v '^ *+' conftest.er1 >conftest.err
  7194. rm -f conftest.er1
  7195. cat conftest.err >&5
  7196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7197. (exit $ac_status); } && {
  7198. test -z "$ac_cxx_werror_flag" ||
  7199. test ! -s conftest.err
  7200. } && test -s conftest.$ac_objext; then
  7201. ac_cv_c_volatile=yes
  7202. else
  7203. echo "$as_me: failed program was:" >&5
  7204. sed 's/^/| /' conftest.$ac_ext >&5
  7205. ac_cv_c_volatile=no
  7206. fi
  7207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7208. fi
  7209. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7210. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  7211. if test $ac_cv_c_volatile = no; then
  7212. cat >>confdefs.h <<\_ACEOF
  7213. #define volatile
  7214. _ACEOF
  7215. fi
  7216. # Check whether --enable-largefile was given.
  7217. if test "${enable_largefile+set}" = set; then
  7218. enableval=$enable_largefile;
  7219. fi
  7220. if test "$enable_largefile" != no; then
  7221. { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  7222. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
  7223. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  7224. echo $ECHO_N "(cached) $ECHO_C" >&6
  7225. else
  7226. ac_cv_sys_largefile_CC=no
  7227. if test "$GCC" != yes; then
  7228. ac_save_CC=$CC
  7229. while :; do
  7230. # IRIX 6.2 and later do not support large files by default,
  7231. # so use the C compiler's -n32 option if that helps.
  7232. cat >conftest.$ac_ext <<_ACEOF
  7233. /* confdefs.h. */
  7234. _ACEOF
  7235. cat confdefs.h >>conftest.$ac_ext
  7236. cat >>conftest.$ac_ext <<_ACEOF
  7237. /* end confdefs.h. */
  7238. #include <sys/types.h>
  7239. /* Check that off_t can represent 2**63 - 1 correctly.
  7240. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7241. since some C++ compilers masquerading as C compilers
  7242. incorrectly reject 9223372036854775807. */
  7243. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7244. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7245. && LARGE_OFF_T % 2147483647 == 1)
  7246. ? 1 : -1];
  7247. int
  7248. main ()
  7249. {
  7250. ;
  7251. return 0;
  7252. }
  7253. _ACEOF
  7254. rm -f conftest.$ac_objext
  7255. if { (ac_try="$ac_compile"
  7256. case "(($ac_try" in
  7257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7258. *) ac_try_echo=$ac_try;;
  7259. esac
  7260. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7261. (eval "$ac_compile") 2>conftest.er1
  7262. ac_status=$?
  7263. grep -v '^ *+' conftest.er1 >conftest.err
  7264. rm -f conftest.er1
  7265. cat conftest.err >&5
  7266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7267. (exit $ac_status); } && {
  7268. test -z "$ac_cxx_werror_flag" ||
  7269. test ! -s conftest.err
  7270. } && test -s conftest.$ac_objext; then
  7271. break
  7272. else
  7273. echo "$as_me: failed program was:" >&5
  7274. sed 's/^/| /' conftest.$ac_ext >&5
  7275. fi
  7276. rm -f core conftest.err conftest.$ac_objext
  7277. CC="$CC -n32"
  7278. rm -f conftest.$ac_objext
  7279. if { (ac_try="$ac_compile"
  7280. case "(($ac_try" in
  7281. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7282. *) ac_try_echo=$ac_try;;
  7283. esac
  7284. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7285. (eval "$ac_compile") 2>conftest.er1
  7286. ac_status=$?
  7287. grep -v '^ *+' conftest.er1 >conftest.err
  7288. rm -f conftest.er1
  7289. cat conftest.err >&5
  7290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7291. (exit $ac_status); } && {
  7292. test -z "$ac_cxx_werror_flag" ||
  7293. test ! -s conftest.err
  7294. } && test -s conftest.$ac_objext; then
  7295. ac_cv_sys_largefile_CC=' -n32'; break
  7296. else
  7297. echo "$as_me: failed program was:" >&5
  7298. sed 's/^/| /' conftest.$ac_ext >&5
  7299. fi
  7300. rm -f core conftest.err conftest.$ac_objext
  7301. break
  7302. done
  7303. CC=$ac_save_CC
  7304. rm -f conftest.$ac_ext
  7305. fi
  7306. fi
  7307. { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  7308. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
  7309. if test "$ac_cv_sys_largefile_CC" != no; then
  7310. CC=$CC$ac_cv_sys_largefile_CC
  7311. fi
  7312. { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7313. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
  7314. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  7315. echo $ECHO_N "(cached) $ECHO_C" >&6
  7316. else
  7317. while :; do
  7318. cat >conftest.$ac_ext <<_ACEOF
  7319. /* confdefs.h. */
  7320. _ACEOF
  7321. cat confdefs.h >>conftest.$ac_ext
  7322. cat >>conftest.$ac_ext <<_ACEOF
  7323. /* end confdefs.h. */
  7324. #include <sys/types.h>
  7325. /* Check that off_t can represent 2**63 - 1 correctly.
  7326. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7327. since some C++ compilers masquerading as C compilers
  7328. incorrectly reject 9223372036854775807. */
  7329. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7330. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7331. && LARGE_OFF_T % 2147483647 == 1)
  7332. ? 1 : -1];
  7333. int
  7334. main ()
  7335. {
  7336. ;
  7337. return 0;
  7338. }
  7339. _ACEOF
  7340. rm -f conftest.$ac_objext
  7341. if { (ac_try="$ac_compile"
  7342. case "(($ac_try" in
  7343. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7344. *) ac_try_echo=$ac_try;;
  7345. esac
  7346. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7347. (eval "$ac_compile") 2>conftest.er1
  7348. ac_status=$?
  7349. grep -v '^ *+' conftest.er1 >conftest.err
  7350. rm -f conftest.er1
  7351. cat conftest.err >&5
  7352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7353. (exit $ac_status); } && {
  7354. test -z "$ac_cxx_werror_flag" ||
  7355. test ! -s conftest.err
  7356. } && test -s conftest.$ac_objext; then
  7357. ac_cv_sys_file_offset_bits=no; break
  7358. else
  7359. echo "$as_me: failed program was:" >&5
  7360. sed 's/^/| /' conftest.$ac_ext >&5
  7361. fi
  7362. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7363. cat >conftest.$ac_ext <<_ACEOF
  7364. /* confdefs.h. */
  7365. _ACEOF
  7366. cat confdefs.h >>conftest.$ac_ext
  7367. cat >>conftest.$ac_ext <<_ACEOF
  7368. /* end confdefs.h. */
  7369. #define _FILE_OFFSET_BITS 64
  7370. #include <sys/types.h>
  7371. /* Check that off_t can represent 2**63 - 1 correctly.
  7372. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7373. since some C++ compilers masquerading as C compilers
  7374. incorrectly reject 9223372036854775807. */
  7375. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7376. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7377. && LARGE_OFF_T % 2147483647 == 1)
  7378. ? 1 : -1];
  7379. int
  7380. main ()
  7381. {
  7382. ;
  7383. return 0;
  7384. }
  7385. _ACEOF
  7386. rm -f conftest.$ac_objext
  7387. if { (ac_try="$ac_compile"
  7388. case "(($ac_try" in
  7389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7390. *) ac_try_echo=$ac_try;;
  7391. esac
  7392. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7393. (eval "$ac_compile") 2>conftest.er1
  7394. ac_status=$?
  7395. grep -v '^ *+' conftest.er1 >conftest.err
  7396. rm -f conftest.er1
  7397. cat conftest.err >&5
  7398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7399. (exit $ac_status); } && {
  7400. test -z "$ac_cxx_werror_flag" ||
  7401. test ! -s conftest.err
  7402. } && test -s conftest.$ac_objext; then
  7403. ac_cv_sys_file_offset_bits=64; break
  7404. else
  7405. echo "$as_me: failed program was:" >&5
  7406. sed 's/^/| /' conftest.$ac_ext >&5
  7407. fi
  7408. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7409. ac_cv_sys_file_offset_bits=unknown
  7410. break
  7411. done
  7412. fi
  7413. { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  7414. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
  7415. case $ac_cv_sys_file_offset_bits in #(
  7416. no | unknown) ;;
  7417. *)
  7418. cat >>confdefs.h <<_ACEOF
  7419. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7420. _ACEOF
  7421. ;;
  7422. esac
  7423. rm -f conftest*
  7424. if test $ac_cv_sys_file_offset_bits = unknown; then
  7425. { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  7426. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
  7427. if test "${ac_cv_sys_large_files+set}" = set; then
  7428. echo $ECHO_N "(cached) $ECHO_C" >&6
  7429. else
  7430. while :; do
  7431. cat >conftest.$ac_ext <<_ACEOF
  7432. /* confdefs.h. */
  7433. _ACEOF
  7434. cat confdefs.h >>conftest.$ac_ext
  7435. cat >>conftest.$ac_ext <<_ACEOF
  7436. /* end confdefs.h. */
  7437. #include <sys/types.h>
  7438. /* Check that off_t can represent 2**63 - 1 correctly.
  7439. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7440. since some C++ compilers masquerading as C compilers
  7441. incorrectly reject 9223372036854775807. */
  7442. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7443. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7444. && LARGE_OFF_T % 2147483647 == 1)
  7445. ? 1 : -1];
  7446. int
  7447. main ()
  7448. {
  7449. ;
  7450. return 0;
  7451. }
  7452. _ACEOF
  7453. rm -f conftest.$ac_objext
  7454. if { (ac_try="$ac_compile"
  7455. case "(($ac_try" in
  7456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7457. *) ac_try_echo=$ac_try;;
  7458. esac
  7459. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7460. (eval "$ac_compile") 2>conftest.er1
  7461. ac_status=$?
  7462. grep -v '^ *+' conftest.er1 >conftest.err
  7463. rm -f conftest.er1
  7464. cat conftest.err >&5
  7465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7466. (exit $ac_status); } && {
  7467. test -z "$ac_cxx_werror_flag" ||
  7468. test ! -s conftest.err
  7469. } && test -s conftest.$ac_objext; then
  7470. ac_cv_sys_large_files=no; break
  7471. else
  7472. echo "$as_me: failed program was:" >&5
  7473. sed 's/^/| /' conftest.$ac_ext >&5
  7474. fi
  7475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7476. cat >conftest.$ac_ext <<_ACEOF
  7477. /* confdefs.h. */
  7478. _ACEOF
  7479. cat confdefs.h >>conftest.$ac_ext
  7480. cat >>conftest.$ac_ext <<_ACEOF
  7481. /* end confdefs.h. */
  7482. #define _LARGE_FILES 1
  7483. #include <sys/types.h>
  7484. /* Check that off_t can represent 2**63 - 1 correctly.
  7485. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7486. since some C++ compilers masquerading as C compilers
  7487. incorrectly reject 9223372036854775807. */
  7488. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7489. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7490. && LARGE_OFF_T % 2147483647 == 1)
  7491. ? 1 : -1];
  7492. int
  7493. main ()
  7494. {
  7495. ;
  7496. return 0;
  7497. }
  7498. _ACEOF
  7499. rm -f conftest.$ac_objext
  7500. if { (ac_try="$ac_compile"
  7501. case "(($ac_try" in
  7502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7503. *) ac_try_echo=$ac_try;;
  7504. esac
  7505. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7506. (eval "$ac_compile") 2>conftest.er1
  7507. ac_status=$?
  7508. grep -v '^ *+' conftest.er1 >conftest.err
  7509. rm -f conftest.er1
  7510. cat conftest.err >&5
  7511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7512. (exit $ac_status); } && {
  7513. test -z "$ac_cxx_werror_flag" ||
  7514. test ! -s conftest.err
  7515. } && test -s conftest.$ac_objext; then
  7516. ac_cv_sys_large_files=1; break
  7517. else
  7518. echo "$as_me: failed program was:" >&5
  7519. sed 's/^/| /' conftest.$ac_ext >&5
  7520. fi
  7521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7522. ac_cv_sys_large_files=unknown
  7523. break
  7524. done
  7525. fi
  7526. { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  7527. echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
  7528. case $ac_cv_sys_large_files in #(
  7529. no | unknown) ;;
  7530. *)
  7531. cat >>confdefs.h <<_ACEOF
  7532. #define _LARGE_FILES $ac_cv_sys_large_files
  7533. _ACEOF
  7534. ;;
  7535. esac
  7536. rm -f conftest*
  7537. fi
  7538. fi
  7539. # Checks for library functions.
  7540. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  7541. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  7542. # Check whether --enable-nls was given.
  7543. if test "${enable_nls+set}" = set; then
  7544. enableval=$enable_nls; USE_NLS=$enableval
  7545. else
  7546. USE_NLS=yes
  7547. fi
  7548. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  7549. echo "${ECHO_T}$USE_NLS" >&6; }
  7550. GETTEXT_MACRO_VERSION=0.17
  7551. # Prepare PATH_SEPARATOR.
  7552. # The user is always right.
  7553. if test "${PATH_SEPARATOR+set}" != set; then
  7554. echo "#! /bin/sh" >conf$$.sh
  7555. echo "exit 0" >>conf$$.sh
  7556. chmod +x conf$$.sh
  7557. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7558. PATH_SEPARATOR=';'
  7559. else
  7560. PATH_SEPARATOR=:
  7561. fi
  7562. rm -f conf$$.sh
  7563. fi
  7564. # Find out how to test for executable files. Don't use a zero-byte file,
  7565. # as systems may use methods other than mode bits to determine executability.
  7566. cat >conf$$.file <<_ASEOF
  7567. #! /bin/sh
  7568. exit 0
  7569. _ASEOF
  7570. chmod +x conf$$.file
  7571. if test -x conf$$.file >/dev/null 2>&1; then
  7572. ac_executable_p="test -x"
  7573. else
  7574. ac_executable_p="test -f"
  7575. fi
  7576. rm -f conf$$.file
  7577. # Extract the first word of "msgfmt", so it can be a program name with args.
  7578. set dummy msgfmt; ac_word=$2
  7579. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7580. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7581. if test "${ac_cv_path_MSGFMT+set}" = set; then
  7582. echo $ECHO_N "(cached) $ECHO_C" >&6
  7583. else
  7584. case "$MSGFMT" in
  7585. [\\/]* | ?:[\\/]*)
  7586. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7587. ;;
  7588. *)
  7589. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7590. for ac_dir in $PATH; do
  7591. IFS="$ac_save_IFS"
  7592. test -z "$ac_dir" && ac_dir=.
  7593. for ac_exec_ext in '' $ac_executable_extensions; do
  7594. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7595. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7596. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  7597. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7598. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  7599. break 2
  7600. fi
  7601. fi
  7602. done
  7603. done
  7604. IFS="$ac_save_IFS"
  7605. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  7606. ;;
  7607. esac
  7608. fi
  7609. MSGFMT="$ac_cv_path_MSGFMT"
  7610. if test "$MSGFMT" != ":"; then
  7611. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  7612. echo "${ECHO_T}$MSGFMT" >&6; }
  7613. else
  7614. { echo "$as_me:$LINENO: result: no" >&5
  7615. echo "${ECHO_T}no" >&6; }
  7616. fi
  7617. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7618. set dummy gmsgfmt; ac_word=$2
  7619. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7620. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7621. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  7622. echo $ECHO_N "(cached) $ECHO_C" >&6
  7623. else
  7624. case $GMSGFMT in
  7625. [\\/]* | ?:[\\/]*)
  7626. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7627. ;;
  7628. *)
  7629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7630. for as_dir in $PATH
  7631. do
  7632. IFS=$as_save_IFS
  7633. test -z "$as_dir" && as_dir=.
  7634. for ac_exec_ext in '' $ac_executable_extensions; do
  7635. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7636. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7637. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7638. break 2
  7639. fi
  7640. done
  7641. done
  7642. IFS=$as_save_IFS
  7643. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7644. ;;
  7645. esac
  7646. fi
  7647. GMSGFMT=$ac_cv_path_GMSGFMT
  7648. if test -n "$GMSGFMT"; then
  7649. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  7650. echo "${ECHO_T}$GMSGFMT" >&6; }
  7651. else
  7652. { echo "$as_me:$LINENO: result: no" >&5
  7653. echo "${ECHO_T}no" >&6; }
  7654. fi
  7655. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7656. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  7657. *) MSGFMT_015=$MSGFMT ;;
  7658. esac
  7659. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7660. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  7661. *) GMSGFMT_015=$GMSGFMT ;;
  7662. esac
  7663. # Prepare PATH_SEPARATOR.
  7664. # The user is always right.
  7665. if test "${PATH_SEPARATOR+set}" != set; then
  7666. echo "#! /bin/sh" >conf$$.sh
  7667. echo "exit 0" >>conf$$.sh
  7668. chmod +x conf$$.sh
  7669. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7670. PATH_SEPARATOR=';'
  7671. else
  7672. PATH_SEPARATOR=:
  7673. fi
  7674. rm -f conf$$.sh
  7675. fi
  7676. # Find out how to test for executable files. Don't use a zero-byte file,
  7677. # as systems may use methods other than mode bits to determine executability.
  7678. cat >conf$$.file <<_ASEOF
  7679. #! /bin/sh
  7680. exit 0
  7681. _ASEOF
  7682. chmod +x conf$$.file
  7683. if test -x conf$$.file >/dev/null 2>&1; then
  7684. ac_executable_p="test -x"
  7685. else
  7686. ac_executable_p="test -f"
  7687. fi
  7688. rm -f conf$$.file
  7689. # Extract the first word of "xgettext", so it can be a program name with args.
  7690. set dummy xgettext; ac_word=$2
  7691. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7692. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7693. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  7694. echo $ECHO_N "(cached) $ECHO_C" >&6
  7695. else
  7696. case "$XGETTEXT" in
  7697. [\\/]* | ?:[\\/]*)
  7698. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  7699. ;;
  7700. *)
  7701. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7702. for ac_dir in $PATH; do
  7703. IFS="$ac_save_IFS"
  7704. test -z "$ac_dir" && ac_dir=.
  7705. for ac_exec_ext in '' $ac_executable_extensions; do
  7706. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7707. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7708. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  7709. (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
  7710. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  7711. break 2
  7712. fi
  7713. fi
  7714. done
  7715. done
  7716. IFS="$ac_save_IFS"
  7717. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  7718. ;;
  7719. esac
  7720. fi
  7721. XGETTEXT="$ac_cv_path_XGETTEXT"
  7722. if test "$XGETTEXT" != ":"; then
  7723. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  7724. echo "${ECHO_T}$XGETTEXT" >&6; }
  7725. else
  7726. { echo "$as_me:$LINENO: result: no" >&5
  7727. echo "${ECHO_T}no" >&6; }
  7728. fi
  7729. rm -f messages.po
  7730. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7731. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  7732. *) XGETTEXT_015=$XGETTEXT ;;
  7733. esac
  7734. # Prepare PATH_SEPARATOR.
  7735. # The user is always right.
  7736. if test "${PATH_SEPARATOR+set}" != set; then
  7737. echo "#! /bin/sh" >conf$$.sh
  7738. echo "exit 0" >>conf$$.sh
  7739. chmod +x conf$$.sh
  7740. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7741. PATH_SEPARATOR=';'
  7742. else
  7743. PATH_SEPARATOR=:
  7744. fi
  7745. rm -f conf$$.sh
  7746. fi
  7747. # Find out how to test for executable files. Don't use a zero-byte file,
  7748. # as systems may use methods other than mode bits to determine executability.
  7749. cat >conf$$.file <<_ASEOF
  7750. #! /bin/sh
  7751. exit 0
  7752. _ASEOF
  7753. chmod +x conf$$.file
  7754. if test -x conf$$.file >/dev/null 2>&1; then
  7755. ac_executable_p="test -x"
  7756. else
  7757. ac_executable_p="test -f"
  7758. fi
  7759. rm -f conf$$.file
  7760. # Extract the first word of "msgmerge", so it can be a program name with args.
  7761. set dummy msgmerge; ac_word=$2
  7762. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7763. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7764. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  7765. echo $ECHO_N "(cached) $ECHO_C" >&6
  7766. else
  7767. case "$MSGMERGE" in
  7768. [\\/]* | ?:[\\/]*)
  7769. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  7770. ;;
  7771. *)
  7772. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7773. for ac_dir in $PATH; do
  7774. IFS="$ac_save_IFS"
  7775. test -z "$ac_dir" && ac_dir=.
  7776. for ac_exec_ext in '' $ac_executable_extensions; do
  7777. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7778. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7779. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  7780. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  7781. break 2
  7782. fi
  7783. fi
  7784. done
  7785. done
  7786. IFS="$ac_save_IFS"
  7787. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  7788. ;;
  7789. esac
  7790. fi
  7791. MSGMERGE="$ac_cv_path_MSGMERGE"
  7792. if test "$MSGMERGE" != ":"; then
  7793. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  7794. echo "${ECHO_T}$MSGMERGE" >&6; }
  7795. else
  7796. { echo "$as_me:$LINENO: result: no" >&5
  7797. echo "${ECHO_T}no" >&6; }
  7798. fi
  7799. test -n "$localedir" || localedir='${datadir}/locale'
  7800. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  7801. ac_config_commands="$ac_config_commands po-directories"
  7802. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  7803. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  7804. if test "${ac_cv_gnu_library_2+set}" = set; then
  7805. echo $ECHO_N "(cached) $ECHO_C" >&6
  7806. else
  7807. cat >conftest.$ac_ext <<_ACEOF
  7808. /* confdefs.h. */
  7809. _ACEOF
  7810. cat confdefs.h >>conftest.$ac_ext
  7811. cat >>conftest.$ac_ext <<_ACEOF
  7812. /* end confdefs.h. */
  7813. #include <features.h>
  7814. #ifdef __GNU_LIBRARY__
  7815. #if (__GLIBC__ >= 2)
  7816. Lucky GNU user
  7817. #endif
  7818. #endif
  7819. _ACEOF
  7820. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7821. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  7822. ac_cv_gnu_library_2=yes
  7823. else
  7824. ac_cv_gnu_library_2=no
  7825. fi
  7826. rm -f conftest*
  7827. fi
  7828. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  7829. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  7830. GLIBC2="$ac_cv_gnu_library_2"
  7831. CFLAG_VISIBILITY=
  7832. HAVE_VISIBILITY=0
  7833. if test -n "$GCC"; then
  7834. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  7835. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  7836. if test "${gl_cv_cc_visibility+set}" = set; then
  7837. echo $ECHO_N "(cached) $ECHO_C" >&6
  7838. else
  7839. gl_save_CFLAGS="$CFLAGS"
  7840. CFLAGS="$CFLAGS -fvisibility=hidden"
  7841. cat >conftest.$ac_ext <<_ACEOF
  7842. /* confdefs.h. */
  7843. _ACEOF
  7844. cat confdefs.h >>conftest.$ac_ext
  7845. cat >>conftest.$ac_ext <<_ACEOF
  7846. /* end confdefs.h. */
  7847. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  7848. extern __attribute__((__visibility__("default"))) int exportedvar;
  7849. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  7850. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  7851. int
  7852. main ()
  7853. {
  7854. ;
  7855. return 0;
  7856. }
  7857. _ACEOF
  7858. rm -f conftest.$ac_objext
  7859. if { (ac_try="$ac_compile"
  7860. case "(($ac_try" in
  7861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7862. *) ac_try_echo=$ac_try;;
  7863. esac
  7864. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7865. (eval "$ac_compile") 2>conftest.er1
  7866. ac_status=$?
  7867. grep -v '^ *+' conftest.er1 >conftest.err
  7868. rm -f conftest.er1
  7869. cat conftest.err >&5
  7870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7871. (exit $ac_status); } && {
  7872. test -z "$ac_cxx_werror_flag" ||
  7873. test ! -s conftest.err
  7874. } && test -s conftest.$ac_objext; then
  7875. gl_cv_cc_visibility=yes
  7876. else
  7877. echo "$as_me: failed program was:" >&5
  7878. sed 's/^/| /' conftest.$ac_ext >&5
  7879. gl_cv_cc_visibility=no
  7880. fi
  7881. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7882. CFLAGS="$gl_save_CFLAGS"
  7883. fi
  7884. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  7885. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  7886. if test $gl_cv_cc_visibility = yes; then
  7887. CFLAG_VISIBILITY="-fvisibility=hidden"
  7888. HAVE_VISIBILITY=1
  7889. fi
  7890. fi
  7891. cat >>confdefs.h <<_ACEOF
  7892. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  7893. _ACEOF
  7894. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  7895. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  7896. if test "${gl_cv_header_stdint_h+set}" = set; then
  7897. echo $ECHO_N "(cached) $ECHO_C" >&6
  7898. else
  7899. cat >conftest.$ac_ext <<_ACEOF
  7900. /* confdefs.h. */
  7901. _ACEOF
  7902. cat confdefs.h >>conftest.$ac_ext
  7903. cat >>conftest.$ac_ext <<_ACEOF
  7904. /* end confdefs.h. */
  7905. #include <sys/types.h>
  7906. #include <stdint.h>
  7907. int
  7908. main ()
  7909. {
  7910. uintmax_t i = (uintmax_t) -1; return !i;
  7911. ;
  7912. return 0;
  7913. }
  7914. _ACEOF
  7915. rm -f conftest.$ac_objext
  7916. if { (ac_try="$ac_compile"
  7917. case "(($ac_try" in
  7918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7919. *) ac_try_echo=$ac_try;;
  7920. esac
  7921. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7922. (eval "$ac_compile") 2>conftest.er1
  7923. ac_status=$?
  7924. grep -v '^ *+' conftest.er1 >conftest.err
  7925. rm -f conftest.er1
  7926. cat conftest.err >&5
  7927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7928. (exit $ac_status); } && {
  7929. test -z "$ac_cxx_werror_flag" ||
  7930. test ! -s conftest.err
  7931. } && test -s conftest.$ac_objext; then
  7932. gl_cv_header_stdint_h=yes
  7933. else
  7934. echo "$as_me: failed program was:" >&5
  7935. sed 's/^/| /' conftest.$ac_ext >&5
  7936. gl_cv_header_stdint_h=no
  7937. fi
  7938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7939. fi
  7940. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  7941. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  7942. if test $gl_cv_header_stdint_h = yes; then
  7943. cat >>confdefs.h <<_ACEOF
  7944. #define HAVE_STDINT_H_WITH_UINTMAX 1
  7945. _ACEOF
  7946. fi
  7947. for ac_header in stdlib.h unistd.h
  7948. do
  7949. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7950. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7951. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7952. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7953. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7954. echo $ECHO_N "(cached) $ECHO_C" >&6
  7955. fi
  7956. ac_res=`eval echo '${'$as_ac_Header'}'`
  7957. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7958. echo "${ECHO_T}$ac_res" >&6; }
  7959. else
  7960. # Is the header compilable?
  7961. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7962. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7963. cat >conftest.$ac_ext <<_ACEOF
  7964. /* confdefs.h. */
  7965. _ACEOF
  7966. cat confdefs.h >>conftest.$ac_ext
  7967. cat >>conftest.$ac_ext <<_ACEOF
  7968. /* end confdefs.h. */
  7969. $ac_includes_default
  7970. #include <$ac_header>
  7971. _ACEOF
  7972. rm -f conftest.$ac_objext
  7973. if { (ac_try="$ac_compile"
  7974. case "(($ac_try" in
  7975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7976. *) ac_try_echo=$ac_try;;
  7977. esac
  7978. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7979. (eval "$ac_compile") 2>conftest.er1
  7980. ac_status=$?
  7981. grep -v '^ *+' conftest.er1 >conftest.err
  7982. rm -f conftest.er1
  7983. cat conftest.err >&5
  7984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7985. (exit $ac_status); } && {
  7986. test -z "$ac_cxx_werror_flag" ||
  7987. test ! -s conftest.err
  7988. } && test -s conftest.$ac_objext; then
  7989. ac_header_compiler=yes
  7990. else
  7991. echo "$as_me: failed program was:" >&5
  7992. sed 's/^/| /' conftest.$ac_ext >&5
  7993. ac_header_compiler=no
  7994. fi
  7995. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7996. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7997. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7998. # Is the header present?
  7999. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8000. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8001. cat >conftest.$ac_ext <<_ACEOF
  8002. /* confdefs.h. */
  8003. _ACEOF
  8004. cat confdefs.h >>conftest.$ac_ext
  8005. cat >>conftest.$ac_ext <<_ACEOF
  8006. /* end confdefs.h. */
  8007. #include <$ac_header>
  8008. _ACEOF
  8009. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8010. case "(($ac_try" in
  8011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8012. *) ac_try_echo=$ac_try;;
  8013. esac
  8014. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8015. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8016. ac_status=$?
  8017. grep -v '^ *+' conftest.er1 >conftest.err
  8018. rm -f conftest.er1
  8019. cat conftest.err >&5
  8020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8021. (exit $ac_status); } >/dev/null && {
  8022. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8023. test ! -s conftest.err
  8024. }; then
  8025. ac_header_preproc=yes
  8026. else
  8027. echo "$as_me: failed program was:" >&5
  8028. sed 's/^/| /' conftest.$ac_ext >&5
  8029. ac_header_preproc=no
  8030. fi
  8031. rm -f conftest.err conftest.$ac_ext
  8032. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8033. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8034. # So? What about this header?
  8035. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8036. yes:no: )
  8037. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8038. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8039. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8040. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8041. ac_header_preproc=yes
  8042. ;;
  8043. no:yes:* )
  8044. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8045. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8046. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8047. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8048. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8049. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8050. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8051. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8052. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8053. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8054. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8055. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8056. ( cat <<\_ASBOX
  8057. ## ----------------------------------------------- ##
  8058. ## Report this to t-tujikawa@users.sourceforge.net ##
  8059. ## ----------------------------------------------- ##
  8060. _ASBOX
  8061. ) | sed "s/^/$as_me: WARNING: /" >&2
  8062. ;;
  8063. esac
  8064. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8065. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8066. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8067. echo $ECHO_N "(cached) $ECHO_C" >&6
  8068. else
  8069. eval "$as_ac_Header=\$ac_header_preproc"
  8070. fi
  8071. ac_res=`eval echo '${'$as_ac_Header'}'`
  8072. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8073. echo "${ECHO_T}$ac_res" >&6; }
  8074. fi
  8075. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8076. cat >>confdefs.h <<_ACEOF
  8077. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8078. _ACEOF
  8079. fi
  8080. done
  8081. for ac_func in getpagesize
  8082. do
  8083. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8084. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8085. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8086. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8087. echo $ECHO_N "(cached) $ECHO_C" >&6
  8088. else
  8089. cat >conftest.$ac_ext <<_ACEOF
  8090. /* confdefs.h. */
  8091. _ACEOF
  8092. cat confdefs.h >>conftest.$ac_ext
  8093. cat >>conftest.$ac_ext <<_ACEOF
  8094. /* end confdefs.h. */
  8095. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8096. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8097. #define $ac_func innocuous_$ac_func
  8098. /* System header to define __stub macros and hopefully few prototypes,
  8099. which can conflict with char $ac_func (); below.
  8100. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8101. <limits.h> exists even on freestanding compilers. */
  8102. #ifdef __STDC__
  8103. # include <limits.h>
  8104. #else
  8105. # include <assert.h>
  8106. #endif
  8107. #undef $ac_func
  8108. /* Override any GCC internal prototype to avoid an error.
  8109. Use char because int might match the return type of a GCC
  8110. builtin and then its argument prototype would still apply. */
  8111. #ifdef __cplusplus
  8112. extern "C"
  8113. #endif
  8114. char $ac_func ();
  8115. /* The GNU C library defines this for functions which it implements
  8116. to always fail with ENOSYS. Some functions are actually named
  8117. something starting with __ and the normal name is an alias. */
  8118. #if defined __stub_$ac_func || defined __stub___$ac_func
  8119. choke me
  8120. #endif
  8121. int
  8122. main ()
  8123. {
  8124. return $ac_func ();
  8125. ;
  8126. return 0;
  8127. }
  8128. _ACEOF
  8129. rm -f conftest.$ac_objext conftest$ac_exeext
  8130. if { (ac_try="$ac_link"
  8131. case "(($ac_try" in
  8132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8133. *) ac_try_echo=$ac_try;;
  8134. esac
  8135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8136. (eval "$ac_link") 2>conftest.er1
  8137. ac_status=$?
  8138. grep -v '^ *+' conftest.er1 >conftest.err
  8139. rm -f conftest.er1
  8140. cat conftest.err >&5
  8141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8142. (exit $ac_status); } && {
  8143. test -z "$ac_cxx_werror_flag" ||
  8144. test ! -s conftest.err
  8145. } && test -s conftest$ac_exeext &&
  8146. $as_test_x conftest$ac_exeext; then
  8147. eval "$as_ac_var=yes"
  8148. else
  8149. echo "$as_me: failed program was:" >&5
  8150. sed 's/^/| /' conftest.$ac_ext >&5
  8151. eval "$as_ac_var=no"
  8152. fi
  8153. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8154. conftest$ac_exeext conftest.$ac_ext
  8155. fi
  8156. ac_res=`eval echo '${'$as_ac_var'}'`
  8157. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8158. echo "${ECHO_T}$ac_res" >&6; }
  8159. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8160. cat >>confdefs.h <<_ACEOF
  8161. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8162. _ACEOF
  8163. fi
  8164. done
  8165. { echo "$as_me:$LINENO: checking for working mmap" >&5
  8166. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  8167. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  8168. echo $ECHO_N "(cached) $ECHO_C" >&6
  8169. else
  8170. if test "$cross_compiling" = yes; then
  8171. ac_cv_func_mmap_fixed_mapped=no
  8172. else
  8173. cat >conftest.$ac_ext <<_ACEOF
  8174. /* confdefs.h. */
  8175. _ACEOF
  8176. cat confdefs.h >>conftest.$ac_ext
  8177. cat >>conftest.$ac_ext <<_ACEOF
  8178. /* end confdefs.h. */
  8179. $ac_includes_default
  8180. /* malloc might have been renamed as rpl_malloc. */
  8181. #undef malloc
  8182. /* Thanks to Mike Haertel and Jim Avera for this test.
  8183. Here is a matrix of mmap possibilities:
  8184. mmap private not fixed
  8185. mmap private fixed at somewhere currently unmapped
  8186. mmap private fixed at somewhere already mapped
  8187. mmap shared not fixed
  8188. mmap shared fixed at somewhere currently unmapped
  8189. mmap shared fixed at somewhere already mapped
  8190. For private mappings, we should verify that changes cannot be read()
  8191. back from the file, nor mmap's back from the file at a different
  8192. address. (There have been systems where private was not correctly
  8193. implemented like the infamous i386 svr4.0, and systems where the
  8194. VM page cache was not coherent with the file system buffer cache
  8195. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8196. For shared mappings, we should conversely verify that changes get
  8197. propagated back to all the places they're supposed to be.
  8198. Grep wants private fixed already mapped.
  8199. The main things grep needs to know about mmap are:
  8200. * does it exist and is it safe to write into the mmap'd area
  8201. * how to use it (BSD variants) */
  8202. #include <fcntl.h>
  8203. #include <sys/mman.h>
  8204. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  8205. char *malloc ();
  8206. #endif
  8207. /* This mess was copied from the GNU getpagesize.h. */
  8208. #ifndef HAVE_GETPAGESIZE
  8209. /* Assume that all systems that can run configure have sys/param.h. */
  8210. # ifndef HAVE_SYS_PARAM_H
  8211. # define HAVE_SYS_PARAM_H 1
  8212. # endif
  8213. # ifdef _SC_PAGESIZE
  8214. # define getpagesize() sysconf(_SC_PAGESIZE)
  8215. # else /* no _SC_PAGESIZE */
  8216. # ifdef HAVE_SYS_PARAM_H
  8217. # include <sys/param.h>
  8218. # ifdef EXEC_PAGESIZE
  8219. # define getpagesize() EXEC_PAGESIZE
  8220. # else /* no EXEC_PAGESIZE */
  8221. # ifdef NBPG
  8222. # define getpagesize() NBPG * CLSIZE
  8223. # ifndef CLSIZE
  8224. # define CLSIZE 1
  8225. # endif /* no CLSIZE */
  8226. # else /* no NBPG */
  8227. # ifdef NBPC
  8228. # define getpagesize() NBPC
  8229. # else /* no NBPC */
  8230. # ifdef PAGESIZE
  8231. # define getpagesize() PAGESIZE
  8232. # endif /* PAGESIZE */
  8233. # endif /* no NBPC */
  8234. # endif /* no NBPG */
  8235. # endif /* no EXEC_PAGESIZE */
  8236. # else /* no HAVE_SYS_PARAM_H */
  8237. # define getpagesize() 8192 /* punt totally */
  8238. # endif /* no HAVE_SYS_PARAM_H */
  8239. # endif /* no _SC_PAGESIZE */
  8240. #endif /* no HAVE_GETPAGESIZE */
  8241. int
  8242. main ()
  8243. {
  8244. char *data, *data2, *data3;
  8245. int i, pagesize;
  8246. int fd;
  8247. pagesize = getpagesize ();
  8248. /* First, make a file with some known garbage in it. */
  8249. data = (char *) malloc (pagesize);
  8250. if (!data)
  8251. return 1;
  8252. for (i = 0; i < pagesize; ++i)
  8253. *(data + i) = rand ();
  8254. umask (0);
  8255. fd = creat ("conftest.mmap", 0600);
  8256. if (fd < 0)
  8257. return 1;
  8258. if (write (fd, data, pagesize) != pagesize)
  8259. return 1;
  8260. close (fd);
  8261. /* Next, try to mmap the file at a fixed address which already has
  8262. something else allocated at it. If we can, also make sure that
  8263. we see the same garbage. */
  8264. fd = open ("conftest.mmap", O_RDWR);
  8265. if (fd < 0)
  8266. return 1;
  8267. data2 = (char *) malloc (2 * pagesize);
  8268. if (!data2)
  8269. return 1;
  8270. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  8271. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8272. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8273. return 1;
  8274. for (i = 0; i < pagesize; ++i)
  8275. if (*(data + i) != *(data2 + i))
  8276. return 1;
  8277. /* Finally, make sure that changes to the mapped area do not
  8278. percolate back to the file as seen by read(). (This is a bug on
  8279. some variants of i386 svr4.0.) */
  8280. for (i = 0; i < pagesize; ++i)
  8281. *(data2 + i) = *(data2 + i) + 1;
  8282. data3 = (char *) malloc (pagesize);
  8283. if (!data3)
  8284. return 1;
  8285. if (read (fd, data3, pagesize) != pagesize)
  8286. return 1;
  8287. for (i = 0; i < pagesize; ++i)
  8288. if (*(data + i) != *(data3 + i))
  8289. return 1;
  8290. close (fd);
  8291. return 0;
  8292. }
  8293. _ACEOF
  8294. rm -f conftest$ac_exeext
  8295. if { (ac_try="$ac_link"
  8296. case "(($ac_try" in
  8297. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8298. *) ac_try_echo=$ac_try;;
  8299. esac
  8300. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8301. (eval "$ac_link") 2>&5
  8302. ac_status=$?
  8303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8304. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8305. { (case "(($ac_try" in
  8306. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8307. *) ac_try_echo=$ac_try;;
  8308. esac
  8309. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8310. (eval "$ac_try") 2>&5
  8311. ac_status=$?
  8312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8313. (exit $ac_status); }; }; then
  8314. ac_cv_func_mmap_fixed_mapped=yes
  8315. else
  8316. echo "$as_me: program exited with status $ac_status" >&5
  8317. echo "$as_me: failed program was:" >&5
  8318. sed 's/^/| /' conftest.$ac_ext >&5
  8319. ( exit $ac_status )
  8320. ac_cv_func_mmap_fixed_mapped=no
  8321. fi
  8322. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8323. fi
  8324. fi
  8325. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8326. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  8327. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8328. cat >>confdefs.h <<\_ACEOF
  8329. #define HAVE_MMAP 1
  8330. _ACEOF
  8331. fi
  8332. rm -f conftest.mmap
  8333. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  8334. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  8335. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  8336. echo $ECHO_N "(cached) $ECHO_C" >&6
  8337. else
  8338. gt_cv_int_divbyzero_sigfpe=
  8339. case "$host_os" in
  8340. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  8341. # On MacOS X 10.2 or newer, just assume the same as when cross-
  8342. # compiling. If we were to perform the real test, 1 Crash Report
  8343. # dialog window would pop up.
  8344. case "$host_cpu" in
  8345. i[34567]86 | x86_64)
  8346. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  8347. esac
  8348. ;;
  8349. esac
  8350. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  8351. if test "$cross_compiling" = yes; then
  8352. # Guess based on the CPU.
  8353. case "$host_cpu" in
  8354. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  8355. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  8356. *)
  8357. gt_cv_int_divbyzero_sigfpe="guessing no";;
  8358. esac
  8359. else
  8360. cat >conftest.$ac_ext <<_ACEOF
  8361. /* confdefs.h. */
  8362. _ACEOF
  8363. cat confdefs.h >>conftest.$ac_ext
  8364. cat >>conftest.$ac_ext <<_ACEOF
  8365. /* end confdefs.h. */
  8366. #include <stdlib.h>
  8367. #include <signal.h>
  8368. static void
  8369. sigfpe_handler (int sig)
  8370. {
  8371. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  8372. exit (sig != SIGFPE);
  8373. }
  8374. int x = 1;
  8375. int y = 0;
  8376. int z;
  8377. int nan;
  8378. int main ()
  8379. {
  8380. signal (SIGFPE, sigfpe_handler);
  8381. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  8382. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  8383. signal (SIGTRAP, sigfpe_handler);
  8384. #endif
  8385. /* Linux/SPARC yields signal SIGILL. */
  8386. #if defined (__sparc__) && defined (__linux__)
  8387. signal (SIGILL, sigfpe_handler);
  8388. #endif
  8389. z = x / y;
  8390. nan = y / y;
  8391. exit (1);
  8392. }
  8393. _ACEOF
  8394. rm -f conftest$ac_exeext
  8395. if { (ac_try="$ac_link"
  8396. case "(($ac_try" in
  8397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8398. *) ac_try_echo=$ac_try;;
  8399. esac
  8400. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8401. (eval "$ac_link") 2>&5
  8402. ac_status=$?
  8403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8404. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8405. { (case "(($ac_try" in
  8406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8407. *) ac_try_echo=$ac_try;;
  8408. esac
  8409. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8410. (eval "$ac_try") 2>&5
  8411. ac_status=$?
  8412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8413. (exit $ac_status); }; }; then
  8414. gt_cv_int_divbyzero_sigfpe=yes
  8415. else
  8416. echo "$as_me: program exited with status $ac_status" >&5
  8417. echo "$as_me: failed program was:" >&5
  8418. sed 's/^/| /' conftest.$ac_ext >&5
  8419. ( exit $ac_status )
  8420. gt_cv_int_divbyzero_sigfpe=no
  8421. fi
  8422. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8423. fi
  8424. fi
  8425. fi
  8426. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  8427. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  8428. case "$gt_cv_int_divbyzero_sigfpe" in
  8429. *yes) value=1;;
  8430. *) value=0;;
  8431. esac
  8432. cat >>confdefs.h <<_ACEOF
  8433. #define INTDIV0_RAISES_SIGFPE $value
  8434. _ACEOF
  8435. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  8436. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  8437. if test "${gl_cv_header_inttypes_h+set}" = set; then
  8438. echo $ECHO_N "(cached) $ECHO_C" >&6
  8439. else
  8440. cat >conftest.$ac_ext <<_ACEOF
  8441. /* confdefs.h. */
  8442. _ACEOF
  8443. cat confdefs.h >>conftest.$ac_ext
  8444. cat >>conftest.$ac_ext <<_ACEOF
  8445. /* end confdefs.h. */
  8446. #include <sys/types.h>
  8447. #include <inttypes.h>
  8448. int
  8449. main ()
  8450. {
  8451. uintmax_t i = (uintmax_t) -1; return !i;
  8452. ;
  8453. return 0;
  8454. }
  8455. _ACEOF
  8456. rm -f conftest.$ac_objext
  8457. if { (ac_try="$ac_compile"
  8458. case "(($ac_try" in
  8459. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8460. *) ac_try_echo=$ac_try;;
  8461. esac
  8462. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8463. (eval "$ac_compile") 2>conftest.er1
  8464. ac_status=$?
  8465. grep -v '^ *+' conftest.er1 >conftest.err
  8466. rm -f conftest.er1
  8467. cat conftest.err >&5
  8468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8469. (exit $ac_status); } && {
  8470. test -z "$ac_cxx_werror_flag" ||
  8471. test ! -s conftest.err
  8472. } && test -s conftest.$ac_objext; then
  8473. gl_cv_header_inttypes_h=yes
  8474. else
  8475. echo "$as_me: failed program was:" >&5
  8476. sed 's/^/| /' conftest.$ac_ext >&5
  8477. gl_cv_header_inttypes_h=no
  8478. fi
  8479. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8480. fi
  8481. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  8482. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  8483. if test $gl_cv_header_inttypes_h = yes; then
  8484. cat >>confdefs.h <<_ACEOF
  8485. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8486. _ACEOF
  8487. fi
  8488. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  8489. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  8490. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  8491. echo $ECHO_N "(cached) $ECHO_C" >&6
  8492. else
  8493. cat >conftest.$ac_ext <<_ACEOF
  8494. /* confdefs.h. */
  8495. _ACEOF
  8496. cat confdefs.h >>conftest.$ac_ext
  8497. cat >>conftest.$ac_ext <<_ACEOF
  8498. /* end confdefs.h. */
  8499. /* Test preprocessor. */
  8500. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8501. error in preprocessor;
  8502. #endif
  8503. #if ! (18446744073709551615ULL <= -1ull)
  8504. error in preprocessor;
  8505. #endif
  8506. /* Test literals. */
  8507. long long int ll = 9223372036854775807ll;
  8508. long long int nll = -9223372036854775807LL;
  8509. unsigned long long int ull = 18446744073709551615ULL;
  8510. /* Test constant expressions. */
  8511. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8512. ? 1 : -1)];
  8513. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8514. ? 1 : -1)];
  8515. int i = 63;
  8516. int
  8517. main ()
  8518. {
  8519. /* Test availability of runtime routines for shift and division. */
  8520. long long int llmax = 9223372036854775807ll;
  8521. unsigned long long int ullmax = 18446744073709551615ull;
  8522. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8523. | (llmax / ll) | (llmax % ll)
  8524. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8525. | (ullmax / ull) | (ullmax % ull));
  8526. ;
  8527. return 0;
  8528. }
  8529. _ACEOF
  8530. rm -f conftest.$ac_objext conftest$ac_exeext
  8531. if { (ac_try="$ac_link"
  8532. case "(($ac_try" in
  8533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8534. *) ac_try_echo=$ac_try;;
  8535. esac
  8536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8537. (eval "$ac_link") 2>conftest.er1
  8538. ac_status=$?
  8539. grep -v '^ *+' conftest.er1 >conftest.err
  8540. rm -f conftest.er1
  8541. cat conftest.err >&5
  8542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8543. (exit $ac_status); } && {
  8544. test -z "$ac_cxx_werror_flag" ||
  8545. test ! -s conftest.err
  8546. } && test -s conftest$ac_exeext &&
  8547. $as_test_x conftest$ac_exeext; then
  8548. ac_cv_type_unsigned_long_long_int=yes
  8549. else
  8550. echo "$as_me: failed program was:" >&5
  8551. sed 's/^/| /' conftest.$ac_ext >&5
  8552. ac_cv_type_unsigned_long_long_int=no
  8553. fi
  8554. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8555. conftest$ac_exeext conftest.$ac_ext
  8556. fi
  8557. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  8558. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  8559. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8560. cat >>confdefs.h <<\_ACEOF
  8561. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  8562. _ACEOF
  8563. fi
  8564. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8565. test $ac_cv_type_unsigned_long_long_int = yes \
  8566. && ac_type='unsigned long long' \
  8567. || ac_type='unsigned long'
  8568. cat >>confdefs.h <<_ACEOF
  8569. #define uintmax_t $ac_type
  8570. _ACEOF
  8571. else
  8572. cat >>confdefs.h <<\_ACEOF
  8573. #define HAVE_UINTMAX_T 1
  8574. _ACEOF
  8575. fi
  8576. for ac_header in inttypes.h
  8577. do
  8578. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8579. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8580. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8581. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8582. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8583. echo $ECHO_N "(cached) $ECHO_C" >&6
  8584. fi
  8585. ac_res=`eval echo '${'$as_ac_Header'}'`
  8586. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8587. echo "${ECHO_T}$ac_res" >&6; }
  8588. else
  8589. # Is the header compilable?
  8590. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8591. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8592. cat >conftest.$ac_ext <<_ACEOF
  8593. /* confdefs.h. */
  8594. _ACEOF
  8595. cat confdefs.h >>conftest.$ac_ext
  8596. cat >>conftest.$ac_ext <<_ACEOF
  8597. /* end confdefs.h. */
  8598. $ac_includes_default
  8599. #include <$ac_header>
  8600. _ACEOF
  8601. rm -f conftest.$ac_objext
  8602. if { (ac_try="$ac_compile"
  8603. case "(($ac_try" in
  8604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8605. *) ac_try_echo=$ac_try;;
  8606. esac
  8607. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8608. (eval "$ac_compile") 2>conftest.er1
  8609. ac_status=$?
  8610. grep -v '^ *+' conftest.er1 >conftest.err
  8611. rm -f conftest.er1
  8612. cat conftest.err >&5
  8613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8614. (exit $ac_status); } && {
  8615. test -z "$ac_cxx_werror_flag" ||
  8616. test ! -s conftest.err
  8617. } && test -s conftest.$ac_objext; then
  8618. ac_header_compiler=yes
  8619. else
  8620. echo "$as_me: failed program was:" >&5
  8621. sed 's/^/| /' conftest.$ac_ext >&5
  8622. ac_header_compiler=no
  8623. fi
  8624. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8625. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8626. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8627. # Is the header present?
  8628. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8629. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8630. cat >conftest.$ac_ext <<_ACEOF
  8631. /* confdefs.h. */
  8632. _ACEOF
  8633. cat confdefs.h >>conftest.$ac_ext
  8634. cat >>conftest.$ac_ext <<_ACEOF
  8635. /* end confdefs.h. */
  8636. #include <$ac_header>
  8637. _ACEOF
  8638. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8639. case "(($ac_try" in
  8640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8641. *) ac_try_echo=$ac_try;;
  8642. esac
  8643. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8644. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8645. ac_status=$?
  8646. grep -v '^ *+' conftest.er1 >conftest.err
  8647. rm -f conftest.er1
  8648. cat conftest.err >&5
  8649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8650. (exit $ac_status); } >/dev/null && {
  8651. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8652. test ! -s conftest.err
  8653. }; then
  8654. ac_header_preproc=yes
  8655. else
  8656. echo "$as_me: failed program was:" >&5
  8657. sed 's/^/| /' conftest.$ac_ext >&5
  8658. ac_header_preproc=no
  8659. fi
  8660. rm -f conftest.err conftest.$ac_ext
  8661. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8662. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8663. # So? What about this header?
  8664. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8665. yes:no: )
  8666. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8667. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8668. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8669. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8670. ac_header_preproc=yes
  8671. ;;
  8672. no:yes:* )
  8673. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8674. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8675. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8676. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8677. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8678. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8679. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8680. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8681. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8682. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8683. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8684. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8685. ( cat <<\_ASBOX
  8686. ## ----------------------------------------------- ##
  8687. ## Report this to t-tujikawa@users.sourceforge.net ##
  8688. ## ----------------------------------------------- ##
  8689. _ASBOX
  8690. ) | sed "s/^/$as_me: WARNING: /" >&2
  8691. ;;
  8692. esac
  8693. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8694. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8695. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8696. echo $ECHO_N "(cached) $ECHO_C" >&6
  8697. else
  8698. eval "$as_ac_Header=\$ac_header_preproc"
  8699. fi
  8700. ac_res=`eval echo '${'$as_ac_Header'}'`
  8701. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8702. echo "${ECHO_T}$ac_res" >&6; }
  8703. fi
  8704. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8705. cat >>confdefs.h <<_ACEOF
  8706. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8707. _ACEOF
  8708. fi
  8709. done
  8710. if test $ac_cv_header_inttypes_h = yes; then
  8711. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8712. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  8713. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  8714. echo $ECHO_N "(cached) $ECHO_C" >&6
  8715. else
  8716. cat >conftest.$ac_ext <<_ACEOF
  8717. /* confdefs.h. */
  8718. _ACEOF
  8719. cat confdefs.h >>conftest.$ac_ext
  8720. cat >>conftest.$ac_ext <<_ACEOF
  8721. /* end confdefs.h. */
  8722. #include <inttypes.h>
  8723. #ifdef PRId32
  8724. char *p = PRId32;
  8725. #endif
  8726. int
  8727. main ()
  8728. {
  8729. ;
  8730. return 0;
  8731. }
  8732. _ACEOF
  8733. rm -f conftest.$ac_objext
  8734. if { (ac_try="$ac_compile"
  8735. case "(($ac_try" in
  8736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8737. *) ac_try_echo=$ac_try;;
  8738. esac
  8739. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8740. (eval "$ac_compile") 2>conftest.er1
  8741. ac_status=$?
  8742. grep -v '^ *+' conftest.er1 >conftest.err
  8743. rm -f conftest.er1
  8744. cat conftest.err >&5
  8745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8746. (exit $ac_status); } && {
  8747. test -z "$ac_cxx_werror_flag" ||
  8748. test ! -s conftest.err
  8749. } && test -s conftest.$ac_objext; then
  8750. gt_cv_inttypes_pri_broken=no
  8751. else
  8752. echo "$as_me: failed program was:" >&5
  8753. sed 's/^/| /' conftest.$ac_ext >&5
  8754. gt_cv_inttypes_pri_broken=yes
  8755. fi
  8756. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8757. fi
  8758. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  8759. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  8760. fi
  8761. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8762. cat >>confdefs.h <<_ACEOF
  8763. #define PRI_MACROS_BROKEN 1
  8764. _ACEOF
  8765. PRI_MACROS_BROKEN=1
  8766. else
  8767. PRI_MACROS_BROKEN=0
  8768. fi
  8769. # Check whether --enable-threads was given.
  8770. if test "${enable_threads+set}" = set; then
  8771. enableval=$enable_threads; gl_use_threads=$enableval
  8772. else
  8773. case "$host_os" in
  8774. osf*) gl_use_threads=no ;;
  8775. *) gl_use_threads=yes ;;
  8776. esac
  8777. fi
  8778. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8779. # For using <pthread.h>:
  8780. case "$host_os" in
  8781. osf*)
  8782. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8783. # groks <pthread.h>. cc also understands the flag -pthread, but
  8784. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8785. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8786. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8787. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8788. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8789. ;;
  8790. esac
  8791. # Some systems optimize for single-threaded programs by default, and
  8792. # need special flags to disable these optimizations. For example, the
  8793. # definition of 'errno' in <errno.h>.
  8794. case "$host_os" in
  8795. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8796. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8797. esac
  8798. fi
  8799. if test "X$prefix" = "XNONE"; then
  8800. acl_final_prefix="$ac_default_prefix"
  8801. else
  8802. acl_final_prefix="$prefix"
  8803. fi
  8804. if test "X$exec_prefix" = "XNONE"; then
  8805. acl_final_exec_prefix='${prefix}'
  8806. else
  8807. acl_final_exec_prefix="$exec_prefix"
  8808. fi
  8809. acl_save_prefix="$prefix"
  8810. prefix="$acl_final_prefix"
  8811. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8812. prefix="$acl_save_prefix"
  8813. # Check whether --with-gnu-ld was given.
  8814. if test "${with_gnu_ld+set}" = set; then
  8815. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8816. else
  8817. with_gnu_ld=no
  8818. fi
  8819. # Prepare PATH_SEPARATOR.
  8820. # The user is always right.
  8821. if test "${PATH_SEPARATOR+set}" != set; then
  8822. echo "#! /bin/sh" >conf$$.sh
  8823. echo "exit 0" >>conf$$.sh
  8824. chmod +x conf$$.sh
  8825. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8826. PATH_SEPARATOR=';'
  8827. else
  8828. PATH_SEPARATOR=:
  8829. fi
  8830. rm -f conf$$.sh
  8831. fi
  8832. ac_prog=ld
  8833. if test "$GCC" = yes; then
  8834. # Check if gcc -print-prog-name=ld gives a path.
  8835. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  8836. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  8837. case $host in
  8838. *-*-mingw*)
  8839. # gcc leaves a trailing carriage return which upsets mingw
  8840. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8841. *)
  8842. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8843. esac
  8844. case $ac_prog in
  8845. # Accept absolute paths.
  8846. [\\/]* | [A-Za-z]:[\\/]*)
  8847. re_direlt='/[^/][^/]*/\.\./'
  8848. # Canonicalize the path of ld
  8849. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8850. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8851. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8852. done
  8853. test -z "$LD" && LD="$ac_prog"
  8854. ;;
  8855. "")
  8856. # If it fails, then pretend we aren't using GCC.
  8857. ac_prog=ld
  8858. ;;
  8859. *)
  8860. # If it is relative, then search for the first ld in PATH.
  8861. with_gnu_ld=unknown
  8862. ;;
  8863. esac
  8864. elif test "$with_gnu_ld" = yes; then
  8865. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  8866. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  8867. else
  8868. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8869. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  8870. fi
  8871. if test "${acl_cv_path_LD+set}" = set; then
  8872. echo $ECHO_N "(cached) $ECHO_C" >&6
  8873. else
  8874. if test -z "$LD"; then
  8875. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8876. for ac_dir in $PATH; do
  8877. test -z "$ac_dir" && ac_dir=.
  8878. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8879. acl_cv_path_LD="$ac_dir/$ac_prog"
  8880. # Check to see if the program is GNU ld. I'd rather use --version,
  8881. # but apparently some GNU ld's only accept -v.
  8882. # Break only if it was the GNU/non-GNU ld that we prefer.
  8883. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8884. *GNU* | *'with BFD'*)
  8885. test "$with_gnu_ld" != no && break ;;
  8886. *)
  8887. test "$with_gnu_ld" != yes && break ;;
  8888. esac
  8889. fi
  8890. done
  8891. IFS="$ac_save_ifs"
  8892. else
  8893. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8894. fi
  8895. fi
  8896. LD="$acl_cv_path_LD"
  8897. if test -n "$LD"; then
  8898. { echo "$as_me:$LINENO: result: $LD" >&5
  8899. echo "${ECHO_T}$LD" >&6; }
  8900. else
  8901. { echo "$as_me:$LINENO: result: no" >&5
  8902. echo "${ECHO_T}no" >&6; }
  8903. fi
  8904. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8905. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8906. { (exit 1); exit 1; }; }
  8907. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8908. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  8909. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  8910. echo $ECHO_N "(cached) $ECHO_C" >&6
  8911. else
  8912. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8913. case `$LD -v 2>&1 </dev/null` in
  8914. *GNU* | *'with BFD'*)
  8915. acl_cv_prog_gnu_ld=yes ;;
  8916. *)
  8917. acl_cv_prog_gnu_ld=no ;;
  8918. esac
  8919. fi
  8920. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  8921. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  8922. with_gnu_ld=$acl_cv_prog_gnu_ld
  8923. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  8924. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  8925. if test "${acl_cv_rpath+set}" = set; then
  8926. echo $ECHO_N "(cached) $ECHO_C" >&6
  8927. else
  8928. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8929. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8930. . ./conftest.sh
  8931. rm -f ./conftest.sh
  8932. acl_cv_rpath=done
  8933. fi
  8934. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  8935. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  8936. wl="$acl_cv_wl"
  8937. acl_libext="$acl_cv_libext"
  8938. acl_shlibext="$acl_cv_shlibext"
  8939. acl_libname_spec="$acl_cv_libname_spec"
  8940. acl_library_names_spec="$acl_cv_library_names_spec"
  8941. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8942. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8943. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8944. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8945. # Check whether --enable-rpath was given.
  8946. if test "${enable_rpath+set}" = set; then
  8947. enableval=$enable_rpath; :
  8948. else
  8949. enable_rpath=yes
  8950. fi
  8951. acl_libdirstem=lib
  8952. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8953. if test -n "$searchpath"; then
  8954. acl_save_IFS="${IFS= }"; IFS=":"
  8955. for searchdir in $searchpath; do
  8956. if test -d "$searchdir"; then
  8957. case "$searchdir" in
  8958. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8959. *) searchdir=`cd "$searchdir" && pwd`
  8960. case "$searchdir" in
  8961. */lib64 ) acl_libdirstem=lib64 ;;
  8962. esac ;;
  8963. esac
  8964. fi
  8965. done
  8966. IFS="$acl_save_IFS"
  8967. fi
  8968. gl_threads_api=none
  8969. LIBTHREAD=
  8970. LTLIBTHREAD=
  8971. LIBMULTITHREAD=
  8972. LTLIBMULTITHREAD=
  8973. if test "$gl_use_threads" != no; then
  8974. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  8975. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  8976. gl_have_weak=no
  8977. cat >conftest.$ac_ext <<_ACEOF
  8978. /* confdefs.h. */
  8979. _ACEOF
  8980. cat confdefs.h >>conftest.$ac_ext
  8981. cat >>conftest.$ac_ext <<_ACEOF
  8982. /* end confdefs.h. */
  8983. extern void xyzzy ();
  8984. #pragma weak xyzzy
  8985. int
  8986. main ()
  8987. {
  8988. xyzzy();
  8989. ;
  8990. return 0;
  8991. }
  8992. _ACEOF
  8993. rm -f conftest.$ac_objext conftest$ac_exeext
  8994. if { (ac_try="$ac_link"
  8995. case "(($ac_try" in
  8996. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8997. *) ac_try_echo=$ac_try;;
  8998. esac
  8999. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9000. (eval "$ac_link") 2>conftest.er1
  9001. ac_status=$?
  9002. grep -v '^ *+' conftest.er1 >conftest.err
  9003. rm -f conftest.er1
  9004. cat conftest.err >&5
  9005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9006. (exit $ac_status); } && {
  9007. test -z "$ac_cxx_werror_flag" ||
  9008. test ! -s conftest.err
  9009. } && test -s conftest$ac_exeext &&
  9010. $as_test_x conftest$ac_exeext; then
  9011. gl_have_weak=yes
  9012. else
  9013. echo "$as_me: failed program was:" >&5
  9014. sed 's/^/| /' conftest.$ac_ext >&5
  9015. fi
  9016. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9017. conftest$ac_exeext conftest.$ac_ext
  9018. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  9019. echo "${ECHO_T}$gl_have_weak" >&6; }
  9020. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  9021. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  9022. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  9023. if test "${ac_cv_header_pthread_h+set}" = set; then
  9024. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  9025. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  9026. if test "${ac_cv_header_pthread_h+set}" = set; then
  9027. echo $ECHO_N "(cached) $ECHO_C" >&6
  9028. fi
  9029. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  9030. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  9031. else
  9032. # Is the header compilable?
  9033. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  9034. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  9035. cat >conftest.$ac_ext <<_ACEOF
  9036. /* confdefs.h. */
  9037. _ACEOF
  9038. cat confdefs.h >>conftest.$ac_ext
  9039. cat >>conftest.$ac_ext <<_ACEOF
  9040. /* end confdefs.h. */
  9041. $ac_includes_default
  9042. #include <pthread.h>
  9043. _ACEOF
  9044. rm -f conftest.$ac_objext
  9045. if { (ac_try="$ac_compile"
  9046. case "(($ac_try" in
  9047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9048. *) ac_try_echo=$ac_try;;
  9049. esac
  9050. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9051. (eval "$ac_compile") 2>conftest.er1
  9052. ac_status=$?
  9053. grep -v '^ *+' conftest.er1 >conftest.err
  9054. rm -f conftest.er1
  9055. cat conftest.err >&5
  9056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9057. (exit $ac_status); } && {
  9058. test -z "$ac_cxx_werror_flag" ||
  9059. test ! -s conftest.err
  9060. } && test -s conftest.$ac_objext; then
  9061. ac_header_compiler=yes
  9062. else
  9063. echo "$as_me: failed program was:" >&5
  9064. sed 's/^/| /' conftest.$ac_ext >&5
  9065. ac_header_compiler=no
  9066. fi
  9067. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9068. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9069. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9070. # Is the header present?
  9071. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  9072. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  9073. cat >conftest.$ac_ext <<_ACEOF
  9074. /* confdefs.h. */
  9075. _ACEOF
  9076. cat confdefs.h >>conftest.$ac_ext
  9077. cat >>conftest.$ac_ext <<_ACEOF
  9078. /* end confdefs.h. */
  9079. #include <pthread.h>
  9080. _ACEOF
  9081. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9082. case "(($ac_try" in
  9083. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9084. *) ac_try_echo=$ac_try;;
  9085. esac
  9086. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9087. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9088. ac_status=$?
  9089. grep -v '^ *+' conftest.er1 >conftest.err
  9090. rm -f conftest.er1
  9091. cat conftest.err >&5
  9092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9093. (exit $ac_status); } >/dev/null && {
  9094. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9095. test ! -s conftest.err
  9096. }; then
  9097. ac_header_preproc=yes
  9098. else
  9099. echo "$as_me: failed program was:" >&5
  9100. sed 's/^/| /' conftest.$ac_ext >&5
  9101. ac_header_preproc=no
  9102. fi
  9103. rm -f conftest.err conftest.$ac_ext
  9104. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9105. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9106. # So? What about this header?
  9107. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9108. yes:no: )
  9109. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  9110. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9111. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  9112. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  9113. ac_header_preproc=yes
  9114. ;;
  9115. no:yes:* )
  9116. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  9117. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  9118. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  9119. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  9120. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  9121. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  9122. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  9123. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  9124. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  9125. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  9126. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  9127. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  9128. ( cat <<\_ASBOX
  9129. ## ----------------------------------------------- ##
  9130. ## Report this to t-tujikawa@users.sourceforge.net ##
  9131. ## ----------------------------------------------- ##
  9132. _ASBOX
  9133. ) | sed "s/^/$as_me: WARNING: /" >&2
  9134. ;;
  9135. esac
  9136. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  9137. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  9138. if test "${ac_cv_header_pthread_h+set}" = set; then
  9139. echo $ECHO_N "(cached) $ECHO_C" >&6
  9140. else
  9141. ac_cv_header_pthread_h=$ac_header_preproc
  9142. fi
  9143. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  9144. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  9145. fi
  9146. if test $ac_cv_header_pthread_h = yes; then
  9147. gl_have_pthread_h=yes
  9148. else
  9149. gl_have_pthread_h=no
  9150. fi
  9151. if test "$gl_have_pthread_h" = yes; then
  9152. # Other possible tests:
  9153. # -lpthreads (FSU threads, PCthreads)
  9154. # -lgthreads
  9155. gl_have_pthread=
  9156. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  9157. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  9158. # the second one only in libpthread, and lock.c needs it.
  9159. cat >conftest.$ac_ext <<_ACEOF
  9160. /* confdefs.h. */
  9161. _ACEOF
  9162. cat confdefs.h >>conftest.$ac_ext
  9163. cat >>conftest.$ac_ext <<_ACEOF
  9164. /* end confdefs.h. */
  9165. #include <pthread.h>
  9166. int
  9167. main ()
  9168. {
  9169. pthread_mutex_lock((pthread_mutex_t*)0);
  9170. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  9171. ;
  9172. return 0;
  9173. }
  9174. _ACEOF
  9175. rm -f conftest.$ac_objext conftest$ac_exeext
  9176. if { (ac_try="$ac_link"
  9177. case "(($ac_try" in
  9178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9179. *) ac_try_echo=$ac_try;;
  9180. esac
  9181. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9182. (eval "$ac_link") 2>conftest.er1
  9183. ac_status=$?
  9184. grep -v '^ *+' conftest.er1 >conftest.err
  9185. rm -f conftest.er1
  9186. cat conftest.err >&5
  9187. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9188. (exit $ac_status); } && {
  9189. test -z "$ac_cxx_werror_flag" ||
  9190. test ! -s conftest.err
  9191. } && test -s conftest$ac_exeext &&
  9192. $as_test_x conftest$ac_exeext; then
  9193. gl_have_pthread=yes
  9194. else
  9195. echo "$as_me: failed program was:" >&5
  9196. sed 's/^/| /' conftest.$ac_ext >&5
  9197. fi
  9198. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9199. conftest$ac_exeext conftest.$ac_ext
  9200. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  9201. # since it is defined as a macro on OSF/1.)
  9202. if test -n "$gl_have_pthread"; then
  9203. # The program links fine without libpthread. But it may actually
  9204. # need to link with libpthread in order to create multiple threads.
  9205. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  9206. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  9207. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  9208. echo $ECHO_N "(cached) $ECHO_C" >&6
  9209. else
  9210. ac_check_lib_save_LIBS=$LIBS
  9211. LIBS="-lpthread $LIBS"
  9212. cat >conftest.$ac_ext <<_ACEOF
  9213. /* confdefs.h. */
  9214. _ACEOF
  9215. cat confdefs.h >>conftest.$ac_ext
  9216. cat >>conftest.$ac_ext <<_ACEOF
  9217. /* end confdefs.h. */
  9218. /* Override any GCC internal prototype to avoid an error.
  9219. Use char because int might match the return type of a GCC
  9220. builtin and then its argument prototype would still apply. */
  9221. #ifdef __cplusplus
  9222. extern "C"
  9223. #endif
  9224. char pthread_kill ();
  9225. int
  9226. main ()
  9227. {
  9228. return pthread_kill ();
  9229. ;
  9230. return 0;
  9231. }
  9232. _ACEOF
  9233. rm -f conftest.$ac_objext conftest$ac_exeext
  9234. if { (ac_try="$ac_link"
  9235. case "(($ac_try" in
  9236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9237. *) ac_try_echo=$ac_try;;
  9238. esac
  9239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9240. (eval "$ac_link") 2>conftest.er1
  9241. ac_status=$?
  9242. grep -v '^ *+' conftest.er1 >conftest.err
  9243. rm -f conftest.er1
  9244. cat conftest.err >&5
  9245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9246. (exit $ac_status); } && {
  9247. test -z "$ac_cxx_werror_flag" ||
  9248. test ! -s conftest.err
  9249. } && test -s conftest$ac_exeext &&
  9250. $as_test_x conftest$ac_exeext; then
  9251. ac_cv_lib_pthread_pthread_kill=yes
  9252. else
  9253. echo "$as_me: failed program was:" >&5
  9254. sed 's/^/| /' conftest.$ac_ext >&5
  9255. ac_cv_lib_pthread_pthread_kill=no
  9256. fi
  9257. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9258. conftest$ac_exeext conftest.$ac_ext
  9259. LIBS=$ac_check_lib_save_LIBS
  9260. fi
  9261. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  9262. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  9263. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  9264. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  9265. # On Solaris and HP-UX, most pthread functions exist also in libc.
  9266. # Therefore pthread_in_use() needs to actually try to create a
  9267. # thread: pthread_create from libc will fail, whereas
  9268. # pthread_create will actually create a thread.
  9269. case "$host_os" in
  9270. solaris* | hpux*)
  9271. cat >>confdefs.h <<\_ACEOF
  9272. #define PTHREAD_IN_USE_DETECTION_HARD 1
  9273. _ACEOF
  9274. esac
  9275. fi
  9276. else
  9277. # Some library is needed. Try libpthread and libc_r.
  9278. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  9279. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  9280. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  9281. echo $ECHO_N "(cached) $ECHO_C" >&6
  9282. else
  9283. ac_check_lib_save_LIBS=$LIBS
  9284. LIBS="-lpthread $LIBS"
  9285. cat >conftest.$ac_ext <<_ACEOF
  9286. /* confdefs.h. */
  9287. _ACEOF
  9288. cat confdefs.h >>conftest.$ac_ext
  9289. cat >>conftest.$ac_ext <<_ACEOF
  9290. /* end confdefs.h. */
  9291. /* Override any GCC internal prototype to avoid an error.
  9292. Use char because int might match the return type of a GCC
  9293. builtin and then its argument prototype would still apply. */
  9294. #ifdef __cplusplus
  9295. extern "C"
  9296. #endif
  9297. char pthread_kill ();
  9298. int
  9299. main ()
  9300. {
  9301. return pthread_kill ();
  9302. ;
  9303. return 0;
  9304. }
  9305. _ACEOF
  9306. rm -f conftest.$ac_objext conftest$ac_exeext
  9307. if { (ac_try="$ac_link"
  9308. case "(($ac_try" in
  9309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9310. *) ac_try_echo=$ac_try;;
  9311. esac
  9312. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9313. (eval "$ac_link") 2>conftest.er1
  9314. ac_status=$?
  9315. grep -v '^ *+' conftest.er1 >conftest.err
  9316. rm -f conftest.er1
  9317. cat conftest.err >&5
  9318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9319. (exit $ac_status); } && {
  9320. test -z "$ac_cxx_werror_flag" ||
  9321. test ! -s conftest.err
  9322. } && test -s conftest$ac_exeext &&
  9323. $as_test_x conftest$ac_exeext; then
  9324. ac_cv_lib_pthread_pthread_kill=yes
  9325. else
  9326. echo "$as_me: failed program was:" >&5
  9327. sed 's/^/| /' conftest.$ac_ext >&5
  9328. ac_cv_lib_pthread_pthread_kill=no
  9329. fi
  9330. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9331. conftest$ac_exeext conftest.$ac_ext
  9332. LIBS=$ac_check_lib_save_LIBS
  9333. fi
  9334. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  9335. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  9336. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  9337. gl_have_pthread=yes
  9338. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  9339. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  9340. fi
  9341. if test -z "$gl_have_pthread"; then
  9342. # For FreeBSD 4.
  9343. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  9344. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  9345. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  9346. echo $ECHO_N "(cached) $ECHO_C" >&6
  9347. else
  9348. ac_check_lib_save_LIBS=$LIBS
  9349. LIBS="-lc_r $LIBS"
  9350. cat >conftest.$ac_ext <<_ACEOF
  9351. /* confdefs.h. */
  9352. _ACEOF
  9353. cat confdefs.h >>conftest.$ac_ext
  9354. cat >>conftest.$ac_ext <<_ACEOF
  9355. /* end confdefs.h. */
  9356. /* Override any GCC internal prototype to avoid an error.
  9357. Use char because int might match the return type of a GCC
  9358. builtin and then its argument prototype would still apply. */
  9359. #ifdef __cplusplus
  9360. extern "C"
  9361. #endif
  9362. char pthread_kill ();
  9363. int
  9364. main ()
  9365. {
  9366. return pthread_kill ();
  9367. ;
  9368. return 0;
  9369. }
  9370. _ACEOF
  9371. rm -f conftest.$ac_objext conftest$ac_exeext
  9372. if { (ac_try="$ac_link"
  9373. case "(($ac_try" in
  9374. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9375. *) ac_try_echo=$ac_try;;
  9376. esac
  9377. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9378. (eval "$ac_link") 2>conftest.er1
  9379. ac_status=$?
  9380. grep -v '^ *+' conftest.er1 >conftest.err
  9381. rm -f conftest.er1
  9382. cat conftest.err >&5
  9383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9384. (exit $ac_status); } && {
  9385. test -z "$ac_cxx_werror_flag" ||
  9386. test ! -s conftest.err
  9387. } && test -s conftest$ac_exeext &&
  9388. $as_test_x conftest$ac_exeext; then
  9389. ac_cv_lib_c_r_pthread_kill=yes
  9390. else
  9391. echo "$as_me: failed program was:" >&5
  9392. sed 's/^/| /' conftest.$ac_ext >&5
  9393. ac_cv_lib_c_r_pthread_kill=no
  9394. fi
  9395. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9396. conftest$ac_exeext conftest.$ac_ext
  9397. LIBS=$ac_check_lib_save_LIBS
  9398. fi
  9399. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  9400. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  9401. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  9402. gl_have_pthread=yes
  9403. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  9404. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  9405. fi
  9406. fi
  9407. fi
  9408. if test -n "$gl_have_pthread"; then
  9409. gl_threads_api=posix
  9410. cat >>confdefs.h <<\_ACEOF
  9411. #define USE_POSIX_THREADS 1
  9412. _ACEOF
  9413. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9414. if test $gl_have_weak = yes; then
  9415. cat >>confdefs.h <<\_ACEOF
  9416. #define USE_POSIX_THREADS_WEAK 1
  9417. _ACEOF
  9418. LIBTHREAD=
  9419. LTLIBTHREAD=
  9420. fi
  9421. fi
  9422. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  9423. # pthread_rwlock_* functions.
  9424. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  9425. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  9426. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  9427. echo $ECHO_N "(cached) $ECHO_C" >&6
  9428. else
  9429. cat >conftest.$ac_ext <<_ACEOF
  9430. /* confdefs.h. */
  9431. _ACEOF
  9432. cat confdefs.h >>conftest.$ac_ext
  9433. cat >>conftest.$ac_ext <<_ACEOF
  9434. /* end confdefs.h. */
  9435. #include <pthread.h>
  9436. typedef pthread_rwlock_t ac__type_new_;
  9437. int
  9438. main ()
  9439. {
  9440. if ((ac__type_new_ *) 0)
  9441. return 0;
  9442. if (sizeof (ac__type_new_))
  9443. return 0;
  9444. ;
  9445. return 0;
  9446. }
  9447. _ACEOF
  9448. rm -f conftest.$ac_objext
  9449. if { (ac_try="$ac_compile"
  9450. case "(($ac_try" in
  9451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9452. *) ac_try_echo=$ac_try;;
  9453. esac
  9454. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9455. (eval "$ac_compile") 2>conftest.er1
  9456. ac_status=$?
  9457. grep -v '^ *+' conftest.er1 >conftest.err
  9458. rm -f conftest.er1
  9459. cat conftest.err >&5
  9460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9461. (exit $ac_status); } && {
  9462. test -z "$ac_cxx_werror_flag" ||
  9463. test ! -s conftest.err
  9464. } && test -s conftest.$ac_objext; then
  9465. ac_cv_type_pthread_rwlock_t=yes
  9466. else
  9467. echo "$as_me: failed program was:" >&5
  9468. sed 's/^/| /' conftest.$ac_ext >&5
  9469. ac_cv_type_pthread_rwlock_t=no
  9470. fi
  9471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9472. fi
  9473. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  9474. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  9475. if test $ac_cv_type_pthread_rwlock_t = yes; then
  9476. cat >>confdefs.h <<\_ACEOF
  9477. #define HAVE_PTHREAD_RWLOCK 1
  9478. _ACEOF
  9479. fi
  9480. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  9481. cat >conftest.$ac_ext <<_ACEOF
  9482. /* confdefs.h. */
  9483. _ACEOF
  9484. cat confdefs.h >>conftest.$ac_ext
  9485. cat >>conftest.$ac_ext <<_ACEOF
  9486. /* end confdefs.h. */
  9487. #include <pthread.h>
  9488. int
  9489. main ()
  9490. {
  9491. #if __FreeBSD__ == 4
  9492. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  9493. #else
  9494. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  9495. return !x;
  9496. #endif
  9497. ;
  9498. return 0;
  9499. }
  9500. _ACEOF
  9501. rm -f conftest.$ac_objext
  9502. if { (ac_try="$ac_compile"
  9503. case "(($ac_try" in
  9504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9505. *) ac_try_echo=$ac_try;;
  9506. esac
  9507. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9508. (eval "$ac_compile") 2>conftest.er1
  9509. ac_status=$?
  9510. grep -v '^ *+' conftest.er1 >conftest.err
  9511. rm -f conftest.er1
  9512. cat conftest.err >&5
  9513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9514. (exit $ac_status); } && {
  9515. test -z "$ac_cxx_werror_flag" ||
  9516. test ! -s conftest.err
  9517. } && test -s conftest.$ac_objext; then
  9518. cat >>confdefs.h <<\_ACEOF
  9519. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  9520. _ACEOF
  9521. else
  9522. echo "$as_me: failed program was:" >&5
  9523. sed 's/^/| /' conftest.$ac_ext >&5
  9524. fi
  9525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9526. fi
  9527. fi
  9528. fi
  9529. if test -z "$gl_have_pthread"; then
  9530. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  9531. gl_have_solaristhread=
  9532. gl_save_LIBS="$LIBS"
  9533. LIBS="$LIBS -lthread"
  9534. cat >conftest.$ac_ext <<_ACEOF
  9535. /* confdefs.h. */
  9536. _ACEOF
  9537. cat confdefs.h >>conftest.$ac_ext
  9538. cat >>conftest.$ac_ext <<_ACEOF
  9539. /* end confdefs.h. */
  9540. #include <thread.h>
  9541. #include <synch.h>
  9542. int
  9543. main ()
  9544. {
  9545. thr_self();
  9546. ;
  9547. return 0;
  9548. }
  9549. _ACEOF
  9550. rm -f conftest.$ac_objext conftest$ac_exeext
  9551. if { (ac_try="$ac_link"
  9552. case "(($ac_try" in
  9553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9554. *) ac_try_echo=$ac_try;;
  9555. esac
  9556. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9557. (eval "$ac_link") 2>conftest.er1
  9558. ac_status=$?
  9559. grep -v '^ *+' conftest.er1 >conftest.err
  9560. rm -f conftest.er1
  9561. cat conftest.err >&5
  9562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9563. (exit $ac_status); } && {
  9564. test -z "$ac_cxx_werror_flag" ||
  9565. test ! -s conftest.err
  9566. } && test -s conftest$ac_exeext &&
  9567. $as_test_x conftest$ac_exeext; then
  9568. gl_have_solaristhread=yes
  9569. else
  9570. echo "$as_me: failed program was:" >&5
  9571. sed 's/^/| /' conftest.$ac_ext >&5
  9572. fi
  9573. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9574. conftest$ac_exeext conftest.$ac_ext
  9575. LIBS="$gl_save_LIBS"
  9576. if test -n "$gl_have_solaristhread"; then
  9577. gl_threads_api=solaris
  9578. LIBTHREAD=-lthread
  9579. LTLIBTHREAD=-lthread
  9580. LIBMULTITHREAD="$LIBTHREAD"
  9581. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9582. cat >>confdefs.h <<\_ACEOF
  9583. #define USE_SOLARIS_THREADS 1
  9584. _ACEOF
  9585. if test $gl_have_weak = yes; then
  9586. cat >>confdefs.h <<\_ACEOF
  9587. #define USE_SOLARIS_THREADS_WEAK 1
  9588. _ACEOF
  9589. LIBTHREAD=
  9590. LTLIBTHREAD=
  9591. fi
  9592. fi
  9593. fi
  9594. fi
  9595. if test "$gl_use_threads" = pth; then
  9596. gl_save_CPPFLAGS="$CPPFLAGS"
  9597. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  9598. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  9599. if test "${ac_cv_libpth_libs+set}" = set; then
  9600. echo $ECHO_N "(cached) $ECHO_C" >&6
  9601. else
  9602. use_additional=yes
  9603. acl_save_prefix="$prefix"
  9604. prefix="$acl_final_prefix"
  9605. acl_save_exec_prefix="$exec_prefix"
  9606. exec_prefix="$acl_final_exec_prefix"
  9607. eval additional_includedir=\"$includedir\"
  9608. eval additional_libdir=\"$libdir\"
  9609. exec_prefix="$acl_save_exec_prefix"
  9610. prefix="$acl_save_prefix"
  9611. # Check whether --with-libpth-prefix was given.
  9612. if test "${with_libpth_prefix+set}" = set; then
  9613. withval=$with_libpth_prefix;
  9614. if test "X$withval" = "Xno"; then
  9615. use_additional=no
  9616. else
  9617. if test "X$withval" = "X"; then
  9618. acl_save_prefix="$prefix"
  9619. prefix="$acl_final_prefix"
  9620. acl_save_exec_prefix="$exec_prefix"
  9621. exec_prefix="$acl_final_exec_prefix"
  9622. eval additional_includedir=\"$includedir\"
  9623. eval additional_libdir=\"$libdir\"
  9624. exec_prefix="$acl_save_exec_prefix"
  9625. prefix="$acl_save_prefix"
  9626. else
  9627. additional_includedir="$withval/include"
  9628. additional_libdir="$withval/$acl_libdirstem"
  9629. fi
  9630. fi
  9631. fi
  9632. LIBPTH=
  9633. LTLIBPTH=
  9634. INCPTH=
  9635. LIBPTH_PREFIX=
  9636. rpathdirs=
  9637. ltrpathdirs=
  9638. names_already_handled=
  9639. names_next_round='pth '
  9640. while test -n "$names_next_round"; do
  9641. names_this_round="$names_next_round"
  9642. names_next_round=
  9643. for name in $names_this_round; do
  9644. already_handled=
  9645. for n in $names_already_handled; do
  9646. if test "$n" = "$name"; then
  9647. already_handled=yes
  9648. break
  9649. fi
  9650. done
  9651. if test -z "$already_handled"; then
  9652. names_already_handled="$names_already_handled $name"
  9653. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9654. eval value=\"\$HAVE_LIB$uppername\"
  9655. if test -n "$value"; then
  9656. if test "$value" = yes; then
  9657. eval value=\"\$LIB$uppername\"
  9658. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9659. eval value=\"\$LTLIB$uppername\"
  9660. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9661. else
  9662. :
  9663. fi
  9664. else
  9665. found_dir=
  9666. found_la=
  9667. found_so=
  9668. found_a=
  9669. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9670. if test -n "$acl_shlibext"; then
  9671. shrext=".$acl_shlibext" # typically: shrext=.so
  9672. else
  9673. shrext=
  9674. fi
  9675. if test $use_additional = yes; then
  9676. dir="$additional_libdir"
  9677. if test -n "$acl_shlibext"; then
  9678. if test -f "$dir/$libname$shrext"; then
  9679. found_dir="$dir"
  9680. found_so="$dir/$libname$shrext"
  9681. else
  9682. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9683. ver=`(cd "$dir" && \
  9684. for f in "$libname$shrext".*; do echo "$f"; done \
  9685. | sed -e "s,^$libname$shrext\\\\.,," \
  9686. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9687. | sed 1q ) 2>/dev/null`
  9688. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9689. found_dir="$dir"
  9690. found_so="$dir/$libname$shrext.$ver"
  9691. fi
  9692. else
  9693. eval library_names=\"$acl_library_names_spec\"
  9694. for f in $library_names; do
  9695. if test -f "$dir/$f"; then
  9696. found_dir="$dir"
  9697. found_so="$dir/$f"
  9698. break
  9699. fi
  9700. done
  9701. fi
  9702. fi
  9703. fi
  9704. if test "X$found_dir" = "X"; then
  9705. if test -f "$dir/$libname.$acl_libext"; then
  9706. found_dir="$dir"
  9707. found_a="$dir/$libname.$acl_libext"
  9708. fi
  9709. fi
  9710. if test "X$found_dir" != "X"; then
  9711. if test -f "$dir/$libname.la"; then
  9712. found_la="$dir/$libname.la"
  9713. fi
  9714. fi
  9715. fi
  9716. if test "X$found_dir" = "X"; then
  9717. for x in $LDFLAGS $LTLIBPTH; do
  9718. acl_save_prefix="$prefix"
  9719. prefix="$acl_final_prefix"
  9720. acl_save_exec_prefix="$exec_prefix"
  9721. exec_prefix="$acl_final_exec_prefix"
  9722. eval x=\"$x\"
  9723. exec_prefix="$acl_save_exec_prefix"
  9724. prefix="$acl_save_prefix"
  9725. case "$x" in
  9726. -L*)
  9727. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9728. if test -n "$acl_shlibext"; then
  9729. if test -f "$dir/$libname$shrext"; then
  9730. found_dir="$dir"
  9731. found_so="$dir/$libname$shrext"
  9732. else
  9733. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9734. ver=`(cd "$dir" && \
  9735. for f in "$libname$shrext".*; do echo "$f"; done \
  9736. | sed -e "s,^$libname$shrext\\\\.,," \
  9737. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9738. | sed 1q ) 2>/dev/null`
  9739. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9740. found_dir="$dir"
  9741. found_so="$dir/$libname$shrext.$ver"
  9742. fi
  9743. else
  9744. eval library_names=\"$acl_library_names_spec\"
  9745. for f in $library_names; do
  9746. if test -f "$dir/$f"; then
  9747. found_dir="$dir"
  9748. found_so="$dir/$f"
  9749. break
  9750. fi
  9751. done
  9752. fi
  9753. fi
  9754. fi
  9755. if test "X$found_dir" = "X"; then
  9756. if test -f "$dir/$libname.$acl_libext"; then
  9757. found_dir="$dir"
  9758. found_a="$dir/$libname.$acl_libext"
  9759. fi
  9760. fi
  9761. if test "X$found_dir" != "X"; then
  9762. if test -f "$dir/$libname.la"; then
  9763. found_la="$dir/$libname.la"
  9764. fi
  9765. fi
  9766. ;;
  9767. esac
  9768. if test "X$found_dir" != "X"; then
  9769. break
  9770. fi
  9771. done
  9772. fi
  9773. if test "X$found_dir" != "X"; then
  9774. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9775. if test "X$found_so" != "X"; then
  9776. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9777. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9778. else
  9779. haveit=
  9780. for x in $ltrpathdirs; do
  9781. if test "X$x" = "X$found_dir"; then
  9782. haveit=yes
  9783. break
  9784. fi
  9785. done
  9786. if test -z "$haveit"; then
  9787. ltrpathdirs="$ltrpathdirs $found_dir"
  9788. fi
  9789. if test "$acl_hardcode_direct" = yes; then
  9790. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9791. else
  9792. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9793. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9794. haveit=
  9795. for x in $rpathdirs; do
  9796. if test "X$x" = "X$found_dir"; then
  9797. haveit=yes
  9798. break
  9799. fi
  9800. done
  9801. if test -z "$haveit"; then
  9802. rpathdirs="$rpathdirs $found_dir"
  9803. fi
  9804. else
  9805. haveit=
  9806. for x in $LDFLAGS $LIBPTH; do
  9807. acl_save_prefix="$prefix"
  9808. prefix="$acl_final_prefix"
  9809. acl_save_exec_prefix="$exec_prefix"
  9810. exec_prefix="$acl_final_exec_prefix"
  9811. eval x=\"$x\"
  9812. exec_prefix="$acl_save_exec_prefix"
  9813. prefix="$acl_save_prefix"
  9814. if test "X$x" = "X-L$found_dir"; then
  9815. haveit=yes
  9816. break
  9817. fi
  9818. done
  9819. if test -z "$haveit"; then
  9820. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9821. fi
  9822. if test "$acl_hardcode_minus_L" != no; then
  9823. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9824. else
  9825. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9826. fi
  9827. fi
  9828. fi
  9829. fi
  9830. else
  9831. if test "X$found_a" != "X"; then
  9832. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9833. else
  9834. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9835. fi
  9836. fi
  9837. additional_includedir=
  9838. case "$found_dir" in
  9839. */$acl_libdirstem | */$acl_libdirstem/)
  9840. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9841. LIBPTH_PREFIX="$basedir"
  9842. additional_includedir="$basedir/include"
  9843. ;;
  9844. esac
  9845. if test "X$additional_includedir" != "X"; then
  9846. if test "X$additional_includedir" != "X/usr/include"; then
  9847. haveit=
  9848. if test "X$additional_includedir" = "X/usr/local/include"; then
  9849. if test -n "$GCC"; then
  9850. case $host_os in
  9851. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9852. esac
  9853. fi
  9854. fi
  9855. if test -z "$haveit"; then
  9856. for x in $CPPFLAGS $INCPTH; do
  9857. acl_save_prefix="$prefix"
  9858. prefix="$acl_final_prefix"
  9859. acl_save_exec_prefix="$exec_prefix"
  9860. exec_prefix="$acl_final_exec_prefix"
  9861. eval x=\"$x\"
  9862. exec_prefix="$acl_save_exec_prefix"
  9863. prefix="$acl_save_prefix"
  9864. if test "X$x" = "X-I$additional_includedir"; then
  9865. haveit=yes
  9866. break
  9867. fi
  9868. done
  9869. if test -z "$haveit"; then
  9870. if test -d "$additional_includedir"; then
  9871. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9872. fi
  9873. fi
  9874. fi
  9875. fi
  9876. fi
  9877. if test -n "$found_la"; then
  9878. save_libdir="$libdir"
  9879. case "$found_la" in
  9880. */* | *\\*) . "$found_la" ;;
  9881. *) . "./$found_la" ;;
  9882. esac
  9883. libdir="$save_libdir"
  9884. for dep in $dependency_libs; do
  9885. case "$dep" in
  9886. -L*)
  9887. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9888. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9889. haveit=
  9890. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9891. if test -n "$GCC"; then
  9892. case $host_os in
  9893. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9894. esac
  9895. fi
  9896. fi
  9897. if test -z "$haveit"; then
  9898. haveit=
  9899. for x in $LDFLAGS $LIBPTH; do
  9900. acl_save_prefix="$prefix"
  9901. prefix="$acl_final_prefix"
  9902. acl_save_exec_prefix="$exec_prefix"
  9903. exec_prefix="$acl_final_exec_prefix"
  9904. eval x=\"$x\"
  9905. exec_prefix="$acl_save_exec_prefix"
  9906. prefix="$acl_save_prefix"
  9907. if test "X$x" = "X-L$additional_libdir"; then
  9908. haveit=yes
  9909. break
  9910. fi
  9911. done
  9912. if test -z "$haveit"; then
  9913. if test -d "$additional_libdir"; then
  9914. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9915. fi
  9916. fi
  9917. haveit=
  9918. for x in $LDFLAGS $LTLIBPTH; 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. if test "X$x" = "X-L$additional_libdir"; then
  9927. haveit=yes
  9928. break
  9929. fi
  9930. done
  9931. if test -z "$haveit"; then
  9932. if test -d "$additional_libdir"; then
  9933. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9934. fi
  9935. fi
  9936. fi
  9937. fi
  9938. ;;
  9939. -R*)
  9940. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9941. if test "$enable_rpath" != no; then
  9942. haveit=
  9943. for x in $rpathdirs; do
  9944. if test "X$x" = "X$dir"; then
  9945. haveit=yes
  9946. break
  9947. fi
  9948. done
  9949. if test -z "$haveit"; then
  9950. rpathdirs="$rpathdirs $dir"
  9951. fi
  9952. haveit=
  9953. for x in $ltrpathdirs; do
  9954. if test "X$x" = "X$dir"; then
  9955. haveit=yes
  9956. break
  9957. fi
  9958. done
  9959. if test -z "$haveit"; then
  9960. ltrpathdirs="$ltrpathdirs $dir"
  9961. fi
  9962. fi
  9963. ;;
  9964. -l*)
  9965. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9966. ;;
  9967. *.la)
  9968. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9969. ;;
  9970. *)
  9971. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9972. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9973. ;;
  9974. esac
  9975. done
  9976. fi
  9977. else
  9978. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9979. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9980. fi
  9981. fi
  9982. fi
  9983. done
  9984. done
  9985. if test "X$rpathdirs" != "X"; then
  9986. if test -n "$acl_hardcode_libdir_separator"; then
  9987. alldirs=
  9988. for found_dir in $rpathdirs; do
  9989. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9990. done
  9991. acl_save_libdir="$libdir"
  9992. libdir="$alldirs"
  9993. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9994. libdir="$acl_save_libdir"
  9995. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9996. else
  9997. for found_dir in $rpathdirs; do
  9998. acl_save_libdir="$libdir"
  9999. libdir="$found_dir"
  10000. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10001. libdir="$acl_save_libdir"
  10002. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  10003. done
  10004. fi
  10005. fi
  10006. if test "X$ltrpathdirs" != "X"; then
  10007. for found_dir in $ltrpathdirs; do
  10008. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  10009. done
  10010. fi
  10011. ac_cv_libpth_libs="$LIBPTH"
  10012. ac_cv_libpth_ltlibs="$LTLIBPTH"
  10013. ac_cv_libpth_cppflags="$INCPTH"
  10014. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  10015. fi
  10016. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  10017. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  10018. LIBPTH="$ac_cv_libpth_libs"
  10019. LTLIBPTH="$ac_cv_libpth_ltlibs"
  10020. INCPTH="$ac_cv_libpth_cppflags"
  10021. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  10022. for element in $INCPTH; do
  10023. haveit=
  10024. for x in $CPPFLAGS; do
  10025. acl_save_prefix="$prefix"
  10026. prefix="$acl_final_prefix"
  10027. acl_save_exec_prefix="$exec_prefix"
  10028. exec_prefix="$acl_final_exec_prefix"
  10029. eval x=\"$x\"
  10030. exec_prefix="$acl_save_exec_prefix"
  10031. prefix="$acl_save_prefix"
  10032. if test "X$x" = "X$element"; then
  10033. haveit=yes
  10034. break
  10035. fi
  10036. done
  10037. if test -z "$haveit"; then
  10038. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10039. fi
  10040. done
  10041. HAVE_LIBPTH=yes
  10042. gl_have_pth=
  10043. gl_save_LIBS="$LIBS"
  10044. LIBS="$LIBS -lpth"
  10045. cat >conftest.$ac_ext <<_ACEOF
  10046. /* confdefs.h. */
  10047. _ACEOF
  10048. cat confdefs.h >>conftest.$ac_ext
  10049. cat >>conftest.$ac_ext <<_ACEOF
  10050. /* end confdefs.h. */
  10051. #include <pth.h>
  10052. int
  10053. main ()
  10054. {
  10055. pth_self();
  10056. ;
  10057. return 0;
  10058. }
  10059. _ACEOF
  10060. rm -f conftest.$ac_objext conftest$ac_exeext
  10061. if { (ac_try="$ac_link"
  10062. case "(($ac_try" in
  10063. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10064. *) ac_try_echo=$ac_try;;
  10065. esac
  10066. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10067. (eval "$ac_link") 2>conftest.er1
  10068. ac_status=$?
  10069. grep -v '^ *+' conftest.er1 >conftest.err
  10070. rm -f conftest.er1
  10071. cat conftest.err >&5
  10072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10073. (exit $ac_status); } && {
  10074. test -z "$ac_cxx_werror_flag" ||
  10075. test ! -s conftest.err
  10076. } && test -s conftest$ac_exeext &&
  10077. $as_test_x conftest$ac_exeext; then
  10078. gl_have_pth=yes
  10079. else
  10080. echo "$as_me: failed program was:" >&5
  10081. sed 's/^/| /' conftest.$ac_ext >&5
  10082. fi
  10083. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10084. conftest$ac_exeext conftest.$ac_ext
  10085. LIBS="$gl_save_LIBS"
  10086. if test -n "$gl_have_pth"; then
  10087. gl_threads_api=pth
  10088. LIBTHREAD="$LIBPTH"
  10089. LTLIBTHREAD="$LTLIBPTH"
  10090. LIBMULTITHREAD="$LIBTHREAD"
  10091. LTLIBMULTITHREAD="$LTLIBTHREAD"
  10092. cat >>confdefs.h <<\_ACEOF
  10093. #define USE_PTH_THREADS 1
  10094. _ACEOF
  10095. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  10096. if test $gl_have_weak = yes; then
  10097. cat >>confdefs.h <<\_ACEOF
  10098. #define USE_PTH_THREADS_WEAK 1
  10099. _ACEOF
  10100. LIBTHREAD=
  10101. LTLIBTHREAD=
  10102. fi
  10103. fi
  10104. else
  10105. CPPFLAGS="$gl_save_CPPFLAGS"
  10106. fi
  10107. fi
  10108. if test -z "$gl_have_pthread"; then
  10109. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  10110. if { case "$host_os" in
  10111. mingw*) true;;
  10112. *) false;;
  10113. esac
  10114. }; then
  10115. gl_threads_api=win32
  10116. cat >>confdefs.h <<\_ACEOF
  10117. #define USE_WIN32_THREADS 1
  10118. _ACEOF
  10119. fi
  10120. fi
  10121. fi
  10122. fi
  10123. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  10124. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  10125. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  10126. echo "${ECHO_T}$gl_threads_api" >&6; }
  10127. use_additional=yes
  10128. acl_save_prefix="$prefix"
  10129. prefix="$acl_final_prefix"
  10130. acl_save_exec_prefix="$exec_prefix"
  10131. exec_prefix="$acl_final_exec_prefix"
  10132. eval additional_includedir=\"$includedir\"
  10133. eval additional_libdir=\"$libdir\"
  10134. exec_prefix="$acl_save_exec_prefix"
  10135. prefix="$acl_save_prefix"
  10136. # Check whether --with-libiconv-prefix was given.
  10137. if test "${with_libiconv_prefix+set}" = set; then
  10138. withval=$with_libiconv_prefix;
  10139. if test "X$withval" = "Xno"; then
  10140. use_additional=no
  10141. else
  10142. if test "X$withval" = "X"; then
  10143. acl_save_prefix="$prefix"
  10144. prefix="$acl_final_prefix"
  10145. acl_save_exec_prefix="$exec_prefix"
  10146. exec_prefix="$acl_final_exec_prefix"
  10147. eval additional_includedir=\"$includedir\"
  10148. eval additional_libdir=\"$libdir\"
  10149. exec_prefix="$acl_save_exec_prefix"
  10150. prefix="$acl_save_prefix"
  10151. else
  10152. additional_includedir="$withval/include"
  10153. additional_libdir="$withval/$acl_libdirstem"
  10154. fi
  10155. fi
  10156. fi
  10157. LIBICONV=
  10158. LTLIBICONV=
  10159. INCICONV=
  10160. LIBICONV_PREFIX=
  10161. rpathdirs=
  10162. ltrpathdirs=
  10163. names_already_handled=
  10164. names_next_round='iconv '
  10165. while test -n "$names_next_round"; do
  10166. names_this_round="$names_next_round"
  10167. names_next_round=
  10168. for name in $names_this_round; do
  10169. already_handled=
  10170. for n in $names_already_handled; do
  10171. if test "$n" = "$name"; then
  10172. already_handled=yes
  10173. break
  10174. fi
  10175. done
  10176. if test -z "$already_handled"; then
  10177. names_already_handled="$names_already_handled $name"
  10178. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  10179. eval value=\"\$HAVE_LIB$uppername\"
  10180. if test -n "$value"; then
  10181. if test "$value" = yes; then
  10182. eval value=\"\$LIB$uppername\"
  10183. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  10184. eval value=\"\$LTLIB$uppername\"
  10185. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  10186. else
  10187. :
  10188. fi
  10189. else
  10190. found_dir=
  10191. found_la=
  10192. found_so=
  10193. found_a=
  10194. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  10195. if test -n "$acl_shlibext"; then
  10196. shrext=".$acl_shlibext" # typically: shrext=.so
  10197. else
  10198. shrext=
  10199. fi
  10200. if test $use_additional = yes; then
  10201. dir="$additional_libdir"
  10202. if test -n "$acl_shlibext"; then
  10203. if test -f "$dir/$libname$shrext"; then
  10204. found_dir="$dir"
  10205. found_so="$dir/$libname$shrext"
  10206. else
  10207. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  10208. ver=`(cd "$dir" && \
  10209. for f in "$libname$shrext".*; do echo "$f"; done \
  10210. | sed -e "s,^$libname$shrext\\\\.,," \
  10211. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  10212. | sed 1q ) 2>/dev/null`
  10213. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  10214. found_dir="$dir"
  10215. found_so="$dir/$libname$shrext.$ver"
  10216. fi
  10217. else
  10218. eval library_names=\"$acl_library_names_spec\"
  10219. for f in $library_names; do
  10220. if test -f "$dir/$f"; then
  10221. found_dir="$dir"
  10222. found_so="$dir/$f"
  10223. break
  10224. fi
  10225. done
  10226. fi
  10227. fi
  10228. fi
  10229. if test "X$found_dir" = "X"; then
  10230. if test -f "$dir/$libname.$acl_libext"; then
  10231. found_dir="$dir"
  10232. found_a="$dir/$libname.$acl_libext"
  10233. fi
  10234. fi
  10235. if test "X$found_dir" != "X"; then
  10236. if test -f "$dir/$libname.la"; then
  10237. found_la="$dir/$libname.la"
  10238. fi
  10239. fi
  10240. fi
  10241. if test "X$found_dir" = "X"; then
  10242. for x in $LDFLAGS $LTLIBICONV; do
  10243. acl_save_prefix="$prefix"
  10244. prefix="$acl_final_prefix"
  10245. acl_save_exec_prefix="$exec_prefix"
  10246. exec_prefix="$acl_final_exec_prefix"
  10247. eval x=\"$x\"
  10248. exec_prefix="$acl_save_exec_prefix"
  10249. prefix="$acl_save_prefix"
  10250. case "$x" in
  10251. -L*)
  10252. dir=`echo "X$x" | sed -e 's/^X-L//'`
  10253. if test -n "$acl_shlibext"; then
  10254. if test -f "$dir/$libname$shrext"; then
  10255. found_dir="$dir"
  10256. found_so="$dir/$libname$shrext"
  10257. else
  10258. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  10259. ver=`(cd "$dir" && \
  10260. for f in "$libname$shrext".*; do echo "$f"; done \
  10261. | sed -e "s,^$libname$shrext\\\\.,," \
  10262. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  10263. | sed 1q ) 2>/dev/null`
  10264. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  10265. found_dir="$dir"
  10266. found_so="$dir/$libname$shrext.$ver"
  10267. fi
  10268. else
  10269. eval library_names=\"$acl_library_names_spec\"
  10270. for f in $library_names; do
  10271. if test -f "$dir/$f"; then
  10272. found_dir="$dir"
  10273. found_so="$dir/$f"
  10274. break
  10275. fi
  10276. done
  10277. fi
  10278. fi
  10279. fi
  10280. if test "X$found_dir" = "X"; then
  10281. if test -f "$dir/$libname.$acl_libext"; then
  10282. found_dir="$dir"
  10283. found_a="$dir/$libname.$acl_libext"
  10284. fi
  10285. fi
  10286. if test "X$found_dir" != "X"; then
  10287. if test -f "$dir/$libname.la"; then
  10288. found_la="$dir/$libname.la"
  10289. fi
  10290. fi
  10291. ;;
  10292. esac
  10293. if test "X$found_dir" != "X"; then
  10294. break
  10295. fi
  10296. done
  10297. fi
  10298. if test "X$found_dir" != "X"; then
  10299. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  10300. if test "X$found_so" != "X"; then
  10301. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  10302. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  10303. else
  10304. haveit=
  10305. for x in $ltrpathdirs; do
  10306. if test "X$x" = "X$found_dir"; then
  10307. haveit=yes
  10308. break
  10309. fi
  10310. done
  10311. if test -z "$haveit"; then
  10312. ltrpathdirs="$ltrpathdirs $found_dir"
  10313. fi
  10314. if test "$acl_hardcode_direct" = yes; then
  10315. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  10316. else
  10317. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  10318. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  10319. haveit=
  10320. for x in $rpathdirs; do
  10321. if test "X$x" = "X$found_dir"; then
  10322. haveit=yes
  10323. break
  10324. fi
  10325. done
  10326. if test -z "$haveit"; then
  10327. rpathdirs="$rpathdirs $found_dir"
  10328. fi
  10329. else
  10330. haveit=
  10331. for x in $LDFLAGS $LIBICONV; do
  10332. acl_save_prefix="$prefix"
  10333. prefix="$acl_final_prefix"
  10334. acl_save_exec_prefix="$exec_prefix"
  10335. exec_prefix="$acl_final_exec_prefix"
  10336. eval x=\"$x\"
  10337. exec_prefix="$acl_save_exec_prefix"
  10338. prefix="$acl_save_prefix"
  10339. if test "X$x" = "X-L$found_dir"; then
  10340. haveit=yes
  10341. break
  10342. fi
  10343. done
  10344. if test -z "$haveit"; then
  10345. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  10346. fi
  10347. if test "$acl_hardcode_minus_L" != no; then
  10348. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  10349. else
  10350. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  10351. fi
  10352. fi
  10353. fi
  10354. fi
  10355. else
  10356. if test "X$found_a" != "X"; then
  10357. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  10358. else
  10359. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  10360. fi
  10361. fi
  10362. additional_includedir=
  10363. case "$found_dir" in
  10364. */$acl_libdirstem | */$acl_libdirstem/)
  10365. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  10366. LIBICONV_PREFIX="$basedir"
  10367. additional_includedir="$basedir/include"
  10368. ;;
  10369. esac
  10370. if test "X$additional_includedir" != "X"; then
  10371. if test "X$additional_includedir" != "X/usr/include"; then
  10372. haveit=
  10373. if test "X$additional_includedir" = "X/usr/local/include"; then
  10374. if test -n "$GCC"; then
  10375. case $host_os in
  10376. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  10377. esac
  10378. fi
  10379. fi
  10380. if test -z "$haveit"; then
  10381. for x in $CPPFLAGS $INCICONV; do
  10382. acl_save_prefix="$prefix"
  10383. prefix="$acl_final_prefix"
  10384. acl_save_exec_prefix="$exec_prefix"
  10385. exec_prefix="$acl_final_exec_prefix"
  10386. eval x=\"$x\"
  10387. exec_prefix="$acl_save_exec_prefix"
  10388. prefix="$acl_save_prefix"
  10389. if test "X$x" = "X-I$additional_includedir"; then
  10390. haveit=yes
  10391. break
  10392. fi
  10393. done
  10394. if test -z "$haveit"; then
  10395. if test -d "$additional_includedir"; then
  10396. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  10397. fi
  10398. fi
  10399. fi
  10400. fi
  10401. fi
  10402. if test -n "$found_la"; then
  10403. save_libdir="$libdir"
  10404. case "$found_la" in
  10405. */* | *\\*) . "$found_la" ;;
  10406. *) . "./$found_la" ;;
  10407. esac
  10408. libdir="$save_libdir"
  10409. for dep in $dependency_libs; do
  10410. case "$dep" in
  10411. -L*)
  10412. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  10413. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  10414. haveit=
  10415. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  10416. if test -n "$GCC"; then
  10417. case $host_os in
  10418. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  10419. esac
  10420. fi
  10421. fi
  10422. if test -z "$haveit"; then
  10423. haveit=
  10424. for x in $LDFLAGS $LIBICONV; do
  10425. acl_save_prefix="$prefix"
  10426. prefix="$acl_final_prefix"
  10427. acl_save_exec_prefix="$exec_prefix"
  10428. exec_prefix="$acl_final_exec_prefix"
  10429. eval x=\"$x\"
  10430. exec_prefix="$acl_save_exec_prefix"
  10431. prefix="$acl_save_prefix"
  10432. if test "X$x" = "X-L$additional_libdir"; then
  10433. haveit=yes
  10434. break
  10435. fi
  10436. done
  10437. if test -z "$haveit"; then
  10438. if test -d "$additional_libdir"; then
  10439. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  10440. fi
  10441. fi
  10442. haveit=
  10443. for x in $LDFLAGS $LTLIBICONV; do
  10444. acl_save_prefix="$prefix"
  10445. prefix="$acl_final_prefix"
  10446. acl_save_exec_prefix="$exec_prefix"
  10447. exec_prefix="$acl_final_exec_prefix"
  10448. eval x=\"$x\"
  10449. exec_prefix="$acl_save_exec_prefix"
  10450. prefix="$acl_save_prefix"
  10451. if test "X$x" = "X-L$additional_libdir"; then
  10452. haveit=yes
  10453. break
  10454. fi
  10455. done
  10456. if test -z "$haveit"; then
  10457. if test -d "$additional_libdir"; then
  10458. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  10459. fi
  10460. fi
  10461. fi
  10462. fi
  10463. ;;
  10464. -R*)
  10465. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  10466. if test "$enable_rpath" != no; then
  10467. haveit=
  10468. for x in $rpathdirs; do
  10469. if test "X$x" = "X$dir"; then
  10470. haveit=yes
  10471. break
  10472. fi
  10473. done
  10474. if test -z "$haveit"; then
  10475. rpathdirs="$rpathdirs $dir"
  10476. fi
  10477. haveit=
  10478. for x in $ltrpathdirs; do
  10479. if test "X$x" = "X$dir"; then
  10480. haveit=yes
  10481. break
  10482. fi
  10483. done
  10484. if test -z "$haveit"; then
  10485. ltrpathdirs="$ltrpathdirs $dir"
  10486. fi
  10487. fi
  10488. ;;
  10489. -l*)
  10490. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  10491. ;;
  10492. *.la)
  10493. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  10494. ;;
  10495. *)
  10496. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  10497. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  10498. ;;
  10499. esac
  10500. done
  10501. fi
  10502. else
  10503. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  10504. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  10505. fi
  10506. fi
  10507. fi
  10508. done
  10509. done
  10510. if test "X$rpathdirs" != "X"; then
  10511. if test -n "$acl_hardcode_libdir_separator"; then
  10512. alldirs=
  10513. for found_dir in $rpathdirs; do
  10514. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  10515. done
  10516. acl_save_libdir="$libdir"
  10517. libdir="$alldirs"
  10518. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10519. libdir="$acl_save_libdir"
  10520. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10521. else
  10522. for found_dir in $rpathdirs; do
  10523. acl_save_libdir="$libdir"
  10524. libdir="$found_dir"
  10525. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10526. libdir="$acl_save_libdir"
  10527. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10528. done
  10529. fi
  10530. fi
  10531. if test "X$ltrpathdirs" != "X"; then
  10532. for found_dir in $ltrpathdirs; do
  10533. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  10534. done
  10535. fi
  10536. cat >conftest.$ac_ext <<_ACEOF
  10537. /* confdefs.h. */
  10538. _ACEOF
  10539. cat confdefs.h >>conftest.$ac_ext
  10540. cat >>conftest.$ac_ext <<_ACEOF
  10541. /* end confdefs.h. */
  10542. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  10543. int
  10544. main ()
  10545. {
  10546. ;
  10547. return 0;
  10548. }
  10549. _ACEOF
  10550. rm -f conftest.$ac_objext conftest$ac_exeext
  10551. if { (ac_try="$ac_link"
  10552. case "(($ac_try" in
  10553. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10554. *) ac_try_echo=$ac_try;;
  10555. esac
  10556. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10557. (eval "$ac_link") 2>conftest.er1
  10558. ac_status=$?
  10559. grep -v '^ *+' conftest.er1 >conftest.err
  10560. rm -f conftest.er1
  10561. cat conftest.err >&5
  10562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10563. (exit $ac_status); } && {
  10564. test -z "$ac_cxx_werror_flag" ||
  10565. test ! -s conftest.err
  10566. } && test -s conftest$ac_exeext &&
  10567. $as_test_x conftest$ac_exeext; then
  10568. cat >>confdefs.h <<\_ACEOF
  10569. #define HAVE_BUILTIN_EXPECT 1
  10570. _ACEOF
  10571. else
  10572. echo "$as_me: failed program was:" >&5
  10573. sed 's/^/| /' conftest.$ac_ext >&5
  10574. fi
  10575. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10576. conftest$ac_exeext conftest.$ac_ext
  10577. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  10578. do
  10579. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10580. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10581. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10582. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10583. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10584. echo $ECHO_N "(cached) $ECHO_C" >&6
  10585. fi
  10586. ac_res=`eval echo '${'$as_ac_Header'}'`
  10587. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10588. echo "${ECHO_T}$ac_res" >&6; }
  10589. else
  10590. # Is the header compilable?
  10591. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10592. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10593. cat >conftest.$ac_ext <<_ACEOF
  10594. /* confdefs.h. */
  10595. _ACEOF
  10596. cat confdefs.h >>conftest.$ac_ext
  10597. cat >>conftest.$ac_ext <<_ACEOF
  10598. /* end confdefs.h. */
  10599. $ac_includes_default
  10600. #include <$ac_header>
  10601. _ACEOF
  10602. rm -f conftest.$ac_objext
  10603. if { (ac_try="$ac_compile"
  10604. case "(($ac_try" in
  10605. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10606. *) ac_try_echo=$ac_try;;
  10607. esac
  10608. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10609. (eval "$ac_compile") 2>conftest.er1
  10610. ac_status=$?
  10611. grep -v '^ *+' conftest.er1 >conftest.err
  10612. rm -f conftest.er1
  10613. cat conftest.err >&5
  10614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10615. (exit $ac_status); } && {
  10616. test -z "$ac_cxx_werror_flag" ||
  10617. test ! -s conftest.err
  10618. } && test -s conftest.$ac_objext; then
  10619. ac_header_compiler=yes
  10620. else
  10621. echo "$as_me: failed program was:" >&5
  10622. sed 's/^/| /' conftest.$ac_ext >&5
  10623. ac_header_compiler=no
  10624. fi
  10625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10626. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10627. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10628. # Is the header present?
  10629. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10630. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10631. cat >conftest.$ac_ext <<_ACEOF
  10632. /* confdefs.h. */
  10633. _ACEOF
  10634. cat confdefs.h >>conftest.$ac_ext
  10635. cat >>conftest.$ac_ext <<_ACEOF
  10636. /* end confdefs.h. */
  10637. #include <$ac_header>
  10638. _ACEOF
  10639. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10640. case "(($ac_try" in
  10641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10642. *) ac_try_echo=$ac_try;;
  10643. esac
  10644. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10645. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10646. ac_status=$?
  10647. grep -v '^ *+' conftest.er1 >conftest.err
  10648. rm -f conftest.er1
  10649. cat conftest.err >&5
  10650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10651. (exit $ac_status); } >/dev/null && {
  10652. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10653. test ! -s conftest.err
  10654. }; then
  10655. ac_header_preproc=yes
  10656. else
  10657. echo "$as_me: failed program was:" >&5
  10658. sed 's/^/| /' conftest.$ac_ext >&5
  10659. ac_header_preproc=no
  10660. fi
  10661. rm -f conftest.err conftest.$ac_ext
  10662. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10663. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10664. # So? What about this header?
  10665. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10666. yes:no: )
  10667. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10668. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10669. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10670. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10671. ac_header_preproc=yes
  10672. ;;
  10673. no:yes:* )
  10674. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10675. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10676. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10677. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10678. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10679. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10680. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10681. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10682. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10683. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10684. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10685. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10686. ( cat <<\_ASBOX
  10687. ## ----------------------------------------------- ##
  10688. ## Report this to t-tujikawa@users.sourceforge.net ##
  10689. ## ----------------------------------------------- ##
  10690. _ASBOX
  10691. ) | sed "s/^/$as_me: WARNING: /" >&2
  10692. ;;
  10693. esac
  10694. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10695. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10696. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10697. echo $ECHO_N "(cached) $ECHO_C" >&6
  10698. else
  10699. eval "$as_ac_Header=\$ac_header_preproc"
  10700. fi
  10701. ac_res=`eval echo '${'$as_ac_Header'}'`
  10702. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10703. echo "${ECHO_T}$ac_res" >&6; }
  10704. fi
  10705. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10706. cat >>confdefs.h <<_ACEOF
  10707. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10708. _ACEOF
  10709. fi
  10710. done
  10711. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  10712. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  10713. argz_next __fsetlocking
  10714. do
  10715. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10716. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10717. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10718. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10719. echo $ECHO_N "(cached) $ECHO_C" >&6
  10720. else
  10721. cat >conftest.$ac_ext <<_ACEOF
  10722. /* confdefs.h. */
  10723. _ACEOF
  10724. cat confdefs.h >>conftest.$ac_ext
  10725. cat >>conftest.$ac_ext <<_ACEOF
  10726. /* end confdefs.h. */
  10727. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10728. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10729. #define $ac_func innocuous_$ac_func
  10730. /* System header to define __stub macros and hopefully few prototypes,
  10731. which can conflict with char $ac_func (); below.
  10732. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10733. <limits.h> exists even on freestanding compilers. */
  10734. #ifdef __STDC__
  10735. # include <limits.h>
  10736. #else
  10737. # include <assert.h>
  10738. #endif
  10739. #undef $ac_func
  10740. /* Override any GCC internal prototype to avoid an error.
  10741. Use char because int might match the return type of a GCC
  10742. builtin and then its argument prototype would still apply. */
  10743. #ifdef __cplusplus
  10744. extern "C"
  10745. #endif
  10746. char $ac_func ();
  10747. /* The GNU C library defines this for functions which it implements
  10748. to always fail with ENOSYS. Some functions are actually named
  10749. something starting with __ and the normal name is an alias. */
  10750. #if defined __stub_$ac_func || defined __stub___$ac_func
  10751. choke me
  10752. #endif
  10753. int
  10754. main ()
  10755. {
  10756. return $ac_func ();
  10757. ;
  10758. return 0;
  10759. }
  10760. _ACEOF
  10761. rm -f conftest.$ac_objext conftest$ac_exeext
  10762. if { (ac_try="$ac_link"
  10763. case "(($ac_try" in
  10764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10765. *) ac_try_echo=$ac_try;;
  10766. esac
  10767. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10768. (eval "$ac_link") 2>conftest.er1
  10769. ac_status=$?
  10770. grep -v '^ *+' conftest.er1 >conftest.err
  10771. rm -f conftest.er1
  10772. cat conftest.err >&5
  10773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10774. (exit $ac_status); } && {
  10775. test -z "$ac_cxx_werror_flag" ||
  10776. test ! -s conftest.err
  10777. } && test -s conftest$ac_exeext &&
  10778. $as_test_x conftest$ac_exeext; then
  10779. eval "$as_ac_var=yes"
  10780. else
  10781. echo "$as_me: failed program was:" >&5
  10782. sed 's/^/| /' conftest.$ac_ext >&5
  10783. eval "$as_ac_var=no"
  10784. fi
  10785. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10786. conftest$ac_exeext conftest.$ac_ext
  10787. fi
  10788. ac_res=`eval echo '${'$as_ac_var'}'`
  10789. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10790. echo "${ECHO_T}$ac_res" >&6; }
  10791. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10792. cat >>confdefs.h <<_ACEOF
  10793. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10794. _ACEOF
  10795. fi
  10796. done
  10797. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  10798. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  10799. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  10800. echo $ECHO_N "(cached) $ECHO_C" >&6
  10801. else
  10802. cat >conftest.$ac_ext <<_ACEOF
  10803. /* confdefs.h. */
  10804. _ACEOF
  10805. cat confdefs.h >>conftest.$ac_ext
  10806. cat >>conftest.$ac_ext <<_ACEOF
  10807. /* end confdefs.h. */
  10808. #include <stdio.h>
  10809. int
  10810. main ()
  10811. {
  10812. #ifndef feof_unlocked
  10813. char *p = (char *) feof_unlocked;
  10814. #endif
  10815. ;
  10816. return 0;
  10817. }
  10818. _ACEOF
  10819. rm -f conftest.$ac_objext
  10820. if { (ac_try="$ac_compile"
  10821. case "(($ac_try" in
  10822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10823. *) ac_try_echo=$ac_try;;
  10824. esac
  10825. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10826. (eval "$ac_compile") 2>conftest.er1
  10827. ac_status=$?
  10828. grep -v '^ *+' conftest.er1 >conftest.err
  10829. rm -f conftest.er1
  10830. cat conftest.err >&5
  10831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10832. (exit $ac_status); } && {
  10833. test -z "$ac_cxx_werror_flag" ||
  10834. test ! -s conftest.err
  10835. } && test -s conftest.$ac_objext; then
  10836. ac_cv_have_decl_feof_unlocked=yes
  10837. else
  10838. echo "$as_me: failed program was:" >&5
  10839. sed 's/^/| /' conftest.$ac_ext >&5
  10840. ac_cv_have_decl_feof_unlocked=no
  10841. fi
  10842. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10843. fi
  10844. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  10845. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  10846. if test $ac_cv_have_decl_feof_unlocked = yes; then
  10847. gt_value=1
  10848. else
  10849. gt_value=0
  10850. fi
  10851. cat >>confdefs.h <<_ACEOF
  10852. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  10853. _ACEOF
  10854. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  10855. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  10856. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  10857. echo $ECHO_N "(cached) $ECHO_C" >&6
  10858. else
  10859. cat >conftest.$ac_ext <<_ACEOF
  10860. /* confdefs.h. */
  10861. _ACEOF
  10862. cat confdefs.h >>conftest.$ac_ext
  10863. cat >>conftest.$ac_ext <<_ACEOF
  10864. /* end confdefs.h. */
  10865. #include <stdio.h>
  10866. int
  10867. main ()
  10868. {
  10869. #ifndef fgets_unlocked
  10870. char *p = (char *) fgets_unlocked;
  10871. #endif
  10872. ;
  10873. return 0;
  10874. }
  10875. _ACEOF
  10876. rm -f conftest.$ac_objext
  10877. if { (ac_try="$ac_compile"
  10878. case "(($ac_try" in
  10879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10880. *) ac_try_echo=$ac_try;;
  10881. esac
  10882. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10883. (eval "$ac_compile") 2>conftest.er1
  10884. ac_status=$?
  10885. grep -v '^ *+' conftest.er1 >conftest.err
  10886. rm -f conftest.er1
  10887. cat conftest.err >&5
  10888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10889. (exit $ac_status); } && {
  10890. test -z "$ac_cxx_werror_flag" ||
  10891. test ! -s conftest.err
  10892. } && test -s conftest.$ac_objext; then
  10893. ac_cv_have_decl_fgets_unlocked=yes
  10894. else
  10895. echo "$as_me: failed program was:" >&5
  10896. sed 's/^/| /' conftest.$ac_ext >&5
  10897. ac_cv_have_decl_fgets_unlocked=no
  10898. fi
  10899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10900. fi
  10901. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  10902. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  10903. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10904. gt_value=1
  10905. else
  10906. gt_value=0
  10907. fi
  10908. cat >>confdefs.h <<_ACEOF
  10909. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10910. _ACEOF
  10911. am_save_CPPFLAGS="$CPPFLAGS"
  10912. for element in $INCICONV; do
  10913. haveit=
  10914. for x in $CPPFLAGS; do
  10915. acl_save_prefix="$prefix"
  10916. prefix="$acl_final_prefix"
  10917. acl_save_exec_prefix="$exec_prefix"
  10918. exec_prefix="$acl_final_exec_prefix"
  10919. eval x=\"$x\"
  10920. exec_prefix="$acl_save_exec_prefix"
  10921. prefix="$acl_save_prefix"
  10922. if test "X$x" = "X$element"; then
  10923. haveit=yes
  10924. break
  10925. fi
  10926. done
  10927. if test -z "$haveit"; then
  10928. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10929. fi
  10930. done
  10931. { echo "$as_me:$LINENO: checking for iconv" >&5
  10932. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  10933. if test "${am_cv_func_iconv+set}" = set; then
  10934. echo $ECHO_N "(cached) $ECHO_C" >&6
  10935. else
  10936. am_cv_func_iconv="no, consider installing GNU libiconv"
  10937. am_cv_lib_iconv=no
  10938. cat >conftest.$ac_ext <<_ACEOF
  10939. /* confdefs.h. */
  10940. _ACEOF
  10941. cat confdefs.h >>conftest.$ac_ext
  10942. cat >>conftest.$ac_ext <<_ACEOF
  10943. /* end confdefs.h. */
  10944. #include <stdlib.h>
  10945. #include <iconv.h>
  10946. int
  10947. main ()
  10948. {
  10949. iconv_t cd = iconv_open("","");
  10950. iconv(cd,NULL,NULL,NULL,NULL);
  10951. iconv_close(cd);
  10952. ;
  10953. return 0;
  10954. }
  10955. _ACEOF
  10956. rm -f conftest.$ac_objext conftest$ac_exeext
  10957. if { (ac_try="$ac_link"
  10958. case "(($ac_try" in
  10959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10960. *) ac_try_echo=$ac_try;;
  10961. esac
  10962. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10963. (eval "$ac_link") 2>conftest.er1
  10964. ac_status=$?
  10965. grep -v '^ *+' conftest.er1 >conftest.err
  10966. rm -f conftest.er1
  10967. cat conftest.err >&5
  10968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10969. (exit $ac_status); } && {
  10970. test -z "$ac_cxx_werror_flag" ||
  10971. test ! -s conftest.err
  10972. } && test -s conftest$ac_exeext &&
  10973. $as_test_x conftest$ac_exeext; then
  10974. am_cv_func_iconv=yes
  10975. else
  10976. echo "$as_me: failed program was:" >&5
  10977. sed 's/^/| /' conftest.$ac_ext >&5
  10978. fi
  10979. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10980. conftest$ac_exeext conftest.$ac_ext
  10981. if test "$am_cv_func_iconv" != yes; then
  10982. am_save_LIBS="$LIBS"
  10983. LIBS="$LIBS $LIBICONV"
  10984. cat >conftest.$ac_ext <<_ACEOF
  10985. /* confdefs.h. */
  10986. _ACEOF
  10987. cat confdefs.h >>conftest.$ac_ext
  10988. cat >>conftest.$ac_ext <<_ACEOF
  10989. /* end confdefs.h. */
  10990. #include <stdlib.h>
  10991. #include <iconv.h>
  10992. int
  10993. main ()
  10994. {
  10995. iconv_t cd = iconv_open("","");
  10996. iconv(cd,NULL,NULL,NULL,NULL);
  10997. iconv_close(cd);
  10998. ;
  10999. return 0;
  11000. }
  11001. _ACEOF
  11002. rm -f conftest.$ac_objext conftest$ac_exeext
  11003. if { (ac_try="$ac_link"
  11004. case "(($ac_try" in
  11005. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11006. *) ac_try_echo=$ac_try;;
  11007. esac
  11008. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11009. (eval "$ac_link") 2>conftest.er1
  11010. ac_status=$?
  11011. grep -v '^ *+' conftest.er1 >conftest.err
  11012. rm -f conftest.er1
  11013. cat conftest.err >&5
  11014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11015. (exit $ac_status); } && {
  11016. test -z "$ac_cxx_werror_flag" ||
  11017. test ! -s conftest.err
  11018. } && test -s conftest$ac_exeext &&
  11019. $as_test_x conftest$ac_exeext; then
  11020. am_cv_lib_iconv=yes
  11021. am_cv_func_iconv=yes
  11022. else
  11023. echo "$as_me: failed program was:" >&5
  11024. sed 's/^/| /' conftest.$ac_ext >&5
  11025. fi
  11026. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11027. conftest$ac_exeext conftest.$ac_ext
  11028. LIBS="$am_save_LIBS"
  11029. fi
  11030. fi
  11031. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  11032. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  11033. if test "$am_cv_func_iconv" = yes; then
  11034. { echo "$as_me:$LINENO: checking for working iconv" >&5
  11035. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  11036. if test "${am_cv_func_iconv_works+set}" = set; then
  11037. echo $ECHO_N "(cached) $ECHO_C" >&6
  11038. else
  11039. am_save_LIBS="$LIBS"
  11040. if test $am_cv_lib_iconv = yes; then
  11041. LIBS="$LIBS $LIBICONV"
  11042. fi
  11043. if test "$cross_compiling" = yes; then
  11044. case "$host_os" in
  11045. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  11046. *) am_cv_func_iconv_works="guessing yes" ;;
  11047. esac
  11048. else
  11049. cat >conftest.$ac_ext <<_ACEOF
  11050. /* confdefs.h. */
  11051. _ACEOF
  11052. cat confdefs.h >>conftest.$ac_ext
  11053. cat >>conftest.$ac_ext <<_ACEOF
  11054. /* end confdefs.h. */
  11055. #include <iconv.h>
  11056. #include <string.h>
  11057. int main ()
  11058. {
  11059. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  11060. returns. */
  11061. {
  11062. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  11063. if (cd_utf8_to_88591 != (iconv_t)(-1))
  11064. {
  11065. static const char input[] = "\342\202\254"; /* EURO SIGN */
  11066. char buf[10];
  11067. const char *inptr = input;
  11068. size_t inbytesleft = strlen (input);
  11069. char *outptr = buf;
  11070. size_t outbytesleft = sizeof (buf);
  11071. size_t res = iconv (cd_utf8_to_88591,
  11072. (char **) &inptr, &inbytesleft,
  11073. &outptr, &outbytesleft);
  11074. if (res == 0)
  11075. return 1;
  11076. }
  11077. }
  11078. #if 0 /* This bug could be worked around by the caller. */
  11079. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  11080. {
  11081. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  11082. if (cd_88591_to_utf8 != (iconv_t)(-1))
  11083. {
  11084. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  11085. char buf[50];
  11086. const char *inptr = input;
  11087. size_t inbytesleft = strlen (input);
  11088. char *outptr = buf;
  11089. size_t outbytesleft = sizeof (buf);
  11090. size_t res = iconv (cd_88591_to_utf8,
  11091. (char **) &inptr, &inbytesleft,
  11092. &outptr, &outbytesleft);
  11093. if ((int)res > 0)
  11094. return 1;
  11095. }
  11096. }
  11097. #endif
  11098. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  11099. provided. */
  11100. if (/* Try standardized names. */
  11101. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  11102. /* Try IRIX, OSF/1 names. */
  11103. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  11104. /* Try AIX names. */
  11105. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  11106. /* Try HP-UX names. */
  11107. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  11108. return 1;
  11109. return 0;
  11110. }
  11111. _ACEOF
  11112. rm -f conftest$ac_exeext
  11113. if { (ac_try="$ac_link"
  11114. case "(($ac_try" in
  11115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11116. *) ac_try_echo=$ac_try;;
  11117. esac
  11118. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11119. (eval "$ac_link") 2>&5
  11120. ac_status=$?
  11121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11122. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11123. { (case "(($ac_try" in
  11124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11125. *) ac_try_echo=$ac_try;;
  11126. esac
  11127. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11128. (eval "$ac_try") 2>&5
  11129. ac_status=$?
  11130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11131. (exit $ac_status); }; }; then
  11132. am_cv_func_iconv_works=yes
  11133. else
  11134. echo "$as_me: program exited with status $ac_status" >&5
  11135. echo "$as_me: failed program was:" >&5
  11136. sed 's/^/| /' conftest.$ac_ext >&5
  11137. ( exit $ac_status )
  11138. am_cv_func_iconv_works=no
  11139. fi
  11140. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11141. fi
  11142. LIBS="$am_save_LIBS"
  11143. fi
  11144. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  11145. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  11146. case "$am_cv_func_iconv_works" in
  11147. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  11148. *) am_func_iconv=yes ;;
  11149. esac
  11150. else
  11151. am_func_iconv=no am_cv_lib_iconv=no
  11152. fi
  11153. if test "$am_func_iconv" = yes; then
  11154. cat >>confdefs.h <<\_ACEOF
  11155. #define HAVE_ICONV 1
  11156. _ACEOF
  11157. fi
  11158. if test "$am_cv_lib_iconv" = yes; then
  11159. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  11160. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  11161. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  11162. echo "${ECHO_T}$LIBICONV" >&6; }
  11163. else
  11164. CPPFLAGS="$am_save_CPPFLAGS"
  11165. LIBICONV=
  11166. LTLIBICONV=
  11167. fi
  11168. if test "$am_cv_func_iconv" = yes; then
  11169. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  11170. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  11171. if test "${am_cv_proto_iconv+set}" = set; then
  11172. echo $ECHO_N "(cached) $ECHO_C" >&6
  11173. else
  11174. cat >conftest.$ac_ext <<_ACEOF
  11175. /* confdefs.h. */
  11176. _ACEOF
  11177. cat confdefs.h >>conftest.$ac_ext
  11178. cat >>conftest.$ac_ext <<_ACEOF
  11179. /* end confdefs.h. */
  11180. #include <stdlib.h>
  11181. #include <iconv.h>
  11182. extern
  11183. #ifdef __cplusplus
  11184. "C"
  11185. #endif
  11186. #if defined(__STDC__) || defined(__cplusplus)
  11187. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  11188. #else
  11189. size_t iconv();
  11190. #endif
  11191. int
  11192. main ()
  11193. {
  11194. ;
  11195. return 0;
  11196. }
  11197. _ACEOF
  11198. rm -f conftest.$ac_objext
  11199. if { (ac_try="$ac_compile"
  11200. case "(($ac_try" in
  11201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11202. *) ac_try_echo=$ac_try;;
  11203. esac
  11204. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11205. (eval "$ac_compile") 2>conftest.er1
  11206. ac_status=$?
  11207. grep -v '^ *+' conftest.er1 >conftest.err
  11208. rm -f conftest.er1
  11209. cat conftest.err >&5
  11210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11211. (exit $ac_status); } && {
  11212. test -z "$ac_cxx_werror_flag" ||
  11213. test ! -s conftest.err
  11214. } && test -s conftest.$ac_objext; then
  11215. am_cv_proto_iconv_arg1=""
  11216. else
  11217. echo "$as_me: failed program was:" >&5
  11218. sed 's/^/| /' conftest.$ac_ext >&5
  11219. am_cv_proto_iconv_arg1="const"
  11220. fi
  11221. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11222. 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);"
  11223. fi
  11224. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  11225. { echo "$as_me:$LINENO: result: ${ac_t:-
  11226. }$am_cv_proto_iconv" >&5
  11227. echo "${ECHO_T}${ac_t:-
  11228. }$am_cv_proto_iconv" >&6; }
  11229. cat >>confdefs.h <<_ACEOF
  11230. #define ICONV_CONST $am_cv_proto_iconv_arg1
  11231. _ACEOF
  11232. fi
  11233. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  11234. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  11235. if test "${gt_cv_nl_locale_name+set}" = set; then
  11236. echo $ECHO_N "(cached) $ECHO_C" >&6
  11237. else
  11238. cat >conftest.$ac_ext <<_ACEOF
  11239. /* confdefs.h. */
  11240. _ACEOF
  11241. cat confdefs.h >>conftest.$ac_ext
  11242. cat >>conftest.$ac_ext <<_ACEOF
  11243. /* end confdefs.h. */
  11244. #include <langinfo.h>
  11245. #include <locale.h>
  11246. int
  11247. main ()
  11248. {
  11249. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  11250. return !cs;
  11251. ;
  11252. return 0;
  11253. }
  11254. _ACEOF
  11255. rm -f conftest.$ac_objext conftest$ac_exeext
  11256. if { (ac_try="$ac_link"
  11257. case "(($ac_try" in
  11258. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11259. *) ac_try_echo=$ac_try;;
  11260. esac
  11261. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11262. (eval "$ac_link") 2>conftest.er1
  11263. ac_status=$?
  11264. grep -v '^ *+' conftest.er1 >conftest.err
  11265. rm -f conftest.er1
  11266. cat conftest.err >&5
  11267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11268. (exit $ac_status); } && {
  11269. test -z "$ac_cxx_werror_flag" ||
  11270. test ! -s conftest.err
  11271. } && test -s conftest$ac_exeext &&
  11272. $as_test_x conftest$ac_exeext; then
  11273. gt_cv_nl_locale_name=yes
  11274. else
  11275. echo "$as_me: failed program was:" >&5
  11276. sed 's/^/| /' conftest.$ac_ext >&5
  11277. gt_cv_nl_locale_name=no
  11278. fi
  11279. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11280. conftest$ac_exeext conftest.$ac_ext
  11281. fi
  11282. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  11283. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  11284. if test $gt_cv_nl_locale_name = yes; then
  11285. cat >>confdefs.h <<\_ACEOF
  11286. #define HAVE_NL_LOCALE_NAME 1
  11287. _ACEOF
  11288. fi
  11289. for ac_prog in bison
  11290. do
  11291. # Extract the first word of "$ac_prog", so it can be a program name with args.
  11292. set dummy $ac_prog; ac_word=$2
  11293. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  11294. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  11295. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  11296. echo $ECHO_N "(cached) $ECHO_C" >&6
  11297. else
  11298. if test -n "$INTLBISON"; then
  11299. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  11300. else
  11301. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11302. for as_dir in $PATH
  11303. do
  11304. IFS=$as_save_IFS
  11305. test -z "$as_dir" && as_dir=.
  11306. for ac_exec_ext in '' $ac_executable_extensions; do
  11307. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11308. ac_cv_prog_INTLBISON="$ac_prog"
  11309. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11310. break 2
  11311. fi
  11312. done
  11313. done
  11314. IFS=$as_save_IFS
  11315. fi
  11316. fi
  11317. INTLBISON=$ac_cv_prog_INTLBISON
  11318. if test -n "$INTLBISON"; then
  11319. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  11320. echo "${ECHO_T}$INTLBISON" >&6; }
  11321. else
  11322. { echo "$as_me:$LINENO: result: no" >&5
  11323. echo "${ECHO_T}no" >&6; }
  11324. fi
  11325. test -n "$INTLBISON" && break
  11326. done
  11327. if test -z "$INTLBISON"; then
  11328. ac_verc_fail=yes
  11329. else
  11330. { echo "$as_me:$LINENO: checking version of bison" >&5
  11331. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  11332. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  11333. case $ac_prog_version in
  11334. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  11335. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  11336. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  11337. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  11338. esac
  11339. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  11340. echo "${ECHO_T}$ac_prog_version" >&6; }
  11341. fi
  11342. if test $ac_verc_fail = yes; then
  11343. INTLBISON=:
  11344. fi
  11345. { echo "$as_me:$LINENO: checking for long long int" >&5
  11346. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  11347. if test "${ac_cv_type_long_long_int+set}" = set; then
  11348. echo $ECHO_N "(cached) $ECHO_C" >&6
  11349. else
  11350. cat >conftest.$ac_ext <<_ACEOF
  11351. /* confdefs.h. */
  11352. _ACEOF
  11353. cat confdefs.h >>conftest.$ac_ext
  11354. cat >>conftest.$ac_ext <<_ACEOF
  11355. /* end confdefs.h. */
  11356. /* Test preprocessor. */
  11357. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11358. error in preprocessor;
  11359. #endif
  11360. #if ! (18446744073709551615ULL <= -1ull)
  11361. error in preprocessor;
  11362. #endif
  11363. /* Test literals. */
  11364. long long int ll = 9223372036854775807ll;
  11365. long long int nll = -9223372036854775807LL;
  11366. unsigned long long int ull = 18446744073709551615ULL;
  11367. /* Test constant expressions. */
  11368. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11369. ? 1 : -1)];
  11370. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  11371. ? 1 : -1)];
  11372. int i = 63;
  11373. int
  11374. main ()
  11375. {
  11376. /* Test availability of runtime routines for shift and division. */
  11377. long long int llmax = 9223372036854775807ll;
  11378. unsigned long long int ullmax = 18446744073709551615ull;
  11379. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  11380. | (llmax / ll) | (llmax % ll)
  11381. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  11382. | (ullmax / ull) | (ullmax % ull));
  11383. ;
  11384. return 0;
  11385. }
  11386. _ACEOF
  11387. rm -f conftest.$ac_objext conftest$ac_exeext
  11388. if { (ac_try="$ac_link"
  11389. case "(($ac_try" in
  11390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11391. *) ac_try_echo=$ac_try;;
  11392. esac
  11393. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11394. (eval "$ac_link") 2>conftest.er1
  11395. ac_status=$?
  11396. grep -v '^ *+' conftest.er1 >conftest.err
  11397. rm -f conftest.er1
  11398. cat conftest.err >&5
  11399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11400. (exit $ac_status); } && {
  11401. test -z "$ac_cxx_werror_flag" ||
  11402. test ! -s conftest.err
  11403. } && test -s conftest$ac_exeext &&
  11404. $as_test_x conftest$ac_exeext; then
  11405. if test "$cross_compiling" = yes; then
  11406. ac_cv_type_long_long_int=yes
  11407. else
  11408. cat >conftest.$ac_ext <<_ACEOF
  11409. /* confdefs.h. */
  11410. _ACEOF
  11411. cat confdefs.h >>conftest.$ac_ext
  11412. cat >>conftest.$ac_ext <<_ACEOF
  11413. /* end confdefs.h. */
  11414. #include <limits.h>
  11415. #ifndef LLONG_MAX
  11416. # define HALF \
  11417. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  11418. # define LLONG_MAX (HALF - 1 + HALF)
  11419. #endif
  11420. int
  11421. main ()
  11422. {
  11423. long long int n = 1;
  11424. int i;
  11425. for (i = 0; ; i++)
  11426. {
  11427. long long int m = n << i;
  11428. if (m >> i != n)
  11429. return 1;
  11430. if (LLONG_MAX / 2 < m)
  11431. break;
  11432. }
  11433. return 0;
  11434. ;
  11435. return 0;
  11436. }
  11437. _ACEOF
  11438. rm -f conftest$ac_exeext
  11439. if { (ac_try="$ac_link"
  11440. case "(($ac_try" in
  11441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11442. *) ac_try_echo=$ac_try;;
  11443. esac
  11444. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11445. (eval "$ac_link") 2>&5
  11446. ac_status=$?
  11447. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11448. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11449. { (case "(($ac_try" in
  11450. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11451. *) ac_try_echo=$ac_try;;
  11452. esac
  11453. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11454. (eval "$ac_try") 2>&5
  11455. ac_status=$?
  11456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11457. (exit $ac_status); }; }; then
  11458. ac_cv_type_long_long_int=yes
  11459. else
  11460. echo "$as_me: program exited with status $ac_status" >&5
  11461. echo "$as_me: failed program was:" >&5
  11462. sed 's/^/| /' conftest.$ac_ext >&5
  11463. ( exit $ac_status )
  11464. ac_cv_type_long_long_int=no
  11465. fi
  11466. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11467. fi
  11468. else
  11469. echo "$as_me: failed program was:" >&5
  11470. sed 's/^/| /' conftest.$ac_ext >&5
  11471. ac_cv_type_long_long_int=no
  11472. fi
  11473. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11474. conftest$ac_exeext conftest.$ac_ext
  11475. fi
  11476. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  11477. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  11478. if test $ac_cv_type_long_long_int = yes; then
  11479. cat >>confdefs.h <<\_ACEOF
  11480. #define HAVE_LONG_LONG_INT 1
  11481. _ACEOF
  11482. fi
  11483. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  11484. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  11485. if test "${gt_cv_c_wchar_t+set}" = set; then
  11486. echo $ECHO_N "(cached) $ECHO_C" >&6
  11487. else
  11488. cat >conftest.$ac_ext <<_ACEOF
  11489. /* confdefs.h. */
  11490. _ACEOF
  11491. cat confdefs.h >>conftest.$ac_ext
  11492. cat >>conftest.$ac_ext <<_ACEOF
  11493. /* end confdefs.h. */
  11494. #include <stddef.h>
  11495. wchar_t foo = (wchar_t)'\0';
  11496. int
  11497. main ()
  11498. {
  11499. ;
  11500. return 0;
  11501. }
  11502. _ACEOF
  11503. rm -f conftest.$ac_objext
  11504. if { (ac_try="$ac_compile"
  11505. case "(($ac_try" in
  11506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11507. *) ac_try_echo=$ac_try;;
  11508. esac
  11509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11510. (eval "$ac_compile") 2>conftest.er1
  11511. ac_status=$?
  11512. grep -v '^ *+' conftest.er1 >conftest.err
  11513. rm -f conftest.er1
  11514. cat conftest.err >&5
  11515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11516. (exit $ac_status); } && {
  11517. test -z "$ac_cxx_werror_flag" ||
  11518. test ! -s conftest.err
  11519. } && test -s conftest.$ac_objext; then
  11520. gt_cv_c_wchar_t=yes
  11521. else
  11522. echo "$as_me: failed program was:" >&5
  11523. sed 's/^/| /' conftest.$ac_ext >&5
  11524. gt_cv_c_wchar_t=no
  11525. fi
  11526. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11527. fi
  11528. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  11529. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  11530. if test $gt_cv_c_wchar_t = yes; then
  11531. cat >>confdefs.h <<\_ACEOF
  11532. #define HAVE_WCHAR_T 1
  11533. _ACEOF
  11534. fi
  11535. { echo "$as_me:$LINENO: checking for wint_t" >&5
  11536. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  11537. if test "${gt_cv_c_wint_t+set}" = set; then
  11538. echo $ECHO_N "(cached) $ECHO_C" >&6
  11539. else
  11540. cat >conftest.$ac_ext <<_ACEOF
  11541. /* confdefs.h. */
  11542. _ACEOF
  11543. cat confdefs.h >>conftest.$ac_ext
  11544. cat >>conftest.$ac_ext <<_ACEOF
  11545. /* end confdefs.h. */
  11546. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  11547. <wchar.h>.
  11548. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  11549. before <wchar.h>. */
  11550. #include <stddef.h>
  11551. #include <stdio.h>
  11552. #include <time.h>
  11553. #include <wchar.h>
  11554. wint_t foo = (wchar_t)'\0';
  11555. int
  11556. main ()
  11557. {
  11558. ;
  11559. return 0;
  11560. }
  11561. _ACEOF
  11562. rm -f conftest.$ac_objext
  11563. if { (ac_try="$ac_compile"
  11564. case "(($ac_try" in
  11565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11566. *) ac_try_echo=$ac_try;;
  11567. esac
  11568. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11569. (eval "$ac_compile") 2>conftest.er1
  11570. ac_status=$?
  11571. grep -v '^ *+' conftest.er1 >conftest.err
  11572. rm -f conftest.er1
  11573. cat conftest.err >&5
  11574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11575. (exit $ac_status); } && {
  11576. test -z "$ac_cxx_werror_flag" ||
  11577. test ! -s conftest.err
  11578. } && test -s conftest.$ac_objext; then
  11579. gt_cv_c_wint_t=yes
  11580. else
  11581. echo "$as_me: failed program was:" >&5
  11582. sed 's/^/| /' conftest.$ac_ext >&5
  11583. gt_cv_c_wint_t=no
  11584. fi
  11585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11586. fi
  11587. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  11588. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  11589. if test $gt_cv_c_wint_t = yes; then
  11590. cat >>confdefs.h <<\_ACEOF
  11591. #define HAVE_WINT_T 1
  11592. _ACEOF
  11593. fi
  11594. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  11595. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  11596. if test "${gt_cv_c_intmax_t+set}" = set; then
  11597. echo $ECHO_N "(cached) $ECHO_C" >&6
  11598. else
  11599. cat >conftest.$ac_ext <<_ACEOF
  11600. /* confdefs.h. */
  11601. _ACEOF
  11602. cat confdefs.h >>conftest.$ac_ext
  11603. cat >>conftest.$ac_ext <<_ACEOF
  11604. /* end confdefs.h. */
  11605. #include <stddef.h>
  11606. #include <stdlib.h>
  11607. #if HAVE_STDINT_H_WITH_UINTMAX
  11608. #include <stdint.h>
  11609. #endif
  11610. #if HAVE_INTTYPES_H_WITH_UINTMAX
  11611. #include <inttypes.h>
  11612. #endif
  11613. int
  11614. main ()
  11615. {
  11616. intmax_t x = -1;
  11617. return !x;
  11618. ;
  11619. return 0;
  11620. }
  11621. _ACEOF
  11622. rm -f conftest.$ac_objext
  11623. if { (ac_try="$ac_compile"
  11624. case "(($ac_try" in
  11625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11626. *) ac_try_echo=$ac_try;;
  11627. esac
  11628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11629. (eval "$ac_compile") 2>conftest.er1
  11630. ac_status=$?
  11631. grep -v '^ *+' conftest.er1 >conftest.err
  11632. rm -f conftest.er1
  11633. cat conftest.err >&5
  11634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11635. (exit $ac_status); } && {
  11636. test -z "$ac_cxx_werror_flag" ||
  11637. test ! -s conftest.err
  11638. } && test -s conftest.$ac_objext; then
  11639. gt_cv_c_intmax_t=yes
  11640. else
  11641. echo "$as_me: failed program was:" >&5
  11642. sed 's/^/| /' conftest.$ac_ext >&5
  11643. gt_cv_c_intmax_t=no
  11644. fi
  11645. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11646. fi
  11647. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  11648. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  11649. if test $gt_cv_c_intmax_t = yes; then
  11650. cat >>confdefs.h <<\_ACEOF
  11651. #define HAVE_INTMAX_T 1
  11652. _ACEOF
  11653. fi
  11654. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  11655. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  11656. if test "${gt_cv_func_printf_posix+set}" = set; then
  11657. echo $ECHO_N "(cached) $ECHO_C" >&6
  11658. else
  11659. if test "$cross_compiling" = yes; then
  11660. cat >conftest.$ac_ext <<_ACEOF
  11661. /* confdefs.h. */
  11662. _ACEOF
  11663. cat confdefs.h >>conftest.$ac_ext
  11664. cat >>conftest.$ac_ext <<_ACEOF
  11665. /* end confdefs.h. */
  11666. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  11667. notposix
  11668. #endif
  11669. _ACEOF
  11670. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11671. $EGREP "notposix" >/dev/null 2>&1; then
  11672. gt_cv_func_printf_posix="guessing no"
  11673. else
  11674. gt_cv_func_printf_posix="guessing yes"
  11675. fi
  11676. rm -f conftest*
  11677. else
  11678. cat >conftest.$ac_ext <<_ACEOF
  11679. /* confdefs.h. */
  11680. _ACEOF
  11681. cat confdefs.h >>conftest.$ac_ext
  11682. cat >>conftest.$ac_ext <<_ACEOF
  11683. /* end confdefs.h. */
  11684. #include <stdio.h>
  11685. #include <string.h>
  11686. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  11687. dollar expansion (possibly an autoconf bug). */
  11688. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  11689. static char buf[100];
  11690. int main ()
  11691. {
  11692. sprintf (buf, format, 33, 55);
  11693. return (strcmp (buf, "55 33") != 0);
  11694. }
  11695. _ACEOF
  11696. rm -f conftest$ac_exeext
  11697. if { (ac_try="$ac_link"
  11698. case "(($ac_try" in
  11699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11700. *) ac_try_echo=$ac_try;;
  11701. esac
  11702. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11703. (eval "$ac_link") 2>&5
  11704. ac_status=$?
  11705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11706. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11707. { (case "(($ac_try" in
  11708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11709. *) ac_try_echo=$ac_try;;
  11710. esac
  11711. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11712. (eval "$ac_try") 2>&5
  11713. ac_status=$?
  11714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11715. (exit $ac_status); }; }; then
  11716. gt_cv_func_printf_posix=yes
  11717. else
  11718. echo "$as_me: program exited with status $ac_status" >&5
  11719. echo "$as_me: failed program was:" >&5
  11720. sed 's/^/| /' conftest.$ac_ext >&5
  11721. ( exit $ac_status )
  11722. gt_cv_func_printf_posix=no
  11723. fi
  11724. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11725. fi
  11726. fi
  11727. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  11728. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  11729. case $gt_cv_func_printf_posix in
  11730. *yes)
  11731. cat >>confdefs.h <<\_ACEOF
  11732. #define HAVE_POSIX_PRINTF 1
  11733. _ACEOF
  11734. ;;
  11735. esac
  11736. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  11737. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  11738. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  11739. echo $ECHO_N "(cached) $ECHO_C" >&6
  11740. else
  11741. cat >conftest.$ac_ext <<_ACEOF
  11742. /* confdefs.h. */
  11743. _ACEOF
  11744. cat confdefs.h >>conftest.$ac_ext
  11745. cat >>conftest.$ac_ext <<_ACEOF
  11746. /* end confdefs.h. */
  11747. #include <features.h>
  11748. #ifdef __GNU_LIBRARY__
  11749. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  11750. Lucky GNU user
  11751. #endif
  11752. #endif
  11753. _ACEOF
  11754. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11755. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  11756. ac_cv_gnu_library_2_1=yes
  11757. else
  11758. ac_cv_gnu_library_2_1=no
  11759. fi
  11760. rm -f conftest*
  11761. fi
  11762. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  11763. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  11764. GLIBC21="$ac_cv_gnu_library_2_1"
  11765. for ac_header in stdint.h
  11766. do
  11767. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11768. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11769. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11770. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11771. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11772. echo $ECHO_N "(cached) $ECHO_C" >&6
  11773. fi
  11774. ac_res=`eval echo '${'$as_ac_Header'}'`
  11775. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11776. echo "${ECHO_T}$ac_res" >&6; }
  11777. else
  11778. # Is the header compilable?
  11779. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11780. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  11781. cat >conftest.$ac_ext <<_ACEOF
  11782. /* confdefs.h. */
  11783. _ACEOF
  11784. cat confdefs.h >>conftest.$ac_ext
  11785. cat >>conftest.$ac_ext <<_ACEOF
  11786. /* end confdefs.h. */
  11787. $ac_includes_default
  11788. #include <$ac_header>
  11789. _ACEOF
  11790. rm -f conftest.$ac_objext
  11791. if { (ac_try="$ac_compile"
  11792. case "(($ac_try" in
  11793. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11794. *) ac_try_echo=$ac_try;;
  11795. esac
  11796. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11797. (eval "$ac_compile") 2>conftest.er1
  11798. ac_status=$?
  11799. grep -v '^ *+' conftest.er1 >conftest.err
  11800. rm -f conftest.er1
  11801. cat conftest.err >&5
  11802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11803. (exit $ac_status); } && {
  11804. test -z "$ac_cxx_werror_flag" ||
  11805. test ! -s conftest.err
  11806. } && test -s conftest.$ac_objext; then
  11807. ac_header_compiler=yes
  11808. else
  11809. echo "$as_me: failed program was:" >&5
  11810. sed 's/^/| /' conftest.$ac_ext >&5
  11811. ac_header_compiler=no
  11812. fi
  11813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11814. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11815. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11816. # Is the header present?
  11817. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11818. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  11819. cat >conftest.$ac_ext <<_ACEOF
  11820. /* confdefs.h. */
  11821. _ACEOF
  11822. cat confdefs.h >>conftest.$ac_ext
  11823. cat >>conftest.$ac_ext <<_ACEOF
  11824. /* end confdefs.h. */
  11825. #include <$ac_header>
  11826. _ACEOF
  11827. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11828. case "(($ac_try" in
  11829. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11830. *) ac_try_echo=$ac_try;;
  11831. esac
  11832. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11833. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11834. ac_status=$?
  11835. grep -v '^ *+' conftest.er1 >conftest.err
  11836. rm -f conftest.er1
  11837. cat conftest.err >&5
  11838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11839. (exit $ac_status); } >/dev/null && {
  11840. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11841. test ! -s conftest.err
  11842. }; then
  11843. ac_header_preproc=yes
  11844. else
  11845. echo "$as_me: failed program was:" >&5
  11846. sed 's/^/| /' conftest.$ac_ext >&5
  11847. ac_header_preproc=no
  11848. fi
  11849. rm -f conftest.err conftest.$ac_ext
  11850. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11851. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11852. # So? What about this header?
  11853. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11854. yes:no: )
  11855. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11856. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11857. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11858. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11859. ac_header_preproc=yes
  11860. ;;
  11861. no:yes:* )
  11862. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11863. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11864. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11865. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11866. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11867. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11868. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11869. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11870. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11871. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11872. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11873. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11874. ( cat <<\_ASBOX
  11875. ## ----------------------------------------------- ##
  11876. ## Report this to t-tujikawa@users.sourceforge.net ##
  11877. ## ----------------------------------------------- ##
  11878. _ASBOX
  11879. ) | sed "s/^/$as_me: WARNING: /" >&2
  11880. ;;
  11881. esac
  11882. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11883. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11884. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11885. echo $ECHO_N "(cached) $ECHO_C" >&6
  11886. else
  11887. eval "$as_ac_Header=\$ac_header_preproc"
  11888. fi
  11889. ac_res=`eval echo '${'$as_ac_Header'}'`
  11890. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11891. echo "${ECHO_T}$ac_res" >&6; }
  11892. fi
  11893. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11894. cat >>confdefs.h <<_ACEOF
  11895. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11896. _ACEOF
  11897. fi
  11898. done
  11899. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  11900. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  11901. if test "${gl_cv_size_max+set}" = set; then
  11902. echo $ECHO_N "(cached) $ECHO_C" >&6
  11903. else
  11904. gl_cv_size_max=
  11905. cat >conftest.$ac_ext <<_ACEOF
  11906. /* confdefs.h. */
  11907. _ACEOF
  11908. cat confdefs.h >>conftest.$ac_ext
  11909. cat >>conftest.$ac_ext <<_ACEOF
  11910. /* end confdefs.h. */
  11911. #include <limits.h>
  11912. #if HAVE_STDINT_H
  11913. #include <stdint.h>
  11914. #endif
  11915. #ifdef SIZE_MAX
  11916. Found it
  11917. #endif
  11918. _ACEOF
  11919. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11920. $EGREP "Found it" >/dev/null 2>&1; then
  11921. gl_cv_size_max=yes
  11922. fi
  11923. rm -f conftest*
  11924. if test -z "$gl_cv_size_max"; then
  11925. if test "$cross_compiling" = yes; then
  11926. # Depending upon the size, compute the lo and hi bounds.
  11927. cat >conftest.$ac_ext <<_ACEOF
  11928. /* confdefs.h. */
  11929. _ACEOF
  11930. cat confdefs.h >>conftest.$ac_ext
  11931. cat >>conftest.$ac_ext <<_ACEOF
  11932. /* end confdefs.h. */
  11933. #include <stddef.h>
  11934. #include <limits.h>
  11935. int
  11936. main ()
  11937. {
  11938. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  11939. test_array [0] = 0
  11940. ;
  11941. return 0;
  11942. }
  11943. _ACEOF
  11944. rm -f conftest.$ac_objext
  11945. if { (ac_try="$ac_compile"
  11946. case "(($ac_try" in
  11947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11948. *) ac_try_echo=$ac_try;;
  11949. esac
  11950. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11951. (eval "$ac_compile") 2>conftest.er1
  11952. ac_status=$?
  11953. grep -v '^ *+' conftest.er1 >conftest.err
  11954. rm -f conftest.er1
  11955. cat conftest.err >&5
  11956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11957. (exit $ac_status); } && {
  11958. test -z "$ac_cxx_werror_flag" ||
  11959. test ! -s conftest.err
  11960. } && test -s conftest.$ac_objext; then
  11961. ac_lo=0 ac_mid=0
  11962. while :; do
  11963. cat >conftest.$ac_ext <<_ACEOF
  11964. /* confdefs.h. */
  11965. _ACEOF
  11966. cat confdefs.h >>conftest.$ac_ext
  11967. cat >>conftest.$ac_ext <<_ACEOF
  11968. /* end confdefs.h. */
  11969. #include <stddef.h>
  11970. #include <limits.h>
  11971. int
  11972. main ()
  11973. {
  11974. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  11975. test_array [0] = 0
  11976. ;
  11977. return 0;
  11978. }
  11979. _ACEOF
  11980. rm -f conftest.$ac_objext
  11981. if { (ac_try="$ac_compile"
  11982. case "(($ac_try" in
  11983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11984. *) ac_try_echo=$ac_try;;
  11985. esac
  11986. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11987. (eval "$ac_compile") 2>conftest.er1
  11988. ac_status=$?
  11989. grep -v '^ *+' conftest.er1 >conftest.err
  11990. rm -f conftest.er1
  11991. cat conftest.err >&5
  11992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11993. (exit $ac_status); } && {
  11994. test -z "$ac_cxx_werror_flag" ||
  11995. test ! -s conftest.err
  11996. } && test -s conftest.$ac_objext; then
  11997. ac_hi=$ac_mid; break
  11998. else
  11999. echo "$as_me: failed program was:" >&5
  12000. sed 's/^/| /' conftest.$ac_ext >&5
  12001. ac_lo=`expr $ac_mid + 1`
  12002. if test $ac_lo -le $ac_mid; then
  12003. ac_lo= ac_hi=
  12004. break
  12005. fi
  12006. ac_mid=`expr 2 '*' $ac_mid + 1`
  12007. fi
  12008. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12009. done
  12010. else
  12011. echo "$as_me: failed program was:" >&5
  12012. sed 's/^/| /' conftest.$ac_ext >&5
  12013. cat >conftest.$ac_ext <<_ACEOF
  12014. /* confdefs.h. */
  12015. _ACEOF
  12016. cat confdefs.h >>conftest.$ac_ext
  12017. cat >>conftest.$ac_ext <<_ACEOF
  12018. /* end confdefs.h. */
  12019. #include <stddef.h>
  12020. #include <limits.h>
  12021. int
  12022. main ()
  12023. {
  12024. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  12025. test_array [0] = 0
  12026. ;
  12027. return 0;
  12028. }
  12029. _ACEOF
  12030. rm -f conftest.$ac_objext
  12031. if { (ac_try="$ac_compile"
  12032. case "(($ac_try" in
  12033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12034. *) ac_try_echo=$ac_try;;
  12035. esac
  12036. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12037. (eval "$ac_compile") 2>conftest.er1
  12038. ac_status=$?
  12039. grep -v '^ *+' conftest.er1 >conftest.err
  12040. rm -f conftest.er1
  12041. cat conftest.err >&5
  12042. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12043. (exit $ac_status); } && {
  12044. test -z "$ac_cxx_werror_flag" ||
  12045. test ! -s conftest.err
  12046. } && test -s conftest.$ac_objext; then
  12047. ac_hi=-1 ac_mid=-1
  12048. while :; do
  12049. cat >conftest.$ac_ext <<_ACEOF
  12050. /* confdefs.h. */
  12051. _ACEOF
  12052. cat confdefs.h >>conftest.$ac_ext
  12053. cat >>conftest.$ac_ext <<_ACEOF
  12054. /* end confdefs.h. */
  12055. #include <stddef.h>
  12056. #include <limits.h>
  12057. int
  12058. main ()
  12059. {
  12060. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  12061. test_array [0] = 0
  12062. ;
  12063. return 0;
  12064. }
  12065. _ACEOF
  12066. rm -f conftest.$ac_objext
  12067. if { (ac_try="$ac_compile"
  12068. case "(($ac_try" in
  12069. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12070. *) ac_try_echo=$ac_try;;
  12071. esac
  12072. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12073. (eval "$ac_compile") 2>conftest.er1
  12074. ac_status=$?
  12075. grep -v '^ *+' conftest.er1 >conftest.err
  12076. rm -f conftest.er1
  12077. cat conftest.err >&5
  12078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12079. (exit $ac_status); } && {
  12080. test -z "$ac_cxx_werror_flag" ||
  12081. test ! -s conftest.err
  12082. } && test -s conftest.$ac_objext; then
  12083. ac_lo=$ac_mid; break
  12084. else
  12085. echo "$as_me: failed program was:" >&5
  12086. sed 's/^/| /' conftest.$ac_ext >&5
  12087. ac_hi=`expr '(' $ac_mid ')' - 1`
  12088. if test $ac_mid -le $ac_hi; then
  12089. ac_lo= ac_hi=
  12090. break
  12091. fi
  12092. ac_mid=`expr 2 '*' $ac_mid`
  12093. fi
  12094. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12095. done
  12096. else
  12097. echo "$as_me: failed program was:" >&5
  12098. sed 's/^/| /' conftest.$ac_ext >&5
  12099. ac_lo= ac_hi=
  12100. fi
  12101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12102. fi
  12103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12104. # Binary search between lo and hi bounds.
  12105. while test "x$ac_lo" != "x$ac_hi"; do
  12106. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  12107. cat >conftest.$ac_ext <<_ACEOF
  12108. /* confdefs.h. */
  12109. _ACEOF
  12110. cat confdefs.h >>conftest.$ac_ext
  12111. cat >>conftest.$ac_ext <<_ACEOF
  12112. /* end confdefs.h. */
  12113. #include <stddef.h>
  12114. #include <limits.h>
  12115. int
  12116. main ()
  12117. {
  12118. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  12119. test_array [0] = 0
  12120. ;
  12121. return 0;
  12122. }
  12123. _ACEOF
  12124. rm -f conftest.$ac_objext
  12125. if { (ac_try="$ac_compile"
  12126. case "(($ac_try" in
  12127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12128. *) ac_try_echo=$ac_try;;
  12129. esac
  12130. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12131. (eval "$ac_compile") 2>conftest.er1
  12132. ac_status=$?
  12133. grep -v '^ *+' conftest.er1 >conftest.err
  12134. rm -f conftest.er1
  12135. cat conftest.err >&5
  12136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12137. (exit $ac_status); } && {
  12138. test -z "$ac_cxx_werror_flag" ||
  12139. test ! -s conftest.err
  12140. } && test -s conftest.$ac_objext; then
  12141. ac_hi=$ac_mid
  12142. else
  12143. echo "$as_me: failed program was:" >&5
  12144. sed 's/^/| /' conftest.$ac_ext >&5
  12145. ac_lo=`expr '(' $ac_mid ')' + 1`
  12146. fi
  12147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12148. done
  12149. case $ac_lo in
  12150. ?*) size_t_bits_minus_1=$ac_lo;;
  12151. '') size_t_bits_minus_1= ;;
  12152. esac
  12153. else
  12154. cat >conftest.$ac_ext <<_ACEOF
  12155. /* confdefs.h. */
  12156. _ACEOF
  12157. cat confdefs.h >>conftest.$ac_ext
  12158. cat >>conftest.$ac_ext <<_ACEOF
  12159. /* end confdefs.h. */
  12160. #include <stddef.h>
  12161. #include <limits.h>
  12162. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  12163. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  12164. #include <stdio.h>
  12165. #include <stdlib.h>
  12166. int
  12167. main ()
  12168. {
  12169. FILE *f = fopen ("conftest.val", "w");
  12170. if (! f)
  12171. return 1;
  12172. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  12173. {
  12174. long int i = longval ();
  12175. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  12176. return 1;
  12177. fprintf (f, "%ld\n", i);
  12178. }
  12179. else
  12180. {
  12181. unsigned long int i = ulongval ();
  12182. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  12183. return 1;
  12184. fprintf (f, "%lu\n", i);
  12185. }
  12186. return ferror (f) || fclose (f) != 0;
  12187. ;
  12188. return 0;
  12189. }
  12190. _ACEOF
  12191. rm -f conftest$ac_exeext
  12192. if { (ac_try="$ac_link"
  12193. case "(($ac_try" in
  12194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12195. *) ac_try_echo=$ac_try;;
  12196. esac
  12197. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12198. (eval "$ac_link") 2>&5
  12199. ac_status=$?
  12200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12201. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12202. { (case "(($ac_try" in
  12203. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12204. *) ac_try_echo=$ac_try;;
  12205. esac
  12206. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12207. (eval "$ac_try") 2>&5
  12208. ac_status=$?
  12209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12210. (exit $ac_status); }; }; then
  12211. size_t_bits_minus_1=`cat conftest.val`
  12212. else
  12213. echo "$as_me: program exited with status $ac_status" >&5
  12214. echo "$as_me: failed program was:" >&5
  12215. sed 's/^/| /' conftest.$ac_ext >&5
  12216. ( exit $ac_status )
  12217. size_t_bits_minus_1=
  12218. fi
  12219. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12220. fi
  12221. rm -f conftest.val
  12222. if test "$cross_compiling" = yes; then
  12223. # Depending upon the size, compute the lo and hi bounds.
  12224. cat >conftest.$ac_ext <<_ACEOF
  12225. /* confdefs.h. */
  12226. _ACEOF
  12227. cat confdefs.h >>conftest.$ac_ext
  12228. cat >>conftest.$ac_ext <<_ACEOF
  12229. /* end confdefs.h. */
  12230. #include <stddef.h>
  12231. int
  12232. main ()
  12233. {
  12234. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  12235. test_array [0] = 0
  12236. ;
  12237. return 0;
  12238. }
  12239. _ACEOF
  12240. rm -f conftest.$ac_objext
  12241. if { (ac_try="$ac_compile"
  12242. case "(($ac_try" in
  12243. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12244. *) ac_try_echo=$ac_try;;
  12245. esac
  12246. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12247. (eval "$ac_compile") 2>conftest.er1
  12248. ac_status=$?
  12249. grep -v '^ *+' conftest.er1 >conftest.err
  12250. rm -f conftest.er1
  12251. cat conftest.err >&5
  12252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12253. (exit $ac_status); } && {
  12254. test -z "$ac_cxx_werror_flag" ||
  12255. test ! -s conftest.err
  12256. } && test -s conftest.$ac_objext; then
  12257. ac_lo=0 ac_mid=0
  12258. while :; do
  12259. cat >conftest.$ac_ext <<_ACEOF
  12260. /* confdefs.h. */
  12261. _ACEOF
  12262. cat confdefs.h >>conftest.$ac_ext
  12263. cat >>conftest.$ac_ext <<_ACEOF
  12264. /* end confdefs.h. */
  12265. #include <stddef.h>
  12266. int
  12267. main ()
  12268. {
  12269. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  12270. test_array [0] = 0
  12271. ;
  12272. return 0;
  12273. }
  12274. _ACEOF
  12275. rm -f conftest.$ac_objext
  12276. if { (ac_try="$ac_compile"
  12277. case "(($ac_try" in
  12278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12279. *) ac_try_echo=$ac_try;;
  12280. esac
  12281. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12282. (eval "$ac_compile") 2>conftest.er1
  12283. ac_status=$?
  12284. grep -v '^ *+' conftest.er1 >conftest.err
  12285. rm -f conftest.er1
  12286. cat conftest.err >&5
  12287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12288. (exit $ac_status); } && {
  12289. test -z "$ac_cxx_werror_flag" ||
  12290. test ! -s conftest.err
  12291. } && test -s conftest.$ac_objext; then
  12292. ac_hi=$ac_mid; break
  12293. else
  12294. echo "$as_me: failed program was:" >&5
  12295. sed 's/^/| /' conftest.$ac_ext >&5
  12296. ac_lo=`expr $ac_mid + 1`
  12297. if test $ac_lo -le $ac_mid; then
  12298. ac_lo= ac_hi=
  12299. break
  12300. fi
  12301. ac_mid=`expr 2 '*' $ac_mid + 1`
  12302. fi
  12303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12304. done
  12305. else
  12306. echo "$as_me: failed program was:" >&5
  12307. sed 's/^/| /' conftest.$ac_ext >&5
  12308. cat >conftest.$ac_ext <<_ACEOF
  12309. /* confdefs.h. */
  12310. _ACEOF
  12311. cat confdefs.h >>conftest.$ac_ext
  12312. cat >>conftest.$ac_ext <<_ACEOF
  12313. /* end confdefs.h. */
  12314. #include <stddef.h>
  12315. int
  12316. main ()
  12317. {
  12318. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  12319. test_array [0] = 0
  12320. ;
  12321. return 0;
  12322. }
  12323. _ACEOF
  12324. rm -f conftest.$ac_objext
  12325. if { (ac_try="$ac_compile"
  12326. case "(($ac_try" in
  12327. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12328. *) ac_try_echo=$ac_try;;
  12329. esac
  12330. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12331. (eval "$ac_compile") 2>conftest.er1
  12332. ac_status=$?
  12333. grep -v '^ *+' conftest.er1 >conftest.err
  12334. rm -f conftest.er1
  12335. cat conftest.err >&5
  12336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12337. (exit $ac_status); } && {
  12338. test -z "$ac_cxx_werror_flag" ||
  12339. test ! -s conftest.err
  12340. } && test -s conftest.$ac_objext; then
  12341. ac_hi=-1 ac_mid=-1
  12342. while :; do
  12343. cat >conftest.$ac_ext <<_ACEOF
  12344. /* confdefs.h. */
  12345. _ACEOF
  12346. cat confdefs.h >>conftest.$ac_ext
  12347. cat >>conftest.$ac_ext <<_ACEOF
  12348. /* end confdefs.h. */
  12349. #include <stddef.h>
  12350. int
  12351. main ()
  12352. {
  12353. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  12354. test_array [0] = 0
  12355. ;
  12356. return 0;
  12357. }
  12358. _ACEOF
  12359. rm -f conftest.$ac_objext
  12360. if { (ac_try="$ac_compile"
  12361. case "(($ac_try" in
  12362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12363. *) ac_try_echo=$ac_try;;
  12364. esac
  12365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12366. (eval "$ac_compile") 2>conftest.er1
  12367. ac_status=$?
  12368. grep -v '^ *+' conftest.er1 >conftest.err
  12369. rm -f conftest.er1
  12370. cat conftest.err >&5
  12371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12372. (exit $ac_status); } && {
  12373. test -z "$ac_cxx_werror_flag" ||
  12374. test ! -s conftest.err
  12375. } && test -s conftest.$ac_objext; then
  12376. ac_lo=$ac_mid; break
  12377. else
  12378. echo "$as_me: failed program was:" >&5
  12379. sed 's/^/| /' conftest.$ac_ext >&5
  12380. ac_hi=`expr '(' $ac_mid ')' - 1`
  12381. if test $ac_mid -le $ac_hi; then
  12382. ac_lo= ac_hi=
  12383. break
  12384. fi
  12385. ac_mid=`expr 2 '*' $ac_mid`
  12386. fi
  12387. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12388. done
  12389. else
  12390. echo "$as_me: failed program was:" >&5
  12391. sed 's/^/| /' conftest.$ac_ext >&5
  12392. ac_lo= ac_hi=
  12393. fi
  12394. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12395. fi
  12396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12397. # Binary search between lo and hi bounds.
  12398. while test "x$ac_lo" != "x$ac_hi"; do
  12399. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  12400. cat >conftest.$ac_ext <<_ACEOF
  12401. /* confdefs.h. */
  12402. _ACEOF
  12403. cat confdefs.h >>conftest.$ac_ext
  12404. cat >>conftest.$ac_ext <<_ACEOF
  12405. /* end confdefs.h. */
  12406. #include <stddef.h>
  12407. int
  12408. main ()
  12409. {
  12410. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  12411. test_array [0] = 0
  12412. ;
  12413. return 0;
  12414. }
  12415. _ACEOF
  12416. rm -f conftest.$ac_objext
  12417. if { (ac_try="$ac_compile"
  12418. case "(($ac_try" in
  12419. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12420. *) ac_try_echo=$ac_try;;
  12421. esac
  12422. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12423. (eval "$ac_compile") 2>conftest.er1
  12424. ac_status=$?
  12425. grep -v '^ *+' conftest.er1 >conftest.err
  12426. rm -f conftest.er1
  12427. cat conftest.err >&5
  12428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12429. (exit $ac_status); } && {
  12430. test -z "$ac_cxx_werror_flag" ||
  12431. test ! -s conftest.err
  12432. } && test -s conftest.$ac_objext; then
  12433. ac_hi=$ac_mid
  12434. else
  12435. echo "$as_me: failed program was:" >&5
  12436. sed 's/^/| /' conftest.$ac_ext >&5
  12437. ac_lo=`expr '(' $ac_mid ')' + 1`
  12438. fi
  12439. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12440. done
  12441. case $ac_lo in
  12442. ?*) fits_in_uint=$ac_lo;;
  12443. '') fits_in_uint= ;;
  12444. esac
  12445. else
  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 <stddef.h>
  12453. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  12454. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  12455. #include <stdio.h>
  12456. #include <stdlib.h>
  12457. int
  12458. main ()
  12459. {
  12460. FILE *f = fopen ("conftest.val", "w");
  12461. if (! f)
  12462. return 1;
  12463. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  12464. {
  12465. long int i = longval ();
  12466. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  12467. return 1;
  12468. fprintf (f, "%ld\n", i);
  12469. }
  12470. else
  12471. {
  12472. unsigned long int i = ulongval ();
  12473. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  12474. return 1;
  12475. fprintf (f, "%lu\n", i);
  12476. }
  12477. return ferror (f) || fclose (f) != 0;
  12478. ;
  12479. return 0;
  12480. }
  12481. _ACEOF
  12482. rm -f conftest$ac_exeext
  12483. if { (ac_try="$ac_link"
  12484. case "(($ac_try" in
  12485. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12486. *) ac_try_echo=$ac_try;;
  12487. esac
  12488. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12489. (eval "$ac_link") 2>&5
  12490. ac_status=$?
  12491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12492. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12493. { (case "(($ac_try" in
  12494. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12495. *) ac_try_echo=$ac_try;;
  12496. esac
  12497. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12498. (eval "$ac_try") 2>&5
  12499. ac_status=$?
  12500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12501. (exit $ac_status); }; }; then
  12502. fits_in_uint=`cat conftest.val`
  12503. else
  12504. echo "$as_me: program exited with status $ac_status" >&5
  12505. echo "$as_me: failed program was:" >&5
  12506. sed 's/^/| /' conftest.$ac_ext >&5
  12507. ( exit $ac_status )
  12508. fits_in_uint=
  12509. fi
  12510. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12511. fi
  12512. rm -f conftest.val
  12513. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  12514. if test $fits_in_uint = 1; then
  12515. cat >conftest.$ac_ext <<_ACEOF
  12516. /* confdefs.h. */
  12517. _ACEOF
  12518. cat confdefs.h >>conftest.$ac_ext
  12519. cat >>conftest.$ac_ext <<_ACEOF
  12520. /* end confdefs.h. */
  12521. #include <stddef.h>
  12522. extern size_t foo;
  12523. extern unsigned long foo;
  12524. int
  12525. main ()
  12526. {
  12527. ;
  12528. return 0;
  12529. }
  12530. _ACEOF
  12531. rm -f conftest.$ac_objext
  12532. if { (ac_try="$ac_compile"
  12533. case "(($ac_try" in
  12534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12535. *) ac_try_echo=$ac_try;;
  12536. esac
  12537. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12538. (eval "$ac_compile") 2>conftest.er1
  12539. ac_status=$?
  12540. grep -v '^ *+' conftest.er1 >conftest.err
  12541. rm -f conftest.er1
  12542. cat conftest.err >&5
  12543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12544. (exit $ac_status); } && {
  12545. test -z "$ac_cxx_werror_flag" ||
  12546. test ! -s conftest.err
  12547. } && test -s conftest.$ac_objext; then
  12548. fits_in_uint=0
  12549. else
  12550. echo "$as_me: failed program was:" >&5
  12551. sed 's/^/| /' conftest.$ac_ext >&5
  12552. fi
  12553. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12554. fi
  12555. if test $fits_in_uint = 1; then
  12556. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  12557. else
  12558. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  12559. fi
  12560. else
  12561. gl_cv_size_max='((size_t)~(size_t)0)'
  12562. fi
  12563. fi
  12564. fi
  12565. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  12566. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  12567. if test "$gl_cv_size_max" != yes; then
  12568. cat >>confdefs.h <<_ACEOF
  12569. #define SIZE_MAX $gl_cv_size_max
  12570. _ACEOF
  12571. fi
  12572. for ac_header in stdint.h
  12573. do
  12574. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12575. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12576. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12577. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12578. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12579. echo $ECHO_N "(cached) $ECHO_C" >&6
  12580. fi
  12581. ac_res=`eval echo '${'$as_ac_Header'}'`
  12582. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12583. echo "${ECHO_T}$ac_res" >&6; }
  12584. else
  12585. # Is the header compilable?
  12586. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12587. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12588. cat >conftest.$ac_ext <<_ACEOF
  12589. /* confdefs.h. */
  12590. _ACEOF
  12591. cat confdefs.h >>conftest.$ac_ext
  12592. cat >>conftest.$ac_ext <<_ACEOF
  12593. /* end confdefs.h. */
  12594. $ac_includes_default
  12595. #include <$ac_header>
  12596. _ACEOF
  12597. rm -f conftest.$ac_objext
  12598. if { (ac_try="$ac_compile"
  12599. case "(($ac_try" in
  12600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12601. *) ac_try_echo=$ac_try;;
  12602. esac
  12603. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12604. (eval "$ac_compile") 2>conftest.er1
  12605. ac_status=$?
  12606. grep -v '^ *+' conftest.er1 >conftest.err
  12607. rm -f conftest.er1
  12608. cat conftest.err >&5
  12609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12610. (exit $ac_status); } && {
  12611. test -z "$ac_cxx_werror_flag" ||
  12612. test ! -s conftest.err
  12613. } && test -s conftest.$ac_objext; then
  12614. ac_header_compiler=yes
  12615. else
  12616. echo "$as_me: failed program was:" >&5
  12617. sed 's/^/| /' conftest.$ac_ext >&5
  12618. ac_header_compiler=no
  12619. fi
  12620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12621. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12622. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12623. # Is the header present?
  12624. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12625. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12626. cat >conftest.$ac_ext <<_ACEOF
  12627. /* confdefs.h. */
  12628. _ACEOF
  12629. cat confdefs.h >>conftest.$ac_ext
  12630. cat >>conftest.$ac_ext <<_ACEOF
  12631. /* end confdefs.h. */
  12632. #include <$ac_header>
  12633. _ACEOF
  12634. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12635. case "(($ac_try" in
  12636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12637. *) ac_try_echo=$ac_try;;
  12638. esac
  12639. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12640. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12641. ac_status=$?
  12642. grep -v '^ *+' conftest.er1 >conftest.err
  12643. rm -f conftest.er1
  12644. cat conftest.err >&5
  12645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12646. (exit $ac_status); } >/dev/null && {
  12647. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12648. test ! -s conftest.err
  12649. }; then
  12650. ac_header_preproc=yes
  12651. else
  12652. echo "$as_me: failed program was:" >&5
  12653. sed 's/^/| /' conftest.$ac_ext >&5
  12654. ac_header_preproc=no
  12655. fi
  12656. rm -f conftest.err conftest.$ac_ext
  12657. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12658. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12659. # So? What about this header?
  12660. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12661. yes:no: )
  12662. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12663. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12664. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12665. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12666. ac_header_preproc=yes
  12667. ;;
  12668. no:yes:* )
  12669. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12670. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12671. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12672. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12673. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12674. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12675. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12676. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12677. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12678. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12679. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12680. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12681. ( cat <<\_ASBOX
  12682. ## ----------------------------------------------- ##
  12683. ## Report this to t-tujikawa@users.sourceforge.net ##
  12684. ## ----------------------------------------------- ##
  12685. _ASBOX
  12686. ) | sed "s/^/$as_me: WARNING: /" >&2
  12687. ;;
  12688. esac
  12689. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12690. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12691. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12692. echo $ECHO_N "(cached) $ECHO_C" >&6
  12693. else
  12694. eval "$as_ac_Header=\$ac_header_preproc"
  12695. fi
  12696. ac_res=`eval echo '${'$as_ac_Header'}'`
  12697. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12698. echo "${ECHO_T}$ac_res" >&6; }
  12699. fi
  12700. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12701. cat >>confdefs.h <<_ACEOF
  12702. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12703. _ACEOF
  12704. fi
  12705. done
  12706. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  12707. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  12708. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  12709. echo $ECHO_N "(cached) $ECHO_C" >&6
  12710. else
  12711. gt_save_LIBS="$LIBS"
  12712. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  12713. cat >conftest.$ac_ext <<_ACEOF
  12714. /* confdefs.h. */
  12715. _ACEOF
  12716. cat confdefs.h >>conftest.$ac_ext
  12717. cat >>conftest.$ac_ext <<_ACEOF
  12718. /* end confdefs.h. */
  12719. #include <CoreFoundation/CFPreferences.h>
  12720. int
  12721. main ()
  12722. {
  12723. CFPreferencesCopyAppValue(NULL, NULL)
  12724. ;
  12725. return 0;
  12726. }
  12727. _ACEOF
  12728. rm -f conftest.$ac_objext conftest$ac_exeext
  12729. if { (ac_try="$ac_link"
  12730. case "(($ac_try" in
  12731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12732. *) ac_try_echo=$ac_try;;
  12733. esac
  12734. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12735. (eval "$ac_link") 2>conftest.er1
  12736. ac_status=$?
  12737. grep -v '^ *+' conftest.er1 >conftest.err
  12738. rm -f conftest.er1
  12739. cat conftest.err >&5
  12740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12741. (exit $ac_status); } && {
  12742. test -z "$ac_cxx_werror_flag" ||
  12743. test ! -s conftest.err
  12744. } && test -s conftest$ac_exeext &&
  12745. $as_test_x conftest$ac_exeext; then
  12746. gt_cv_func_CFPreferencesCopyAppValue=yes
  12747. else
  12748. echo "$as_me: failed program was:" >&5
  12749. sed 's/^/| /' conftest.$ac_ext >&5
  12750. gt_cv_func_CFPreferencesCopyAppValue=no
  12751. fi
  12752. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12753. conftest$ac_exeext conftest.$ac_ext
  12754. LIBS="$gt_save_LIBS"
  12755. fi
  12756. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  12757. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  12758. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  12759. cat >>confdefs.h <<\_ACEOF
  12760. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  12761. _ACEOF
  12762. fi
  12763. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  12764. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  12765. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  12766. echo $ECHO_N "(cached) $ECHO_C" >&6
  12767. else
  12768. gt_save_LIBS="$LIBS"
  12769. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  12770. cat >conftest.$ac_ext <<_ACEOF
  12771. /* confdefs.h. */
  12772. _ACEOF
  12773. cat confdefs.h >>conftest.$ac_ext
  12774. cat >>conftest.$ac_ext <<_ACEOF
  12775. /* end confdefs.h. */
  12776. #include <CoreFoundation/CFLocale.h>
  12777. int
  12778. main ()
  12779. {
  12780. CFLocaleCopyCurrent();
  12781. ;
  12782. return 0;
  12783. }
  12784. _ACEOF
  12785. rm -f conftest.$ac_objext conftest$ac_exeext
  12786. if { (ac_try="$ac_link"
  12787. case "(($ac_try" in
  12788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12789. *) ac_try_echo=$ac_try;;
  12790. esac
  12791. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12792. (eval "$ac_link") 2>conftest.er1
  12793. ac_status=$?
  12794. grep -v '^ *+' conftest.er1 >conftest.err
  12795. rm -f conftest.er1
  12796. cat conftest.err >&5
  12797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12798. (exit $ac_status); } && {
  12799. test -z "$ac_cxx_werror_flag" ||
  12800. test ! -s conftest.err
  12801. } && test -s conftest$ac_exeext &&
  12802. $as_test_x conftest$ac_exeext; then
  12803. gt_cv_func_CFLocaleCopyCurrent=yes
  12804. else
  12805. echo "$as_me: failed program was:" >&5
  12806. sed 's/^/| /' conftest.$ac_ext >&5
  12807. gt_cv_func_CFLocaleCopyCurrent=no
  12808. fi
  12809. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12810. conftest$ac_exeext conftest.$ac_ext
  12811. LIBS="$gt_save_LIBS"
  12812. fi
  12813. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  12814. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  12815. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  12816. cat >>confdefs.h <<\_ACEOF
  12817. #define HAVE_CFLOCALECOPYCURRENT 1
  12818. _ACEOF
  12819. fi
  12820. INTL_MACOSX_LIBS=
  12821. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  12822. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  12823. fi
  12824. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  12825. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  12826. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  12827. echo $ECHO_N "(cached) $ECHO_C" >&6
  12828. else
  12829. cat >conftest.$ac_ext <<_ACEOF
  12830. /* confdefs.h. */
  12831. _ACEOF
  12832. cat confdefs.h >>conftest.$ac_ext
  12833. cat >>conftest.$ac_ext <<_ACEOF
  12834. /* end confdefs.h. */
  12835. $ac_includes_default
  12836. typedef ptrdiff_t ac__type_new_;
  12837. int
  12838. main ()
  12839. {
  12840. if ((ac__type_new_ *) 0)
  12841. return 0;
  12842. if (sizeof (ac__type_new_))
  12843. return 0;
  12844. ;
  12845. return 0;
  12846. }
  12847. _ACEOF
  12848. rm -f conftest.$ac_objext
  12849. if { (ac_try="$ac_compile"
  12850. case "(($ac_try" in
  12851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12852. *) ac_try_echo=$ac_try;;
  12853. esac
  12854. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12855. (eval "$ac_compile") 2>conftest.er1
  12856. ac_status=$?
  12857. grep -v '^ *+' conftest.er1 >conftest.err
  12858. rm -f conftest.er1
  12859. cat conftest.err >&5
  12860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12861. (exit $ac_status); } && {
  12862. test -z "$ac_cxx_werror_flag" ||
  12863. test ! -s conftest.err
  12864. } && test -s conftest.$ac_objext; then
  12865. ac_cv_type_ptrdiff_t=yes
  12866. else
  12867. echo "$as_me: failed program was:" >&5
  12868. sed 's/^/| /' conftest.$ac_ext >&5
  12869. ac_cv_type_ptrdiff_t=no
  12870. fi
  12871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12872. fi
  12873. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  12874. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  12875. if test $ac_cv_type_ptrdiff_t = yes; then
  12876. :
  12877. else
  12878. cat >>confdefs.h <<\_ACEOF
  12879. #define ptrdiff_t long
  12880. _ACEOF
  12881. fi
  12882. for ac_header in stddef.h stdlib.h string.h
  12883. do
  12884. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12885. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12886. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12887. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12888. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12889. echo $ECHO_N "(cached) $ECHO_C" >&6
  12890. fi
  12891. ac_res=`eval echo '${'$as_ac_Header'}'`
  12892. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12893. echo "${ECHO_T}$ac_res" >&6; }
  12894. else
  12895. # Is the header compilable?
  12896. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12897. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12898. cat >conftest.$ac_ext <<_ACEOF
  12899. /* confdefs.h. */
  12900. _ACEOF
  12901. cat confdefs.h >>conftest.$ac_ext
  12902. cat >>conftest.$ac_ext <<_ACEOF
  12903. /* end confdefs.h. */
  12904. $ac_includes_default
  12905. #include <$ac_header>
  12906. _ACEOF
  12907. rm -f conftest.$ac_objext
  12908. if { (ac_try="$ac_compile"
  12909. case "(($ac_try" in
  12910. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12911. *) ac_try_echo=$ac_try;;
  12912. esac
  12913. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12914. (eval "$ac_compile") 2>conftest.er1
  12915. ac_status=$?
  12916. grep -v '^ *+' conftest.er1 >conftest.err
  12917. rm -f conftest.er1
  12918. cat conftest.err >&5
  12919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12920. (exit $ac_status); } && {
  12921. test -z "$ac_cxx_werror_flag" ||
  12922. test ! -s conftest.err
  12923. } && test -s conftest.$ac_objext; then
  12924. ac_header_compiler=yes
  12925. else
  12926. echo "$as_me: failed program was:" >&5
  12927. sed 's/^/| /' conftest.$ac_ext >&5
  12928. ac_header_compiler=no
  12929. fi
  12930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12931. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12932. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12933. # Is the header present?
  12934. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12935. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12936. cat >conftest.$ac_ext <<_ACEOF
  12937. /* confdefs.h. */
  12938. _ACEOF
  12939. cat confdefs.h >>conftest.$ac_ext
  12940. cat >>conftest.$ac_ext <<_ACEOF
  12941. /* end confdefs.h. */
  12942. #include <$ac_header>
  12943. _ACEOF
  12944. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12945. case "(($ac_try" in
  12946. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12947. *) ac_try_echo=$ac_try;;
  12948. esac
  12949. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12950. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12951. ac_status=$?
  12952. grep -v '^ *+' conftest.er1 >conftest.err
  12953. rm -f conftest.er1
  12954. cat conftest.err >&5
  12955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12956. (exit $ac_status); } >/dev/null && {
  12957. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12958. test ! -s conftest.err
  12959. }; then
  12960. ac_header_preproc=yes
  12961. else
  12962. echo "$as_me: failed program was:" >&5
  12963. sed 's/^/| /' conftest.$ac_ext >&5
  12964. ac_header_preproc=no
  12965. fi
  12966. rm -f conftest.err conftest.$ac_ext
  12967. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12968. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12969. # So? What about this header?
  12970. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12971. yes:no: )
  12972. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12973. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12974. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12975. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12976. ac_header_preproc=yes
  12977. ;;
  12978. no:yes:* )
  12979. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12980. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12981. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12982. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12983. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12984. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12985. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12986. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12987. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12988. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12989. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12990. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12991. ( cat <<\_ASBOX
  12992. ## ----------------------------------------------- ##
  12993. ## Report this to t-tujikawa@users.sourceforge.net ##
  12994. ## ----------------------------------------------- ##
  12995. _ASBOX
  12996. ) | sed "s/^/$as_me: WARNING: /" >&2
  12997. ;;
  12998. esac
  12999. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13000. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13001. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13002. echo $ECHO_N "(cached) $ECHO_C" >&6
  13003. else
  13004. eval "$as_ac_Header=\$ac_header_preproc"
  13005. fi
  13006. ac_res=`eval echo '${'$as_ac_Header'}'`
  13007. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13008. echo "${ECHO_T}$ac_res" >&6; }
  13009. fi
  13010. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13011. cat >>confdefs.h <<_ACEOF
  13012. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13013. _ACEOF
  13014. fi
  13015. done
  13016. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  13017. do
  13018. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13019. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  13020. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  13021. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  13022. echo $ECHO_N "(cached) $ECHO_C" >&6
  13023. else
  13024. cat >conftest.$ac_ext <<_ACEOF
  13025. /* confdefs.h. */
  13026. _ACEOF
  13027. cat confdefs.h >>conftest.$ac_ext
  13028. cat >>conftest.$ac_ext <<_ACEOF
  13029. /* end confdefs.h. */
  13030. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13031. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13032. #define $ac_func innocuous_$ac_func
  13033. /* System header to define __stub macros and hopefully few prototypes,
  13034. which can conflict with char $ac_func (); below.
  13035. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13036. <limits.h> exists even on freestanding compilers. */
  13037. #ifdef __STDC__
  13038. # include <limits.h>
  13039. #else
  13040. # include <assert.h>
  13041. #endif
  13042. #undef $ac_func
  13043. /* Override any GCC internal prototype to avoid an error.
  13044. Use char because int might match the return type of a GCC
  13045. builtin and then its argument prototype would still apply. */
  13046. #ifdef __cplusplus
  13047. extern "C"
  13048. #endif
  13049. char $ac_func ();
  13050. /* The GNU C library defines this for functions which it implements
  13051. to always fail with ENOSYS. Some functions are actually named
  13052. something starting with __ and the normal name is an alias. */
  13053. #if defined __stub_$ac_func || defined __stub___$ac_func
  13054. choke me
  13055. #endif
  13056. int
  13057. main ()
  13058. {
  13059. return $ac_func ();
  13060. ;
  13061. return 0;
  13062. }
  13063. _ACEOF
  13064. rm -f conftest.$ac_objext conftest$ac_exeext
  13065. if { (ac_try="$ac_link"
  13066. case "(($ac_try" in
  13067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13068. *) ac_try_echo=$ac_try;;
  13069. esac
  13070. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13071. (eval "$ac_link") 2>conftest.er1
  13072. ac_status=$?
  13073. grep -v '^ *+' conftest.er1 >conftest.err
  13074. rm -f conftest.er1
  13075. cat conftest.err >&5
  13076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13077. (exit $ac_status); } && {
  13078. test -z "$ac_cxx_werror_flag" ||
  13079. test ! -s conftest.err
  13080. } && test -s conftest$ac_exeext &&
  13081. $as_test_x conftest$ac_exeext; then
  13082. eval "$as_ac_var=yes"
  13083. else
  13084. echo "$as_me: failed program was:" >&5
  13085. sed 's/^/| /' conftest.$ac_ext >&5
  13086. eval "$as_ac_var=no"
  13087. fi
  13088. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13089. conftest$ac_exeext conftest.$ac_ext
  13090. fi
  13091. ac_res=`eval echo '${'$as_ac_var'}'`
  13092. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13093. echo "${ECHO_T}$ac_res" >&6; }
  13094. if test `eval echo '${'$as_ac_var'}'` = yes; then
  13095. cat >>confdefs.h <<_ACEOF
  13096. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13097. _ACEOF
  13098. fi
  13099. done
  13100. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  13101. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  13102. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  13103. echo $ECHO_N "(cached) $ECHO_C" >&6
  13104. else
  13105. cat >conftest.$ac_ext <<_ACEOF
  13106. /* confdefs.h. */
  13107. _ACEOF
  13108. cat confdefs.h >>conftest.$ac_ext
  13109. cat >>conftest.$ac_ext <<_ACEOF
  13110. /* end confdefs.h. */
  13111. #include <stdio.h>
  13112. int
  13113. main ()
  13114. {
  13115. #ifndef _snprintf
  13116. char *p = (char *) _snprintf;
  13117. #endif
  13118. ;
  13119. return 0;
  13120. }
  13121. _ACEOF
  13122. rm -f conftest.$ac_objext
  13123. if { (ac_try="$ac_compile"
  13124. case "(($ac_try" in
  13125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13126. *) ac_try_echo=$ac_try;;
  13127. esac
  13128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13129. (eval "$ac_compile") 2>conftest.er1
  13130. ac_status=$?
  13131. grep -v '^ *+' conftest.er1 >conftest.err
  13132. rm -f conftest.er1
  13133. cat conftest.err >&5
  13134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13135. (exit $ac_status); } && {
  13136. test -z "$ac_cxx_werror_flag" ||
  13137. test ! -s conftest.err
  13138. } && test -s conftest.$ac_objext; then
  13139. ac_cv_have_decl__snprintf=yes
  13140. else
  13141. echo "$as_me: failed program was:" >&5
  13142. sed 's/^/| /' conftest.$ac_ext >&5
  13143. ac_cv_have_decl__snprintf=no
  13144. fi
  13145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13146. fi
  13147. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  13148. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  13149. if test $ac_cv_have_decl__snprintf = yes; then
  13150. gt_value=1
  13151. else
  13152. gt_value=0
  13153. fi
  13154. cat >>confdefs.h <<_ACEOF
  13155. #define HAVE_DECL__SNPRINTF $gt_value
  13156. _ACEOF
  13157. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  13158. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  13159. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  13160. echo $ECHO_N "(cached) $ECHO_C" >&6
  13161. else
  13162. cat >conftest.$ac_ext <<_ACEOF
  13163. /* confdefs.h. */
  13164. _ACEOF
  13165. cat confdefs.h >>conftest.$ac_ext
  13166. cat >>conftest.$ac_ext <<_ACEOF
  13167. /* end confdefs.h. */
  13168. #include <stdio.h>
  13169. int
  13170. main ()
  13171. {
  13172. #ifndef _snwprintf
  13173. char *p = (char *) _snwprintf;
  13174. #endif
  13175. ;
  13176. return 0;
  13177. }
  13178. _ACEOF
  13179. rm -f conftest.$ac_objext
  13180. if { (ac_try="$ac_compile"
  13181. case "(($ac_try" in
  13182. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13183. *) ac_try_echo=$ac_try;;
  13184. esac
  13185. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13186. (eval "$ac_compile") 2>conftest.er1
  13187. ac_status=$?
  13188. grep -v '^ *+' conftest.er1 >conftest.err
  13189. rm -f conftest.er1
  13190. cat conftest.err >&5
  13191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13192. (exit $ac_status); } && {
  13193. test -z "$ac_cxx_werror_flag" ||
  13194. test ! -s conftest.err
  13195. } && test -s conftest.$ac_objext; then
  13196. ac_cv_have_decl__snwprintf=yes
  13197. else
  13198. echo "$as_me: failed program was:" >&5
  13199. sed 's/^/| /' conftest.$ac_ext >&5
  13200. ac_cv_have_decl__snwprintf=no
  13201. fi
  13202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13203. fi
  13204. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  13205. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  13206. if test $ac_cv_have_decl__snwprintf = yes; then
  13207. gt_value=1
  13208. else
  13209. gt_value=0
  13210. fi
  13211. cat >>confdefs.h <<_ACEOF
  13212. #define HAVE_DECL__SNWPRINTF $gt_value
  13213. _ACEOF
  13214. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  13215. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  13216. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  13217. echo $ECHO_N "(cached) $ECHO_C" >&6
  13218. else
  13219. cat >conftest.$ac_ext <<_ACEOF
  13220. /* confdefs.h. */
  13221. _ACEOF
  13222. cat confdefs.h >>conftest.$ac_ext
  13223. cat >>conftest.$ac_ext <<_ACEOF
  13224. /* end confdefs.h. */
  13225. #include <stdio.h>
  13226. int
  13227. main ()
  13228. {
  13229. #ifndef getc_unlocked
  13230. char *p = (char *) getc_unlocked;
  13231. #endif
  13232. ;
  13233. return 0;
  13234. }
  13235. _ACEOF
  13236. rm -f conftest.$ac_objext
  13237. if { (ac_try="$ac_compile"
  13238. case "(($ac_try" in
  13239. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13240. *) ac_try_echo=$ac_try;;
  13241. esac
  13242. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13243. (eval "$ac_compile") 2>conftest.er1
  13244. ac_status=$?
  13245. grep -v '^ *+' conftest.er1 >conftest.err
  13246. rm -f conftest.er1
  13247. cat conftest.err >&5
  13248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13249. (exit $ac_status); } && {
  13250. test -z "$ac_cxx_werror_flag" ||
  13251. test ! -s conftest.err
  13252. } && test -s conftest.$ac_objext; then
  13253. ac_cv_have_decl_getc_unlocked=yes
  13254. else
  13255. echo "$as_me: failed program was:" >&5
  13256. sed 's/^/| /' conftest.$ac_ext >&5
  13257. ac_cv_have_decl_getc_unlocked=no
  13258. fi
  13259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13260. fi
  13261. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  13262. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  13263. if test $ac_cv_have_decl_getc_unlocked = yes; then
  13264. gt_value=1
  13265. else
  13266. gt_value=0
  13267. fi
  13268. cat >>confdefs.h <<_ACEOF
  13269. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  13270. _ACEOF
  13271. case $gt_cv_func_printf_posix in
  13272. *yes) HAVE_POSIX_PRINTF=1 ;;
  13273. *) HAVE_POSIX_PRINTF=0 ;;
  13274. esac
  13275. if test "$ac_cv_func_asprintf" = yes; then
  13276. HAVE_ASPRINTF=1
  13277. else
  13278. HAVE_ASPRINTF=0
  13279. fi
  13280. if test "$ac_cv_func_snprintf" = yes; then
  13281. HAVE_SNPRINTF=1
  13282. else
  13283. HAVE_SNPRINTF=0
  13284. fi
  13285. if test "$ac_cv_func_wprintf" = yes; then
  13286. HAVE_WPRINTF=1
  13287. else
  13288. HAVE_WPRINTF=0
  13289. fi
  13290. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  13291. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  13292. if test "${am_cv_langinfo_codeset+set}" = set; then
  13293. echo $ECHO_N "(cached) $ECHO_C" >&6
  13294. else
  13295. cat >conftest.$ac_ext <<_ACEOF
  13296. /* confdefs.h. */
  13297. _ACEOF
  13298. cat confdefs.h >>conftest.$ac_ext
  13299. cat >>conftest.$ac_ext <<_ACEOF
  13300. /* end confdefs.h. */
  13301. #include <langinfo.h>
  13302. int
  13303. main ()
  13304. {
  13305. char* cs = nl_langinfo(CODESET); return !cs;
  13306. ;
  13307. return 0;
  13308. }
  13309. _ACEOF
  13310. rm -f conftest.$ac_objext conftest$ac_exeext
  13311. if { (ac_try="$ac_link"
  13312. case "(($ac_try" in
  13313. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13314. *) ac_try_echo=$ac_try;;
  13315. esac
  13316. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13317. (eval "$ac_link") 2>conftest.er1
  13318. ac_status=$?
  13319. grep -v '^ *+' conftest.er1 >conftest.err
  13320. rm -f conftest.er1
  13321. cat conftest.err >&5
  13322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13323. (exit $ac_status); } && {
  13324. test -z "$ac_cxx_werror_flag" ||
  13325. test ! -s conftest.err
  13326. } && test -s conftest$ac_exeext &&
  13327. $as_test_x conftest$ac_exeext; then
  13328. am_cv_langinfo_codeset=yes
  13329. else
  13330. echo "$as_me: failed program was:" >&5
  13331. sed 's/^/| /' conftest.$ac_ext >&5
  13332. am_cv_langinfo_codeset=no
  13333. fi
  13334. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13335. conftest$ac_exeext conftest.$ac_ext
  13336. fi
  13337. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  13338. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  13339. if test $am_cv_langinfo_codeset = yes; then
  13340. cat >>confdefs.h <<\_ACEOF
  13341. #define HAVE_LANGINFO_CODESET 1
  13342. _ACEOF
  13343. fi
  13344. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  13345. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  13346. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  13347. echo $ECHO_N "(cached) $ECHO_C" >&6
  13348. else
  13349. cat >conftest.$ac_ext <<_ACEOF
  13350. /* confdefs.h. */
  13351. _ACEOF
  13352. cat confdefs.h >>conftest.$ac_ext
  13353. cat >>conftest.$ac_ext <<_ACEOF
  13354. /* end confdefs.h. */
  13355. #include <locale.h>
  13356. int
  13357. main ()
  13358. {
  13359. return LC_MESSAGES
  13360. ;
  13361. return 0;
  13362. }
  13363. _ACEOF
  13364. rm -f conftest.$ac_objext conftest$ac_exeext
  13365. if { (ac_try="$ac_link"
  13366. case "(($ac_try" in
  13367. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13368. *) ac_try_echo=$ac_try;;
  13369. esac
  13370. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13371. (eval "$ac_link") 2>conftest.er1
  13372. ac_status=$?
  13373. grep -v '^ *+' conftest.er1 >conftest.err
  13374. rm -f conftest.er1
  13375. cat conftest.err >&5
  13376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13377. (exit $ac_status); } && {
  13378. test -z "$ac_cxx_werror_flag" ||
  13379. test ! -s conftest.err
  13380. } && test -s conftest$ac_exeext &&
  13381. $as_test_x conftest$ac_exeext; then
  13382. gt_cv_val_LC_MESSAGES=yes
  13383. else
  13384. echo "$as_me: failed program was:" >&5
  13385. sed 's/^/| /' conftest.$ac_ext >&5
  13386. gt_cv_val_LC_MESSAGES=no
  13387. fi
  13388. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13389. conftest$ac_exeext conftest.$ac_ext
  13390. fi
  13391. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  13392. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  13393. if test $gt_cv_val_LC_MESSAGES = yes; then
  13394. cat >>confdefs.h <<\_ACEOF
  13395. #define HAVE_LC_MESSAGES 1
  13396. _ACEOF
  13397. fi
  13398. if test "$enable_shared" = yes; then
  13399. case "$host_os" in
  13400. mingw* | cygwin*) is_woe32dll=yes ;;
  13401. *) is_woe32dll=no ;;
  13402. esac
  13403. else
  13404. is_woe32dll=no
  13405. fi
  13406. WOE32DLL=$is_woe32dll
  13407. case "$host_os" in
  13408. mingw* | cygwin*) is_woe32=yes ;;
  13409. *) is_woe32=no ;;
  13410. esac
  13411. WOE32=$is_woe32
  13412. if test $WOE32 = yes; then
  13413. if test -n "$ac_tool_prefix"; then
  13414. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  13415. set dummy ${ac_tool_prefix}windres; ac_word=$2
  13416. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13417. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13418. if test "${ac_cv_prog_WINDRES+set}" = set; then
  13419. echo $ECHO_N "(cached) $ECHO_C" >&6
  13420. else
  13421. if test -n "$WINDRES"; then
  13422. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  13423. else
  13424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13425. for as_dir in $PATH
  13426. do
  13427. IFS=$as_save_IFS
  13428. test -z "$as_dir" && as_dir=.
  13429. for ac_exec_ext in '' $ac_executable_extensions; do
  13430. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13431. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  13432. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13433. break 2
  13434. fi
  13435. done
  13436. done
  13437. IFS=$as_save_IFS
  13438. fi
  13439. fi
  13440. WINDRES=$ac_cv_prog_WINDRES
  13441. if test -n "$WINDRES"; then
  13442. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  13443. echo "${ECHO_T}$WINDRES" >&6; }
  13444. else
  13445. { echo "$as_me:$LINENO: result: no" >&5
  13446. echo "${ECHO_T}no" >&6; }
  13447. fi
  13448. fi
  13449. if test -z "$ac_cv_prog_WINDRES"; then
  13450. ac_ct_WINDRES=$WINDRES
  13451. # Extract the first word of "windres", so it can be a program name with args.
  13452. set dummy windres; ac_word=$2
  13453. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13454. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13455. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  13456. echo $ECHO_N "(cached) $ECHO_C" >&6
  13457. else
  13458. if test -n "$ac_ct_WINDRES"; then
  13459. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13460. else
  13461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13462. for as_dir in $PATH
  13463. do
  13464. IFS=$as_save_IFS
  13465. test -z "$as_dir" && as_dir=.
  13466. for ac_exec_ext in '' $ac_executable_extensions; do
  13467. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13468. ac_cv_prog_ac_ct_WINDRES="windres"
  13469. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13470. break 2
  13471. fi
  13472. done
  13473. done
  13474. IFS=$as_save_IFS
  13475. fi
  13476. fi
  13477. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13478. if test -n "$ac_ct_WINDRES"; then
  13479. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  13480. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  13481. else
  13482. { echo "$as_me:$LINENO: result: no" >&5
  13483. echo "${ECHO_T}no" >&6; }
  13484. fi
  13485. if test "x$ac_ct_WINDRES" = x; then
  13486. WINDRES=""
  13487. else
  13488. case $cross_compiling:$ac_tool_warned in
  13489. yes:)
  13490. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  13491. whose name does not start with the host triplet. If you think this
  13492. configuration is useful to you, please write to autoconf@gnu.org." >&5
  13493. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  13494. whose name does not start with the host triplet. If you think this
  13495. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  13496. ac_tool_warned=yes ;;
  13497. esac
  13498. WINDRES=$ac_ct_WINDRES
  13499. fi
  13500. else
  13501. WINDRES="$ac_cv_prog_WINDRES"
  13502. fi
  13503. fi
  13504. case "$host_os" in
  13505. hpux*) LTLIBC="" ;;
  13506. *) LTLIBC="-lc" ;;
  13507. esac
  13508. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  13509. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  13510. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  13511. echo $ECHO_N "(cached) $ECHO_C" >&6
  13512. else
  13513. gt_save_LIBS="$LIBS"
  13514. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13515. cat >conftest.$ac_ext <<_ACEOF
  13516. /* confdefs.h. */
  13517. _ACEOF
  13518. cat confdefs.h >>conftest.$ac_ext
  13519. cat >>conftest.$ac_ext <<_ACEOF
  13520. /* end confdefs.h. */
  13521. #include <CoreFoundation/CFPreferences.h>
  13522. int
  13523. main ()
  13524. {
  13525. CFPreferencesCopyAppValue(NULL, NULL)
  13526. ;
  13527. return 0;
  13528. }
  13529. _ACEOF
  13530. rm -f conftest.$ac_objext conftest$ac_exeext
  13531. if { (ac_try="$ac_link"
  13532. case "(($ac_try" in
  13533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13534. *) ac_try_echo=$ac_try;;
  13535. esac
  13536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13537. (eval "$ac_link") 2>conftest.er1
  13538. ac_status=$?
  13539. grep -v '^ *+' conftest.er1 >conftest.err
  13540. rm -f conftest.er1
  13541. cat conftest.err >&5
  13542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13543. (exit $ac_status); } && {
  13544. test -z "$ac_cxx_werror_flag" ||
  13545. test ! -s conftest.err
  13546. } && test -s conftest$ac_exeext &&
  13547. $as_test_x conftest$ac_exeext; then
  13548. gt_cv_func_CFPreferencesCopyAppValue=yes
  13549. else
  13550. echo "$as_me: failed program was:" >&5
  13551. sed 's/^/| /' conftest.$ac_ext >&5
  13552. gt_cv_func_CFPreferencesCopyAppValue=no
  13553. fi
  13554. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13555. conftest$ac_exeext conftest.$ac_ext
  13556. LIBS="$gt_save_LIBS"
  13557. fi
  13558. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  13559. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  13560. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  13561. cat >>confdefs.h <<\_ACEOF
  13562. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  13563. _ACEOF
  13564. fi
  13565. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  13566. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  13567. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  13568. echo $ECHO_N "(cached) $ECHO_C" >&6
  13569. else
  13570. gt_save_LIBS="$LIBS"
  13571. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13572. cat >conftest.$ac_ext <<_ACEOF
  13573. /* confdefs.h. */
  13574. _ACEOF
  13575. cat confdefs.h >>conftest.$ac_ext
  13576. cat >>conftest.$ac_ext <<_ACEOF
  13577. /* end confdefs.h. */
  13578. #include <CoreFoundation/CFLocale.h>
  13579. int
  13580. main ()
  13581. {
  13582. CFLocaleCopyCurrent();
  13583. ;
  13584. return 0;
  13585. }
  13586. _ACEOF
  13587. rm -f conftest.$ac_objext conftest$ac_exeext
  13588. if { (ac_try="$ac_link"
  13589. case "(($ac_try" in
  13590. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13591. *) ac_try_echo=$ac_try;;
  13592. esac
  13593. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13594. (eval "$ac_link") 2>conftest.er1
  13595. ac_status=$?
  13596. grep -v '^ *+' conftest.er1 >conftest.err
  13597. rm -f conftest.er1
  13598. cat conftest.err >&5
  13599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13600. (exit $ac_status); } && {
  13601. test -z "$ac_cxx_werror_flag" ||
  13602. test ! -s conftest.err
  13603. } && test -s conftest$ac_exeext &&
  13604. $as_test_x conftest$ac_exeext; then
  13605. gt_cv_func_CFLocaleCopyCurrent=yes
  13606. else
  13607. echo "$as_me: failed program was:" >&5
  13608. sed 's/^/| /' conftest.$ac_ext >&5
  13609. gt_cv_func_CFLocaleCopyCurrent=no
  13610. fi
  13611. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13612. conftest$ac_exeext conftest.$ac_ext
  13613. LIBS="$gt_save_LIBS"
  13614. fi
  13615. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  13616. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  13617. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  13618. cat >>confdefs.h <<\_ACEOF
  13619. #define HAVE_CFLOCALECOPYCURRENT 1
  13620. _ACEOF
  13621. fi
  13622. INTL_MACOSX_LIBS=
  13623. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  13624. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  13625. fi
  13626. BUILD_INCLUDED_LIBINTL=no
  13627. USE_INCLUDED_LIBINTL=no
  13628. LIBINTL=
  13629. LTLIBINTL=
  13630. POSUB=
  13631. case " $gt_needs " in
  13632. *" need-formatstring-macros "*) gt_api_version=3 ;;
  13633. *" need-ngettext "*) gt_api_version=2 ;;
  13634. *) gt_api_version=1 ;;
  13635. esac
  13636. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  13637. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  13638. if test "$USE_NLS" = "yes"; then
  13639. gt_use_preinstalled_gnugettext=no
  13640. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  13641. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  13642. # Check whether --with-included-gettext was given.
  13643. if test "${with_included_gettext+set}" = set; then
  13644. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  13645. else
  13646. nls_cv_force_use_gnu_gettext=no
  13647. fi
  13648. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  13649. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  13650. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  13651. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  13652. if test $gt_api_version -ge 3; then
  13653. gt_revision_test_code='
  13654. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  13655. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  13656. #endif
  13657. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  13658. '
  13659. else
  13660. gt_revision_test_code=
  13661. fi
  13662. if test $gt_api_version -ge 2; then
  13663. gt_expression_test_code=' + * ngettext ("", "", 0)'
  13664. else
  13665. gt_expression_test_code=
  13666. fi
  13667. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  13668. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  13669. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  13670. echo $ECHO_N "(cached) $ECHO_C" >&6
  13671. else
  13672. cat >conftest.$ac_ext <<_ACEOF
  13673. /* confdefs.h. */
  13674. _ACEOF
  13675. cat confdefs.h >>conftest.$ac_ext
  13676. cat >>conftest.$ac_ext <<_ACEOF
  13677. /* end confdefs.h. */
  13678. #include <libintl.h>
  13679. $gt_revision_test_code
  13680. extern int _nl_msg_cat_cntr;
  13681. extern int *_nl_domain_bindings;
  13682. int
  13683. main ()
  13684. {
  13685. bindtextdomain ("", "");
  13686. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  13687. ;
  13688. return 0;
  13689. }
  13690. _ACEOF
  13691. rm -f conftest.$ac_objext conftest$ac_exeext
  13692. if { (ac_try="$ac_link"
  13693. case "(($ac_try" in
  13694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13695. *) ac_try_echo=$ac_try;;
  13696. esac
  13697. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13698. (eval "$ac_link") 2>conftest.er1
  13699. ac_status=$?
  13700. grep -v '^ *+' conftest.er1 >conftest.err
  13701. rm -f conftest.er1
  13702. cat conftest.err >&5
  13703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13704. (exit $ac_status); } && {
  13705. test -z "$ac_cxx_werror_flag" ||
  13706. test ! -s conftest.err
  13707. } && test -s conftest$ac_exeext &&
  13708. $as_test_x conftest$ac_exeext; then
  13709. eval "$gt_func_gnugettext_libc=yes"
  13710. else
  13711. echo "$as_me: failed program was:" >&5
  13712. sed 's/^/| /' conftest.$ac_ext >&5
  13713. eval "$gt_func_gnugettext_libc=no"
  13714. fi
  13715. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13716. conftest$ac_exeext conftest.$ac_ext
  13717. fi
  13718. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  13719. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13720. echo "${ECHO_T}$ac_res" >&6; }
  13721. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  13722. use_additional=yes
  13723. acl_save_prefix="$prefix"
  13724. prefix="$acl_final_prefix"
  13725. acl_save_exec_prefix="$exec_prefix"
  13726. exec_prefix="$acl_final_exec_prefix"
  13727. eval additional_includedir=\"$includedir\"
  13728. eval additional_libdir=\"$libdir\"
  13729. exec_prefix="$acl_save_exec_prefix"
  13730. prefix="$acl_save_prefix"
  13731. # Check whether --with-libintl-prefix was given.
  13732. if test "${with_libintl_prefix+set}" = set; then
  13733. withval=$with_libintl_prefix;
  13734. if test "X$withval" = "Xno"; then
  13735. use_additional=no
  13736. else
  13737. if test "X$withval" = "X"; then
  13738. acl_save_prefix="$prefix"
  13739. prefix="$acl_final_prefix"
  13740. acl_save_exec_prefix="$exec_prefix"
  13741. exec_prefix="$acl_final_exec_prefix"
  13742. eval additional_includedir=\"$includedir\"
  13743. eval additional_libdir=\"$libdir\"
  13744. exec_prefix="$acl_save_exec_prefix"
  13745. prefix="$acl_save_prefix"
  13746. else
  13747. additional_includedir="$withval/include"
  13748. additional_libdir="$withval/$acl_libdirstem"
  13749. fi
  13750. fi
  13751. fi
  13752. LIBINTL=
  13753. LTLIBINTL=
  13754. INCINTL=
  13755. LIBINTL_PREFIX=
  13756. rpathdirs=
  13757. ltrpathdirs=
  13758. names_already_handled=
  13759. names_next_round='intl '
  13760. while test -n "$names_next_round"; do
  13761. names_this_round="$names_next_round"
  13762. names_next_round=
  13763. for name in $names_this_round; do
  13764. already_handled=
  13765. for n in $names_already_handled; do
  13766. if test "$n" = "$name"; then
  13767. already_handled=yes
  13768. break
  13769. fi
  13770. done
  13771. if test -z "$already_handled"; then
  13772. names_already_handled="$names_already_handled $name"
  13773. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  13774. eval value=\"\$HAVE_LIB$uppername\"
  13775. if test -n "$value"; then
  13776. if test "$value" = yes; then
  13777. eval value=\"\$LIB$uppername\"
  13778. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  13779. eval value=\"\$LTLIB$uppername\"
  13780. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  13781. else
  13782. :
  13783. fi
  13784. else
  13785. found_dir=
  13786. found_la=
  13787. found_so=
  13788. found_a=
  13789. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  13790. if test -n "$acl_shlibext"; then
  13791. shrext=".$acl_shlibext" # typically: shrext=.so
  13792. else
  13793. shrext=
  13794. fi
  13795. if test $use_additional = yes; then
  13796. dir="$additional_libdir"
  13797. if test -n "$acl_shlibext"; then
  13798. if test -f "$dir/$libname$shrext"; then
  13799. found_dir="$dir"
  13800. found_so="$dir/$libname$shrext"
  13801. else
  13802. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13803. ver=`(cd "$dir" && \
  13804. for f in "$libname$shrext".*; do echo "$f"; done \
  13805. | sed -e "s,^$libname$shrext\\\\.,," \
  13806. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13807. | sed 1q ) 2>/dev/null`
  13808. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13809. found_dir="$dir"
  13810. found_so="$dir/$libname$shrext.$ver"
  13811. fi
  13812. else
  13813. eval library_names=\"$acl_library_names_spec\"
  13814. for f in $library_names; do
  13815. if test -f "$dir/$f"; then
  13816. found_dir="$dir"
  13817. found_so="$dir/$f"
  13818. break
  13819. fi
  13820. done
  13821. fi
  13822. fi
  13823. fi
  13824. if test "X$found_dir" = "X"; then
  13825. if test -f "$dir/$libname.$acl_libext"; then
  13826. found_dir="$dir"
  13827. found_a="$dir/$libname.$acl_libext"
  13828. fi
  13829. fi
  13830. if test "X$found_dir" != "X"; then
  13831. if test -f "$dir/$libname.la"; then
  13832. found_la="$dir/$libname.la"
  13833. fi
  13834. fi
  13835. fi
  13836. if test "X$found_dir" = "X"; then
  13837. for x in $LDFLAGS $LTLIBINTL; do
  13838. acl_save_prefix="$prefix"
  13839. prefix="$acl_final_prefix"
  13840. acl_save_exec_prefix="$exec_prefix"
  13841. exec_prefix="$acl_final_exec_prefix"
  13842. eval x=\"$x\"
  13843. exec_prefix="$acl_save_exec_prefix"
  13844. prefix="$acl_save_prefix"
  13845. case "$x" in
  13846. -L*)
  13847. dir=`echo "X$x" | sed -e 's/^X-L//'`
  13848. if test -n "$acl_shlibext"; then
  13849. if test -f "$dir/$libname$shrext"; then
  13850. found_dir="$dir"
  13851. found_so="$dir/$libname$shrext"
  13852. else
  13853. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13854. ver=`(cd "$dir" && \
  13855. for f in "$libname$shrext".*; do echo "$f"; done \
  13856. | sed -e "s,^$libname$shrext\\\\.,," \
  13857. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13858. | sed 1q ) 2>/dev/null`
  13859. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13860. found_dir="$dir"
  13861. found_so="$dir/$libname$shrext.$ver"
  13862. fi
  13863. else
  13864. eval library_names=\"$acl_library_names_spec\"
  13865. for f in $library_names; do
  13866. if test -f "$dir/$f"; then
  13867. found_dir="$dir"
  13868. found_so="$dir/$f"
  13869. break
  13870. fi
  13871. done
  13872. fi
  13873. fi
  13874. fi
  13875. if test "X$found_dir" = "X"; then
  13876. if test -f "$dir/$libname.$acl_libext"; then
  13877. found_dir="$dir"
  13878. found_a="$dir/$libname.$acl_libext"
  13879. fi
  13880. fi
  13881. if test "X$found_dir" != "X"; then
  13882. if test -f "$dir/$libname.la"; then
  13883. found_la="$dir/$libname.la"
  13884. fi
  13885. fi
  13886. ;;
  13887. esac
  13888. if test "X$found_dir" != "X"; then
  13889. break
  13890. fi
  13891. done
  13892. fi
  13893. if test "X$found_dir" != "X"; then
  13894. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  13895. if test "X$found_so" != "X"; then
  13896. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  13897. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13898. else
  13899. haveit=
  13900. for x in $ltrpathdirs; do
  13901. if test "X$x" = "X$found_dir"; then
  13902. haveit=yes
  13903. break
  13904. fi
  13905. done
  13906. if test -z "$haveit"; then
  13907. ltrpathdirs="$ltrpathdirs $found_dir"
  13908. fi
  13909. if test "$acl_hardcode_direct" = yes; then
  13910. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13911. else
  13912. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  13913. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13914. haveit=
  13915. for x in $rpathdirs; do
  13916. if test "X$x" = "X$found_dir"; then
  13917. haveit=yes
  13918. break
  13919. fi
  13920. done
  13921. if test -z "$haveit"; then
  13922. rpathdirs="$rpathdirs $found_dir"
  13923. fi
  13924. else
  13925. haveit=
  13926. for x in $LDFLAGS $LIBINTL; do
  13927. acl_save_prefix="$prefix"
  13928. prefix="$acl_final_prefix"
  13929. acl_save_exec_prefix="$exec_prefix"
  13930. exec_prefix="$acl_final_exec_prefix"
  13931. eval x=\"$x\"
  13932. exec_prefix="$acl_save_exec_prefix"
  13933. prefix="$acl_save_prefix"
  13934. if test "X$x" = "X-L$found_dir"; then
  13935. haveit=yes
  13936. break
  13937. fi
  13938. done
  13939. if test -z "$haveit"; then
  13940. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  13941. fi
  13942. if test "$acl_hardcode_minus_L" != no; then
  13943. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13944. else
  13945. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  13946. fi
  13947. fi
  13948. fi
  13949. fi
  13950. else
  13951. if test "X$found_a" != "X"; then
  13952. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  13953. else
  13954. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  13955. fi
  13956. fi
  13957. additional_includedir=
  13958. case "$found_dir" in
  13959. */$acl_libdirstem | */$acl_libdirstem/)
  13960. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  13961. LIBINTL_PREFIX="$basedir"
  13962. additional_includedir="$basedir/include"
  13963. ;;
  13964. esac
  13965. if test "X$additional_includedir" != "X"; then
  13966. if test "X$additional_includedir" != "X/usr/include"; then
  13967. haveit=
  13968. if test "X$additional_includedir" = "X/usr/local/include"; then
  13969. if test -n "$GCC"; then
  13970. case $host_os in
  13971. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13972. esac
  13973. fi
  13974. fi
  13975. if test -z "$haveit"; then
  13976. for x in $CPPFLAGS $INCINTL; do
  13977. acl_save_prefix="$prefix"
  13978. prefix="$acl_final_prefix"
  13979. acl_save_exec_prefix="$exec_prefix"
  13980. exec_prefix="$acl_final_exec_prefix"
  13981. eval x=\"$x\"
  13982. exec_prefix="$acl_save_exec_prefix"
  13983. prefix="$acl_save_prefix"
  13984. if test "X$x" = "X-I$additional_includedir"; then
  13985. haveit=yes
  13986. break
  13987. fi
  13988. done
  13989. if test -z "$haveit"; then
  13990. if test -d "$additional_includedir"; then
  13991. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  13992. fi
  13993. fi
  13994. fi
  13995. fi
  13996. fi
  13997. if test -n "$found_la"; then
  13998. save_libdir="$libdir"
  13999. case "$found_la" in
  14000. */* | *\\*) . "$found_la" ;;
  14001. *) . "./$found_la" ;;
  14002. esac
  14003. libdir="$save_libdir"
  14004. for dep in $dependency_libs; do
  14005. case "$dep" in
  14006. -L*)
  14007. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  14008. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  14009. haveit=
  14010. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  14011. if test -n "$GCC"; then
  14012. case $host_os in
  14013. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  14014. esac
  14015. fi
  14016. fi
  14017. if test -z "$haveit"; then
  14018. haveit=
  14019. for x in $LDFLAGS $LIBINTL; do
  14020. acl_save_prefix="$prefix"
  14021. prefix="$acl_final_prefix"
  14022. acl_save_exec_prefix="$exec_prefix"
  14023. exec_prefix="$acl_final_exec_prefix"
  14024. eval x=\"$x\"
  14025. exec_prefix="$acl_save_exec_prefix"
  14026. prefix="$acl_save_prefix"
  14027. if test "X$x" = "X-L$additional_libdir"; then
  14028. haveit=yes
  14029. break
  14030. fi
  14031. done
  14032. if test -z "$haveit"; then
  14033. if test -d "$additional_libdir"; then
  14034. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  14035. fi
  14036. fi
  14037. haveit=
  14038. for x in $LDFLAGS $LTLIBINTL; do
  14039. acl_save_prefix="$prefix"
  14040. prefix="$acl_final_prefix"
  14041. acl_save_exec_prefix="$exec_prefix"
  14042. exec_prefix="$acl_final_exec_prefix"
  14043. eval x=\"$x\"
  14044. exec_prefix="$acl_save_exec_prefix"
  14045. prefix="$acl_save_prefix"
  14046. if test "X$x" = "X-L$additional_libdir"; then
  14047. haveit=yes
  14048. break
  14049. fi
  14050. done
  14051. if test -z "$haveit"; then
  14052. if test -d "$additional_libdir"; then
  14053. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  14054. fi
  14055. fi
  14056. fi
  14057. fi
  14058. ;;
  14059. -R*)
  14060. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  14061. if test "$enable_rpath" != no; then
  14062. haveit=
  14063. for x in $rpathdirs; do
  14064. if test "X$x" = "X$dir"; then
  14065. haveit=yes
  14066. break
  14067. fi
  14068. done
  14069. if test -z "$haveit"; then
  14070. rpathdirs="$rpathdirs $dir"
  14071. fi
  14072. haveit=
  14073. for x in $ltrpathdirs; do
  14074. if test "X$x" = "X$dir"; then
  14075. haveit=yes
  14076. break
  14077. fi
  14078. done
  14079. if test -z "$haveit"; then
  14080. ltrpathdirs="$ltrpathdirs $dir"
  14081. fi
  14082. fi
  14083. ;;
  14084. -l*)
  14085. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  14086. ;;
  14087. *.la)
  14088. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  14089. ;;
  14090. *)
  14091. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  14092. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  14093. ;;
  14094. esac
  14095. done
  14096. fi
  14097. else
  14098. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  14099. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  14100. fi
  14101. fi
  14102. fi
  14103. done
  14104. done
  14105. if test "X$rpathdirs" != "X"; then
  14106. if test -n "$acl_hardcode_libdir_separator"; then
  14107. alldirs=
  14108. for found_dir in $rpathdirs; do
  14109. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  14110. done
  14111. acl_save_libdir="$libdir"
  14112. libdir="$alldirs"
  14113. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  14114. libdir="$acl_save_libdir"
  14115. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  14116. else
  14117. for found_dir in $rpathdirs; do
  14118. acl_save_libdir="$libdir"
  14119. libdir="$found_dir"
  14120. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  14121. libdir="$acl_save_libdir"
  14122. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  14123. done
  14124. fi
  14125. fi
  14126. if test "X$ltrpathdirs" != "X"; then
  14127. for found_dir in $ltrpathdirs; do
  14128. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  14129. done
  14130. fi
  14131. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  14132. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  14133. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  14134. echo $ECHO_N "(cached) $ECHO_C" >&6
  14135. else
  14136. gt_save_CPPFLAGS="$CPPFLAGS"
  14137. CPPFLAGS="$CPPFLAGS $INCINTL"
  14138. gt_save_LIBS="$LIBS"
  14139. LIBS="$LIBS $LIBINTL"
  14140. cat >conftest.$ac_ext <<_ACEOF
  14141. /* confdefs.h. */
  14142. _ACEOF
  14143. cat confdefs.h >>conftest.$ac_ext
  14144. cat >>conftest.$ac_ext <<_ACEOF
  14145. /* end confdefs.h. */
  14146. #include <libintl.h>
  14147. $gt_revision_test_code
  14148. extern int _nl_msg_cat_cntr;
  14149. extern
  14150. #ifdef __cplusplus
  14151. "C"
  14152. #endif
  14153. const char *_nl_expand_alias (const char *);
  14154. int
  14155. main ()
  14156. {
  14157. bindtextdomain ("", "");
  14158. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  14159. ;
  14160. return 0;
  14161. }
  14162. _ACEOF
  14163. rm -f conftest.$ac_objext conftest$ac_exeext
  14164. if { (ac_try="$ac_link"
  14165. case "(($ac_try" in
  14166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14167. *) ac_try_echo=$ac_try;;
  14168. esac
  14169. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14170. (eval "$ac_link") 2>conftest.er1
  14171. ac_status=$?
  14172. grep -v '^ *+' conftest.er1 >conftest.err
  14173. rm -f conftest.er1
  14174. cat conftest.err >&5
  14175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14176. (exit $ac_status); } && {
  14177. test -z "$ac_cxx_werror_flag" ||
  14178. test ! -s conftest.err
  14179. } && test -s conftest$ac_exeext &&
  14180. $as_test_x conftest$ac_exeext; then
  14181. eval "$gt_func_gnugettext_libintl=yes"
  14182. else
  14183. echo "$as_me: failed program was:" >&5
  14184. sed 's/^/| /' conftest.$ac_ext >&5
  14185. eval "$gt_func_gnugettext_libintl=no"
  14186. fi
  14187. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14188. conftest$ac_exeext conftest.$ac_ext
  14189. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  14190. LIBS="$LIBS $LIBICONV"
  14191. cat >conftest.$ac_ext <<_ACEOF
  14192. /* confdefs.h. */
  14193. _ACEOF
  14194. cat confdefs.h >>conftest.$ac_ext
  14195. cat >>conftest.$ac_ext <<_ACEOF
  14196. /* end confdefs.h. */
  14197. #include <libintl.h>
  14198. $gt_revision_test_code
  14199. extern int _nl_msg_cat_cntr;
  14200. extern
  14201. #ifdef __cplusplus
  14202. "C"
  14203. #endif
  14204. const char *_nl_expand_alias (const char *);
  14205. int
  14206. main ()
  14207. {
  14208. bindtextdomain ("", "");
  14209. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  14210. ;
  14211. return 0;
  14212. }
  14213. _ACEOF
  14214. rm -f conftest.$ac_objext conftest$ac_exeext
  14215. if { (ac_try="$ac_link"
  14216. case "(($ac_try" in
  14217. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14218. *) ac_try_echo=$ac_try;;
  14219. esac
  14220. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14221. (eval "$ac_link") 2>conftest.er1
  14222. ac_status=$?
  14223. grep -v '^ *+' conftest.er1 >conftest.err
  14224. rm -f conftest.er1
  14225. cat conftest.err >&5
  14226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14227. (exit $ac_status); } && {
  14228. test -z "$ac_cxx_werror_flag" ||
  14229. test ! -s conftest.err
  14230. } && test -s conftest$ac_exeext &&
  14231. $as_test_x conftest$ac_exeext; then
  14232. LIBINTL="$LIBINTL $LIBICONV"
  14233. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  14234. eval "$gt_func_gnugettext_libintl=yes"
  14235. else
  14236. echo "$as_me: failed program was:" >&5
  14237. sed 's/^/| /' conftest.$ac_ext >&5
  14238. fi
  14239. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14240. conftest$ac_exeext conftest.$ac_ext
  14241. fi
  14242. CPPFLAGS="$gt_save_CPPFLAGS"
  14243. LIBS="$gt_save_LIBS"
  14244. fi
  14245. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  14246. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14247. echo "${ECHO_T}$ac_res" >&6; }
  14248. fi
  14249. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  14250. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  14251. && test "$PACKAGE" != gettext-runtime \
  14252. && test "$PACKAGE" != gettext-tools; }; then
  14253. gt_use_preinstalled_gnugettext=yes
  14254. else
  14255. LIBINTL=
  14256. LTLIBINTL=
  14257. INCINTL=
  14258. fi
  14259. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  14260. nls_cv_use_gnu_gettext=yes
  14261. fi
  14262. fi
  14263. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  14264. BUILD_INCLUDED_LIBINTL=yes
  14265. USE_INCLUDED_LIBINTL=yes
  14266. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  14267. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  14268. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  14269. fi
  14270. CATOBJEXT=
  14271. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  14272. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  14273. CATOBJEXT=.gmo
  14274. fi
  14275. if test -n "$INTL_MACOSX_LIBS"; then
  14276. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  14277. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  14278. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  14279. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  14280. fi
  14281. fi
  14282. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  14283. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  14284. cat >>confdefs.h <<\_ACEOF
  14285. #define ENABLE_NLS 1
  14286. _ACEOF
  14287. else
  14288. USE_NLS=no
  14289. fi
  14290. fi
  14291. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  14292. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  14293. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  14294. echo "${ECHO_T}$USE_NLS" >&6; }
  14295. if test "$USE_NLS" = "yes"; then
  14296. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  14297. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  14298. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  14299. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  14300. gt_source="external libintl"
  14301. else
  14302. gt_source="libc"
  14303. fi
  14304. else
  14305. gt_source="included intl directory"
  14306. fi
  14307. { echo "$as_me:$LINENO: result: $gt_source" >&5
  14308. echo "${ECHO_T}$gt_source" >&6; }
  14309. fi
  14310. if test "$USE_NLS" = "yes"; then
  14311. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  14312. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  14313. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  14314. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  14315. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  14316. echo "${ECHO_T}$LIBINTL" >&6; }
  14317. for element in $INCINTL; do
  14318. haveit=
  14319. for x in $CPPFLAGS; do
  14320. acl_save_prefix="$prefix"
  14321. prefix="$acl_final_prefix"
  14322. acl_save_exec_prefix="$exec_prefix"
  14323. exec_prefix="$acl_final_exec_prefix"
  14324. eval x=\"$x\"
  14325. exec_prefix="$acl_save_exec_prefix"
  14326. prefix="$acl_save_prefix"
  14327. if test "X$x" = "X$element"; then
  14328. haveit=yes
  14329. break
  14330. fi
  14331. done
  14332. if test -z "$haveit"; then
  14333. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  14334. fi
  14335. done
  14336. fi
  14337. cat >>confdefs.h <<\_ACEOF
  14338. #define HAVE_GETTEXT 1
  14339. _ACEOF
  14340. cat >>confdefs.h <<\_ACEOF
  14341. #define HAVE_DCGETTEXT 1
  14342. _ACEOF
  14343. fi
  14344. POSUB=po
  14345. fi
  14346. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  14347. BUILD_INCLUDED_LIBINTL=yes
  14348. fi
  14349. nls_cv_header_intl=
  14350. nls_cv_header_libgt=
  14351. DATADIRNAME=share
  14352. INSTOBJEXT=.mo
  14353. GENCAT=gencat
  14354. INTLOBJS=
  14355. if test "$USE_INCLUDED_LIBINTL" = yes; then
  14356. INTLOBJS="\$(GETTOBJS)"
  14357. fi
  14358. INTL_LIBTOOL_SUFFIX_PREFIX=
  14359. INTLLIBS="$LIBINTL"
  14360. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  14361. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  14362. if test "${ac_cv_lib_error_at_line+set}" = set; then
  14363. echo $ECHO_N "(cached) $ECHO_C" >&6
  14364. else
  14365. cat >conftest.$ac_ext <<_ACEOF
  14366. /* confdefs.h. */
  14367. _ACEOF
  14368. cat confdefs.h >>conftest.$ac_ext
  14369. cat >>conftest.$ac_ext <<_ACEOF
  14370. /* end confdefs.h. */
  14371. #include <error.h>
  14372. int
  14373. main ()
  14374. {
  14375. error_at_line (0, 0, "", 0, "an error occurred");
  14376. ;
  14377. return 0;
  14378. }
  14379. _ACEOF
  14380. rm -f conftest.$ac_objext conftest$ac_exeext
  14381. if { (ac_try="$ac_link"
  14382. case "(($ac_try" in
  14383. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14384. *) ac_try_echo=$ac_try;;
  14385. esac
  14386. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14387. (eval "$ac_link") 2>conftest.er1
  14388. ac_status=$?
  14389. grep -v '^ *+' conftest.er1 >conftest.err
  14390. rm -f conftest.er1
  14391. cat conftest.err >&5
  14392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14393. (exit $ac_status); } && {
  14394. test -z "$ac_cxx_werror_flag" ||
  14395. test ! -s conftest.err
  14396. } && test -s conftest$ac_exeext &&
  14397. $as_test_x conftest$ac_exeext; then
  14398. ac_cv_lib_error_at_line=yes
  14399. else
  14400. echo "$as_me: failed program was:" >&5
  14401. sed 's/^/| /' conftest.$ac_ext >&5
  14402. ac_cv_lib_error_at_line=no
  14403. fi
  14404. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14405. conftest$ac_exeext conftest.$ac_ext
  14406. fi
  14407. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  14408. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  14409. if test $ac_cv_lib_error_at_line = no; then
  14410. case " $LIBOBJS " in
  14411. *" error.$ac_objext "* ) ;;
  14412. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  14413. ;;
  14414. esac
  14415. fi
  14416. case "$target" in
  14417. *mingw*)
  14418. ;;
  14419. *)
  14420. for ac_header in stdlib.h
  14421. do
  14422. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14423. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  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. fi
  14429. ac_res=`eval echo '${'$as_ac_Header'}'`
  14430. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14431. echo "${ECHO_T}$ac_res" >&6; }
  14432. else
  14433. # Is the header compilable?
  14434. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14435. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14436. cat >conftest.$ac_ext <<_ACEOF
  14437. /* confdefs.h. */
  14438. _ACEOF
  14439. cat confdefs.h >>conftest.$ac_ext
  14440. cat >>conftest.$ac_ext <<_ACEOF
  14441. /* end confdefs.h. */
  14442. $ac_includes_default
  14443. #include <$ac_header>
  14444. _ACEOF
  14445. rm -f conftest.$ac_objext
  14446. if { (ac_try="$ac_compile"
  14447. case "(($ac_try" in
  14448. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14449. *) ac_try_echo=$ac_try;;
  14450. esac
  14451. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14452. (eval "$ac_compile") 2>conftest.er1
  14453. ac_status=$?
  14454. grep -v '^ *+' conftest.er1 >conftest.err
  14455. rm -f conftest.er1
  14456. cat conftest.err >&5
  14457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14458. (exit $ac_status); } && {
  14459. test -z "$ac_cxx_werror_flag" ||
  14460. test ! -s conftest.err
  14461. } && test -s conftest.$ac_objext; then
  14462. ac_header_compiler=yes
  14463. else
  14464. echo "$as_me: failed program was:" >&5
  14465. sed 's/^/| /' conftest.$ac_ext >&5
  14466. ac_header_compiler=no
  14467. fi
  14468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14469. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14470. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14471. # Is the header present?
  14472. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14473. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14474. cat >conftest.$ac_ext <<_ACEOF
  14475. /* confdefs.h. */
  14476. _ACEOF
  14477. cat confdefs.h >>conftest.$ac_ext
  14478. cat >>conftest.$ac_ext <<_ACEOF
  14479. /* end confdefs.h. */
  14480. #include <$ac_header>
  14481. _ACEOF
  14482. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14483. case "(($ac_try" in
  14484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14485. *) ac_try_echo=$ac_try;;
  14486. esac
  14487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14488. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14489. ac_status=$?
  14490. grep -v '^ *+' conftest.er1 >conftest.err
  14491. rm -f conftest.er1
  14492. cat conftest.err >&5
  14493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14494. (exit $ac_status); } >/dev/null && {
  14495. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14496. test ! -s conftest.err
  14497. }; then
  14498. ac_header_preproc=yes
  14499. else
  14500. echo "$as_me: failed program was:" >&5
  14501. sed 's/^/| /' conftest.$ac_ext >&5
  14502. ac_header_preproc=no
  14503. fi
  14504. rm -f conftest.err conftest.$ac_ext
  14505. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14506. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14507. # So? What about this header?
  14508. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14509. yes:no: )
  14510. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14511. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14512. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14513. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14514. ac_header_preproc=yes
  14515. ;;
  14516. no:yes:* )
  14517. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14518. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14519. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14520. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14521. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14522. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14523. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14524. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14525. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14526. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14527. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14528. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14529. ( cat <<\_ASBOX
  14530. ## ----------------------------------------------- ##
  14531. ## Report this to t-tujikawa@users.sourceforge.net ##
  14532. ## ----------------------------------------------- ##
  14533. _ASBOX
  14534. ) | sed "s/^/$as_me: WARNING: /" >&2
  14535. ;;
  14536. esac
  14537. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14538. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14539. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14540. echo $ECHO_N "(cached) $ECHO_C" >&6
  14541. else
  14542. eval "$as_ac_Header=\$ac_header_preproc"
  14543. fi
  14544. ac_res=`eval echo '${'$as_ac_Header'}'`
  14545. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14546. echo "${ECHO_T}$ac_res" >&6; }
  14547. fi
  14548. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14549. cat >>confdefs.h <<_ACEOF
  14550. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14551. _ACEOF
  14552. fi
  14553. done
  14554. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  14555. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  14556. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  14557. echo $ECHO_N "(cached) $ECHO_C" >&6
  14558. else
  14559. if test "$cross_compiling" = yes; then
  14560. ac_cv_func_malloc_0_nonnull=no
  14561. else
  14562. cat >conftest.$ac_ext <<_ACEOF
  14563. /* confdefs.h. */
  14564. _ACEOF
  14565. cat confdefs.h >>conftest.$ac_ext
  14566. cat >>conftest.$ac_ext <<_ACEOF
  14567. /* end confdefs.h. */
  14568. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14569. # include <stdlib.h>
  14570. #else
  14571. char *malloc ();
  14572. #endif
  14573. int
  14574. main ()
  14575. {
  14576. return ! malloc (0);
  14577. ;
  14578. return 0;
  14579. }
  14580. _ACEOF
  14581. rm -f conftest$ac_exeext
  14582. if { (ac_try="$ac_link"
  14583. case "(($ac_try" in
  14584. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14585. *) ac_try_echo=$ac_try;;
  14586. esac
  14587. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14588. (eval "$ac_link") 2>&5
  14589. ac_status=$?
  14590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14591. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14592. { (case "(($ac_try" in
  14593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14594. *) ac_try_echo=$ac_try;;
  14595. esac
  14596. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14597. (eval "$ac_try") 2>&5
  14598. ac_status=$?
  14599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14600. (exit $ac_status); }; }; then
  14601. ac_cv_func_malloc_0_nonnull=yes
  14602. else
  14603. echo "$as_me: program exited with status $ac_status" >&5
  14604. echo "$as_me: failed program was:" >&5
  14605. sed 's/^/| /' conftest.$ac_ext >&5
  14606. ( exit $ac_status )
  14607. ac_cv_func_malloc_0_nonnull=no
  14608. fi
  14609. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14610. fi
  14611. fi
  14612. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  14613. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  14614. if test $ac_cv_func_malloc_0_nonnull = yes; then
  14615. cat >>confdefs.h <<\_ACEOF
  14616. #define HAVE_MALLOC 1
  14617. _ACEOF
  14618. else
  14619. cat >>confdefs.h <<\_ACEOF
  14620. #define HAVE_MALLOC 0
  14621. _ACEOF
  14622. case " $LIBOBJS " in
  14623. *" malloc.$ac_objext "* ) ;;
  14624. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14625. ;;
  14626. esac
  14627. cat >>confdefs.h <<\_ACEOF
  14628. #define malloc rpl_malloc
  14629. _ACEOF
  14630. fi
  14631. for ac_header in stdlib.h
  14632. do
  14633. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14634. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14635. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14636. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14637. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14638. echo $ECHO_N "(cached) $ECHO_C" >&6
  14639. fi
  14640. ac_res=`eval echo '${'$as_ac_Header'}'`
  14641. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14642. echo "${ECHO_T}$ac_res" >&6; }
  14643. else
  14644. # Is the header compilable?
  14645. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14646. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14647. cat >conftest.$ac_ext <<_ACEOF
  14648. /* confdefs.h. */
  14649. _ACEOF
  14650. cat confdefs.h >>conftest.$ac_ext
  14651. cat >>conftest.$ac_ext <<_ACEOF
  14652. /* end confdefs.h. */
  14653. $ac_includes_default
  14654. #include <$ac_header>
  14655. _ACEOF
  14656. rm -f conftest.$ac_objext
  14657. if { (ac_try="$ac_compile"
  14658. case "(($ac_try" in
  14659. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14660. *) ac_try_echo=$ac_try;;
  14661. esac
  14662. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14663. (eval "$ac_compile") 2>conftest.er1
  14664. ac_status=$?
  14665. grep -v '^ *+' conftest.er1 >conftest.err
  14666. rm -f conftest.er1
  14667. cat conftest.err >&5
  14668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14669. (exit $ac_status); } && {
  14670. test -z "$ac_cxx_werror_flag" ||
  14671. test ! -s conftest.err
  14672. } && test -s conftest.$ac_objext; then
  14673. ac_header_compiler=yes
  14674. else
  14675. echo "$as_me: failed program was:" >&5
  14676. sed 's/^/| /' conftest.$ac_ext >&5
  14677. ac_header_compiler=no
  14678. fi
  14679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14680. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14681. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14682. # Is the header present?
  14683. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14684. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14685. cat >conftest.$ac_ext <<_ACEOF
  14686. /* confdefs.h. */
  14687. _ACEOF
  14688. cat confdefs.h >>conftest.$ac_ext
  14689. cat >>conftest.$ac_ext <<_ACEOF
  14690. /* end confdefs.h. */
  14691. #include <$ac_header>
  14692. _ACEOF
  14693. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14694. case "(($ac_try" in
  14695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14696. *) ac_try_echo=$ac_try;;
  14697. esac
  14698. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14699. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14700. ac_status=$?
  14701. grep -v '^ *+' conftest.er1 >conftest.err
  14702. rm -f conftest.er1
  14703. cat conftest.err >&5
  14704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14705. (exit $ac_status); } >/dev/null && {
  14706. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14707. test ! -s conftest.err
  14708. }; then
  14709. ac_header_preproc=yes
  14710. else
  14711. echo "$as_me: failed program was:" >&5
  14712. sed 's/^/| /' conftest.$ac_ext >&5
  14713. ac_header_preproc=no
  14714. fi
  14715. rm -f conftest.err conftest.$ac_ext
  14716. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14717. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14718. # So? What about this header?
  14719. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14720. yes:no: )
  14721. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14722. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14723. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14724. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14725. ac_header_preproc=yes
  14726. ;;
  14727. no:yes:* )
  14728. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14729. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14730. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14731. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14732. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14733. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14734. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14735. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14736. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14737. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14738. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14739. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14740. ( cat <<\_ASBOX
  14741. ## ----------------------------------------------- ##
  14742. ## Report this to t-tujikawa@users.sourceforge.net ##
  14743. ## ----------------------------------------------- ##
  14744. _ASBOX
  14745. ) | sed "s/^/$as_me: WARNING: /" >&2
  14746. ;;
  14747. esac
  14748. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14749. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14750. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14751. echo $ECHO_N "(cached) $ECHO_C" >&6
  14752. else
  14753. eval "$as_ac_Header=\$ac_header_preproc"
  14754. fi
  14755. ac_res=`eval echo '${'$as_ac_Header'}'`
  14756. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14757. echo "${ECHO_T}$ac_res" >&6; }
  14758. fi
  14759. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14760. cat >>confdefs.h <<_ACEOF
  14761. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14762. _ACEOF
  14763. fi
  14764. done
  14765. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  14766. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  14767. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  14768. echo $ECHO_N "(cached) $ECHO_C" >&6
  14769. else
  14770. if test "$cross_compiling" = yes; then
  14771. ac_cv_func_realloc_0_nonnull=no
  14772. else
  14773. cat >conftest.$ac_ext <<_ACEOF
  14774. /* confdefs.h. */
  14775. _ACEOF
  14776. cat confdefs.h >>conftest.$ac_ext
  14777. cat >>conftest.$ac_ext <<_ACEOF
  14778. /* end confdefs.h. */
  14779. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14780. # include <stdlib.h>
  14781. #else
  14782. char *realloc ();
  14783. #endif
  14784. int
  14785. main ()
  14786. {
  14787. return ! realloc (0, 0);
  14788. ;
  14789. return 0;
  14790. }
  14791. _ACEOF
  14792. rm -f conftest$ac_exeext
  14793. if { (ac_try="$ac_link"
  14794. case "(($ac_try" in
  14795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14796. *) ac_try_echo=$ac_try;;
  14797. esac
  14798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14799. (eval "$ac_link") 2>&5
  14800. ac_status=$?
  14801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14802. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14803. { (case "(($ac_try" in
  14804. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14805. *) ac_try_echo=$ac_try;;
  14806. esac
  14807. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14808. (eval "$ac_try") 2>&5
  14809. ac_status=$?
  14810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14811. (exit $ac_status); }; }; then
  14812. ac_cv_func_realloc_0_nonnull=yes
  14813. else
  14814. echo "$as_me: program exited with status $ac_status" >&5
  14815. echo "$as_me: failed program was:" >&5
  14816. sed 's/^/| /' conftest.$ac_ext >&5
  14817. ( exit $ac_status )
  14818. ac_cv_func_realloc_0_nonnull=no
  14819. fi
  14820. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14821. fi
  14822. fi
  14823. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  14824. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  14825. if test $ac_cv_func_realloc_0_nonnull = yes; then
  14826. cat >>confdefs.h <<\_ACEOF
  14827. #define HAVE_REALLOC 1
  14828. _ACEOF
  14829. else
  14830. cat >>confdefs.h <<\_ACEOF
  14831. #define HAVE_REALLOC 0
  14832. _ACEOF
  14833. case " $LIBOBJS " in
  14834. *" realloc.$ac_objext "* ) ;;
  14835. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  14836. ;;
  14837. esac
  14838. cat >>confdefs.h <<\_ACEOF
  14839. #define realloc rpl_realloc
  14840. _ACEOF
  14841. fi
  14842. ;;
  14843. esac
  14844. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  14845. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  14846. if test "${ac_cv_func_memcmp_working+set}" = set; then
  14847. echo $ECHO_N "(cached) $ECHO_C" >&6
  14848. else
  14849. if test "$cross_compiling" = yes; then
  14850. ac_cv_func_memcmp_working=no
  14851. else
  14852. cat >conftest.$ac_ext <<_ACEOF
  14853. /* confdefs.h. */
  14854. _ACEOF
  14855. cat confdefs.h >>conftest.$ac_ext
  14856. cat >>conftest.$ac_ext <<_ACEOF
  14857. /* end confdefs.h. */
  14858. $ac_includes_default
  14859. int
  14860. main ()
  14861. {
  14862. /* Some versions of memcmp are not 8-bit clean. */
  14863. char c0 = '\100', c1 = '\200', c2 = '\201';
  14864. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14865. return 1;
  14866. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14867. or more and with at least one buffer not starting on a 4-byte boundary.
  14868. William Lewis provided this test program. */
  14869. {
  14870. char foo[21];
  14871. char bar[21];
  14872. int i;
  14873. for (i = 0; i < 4; i++)
  14874. {
  14875. char *a = foo + i;
  14876. char *b = bar + i;
  14877. strcpy (a, "--------01111111");
  14878. strcpy (b, "--------10000000");
  14879. if (memcmp (a, b, 16) >= 0)
  14880. return 1;
  14881. }
  14882. return 0;
  14883. }
  14884. ;
  14885. return 0;
  14886. }
  14887. _ACEOF
  14888. rm -f conftest$ac_exeext
  14889. if { (ac_try="$ac_link"
  14890. case "(($ac_try" in
  14891. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14892. *) ac_try_echo=$ac_try;;
  14893. esac
  14894. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14895. (eval "$ac_link") 2>&5
  14896. ac_status=$?
  14897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14898. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14899. { (case "(($ac_try" in
  14900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14901. *) ac_try_echo=$ac_try;;
  14902. esac
  14903. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14904. (eval "$ac_try") 2>&5
  14905. ac_status=$?
  14906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14907. (exit $ac_status); }; }; then
  14908. ac_cv_func_memcmp_working=yes
  14909. else
  14910. echo "$as_me: program exited with status $ac_status" >&5
  14911. echo "$as_me: failed program was:" >&5
  14912. sed 's/^/| /' conftest.$ac_ext >&5
  14913. ( exit $ac_status )
  14914. ac_cv_func_memcmp_working=no
  14915. fi
  14916. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14917. fi
  14918. fi
  14919. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  14920. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  14921. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14922. *" memcmp.$ac_objext "* ) ;;
  14923. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14924. ;;
  14925. esac
  14926. for ac_header in stdlib.h unistd.h
  14927. do
  14928. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14929. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14930. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14931. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14932. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14933. echo $ECHO_N "(cached) $ECHO_C" >&6
  14934. fi
  14935. ac_res=`eval echo '${'$as_ac_Header'}'`
  14936. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14937. echo "${ECHO_T}$ac_res" >&6; }
  14938. else
  14939. # Is the header compilable?
  14940. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14941. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14942. cat >conftest.$ac_ext <<_ACEOF
  14943. /* confdefs.h. */
  14944. _ACEOF
  14945. cat confdefs.h >>conftest.$ac_ext
  14946. cat >>conftest.$ac_ext <<_ACEOF
  14947. /* end confdefs.h. */
  14948. $ac_includes_default
  14949. #include <$ac_header>
  14950. _ACEOF
  14951. rm -f conftest.$ac_objext
  14952. if { (ac_try="$ac_compile"
  14953. case "(($ac_try" in
  14954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14955. *) ac_try_echo=$ac_try;;
  14956. esac
  14957. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14958. (eval "$ac_compile") 2>conftest.er1
  14959. ac_status=$?
  14960. grep -v '^ *+' conftest.er1 >conftest.err
  14961. rm -f conftest.er1
  14962. cat conftest.err >&5
  14963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14964. (exit $ac_status); } && {
  14965. test -z "$ac_cxx_werror_flag" ||
  14966. test ! -s conftest.err
  14967. } && test -s conftest.$ac_objext; then
  14968. ac_header_compiler=yes
  14969. else
  14970. echo "$as_me: failed program was:" >&5
  14971. sed 's/^/| /' conftest.$ac_ext >&5
  14972. ac_header_compiler=no
  14973. fi
  14974. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14975. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14976. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14977. # Is the header present?
  14978. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14979. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14980. cat >conftest.$ac_ext <<_ACEOF
  14981. /* confdefs.h. */
  14982. _ACEOF
  14983. cat confdefs.h >>conftest.$ac_ext
  14984. cat >>conftest.$ac_ext <<_ACEOF
  14985. /* end confdefs.h. */
  14986. #include <$ac_header>
  14987. _ACEOF
  14988. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14989. case "(($ac_try" in
  14990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14991. *) ac_try_echo=$ac_try;;
  14992. esac
  14993. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14994. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14995. ac_status=$?
  14996. grep -v '^ *+' conftest.er1 >conftest.err
  14997. rm -f conftest.er1
  14998. cat conftest.err >&5
  14999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15000. (exit $ac_status); } >/dev/null && {
  15001. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15002. test ! -s conftest.err
  15003. }; then
  15004. ac_header_preproc=yes
  15005. else
  15006. echo "$as_me: failed program was:" >&5
  15007. sed 's/^/| /' conftest.$ac_ext >&5
  15008. ac_header_preproc=no
  15009. fi
  15010. rm -f conftest.err conftest.$ac_ext
  15011. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15012. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15013. # So? What about this header?
  15014. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15015. yes:no: )
  15016. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15017. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15018. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15019. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15020. ac_header_preproc=yes
  15021. ;;
  15022. no:yes:* )
  15023. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15024. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15025. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15026. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15027. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15028. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15029. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15030. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15031. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15032. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15033. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15034. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15035. ( cat <<\_ASBOX
  15036. ## ----------------------------------------------- ##
  15037. ## Report this to t-tujikawa@users.sourceforge.net ##
  15038. ## ----------------------------------------------- ##
  15039. _ASBOX
  15040. ) | sed "s/^/$as_me: WARNING: /" >&2
  15041. ;;
  15042. esac
  15043. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15044. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15045. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15046. echo $ECHO_N "(cached) $ECHO_C" >&6
  15047. else
  15048. eval "$as_ac_Header=\$ac_header_preproc"
  15049. fi
  15050. ac_res=`eval echo '${'$as_ac_Header'}'`
  15051. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15052. echo "${ECHO_T}$ac_res" >&6; }
  15053. fi
  15054. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15055. cat >>confdefs.h <<_ACEOF
  15056. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15057. _ACEOF
  15058. fi
  15059. done
  15060. for ac_func in getpagesize
  15061. do
  15062. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15063. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15064. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15065. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15066. echo $ECHO_N "(cached) $ECHO_C" >&6
  15067. else
  15068. cat >conftest.$ac_ext <<_ACEOF
  15069. /* confdefs.h. */
  15070. _ACEOF
  15071. cat confdefs.h >>conftest.$ac_ext
  15072. cat >>conftest.$ac_ext <<_ACEOF
  15073. /* end confdefs.h. */
  15074. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15075. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15076. #define $ac_func innocuous_$ac_func
  15077. /* System header to define __stub macros and hopefully few prototypes,
  15078. which can conflict with char $ac_func (); below.
  15079. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15080. <limits.h> exists even on freestanding compilers. */
  15081. #ifdef __STDC__
  15082. # include <limits.h>
  15083. #else
  15084. # include <assert.h>
  15085. #endif
  15086. #undef $ac_func
  15087. /* Override any GCC internal prototype to avoid an error.
  15088. Use char because int might match the return type of a GCC
  15089. builtin and then its argument prototype would still apply. */
  15090. #ifdef __cplusplus
  15091. extern "C"
  15092. #endif
  15093. char $ac_func ();
  15094. /* The GNU C library defines this for functions which it implements
  15095. to always fail with ENOSYS. Some functions are actually named
  15096. something starting with __ and the normal name is an alias. */
  15097. #if defined __stub_$ac_func || defined __stub___$ac_func
  15098. choke me
  15099. #endif
  15100. int
  15101. main ()
  15102. {
  15103. return $ac_func ();
  15104. ;
  15105. return 0;
  15106. }
  15107. _ACEOF
  15108. rm -f conftest.$ac_objext conftest$ac_exeext
  15109. if { (ac_try="$ac_link"
  15110. case "(($ac_try" in
  15111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15112. *) ac_try_echo=$ac_try;;
  15113. esac
  15114. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15115. (eval "$ac_link") 2>conftest.er1
  15116. ac_status=$?
  15117. grep -v '^ *+' conftest.er1 >conftest.err
  15118. rm -f conftest.er1
  15119. cat conftest.err >&5
  15120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15121. (exit $ac_status); } && {
  15122. test -z "$ac_cxx_werror_flag" ||
  15123. test ! -s conftest.err
  15124. } && test -s conftest$ac_exeext &&
  15125. $as_test_x conftest$ac_exeext; then
  15126. eval "$as_ac_var=yes"
  15127. else
  15128. echo "$as_me: failed program was:" >&5
  15129. sed 's/^/| /' conftest.$ac_ext >&5
  15130. eval "$as_ac_var=no"
  15131. fi
  15132. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15133. conftest$ac_exeext conftest.$ac_ext
  15134. fi
  15135. ac_res=`eval echo '${'$as_ac_var'}'`
  15136. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15137. echo "${ECHO_T}$ac_res" >&6; }
  15138. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15139. cat >>confdefs.h <<_ACEOF
  15140. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15141. _ACEOF
  15142. fi
  15143. done
  15144. { echo "$as_me:$LINENO: checking for working mmap" >&5
  15145. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  15146. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  15147. echo $ECHO_N "(cached) $ECHO_C" >&6
  15148. else
  15149. if test "$cross_compiling" = yes; then
  15150. ac_cv_func_mmap_fixed_mapped=no
  15151. else
  15152. cat >conftest.$ac_ext <<_ACEOF
  15153. /* confdefs.h. */
  15154. _ACEOF
  15155. cat confdefs.h >>conftest.$ac_ext
  15156. cat >>conftest.$ac_ext <<_ACEOF
  15157. /* end confdefs.h. */
  15158. $ac_includes_default
  15159. /* malloc might have been renamed as rpl_malloc. */
  15160. #undef malloc
  15161. /* Thanks to Mike Haertel and Jim Avera for this test.
  15162. Here is a matrix of mmap possibilities:
  15163. mmap private not fixed
  15164. mmap private fixed at somewhere currently unmapped
  15165. mmap private fixed at somewhere already mapped
  15166. mmap shared not fixed
  15167. mmap shared fixed at somewhere currently unmapped
  15168. mmap shared fixed at somewhere already mapped
  15169. For private mappings, we should verify that changes cannot be read()
  15170. back from the file, nor mmap's back from the file at a different
  15171. address. (There have been systems where private was not correctly
  15172. implemented like the infamous i386 svr4.0, and systems where the
  15173. VM page cache was not coherent with the file system buffer cache
  15174. like early versions of FreeBSD and possibly contemporary NetBSD.)
  15175. For shared mappings, we should conversely verify that changes get
  15176. propagated back to all the places they're supposed to be.
  15177. Grep wants private fixed already mapped.
  15178. The main things grep needs to know about mmap are:
  15179. * does it exist and is it safe to write into the mmap'd area
  15180. * how to use it (BSD variants) */
  15181. #include <fcntl.h>
  15182. #include <sys/mman.h>
  15183. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  15184. char *malloc ();
  15185. #endif
  15186. /* This mess was copied from the GNU getpagesize.h. */
  15187. #ifndef HAVE_GETPAGESIZE
  15188. /* Assume that all systems that can run configure have sys/param.h. */
  15189. # ifndef HAVE_SYS_PARAM_H
  15190. # define HAVE_SYS_PARAM_H 1
  15191. # endif
  15192. # ifdef _SC_PAGESIZE
  15193. # define getpagesize() sysconf(_SC_PAGESIZE)
  15194. # else /* no _SC_PAGESIZE */
  15195. # ifdef HAVE_SYS_PARAM_H
  15196. # include <sys/param.h>
  15197. # ifdef EXEC_PAGESIZE
  15198. # define getpagesize() EXEC_PAGESIZE
  15199. # else /* no EXEC_PAGESIZE */
  15200. # ifdef NBPG
  15201. # define getpagesize() NBPG * CLSIZE
  15202. # ifndef CLSIZE
  15203. # define CLSIZE 1
  15204. # endif /* no CLSIZE */
  15205. # else /* no NBPG */
  15206. # ifdef NBPC
  15207. # define getpagesize() NBPC
  15208. # else /* no NBPC */
  15209. # ifdef PAGESIZE
  15210. # define getpagesize() PAGESIZE
  15211. # endif /* PAGESIZE */
  15212. # endif /* no NBPC */
  15213. # endif /* no NBPG */
  15214. # endif /* no EXEC_PAGESIZE */
  15215. # else /* no HAVE_SYS_PARAM_H */
  15216. # define getpagesize() 8192 /* punt totally */
  15217. # endif /* no HAVE_SYS_PARAM_H */
  15218. # endif /* no _SC_PAGESIZE */
  15219. #endif /* no HAVE_GETPAGESIZE */
  15220. int
  15221. main ()
  15222. {
  15223. char *data, *data2, *data3;
  15224. int i, pagesize;
  15225. int fd;
  15226. pagesize = getpagesize ();
  15227. /* First, make a file with some known garbage in it. */
  15228. data = (char *) malloc (pagesize);
  15229. if (!data)
  15230. return 1;
  15231. for (i = 0; i < pagesize; ++i)
  15232. *(data + i) = rand ();
  15233. umask (0);
  15234. fd = creat ("conftest.mmap", 0600);
  15235. if (fd < 0)
  15236. return 1;
  15237. if (write (fd, data, pagesize) != pagesize)
  15238. return 1;
  15239. close (fd);
  15240. /* Next, try to mmap the file at a fixed address which already has
  15241. something else allocated at it. If we can, also make sure that
  15242. we see the same garbage. */
  15243. fd = open ("conftest.mmap", O_RDWR);
  15244. if (fd < 0)
  15245. return 1;
  15246. data2 = (char *) malloc (2 * pagesize);
  15247. if (!data2)
  15248. return 1;
  15249. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  15250. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  15251. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  15252. return 1;
  15253. for (i = 0; i < pagesize; ++i)
  15254. if (*(data + i) != *(data2 + i))
  15255. return 1;
  15256. /* Finally, make sure that changes to the mapped area do not
  15257. percolate back to the file as seen by read(). (This is a bug on
  15258. some variants of i386 svr4.0.) */
  15259. for (i = 0; i < pagesize; ++i)
  15260. *(data2 + i) = *(data2 + i) + 1;
  15261. data3 = (char *) malloc (pagesize);
  15262. if (!data3)
  15263. return 1;
  15264. if (read (fd, data3, pagesize) != pagesize)
  15265. return 1;
  15266. for (i = 0; i < pagesize; ++i)
  15267. if (*(data + i) != *(data3 + i))
  15268. return 1;
  15269. close (fd);
  15270. return 0;
  15271. }
  15272. _ACEOF
  15273. rm -f conftest$ac_exeext
  15274. if { (ac_try="$ac_link"
  15275. case "(($ac_try" in
  15276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15277. *) ac_try_echo=$ac_try;;
  15278. esac
  15279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15280. (eval "$ac_link") 2>&5
  15281. ac_status=$?
  15282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15283. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15284. { (case "(($ac_try" in
  15285. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15286. *) ac_try_echo=$ac_try;;
  15287. esac
  15288. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15289. (eval "$ac_try") 2>&5
  15290. ac_status=$?
  15291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15292. (exit $ac_status); }; }; then
  15293. ac_cv_func_mmap_fixed_mapped=yes
  15294. else
  15295. echo "$as_me: program exited with status $ac_status" >&5
  15296. echo "$as_me: failed program was:" >&5
  15297. sed 's/^/| /' conftest.$ac_ext >&5
  15298. ( exit $ac_status )
  15299. ac_cv_func_mmap_fixed_mapped=no
  15300. fi
  15301. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15302. fi
  15303. fi
  15304. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  15305. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  15306. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  15307. cat >>confdefs.h <<\_ACEOF
  15308. #define HAVE_MMAP 1
  15309. _ACEOF
  15310. fi
  15311. rm -f conftest.mmap
  15312. for ac_header in sys/select.h sys/socket.h
  15313. do
  15314. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15315. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15316. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15317. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15318. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15319. echo $ECHO_N "(cached) $ECHO_C" >&6
  15320. fi
  15321. ac_res=`eval echo '${'$as_ac_Header'}'`
  15322. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15323. echo "${ECHO_T}$ac_res" >&6; }
  15324. else
  15325. # Is the header compilable?
  15326. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15327. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  15328. cat >conftest.$ac_ext <<_ACEOF
  15329. /* confdefs.h. */
  15330. _ACEOF
  15331. cat confdefs.h >>conftest.$ac_ext
  15332. cat >>conftest.$ac_ext <<_ACEOF
  15333. /* end confdefs.h. */
  15334. $ac_includes_default
  15335. #include <$ac_header>
  15336. _ACEOF
  15337. rm -f conftest.$ac_objext
  15338. if { (ac_try="$ac_compile"
  15339. case "(($ac_try" in
  15340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15341. *) ac_try_echo=$ac_try;;
  15342. esac
  15343. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15344. (eval "$ac_compile") 2>conftest.er1
  15345. ac_status=$?
  15346. grep -v '^ *+' conftest.er1 >conftest.err
  15347. rm -f conftest.er1
  15348. cat conftest.err >&5
  15349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15350. (exit $ac_status); } && {
  15351. test -z "$ac_cxx_werror_flag" ||
  15352. test ! -s conftest.err
  15353. } && test -s conftest.$ac_objext; then
  15354. ac_header_compiler=yes
  15355. else
  15356. echo "$as_me: failed program was:" >&5
  15357. sed 's/^/| /' conftest.$ac_ext >&5
  15358. ac_header_compiler=no
  15359. fi
  15360. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15361. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15362. echo "${ECHO_T}$ac_header_compiler" >&6; }
  15363. # Is the header present?
  15364. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15365. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  15366. cat >conftest.$ac_ext <<_ACEOF
  15367. /* confdefs.h. */
  15368. _ACEOF
  15369. cat confdefs.h >>conftest.$ac_ext
  15370. cat >>conftest.$ac_ext <<_ACEOF
  15371. /* end confdefs.h. */
  15372. #include <$ac_header>
  15373. _ACEOF
  15374. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15375. case "(($ac_try" in
  15376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15377. *) ac_try_echo=$ac_try;;
  15378. esac
  15379. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15380. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15381. ac_status=$?
  15382. grep -v '^ *+' conftest.er1 >conftest.err
  15383. rm -f conftest.er1
  15384. cat conftest.err >&5
  15385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15386. (exit $ac_status); } >/dev/null && {
  15387. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15388. test ! -s conftest.err
  15389. }; then
  15390. ac_header_preproc=yes
  15391. else
  15392. echo "$as_me: failed program was:" >&5
  15393. sed 's/^/| /' conftest.$ac_ext >&5
  15394. ac_header_preproc=no
  15395. fi
  15396. rm -f conftest.err conftest.$ac_ext
  15397. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15398. echo "${ECHO_T}$ac_header_preproc" >&6; }
  15399. # So? What about this header?
  15400. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15401. yes:no: )
  15402. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15403. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15404. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15405. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15406. ac_header_preproc=yes
  15407. ;;
  15408. no:yes:* )
  15409. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15410. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15411. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15412. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15413. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15414. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15415. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15416. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15417. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15418. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15419. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15420. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15421. ( cat <<\_ASBOX
  15422. ## ----------------------------------------------- ##
  15423. ## Report this to t-tujikawa@users.sourceforge.net ##
  15424. ## ----------------------------------------------- ##
  15425. _ASBOX
  15426. ) | sed "s/^/$as_me: WARNING: /" >&2
  15427. ;;
  15428. esac
  15429. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  15430. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  15431. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15432. echo $ECHO_N "(cached) $ECHO_C" >&6
  15433. else
  15434. eval "$as_ac_Header=\$ac_header_preproc"
  15435. fi
  15436. ac_res=`eval echo '${'$as_ac_Header'}'`
  15437. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15438. echo "${ECHO_T}$ac_res" >&6; }
  15439. fi
  15440. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15441. cat >>confdefs.h <<_ACEOF
  15442. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15443. _ACEOF
  15444. fi
  15445. done
  15446. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  15447. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  15448. if test "${ac_cv_func_select_args+set}" = set; then
  15449. echo $ECHO_N "(cached) $ECHO_C" >&6
  15450. else
  15451. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  15452. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  15453. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  15454. cat >conftest.$ac_ext <<_ACEOF
  15455. /* confdefs.h. */
  15456. _ACEOF
  15457. cat confdefs.h >>conftest.$ac_ext
  15458. cat >>conftest.$ac_ext <<_ACEOF
  15459. /* end confdefs.h. */
  15460. $ac_includes_default
  15461. #ifdef HAVE_SYS_SELECT_H
  15462. # include <sys/select.h>
  15463. #endif
  15464. #ifdef HAVE_SYS_SOCKET_H
  15465. # include <sys/socket.h>
  15466. #endif
  15467. int
  15468. main ()
  15469. {
  15470. extern int select ($ac_arg1,
  15471. $ac_arg234, $ac_arg234, $ac_arg234,
  15472. $ac_arg5);
  15473. ;
  15474. return 0;
  15475. }
  15476. _ACEOF
  15477. rm -f conftest.$ac_objext
  15478. if { (ac_try="$ac_compile"
  15479. case "(($ac_try" in
  15480. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15481. *) ac_try_echo=$ac_try;;
  15482. esac
  15483. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15484. (eval "$ac_compile") 2>conftest.er1
  15485. ac_status=$?
  15486. grep -v '^ *+' conftest.er1 >conftest.err
  15487. rm -f conftest.er1
  15488. cat conftest.err >&5
  15489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15490. (exit $ac_status); } && {
  15491. test -z "$ac_cxx_werror_flag" ||
  15492. test ! -s conftest.err
  15493. } && test -s conftest.$ac_objext; then
  15494. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  15495. else
  15496. echo "$as_me: failed program was:" >&5
  15497. sed 's/^/| /' conftest.$ac_ext >&5
  15498. fi
  15499. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15500. done
  15501. done
  15502. done
  15503. # Provide a safe default value.
  15504. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  15505. fi
  15506. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  15507. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  15508. ac_save_IFS=$IFS; IFS=','
  15509. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  15510. IFS=$ac_save_IFS
  15511. shift
  15512. cat >>confdefs.h <<_ACEOF
  15513. #define SELECT_TYPE_ARG1 $1
  15514. _ACEOF
  15515. cat >>confdefs.h <<_ACEOF
  15516. #define SELECT_TYPE_ARG234 ($2)
  15517. _ACEOF
  15518. cat >>confdefs.h <<_ACEOF
  15519. #define SELECT_TYPE_ARG5 ($3)
  15520. _ACEOF
  15521. rm -f conftest*
  15522. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  15523. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  15524. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  15525. echo $ECHO_N "(cached) $ECHO_C" >&6
  15526. else
  15527. rm -f conftest.sym conftest.file
  15528. echo >conftest.file
  15529. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  15530. if test "$cross_compiling" = yes; then
  15531. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15532. else
  15533. cat >conftest.$ac_ext <<_ACEOF
  15534. /* confdefs.h. */
  15535. _ACEOF
  15536. cat confdefs.h >>conftest.$ac_ext
  15537. cat >>conftest.$ac_ext <<_ACEOF
  15538. /* end confdefs.h. */
  15539. $ac_includes_default
  15540. int
  15541. main ()
  15542. {
  15543. struct stat sbuf;
  15544. /* Linux will dereference the symlink and fail.
  15545. That is better in the sense that it means we will not
  15546. have to compile and use the lstat wrapper. */
  15547. return lstat ("conftest.sym/", &sbuf) == 0;
  15548. ;
  15549. return 0;
  15550. }
  15551. _ACEOF
  15552. rm -f conftest$ac_exeext
  15553. if { (ac_try="$ac_link"
  15554. case "(($ac_try" in
  15555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15556. *) ac_try_echo=$ac_try;;
  15557. esac
  15558. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15559. (eval "$ac_link") 2>&5
  15560. ac_status=$?
  15561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15562. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15563. { (case "(($ac_try" in
  15564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15565. *) ac_try_echo=$ac_try;;
  15566. esac
  15567. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15568. (eval "$ac_try") 2>&5
  15569. ac_status=$?
  15570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15571. (exit $ac_status); }; }; then
  15572. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  15573. else
  15574. echo "$as_me: program exited with status $ac_status" >&5
  15575. echo "$as_me: failed program was:" >&5
  15576. sed 's/^/| /' conftest.$ac_ext >&5
  15577. ( exit $ac_status )
  15578. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15579. fi
  15580. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15581. fi
  15582. else
  15583. # If the `ln -s' command failed, then we probably don't even
  15584. # have an lstat function.
  15585. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15586. fi
  15587. rm -f conftest.sym conftest.file
  15588. fi
  15589. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  15590. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  15591. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  15592. cat >>confdefs.h <<_ACEOF
  15593. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  15594. _ACEOF
  15595. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  15596. case " $LIBOBJS " in
  15597. *" lstat.$ac_objext "* ) ;;
  15598. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  15599. ;;
  15600. esac
  15601. fi
  15602. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  15603. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  15604. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  15605. echo $ECHO_N "(cached) $ECHO_C" >&6
  15606. else
  15607. if test "$cross_compiling" = yes; then
  15608. ac_cv_func_stat_empty_string_bug=yes
  15609. else
  15610. cat >conftest.$ac_ext <<_ACEOF
  15611. /* confdefs.h. */
  15612. _ACEOF
  15613. cat confdefs.h >>conftest.$ac_ext
  15614. cat >>conftest.$ac_ext <<_ACEOF
  15615. /* end confdefs.h. */
  15616. $ac_includes_default
  15617. int
  15618. main ()
  15619. {
  15620. struct stat sbuf;
  15621. return stat ("", &sbuf) == 0;
  15622. ;
  15623. return 0;
  15624. }
  15625. _ACEOF
  15626. rm -f conftest$ac_exeext
  15627. if { (ac_try="$ac_link"
  15628. case "(($ac_try" in
  15629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15630. *) ac_try_echo=$ac_try;;
  15631. esac
  15632. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15633. (eval "$ac_link") 2>&5
  15634. ac_status=$?
  15635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15636. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15637. { (case "(($ac_try" in
  15638. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15639. *) ac_try_echo=$ac_try;;
  15640. esac
  15641. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15642. (eval "$ac_try") 2>&5
  15643. ac_status=$?
  15644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15645. (exit $ac_status); }; }; then
  15646. ac_cv_func_stat_empty_string_bug=no
  15647. else
  15648. echo "$as_me: program exited with status $ac_status" >&5
  15649. echo "$as_me: failed program was:" >&5
  15650. sed 's/^/| /' conftest.$ac_ext >&5
  15651. ( exit $ac_status )
  15652. ac_cv_func_stat_empty_string_bug=yes
  15653. fi
  15654. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15655. fi
  15656. fi
  15657. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  15658. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  15659. if test $ac_cv_func_stat_empty_string_bug = yes; then
  15660. case " $LIBOBJS " in
  15661. *" stat.$ac_objext "* ) ;;
  15662. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  15663. ;;
  15664. esac
  15665. cat >>confdefs.h <<_ACEOF
  15666. #define HAVE_STAT_EMPTY_STRING_BUG 1
  15667. _ACEOF
  15668. fi
  15669. for ac_func in vprintf
  15670. do
  15671. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15672. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15673. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15674. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15675. echo $ECHO_N "(cached) $ECHO_C" >&6
  15676. else
  15677. cat >conftest.$ac_ext <<_ACEOF
  15678. /* confdefs.h. */
  15679. _ACEOF
  15680. cat confdefs.h >>conftest.$ac_ext
  15681. cat >>conftest.$ac_ext <<_ACEOF
  15682. /* end confdefs.h. */
  15683. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15684. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15685. #define $ac_func innocuous_$ac_func
  15686. /* System header to define __stub macros and hopefully few prototypes,
  15687. which can conflict with char $ac_func (); below.
  15688. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15689. <limits.h> exists even on freestanding compilers. */
  15690. #ifdef __STDC__
  15691. # include <limits.h>
  15692. #else
  15693. # include <assert.h>
  15694. #endif
  15695. #undef $ac_func
  15696. /* Override any GCC internal prototype to avoid an error.
  15697. Use char because int might match the return type of a GCC
  15698. builtin and then its argument prototype would still apply. */
  15699. #ifdef __cplusplus
  15700. extern "C"
  15701. #endif
  15702. char $ac_func ();
  15703. /* The GNU C library defines this for functions which it implements
  15704. to always fail with ENOSYS. Some functions are actually named
  15705. something starting with __ and the normal name is an alias. */
  15706. #if defined __stub_$ac_func || defined __stub___$ac_func
  15707. choke me
  15708. #endif
  15709. int
  15710. main ()
  15711. {
  15712. return $ac_func ();
  15713. ;
  15714. return 0;
  15715. }
  15716. _ACEOF
  15717. rm -f conftest.$ac_objext conftest$ac_exeext
  15718. if { (ac_try="$ac_link"
  15719. case "(($ac_try" in
  15720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15721. *) ac_try_echo=$ac_try;;
  15722. esac
  15723. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15724. (eval "$ac_link") 2>conftest.er1
  15725. ac_status=$?
  15726. grep -v '^ *+' conftest.er1 >conftest.err
  15727. rm -f conftest.er1
  15728. cat conftest.err >&5
  15729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15730. (exit $ac_status); } && {
  15731. test -z "$ac_cxx_werror_flag" ||
  15732. test ! -s conftest.err
  15733. } && test -s conftest$ac_exeext &&
  15734. $as_test_x conftest$ac_exeext; then
  15735. eval "$as_ac_var=yes"
  15736. else
  15737. echo "$as_me: failed program was:" >&5
  15738. sed 's/^/| /' conftest.$ac_ext >&5
  15739. eval "$as_ac_var=no"
  15740. fi
  15741. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15742. conftest$ac_exeext conftest.$ac_ext
  15743. fi
  15744. ac_res=`eval echo '${'$as_ac_var'}'`
  15745. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15746. echo "${ECHO_T}$ac_res" >&6; }
  15747. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15748. cat >>confdefs.h <<_ACEOF
  15749. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15750. _ACEOF
  15751. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  15752. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  15753. if test "${ac_cv_func__doprnt+set}" = set; then
  15754. echo $ECHO_N "(cached) $ECHO_C" >&6
  15755. else
  15756. cat >conftest.$ac_ext <<_ACEOF
  15757. /* confdefs.h. */
  15758. _ACEOF
  15759. cat confdefs.h >>conftest.$ac_ext
  15760. cat >>conftest.$ac_ext <<_ACEOF
  15761. /* end confdefs.h. */
  15762. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  15763. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15764. #define _doprnt innocuous__doprnt
  15765. /* System header to define __stub macros and hopefully few prototypes,
  15766. which can conflict with char _doprnt (); below.
  15767. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15768. <limits.h> exists even on freestanding compilers. */
  15769. #ifdef __STDC__
  15770. # include <limits.h>
  15771. #else
  15772. # include <assert.h>
  15773. #endif
  15774. #undef _doprnt
  15775. /* Override any GCC internal prototype to avoid an error.
  15776. Use char because int might match the return type of a GCC
  15777. builtin and then its argument prototype would still apply. */
  15778. #ifdef __cplusplus
  15779. extern "C"
  15780. #endif
  15781. char _doprnt ();
  15782. /* The GNU C library defines this for functions which it implements
  15783. to always fail with ENOSYS. Some functions are actually named
  15784. something starting with __ and the normal name is an alias. */
  15785. #if defined __stub__doprnt || defined __stub____doprnt
  15786. choke me
  15787. #endif
  15788. int
  15789. main ()
  15790. {
  15791. return _doprnt ();
  15792. ;
  15793. return 0;
  15794. }
  15795. _ACEOF
  15796. rm -f conftest.$ac_objext conftest$ac_exeext
  15797. if { (ac_try="$ac_link"
  15798. case "(($ac_try" in
  15799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15800. *) ac_try_echo=$ac_try;;
  15801. esac
  15802. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15803. (eval "$ac_link") 2>conftest.er1
  15804. ac_status=$?
  15805. grep -v '^ *+' conftest.er1 >conftest.err
  15806. rm -f conftest.er1
  15807. cat conftest.err >&5
  15808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15809. (exit $ac_status); } && {
  15810. test -z "$ac_cxx_werror_flag" ||
  15811. test ! -s conftest.err
  15812. } && test -s conftest$ac_exeext &&
  15813. $as_test_x conftest$ac_exeext; then
  15814. ac_cv_func__doprnt=yes
  15815. else
  15816. echo "$as_me: failed program was:" >&5
  15817. sed 's/^/| /' conftest.$ac_ext >&5
  15818. ac_cv_func__doprnt=no
  15819. fi
  15820. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15821. conftest$ac_exeext conftest.$ac_ext
  15822. fi
  15823. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  15824. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  15825. if test $ac_cv_func__doprnt = yes; then
  15826. cat >>confdefs.h <<\_ACEOF
  15827. #define HAVE_DOPRNT 1
  15828. _ACEOF
  15829. fi
  15830. fi
  15831. done
  15832. 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
  15833. do
  15834. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15835. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15836. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15837. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15838. echo $ECHO_N "(cached) $ECHO_C" >&6
  15839. else
  15840. cat >conftest.$ac_ext <<_ACEOF
  15841. /* confdefs.h. */
  15842. _ACEOF
  15843. cat confdefs.h >>conftest.$ac_ext
  15844. cat >>conftest.$ac_ext <<_ACEOF
  15845. /* end confdefs.h. */
  15846. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15847. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15848. #define $ac_func innocuous_$ac_func
  15849. /* System header to define __stub macros and hopefully few prototypes,
  15850. which can conflict with char $ac_func (); below.
  15851. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15852. <limits.h> exists even on freestanding compilers. */
  15853. #ifdef __STDC__
  15854. # include <limits.h>
  15855. #else
  15856. # include <assert.h>
  15857. #endif
  15858. #undef $ac_func
  15859. /* Override any GCC internal prototype to avoid an error.
  15860. Use char because int might match the return type of a GCC
  15861. builtin and then its argument prototype would still apply. */
  15862. #ifdef __cplusplus
  15863. extern "C"
  15864. #endif
  15865. char $ac_func ();
  15866. /* The GNU C library defines this for functions which it implements
  15867. to always fail with ENOSYS. Some functions are actually named
  15868. something starting with __ and the normal name is an alias. */
  15869. #if defined __stub_$ac_func || defined __stub___$ac_func
  15870. choke me
  15871. #endif
  15872. int
  15873. main ()
  15874. {
  15875. return $ac_func ();
  15876. ;
  15877. return 0;
  15878. }
  15879. _ACEOF
  15880. rm -f conftest.$ac_objext conftest$ac_exeext
  15881. if { (ac_try="$ac_link"
  15882. case "(($ac_try" in
  15883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15884. *) ac_try_echo=$ac_try;;
  15885. esac
  15886. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15887. (eval "$ac_link") 2>conftest.er1
  15888. ac_status=$?
  15889. grep -v '^ *+' conftest.er1 >conftest.err
  15890. rm -f conftest.er1
  15891. cat conftest.err >&5
  15892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15893. (exit $ac_status); } && {
  15894. test -z "$ac_cxx_werror_flag" ||
  15895. test ! -s conftest.err
  15896. } && test -s conftest$ac_exeext &&
  15897. $as_test_x conftest$ac_exeext; then
  15898. eval "$as_ac_var=yes"
  15899. else
  15900. echo "$as_me: failed program was:" >&5
  15901. sed 's/^/| /' conftest.$ac_ext >&5
  15902. eval "$as_ac_var=no"
  15903. fi
  15904. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15905. conftest$ac_exeext conftest.$ac_ext
  15906. fi
  15907. ac_res=`eval echo '${'$as_ac_var'}'`
  15908. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15909. echo "${ECHO_T}$ac_res" >&6; }
  15910. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15911. cat >>confdefs.h <<_ACEOF
  15912. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15913. _ACEOF
  15914. fi
  15915. done
  15916. for ac_func in basename
  15917. do
  15918. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15919. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15920. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15921. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15922. echo $ECHO_N "(cached) $ECHO_C" >&6
  15923. else
  15924. cat >conftest.$ac_ext <<_ACEOF
  15925. /* confdefs.h. */
  15926. _ACEOF
  15927. cat confdefs.h >>conftest.$ac_ext
  15928. cat >>conftest.$ac_ext <<_ACEOF
  15929. /* end confdefs.h. */
  15930. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15931. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15932. #define $ac_func innocuous_$ac_func
  15933. /* System header to define __stub macros and hopefully few prototypes,
  15934. which can conflict with char $ac_func (); below.
  15935. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15936. <limits.h> exists even on freestanding compilers. */
  15937. #ifdef __STDC__
  15938. # include <limits.h>
  15939. #else
  15940. # include <assert.h>
  15941. #endif
  15942. #undef $ac_func
  15943. /* Override any GCC internal prototype to avoid an error.
  15944. Use char because int might match the return type of a GCC
  15945. builtin and then its argument prototype would still apply. */
  15946. #ifdef __cplusplus
  15947. extern "C"
  15948. #endif
  15949. char $ac_func ();
  15950. /* The GNU C library defines this for functions which it implements
  15951. to always fail with ENOSYS. Some functions are actually named
  15952. something starting with __ and the normal name is an alias. */
  15953. #if defined __stub_$ac_func || defined __stub___$ac_func
  15954. choke me
  15955. #endif
  15956. int
  15957. main ()
  15958. {
  15959. return $ac_func ();
  15960. ;
  15961. return 0;
  15962. }
  15963. _ACEOF
  15964. rm -f conftest.$ac_objext conftest$ac_exeext
  15965. if { (ac_try="$ac_link"
  15966. case "(($ac_try" in
  15967. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15968. *) ac_try_echo=$ac_try;;
  15969. esac
  15970. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15971. (eval "$ac_link") 2>conftest.er1
  15972. ac_status=$?
  15973. grep -v '^ *+' conftest.er1 >conftest.err
  15974. rm -f conftest.er1
  15975. cat conftest.err >&5
  15976. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15977. (exit $ac_status); } && {
  15978. test -z "$ac_cxx_werror_flag" ||
  15979. test ! -s conftest.err
  15980. } && test -s conftest$ac_exeext &&
  15981. $as_test_x conftest$ac_exeext; then
  15982. eval "$as_ac_var=yes"
  15983. else
  15984. echo "$as_me: failed program was:" >&5
  15985. sed 's/^/| /' conftest.$ac_ext >&5
  15986. eval "$as_ac_var=no"
  15987. fi
  15988. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15989. conftest$ac_exeext conftest.$ac_ext
  15990. fi
  15991. ac_res=`eval echo '${'$as_ac_var'}'`
  15992. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15993. echo "${ECHO_T}$ac_res" >&6; }
  15994. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15995. cat >>confdefs.h <<_ACEOF
  15996. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15997. _ACEOF
  15998. if true; then
  15999. HAVE_BASENAME_TRUE=
  16000. HAVE_BASENAME_FALSE='#'
  16001. else
  16002. HAVE_BASENAME_TRUE='#'
  16003. HAVE_BASENAME_FALSE=
  16004. fi
  16005. else
  16006. if false; then
  16007. HAVE_BASENAME_TRUE=
  16008. HAVE_BASENAME_FALSE='#'
  16009. else
  16010. HAVE_BASENAME_TRUE='#'
  16011. HAVE_BASENAME_FALSE=
  16012. fi
  16013. fi
  16014. done
  16015. for ac_func in gai_strerror
  16016. do
  16017. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16018. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16019. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16020. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16021. echo $ECHO_N "(cached) $ECHO_C" >&6
  16022. else
  16023. cat >conftest.$ac_ext <<_ACEOF
  16024. /* confdefs.h. */
  16025. _ACEOF
  16026. cat confdefs.h >>conftest.$ac_ext
  16027. cat >>conftest.$ac_ext <<_ACEOF
  16028. /* end confdefs.h. */
  16029. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16030. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16031. #define $ac_func innocuous_$ac_func
  16032. /* System header to define __stub macros and hopefully few prototypes,
  16033. which can conflict with char $ac_func (); below.
  16034. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16035. <limits.h> exists even on freestanding compilers. */
  16036. #ifdef __STDC__
  16037. # include <limits.h>
  16038. #else
  16039. # include <assert.h>
  16040. #endif
  16041. #undef $ac_func
  16042. /* Override any GCC internal prototype to avoid an error.
  16043. Use char because int might match the return type of a GCC
  16044. builtin and then its argument prototype would still apply. */
  16045. #ifdef __cplusplus
  16046. extern "C"
  16047. #endif
  16048. char $ac_func ();
  16049. /* The GNU C library defines this for functions which it implements
  16050. to always fail with ENOSYS. Some functions are actually named
  16051. something starting with __ and the normal name is an alias. */
  16052. #if defined __stub_$ac_func || defined __stub___$ac_func
  16053. choke me
  16054. #endif
  16055. int
  16056. main ()
  16057. {
  16058. return $ac_func ();
  16059. ;
  16060. return 0;
  16061. }
  16062. _ACEOF
  16063. rm -f conftest.$ac_objext conftest$ac_exeext
  16064. if { (ac_try="$ac_link"
  16065. case "(($ac_try" in
  16066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16067. *) ac_try_echo=$ac_try;;
  16068. esac
  16069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16070. (eval "$ac_link") 2>conftest.er1
  16071. ac_status=$?
  16072. grep -v '^ *+' conftest.er1 >conftest.err
  16073. rm -f conftest.er1
  16074. cat conftest.err >&5
  16075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16076. (exit $ac_status); } && {
  16077. test -z "$ac_cxx_werror_flag" ||
  16078. test ! -s conftest.err
  16079. } && test -s conftest$ac_exeext &&
  16080. $as_test_x conftest$ac_exeext; then
  16081. eval "$as_ac_var=yes"
  16082. else
  16083. echo "$as_me: failed program was:" >&5
  16084. sed 's/^/| /' conftest.$ac_ext >&5
  16085. eval "$as_ac_var=no"
  16086. fi
  16087. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16088. conftest$ac_exeext conftest.$ac_ext
  16089. fi
  16090. ac_res=`eval echo '${'$as_ac_var'}'`
  16091. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16092. echo "${ECHO_T}$ac_res" >&6; }
  16093. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16094. cat >>confdefs.h <<_ACEOF
  16095. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16096. _ACEOF
  16097. if true; then
  16098. HAVE_GAI_STRERROR_TRUE=
  16099. HAVE_GAI_STRERROR_FALSE='#'
  16100. else
  16101. HAVE_GAI_STRERROR_TRUE='#'
  16102. HAVE_GAI_STRERROR_FALSE=
  16103. fi
  16104. else
  16105. if false; then
  16106. HAVE_GAI_STRERROR_TRUE=
  16107. HAVE_GAI_STRERROR_FALSE='#'
  16108. else
  16109. HAVE_GAI_STRERROR_TRUE='#'
  16110. HAVE_GAI_STRERROR_FALSE=
  16111. fi
  16112. fi
  16113. done
  16114. for ac_func in getaddrinfo
  16115. do
  16116. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16117. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16118. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16119. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16120. echo $ECHO_N "(cached) $ECHO_C" >&6
  16121. else
  16122. cat >conftest.$ac_ext <<_ACEOF
  16123. /* confdefs.h. */
  16124. _ACEOF
  16125. cat confdefs.h >>conftest.$ac_ext
  16126. cat >>conftest.$ac_ext <<_ACEOF
  16127. /* end confdefs.h. */
  16128. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16129. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16130. #define $ac_func innocuous_$ac_func
  16131. /* System header to define __stub macros and hopefully few prototypes,
  16132. which can conflict with char $ac_func (); below.
  16133. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16134. <limits.h> exists even on freestanding compilers. */
  16135. #ifdef __STDC__
  16136. # include <limits.h>
  16137. #else
  16138. # include <assert.h>
  16139. #endif
  16140. #undef $ac_func
  16141. /* Override any GCC internal prototype to avoid an error.
  16142. Use char because int might match the return type of a GCC
  16143. builtin and then its argument prototype would still apply. */
  16144. #ifdef __cplusplus
  16145. extern "C"
  16146. #endif
  16147. char $ac_func ();
  16148. /* The GNU C library defines this for functions which it implements
  16149. to always fail with ENOSYS. Some functions are actually named
  16150. something starting with __ and the normal name is an alias. */
  16151. #if defined __stub_$ac_func || defined __stub___$ac_func
  16152. choke me
  16153. #endif
  16154. int
  16155. main ()
  16156. {
  16157. return $ac_func ();
  16158. ;
  16159. return 0;
  16160. }
  16161. _ACEOF
  16162. rm -f conftest.$ac_objext conftest$ac_exeext
  16163. if { (ac_try="$ac_link"
  16164. case "(($ac_try" in
  16165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16166. *) ac_try_echo=$ac_try;;
  16167. esac
  16168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16169. (eval "$ac_link") 2>conftest.er1
  16170. ac_status=$?
  16171. grep -v '^ *+' conftest.er1 >conftest.err
  16172. rm -f conftest.er1
  16173. cat conftest.err >&5
  16174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16175. (exit $ac_status); } && {
  16176. test -z "$ac_cxx_werror_flag" ||
  16177. test ! -s conftest.err
  16178. } && test -s conftest$ac_exeext &&
  16179. $as_test_x conftest$ac_exeext; then
  16180. eval "$as_ac_var=yes"
  16181. else
  16182. echo "$as_me: failed program was:" >&5
  16183. sed 's/^/| /' conftest.$ac_ext >&5
  16184. eval "$as_ac_var=no"
  16185. fi
  16186. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16187. conftest$ac_exeext conftest.$ac_ext
  16188. fi
  16189. ac_res=`eval echo '${'$as_ac_var'}'`
  16190. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16191. echo "${ECHO_T}$ac_res" >&6; }
  16192. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16193. cat >>confdefs.h <<_ACEOF
  16194. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16195. _ACEOF
  16196. if true; then
  16197. HAVE_GETADDRINFO_TRUE=
  16198. HAVE_GETADDRINFO_FALSE='#'
  16199. else
  16200. HAVE_GETADDRINFO_TRUE='#'
  16201. HAVE_GETADDRINFO_FALSE=
  16202. fi
  16203. else
  16204. if false; then
  16205. HAVE_GETADDRINFO_TRUE=
  16206. HAVE_GETADDRINFO_FALSE='#'
  16207. else
  16208. HAVE_GETADDRINFO_TRUE='#'
  16209. HAVE_GETADDRINFO_FALSE=
  16210. fi
  16211. fi
  16212. done
  16213. for ac_func in gettimeofday
  16214. do
  16215. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16216. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16217. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16218. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16219. echo $ECHO_N "(cached) $ECHO_C" >&6
  16220. else
  16221. cat >conftest.$ac_ext <<_ACEOF
  16222. /* confdefs.h. */
  16223. _ACEOF
  16224. cat confdefs.h >>conftest.$ac_ext
  16225. cat >>conftest.$ac_ext <<_ACEOF
  16226. /* end confdefs.h. */
  16227. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16228. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16229. #define $ac_func innocuous_$ac_func
  16230. /* System header to define __stub macros and hopefully few prototypes,
  16231. which can conflict with char $ac_func (); below.
  16232. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16233. <limits.h> exists even on freestanding compilers. */
  16234. #ifdef __STDC__
  16235. # include <limits.h>
  16236. #else
  16237. # include <assert.h>
  16238. #endif
  16239. #undef $ac_func
  16240. /* Override any GCC internal prototype to avoid an error.
  16241. Use char because int might match the return type of a GCC
  16242. builtin and then its argument prototype would still apply. */
  16243. #ifdef __cplusplus
  16244. extern "C"
  16245. #endif
  16246. char $ac_func ();
  16247. /* The GNU C library defines this for functions which it implements
  16248. to always fail with ENOSYS. Some functions are actually named
  16249. something starting with __ and the normal name is an alias. */
  16250. #if defined __stub_$ac_func || defined __stub___$ac_func
  16251. choke me
  16252. #endif
  16253. int
  16254. main ()
  16255. {
  16256. return $ac_func ();
  16257. ;
  16258. return 0;
  16259. }
  16260. _ACEOF
  16261. rm -f conftest.$ac_objext conftest$ac_exeext
  16262. if { (ac_try="$ac_link"
  16263. case "(($ac_try" in
  16264. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16265. *) ac_try_echo=$ac_try;;
  16266. esac
  16267. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16268. (eval "$ac_link") 2>conftest.er1
  16269. ac_status=$?
  16270. grep -v '^ *+' conftest.er1 >conftest.err
  16271. rm -f conftest.er1
  16272. cat conftest.err >&5
  16273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16274. (exit $ac_status); } && {
  16275. test -z "$ac_cxx_werror_flag" ||
  16276. test ! -s conftest.err
  16277. } && test -s conftest$ac_exeext &&
  16278. $as_test_x conftest$ac_exeext; then
  16279. eval "$as_ac_var=yes"
  16280. else
  16281. echo "$as_me: failed program was:" >&5
  16282. sed 's/^/| /' conftest.$ac_ext >&5
  16283. eval "$as_ac_var=no"
  16284. fi
  16285. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16286. conftest$ac_exeext conftest.$ac_ext
  16287. fi
  16288. ac_res=`eval echo '${'$as_ac_var'}'`
  16289. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16290. echo "${ECHO_T}$ac_res" >&6; }
  16291. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16292. cat >>confdefs.h <<_ACEOF
  16293. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16294. _ACEOF
  16295. if true; then
  16296. HAVE_GETTIMEOFDAY_TRUE=
  16297. HAVE_GETTIMEOFDAY_FALSE='#'
  16298. else
  16299. HAVE_GETTIMEOFDAY_TRUE='#'
  16300. HAVE_GETTIMEOFDAY_FALSE=
  16301. fi
  16302. else
  16303. if false; then
  16304. HAVE_GETTIMEOFDAY_TRUE=
  16305. HAVE_GETTIMEOFDAY_FALSE='#'
  16306. else
  16307. HAVE_GETTIMEOFDAY_TRUE='#'
  16308. HAVE_GETTIMEOFDAY_FALSE=
  16309. fi
  16310. fi
  16311. done
  16312. for ac_func in inet_aton
  16313. do
  16314. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16315. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16316. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16317. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16318. echo $ECHO_N "(cached) $ECHO_C" >&6
  16319. else
  16320. cat >conftest.$ac_ext <<_ACEOF
  16321. /* confdefs.h. */
  16322. _ACEOF
  16323. cat confdefs.h >>conftest.$ac_ext
  16324. cat >>conftest.$ac_ext <<_ACEOF
  16325. /* end confdefs.h. */
  16326. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16327. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16328. #define $ac_func innocuous_$ac_func
  16329. /* System header to define __stub macros and hopefully few prototypes,
  16330. which can conflict with char $ac_func (); below.
  16331. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16332. <limits.h> exists even on freestanding compilers. */
  16333. #ifdef __STDC__
  16334. # include <limits.h>
  16335. #else
  16336. # include <assert.h>
  16337. #endif
  16338. #undef $ac_func
  16339. /* Override any GCC internal prototype to avoid an error.
  16340. Use char because int might match the return type of a GCC
  16341. builtin and then its argument prototype would still apply. */
  16342. #ifdef __cplusplus
  16343. extern "C"
  16344. #endif
  16345. char $ac_func ();
  16346. /* The GNU C library defines this for functions which it implements
  16347. to always fail with ENOSYS. Some functions are actually named
  16348. something starting with __ and the normal name is an alias. */
  16349. #if defined __stub_$ac_func || defined __stub___$ac_func
  16350. choke me
  16351. #endif
  16352. int
  16353. main ()
  16354. {
  16355. return $ac_func ();
  16356. ;
  16357. return 0;
  16358. }
  16359. _ACEOF
  16360. rm -f conftest.$ac_objext conftest$ac_exeext
  16361. if { (ac_try="$ac_link"
  16362. case "(($ac_try" in
  16363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16364. *) ac_try_echo=$ac_try;;
  16365. esac
  16366. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16367. (eval "$ac_link") 2>conftest.er1
  16368. ac_status=$?
  16369. grep -v '^ *+' conftest.er1 >conftest.err
  16370. rm -f conftest.er1
  16371. cat conftest.err >&5
  16372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16373. (exit $ac_status); } && {
  16374. test -z "$ac_cxx_werror_flag" ||
  16375. test ! -s conftest.err
  16376. } && test -s conftest$ac_exeext &&
  16377. $as_test_x conftest$ac_exeext; then
  16378. eval "$as_ac_var=yes"
  16379. else
  16380. echo "$as_me: failed program was:" >&5
  16381. sed 's/^/| /' conftest.$ac_ext >&5
  16382. eval "$as_ac_var=no"
  16383. fi
  16384. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16385. conftest$ac_exeext conftest.$ac_ext
  16386. fi
  16387. ac_res=`eval echo '${'$as_ac_var'}'`
  16388. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16389. echo "${ECHO_T}$ac_res" >&6; }
  16390. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16391. cat >>confdefs.h <<_ACEOF
  16392. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16393. _ACEOF
  16394. if true; then
  16395. HAVE_INET_ATON_TRUE=
  16396. HAVE_INET_ATON_FALSE='#'
  16397. else
  16398. HAVE_INET_ATON_TRUE='#'
  16399. HAVE_INET_ATON_FALSE=
  16400. fi
  16401. else
  16402. if false; then
  16403. HAVE_INET_ATON_TRUE=
  16404. HAVE_INET_ATON_FALSE='#'
  16405. else
  16406. HAVE_INET_ATON_TRUE='#'
  16407. HAVE_INET_ATON_FALSE=
  16408. fi
  16409. fi
  16410. done
  16411. for ac_func in localtime_r
  16412. do
  16413. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16414. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16415. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16416. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16417. echo $ECHO_N "(cached) $ECHO_C" >&6
  16418. else
  16419. cat >conftest.$ac_ext <<_ACEOF
  16420. /* confdefs.h. */
  16421. _ACEOF
  16422. cat confdefs.h >>conftest.$ac_ext
  16423. cat >>conftest.$ac_ext <<_ACEOF
  16424. /* end confdefs.h. */
  16425. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16426. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16427. #define $ac_func innocuous_$ac_func
  16428. /* System header to define __stub macros and hopefully few prototypes,
  16429. which can conflict with char $ac_func (); below.
  16430. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16431. <limits.h> exists even on freestanding compilers. */
  16432. #ifdef __STDC__
  16433. # include <limits.h>
  16434. #else
  16435. # include <assert.h>
  16436. #endif
  16437. #undef $ac_func
  16438. /* Override any GCC internal prototype to avoid an error.
  16439. Use char because int might match the return type of a GCC
  16440. builtin and then its argument prototype would still apply. */
  16441. #ifdef __cplusplus
  16442. extern "C"
  16443. #endif
  16444. char $ac_func ();
  16445. /* The GNU C library defines this for functions which it implements
  16446. to always fail with ENOSYS. Some functions are actually named
  16447. something starting with __ and the normal name is an alias. */
  16448. #if defined __stub_$ac_func || defined __stub___$ac_func
  16449. choke me
  16450. #endif
  16451. int
  16452. main ()
  16453. {
  16454. return $ac_func ();
  16455. ;
  16456. return 0;
  16457. }
  16458. _ACEOF
  16459. rm -f conftest.$ac_objext conftest$ac_exeext
  16460. if { (ac_try="$ac_link"
  16461. case "(($ac_try" in
  16462. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16463. *) ac_try_echo=$ac_try;;
  16464. esac
  16465. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16466. (eval "$ac_link") 2>conftest.er1
  16467. ac_status=$?
  16468. grep -v '^ *+' conftest.er1 >conftest.err
  16469. rm -f conftest.er1
  16470. cat conftest.err >&5
  16471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16472. (exit $ac_status); } && {
  16473. test -z "$ac_cxx_werror_flag" ||
  16474. test ! -s conftest.err
  16475. } && test -s conftest$ac_exeext &&
  16476. $as_test_x conftest$ac_exeext; then
  16477. eval "$as_ac_var=yes"
  16478. else
  16479. echo "$as_me: failed program was:" >&5
  16480. sed 's/^/| /' conftest.$ac_ext >&5
  16481. eval "$as_ac_var=no"
  16482. fi
  16483. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16484. conftest$ac_exeext conftest.$ac_ext
  16485. fi
  16486. ac_res=`eval echo '${'$as_ac_var'}'`
  16487. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16488. echo "${ECHO_T}$ac_res" >&6; }
  16489. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16490. cat >>confdefs.h <<_ACEOF
  16491. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16492. _ACEOF
  16493. if true; then
  16494. HAVE_LOCALTIME_R_TRUE=
  16495. HAVE_LOCALTIME_R_FALSE='#'
  16496. else
  16497. HAVE_LOCALTIME_R_TRUE='#'
  16498. HAVE_LOCALTIME_R_FALSE=
  16499. fi
  16500. else
  16501. if false; then
  16502. HAVE_LOCALTIME_R_TRUE=
  16503. HAVE_LOCALTIME_R_FALSE='#'
  16504. else
  16505. HAVE_LOCALTIME_R_TRUE='#'
  16506. HAVE_LOCALTIME_R_FALSE=
  16507. fi
  16508. fi
  16509. done
  16510. for ac_func in strptime
  16511. do
  16512. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16513. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16514. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16515. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16516. echo $ECHO_N "(cached) $ECHO_C" >&6
  16517. else
  16518. cat >conftest.$ac_ext <<_ACEOF
  16519. /* confdefs.h. */
  16520. _ACEOF
  16521. cat confdefs.h >>conftest.$ac_ext
  16522. cat >>conftest.$ac_ext <<_ACEOF
  16523. /* end confdefs.h. */
  16524. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16525. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16526. #define $ac_func innocuous_$ac_func
  16527. /* System header to define __stub macros and hopefully few prototypes,
  16528. which can conflict with char $ac_func (); below.
  16529. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16530. <limits.h> exists even on freestanding compilers. */
  16531. #ifdef __STDC__
  16532. # include <limits.h>
  16533. #else
  16534. # include <assert.h>
  16535. #endif
  16536. #undef $ac_func
  16537. /* Override any GCC internal prototype to avoid an error.
  16538. Use char because int might match the return type of a GCC
  16539. builtin and then its argument prototype would still apply. */
  16540. #ifdef __cplusplus
  16541. extern "C"
  16542. #endif
  16543. char $ac_func ();
  16544. /* The GNU C library defines this for functions which it implements
  16545. to always fail with ENOSYS. Some functions are actually named
  16546. something starting with __ and the normal name is an alias. */
  16547. #if defined __stub_$ac_func || defined __stub___$ac_func
  16548. choke me
  16549. #endif
  16550. int
  16551. main ()
  16552. {
  16553. return $ac_func ();
  16554. ;
  16555. return 0;
  16556. }
  16557. _ACEOF
  16558. rm -f conftest.$ac_objext conftest$ac_exeext
  16559. if { (ac_try="$ac_link"
  16560. case "(($ac_try" in
  16561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16562. *) ac_try_echo=$ac_try;;
  16563. esac
  16564. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16565. (eval "$ac_link") 2>conftest.er1
  16566. ac_status=$?
  16567. grep -v '^ *+' conftest.er1 >conftest.err
  16568. rm -f conftest.er1
  16569. cat conftest.err >&5
  16570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16571. (exit $ac_status); } && {
  16572. test -z "$ac_cxx_werror_flag" ||
  16573. test ! -s conftest.err
  16574. } && test -s conftest$ac_exeext &&
  16575. $as_test_x conftest$ac_exeext; then
  16576. eval "$as_ac_var=yes"
  16577. else
  16578. echo "$as_me: failed program was:" >&5
  16579. sed 's/^/| /' conftest.$ac_ext >&5
  16580. eval "$as_ac_var=no"
  16581. fi
  16582. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16583. conftest$ac_exeext conftest.$ac_ext
  16584. fi
  16585. ac_res=`eval echo '${'$as_ac_var'}'`
  16586. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16587. echo "${ECHO_T}$ac_res" >&6; }
  16588. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16589. cat >>confdefs.h <<_ACEOF
  16590. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16591. _ACEOF
  16592. if true; then
  16593. HAVE_STRPTIME_TRUE=
  16594. HAVE_STRPTIME_FALSE='#'
  16595. else
  16596. HAVE_STRPTIME_TRUE='#'
  16597. HAVE_STRPTIME_FALSE=
  16598. fi
  16599. else
  16600. if false; then
  16601. HAVE_STRPTIME_TRUE=
  16602. HAVE_STRPTIME_FALSE='#'
  16603. else
  16604. HAVE_STRPTIME_TRUE='#'
  16605. HAVE_STRPTIME_FALSE=
  16606. fi
  16607. fi
  16608. done
  16609. for ac_func in timegm
  16610. do
  16611. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16612. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16613. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16614. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16615. echo $ECHO_N "(cached) $ECHO_C" >&6
  16616. else
  16617. cat >conftest.$ac_ext <<_ACEOF
  16618. /* confdefs.h. */
  16619. _ACEOF
  16620. cat confdefs.h >>conftest.$ac_ext
  16621. cat >>conftest.$ac_ext <<_ACEOF
  16622. /* end confdefs.h. */
  16623. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16624. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16625. #define $ac_func innocuous_$ac_func
  16626. /* System header to define __stub macros and hopefully few prototypes,
  16627. which can conflict with char $ac_func (); below.
  16628. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16629. <limits.h> exists even on freestanding compilers. */
  16630. #ifdef __STDC__
  16631. # include <limits.h>
  16632. #else
  16633. # include <assert.h>
  16634. #endif
  16635. #undef $ac_func
  16636. /* Override any GCC internal prototype to avoid an error.
  16637. Use char because int might match the return type of a GCC
  16638. builtin and then its argument prototype would still apply. */
  16639. #ifdef __cplusplus
  16640. extern "C"
  16641. #endif
  16642. char $ac_func ();
  16643. /* The GNU C library defines this for functions which it implements
  16644. to always fail with ENOSYS. Some functions are actually named
  16645. something starting with __ and the normal name is an alias. */
  16646. #if defined __stub_$ac_func || defined __stub___$ac_func
  16647. choke me
  16648. #endif
  16649. int
  16650. main ()
  16651. {
  16652. return $ac_func ();
  16653. ;
  16654. return 0;
  16655. }
  16656. _ACEOF
  16657. rm -f conftest.$ac_objext conftest$ac_exeext
  16658. if { (ac_try="$ac_link"
  16659. case "(($ac_try" in
  16660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16661. *) ac_try_echo=$ac_try;;
  16662. esac
  16663. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16664. (eval "$ac_link") 2>conftest.er1
  16665. ac_status=$?
  16666. grep -v '^ *+' conftest.er1 >conftest.err
  16667. rm -f conftest.er1
  16668. cat conftest.err >&5
  16669. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16670. (exit $ac_status); } && {
  16671. test -z "$ac_cxx_werror_flag" ||
  16672. test ! -s conftest.err
  16673. } && test -s conftest$ac_exeext &&
  16674. $as_test_x conftest$ac_exeext; then
  16675. eval "$as_ac_var=yes"
  16676. else
  16677. echo "$as_me: failed program was:" >&5
  16678. sed 's/^/| /' conftest.$ac_ext >&5
  16679. eval "$as_ac_var=no"
  16680. fi
  16681. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16682. conftest$ac_exeext conftest.$ac_ext
  16683. fi
  16684. ac_res=`eval echo '${'$as_ac_var'}'`
  16685. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16686. echo "${ECHO_T}$ac_res" >&6; }
  16687. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16688. cat >>confdefs.h <<_ACEOF
  16689. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16690. _ACEOF
  16691. if true; then
  16692. HAVE_TIMEGM_TRUE=
  16693. HAVE_TIMEGM_FALSE='#'
  16694. else
  16695. HAVE_TIMEGM_TRUE='#'
  16696. HAVE_TIMEGM_FALSE=
  16697. fi
  16698. else
  16699. if false; then
  16700. HAVE_TIMEGM_TRUE=
  16701. HAVE_TIMEGM_FALSE='#'
  16702. else
  16703. HAVE_TIMEGM_TRUE='#'
  16704. HAVE_TIMEGM_FALSE=
  16705. fi
  16706. fi
  16707. done
  16708. case "$target" in
  16709. *mingw*)
  16710. if true; then
  16711. HAVE_GETADDRINFO_TRUE=
  16712. HAVE_GETADDRINFO_FALSE='#'
  16713. else
  16714. HAVE_GETADDRINFO_TRUE='#'
  16715. HAVE_GETADDRINFO_FALSE=
  16716. fi
  16717. if false; then
  16718. HAVE_GAI_STRERROR_TRUE=
  16719. HAVE_GAI_STRERROR_FALSE='#'
  16720. else
  16721. HAVE_GAI_STRERROR_TRUE='#'
  16722. HAVE_GAI_STRERROR_FALSE=
  16723. fi
  16724. ;;
  16725. esac
  16726. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  16727. cat >confcache <<\_ACEOF
  16728. # This file is a shell script that caches the results of configure
  16729. # tests run on this system so they can be shared between configure
  16730. # scripts and configure runs, see configure's option --config-cache.
  16731. # It is not useful on other systems. If it contains results you don't
  16732. # want to keep, you may remove or edit it.
  16733. #
  16734. # config.status only pays attention to the cache file if you give it
  16735. # the --recheck option to rerun configure.
  16736. #
  16737. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  16738. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  16739. # following values.
  16740. _ACEOF
  16741. # The following way of writing the cache mishandles newlines in values,
  16742. # but we know of no workaround that is simple, portable, and efficient.
  16743. # So, we kill variables containing newlines.
  16744. # Ultrix sh set writes to stderr and can't be redirected directly,
  16745. # and sets the high bit in the cache file unless we assign to the vars.
  16746. (
  16747. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  16748. eval ac_val=\$$ac_var
  16749. case $ac_val in #(
  16750. *${as_nl}*)
  16751. case $ac_var in #(
  16752. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  16753. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  16754. esac
  16755. case $ac_var in #(
  16756. _ | IFS | as_nl) ;; #(
  16757. *) $as_unset $ac_var ;;
  16758. esac ;;
  16759. esac
  16760. done
  16761. (set) 2>&1 |
  16762. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  16763. *${as_nl}ac_space=\ *)
  16764. # `set' does not quote correctly, so add quotes (double-quote
  16765. # substitution turns \\\\ into \\, and sed turns \\ into \).
  16766. sed -n \
  16767. "s/'/'\\\\''/g;
  16768. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  16769. ;; #(
  16770. *)
  16771. # `set' quotes correctly as required by POSIX, so do not add quotes.
  16772. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  16773. ;;
  16774. esac |
  16775. sort
  16776. ) |
  16777. sed '
  16778. /^ac_cv_env_/b end
  16779. t clear
  16780. :clear
  16781. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  16782. t end
  16783. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  16784. :end' >>confcache
  16785. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  16786. if test -w "$cache_file"; then
  16787. test "x$cache_file" != "x/dev/null" &&
  16788. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  16789. echo "$as_me: updating cache $cache_file" >&6;}
  16790. cat confcache >$cache_file
  16791. else
  16792. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  16793. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  16794. fi
  16795. fi
  16796. rm -f confcache
  16797. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  16798. # Let make expand exec_prefix.
  16799. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  16800. DEFS=-DHAVE_CONFIG_H
  16801. ac_libobjs=
  16802. ac_ltlibobjs=
  16803. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  16804. # 1. Remove the extension, and $U if already installed.
  16805. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  16806. ac_i=`echo "$ac_i" | sed "$ac_script"`
  16807. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  16808. # will be set to the directory where LIBOBJS objects are built.
  16809. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  16810. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  16811. done
  16812. LIBOBJS=$ac_libobjs
  16813. LTLIBOBJS=$ac_ltlibobjs
  16814. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  16815. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  16816. Usually this means the macro was only invoked conditionally." >&5
  16817. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  16818. Usually this means the macro was only invoked conditionally." >&2;}
  16819. { (exit 1); exit 1; }; }
  16820. fi
  16821. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  16822. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  16823. Usually this means the macro was only invoked conditionally." >&5
  16824. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  16825. Usually this means the macro was only invoked conditionally." >&2;}
  16826. { (exit 1); exit 1; }; }
  16827. fi
  16828. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  16829. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  16830. Usually this means the macro was only invoked conditionally." >&5
  16831. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  16832. Usually this means the macro was only invoked conditionally." >&2;}
  16833. { (exit 1); exit 1; }; }
  16834. fi
  16835. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  16836. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  16837. Usually this means the macro was only invoked conditionally." >&5
  16838. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  16839. Usually this means the macro was only invoked conditionally." >&2;}
  16840. { (exit 1); exit 1; }; }
  16841. fi
  16842. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  16843. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  16844. Usually this means the macro was only invoked conditionally." >&5
  16845. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  16846. Usually this means the macro was only invoked conditionally." >&2;}
  16847. { (exit 1); exit 1; }; }
  16848. fi
  16849. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  16850. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  16851. Usually this means the macro was only invoked conditionally." >&5
  16852. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  16853. Usually this means the macro was only invoked conditionally." >&2;}
  16854. { (exit 1); exit 1; }; }
  16855. fi
  16856. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  16857. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  16858. Usually this means the macro was only invoked conditionally." >&5
  16859. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  16860. Usually this means the macro was only invoked conditionally." >&2;}
  16861. { (exit 1); exit 1; }; }
  16862. fi
  16863. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  16864. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  16865. Usually this means the macro was only invoked conditionally." >&5
  16866. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  16867. Usually this means the macro was only invoked conditionally." >&2;}
  16868. { (exit 1); exit 1; }; }
  16869. fi
  16870. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  16871. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  16872. Usually this means the macro was only invoked conditionally." >&5
  16873. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  16874. Usually this means the macro was only invoked conditionally." >&2;}
  16875. { (exit 1); exit 1; }; }
  16876. fi
  16877. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  16878. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  16879. Usually this means the macro was only invoked conditionally." >&5
  16880. echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  16881. Usually this means the macro was only invoked conditionally." >&2;}
  16882. { (exit 1); exit 1; }; }
  16883. fi
  16884. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  16885. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  16886. Usually this means the macro was only invoked conditionally." >&5
  16887. echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  16888. Usually this means the macro was only invoked conditionally." >&2;}
  16889. { (exit 1); exit 1; }; }
  16890. fi
  16891. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  16892. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  16893. Usually this means the macro was only invoked conditionally." >&5
  16894. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  16895. Usually this means the macro was only invoked conditionally." >&2;}
  16896. { (exit 1); exit 1; }; }
  16897. fi
  16898. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  16899. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  16900. Usually this means the macro was only invoked conditionally." >&5
  16901. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  16902. Usually this means the macro was only invoked conditionally." >&2;}
  16903. { (exit 1); exit 1; }; }
  16904. fi
  16905. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  16906. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  16907. Usually this means the macro was only invoked conditionally." >&5
  16908. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  16909. Usually this means the macro was only invoked conditionally." >&2;}
  16910. { (exit 1); exit 1; }; }
  16911. fi
  16912. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  16913. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  16914. Usually this means the macro was only invoked conditionally." >&5
  16915. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  16916. Usually this means the macro was only invoked conditionally." >&2;}
  16917. { (exit 1); exit 1; }; }
  16918. fi
  16919. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  16920. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16921. Usually this means the macro was only invoked conditionally." >&5
  16922. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16923. Usually this means the macro was only invoked conditionally." >&2;}
  16924. { (exit 1); exit 1; }; }
  16925. fi
  16926. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  16927. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16928. Usually this means the macro was only invoked conditionally." >&5
  16929. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16930. Usually this means the macro was only invoked conditionally." >&2;}
  16931. { (exit 1); exit 1; }; }
  16932. fi
  16933. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  16934. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16935. Usually this means the macro was only invoked conditionally." >&5
  16936. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16937. Usually this means the macro was only invoked conditionally." >&2;}
  16938. { (exit 1); exit 1; }; }
  16939. fi
  16940. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  16941. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16942. Usually this means the macro was only invoked conditionally." >&5
  16943. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16944. Usually this means the macro was only invoked conditionally." >&2;}
  16945. { (exit 1); exit 1; }; }
  16946. fi
  16947. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  16948. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  16949. Usually this means the macro was only invoked conditionally." >&5
  16950. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  16951. Usually this means the macro was only invoked conditionally." >&2;}
  16952. { (exit 1); exit 1; }; }
  16953. fi
  16954. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  16955. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  16956. Usually this means the macro was only invoked conditionally." >&5
  16957. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  16958. Usually this means the macro was only invoked conditionally." >&2;}
  16959. { (exit 1); exit 1; }; }
  16960. fi
  16961. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  16962. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  16963. Usually this means the macro was only invoked conditionally." >&5
  16964. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  16965. Usually this means the macro was only invoked conditionally." >&2;}
  16966. { (exit 1); exit 1; }; }
  16967. fi
  16968. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  16969. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  16970. Usually this means the macro was only invoked conditionally." >&5
  16971. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  16972. Usually this means the macro was only invoked conditionally." >&2;}
  16973. { (exit 1); exit 1; }; }
  16974. fi
  16975. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  16976. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  16977. Usually this means the macro was only invoked conditionally." >&5
  16978. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  16979. Usually this means the macro was only invoked conditionally." >&2;}
  16980. { (exit 1); exit 1; }; }
  16981. fi
  16982. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  16983. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  16984. Usually this means the macro was only invoked conditionally." >&5
  16985. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  16986. Usually this means the macro was only invoked conditionally." >&2;}
  16987. { (exit 1); exit 1; }; }
  16988. fi
  16989. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  16990. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  16991. Usually this means the macro was only invoked conditionally." >&5
  16992. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  16993. Usually this means the macro was only invoked conditionally." >&2;}
  16994. { (exit 1); exit 1; }; }
  16995. fi
  16996. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  16997. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  16998. Usually this means the macro was only invoked conditionally." >&5
  16999. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  17000. Usually this means the macro was only invoked conditionally." >&2;}
  17001. { (exit 1); exit 1; }; }
  17002. fi
  17003. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  17004. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  17005. Usually this means the macro was only invoked conditionally." >&5
  17006. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  17007. Usually this means the macro was only invoked conditionally." >&2;}
  17008. { (exit 1); exit 1; }; }
  17009. fi
  17010. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  17011. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  17012. Usually this means the macro was only invoked conditionally." >&5
  17013. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  17014. Usually this means the macro was only invoked conditionally." >&2;}
  17015. { (exit 1); exit 1; }; }
  17016. fi
  17017. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  17018. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  17019. Usually this means the macro was only invoked conditionally." >&5
  17020. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  17021. Usually this means the macro was only invoked conditionally." >&2;}
  17022. { (exit 1); exit 1; }; }
  17023. fi
  17024. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  17025. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  17026. Usually this means the macro was only invoked conditionally." >&5
  17027. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  17028. Usually this means the macro was only invoked conditionally." >&2;}
  17029. { (exit 1); exit 1; }; }
  17030. fi
  17031. : ${CONFIG_STATUS=./config.status}
  17032. ac_clean_files_save=$ac_clean_files
  17033. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  17034. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  17035. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  17036. cat >$CONFIG_STATUS <<_ACEOF
  17037. #! $SHELL
  17038. # Generated by $as_me.
  17039. # Run this file to recreate the current configuration.
  17040. # Compiler output produced by configure, useful for debugging
  17041. # configure, is in config.log if it exists.
  17042. debug=false
  17043. ac_cs_recheck=false
  17044. ac_cs_silent=false
  17045. SHELL=\${CONFIG_SHELL-$SHELL}
  17046. _ACEOF
  17047. cat >>$CONFIG_STATUS <<\_ACEOF
  17048. ## --------------------- ##
  17049. ## M4sh Initialization. ##
  17050. ## --------------------- ##
  17051. # Be more Bourne compatible
  17052. DUALCASE=1; export DUALCASE # for MKS sh
  17053. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17054. emulate sh
  17055. NULLCMD=:
  17056. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17057. # is contrary to our usage. Disable this feature.
  17058. alias -g '${1+"$@"}'='"$@"'
  17059. setopt NO_GLOB_SUBST
  17060. else
  17061. case `(set -o) 2>/dev/null` in
  17062. *posix*) set -o posix ;;
  17063. esac
  17064. fi
  17065. # PATH needs CR
  17066. # Avoid depending upon Character Ranges.
  17067. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  17068. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  17069. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  17070. as_cr_digits='0123456789'
  17071. as_cr_alnum=$as_cr_Letters$as_cr_digits
  17072. # The user is always right.
  17073. if test "${PATH_SEPARATOR+set}" != set; then
  17074. echo "#! /bin/sh" >conf$$.sh
  17075. echo "exit 0" >>conf$$.sh
  17076. chmod +x conf$$.sh
  17077. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  17078. PATH_SEPARATOR=';'
  17079. else
  17080. PATH_SEPARATOR=:
  17081. fi
  17082. rm -f conf$$.sh
  17083. fi
  17084. # Support unset when possible.
  17085. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  17086. as_unset=unset
  17087. else
  17088. as_unset=false
  17089. fi
  17090. # IFS
  17091. # We need space, tab and new line, in precisely that order. Quoting is
  17092. # there to prevent editors from complaining about space-tab.
  17093. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  17094. # splitting by setting IFS to empty value.)
  17095. as_nl='
  17096. '
  17097. IFS=" "" $as_nl"
  17098. # Find who we are. Look in the path if we contain no directory separator.
  17099. case $0 in
  17100. *[\\/]* ) as_myself=$0 ;;
  17101. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17102. for as_dir in $PATH
  17103. do
  17104. IFS=$as_save_IFS
  17105. test -z "$as_dir" && as_dir=.
  17106. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  17107. done
  17108. IFS=$as_save_IFS
  17109. ;;
  17110. esac
  17111. # We did not find ourselves, most probably we were run as `sh COMMAND'
  17112. # in which case we are not to be found in the path.
  17113. if test "x$as_myself" = x; then
  17114. as_myself=$0
  17115. fi
  17116. if test ! -f "$as_myself"; then
  17117. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  17118. { (exit 1); exit 1; }
  17119. fi
  17120. # Work around bugs in pre-3.0 UWIN ksh.
  17121. for as_var in ENV MAIL MAILPATH
  17122. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  17123. done
  17124. PS1='$ '
  17125. PS2='> '
  17126. PS4='+ '
  17127. # NLS nuisances.
  17128. for as_var in \
  17129. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  17130. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  17131. LC_TELEPHONE LC_TIME
  17132. do
  17133. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  17134. eval $as_var=C; export $as_var
  17135. else
  17136. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  17137. fi
  17138. done
  17139. # Required to use basename.
  17140. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17141. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17142. as_expr=expr
  17143. else
  17144. as_expr=false
  17145. fi
  17146. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  17147. as_basename=basename
  17148. else
  17149. as_basename=false
  17150. fi
  17151. # Name of the executable.
  17152. as_me=`$as_basename -- "$0" ||
  17153. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  17154. X"$0" : 'X\(//\)$' \| \
  17155. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  17156. echo X/"$0" |
  17157. sed '/^.*\/\([^/][^/]*\)\/*$/{
  17158. s//\1/
  17159. q
  17160. }
  17161. /^X\/\(\/\/\)$/{
  17162. s//\1/
  17163. q
  17164. }
  17165. /^X\/\(\/\).*/{
  17166. s//\1/
  17167. q
  17168. }
  17169. s/.*/./; q'`
  17170. # CDPATH.
  17171. $as_unset CDPATH
  17172. as_lineno_1=$LINENO
  17173. as_lineno_2=$LINENO
  17174. test "x$as_lineno_1" != "x$as_lineno_2" &&
  17175. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  17176. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  17177. # uniformly replaced by the line number. The first 'sed' inserts a
  17178. # line-number line after each line using $LINENO; the second 'sed'
  17179. # does the real work. The second script uses 'N' to pair each
  17180. # line-number line with the line containing $LINENO, and appends
  17181. # trailing '-' during substitution so that $LINENO is not a special
  17182. # case at line end.
  17183. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  17184. # scripts with optimization help from Paolo Bonzini. Blame Lee
  17185. # E. McMahon (1931-1989) for sed's syntax. :-)
  17186. sed -n '
  17187. p
  17188. /[$]LINENO/=
  17189. ' <$as_myself |
  17190. sed '
  17191. s/[$]LINENO.*/&-/
  17192. t lineno
  17193. b
  17194. :lineno
  17195. N
  17196. :loop
  17197. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  17198. t loop
  17199. s/-\n.*//
  17200. ' >$as_me.lineno &&
  17201. chmod +x "$as_me.lineno" ||
  17202. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  17203. { (exit 1); exit 1; }; }
  17204. # Don't try to exec as it changes $[0], causing all sort of problems
  17205. # (the dirname of $[0] is not the place where we might find the
  17206. # original and so on. Autoconf is especially sensitive to this).
  17207. . "./$as_me.lineno"
  17208. # Exit status is that of the last command.
  17209. exit
  17210. }
  17211. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  17212. as_dirname=dirname
  17213. else
  17214. as_dirname=false
  17215. fi
  17216. ECHO_C= ECHO_N= ECHO_T=
  17217. case `echo -n x` in
  17218. -n*)
  17219. case `echo 'x\c'` in
  17220. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  17221. *) ECHO_C='\c';;
  17222. esac;;
  17223. *)
  17224. ECHO_N='-n';;
  17225. esac
  17226. if expr a : '\(a\)' >/dev/null 2>&1 &&
  17227. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  17228. as_expr=expr
  17229. else
  17230. as_expr=false
  17231. fi
  17232. rm -f conf$$ conf$$.exe conf$$.file
  17233. if test -d conf$$.dir; then
  17234. rm -f conf$$.dir/conf$$.file
  17235. else
  17236. rm -f conf$$.dir
  17237. mkdir conf$$.dir
  17238. fi
  17239. echo >conf$$.file
  17240. if ln -s conf$$.file conf$$ 2>/dev/null; then
  17241. as_ln_s='ln -s'
  17242. # ... but there are two gotchas:
  17243. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  17244. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  17245. # In both cases, we have to default to `cp -p'.
  17246. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  17247. as_ln_s='cp -p'
  17248. elif ln conf$$.file conf$$ 2>/dev/null; then
  17249. as_ln_s=ln
  17250. else
  17251. as_ln_s='cp -p'
  17252. fi
  17253. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  17254. rmdir conf$$.dir 2>/dev/null
  17255. if mkdir -p . 2>/dev/null; then
  17256. as_mkdir_p=:
  17257. else
  17258. test -d ./-p && rmdir ./-p
  17259. as_mkdir_p=false
  17260. fi
  17261. if test -x / >/dev/null 2>&1; then
  17262. as_test_x='test -x'
  17263. else
  17264. if ls -dL / >/dev/null 2>&1; then
  17265. as_ls_L_option=L
  17266. else
  17267. as_ls_L_option=
  17268. fi
  17269. as_test_x='
  17270. eval sh -c '\''
  17271. if test -d "$1"; then
  17272. test -d "$1/.";
  17273. else
  17274. case $1 in
  17275. -*)set "./$1";;
  17276. esac;
  17277. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  17278. ???[sx]*):;;*)false;;esac;fi
  17279. '\'' sh
  17280. '
  17281. fi
  17282. as_executable_p=$as_test_x
  17283. # Sed expression to map a string onto a valid CPP name.
  17284. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  17285. # Sed expression to map a string onto a valid variable name.
  17286. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  17287. exec 6>&1
  17288. # Save the log message, to keep $[0] and so on meaningful, and to
  17289. # report actual input values of CONFIG_FILES etc. instead of their
  17290. # values after options handling.
  17291. ac_log="
  17292. This file was extended by aria2c $as_me 0.13.0+1, which was
  17293. generated by GNU Autoconf 2.61. Invocation command line was
  17294. CONFIG_FILES = $CONFIG_FILES
  17295. CONFIG_HEADERS = $CONFIG_HEADERS
  17296. CONFIG_LINKS = $CONFIG_LINKS
  17297. CONFIG_COMMANDS = $CONFIG_COMMANDS
  17298. $ $0 $@
  17299. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  17300. "
  17301. _ACEOF
  17302. cat >>$CONFIG_STATUS <<_ACEOF
  17303. # Files that config.status was made for.
  17304. config_files="$ac_config_files"
  17305. config_headers="$ac_config_headers"
  17306. config_commands="$ac_config_commands"
  17307. _ACEOF
  17308. cat >>$CONFIG_STATUS <<\_ACEOF
  17309. ac_cs_usage="\
  17310. \`$as_me' instantiates files from templates according to the
  17311. current configuration.
  17312. Usage: $0 [OPTIONS] [FILE]...
  17313. -h, --help print this help, then exit
  17314. -V, --version print version number and configuration settings, then exit
  17315. -q, --quiet do not print progress messages
  17316. -d, --debug don't remove temporary files
  17317. --recheck update $as_me by reconfiguring in the same conditions
  17318. --file=FILE[:TEMPLATE]
  17319. instantiate the configuration file FILE
  17320. --header=FILE[:TEMPLATE]
  17321. instantiate the configuration header FILE
  17322. Configuration files:
  17323. $config_files
  17324. Configuration headers:
  17325. $config_headers
  17326. Configuration commands:
  17327. $config_commands
  17328. Report bugs to <bug-autoconf@gnu.org>."
  17329. _ACEOF
  17330. cat >>$CONFIG_STATUS <<_ACEOF
  17331. ac_cs_version="\\
  17332. aria2c config.status 0.13.0+1
  17333. configured by $0, generated by GNU Autoconf 2.61,
  17334. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  17335. Copyright (C) 2006 Free Software Foundation, Inc.
  17336. This config.status script is free software; the Free Software Foundation
  17337. gives unlimited permission to copy, distribute and modify it."
  17338. ac_pwd='$ac_pwd'
  17339. srcdir='$srcdir'
  17340. INSTALL='$INSTALL'
  17341. _ACEOF
  17342. cat >>$CONFIG_STATUS <<\_ACEOF
  17343. # If no file are specified by the user, then we need to provide default
  17344. # value. By we need to know if files were specified by the user.
  17345. ac_need_defaults=:
  17346. while test $# != 0
  17347. do
  17348. case $1 in
  17349. --*=*)
  17350. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  17351. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  17352. ac_shift=:
  17353. ;;
  17354. *)
  17355. ac_option=$1
  17356. ac_optarg=$2
  17357. ac_shift=shift
  17358. ;;
  17359. esac
  17360. case $ac_option in
  17361. # Handling of the options.
  17362. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  17363. ac_cs_recheck=: ;;
  17364. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  17365. echo "$ac_cs_version"; exit ;;
  17366. --debug | --debu | --deb | --de | --d | -d )
  17367. debug=: ;;
  17368. --file | --fil | --fi | --f )
  17369. $ac_shift
  17370. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  17371. ac_need_defaults=false;;
  17372. --header | --heade | --head | --hea )
  17373. $ac_shift
  17374. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  17375. ac_need_defaults=false;;
  17376. --he | --h)
  17377. # Conflict between --help and --header
  17378. { echo "$as_me: error: ambiguous option: $1
  17379. Try \`$0 --help' for more information." >&2
  17380. { (exit 1); exit 1; }; };;
  17381. --help | --hel | -h )
  17382. echo "$ac_cs_usage"; exit ;;
  17383. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17384. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  17385. ac_cs_silent=: ;;
  17386. # This is an error.
  17387. -*) { echo "$as_me: error: unrecognized option: $1
  17388. Try \`$0 --help' for more information." >&2
  17389. { (exit 1); exit 1; }; } ;;
  17390. *) ac_config_targets="$ac_config_targets $1"
  17391. ac_need_defaults=false ;;
  17392. esac
  17393. shift
  17394. done
  17395. ac_configure_extra_args=
  17396. if $ac_cs_silent; then
  17397. exec 6>/dev/null
  17398. ac_configure_extra_args="$ac_configure_extra_args --silent"
  17399. fi
  17400. _ACEOF
  17401. cat >>$CONFIG_STATUS <<_ACEOF
  17402. if \$ac_cs_recheck; then
  17403. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  17404. CONFIG_SHELL=$SHELL
  17405. export CONFIG_SHELL
  17406. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  17407. fi
  17408. _ACEOF
  17409. cat >>$CONFIG_STATUS <<\_ACEOF
  17410. exec 5>>config.log
  17411. {
  17412. echo
  17413. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  17414. ## Running $as_me. ##
  17415. _ASBOX
  17416. echo "$ac_log"
  17417. } >&5
  17418. _ACEOF
  17419. cat >>$CONFIG_STATUS <<_ACEOF
  17420. #
  17421. # INIT-COMMANDS
  17422. #
  17423. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  17424. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  17425. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  17426. # from automake < 1.5.
  17427. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  17428. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  17429. LINGUAS="${LINGUAS-%UNSET%}"
  17430. _ACEOF
  17431. cat >>$CONFIG_STATUS <<\_ACEOF
  17432. # Handling of arguments.
  17433. for ac_config_target in $ac_config_targets
  17434. do
  17435. case $ac_config_target in
  17436. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  17437. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  17438. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  17439. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  17440. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  17441. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  17442. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  17443. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  17444. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  17445. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  17446. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  17447. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  17448. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  17449. { (exit 1); exit 1; }; };;
  17450. esac
  17451. done
  17452. # If the user did not use the arguments to specify the items to instantiate,
  17453. # then the envvar interface is used. Set only those that are not.
  17454. # We use the long form for the default assignment because of an extremely
  17455. # bizarre bug on SunOS 4.1.3.
  17456. if $ac_need_defaults; then
  17457. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  17458. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  17459. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  17460. fi
  17461. # Have a temporary directory for convenience. Make it in the build tree
  17462. # simply because there is no reason against having it here, and in addition,
  17463. # creating and moving files from /tmp can sometimes cause problems.
  17464. # Hook for its removal unless debugging.
  17465. # Note that there is a small window in which the directory will not be cleaned:
  17466. # after its creation but before its name has been assigned to `$tmp'.
  17467. $debug ||
  17468. {
  17469. tmp=
  17470. trap 'exit_status=$?
  17471. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  17472. ' 0
  17473. trap '{ (exit 1); exit 1; }' 1 2 13 15
  17474. }
  17475. # Create a (secure) tmp directory for tmp files.
  17476. {
  17477. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  17478. test -n "$tmp" && test -d "$tmp"
  17479. } ||
  17480. {
  17481. tmp=./conf$$-$RANDOM
  17482. (umask 077 && mkdir "$tmp")
  17483. } ||
  17484. {
  17485. echo "$me: cannot create a temporary directory in ." >&2
  17486. { (exit 1); exit 1; }
  17487. }
  17488. #
  17489. # Set up the sed scripts for CONFIG_FILES section.
  17490. #
  17491. # No need to generate the scripts if there are no CONFIG_FILES.
  17492. # This happens for instance when ./config.status config.h
  17493. if test -n "$CONFIG_FILES"; then
  17494. _ACEOF
  17495. ac_delim='%!_!# '
  17496. for ac_last_try in false false false false false :; do
  17497. cat >conf$$subs.sed <<_ACEOF
  17498. SHELL!$SHELL$ac_delim
  17499. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  17500. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  17501. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  17502. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  17503. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  17504. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  17505. exec_prefix!$exec_prefix$ac_delim
  17506. prefix!$prefix$ac_delim
  17507. program_transform_name!$program_transform_name$ac_delim
  17508. bindir!$bindir$ac_delim
  17509. sbindir!$sbindir$ac_delim
  17510. libexecdir!$libexecdir$ac_delim
  17511. datarootdir!$datarootdir$ac_delim
  17512. datadir!$datadir$ac_delim
  17513. sysconfdir!$sysconfdir$ac_delim
  17514. sharedstatedir!$sharedstatedir$ac_delim
  17515. localstatedir!$localstatedir$ac_delim
  17516. includedir!$includedir$ac_delim
  17517. oldincludedir!$oldincludedir$ac_delim
  17518. docdir!$docdir$ac_delim
  17519. infodir!$infodir$ac_delim
  17520. htmldir!$htmldir$ac_delim
  17521. dvidir!$dvidir$ac_delim
  17522. pdfdir!$pdfdir$ac_delim
  17523. psdir!$psdir$ac_delim
  17524. libdir!$libdir$ac_delim
  17525. localedir!$localedir$ac_delim
  17526. mandir!$mandir$ac_delim
  17527. DEFS!$DEFS$ac_delim
  17528. ECHO_C!$ECHO_C$ac_delim
  17529. ECHO_N!$ECHO_N$ac_delim
  17530. ECHO_T!$ECHO_T$ac_delim
  17531. LIBS!$LIBS$ac_delim
  17532. build_alias!$build_alias$ac_delim
  17533. host_alias!$host_alias$ac_delim
  17534. target_alias!$target_alias$ac_delim
  17535. build!$build$ac_delim
  17536. build_cpu!$build_cpu$ac_delim
  17537. build_vendor!$build_vendor$ac_delim
  17538. build_os!$build_os$ac_delim
  17539. host!$host$ac_delim
  17540. host_cpu!$host_cpu$ac_delim
  17541. host_vendor!$host_vendor$ac_delim
  17542. host_os!$host_os$ac_delim
  17543. target!$target$ac_delim
  17544. target_cpu!$target_cpu$ac_delim
  17545. target_vendor!$target_vendor$ac_delim
  17546. target_os!$target_os$ac_delim
  17547. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  17548. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  17549. INSTALL_DATA!$INSTALL_DATA$ac_delim
  17550. CYGPATH_W!$CYGPATH_W$ac_delim
  17551. PACKAGE!$PACKAGE$ac_delim
  17552. VERSION!$VERSION$ac_delim
  17553. ACLOCAL!$ACLOCAL$ac_delim
  17554. AUTOCONF!$AUTOCONF$ac_delim
  17555. AUTOMAKE!$AUTOMAKE$ac_delim
  17556. AUTOHEADER!$AUTOHEADER$ac_delim
  17557. MAKEINFO!$MAKEINFO$ac_delim
  17558. install_sh!$install_sh$ac_delim
  17559. STRIP!$STRIP$ac_delim
  17560. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  17561. mkdir_p!$mkdir_p$ac_delim
  17562. AWK!$AWK$ac_delim
  17563. SET_MAKE!$SET_MAKE$ac_delim
  17564. am__leading_dot!$am__leading_dot$ac_delim
  17565. AMTAR!$AMTAR$ac_delim
  17566. am__tar!$am__tar$ac_delim
  17567. am__untar!$am__untar$ac_delim
  17568. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  17569. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  17570. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  17571. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  17572. CXX!$CXX$ac_delim
  17573. CXXFLAGS!$CXXFLAGS$ac_delim
  17574. LDFLAGS!$LDFLAGS$ac_delim
  17575. CPPFLAGS!$CPPFLAGS$ac_delim
  17576. ac_ct_CXX!$ac_ct_CXX$ac_delim
  17577. EXEEXT!$EXEEXT$ac_delim
  17578. OBJEXT!$OBJEXT$ac_delim
  17579. DEPDIR!$DEPDIR$ac_delim
  17580. am__include!$am__include$ac_delim
  17581. am__quote!$am__quote$ac_delim
  17582. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  17583. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  17584. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  17585. CXXDEPMODE!$CXXDEPMODE$ac_delim
  17586. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  17587. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  17588. CC!$CC$ac_delim
  17589. CFLAGS!$CFLAGS$ac_delim
  17590. ac_ct_CC!$ac_ct_CC$ac_delim
  17591. CCDEPMODE!$CCDEPMODE$ac_delim
  17592. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  17593. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  17594. RANLIB!$RANLIB$ac_delim
  17595. _ACEOF
  17596. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  17597. break
  17598. elif $ac_last_try; then
  17599. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  17600. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  17601. { (exit 1); exit 1; }; }
  17602. else
  17603. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17604. fi
  17605. done
  17606. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  17607. if test -n "$ac_eof"; then
  17608. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  17609. ac_eof=`expr $ac_eof + 1`
  17610. fi
  17611. cat >>$CONFIG_STATUS <<_ACEOF
  17612. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  17613. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17614. _ACEOF
  17615. sed '
  17616. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  17617. s/^/s,@/; s/!/@,|#_!!_#|/
  17618. :n
  17619. t n
  17620. s/'"$ac_delim"'$/,g/; t
  17621. s/$/\\/; p
  17622. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  17623. ' >>$CONFIG_STATUS <conf$$subs.sed
  17624. rm -f conf$$subs.sed
  17625. cat >>$CONFIG_STATUS <<_ACEOF
  17626. CEOF$ac_eof
  17627. _ACEOF
  17628. ac_delim='%!_!# '
  17629. for ac_last_try in false false false false false :; do
  17630. cat >conf$$subs.sed <<_ACEOF
  17631. YACC!$YACC$ac_delim
  17632. YFLAGS!$YFLAGS$ac_delim
  17633. CXXCPP!$CXXCPP$ac_delim
  17634. GREP!$GREP$ac_delim
  17635. EGREP!$EGREP$ac_delim
  17636. XML2_CONFIG!$XML2_CONFIG$ac_delim
  17637. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  17638. XML_LIBS!$XML_LIBS$ac_delim
  17639. LIBEXPAT_LIBS!$LIBEXPAT_LIBS$ac_delim
  17640. LIBEXPAT_CPPFLAGS!$LIBEXPAT_CPPFLAGS$ac_delim
  17641. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  17642. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  17643. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  17644. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  17645. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  17646. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  17647. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  17648. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  17649. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  17650. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  17651. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  17652. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  17653. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  17654. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  17655. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  17656. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  17657. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  17658. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  17659. ENABLE_LIBXML2_TRUE!$ENABLE_LIBXML2_TRUE$ac_delim
  17660. ENABLE_LIBXML2_FALSE!$ENABLE_LIBXML2_FALSE$ac_delim
  17661. ENABLE_LIBEXPAT_TRUE!$ENABLE_LIBEXPAT_TRUE$ac_delim
  17662. ENABLE_LIBEXPAT_FALSE!$ENABLE_LIBEXPAT_FALSE$ac_delim
  17663. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  17664. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  17665. ALLOCA!$ALLOCA$ac_delim
  17666. USE_NLS!$USE_NLS$ac_delim
  17667. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  17668. MSGFMT!$MSGFMT$ac_delim
  17669. GMSGFMT!$GMSGFMT$ac_delim
  17670. MSGFMT_015!$MSGFMT_015$ac_delim
  17671. GMSGFMT_015!$GMSGFMT_015$ac_delim
  17672. XGETTEXT!$XGETTEXT$ac_delim
  17673. XGETTEXT_015!$XGETTEXT_015$ac_delim
  17674. MSGMERGE!$MSGMERGE$ac_delim
  17675. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  17676. GLIBC2!$GLIBC2$ac_delim
  17677. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  17678. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  17679. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  17680. LIBPTH!$LIBPTH$ac_delim
  17681. LTLIBPTH!$LTLIBPTH$ac_delim
  17682. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  17683. LIBTHREAD!$LIBTHREAD$ac_delim
  17684. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  17685. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  17686. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  17687. LIBICONV!$LIBICONV$ac_delim
  17688. LTLIBICONV!$LTLIBICONV$ac_delim
  17689. INTLBISON!$INTLBISON$ac_delim
  17690. GLIBC21!$GLIBC21$ac_delim
  17691. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  17692. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  17693. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  17694. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  17695. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  17696. WOE32DLL!$WOE32DLL$ac_delim
  17697. WOE32!$WOE32$ac_delim
  17698. WINDRES!$WINDRES$ac_delim
  17699. LTLIBC!$LTLIBC$ac_delim
  17700. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  17701. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  17702. CATOBJEXT!$CATOBJEXT$ac_delim
  17703. DATADIRNAME!$DATADIRNAME$ac_delim
  17704. INSTOBJEXT!$INSTOBJEXT$ac_delim
  17705. GENCAT!$GENCAT$ac_delim
  17706. INTLOBJS!$INTLOBJS$ac_delim
  17707. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  17708. INTLLIBS!$INTLLIBS$ac_delim
  17709. LIBINTL!$LIBINTL$ac_delim
  17710. LTLIBINTL!$LTLIBINTL$ac_delim
  17711. POSUB!$POSUB$ac_delim
  17712. LIBOBJS!$LIBOBJS$ac_delim
  17713. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  17714. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  17715. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  17716. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  17717. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  17718. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  17719. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  17720. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  17721. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  17722. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  17723. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  17724. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  17725. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  17726. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  17727. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  17728. _ACEOF
  17729. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  17730. break
  17731. elif $ac_last_try; then
  17732. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  17733. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  17734. { (exit 1); exit 1; }; }
  17735. else
  17736. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17737. fi
  17738. done
  17739. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  17740. if test -n "$ac_eof"; then
  17741. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  17742. ac_eof=`expr $ac_eof + 1`
  17743. fi
  17744. cat >>$CONFIG_STATUS <<_ACEOF
  17745. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  17746. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17747. _ACEOF
  17748. sed '
  17749. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  17750. s/^/s,@/; s/!/@,|#_!!_#|/
  17751. :n
  17752. t n
  17753. s/'"$ac_delim"'$/,g/; t
  17754. s/$/\\/; p
  17755. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  17756. ' >>$CONFIG_STATUS <conf$$subs.sed
  17757. rm -f conf$$subs.sed
  17758. cat >>$CONFIG_STATUS <<_ACEOF
  17759. CEOF$ac_eof
  17760. _ACEOF
  17761. ac_delim='%!_!# '
  17762. for ac_last_try in false false false false false :; do
  17763. cat >conf$$subs.sed <<_ACEOF
  17764. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  17765. LTLIBOBJS!$LTLIBOBJS$ac_delim
  17766. _ACEOF
  17767. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
  17768. break
  17769. elif $ac_last_try; then
  17770. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  17771. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  17772. { (exit 1); exit 1; }; }
  17773. else
  17774. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17775. fi
  17776. done
  17777. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  17778. if test -n "$ac_eof"; then
  17779. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  17780. ac_eof=`expr $ac_eof + 1`
  17781. fi
  17782. cat >>$CONFIG_STATUS <<_ACEOF
  17783. cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
  17784. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  17785. _ACEOF
  17786. sed '
  17787. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  17788. s/^/s,@/; s/!/@,|#_!!_#|/
  17789. :n
  17790. t n
  17791. s/'"$ac_delim"'$/,g/; t
  17792. s/$/\\/; p
  17793. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  17794. ' >>$CONFIG_STATUS <conf$$subs.sed
  17795. rm -f conf$$subs.sed
  17796. cat >>$CONFIG_STATUS <<_ACEOF
  17797. :end
  17798. s/|#_!!_#|//g
  17799. CEOF$ac_eof
  17800. _ACEOF
  17801. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  17802. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  17803. # trailing colons and then remove the whole line if VPATH becomes empty
  17804. # (actually we leave an empty line to preserve line numbers).
  17805. if test "x$srcdir" = x.; then
  17806. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  17807. s/:*\$(srcdir):*/:/
  17808. s/:*\${srcdir}:*/:/
  17809. s/:*@srcdir@:*/:/
  17810. s/^\([^=]*=[ ]*\):*/\1/
  17811. s/:*$//
  17812. s/^[^=]*=[ ]*$//
  17813. }'
  17814. fi
  17815. cat >>$CONFIG_STATUS <<\_ACEOF
  17816. fi # test -n "$CONFIG_FILES"
  17817. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  17818. do
  17819. case $ac_tag in
  17820. :[FHLC]) ac_mode=$ac_tag; continue;;
  17821. esac
  17822. case $ac_mode$ac_tag in
  17823. :[FHL]*:*);;
  17824. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  17825. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  17826. { (exit 1); exit 1; }; };;
  17827. :[FH]-) ac_tag=-:-;;
  17828. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  17829. esac
  17830. ac_save_IFS=$IFS
  17831. IFS=:
  17832. set x $ac_tag
  17833. IFS=$ac_save_IFS
  17834. shift
  17835. ac_file=$1
  17836. shift
  17837. case $ac_mode in
  17838. :L) ac_source=$1;;
  17839. :[FH])
  17840. ac_file_inputs=
  17841. for ac_f
  17842. do
  17843. case $ac_f in
  17844. -) ac_f="$tmp/stdin";;
  17845. *) # Look for the file first in the build tree, then in the source tree
  17846. # (if the path is not absolute). The absolute path cannot be DOS-style,
  17847. # because $ac_f cannot contain `:'.
  17848. test -f "$ac_f" ||
  17849. case $ac_f in
  17850. [\\/$]*) false;;
  17851. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  17852. esac ||
  17853. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  17854. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  17855. { (exit 1); exit 1; }; };;
  17856. esac
  17857. ac_file_inputs="$ac_file_inputs $ac_f"
  17858. done
  17859. # Let's still pretend it is `configure' which instantiates (i.e., don't
  17860. # use $as_me), people would be surprised to read:
  17861. # /* config.h. Generated by config.status. */
  17862. configure_input="Generated from "`IFS=:
  17863. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  17864. if test x"$ac_file" != x-; then
  17865. configure_input="$ac_file. $configure_input"
  17866. { echo "$as_me:$LINENO: creating $ac_file" >&5
  17867. echo "$as_me: creating $ac_file" >&6;}
  17868. fi
  17869. case $ac_tag in
  17870. *:-:* | *:-) cat >"$tmp/stdin";;
  17871. esac
  17872. ;;
  17873. esac
  17874. ac_dir=`$as_dirname -- "$ac_file" ||
  17875. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17876. X"$ac_file" : 'X\(//\)[^/]' \| \
  17877. X"$ac_file" : 'X\(//\)$' \| \
  17878. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  17879. echo X"$ac_file" |
  17880. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17881. s//\1/
  17882. q
  17883. }
  17884. /^X\(\/\/\)[^/].*/{
  17885. s//\1/
  17886. q
  17887. }
  17888. /^X\(\/\/\)$/{
  17889. s//\1/
  17890. q
  17891. }
  17892. /^X\(\/\).*/{
  17893. s//\1/
  17894. q
  17895. }
  17896. s/.*/./; q'`
  17897. { as_dir="$ac_dir"
  17898. case $as_dir in #(
  17899. -*) as_dir=./$as_dir;;
  17900. esac
  17901. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  17902. as_dirs=
  17903. while :; do
  17904. case $as_dir in #(
  17905. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  17906. *) as_qdir=$as_dir;;
  17907. esac
  17908. as_dirs="'$as_qdir' $as_dirs"
  17909. as_dir=`$as_dirname -- "$as_dir" ||
  17910. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17911. X"$as_dir" : 'X\(//\)[^/]' \| \
  17912. X"$as_dir" : 'X\(//\)$' \| \
  17913. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17914. echo X"$as_dir" |
  17915. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17916. s//\1/
  17917. q
  17918. }
  17919. /^X\(\/\/\)[^/].*/{
  17920. s//\1/
  17921. q
  17922. }
  17923. /^X\(\/\/\)$/{
  17924. s//\1/
  17925. q
  17926. }
  17927. /^X\(\/\).*/{
  17928. s//\1/
  17929. q
  17930. }
  17931. s/.*/./; q'`
  17932. test -d "$as_dir" && break
  17933. done
  17934. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17935. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  17936. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  17937. { (exit 1); exit 1; }; }; }
  17938. ac_builddir=.
  17939. case "$ac_dir" in
  17940. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17941. *)
  17942. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  17943. # A ".." for each directory in $ac_dir_suffix.
  17944. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  17945. case $ac_top_builddir_sub in
  17946. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17947. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17948. esac ;;
  17949. esac
  17950. ac_abs_top_builddir=$ac_pwd
  17951. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17952. # for backward compatibility:
  17953. ac_top_builddir=$ac_top_build_prefix
  17954. case $srcdir in
  17955. .) # We are building in place.
  17956. ac_srcdir=.
  17957. ac_top_srcdir=$ac_top_builddir_sub
  17958. ac_abs_top_srcdir=$ac_pwd ;;
  17959. [\\/]* | ?:[\\/]* ) # Absolute name.
  17960. ac_srcdir=$srcdir$ac_dir_suffix;
  17961. ac_top_srcdir=$srcdir
  17962. ac_abs_top_srcdir=$srcdir ;;
  17963. *) # Relative name.
  17964. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17965. ac_top_srcdir=$ac_top_build_prefix$srcdir
  17966. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17967. esac
  17968. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17969. case $ac_mode in
  17970. :F)
  17971. #
  17972. # CONFIG_FILE
  17973. #
  17974. case $INSTALL in
  17975. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  17976. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  17977. esac
  17978. _ACEOF
  17979. cat >>$CONFIG_STATUS <<\_ACEOF
  17980. # If the template does not know about datarootdir, expand it.
  17981. # FIXME: This hack should be removed a few years after 2.60.
  17982. ac_datarootdir_hack=; ac_datarootdir_seen=
  17983. case `sed -n '/datarootdir/ {
  17984. p
  17985. q
  17986. }
  17987. /@datadir@/p
  17988. /@docdir@/p
  17989. /@infodir@/p
  17990. /@localedir@/p
  17991. /@mandir@/p
  17992. ' $ac_file_inputs` in
  17993. *datarootdir*) ac_datarootdir_seen=yes;;
  17994. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  17995. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  17996. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  17997. _ACEOF
  17998. cat >>$CONFIG_STATUS <<_ACEOF
  17999. ac_datarootdir_hack='
  18000. s&@datadir@&$datadir&g
  18001. s&@docdir@&$docdir&g
  18002. s&@infodir@&$infodir&g
  18003. s&@localedir@&$localedir&g
  18004. s&@mandir@&$mandir&g
  18005. s&\\\${datarootdir}&$datarootdir&g' ;;
  18006. esac
  18007. _ACEOF
  18008. # Neutralize VPATH when `$srcdir' = `.'.
  18009. # Shell code in configure.ac might set extrasub.
  18010. # FIXME: do we really want to maintain this feature?
  18011. cat >>$CONFIG_STATUS <<_ACEOF
  18012. sed "$ac_vpsub
  18013. $extrasub
  18014. _ACEOF
  18015. cat >>$CONFIG_STATUS <<\_ACEOF
  18016. :t
  18017. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  18018. s&@configure_input@&$configure_input&;t t
  18019. s&@top_builddir@&$ac_top_builddir_sub&;t t
  18020. s&@srcdir@&$ac_srcdir&;t t
  18021. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  18022. s&@top_srcdir@&$ac_top_srcdir&;t t
  18023. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  18024. s&@builddir@&$ac_builddir&;t t
  18025. s&@abs_builddir@&$ac_abs_builddir&;t t
  18026. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  18027. s&@INSTALL@&$ac_INSTALL&;t t
  18028. $ac_datarootdir_hack
  18029. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
  18030. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  18031. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  18032. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  18033. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18034. which seems to be undefined. Please make sure it is defined." >&5
  18035. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  18036. which seems to be undefined. Please make sure it is defined." >&2;}
  18037. rm -f "$tmp/stdin"
  18038. case $ac_file in
  18039. -) cat "$tmp/out"; rm -f "$tmp/out";;
  18040. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  18041. esac
  18042. ;;
  18043. :H)
  18044. #
  18045. # CONFIG_HEADER
  18046. #
  18047. _ACEOF
  18048. # Transform confdefs.h into a sed script `conftest.defines', that
  18049. # substitutes the proper values into config.h.in to produce config.h.
  18050. rm -f conftest.defines conftest.tail
  18051. # First, append a space to every undef/define line, to ease matching.
  18052. echo 's/$/ /' >conftest.defines
  18053. # Then, protect against being on the right side of a sed subst, or in
  18054. # an unquoted here document, in config.status. If some macros were
  18055. # called several times there might be several #defines for the same
  18056. # symbol, which is useless. But do not sort them, since the last
  18057. # AC_DEFINE must be honored.
  18058. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  18059. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  18060. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  18061. # PARAMS is the parameter list in the macro definition--in most cases, it's
  18062. # just an empty string.
  18063. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  18064. ac_dB='\\)[ (].*,\\1define\\2'
  18065. ac_dC=' '
  18066. ac_dD=' ,'
  18067. uniq confdefs.h |
  18068. sed -n '
  18069. t rset
  18070. :rset
  18071. s/^[ ]*#[ ]*define[ ][ ]*//
  18072. t ok
  18073. d
  18074. :ok
  18075. s/[\\&,]/\\&/g
  18076. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  18077. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  18078. ' >>conftest.defines
  18079. # Remove the space that was appended to ease matching.
  18080. # Then replace #undef with comments. This is necessary, for
  18081. # example, in the case of _POSIX_SOURCE, which is predefined and required
  18082. # on some systems where configure will not decide to define it.
  18083. # (The regexp can be short, since the line contains either #define or #undef.)
  18084. echo 's/ $//
  18085. s,^[ #]*u.*,/* & */,' >>conftest.defines
  18086. # Break up conftest.defines:
  18087. ac_max_sed_lines=50
  18088. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  18089. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  18090. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  18091. # et cetera.
  18092. ac_in='$ac_file_inputs'
  18093. ac_out='"$tmp/out1"'
  18094. ac_nxt='"$tmp/out2"'
  18095. while :
  18096. do
  18097. # Write a here document:
  18098. cat >>$CONFIG_STATUS <<_ACEOF
  18099. # First, check the format of the line:
  18100. cat >"\$tmp/defines.sed" <<\\CEOF
  18101. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  18102. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  18103. b
  18104. :def
  18105. _ACEOF
  18106. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  18107. echo 'CEOF
  18108. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  18109. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  18110. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  18111. grep . conftest.tail >/dev/null || break
  18112. rm -f conftest.defines
  18113. mv conftest.tail conftest.defines
  18114. done
  18115. rm -f conftest.defines conftest.tail
  18116. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  18117. cat >>$CONFIG_STATUS <<\_ACEOF
  18118. if test x"$ac_file" != x-; then
  18119. echo "/* $configure_input */" >"$tmp/config.h"
  18120. cat "$ac_result" >>"$tmp/config.h"
  18121. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  18122. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  18123. echo "$as_me: $ac_file is unchanged" >&6;}
  18124. else
  18125. rm -f $ac_file
  18126. mv "$tmp/config.h" $ac_file
  18127. fi
  18128. else
  18129. echo "/* $configure_input */"
  18130. cat "$ac_result"
  18131. fi
  18132. rm -f "$tmp/out12"
  18133. # Compute $ac_file's index in $config_headers.
  18134. _am_stamp_count=1
  18135. for _am_header in $config_headers :; do
  18136. case $_am_header in
  18137. $ac_file | $ac_file:* )
  18138. break ;;
  18139. * )
  18140. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  18141. esac
  18142. done
  18143. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  18144. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18145. X$ac_file : 'X\(//\)[^/]' \| \
  18146. X$ac_file : 'X\(//\)$' \| \
  18147. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  18148. echo X$ac_file |
  18149. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18150. s//\1/
  18151. q
  18152. }
  18153. /^X\(\/\/\)[^/].*/{
  18154. s//\1/
  18155. q
  18156. }
  18157. /^X\(\/\/\)$/{
  18158. s//\1/
  18159. q
  18160. }
  18161. /^X\(\/\).*/{
  18162. s//\1/
  18163. q
  18164. }
  18165. s/.*/./; q'`/stamp-h$_am_stamp_count
  18166. ;;
  18167. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  18168. echo "$as_me: executing $ac_file commands" >&6;}
  18169. ;;
  18170. esac
  18171. case $ac_file$ac_mode in
  18172. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  18173. # Strip MF so we end up with the name of the file.
  18174. mf=`echo "$mf" | sed -e 's/:.*$//'`
  18175. # Check whether this is an Automake generated Makefile or not.
  18176. # We used to match only the files named `Makefile.in', but
  18177. # some people rename them; so instead we look at the file content.
  18178. # Grep'ing the first line is not enough: some people post-process
  18179. # each Makefile.in and add a new line on top of each file to say so.
  18180. # So let's grep whole file.
  18181. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  18182. dirpart=`$as_dirname -- "$mf" ||
  18183. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18184. X"$mf" : 'X\(//\)[^/]' \| \
  18185. X"$mf" : 'X\(//\)$' \| \
  18186. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  18187. echo X"$mf" |
  18188. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18189. s//\1/
  18190. q
  18191. }
  18192. /^X\(\/\/\)[^/].*/{
  18193. s//\1/
  18194. q
  18195. }
  18196. /^X\(\/\/\)$/{
  18197. s//\1/
  18198. q
  18199. }
  18200. /^X\(\/\).*/{
  18201. s//\1/
  18202. q
  18203. }
  18204. s/.*/./; q'`
  18205. else
  18206. continue
  18207. fi
  18208. # Extract the definition of DEPDIR, am__include, and am__quote
  18209. # from the Makefile without running `make'.
  18210. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  18211. test -z "$DEPDIR" && continue
  18212. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  18213. test -z "am__include" && continue
  18214. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  18215. # When using ansi2knr, U may be empty or an underscore; expand it
  18216. U=`sed -n 's/^U = //p' < "$mf"`
  18217. # Find all dependency output files, they are included files with
  18218. # $(DEPDIR) in their names. We invoke sed twice because it is the
  18219. # simplest approach to changing $(DEPDIR) to its actual value in the
  18220. # expansion.
  18221. for file in `sed -n "
  18222. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  18223. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  18224. # Make sure the directory exists.
  18225. test -f "$dirpart/$file" && continue
  18226. fdir=`$as_dirname -- "$file" ||
  18227. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18228. X"$file" : 'X\(//\)[^/]' \| \
  18229. X"$file" : 'X\(//\)$' \| \
  18230. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  18231. echo X"$file" |
  18232. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18233. s//\1/
  18234. q
  18235. }
  18236. /^X\(\/\/\)[^/].*/{
  18237. s//\1/
  18238. q
  18239. }
  18240. /^X\(\/\/\)$/{
  18241. s//\1/
  18242. q
  18243. }
  18244. /^X\(\/\).*/{
  18245. s//\1/
  18246. q
  18247. }
  18248. s/.*/./; q'`
  18249. { as_dir=$dirpart/$fdir
  18250. case $as_dir in #(
  18251. -*) as_dir=./$as_dir;;
  18252. esac
  18253. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  18254. as_dirs=
  18255. while :; do
  18256. case $as_dir in #(
  18257. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  18258. *) as_qdir=$as_dir;;
  18259. esac
  18260. as_dirs="'$as_qdir' $as_dirs"
  18261. as_dir=`$as_dirname -- "$as_dir" ||
  18262. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18263. X"$as_dir" : 'X\(//\)[^/]' \| \
  18264. X"$as_dir" : 'X\(//\)$' \| \
  18265. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18266. echo X"$as_dir" |
  18267. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18268. s//\1/
  18269. q
  18270. }
  18271. /^X\(\/\/\)[^/].*/{
  18272. s//\1/
  18273. q
  18274. }
  18275. /^X\(\/\/\)$/{
  18276. s//\1/
  18277. q
  18278. }
  18279. /^X\(\/\).*/{
  18280. s//\1/
  18281. q
  18282. }
  18283. s/.*/./; q'`
  18284. test -d "$as_dir" && break
  18285. done
  18286. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18287. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  18288. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  18289. { (exit 1); exit 1; }; }; }
  18290. # echo "creating $dirpart/$file"
  18291. echo '# dummy' > "$dirpart/$file"
  18292. done
  18293. done
  18294. ;;
  18295. "po-directories":C)
  18296. for ac_file in $CONFIG_FILES; do
  18297. # Support "outfile[:infile[:infile...]]"
  18298. case "$ac_file" in
  18299. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  18300. esac
  18301. # PO directories have a Makefile.in generated from Makefile.in.in.
  18302. case "$ac_file" in */Makefile.in)
  18303. # Adjust a relative srcdir.
  18304. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  18305. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  18306. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  18307. # In autoconf-2.13 it is called $ac_given_srcdir.
  18308. # In autoconf-2.50 it is called $srcdir.
  18309. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  18310. case "$ac_given_srcdir" in
  18311. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  18312. /*) top_srcdir="$ac_given_srcdir" ;;
  18313. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  18314. esac
  18315. # Treat a directory as a PO directory if and only if it has a
  18316. # POTFILES.in file. This allows packages to have multiple PO
  18317. # directories under different names or in different locations.
  18318. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  18319. rm -f "$ac_dir/POTFILES"
  18320. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  18321. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  18322. POMAKEFILEDEPS="POTFILES.in"
  18323. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  18324. # on $ac_dir but don't depend on user-specified configuration
  18325. # parameters.
  18326. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  18327. # The LINGUAS file contains the set of available languages.
  18328. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  18329. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  18330. fi
  18331. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  18332. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  18333. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  18334. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  18335. else
  18336. # The set of available languages was given in configure.in.
  18337. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  18338. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  18339. fi
  18340. # Compute POFILES
  18341. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  18342. # Compute UPDATEPOFILES
  18343. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  18344. # Compute DUMMYPOFILES
  18345. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  18346. # Compute GMOFILES
  18347. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  18348. case "$ac_given_srcdir" in
  18349. .) srcdirpre= ;;
  18350. *) srcdirpre='$(srcdir)/' ;;
  18351. esac
  18352. POFILES=
  18353. UPDATEPOFILES=
  18354. DUMMYPOFILES=
  18355. GMOFILES=
  18356. for lang in $ALL_LINGUAS; do
  18357. POFILES="$POFILES $srcdirpre$lang.po"
  18358. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  18359. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  18360. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  18361. done
  18362. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  18363. # environment variable.
  18364. INST_LINGUAS=
  18365. if test -n "$ALL_LINGUAS"; then
  18366. for presentlang in $ALL_LINGUAS; do
  18367. useit=no
  18368. if test "%UNSET%" != "$LINGUAS"; then
  18369. desiredlanguages="$LINGUAS"
  18370. else
  18371. desiredlanguages="$ALL_LINGUAS"
  18372. fi
  18373. for desiredlang in $desiredlanguages; do
  18374. # Use the presentlang catalog if desiredlang is
  18375. # a. equal to presentlang, or
  18376. # b. a variant of presentlang (because in this case,
  18377. # presentlang can be used as a fallback for messages
  18378. # which are not translated in the desiredlang catalog).
  18379. case "$desiredlang" in
  18380. "$presentlang"*) useit=yes;;
  18381. esac
  18382. done
  18383. if test $useit = yes; then
  18384. INST_LINGUAS="$INST_LINGUAS $presentlang"
  18385. fi
  18386. done
  18387. fi
  18388. CATALOGS=
  18389. if test -n "$INST_LINGUAS"; then
  18390. for lang in $INST_LINGUAS; do
  18391. CATALOGS="$CATALOGS $lang.gmo"
  18392. done
  18393. fi
  18394. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  18395. 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"
  18396. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  18397. if test -f "$f"; then
  18398. case "$f" in
  18399. *.orig | *.bak | *~) ;;
  18400. *) cat "$f" >> "$ac_dir/Makefile" ;;
  18401. esac
  18402. fi
  18403. done
  18404. fi
  18405. ;;
  18406. esac
  18407. done ;;
  18408. esac
  18409. done # for ac_tag
  18410. { (exit 0); exit 0; }
  18411. _ACEOF
  18412. chmod +x $CONFIG_STATUS
  18413. ac_clean_files=$ac_clean_files_save
  18414. # configure is writing to config.log, and then calls config.status.
  18415. # config.status does its own redirection, appending to config.log.
  18416. # Unfortunately, on DOS this fails, as config.log is still kept open
  18417. # by configure, so config.status won't be able to write to it; its
  18418. # output is simply discarded. So we exec the FD to /dev/null,
  18419. # effectively closing config.log, so it can be properly (re)opened and
  18420. # appended to by config.status. When coming back to configure, we
  18421. # need to make the FD available again.
  18422. if test "$no_create" != yes; then
  18423. ac_cs_success=:
  18424. ac_config_status_args=
  18425. test "$silent" = yes &&
  18426. ac_config_status_args="$ac_config_status_args --quiet"
  18427. exec 5>/dev/null
  18428. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  18429. exec 5>>config.log
  18430. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  18431. # would make configure fail if this is the last instruction.
  18432. $ac_cs_success || { (exit 1); exit 1; }
  18433. fi
  18434. echo " "
  18435. echo "Build: $build"
  18436. echo "Target: $target"
  18437. echo "Install prefix: $prefix"
  18438. echo "CFLAGS: $CFLAGS"
  18439. echo "CPPFLAGS: $CPPFLAGS"
  18440. echo "LDFLAGS: $LDFLAGS"
  18441. echo "LIBS: $LIBS"
  18442. echo "GnuTLS: $have_libgnutls"
  18443. echo "OpenSSL: $have_openssl"
  18444. echo "LibXML2: $have_libxml2"
  18445. echo "LibExpat: $have_libexpat"
  18446. echo "LibAres: $have_libares"
  18447. echo "LibCares: $have_libcares"
  18448. echo "Bittorrent: $enable_bittorrent"
  18449. echo "Metalink: $enable_metalink"