configure 575 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.12.0.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  17. emulate sh
  18. NULLCMD=:
  19. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in
  25. *posix*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.12.0'
  496. PACKAGE_STRING='aria2c 0.12.0'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. gt_needs=
  535. ac_subst_vars='SHELL
  536. PATH_SEPARATOR
  537. PACKAGE_NAME
  538. PACKAGE_TARNAME
  539. PACKAGE_VERSION
  540. PACKAGE_STRING
  541. PACKAGE_BUGREPORT
  542. exec_prefix
  543. prefix
  544. program_transform_name
  545. bindir
  546. sbindir
  547. libexecdir
  548. datarootdir
  549. datadir
  550. sysconfdir
  551. sharedstatedir
  552. localstatedir
  553. includedir
  554. oldincludedir
  555. docdir
  556. infodir
  557. htmldir
  558. dvidir
  559. pdfdir
  560. psdir
  561. libdir
  562. localedir
  563. mandir
  564. DEFS
  565. ECHO_C
  566. ECHO_N
  567. ECHO_T
  568. LIBS
  569. build_alias
  570. host_alias
  571. target_alias
  572. build
  573. build_cpu
  574. build_vendor
  575. build_os
  576. host
  577. host_cpu
  578. host_vendor
  579. host_os
  580. target
  581. target_cpu
  582. target_vendor
  583. target_os
  584. INSTALL_PROGRAM
  585. INSTALL_SCRIPT
  586. INSTALL_DATA
  587. CYGPATH_W
  588. PACKAGE
  589. VERSION
  590. ACLOCAL
  591. AUTOCONF
  592. AUTOMAKE
  593. AUTOHEADER
  594. MAKEINFO
  595. install_sh
  596. STRIP
  597. INSTALL_STRIP_PROGRAM
  598. mkdir_p
  599. AWK
  600. SET_MAKE
  601. am__leading_dot
  602. AMTAR
  603. am__tar
  604. am__untar
  605. CPPUNIT_CONFIG
  606. CPPUNIT_CFLAGS
  607. CPPUNIT_LIBS
  608. WINSOCK_LIBS
  609. CXX
  610. CXXFLAGS
  611. LDFLAGS
  612. CPPFLAGS
  613. ac_ct_CXX
  614. EXEEXT
  615. OBJEXT
  616. DEPDIR
  617. am__include
  618. am__quote
  619. AMDEP_TRUE
  620. AMDEP_FALSE
  621. AMDEPBACKSLASH
  622. CXXDEPMODE
  623. am__fastdepCXX_TRUE
  624. am__fastdepCXX_FALSE
  625. CC
  626. CFLAGS
  627. ac_ct_CC
  628. CCDEPMODE
  629. am__fastdepCC_TRUE
  630. am__fastdepCC_FALSE
  631. RANLIB
  632. YACC
  633. YFLAGS
  634. CXXCPP
  635. GREP
  636. EGREP
  637. XML2_CONFIG
  638. XML_CPPFLAGS
  639. XML_LIBS
  640. LIBGNUTLS_CONFIG
  641. LIBGNUTLS_CFLAGS
  642. LIBGNUTLS_LIBS
  643. LIBGCRYPT_CONFIG
  644. LIBGCRYPT_CFLAGS
  645. LIBGCRYPT_LIBS
  646. OPENSSL_LIBS
  647. OPENSSL_CFLAGS
  648. LIBCARES_LIBS
  649. LIBCARES_CPPFLAGS
  650. LIBARES_LIBS
  651. LIBARES_CPPFLAGS
  652. ENABLE_MESSAGE_DIGEST_TRUE
  653. ENABLE_MESSAGE_DIGEST_FALSE
  654. ENABLE_BITTORRENT_TRUE
  655. ENABLE_BITTORRENT_FALSE
  656. ENABLE_METALINK_TRUE
  657. ENABLE_METALINK_FALSE
  658. ENABLE_ASYNC_DNS_TRUE
  659. ENABLE_ASYNC_DNS_FALSE
  660. ALLOCA
  661. USE_NLS
  662. GETTEXT_MACRO_VERSION
  663. MSGFMT
  664. GMSGFMT
  665. MSGFMT_015
  666. GMSGFMT_015
  667. XGETTEXT
  668. XGETTEXT_015
  669. MSGMERGE
  670. XGETTEXT_EXTRA_OPTIONS
  671. GLIBC2
  672. CFLAG_VISIBILITY
  673. HAVE_VISIBILITY
  674. PRI_MACROS_BROKEN
  675. LIBPTH
  676. LTLIBPTH
  677. LIBPTH_PREFIX
  678. LIBTHREAD
  679. LTLIBTHREAD
  680. LIBMULTITHREAD
  681. LTLIBMULTITHREAD
  682. LIBICONV
  683. LTLIBICONV
  684. INTLBISON
  685. GLIBC21
  686. INTL_MACOSX_LIBS
  687. HAVE_POSIX_PRINTF
  688. HAVE_ASPRINTF
  689. HAVE_SNPRINTF
  690. HAVE_WPRINTF
  691. WOE32DLL
  692. WOE32
  693. WINDRES
  694. LTLIBC
  695. BUILD_INCLUDED_LIBINTL
  696. USE_INCLUDED_LIBINTL
  697. CATOBJEXT
  698. DATADIRNAME
  699. INSTOBJEXT
  700. GENCAT
  701. INTLOBJS
  702. INTL_LIBTOOL_SUFFIX_PREFIX
  703. INTLLIBS
  704. LIBINTL
  705. LTLIBINTL
  706. POSUB
  707. LIBOBJS
  708. HAVE_BASENAME_TRUE
  709. HAVE_BASENAME_FALSE
  710. HAVE_GAI_STRERROR_TRUE
  711. HAVE_GAI_STRERROR_FALSE
  712. HAVE_GETADDRINFO_TRUE
  713. HAVE_GETADDRINFO_FALSE
  714. HAVE_GETTIMEOFDAY_TRUE
  715. HAVE_GETTIMEOFDAY_FALSE
  716. HAVE_INET_ATON_TRUE
  717. HAVE_INET_ATON_FALSE
  718. HAVE_LOCALTIME_R_TRUE
  719. HAVE_LOCALTIME_R_FALSE
  720. HAVE_STRPTIME_TRUE
  721. HAVE_STRPTIME_FALSE
  722. HAVE_TIMEGM_TRUE
  723. HAVE_TIMEGM_FALSE
  724. LTLIBOBJS'
  725. ac_subst_files=''
  726. ac_precious_vars='build_alias
  727. host_alias
  728. target_alias
  729. CXX
  730. CXXFLAGS
  731. LDFLAGS
  732. LIBS
  733. CPPFLAGS
  734. CCC
  735. CC
  736. CFLAGS
  737. YACC
  738. YFLAGS
  739. CXXCPP'
  740. # Initialize some variables set by options.
  741. ac_init_help=
  742. ac_init_version=false
  743. # The variables have the same names as the options, with
  744. # dashes changed to underlines.
  745. cache_file=/dev/null
  746. exec_prefix=NONE
  747. no_create=
  748. no_recursion=
  749. prefix=NONE
  750. program_prefix=NONE
  751. program_suffix=NONE
  752. program_transform_name=s,x,x,
  753. silent=
  754. site=
  755. srcdir=
  756. verbose=
  757. x_includes=NONE
  758. x_libraries=NONE
  759. # Installation directory options.
  760. # These are left unexpanded so users can "make install exec_prefix=/foo"
  761. # and all the variables that are supposed to be based on exec_prefix
  762. # by default will actually change.
  763. # Use braces instead of parens because sh, perl, etc. also accept them.
  764. # (The list follows the same order as the GNU Coding Standards.)
  765. bindir='${exec_prefix}/bin'
  766. sbindir='${exec_prefix}/sbin'
  767. libexecdir='${exec_prefix}/libexec'
  768. datarootdir='${prefix}/share'
  769. datadir='${datarootdir}'
  770. sysconfdir='${prefix}/etc'
  771. sharedstatedir='${prefix}/com'
  772. localstatedir='${prefix}/var'
  773. includedir='${prefix}/include'
  774. oldincludedir='/usr/include'
  775. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  776. infodir='${datarootdir}/info'
  777. htmldir='${docdir}'
  778. dvidir='${docdir}'
  779. pdfdir='${docdir}'
  780. psdir='${docdir}'
  781. libdir='${exec_prefix}/lib'
  782. localedir='${datarootdir}/locale'
  783. mandir='${datarootdir}/man'
  784. ac_prev=
  785. ac_dashdash=
  786. for ac_option
  787. do
  788. # If the previous option needs an argument, assign it.
  789. if test -n "$ac_prev"; then
  790. eval $ac_prev=\$ac_option
  791. ac_prev=
  792. continue
  793. fi
  794. case $ac_option in
  795. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  796. *) ac_optarg=yes ;;
  797. esac
  798. # Accept the important Cygnus configure options, so we can diagnose typos.
  799. case $ac_dashdash$ac_option in
  800. --)
  801. ac_dashdash=yes ;;
  802. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  803. ac_prev=bindir ;;
  804. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  805. bindir=$ac_optarg ;;
  806. -build | --build | --buil | --bui | --bu)
  807. ac_prev=build_alias ;;
  808. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  809. build_alias=$ac_optarg ;;
  810. -cache-file | --cache-file | --cache-fil | --cache-fi \
  811. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  812. ac_prev=cache_file ;;
  813. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  814. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  815. cache_file=$ac_optarg ;;
  816. --config-cache | -C)
  817. cache_file=config.cache ;;
  818. -datadir | --datadir | --datadi | --datad)
  819. ac_prev=datadir ;;
  820. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  821. datadir=$ac_optarg ;;
  822. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  823. | --dataroo | --dataro | --datar)
  824. ac_prev=datarootdir ;;
  825. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  826. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  827. datarootdir=$ac_optarg ;;
  828. -disable-* | --disable-*)
  829. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  830. # Reject names that are not valid shell variable names.
  831. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  832. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  833. { (exit 1); exit 1; }; }
  834. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  835. eval enable_$ac_feature=no ;;
  836. -docdir | --docdir | --docdi | --doc | --do)
  837. ac_prev=docdir ;;
  838. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  839. docdir=$ac_optarg ;;
  840. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  841. ac_prev=dvidir ;;
  842. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  843. dvidir=$ac_optarg ;;
  844. -enable-* | --enable-*)
  845. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  846. # Reject names that are not valid shell variable names.
  847. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  848. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  849. { (exit 1); exit 1; }; }
  850. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  851. eval enable_$ac_feature=\$ac_optarg ;;
  852. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  853. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  854. | --exec | --exe | --ex)
  855. ac_prev=exec_prefix ;;
  856. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  857. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  858. | --exec=* | --exe=* | --ex=*)
  859. exec_prefix=$ac_optarg ;;
  860. -gas | --gas | --ga | --g)
  861. # Obsolete; use --with-gas.
  862. with_gas=yes ;;
  863. -help | --help | --hel | --he | -h)
  864. ac_init_help=long ;;
  865. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  866. ac_init_help=recursive ;;
  867. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  868. ac_init_help=short ;;
  869. -host | --host | --hos | --ho)
  870. ac_prev=host_alias ;;
  871. -host=* | --host=* | --hos=* | --ho=*)
  872. host_alias=$ac_optarg ;;
  873. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  874. ac_prev=htmldir ;;
  875. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  876. | --ht=*)
  877. htmldir=$ac_optarg ;;
  878. -includedir | --includedir | --includedi | --included | --include \
  879. | --includ | --inclu | --incl | --inc)
  880. ac_prev=includedir ;;
  881. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  882. | --includ=* | --inclu=* | --incl=* | --inc=*)
  883. includedir=$ac_optarg ;;
  884. -infodir | --infodir | --infodi | --infod | --info | --inf)
  885. ac_prev=infodir ;;
  886. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  887. infodir=$ac_optarg ;;
  888. -libdir | --libdir | --libdi | --libd)
  889. ac_prev=libdir ;;
  890. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  891. libdir=$ac_optarg ;;
  892. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  893. | --libexe | --libex | --libe)
  894. ac_prev=libexecdir ;;
  895. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  896. | --libexe=* | --libex=* | --libe=*)
  897. libexecdir=$ac_optarg ;;
  898. -localedir | --localedir | --localedi | --localed | --locale)
  899. ac_prev=localedir ;;
  900. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  901. localedir=$ac_optarg ;;
  902. -localstatedir | --localstatedir | --localstatedi | --localstated \
  903. | --localstate | --localstat | --localsta | --localst | --locals)
  904. ac_prev=localstatedir ;;
  905. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  906. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  907. localstatedir=$ac_optarg ;;
  908. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  909. ac_prev=mandir ;;
  910. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  911. mandir=$ac_optarg ;;
  912. -nfp | --nfp | --nf)
  913. # Obsolete; use --without-fp.
  914. with_fp=no ;;
  915. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  916. | --no-cr | --no-c | -n)
  917. no_create=yes ;;
  918. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  919. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  920. no_recursion=yes ;;
  921. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  922. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  923. | --oldin | --oldi | --old | --ol | --o)
  924. ac_prev=oldincludedir ;;
  925. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  926. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  927. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  928. oldincludedir=$ac_optarg ;;
  929. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  930. ac_prev=prefix ;;
  931. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  932. prefix=$ac_optarg ;;
  933. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  934. | --program-pre | --program-pr | --program-p)
  935. ac_prev=program_prefix ;;
  936. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  937. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  938. program_prefix=$ac_optarg ;;
  939. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  940. | --program-suf | --program-su | --program-s)
  941. ac_prev=program_suffix ;;
  942. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  943. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  944. program_suffix=$ac_optarg ;;
  945. -program-transform-name | --program-transform-name \
  946. | --program-transform-nam | --program-transform-na \
  947. | --program-transform-n | --program-transform- \
  948. | --program-transform | --program-transfor \
  949. | --program-transfo | --program-transf \
  950. | --program-trans | --program-tran \
  951. | --progr-tra | --program-tr | --program-t)
  952. ac_prev=program_transform_name ;;
  953. -program-transform-name=* | --program-transform-name=* \
  954. | --program-transform-nam=* | --program-transform-na=* \
  955. | --program-transform-n=* | --program-transform-=* \
  956. | --program-transform=* | --program-transfor=* \
  957. | --program-transfo=* | --program-transf=* \
  958. | --program-trans=* | --program-tran=* \
  959. | --progr-tra=* | --program-tr=* | --program-t=*)
  960. program_transform_name=$ac_optarg ;;
  961. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  962. ac_prev=pdfdir ;;
  963. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  964. pdfdir=$ac_optarg ;;
  965. -psdir | --psdir | --psdi | --psd | --ps)
  966. ac_prev=psdir ;;
  967. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  968. psdir=$ac_optarg ;;
  969. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  970. | -silent | --silent | --silen | --sile | --sil)
  971. silent=yes ;;
  972. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  973. ac_prev=sbindir ;;
  974. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  975. | --sbi=* | --sb=*)
  976. sbindir=$ac_optarg ;;
  977. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  978. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  979. | --sharedst | --shareds | --shared | --share | --shar \
  980. | --sha | --sh)
  981. ac_prev=sharedstatedir ;;
  982. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  983. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  984. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  985. | --sha=* | --sh=*)
  986. sharedstatedir=$ac_optarg ;;
  987. -site | --site | --sit)
  988. ac_prev=site ;;
  989. -site=* | --site=* | --sit=*)
  990. site=$ac_optarg ;;
  991. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  992. ac_prev=srcdir ;;
  993. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  994. srcdir=$ac_optarg ;;
  995. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  996. | --syscon | --sysco | --sysc | --sys | --sy)
  997. ac_prev=sysconfdir ;;
  998. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  999. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1000. sysconfdir=$ac_optarg ;;
  1001. -target | --target | --targe | --targ | --tar | --ta | --t)
  1002. ac_prev=target_alias ;;
  1003. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1004. target_alias=$ac_optarg ;;
  1005. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1006. verbose=yes ;;
  1007. -version | --version | --versio | --versi | --vers | -V)
  1008. ac_init_version=: ;;
  1009. -with-* | --with-*)
  1010. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1011. # Reject names that are not valid shell variable names.
  1012. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1013. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1014. { (exit 1); exit 1; }; }
  1015. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1016. eval with_$ac_package=\$ac_optarg ;;
  1017. -without-* | --without-*)
  1018. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1019. # Reject names that are not valid shell variable names.
  1020. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1021. { echo "$as_me: error: invalid package name: $ac_package" >&2
  1022. { (exit 1); exit 1; }; }
  1023. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  1024. eval with_$ac_package=no ;;
  1025. --x)
  1026. # Obsolete; use --with-x.
  1027. with_x=yes ;;
  1028. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1029. | --x-incl | --x-inc | --x-in | --x-i)
  1030. ac_prev=x_includes ;;
  1031. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1032. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1033. x_includes=$ac_optarg ;;
  1034. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1035. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1036. ac_prev=x_libraries ;;
  1037. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1038. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1039. x_libraries=$ac_optarg ;;
  1040. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1041. Try \`$0 --help' for more information." >&2
  1042. { (exit 1); exit 1; }; }
  1043. ;;
  1044. *=*)
  1045. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1046. # Reject names that are not valid shell variable names.
  1047. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1048. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1049. { (exit 1); exit 1; }; }
  1050. eval $ac_envvar=\$ac_optarg
  1051. export $ac_envvar ;;
  1052. *)
  1053. # FIXME: should be removed in autoconf 3.0.
  1054. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1055. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1056. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1057. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1058. ;;
  1059. esac
  1060. done
  1061. if test -n "$ac_prev"; then
  1062. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1063. { echo "$as_me: error: missing argument to $ac_option" >&2
  1064. { (exit 1); exit 1; }; }
  1065. fi
  1066. # Be sure to have absolute directory names.
  1067. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1068. datadir sysconfdir sharedstatedir localstatedir includedir \
  1069. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1070. libdir localedir mandir
  1071. do
  1072. eval ac_val=\$$ac_var
  1073. case $ac_val in
  1074. [\\/$]* | ?:[\\/]* ) continue;;
  1075. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1076. esac
  1077. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1078. { (exit 1); exit 1; }; }
  1079. done
  1080. # There might be people who depend on the old broken behavior: `$host'
  1081. # used to hold the argument of --host etc.
  1082. # FIXME: To remove some day.
  1083. build=$build_alias
  1084. host=$host_alias
  1085. target=$target_alias
  1086. # FIXME: To remove some day.
  1087. if test "x$host_alias" != x; then
  1088. if test "x$build_alias" = x; then
  1089. cross_compiling=maybe
  1090. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1091. If a cross compiler is detected then cross compile mode will be used." >&2
  1092. elif test "x$build_alias" != "x$host_alias"; then
  1093. cross_compiling=yes
  1094. fi
  1095. fi
  1096. ac_tool_prefix=
  1097. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1098. test "$silent" = yes && exec 6>/dev/null
  1099. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1100. ac_ls_di=`ls -di .` &&
  1101. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1102. { echo "$as_me: error: Working directory cannot be determined" >&2
  1103. { (exit 1); exit 1; }; }
  1104. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1105. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1106. { (exit 1); exit 1; }; }
  1107. # Find the source files, if location was not specified.
  1108. if test -z "$srcdir"; then
  1109. ac_srcdir_defaulted=yes
  1110. # Try the directory containing this script, then the parent directory.
  1111. ac_confdir=`$as_dirname -- "$0" ||
  1112. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1113. X"$0" : 'X\(//\)[^/]' \| \
  1114. X"$0" : 'X\(//\)$' \| \
  1115. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1116. echo X"$0" |
  1117. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1118. s//\1/
  1119. q
  1120. }
  1121. /^X\(\/\/\)[^/].*/{
  1122. s//\1/
  1123. q
  1124. }
  1125. /^X\(\/\/\)$/{
  1126. s//\1/
  1127. q
  1128. }
  1129. /^X\(\/\).*/{
  1130. s//\1/
  1131. q
  1132. }
  1133. s/.*/./; q'`
  1134. srcdir=$ac_confdir
  1135. if test ! -r "$srcdir/$ac_unique_file"; then
  1136. srcdir=..
  1137. fi
  1138. else
  1139. ac_srcdir_defaulted=no
  1140. fi
  1141. if test ! -r "$srcdir/$ac_unique_file"; then
  1142. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1143. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1144. { (exit 1); exit 1; }; }
  1145. fi
  1146. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1147. ac_abs_confdir=`(
  1148. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1149. { (exit 1); exit 1; }; }
  1150. pwd)`
  1151. # When building in place, set srcdir=.
  1152. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1153. srcdir=.
  1154. fi
  1155. # Remove unnecessary trailing slashes from srcdir.
  1156. # Double slashes in file names in object file debugging info
  1157. # mess up M-x gdb in Emacs.
  1158. case $srcdir in
  1159. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1160. esac
  1161. for ac_var in $ac_precious_vars; do
  1162. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1163. eval ac_env_${ac_var}_value=\$${ac_var}
  1164. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1165. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1166. done
  1167. #
  1168. # Report the --help message.
  1169. #
  1170. if test "$ac_init_help" = "long"; then
  1171. # Omit some internal or obsolete options to make the list less imposing.
  1172. # This message is too long to be a string in the A/UX 3.1 sh.
  1173. cat <<_ACEOF
  1174. \`configure' configures aria2c 0.12.0 to adapt to many kinds of systems.
  1175. Usage: $0 [OPTION]... [VAR=VALUE]...
  1176. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1177. VAR=VALUE. See below for descriptions of some of the useful variables.
  1178. Defaults for the options are specified in brackets.
  1179. Configuration:
  1180. -h, --help display this help and exit
  1181. --help=short display options specific to this package
  1182. --help=recursive display the short help of all the included packages
  1183. -V, --version display version information and exit
  1184. -q, --quiet, --silent do not print \`checking...' messages
  1185. --cache-file=FILE cache test results in FILE [disabled]
  1186. -C, --config-cache alias for \`--cache-file=config.cache'
  1187. -n, --no-create do not create output files
  1188. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1189. Installation directories:
  1190. --prefix=PREFIX install architecture-independent files in PREFIX
  1191. [$ac_default_prefix]
  1192. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1193. [PREFIX]
  1194. By default, \`make install' will install all the files in
  1195. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1196. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1197. for instance \`--prefix=\$HOME'.
  1198. For better control, use the options below.
  1199. Fine tuning of the installation directories:
  1200. --bindir=DIR user executables [EPREFIX/bin]
  1201. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1202. --libexecdir=DIR program executables [EPREFIX/libexec]
  1203. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1204. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1205. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1206. --libdir=DIR object code libraries [EPREFIX/lib]
  1207. --includedir=DIR C header files [PREFIX/include]
  1208. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1209. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1210. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1211. --infodir=DIR info documentation [DATAROOTDIR/info]
  1212. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1213. --mandir=DIR man documentation [DATAROOTDIR/man]
  1214. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1215. --htmldir=DIR html documentation [DOCDIR]
  1216. --dvidir=DIR dvi documentation [DOCDIR]
  1217. --pdfdir=DIR pdf documentation [DOCDIR]
  1218. --psdir=DIR ps documentation [DOCDIR]
  1219. _ACEOF
  1220. cat <<\_ACEOF
  1221. Program names:
  1222. --program-prefix=PREFIX prepend PREFIX to installed program names
  1223. --program-suffix=SUFFIX append SUFFIX to installed program names
  1224. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1225. System types:
  1226. --build=BUILD configure for building on BUILD [guessed]
  1227. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1228. --target=TARGET configure for building compilers for TARGET [HOST]
  1229. _ACEOF
  1230. fi
  1231. if test -n "$ac_init_help"; then
  1232. case $ac_init_help in
  1233. short | recursive ) echo "Configuration of aria2c 0.12.0:";;
  1234. esac
  1235. cat <<\_ACEOF
  1236. Optional Features:
  1237. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1238. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1239. --enable-bittorrent enable BitTorrent support. Default: yes
  1240. --enable-metalink enable Metalink support. Default: yes
  1241. --disable-dependency-tracking speeds up one-time build
  1242. --enable-dependency-tracking do not reject slow dependency extractors
  1243. --disable-xmltest Do not try to compile and run a test LIBXML program
  1244. --disable-nls do not use Native Language Support
  1245. --enable-threads={posix|solaris|pth|win32}
  1246. specify multithreading API
  1247. --disable-threads build without multithread safety
  1248. --disable-rpath do not hardcode runtime library paths
  1249. Optional Packages:
  1250. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1251. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1252. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1253. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1254. --with-gnutls use gnutls library if installed. Default: yes
  1255. --with-openssl use openssl library if installed. Default: yes
  1256. --with-libxml2 use libxml2 library if installed. Default: yes
  1257. --with-libares use ares library if installed. Default: yes
  1258. --with-libcares use c-ares library if installed. Default: yes
  1259. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1260. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1261. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1262. --with-libgcrypt-prefix=PFX
  1263. prefix where LIBGCRYPT is installed (optional)
  1264. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1265. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1266. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1267. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1268. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1269. --without-libpth-prefix don't search for libpth in includedir and libdir
  1270. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1271. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1272. --with-included-gettext use the GNU gettext library included here
  1273. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1274. --without-libintl-prefix don't search for libintl in includedir and libdir
  1275. Some influential environment variables:
  1276. CXX C++ compiler command
  1277. CXXFLAGS C++ compiler flags
  1278. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1279. nonstandard directory <lib dir>
  1280. LIBS libraries to pass to the linker, e.g. -l<library>
  1281. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1282. you have headers in a nonstandard directory <include dir>
  1283. CC C compiler command
  1284. CFLAGS C compiler flags
  1285. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1286. the first program found out of: `bison -y', `byacc', `yacc'.
  1287. YFLAGS The list of arguments that will be passed by default to $YACC.
  1288. This script will default YFLAGS to the empty string to avoid a
  1289. default value of `-d' given by some make applications.
  1290. CXXCPP C++ preprocessor
  1291. Use these variables to override the choices made by `configure' or to help
  1292. it to find libraries and programs with nonstandard names/locations.
  1293. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1294. _ACEOF
  1295. ac_status=$?
  1296. fi
  1297. if test "$ac_init_help" = "recursive"; then
  1298. # If there are subdirs, report their specific --help.
  1299. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1300. test -d "$ac_dir" || continue
  1301. ac_builddir=.
  1302. case "$ac_dir" in
  1303. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1304. *)
  1305. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1306. # A ".." for each directory in $ac_dir_suffix.
  1307. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1308. case $ac_top_builddir_sub in
  1309. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1310. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1311. esac ;;
  1312. esac
  1313. ac_abs_top_builddir=$ac_pwd
  1314. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1315. # for backward compatibility:
  1316. ac_top_builddir=$ac_top_build_prefix
  1317. case $srcdir in
  1318. .) # We are building in place.
  1319. ac_srcdir=.
  1320. ac_top_srcdir=$ac_top_builddir_sub
  1321. ac_abs_top_srcdir=$ac_pwd ;;
  1322. [\\/]* | ?:[\\/]* ) # Absolute name.
  1323. ac_srcdir=$srcdir$ac_dir_suffix;
  1324. ac_top_srcdir=$srcdir
  1325. ac_abs_top_srcdir=$srcdir ;;
  1326. *) # Relative name.
  1327. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1328. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1329. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1330. esac
  1331. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1332. cd "$ac_dir" || { ac_status=$?; continue; }
  1333. # Check for guested configure.
  1334. if test -f "$ac_srcdir/configure.gnu"; then
  1335. echo &&
  1336. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1337. elif test -f "$ac_srcdir/configure"; then
  1338. echo &&
  1339. $SHELL "$ac_srcdir/configure" --help=recursive
  1340. else
  1341. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1342. fi || ac_status=$?
  1343. cd "$ac_pwd" || { ac_status=$?; break; }
  1344. done
  1345. fi
  1346. test -n "$ac_init_help" && exit $ac_status
  1347. if $ac_init_version; then
  1348. cat <<\_ACEOF
  1349. aria2c configure 0.12.0
  1350. generated by GNU Autoconf 2.61
  1351. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1352. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1353. This configure script is free software; the Free Software Foundation
  1354. gives unlimited permission to copy, distribute and modify it.
  1355. _ACEOF
  1356. exit
  1357. fi
  1358. cat >config.log <<_ACEOF
  1359. This file contains any messages produced by compilers while
  1360. running configure, to aid debugging if configure makes a mistake.
  1361. It was created by aria2c $as_me 0.12.0, which was
  1362. generated by GNU Autoconf 2.61. Invocation command line was
  1363. $ $0 $@
  1364. _ACEOF
  1365. exec 5>>config.log
  1366. {
  1367. cat <<_ASUNAME
  1368. ## --------- ##
  1369. ## Platform. ##
  1370. ## --------- ##
  1371. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1372. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1373. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1374. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1375. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1376. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1377. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1378. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1379. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1380. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1381. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1382. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1383. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1384. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1385. _ASUNAME
  1386. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1387. for as_dir in $PATH
  1388. do
  1389. IFS=$as_save_IFS
  1390. test -z "$as_dir" && as_dir=.
  1391. echo "PATH: $as_dir"
  1392. done
  1393. IFS=$as_save_IFS
  1394. } >&5
  1395. cat >&5 <<_ACEOF
  1396. ## ----------- ##
  1397. ## Core tests. ##
  1398. ## ----------- ##
  1399. _ACEOF
  1400. # Keep a trace of the command line.
  1401. # Strip out --no-create and --no-recursion so they do not pile up.
  1402. # Strip out --silent because we don't want to record it for future runs.
  1403. # Also quote any args containing shell meta-characters.
  1404. # Make two passes to allow for proper duplicate-argument suppression.
  1405. ac_configure_args=
  1406. ac_configure_args0=
  1407. ac_configure_args1=
  1408. ac_must_keep_next=false
  1409. for ac_pass in 1 2
  1410. do
  1411. for ac_arg
  1412. do
  1413. case $ac_arg in
  1414. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1415. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1416. | -silent | --silent | --silen | --sile | --sil)
  1417. continue ;;
  1418. *\'*)
  1419. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1420. esac
  1421. case $ac_pass in
  1422. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1423. 2)
  1424. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1425. if test $ac_must_keep_next = true; then
  1426. ac_must_keep_next=false # Got value, back to normal.
  1427. else
  1428. case $ac_arg in
  1429. *=* | --config-cache | -C | -disable-* | --disable-* \
  1430. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1431. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1432. | -with-* | --with-* | -without-* | --without-* | --x)
  1433. case "$ac_configure_args0 " in
  1434. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1435. esac
  1436. ;;
  1437. -* ) ac_must_keep_next=true ;;
  1438. esac
  1439. fi
  1440. ac_configure_args="$ac_configure_args '$ac_arg'"
  1441. ;;
  1442. esac
  1443. done
  1444. done
  1445. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1446. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1447. # When interrupted or exit'd, cleanup temporary files, and complete
  1448. # config.log. We remove comments because anyway the quotes in there
  1449. # would cause problems or look ugly.
  1450. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1451. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1452. trap 'exit_status=$?
  1453. # Save into config.log some information that might help in debugging.
  1454. {
  1455. echo
  1456. cat <<\_ASBOX
  1457. ## ---------------- ##
  1458. ## Cache variables. ##
  1459. ## ---------------- ##
  1460. _ASBOX
  1461. echo
  1462. # The following way of writing the cache mishandles newlines in values,
  1463. (
  1464. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1465. eval ac_val=\$$ac_var
  1466. case $ac_val in #(
  1467. *${as_nl}*)
  1468. case $ac_var in #(
  1469. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1470. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1471. esac
  1472. case $ac_var in #(
  1473. _ | IFS | as_nl) ;; #(
  1474. *) $as_unset $ac_var ;;
  1475. esac ;;
  1476. esac
  1477. done
  1478. (set) 2>&1 |
  1479. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1480. *${as_nl}ac_space=\ *)
  1481. sed -n \
  1482. "s/'\''/'\''\\\\'\'''\''/g;
  1483. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1484. ;; #(
  1485. *)
  1486. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1487. ;;
  1488. esac |
  1489. sort
  1490. )
  1491. echo
  1492. cat <<\_ASBOX
  1493. ## ----------------- ##
  1494. ## Output variables. ##
  1495. ## ----------------- ##
  1496. _ASBOX
  1497. echo
  1498. for ac_var in $ac_subst_vars
  1499. do
  1500. eval ac_val=\$$ac_var
  1501. case $ac_val in
  1502. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1503. esac
  1504. echo "$ac_var='\''$ac_val'\''"
  1505. done | sort
  1506. echo
  1507. if test -n "$ac_subst_files"; then
  1508. cat <<\_ASBOX
  1509. ## ------------------- ##
  1510. ## File substitutions. ##
  1511. ## ------------------- ##
  1512. _ASBOX
  1513. echo
  1514. for ac_var in $ac_subst_files
  1515. do
  1516. eval ac_val=\$$ac_var
  1517. case $ac_val in
  1518. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1519. esac
  1520. echo "$ac_var='\''$ac_val'\''"
  1521. done | sort
  1522. echo
  1523. fi
  1524. if test -s confdefs.h; then
  1525. cat <<\_ASBOX
  1526. ## ----------- ##
  1527. ## confdefs.h. ##
  1528. ## ----------- ##
  1529. _ASBOX
  1530. echo
  1531. cat confdefs.h
  1532. echo
  1533. fi
  1534. test "$ac_signal" != 0 &&
  1535. echo "$as_me: caught signal $ac_signal"
  1536. echo "$as_me: exit $exit_status"
  1537. } >&5
  1538. rm -f core *.core core.conftest.* &&
  1539. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1540. exit $exit_status
  1541. ' 0
  1542. for ac_signal in 1 2 13 15; do
  1543. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1544. done
  1545. ac_signal=0
  1546. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1547. rm -f -r conftest* confdefs.h
  1548. # Predefined preprocessor variables.
  1549. cat >>confdefs.h <<_ACEOF
  1550. #define PACKAGE_NAME "$PACKAGE_NAME"
  1551. _ACEOF
  1552. cat >>confdefs.h <<_ACEOF
  1553. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1554. _ACEOF
  1555. cat >>confdefs.h <<_ACEOF
  1556. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1557. _ACEOF
  1558. cat >>confdefs.h <<_ACEOF
  1559. #define PACKAGE_STRING "$PACKAGE_STRING"
  1560. _ACEOF
  1561. cat >>confdefs.h <<_ACEOF
  1562. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1563. _ACEOF
  1564. # Let the site file select an alternate cache file if it wants to.
  1565. # Prefer explicitly selected file to automatically selected ones.
  1566. if test -n "$CONFIG_SITE"; then
  1567. set x "$CONFIG_SITE"
  1568. elif test "x$prefix" != xNONE; then
  1569. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1570. else
  1571. set x "$ac_default_prefix/share/config.site" \
  1572. "$ac_default_prefix/etc/config.site"
  1573. fi
  1574. shift
  1575. for ac_site_file
  1576. do
  1577. if test -r "$ac_site_file"; then
  1578. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1579. echo "$as_me: loading site script $ac_site_file" >&6;}
  1580. sed 's/^/| /' "$ac_site_file" >&5
  1581. . "$ac_site_file"
  1582. fi
  1583. done
  1584. if test -r "$cache_file"; then
  1585. # Some versions of bash will fail to source /dev/null (special
  1586. # files actually), so we avoid doing that.
  1587. if test -f "$cache_file"; then
  1588. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1589. echo "$as_me: loading cache $cache_file" >&6;}
  1590. case $cache_file in
  1591. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1592. *) . "./$cache_file";;
  1593. esac
  1594. fi
  1595. else
  1596. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1597. echo "$as_me: creating cache $cache_file" >&6;}
  1598. >$cache_file
  1599. fi
  1600. gt_needs="$gt_needs "
  1601. # Check that the precious variables saved in the cache have kept the same
  1602. # value.
  1603. ac_cache_corrupted=false
  1604. for ac_var in $ac_precious_vars; do
  1605. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1606. eval ac_new_set=\$ac_env_${ac_var}_set
  1607. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1608. eval ac_new_val=\$ac_env_${ac_var}_value
  1609. case $ac_old_set,$ac_new_set in
  1610. set,)
  1611. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1612. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1613. ac_cache_corrupted=: ;;
  1614. ,set)
  1615. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1616. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1617. ac_cache_corrupted=: ;;
  1618. ,);;
  1619. *)
  1620. if test "x$ac_old_val" != "x$ac_new_val"; then
  1621. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1622. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1623. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1624. echo "$as_me: former value: $ac_old_val" >&2;}
  1625. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1626. echo "$as_me: current value: $ac_new_val" >&2;}
  1627. ac_cache_corrupted=:
  1628. fi;;
  1629. esac
  1630. # Pass precious variables to config.status.
  1631. if test "$ac_new_set" = set; then
  1632. case $ac_new_val in
  1633. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1634. *) ac_arg=$ac_var=$ac_new_val ;;
  1635. esac
  1636. case " $ac_configure_args " in
  1637. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1638. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1639. esac
  1640. fi
  1641. done
  1642. if $ac_cache_corrupted; then
  1643. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1644. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1645. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1646. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1647. { (exit 1); exit 1; }; }
  1648. fi
  1649. ac_ext=c
  1650. ac_cpp='$CPP $CPPFLAGS'
  1651. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1652. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1653. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1654. ac_aux_dir=
  1655. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1656. if test -f "$ac_dir/install-sh"; then
  1657. ac_aux_dir=$ac_dir
  1658. ac_install_sh="$ac_aux_dir/install-sh -c"
  1659. break
  1660. elif test -f "$ac_dir/install.sh"; then
  1661. ac_aux_dir=$ac_dir
  1662. ac_install_sh="$ac_aux_dir/install.sh -c"
  1663. break
  1664. elif test -f "$ac_dir/shtool"; then
  1665. ac_aux_dir=$ac_dir
  1666. ac_install_sh="$ac_aux_dir/shtool install -c"
  1667. break
  1668. fi
  1669. done
  1670. if test -z "$ac_aux_dir"; then
  1671. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1672. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1673. { (exit 1); exit 1; }; }
  1674. fi
  1675. # These three variables are undocumented and unsupported,
  1676. # and are intended to be withdrawn in a future Autoconf release.
  1677. # They can cause serious problems if a builder's source tree is in a directory
  1678. # whose full name contains unusual characters.
  1679. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1680. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1681. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1682. # Make sure we can run config.sub.
  1683. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1684. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1685. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1686. { (exit 1); exit 1; }; }
  1687. { echo "$as_me:$LINENO: checking build system type" >&5
  1688. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1689. if test "${ac_cv_build+set}" = set; then
  1690. echo $ECHO_N "(cached) $ECHO_C" >&6
  1691. else
  1692. ac_build_alias=$build_alias
  1693. test "x$ac_build_alias" = x &&
  1694. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1695. test "x$ac_build_alias" = x &&
  1696. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1697. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1698. { (exit 1); exit 1; }; }
  1699. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1700. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1701. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1702. { (exit 1); exit 1; }; }
  1703. fi
  1704. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1705. echo "${ECHO_T}$ac_cv_build" >&6; }
  1706. case $ac_cv_build in
  1707. *-*-*) ;;
  1708. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1709. echo "$as_me: error: invalid value of canonical build" >&2;}
  1710. { (exit 1); exit 1; }; };;
  1711. esac
  1712. build=$ac_cv_build
  1713. ac_save_IFS=$IFS; IFS='-'
  1714. set x $ac_cv_build
  1715. shift
  1716. build_cpu=$1
  1717. build_vendor=$2
  1718. shift; shift
  1719. # Remember, the first character of IFS is used to create $*,
  1720. # except with old shells:
  1721. build_os=$*
  1722. IFS=$ac_save_IFS
  1723. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1724. { echo "$as_me:$LINENO: checking host system type" >&5
  1725. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1726. if test "${ac_cv_host+set}" = set; then
  1727. echo $ECHO_N "(cached) $ECHO_C" >&6
  1728. else
  1729. if test "x$host_alias" = x; then
  1730. ac_cv_host=$ac_cv_build
  1731. else
  1732. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1733. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1734. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1735. { (exit 1); exit 1; }; }
  1736. fi
  1737. fi
  1738. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1739. echo "${ECHO_T}$ac_cv_host" >&6; }
  1740. case $ac_cv_host in
  1741. *-*-*) ;;
  1742. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1743. echo "$as_me: error: invalid value of canonical host" >&2;}
  1744. { (exit 1); exit 1; }; };;
  1745. esac
  1746. host=$ac_cv_host
  1747. ac_save_IFS=$IFS; IFS='-'
  1748. set x $ac_cv_host
  1749. shift
  1750. host_cpu=$1
  1751. host_vendor=$2
  1752. shift; shift
  1753. # Remember, the first character of IFS is used to create $*,
  1754. # except with old shells:
  1755. host_os=$*
  1756. IFS=$ac_save_IFS
  1757. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1758. { echo "$as_me:$LINENO: checking target system type" >&5
  1759. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1760. if test "${ac_cv_target+set}" = set; then
  1761. echo $ECHO_N "(cached) $ECHO_C" >&6
  1762. else
  1763. if test "x$target_alias" = x; then
  1764. ac_cv_target=$ac_cv_host
  1765. else
  1766. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1767. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1768. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1769. { (exit 1); exit 1; }; }
  1770. fi
  1771. fi
  1772. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1773. echo "${ECHO_T}$ac_cv_target" >&6; }
  1774. case $ac_cv_target in
  1775. *-*-*) ;;
  1776. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1777. echo "$as_me: error: invalid value of canonical target" >&2;}
  1778. { (exit 1); exit 1; }; };;
  1779. esac
  1780. target=$ac_cv_target
  1781. ac_save_IFS=$IFS; IFS='-'
  1782. set x $ac_cv_target
  1783. shift
  1784. target_cpu=$1
  1785. target_vendor=$2
  1786. shift; shift
  1787. # Remember, the first character of IFS is used to create $*,
  1788. # except with old shells:
  1789. target_os=$*
  1790. IFS=$ac_save_IFS
  1791. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1792. # The aliases save the names the user supplied, while $host etc.
  1793. # will get canonicalized.
  1794. test -n "$target_alias" &&
  1795. test "$program_prefix$program_suffix$program_transform_name" = \
  1796. NONENONEs,x,x, &&
  1797. program_prefix=${target_alias}-
  1798. am__api_version="1.9"
  1799. # Find a good install program. We prefer a C program (faster),
  1800. # so one script is as good as another. But avoid the broken or
  1801. # incompatible versions:
  1802. # SysV /etc/install, /usr/sbin/install
  1803. # SunOS /usr/etc/install
  1804. # IRIX /sbin/install
  1805. # AIX /bin/install
  1806. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1807. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1808. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1809. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1810. # OS/2's system install, which has a completely different semantic
  1811. # ./install, which can be erroneously created by make from ./install.sh.
  1812. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1813. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1814. if test -z "$INSTALL"; then
  1815. if test "${ac_cv_path_install+set}" = set; then
  1816. echo $ECHO_N "(cached) $ECHO_C" >&6
  1817. else
  1818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1819. for as_dir in $PATH
  1820. do
  1821. IFS=$as_save_IFS
  1822. test -z "$as_dir" && as_dir=.
  1823. # Account for people who put trailing slashes in PATH elements.
  1824. case $as_dir/ in
  1825. ./ | .// | /cC/* | \
  1826. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1827. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1828. /usr/ucb/* ) ;;
  1829. *)
  1830. # OSF1 and SCO ODT 3.0 have their own names for install.
  1831. # Don't use installbsd from OSF since it installs stuff as root
  1832. # by default.
  1833. for ac_prog in ginstall scoinst install; do
  1834. for ac_exec_ext in '' $ac_executable_extensions; do
  1835. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1836. if test $ac_prog = install &&
  1837. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1838. # AIX install. It has an incompatible calling convention.
  1839. :
  1840. elif test $ac_prog = install &&
  1841. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1842. # program-specific install script used by HP pwplus--don't use.
  1843. :
  1844. else
  1845. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1846. break 3
  1847. fi
  1848. fi
  1849. done
  1850. done
  1851. ;;
  1852. esac
  1853. done
  1854. IFS=$as_save_IFS
  1855. fi
  1856. if test "${ac_cv_path_install+set}" = set; then
  1857. INSTALL=$ac_cv_path_install
  1858. else
  1859. # As a last resort, use the slow shell script. Don't cache a
  1860. # value for INSTALL within a source directory, because that will
  1861. # break other packages using the cache if that directory is
  1862. # removed, or if the value is a relative name.
  1863. INSTALL=$ac_install_sh
  1864. fi
  1865. fi
  1866. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1867. echo "${ECHO_T}$INSTALL" >&6; }
  1868. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1869. # It thinks the first close brace ends the variable substitution.
  1870. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1871. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1872. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1873. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1874. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1875. # Just in case
  1876. sleep 1
  1877. echo timestamp > conftest.file
  1878. # Do `set' in a subshell so we don't clobber the current shell's
  1879. # arguments. Must try -L first in case configure is actually a
  1880. # symlink; some systems play weird games with the mod time of symlinks
  1881. # (eg FreeBSD returns the mod time of the symlink's containing
  1882. # directory).
  1883. if (
  1884. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1885. if test "$*" = "X"; then
  1886. # -L didn't work.
  1887. set X `ls -t $srcdir/configure conftest.file`
  1888. fi
  1889. rm -f conftest.file
  1890. if test "$*" != "X $srcdir/configure conftest.file" \
  1891. && test "$*" != "X conftest.file $srcdir/configure"; then
  1892. # If neither matched, then we have a broken ls. This can happen
  1893. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1894. # broken ls alias from the environment. This has actually
  1895. # happened. Such a system could not be considered "sane".
  1896. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1897. alias in your environment" >&5
  1898. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1899. alias in your environment" >&2;}
  1900. { (exit 1); exit 1; }; }
  1901. fi
  1902. test "$2" = conftest.file
  1903. )
  1904. then
  1905. # Ok.
  1906. :
  1907. else
  1908. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1909. Check your system clock" >&5
  1910. echo "$as_me: error: newly created file is older than distributed files!
  1911. Check your system clock" >&2;}
  1912. { (exit 1); exit 1; }; }
  1913. fi
  1914. { echo "$as_me:$LINENO: result: yes" >&5
  1915. echo "${ECHO_T}yes" >&6; }
  1916. test "$program_prefix" != NONE &&
  1917. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1918. # Use a double $ so make ignores it.
  1919. test "$program_suffix" != NONE &&
  1920. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1921. # Double any \ or $. echo might interpret backslashes.
  1922. # By default was `s,x,x', remove it if useless.
  1923. cat <<\_ACEOF >conftest.sed
  1924. s/[\\$]/&&/g;s/;s,x,x,$//
  1925. _ACEOF
  1926. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1927. rm -f conftest.sed
  1928. # expand $ac_aux_dir to an absolute path
  1929. am_aux_dir=`cd $ac_aux_dir && pwd`
  1930. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1931. # Use eval to expand $SHELL
  1932. if eval "$MISSING --run true"; then
  1933. am_missing_run="$MISSING --run "
  1934. else
  1935. am_missing_run=
  1936. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1937. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1938. fi
  1939. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1940. # We used to keeping the `.' as first argument, in order to
  1941. # allow $(mkdir_p) to be used without argument. As in
  1942. # $(mkdir_p) $(somedir)
  1943. # where $(somedir) is conditionally defined. However this is wrong
  1944. # for two reasons:
  1945. # 1. if the package is installed by a user who cannot write `.'
  1946. # make install will fail,
  1947. # 2. the above comment should most certainly read
  1948. # $(mkdir_p) $(DESTDIR)$(somedir)
  1949. # so it does not work when $(somedir) is undefined and
  1950. # $(DESTDIR) is not.
  1951. # To support the latter case, we have to write
  1952. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1953. # so the `.' trick is pointless.
  1954. mkdir_p='mkdir -p --'
  1955. else
  1956. # On NextStep and OpenStep, the `mkdir' command does not
  1957. # recognize any option. It will interpret all options as
  1958. # directories to create, and then abort because `.' already
  1959. # exists.
  1960. for d in ./-p ./--version;
  1961. do
  1962. test -d $d && rmdir $d
  1963. done
  1964. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1965. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1966. mkdir_p='$(mkinstalldirs)'
  1967. else
  1968. mkdir_p='$(install_sh) -d'
  1969. fi
  1970. fi
  1971. for ac_prog in gawk mawk nawk awk
  1972. do
  1973. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1974. set dummy $ac_prog; ac_word=$2
  1975. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1976. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1977. if test "${ac_cv_prog_AWK+set}" = set; then
  1978. echo $ECHO_N "(cached) $ECHO_C" >&6
  1979. else
  1980. if test -n "$AWK"; then
  1981. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1982. else
  1983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1984. for as_dir in $PATH
  1985. do
  1986. IFS=$as_save_IFS
  1987. test -z "$as_dir" && as_dir=.
  1988. for ac_exec_ext in '' $ac_executable_extensions; do
  1989. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1990. ac_cv_prog_AWK="$ac_prog"
  1991. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1992. break 2
  1993. fi
  1994. done
  1995. done
  1996. IFS=$as_save_IFS
  1997. fi
  1998. fi
  1999. AWK=$ac_cv_prog_AWK
  2000. if test -n "$AWK"; then
  2001. { echo "$as_me:$LINENO: result: $AWK" >&5
  2002. echo "${ECHO_T}$AWK" >&6; }
  2003. else
  2004. { echo "$as_me:$LINENO: result: no" >&5
  2005. echo "${ECHO_T}no" >&6; }
  2006. fi
  2007. test -n "$AWK" && break
  2008. done
  2009. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2010. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  2011. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2012. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2013. echo $ECHO_N "(cached) $ECHO_C" >&6
  2014. else
  2015. cat >conftest.make <<\_ACEOF
  2016. SHELL = /bin/sh
  2017. all:
  2018. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2019. _ACEOF
  2020. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2021. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2022. *@@@%%%=?*=@@@%%%*)
  2023. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2024. *)
  2025. eval ac_cv_prog_make_${ac_make}_set=no;;
  2026. esac
  2027. rm -f conftest.make
  2028. fi
  2029. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2030. { echo "$as_me:$LINENO: result: yes" >&5
  2031. echo "${ECHO_T}yes" >&6; }
  2032. SET_MAKE=
  2033. else
  2034. { echo "$as_me:$LINENO: result: no" >&5
  2035. echo "${ECHO_T}no" >&6; }
  2036. SET_MAKE="MAKE=${MAKE-make}"
  2037. fi
  2038. rm -rf .tst 2>/dev/null
  2039. mkdir .tst 2>/dev/null
  2040. if test -d .tst; then
  2041. am__leading_dot=.
  2042. else
  2043. am__leading_dot=_
  2044. fi
  2045. rmdir .tst 2>/dev/null
  2046. # test to see if srcdir already configured
  2047. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2048. test -f $srcdir/config.status; then
  2049. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2050. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2051. { (exit 1); exit 1; }; }
  2052. fi
  2053. # test whether we have cygpath
  2054. if test -z "$CYGPATH_W"; then
  2055. if (cygpath --version) >/dev/null 2>/dev/null; then
  2056. CYGPATH_W='cygpath -w'
  2057. else
  2058. CYGPATH_W=echo
  2059. fi
  2060. fi
  2061. # Define the identity of the package.
  2062. PACKAGE='aria2c'
  2063. VERSION='0.12.0'
  2064. cat >>confdefs.h <<_ACEOF
  2065. #define PACKAGE "$PACKAGE"
  2066. _ACEOF
  2067. cat >>confdefs.h <<_ACEOF
  2068. #define VERSION "$VERSION"
  2069. _ACEOF
  2070. # Some tools Automake needs.
  2071. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2072. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2073. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2074. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2075. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2076. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2077. # Installed binaries are usually stripped using `strip' when the user
  2078. # run `make install-strip'. However `strip' might not be the right
  2079. # tool to use in cross-compilation environments, therefore Automake
  2080. # will honor the `STRIP' environment variable to overrule this program.
  2081. if test "$cross_compiling" != no; then
  2082. if test -n "$ac_tool_prefix"; then
  2083. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2084. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2085. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2086. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2087. if test "${ac_cv_prog_STRIP+set}" = set; then
  2088. echo $ECHO_N "(cached) $ECHO_C" >&6
  2089. else
  2090. if test -n "$STRIP"; then
  2091. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2092. else
  2093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2094. for as_dir in $PATH
  2095. do
  2096. IFS=$as_save_IFS
  2097. test -z "$as_dir" && as_dir=.
  2098. for ac_exec_ext in '' $ac_executable_extensions; do
  2099. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2100. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2101. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2102. break 2
  2103. fi
  2104. done
  2105. done
  2106. IFS=$as_save_IFS
  2107. fi
  2108. fi
  2109. STRIP=$ac_cv_prog_STRIP
  2110. if test -n "$STRIP"; then
  2111. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2112. echo "${ECHO_T}$STRIP" >&6; }
  2113. else
  2114. { echo "$as_me:$LINENO: result: no" >&5
  2115. echo "${ECHO_T}no" >&6; }
  2116. fi
  2117. fi
  2118. if test -z "$ac_cv_prog_STRIP"; then
  2119. ac_ct_STRIP=$STRIP
  2120. # Extract the first word of "strip", so it can be a program name with args.
  2121. set dummy strip; ac_word=$2
  2122. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2123. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2124. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2125. echo $ECHO_N "(cached) $ECHO_C" >&6
  2126. else
  2127. if test -n "$ac_ct_STRIP"; then
  2128. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2129. else
  2130. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2131. for as_dir in $PATH
  2132. do
  2133. IFS=$as_save_IFS
  2134. test -z "$as_dir" && as_dir=.
  2135. for ac_exec_ext in '' $ac_executable_extensions; do
  2136. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2137. ac_cv_prog_ac_ct_STRIP="strip"
  2138. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2139. break 2
  2140. fi
  2141. done
  2142. done
  2143. IFS=$as_save_IFS
  2144. fi
  2145. fi
  2146. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2147. if test -n "$ac_ct_STRIP"; then
  2148. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2149. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2150. else
  2151. { echo "$as_me:$LINENO: result: no" >&5
  2152. echo "${ECHO_T}no" >&6; }
  2153. fi
  2154. if test "x$ac_ct_STRIP" = x; then
  2155. STRIP=":"
  2156. else
  2157. case $cross_compiling:$ac_tool_warned in
  2158. yes:)
  2159. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2160. whose name does not start with the host triplet. If you think this
  2161. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2162. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2163. whose name does not start with the host triplet. If you think this
  2164. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2165. ac_tool_warned=yes ;;
  2166. esac
  2167. STRIP=$ac_ct_STRIP
  2168. fi
  2169. else
  2170. STRIP="$ac_cv_prog_STRIP"
  2171. fi
  2172. fi
  2173. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2174. # We need awk for the "check" target. The system "awk" is bad on
  2175. # some platforms.
  2176. # Always define AMTAR for backward compatibility.
  2177. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2178. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2179. # Check whether --with-cppunit-prefix was given.
  2180. if test "${with_cppunit_prefix+set}" = set; then
  2181. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2182. else
  2183. cppunit_config_prefix=""
  2184. fi
  2185. # Check whether --with-cppunit-exec-prefix was given.
  2186. if test "${with_cppunit_exec_prefix+set}" = set; then
  2187. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2188. else
  2189. cppunit_config_exec_prefix=""
  2190. fi
  2191. if test x$cppunit_config_exec_prefix != x ; then
  2192. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2193. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2194. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2195. fi
  2196. fi
  2197. if test x$cppunit_config_prefix != x ; then
  2198. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2199. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2200. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2201. fi
  2202. fi
  2203. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2204. set dummy cppunit-config; ac_word=$2
  2205. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2207. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2208. echo $ECHO_N "(cached) $ECHO_C" >&6
  2209. else
  2210. case $CPPUNIT_CONFIG in
  2211. [\\/]* | ?:[\\/]*)
  2212. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2213. ;;
  2214. *)
  2215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2216. for as_dir in $PATH
  2217. do
  2218. IFS=$as_save_IFS
  2219. test -z "$as_dir" && as_dir=.
  2220. for ac_exec_ext in '' $ac_executable_extensions; do
  2221. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2222. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2223. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2224. break 2
  2225. fi
  2226. done
  2227. done
  2228. IFS=$as_save_IFS
  2229. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2230. ;;
  2231. esac
  2232. fi
  2233. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2234. if test -n "$CPPUNIT_CONFIG"; then
  2235. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2236. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2237. else
  2238. { echo "$as_me:$LINENO: result: no" >&5
  2239. echo "${ECHO_T}no" >&6; }
  2240. fi
  2241. cppunit_version_min=1.10.2
  2242. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2243. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2244. no_cppunit=""
  2245. if test "$CPPUNIT_CONFIG" = "no" ; then
  2246. { echo "$as_me:$LINENO: result: no" >&5
  2247. echo "${ECHO_T}no" >&6; }
  2248. no_cppunit=yes
  2249. else
  2250. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2251. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2252. cppunit_version=`$CPPUNIT_CONFIG --version`
  2253. cppunit_major_version=`echo $cppunit_version | \
  2254. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2255. cppunit_minor_version=`echo $cppunit_version | \
  2256. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2257. cppunit_micro_version=`echo $cppunit_version | \
  2258. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2259. cppunit_major_min=`echo $cppunit_version_min | \
  2260. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2261. if test "x${cppunit_major_min}" = "x" ; then
  2262. cppunit_major_min=0
  2263. fi
  2264. cppunit_minor_min=`echo $cppunit_version_min | \
  2265. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2266. if test "x${cppunit_minor_min}" = "x" ; then
  2267. cppunit_minor_min=0
  2268. fi
  2269. cppunit_micro_min=`echo $cppunit_version_min | \
  2270. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2271. if test "x${cppunit_micro_min}" = "x" ; then
  2272. cppunit_micro_min=0
  2273. fi
  2274. cppunit_version_proper=`expr \
  2275. $cppunit_major_version \> $cppunit_major_min \| \
  2276. $cppunit_major_version \= $cppunit_major_min \& \
  2277. $cppunit_minor_version \> $cppunit_minor_min \| \
  2278. $cppunit_major_version \= $cppunit_major_min \& \
  2279. $cppunit_minor_version \= $cppunit_minor_min \& \
  2280. $cppunit_micro_version \>= $cppunit_micro_min `
  2281. if test "$cppunit_version_proper" = "1" ; then
  2282. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2283. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2284. else
  2285. { echo "$as_me:$LINENO: result: no" >&5
  2286. echo "${ECHO_T}no" >&6; }
  2287. no_cppunit=yes
  2288. fi
  2289. fi
  2290. if test "x$no_cppunit" = x ; then
  2291. :
  2292. else
  2293. CPPUNIT_CFLAGS=""
  2294. CPPUNIT_LIBS=""
  2295. :
  2296. fi
  2297. ac_config_headers="$ac_config_headers config.h"
  2298. case "$target" in
  2299. *mingw*|*cygwin*)
  2300. WINSOCK_LIBS="-lws2_32"
  2301. ;;
  2302. esac
  2303. cat >>confdefs.h <<_ACEOF
  2304. #define TARGET "$target"
  2305. _ACEOF
  2306. # Set localedir
  2307. localedir=${datadir}/locale
  2308. # Checks for arguments.
  2309. # Check whether --with-gnutls was given.
  2310. if test "${with_gnutls+set}" = set; then
  2311. withval=$with_gnutls; with_gnutls=$withval
  2312. else
  2313. with_gnutls=yes
  2314. fi
  2315. # Check whether --with-openssl was given.
  2316. if test "${with_openssl+set}" = set; then
  2317. withval=$with_openssl; with_openssl=$withval
  2318. else
  2319. with_openssl=yes
  2320. fi
  2321. # Check whether --with-libxml2 was given.
  2322. if test "${with_libxml2+set}" = set; then
  2323. withval=$with_libxml2; with_libxml2=$withval
  2324. else
  2325. with_libxml2=yes
  2326. fi
  2327. # Check whether --with-libares was given.
  2328. if test "${with_libares+set}" = set; then
  2329. withval=$with_libares; with_libares=$withval
  2330. else
  2331. with_libares=yes
  2332. fi
  2333. # Check whether --with-libcares was given.
  2334. if test "${with_libcares+set}" = set; then
  2335. withval=$with_libcares; with_libcares=$withval
  2336. else
  2337. with_libcares=yes
  2338. fi
  2339. # Check whether --enable-bittorrent was given.
  2340. if test "${enable_bittorrent+set}" = set; then
  2341. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2342. else
  2343. enable_bittorrent=yes
  2344. fi
  2345. # Check whether --enable-metalink was given.
  2346. if test "${enable_metalink+set}" = set; then
  2347. enableval=$enable_metalink; enable_metalink=$enableval
  2348. else
  2349. enable_metalink=yes
  2350. fi
  2351. # Checks for programs.
  2352. ac_ext=cpp
  2353. ac_cpp='$CXXCPP $CPPFLAGS'
  2354. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2355. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2356. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2357. if test -z "$CXX"; then
  2358. if test -n "$CCC"; then
  2359. CXX=$CCC
  2360. else
  2361. if test -n "$ac_tool_prefix"; then
  2362. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2363. do
  2364. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2365. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2366. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2367. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2368. if test "${ac_cv_prog_CXX+set}" = set; then
  2369. echo $ECHO_N "(cached) $ECHO_C" >&6
  2370. else
  2371. if test -n "$CXX"; then
  2372. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2373. else
  2374. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2375. for as_dir in $PATH
  2376. do
  2377. IFS=$as_save_IFS
  2378. test -z "$as_dir" && as_dir=.
  2379. for ac_exec_ext in '' $ac_executable_extensions; do
  2380. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2381. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2382. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2383. break 2
  2384. fi
  2385. done
  2386. done
  2387. IFS=$as_save_IFS
  2388. fi
  2389. fi
  2390. CXX=$ac_cv_prog_CXX
  2391. if test -n "$CXX"; then
  2392. { echo "$as_me:$LINENO: result: $CXX" >&5
  2393. echo "${ECHO_T}$CXX" >&6; }
  2394. else
  2395. { echo "$as_me:$LINENO: result: no" >&5
  2396. echo "${ECHO_T}no" >&6; }
  2397. fi
  2398. test -n "$CXX" && break
  2399. done
  2400. fi
  2401. if test -z "$CXX"; then
  2402. ac_ct_CXX=$CXX
  2403. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2404. do
  2405. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2406. set dummy $ac_prog; ac_word=$2
  2407. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2408. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2409. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2410. echo $ECHO_N "(cached) $ECHO_C" >&6
  2411. else
  2412. if test -n "$ac_ct_CXX"; then
  2413. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2414. else
  2415. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2416. for as_dir in $PATH
  2417. do
  2418. IFS=$as_save_IFS
  2419. test -z "$as_dir" && as_dir=.
  2420. for ac_exec_ext in '' $ac_executable_extensions; do
  2421. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2422. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2423. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2424. break 2
  2425. fi
  2426. done
  2427. done
  2428. IFS=$as_save_IFS
  2429. fi
  2430. fi
  2431. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2432. if test -n "$ac_ct_CXX"; then
  2433. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2434. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2435. else
  2436. { echo "$as_me:$LINENO: result: no" >&5
  2437. echo "${ECHO_T}no" >&6; }
  2438. fi
  2439. test -n "$ac_ct_CXX" && break
  2440. done
  2441. if test "x$ac_ct_CXX" = x; then
  2442. CXX="g++"
  2443. else
  2444. case $cross_compiling:$ac_tool_warned in
  2445. yes:)
  2446. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2447. whose name does not start with the host triplet. If you think this
  2448. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2449. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2450. whose name does not start with the host triplet. If you think this
  2451. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2452. ac_tool_warned=yes ;;
  2453. esac
  2454. CXX=$ac_ct_CXX
  2455. fi
  2456. fi
  2457. fi
  2458. fi
  2459. # Provide some information about the compiler.
  2460. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2461. ac_compiler=`set X $ac_compile; echo $2`
  2462. { (ac_try="$ac_compiler --version >&5"
  2463. case "(($ac_try" in
  2464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2465. *) ac_try_echo=$ac_try;;
  2466. esac
  2467. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2468. (eval "$ac_compiler --version >&5") 2>&5
  2469. ac_status=$?
  2470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2471. (exit $ac_status); }
  2472. { (ac_try="$ac_compiler -v >&5"
  2473. case "(($ac_try" in
  2474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2475. *) ac_try_echo=$ac_try;;
  2476. esac
  2477. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2478. (eval "$ac_compiler -v >&5") 2>&5
  2479. ac_status=$?
  2480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2481. (exit $ac_status); }
  2482. { (ac_try="$ac_compiler -V >&5"
  2483. case "(($ac_try" in
  2484. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2485. *) ac_try_echo=$ac_try;;
  2486. esac
  2487. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2488. (eval "$ac_compiler -V >&5") 2>&5
  2489. ac_status=$?
  2490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2491. (exit $ac_status); }
  2492. cat >conftest.$ac_ext <<_ACEOF
  2493. /* confdefs.h. */
  2494. _ACEOF
  2495. cat confdefs.h >>conftest.$ac_ext
  2496. cat >>conftest.$ac_ext <<_ACEOF
  2497. /* end confdefs.h. */
  2498. int
  2499. main ()
  2500. {
  2501. ;
  2502. return 0;
  2503. }
  2504. _ACEOF
  2505. ac_clean_files_save=$ac_clean_files
  2506. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2507. # Try to create an executable without -o first, disregard a.out.
  2508. # It will help us diagnose broken compilers, and finding out an intuition
  2509. # of exeext.
  2510. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2511. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2512. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2513. #
  2514. # List of possible output files, starting from the most likely.
  2515. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2516. # only as a last resort. b.out is created by i960 compilers.
  2517. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2518. #
  2519. # The IRIX 6 linker writes into existing files which may not be
  2520. # executable, retaining their permissions. Remove them first so a
  2521. # subsequent execution test works.
  2522. ac_rmfiles=
  2523. for ac_file in $ac_files
  2524. do
  2525. case $ac_file in
  2526. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2527. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2528. esac
  2529. done
  2530. rm -f $ac_rmfiles
  2531. if { (ac_try="$ac_link_default"
  2532. case "(($ac_try" in
  2533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2534. *) ac_try_echo=$ac_try;;
  2535. esac
  2536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2537. (eval "$ac_link_default") 2>&5
  2538. ac_status=$?
  2539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2540. (exit $ac_status); }; then
  2541. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2542. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2543. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2544. # so that the user can short-circuit this test for compilers unknown to
  2545. # Autoconf.
  2546. for ac_file in $ac_files ''
  2547. do
  2548. test -f "$ac_file" || continue
  2549. case $ac_file in
  2550. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2551. ;;
  2552. [ab].out )
  2553. # We found the default executable, but exeext='' is most
  2554. # certainly right.
  2555. break;;
  2556. *.* )
  2557. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2558. then :; else
  2559. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2560. fi
  2561. # We set ac_cv_exeext here because the later test for it is not
  2562. # safe: cross compilers may not add the suffix if given an `-o'
  2563. # argument, so we may need to know it at that point already.
  2564. # Even if this section looks crufty: it has the advantage of
  2565. # actually working.
  2566. break;;
  2567. * )
  2568. break;;
  2569. esac
  2570. done
  2571. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2572. else
  2573. ac_file=''
  2574. fi
  2575. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2576. echo "${ECHO_T}$ac_file" >&6; }
  2577. if test -z "$ac_file"; then
  2578. echo "$as_me: failed program was:" >&5
  2579. sed 's/^/| /' conftest.$ac_ext >&5
  2580. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2581. See \`config.log' for more details." >&5
  2582. echo "$as_me: error: C++ compiler cannot create executables
  2583. See \`config.log' for more details." >&2;}
  2584. { (exit 77); exit 77; }; }
  2585. fi
  2586. ac_exeext=$ac_cv_exeext
  2587. # Check that the compiler produces executables we can run. If not, either
  2588. # the compiler is broken, or we cross compile.
  2589. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2590. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2591. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2592. # If not cross compiling, check that we can run a simple program.
  2593. if test "$cross_compiling" != yes; then
  2594. if { ac_try='./$ac_file'
  2595. { (case "(($ac_try" in
  2596. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2597. *) ac_try_echo=$ac_try;;
  2598. esac
  2599. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2600. (eval "$ac_try") 2>&5
  2601. ac_status=$?
  2602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2603. (exit $ac_status); }; }; then
  2604. cross_compiling=no
  2605. else
  2606. if test "$cross_compiling" = maybe; then
  2607. cross_compiling=yes
  2608. else
  2609. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2610. If you meant to cross compile, use \`--host'.
  2611. See \`config.log' for more details." >&5
  2612. echo "$as_me: error: cannot run C++ compiled programs.
  2613. If you meant to cross compile, use \`--host'.
  2614. See \`config.log' for more details." >&2;}
  2615. { (exit 1); exit 1; }; }
  2616. fi
  2617. fi
  2618. fi
  2619. { echo "$as_me:$LINENO: result: yes" >&5
  2620. echo "${ECHO_T}yes" >&6; }
  2621. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2622. ac_clean_files=$ac_clean_files_save
  2623. # Check that the compiler produces executables we can run. If not, either
  2624. # the compiler is broken, or we cross compile.
  2625. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2626. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2627. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2628. echo "${ECHO_T}$cross_compiling" >&6; }
  2629. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2630. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2631. if { (ac_try="$ac_link"
  2632. case "(($ac_try" in
  2633. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2634. *) ac_try_echo=$ac_try;;
  2635. esac
  2636. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2637. (eval "$ac_link") 2>&5
  2638. ac_status=$?
  2639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2640. (exit $ac_status); }; then
  2641. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2642. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2643. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2644. # `rm'.
  2645. for ac_file in conftest.exe conftest conftest.*; do
  2646. test -f "$ac_file" || continue
  2647. case $ac_file in
  2648. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2649. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2650. break;;
  2651. * ) break;;
  2652. esac
  2653. done
  2654. else
  2655. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2656. See \`config.log' for more details." >&5
  2657. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2658. See \`config.log' for more details." >&2;}
  2659. { (exit 1); exit 1; }; }
  2660. fi
  2661. rm -f conftest$ac_cv_exeext
  2662. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2663. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2664. rm -f conftest.$ac_ext
  2665. EXEEXT=$ac_cv_exeext
  2666. ac_exeext=$EXEEXT
  2667. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2668. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2669. if test "${ac_cv_objext+set}" = set; then
  2670. echo $ECHO_N "(cached) $ECHO_C" >&6
  2671. else
  2672. cat >conftest.$ac_ext <<_ACEOF
  2673. /* confdefs.h. */
  2674. _ACEOF
  2675. cat confdefs.h >>conftest.$ac_ext
  2676. cat >>conftest.$ac_ext <<_ACEOF
  2677. /* end confdefs.h. */
  2678. int
  2679. main ()
  2680. {
  2681. ;
  2682. return 0;
  2683. }
  2684. _ACEOF
  2685. rm -f conftest.o conftest.obj
  2686. if { (ac_try="$ac_compile"
  2687. case "(($ac_try" in
  2688. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2689. *) ac_try_echo=$ac_try;;
  2690. esac
  2691. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2692. (eval "$ac_compile") 2>&5
  2693. ac_status=$?
  2694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2695. (exit $ac_status); }; then
  2696. for ac_file in conftest.o conftest.obj conftest.*; do
  2697. test -f "$ac_file" || continue;
  2698. case $ac_file in
  2699. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2700. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2701. break;;
  2702. esac
  2703. done
  2704. else
  2705. echo "$as_me: failed program was:" >&5
  2706. sed 's/^/| /' conftest.$ac_ext >&5
  2707. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2708. See \`config.log' for more details." >&5
  2709. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2710. See \`config.log' for more details." >&2;}
  2711. { (exit 1); exit 1; }; }
  2712. fi
  2713. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2714. fi
  2715. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2716. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2717. OBJEXT=$ac_cv_objext
  2718. ac_objext=$OBJEXT
  2719. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2720. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2721. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2722. echo $ECHO_N "(cached) $ECHO_C" >&6
  2723. else
  2724. cat >conftest.$ac_ext <<_ACEOF
  2725. /* confdefs.h. */
  2726. _ACEOF
  2727. cat confdefs.h >>conftest.$ac_ext
  2728. cat >>conftest.$ac_ext <<_ACEOF
  2729. /* end confdefs.h. */
  2730. int
  2731. main ()
  2732. {
  2733. #ifndef __GNUC__
  2734. choke me
  2735. #endif
  2736. ;
  2737. return 0;
  2738. }
  2739. _ACEOF
  2740. rm -f conftest.$ac_objext
  2741. if { (ac_try="$ac_compile"
  2742. case "(($ac_try" in
  2743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2744. *) ac_try_echo=$ac_try;;
  2745. esac
  2746. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2747. (eval "$ac_compile") 2>conftest.er1
  2748. ac_status=$?
  2749. grep -v '^ *+' conftest.er1 >conftest.err
  2750. rm -f conftest.er1
  2751. cat conftest.err >&5
  2752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2753. (exit $ac_status); } && {
  2754. test -z "$ac_cxx_werror_flag" ||
  2755. test ! -s conftest.err
  2756. } && test -s conftest.$ac_objext; then
  2757. ac_compiler_gnu=yes
  2758. else
  2759. echo "$as_me: failed program was:" >&5
  2760. sed 's/^/| /' conftest.$ac_ext >&5
  2761. ac_compiler_gnu=no
  2762. fi
  2763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2764. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2765. fi
  2766. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2767. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2768. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2769. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2770. ac_save_CXXFLAGS=$CXXFLAGS
  2771. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2772. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2773. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2774. echo $ECHO_N "(cached) $ECHO_C" >&6
  2775. else
  2776. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2777. ac_cxx_werror_flag=yes
  2778. ac_cv_prog_cxx_g=no
  2779. CXXFLAGS="-g"
  2780. cat >conftest.$ac_ext <<_ACEOF
  2781. /* confdefs.h. */
  2782. _ACEOF
  2783. cat confdefs.h >>conftest.$ac_ext
  2784. cat >>conftest.$ac_ext <<_ACEOF
  2785. /* end confdefs.h. */
  2786. int
  2787. main ()
  2788. {
  2789. ;
  2790. return 0;
  2791. }
  2792. _ACEOF
  2793. rm -f conftest.$ac_objext
  2794. if { (ac_try="$ac_compile"
  2795. case "(($ac_try" in
  2796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2797. *) ac_try_echo=$ac_try;;
  2798. esac
  2799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2800. (eval "$ac_compile") 2>conftest.er1
  2801. ac_status=$?
  2802. grep -v '^ *+' conftest.er1 >conftest.err
  2803. rm -f conftest.er1
  2804. cat conftest.err >&5
  2805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2806. (exit $ac_status); } && {
  2807. test -z "$ac_cxx_werror_flag" ||
  2808. test ! -s conftest.err
  2809. } && test -s conftest.$ac_objext; then
  2810. ac_cv_prog_cxx_g=yes
  2811. else
  2812. echo "$as_me: failed program was:" >&5
  2813. sed 's/^/| /' conftest.$ac_ext >&5
  2814. CXXFLAGS=""
  2815. cat >conftest.$ac_ext <<_ACEOF
  2816. /* confdefs.h. */
  2817. _ACEOF
  2818. cat confdefs.h >>conftest.$ac_ext
  2819. cat >>conftest.$ac_ext <<_ACEOF
  2820. /* end confdefs.h. */
  2821. int
  2822. main ()
  2823. {
  2824. ;
  2825. return 0;
  2826. }
  2827. _ACEOF
  2828. rm -f conftest.$ac_objext
  2829. if { (ac_try="$ac_compile"
  2830. case "(($ac_try" in
  2831. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2832. *) ac_try_echo=$ac_try;;
  2833. esac
  2834. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2835. (eval "$ac_compile") 2>conftest.er1
  2836. ac_status=$?
  2837. grep -v '^ *+' conftest.er1 >conftest.err
  2838. rm -f conftest.er1
  2839. cat conftest.err >&5
  2840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2841. (exit $ac_status); } && {
  2842. test -z "$ac_cxx_werror_flag" ||
  2843. test ! -s conftest.err
  2844. } && test -s conftest.$ac_objext; then
  2845. :
  2846. else
  2847. echo "$as_me: failed program was:" >&5
  2848. sed 's/^/| /' conftest.$ac_ext >&5
  2849. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2850. CXXFLAGS="-g"
  2851. cat >conftest.$ac_ext <<_ACEOF
  2852. /* confdefs.h. */
  2853. _ACEOF
  2854. cat confdefs.h >>conftest.$ac_ext
  2855. cat >>conftest.$ac_ext <<_ACEOF
  2856. /* end confdefs.h. */
  2857. int
  2858. main ()
  2859. {
  2860. ;
  2861. return 0;
  2862. }
  2863. _ACEOF
  2864. rm -f conftest.$ac_objext
  2865. if { (ac_try="$ac_compile"
  2866. case "(($ac_try" in
  2867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2868. *) ac_try_echo=$ac_try;;
  2869. esac
  2870. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2871. (eval "$ac_compile") 2>conftest.er1
  2872. ac_status=$?
  2873. grep -v '^ *+' conftest.er1 >conftest.err
  2874. rm -f conftest.er1
  2875. cat conftest.err >&5
  2876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2877. (exit $ac_status); } && {
  2878. test -z "$ac_cxx_werror_flag" ||
  2879. test ! -s conftest.err
  2880. } && test -s conftest.$ac_objext; then
  2881. ac_cv_prog_cxx_g=yes
  2882. else
  2883. echo "$as_me: failed program was:" >&5
  2884. sed 's/^/| /' conftest.$ac_ext >&5
  2885. fi
  2886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2887. fi
  2888. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2889. fi
  2890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2891. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2892. fi
  2893. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2894. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2895. if test "$ac_test_CXXFLAGS" = set; then
  2896. CXXFLAGS=$ac_save_CXXFLAGS
  2897. elif test $ac_cv_prog_cxx_g = yes; then
  2898. if test "$GXX" = yes; then
  2899. CXXFLAGS="-g -O2"
  2900. else
  2901. CXXFLAGS="-g"
  2902. fi
  2903. else
  2904. if test "$GXX" = yes; then
  2905. CXXFLAGS="-O2"
  2906. else
  2907. CXXFLAGS=
  2908. fi
  2909. fi
  2910. ac_ext=c
  2911. ac_cpp='$CPP $CPPFLAGS'
  2912. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2913. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2914. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2915. DEPDIR="${am__leading_dot}deps"
  2916. ac_config_commands="$ac_config_commands depfiles"
  2917. am_make=${MAKE-make}
  2918. cat > confinc << 'END'
  2919. am__doit:
  2920. @echo done
  2921. .PHONY: am__doit
  2922. END
  2923. # If we don't find an include directive, just comment out the code.
  2924. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2925. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2926. am__include="#"
  2927. am__quote=
  2928. _am_result=none
  2929. # First try GNU make style include.
  2930. echo "include confinc" > confmf
  2931. # We grep out `Entering directory' and `Leaving directory'
  2932. # messages which can occur if `w' ends up in MAKEFLAGS.
  2933. # In particular we don't look at `^make:' because GNU make might
  2934. # be invoked under some other name (usually "gmake"), in which
  2935. # case it prints its new name instead of `make'.
  2936. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2937. am__include=include
  2938. am__quote=
  2939. _am_result=GNU
  2940. fi
  2941. # Now try BSD make style include.
  2942. if test "$am__include" = "#"; then
  2943. echo '.include "confinc"' > confmf
  2944. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2945. am__include=.include
  2946. am__quote="\""
  2947. _am_result=BSD
  2948. fi
  2949. fi
  2950. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2951. echo "${ECHO_T}$_am_result" >&6; }
  2952. rm -f confinc confmf
  2953. # Check whether --enable-dependency-tracking was given.
  2954. if test "${enable_dependency_tracking+set}" = set; then
  2955. enableval=$enable_dependency_tracking;
  2956. fi
  2957. if test "x$enable_dependency_tracking" != xno; then
  2958. am_depcomp="$ac_aux_dir/depcomp"
  2959. AMDEPBACKSLASH='\'
  2960. fi
  2961. if test "x$enable_dependency_tracking" != xno; then
  2962. AMDEP_TRUE=
  2963. AMDEP_FALSE='#'
  2964. else
  2965. AMDEP_TRUE='#'
  2966. AMDEP_FALSE=
  2967. fi
  2968. depcc="$CXX" am_compiler_list=
  2969. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2970. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2971. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2972. echo $ECHO_N "(cached) $ECHO_C" >&6
  2973. else
  2974. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2975. # We make a subdir and do the tests there. Otherwise we can end up
  2976. # making bogus files that we don't know about and never remove. For
  2977. # instance it was reported that on HP-UX the gcc test will end up
  2978. # making a dummy file named `D' -- because `-MD' means `put the output
  2979. # in D'.
  2980. mkdir conftest.dir
  2981. # Copy depcomp to subdir because otherwise we won't find it if we're
  2982. # using a relative directory.
  2983. cp "$am_depcomp" conftest.dir
  2984. cd conftest.dir
  2985. # We will build objects and dependencies in a subdirectory because
  2986. # it helps to detect inapplicable dependency modes. For instance
  2987. # both Tru64's cc and ICC support -MD to output dependencies as a
  2988. # side effect of compilation, but ICC will put the dependencies in
  2989. # the current directory while Tru64 will put them in the object
  2990. # directory.
  2991. mkdir sub
  2992. am_cv_CXX_dependencies_compiler_type=none
  2993. if test "$am_compiler_list" = ""; then
  2994. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2995. fi
  2996. for depmode in $am_compiler_list; do
  2997. # Setup a source with many dependencies, because some compilers
  2998. # like to wrap large dependency lists on column 80 (with \), and
  2999. # we should not choose a depcomp mode which is confused by this.
  3000. #
  3001. # We need to recreate these files for each test, as the compiler may
  3002. # overwrite some of them when testing with obscure command lines.
  3003. # This happens at least with the AIX C compiler.
  3004. : > sub/conftest.c
  3005. for i in 1 2 3 4 5 6; do
  3006. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3007. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3008. # Solaris 8's {/usr,}/bin/sh.
  3009. touch sub/conftst$i.h
  3010. done
  3011. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3012. case $depmode in
  3013. nosideeffect)
  3014. # after this tag, mechanisms are not by side-effect, so they'll
  3015. # only be used when explicitly requested
  3016. if test "x$enable_dependency_tracking" = xyes; then
  3017. continue
  3018. else
  3019. break
  3020. fi
  3021. ;;
  3022. none) break ;;
  3023. esac
  3024. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3025. # mode. It turns out that the SunPro C++ compiler does not properly
  3026. # handle `-M -o', and we need to detect this.
  3027. if depmode=$depmode \
  3028. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3029. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3030. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3031. >/dev/null 2>conftest.err &&
  3032. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3033. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3034. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3035. # icc doesn't choke on unknown options, it will just issue warnings
  3036. # or remarks (even with -Werror). So we grep stderr for any message
  3037. # that says an option was ignored or not supported.
  3038. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3039. # icc: Command line warning: ignoring option '-M'; no argument required
  3040. # The diagnosis changed in icc 8.0:
  3041. # icc: Command line remark: option '-MP' not supported
  3042. if (grep 'ignoring option' conftest.err ||
  3043. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3044. am_cv_CXX_dependencies_compiler_type=$depmode
  3045. break
  3046. fi
  3047. fi
  3048. done
  3049. cd ..
  3050. rm -rf conftest.dir
  3051. else
  3052. am_cv_CXX_dependencies_compiler_type=none
  3053. fi
  3054. fi
  3055. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3056. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3057. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3058. if
  3059. test "x$enable_dependency_tracking" != xno \
  3060. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3061. am__fastdepCXX_TRUE=
  3062. am__fastdepCXX_FALSE='#'
  3063. else
  3064. am__fastdepCXX_TRUE='#'
  3065. am__fastdepCXX_FALSE=
  3066. fi
  3067. ac_ext=c
  3068. ac_cpp='$CPP $CPPFLAGS'
  3069. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3070. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3071. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3072. if test -n "$ac_tool_prefix"; then
  3073. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3074. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3075. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3076. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3077. if test "${ac_cv_prog_CC+set}" = set; then
  3078. echo $ECHO_N "(cached) $ECHO_C" >&6
  3079. else
  3080. if test -n "$CC"; then
  3081. ac_cv_prog_CC="$CC" # Let the user override the test.
  3082. else
  3083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3084. for as_dir in $PATH
  3085. do
  3086. IFS=$as_save_IFS
  3087. test -z "$as_dir" && as_dir=.
  3088. for ac_exec_ext in '' $ac_executable_extensions; do
  3089. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3090. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3091. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3092. break 2
  3093. fi
  3094. done
  3095. done
  3096. IFS=$as_save_IFS
  3097. fi
  3098. fi
  3099. CC=$ac_cv_prog_CC
  3100. if test -n "$CC"; then
  3101. { echo "$as_me:$LINENO: result: $CC" >&5
  3102. echo "${ECHO_T}$CC" >&6; }
  3103. else
  3104. { echo "$as_me:$LINENO: result: no" >&5
  3105. echo "${ECHO_T}no" >&6; }
  3106. fi
  3107. fi
  3108. if test -z "$ac_cv_prog_CC"; then
  3109. ac_ct_CC=$CC
  3110. # Extract the first word of "gcc", so it can be a program name with args.
  3111. set dummy gcc; ac_word=$2
  3112. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3113. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3114. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3115. echo $ECHO_N "(cached) $ECHO_C" >&6
  3116. else
  3117. if test -n "$ac_ct_CC"; then
  3118. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3119. else
  3120. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3121. for as_dir in $PATH
  3122. do
  3123. IFS=$as_save_IFS
  3124. test -z "$as_dir" && as_dir=.
  3125. for ac_exec_ext in '' $ac_executable_extensions; do
  3126. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3127. ac_cv_prog_ac_ct_CC="gcc"
  3128. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3129. break 2
  3130. fi
  3131. done
  3132. done
  3133. IFS=$as_save_IFS
  3134. fi
  3135. fi
  3136. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3137. if test -n "$ac_ct_CC"; then
  3138. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3139. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3140. else
  3141. { echo "$as_me:$LINENO: result: no" >&5
  3142. echo "${ECHO_T}no" >&6; }
  3143. fi
  3144. if test "x$ac_ct_CC" = x; then
  3145. CC=""
  3146. else
  3147. case $cross_compiling:$ac_tool_warned in
  3148. yes:)
  3149. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3150. whose name does not start with the host triplet. If you think this
  3151. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3152. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3153. whose name does not start with the host triplet. If you think this
  3154. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3155. ac_tool_warned=yes ;;
  3156. esac
  3157. CC=$ac_ct_CC
  3158. fi
  3159. else
  3160. CC="$ac_cv_prog_CC"
  3161. fi
  3162. if test -z "$CC"; then
  3163. if test -n "$ac_tool_prefix"; then
  3164. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3165. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3166. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3167. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3168. if test "${ac_cv_prog_CC+set}" = set; then
  3169. echo $ECHO_N "(cached) $ECHO_C" >&6
  3170. else
  3171. if test -n "$CC"; then
  3172. ac_cv_prog_CC="$CC" # Let the user override the test.
  3173. else
  3174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3175. for as_dir in $PATH
  3176. do
  3177. IFS=$as_save_IFS
  3178. test -z "$as_dir" && as_dir=.
  3179. for ac_exec_ext in '' $ac_executable_extensions; do
  3180. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3181. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3182. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3183. break 2
  3184. fi
  3185. done
  3186. done
  3187. IFS=$as_save_IFS
  3188. fi
  3189. fi
  3190. CC=$ac_cv_prog_CC
  3191. if test -n "$CC"; then
  3192. { echo "$as_me:$LINENO: result: $CC" >&5
  3193. echo "${ECHO_T}$CC" >&6; }
  3194. else
  3195. { echo "$as_me:$LINENO: result: no" >&5
  3196. echo "${ECHO_T}no" >&6; }
  3197. fi
  3198. fi
  3199. fi
  3200. if test -z "$CC"; then
  3201. # Extract the first word of "cc", so it can be a program name with args.
  3202. set dummy cc; ac_word=$2
  3203. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3204. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3205. if test "${ac_cv_prog_CC+set}" = set; then
  3206. echo $ECHO_N "(cached) $ECHO_C" >&6
  3207. else
  3208. if test -n "$CC"; then
  3209. ac_cv_prog_CC="$CC" # Let the user override the test.
  3210. else
  3211. ac_prog_rejected=no
  3212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3213. for as_dir in $PATH
  3214. do
  3215. IFS=$as_save_IFS
  3216. test -z "$as_dir" && as_dir=.
  3217. for ac_exec_ext in '' $ac_executable_extensions; do
  3218. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3219. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3220. ac_prog_rejected=yes
  3221. continue
  3222. fi
  3223. ac_cv_prog_CC="cc"
  3224. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3225. break 2
  3226. fi
  3227. done
  3228. done
  3229. IFS=$as_save_IFS
  3230. if test $ac_prog_rejected = yes; then
  3231. # We found a bogon in the path, so make sure we never use it.
  3232. set dummy $ac_cv_prog_CC
  3233. shift
  3234. if test $# != 0; then
  3235. # We chose a different compiler from the bogus one.
  3236. # However, it has the same basename, so the bogon will be chosen
  3237. # first if we set CC to just the basename; use the full file name.
  3238. shift
  3239. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3240. fi
  3241. fi
  3242. fi
  3243. fi
  3244. CC=$ac_cv_prog_CC
  3245. if test -n "$CC"; then
  3246. { echo "$as_me:$LINENO: result: $CC" >&5
  3247. echo "${ECHO_T}$CC" >&6; }
  3248. else
  3249. { echo "$as_me:$LINENO: result: no" >&5
  3250. echo "${ECHO_T}no" >&6; }
  3251. fi
  3252. fi
  3253. if test -z "$CC"; then
  3254. if test -n "$ac_tool_prefix"; then
  3255. for ac_prog in cl.exe
  3256. do
  3257. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3258. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3259. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3260. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3261. if test "${ac_cv_prog_CC+set}" = set; then
  3262. echo $ECHO_N "(cached) $ECHO_C" >&6
  3263. else
  3264. if test -n "$CC"; then
  3265. ac_cv_prog_CC="$CC" # Let the user override the test.
  3266. else
  3267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3268. for as_dir in $PATH
  3269. do
  3270. IFS=$as_save_IFS
  3271. test -z "$as_dir" && as_dir=.
  3272. for ac_exec_ext in '' $ac_executable_extensions; do
  3273. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3274. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3275. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3276. break 2
  3277. fi
  3278. done
  3279. done
  3280. IFS=$as_save_IFS
  3281. fi
  3282. fi
  3283. CC=$ac_cv_prog_CC
  3284. if test -n "$CC"; then
  3285. { echo "$as_me:$LINENO: result: $CC" >&5
  3286. echo "${ECHO_T}$CC" >&6; }
  3287. else
  3288. { echo "$as_me:$LINENO: result: no" >&5
  3289. echo "${ECHO_T}no" >&6; }
  3290. fi
  3291. test -n "$CC" && break
  3292. done
  3293. fi
  3294. if test -z "$CC"; then
  3295. ac_ct_CC=$CC
  3296. for ac_prog in cl.exe
  3297. do
  3298. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3299. set dummy $ac_prog; ac_word=$2
  3300. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3301. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3302. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3303. echo $ECHO_N "(cached) $ECHO_C" >&6
  3304. else
  3305. if test -n "$ac_ct_CC"; then
  3306. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3307. else
  3308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3309. for as_dir in $PATH
  3310. do
  3311. IFS=$as_save_IFS
  3312. test -z "$as_dir" && as_dir=.
  3313. for ac_exec_ext in '' $ac_executable_extensions; do
  3314. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3315. ac_cv_prog_ac_ct_CC="$ac_prog"
  3316. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3317. break 2
  3318. fi
  3319. done
  3320. done
  3321. IFS=$as_save_IFS
  3322. fi
  3323. fi
  3324. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3325. if test -n "$ac_ct_CC"; then
  3326. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3327. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3328. else
  3329. { echo "$as_me:$LINENO: result: no" >&5
  3330. echo "${ECHO_T}no" >&6; }
  3331. fi
  3332. test -n "$ac_ct_CC" && break
  3333. done
  3334. if test "x$ac_ct_CC" = x; then
  3335. CC=""
  3336. else
  3337. case $cross_compiling:$ac_tool_warned in
  3338. yes:)
  3339. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3340. whose name does not start with the host triplet. If you think this
  3341. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3342. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3343. whose name does not start with the host triplet. If you think this
  3344. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3345. ac_tool_warned=yes ;;
  3346. esac
  3347. CC=$ac_ct_CC
  3348. fi
  3349. fi
  3350. fi
  3351. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3352. See \`config.log' for more details." >&5
  3353. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3354. See \`config.log' for more details." >&2;}
  3355. { (exit 1); exit 1; }; }
  3356. # Provide some information about the compiler.
  3357. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3358. ac_compiler=`set X $ac_compile; echo $2`
  3359. { (ac_try="$ac_compiler --version >&5"
  3360. case "(($ac_try" in
  3361. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3362. *) ac_try_echo=$ac_try;;
  3363. esac
  3364. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3365. (eval "$ac_compiler --version >&5") 2>&5
  3366. ac_status=$?
  3367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3368. (exit $ac_status); }
  3369. { (ac_try="$ac_compiler -v >&5"
  3370. case "(($ac_try" in
  3371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3372. *) ac_try_echo=$ac_try;;
  3373. esac
  3374. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3375. (eval "$ac_compiler -v >&5") 2>&5
  3376. ac_status=$?
  3377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3378. (exit $ac_status); }
  3379. { (ac_try="$ac_compiler -V >&5"
  3380. case "(($ac_try" in
  3381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3382. *) ac_try_echo=$ac_try;;
  3383. esac
  3384. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3385. (eval "$ac_compiler -V >&5") 2>&5
  3386. ac_status=$?
  3387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3388. (exit $ac_status); }
  3389. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3390. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3391. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3392. echo $ECHO_N "(cached) $ECHO_C" >&6
  3393. else
  3394. cat >conftest.$ac_ext <<_ACEOF
  3395. /* confdefs.h. */
  3396. _ACEOF
  3397. cat confdefs.h >>conftest.$ac_ext
  3398. cat >>conftest.$ac_ext <<_ACEOF
  3399. /* end confdefs.h. */
  3400. int
  3401. main ()
  3402. {
  3403. #ifndef __GNUC__
  3404. choke me
  3405. #endif
  3406. ;
  3407. return 0;
  3408. }
  3409. _ACEOF
  3410. rm -f conftest.$ac_objext
  3411. if { (ac_try="$ac_compile"
  3412. case "(($ac_try" in
  3413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3414. *) ac_try_echo=$ac_try;;
  3415. esac
  3416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3417. (eval "$ac_compile") 2>conftest.er1
  3418. ac_status=$?
  3419. grep -v '^ *+' conftest.er1 >conftest.err
  3420. rm -f conftest.er1
  3421. cat conftest.err >&5
  3422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3423. (exit $ac_status); } && {
  3424. test -z "$ac_c_werror_flag" ||
  3425. test ! -s conftest.err
  3426. } && test -s conftest.$ac_objext; then
  3427. ac_compiler_gnu=yes
  3428. else
  3429. echo "$as_me: failed program was:" >&5
  3430. sed 's/^/| /' conftest.$ac_ext >&5
  3431. ac_compiler_gnu=no
  3432. fi
  3433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3434. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3435. fi
  3436. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3437. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3438. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3439. ac_test_CFLAGS=${CFLAGS+set}
  3440. ac_save_CFLAGS=$CFLAGS
  3441. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3442. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3443. if test "${ac_cv_prog_cc_g+set}" = set; then
  3444. echo $ECHO_N "(cached) $ECHO_C" >&6
  3445. else
  3446. ac_save_c_werror_flag=$ac_c_werror_flag
  3447. ac_c_werror_flag=yes
  3448. ac_cv_prog_cc_g=no
  3449. CFLAGS="-g"
  3450. cat >conftest.$ac_ext <<_ACEOF
  3451. /* confdefs.h. */
  3452. _ACEOF
  3453. cat confdefs.h >>conftest.$ac_ext
  3454. cat >>conftest.$ac_ext <<_ACEOF
  3455. /* end confdefs.h. */
  3456. int
  3457. main ()
  3458. {
  3459. ;
  3460. return 0;
  3461. }
  3462. _ACEOF
  3463. rm -f conftest.$ac_objext
  3464. if { (ac_try="$ac_compile"
  3465. case "(($ac_try" in
  3466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3467. *) ac_try_echo=$ac_try;;
  3468. esac
  3469. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3470. (eval "$ac_compile") 2>conftest.er1
  3471. ac_status=$?
  3472. grep -v '^ *+' conftest.er1 >conftest.err
  3473. rm -f conftest.er1
  3474. cat conftest.err >&5
  3475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3476. (exit $ac_status); } && {
  3477. test -z "$ac_c_werror_flag" ||
  3478. test ! -s conftest.err
  3479. } && test -s conftest.$ac_objext; then
  3480. ac_cv_prog_cc_g=yes
  3481. else
  3482. echo "$as_me: failed program was:" >&5
  3483. sed 's/^/| /' conftest.$ac_ext >&5
  3484. CFLAGS=""
  3485. cat >conftest.$ac_ext <<_ACEOF
  3486. /* confdefs.h. */
  3487. _ACEOF
  3488. cat confdefs.h >>conftest.$ac_ext
  3489. cat >>conftest.$ac_ext <<_ACEOF
  3490. /* end confdefs.h. */
  3491. int
  3492. main ()
  3493. {
  3494. ;
  3495. return 0;
  3496. }
  3497. _ACEOF
  3498. rm -f conftest.$ac_objext
  3499. if { (ac_try="$ac_compile"
  3500. case "(($ac_try" in
  3501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3502. *) ac_try_echo=$ac_try;;
  3503. esac
  3504. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3505. (eval "$ac_compile") 2>conftest.er1
  3506. ac_status=$?
  3507. grep -v '^ *+' conftest.er1 >conftest.err
  3508. rm -f conftest.er1
  3509. cat conftest.err >&5
  3510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3511. (exit $ac_status); } && {
  3512. test -z "$ac_c_werror_flag" ||
  3513. test ! -s conftest.err
  3514. } && test -s conftest.$ac_objext; then
  3515. :
  3516. else
  3517. echo "$as_me: failed program was:" >&5
  3518. sed 's/^/| /' conftest.$ac_ext >&5
  3519. ac_c_werror_flag=$ac_save_c_werror_flag
  3520. CFLAGS="-g"
  3521. cat >conftest.$ac_ext <<_ACEOF
  3522. /* confdefs.h. */
  3523. _ACEOF
  3524. cat confdefs.h >>conftest.$ac_ext
  3525. cat >>conftest.$ac_ext <<_ACEOF
  3526. /* end confdefs.h. */
  3527. int
  3528. main ()
  3529. {
  3530. ;
  3531. return 0;
  3532. }
  3533. _ACEOF
  3534. rm -f conftest.$ac_objext
  3535. if { (ac_try="$ac_compile"
  3536. case "(($ac_try" in
  3537. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3538. *) ac_try_echo=$ac_try;;
  3539. esac
  3540. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3541. (eval "$ac_compile") 2>conftest.er1
  3542. ac_status=$?
  3543. grep -v '^ *+' conftest.er1 >conftest.err
  3544. rm -f conftest.er1
  3545. cat conftest.err >&5
  3546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3547. (exit $ac_status); } && {
  3548. test -z "$ac_c_werror_flag" ||
  3549. test ! -s conftest.err
  3550. } && test -s conftest.$ac_objext; then
  3551. ac_cv_prog_cc_g=yes
  3552. else
  3553. echo "$as_me: failed program was:" >&5
  3554. sed 's/^/| /' conftest.$ac_ext >&5
  3555. fi
  3556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3557. fi
  3558. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3559. fi
  3560. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3561. ac_c_werror_flag=$ac_save_c_werror_flag
  3562. fi
  3563. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3564. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3565. if test "$ac_test_CFLAGS" = set; then
  3566. CFLAGS=$ac_save_CFLAGS
  3567. elif test $ac_cv_prog_cc_g = yes; then
  3568. if test "$GCC" = yes; then
  3569. CFLAGS="-g -O2"
  3570. else
  3571. CFLAGS="-g"
  3572. fi
  3573. else
  3574. if test "$GCC" = yes; then
  3575. CFLAGS="-O2"
  3576. else
  3577. CFLAGS=
  3578. fi
  3579. fi
  3580. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3581. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3582. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3583. echo $ECHO_N "(cached) $ECHO_C" >&6
  3584. else
  3585. ac_cv_prog_cc_c89=no
  3586. ac_save_CC=$CC
  3587. cat >conftest.$ac_ext <<_ACEOF
  3588. /* confdefs.h. */
  3589. _ACEOF
  3590. cat confdefs.h >>conftest.$ac_ext
  3591. cat >>conftest.$ac_ext <<_ACEOF
  3592. /* end confdefs.h. */
  3593. #include <stdarg.h>
  3594. #include <stdio.h>
  3595. #include <sys/types.h>
  3596. #include <sys/stat.h>
  3597. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3598. struct buf { int x; };
  3599. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3600. static char *e (p, i)
  3601. char **p;
  3602. int i;
  3603. {
  3604. return p[i];
  3605. }
  3606. static char *f (char * (*g) (char **, int), char **p, ...)
  3607. {
  3608. char *s;
  3609. va_list v;
  3610. va_start (v,p);
  3611. s = g (p, va_arg (v,int));
  3612. va_end (v);
  3613. return s;
  3614. }
  3615. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3616. function prototypes and stuff, but not '\xHH' hex character constants.
  3617. These don't provoke an error unfortunately, instead are silently treated
  3618. as 'x'. The following induces an error, until -std is added to get
  3619. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3620. array size at least. It's necessary to write '\x00'==0 to get something
  3621. that's true only with -std. */
  3622. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3623. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3624. inside strings and character constants. */
  3625. #define FOO(x) 'x'
  3626. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3627. int test (int i, double x);
  3628. struct s1 {int (*f) (int a);};
  3629. struct s2 {int (*f) (double a);};
  3630. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3631. int argc;
  3632. char **argv;
  3633. int
  3634. main ()
  3635. {
  3636. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3637. ;
  3638. return 0;
  3639. }
  3640. _ACEOF
  3641. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3642. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3643. do
  3644. CC="$ac_save_CC $ac_arg"
  3645. rm -f conftest.$ac_objext
  3646. if { (ac_try="$ac_compile"
  3647. case "(($ac_try" in
  3648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3649. *) ac_try_echo=$ac_try;;
  3650. esac
  3651. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3652. (eval "$ac_compile") 2>conftest.er1
  3653. ac_status=$?
  3654. grep -v '^ *+' conftest.er1 >conftest.err
  3655. rm -f conftest.er1
  3656. cat conftest.err >&5
  3657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3658. (exit $ac_status); } && {
  3659. test -z "$ac_c_werror_flag" ||
  3660. test ! -s conftest.err
  3661. } && test -s conftest.$ac_objext; then
  3662. ac_cv_prog_cc_c89=$ac_arg
  3663. else
  3664. echo "$as_me: failed program was:" >&5
  3665. sed 's/^/| /' conftest.$ac_ext >&5
  3666. fi
  3667. rm -f core conftest.err conftest.$ac_objext
  3668. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3669. done
  3670. rm -f conftest.$ac_ext
  3671. CC=$ac_save_CC
  3672. fi
  3673. # AC_CACHE_VAL
  3674. case "x$ac_cv_prog_cc_c89" in
  3675. x)
  3676. { echo "$as_me:$LINENO: result: none needed" >&5
  3677. echo "${ECHO_T}none needed" >&6; } ;;
  3678. xno)
  3679. { echo "$as_me:$LINENO: result: unsupported" >&5
  3680. echo "${ECHO_T}unsupported" >&6; } ;;
  3681. *)
  3682. CC="$CC $ac_cv_prog_cc_c89"
  3683. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3684. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3685. esac
  3686. ac_ext=c
  3687. ac_cpp='$CPP $CPPFLAGS'
  3688. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3689. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3690. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3691. depcc="$CC" am_compiler_list=
  3692. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3693. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3694. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3695. echo $ECHO_N "(cached) $ECHO_C" >&6
  3696. else
  3697. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3698. # We make a subdir and do the tests there. Otherwise we can end up
  3699. # making bogus files that we don't know about and never remove. For
  3700. # instance it was reported that on HP-UX the gcc test will end up
  3701. # making a dummy file named `D' -- because `-MD' means `put the output
  3702. # in D'.
  3703. mkdir conftest.dir
  3704. # Copy depcomp to subdir because otherwise we won't find it if we're
  3705. # using a relative directory.
  3706. cp "$am_depcomp" conftest.dir
  3707. cd conftest.dir
  3708. # We will build objects and dependencies in a subdirectory because
  3709. # it helps to detect inapplicable dependency modes. For instance
  3710. # both Tru64's cc and ICC support -MD to output dependencies as a
  3711. # side effect of compilation, but ICC will put the dependencies in
  3712. # the current directory while Tru64 will put them in the object
  3713. # directory.
  3714. mkdir sub
  3715. am_cv_CC_dependencies_compiler_type=none
  3716. if test "$am_compiler_list" = ""; then
  3717. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3718. fi
  3719. for depmode in $am_compiler_list; do
  3720. # Setup a source with many dependencies, because some compilers
  3721. # like to wrap large dependency lists on column 80 (with \), and
  3722. # we should not choose a depcomp mode which is confused by this.
  3723. #
  3724. # We need to recreate these files for each test, as the compiler may
  3725. # overwrite some of them when testing with obscure command lines.
  3726. # This happens at least with the AIX C compiler.
  3727. : > sub/conftest.c
  3728. for i in 1 2 3 4 5 6; do
  3729. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3730. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3731. # Solaris 8's {/usr,}/bin/sh.
  3732. touch sub/conftst$i.h
  3733. done
  3734. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3735. case $depmode in
  3736. nosideeffect)
  3737. # after this tag, mechanisms are not by side-effect, so they'll
  3738. # only be used when explicitly requested
  3739. if test "x$enable_dependency_tracking" = xyes; then
  3740. continue
  3741. else
  3742. break
  3743. fi
  3744. ;;
  3745. none) break ;;
  3746. esac
  3747. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3748. # mode. It turns out that the SunPro C++ compiler does not properly
  3749. # handle `-M -o', and we need to detect this.
  3750. if depmode=$depmode \
  3751. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3752. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3753. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3754. >/dev/null 2>conftest.err &&
  3755. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3756. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3757. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3758. # icc doesn't choke on unknown options, it will just issue warnings
  3759. # or remarks (even with -Werror). So we grep stderr for any message
  3760. # that says an option was ignored or not supported.
  3761. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3762. # icc: Command line warning: ignoring option '-M'; no argument required
  3763. # The diagnosis changed in icc 8.0:
  3764. # icc: Command line remark: option '-MP' not supported
  3765. if (grep 'ignoring option' conftest.err ||
  3766. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3767. am_cv_CC_dependencies_compiler_type=$depmode
  3768. break
  3769. fi
  3770. fi
  3771. done
  3772. cd ..
  3773. rm -rf conftest.dir
  3774. else
  3775. am_cv_CC_dependencies_compiler_type=none
  3776. fi
  3777. fi
  3778. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3779. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3780. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3781. if
  3782. test "x$enable_dependency_tracking" != xno \
  3783. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3784. am__fastdepCC_TRUE=
  3785. am__fastdepCC_FALSE='#'
  3786. else
  3787. am__fastdepCC_TRUE='#'
  3788. am__fastdepCC_FALSE=
  3789. fi
  3790. # Find a good install program. We prefer a C program (faster),
  3791. # so one script is as good as another. But avoid the broken or
  3792. # incompatible versions:
  3793. # SysV /etc/install, /usr/sbin/install
  3794. # SunOS /usr/etc/install
  3795. # IRIX /sbin/install
  3796. # AIX /bin/install
  3797. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3798. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3799. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3800. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3801. # OS/2's system install, which has a completely different semantic
  3802. # ./install, which can be erroneously created by make from ./install.sh.
  3803. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3804. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3805. if test -z "$INSTALL"; then
  3806. if test "${ac_cv_path_install+set}" = set; then
  3807. echo $ECHO_N "(cached) $ECHO_C" >&6
  3808. else
  3809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3810. for as_dir in $PATH
  3811. do
  3812. IFS=$as_save_IFS
  3813. test -z "$as_dir" && as_dir=.
  3814. # Account for people who put trailing slashes in PATH elements.
  3815. case $as_dir/ in
  3816. ./ | .// | /cC/* | \
  3817. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3818. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3819. /usr/ucb/* ) ;;
  3820. *)
  3821. # OSF1 and SCO ODT 3.0 have their own names for install.
  3822. # Don't use installbsd from OSF since it installs stuff as root
  3823. # by default.
  3824. for ac_prog in ginstall scoinst install; do
  3825. for ac_exec_ext in '' $ac_executable_extensions; do
  3826. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3827. if test $ac_prog = install &&
  3828. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3829. # AIX install. It has an incompatible calling convention.
  3830. :
  3831. elif test $ac_prog = install &&
  3832. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3833. # program-specific install script used by HP pwplus--don't use.
  3834. :
  3835. else
  3836. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3837. break 3
  3838. fi
  3839. fi
  3840. done
  3841. done
  3842. ;;
  3843. esac
  3844. done
  3845. IFS=$as_save_IFS
  3846. fi
  3847. if test "${ac_cv_path_install+set}" = set; then
  3848. INSTALL=$ac_cv_path_install
  3849. else
  3850. # As a last resort, use the slow shell script. Don't cache a
  3851. # value for INSTALL within a source directory, because that will
  3852. # break other packages using the cache if that directory is
  3853. # removed, or if the value is a relative name.
  3854. INSTALL=$ac_install_sh
  3855. fi
  3856. fi
  3857. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3858. echo "${ECHO_T}$INSTALL" >&6; }
  3859. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3860. # It thinks the first close brace ends the variable substitution.
  3861. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3862. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3863. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3864. if test -n "$ac_tool_prefix"; then
  3865. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3866. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3867. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3868. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3869. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3870. echo $ECHO_N "(cached) $ECHO_C" >&6
  3871. else
  3872. if test -n "$RANLIB"; then
  3873. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3874. else
  3875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3876. for as_dir in $PATH
  3877. do
  3878. IFS=$as_save_IFS
  3879. test -z "$as_dir" && as_dir=.
  3880. for ac_exec_ext in '' $ac_executable_extensions; do
  3881. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3882. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3883. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3884. break 2
  3885. fi
  3886. done
  3887. done
  3888. IFS=$as_save_IFS
  3889. fi
  3890. fi
  3891. RANLIB=$ac_cv_prog_RANLIB
  3892. if test -n "$RANLIB"; then
  3893. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3894. echo "${ECHO_T}$RANLIB" >&6; }
  3895. else
  3896. { echo "$as_me:$LINENO: result: no" >&5
  3897. echo "${ECHO_T}no" >&6; }
  3898. fi
  3899. fi
  3900. if test -z "$ac_cv_prog_RANLIB"; then
  3901. ac_ct_RANLIB=$RANLIB
  3902. # Extract the first word of "ranlib", so it can be a program name with args.
  3903. set dummy ranlib; ac_word=$2
  3904. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3905. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3906. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3907. echo $ECHO_N "(cached) $ECHO_C" >&6
  3908. else
  3909. if test -n "$ac_ct_RANLIB"; then
  3910. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3911. else
  3912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3913. for as_dir in $PATH
  3914. do
  3915. IFS=$as_save_IFS
  3916. test -z "$as_dir" && as_dir=.
  3917. for ac_exec_ext in '' $ac_executable_extensions; do
  3918. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3919. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3920. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3921. break 2
  3922. fi
  3923. done
  3924. done
  3925. IFS=$as_save_IFS
  3926. fi
  3927. fi
  3928. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3929. if test -n "$ac_ct_RANLIB"; then
  3930. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3931. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3932. else
  3933. { echo "$as_me:$LINENO: result: no" >&5
  3934. echo "${ECHO_T}no" >&6; }
  3935. fi
  3936. if test "x$ac_ct_RANLIB" = x; then
  3937. RANLIB=":"
  3938. else
  3939. case $cross_compiling:$ac_tool_warned in
  3940. yes:)
  3941. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3942. whose name does not start with the host triplet. If you think this
  3943. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3944. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3945. whose name does not start with the host triplet. If you think this
  3946. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3947. ac_tool_warned=yes ;;
  3948. esac
  3949. RANLIB=$ac_ct_RANLIB
  3950. fi
  3951. else
  3952. RANLIB="$ac_cv_prog_RANLIB"
  3953. fi
  3954. for ac_prog in 'bison -y' byacc
  3955. do
  3956. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3957. set dummy $ac_prog; ac_word=$2
  3958. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3959. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3960. if test "${ac_cv_prog_YACC+set}" = set; then
  3961. echo $ECHO_N "(cached) $ECHO_C" >&6
  3962. else
  3963. if test -n "$YACC"; then
  3964. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3965. else
  3966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3967. for as_dir in $PATH
  3968. do
  3969. IFS=$as_save_IFS
  3970. test -z "$as_dir" && as_dir=.
  3971. for ac_exec_ext in '' $ac_executable_extensions; do
  3972. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3973. ac_cv_prog_YACC="$ac_prog"
  3974. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3975. break 2
  3976. fi
  3977. done
  3978. done
  3979. IFS=$as_save_IFS
  3980. fi
  3981. fi
  3982. YACC=$ac_cv_prog_YACC
  3983. if test -n "$YACC"; then
  3984. { echo "$as_me:$LINENO: result: $YACC" >&5
  3985. echo "${ECHO_T}$YACC" >&6; }
  3986. else
  3987. { echo "$as_me:$LINENO: result: no" >&5
  3988. echo "${ECHO_T}no" >&6; }
  3989. fi
  3990. test -n "$YACC" && break
  3991. done
  3992. test -n "$YACC" || YACC="yacc"
  3993. # Setting language choice
  3994. ac_ext=cpp
  3995. ac_cpp='$CXXCPP $CPPFLAGS'
  3996. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3997. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3998. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3999. # Enable system extensions
  4000. cat >>confdefs.h <<\_ACEOF
  4001. #define _GNU_SOURCE 1
  4002. _ACEOF
  4003. ac_ext=cpp
  4004. ac_cpp='$CXXCPP $CPPFLAGS'
  4005. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4006. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4007. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4008. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4009. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  4010. if test -z "$CXXCPP"; then
  4011. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4012. echo $ECHO_N "(cached) $ECHO_C" >&6
  4013. else
  4014. # Double quotes because CXXCPP needs to be expanded
  4015. for CXXCPP in "$CXX -E" "/lib/cpp"
  4016. do
  4017. ac_preproc_ok=false
  4018. for ac_cxx_preproc_warn_flag in '' yes
  4019. do
  4020. # Use a header file that comes with gcc, so configuring glibc
  4021. # with a fresh cross-compiler works.
  4022. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4023. # <limits.h> exists even on freestanding compilers.
  4024. # On the NeXT, cc -E runs the code through the compiler's parser,
  4025. # not just through cpp. "Syntax error" is here to catch this case.
  4026. cat >conftest.$ac_ext <<_ACEOF
  4027. /* confdefs.h. */
  4028. _ACEOF
  4029. cat confdefs.h >>conftest.$ac_ext
  4030. cat >>conftest.$ac_ext <<_ACEOF
  4031. /* end confdefs.h. */
  4032. #ifdef __STDC__
  4033. # include <limits.h>
  4034. #else
  4035. # include <assert.h>
  4036. #endif
  4037. Syntax error
  4038. _ACEOF
  4039. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4040. case "(($ac_try" in
  4041. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4042. *) ac_try_echo=$ac_try;;
  4043. esac
  4044. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4045. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4046. ac_status=$?
  4047. grep -v '^ *+' conftest.er1 >conftest.err
  4048. rm -f conftest.er1
  4049. cat conftest.err >&5
  4050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4051. (exit $ac_status); } >/dev/null && {
  4052. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4053. test ! -s conftest.err
  4054. }; then
  4055. :
  4056. else
  4057. echo "$as_me: failed program was:" >&5
  4058. sed 's/^/| /' conftest.$ac_ext >&5
  4059. # Broken: fails on valid input.
  4060. continue
  4061. fi
  4062. rm -f conftest.err conftest.$ac_ext
  4063. # OK, works on sane cases. Now check whether nonexistent headers
  4064. # can be detected and how.
  4065. cat >conftest.$ac_ext <<_ACEOF
  4066. /* confdefs.h. */
  4067. _ACEOF
  4068. cat confdefs.h >>conftest.$ac_ext
  4069. cat >>conftest.$ac_ext <<_ACEOF
  4070. /* end confdefs.h. */
  4071. #include <ac_nonexistent.h>
  4072. _ACEOF
  4073. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4074. case "(($ac_try" in
  4075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4076. *) ac_try_echo=$ac_try;;
  4077. esac
  4078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4079. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4080. ac_status=$?
  4081. grep -v '^ *+' conftest.er1 >conftest.err
  4082. rm -f conftest.er1
  4083. cat conftest.err >&5
  4084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4085. (exit $ac_status); } >/dev/null && {
  4086. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4087. test ! -s conftest.err
  4088. }; then
  4089. # Broken: success on invalid input.
  4090. continue
  4091. else
  4092. echo "$as_me: failed program was:" >&5
  4093. sed 's/^/| /' conftest.$ac_ext >&5
  4094. # Passes both tests.
  4095. ac_preproc_ok=:
  4096. break
  4097. fi
  4098. rm -f conftest.err conftest.$ac_ext
  4099. done
  4100. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4101. rm -f conftest.err conftest.$ac_ext
  4102. if $ac_preproc_ok; then
  4103. break
  4104. fi
  4105. done
  4106. ac_cv_prog_CXXCPP=$CXXCPP
  4107. fi
  4108. CXXCPP=$ac_cv_prog_CXXCPP
  4109. else
  4110. ac_cv_prog_CXXCPP=$CXXCPP
  4111. fi
  4112. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4113. echo "${ECHO_T}$CXXCPP" >&6; }
  4114. ac_preproc_ok=false
  4115. for ac_cxx_preproc_warn_flag in '' yes
  4116. do
  4117. # Use a header file that comes with gcc, so configuring glibc
  4118. # with a fresh cross-compiler works.
  4119. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4120. # <limits.h> exists even on freestanding compilers.
  4121. # On the NeXT, cc -E runs the code through the compiler's parser,
  4122. # not just through cpp. "Syntax error" is here to catch this case.
  4123. cat >conftest.$ac_ext <<_ACEOF
  4124. /* confdefs.h. */
  4125. _ACEOF
  4126. cat confdefs.h >>conftest.$ac_ext
  4127. cat >>conftest.$ac_ext <<_ACEOF
  4128. /* end confdefs.h. */
  4129. #ifdef __STDC__
  4130. # include <limits.h>
  4131. #else
  4132. # include <assert.h>
  4133. #endif
  4134. Syntax error
  4135. _ACEOF
  4136. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4137. case "(($ac_try" in
  4138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4139. *) ac_try_echo=$ac_try;;
  4140. esac
  4141. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4142. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4143. ac_status=$?
  4144. grep -v '^ *+' conftest.er1 >conftest.err
  4145. rm -f conftest.er1
  4146. cat conftest.err >&5
  4147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4148. (exit $ac_status); } >/dev/null && {
  4149. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4150. test ! -s conftest.err
  4151. }; then
  4152. :
  4153. else
  4154. echo "$as_me: failed program was:" >&5
  4155. sed 's/^/| /' conftest.$ac_ext >&5
  4156. # Broken: fails on valid input.
  4157. continue
  4158. fi
  4159. rm -f conftest.err conftest.$ac_ext
  4160. # OK, works on sane cases. Now check whether nonexistent headers
  4161. # can be detected and how.
  4162. cat >conftest.$ac_ext <<_ACEOF
  4163. /* confdefs.h. */
  4164. _ACEOF
  4165. cat confdefs.h >>conftest.$ac_ext
  4166. cat >>conftest.$ac_ext <<_ACEOF
  4167. /* end confdefs.h. */
  4168. #include <ac_nonexistent.h>
  4169. _ACEOF
  4170. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4171. case "(($ac_try" in
  4172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4173. *) ac_try_echo=$ac_try;;
  4174. esac
  4175. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4176. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4177. ac_status=$?
  4178. grep -v '^ *+' conftest.er1 >conftest.err
  4179. rm -f conftest.er1
  4180. cat conftest.err >&5
  4181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4182. (exit $ac_status); } >/dev/null && {
  4183. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4184. test ! -s conftest.err
  4185. }; then
  4186. # Broken: success on invalid input.
  4187. continue
  4188. else
  4189. echo "$as_me: failed program was:" >&5
  4190. sed 's/^/| /' conftest.$ac_ext >&5
  4191. # Passes both tests.
  4192. ac_preproc_ok=:
  4193. break
  4194. fi
  4195. rm -f conftest.err conftest.$ac_ext
  4196. done
  4197. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4198. rm -f conftest.err conftest.$ac_ext
  4199. if $ac_preproc_ok; then
  4200. :
  4201. else
  4202. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4203. See \`config.log' for more details." >&5
  4204. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4205. See \`config.log' for more details." >&2;}
  4206. { (exit 1); exit 1; }; }
  4207. fi
  4208. ac_ext=cpp
  4209. ac_cpp='$CXXCPP $CPPFLAGS'
  4210. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4211. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4212. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4213. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4214. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  4215. if test "${ac_cv_path_GREP+set}" = set; then
  4216. echo $ECHO_N "(cached) $ECHO_C" >&6
  4217. else
  4218. # Extract the first word of "grep ggrep" to use in msg output
  4219. if test -z "$GREP"; then
  4220. set dummy grep ggrep; ac_prog_name=$2
  4221. if test "${ac_cv_path_GREP+set}" = set; then
  4222. echo $ECHO_N "(cached) $ECHO_C" >&6
  4223. else
  4224. ac_path_GREP_found=false
  4225. # Loop through the user's path and test for each of PROGNAME-LIST
  4226. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4227. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4228. do
  4229. IFS=$as_save_IFS
  4230. test -z "$as_dir" && as_dir=.
  4231. for ac_prog in grep ggrep; do
  4232. for ac_exec_ext in '' $ac_executable_extensions; do
  4233. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4234. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4235. # Check for GNU ac_path_GREP and select it if it is found.
  4236. # Check for GNU $ac_path_GREP
  4237. case `"$ac_path_GREP" --version 2>&1` in
  4238. *GNU*)
  4239. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4240. *)
  4241. ac_count=0
  4242. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4243. while :
  4244. do
  4245. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4246. mv "conftest.tmp" "conftest.in"
  4247. cp "conftest.in" "conftest.nl"
  4248. echo 'GREP' >> "conftest.nl"
  4249. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4250. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4251. ac_count=`expr $ac_count + 1`
  4252. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4253. # Best one so far, save it but keep looking for a better one
  4254. ac_cv_path_GREP="$ac_path_GREP"
  4255. ac_path_GREP_max=$ac_count
  4256. fi
  4257. # 10*(2^10) chars as input seems more than enough
  4258. test $ac_count -gt 10 && break
  4259. done
  4260. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4261. esac
  4262. $ac_path_GREP_found && break 3
  4263. done
  4264. done
  4265. done
  4266. IFS=$as_save_IFS
  4267. fi
  4268. GREP="$ac_cv_path_GREP"
  4269. if test -z "$GREP"; then
  4270. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4271. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4272. { (exit 1); exit 1; }; }
  4273. fi
  4274. else
  4275. ac_cv_path_GREP=$GREP
  4276. fi
  4277. fi
  4278. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4279. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  4280. GREP="$ac_cv_path_GREP"
  4281. { echo "$as_me:$LINENO: checking for egrep" >&5
  4282. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  4283. if test "${ac_cv_path_EGREP+set}" = set; then
  4284. echo $ECHO_N "(cached) $ECHO_C" >&6
  4285. else
  4286. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4287. then ac_cv_path_EGREP="$GREP -E"
  4288. else
  4289. # Extract the first word of "egrep" to use in msg output
  4290. if test -z "$EGREP"; then
  4291. set dummy egrep; ac_prog_name=$2
  4292. if test "${ac_cv_path_EGREP+set}" = set; then
  4293. echo $ECHO_N "(cached) $ECHO_C" >&6
  4294. else
  4295. ac_path_EGREP_found=false
  4296. # Loop through the user's path and test for each of PROGNAME-LIST
  4297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4298. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4299. do
  4300. IFS=$as_save_IFS
  4301. test -z "$as_dir" && as_dir=.
  4302. for ac_prog in egrep; do
  4303. for ac_exec_ext in '' $ac_executable_extensions; do
  4304. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4305. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4306. # Check for GNU ac_path_EGREP and select it if it is found.
  4307. # Check for GNU $ac_path_EGREP
  4308. case `"$ac_path_EGREP" --version 2>&1` in
  4309. *GNU*)
  4310. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4311. *)
  4312. ac_count=0
  4313. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  4314. while :
  4315. do
  4316. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4317. mv "conftest.tmp" "conftest.in"
  4318. cp "conftest.in" "conftest.nl"
  4319. echo 'EGREP' >> "conftest.nl"
  4320. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4321. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4322. ac_count=`expr $ac_count + 1`
  4323. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4324. # Best one so far, save it but keep looking for a better one
  4325. ac_cv_path_EGREP="$ac_path_EGREP"
  4326. ac_path_EGREP_max=$ac_count
  4327. fi
  4328. # 10*(2^10) chars as input seems more than enough
  4329. test $ac_count -gt 10 && break
  4330. done
  4331. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4332. esac
  4333. $ac_path_EGREP_found && break 3
  4334. done
  4335. done
  4336. done
  4337. IFS=$as_save_IFS
  4338. fi
  4339. EGREP="$ac_cv_path_EGREP"
  4340. if test -z "$EGREP"; then
  4341. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4342. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4343. { (exit 1); exit 1; }; }
  4344. fi
  4345. else
  4346. ac_cv_path_EGREP=$EGREP
  4347. fi
  4348. fi
  4349. fi
  4350. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4351. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  4352. EGREP="$ac_cv_path_EGREP"
  4353. { echo "$as_me:$LINENO: checking for AIX" >&5
  4354. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  4355. cat >conftest.$ac_ext <<_ACEOF
  4356. /* confdefs.h. */
  4357. _ACEOF
  4358. cat confdefs.h >>conftest.$ac_ext
  4359. cat >>conftest.$ac_ext <<_ACEOF
  4360. /* end confdefs.h. */
  4361. #ifdef _AIX
  4362. yes
  4363. #endif
  4364. _ACEOF
  4365. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4366. $EGREP "yes" >/dev/null 2>&1; then
  4367. { echo "$as_me:$LINENO: result: yes" >&5
  4368. echo "${ECHO_T}yes" >&6; }
  4369. cat >>confdefs.h <<\_ACEOF
  4370. #define _ALL_SOURCE 1
  4371. _ACEOF
  4372. else
  4373. { echo "$as_me:$LINENO: result: no" >&5
  4374. echo "${ECHO_T}no" >&6; }
  4375. fi
  4376. rm -f conftest*
  4377. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4378. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  4379. if test "${ac_cv_header_stdc+set}" = set; then
  4380. echo $ECHO_N "(cached) $ECHO_C" >&6
  4381. else
  4382. cat >conftest.$ac_ext <<_ACEOF
  4383. /* confdefs.h. */
  4384. _ACEOF
  4385. cat confdefs.h >>conftest.$ac_ext
  4386. cat >>conftest.$ac_ext <<_ACEOF
  4387. /* end confdefs.h. */
  4388. #include <stdlib.h>
  4389. #include <stdarg.h>
  4390. #include <string.h>
  4391. #include <float.h>
  4392. int
  4393. main ()
  4394. {
  4395. ;
  4396. return 0;
  4397. }
  4398. _ACEOF
  4399. rm -f conftest.$ac_objext
  4400. if { (ac_try="$ac_compile"
  4401. case "(($ac_try" in
  4402. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4403. *) ac_try_echo=$ac_try;;
  4404. esac
  4405. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4406. (eval "$ac_compile") 2>conftest.er1
  4407. ac_status=$?
  4408. grep -v '^ *+' conftest.er1 >conftest.err
  4409. rm -f conftest.er1
  4410. cat conftest.err >&5
  4411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4412. (exit $ac_status); } && {
  4413. test -z "$ac_cxx_werror_flag" ||
  4414. test ! -s conftest.err
  4415. } && test -s conftest.$ac_objext; then
  4416. ac_cv_header_stdc=yes
  4417. else
  4418. echo "$as_me: failed program was:" >&5
  4419. sed 's/^/| /' conftest.$ac_ext >&5
  4420. ac_cv_header_stdc=no
  4421. fi
  4422. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4423. if test $ac_cv_header_stdc = yes; then
  4424. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4425. cat >conftest.$ac_ext <<_ACEOF
  4426. /* confdefs.h. */
  4427. _ACEOF
  4428. cat confdefs.h >>conftest.$ac_ext
  4429. cat >>conftest.$ac_ext <<_ACEOF
  4430. /* end confdefs.h. */
  4431. #include <string.h>
  4432. _ACEOF
  4433. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4434. $EGREP "memchr" >/dev/null 2>&1; then
  4435. :
  4436. else
  4437. ac_cv_header_stdc=no
  4438. fi
  4439. rm -f conftest*
  4440. fi
  4441. if test $ac_cv_header_stdc = yes; then
  4442. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4443. cat >conftest.$ac_ext <<_ACEOF
  4444. /* confdefs.h. */
  4445. _ACEOF
  4446. cat confdefs.h >>conftest.$ac_ext
  4447. cat >>conftest.$ac_ext <<_ACEOF
  4448. /* end confdefs.h. */
  4449. #include <stdlib.h>
  4450. _ACEOF
  4451. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4452. $EGREP "free" >/dev/null 2>&1; then
  4453. :
  4454. else
  4455. ac_cv_header_stdc=no
  4456. fi
  4457. rm -f conftest*
  4458. fi
  4459. if test $ac_cv_header_stdc = yes; then
  4460. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4461. if test "$cross_compiling" = yes; then
  4462. :
  4463. else
  4464. cat >conftest.$ac_ext <<_ACEOF
  4465. /* confdefs.h. */
  4466. _ACEOF
  4467. cat confdefs.h >>conftest.$ac_ext
  4468. cat >>conftest.$ac_ext <<_ACEOF
  4469. /* end confdefs.h. */
  4470. #include <ctype.h>
  4471. #include <stdlib.h>
  4472. #if ((' ' & 0x0FF) == 0x020)
  4473. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4474. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4475. #else
  4476. # define ISLOWER(c) \
  4477. (('a' <= (c) && (c) <= 'i') \
  4478. || ('j' <= (c) && (c) <= 'r') \
  4479. || ('s' <= (c) && (c) <= 'z'))
  4480. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4481. #endif
  4482. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4483. int
  4484. main ()
  4485. {
  4486. int i;
  4487. for (i = 0; i < 256; i++)
  4488. if (XOR (islower (i), ISLOWER (i))
  4489. || toupper (i) != TOUPPER (i))
  4490. return 2;
  4491. return 0;
  4492. }
  4493. _ACEOF
  4494. rm -f conftest$ac_exeext
  4495. if { (ac_try="$ac_link"
  4496. case "(($ac_try" in
  4497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4498. *) ac_try_echo=$ac_try;;
  4499. esac
  4500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4501. (eval "$ac_link") 2>&5
  4502. ac_status=$?
  4503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4504. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4505. { (case "(($ac_try" in
  4506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4507. *) ac_try_echo=$ac_try;;
  4508. esac
  4509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4510. (eval "$ac_try") 2>&5
  4511. ac_status=$?
  4512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4513. (exit $ac_status); }; }; then
  4514. :
  4515. else
  4516. echo "$as_me: program exited with status $ac_status" >&5
  4517. echo "$as_me: failed program was:" >&5
  4518. sed 's/^/| /' conftest.$ac_ext >&5
  4519. ( exit $ac_status )
  4520. ac_cv_header_stdc=no
  4521. fi
  4522. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4523. fi
  4524. fi
  4525. fi
  4526. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4527. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  4528. if test $ac_cv_header_stdc = yes; then
  4529. cat >>confdefs.h <<\_ACEOF
  4530. #define STDC_HEADERS 1
  4531. _ACEOF
  4532. fi
  4533. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4534. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4535. inttypes.h stdint.h unistd.h
  4536. do
  4537. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4538. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4539. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4540. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4541. echo $ECHO_N "(cached) $ECHO_C" >&6
  4542. else
  4543. cat >conftest.$ac_ext <<_ACEOF
  4544. /* confdefs.h. */
  4545. _ACEOF
  4546. cat confdefs.h >>conftest.$ac_ext
  4547. cat >>conftest.$ac_ext <<_ACEOF
  4548. /* end confdefs.h. */
  4549. $ac_includes_default
  4550. #include <$ac_header>
  4551. _ACEOF
  4552. rm -f conftest.$ac_objext
  4553. if { (ac_try="$ac_compile"
  4554. case "(($ac_try" in
  4555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4556. *) ac_try_echo=$ac_try;;
  4557. esac
  4558. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4559. (eval "$ac_compile") 2>conftest.er1
  4560. ac_status=$?
  4561. grep -v '^ *+' conftest.er1 >conftest.err
  4562. rm -f conftest.er1
  4563. cat conftest.err >&5
  4564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4565. (exit $ac_status); } && {
  4566. test -z "$ac_cxx_werror_flag" ||
  4567. test ! -s conftest.err
  4568. } && test -s conftest.$ac_objext; then
  4569. eval "$as_ac_Header=yes"
  4570. else
  4571. echo "$as_me: failed program was:" >&5
  4572. sed 's/^/| /' conftest.$ac_ext >&5
  4573. eval "$as_ac_Header=no"
  4574. fi
  4575. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4576. fi
  4577. ac_res=`eval echo '${'$as_ac_Header'}'`
  4578. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4579. echo "${ECHO_T}$ac_res" >&6; }
  4580. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4581. cat >>confdefs.h <<_ACEOF
  4582. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4583. _ACEOF
  4584. fi
  4585. done
  4586. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4587. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4588. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4589. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4590. echo $ECHO_N "(cached) $ECHO_C" >&6
  4591. fi
  4592. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4593. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4594. else
  4595. # Is the header compilable?
  4596. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4597. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  4598. cat >conftest.$ac_ext <<_ACEOF
  4599. /* confdefs.h. */
  4600. _ACEOF
  4601. cat confdefs.h >>conftest.$ac_ext
  4602. cat >>conftest.$ac_ext <<_ACEOF
  4603. /* end confdefs.h. */
  4604. $ac_includes_default
  4605. #include <minix/config.h>
  4606. _ACEOF
  4607. rm -f conftest.$ac_objext
  4608. if { (ac_try="$ac_compile"
  4609. case "(($ac_try" in
  4610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4611. *) ac_try_echo=$ac_try;;
  4612. esac
  4613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4614. (eval "$ac_compile") 2>conftest.er1
  4615. ac_status=$?
  4616. grep -v '^ *+' conftest.er1 >conftest.err
  4617. rm -f conftest.er1
  4618. cat conftest.err >&5
  4619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4620. (exit $ac_status); } && {
  4621. test -z "$ac_cxx_werror_flag" ||
  4622. test ! -s conftest.err
  4623. } && test -s conftest.$ac_objext; then
  4624. ac_header_compiler=yes
  4625. else
  4626. echo "$as_me: failed program was:" >&5
  4627. sed 's/^/| /' conftest.$ac_ext >&5
  4628. ac_header_compiler=no
  4629. fi
  4630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4631. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4632. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4633. # Is the header present?
  4634. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4635. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  4636. cat >conftest.$ac_ext <<_ACEOF
  4637. /* confdefs.h. */
  4638. _ACEOF
  4639. cat confdefs.h >>conftest.$ac_ext
  4640. cat >>conftest.$ac_ext <<_ACEOF
  4641. /* end confdefs.h. */
  4642. #include <minix/config.h>
  4643. _ACEOF
  4644. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4645. case "(($ac_try" in
  4646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4647. *) ac_try_echo=$ac_try;;
  4648. esac
  4649. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4650. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4651. ac_status=$?
  4652. grep -v '^ *+' conftest.er1 >conftest.err
  4653. rm -f conftest.er1
  4654. cat conftest.err >&5
  4655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4656. (exit $ac_status); } >/dev/null && {
  4657. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4658. test ! -s conftest.err
  4659. }; then
  4660. ac_header_preproc=yes
  4661. else
  4662. echo "$as_me: failed program was:" >&5
  4663. sed 's/^/| /' conftest.$ac_ext >&5
  4664. ac_header_preproc=no
  4665. fi
  4666. rm -f conftest.err conftest.$ac_ext
  4667. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4668. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4669. # So? What about this header?
  4670. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4671. yes:no: )
  4672. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4673. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4674. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4675. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4676. ac_header_preproc=yes
  4677. ;;
  4678. no:yes:* )
  4679. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4680. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4681. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4682. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4683. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4684. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4685. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4686. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4687. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4688. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4689. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4690. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4691. ( cat <<\_ASBOX
  4692. ## ----------------------------------------------- ##
  4693. ## Report this to t-tujikawa@users.sourceforge.net ##
  4694. ## ----------------------------------------------- ##
  4695. _ASBOX
  4696. ) | sed "s/^/$as_me: WARNING: /" >&2
  4697. ;;
  4698. esac
  4699. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4700. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  4701. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4702. echo $ECHO_N "(cached) $ECHO_C" >&6
  4703. else
  4704. ac_cv_header_minix_config_h=$ac_header_preproc
  4705. fi
  4706. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4707. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  4708. fi
  4709. if test $ac_cv_header_minix_config_h = yes; then
  4710. MINIX=yes
  4711. else
  4712. MINIX=
  4713. fi
  4714. if test "$MINIX" = yes; then
  4715. cat >>confdefs.h <<\_ACEOF
  4716. #define _POSIX_SOURCE 1
  4717. _ACEOF
  4718. cat >>confdefs.h <<\_ACEOF
  4719. #define _POSIX_1_SOURCE 2
  4720. _ACEOF
  4721. cat >>confdefs.h <<\_ACEOF
  4722. #define _MINIX 1
  4723. _ACEOF
  4724. fi
  4725. { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4726. echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
  4727. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4728. echo $ECHO_N "(cached) $ECHO_C" >&6
  4729. else
  4730. cat >conftest.$ac_ext <<_ACEOF
  4731. /* confdefs.h. */
  4732. _ACEOF
  4733. cat confdefs.h >>conftest.$ac_ext
  4734. cat >>conftest.$ac_ext <<_ACEOF
  4735. /* end confdefs.h. */
  4736. # define __EXTENSIONS__ 1
  4737. $ac_includes_default
  4738. int
  4739. main ()
  4740. {
  4741. ;
  4742. return 0;
  4743. }
  4744. _ACEOF
  4745. rm -f conftest.$ac_objext
  4746. if { (ac_try="$ac_compile"
  4747. case "(($ac_try" in
  4748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4749. *) ac_try_echo=$ac_try;;
  4750. esac
  4751. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4752. (eval "$ac_compile") 2>conftest.er1
  4753. ac_status=$?
  4754. grep -v '^ *+' conftest.er1 >conftest.err
  4755. rm -f conftest.er1
  4756. cat conftest.err >&5
  4757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4758. (exit $ac_status); } && {
  4759. test -z "$ac_cxx_werror_flag" ||
  4760. test ! -s conftest.err
  4761. } && test -s conftest.$ac_objext; then
  4762. ac_cv_safe_to_define___extensions__=yes
  4763. else
  4764. echo "$as_me: failed program was:" >&5
  4765. sed 's/^/| /' conftest.$ac_ext >&5
  4766. ac_cv_safe_to_define___extensions__=no
  4767. fi
  4768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4769. fi
  4770. { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  4771. echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
  4772. test $ac_cv_safe_to_define___extensions__ = yes &&
  4773. cat >>confdefs.h <<\_ACEOF
  4774. #define __EXTENSIONS__ 1
  4775. _ACEOF
  4776. cat >>confdefs.h <<\_ACEOF
  4777. #define _POSIX_PTHREAD_SEMANTICS 1
  4778. _ACEOF
  4779. cat >>confdefs.h <<\_ACEOF
  4780. #define _TANDEM_SOURCE 1
  4781. _ACEOF
  4782. # Checks for libraries.
  4783. if test "x$with_libxml2" = "xyes"; then
  4784. # Check whether --with-xml-prefix was given.
  4785. if test "${with_xml_prefix+set}" = set; then
  4786. withval=$with_xml_prefix; xml_config_prefix="$withval"
  4787. else
  4788. xml_config_prefix=""
  4789. fi
  4790. # Check whether --with-xml-exec-prefix was given.
  4791. if test "${with_xml_exec_prefix+set}" = set; then
  4792. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  4793. else
  4794. xml_config_exec_prefix=""
  4795. fi
  4796. # Check whether --enable-xmltest was given.
  4797. if test "${enable_xmltest+set}" = set; then
  4798. enableval=$enable_xmltest;
  4799. else
  4800. enable_xmltest=yes
  4801. fi
  4802. if test x$xml_config_exec_prefix != x ; then
  4803. xml_config_args="$xml_config_args"
  4804. if test x${XML2_CONFIG+set} != xset ; then
  4805. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  4806. fi
  4807. fi
  4808. if test x$xml_config_prefix != x ; then
  4809. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  4810. if test x${XML2_CONFIG+set} != xset ; then
  4811. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  4812. fi
  4813. fi
  4814. # Extract the first word of "xml2-config", so it can be a program name with args.
  4815. set dummy xml2-config; ac_word=$2
  4816. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4817. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4818. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  4819. echo $ECHO_N "(cached) $ECHO_C" >&6
  4820. else
  4821. case $XML2_CONFIG in
  4822. [\\/]* | ?:[\\/]*)
  4823. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  4824. ;;
  4825. *)
  4826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4827. for as_dir in $PATH
  4828. do
  4829. IFS=$as_save_IFS
  4830. test -z "$as_dir" && as_dir=.
  4831. for ac_exec_ext in '' $ac_executable_extensions; do
  4832. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4833. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4834. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4835. break 2
  4836. fi
  4837. done
  4838. done
  4839. IFS=$as_save_IFS
  4840. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4841. ;;
  4842. esac
  4843. fi
  4844. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4845. if test -n "$XML2_CONFIG"; then
  4846. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4847. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4848. else
  4849. { echo "$as_me:$LINENO: result: no" >&5
  4850. echo "${ECHO_T}no" >&6; }
  4851. fi
  4852. min_xml_version=2.6.24
  4853. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4854. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4855. no_xml=""
  4856. if test "$XML2_CONFIG" = "no" ; then
  4857. no_xml=yes
  4858. else
  4859. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4860. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4861. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4862. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4863. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4864. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4865. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4866. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4867. if test "x$enable_xmltest" = "xyes" ; then
  4868. ac_save_CPPFLAGS="$CPPFLAGS"
  4869. ac_save_LIBS="$LIBS"
  4870. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4871. LIBS="$XML_LIBS $LIBS"
  4872. rm -f conf.xmltest
  4873. if test "$cross_compiling" = yes; then
  4874. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4875. else
  4876. cat >conftest.$ac_ext <<_ACEOF
  4877. /* confdefs.h. */
  4878. _ACEOF
  4879. cat confdefs.h >>conftest.$ac_ext
  4880. cat >>conftest.$ac_ext <<_ACEOF
  4881. /* end confdefs.h. */
  4882. #include <stdlib.h>
  4883. #include <stdio.h>
  4884. #include <string.h>
  4885. #include <libxml/xmlversion.h>
  4886. int
  4887. main()
  4888. {
  4889. int xml_major_version, xml_minor_version, xml_micro_version;
  4890. int major, minor, micro;
  4891. char *tmp_version;
  4892. system("touch conf.xmltest");
  4893. /* Capture xml2-config output via autoconf/configure variables */
  4894. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4895. tmp_version = (char *)strdup("$min_xml_version");
  4896. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4897. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4898. exit(1);
  4899. }
  4900. free(tmp_version);
  4901. /* Capture the version information from the header files */
  4902. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  4903. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  4904. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  4905. exit(1);
  4906. }
  4907. free(tmp_version);
  4908. /* Compare xml2-config output to the libxml headers */
  4909. if ((xml_major_version != $xml_config_major_version) ||
  4910. (xml_minor_version != $xml_config_minor_version) ||
  4911. (xml_micro_version != $xml_config_micro_version))
  4912. {
  4913. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  4914. xml_major_version, xml_minor_version, xml_micro_version);
  4915. printf("*** xml2-config (version %d.%d.%d)\n",
  4916. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  4917. return 1;
  4918. }
  4919. /* Compare the headers to the library to make sure we match */
  4920. /* Less than ideal -- doesn't provide us with return value feedback,
  4921. * only exits if there's a serious mismatch between header and library.
  4922. */
  4923. LIBXML_TEST_VERSION;
  4924. /* Test that the library is greater than our minimum version */
  4925. if ((xml_major_version > major) ||
  4926. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  4927. ((xml_major_version == major) && (xml_minor_version == minor) &&
  4928. (xml_micro_version >= micro)))
  4929. {
  4930. return 0;
  4931. }
  4932. else
  4933. {
  4934. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  4935. xml_major_version, xml_minor_version, xml_micro_version);
  4936. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  4937. major, minor, micro);
  4938. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  4939. printf("***\n");
  4940. printf("*** If you have already installed a sufficiently new version, this error\n");
  4941. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  4942. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4943. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  4944. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  4945. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4946. printf("*** so that the correct libraries are found at run-time))\n");
  4947. }
  4948. return 1;
  4949. }
  4950. _ACEOF
  4951. rm -f conftest$ac_exeext
  4952. if { (ac_try="$ac_link"
  4953. case "(($ac_try" in
  4954. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4955. *) ac_try_echo=$ac_try;;
  4956. esac
  4957. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4958. (eval "$ac_link") 2>&5
  4959. ac_status=$?
  4960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4961. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4962. { (case "(($ac_try" in
  4963. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4964. *) ac_try_echo=$ac_try;;
  4965. esac
  4966. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4967. (eval "$ac_try") 2>&5
  4968. ac_status=$?
  4969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4970. (exit $ac_status); }; }; then
  4971. :
  4972. else
  4973. echo "$as_me: program exited with status $ac_status" >&5
  4974. echo "$as_me: failed program was:" >&5
  4975. sed 's/^/| /' conftest.$ac_ext >&5
  4976. ( exit $ac_status )
  4977. no_xml=yes
  4978. fi
  4979. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4980. fi
  4981. CPPFLAGS="$ac_save_CPPFLAGS"
  4982. LIBS="$ac_save_LIBS"
  4983. fi
  4984. fi
  4985. if test "x$no_xml" = x ; then
  4986. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  4987. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  4988. have_libxml2=yes
  4989. else
  4990. { echo "$as_me:$LINENO: result: no" >&5
  4991. echo "${ECHO_T}no" >&6; }
  4992. if test "$XML2_CONFIG" = "no" ; then
  4993. echo "*** The xml2-config script installed by LIBXML could not be found"
  4994. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  4995. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  4996. echo "*** full path to xml2-config."
  4997. else
  4998. if test -f conf.xmltest ; then
  4999. :
  5000. else
  5001. echo "*** Could not run libxml test program, checking why..."
  5002. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5003. LIBS="$LIBS $XML_LIBS"
  5004. cat >conftest.$ac_ext <<_ACEOF
  5005. /* confdefs.h. */
  5006. _ACEOF
  5007. cat confdefs.h >>conftest.$ac_ext
  5008. cat >>conftest.$ac_ext <<_ACEOF
  5009. /* end confdefs.h. */
  5010. #include <libxml/xmlversion.h>
  5011. #include <stdio.h>
  5012. int
  5013. main ()
  5014. {
  5015. LIBXML_TEST_VERSION; return 0;
  5016. ;
  5017. return 0;
  5018. }
  5019. _ACEOF
  5020. rm -f conftest.$ac_objext conftest$ac_exeext
  5021. if { (ac_try="$ac_link"
  5022. case "(($ac_try" in
  5023. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5024. *) ac_try_echo=$ac_try;;
  5025. esac
  5026. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5027. (eval "$ac_link") 2>conftest.er1
  5028. ac_status=$?
  5029. grep -v '^ *+' conftest.er1 >conftest.err
  5030. rm -f conftest.er1
  5031. cat conftest.err >&5
  5032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5033. (exit $ac_status); } && {
  5034. test -z "$ac_cxx_werror_flag" ||
  5035. test ! -s conftest.err
  5036. } && test -s conftest$ac_exeext &&
  5037. $as_test_x conftest$ac_exeext; then
  5038. echo "*** The test program compiled, but did not run. This usually means"
  5039. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5040. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5041. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5042. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5043. echo "*** is required on your system"
  5044. echo "***"
  5045. echo "*** If you have an old version installed, it is best to remove it, although"
  5046. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5047. else
  5048. echo "$as_me: failed program was:" >&5
  5049. sed 's/^/| /' conftest.$ac_ext >&5
  5050. echo "*** The test program failed to compile or link. See the file config.log for the"
  5051. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5052. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5053. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5054. fi
  5055. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5056. conftest$ac_exeext conftest.$ac_ext
  5057. CPPFLAGS="$ac_save_CPPFLAGS"
  5058. LIBS="$ac_save_LIBS"
  5059. fi
  5060. fi
  5061. XML_CPPFLAGS=""
  5062. XML_LIBS=""
  5063. :
  5064. fi
  5065. rm -f conf.xmltest
  5066. if test "x$have_libxml2" = "xyes"; then
  5067. cat >>confdefs.h <<\_ACEOF
  5068. #define HAVE_LIBXML2 1
  5069. _ACEOF
  5070. fi
  5071. fi
  5072. if test "x$with_gnutls" = "xyes"; then
  5073. # Check whether --with-libgnutls-prefix was given.
  5074. if test "${with_libgnutls_prefix+set}" = set; then
  5075. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5076. else
  5077. libgnutls_config_prefix=""
  5078. fi
  5079. if test x$libgnutls_config_prefix != x ; then
  5080. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5081. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5082. fi
  5083. fi
  5084. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5085. set dummy libgnutls-config; ac_word=$2
  5086. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5087. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5088. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5089. echo $ECHO_N "(cached) $ECHO_C" >&6
  5090. else
  5091. case $LIBGNUTLS_CONFIG in
  5092. [\\/]* | ?:[\\/]*)
  5093. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5094. ;;
  5095. *)
  5096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5097. for as_dir in $PATH
  5098. do
  5099. IFS=$as_save_IFS
  5100. test -z "$as_dir" && as_dir=.
  5101. for ac_exec_ext in '' $ac_executable_extensions; do
  5102. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5103. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5104. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5105. break 2
  5106. fi
  5107. done
  5108. done
  5109. IFS=$as_save_IFS
  5110. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5111. ;;
  5112. esac
  5113. fi
  5114. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5115. if test -n "$LIBGNUTLS_CONFIG"; then
  5116. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5117. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  5118. else
  5119. { echo "$as_me:$LINENO: result: no" >&5
  5120. echo "${ECHO_T}no" >&6; }
  5121. fi
  5122. min_libgnutls_version=1.2.9
  5123. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5124. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  5125. no_libgnutls=""
  5126. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5127. no_libgnutls=yes
  5128. else
  5129. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5130. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5131. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5132. ac_save_CFLAGS="$CFLAGS"
  5133. ac_save_LIBS="$LIBS"
  5134. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5135. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5136. rm -f conf.libgnutlstest
  5137. if test "$cross_compiling" = yes; then
  5138. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5139. else
  5140. cat >conftest.$ac_ext <<_ACEOF
  5141. /* confdefs.h. */
  5142. _ACEOF
  5143. cat confdefs.h >>conftest.$ac_ext
  5144. cat >>conftest.$ac_ext <<_ACEOF
  5145. /* end confdefs.h. */
  5146. #include <stdio.h>
  5147. #include <stdlib.h>
  5148. #include <string.h>
  5149. #include <gnutls/gnutls.h>
  5150. int
  5151. main ()
  5152. {
  5153. system ("touch conf.libgnutlstest");
  5154. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5155. {
  5156. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5157. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5158. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5159. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5160. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5161. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5162. printf("*** required on your system.\n");
  5163. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5164. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5165. printf("*** before re-running configure\n");
  5166. }
  5167. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5168. {
  5169. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5170. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5171. }
  5172. else
  5173. {
  5174. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5175. {
  5176. return 0;
  5177. }
  5178. else
  5179. {
  5180. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5181. gnutls_check_version(NULL) );
  5182. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5183. "$min_libgnutls_version" );
  5184. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5185. printf("*** \n");
  5186. printf("*** If you have already installed a sufficiently new version, this error\n");
  5187. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5188. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5189. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5190. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5191. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5192. printf("*** so that the correct libraries are found at run-time))\n");
  5193. }
  5194. }
  5195. return 1;
  5196. }
  5197. _ACEOF
  5198. rm -f conftest$ac_exeext
  5199. if { (ac_try="$ac_link"
  5200. case "(($ac_try" in
  5201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5202. *) ac_try_echo=$ac_try;;
  5203. esac
  5204. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5205. (eval "$ac_link") 2>&5
  5206. ac_status=$?
  5207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5208. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5209. { (case "(($ac_try" in
  5210. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5211. *) ac_try_echo=$ac_try;;
  5212. esac
  5213. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5214. (eval "$ac_try") 2>&5
  5215. ac_status=$?
  5216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5217. (exit $ac_status); }; }; then
  5218. :
  5219. else
  5220. echo "$as_me: program exited with status $ac_status" >&5
  5221. echo "$as_me: failed program was:" >&5
  5222. sed 's/^/| /' conftest.$ac_ext >&5
  5223. ( exit $ac_status )
  5224. no_libgnutls=yes
  5225. fi
  5226. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5227. fi
  5228. CFLAGS="$ac_save_CFLAGS"
  5229. LIBS="$ac_save_LIBS"
  5230. fi
  5231. if test "x$no_libgnutls" = x ; then
  5232. { echo "$as_me:$LINENO: result: yes" >&5
  5233. echo "${ECHO_T}yes" >&6; }
  5234. have_libgnutls=yes
  5235. else
  5236. if test -f conf.libgnutlstest ; then
  5237. :
  5238. else
  5239. { echo "$as_me:$LINENO: result: no" >&5
  5240. echo "${ECHO_T}no" >&6; }
  5241. fi
  5242. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5243. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5244. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5245. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5246. echo "*** full path to libgnutls-config."
  5247. else
  5248. if test -f conf.libgnutlstest ; then
  5249. :
  5250. else
  5251. echo "*** Could not run libgnutls test program, checking why..."
  5252. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5253. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5254. cat >conftest.$ac_ext <<_ACEOF
  5255. /* confdefs.h. */
  5256. _ACEOF
  5257. cat confdefs.h >>conftest.$ac_ext
  5258. cat >>conftest.$ac_ext <<_ACEOF
  5259. /* end confdefs.h. */
  5260. #include <stdio.h>
  5261. #include <stdlib.h>
  5262. #include <string.h>
  5263. #include <gnutls/gnutls.h>
  5264. int
  5265. main ()
  5266. {
  5267. return !!gnutls_check_version(NULL);
  5268. ;
  5269. return 0;
  5270. }
  5271. _ACEOF
  5272. rm -f conftest.$ac_objext conftest$ac_exeext
  5273. if { (ac_try="$ac_link"
  5274. case "(($ac_try" in
  5275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5276. *) ac_try_echo=$ac_try;;
  5277. esac
  5278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5279. (eval "$ac_link") 2>conftest.er1
  5280. ac_status=$?
  5281. grep -v '^ *+' conftest.er1 >conftest.err
  5282. rm -f conftest.er1
  5283. cat conftest.err >&5
  5284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5285. (exit $ac_status); } && {
  5286. test -z "$ac_cxx_werror_flag" ||
  5287. test ! -s conftest.err
  5288. } && test -s conftest$ac_exeext &&
  5289. $as_test_x conftest$ac_exeext; then
  5290. echo "*** The test program compiled, but did not run. This usually means"
  5291. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5292. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5293. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5294. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5295. echo "*** is required on your system"
  5296. echo "***"
  5297. echo "*** If you have an old version installed, it is best to remove it, although"
  5298. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5299. echo "***"
  5300. else
  5301. echo "$as_me: failed program was:" >&5
  5302. sed 's/^/| /' conftest.$ac_ext >&5
  5303. echo "*** The test program failed to compile or link. See the file config.log for the"
  5304. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5305. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5306. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5307. fi
  5308. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5309. conftest$ac_exeext conftest.$ac_ext
  5310. CFLAGS="$ac_save_CFLAGS"
  5311. LIBS="$ac_save_LIBS"
  5312. fi
  5313. fi
  5314. LIBGNUTLS_CFLAGS=""
  5315. LIBGNUTLS_LIBS=""
  5316. :
  5317. fi
  5318. rm -f conf.libgnutlstest
  5319. if test "x$have_libgnutls" = "xyes"; then
  5320. cat >>confdefs.h <<\_ACEOF
  5321. #define HAVE_LIBGNUTLS 1
  5322. _ACEOF
  5323. fi
  5324. fi
  5325. if test "x$have_libgnutls" = "xyes"; then
  5326. # Check whether --with-libgcrypt-prefix was given.
  5327. if test "${with_libgcrypt_prefix+set}" = set; then
  5328. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5329. else
  5330. libgcrypt_config_prefix=""
  5331. fi
  5332. if test x$libgcrypt_config_prefix != x ; then
  5333. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5334. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5335. fi
  5336. fi
  5337. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5338. set dummy libgcrypt-config; ac_word=$2
  5339. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  5340. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  5341. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5342. echo $ECHO_N "(cached) $ECHO_C" >&6
  5343. else
  5344. case $LIBGCRYPT_CONFIG in
  5345. [\\/]* | ?:[\\/]*)
  5346. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5347. ;;
  5348. *)
  5349. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5350. for as_dir in $PATH
  5351. do
  5352. IFS=$as_save_IFS
  5353. test -z "$as_dir" && as_dir=.
  5354. for ac_exec_ext in '' $ac_executable_extensions; do
  5355. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5356. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5357. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5358. break 2
  5359. fi
  5360. done
  5361. done
  5362. IFS=$as_save_IFS
  5363. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5364. ;;
  5365. esac
  5366. fi
  5367. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5368. if test -n "$LIBGCRYPT_CONFIG"; then
  5369. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5370. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  5371. else
  5372. { echo "$as_me:$LINENO: result: no" >&5
  5373. echo "${ECHO_T}no" >&6; }
  5374. fi
  5375. tmp=1.2.2
  5376. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5377. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5378. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5379. else
  5380. req_libgcrypt_api=0
  5381. min_libgcrypt_version="$tmp"
  5382. fi
  5383. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5384. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  5385. ok=no
  5386. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5387. req_major=`echo $min_libgcrypt_version | \
  5388. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5389. req_minor=`echo $min_libgcrypt_version | \
  5390. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5391. req_micro=`echo $min_libgcrypt_version | \
  5392. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5393. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5394. major=`echo $libgcrypt_config_version | \
  5395. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5396. minor=`echo $libgcrypt_config_version | \
  5397. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5398. micro=`echo $libgcrypt_config_version | \
  5399. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5400. if test "$major" -gt "$req_major"; then
  5401. ok=yes
  5402. else
  5403. if test "$major" -eq "$req_major"; then
  5404. if test "$minor" -gt "$req_minor"; then
  5405. ok=yes
  5406. else
  5407. if test "$minor" -eq "$req_minor"; then
  5408. if test "$micro" -ge "$req_micro"; then
  5409. ok=yes
  5410. fi
  5411. fi
  5412. fi
  5413. fi
  5414. fi
  5415. fi
  5416. if test $ok = yes; then
  5417. { echo "$as_me:$LINENO: result: yes" >&5
  5418. echo "${ECHO_T}yes" >&6; }
  5419. else
  5420. { echo "$as_me:$LINENO: result: no" >&5
  5421. echo "${ECHO_T}no" >&6; }
  5422. fi
  5423. if test $ok = yes; then
  5424. # If we have a recent libgcrypt, we should also check that the
  5425. # API is compatible
  5426. if test "$req_libgcrypt_api" -gt 0 ; then
  5427. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5428. if test "$tmp" -gt 0 ; then
  5429. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  5430. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  5431. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  5432. { echo "$as_me:$LINENO: result: okay" >&5
  5433. echo "${ECHO_T}okay" >&6; }
  5434. else
  5435. ok=no
  5436. { echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  5437. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6; }
  5438. fi
  5439. fi
  5440. fi
  5441. fi
  5442. if test $ok = yes; then
  5443. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  5444. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  5445. have_libgcrypt=yes
  5446. else
  5447. LIBGCRYPT_CFLAGS=""
  5448. LIBGCRYPT_LIBS=""
  5449. :
  5450. fi
  5451. if test "x$have_libgcrypt" = "xyes"; then
  5452. cat >>confdefs.h <<\_ACEOF
  5453. #define HAVE_LIBGCRYPT 1
  5454. _ACEOF
  5455. fi
  5456. fi
  5457. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  5458. # Check whether --with-openssl-prefix was given.
  5459. if test "${with_openssl_prefix+set}" = set; then
  5460. withval=$with_openssl_prefix; openssl_prefix=$withval
  5461. else
  5462. openssl_prefix=""
  5463. fi
  5464. if test "x$openssl_prefix" = "x"; then
  5465. openssl_prefix="/usr/local"
  5466. fi
  5467. openssl_prefix_lib=$openssl_prefix/lib
  5468. openssl_prefix_include=$openssl_prefix/include
  5469. LIBS_save=$LIBS
  5470. CPPFLAGS_save=$CPPFLAGS
  5471. LIBS="-L$openssl_prefix_lib $LIBS"
  5472. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  5473. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  5474. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  5475. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  5476. echo $ECHO_N "(cached) $ECHO_C" >&6
  5477. else
  5478. ac_check_lib_save_LIBS=$LIBS
  5479. LIBS="-lssl $LIBS"
  5480. cat >conftest.$ac_ext <<_ACEOF
  5481. /* confdefs.h. */
  5482. _ACEOF
  5483. cat confdefs.h >>conftest.$ac_ext
  5484. cat >>conftest.$ac_ext <<_ACEOF
  5485. /* end confdefs.h. */
  5486. /* Override any GCC internal prototype to avoid an error.
  5487. Use char because int might match the return type of a GCC
  5488. builtin and then its argument prototype would still apply. */
  5489. #ifdef __cplusplus
  5490. extern "C"
  5491. #endif
  5492. char SSL_library_init ();
  5493. int
  5494. main ()
  5495. {
  5496. return SSL_library_init ();
  5497. ;
  5498. return 0;
  5499. }
  5500. _ACEOF
  5501. rm -f conftest.$ac_objext conftest$ac_exeext
  5502. if { (ac_try="$ac_link"
  5503. case "(($ac_try" in
  5504. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5505. *) ac_try_echo=$ac_try;;
  5506. esac
  5507. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5508. (eval "$ac_link") 2>conftest.er1
  5509. ac_status=$?
  5510. grep -v '^ *+' conftest.er1 >conftest.err
  5511. rm -f conftest.er1
  5512. cat conftest.err >&5
  5513. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5514. (exit $ac_status); } && {
  5515. test -z "$ac_cxx_werror_flag" ||
  5516. test ! -s conftest.err
  5517. } && test -s conftest$ac_exeext &&
  5518. $as_test_x conftest$ac_exeext; then
  5519. ac_cv_lib_ssl_SSL_library_init=yes
  5520. else
  5521. echo "$as_me: failed program was:" >&5
  5522. sed 's/^/| /' conftest.$ac_ext >&5
  5523. ac_cv_lib_ssl_SSL_library_init=no
  5524. fi
  5525. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5526. conftest$ac_exeext conftest.$ac_ext
  5527. LIBS=$ac_check_lib_save_LIBS
  5528. fi
  5529. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  5530. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  5531. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  5532. have_openssl=yes; LIBS="-lssl $LIBS"
  5533. fi
  5534. if test "x$have_openssl" = "xyes"; then
  5535. have_openssl=no
  5536. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  5537. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  5538. if test "${ac_cv_lib_crypto_main+set}" = set; then
  5539. echo $ECHO_N "(cached) $ECHO_C" >&6
  5540. else
  5541. ac_check_lib_save_LIBS=$LIBS
  5542. LIBS="-lcrypto $LIBS"
  5543. cat >conftest.$ac_ext <<_ACEOF
  5544. /* confdefs.h. */
  5545. _ACEOF
  5546. cat confdefs.h >>conftest.$ac_ext
  5547. cat >>conftest.$ac_ext <<_ACEOF
  5548. /* end confdefs.h. */
  5549. int
  5550. main ()
  5551. {
  5552. return main ();
  5553. ;
  5554. return 0;
  5555. }
  5556. _ACEOF
  5557. rm -f conftest.$ac_objext conftest$ac_exeext
  5558. if { (ac_try="$ac_link"
  5559. case "(($ac_try" in
  5560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5561. *) ac_try_echo=$ac_try;;
  5562. esac
  5563. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5564. (eval "$ac_link") 2>conftest.er1
  5565. ac_status=$?
  5566. grep -v '^ *+' conftest.er1 >conftest.err
  5567. rm -f conftest.er1
  5568. cat conftest.err >&5
  5569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5570. (exit $ac_status); } && {
  5571. test -z "$ac_cxx_werror_flag" ||
  5572. test ! -s conftest.err
  5573. } && test -s conftest$ac_exeext &&
  5574. $as_test_x conftest$ac_exeext; then
  5575. ac_cv_lib_crypto_main=yes
  5576. else
  5577. echo "$as_me: failed program was:" >&5
  5578. sed 's/^/| /' conftest.$ac_ext >&5
  5579. ac_cv_lib_crypto_main=no
  5580. fi
  5581. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5582. conftest$ac_exeext conftest.$ac_ext
  5583. LIBS=$ac_check_lib_save_LIBS
  5584. fi
  5585. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  5586. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  5587. if test $ac_cv_lib_crypto_main = yes; then
  5588. have_openssl=yes; LIBS="-lcrypto $LIBS"
  5589. fi
  5590. if test "x$have_openssl" = "xyes"; then
  5591. cat >>confdefs.h <<\_ACEOF
  5592. #define HAVE_LIBSSL 1
  5593. _ACEOF
  5594. for ac_func in EVP_DigestInit_ex
  5595. do
  5596. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5597. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5598. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5599. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5600. echo $ECHO_N "(cached) $ECHO_C" >&6
  5601. else
  5602. cat >conftest.$ac_ext <<_ACEOF
  5603. /* confdefs.h. */
  5604. _ACEOF
  5605. cat confdefs.h >>conftest.$ac_ext
  5606. cat >>conftest.$ac_ext <<_ACEOF
  5607. /* end confdefs.h. */
  5608. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5609. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5610. #define $ac_func innocuous_$ac_func
  5611. /* System header to define __stub macros and hopefully few prototypes,
  5612. which can conflict with char $ac_func (); below.
  5613. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5614. <limits.h> exists even on freestanding compilers. */
  5615. #ifdef __STDC__
  5616. # include <limits.h>
  5617. #else
  5618. # include <assert.h>
  5619. #endif
  5620. #undef $ac_func
  5621. /* Override any GCC internal prototype to avoid an error.
  5622. Use char because int might match the return type of a GCC
  5623. builtin and then its argument prototype would still apply. */
  5624. #ifdef __cplusplus
  5625. extern "C"
  5626. #endif
  5627. char $ac_func ();
  5628. /* The GNU C library defines this for functions which it implements
  5629. to always fail with ENOSYS. Some functions are actually named
  5630. something starting with __ and the normal name is an alias. */
  5631. #if defined __stub_$ac_func || defined __stub___$ac_func
  5632. choke me
  5633. #endif
  5634. int
  5635. main ()
  5636. {
  5637. return $ac_func ();
  5638. ;
  5639. return 0;
  5640. }
  5641. _ACEOF
  5642. rm -f conftest.$ac_objext conftest$ac_exeext
  5643. if { (ac_try="$ac_link"
  5644. case "(($ac_try" in
  5645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5646. *) ac_try_echo=$ac_try;;
  5647. esac
  5648. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5649. (eval "$ac_link") 2>conftest.er1
  5650. ac_status=$?
  5651. grep -v '^ *+' conftest.er1 >conftest.err
  5652. rm -f conftest.er1
  5653. cat conftest.err >&5
  5654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5655. (exit $ac_status); } && {
  5656. test -z "$ac_cxx_werror_flag" ||
  5657. test ! -s conftest.err
  5658. } && test -s conftest$ac_exeext &&
  5659. $as_test_x conftest$ac_exeext; then
  5660. eval "$as_ac_var=yes"
  5661. else
  5662. echo "$as_me: failed program was:" >&5
  5663. sed 's/^/| /' conftest.$ac_ext >&5
  5664. eval "$as_ac_var=no"
  5665. fi
  5666. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5667. conftest$ac_exeext conftest.$ac_ext
  5668. fi
  5669. ac_res=`eval echo '${'$as_ac_var'}'`
  5670. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5671. echo "${ECHO_T}$ac_res" >&6; }
  5672. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5673. cat >>confdefs.h <<_ACEOF
  5674. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5675. _ACEOF
  5676. have_digestinit_ex=yes
  5677. fi
  5678. done
  5679. if test "x$have_digestinit_ex" = "x"; then
  5680. cat >>confdefs.h <<\_ACEOF
  5681. #define HAVE_OLD_LIBSSL 1
  5682. _ACEOF
  5683. fi
  5684. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  5685. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  5686. for ac_func in EVP_sha256
  5687. do
  5688. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5689. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5690. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5691. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5692. echo $ECHO_N "(cached) $ECHO_C" >&6
  5693. else
  5694. cat >conftest.$ac_ext <<_ACEOF
  5695. /* confdefs.h. */
  5696. _ACEOF
  5697. cat confdefs.h >>conftest.$ac_ext
  5698. cat >>conftest.$ac_ext <<_ACEOF
  5699. /* end confdefs.h. */
  5700. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5701. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5702. #define $ac_func innocuous_$ac_func
  5703. /* System header to define __stub macros and hopefully few prototypes,
  5704. which can conflict with char $ac_func (); below.
  5705. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5706. <limits.h> exists even on freestanding compilers. */
  5707. #ifdef __STDC__
  5708. # include <limits.h>
  5709. #else
  5710. # include <assert.h>
  5711. #endif
  5712. #undef $ac_func
  5713. /* Override any GCC internal prototype to avoid an error.
  5714. Use char because int might match the return type of a GCC
  5715. builtin and then its argument prototype would still apply. */
  5716. #ifdef __cplusplus
  5717. extern "C"
  5718. #endif
  5719. char $ac_func ();
  5720. /* The GNU C library defines this for functions which it implements
  5721. to always fail with ENOSYS. Some functions are actually named
  5722. something starting with __ and the normal name is an alias. */
  5723. #if defined __stub_$ac_func || defined __stub___$ac_func
  5724. choke me
  5725. #endif
  5726. int
  5727. main ()
  5728. {
  5729. return $ac_func ();
  5730. ;
  5731. return 0;
  5732. }
  5733. _ACEOF
  5734. rm -f conftest.$ac_objext conftest$ac_exeext
  5735. if { (ac_try="$ac_link"
  5736. case "(($ac_try" in
  5737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5738. *) ac_try_echo=$ac_try;;
  5739. esac
  5740. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5741. (eval "$ac_link") 2>conftest.er1
  5742. ac_status=$?
  5743. grep -v '^ *+' conftest.er1 >conftest.err
  5744. rm -f conftest.er1
  5745. cat conftest.err >&5
  5746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5747. (exit $ac_status); } && {
  5748. test -z "$ac_cxx_werror_flag" ||
  5749. test ! -s conftest.err
  5750. } && test -s conftest$ac_exeext &&
  5751. $as_test_x conftest$ac_exeext; then
  5752. eval "$as_ac_var=yes"
  5753. else
  5754. echo "$as_me: failed program was:" >&5
  5755. sed 's/^/| /' conftest.$ac_ext >&5
  5756. eval "$as_ac_var=no"
  5757. fi
  5758. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5759. conftest$ac_exeext conftest.$ac_ext
  5760. fi
  5761. ac_res=`eval echo '${'$as_ac_var'}'`
  5762. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5763. echo "${ECHO_T}$ac_res" >&6; }
  5764. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5765. cat >>confdefs.h <<_ACEOF
  5766. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5767. _ACEOF
  5768. fi
  5769. done
  5770. fi
  5771. fi
  5772. LIBS=$LIBS_save
  5773. CPPFLAGS=$CPPFLAGS_save
  5774. fi
  5775. if test "x$with_libcares" = "xyes"; then
  5776. # Check whether --with-libcares-prefix was given.
  5777. if test "${with_libcares_prefix+set}" = set; then
  5778. withval=$with_libcares_prefix; libcares_prefix=$withval
  5779. else
  5780. libcares_prefix=""
  5781. fi
  5782. if test "x$libcares_prefix" = "x"; then
  5783. libcares_prefix="/usr"
  5784. fi
  5785. libcares_prefix_lib=$libcares_prefix/lib
  5786. libcares_prefix_include=$libcares_prefix/include
  5787. LIBS_save=$LIBS
  5788. CPPFLAGS_save=$CPPFLAGS
  5789. LIBS="-L$libcares_prefix_lib $LIBS"
  5790. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  5791. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  5792. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  5793. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  5794. echo $ECHO_N "(cached) $ECHO_C" >&6
  5795. else
  5796. ac_check_lib_save_LIBS=$LIBS
  5797. LIBS="-lcares $LIBS"
  5798. cat >conftest.$ac_ext <<_ACEOF
  5799. /* confdefs.h. */
  5800. _ACEOF
  5801. cat confdefs.h >>conftest.$ac_ext
  5802. cat >>conftest.$ac_ext <<_ACEOF
  5803. /* end confdefs.h. */
  5804. /* Override any GCC internal prototype to avoid an error.
  5805. Use char because int might match the return type of a GCC
  5806. builtin and then its argument prototype would still apply. */
  5807. #ifdef __cplusplus
  5808. extern "C"
  5809. #endif
  5810. char ares_init ();
  5811. int
  5812. main ()
  5813. {
  5814. return ares_init ();
  5815. ;
  5816. return 0;
  5817. }
  5818. _ACEOF
  5819. rm -f conftest.$ac_objext conftest$ac_exeext
  5820. if { (ac_try="$ac_link"
  5821. case "(($ac_try" in
  5822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5823. *) ac_try_echo=$ac_try;;
  5824. esac
  5825. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5826. (eval "$ac_link") 2>conftest.er1
  5827. ac_status=$?
  5828. grep -v '^ *+' conftest.er1 >conftest.err
  5829. rm -f conftest.er1
  5830. cat conftest.err >&5
  5831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5832. (exit $ac_status); } && {
  5833. test -z "$ac_cxx_werror_flag" ||
  5834. test ! -s conftest.err
  5835. } && test -s conftest$ac_exeext &&
  5836. $as_test_x conftest$ac_exeext; then
  5837. ac_cv_lib_cares_ares_init=yes
  5838. else
  5839. echo "$as_me: failed program was:" >&5
  5840. sed 's/^/| /' conftest.$ac_ext >&5
  5841. ac_cv_lib_cares_ares_init=no
  5842. fi
  5843. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5844. conftest$ac_exeext conftest.$ac_ext
  5845. LIBS=$ac_check_lib_save_LIBS
  5846. fi
  5847. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  5848. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  5849. if test $ac_cv_lib_cares_ares_init = yes; then
  5850. have_libcares=yes
  5851. fi
  5852. if test "x$have_libcares" = "xyes"; then
  5853. { echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  5854. echo $ECHO_N "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... $ECHO_C" >&6; }
  5855. cat >conftest.$ac_ext <<_ACEOF
  5856. /* confdefs.h. */
  5857. _ACEOF
  5858. cat confdefs.h >>conftest.$ac_ext
  5859. cat >>conftest.$ac_ext <<_ACEOF
  5860. /* end confdefs.h. */
  5861. #include <ares.h>
  5862. void callback(void* arg, int status, int timeouts, struct hostent* host);
  5863. int
  5864. main ()
  5865. {
  5866. ares_channel channel;
  5867. ares_gethostbyname(channel, "foo", 0, callback, 0);
  5868. ;
  5869. return 0;
  5870. }
  5871. _ACEOF
  5872. rm -f conftest.$ac_objext
  5873. if { (ac_try="$ac_compile"
  5874. case "(($ac_try" in
  5875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5876. *) ac_try_echo=$ac_try;;
  5877. esac
  5878. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5879. (eval "$ac_compile") 2>conftest.er1
  5880. ac_status=$?
  5881. grep -v '^ *+' conftest.er1 >conftest.err
  5882. rm -f conftest.er1
  5883. cat conftest.err >&5
  5884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5885. (exit $ac_status); } && {
  5886. test -z "$ac_cxx_werror_flag" ||
  5887. test ! -s conftest.err
  5888. } && test -s conftest.$ac_objext; then
  5889. have_libcares1_5=yes
  5890. else
  5891. echo "$as_me: failed program was:" >&5
  5892. sed 's/^/| /' conftest.$ac_ext >&5
  5893. have_libcares1_5=no
  5894. fi
  5895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5896. { echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  5897. echo "${ECHO_T}$have_libcares1_5" >&6; }
  5898. if test "x$have_libcares1_5" = "xyes"; then
  5899. cat >>confdefs.h <<\_ACEOF
  5900. #define HAVE_LIBCARES1_5 1
  5901. _ACEOF
  5902. fi
  5903. cat >>confdefs.h <<\_ACEOF
  5904. #define HAVE_LIBCARES 1
  5905. _ACEOF
  5906. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  5907. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  5908. fi
  5909. LIBS=$LIBS_save
  5910. CPPFLAGS=$CPPFLAGS_save
  5911. fi
  5912. if test "x$have_libcares" = "x"; then
  5913. if test "x$with_libares" = "xyes"; then
  5914. # Check whether --with-libares-prefix was given.
  5915. if test "${with_libares_prefix+set}" = set; then
  5916. withval=$with_libares_prefix; libares_prefix=$withval
  5917. else
  5918. libares_prefix=""
  5919. fi
  5920. if test "x$libares_prefix" = "x"; then
  5921. libares_prefix="/usr"
  5922. fi
  5923. libares_prefix_lib=$libares_prefix/lib
  5924. libares_prefix_include=$libares_prefix/include
  5925. LIBS_save=$LIBS
  5926. CPPFLAGS_save=$CPPFLAGS
  5927. LIBS="-L$libares_prefix_lib $LIBS"
  5928. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  5929. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  5930. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  5931. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  5932. echo $ECHO_N "(cached) $ECHO_C" >&6
  5933. else
  5934. ac_check_lib_save_LIBS=$LIBS
  5935. LIBS="-lares $LIBS"
  5936. cat >conftest.$ac_ext <<_ACEOF
  5937. /* confdefs.h. */
  5938. _ACEOF
  5939. cat confdefs.h >>conftest.$ac_ext
  5940. cat >>conftest.$ac_ext <<_ACEOF
  5941. /* end confdefs.h. */
  5942. /* Override any GCC internal prototype to avoid an error.
  5943. Use char because int might match the return type of a GCC
  5944. builtin and then its argument prototype would still apply. */
  5945. #ifdef __cplusplus
  5946. extern "C"
  5947. #endif
  5948. char ares_init ();
  5949. int
  5950. main ()
  5951. {
  5952. return ares_init ();
  5953. ;
  5954. return 0;
  5955. }
  5956. _ACEOF
  5957. rm -f conftest.$ac_objext conftest$ac_exeext
  5958. if { (ac_try="$ac_link"
  5959. case "(($ac_try" in
  5960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5961. *) ac_try_echo=$ac_try;;
  5962. esac
  5963. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5964. (eval "$ac_link") 2>conftest.er1
  5965. ac_status=$?
  5966. grep -v '^ *+' conftest.er1 >conftest.err
  5967. rm -f conftest.er1
  5968. cat conftest.err >&5
  5969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5970. (exit $ac_status); } && {
  5971. test -z "$ac_cxx_werror_flag" ||
  5972. test ! -s conftest.err
  5973. } && test -s conftest$ac_exeext &&
  5974. $as_test_x conftest$ac_exeext; then
  5975. ac_cv_lib_ares_ares_init=yes
  5976. else
  5977. echo "$as_me: failed program was:" >&5
  5978. sed 's/^/| /' conftest.$ac_ext >&5
  5979. ac_cv_lib_ares_ares_init=no
  5980. fi
  5981. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5982. conftest$ac_exeext conftest.$ac_ext
  5983. LIBS=$ac_check_lib_save_LIBS
  5984. fi
  5985. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  5986. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  5987. if test $ac_cv_lib_ares_ares_init = yes; then
  5988. have_libares=yes
  5989. fi
  5990. if test "x$have_libares" = "xyes"; then
  5991. cat >>confdefs.h <<\_ACEOF
  5992. #define HAVE_LIBARES 1
  5993. _ACEOF
  5994. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  5995. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  5996. fi
  5997. LIBS=$LIBS_save
  5998. CPPFLAGS=$CPPFLAGS_save
  5999. fi
  6000. fi
  6001. # Define variables based on the result of the checks for libraries.
  6002. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6003. cat >>confdefs.h <<\_ACEOF
  6004. #define ENABLE_SSL 1
  6005. _ACEOF
  6006. fi
  6007. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6008. cat >>confdefs.h <<\_ACEOF
  6009. #define ENABLE_MESSAGE_DIGEST 1
  6010. _ACEOF
  6011. if true; then
  6012. ENABLE_MESSAGE_DIGEST_TRUE=
  6013. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6014. else
  6015. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6016. ENABLE_MESSAGE_DIGEST_FALSE=
  6017. fi
  6018. enable_message_digest=yes
  6019. else
  6020. if false; then
  6021. ENABLE_MESSAGE_DIGEST_TRUE=
  6022. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6023. else
  6024. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6025. ENABLE_MESSAGE_DIGEST_FALSE=
  6026. fi
  6027. fi
  6028. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  6029. cat >>confdefs.h <<\_ACEOF
  6030. #define ENABLE_BITTORRENT 1
  6031. _ACEOF
  6032. if true; then
  6033. ENABLE_BITTORRENT_TRUE=
  6034. ENABLE_BITTORRENT_FALSE='#'
  6035. else
  6036. ENABLE_BITTORRENT_TRUE='#'
  6037. ENABLE_BITTORRENT_FALSE=
  6038. fi
  6039. else
  6040. enable_bittorrent=no
  6041. if false; then
  6042. ENABLE_BITTORRENT_TRUE=
  6043. ENABLE_BITTORRENT_FALSE='#'
  6044. else
  6045. ENABLE_BITTORRENT_TRUE='#'
  6046. ENABLE_BITTORRENT_FALSE=
  6047. fi
  6048. fi
  6049. if test "x$have_libxml2" = "xyes" && test "x$enable_metalink" = "xyes"; then
  6050. cat >>confdefs.h <<\_ACEOF
  6051. #define ENABLE_METALINK 1
  6052. _ACEOF
  6053. if true; then
  6054. ENABLE_METALINK_TRUE=
  6055. ENABLE_METALINK_FALSE='#'
  6056. else
  6057. ENABLE_METALINK_TRUE='#'
  6058. ENABLE_METALINK_FALSE=
  6059. fi
  6060. else
  6061. enable_metalink=no
  6062. if false; then
  6063. ENABLE_METALINK_TRUE=
  6064. ENABLE_METALINK_FALSE='#'
  6065. else
  6066. ENABLE_METALINK_TRUE='#'
  6067. ENABLE_METALINK_FALSE=
  6068. fi
  6069. fi
  6070. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  6071. cat >>confdefs.h <<\_ACEOF
  6072. #define ENABLE_ASYNC_DNS 1
  6073. _ACEOF
  6074. if true; then
  6075. ENABLE_ASYNC_DNS_TRUE=
  6076. ENABLE_ASYNC_DNS_FALSE='#'
  6077. else
  6078. ENABLE_ASYNC_DNS_TRUE='#'
  6079. ENABLE_ASYNC_DNS_FALSE=
  6080. fi
  6081. else
  6082. if false; then
  6083. ENABLE_ASYNC_DNS_TRUE=
  6084. ENABLE_ASYNC_DNS_FALSE='#'
  6085. else
  6086. ENABLE_ASYNC_DNS_TRUE='#'
  6087. ENABLE_ASYNC_DNS_FALSE=
  6088. fi
  6089. fi
  6090. # Checks for header files.
  6091. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6092. # for constant arguments. Useless!
  6093. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6094. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  6095. if test "${ac_cv_working_alloca_h+set}" = set; then
  6096. echo $ECHO_N "(cached) $ECHO_C" >&6
  6097. else
  6098. cat >conftest.$ac_ext <<_ACEOF
  6099. /* confdefs.h. */
  6100. _ACEOF
  6101. cat confdefs.h >>conftest.$ac_ext
  6102. cat >>conftest.$ac_ext <<_ACEOF
  6103. /* end confdefs.h. */
  6104. #include <alloca.h>
  6105. int
  6106. main ()
  6107. {
  6108. char *p = (char *) alloca (2 * sizeof (int));
  6109. if (p) return 0;
  6110. ;
  6111. return 0;
  6112. }
  6113. _ACEOF
  6114. rm -f conftest.$ac_objext conftest$ac_exeext
  6115. if { (ac_try="$ac_link"
  6116. case "(($ac_try" in
  6117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6118. *) ac_try_echo=$ac_try;;
  6119. esac
  6120. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6121. (eval "$ac_link") 2>conftest.er1
  6122. ac_status=$?
  6123. grep -v '^ *+' conftest.er1 >conftest.err
  6124. rm -f conftest.er1
  6125. cat conftest.err >&5
  6126. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6127. (exit $ac_status); } && {
  6128. test -z "$ac_cxx_werror_flag" ||
  6129. test ! -s conftest.err
  6130. } && test -s conftest$ac_exeext &&
  6131. $as_test_x conftest$ac_exeext; then
  6132. ac_cv_working_alloca_h=yes
  6133. else
  6134. echo "$as_me: failed program was:" >&5
  6135. sed 's/^/| /' conftest.$ac_ext >&5
  6136. ac_cv_working_alloca_h=no
  6137. fi
  6138. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6139. conftest$ac_exeext conftest.$ac_ext
  6140. fi
  6141. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6142. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  6143. if test $ac_cv_working_alloca_h = yes; then
  6144. cat >>confdefs.h <<\_ACEOF
  6145. #define HAVE_ALLOCA_H 1
  6146. _ACEOF
  6147. fi
  6148. { echo "$as_me:$LINENO: checking for alloca" >&5
  6149. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  6150. if test "${ac_cv_func_alloca_works+set}" = set; then
  6151. echo $ECHO_N "(cached) $ECHO_C" >&6
  6152. else
  6153. cat >conftest.$ac_ext <<_ACEOF
  6154. /* confdefs.h. */
  6155. _ACEOF
  6156. cat confdefs.h >>conftest.$ac_ext
  6157. cat >>conftest.$ac_ext <<_ACEOF
  6158. /* end confdefs.h. */
  6159. #ifdef __GNUC__
  6160. # define alloca __builtin_alloca
  6161. #else
  6162. # ifdef _MSC_VER
  6163. # include <malloc.h>
  6164. # define alloca _alloca
  6165. # else
  6166. # ifdef HAVE_ALLOCA_H
  6167. # include <alloca.h>
  6168. # else
  6169. # ifdef _AIX
  6170. #pragma alloca
  6171. # else
  6172. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6173. char *alloca ();
  6174. # endif
  6175. # endif
  6176. # endif
  6177. # endif
  6178. #endif
  6179. int
  6180. main ()
  6181. {
  6182. char *p = (char *) alloca (1);
  6183. if (p) return 0;
  6184. ;
  6185. return 0;
  6186. }
  6187. _ACEOF
  6188. rm -f conftest.$ac_objext conftest$ac_exeext
  6189. if { (ac_try="$ac_link"
  6190. case "(($ac_try" in
  6191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6192. *) ac_try_echo=$ac_try;;
  6193. esac
  6194. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6195. (eval "$ac_link") 2>conftest.er1
  6196. ac_status=$?
  6197. grep -v '^ *+' conftest.er1 >conftest.err
  6198. rm -f conftest.er1
  6199. cat conftest.err >&5
  6200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6201. (exit $ac_status); } && {
  6202. test -z "$ac_cxx_werror_flag" ||
  6203. test ! -s conftest.err
  6204. } && test -s conftest$ac_exeext &&
  6205. $as_test_x conftest$ac_exeext; then
  6206. ac_cv_func_alloca_works=yes
  6207. else
  6208. echo "$as_me: failed program was:" >&5
  6209. sed 's/^/| /' conftest.$ac_ext >&5
  6210. ac_cv_func_alloca_works=no
  6211. fi
  6212. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6213. conftest$ac_exeext conftest.$ac_ext
  6214. fi
  6215. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6216. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  6217. if test $ac_cv_func_alloca_works = yes; then
  6218. cat >>confdefs.h <<\_ACEOF
  6219. #define HAVE_ALLOCA 1
  6220. _ACEOF
  6221. else
  6222. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6223. # that cause trouble. Some versions do not even contain alloca or
  6224. # contain a buggy version. If you still want to use their alloca,
  6225. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6226. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6227. cat >>confdefs.h <<\_ACEOF
  6228. #define C_ALLOCA 1
  6229. _ACEOF
  6230. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6231. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  6232. if test "${ac_cv_os_cray+set}" = set; then
  6233. echo $ECHO_N "(cached) $ECHO_C" >&6
  6234. else
  6235. cat >conftest.$ac_ext <<_ACEOF
  6236. /* confdefs.h. */
  6237. _ACEOF
  6238. cat confdefs.h >>conftest.$ac_ext
  6239. cat >>conftest.$ac_ext <<_ACEOF
  6240. /* end confdefs.h. */
  6241. #if defined CRAY && ! defined CRAY2
  6242. webecray
  6243. #else
  6244. wenotbecray
  6245. #endif
  6246. _ACEOF
  6247. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6248. $EGREP "webecray" >/dev/null 2>&1; then
  6249. ac_cv_os_cray=yes
  6250. else
  6251. ac_cv_os_cray=no
  6252. fi
  6253. rm -f conftest*
  6254. fi
  6255. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  6256. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  6257. if test $ac_cv_os_cray = yes; then
  6258. for ac_func in _getb67 GETB67 getb67; do
  6259. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6260. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  6261. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  6262. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6263. echo $ECHO_N "(cached) $ECHO_C" >&6
  6264. else
  6265. cat >conftest.$ac_ext <<_ACEOF
  6266. /* confdefs.h. */
  6267. _ACEOF
  6268. cat confdefs.h >>conftest.$ac_ext
  6269. cat >>conftest.$ac_ext <<_ACEOF
  6270. /* end confdefs.h. */
  6271. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6272. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6273. #define $ac_func innocuous_$ac_func
  6274. /* System header to define __stub macros and hopefully few prototypes,
  6275. which can conflict with char $ac_func (); below.
  6276. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6277. <limits.h> exists even on freestanding compilers. */
  6278. #ifdef __STDC__
  6279. # include <limits.h>
  6280. #else
  6281. # include <assert.h>
  6282. #endif
  6283. #undef $ac_func
  6284. /* Override any GCC internal prototype to avoid an error.
  6285. Use char because int might match the return type of a GCC
  6286. builtin and then its argument prototype would still apply. */
  6287. #ifdef __cplusplus
  6288. extern "C"
  6289. #endif
  6290. char $ac_func ();
  6291. /* The GNU C library defines this for functions which it implements
  6292. to always fail with ENOSYS. Some functions are actually named
  6293. something starting with __ and the normal name is an alias. */
  6294. #if defined __stub_$ac_func || defined __stub___$ac_func
  6295. choke me
  6296. #endif
  6297. int
  6298. main ()
  6299. {
  6300. return $ac_func ();
  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. eval "$as_ac_var=yes"
  6324. else
  6325. echo "$as_me: failed program was:" >&5
  6326. sed 's/^/| /' conftest.$ac_ext >&5
  6327. eval "$as_ac_var=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. ac_res=`eval echo '${'$as_ac_var'}'`
  6333. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6334. echo "${ECHO_T}$ac_res" >&6; }
  6335. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6336. cat >>confdefs.h <<_ACEOF
  6337. #define CRAY_STACKSEG_END $ac_func
  6338. _ACEOF
  6339. break
  6340. fi
  6341. done
  6342. fi
  6343. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  6344. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  6345. if test "${ac_cv_c_stack_direction+set}" = set; then
  6346. echo $ECHO_N "(cached) $ECHO_C" >&6
  6347. else
  6348. if test "$cross_compiling" = yes; then
  6349. ac_cv_c_stack_direction=0
  6350. else
  6351. cat >conftest.$ac_ext <<_ACEOF
  6352. /* confdefs.h. */
  6353. _ACEOF
  6354. cat confdefs.h >>conftest.$ac_ext
  6355. cat >>conftest.$ac_ext <<_ACEOF
  6356. /* end confdefs.h. */
  6357. $ac_includes_default
  6358. int
  6359. find_stack_direction ()
  6360. {
  6361. static char *addr = 0;
  6362. auto char dummy;
  6363. if (addr == 0)
  6364. {
  6365. addr = &dummy;
  6366. return find_stack_direction ();
  6367. }
  6368. else
  6369. return (&dummy > addr) ? 1 : -1;
  6370. }
  6371. int
  6372. main ()
  6373. {
  6374. return find_stack_direction () < 0;
  6375. }
  6376. _ACEOF
  6377. rm -f conftest$ac_exeext
  6378. if { (ac_try="$ac_link"
  6379. case "(($ac_try" in
  6380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6381. *) ac_try_echo=$ac_try;;
  6382. esac
  6383. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6384. (eval "$ac_link") 2>&5
  6385. ac_status=$?
  6386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6387. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6388. { (case "(($ac_try" in
  6389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6390. *) ac_try_echo=$ac_try;;
  6391. esac
  6392. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6393. (eval "$ac_try") 2>&5
  6394. ac_status=$?
  6395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6396. (exit $ac_status); }; }; then
  6397. ac_cv_c_stack_direction=1
  6398. else
  6399. echo "$as_me: program exited with status $ac_status" >&5
  6400. echo "$as_me: failed program was:" >&5
  6401. sed 's/^/| /' conftest.$ac_ext >&5
  6402. ( exit $ac_status )
  6403. ac_cv_c_stack_direction=-1
  6404. fi
  6405. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6406. fi
  6407. fi
  6408. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  6409. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  6410. cat >>confdefs.h <<_ACEOF
  6411. #define STACK_DIRECTION $ac_cv_c_stack_direction
  6412. _ACEOF
  6413. fi
  6414. #AC_HEADER_STDC
  6415. 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
  6416. do
  6417. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6418. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6419. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6420. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6421. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6422. echo $ECHO_N "(cached) $ECHO_C" >&6
  6423. fi
  6424. ac_res=`eval echo '${'$as_ac_Header'}'`
  6425. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6426. echo "${ECHO_T}$ac_res" >&6; }
  6427. else
  6428. # Is the header compilable?
  6429. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6430. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  6431. cat >conftest.$ac_ext <<_ACEOF
  6432. /* confdefs.h. */
  6433. _ACEOF
  6434. cat confdefs.h >>conftest.$ac_ext
  6435. cat >>conftest.$ac_ext <<_ACEOF
  6436. /* end confdefs.h. */
  6437. $ac_includes_default
  6438. #include <$ac_header>
  6439. _ACEOF
  6440. rm -f conftest.$ac_objext
  6441. if { (ac_try="$ac_compile"
  6442. case "(($ac_try" in
  6443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6444. *) ac_try_echo=$ac_try;;
  6445. esac
  6446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6447. (eval "$ac_compile") 2>conftest.er1
  6448. ac_status=$?
  6449. grep -v '^ *+' conftest.er1 >conftest.err
  6450. rm -f conftest.er1
  6451. cat conftest.err >&5
  6452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6453. (exit $ac_status); } && {
  6454. test -z "$ac_cxx_werror_flag" ||
  6455. test ! -s conftest.err
  6456. } && test -s conftest.$ac_objext; then
  6457. ac_header_compiler=yes
  6458. else
  6459. echo "$as_me: failed program was:" >&5
  6460. sed 's/^/| /' conftest.$ac_ext >&5
  6461. ac_header_compiler=no
  6462. fi
  6463. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6464. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6465. echo "${ECHO_T}$ac_header_compiler" >&6; }
  6466. # Is the header present?
  6467. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6468. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  6469. cat >conftest.$ac_ext <<_ACEOF
  6470. /* confdefs.h. */
  6471. _ACEOF
  6472. cat confdefs.h >>conftest.$ac_ext
  6473. cat >>conftest.$ac_ext <<_ACEOF
  6474. /* end confdefs.h. */
  6475. #include <$ac_header>
  6476. _ACEOF
  6477. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6478. case "(($ac_try" in
  6479. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6480. *) ac_try_echo=$ac_try;;
  6481. esac
  6482. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6483. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6484. ac_status=$?
  6485. grep -v '^ *+' conftest.er1 >conftest.err
  6486. rm -f conftest.er1
  6487. cat conftest.err >&5
  6488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6489. (exit $ac_status); } >/dev/null && {
  6490. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  6491. test ! -s conftest.err
  6492. }; then
  6493. ac_header_preproc=yes
  6494. else
  6495. echo "$as_me: failed program was:" >&5
  6496. sed 's/^/| /' conftest.$ac_ext >&5
  6497. ac_header_preproc=no
  6498. fi
  6499. rm -f conftest.err conftest.$ac_ext
  6500. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6501. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6502. # So? What about this header?
  6503. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  6504. yes:no: )
  6505. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6506. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6507. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6508. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6509. ac_header_preproc=yes
  6510. ;;
  6511. no:yes:* )
  6512. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6513. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6514. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6515. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6516. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6517. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6518. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6519. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6520. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6521. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6522. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6523. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6524. ( cat <<\_ASBOX
  6525. ## ----------------------------------------------- ##
  6526. ## Report this to t-tujikawa@users.sourceforge.net ##
  6527. ## ----------------------------------------------- ##
  6528. _ASBOX
  6529. ) | sed "s/^/$as_me: WARNING: /" >&2
  6530. ;;
  6531. esac
  6532. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6533. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6534. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6535. echo $ECHO_N "(cached) $ECHO_C" >&6
  6536. else
  6537. eval "$as_ac_Header=\$ac_header_preproc"
  6538. fi
  6539. ac_res=`eval echo '${'$as_ac_Header'}'`
  6540. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6541. echo "${ECHO_T}$ac_res" >&6; }
  6542. fi
  6543. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6544. cat >>confdefs.h <<_ACEOF
  6545. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6546. _ACEOF
  6547. fi
  6548. done
  6549. # Checks for typedefs, structures, and compiler characteristics.
  6550. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6551. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  6552. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6553. echo $ECHO_N "(cached) $ECHO_C" >&6
  6554. else
  6555. cat >conftest.$ac_ext <<_ACEOF
  6556. /* confdefs.h. */
  6557. _ACEOF
  6558. cat confdefs.h >>conftest.$ac_ext
  6559. cat >>conftest.$ac_ext <<_ACEOF
  6560. /* end confdefs.h. */
  6561. #include <stdbool.h>
  6562. #ifndef bool
  6563. "error: bool is not defined"
  6564. #endif
  6565. #ifndef false
  6566. "error: false is not defined"
  6567. #endif
  6568. #if false
  6569. "error: false is not 0"
  6570. #endif
  6571. #ifndef true
  6572. "error: true is not defined"
  6573. #endif
  6574. #if true != 1
  6575. "error: true is not 1"
  6576. #endif
  6577. #ifndef __bool_true_false_are_defined
  6578. "error: __bool_true_false_are_defined is not defined"
  6579. #endif
  6580. struct s { _Bool s: 1; _Bool t; } s;
  6581. char a[true == 1 ? 1 : -1];
  6582. char b[false == 0 ? 1 : -1];
  6583. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6584. char d[(bool) 0.5 == true ? 1 : -1];
  6585. bool e = &s;
  6586. char f[(_Bool) 0.0 == false ? 1 : -1];
  6587. char g[true];
  6588. char h[sizeof (_Bool)];
  6589. char i[sizeof s.t];
  6590. enum { j = false, k = true, l = false * true, m = true * 256 };
  6591. _Bool n[m];
  6592. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6593. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6594. # if defined __xlc__ || defined __GNUC__
  6595. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6596. reported by James Lemley on 2005-10-05; see
  6597. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6598. This test is not quite right, since xlc is allowed to
  6599. reject this program, as the initializer for xlcbug is
  6600. not one of the forms that C requires support for.
  6601. However, doing the test right would require a runtime
  6602. test, and that would make cross-compilation harder.
  6603. Let us hope that IBM fixes the xlc bug, and also adds
  6604. support for this kind of constant expression. In the
  6605. meantime, this test will reject xlc, which is OK, since
  6606. our stdbool.h substitute should suffice. We also test
  6607. this with GCC, where it should work, to detect more
  6608. quickly whether someone messes up the test in the
  6609. future. */
  6610. char digs[] = "0123456789";
  6611. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6612. # endif
  6613. /* Catch a bug in an HP-UX C compiler. See
  6614. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6615. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6616. */
  6617. _Bool q = true;
  6618. _Bool *pq = &q;
  6619. int
  6620. main ()
  6621. {
  6622. *pq |= q;
  6623. *pq |= ! q;
  6624. /* Refer to every declared value, to avoid compiler optimizations. */
  6625. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6626. + !m + !n + !o + !p + !q + !pq);
  6627. ;
  6628. return 0;
  6629. }
  6630. _ACEOF
  6631. rm -f conftest.$ac_objext
  6632. if { (ac_try="$ac_compile"
  6633. case "(($ac_try" in
  6634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6635. *) ac_try_echo=$ac_try;;
  6636. esac
  6637. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6638. (eval "$ac_compile") 2>conftest.er1
  6639. ac_status=$?
  6640. grep -v '^ *+' conftest.er1 >conftest.err
  6641. rm -f conftest.er1
  6642. cat conftest.err >&5
  6643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6644. (exit $ac_status); } && {
  6645. test -z "$ac_cxx_werror_flag" ||
  6646. test ! -s conftest.err
  6647. } && test -s conftest.$ac_objext; then
  6648. ac_cv_header_stdbool_h=yes
  6649. else
  6650. echo "$as_me: failed program was:" >&5
  6651. sed 's/^/| /' conftest.$ac_ext >&5
  6652. ac_cv_header_stdbool_h=no
  6653. fi
  6654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6655. fi
  6656. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6657. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6658. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6659. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6660. if test "${ac_cv_type__Bool+set}" = set; then
  6661. echo $ECHO_N "(cached) $ECHO_C" >&6
  6662. else
  6663. cat >conftest.$ac_ext <<_ACEOF
  6664. /* confdefs.h. */
  6665. _ACEOF
  6666. cat confdefs.h >>conftest.$ac_ext
  6667. cat >>conftest.$ac_ext <<_ACEOF
  6668. /* end confdefs.h. */
  6669. $ac_includes_default
  6670. typedef _Bool ac__type_new_;
  6671. int
  6672. main ()
  6673. {
  6674. if ((ac__type_new_ *) 0)
  6675. return 0;
  6676. if (sizeof (ac__type_new_))
  6677. return 0;
  6678. ;
  6679. return 0;
  6680. }
  6681. _ACEOF
  6682. rm -f conftest.$ac_objext
  6683. if { (ac_try="$ac_compile"
  6684. case "(($ac_try" in
  6685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6686. *) ac_try_echo=$ac_try;;
  6687. esac
  6688. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6689. (eval "$ac_compile") 2>conftest.er1
  6690. ac_status=$?
  6691. grep -v '^ *+' conftest.er1 >conftest.err
  6692. rm -f conftest.er1
  6693. cat conftest.err >&5
  6694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6695. (exit $ac_status); } && {
  6696. test -z "$ac_cxx_werror_flag" ||
  6697. test ! -s conftest.err
  6698. } && test -s conftest.$ac_objext; then
  6699. ac_cv_type__Bool=yes
  6700. else
  6701. echo "$as_me: failed program was:" >&5
  6702. sed 's/^/| /' conftest.$ac_ext >&5
  6703. ac_cv_type__Bool=no
  6704. fi
  6705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6706. fi
  6707. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  6708. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  6709. if test $ac_cv_type__Bool = yes; then
  6710. cat >>confdefs.h <<_ACEOF
  6711. #define HAVE__BOOL 1
  6712. _ACEOF
  6713. fi
  6714. if test $ac_cv_header_stdbool_h = yes; then
  6715. cat >>confdefs.h <<\_ACEOF
  6716. #define HAVE_STDBOOL_H 1
  6717. _ACEOF
  6718. fi
  6719. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6720. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  6721. if test "${ac_cv_c_const+set}" = set; then
  6722. echo $ECHO_N "(cached) $ECHO_C" >&6
  6723. else
  6724. cat >conftest.$ac_ext <<_ACEOF
  6725. /* confdefs.h. */
  6726. _ACEOF
  6727. cat confdefs.h >>conftest.$ac_ext
  6728. cat >>conftest.$ac_ext <<_ACEOF
  6729. /* end confdefs.h. */
  6730. int
  6731. main ()
  6732. {
  6733. /* FIXME: Include the comments suggested by Paul. */
  6734. #ifndef __cplusplus
  6735. /* Ultrix mips cc rejects this. */
  6736. typedef int charset[2];
  6737. const charset cs;
  6738. /* SunOS 4.1.1 cc rejects this. */
  6739. char const *const *pcpcc;
  6740. char **ppc;
  6741. /* NEC SVR4.0.2 mips cc rejects this. */
  6742. struct point {int x, y;};
  6743. static struct point const zero = {0,0};
  6744. /* AIX XL C 1.02.0.0 rejects this.
  6745. It does not let you subtract one const X* pointer from another in
  6746. an arm of an if-expression whose if-part is not a constant
  6747. expression */
  6748. const char *g = "string";
  6749. pcpcc = &g + (g ? g-g : 0);
  6750. /* HPUX 7.0 cc rejects these. */
  6751. ++pcpcc;
  6752. ppc = (char**) pcpcc;
  6753. pcpcc = (char const *const *) ppc;
  6754. { /* SCO 3.2v4 cc rejects this. */
  6755. char *t;
  6756. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6757. *t++ = 0;
  6758. if (s) return 0;
  6759. }
  6760. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6761. int x[] = {25, 17};
  6762. const int *foo = &x[0];
  6763. ++foo;
  6764. }
  6765. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6766. typedef const int *iptr;
  6767. iptr p = 0;
  6768. ++p;
  6769. }
  6770. { /* AIX XL C 1.02.0.0 rejects this saying
  6771. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6772. struct s { int j; const int *ap[3]; };
  6773. struct s *b; b->j = 5;
  6774. }
  6775. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6776. const int foo = 10;
  6777. if (!foo) return 0;
  6778. }
  6779. return !cs[0] && !zero.x;
  6780. #endif
  6781. ;
  6782. return 0;
  6783. }
  6784. _ACEOF
  6785. rm -f conftest.$ac_objext
  6786. if { (ac_try="$ac_compile"
  6787. case "(($ac_try" in
  6788. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6789. *) ac_try_echo=$ac_try;;
  6790. esac
  6791. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6792. (eval "$ac_compile") 2>conftest.er1
  6793. ac_status=$?
  6794. grep -v '^ *+' conftest.er1 >conftest.err
  6795. rm -f conftest.er1
  6796. cat conftest.err >&5
  6797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6798. (exit $ac_status); } && {
  6799. test -z "$ac_cxx_werror_flag" ||
  6800. test ! -s conftest.err
  6801. } && test -s conftest.$ac_objext; then
  6802. ac_cv_c_const=yes
  6803. else
  6804. echo "$as_me: failed program was:" >&5
  6805. sed 's/^/| /' conftest.$ac_ext >&5
  6806. ac_cv_c_const=no
  6807. fi
  6808. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6809. fi
  6810. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6811. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  6812. if test $ac_cv_c_const = no; then
  6813. cat >>confdefs.h <<\_ACEOF
  6814. #define const
  6815. _ACEOF
  6816. fi
  6817. { echo "$as_me:$LINENO: checking for inline" >&5
  6818. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  6819. if test "${ac_cv_c_inline+set}" = set; then
  6820. echo $ECHO_N "(cached) $ECHO_C" >&6
  6821. else
  6822. ac_cv_c_inline=no
  6823. for ac_kw in inline __inline__ __inline; do
  6824. cat >conftest.$ac_ext <<_ACEOF
  6825. /* confdefs.h. */
  6826. _ACEOF
  6827. cat confdefs.h >>conftest.$ac_ext
  6828. cat >>conftest.$ac_ext <<_ACEOF
  6829. /* end confdefs.h. */
  6830. #ifndef __cplusplus
  6831. typedef int foo_t;
  6832. static $ac_kw foo_t static_foo () {return 0; }
  6833. $ac_kw foo_t foo () {return 0; }
  6834. #endif
  6835. _ACEOF
  6836. rm -f conftest.$ac_objext
  6837. if { (ac_try="$ac_compile"
  6838. case "(($ac_try" in
  6839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6840. *) ac_try_echo=$ac_try;;
  6841. esac
  6842. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6843. (eval "$ac_compile") 2>conftest.er1
  6844. ac_status=$?
  6845. grep -v '^ *+' conftest.er1 >conftest.err
  6846. rm -f conftest.er1
  6847. cat conftest.err >&5
  6848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6849. (exit $ac_status); } && {
  6850. test -z "$ac_cxx_werror_flag" ||
  6851. test ! -s conftest.err
  6852. } && test -s conftest.$ac_objext; then
  6853. ac_cv_c_inline=$ac_kw
  6854. else
  6855. echo "$as_me: failed program was:" >&5
  6856. sed 's/^/| /' conftest.$ac_ext >&5
  6857. fi
  6858. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6859. test "$ac_cv_c_inline" != no && break
  6860. done
  6861. fi
  6862. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6863. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  6864. case $ac_cv_c_inline in
  6865. inline | yes) ;;
  6866. *)
  6867. case $ac_cv_c_inline in
  6868. no) ac_val=;;
  6869. *) ac_val=$ac_cv_c_inline;;
  6870. esac
  6871. cat >>confdefs.h <<_ACEOF
  6872. #ifndef __cplusplus
  6873. #define inline $ac_val
  6874. #endif
  6875. _ACEOF
  6876. ;;
  6877. esac
  6878. { echo "$as_me:$LINENO: checking for size_t" >&5
  6879. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  6880. if test "${ac_cv_type_size_t+set}" = set; then
  6881. echo $ECHO_N "(cached) $ECHO_C" >&6
  6882. else
  6883. cat >conftest.$ac_ext <<_ACEOF
  6884. /* confdefs.h. */
  6885. _ACEOF
  6886. cat confdefs.h >>conftest.$ac_ext
  6887. cat >>conftest.$ac_ext <<_ACEOF
  6888. /* end confdefs.h. */
  6889. $ac_includes_default
  6890. typedef size_t ac__type_new_;
  6891. int
  6892. main ()
  6893. {
  6894. if ((ac__type_new_ *) 0)
  6895. return 0;
  6896. if (sizeof (ac__type_new_))
  6897. return 0;
  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_type_size_t=yes
  6920. else
  6921. echo "$as_me: failed program was:" >&5
  6922. sed 's/^/| /' conftest.$ac_ext >&5
  6923. ac_cv_type_size_t=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_type_size_t" >&5
  6928. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  6929. if test $ac_cv_type_size_t = yes; then
  6930. :
  6931. else
  6932. cat >>confdefs.h <<_ACEOF
  6933. #define size_t unsigned int
  6934. _ACEOF
  6935. fi
  6936. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  6937. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  6938. if test "${ac_cv_header_time+set}" = set; then
  6939. echo $ECHO_N "(cached) $ECHO_C" >&6
  6940. else
  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. #include <sys/types.h>
  6948. #include <sys/time.h>
  6949. #include <time.h>
  6950. int
  6951. main ()
  6952. {
  6953. if ((struct tm *) 0)
  6954. return 0;
  6955. ;
  6956. return 0;
  6957. }
  6958. _ACEOF
  6959. rm -f conftest.$ac_objext
  6960. if { (ac_try="$ac_compile"
  6961. case "(($ac_try" in
  6962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6963. *) ac_try_echo=$ac_try;;
  6964. esac
  6965. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6966. (eval "$ac_compile") 2>conftest.er1
  6967. ac_status=$?
  6968. grep -v '^ *+' conftest.er1 >conftest.err
  6969. rm -f conftest.er1
  6970. cat conftest.err >&5
  6971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6972. (exit $ac_status); } && {
  6973. test -z "$ac_cxx_werror_flag" ||
  6974. test ! -s conftest.err
  6975. } && test -s conftest.$ac_objext; then
  6976. ac_cv_header_time=yes
  6977. else
  6978. echo "$as_me: failed program was:" >&5
  6979. sed 's/^/| /' conftest.$ac_ext >&5
  6980. ac_cv_header_time=no
  6981. fi
  6982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6983. fi
  6984. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  6985. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  6986. if test $ac_cv_header_time = yes; then
  6987. cat >>confdefs.h <<\_ACEOF
  6988. #define TIME_WITH_SYS_TIME 1
  6989. _ACEOF
  6990. fi
  6991. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6992. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  6993. if test "${ac_cv_struct_tm+set}" = set; then
  6994. echo $ECHO_N "(cached) $ECHO_C" >&6
  6995. else
  6996. cat >conftest.$ac_ext <<_ACEOF
  6997. /* confdefs.h. */
  6998. _ACEOF
  6999. cat confdefs.h >>conftest.$ac_ext
  7000. cat >>conftest.$ac_ext <<_ACEOF
  7001. /* end confdefs.h. */
  7002. #include <sys/types.h>
  7003. #include <time.h>
  7004. int
  7005. main ()
  7006. {
  7007. struct tm tm;
  7008. int *p = &tm.tm_sec;
  7009. return !p;
  7010. ;
  7011. return 0;
  7012. }
  7013. _ACEOF
  7014. rm -f conftest.$ac_objext
  7015. if { (ac_try="$ac_compile"
  7016. case "(($ac_try" in
  7017. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7018. *) ac_try_echo=$ac_try;;
  7019. esac
  7020. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7021. (eval "$ac_compile") 2>conftest.er1
  7022. ac_status=$?
  7023. grep -v '^ *+' conftest.er1 >conftest.err
  7024. rm -f conftest.er1
  7025. cat conftest.err >&5
  7026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7027. (exit $ac_status); } && {
  7028. test -z "$ac_cxx_werror_flag" ||
  7029. test ! -s conftest.err
  7030. } && test -s conftest.$ac_objext; then
  7031. ac_cv_struct_tm=time.h
  7032. else
  7033. echo "$as_me: failed program was:" >&5
  7034. sed 's/^/| /' conftest.$ac_ext >&5
  7035. ac_cv_struct_tm=sys/time.h
  7036. fi
  7037. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7038. fi
  7039. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7040. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  7041. if test $ac_cv_struct_tm = sys/time.h; then
  7042. cat >>confdefs.h <<\_ACEOF
  7043. #define TM_IN_SYS_TIME 1
  7044. _ACEOF
  7045. fi
  7046. { echo "$as_me:$LINENO: checking for working volatile" >&5
  7047. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  7048. if test "${ac_cv_c_volatile+set}" = set; then
  7049. echo $ECHO_N "(cached) $ECHO_C" >&6
  7050. else
  7051. cat >conftest.$ac_ext <<_ACEOF
  7052. /* confdefs.h. */
  7053. _ACEOF
  7054. cat confdefs.h >>conftest.$ac_ext
  7055. cat >>conftest.$ac_ext <<_ACEOF
  7056. /* end confdefs.h. */
  7057. int
  7058. main ()
  7059. {
  7060. volatile int x;
  7061. int * volatile y = (int *) 0;
  7062. return !x && !y;
  7063. ;
  7064. return 0;
  7065. }
  7066. _ACEOF
  7067. rm -f conftest.$ac_objext
  7068. if { (ac_try="$ac_compile"
  7069. case "(($ac_try" in
  7070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7071. *) ac_try_echo=$ac_try;;
  7072. esac
  7073. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7074. (eval "$ac_compile") 2>conftest.er1
  7075. ac_status=$?
  7076. grep -v '^ *+' conftest.er1 >conftest.err
  7077. rm -f conftest.er1
  7078. cat conftest.err >&5
  7079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7080. (exit $ac_status); } && {
  7081. test -z "$ac_cxx_werror_flag" ||
  7082. test ! -s conftest.err
  7083. } && test -s conftest.$ac_objext; then
  7084. ac_cv_c_volatile=yes
  7085. else
  7086. echo "$as_me: failed program was:" >&5
  7087. sed 's/^/| /' conftest.$ac_ext >&5
  7088. ac_cv_c_volatile=no
  7089. fi
  7090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7091. fi
  7092. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7093. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  7094. if test $ac_cv_c_volatile = no; then
  7095. cat >>confdefs.h <<\_ACEOF
  7096. #define volatile
  7097. _ACEOF
  7098. fi
  7099. # Checks for library functions.
  7100. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  7101. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  7102. # Check whether --enable-nls was given.
  7103. if test "${enable_nls+set}" = set; then
  7104. enableval=$enable_nls; USE_NLS=$enableval
  7105. else
  7106. USE_NLS=yes
  7107. fi
  7108. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  7109. echo "${ECHO_T}$USE_NLS" >&6; }
  7110. GETTEXT_MACRO_VERSION=0.17
  7111. # Prepare PATH_SEPARATOR.
  7112. # The user is always right.
  7113. if test "${PATH_SEPARATOR+set}" != set; then
  7114. echo "#! /bin/sh" >conf$$.sh
  7115. echo "exit 0" >>conf$$.sh
  7116. chmod +x conf$$.sh
  7117. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7118. PATH_SEPARATOR=';'
  7119. else
  7120. PATH_SEPARATOR=:
  7121. fi
  7122. rm -f conf$$.sh
  7123. fi
  7124. # Find out how to test for executable files. Don't use a zero-byte file,
  7125. # as systems may use methods other than mode bits to determine executability.
  7126. cat >conf$$.file <<_ASEOF
  7127. #! /bin/sh
  7128. exit 0
  7129. _ASEOF
  7130. chmod +x conf$$.file
  7131. if test -x conf$$.file >/dev/null 2>&1; then
  7132. ac_executable_p="test -x"
  7133. else
  7134. ac_executable_p="test -f"
  7135. fi
  7136. rm -f conf$$.file
  7137. # Extract the first word of "msgfmt", so it can be a program name with args.
  7138. set dummy msgfmt; ac_word=$2
  7139. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7140. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7141. if test "${ac_cv_path_MSGFMT+set}" = set; then
  7142. echo $ECHO_N "(cached) $ECHO_C" >&6
  7143. else
  7144. case "$MSGFMT" in
  7145. [\\/]* | ?:[\\/]*)
  7146. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  7147. ;;
  7148. *)
  7149. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7150. for ac_dir in $PATH; do
  7151. IFS="$ac_save_IFS"
  7152. test -z "$ac_dir" && ac_dir=.
  7153. for ac_exec_ext in '' $ac_executable_extensions; do
  7154. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7155. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7156. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  7157. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  7158. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  7159. break 2
  7160. fi
  7161. fi
  7162. done
  7163. done
  7164. IFS="$ac_save_IFS"
  7165. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  7166. ;;
  7167. esac
  7168. fi
  7169. MSGFMT="$ac_cv_path_MSGFMT"
  7170. if test "$MSGFMT" != ":"; then
  7171. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  7172. echo "${ECHO_T}$MSGFMT" >&6; }
  7173. else
  7174. { echo "$as_me:$LINENO: result: no" >&5
  7175. echo "${ECHO_T}no" >&6; }
  7176. fi
  7177. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  7178. set dummy gmsgfmt; ac_word=$2
  7179. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7180. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7181. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  7182. echo $ECHO_N "(cached) $ECHO_C" >&6
  7183. else
  7184. case $GMSGFMT in
  7185. [\\/]* | ?:[\\/]*)
  7186. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  7187. ;;
  7188. *)
  7189. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7190. for as_dir in $PATH
  7191. do
  7192. IFS=$as_save_IFS
  7193. test -z "$as_dir" && as_dir=.
  7194. for ac_exec_ext in '' $ac_executable_extensions; do
  7195. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7196. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  7197. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  7198. break 2
  7199. fi
  7200. done
  7201. done
  7202. IFS=$as_save_IFS
  7203. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  7204. ;;
  7205. esac
  7206. fi
  7207. GMSGFMT=$ac_cv_path_GMSGFMT
  7208. if test -n "$GMSGFMT"; then
  7209. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  7210. echo "${ECHO_T}$GMSGFMT" >&6; }
  7211. else
  7212. { echo "$as_me:$LINENO: result: no" >&5
  7213. echo "${ECHO_T}no" >&6; }
  7214. fi
  7215. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7216. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  7217. *) MSGFMT_015=$MSGFMT ;;
  7218. esac
  7219. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7220. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  7221. *) GMSGFMT_015=$GMSGFMT ;;
  7222. esac
  7223. # Prepare PATH_SEPARATOR.
  7224. # The user is always right.
  7225. if test "${PATH_SEPARATOR+set}" != set; then
  7226. echo "#! /bin/sh" >conf$$.sh
  7227. echo "exit 0" >>conf$$.sh
  7228. chmod +x conf$$.sh
  7229. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7230. PATH_SEPARATOR=';'
  7231. else
  7232. PATH_SEPARATOR=:
  7233. fi
  7234. rm -f conf$$.sh
  7235. fi
  7236. # Find out how to test for executable files. Don't use a zero-byte file,
  7237. # as systems may use methods other than mode bits to determine executability.
  7238. cat >conf$$.file <<_ASEOF
  7239. #! /bin/sh
  7240. exit 0
  7241. _ASEOF
  7242. chmod +x conf$$.file
  7243. if test -x conf$$.file >/dev/null 2>&1; then
  7244. ac_executable_p="test -x"
  7245. else
  7246. ac_executable_p="test -f"
  7247. fi
  7248. rm -f conf$$.file
  7249. # Extract the first word of "xgettext", so it can be a program name with args.
  7250. set dummy xgettext; ac_word=$2
  7251. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7252. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7253. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  7254. echo $ECHO_N "(cached) $ECHO_C" >&6
  7255. else
  7256. case "$XGETTEXT" in
  7257. [\\/]* | ?:[\\/]*)
  7258. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  7259. ;;
  7260. *)
  7261. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7262. for ac_dir in $PATH; do
  7263. IFS="$ac_save_IFS"
  7264. test -z "$ac_dir" && ac_dir=.
  7265. for ac_exec_ext in '' $ac_executable_extensions; do
  7266. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7267. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7268. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  7269. (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
  7270. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  7271. break 2
  7272. fi
  7273. fi
  7274. done
  7275. done
  7276. IFS="$ac_save_IFS"
  7277. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  7278. ;;
  7279. esac
  7280. fi
  7281. XGETTEXT="$ac_cv_path_XGETTEXT"
  7282. if test "$XGETTEXT" != ":"; then
  7283. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  7284. echo "${ECHO_T}$XGETTEXT" >&6; }
  7285. else
  7286. { echo "$as_me:$LINENO: result: no" >&5
  7287. echo "${ECHO_T}no" >&6; }
  7288. fi
  7289. rm -f messages.po
  7290. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  7291. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  7292. *) XGETTEXT_015=$XGETTEXT ;;
  7293. esac
  7294. # Prepare PATH_SEPARATOR.
  7295. # The user is always right.
  7296. if test "${PATH_SEPARATOR+set}" != set; then
  7297. echo "#! /bin/sh" >conf$$.sh
  7298. echo "exit 0" >>conf$$.sh
  7299. chmod +x conf$$.sh
  7300. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7301. PATH_SEPARATOR=';'
  7302. else
  7303. PATH_SEPARATOR=:
  7304. fi
  7305. rm -f conf$$.sh
  7306. fi
  7307. # Find out how to test for executable files. Don't use a zero-byte file,
  7308. # as systems may use methods other than mode bits to determine executability.
  7309. cat >conf$$.file <<_ASEOF
  7310. #! /bin/sh
  7311. exit 0
  7312. _ASEOF
  7313. chmod +x conf$$.file
  7314. if test -x conf$$.file >/dev/null 2>&1; then
  7315. ac_executable_p="test -x"
  7316. else
  7317. ac_executable_p="test -f"
  7318. fi
  7319. rm -f conf$$.file
  7320. # Extract the first word of "msgmerge", so it can be a program name with args.
  7321. set dummy msgmerge; ac_word=$2
  7322. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  7323. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  7324. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  7325. echo $ECHO_N "(cached) $ECHO_C" >&6
  7326. else
  7327. case "$MSGMERGE" in
  7328. [\\/]* | ?:[\\/]*)
  7329. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  7330. ;;
  7331. *)
  7332. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  7333. for ac_dir in $PATH; do
  7334. IFS="$ac_save_IFS"
  7335. test -z "$ac_dir" && ac_dir=.
  7336. for ac_exec_ext in '' $ac_executable_extensions; do
  7337. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  7338. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  7339. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  7340. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  7341. break 2
  7342. fi
  7343. fi
  7344. done
  7345. done
  7346. IFS="$ac_save_IFS"
  7347. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  7348. ;;
  7349. esac
  7350. fi
  7351. MSGMERGE="$ac_cv_path_MSGMERGE"
  7352. if test "$MSGMERGE" != ":"; then
  7353. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  7354. echo "${ECHO_T}$MSGMERGE" >&6; }
  7355. else
  7356. { echo "$as_me:$LINENO: result: no" >&5
  7357. echo "${ECHO_T}no" >&6; }
  7358. fi
  7359. test -n "$localedir" || localedir='${datadir}/locale'
  7360. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  7361. ac_config_commands="$ac_config_commands po-directories"
  7362. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  7363. echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
  7364. if test "${ac_cv_gnu_library_2+set}" = set; then
  7365. echo $ECHO_N "(cached) $ECHO_C" >&6
  7366. else
  7367. cat >conftest.$ac_ext <<_ACEOF
  7368. /* confdefs.h. */
  7369. _ACEOF
  7370. cat confdefs.h >>conftest.$ac_ext
  7371. cat >>conftest.$ac_ext <<_ACEOF
  7372. /* end confdefs.h. */
  7373. #include <features.h>
  7374. #ifdef __GNU_LIBRARY__
  7375. #if (__GLIBC__ >= 2)
  7376. Lucky GNU user
  7377. #endif
  7378. #endif
  7379. _ACEOF
  7380. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7381. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  7382. ac_cv_gnu_library_2=yes
  7383. else
  7384. ac_cv_gnu_library_2=no
  7385. fi
  7386. rm -f conftest*
  7387. fi
  7388. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  7389. echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
  7390. GLIBC2="$ac_cv_gnu_library_2"
  7391. CFLAG_VISIBILITY=
  7392. HAVE_VISIBILITY=0
  7393. if test -n "$GCC"; then
  7394. { echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  7395. echo $ECHO_N "checking for simple visibility declarations... $ECHO_C" >&6; }
  7396. if test "${gl_cv_cc_visibility+set}" = set; then
  7397. echo $ECHO_N "(cached) $ECHO_C" >&6
  7398. else
  7399. gl_save_CFLAGS="$CFLAGS"
  7400. CFLAGS="$CFLAGS -fvisibility=hidden"
  7401. cat >conftest.$ac_ext <<_ACEOF
  7402. /* confdefs.h. */
  7403. _ACEOF
  7404. cat confdefs.h >>conftest.$ac_ext
  7405. cat >>conftest.$ac_ext <<_ACEOF
  7406. /* end confdefs.h. */
  7407. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  7408. extern __attribute__((__visibility__("default"))) int exportedvar;
  7409. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  7410. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  7411. int
  7412. main ()
  7413. {
  7414. ;
  7415. return 0;
  7416. }
  7417. _ACEOF
  7418. rm -f conftest.$ac_objext
  7419. if { (ac_try="$ac_compile"
  7420. case "(($ac_try" in
  7421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7422. *) ac_try_echo=$ac_try;;
  7423. esac
  7424. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7425. (eval "$ac_compile") 2>conftest.er1
  7426. ac_status=$?
  7427. grep -v '^ *+' conftest.er1 >conftest.err
  7428. rm -f conftest.er1
  7429. cat conftest.err >&5
  7430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7431. (exit $ac_status); } && {
  7432. test -z "$ac_cxx_werror_flag" ||
  7433. test ! -s conftest.err
  7434. } && test -s conftest.$ac_objext; then
  7435. gl_cv_cc_visibility=yes
  7436. else
  7437. echo "$as_me: failed program was:" >&5
  7438. sed 's/^/| /' conftest.$ac_ext >&5
  7439. gl_cv_cc_visibility=no
  7440. fi
  7441. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7442. CFLAGS="$gl_save_CFLAGS"
  7443. fi
  7444. { echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  7445. echo "${ECHO_T}$gl_cv_cc_visibility" >&6; }
  7446. if test $gl_cv_cc_visibility = yes; then
  7447. CFLAG_VISIBILITY="-fvisibility=hidden"
  7448. HAVE_VISIBILITY=1
  7449. fi
  7450. fi
  7451. cat >>confdefs.h <<_ACEOF
  7452. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  7453. _ACEOF
  7454. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  7455. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  7456. if test "${gl_cv_header_stdint_h+set}" = set; then
  7457. echo $ECHO_N "(cached) $ECHO_C" >&6
  7458. else
  7459. cat >conftest.$ac_ext <<_ACEOF
  7460. /* confdefs.h. */
  7461. _ACEOF
  7462. cat confdefs.h >>conftest.$ac_ext
  7463. cat >>conftest.$ac_ext <<_ACEOF
  7464. /* end confdefs.h. */
  7465. #include <sys/types.h>
  7466. #include <stdint.h>
  7467. int
  7468. main ()
  7469. {
  7470. uintmax_t i = (uintmax_t) -1; return !i;
  7471. ;
  7472. return 0;
  7473. }
  7474. _ACEOF
  7475. rm -f conftest.$ac_objext
  7476. if { (ac_try="$ac_compile"
  7477. case "(($ac_try" in
  7478. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7479. *) ac_try_echo=$ac_try;;
  7480. esac
  7481. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7482. (eval "$ac_compile") 2>conftest.er1
  7483. ac_status=$?
  7484. grep -v '^ *+' conftest.er1 >conftest.err
  7485. rm -f conftest.er1
  7486. cat conftest.err >&5
  7487. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7488. (exit $ac_status); } && {
  7489. test -z "$ac_cxx_werror_flag" ||
  7490. test ! -s conftest.err
  7491. } && test -s conftest.$ac_objext; then
  7492. gl_cv_header_stdint_h=yes
  7493. else
  7494. echo "$as_me: failed program was:" >&5
  7495. sed 's/^/| /' conftest.$ac_ext >&5
  7496. gl_cv_header_stdint_h=no
  7497. fi
  7498. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7499. fi
  7500. { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  7501. echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
  7502. if test $gl_cv_header_stdint_h = yes; then
  7503. cat >>confdefs.h <<_ACEOF
  7504. #define HAVE_STDINT_H_WITH_UINTMAX 1
  7505. _ACEOF
  7506. fi
  7507. for ac_header in stdlib.h unistd.h
  7508. do
  7509. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7510. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7511. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7512. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7513. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7514. echo $ECHO_N "(cached) $ECHO_C" >&6
  7515. fi
  7516. ac_res=`eval echo '${'$as_ac_Header'}'`
  7517. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7518. echo "${ECHO_T}$ac_res" >&6; }
  7519. else
  7520. # Is the header compilable?
  7521. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7522. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7523. cat >conftest.$ac_ext <<_ACEOF
  7524. /* confdefs.h. */
  7525. _ACEOF
  7526. cat confdefs.h >>conftest.$ac_ext
  7527. cat >>conftest.$ac_ext <<_ACEOF
  7528. /* end confdefs.h. */
  7529. $ac_includes_default
  7530. #include <$ac_header>
  7531. _ACEOF
  7532. rm -f conftest.$ac_objext
  7533. if { (ac_try="$ac_compile"
  7534. case "(($ac_try" in
  7535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7536. *) ac_try_echo=$ac_try;;
  7537. esac
  7538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7539. (eval "$ac_compile") 2>conftest.er1
  7540. ac_status=$?
  7541. grep -v '^ *+' conftest.er1 >conftest.err
  7542. rm -f conftest.er1
  7543. cat conftest.err >&5
  7544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7545. (exit $ac_status); } && {
  7546. test -z "$ac_cxx_werror_flag" ||
  7547. test ! -s conftest.err
  7548. } && test -s conftest.$ac_objext; then
  7549. ac_header_compiler=yes
  7550. else
  7551. echo "$as_me: failed program was:" >&5
  7552. sed 's/^/| /' conftest.$ac_ext >&5
  7553. ac_header_compiler=no
  7554. fi
  7555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7556. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7557. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7558. # Is the header present?
  7559. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7560. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7561. cat >conftest.$ac_ext <<_ACEOF
  7562. /* confdefs.h. */
  7563. _ACEOF
  7564. cat confdefs.h >>conftest.$ac_ext
  7565. cat >>conftest.$ac_ext <<_ACEOF
  7566. /* end confdefs.h. */
  7567. #include <$ac_header>
  7568. _ACEOF
  7569. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7570. case "(($ac_try" in
  7571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7572. *) ac_try_echo=$ac_try;;
  7573. esac
  7574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7575. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7576. ac_status=$?
  7577. grep -v '^ *+' conftest.er1 >conftest.err
  7578. rm -f conftest.er1
  7579. cat conftest.err >&5
  7580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7581. (exit $ac_status); } >/dev/null && {
  7582. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7583. test ! -s conftest.err
  7584. }; then
  7585. ac_header_preproc=yes
  7586. else
  7587. echo "$as_me: failed program was:" >&5
  7588. sed 's/^/| /' conftest.$ac_ext >&5
  7589. ac_header_preproc=no
  7590. fi
  7591. rm -f conftest.err conftest.$ac_ext
  7592. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7593. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7594. # So? What about this header?
  7595. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7596. yes:no: )
  7597. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7598. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7599. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7600. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7601. ac_header_preproc=yes
  7602. ;;
  7603. no:yes:* )
  7604. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7605. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7606. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7607. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7608. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7609. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7610. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7611. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7612. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7613. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7614. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7615. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7616. ( cat <<\_ASBOX
  7617. ## ----------------------------------------------- ##
  7618. ## Report this to t-tujikawa@users.sourceforge.net ##
  7619. ## ----------------------------------------------- ##
  7620. _ASBOX
  7621. ) | sed "s/^/$as_me: WARNING: /" >&2
  7622. ;;
  7623. esac
  7624. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7625. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7626. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7627. echo $ECHO_N "(cached) $ECHO_C" >&6
  7628. else
  7629. eval "$as_ac_Header=\$ac_header_preproc"
  7630. fi
  7631. ac_res=`eval echo '${'$as_ac_Header'}'`
  7632. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7633. echo "${ECHO_T}$ac_res" >&6; }
  7634. fi
  7635. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7636. cat >>confdefs.h <<_ACEOF
  7637. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7638. _ACEOF
  7639. fi
  7640. done
  7641. for ac_func in getpagesize
  7642. do
  7643. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7644. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7645. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7646. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7647. echo $ECHO_N "(cached) $ECHO_C" >&6
  7648. else
  7649. cat >conftest.$ac_ext <<_ACEOF
  7650. /* confdefs.h. */
  7651. _ACEOF
  7652. cat confdefs.h >>conftest.$ac_ext
  7653. cat >>conftest.$ac_ext <<_ACEOF
  7654. /* end confdefs.h. */
  7655. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7656. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7657. #define $ac_func innocuous_$ac_func
  7658. /* System header to define __stub macros and hopefully few prototypes,
  7659. which can conflict with char $ac_func (); below.
  7660. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7661. <limits.h> exists even on freestanding compilers. */
  7662. #ifdef __STDC__
  7663. # include <limits.h>
  7664. #else
  7665. # include <assert.h>
  7666. #endif
  7667. #undef $ac_func
  7668. /* Override any GCC internal prototype to avoid an error.
  7669. Use char because int might match the return type of a GCC
  7670. builtin and then its argument prototype would still apply. */
  7671. #ifdef __cplusplus
  7672. extern "C"
  7673. #endif
  7674. char $ac_func ();
  7675. /* The GNU C library defines this for functions which it implements
  7676. to always fail with ENOSYS. Some functions are actually named
  7677. something starting with __ and the normal name is an alias. */
  7678. #if defined __stub_$ac_func || defined __stub___$ac_func
  7679. choke me
  7680. #endif
  7681. int
  7682. main ()
  7683. {
  7684. return $ac_func ();
  7685. ;
  7686. return 0;
  7687. }
  7688. _ACEOF
  7689. rm -f conftest.$ac_objext conftest$ac_exeext
  7690. if { (ac_try="$ac_link"
  7691. case "(($ac_try" in
  7692. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7693. *) ac_try_echo=$ac_try;;
  7694. esac
  7695. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7696. (eval "$ac_link") 2>conftest.er1
  7697. ac_status=$?
  7698. grep -v '^ *+' conftest.er1 >conftest.err
  7699. rm -f conftest.er1
  7700. cat conftest.err >&5
  7701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7702. (exit $ac_status); } && {
  7703. test -z "$ac_cxx_werror_flag" ||
  7704. test ! -s conftest.err
  7705. } && test -s conftest$ac_exeext &&
  7706. $as_test_x conftest$ac_exeext; then
  7707. eval "$as_ac_var=yes"
  7708. else
  7709. echo "$as_me: failed program was:" >&5
  7710. sed 's/^/| /' conftest.$ac_ext >&5
  7711. eval "$as_ac_var=no"
  7712. fi
  7713. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7714. conftest$ac_exeext conftest.$ac_ext
  7715. fi
  7716. ac_res=`eval echo '${'$as_ac_var'}'`
  7717. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7718. echo "${ECHO_T}$ac_res" >&6; }
  7719. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7720. cat >>confdefs.h <<_ACEOF
  7721. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7722. _ACEOF
  7723. fi
  7724. done
  7725. { echo "$as_me:$LINENO: checking for working mmap" >&5
  7726. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  7727. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  7728. echo $ECHO_N "(cached) $ECHO_C" >&6
  7729. else
  7730. if test "$cross_compiling" = yes; then
  7731. ac_cv_func_mmap_fixed_mapped=no
  7732. else
  7733. cat >conftest.$ac_ext <<_ACEOF
  7734. /* confdefs.h. */
  7735. _ACEOF
  7736. cat confdefs.h >>conftest.$ac_ext
  7737. cat >>conftest.$ac_ext <<_ACEOF
  7738. /* end confdefs.h. */
  7739. $ac_includes_default
  7740. /* malloc might have been renamed as rpl_malloc. */
  7741. #undef malloc
  7742. /* Thanks to Mike Haertel and Jim Avera for this test.
  7743. Here is a matrix of mmap possibilities:
  7744. mmap private not fixed
  7745. mmap private fixed at somewhere currently unmapped
  7746. mmap private fixed at somewhere already mapped
  7747. mmap shared not fixed
  7748. mmap shared fixed at somewhere currently unmapped
  7749. mmap shared fixed at somewhere already mapped
  7750. For private mappings, we should verify that changes cannot be read()
  7751. back from the file, nor mmap's back from the file at a different
  7752. address. (There have been systems where private was not correctly
  7753. implemented like the infamous i386 svr4.0, and systems where the
  7754. VM page cache was not coherent with the file system buffer cache
  7755. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7756. For shared mappings, we should conversely verify that changes get
  7757. propagated back to all the places they're supposed to be.
  7758. Grep wants private fixed already mapped.
  7759. The main things grep needs to know about mmap are:
  7760. * does it exist and is it safe to write into the mmap'd area
  7761. * how to use it (BSD variants) */
  7762. #include <fcntl.h>
  7763. #include <sys/mman.h>
  7764. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7765. char *malloc ();
  7766. #endif
  7767. /* This mess was copied from the GNU getpagesize.h. */
  7768. #ifndef HAVE_GETPAGESIZE
  7769. /* Assume that all systems that can run configure have sys/param.h. */
  7770. # ifndef HAVE_SYS_PARAM_H
  7771. # define HAVE_SYS_PARAM_H 1
  7772. # endif
  7773. # ifdef _SC_PAGESIZE
  7774. # define getpagesize() sysconf(_SC_PAGESIZE)
  7775. # else /* no _SC_PAGESIZE */
  7776. # ifdef HAVE_SYS_PARAM_H
  7777. # include <sys/param.h>
  7778. # ifdef EXEC_PAGESIZE
  7779. # define getpagesize() EXEC_PAGESIZE
  7780. # else /* no EXEC_PAGESIZE */
  7781. # ifdef NBPG
  7782. # define getpagesize() NBPG * CLSIZE
  7783. # ifndef CLSIZE
  7784. # define CLSIZE 1
  7785. # endif /* no CLSIZE */
  7786. # else /* no NBPG */
  7787. # ifdef NBPC
  7788. # define getpagesize() NBPC
  7789. # else /* no NBPC */
  7790. # ifdef PAGESIZE
  7791. # define getpagesize() PAGESIZE
  7792. # endif /* PAGESIZE */
  7793. # endif /* no NBPC */
  7794. # endif /* no NBPG */
  7795. # endif /* no EXEC_PAGESIZE */
  7796. # else /* no HAVE_SYS_PARAM_H */
  7797. # define getpagesize() 8192 /* punt totally */
  7798. # endif /* no HAVE_SYS_PARAM_H */
  7799. # endif /* no _SC_PAGESIZE */
  7800. #endif /* no HAVE_GETPAGESIZE */
  7801. int
  7802. main ()
  7803. {
  7804. char *data, *data2, *data3;
  7805. int i, pagesize;
  7806. int fd;
  7807. pagesize = getpagesize ();
  7808. /* First, make a file with some known garbage in it. */
  7809. data = (char *) malloc (pagesize);
  7810. if (!data)
  7811. return 1;
  7812. for (i = 0; i < pagesize; ++i)
  7813. *(data + i) = rand ();
  7814. umask (0);
  7815. fd = creat ("conftest.mmap", 0600);
  7816. if (fd < 0)
  7817. return 1;
  7818. if (write (fd, data, pagesize) != pagesize)
  7819. return 1;
  7820. close (fd);
  7821. /* Next, try to mmap the file at a fixed address which already has
  7822. something else allocated at it. If we can, also make sure that
  7823. we see the same garbage. */
  7824. fd = open ("conftest.mmap", O_RDWR);
  7825. if (fd < 0)
  7826. return 1;
  7827. data2 = (char *) malloc (2 * pagesize);
  7828. if (!data2)
  7829. return 1;
  7830. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  7831. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7832. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7833. return 1;
  7834. for (i = 0; i < pagesize; ++i)
  7835. if (*(data + i) != *(data2 + i))
  7836. return 1;
  7837. /* Finally, make sure that changes to the mapped area do not
  7838. percolate back to the file as seen by read(). (This is a bug on
  7839. some variants of i386 svr4.0.) */
  7840. for (i = 0; i < pagesize; ++i)
  7841. *(data2 + i) = *(data2 + i) + 1;
  7842. data3 = (char *) malloc (pagesize);
  7843. if (!data3)
  7844. return 1;
  7845. if (read (fd, data3, pagesize) != pagesize)
  7846. return 1;
  7847. for (i = 0; i < pagesize; ++i)
  7848. if (*(data + i) != *(data3 + i))
  7849. return 1;
  7850. close (fd);
  7851. return 0;
  7852. }
  7853. _ACEOF
  7854. rm -f conftest$ac_exeext
  7855. if { (ac_try="$ac_link"
  7856. case "(($ac_try" in
  7857. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7858. *) ac_try_echo=$ac_try;;
  7859. esac
  7860. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7861. (eval "$ac_link") 2>&5
  7862. ac_status=$?
  7863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7864. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7865. { (case "(($ac_try" in
  7866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7867. *) ac_try_echo=$ac_try;;
  7868. esac
  7869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7870. (eval "$ac_try") 2>&5
  7871. ac_status=$?
  7872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7873. (exit $ac_status); }; }; then
  7874. ac_cv_func_mmap_fixed_mapped=yes
  7875. else
  7876. echo "$as_me: program exited with status $ac_status" >&5
  7877. echo "$as_me: failed program was:" >&5
  7878. sed 's/^/| /' conftest.$ac_ext >&5
  7879. ( exit $ac_status )
  7880. ac_cv_func_mmap_fixed_mapped=no
  7881. fi
  7882. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7883. fi
  7884. fi
  7885. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7886. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  7887. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7888. cat >>confdefs.h <<\_ACEOF
  7889. #define HAVE_MMAP 1
  7890. _ACEOF
  7891. fi
  7892. rm -f conftest.mmap
  7893. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  7894. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  7895. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  7896. echo $ECHO_N "(cached) $ECHO_C" >&6
  7897. else
  7898. gt_cv_int_divbyzero_sigfpe=
  7899. case "$host_os" in
  7900. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  7901. # On MacOS X 10.2 or newer, just assume the same as when cross-
  7902. # compiling. If we were to perform the real test, 1 Crash Report
  7903. # dialog window would pop up.
  7904. case "$host_cpu" in
  7905. i[34567]86 | x86_64)
  7906. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  7907. esac
  7908. ;;
  7909. esac
  7910. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  7911. if test "$cross_compiling" = yes; then
  7912. # Guess based on the CPU.
  7913. case "$host_cpu" in
  7914. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  7915. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  7916. *)
  7917. gt_cv_int_divbyzero_sigfpe="guessing no";;
  7918. esac
  7919. else
  7920. cat >conftest.$ac_ext <<_ACEOF
  7921. /* confdefs.h. */
  7922. _ACEOF
  7923. cat confdefs.h >>conftest.$ac_ext
  7924. cat >>conftest.$ac_ext <<_ACEOF
  7925. /* end confdefs.h. */
  7926. #include <stdlib.h>
  7927. #include <signal.h>
  7928. static void
  7929. sigfpe_handler (int sig)
  7930. {
  7931. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  7932. exit (sig != SIGFPE);
  7933. }
  7934. int x = 1;
  7935. int y = 0;
  7936. int z;
  7937. int nan;
  7938. int main ()
  7939. {
  7940. signal (SIGFPE, sigfpe_handler);
  7941. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  7942. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  7943. signal (SIGTRAP, sigfpe_handler);
  7944. #endif
  7945. /* Linux/SPARC yields signal SIGILL. */
  7946. #if defined (__sparc__) && defined (__linux__)
  7947. signal (SIGILL, sigfpe_handler);
  7948. #endif
  7949. z = x / y;
  7950. nan = y / y;
  7951. exit (1);
  7952. }
  7953. _ACEOF
  7954. rm -f conftest$ac_exeext
  7955. if { (ac_try="$ac_link"
  7956. case "(($ac_try" in
  7957. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7958. *) ac_try_echo=$ac_try;;
  7959. esac
  7960. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7961. (eval "$ac_link") 2>&5
  7962. ac_status=$?
  7963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7964. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7965. { (case "(($ac_try" in
  7966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7967. *) ac_try_echo=$ac_try;;
  7968. esac
  7969. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7970. (eval "$ac_try") 2>&5
  7971. ac_status=$?
  7972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7973. (exit $ac_status); }; }; then
  7974. gt_cv_int_divbyzero_sigfpe=yes
  7975. else
  7976. echo "$as_me: program exited with status $ac_status" >&5
  7977. echo "$as_me: failed program was:" >&5
  7978. sed 's/^/| /' conftest.$ac_ext >&5
  7979. ( exit $ac_status )
  7980. gt_cv_int_divbyzero_sigfpe=no
  7981. fi
  7982. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7983. fi
  7984. fi
  7985. fi
  7986. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  7987. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  7988. case "$gt_cv_int_divbyzero_sigfpe" in
  7989. *yes) value=1;;
  7990. *) value=0;;
  7991. esac
  7992. cat >>confdefs.h <<_ACEOF
  7993. #define INTDIV0_RAISES_SIGFPE $value
  7994. _ACEOF
  7995. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7996. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7997. if test "${gl_cv_header_inttypes_h+set}" = set; then
  7998. echo $ECHO_N "(cached) $ECHO_C" >&6
  7999. else
  8000. cat >conftest.$ac_ext <<_ACEOF
  8001. /* confdefs.h. */
  8002. _ACEOF
  8003. cat confdefs.h >>conftest.$ac_ext
  8004. cat >>conftest.$ac_ext <<_ACEOF
  8005. /* end confdefs.h. */
  8006. #include <sys/types.h>
  8007. #include <inttypes.h>
  8008. int
  8009. main ()
  8010. {
  8011. uintmax_t i = (uintmax_t) -1; return !i;
  8012. ;
  8013. return 0;
  8014. }
  8015. _ACEOF
  8016. rm -f conftest.$ac_objext
  8017. if { (ac_try="$ac_compile"
  8018. case "(($ac_try" in
  8019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8020. *) ac_try_echo=$ac_try;;
  8021. esac
  8022. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8023. (eval "$ac_compile") 2>conftest.er1
  8024. ac_status=$?
  8025. grep -v '^ *+' conftest.er1 >conftest.err
  8026. rm -f conftest.er1
  8027. cat conftest.err >&5
  8028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8029. (exit $ac_status); } && {
  8030. test -z "$ac_cxx_werror_flag" ||
  8031. test ! -s conftest.err
  8032. } && test -s conftest.$ac_objext; then
  8033. gl_cv_header_inttypes_h=yes
  8034. else
  8035. echo "$as_me: failed program was:" >&5
  8036. sed 's/^/| /' conftest.$ac_ext >&5
  8037. gl_cv_header_inttypes_h=no
  8038. fi
  8039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8040. fi
  8041. { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  8042. echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
  8043. if test $gl_cv_header_inttypes_h = yes; then
  8044. cat >>confdefs.h <<_ACEOF
  8045. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  8046. _ACEOF
  8047. fi
  8048. { echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  8049. echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6; }
  8050. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  8051. echo $ECHO_N "(cached) $ECHO_C" >&6
  8052. else
  8053. cat >conftest.$ac_ext <<_ACEOF
  8054. /* confdefs.h. */
  8055. _ACEOF
  8056. cat confdefs.h >>conftest.$ac_ext
  8057. cat >>conftest.$ac_ext <<_ACEOF
  8058. /* end confdefs.h. */
  8059. /* Test preprocessor. */
  8060. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8061. error in preprocessor;
  8062. #endif
  8063. #if ! (18446744073709551615ULL <= -1ull)
  8064. error in preprocessor;
  8065. #endif
  8066. /* Test literals. */
  8067. long long int ll = 9223372036854775807ll;
  8068. long long int nll = -9223372036854775807LL;
  8069. unsigned long long int ull = 18446744073709551615ULL;
  8070. /* Test constant expressions. */
  8071. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  8072. ? 1 : -1)];
  8073. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  8074. ? 1 : -1)];
  8075. int i = 63;
  8076. int
  8077. main ()
  8078. {
  8079. /* Test availability of runtime routines for shift and division. */
  8080. long long int llmax = 9223372036854775807ll;
  8081. unsigned long long int ullmax = 18446744073709551615ull;
  8082. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  8083. | (llmax / ll) | (llmax % ll)
  8084. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  8085. | (ullmax / ull) | (ullmax % ull));
  8086. ;
  8087. return 0;
  8088. }
  8089. _ACEOF
  8090. rm -f conftest.$ac_objext conftest$ac_exeext
  8091. if { (ac_try="$ac_link"
  8092. case "(($ac_try" in
  8093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8094. *) ac_try_echo=$ac_try;;
  8095. esac
  8096. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8097. (eval "$ac_link") 2>conftest.er1
  8098. ac_status=$?
  8099. grep -v '^ *+' conftest.er1 >conftest.err
  8100. rm -f conftest.er1
  8101. cat conftest.err >&5
  8102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8103. (exit $ac_status); } && {
  8104. test -z "$ac_cxx_werror_flag" ||
  8105. test ! -s conftest.err
  8106. } && test -s conftest$ac_exeext &&
  8107. $as_test_x conftest$ac_exeext; then
  8108. ac_cv_type_unsigned_long_long_int=yes
  8109. else
  8110. echo "$as_me: failed program was:" >&5
  8111. sed 's/^/| /' conftest.$ac_ext >&5
  8112. ac_cv_type_unsigned_long_long_int=no
  8113. fi
  8114. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8115. conftest$ac_exeext conftest.$ac_ext
  8116. fi
  8117. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  8118. echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6; }
  8119. if test $ac_cv_type_unsigned_long_long_int = yes; then
  8120. cat >>confdefs.h <<\_ACEOF
  8121. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  8122. _ACEOF
  8123. fi
  8124. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  8125. test $ac_cv_type_unsigned_long_long_int = yes \
  8126. && ac_type='unsigned long long' \
  8127. || ac_type='unsigned long'
  8128. cat >>confdefs.h <<_ACEOF
  8129. #define uintmax_t $ac_type
  8130. _ACEOF
  8131. else
  8132. cat >>confdefs.h <<\_ACEOF
  8133. #define HAVE_UINTMAX_T 1
  8134. _ACEOF
  8135. fi
  8136. for ac_header in inttypes.h
  8137. do
  8138. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8139. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8140. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8141. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8142. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8143. echo $ECHO_N "(cached) $ECHO_C" >&6
  8144. fi
  8145. ac_res=`eval echo '${'$as_ac_Header'}'`
  8146. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8147. echo "${ECHO_T}$ac_res" >&6; }
  8148. else
  8149. # Is the header compilable?
  8150. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8151. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8152. cat >conftest.$ac_ext <<_ACEOF
  8153. /* confdefs.h. */
  8154. _ACEOF
  8155. cat confdefs.h >>conftest.$ac_ext
  8156. cat >>conftest.$ac_ext <<_ACEOF
  8157. /* end confdefs.h. */
  8158. $ac_includes_default
  8159. #include <$ac_header>
  8160. _ACEOF
  8161. rm -f conftest.$ac_objext
  8162. if { (ac_try="$ac_compile"
  8163. case "(($ac_try" in
  8164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8165. *) ac_try_echo=$ac_try;;
  8166. esac
  8167. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8168. (eval "$ac_compile") 2>conftest.er1
  8169. ac_status=$?
  8170. grep -v '^ *+' conftest.er1 >conftest.err
  8171. rm -f conftest.er1
  8172. cat conftest.err >&5
  8173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8174. (exit $ac_status); } && {
  8175. test -z "$ac_cxx_werror_flag" ||
  8176. test ! -s conftest.err
  8177. } && test -s conftest.$ac_objext; then
  8178. ac_header_compiler=yes
  8179. else
  8180. echo "$as_me: failed program was:" >&5
  8181. sed 's/^/| /' conftest.$ac_ext >&5
  8182. ac_header_compiler=no
  8183. fi
  8184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8185. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8186. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8187. # Is the header present?
  8188. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8189. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8190. cat >conftest.$ac_ext <<_ACEOF
  8191. /* confdefs.h. */
  8192. _ACEOF
  8193. cat confdefs.h >>conftest.$ac_ext
  8194. cat >>conftest.$ac_ext <<_ACEOF
  8195. /* end confdefs.h. */
  8196. #include <$ac_header>
  8197. _ACEOF
  8198. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8199. case "(($ac_try" in
  8200. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8201. *) ac_try_echo=$ac_try;;
  8202. esac
  8203. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8204. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8205. ac_status=$?
  8206. grep -v '^ *+' conftest.er1 >conftest.err
  8207. rm -f conftest.er1
  8208. cat conftest.err >&5
  8209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8210. (exit $ac_status); } >/dev/null && {
  8211. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8212. test ! -s conftest.err
  8213. }; then
  8214. ac_header_preproc=yes
  8215. else
  8216. echo "$as_me: failed program was:" >&5
  8217. sed 's/^/| /' conftest.$ac_ext >&5
  8218. ac_header_preproc=no
  8219. fi
  8220. rm -f conftest.err conftest.$ac_ext
  8221. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8222. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8223. # So? What about this header?
  8224. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8225. yes:no: )
  8226. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8227. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8228. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8229. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8230. ac_header_preproc=yes
  8231. ;;
  8232. no:yes:* )
  8233. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8234. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8235. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8236. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8237. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8238. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8239. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8240. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8241. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8242. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8243. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8244. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8245. ( cat <<\_ASBOX
  8246. ## ----------------------------------------------- ##
  8247. ## Report this to t-tujikawa@users.sourceforge.net ##
  8248. ## ----------------------------------------------- ##
  8249. _ASBOX
  8250. ) | sed "s/^/$as_me: WARNING: /" >&2
  8251. ;;
  8252. esac
  8253. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8254. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8255. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8256. echo $ECHO_N "(cached) $ECHO_C" >&6
  8257. else
  8258. eval "$as_ac_Header=\$ac_header_preproc"
  8259. fi
  8260. ac_res=`eval echo '${'$as_ac_Header'}'`
  8261. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8262. echo "${ECHO_T}$ac_res" >&6; }
  8263. fi
  8264. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8265. cat >>confdefs.h <<_ACEOF
  8266. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8267. _ACEOF
  8268. fi
  8269. done
  8270. if test $ac_cv_header_inttypes_h = yes; then
  8271. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  8272. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  8273. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  8274. echo $ECHO_N "(cached) $ECHO_C" >&6
  8275. else
  8276. cat >conftest.$ac_ext <<_ACEOF
  8277. /* confdefs.h. */
  8278. _ACEOF
  8279. cat confdefs.h >>conftest.$ac_ext
  8280. cat >>conftest.$ac_ext <<_ACEOF
  8281. /* end confdefs.h. */
  8282. #include <inttypes.h>
  8283. #ifdef PRId32
  8284. char *p = PRId32;
  8285. #endif
  8286. int
  8287. main ()
  8288. {
  8289. ;
  8290. return 0;
  8291. }
  8292. _ACEOF
  8293. rm -f conftest.$ac_objext
  8294. if { (ac_try="$ac_compile"
  8295. case "(($ac_try" in
  8296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8297. *) ac_try_echo=$ac_try;;
  8298. esac
  8299. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8300. (eval "$ac_compile") 2>conftest.er1
  8301. ac_status=$?
  8302. grep -v '^ *+' conftest.er1 >conftest.err
  8303. rm -f conftest.er1
  8304. cat conftest.err >&5
  8305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8306. (exit $ac_status); } && {
  8307. test -z "$ac_cxx_werror_flag" ||
  8308. test ! -s conftest.err
  8309. } && test -s conftest.$ac_objext; then
  8310. gt_cv_inttypes_pri_broken=no
  8311. else
  8312. echo "$as_me: failed program was:" >&5
  8313. sed 's/^/| /' conftest.$ac_ext >&5
  8314. gt_cv_inttypes_pri_broken=yes
  8315. fi
  8316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8317. fi
  8318. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  8319. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  8320. fi
  8321. if test "$gt_cv_inttypes_pri_broken" = yes; then
  8322. cat >>confdefs.h <<_ACEOF
  8323. #define PRI_MACROS_BROKEN 1
  8324. _ACEOF
  8325. PRI_MACROS_BROKEN=1
  8326. else
  8327. PRI_MACROS_BROKEN=0
  8328. fi
  8329. # Check whether --enable-threads was given.
  8330. if test "${enable_threads+set}" = set; then
  8331. enableval=$enable_threads; gl_use_threads=$enableval
  8332. else
  8333. case "$host_os" in
  8334. osf*) gl_use_threads=no ;;
  8335. *) gl_use_threads=yes ;;
  8336. esac
  8337. fi
  8338. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8339. # For using <pthread.h>:
  8340. case "$host_os" in
  8341. osf*)
  8342. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  8343. # groks <pthread.h>. cc also understands the flag -pthread, but
  8344. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  8345. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  8346. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  8347. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  8348. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  8349. ;;
  8350. esac
  8351. # Some systems optimize for single-threaded programs by default, and
  8352. # need special flags to disable these optimizations. For example, the
  8353. # definition of 'errno' in <errno.h>.
  8354. case "$host_os" in
  8355. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  8356. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  8357. esac
  8358. fi
  8359. if test "X$prefix" = "XNONE"; then
  8360. acl_final_prefix="$ac_default_prefix"
  8361. else
  8362. acl_final_prefix="$prefix"
  8363. fi
  8364. if test "X$exec_prefix" = "XNONE"; then
  8365. acl_final_exec_prefix='${prefix}'
  8366. else
  8367. acl_final_exec_prefix="$exec_prefix"
  8368. fi
  8369. acl_save_prefix="$prefix"
  8370. prefix="$acl_final_prefix"
  8371. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  8372. prefix="$acl_save_prefix"
  8373. # Check whether --with-gnu-ld was given.
  8374. if test "${with_gnu_ld+set}" = set; then
  8375. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  8376. else
  8377. with_gnu_ld=no
  8378. fi
  8379. # Prepare PATH_SEPARATOR.
  8380. # The user is always right.
  8381. if test "${PATH_SEPARATOR+set}" != set; then
  8382. echo "#! /bin/sh" >conf$$.sh
  8383. echo "exit 0" >>conf$$.sh
  8384. chmod +x conf$$.sh
  8385. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8386. PATH_SEPARATOR=';'
  8387. else
  8388. PATH_SEPARATOR=:
  8389. fi
  8390. rm -f conf$$.sh
  8391. fi
  8392. ac_prog=ld
  8393. if test "$GCC" = yes; then
  8394. # Check if gcc -print-prog-name=ld gives a path.
  8395. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  8396. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  8397. case $host in
  8398. *-*-mingw*)
  8399. # gcc leaves a trailing carriage return which upsets mingw
  8400. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8401. *)
  8402. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8403. esac
  8404. case $ac_prog in
  8405. # Accept absolute paths.
  8406. [\\/]* | [A-Za-z]:[\\/]*)
  8407. re_direlt='/[^/][^/]*/\.\./'
  8408. # Canonicalize the path of ld
  8409. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8410. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8411. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8412. done
  8413. test -z "$LD" && LD="$ac_prog"
  8414. ;;
  8415. "")
  8416. # If it fails, then pretend we aren't using GCC.
  8417. ac_prog=ld
  8418. ;;
  8419. *)
  8420. # If it is relative, then search for the first ld in PATH.
  8421. with_gnu_ld=unknown
  8422. ;;
  8423. esac
  8424. elif test "$with_gnu_ld" = yes; then
  8425. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  8426. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  8427. else
  8428. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  8429. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  8430. fi
  8431. if test "${acl_cv_path_LD+set}" = set; then
  8432. echo $ECHO_N "(cached) $ECHO_C" >&6
  8433. else
  8434. if test -z "$LD"; then
  8435. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  8436. for ac_dir in $PATH; do
  8437. test -z "$ac_dir" && ac_dir=.
  8438. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8439. acl_cv_path_LD="$ac_dir/$ac_prog"
  8440. # Check to see if the program is GNU ld. I'd rather use --version,
  8441. # but apparently some GNU ld's only accept -v.
  8442. # Break only if it was the GNU/non-GNU ld that we prefer.
  8443. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  8444. *GNU* | *'with BFD'*)
  8445. test "$with_gnu_ld" != no && break ;;
  8446. *)
  8447. test "$with_gnu_ld" != yes && break ;;
  8448. esac
  8449. fi
  8450. done
  8451. IFS="$ac_save_ifs"
  8452. else
  8453. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  8454. fi
  8455. fi
  8456. LD="$acl_cv_path_LD"
  8457. if test -n "$LD"; then
  8458. { echo "$as_me:$LINENO: result: $LD" >&5
  8459. echo "${ECHO_T}$LD" >&6; }
  8460. else
  8461. { echo "$as_me:$LINENO: result: no" >&5
  8462. echo "${ECHO_T}no" >&6; }
  8463. fi
  8464. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  8465. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  8466. { (exit 1); exit 1; }; }
  8467. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  8468. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  8469. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  8470. echo $ECHO_N "(cached) $ECHO_C" >&6
  8471. else
  8472. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8473. case `$LD -v 2>&1 </dev/null` in
  8474. *GNU* | *'with BFD'*)
  8475. acl_cv_prog_gnu_ld=yes ;;
  8476. *)
  8477. acl_cv_prog_gnu_ld=no ;;
  8478. esac
  8479. fi
  8480. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  8481. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  8482. with_gnu_ld=$acl_cv_prog_gnu_ld
  8483. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  8484. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  8485. if test "${acl_cv_rpath+set}" = set; then
  8486. echo $ECHO_N "(cached) $ECHO_C" >&6
  8487. else
  8488. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  8489. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  8490. . ./conftest.sh
  8491. rm -f ./conftest.sh
  8492. acl_cv_rpath=done
  8493. fi
  8494. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  8495. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  8496. wl="$acl_cv_wl"
  8497. acl_libext="$acl_cv_libext"
  8498. acl_shlibext="$acl_cv_shlibext"
  8499. acl_libname_spec="$acl_cv_libname_spec"
  8500. acl_library_names_spec="$acl_cv_library_names_spec"
  8501. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  8502. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  8503. acl_hardcode_direct="$acl_cv_hardcode_direct"
  8504. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  8505. # Check whether --enable-rpath was given.
  8506. if test "${enable_rpath+set}" = set; then
  8507. enableval=$enable_rpath; :
  8508. else
  8509. enable_rpath=yes
  8510. fi
  8511. acl_libdirstem=lib
  8512. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  8513. if test -n "$searchpath"; then
  8514. acl_save_IFS="${IFS= }"; IFS=":"
  8515. for searchdir in $searchpath; do
  8516. if test -d "$searchdir"; then
  8517. case "$searchdir" in
  8518. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  8519. *) searchdir=`cd "$searchdir" && pwd`
  8520. case "$searchdir" in
  8521. */lib64 ) acl_libdirstem=lib64 ;;
  8522. esac ;;
  8523. esac
  8524. fi
  8525. done
  8526. IFS="$acl_save_IFS"
  8527. fi
  8528. gl_threads_api=none
  8529. LIBTHREAD=
  8530. LTLIBTHREAD=
  8531. LIBMULTITHREAD=
  8532. LTLIBMULTITHREAD=
  8533. if test "$gl_use_threads" != no; then
  8534. { echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  8535. echo $ECHO_N "checking whether imported symbols can be declared weak... $ECHO_C" >&6; }
  8536. gl_have_weak=no
  8537. cat >conftest.$ac_ext <<_ACEOF
  8538. /* confdefs.h. */
  8539. _ACEOF
  8540. cat confdefs.h >>conftest.$ac_ext
  8541. cat >>conftest.$ac_ext <<_ACEOF
  8542. /* end confdefs.h. */
  8543. extern void xyzzy ();
  8544. #pragma weak xyzzy
  8545. int
  8546. main ()
  8547. {
  8548. xyzzy();
  8549. ;
  8550. return 0;
  8551. }
  8552. _ACEOF
  8553. rm -f conftest.$ac_objext conftest$ac_exeext
  8554. if { (ac_try="$ac_link"
  8555. case "(($ac_try" in
  8556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8557. *) ac_try_echo=$ac_try;;
  8558. esac
  8559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8560. (eval "$ac_link") 2>conftest.er1
  8561. ac_status=$?
  8562. grep -v '^ *+' conftest.er1 >conftest.err
  8563. rm -f conftest.er1
  8564. cat conftest.err >&5
  8565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8566. (exit $ac_status); } && {
  8567. test -z "$ac_cxx_werror_flag" ||
  8568. test ! -s conftest.err
  8569. } && test -s conftest$ac_exeext &&
  8570. $as_test_x conftest$ac_exeext; then
  8571. gl_have_weak=yes
  8572. else
  8573. echo "$as_me: failed program was:" >&5
  8574. sed 's/^/| /' conftest.$ac_ext >&5
  8575. fi
  8576. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8577. conftest$ac_exeext conftest.$ac_ext
  8578. { echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  8579. echo "${ECHO_T}$gl_have_weak" >&6; }
  8580. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  8581. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  8582. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  8583. if test "${ac_cv_header_pthread_h+set}" = set; then
  8584. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  8585. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  8586. if test "${ac_cv_header_pthread_h+set}" = set; then
  8587. echo $ECHO_N "(cached) $ECHO_C" >&6
  8588. fi
  8589. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  8590. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  8591. else
  8592. # Is the header compilable?
  8593. { echo "$as_me:$LINENO: checking pthread.h usability" >&5
  8594. echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
  8595. cat >conftest.$ac_ext <<_ACEOF
  8596. /* confdefs.h. */
  8597. _ACEOF
  8598. cat confdefs.h >>conftest.$ac_ext
  8599. cat >>conftest.$ac_ext <<_ACEOF
  8600. /* end confdefs.h. */
  8601. $ac_includes_default
  8602. #include <pthread.h>
  8603. _ACEOF
  8604. rm -f conftest.$ac_objext
  8605. if { (ac_try="$ac_compile"
  8606. case "(($ac_try" in
  8607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8608. *) ac_try_echo=$ac_try;;
  8609. esac
  8610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8611. (eval "$ac_compile") 2>conftest.er1
  8612. ac_status=$?
  8613. grep -v '^ *+' conftest.er1 >conftest.err
  8614. rm -f conftest.er1
  8615. cat conftest.err >&5
  8616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8617. (exit $ac_status); } && {
  8618. test -z "$ac_cxx_werror_flag" ||
  8619. test ! -s conftest.err
  8620. } && test -s conftest.$ac_objext; then
  8621. ac_header_compiler=yes
  8622. else
  8623. echo "$as_me: failed program was:" >&5
  8624. sed 's/^/| /' conftest.$ac_ext >&5
  8625. ac_header_compiler=no
  8626. fi
  8627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8628. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8629. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8630. # Is the header present?
  8631. { echo "$as_me:$LINENO: checking pthread.h presence" >&5
  8632. echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
  8633. cat >conftest.$ac_ext <<_ACEOF
  8634. /* confdefs.h. */
  8635. _ACEOF
  8636. cat confdefs.h >>conftest.$ac_ext
  8637. cat >>conftest.$ac_ext <<_ACEOF
  8638. /* end confdefs.h. */
  8639. #include <pthread.h>
  8640. _ACEOF
  8641. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8642. case "(($ac_try" in
  8643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8644. *) ac_try_echo=$ac_try;;
  8645. esac
  8646. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8647. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8648. ac_status=$?
  8649. grep -v '^ *+' conftest.er1 >conftest.err
  8650. rm -f conftest.er1
  8651. cat conftest.err >&5
  8652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8653. (exit $ac_status); } >/dev/null && {
  8654. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8655. test ! -s conftest.err
  8656. }; then
  8657. ac_header_preproc=yes
  8658. else
  8659. echo "$as_me: failed program was:" >&5
  8660. sed 's/^/| /' conftest.$ac_ext >&5
  8661. ac_header_preproc=no
  8662. fi
  8663. rm -f conftest.err conftest.$ac_ext
  8664. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8665. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8666. # So? What about this header?
  8667. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8668. yes:no: )
  8669. { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  8670. echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8671. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  8672. echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  8673. ac_header_preproc=yes
  8674. ;;
  8675. no:yes:* )
  8676. { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  8677. echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  8678. { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  8679. echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  8680. { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  8681. echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  8682. { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  8683. echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  8684. { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  8685. echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  8686. { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  8687. echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  8688. ( cat <<\_ASBOX
  8689. ## ----------------------------------------------- ##
  8690. ## Report this to t-tujikawa@users.sourceforge.net ##
  8691. ## ----------------------------------------------- ##
  8692. _ASBOX
  8693. ) | sed "s/^/$as_me: WARNING: /" >&2
  8694. ;;
  8695. esac
  8696. { echo "$as_me:$LINENO: checking for pthread.h" >&5
  8697. echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
  8698. if test "${ac_cv_header_pthread_h+set}" = set; then
  8699. echo $ECHO_N "(cached) $ECHO_C" >&6
  8700. else
  8701. ac_cv_header_pthread_h=$ac_header_preproc
  8702. fi
  8703. { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  8704. echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
  8705. fi
  8706. if test $ac_cv_header_pthread_h = yes; then
  8707. gl_have_pthread_h=yes
  8708. else
  8709. gl_have_pthread_h=no
  8710. fi
  8711. if test "$gl_have_pthread_h" = yes; then
  8712. # Other possible tests:
  8713. # -lpthreads (FSU threads, PCthreads)
  8714. # -lgthreads
  8715. gl_have_pthread=
  8716. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  8717. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  8718. # the second one only in libpthread, and lock.c needs it.
  8719. cat >conftest.$ac_ext <<_ACEOF
  8720. /* confdefs.h. */
  8721. _ACEOF
  8722. cat confdefs.h >>conftest.$ac_ext
  8723. cat >>conftest.$ac_ext <<_ACEOF
  8724. /* end confdefs.h. */
  8725. #include <pthread.h>
  8726. int
  8727. main ()
  8728. {
  8729. pthread_mutex_lock((pthread_mutex_t*)0);
  8730. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  8731. ;
  8732. return 0;
  8733. }
  8734. _ACEOF
  8735. rm -f conftest.$ac_objext conftest$ac_exeext
  8736. if { (ac_try="$ac_link"
  8737. case "(($ac_try" in
  8738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8739. *) ac_try_echo=$ac_try;;
  8740. esac
  8741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8742. (eval "$ac_link") 2>conftest.er1
  8743. ac_status=$?
  8744. grep -v '^ *+' conftest.er1 >conftest.err
  8745. rm -f conftest.er1
  8746. cat conftest.err >&5
  8747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8748. (exit $ac_status); } && {
  8749. test -z "$ac_cxx_werror_flag" ||
  8750. test ! -s conftest.err
  8751. } && test -s conftest$ac_exeext &&
  8752. $as_test_x conftest$ac_exeext; then
  8753. gl_have_pthread=yes
  8754. else
  8755. echo "$as_me: failed program was:" >&5
  8756. sed 's/^/| /' conftest.$ac_ext >&5
  8757. fi
  8758. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8759. conftest$ac_exeext conftest.$ac_ext
  8760. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  8761. # since it is defined as a macro on OSF/1.)
  8762. if test -n "$gl_have_pthread"; then
  8763. # The program links fine without libpthread. But it may actually
  8764. # need to link with libpthread in order to create multiple threads.
  8765. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  8766. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  8767. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  8768. echo $ECHO_N "(cached) $ECHO_C" >&6
  8769. else
  8770. ac_check_lib_save_LIBS=$LIBS
  8771. LIBS="-lpthread $LIBS"
  8772. cat >conftest.$ac_ext <<_ACEOF
  8773. /* confdefs.h. */
  8774. _ACEOF
  8775. cat confdefs.h >>conftest.$ac_ext
  8776. cat >>conftest.$ac_ext <<_ACEOF
  8777. /* end confdefs.h. */
  8778. /* Override any GCC internal prototype to avoid an error.
  8779. Use char because int might match the return type of a GCC
  8780. builtin and then its argument prototype would still apply. */
  8781. #ifdef __cplusplus
  8782. extern "C"
  8783. #endif
  8784. char pthread_kill ();
  8785. int
  8786. main ()
  8787. {
  8788. return pthread_kill ();
  8789. ;
  8790. return 0;
  8791. }
  8792. _ACEOF
  8793. rm -f conftest.$ac_objext conftest$ac_exeext
  8794. if { (ac_try="$ac_link"
  8795. case "(($ac_try" in
  8796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8797. *) ac_try_echo=$ac_try;;
  8798. esac
  8799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8800. (eval "$ac_link") 2>conftest.er1
  8801. ac_status=$?
  8802. grep -v '^ *+' conftest.er1 >conftest.err
  8803. rm -f conftest.er1
  8804. cat conftest.err >&5
  8805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8806. (exit $ac_status); } && {
  8807. test -z "$ac_cxx_werror_flag" ||
  8808. test ! -s conftest.err
  8809. } && test -s conftest$ac_exeext &&
  8810. $as_test_x conftest$ac_exeext; then
  8811. ac_cv_lib_pthread_pthread_kill=yes
  8812. else
  8813. echo "$as_me: failed program was:" >&5
  8814. sed 's/^/| /' conftest.$ac_ext >&5
  8815. ac_cv_lib_pthread_pthread_kill=no
  8816. fi
  8817. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8818. conftest$ac_exeext conftest.$ac_ext
  8819. LIBS=$ac_check_lib_save_LIBS
  8820. fi
  8821. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8822. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  8823. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  8824. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8825. # On Solaris and HP-UX, most pthread functions exist also in libc.
  8826. # Therefore pthread_in_use() needs to actually try to create a
  8827. # thread: pthread_create from libc will fail, whereas
  8828. # pthread_create will actually create a thread.
  8829. case "$host_os" in
  8830. solaris* | hpux*)
  8831. cat >>confdefs.h <<\_ACEOF
  8832. #define PTHREAD_IN_USE_DETECTION_HARD 1
  8833. _ACEOF
  8834. esac
  8835. fi
  8836. else
  8837. # Some library is needed. Try libpthread and libc_r.
  8838. { echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  8839. echo $ECHO_N "checking for pthread_kill in -lpthread... $ECHO_C" >&6; }
  8840. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  8841. echo $ECHO_N "(cached) $ECHO_C" >&6
  8842. else
  8843. ac_check_lib_save_LIBS=$LIBS
  8844. LIBS="-lpthread $LIBS"
  8845. cat >conftest.$ac_ext <<_ACEOF
  8846. /* confdefs.h. */
  8847. _ACEOF
  8848. cat confdefs.h >>conftest.$ac_ext
  8849. cat >>conftest.$ac_ext <<_ACEOF
  8850. /* end confdefs.h. */
  8851. /* Override any GCC internal prototype to avoid an error.
  8852. Use char because int might match the return type of a GCC
  8853. builtin and then its argument prototype would still apply. */
  8854. #ifdef __cplusplus
  8855. extern "C"
  8856. #endif
  8857. char pthread_kill ();
  8858. int
  8859. main ()
  8860. {
  8861. return pthread_kill ();
  8862. ;
  8863. return 0;
  8864. }
  8865. _ACEOF
  8866. rm -f conftest.$ac_objext conftest$ac_exeext
  8867. if { (ac_try="$ac_link"
  8868. case "(($ac_try" in
  8869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8870. *) ac_try_echo=$ac_try;;
  8871. esac
  8872. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8873. (eval "$ac_link") 2>conftest.er1
  8874. ac_status=$?
  8875. grep -v '^ *+' conftest.er1 >conftest.err
  8876. rm -f conftest.er1
  8877. cat conftest.err >&5
  8878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8879. (exit $ac_status); } && {
  8880. test -z "$ac_cxx_werror_flag" ||
  8881. test ! -s conftest.err
  8882. } && test -s conftest$ac_exeext &&
  8883. $as_test_x conftest$ac_exeext; then
  8884. ac_cv_lib_pthread_pthread_kill=yes
  8885. else
  8886. echo "$as_me: failed program was:" >&5
  8887. sed 's/^/| /' conftest.$ac_ext >&5
  8888. ac_cv_lib_pthread_pthread_kill=no
  8889. fi
  8890. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8891. conftest$ac_exeext conftest.$ac_ext
  8892. LIBS=$ac_check_lib_save_LIBS
  8893. fi
  8894. { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  8895. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_kill" >&6; }
  8896. if test $ac_cv_lib_pthread_pthread_kill = yes; then
  8897. gl_have_pthread=yes
  8898. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  8899. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  8900. fi
  8901. if test -z "$gl_have_pthread"; then
  8902. # For FreeBSD 4.
  8903. { echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  8904. echo $ECHO_N "checking for pthread_kill in -lc_r... $ECHO_C" >&6; }
  8905. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  8906. echo $ECHO_N "(cached) $ECHO_C" >&6
  8907. else
  8908. ac_check_lib_save_LIBS=$LIBS
  8909. LIBS="-lc_r $LIBS"
  8910. cat >conftest.$ac_ext <<_ACEOF
  8911. /* confdefs.h. */
  8912. _ACEOF
  8913. cat confdefs.h >>conftest.$ac_ext
  8914. cat >>conftest.$ac_ext <<_ACEOF
  8915. /* end confdefs.h. */
  8916. /* Override any GCC internal prototype to avoid an error.
  8917. Use char because int might match the return type of a GCC
  8918. builtin and then its argument prototype would still apply. */
  8919. #ifdef __cplusplus
  8920. extern "C"
  8921. #endif
  8922. char pthread_kill ();
  8923. int
  8924. main ()
  8925. {
  8926. return pthread_kill ();
  8927. ;
  8928. return 0;
  8929. }
  8930. _ACEOF
  8931. rm -f conftest.$ac_objext conftest$ac_exeext
  8932. if { (ac_try="$ac_link"
  8933. case "(($ac_try" in
  8934. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8935. *) ac_try_echo=$ac_try;;
  8936. esac
  8937. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8938. (eval "$ac_link") 2>conftest.er1
  8939. ac_status=$?
  8940. grep -v '^ *+' conftest.er1 >conftest.err
  8941. rm -f conftest.er1
  8942. cat conftest.err >&5
  8943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8944. (exit $ac_status); } && {
  8945. test -z "$ac_cxx_werror_flag" ||
  8946. test ! -s conftest.err
  8947. } && test -s conftest$ac_exeext &&
  8948. $as_test_x conftest$ac_exeext; then
  8949. ac_cv_lib_c_r_pthread_kill=yes
  8950. else
  8951. echo "$as_me: failed program was:" >&5
  8952. sed 's/^/| /' conftest.$ac_ext >&5
  8953. ac_cv_lib_c_r_pthread_kill=no
  8954. fi
  8955. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8956. conftest$ac_exeext conftest.$ac_ext
  8957. LIBS=$ac_check_lib_save_LIBS
  8958. fi
  8959. { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  8960. echo "${ECHO_T}$ac_cv_lib_c_r_pthread_kill" >&6; }
  8961. if test $ac_cv_lib_c_r_pthread_kill = yes; then
  8962. gl_have_pthread=yes
  8963. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  8964. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  8965. fi
  8966. fi
  8967. fi
  8968. if test -n "$gl_have_pthread"; then
  8969. gl_threads_api=posix
  8970. cat >>confdefs.h <<\_ACEOF
  8971. #define USE_POSIX_THREADS 1
  8972. _ACEOF
  8973. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  8974. if test $gl_have_weak = yes; then
  8975. cat >>confdefs.h <<\_ACEOF
  8976. #define USE_POSIX_THREADS_WEAK 1
  8977. _ACEOF
  8978. LIBTHREAD=
  8979. LTLIBTHREAD=
  8980. fi
  8981. fi
  8982. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  8983. # pthread_rwlock_* functions.
  8984. { echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  8985. echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6; }
  8986. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  8987. echo $ECHO_N "(cached) $ECHO_C" >&6
  8988. else
  8989. cat >conftest.$ac_ext <<_ACEOF
  8990. /* confdefs.h. */
  8991. _ACEOF
  8992. cat confdefs.h >>conftest.$ac_ext
  8993. cat >>conftest.$ac_ext <<_ACEOF
  8994. /* end confdefs.h. */
  8995. #include <pthread.h>
  8996. typedef pthread_rwlock_t ac__type_new_;
  8997. int
  8998. main ()
  8999. {
  9000. if ((ac__type_new_ *) 0)
  9001. return 0;
  9002. if (sizeof (ac__type_new_))
  9003. return 0;
  9004. ;
  9005. return 0;
  9006. }
  9007. _ACEOF
  9008. rm -f conftest.$ac_objext
  9009. if { (ac_try="$ac_compile"
  9010. case "(($ac_try" in
  9011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9012. *) ac_try_echo=$ac_try;;
  9013. esac
  9014. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9015. (eval "$ac_compile") 2>conftest.er1
  9016. ac_status=$?
  9017. grep -v '^ *+' conftest.er1 >conftest.err
  9018. rm -f conftest.er1
  9019. cat conftest.err >&5
  9020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9021. (exit $ac_status); } && {
  9022. test -z "$ac_cxx_werror_flag" ||
  9023. test ! -s conftest.err
  9024. } && test -s conftest.$ac_objext; then
  9025. ac_cv_type_pthread_rwlock_t=yes
  9026. else
  9027. echo "$as_me: failed program was:" >&5
  9028. sed 's/^/| /' conftest.$ac_ext >&5
  9029. ac_cv_type_pthread_rwlock_t=no
  9030. fi
  9031. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9032. fi
  9033. { echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  9034. echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6; }
  9035. if test $ac_cv_type_pthread_rwlock_t = yes; then
  9036. cat >>confdefs.h <<\_ACEOF
  9037. #define HAVE_PTHREAD_RWLOCK 1
  9038. _ACEOF
  9039. fi
  9040. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  9041. cat >conftest.$ac_ext <<_ACEOF
  9042. /* confdefs.h. */
  9043. _ACEOF
  9044. cat confdefs.h >>conftest.$ac_ext
  9045. cat >>conftest.$ac_ext <<_ACEOF
  9046. /* end confdefs.h. */
  9047. #include <pthread.h>
  9048. int
  9049. main ()
  9050. {
  9051. #if __FreeBSD__ == 4
  9052. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  9053. #else
  9054. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  9055. return !x;
  9056. #endif
  9057. ;
  9058. return 0;
  9059. }
  9060. _ACEOF
  9061. rm -f conftest.$ac_objext
  9062. if { (ac_try="$ac_compile"
  9063. case "(($ac_try" in
  9064. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9065. *) ac_try_echo=$ac_try;;
  9066. esac
  9067. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9068. (eval "$ac_compile") 2>conftest.er1
  9069. ac_status=$?
  9070. grep -v '^ *+' conftest.er1 >conftest.err
  9071. rm -f conftest.er1
  9072. cat conftest.err >&5
  9073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9074. (exit $ac_status); } && {
  9075. test -z "$ac_cxx_werror_flag" ||
  9076. test ! -s conftest.err
  9077. } && test -s conftest.$ac_objext; then
  9078. cat >>confdefs.h <<\_ACEOF
  9079. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  9080. _ACEOF
  9081. else
  9082. echo "$as_me: failed program was:" >&5
  9083. sed 's/^/| /' conftest.$ac_ext >&5
  9084. fi
  9085. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9086. fi
  9087. fi
  9088. fi
  9089. if test -z "$gl_have_pthread"; then
  9090. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  9091. gl_have_solaristhread=
  9092. gl_save_LIBS="$LIBS"
  9093. LIBS="$LIBS -lthread"
  9094. cat >conftest.$ac_ext <<_ACEOF
  9095. /* confdefs.h. */
  9096. _ACEOF
  9097. cat confdefs.h >>conftest.$ac_ext
  9098. cat >>conftest.$ac_ext <<_ACEOF
  9099. /* end confdefs.h. */
  9100. #include <thread.h>
  9101. #include <synch.h>
  9102. int
  9103. main ()
  9104. {
  9105. thr_self();
  9106. ;
  9107. return 0;
  9108. }
  9109. _ACEOF
  9110. rm -f conftest.$ac_objext conftest$ac_exeext
  9111. if { (ac_try="$ac_link"
  9112. case "(($ac_try" in
  9113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9114. *) ac_try_echo=$ac_try;;
  9115. esac
  9116. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9117. (eval "$ac_link") 2>conftest.er1
  9118. ac_status=$?
  9119. grep -v '^ *+' conftest.er1 >conftest.err
  9120. rm -f conftest.er1
  9121. cat conftest.err >&5
  9122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9123. (exit $ac_status); } && {
  9124. test -z "$ac_cxx_werror_flag" ||
  9125. test ! -s conftest.err
  9126. } && test -s conftest$ac_exeext &&
  9127. $as_test_x conftest$ac_exeext; then
  9128. gl_have_solaristhread=yes
  9129. else
  9130. echo "$as_me: failed program was:" >&5
  9131. sed 's/^/| /' conftest.$ac_ext >&5
  9132. fi
  9133. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9134. conftest$ac_exeext conftest.$ac_ext
  9135. LIBS="$gl_save_LIBS"
  9136. if test -n "$gl_have_solaristhread"; then
  9137. gl_threads_api=solaris
  9138. LIBTHREAD=-lthread
  9139. LTLIBTHREAD=-lthread
  9140. LIBMULTITHREAD="$LIBTHREAD"
  9141. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9142. cat >>confdefs.h <<\_ACEOF
  9143. #define USE_SOLARIS_THREADS 1
  9144. _ACEOF
  9145. if test $gl_have_weak = yes; then
  9146. cat >>confdefs.h <<\_ACEOF
  9147. #define USE_SOLARIS_THREADS_WEAK 1
  9148. _ACEOF
  9149. LIBTHREAD=
  9150. LTLIBTHREAD=
  9151. fi
  9152. fi
  9153. fi
  9154. fi
  9155. if test "$gl_use_threads" = pth; then
  9156. gl_save_CPPFLAGS="$CPPFLAGS"
  9157. { echo "$as_me:$LINENO: checking how to link with libpth" >&5
  9158. echo $ECHO_N "checking how to link with libpth... $ECHO_C" >&6; }
  9159. if test "${ac_cv_libpth_libs+set}" = set; then
  9160. echo $ECHO_N "(cached) $ECHO_C" >&6
  9161. else
  9162. use_additional=yes
  9163. acl_save_prefix="$prefix"
  9164. prefix="$acl_final_prefix"
  9165. acl_save_exec_prefix="$exec_prefix"
  9166. exec_prefix="$acl_final_exec_prefix"
  9167. eval additional_includedir=\"$includedir\"
  9168. eval additional_libdir=\"$libdir\"
  9169. exec_prefix="$acl_save_exec_prefix"
  9170. prefix="$acl_save_prefix"
  9171. # Check whether --with-libpth-prefix was given.
  9172. if test "${with_libpth_prefix+set}" = set; then
  9173. withval=$with_libpth_prefix;
  9174. if test "X$withval" = "Xno"; then
  9175. use_additional=no
  9176. else
  9177. if test "X$withval" = "X"; then
  9178. acl_save_prefix="$prefix"
  9179. prefix="$acl_final_prefix"
  9180. acl_save_exec_prefix="$exec_prefix"
  9181. exec_prefix="$acl_final_exec_prefix"
  9182. eval additional_includedir=\"$includedir\"
  9183. eval additional_libdir=\"$libdir\"
  9184. exec_prefix="$acl_save_exec_prefix"
  9185. prefix="$acl_save_prefix"
  9186. else
  9187. additional_includedir="$withval/include"
  9188. additional_libdir="$withval/$acl_libdirstem"
  9189. fi
  9190. fi
  9191. fi
  9192. LIBPTH=
  9193. LTLIBPTH=
  9194. INCPTH=
  9195. LIBPTH_PREFIX=
  9196. rpathdirs=
  9197. ltrpathdirs=
  9198. names_already_handled=
  9199. names_next_round='pth '
  9200. while test -n "$names_next_round"; do
  9201. names_this_round="$names_next_round"
  9202. names_next_round=
  9203. for name in $names_this_round; do
  9204. already_handled=
  9205. for n in $names_already_handled; do
  9206. if test "$n" = "$name"; then
  9207. already_handled=yes
  9208. break
  9209. fi
  9210. done
  9211. if test -z "$already_handled"; then
  9212. names_already_handled="$names_already_handled $name"
  9213. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9214. eval value=\"\$HAVE_LIB$uppername\"
  9215. if test -n "$value"; then
  9216. if test "$value" = yes; then
  9217. eval value=\"\$LIB$uppername\"
  9218. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  9219. eval value=\"\$LTLIB$uppername\"
  9220. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  9221. else
  9222. :
  9223. fi
  9224. else
  9225. found_dir=
  9226. found_la=
  9227. found_so=
  9228. found_a=
  9229. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9230. if test -n "$acl_shlibext"; then
  9231. shrext=".$acl_shlibext" # typically: shrext=.so
  9232. else
  9233. shrext=
  9234. fi
  9235. if test $use_additional = yes; then
  9236. dir="$additional_libdir"
  9237. if test -n "$acl_shlibext"; then
  9238. if test -f "$dir/$libname$shrext"; then
  9239. found_dir="$dir"
  9240. found_so="$dir/$libname$shrext"
  9241. else
  9242. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9243. ver=`(cd "$dir" && \
  9244. for f in "$libname$shrext".*; do echo "$f"; done \
  9245. | sed -e "s,^$libname$shrext\\\\.,," \
  9246. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9247. | sed 1q ) 2>/dev/null`
  9248. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9249. found_dir="$dir"
  9250. found_so="$dir/$libname$shrext.$ver"
  9251. fi
  9252. else
  9253. eval library_names=\"$acl_library_names_spec\"
  9254. for f in $library_names; do
  9255. if test -f "$dir/$f"; then
  9256. found_dir="$dir"
  9257. found_so="$dir/$f"
  9258. break
  9259. fi
  9260. done
  9261. fi
  9262. fi
  9263. fi
  9264. if test "X$found_dir" = "X"; then
  9265. if test -f "$dir/$libname.$acl_libext"; then
  9266. found_dir="$dir"
  9267. found_a="$dir/$libname.$acl_libext"
  9268. fi
  9269. fi
  9270. if test "X$found_dir" != "X"; then
  9271. if test -f "$dir/$libname.la"; then
  9272. found_la="$dir/$libname.la"
  9273. fi
  9274. fi
  9275. fi
  9276. if test "X$found_dir" = "X"; then
  9277. for x in $LDFLAGS $LTLIBPTH; do
  9278. acl_save_prefix="$prefix"
  9279. prefix="$acl_final_prefix"
  9280. acl_save_exec_prefix="$exec_prefix"
  9281. exec_prefix="$acl_final_exec_prefix"
  9282. eval x=\"$x\"
  9283. exec_prefix="$acl_save_exec_prefix"
  9284. prefix="$acl_save_prefix"
  9285. case "$x" in
  9286. -L*)
  9287. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9288. if test -n "$acl_shlibext"; then
  9289. if test -f "$dir/$libname$shrext"; then
  9290. found_dir="$dir"
  9291. found_so="$dir/$libname$shrext"
  9292. else
  9293. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9294. ver=`(cd "$dir" && \
  9295. for f in "$libname$shrext".*; do echo "$f"; done \
  9296. | sed -e "s,^$libname$shrext\\\\.,," \
  9297. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9298. | sed 1q ) 2>/dev/null`
  9299. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9300. found_dir="$dir"
  9301. found_so="$dir/$libname$shrext.$ver"
  9302. fi
  9303. else
  9304. eval library_names=\"$acl_library_names_spec\"
  9305. for f in $library_names; do
  9306. if test -f "$dir/$f"; then
  9307. found_dir="$dir"
  9308. found_so="$dir/$f"
  9309. break
  9310. fi
  9311. done
  9312. fi
  9313. fi
  9314. fi
  9315. if test "X$found_dir" = "X"; then
  9316. if test -f "$dir/$libname.$acl_libext"; then
  9317. found_dir="$dir"
  9318. found_a="$dir/$libname.$acl_libext"
  9319. fi
  9320. fi
  9321. if test "X$found_dir" != "X"; then
  9322. if test -f "$dir/$libname.la"; then
  9323. found_la="$dir/$libname.la"
  9324. fi
  9325. fi
  9326. ;;
  9327. esac
  9328. if test "X$found_dir" != "X"; then
  9329. break
  9330. fi
  9331. done
  9332. fi
  9333. if test "X$found_dir" != "X"; then
  9334. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  9335. if test "X$found_so" != "X"; then
  9336. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9337. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9338. else
  9339. haveit=
  9340. for x in $ltrpathdirs; do
  9341. if test "X$x" = "X$found_dir"; then
  9342. haveit=yes
  9343. break
  9344. fi
  9345. done
  9346. if test -z "$haveit"; then
  9347. ltrpathdirs="$ltrpathdirs $found_dir"
  9348. fi
  9349. if test "$acl_hardcode_direct" = yes; then
  9350. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9351. else
  9352. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9353. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9354. haveit=
  9355. for x in $rpathdirs; do
  9356. if test "X$x" = "X$found_dir"; then
  9357. haveit=yes
  9358. break
  9359. fi
  9360. done
  9361. if test -z "$haveit"; then
  9362. rpathdirs="$rpathdirs $found_dir"
  9363. fi
  9364. else
  9365. haveit=
  9366. for x in $LDFLAGS $LIBPTH; do
  9367. acl_save_prefix="$prefix"
  9368. prefix="$acl_final_prefix"
  9369. acl_save_exec_prefix="$exec_prefix"
  9370. exec_prefix="$acl_final_exec_prefix"
  9371. eval x=\"$x\"
  9372. exec_prefix="$acl_save_exec_prefix"
  9373. prefix="$acl_save_prefix"
  9374. if test "X$x" = "X-L$found_dir"; then
  9375. haveit=yes
  9376. break
  9377. fi
  9378. done
  9379. if test -z "$haveit"; then
  9380. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  9381. fi
  9382. if test "$acl_hardcode_minus_L" != no; then
  9383. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  9384. else
  9385. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9386. fi
  9387. fi
  9388. fi
  9389. fi
  9390. else
  9391. if test "X$found_a" != "X"; then
  9392. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  9393. else
  9394. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  9395. fi
  9396. fi
  9397. additional_includedir=
  9398. case "$found_dir" in
  9399. */$acl_libdirstem | */$acl_libdirstem/)
  9400. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9401. LIBPTH_PREFIX="$basedir"
  9402. additional_includedir="$basedir/include"
  9403. ;;
  9404. esac
  9405. if test "X$additional_includedir" != "X"; then
  9406. if test "X$additional_includedir" != "X/usr/include"; then
  9407. haveit=
  9408. if test "X$additional_includedir" = "X/usr/local/include"; then
  9409. if test -n "$GCC"; then
  9410. case $host_os in
  9411. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9412. esac
  9413. fi
  9414. fi
  9415. if test -z "$haveit"; then
  9416. for x in $CPPFLAGS $INCPTH; do
  9417. acl_save_prefix="$prefix"
  9418. prefix="$acl_final_prefix"
  9419. acl_save_exec_prefix="$exec_prefix"
  9420. exec_prefix="$acl_final_exec_prefix"
  9421. eval x=\"$x\"
  9422. exec_prefix="$acl_save_exec_prefix"
  9423. prefix="$acl_save_prefix"
  9424. if test "X$x" = "X-I$additional_includedir"; then
  9425. haveit=yes
  9426. break
  9427. fi
  9428. done
  9429. if test -z "$haveit"; then
  9430. if test -d "$additional_includedir"; then
  9431. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  9432. fi
  9433. fi
  9434. fi
  9435. fi
  9436. fi
  9437. if test -n "$found_la"; then
  9438. save_libdir="$libdir"
  9439. case "$found_la" in
  9440. */* | *\\*) . "$found_la" ;;
  9441. *) . "./$found_la" ;;
  9442. esac
  9443. libdir="$save_libdir"
  9444. for dep in $dependency_libs; do
  9445. case "$dep" in
  9446. -L*)
  9447. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9448. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9449. haveit=
  9450. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9451. if test -n "$GCC"; then
  9452. case $host_os in
  9453. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9454. esac
  9455. fi
  9456. fi
  9457. if test -z "$haveit"; then
  9458. haveit=
  9459. for x in $LDFLAGS $LIBPTH; do
  9460. acl_save_prefix="$prefix"
  9461. prefix="$acl_final_prefix"
  9462. acl_save_exec_prefix="$exec_prefix"
  9463. exec_prefix="$acl_final_exec_prefix"
  9464. eval x=\"$x\"
  9465. exec_prefix="$acl_save_exec_prefix"
  9466. prefix="$acl_save_prefix"
  9467. if test "X$x" = "X-L$additional_libdir"; then
  9468. haveit=yes
  9469. break
  9470. fi
  9471. done
  9472. if test -z "$haveit"; then
  9473. if test -d "$additional_libdir"; then
  9474. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  9475. fi
  9476. fi
  9477. haveit=
  9478. for x in $LDFLAGS $LTLIBPTH; do
  9479. acl_save_prefix="$prefix"
  9480. prefix="$acl_final_prefix"
  9481. acl_save_exec_prefix="$exec_prefix"
  9482. exec_prefix="$acl_final_exec_prefix"
  9483. eval x=\"$x\"
  9484. exec_prefix="$acl_save_exec_prefix"
  9485. prefix="$acl_save_prefix"
  9486. if test "X$x" = "X-L$additional_libdir"; then
  9487. haveit=yes
  9488. break
  9489. fi
  9490. done
  9491. if test -z "$haveit"; then
  9492. if test -d "$additional_libdir"; then
  9493. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  9494. fi
  9495. fi
  9496. fi
  9497. fi
  9498. ;;
  9499. -R*)
  9500. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9501. if test "$enable_rpath" != no; then
  9502. haveit=
  9503. for x in $rpathdirs; do
  9504. if test "X$x" = "X$dir"; then
  9505. haveit=yes
  9506. break
  9507. fi
  9508. done
  9509. if test -z "$haveit"; then
  9510. rpathdirs="$rpathdirs $dir"
  9511. fi
  9512. haveit=
  9513. for x in $ltrpathdirs; do
  9514. if test "X$x" = "X$dir"; then
  9515. haveit=yes
  9516. break
  9517. fi
  9518. done
  9519. if test -z "$haveit"; then
  9520. ltrpathdirs="$ltrpathdirs $dir"
  9521. fi
  9522. fi
  9523. ;;
  9524. -l*)
  9525. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9526. ;;
  9527. *.la)
  9528. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9529. ;;
  9530. *)
  9531. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  9532. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  9533. ;;
  9534. esac
  9535. done
  9536. fi
  9537. else
  9538. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  9539. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  9540. fi
  9541. fi
  9542. fi
  9543. done
  9544. done
  9545. if test "X$rpathdirs" != "X"; then
  9546. if test -n "$acl_hardcode_libdir_separator"; then
  9547. alldirs=
  9548. for found_dir in $rpathdirs; do
  9549. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  9550. done
  9551. acl_save_libdir="$libdir"
  9552. libdir="$alldirs"
  9553. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9554. libdir="$acl_save_libdir"
  9555. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9556. else
  9557. for found_dir in $rpathdirs; do
  9558. acl_save_libdir="$libdir"
  9559. libdir="$found_dir"
  9560. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  9561. libdir="$acl_save_libdir"
  9562. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  9563. done
  9564. fi
  9565. fi
  9566. if test "X$ltrpathdirs" != "X"; then
  9567. for found_dir in $ltrpathdirs; do
  9568. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  9569. done
  9570. fi
  9571. ac_cv_libpth_libs="$LIBPTH"
  9572. ac_cv_libpth_ltlibs="$LTLIBPTH"
  9573. ac_cv_libpth_cppflags="$INCPTH"
  9574. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  9575. fi
  9576. { echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  9577. echo "${ECHO_T}$ac_cv_libpth_libs" >&6; }
  9578. LIBPTH="$ac_cv_libpth_libs"
  9579. LTLIBPTH="$ac_cv_libpth_ltlibs"
  9580. INCPTH="$ac_cv_libpth_cppflags"
  9581. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  9582. for element in $INCPTH; do
  9583. haveit=
  9584. for x in $CPPFLAGS; do
  9585. acl_save_prefix="$prefix"
  9586. prefix="$acl_final_prefix"
  9587. acl_save_exec_prefix="$exec_prefix"
  9588. exec_prefix="$acl_final_exec_prefix"
  9589. eval x=\"$x\"
  9590. exec_prefix="$acl_save_exec_prefix"
  9591. prefix="$acl_save_prefix"
  9592. if test "X$x" = "X$element"; then
  9593. haveit=yes
  9594. break
  9595. fi
  9596. done
  9597. if test -z "$haveit"; then
  9598. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9599. fi
  9600. done
  9601. HAVE_LIBPTH=yes
  9602. gl_have_pth=
  9603. gl_save_LIBS="$LIBS"
  9604. LIBS="$LIBS -lpth"
  9605. cat >conftest.$ac_ext <<_ACEOF
  9606. /* confdefs.h. */
  9607. _ACEOF
  9608. cat confdefs.h >>conftest.$ac_ext
  9609. cat >>conftest.$ac_ext <<_ACEOF
  9610. /* end confdefs.h. */
  9611. #include <pth.h>
  9612. int
  9613. main ()
  9614. {
  9615. pth_self();
  9616. ;
  9617. return 0;
  9618. }
  9619. _ACEOF
  9620. rm -f conftest.$ac_objext conftest$ac_exeext
  9621. if { (ac_try="$ac_link"
  9622. case "(($ac_try" in
  9623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9624. *) ac_try_echo=$ac_try;;
  9625. esac
  9626. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9627. (eval "$ac_link") 2>conftest.er1
  9628. ac_status=$?
  9629. grep -v '^ *+' conftest.er1 >conftest.err
  9630. rm -f conftest.er1
  9631. cat conftest.err >&5
  9632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9633. (exit $ac_status); } && {
  9634. test -z "$ac_cxx_werror_flag" ||
  9635. test ! -s conftest.err
  9636. } && test -s conftest$ac_exeext &&
  9637. $as_test_x conftest$ac_exeext; then
  9638. gl_have_pth=yes
  9639. else
  9640. echo "$as_me: failed program was:" >&5
  9641. sed 's/^/| /' conftest.$ac_ext >&5
  9642. fi
  9643. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9644. conftest$ac_exeext conftest.$ac_ext
  9645. LIBS="$gl_save_LIBS"
  9646. if test -n "$gl_have_pth"; then
  9647. gl_threads_api=pth
  9648. LIBTHREAD="$LIBPTH"
  9649. LTLIBTHREAD="$LTLIBPTH"
  9650. LIBMULTITHREAD="$LIBTHREAD"
  9651. LTLIBMULTITHREAD="$LTLIBTHREAD"
  9652. cat >>confdefs.h <<\_ACEOF
  9653. #define USE_PTH_THREADS 1
  9654. _ACEOF
  9655. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  9656. if test $gl_have_weak = yes; then
  9657. cat >>confdefs.h <<\_ACEOF
  9658. #define USE_PTH_THREADS_WEAK 1
  9659. _ACEOF
  9660. LIBTHREAD=
  9661. LTLIBTHREAD=
  9662. fi
  9663. fi
  9664. else
  9665. CPPFLAGS="$gl_save_CPPFLAGS"
  9666. fi
  9667. fi
  9668. if test -z "$gl_have_pthread"; then
  9669. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  9670. if { case "$host_os" in
  9671. mingw*) true;;
  9672. *) false;;
  9673. esac
  9674. }; then
  9675. gl_threads_api=win32
  9676. cat >>confdefs.h <<\_ACEOF
  9677. #define USE_WIN32_THREADS 1
  9678. _ACEOF
  9679. fi
  9680. fi
  9681. fi
  9682. fi
  9683. { echo "$as_me:$LINENO: checking for multithread API to use" >&5
  9684. echo $ECHO_N "checking for multithread API to use... $ECHO_C" >&6; }
  9685. { echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  9686. echo "${ECHO_T}$gl_threads_api" >&6; }
  9687. use_additional=yes
  9688. acl_save_prefix="$prefix"
  9689. prefix="$acl_final_prefix"
  9690. acl_save_exec_prefix="$exec_prefix"
  9691. exec_prefix="$acl_final_exec_prefix"
  9692. eval additional_includedir=\"$includedir\"
  9693. eval additional_libdir=\"$libdir\"
  9694. exec_prefix="$acl_save_exec_prefix"
  9695. prefix="$acl_save_prefix"
  9696. # Check whether --with-libiconv-prefix was given.
  9697. if test "${with_libiconv_prefix+set}" = set; then
  9698. withval=$with_libiconv_prefix;
  9699. if test "X$withval" = "Xno"; then
  9700. use_additional=no
  9701. else
  9702. if test "X$withval" = "X"; then
  9703. acl_save_prefix="$prefix"
  9704. prefix="$acl_final_prefix"
  9705. acl_save_exec_prefix="$exec_prefix"
  9706. exec_prefix="$acl_final_exec_prefix"
  9707. eval additional_includedir=\"$includedir\"
  9708. eval additional_libdir=\"$libdir\"
  9709. exec_prefix="$acl_save_exec_prefix"
  9710. prefix="$acl_save_prefix"
  9711. else
  9712. additional_includedir="$withval/include"
  9713. additional_libdir="$withval/$acl_libdirstem"
  9714. fi
  9715. fi
  9716. fi
  9717. LIBICONV=
  9718. LTLIBICONV=
  9719. INCICONV=
  9720. LIBICONV_PREFIX=
  9721. rpathdirs=
  9722. ltrpathdirs=
  9723. names_already_handled=
  9724. names_next_round='iconv '
  9725. while test -n "$names_next_round"; do
  9726. names_this_round="$names_next_round"
  9727. names_next_round=
  9728. for name in $names_this_round; do
  9729. already_handled=
  9730. for n in $names_already_handled; do
  9731. if test "$n" = "$name"; then
  9732. already_handled=yes
  9733. break
  9734. fi
  9735. done
  9736. if test -z "$already_handled"; then
  9737. names_already_handled="$names_already_handled $name"
  9738. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9739. eval value=\"\$HAVE_LIB$uppername\"
  9740. if test -n "$value"; then
  9741. if test "$value" = yes; then
  9742. eval value=\"\$LIB$uppername\"
  9743. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  9744. eval value=\"\$LTLIB$uppername\"
  9745. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  9746. else
  9747. :
  9748. fi
  9749. else
  9750. found_dir=
  9751. found_la=
  9752. found_so=
  9753. found_a=
  9754. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  9755. if test -n "$acl_shlibext"; then
  9756. shrext=".$acl_shlibext" # typically: shrext=.so
  9757. else
  9758. shrext=
  9759. fi
  9760. if test $use_additional = yes; then
  9761. dir="$additional_libdir"
  9762. if test -n "$acl_shlibext"; then
  9763. if test -f "$dir/$libname$shrext"; then
  9764. found_dir="$dir"
  9765. found_so="$dir/$libname$shrext"
  9766. else
  9767. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9768. ver=`(cd "$dir" && \
  9769. for f in "$libname$shrext".*; do echo "$f"; done \
  9770. | sed -e "s,^$libname$shrext\\\\.,," \
  9771. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9772. | sed 1q ) 2>/dev/null`
  9773. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9774. found_dir="$dir"
  9775. found_so="$dir/$libname$shrext.$ver"
  9776. fi
  9777. else
  9778. eval library_names=\"$acl_library_names_spec\"
  9779. for f in $library_names; do
  9780. if test -f "$dir/$f"; then
  9781. found_dir="$dir"
  9782. found_so="$dir/$f"
  9783. break
  9784. fi
  9785. done
  9786. fi
  9787. fi
  9788. fi
  9789. if test "X$found_dir" = "X"; then
  9790. if test -f "$dir/$libname.$acl_libext"; then
  9791. found_dir="$dir"
  9792. found_a="$dir/$libname.$acl_libext"
  9793. fi
  9794. fi
  9795. if test "X$found_dir" != "X"; then
  9796. if test -f "$dir/$libname.la"; then
  9797. found_la="$dir/$libname.la"
  9798. fi
  9799. fi
  9800. fi
  9801. if test "X$found_dir" = "X"; then
  9802. for x in $LDFLAGS $LTLIBICONV; do
  9803. acl_save_prefix="$prefix"
  9804. prefix="$acl_final_prefix"
  9805. acl_save_exec_prefix="$exec_prefix"
  9806. exec_prefix="$acl_final_exec_prefix"
  9807. eval x=\"$x\"
  9808. exec_prefix="$acl_save_exec_prefix"
  9809. prefix="$acl_save_prefix"
  9810. case "$x" in
  9811. -L*)
  9812. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9813. if test -n "$acl_shlibext"; then
  9814. if test -f "$dir/$libname$shrext"; then
  9815. found_dir="$dir"
  9816. found_so="$dir/$libname$shrext"
  9817. else
  9818. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  9819. ver=`(cd "$dir" && \
  9820. for f in "$libname$shrext".*; do echo "$f"; done \
  9821. | sed -e "s,^$libname$shrext\\\\.,," \
  9822. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  9823. | sed 1q ) 2>/dev/null`
  9824. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  9825. found_dir="$dir"
  9826. found_so="$dir/$libname$shrext.$ver"
  9827. fi
  9828. else
  9829. eval library_names=\"$acl_library_names_spec\"
  9830. for f in $library_names; do
  9831. if test -f "$dir/$f"; then
  9832. found_dir="$dir"
  9833. found_so="$dir/$f"
  9834. break
  9835. fi
  9836. done
  9837. fi
  9838. fi
  9839. fi
  9840. if test "X$found_dir" = "X"; then
  9841. if test -f "$dir/$libname.$acl_libext"; then
  9842. found_dir="$dir"
  9843. found_a="$dir/$libname.$acl_libext"
  9844. fi
  9845. fi
  9846. if test "X$found_dir" != "X"; then
  9847. if test -f "$dir/$libname.la"; then
  9848. found_la="$dir/$libname.la"
  9849. fi
  9850. fi
  9851. ;;
  9852. esac
  9853. if test "X$found_dir" != "X"; then
  9854. break
  9855. fi
  9856. done
  9857. fi
  9858. if test "X$found_dir" != "X"; then
  9859. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  9860. if test "X$found_so" != "X"; then
  9861. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  9862. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9863. else
  9864. haveit=
  9865. for x in $ltrpathdirs; do
  9866. if test "X$x" = "X$found_dir"; then
  9867. haveit=yes
  9868. break
  9869. fi
  9870. done
  9871. if test -z "$haveit"; then
  9872. ltrpathdirs="$ltrpathdirs $found_dir"
  9873. fi
  9874. if test "$acl_hardcode_direct" = yes; then
  9875. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9876. else
  9877. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  9878. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9879. haveit=
  9880. for x in $rpathdirs; do
  9881. if test "X$x" = "X$found_dir"; then
  9882. haveit=yes
  9883. break
  9884. fi
  9885. done
  9886. if test -z "$haveit"; then
  9887. rpathdirs="$rpathdirs $found_dir"
  9888. fi
  9889. else
  9890. haveit=
  9891. for x in $LDFLAGS $LIBICONV; do
  9892. acl_save_prefix="$prefix"
  9893. prefix="$acl_final_prefix"
  9894. acl_save_exec_prefix="$exec_prefix"
  9895. exec_prefix="$acl_final_exec_prefix"
  9896. eval x=\"$x\"
  9897. exec_prefix="$acl_save_exec_prefix"
  9898. prefix="$acl_save_prefix"
  9899. if test "X$x" = "X-L$found_dir"; then
  9900. haveit=yes
  9901. break
  9902. fi
  9903. done
  9904. if test -z "$haveit"; then
  9905. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  9906. fi
  9907. if test "$acl_hardcode_minus_L" != no; then
  9908. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  9909. else
  9910. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  9911. fi
  9912. fi
  9913. fi
  9914. fi
  9915. else
  9916. if test "X$found_a" != "X"; then
  9917. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  9918. else
  9919. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  9920. fi
  9921. fi
  9922. additional_includedir=
  9923. case "$found_dir" in
  9924. */$acl_libdirstem | */$acl_libdirstem/)
  9925. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  9926. LIBICONV_PREFIX="$basedir"
  9927. additional_includedir="$basedir/include"
  9928. ;;
  9929. esac
  9930. if test "X$additional_includedir" != "X"; then
  9931. if test "X$additional_includedir" != "X/usr/include"; then
  9932. haveit=
  9933. if test "X$additional_includedir" = "X/usr/local/include"; then
  9934. if test -n "$GCC"; then
  9935. case $host_os in
  9936. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9937. esac
  9938. fi
  9939. fi
  9940. if test -z "$haveit"; then
  9941. for x in $CPPFLAGS $INCICONV; do
  9942. acl_save_prefix="$prefix"
  9943. prefix="$acl_final_prefix"
  9944. acl_save_exec_prefix="$exec_prefix"
  9945. exec_prefix="$acl_final_exec_prefix"
  9946. eval x=\"$x\"
  9947. exec_prefix="$acl_save_exec_prefix"
  9948. prefix="$acl_save_prefix"
  9949. if test "X$x" = "X-I$additional_includedir"; then
  9950. haveit=yes
  9951. break
  9952. fi
  9953. done
  9954. if test -z "$haveit"; then
  9955. if test -d "$additional_includedir"; then
  9956. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  9957. fi
  9958. fi
  9959. fi
  9960. fi
  9961. fi
  9962. if test -n "$found_la"; then
  9963. save_libdir="$libdir"
  9964. case "$found_la" in
  9965. */* | *\\*) . "$found_la" ;;
  9966. *) . "./$found_la" ;;
  9967. esac
  9968. libdir="$save_libdir"
  9969. for dep in $dependency_libs; do
  9970. case "$dep" in
  9971. -L*)
  9972. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9973. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  9974. haveit=
  9975. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  9976. if test -n "$GCC"; then
  9977. case $host_os in
  9978. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  9979. esac
  9980. fi
  9981. fi
  9982. if test -z "$haveit"; then
  9983. haveit=
  9984. for x in $LDFLAGS $LIBICONV; do
  9985. acl_save_prefix="$prefix"
  9986. prefix="$acl_final_prefix"
  9987. acl_save_exec_prefix="$exec_prefix"
  9988. exec_prefix="$acl_final_exec_prefix"
  9989. eval x=\"$x\"
  9990. exec_prefix="$acl_save_exec_prefix"
  9991. prefix="$acl_save_prefix"
  9992. if test "X$x" = "X-L$additional_libdir"; then
  9993. haveit=yes
  9994. break
  9995. fi
  9996. done
  9997. if test -z "$haveit"; then
  9998. if test -d "$additional_libdir"; then
  9999. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  10000. fi
  10001. fi
  10002. haveit=
  10003. for x in $LDFLAGS $LTLIBICONV; do
  10004. acl_save_prefix="$prefix"
  10005. prefix="$acl_final_prefix"
  10006. acl_save_exec_prefix="$exec_prefix"
  10007. exec_prefix="$acl_final_exec_prefix"
  10008. eval x=\"$x\"
  10009. exec_prefix="$acl_save_exec_prefix"
  10010. prefix="$acl_save_prefix"
  10011. if test "X$x" = "X-L$additional_libdir"; then
  10012. haveit=yes
  10013. break
  10014. fi
  10015. done
  10016. if test -z "$haveit"; then
  10017. if test -d "$additional_libdir"; then
  10018. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  10019. fi
  10020. fi
  10021. fi
  10022. fi
  10023. ;;
  10024. -R*)
  10025. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  10026. if test "$enable_rpath" != no; then
  10027. haveit=
  10028. for x in $rpathdirs; do
  10029. if test "X$x" = "X$dir"; then
  10030. haveit=yes
  10031. break
  10032. fi
  10033. done
  10034. if test -z "$haveit"; then
  10035. rpathdirs="$rpathdirs $dir"
  10036. fi
  10037. haveit=
  10038. for x in $ltrpathdirs; do
  10039. if test "X$x" = "X$dir"; then
  10040. haveit=yes
  10041. break
  10042. fi
  10043. done
  10044. if test -z "$haveit"; then
  10045. ltrpathdirs="$ltrpathdirs $dir"
  10046. fi
  10047. fi
  10048. ;;
  10049. -l*)
  10050. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  10051. ;;
  10052. *.la)
  10053. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  10054. ;;
  10055. *)
  10056. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  10057. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  10058. ;;
  10059. esac
  10060. done
  10061. fi
  10062. else
  10063. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  10064. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  10065. fi
  10066. fi
  10067. fi
  10068. done
  10069. done
  10070. if test "X$rpathdirs" != "X"; then
  10071. if test -n "$acl_hardcode_libdir_separator"; then
  10072. alldirs=
  10073. for found_dir in $rpathdirs; do
  10074. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  10075. done
  10076. acl_save_libdir="$libdir"
  10077. libdir="$alldirs"
  10078. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10079. libdir="$acl_save_libdir"
  10080. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10081. else
  10082. for found_dir in $rpathdirs; do
  10083. acl_save_libdir="$libdir"
  10084. libdir="$found_dir"
  10085. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  10086. libdir="$acl_save_libdir"
  10087. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  10088. done
  10089. fi
  10090. fi
  10091. if test "X$ltrpathdirs" != "X"; then
  10092. for found_dir in $ltrpathdirs; do
  10093. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  10094. done
  10095. fi
  10096. cat >conftest.$ac_ext <<_ACEOF
  10097. /* confdefs.h. */
  10098. _ACEOF
  10099. cat confdefs.h >>conftest.$ac_ext
  10100. cat >>conftest.$ac_ext <<_ACEOF
  10101. /* end confdefs.h. */
  10102. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  10103. int
  10104. main ()
  10105. {
  10106. ;
  10107. return 0;
  10108. }
  10109. _ACEOF
  10110. rm -f conftest.$ac_objext conftest$ac_exeext
  10111. if { (ac_try="$ac_link"
  10112. case "(($ac_try" in
  10113. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10114. *) ac_try_echo=$ac_try;;
  10115. esac
  10116. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10117. (eval "$ac_link") 2>conftest.er1
  10118. ac_status=$?
  10119. grep -v '^ *+' conftest.er1 >conftest.err
  10120. rm -f conftest.er1
  10121. cat conftest.err >&5
  10122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10123. (exit $ac_status); } && {
  10124. test -z "$ac_cxx_werror_flag" ||
  10125. test ! -s conftest.err
  10126. } && test -s conftest$ac_exeext &&
  10127. $as_test_x conftest$ac_exeext; then
  10128. cat >>confdefs.h <<\_ACEOF
  10129. #define HAVE_BUILTIN_EXPECT 1
  10130. _ACEOF
  10131. else
  10132. echo "$as_me: failed program was:" >&5
  10133. sed 's/^/| /' conftest.$ac_ext >&5
  10134. fi
  10135. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10136. conftest$ac_exeext conftest.$ac_ext
  10137. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  10138. do
  10139. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10140. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10141. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10142. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10143. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10144. echo $ECHO_N "(cached) $ECHO_C" >&6
  10145. fi
  10146. ac_res=`eval echo '${'$as_ac_Header'}'`
  10147. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10148. echo "${ECHO_T}$ac_res" >&6; }
  10149. else
  10150. # Is the header compilable?
  10151. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10152. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10153. cat >conftest.$ac_ext <<_ACEOF
  10154. /* confdefs.h. */
  10155. _ACEOF
  10156. cat confdefs.h >>conftest.$ac_ext
  10157. cat >>conftest.$ac_ext <<_ACEOF
  10158. /* end confdefs.h. */
  10159. $ac_includes_default
  10160. #include <$ac_header>
  10161. _ACEOF
  10162. rm -f conftest.$ac_objext
  10163. if { (ac_try="$ac_compile"
  10164. case "(($ac_try" in
  10165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10166. *) ac_try_echo=$ac_try;;
  10167. esac
  10168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10169. (eval "$ac_compile") 2>conftest.er1
  10170. ac_status=$?
  10171. grep -v '^ *+' conftest.er1 >conftest.err
  10172. rm -f conftest.er1
  10173. cat conftest.err >&5
  10174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10175. (exit $ac_status); } && {
  10176. test -z "$ac_cxx_werror_flag" ||
  10177. test ! -s conftest.err
  10178. } && test -s conftest.$ac_objext; then
  10179. ac_header_compiler=yes
  10180. else
  10181. echo "$as_me: failed program was:" >&5
  10182. sed 's/^/| /' conftest.$ac_ext >&5
  10183. ac_header_compiler=no
  10184. fi
  10185. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10186. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10187. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10188. # Is the header present?
  10189. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10190. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10191. cat >conftest.$ac_ext <<_ACEOF
  10192. /* confdefs.h. */
  10193. _ACEOF
  10194. cat confdefs.h >>conftest.$ac_ext
  10195. cat >>conftest.$ac_ext <<_ACEOF
  10196. /* end confdefs.h. */
  10197. #include <$ac_header>
  10198. _ACEOF
  10199. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10200. case "(($ac_try" in
  10201. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10202. *) ac_try_echo=$ac_try;;
  10203. esac
  10204. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10205. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10206. ac_status=$?
  10207. grep -v '^ *+' conftest.er1 >conftest.err
  10208. rm -f conftest.er1
  10209. cat conftest.err >&5
  10210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10211. (exit $ac_status); } >/dev/null && {
  10212. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10213. test ! -s conftest.err
  10214. }; then
  10215. ac_header_preproc=yes
  10216. else
  10217. echo "$as_me: failed program was:" >&5
  10218. sed 's/^/| /' conftest.$ac_ext >&5
  10219. ac_header_preproc=no
  10220. fi
  10221. rm -f conftest.err conftest.$ac_ext
  10222. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10223. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10224. # So? What about this header?
  10225. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10226. yes:no: )
  10227. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10228. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10229. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10230. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10231. ac_header_preproc=yes
  10232. ;;
  10233. no:yes:* )
  10234. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10235. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10236. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10237. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10238. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10239. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10240. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10241. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10242. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10243. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10244. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10245. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10246. ( cat <<\_ASBOX
  10247. ## ----------------------------------------------- ##
  10248. ## Report this to t-tujikawa@users.sourceforge.net ##
  10249. ## ----------------------------------------------- ##
  10250. _ASBOX
  10251. ) | sed "s/^/$as_me: WARNING: /" >&2
  10252. ;;
  10253. esac
  10254. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10255. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10256. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10257. echo $ECHO_N "(cached) $ECHO_C" >&6
  10258. else
  10259. eval "$as_ac_Header=\$ac_header_preproc"
  10260. fi
  10261. ac_res=`eval echo '${'$as_ac_Header'}'`
  10262. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10263. echo "${ECHO_T}$ac_res" >&6; }
  10264. fi
  10265. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10266. cat >>confdefs.h <<_ACEOF
  10267. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10268. _ACEOF
  10269. fi
  10270. done
  10271. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  10272. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  10273. argz_next __fsetlocking
  10274. do
  10275. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10276. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10277. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10278. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10279. echo $ECHO_N "(cached) $ECHO_C" >&6
  10280. else
  10281. cat >conftest.$ac_ext <<_ACEOF
  10282. /* confdefs.h. */
  10283. _ACEOF
  10284. cat confdefs.h >>conftest.$ac_ext
  10285. cat >>conftest.$ac_ext <<_ACEOF
  10286. /* end confdefs.h. */
  10287. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10288. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10289. #define $ac_func innocuous_$ac_func
  10290. /* System header to define __stub macros and hopefully few prototypes,
  10291. which can conflict with char $ac_func (); below.
  10292. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10293. <limits.h> exists even on freestanding compilers. */
  10294. #ifdef __STDC__
  10295. # include <limits.h>
  10296. #else
  10297. # include <assert.h>
  10298. #endif
  10299. #undef $ac_func
  10300. /* Override any GCC internal prototype to avoid an error.
  10301. Use char because int might match the return type of a GCC
  10302. builtin and then its argument prototype would still apply. */
  10303. #ifdef __cplusplus
  10304. extern "C"
  10305. #endif
  10306. char $ac_func ();
  10307. /* The GNU C library defines this for functions which it implements
  10308. to always fail with ENOSYS. Some functions are actually named
  10309. something starting with __ and the normal name is an alias. */
  10310. #if defined __stub_$ac_func || defined __stub___$ac_func
  10311. choke me
  10312. #endif
  10313. int
  10314. main ()
  10315. {
  10316. return $ac_func ();
  10317. ;
  10318. return 0;
  10319. }
  10320. _ACEOF
  10321. rm -f conftest.$ac_objext conftest$ac_exeext
  10322. if { (ac_try="$ac_link"
  10323. case "(($ac_try" in
  10324. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10325. *) ac_try_echo=$ac_try;;
  10326. esac
  10327. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10328. (eval "$ac_link") 2>conftest.er1
  10329. ac_status=$?
  10330. grep -v '^ *+' conftest.er1 >conftest.err
  10331. rm -f conftest.er1
  10332. cat conftest.err >&5
  10333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10334. (exit $ac_status); } && {
  10335. test -z "$ac_cxx_werror_flag" ||
  10336. test ! -s conftest.err
  10337. } && test -s conftest$ac_exeext &&
  10338. $as_test_x conftest$ac_exeext; then
  10339. eval "$as_ac_var=yes"
  10340. else
  10341. echo "$as_me: failed program was:" >&5
  10342. sed 's/^/| /' conftest.$ac_ext >&5
  10343. eval "$as_ac_var=no"
  10344. fi
  10345. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10346. conftest$ac_exeext conftest.$ac_ext
  10347. fi
  10348. ac_res=`eval echo '${'$as_ac_var'}'`
  10349. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10350. echo "${ECHO_T}$ac_res" >&6; }
  10351. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10352. cat >>confdefs.h <<_ACEOF
  10353. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10354. _ACEOF
  10355. fi
  10356. done
  10357. { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  10358. echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
  10359. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  10360. echo $ECHO_N "(cached) $ECHO_C" >&6
  10361. else
  10362. cat >conftest.$ac_ext <<_ACEOF
  10363. /* confdefs.h. */
  10364. _ACEOF
  10365. cat confdefs.h >>conftest.$ac_ext
  10366. cat >>conftest.$ac_ext <<_ACEOF
  10367. /* end confdefs.h. */
  10368. #include <stdio.h>
  10369. int
  10370. main ()
  10371. {
  10372. #ifndef feof_unlocked
  10373. char *p = (char *) feof_unlocked;
  10374. #endif
  10375. ;
  10376. return 0;
  10377. }
  10378. _ACEOF
  10379. rm -f conftest.$ac_objext
  10380. if { (ac_try="$ac_compile"
  10381. case "(($ac_try" in
  10382. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10383. *) ac_try_echo=$ac_try;;
  10384. esac
  10385. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10386. (eval "$ac_compile") 2>conftest.er1
  10387. ac_status=$?
  10388. grep -v '^ *+' conftest.er1 >conftest.err
  10389. rm -f conftest.er1
  10390. cat conftest.err >&5
  10391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10392. (exit $ac_status); } && {
  10393. test -z "$ac_cxx_werror_flag" ||
  10394. test ! -s conftest.err
  10395. } && test -s conftest.$ac_objext; then
  10396. ac_cv_have_decl_feof_unlocked=yes
  10397. else
  10398. echo "$as_me: failed program was:" >&5
  10399. sed 's/^/| /' conftest.$ac_ext >&5
  10400. ac_cv_have_decl_feof_unlocked=no
  10401. fi
  10402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10403. fi
  10404. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  10405. echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
  10406. if test $ac_cv_have_decl_feof_unlocked = yes; then
  10407. gt_value=1
  10408. else
  10409. gt_value=0
  10410. fi
  10411. cat >>confdefs.h <<_ACEOF
  10412. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  10413. _ACEOF
  10414. { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  10415. echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
  10416. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  10417. echo $ECHO_N "(cached) $ECHO_C" >&6
  10418. else
  10419. cat >conftest.$ac_ext <<_ACEOF
  10420. /* confdefs.h. */
  10421. _ACEOF
  10422. cat confdefs.h >>conftest.$ac_ext
  10423. cat >>conftest.$ac_ext <<_ACEOF
  10424. /* end confdefs.h. */
  10425. #include <stdio.h>
  10426. int
  10427. main ()
  10428. {
  10429. #ifndef fgets_unlocked
  10430. char *p = (char *) fgets_unlocked;
  10431. #endif
  10432. ;
  10433. return 0;
  10434. }
  10435. _ACEOF
  10436. rm -f conftest.$ac_objext
  10437. if { (ac_try="$ac_compile"
  10438. case "(($ac_try" in
  10439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10440. *) ac_try_echo=$ac_try;;
  10441. esac
  10442. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10443. (eval "$ac_compile") 2>conftest.er1
  10444. ac_status=$?
  10445. grep -v '^ *+' conftest.er1 >conftest.err
  10446. rm -f conftest.er1
  10447. cat conftest.err >&5
  10448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10449. (exit $ac_status); } && {
  10450. test -z "$ac_cxx_werror_flag" ||
  10451. test ! -s conftest.err
  10452. } && test -s conftest.$ac_objext; then
  10453. ac_cv_have_decl_fgets_unlocked=yes
  10454. else
  10455. echo "$as_me: failed program was:" >&5
  10456. sed 's/^/| /' conftest.$ac_ext >&5
  10457. ac_cv_have_decl_fgets_unlocked=no
  10458. fi
  10459. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10460. fi
  10461. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  10462. echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
  10463. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  10464. gt_value=1
  10465. else
  10466. gt_value=0
  10467. fi
  10468. cat >>confdefs.h <<_ACEOF
  10469. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  10470. _ACEOF
  10471. am_save_CPPFLAGS="$CPPFLAGS"
  10472. for element in $INCICONV; do
  10473. haveit=
  10474. for x in $CPPFLAGS; do
  10475. acl_save_prefix="$prefix"
  10476. prefix="$acl_final_prefix"
  10477. acl_save_exec_prefix="$exec_prefix"
  10478. exec_prefix="$acl_final_exec_prefix"
  10479. eval x=\"$x\"
  10480. exec_prefix="$acl_save_exec_prefix"
  10481. prefix="$acl_save_prefix"
  10482. if test "X$x" = "X$element"; then
  10483. haveit=yes
  10484. break
  10485. fi
  10486. done
  10487. if test -z "$haveit"; then
  10488. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  10489. fi
  10490. done
  10491. { echo "$as_me:$LINENO: checking for iconv" >&5
  10492. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  10493. if test "${am_cv_func_iconv+set}" = set; then
  10494. echo $ECHO_N "(cached) $ECHO_C" >&6
  10495. else
  10496. am_cv_func_iconv="no, consider installing GNU libiconv"
  10497. am_cv_lib_iconv=no
  10498. cat >conftest.$ac_ext <<_ACEOF
  10499. /* confdefs.h. */
  10500. _ACEOF
  10501. cat confdefs.h >>conftest.$ac_ext
  10502. cat >>conftest.$ac_ext <<_ACEOF
  10503. /* end confdefs.h. */
  10504. #include <stdlib.h>
  10505. #include <iconv.h>
  10506. int
  10507. main ()
  10508. {
  10509. iconv_t cd = iconv_open("","");
  10510. iconv(cd,NULL,NULL,NULL,NULL);
  10511. iconv_close(cd);
  10512. ;
  10513. return 0;
  10514. }
  10515. _ACEOF
  10516. rm -f conftest.$ac_objext conftest$ac_exeext
  10517. if { (ac_try="$ac_link"
  10518. case "(($ac_try" in
  10519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10520. *) ac_try_echo=$ac_try;;
  10521. esac
  10522. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10523. (eval "$ac_link") 2>conftest.er1
  10524. ac_status=$?
  10525. grep -v '^ *+' conftest.er1 >conftest.err
  10526. rm -f conftest.er1
  10527. cat conftest.err >&5
  10528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10529. (exit $ac_status); } && {
  10530. test -z "$ac_cxx_werror_flag" ||
  10531. test ! -s conftest.err
  10532. } && test -s conftest$ac_exeext &&
  10533. $as_test_x conftest$ac_exeext; then
  10534. am_cv_func_iconv=yes
  10535. else
  10536. echo "$as_me: failed program was:" >&5
  10537. sed 's/^/| /' conftest.$ac_ext >&5
  10538. fi
  10539. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10540. conftest$ac_exeext conftest.$ac_ext
  10541. if test "$am_cv_func_iconv" != yes; then
  10542. am_save_LIBS="$LIBS"
  10543. LIBS="$LIBS $LIBICONV"
  10544. cat >conftest.$ac_ext <<_ACEOF
  10545. /* confdefs.h. */
  10546. _ACEOF
  10547. cat confdefs.h >>conftest.$ac_ext
  10548. cat >>conftest.$ac_ext <<_ACEOF
  10549. /* end confdefs.h. */
  10550. #include <stdlib.h>
  10551. #include <iconv.h>
  10552. int
  10553. main ()
  10554. {
  10555. iconv_t cd = iconv_open("","");
  10556. iconv(cd,NULL,NULL,NULL,NULL);
  10557. iconv_close(cd);
  10558. ;
  10559. return 0;
  10560. }
  10561. _ACEOF
  10562. rm -f conftest.$ac_objext conftest$ac_exeext
  10563. if { (ac_try="$ac_link"
  10564. case "(($ac_try" in
  10565. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10566. *) ac_try_echo=$ac_try;;
  10567. esac
  10568. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10569. (eval "$ac_link") 2>conftest.er1
  10570. ac_status=$?
  10571. grep -v '^ *+' conftest.er1 >conftest.err
  10572. rm -f conftest.er1
  10573. cat conftest.err >&5
  10574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10575. (exit $ac_status); } && {
  10576. test -z "$ac_cxx_werror_flag" ||
  10577. test ! -s conftest.err
  10578. } && test -s conftest$ac_exeext &&
  10579. $as_test_x conftest$ac_exeext; then
  10580. am_cv_lib_iconv=yes
  10581. am_cv_func_iconv=yes
  10582. else
  10583. echo "$as_me: failed program was:" >&5
  10584. sed 's/^/| /' conftest.$ac_ext >&5
  10585. fi
  10586. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10587. conftest$ac_exeext conftest.$ac_ext
  10588. LIBS="$am_save_LIBS"
  10589. fi
  10590. fi
  10591. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  10592. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  10593. if test "$am_cv_func_iconv" = yes; then
  10594. { echo "$as_me:$LINENO: checking for working iconv" >&5
  10595. echo $ECHO_N "checking for working iconv... $ECHO_C" >&6; }
  10596. if test "${am_cv_func_iconv_works+set}" = set; then
  10597. echo $ECHO_N "(cached) $ECHO_C" >&6
  10598. else
  10599. am_save_LIBS="$LIBS"
  10600. if test $am_cv_lib_iconv = yes; then
  10601. LIBS="$LIBS $LIBICONV"
  10602. fi
  10603. if test "$cross_compiling" = yes; then
  10604. case "$host_os" in
  10605. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  10606. *) am_cv_func_iconv_works="guessing yes" ;;
  10607. esac
  10608. else
  10609. cat >conftest.$ac_ext <<_ACEOF
  10610. /* confdefs.h. */
  10611. _ACEOF
  10612. cat confdefs.h >>conftest.$ac_ext
  10613. cat >>conftest.$ac_ext <<_ACEOF
  10614. /* end confdefs.h. */
  10615. #include <iconv.h>
  10616. #include <string.h>
  10617. int main ()
  10618. {
  10619. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  10620. returns. */
  10621. {
  10622. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  10623. if (cd_utf8_to_88591 != (iconv_t)(-1))
  10624. {
  10625. static const char input[] = "\342\202\254"; /* EURO SIGN */
  10626. char buf[10];
  10627. const char *inptr = input;
  10628. size_t inbytesleft = strlen (input);
  10629. char *outptr = buf;
  10630. size_t outbytesleft = sizeof (buf);
  10631. size_t res = iconv (cd_utf8_to_88591,
  10632. (char **) &inptr, &inbytesleft,
  10633. &outptr, &outbytesleft);
  10634. if (res == 0)
  10635. return 1;
  10636. }
  10637. }
  10638. #if 0 /* This bug could be worked around by the caller. */
  10639. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  10640. {
  10641. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  10642. if (cd_88591_to_utf8 != (iconv_t)(-1))
  10643. {
  10644. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  10645. char buf[50];
  10646. const char *inptr = input;
  10647. size_t inbytesleft = strlen (input);
  10648. char *outptr = buf;
  10649. size_t outbytesleft = sizeof (buf);
  10650. size_t res = iconv (cd_88591_to_utf8,
  10651. (char **) &inptr, &inbytesleft,
  10652. &outptr, &outbytesleft);
  10653. if ((int)res > 0)
  10654. return 1;
  10655. }
  10656. }
  10657. #endif
  10658. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  10659. provided. */
  10660. if (/* Try standardized names. */
  10661. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  10662. /* Try IRIX, OSF/1 names. */
  10663. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  10664. /* Try AIX names. */
  10665. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  10666. /* Try HP-UX names. */
  10667. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  10668. return 1;
  10669. return 0;
  10670. }
  10671. _ACEOF
  10672. rm -f conftest$ac_exeext
  10673. if { (ac_try="$ac_link"
  10674. case "(($ac_try" in
  10675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10676. *) ac_try_echo=$ac_try;;
  10677. esac
  10678. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10679. (eval "$ac_link") 2>&5
  10680. ac_status=$?
  10681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10682. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10683. { (case "(($ac_try" in
  10684. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10685. *) ac_try_echo=$ac_try;;
  10686. esac
  10687. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10688. (eval "$ac_try") 2>&5
  10689. ac_status=$?
  10690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10691. (exit $ac_status); }; }; then
  10692. am_cv_func_iconv_works=yes
  10693. else
  10694. echo "$as_me: program exited with status $ac_status" >&5
  10695. echo "$as_me: failed program was:" >&5
  10696. sed 's/^/| /' conftest.$ac_ext >&5
  10697. ( exit $ac_status )
  10698. am_cv_func_iconv_works=no
  10699. fi
  10700. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10701. fi
  10702. LIBS="$am_save_LIBS"
  10703. fi
  10704. { echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  10705. echo "${ECHO_T}$am_cv_func_iconv_works" >&6; }
  10706. case "$am_cv_func_iconv_works" in
  10707. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  10708. *) am_func_iconv=yes ;;
  10709. esac
  10710. else
  10711. am_func_iconv=no am_cv_lib_iconv=no
  10712. fi
  10713. if test "$am_func_iconv" = yes; then
  10714. cat >>confdefs.h <<\_ACEOF
  10715. #define HAVE_ICONV 1
  10716. _ACEOF
  10717. fi
  10718. if test "$am_cv_lib_iconv" = yes; then
  10719. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  10720. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  10721. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  10722. echo "${ECHO_T}$LIBICONV" >&6; }
  10723. else
  10724. CPPFLAGS="$am_save_CPPFLAGS"
  10725. LIBICONV=
  10726. LTLIBICONV=
  10727. fi
  10728. if test "$am_cv_func_iconv" = yes; then
  10729. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  10730. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  10731. if test "${am_cv_proto_iconv+set}" = set; then
  10732. echo $ECHO_N "(cached) $ECHO_C" >&6
  10733. else
  10734. cat >conftest.$ac_ext <<_ACEOF
  10735. /* confdefs.h. */
  10736. _ACEOF
  10737. cat confdefs.h >>conftest.$ac_ext
  10738. cat >>conftest.$ac_ext <<_ACEOF
  10739. /* end confdefs.h. */
  10740. #include <stdlib.h>
  10741. #include <iconv.h>
  10742. extern
  10743. #ifdef __cplusplus
  10744. "C"
  10745. #endif
  10746. #if defined(__STDC__) || defined(__cplusplus)
  10747. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  10748. #else
  10749. size_t iconv();
  10750. #endif
  10751. int
  10752. main ()
  10753. {
  10754. ;
  10755. return 0;
  10756. }
  10757. _ACEOF
  10758. rm -f conftest.$ac_objext
  10759. if { (ac_try="$ac_compile"
  10760. case "(($ac_try" in
  10761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10762. *) ac_try_echo=$ac_try;;
  10763. esac
  10764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10765. (eval "$ac_compile") 2>conftest.er1
  10766. ac_status=$?
  10767. grep -v '^ *+' conftest.er1 >conftest.err
  10768. rm -f conftest.er1
  10769. cat conftest.err >&5
  10770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10771. (exit $ac_status); } && {
  10772. test -z "$ac_cxx_werror_flag" ||
  10773. test ! -s conftest.err
  10774. } && test -s conftest.$ac_objext; then
  10775. am_cv_proto_iconv_arg1=""
  10776. else
  10777. echo "$as_me: failed program was:" >&5
  10778. sed 's/^/| /' conftest.$ac_ext >&5
  10779. am_cv_proto_iconv_arg1="const"
  10780. fi
  10781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10782. 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);"
  10783. fi
  10784. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  10785. { echo "$as_me:$LINENO: result: ${ac_t:-
  10786. }$am_cv_proto_iconv" >&5
  10787. echo "${ECHO_T}${ac_t:-
  10788. }$am_cv_proto_iconv" >&6; }
  10789. cat >>confdefs.h <<_ACEOF
  10790. #define ICONV_CONST $am_cv_proto_iconv_arg1
  10791. _ACEOF
  10792. fi
  10793. { echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  10794. echo $ECHO_N "checking for NL_LOCALE_NAME macro... $ECHO_C" >&6; }
  10795. if test "${gt_cv_nl_locale_name+set}" = set; then
  10796. echo $ECHO_N "(cached) $ECHO_C" >&6
  10797. else
  10798. cat >conftest.$ac_ext <<_ACEOF
  10799. /* confdefs.h. */
  10800. _ACEOF
  10801. cat confdefs.h >>conftest.$ac_ext
  10802. cat >>conftest.$ac_ext <<_ACEOF
  10803. /* end confdefs.h. */
  10804. #include <langinfo.h>
  10805. #include <locale.h>
  10806. int
  10807. main ()
  10808. {
  10809. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  10810. return !cs;
  10811. ;
  10812. return 0;
  10813. }
  10814. _ACEOF
  10815. rm -f conftest.$ac_objext conftest$ac_exeext
  10816. if { (ac_try="$ac_link"
  10817. case "(($ac_try" in
  10818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10819. *) ac_try_echo=$ac_try;;
  10820. esac
  10821. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10822. (eval "$ac_link") 2>conftest.er1
  10823. ac_status=$?
  10824. grep -v '^ *+' conftest.er1 >conftest.err
  10825. rm -f conftest.er1
  10826. cat conftest.err >&5
  10827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10828. (exit $ac_status); } && {
  10829. test -z "$ac_cxx_werror_flag" ||
  10830. test ! -s conftest.err
  10831. } && test -s conftest$ac_exeext &&
  10832. $as_test_x conftest$ac_exeext; then
  10833. gt_cv_nl_locale_name=yes
  10834. else
  10835. echo "$as_me: failed program was:" >&5
  10836. sed 's/^/| /' conftest.$ac_ext >&5
  10837. gt_cv_nl_locale_name=no
  10838. fi
  10839. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10840. conftest$ac_exeext conftest.$ac_ext
  10841. fi
  10842. { echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  10843. echo "${ECHO_T}$gt_cv_nl_locale_name" >&6; }
  10844. if test $gt_cv_nl_locale_name = yes; then
  10845. cat >>confdefs.h <<\_ACEOF
  10846. #define HAVE_NL_LOCALE_NAME 1
  10847. _ACEOF
  10848. fi
  10849. for ac_prog in bison
  10850. do
  10851. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10852. set dummy $ac_prog; ac_word=$2
  10853. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  10854. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  10855. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  10856. echo $ECHO_N "(cached) $ECHO_C" >&6
  10857. else
  10858. if test -n "$INTLBISON"; then
  10859. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  10860. else
  10861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10862. for as_dir in $PATH
  10863. do
  10864. IFS=$as_save_IFS
  10865. test -z "$as_dir" && as_dir=.
  10866. for ac_exec_ext in '' $ac_executable_extensions; do
  10867. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10868. ac_cv_prog_INTLBISON="$ac_prog"
  10869. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10870. break 2
  10871. fi
  10872. done
  10873. done
  10874. IFS=$as_save_IFS
  10875. fi
  10876. fi
  10877. INTLBISON=$ac_cv_prog_INTLBISON
  10878. if test -n "$INTLBISON"; then
  10879. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  10880. echo "${ECHO_T}$INTLBISON" >&6; }
  10881. else
  10882. { echo "$as_me:$LINENO: result: no" >&5
  10883. echo "${ECHO_T}no" >&6; }
  10884. fi
  10885. test -n "$INTLBISON" && break
  10886. done
  10887. if test -z "$INTLBISON"; then
  10888. ac_verc_fail=yes
  10889. else
  10890. { echo "$as_me:$LINENO: checking version of bison" >&5
  10891. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  10892. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  10893. case $ac_prog_version in
  10894. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  10895. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  10896. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  10897. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  10898. esac
  10899. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  10900. echo "${ECHO_T}$ac_prog_version" >&6; }
  10901. fi
  10902. if test $ac_verc_fail = yes; then
  10903. INTLBISON=:
  10904. fi
  10905. { echo "$as_me:$LINENO: checking for long long int" >&5
  10906. echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
  10907. if test "${ac_cv_type_long_long_int+set}" = set; then
  10908. echo $ECHO_N "(cached) $ECHO_C" >&6
  10909. else
  10910. cat >conftest.$ac_ext <<_ACEOF
  10911. /* confdefs.h. */
  10912. _ACEOF
  10913. cat confdefs.h >>conftest.$ac_ext
  10914. cat >>conftest.$ac_ext <<_ACEOF
  10915. /* end confdefs.h. */
  10916. /* Test preprocessor. */
  10917. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10918. error in preprocessor;
  10919. #endif
  10920. #if ! (18446744073709551615ULL <= -1ull)
  10921. error in preprocessor;
  10922. #endif
  10923. /* Test literals. */
  10924. long long int ll = 9223372036854775807ll;
  10925. long long int nll = -9223372036854775807LL;
  10926. unsigned long long int ull = 18446744073709551615ULL;
  10927. /* Test constant expressions. */
  10928. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  10929. ? 1 : -1)];
  10930. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  10931. ? 1 : -1)];
  10932. int i = 63;
  10933. int
  10934. main ()
  10935. {
  10936. /* Test availability of runtime routines for shift and division. */
  10937. long long int llmax = 9223372036854775807ll;
  10938. unsigned long long int ullmax = 18446744073709551615ull;
  10939. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  10940. | (llmax / ll) | (llmax % ll)
  10941. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  10942. | (ullmax / ull) | (ullmax % ull));
  10943. ;
  10944. return 0;
  10945. }
  10946. _ACEOF
  10947. rm -f conftest.$ac_objext conftest$ac_exeext
  10948. if { (ac_try="$ac_link"
  10949. case "(($ac_try" in
  10950. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10951. *) ac_try_echo=$ac_try;;
  10952. esac
  10953. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10954. (eval "$ac_link") 2>conftest.er1
  10955. ac_status=$?
  10956. grep -v '^ *+' conftest.er1 >conftest.err
  10957. rm -f conftest.er1
  10958. cat conftest.err >&5
  10959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10960. (exit $ac_status); } && {
  10961. test -z "$ac_cxx_werror_flag" ||
  10962. test ! -s conftest.err
  10963. } && test -s conftest$ac_exeext &&
  10964. $as_test_x conftest$ac_exeext; then
  10965. if test "$cross_compiling" = yes; then
  10966. ac_cv_type_long_long_int=yes
  10967. else
  10968. cat >conftest.$ac_ext <<_ACEOF
  10969. /* confdefs.h. */
  10970. _ACEOF
  10971. cat confdefs.h >>conftest.$ac_ext
  10972. cat >>conftest.$ac_ext <<_ACEOF
  10973. /* end confdefs.h. */
  10974. #include <limits.h>
  10975. #ifndef LLONG_MAX
  10976. # define HALF \
  10977. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  10978. # define LLONG_MAX (HALF - 1 + HALF)
  10979. #endif
  10980. int
  10981. main ()
  10982. {
  10983. long long int n = 1;
  10984. int i;
  10985. for (i = 0; ; i++)
  10986. {
  10987. long long int m = n << i;
  10988. if (m >> i != n)
  10989. return 1;
  10990. if (LLONG_MAX / 2 < m)
  10991. break;
  10992. }
  10993. return 0;
  10994. ;
  10995. return 0;
  10996. }
  10997. _ACEOF
  10998. rm -f conftest$ac_exeext
  10999. if { (ac_try="$ac_link"
  11000. case "(($ac_try" in
  11001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11002. *) ac_try_echo=$ac_try;;
  11003. esac
  11004. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11005. (eval "$ac_link") 2>&5
  11006. ac_status=$?
  11007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11008. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11009. { (case "(($ac_try" in
  11010. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11011. *) ac_try_echo=$ac_try;;
  11012. esac
  11013. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11014. (eval "$ac_try") 2>&5
  11015. ac_status=$?
  11016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11017. (exit $ac_status); }; }; then
  11018. ac_cv_type_long_long_int=yes
  11019. else
  11020. echo "$as_me: program exited with status $ac_status" >&5
  11021. echo "$as_me: failed program was:" >&5
  11022. sed 's/^/| /' conftest.$ac_ext >&5
  11023. ( exit $ac_status )
  11024. ac_cv_type_long_long_int=no
  11025. fi
  11026. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11027. fi
  11028. else
  11029. echo "$as_me: failed program was:" >&5
  11030. sed 's/^/| /' conftest.$ac_ext >&5
  11031. ac_cv_type_long_long_int=no
  11032. fi
  11033. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11034. conftest$ac_exeext conftest.$ac_ext
  11035. fi
  11036. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  11037. echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
  11038. if test $ac_cv_type_long_long_int = yes; then
  11039. cat >>confdefs.h <<\_ACEOF
  11040. #define HAVE_LONG_LONG_INT 1
  11041. _ACEOF
  11042. fi
  11043. { echo "$as_me:$LINENO: checking for wchar_t" >&5
  11044. echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
  11045. if test "${gt_cv_c_wchar_t+set}" = set; then
  11046. echo $ECHO_N "(cached) $ECHO_C" >&6
  11047. else
  11048. cat >conftest.$ac_ext <<_ACEOF
  11049. /* confdefs.h. */
  11050. _ACEOF
  11051. cat confdefs.h >>conftest.$ac_ext
  11052. cat >>conftest.$ac_ext <<_ACEOF
  11053. /* end confdefs.h. */
  11054. #include <stddef.h>
  11055. wchar_t foo = (wchar_t)'\0';
  11056. int
  11057. main ()
  11058. {
  11059. ;
  11060. return 0;
  11061. }
  11062. _ACEOF
  11063. rm -f conftest.$ac_objext
  11064. if { (ac_try="$ac_compile"
  11065. case "(($ac_try" in
  11066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11067. *) ac_try_echo=$ac_try;;
  11068. esac
  11069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11070. (eval "$ac_compile") 2>conftest.er1
  11071. ac_status=$?
  11072. grep -v '^ *+' conftest.er1 >conftest.err
  11073. rm -f conftest.er1
  11074. cat conftest.err >&5
  11075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11076. (exit $ac_status); } && {
  11077. test -z "$ac_cxx_werror_flag" ||
  11078. test ! -s conftest.err
  11079. } && test -s conftest.$ac_objext; then
  11080. gt_cv_c_wchar_t=yes
  11081. else
  11082. echo "$as_me: failed program was:" >&5
  11083. sed 's/^/| /' conftest.$ac_ext >&5
  11084. gt_cv_c_wchar_t=no
  11085. fi
  11086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11087. fi
  11088. { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  11089. echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
  11090. if test $gt_cv_c_wchar_t = yes; then
  11091. cat >>confdefs.h <<\_ACEOF
  11092. #define HAVE_WCHAR_T 1
  11093. _ACEOF
  11094. fi
  11095. { echo "$as_me:$LINENO: checking for wint_t" >&5
  11096. echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
  11097. if test "${gt_cv_c_wint_t+set}" = set; then
  11098. echo $ECHO_N "(cached) $ECHO_C" >&6
  11099. else
  11100. cat >conftest.$ac_ext <<_ACEOF
  11101. /* confdefs.h. */
  11102. _ACEOF
  11103. cat confdefs.h >>conftest.$ac_ext
  11104. cat >>conftest.$ac_ext <<_ACEOF
  11105. /* end confdefs.h. */
  11106. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  11107. <wchar.h>.
  11108. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  11109. before <wchar.h>. */
  11110. #include <stddef.h>
  11111. #include <stdio.h>
  11112. #include <time.h>
  11113. #include <wchar.h>
  11114. wint_t foo = (wchar_t)'\0';
  11115. int
  11116. main ()
  11117. {
  11118. ;
  11119. return 0;
  11120. }
  11121. _ACEOF
  11122. rm -f conftest.$ac_objext
  11123. if { (ac_try="$ac_compile"
  11124. case "(($ac_try" in
  11125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11126. *) ac_try_echo=$ac_try;;
  11127. esac
  11128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11129. (eval "$ac_compile") 2>conftest.er1
  11130. ac_status=$?
  11131. grep -v '^ *+' conftest.er1 >conftest.err
  11132. rm -f conftest.er1
  11133. cat conftest.err >&5
  11134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11135. (exit $ac_status); } && {
  11136. test -z "$ac_cxx_werror_flag" ||
  11137. test ! -s conftest.err
  11138. } && test -s conftest.$ac_objext; then
  11139. gt_cv_c_wint_t=yes
  11140. else
  11141. echo "$as_me: failed program was:" >&5
  11142. sed 's/^/| /' conftest.$ac_ext >&5
  11143. gt_cv_c_wint_t=no
  11144. fi
  11145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11146. fi
  11147. { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  11148. echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
  11149. if test $gt_cv_c_wint_t = yes; then
  11150. cat >>confdefs.h <<\_ACEOF
  11151. #define HAVE_WINT_T 1
  11152. _ACEOF
  11153. fi
  11154. { echo "$as_me:$LINENO: checking for intmax_t" >&5
  11155. echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
  11156. if test "${gt_cv_c_intmax_t+set}" = set; then
  11157. echo $ECHO_N "(cached) $ECHO_C" >&6
  11158. else
  11159. cat >conftest.$ac_ext <<_ACEOF
  11160. /* confdefs.h. */
  11161. _ACEOF
  11162. cat confdefs.h >>conftest.$ac_ext
  11163. cat >>conftest.$ac_ext <<_ACEOF
  11164. /* end confdefs.h. */
  11165. #include <stddef.h>
  11166. #include <stdlib.h>
  11167. #if HAVE_STDINT_H_WITH_UINTMAX
  11168. #include <stdint.h>
  11169. #endif
  11170. #if HAVE_INTTYPES_H_WITH_UINTMAX
  11171. #include <inttypes.h>
  11172. #endif
  11173. int
  11174. main ()
  11175. {
  11176. intmax_t x = -1;
  11177. return !x;
  11178. ;
  11179. return 0;
  11180. }
  11181. _ACEOF
  11182. rm -f conftest.$ac_objext
  11183. if { (ac_try="$ac_compile"
  11184. case "(($ac_try" in
  11185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11186. *) ac_try_echo=$ac_try;;
  11187. esac
  11188. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11189. (eval "$ac_compile") 2>conftest.er1
  11190. ac_status=$?
  11191. grep -v '^ *+' conftest.er1 >conftest.err
  11192. rm -f conftest.er1
  11193. cat conftest.err >&5
  11194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11195. (exit $ac_status); } && {
  11196. test -z "$ac_cxx_werror_flag" ||
  11197. test ! -s conftest.err
  11198. } && test -s conftest.$ac_objext; then
  11199. gt_cv_c_intmax_t=yes
  11200. else
  11201. echo "$as_me: failed program was:" >&5
  11202. sed 's/^/| /' conftest.$ac_ext >&5
  11203. gt_cv_c_intmax_t=no
  11204. fi
  11205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11206. fi
  11207. { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  11208. echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
  11209. if test $gt_cv_c_intmax_t = yes; then
  11210. cat >>confdefs.h <<\_ACEOF
  11211. #define HAVE_INTMAX_T 1
  11212. _ACEOF
  11213. fi
  11214. { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  11215. echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
  11216. if test "${gt_cv_func_printf_posix+set}" = set; then
  11217. echo $ECHO_N "(cached) $ECHO_C" >&6
  11218. else
  11219. if test "$cross_compiling" = yes; then
  11220. cat >conftest.$ac_ext <<_ACEOF
  11221. /* confdefs.h. */
  11222. _ACEOF
  11223. cat confdefs.h >>conftest.$ac_ext
  11224. cat >>conftest.$ac_ext <<_ACEOF
  11225. /* end confdefs.h. */
  11226. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  11227. notposix
  11228. #endif
  11229. _ACEOF
  11230. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11231. $EGREP "notposix" >/dev/null 2>&1; then
  11232. gt_cv_func_printf_posix="guessing no"
  11233. else
  11234. gt_cv_func_printf_posix="guessing yes"
  11235. fi
  11236. rm -f conftest*
  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 <stdio.h>
  11245. #include <string.h>
  11246. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  11247. dollar expansion (possibly an autoconf bug). */
  11248. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  11249. static char buf[100];
  11250. int main ()
  11251. {
  11252. sprintf (buf, format, 33, 55);
  11253. return (strcmp (buf, "55 33") != 0);
  11254. }
  11255. _ACEOF
  11256. rm -f conftest$ac_exeext
  11257. if { (ac_try="$ac_link"
  11258. case "(($ac_try" in
  11259. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11260. *) ac_try_echo=$ac_try;;
  11261. esac
  11262. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11263. (eval "$ac_link") 2>&5
  11264. ac_status=$?
  11265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11266. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11267. { (case "(($ac_try" in
  11268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11269. *) ac_try_echo=$ac_try;;
  11270. esac
  11271. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11272. (eval "$ac_try") 2>&5
  11273. ac_status=$?
  11274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11275. (exit $ac_status); }; }; then
  11276. gt_cv_func_printf_posix=yes
  11277. else
  11278. echo "$as_me: program exited with status $ac_status" >&5
  11279. echo "$as_me: failed program was:" >&5
  11280. sed 's/^/| /' conftest.$ac_ext >&5
  11281. ( exit $ac_status )
  11282. gt_cv_func_printf_posix=no
  11283. fi
  11284. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11285. fi
  11286. fi
  11287. { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  11288. echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
  11289. case $gt_cv_func_printf_posix in
  11290. *yes)
  11291. cat >>confdefs.h <<\_ACEOF
  11292. #define HAVE_POSIX_PRINTF 1
  11293. _ACEOF
  11294. ;;
  11295. esac
  11296. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  11297. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  11298. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  11299. echo $ECHO_N "(cached) $ECHO_C" >&6
  11300. else
  11301. cat >conftest.$ac_ext <<_ACEOF
  11302. /* confdefs.h. */
  11303. _ACEOF
  11304. cat confdefs.h >>conftest.$ac_ext
  11305. cat >>conftest.$ac_ext <<_ACEOF
  11306. /* end confdefs.h. */
  11307. #include <features.h>
  11308. #ifdef __GNU_LIBRARY__
  11309. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  11310. Lucky GNU user
  11311. #endif
  11312. #endif
  11313. _ACEOF
  11314. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11315. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  11316. ac_cv_gnu_library_2_1=yes
  11317. else
  11318. ac_cv_gnu_library_2_1=no
  11319. fi
  11320. rm -f conftest*
  11321. fi
  11322. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  11323. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  11324. GLIBC21="$ac_cv_gnu_library_2_1"
  11325. for ac_header in stdint.h
  11326. do
  11327. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11328. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11329. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11330. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11331. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11332. echo $ECHO_N "(cached) $ECHO_C" >&6
  11333. fi
  11334. ac_res=`eval echo '${'$as_ac_Header'}'`
  11335. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11336. echo "${ECHO_T}$ac_res" >&6; }
  11337. else
  11338. # Is the header compilable?
  11339. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11340. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  11341. cat >conftest.$ac_ext <<_ACEOF
  11342. /* confdefs.h. */
  11343. _ACEOF
  11344. cat confdefs.h >>conftest.$ac_ext
  11345. cat >>conftest.$ac_ext <<_ACEOF
  11346. /* end confdefs.h. */
  11347. $ac_includes_default
  11348. #include <$ac_header>
  11349. _ACEOF
  11350. rm -f conftest.$ac_objext
  11351. if { (ac_try="$ac_compile"
  11352. case "(($ac_try" in
  11353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11354. *) ac_try_echo=$ac_try;;
  11355. esac
  11356. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11357. (eval "$ac_compile") 2>conftest.er1
  11358. ac_status=$?
  11359. grep -v '^ *+' conftest.er1 >conftest.err
  11360. rm -f conftest.er1
  11361. cat conftest.err >&5
  11362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11363. (exit $ac_status); } && {
  11364. test -z "$ac_cxx_werror_flag" ||
  11365. test ! -s conftest.err
  11366. } && test -s conftest.$ac_objext; then
  11367. ac_header_compiler=yes
  11368. else
  11369. echo "$as_me: failed program was:" >&5
  11370. sed 's/^/| /' conftest.$ac_ext >&5
  11371. ac_header_compiler=no
  11372. fi
  11373. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11374. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11375. echo "${ECHO_T}$ac_header_compiler" >&6; }
  11376. # Is the header present?
  11377. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11378. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  11379. cat >conftest.$ac_ext <<_ACEOF
  11380. /* confdefs.h. */
  11381. _ACEOF
  11382. cat confdefs.h >>conftest.$ac_ext
  11383. cat >>conftest.$ac_ext <<_ACEOF
  11384. /* end confdefs.h. */
  11385. #include <$ac_header>
  11386. _ACEOF
  11387. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11388. case "(($ac_try" in
  11389. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11390. *) ac_try_echo=$ac_try;;
  11391. esac
  11392. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11393. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11394. ac_status=$?
  11395. grep -v '^ *+' conftest.er1 >conftest.err
  11396. rm -f conftest.er1
  11397. cat conftest.err >&5
  11398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11399. (exit $ac_status); } >/dev/null && {
  11400. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11401. test ! -s conftest.err
  11402. }; then
  11403. ac_header_preproc=yes
  11404. else
  11405. echo "$as_me: failed program was:" >&5
  11406. sed 's/^/| /' conftest.$ac_ext >&5
  11407. ac_header_preproc=no
  11408. fi
  11409. rm -f conftest.err conftest.$ac_ext
  11410. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11411. echo "${ECHO_T}$ac_header_preproc" >&6; }
  11412. # So? What about this header?
  11413. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11414. yes:no: )
  11415. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11416. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11417. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11418. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11419. ac_header_preproc=yes
  11420. ;;
  11421. no:yes:* )
  11422. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11423. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11424. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11425. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11426. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11427. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11428. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11429. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11430. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11431. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11432. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11433. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11434. ( cat <<\_ASBOX
  11435. ## ----------------------------------------------- ##
  11436. ## Report this to t-tujikawa@users.sourceforge.net ##
  11437. ## ----------------------------------------------- ##
  11438. _ASBOX
  11439. ) | sed "s/^/$as_me: WARNING: /" >&2
  11440. ;;
  11441. esac
  11442. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  11443. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  11444. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11445. echo $ECHO_N "(cached) $ECHO_C" >&6
  11446. else
  11447. eval "$as_ac_Header=\$ac_header_preproc"
  11448. fi
  11449. ac_res=`eval echo '${'$as_ac_Header'}'`
  11450. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11451. echo "${ECHO_T}$ac_res" >&6; }
  11452. fi
  11453. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  11454. cat >>confdefs.h <<_ACEOF
  11455. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11456. _ACEOF
  11457. fi
  11458. done
  11459. { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  11460. echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
  11461. if test "${gl_cv_size_max+set}" = set; then
  11462. echo $ECHO_N "(cached) $ECHO_C" >&6
  11463. else
  11464. gl_cv_size_max=
  11465. cat >conftest.$ac_ext <<_ACEOF
  11466. /* confdefs.h. */
  11467. _ACEOF
  11468. cat confdefs.h >>conftest.$ac_ext
  11469. cat >>conftest.$ac_ext <<_ACEOF
  11470. /* end confdefs.h. */
  11471. #include <limits.h>
  11472. #if HAVE_STDINT_H
  11473. #include <stdint.h>
  11474. #endif
  11475. #ifdef SIZE_MAX
  11476. Found it
  11477. #endif
  11478. _ACEOF
  11479. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  11480. $EGREP "Found it" >/dev/null 2>&1; then
  11481. gl_cv_size_max=yes
  11482. fi
  11483. rm -f conftest*
  11484. if test -z "$gl_cv_size_max"; then
  11485. if test "$cross_compiling" = yes; then
  11486. # Depending upon the size, compute the lo and hi bounds.
  11487. cat >conftest.$ac_ext <<_ACEOF
  11488. /* confdefs.h. */
  11489. _ACEOF
  11490. cat confdefs.h >>conftest.$ac_ext
  11491. cat >>conftest.$ac_ext <<_ACEOF
  11492. /* end confdefs.h. */
  11493. #include <stddef.h>
  11494. #include <limits.h>
  11495. int
  11496. main ()
  11497. {
  11498. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  11499. test_array [0] = 0
  11500. ;
  11501. return 0;
  11502. }
  11503. _ACEOF
  11504. rm -f conftest.$ac_objext
  11505. if { (ac_try="$ac_compile"
  11506. case "(($ac_try" in
  11507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11508. *) ac_try_echo=$ac_try;;
  11509. esac
  11510. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11511. (eval "$ac_compile") 2>conftest.er1
  11512. ac_status=$?
  11513. grep -v '^ *+' conftest.er1 >conftest.err
  11514. rm -f conftest.er1
  11515. cat conftest.err >&5
  11516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11517. (exit $ac_status); } && {
  11518. test -z "$ac_cxx_werror_flag" ||
  11519. test ! -s conftest.err
  11520. } && test -s conftest.$ac_objext; then
  11521. ac_lo=0 ac_mid=0
  11522. while :; do
  11523. cat >conftest.$ac_ext <<_ACEOF
  11524. /* confdefs.h. */
  11525. _ACEOF
  11526. cat confdefs.h >>conftest.$ac_ext
  11527. cat >>conftest.$ac_ext <<_ACEOF
  11528. /* end confdefs.h. */
  11529. #include <stddef.h>
  11530. #include <limits.h>
  11531. int
  11532. main ()
  11533. {
  11534. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  11535. test_array [0] = 0
  11536. ;
  11537. return 0;
  11538. }
  11539. _ACEOF
  11540. rm -f conftest.$ac_objext
  11541. if { (ac_try="$ac_compile"
  11542. case "(($ac_try" in
  11543. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11544. *) ac_try_echo=$ac_try;;
  11545. esac
  11546. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11547. (eval "$ac_compile") 2>conftest.er1
  11548. ac_status=$?
  11549. grep -v '^ *+' conftest.er1 >conftest.err
  11550. rm -f conftest.er1
  11551. cat conftest.err >&5
  11552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11553. (exit $ac_status); } && {
  11554. test -z "$ac_cxx_werror_flag" ||
  11555. test ! -s conftest.err
  11556. } && test -s conftest.$ac_objext; then
  11557. ac_hi=$ac_mid; break
  11558. else
  11559. echo "$as_me: failed program was:" >&5
  11560. sed 's/^/| /' conftest.$ac_ext >&5
  11561. ac_lo=`expr $ac_mid + 1`
  11562. if test $ac_lo -le $ac_mid; then
  11563. ac_lo= ac_hi=
  11564. break
  11565. fi
  11566. ac_mid=`expr 2 '*' $ac_mid + 1`
  11567. fi
  11568. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11569. done
  11570. else
  11571. echo "$as_me: failed program was:" >&5
  11572. sed 's/^/| /' conftest.$ac_ext >&5
  11573. cat >conftest.$ac_ext <<_ACEOF
  11574. /* confdefs.h. */
  11575. _ACEOF
  11576. cat confdefs.h >>conftest.$ac_ext
  11577. cat >>conftest.$ac_ext <<_ACEOF
  11578. /* end confdefs.h. */
  11579. #include <stddef.h>
  11580. #include <limits.h>
  11581. int
  11582. main ()
  11583. {
  11584. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  11585. test_array [0] = 0
  11586. ;
  11587. return 0;
  11588. }
  11589. _ACEOF
  11590. rm -f conftest.$ac_objext
  11591. if { (ac_try="$ac_compile"
  11592. case "(($ac_try" in
  11593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11594. *) ac_try_echo=$ac_try;;
  11595. esac
  11596. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11597. (eval "$ac_compile") 2>conftest.er1
  11598. ac_status=$?
  11599. grep -v '^ *+' conftest.er1 >conftest.err
  11600. rm -f conftest.er1
  11601. cat conftest.err >&5
  11602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11603. (exit $ac_status); } && {
  11604. test -z "$ac_cxx_werror_flag" ||
  11605. test ! -s conftest.err
  11606. } && test -s conftest.$ac_objext; then
  11607. ac_hi=-1 ac_mid=-1
  11608. while :; do
  11609. cat >conftest.$ac_ext <<_ACEOF
  11610. /* confdefs.h. */
  11611. _ACEOF
  11612. cat confdefs.h >>conftest.$ac_ext
  11613. cat >>conftest.$ac_ext <<_ACEOF
  11614. /* end confdefs.h. */
  11615. #include <stddef.h>
  11616. #include <limits.h>
  11617. int
  11618. main ()
  11619. {
  11620. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  11621. test_array [0] = 0
  11622. ;
  11623. return 0;
  11624. }
  11625. _ACEOF
  11626. rm -f conftest.$ac_objext
  11627. if { (ac_try="$ac_compile"
  11628. case "(($ac_try" in
  11629. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11630. *) ac_try_echo=$ac_try;;
  11631. esac
  11632. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11633. (eval "$ac_compile") 2>conftest.er1
  11634. ac_status=$?
  11635. grep -v '^ *+' conftest.er1 >conftest.err
  11636. rm -f conftest.er1
  11637. cat conftest.err >&5
  11638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11639. (exit $ac_status); } && {
  11640. test -z "$ac_cxx_werror_flag" ||
  11641. test ! -s conftest.err
  11642. } && test -s conftest.$ac_objext; then
  11643. ac_lo=$ac_mid; break
  11644. else
  11645. echo "$as_me: failed program was:" >&5
  11646. sed 's/^/| /' conftest.$ac_ext >&5
  11647. ac_hi=`expr '(' $ac_mid ')' - 1`
  11648. if test $ac_mid -le $ac_hi; then
  11649. ac_lo= ac_hi=
  11650. break
  11651. fi
  11652. ac_mid=`expr 2 '*' $ac_mid`
  11653. fi
  11654. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11655. done
  11656. else
  11657. echo "$as_me: failed program was:" >&5
  11658. sed 's/^/| /' conftest.$ac_ext >&5
  11659. ac_lo= ac_hi=
  11660. fi
  11661. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11662. fi
  11663. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11664. # Binary search between lo and hi bounds.
  11665. while test "x$ac_lo" != "x$ac_hi"; do
  11666. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  11667. cat >conftest.$ac_ext <<_ACEOF
  11668. /* confdefs.h. */
  11669. _ACEOF
  11670. cat confdefs.h >>conftest.$ac_ext
  11671. cat >>conftest.$ac_ext <<_ACEOF
  11672. /* end confdefs.h. */
  11673. #include <stddef.h>
  11674. #include <limits.h>
  11675. int
  11676. main ()
  11677. {
  11678. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  11679. test_array [0] = 0
  11680. ;
  11681. return 0;
  11682. }
  11683. _ACEOF
  11684. rm -f conftest.$ac_objext
  11685. if { (ac_try="$ac_compile"
  11686. case "(($ac_try" in
  11687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11688. *) ac_try_echo=$ac_try;;
  11689. esac
  11690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11691. (eval "$ac_compile") 2>conftest.er1
  11692. ac_status=$?
  11693. grep -v '^ *+' conftest.er1 >conftest.err
  11694. rm -f conftest.er1
  11695. cat conftest.err >&5
  11696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11697. (exit $ac_status); } && {
  11698. test -z "$ac_cxx_werror_flag" ||
  11699. test ! -s conftest.err
  11700. } && test -s conftest.$ac_objext; then
  11701. ac_hi=$ac_mid
  11702. else
  11703. echo "$as_me: failed program was:" >&5
  11704. sed 's/^/| /' conftest.$ac_ext >&5
  11705. ac_lo=`expr '(' $ac_mid ')' + 1`
  11706. fi
  11707. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11708. done
  11709. case $ac_lo in
  11710. ?*) size_t_bits_minus_1=$ac_lo;;
  11711. '') size_t_bits_minus_1= ;;
  11712. esac
  11713. else
  11714. cat >conftest.$ac_ext <<_ACEOF
  11715. /* confdefs.h. */
  11716. _ACEOF
  11717. cat confdefs.h >>conftest.$ac_ext
  11718. cat >>conftest.$ac_ext <<_ACEOF
  11719. /* end confdefs.h. */
  11720. #include <stddef.h>
  11721. #include <limits.h>
  11722. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  11723. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  11724. #include <stdio.h>
  11725. #include <stdlib.h>
  11726. int
  11727. main ()
  11728. {
  11729. FILE *f = fopen ("conftest.val", "w");
  11730. if (! f)
  11731. return 1;
  11732. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  11733. {
  11734. long int i = longval ();
  11735. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  11736. return 1;
  11737. fprintf (f, "%ld\n", i);
  11738. }
  11739. else
  11740. {
  11741. unsigned long int i = ulongval ();
  11742. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  11743. return 1;
  11744. fprintf (f, "%lu\n", i);
  11745. }
  11746. return ferror (f) || fclose (f) != 0;
  11747. ;
  11748. return 0;
  11749. }
  11750. _ACEOF
  11751. rm -f conftest$ac_exeext
  11752. if { (ac_try="$ac_link"
  11753. case "(($ac_try" in
  11754. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11755. *) ac_try_echo=$ac_try;;
  11756. esac
  11757. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11758. (eval "$ac_link") 2>&5
  11759. ac_status=$?
  11760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11761. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11762. { (case "(($ac_try" in
  11763. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11764. *) ac_try_echo=$ac_try;;
  11765. esac
  11766. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11767. (eval "$ac_try") 2>&5
  11768. ac_status=$?
  11769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11770. (exit $ac_status); }; }; then
  11771. size_t_bits_minus_1=`cat conftest.val`
  11772. else
  11773. echo "$as_me: program exited with status $ac_status" >&5
  11774. echo "$as_me: failed program was:" >&5
  11775. sed 's/^/| /' conftest.$ac_ext >&5
  11776. ( exit $ac_status )
  11777. size_t_bits_minus_1=
  11778. fi
  11779. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11780. fi
  11781. rm -f conftest.val
  11782. if test "$cross_compiling" = yes; then
  11783. # Depending upon the size, compute the lo and hi bounds.
  11784. cat >conftest.$ac_ext <<_ACEOF
  11785. /* confdefs.h. */
  11786. _ACEOF
  11787. cat confdefs.h >>conftest.$ac_ext
  11788. cat >>conftest.$ac_ext <<_ACEOF
  11789. /* end confdefs.h. */
  11790. #include <stddef.h>
  11791. int
  11792. main ()
  11793. {
  11794. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  11795. test_array [0] = 0
  11796. ;
  11797. return 0;
  11798. }
  11799. _ACEOF
  11800. rm -f conftest.$ac_objext
  11801. if { (ac_try="$ac_compile"
  11802. case "(($ac_try" in
  11803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11804. *) ac_try_echo=$ac_try;;
  11805. esac
  11806. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11807. (eval "$ac_compile") 2>conftest.er1
  11808. ac_status=$?
  11809. grep -v '^ *+' conftest.er1 >conftest.err
  11810. rm -f conftest.er1
  11811. cat conftest.err >&5
  11812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11813. (exit $ac_status); } && {
  11814. test -z "$ac_cxx_werror_flag" ||
  11815. test ! -s conftest.err
  11816. } && test -s conftest.$ac_objext; then
  11817. ac_lo=0 ac_mid=0
  11818. while :; do
  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 <stddef.h>
  11826. int
  11827. main ()
  11828. {
  11829. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  11830. test_array [0] = 0
  11831. ;
  11832. return 0;
  11833. }
  11834. _ACEOF
  11835. rm -f conftest.$ac_objext
  11836. if { (ac_try="$ac_compile"
  11837. case "(($ac_try" in
  11838. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11839. *) ac_try_echo=$ac_try;;
  11840. esac
  11841. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11842. (eval "$ac_compile") 2>conftest.er1
  11843. ac_status=$?
  11844. grep -v '^ *+' conftest.er1 >conftest.err
  11845. rm -f conftest.er1
  11846. cat conftest.err >&5
  11847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11848. (exit $ac_status); } && {
  11849. test -z "$ac_cxx_werror_flag" ||
  11850. test ! -s conftest.err
  11851. } && test -s conftest.$ac_objext; then
  11852. ac_hi=$ac_mid; break
  11853. else
  11854. echo "$as_me: failed program was:" >&5
  11855. sed 's/^/| /' conftest.$ac_ext >&5
  11856. ac_lo=`expr $ac_mid + 1`
  11857. if test $ac_lo -le $ac_mid; then
  11858. ac_lo= ac_hi=
  11859. break
  11860. fi
  11861. ac_mid=`expr 2 '*' $ac_mid + 1`
  11862. fi
  11863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11864. done
  11865. else
  11866. echo "$as_me: failed program was:" >&5
  11867. sed 's/^/| /' conftest.$ac_ext >&5
  11868. cat >conftest.$ac_ext <<_ACEOF
  11869. /* confdefs.h. */
  11870. _ACEOF
  11871. cat confdefs.h >>conftest.$ac_ext
  11872. cat >>conftest.$ac_ext <<_ACEOF
  11873. /* end confdefs.h. */
  11874. #include <stddef.h>
  11875. int
  11876. main ()
  11877. {
  11878. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  11879. test_array [0] = 0
  11880. ;
  11881. return 0;
  11882. }
  11883. _ACEOF
  11884. rm -f conftest.$ac_objext
  11885. if { (ac_try="$ac_compile"
  11886. case "(($ac_try" in
  11887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11888. *) ac_try_echo=$ac_try;;
  11889. esac
  11890. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11891. (eval "$ac_compile") 2>conftest.er1
  11892. ac_status=$?
  11893. grep -v '^ *+' conftest.er1 >conftest.err
  11894. rm -f conftest.er1
  11895. cat conftest.err >&5
  11896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11897. (exit $ac_status); } && {
  11898. test -z "$ac_cxx_werror_flag" ||
  11899. test ! -s conftest.err
  11900. } && test -s conftest.$ac_objext; then
  11901. ac_hi=-1 ac_mid=-1
  11902. while :; do
  11903. cat >conftest.$ac_ext <<_ACEOF
  11904. /* confdefs.h. */
  11905. _ACEOF
  11906. cat confdefs.h >>conftest.$ac_ext
  11907. cat >>conftest.$ac_ext <<_ACEOF
  11908. /* end confdefs.h. */
  11909. #include <stddef.h>
  11910. int
  11911. main ()
  11912. {
  11913. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  11914. test_array [0] = 0
  11915. ;
  11916. return 0;
  11917. }
  11918. _ACEOF
  11919. rm -f conftest.$ac_objext
  11920. if { (ac_try="$ac_compile"
  11921. case "(($ac_try" in
  11922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11923. *) ac_try_echo=$ac_try;;
  11924. esac
  11925. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11926. (eval "$ac_compile") 2>conftest.er1
  11927. ac_status=$?
  11928. grep -v '^ *+' conftest.er1 >conftest.err
  11929. rm -f conftest.er1
  11930. cat conftest.err >&5
  11931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11932. (exit $ac_status); } && {
  11933. test -z "$ac_cxx_werror_flag" ||
  11934. test ! -s conftest.err
  11935. } && test -s conftest.$ac_objext; then
  11936. ac_lo=$ac_mid; break
  11937. else
  11938. echo "$as_me: failed program was:" >&5
  11939. sed 's/^/| /' conftest.$ac_ext >&5
  11940. ac_hi=`expr '(' $ac_mid ')' - 1`
  11941. if test $ac_mid -le $ac_hi; then
  11942. ac_lo= ac_hi=
  11943. break
  11944. fi
  11945. ac_mid=`expr 2 '*' $ac_mid`
  11946. fi
  11947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11948. done
  11949. else
  11950. echo "$as_me: failed program was:" >&5
  11951. sed 's/^/| /' conftest.$ac_ext >&5
  11952. ac_lo= ac_hi=
  11953. fi
  11954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11955. fi
  11956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11957. # Binary search between lo and hi bounds.
  11958. while test "x$ac_lo" != "x$ac_hi"; do
  11959. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  11960. cat >conftest.$ac_ext <<_ACEOF
  11961. /* confdefs.h. */
  11962. _ACEOF
  11963. cat confdefs.h >>conftest.$ac_ext
  11964. cat >>conftest.$ac_ext <<_ACEOF
  11965. /* end confdefs.h. */
  11966. #include <stddef.h>
  11967. int
  11968. main ()
  11969. {
  11970. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  11971. test_array [0] = 0
  11972. ;
  11973. return 0;
  11974. }
  11975. _ACEOF
  11976. rm -f conftest.$ac_objext
  11977. if { (ac_try="$ac_compile"
  11978. case "(($ac_try" in
  11979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11980. *) ac_try_echo=$ac_try;;
  11981. esac
  11982. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11983. (eval "$ac_compile") 2>conftest.er1
  11984. ac_status=$?
  11985. grep -v '^ *+' conftest.er1 >conftest.err
  11986. rm -f conftest.er1
  11987. cat conftest.err >&5
  11988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11989. (exit $ac_status); } && {
  11990. test -z "$ac_cxx_werror_flag" ||
  11991. test ! -s conftest.err
  11992. } && test -s conftest.$ac_objext; then
  11993. ac_hi=$ac_mid
  11994. else
  11995. echo "$as_me: failed program was:" >&5
  11996. sed 's/^/| /' conftest.$ac_ext >&5
  11997. ac_lo=`expr '(' $ac_mid ')' + 1`
  11998. fi
  11999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12000. done
  12001. case $ac_lo in
  12002. ?*) fits_in_uint=$ac_lo;;
  12003. '') fits_in_uint= ;;
  12004. esac
  12005. else
  12006. cat >conftest.$ac_ext <<_ACEOF
  12007. /* confdefs.h. */
  12008. _ACEOF
  12009. cat confdefs.h >>conftest.$ac_ext
  12010. cat >>conftest.$ac_ext <<_ACEOF
  12011. /* end confdefs.h. */
  12012. #include <stddef.h>
  12013. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  12014. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  12015. #include <stdio.h>
  12016. #include <stdlib.h>
  12017. int
  12018. main ()
  12019. {
  12020. FILE *f = fopen ("conftest.val", "w");
  12021. if (! f)
  12022. return 1;
  12023. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  12024. {
  12025. long int i = longval ();
  12026. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  12027. return 1;
  12028. fprintf (f, "%ld\n", i);
  12029. }
  12030. else
  12031. {
  12032. unsigned long int i = ulongval ();
  12033. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  12034. return 1;
  12035. fprintf (f, "%lu\n", i);
  12036. }
  12037. return ferror (f) || fclose (f) != 0;
  12038. ;
  12039. return 0;
  12040. }
  12041. _ACEOF
  12042. rm -f conftest$ac_exeext
  12043. if { (ac_try="$ac_link"
  12044. case "(($ac_try" in
  12045. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12046. *) ac_try_echo=$ac_try;;
  12047. esac
  12048. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12049. (eval "$ac_link") 2>&5
  12050. ac_status=$?
  12051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12052. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  12053. { (case "(($ac_try" in
  12054. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12055. *) ac_try_echo=$ac_try;;
  12056. esac
  12057. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12058. (eval "$ac_try") 2>&5
  12059. ac_status=$?
  12060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12061. (exit $ac_status); }; }; then
  12062. fits_in_uint=`cat conftest.val`
  12063. else
  12064. echo "$as_me: program exited with status $ac_status" >&5
  12065. echo "$as_me: failed program was:" >&5
  12066. sed 's/^/| /' conftest.$ac_ext >&5
  12067. ( exit $ac_status )
  12068. fits_in_uint=
  12069. fi
  12070. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  12071. fi
  12072. rm -f conftest.val
  12073. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  12074. if test $fits_in_uint = 1; then
  12075. cat >conftest.$ac_ext <<_ACEOF
  12076. /* confdefs.h. */
  12077. _ACEOF
  12078. cat confdefs.h >>conftest.$ac_ext
  12079. cat >>conftest.$ac_ext <<_ACEOF
  12080. /* end confdefs.h. */
  12081. #include <stddef.h>
  12082. extern size_t foo;
  12083. extern unsigned long foo;
  12084. int
  12085. main ()
  12086. {
  12087. ;
  12088. return 0;
  12089. }
  12090. _ACEOF
  12091. rm -f conftest.$ac_objext
  12092. if { (ac_try="$ac_compile"
  12093. case "(($ac_try" in
  12094. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12095. *) ac_try_echo=$ac_try;;
  12096. esac
  12097. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12098. (eval "$ac_compile") 2>conftest.er1
  12099. ac_status=$?
  12100. grep -v '^ *+' conftest.er1 >conftest.err
  12101. rm -f conftest.er1
  12102. cat conftest.err >&5
  12103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12104. (exit $ac_status); } && {
  12105. test -z "$ac_cxx_werror_flag" ||
  12106. test ! -s conftest.err
  12107. } && test -s conftest.$ac_objext; then
  12108. fits_in_uint=0
  12109. else
  12110. echo "$as_me: failed program was:" >&5
  12111. sed 's/^/| /' conftest.$ac_ext >&5
  12112. fi
  12113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12114. fi
  12115. if test $fits_in_uint = 1; then
  12116. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  12117. else
  12118. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  12119. fi
  12120. else
  12121. gl_cv_size_max='((size_t)~(size_t)0)'
  12122. fi
  12123. fi
  12124. fi
  12125. { echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  12126. echo "${ECHO_T}$gl_cv_size_max" >&6; }
  12127. if test "$gl_cv_size_max" != yes; then
  12128. cat >>confdefs.h <<_ACEOF
  12129. #define SIZE_MAX $gl_cv_size_max
  12130. _ACEOF
  12131. fi
  12132. for ac_header in stdint.h
  12133. do
  12134. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12135. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12136. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12137. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12138. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12139. echo $ECHO_N "(cached) $ECHO_C" >&6
  12140. fi
  12141. ac_res=`eval echo '${'$as_ac_Header'}'`
  12142. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12143. echo "${ECHO_T}$ac_res" >&6; }
  12144. else
  12145. # Is the header compilable?
  12146. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12147. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12148. cat >conftest.$ac_ext <<_ACEOF
  12149. /* confdefs.h. */
  12150. _ACEOF
  12151. cat confdefs.h >>conftest.$ac_ext
  12152. cat >>conftest.$ac_ext <<_ACEOF
  12153. /* end confdefs.h. */
  12154. $ac_includes_default
  12155. #include <$ac_header>
  12156. _ACEOF
  12157. rm -f conftest.$ac_objext
  12158. if { (ac_try="$ac_compile"
  12159. case "(($ac_try" in
  12160. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12161. *) ac_try_echo=$ac_try;;
  12162. esac
  12163. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12164. (eval "$ac_compile") 2>conftest.er1
  12165. ac_status=$?
  12166. grep -v '^ *+' conftest.er1 >conftest.err
  12167. rm -f conftest.er1
  12168. cat conftest.err >&5
  12169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12170. (exit $ac_status); } && {
  12171. test -z "$ac_cxx_werror_flag" ||
  12172. test ! -s conftest.err
  12173. } && test -s conftest.$ac_objext; then
  12174. ac_header_compiler=yes
  12175. else
  12176. echo "$as_me: failed program was:" >&5
  12177. sed 's/^/| /' conftest.$ac_ext >&5
  12178. ac_header_compiler=no
  12179. fi
  12180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12181. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12182. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12183. # Is the header present?
  12184. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12185. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12186. cat >conftest.$ac_ext <<_ACEOF
  12187. /* confdefs.h. */
  12188. _ACEOF
  12189. cat confdefs.h >>conftest.$ac_ext
  12190. cat >>conftest.$ac_ext <<_ACEOF
  12191. /* end confdefs.h. */
  12192. #include <$ac_header>
  12193. _ACEOF
  12194. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12195. case "(($ac_try" in
  12196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12197. *) ac_try_echo=$ac_try;;
  12198. esac
  12199. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12200. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12201. ac_status=$?
  12202. grep -v '^ *+' conftest.er1 >conftest.err
  12203. rm -f conftest.er1
  12204. cat conftest.err >&5
  12205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12206. (exit $ac_status); } >/dev/null && {
  12207. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12208. test ! -s conftest.err
  12209. }; then
  12210. ac_header_preproc=yes
  12211. else
  12212. echo "$as_me: failed program was:" >&5
  12213. sed 's/^/| /' conftest.$ac_ext >&5
  12214. ac_header_preproc=no
  12215. fi
  12216. rm -f conftest.err conftest.$ac_ext
  12217. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12218. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12219. # So? What about this header?
  12220. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12221. yes:no: )
  12222. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12223. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12224. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12225. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12226. ac_header_preproc=yes
  12227. ;;
  12228. no:yes:* )
  12229. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12230. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12231. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12232. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12233. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12234. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12235. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12236. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12237. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12238. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12239. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12240. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12241. ( cat <<\_ASBOX
  12242. ## ----------------------------------------------- ##
  12243. ## Report this to t-tujikawa@users.sourceforge.net ##
  12244. ## ----------------------------------------------- ##
  12245. _ASBOX
  12246. ) | sed "s/^/$as_me: WARNING: /" >&2
  12247. ;;
  12248. esac
  12249. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12250. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12251. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12252. echo $ECHO_N "(cached) $ECHO_C" >&6
  12253. else
  12254. eval "$as_ac_Header=\$ac_header_preproc"
  12255. fi
  12256. ac_res=`eval echo '${'$as_ac_Header'}'`
  12257. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12258. echo "${ECHO_T}$ac_res" >&6; }
  12259. fi
  12260. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12261. cat >>confdefs.h <<_ACEOF
  12262. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12263. _ACEOF
  12264. fi
  12265. done
  12266. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  12267. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  12268. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  12269. echo $ECHO_N "(cached) $ECHO_C" >&6
  12270. else
  12271. gt_save_LIBS="$LIBS"
  12272. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  12273. cat >conftest.$ac_ext <<_ACEOF
  12274. /* confdefs.h. */
  12275. _ACEOF
  12276. cat confdefs.h >>conftest.$ac_ext
  12277. cat >>conftest.$ac_ext <<_ACEOF
  12278. /* end confdefs.h. */
  12279. #include <CoreFoundation/CFPreferences.h>
  12280. int
  12281. main ()
  12282. {
  12283. CFPreferencesCopyAppValue(NULL, NULL)
  12284. ;
  12285. return 0;
  12286. }
  12287. _ACEOF
  12288. rm -f conftest.$ac_objext conftest$ac_exeext
  12289. if { (ac_try="$ac_link"
  12290. case "(($ac_try" in
  12291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12292. *) ac_try_echo=$ac_try;;
  12293. esac
  12294. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12295. (eval "$ac_link") 2>conftest.er1
  12296. ac_status=$?
  12297. grep -v '^ *+' conftest.er1 >conftest.err
  12298. rm -f conftest.er1
  12299. cat conftest.err >&5
  12300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12301. (exit $ac_status); } && {
  12302. test -z "$ac_cxx_werror_flag" ||
  12303. test ! -s conftest.err
  12304. } && test -s conftest$ac_exeext &&
  12305. $as_test_x conftest$ac_exeext; then
  12306. gt_cv_func_CFPreferencesCopyAppValue=yes
  12307. else
  12308. echo "$as_me: failed program was:" >&5
  12309. sed 's/^/| /' conftest.$ac_ext >&5
  12310. gt_cv_func_CFPreferencesCopyAppValue=no
  12311. fi
  12312. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12313. conftest$ac_exeext conftest.$ac_ext
  12314. LIBS="$gt_save_LIBS"
  12315. fi
  12316. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  12317. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  12318. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  12319. cat >>confdefs.h <<\_ACEOF
  12320. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  12321. _ACEOF
  12322. fi
  12323. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  12324. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  12325. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  12326. echo $ECHO_N "(cached) $ECHO_C" >&6
  12327. else
  12328. gt_save_LIBS="$LIBS"
  12329. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  12330. cat >conftest.$ac_ext <<_ACEOF
  12331. /* confdefs.h. */
  12332. _ACEOF
  12333. cat confdefs.h >>conftest.$ac_ext
  12334. cat >>conftest.$ac_ext <<_ACEOF
  12335. /* end confdefs.h. */
  12336. #include <CoreFoundation/CFLocale.h>
  12337. int
  12338. main ()
  12339. {
  12340. CFLocaleCopyCurrent();
  12341. ;
  12342. return 0;
  12343. }
  12344. _ACEOF
  12345. rm -f conftest.$ac_objext conftest$ac_exeext
  12346. if { (ac_try="$ac_link"
  12347. case "(($ac_try" in
  12348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12349. *) ac_try_echo=$ac_try;;
  12350. esac
  12351. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12352. (eval "$ac_link") 2>conftest.er1
  12353. ac_status=$?
  12354. grep -v '^ *+' conftest.er1 >conftest.err
  12355. rm -f conftest.er1
  12356. cat conftest.err >&5
  12357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12358. (exit $ac_status); } && {
  12359. test -z "$ac_cxx_werror_flag" ||
  12360. test ! -s conftest.err
  12361. } && test -s conftest$ac_exeext &&
  12362. $as_test_x conftest$ac_exeext; then
  12363. gt_cv_func_CFLocaleCopyCurrent=yes
  12364. else
  12365. echo "$as_me: failed program was:" >&5
  12366. sed 's/^/| /' conftest.$ac_ext >&5
  12367. gt_cv_func_CFLocaleCopyCurrent=no
  12368. fi
  12369. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12370. conftest$ac_exeext conftest.$ac_ext
  12371. LIBS="$gt_save_LIBS"
  12372. fi
  12373. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  12374. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  12375. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  12376. cat >>confdefs.h <<\_ACEOF
  12377. #define HAVE_CFLOCALECOPYCURRENT 1
  12378. _ACEOF
  12379. fi
  12380. INTL_MACOSX_LIBS=
  12381. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  12382. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  12383. fi
  12384. { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  12385. echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
  12386. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  12387. echo $ECHO_N "(cached) $ECHO_C" >&6
  12388. else
  12389. cat >conftest.$ac_ext <<_ACEOF
  12390. /* confdefs.h. */
  12391. _ACEOF
  12392. cat confdefs.h >>conftest.$ac_ext
  12393. cat >>conftest.$ac_ext <<_ACEOF
  12394. /* end confdefs.h. */
  12395. $ac_includes_default
  12396. typedef ptrdiff_t ac__type_new_;
  12397. int
  12398. main ()
  12399. {
  12400. if ((ac__type_new_ *) 0)
  12401. return 0;
  12402. if (sizeof (ac__type_new_))
  12403. return 0;
  12404. ;
  12405. return 0;
  12406. }
  12407. _ACEOF
  12408. rm -f conftest.$ac_objext
  12409. if { (ac_try="$ac_compile"
  12410. case "(($ac_try" in
  12411. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12412. *) ac_try_echo=$ac_try;;
  12413. esac
  12414. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12415. (eval "$ac_compile") 2>conftest.er1
  12416. ac_status=$?
  12417. grep -v '^ *+' conftest.er1 >conftest.err
  12418. rm -f conftest.er1
  12419. cat conftest.err >&5
  12420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12421. (exit $ac_status); } && {
  12422. test -z "$ac_cxx_werror_flag" ||
  12423. test ! -s conftest.err
  12424. } && test -s conftest.$ac_objext; then
  12425. ac_cv_type_ptrdiff_t=yes
  12426. else
  12427. echo "$as_me: failed program was:" >&5
  12428. sed 's/^/| /' conftest.$ac_ext >&5
  12429. ac_cv_type_ptrdiff_t=no
  12430. fi
  12431. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12432. fi
  12433. { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  12434. echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
  12435. if test $ac_cv_type_ptrdiff_t = yes; then
  12436. :
  12437. else
  12438. cat >>confdefs.h <<\_ACEOF
  12439. #define ptrdiff_t long
  12440. _ACEOF
  12441. fi
  12442. for ac_header in stddef.h stdlib.h string.h
  12443. do
  12444. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  12445. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12446. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12447. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12448. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12449. echo $ECHO_N "(cached) $ECHO_C" >&6
  12450. fi
  12451. ac_res=`eval echo '${'$as_ac_Header'}'`
  12452. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12453. echo "${ECHO_T}$ac_res" >&6; }
  12454. else
  12455. # Is the header compilable?
  12456. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  12457. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  12458. cat >conftest.$ac_ext <<_ACEOF
  12459. /* confdefs.h. */
  12460. _ACEOF
  12461. cat confdefs.h >>conftest.$ac_ext
  12462. cat >>conftest.$ac_ext <<_ACEOF
  12463. /* end confdefs.h. */
  12464. $ac_includes_default
  12465. #include <$ac_header>
  12466. _ACEOF
  12467. rm -f conftest.$ac_objext
  12468. if { (ac_try="$ac_compile"
  12469. case "(($ac_try" in
  12470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12471. *) ac_try_echo=$ac_try;;
  12472. esac
  12473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12474. (eval "$ac_compile") 2>conftest.er1
  12475. ac_status=$?
  12476. grep -v '^ *+' conftest.er1 >conftest.err
  12477. rm -f conftest.er1
  12478. cat conftest.err >&5
  12479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12480. (exit $ac_status); } && {
  12481. test -z "$ac_cxx_werror_flag" ||
  12482. test ! -s conftest.err
  12483. } && test -s conftest.$ac_objext; then
  12484. ac_header_compiler=yes
  12485. else
  12486. echo "$as_me: failed program was:" >&5
  12487. sed 's/^/| /' conftest.$ac_ext >&5
  12488. ac_header_compiler=no
  12489. fi
  12490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12491. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12492. echo "${ECHO_T}$ac_header_compiler" >&6; }
  12493. # Is the header present?
  12494. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  12495. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  12496. cat >conftest.$ac_ext <<_ACEOF
  12497. /* confdefs.h. */
  12498. _ACEOF
  12499. cat confdefs.h >>conftest.$ac_ext
  12500. cat >>conftest.$ac_ext <<_ACEOF
  12501. /* end confdefs.h. */
  12502. #include <$ac_header>
  12503. _ACEOF
  12504. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12505. case "(($ac_try" in
  12506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12507. *) ac_try_echo=$ac_try;;
  12508. esac
  12509. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12510. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12511. ac_status=$?
  12512. grep -v '^ *+' conftest.er1 >conftest.err
  12513. rm -f conftest.er1
  12514. cat conftest.err >&5
  12515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12516. (exit $ac_status); } >/dev/null && {
  12517. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  12518. test ! -s conftest.err
  12519. }; then
  12520. ac_header_preproc=yes
  12521. else
  12522. echo "$as_me: failed program was:" >&5
  12523. sed 's/^/| /' conftest.$ac_ext >&5
  12524. ac_header_preproc=no
  12525. fi
  12526. rm -f conftest.err conftest.$ac_ext
  12527. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12528. echo "${ECHO_T}$ac_header_preproc" >&6; }
  12529. # So? What about this header?
  12530. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  12531. yes:no: )
  12532. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  12533. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12534. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  12535. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  12536. ac_header_preproc=yes
  12537. ;;
  12538. no:yes:* )
  12539. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  12540. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  12541. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  12542. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  12543. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  12544. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  12545. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  12546. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  12547. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  12548. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  12549. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  12550. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  12551. ( cat <<\_ASBOX
  12552. ## ----------------------------------------------- ##
  12553. ## Report this to t-tujikawa@users.sourceforge.net ##
  12554. ## ----------------------------------------------- ##
  12555. _ASBOX
  12556. ) | sed "s/^/$as_me: WARNING: /" >&2
  12557. ;;
  12558. esac
  12559. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  12560. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  12561. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  12562. echo $ECHO_N "(cached) $ECHO_C" >&6
  12563. else
  12564. eval "$as_ac_Header=\$ac_header_preproc"
  12565. fi
  12566. ac_res=`eval echo '${'$as_ac_Header'}'`
  12567. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12568. echo "${ECHO_T}$ac_res" >&6; }
  12569. fi
  12570. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  12571. cat >>confdefs.h <<_ACEOF
  12572. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  12573. _ACEOF
  12574. fi
  12575. done
  12576. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  12577. do
  12578. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  12579. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  12580. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  12581. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  12582. echo $ECHO_N "(cached) $ECHO_C" >&6
  12583. else
  12584. cat >conftest.$ac_ext <<_ACEOF
  12585. /* confdefs.h. */
  12586. _ACEOF
  12587. cat confdefs.h >>conftest.$ac_ext
  12588. cat >>conftest.$ac_ext <<_ACEOF
  12589. /* end confdefs.h. */
  12590. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  12591. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12592. #define $ac_func innocuous_$ac_func
  12593. /* System header to define __stub macros and hopefully few prototypes,
  12594. which can conflict with char $ac_func (); below.
  12595. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12596. <limits.h> exists even on freestanding compilers. */
  12597. #ifdef __STDC__
  12598. # include <limits.h>
  12599. #else
  12600. # include <assert.h>
  12601. #endif
  12602. #undef $ac_func
  12603. /* Override any GCC internal prototype to avoid an error.
  12604. Use char because int might match the return type of a GCC
  12605. builtin and then its argument prototype would still apply. */
  12606. #ifdef __cplusplus
  12607. extern "C"
  12608. #endif
  12609. char $ac_func ();
  12610. /* The GNU C library defines this for functions which it implements
  12611. to always fail with ENOSYS. Some functions are actually named
  12612. something starting with __ and the normal name is an alias. */
  12613. #if defined __stub_$ac_func || defined __stub___$ac_func
  12614. choke me
  12615. #endif
  12616. int
  12617. main ()
  12618. {
  12619. return $ac_func ();
  12620. ;
  12621. return 0;
  12622. }
  12623. _ACEOF
  12624. rm -f conftest.$ac_objext conftest$ac_exeext
  12625. if { (ac_try="$ac_link"
  12626. case "(($ac_try" in
  12627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12628. *) ac_try_echo=$ac_try;;
  12629. esac
  12630. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12631. (eval "$ac_link") 2>conftest.er1
  12632. ac_status=$?
  12633. grep -v '^ *+' conftest.er1 >conftest.err
  12634. rm -f conftest.er1
  12635. cat conftest.err >&5
  12636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12637. (exit $ac_status); } && {
  12638. test -z "$ac_cxx_werror_flag" ||
  12639. test ! -s conftest.err
  12640. } && test -s conftest$ac_exeext &&
  12641. $as_test_x conftest$ac_exeext; then
  12642. eval "$as_ac_var=yes"
  12643. else
  12644. echo "$as_me: failed program was:" >&5
  12645. sed 's/^/| /' conftest.$ac_ext >&5
  12646. eval "$as_ac_var=no"
  12647. fi
  12648. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12649. conftest$ac_exeext conftest.$ac_ext
  12650. fi
  12651. ac_res=`eval echo '${'$as_ac_var'}'`
  12652. { echo "$as_me:$LINENO: result: $ac_res" >&5
  12653. echo "${ECHO_T}$ac_res" >&6; }
  12654. if test `eval echo '${'$as_ac_var'}'` = yes; then
  12655. cat >>confdefs.h <<_ACEOF
  12656. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  12657. _ACEOF
  12658. fi
  12659. done
  12660. { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  12661. echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
  12662. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  12663. echo $ECHO_N "(cached) $ECHO_C" >&6
  12664. else
  12665. cat >conftest.$ac_ext <<_ACEOF
  12666. /* confdefs.h. */
  12667. _ACEOF
  12668. cat confdefs.h >>conftest.$ac_ext
  12669. cat >>conftest.$ac_ext <<_ACEOF
  12670. /* end confdefs.h. */
  12671. #include <stdio.h>
  12672. int
  12673. main ()
  12674. {
  12675. #ifndef _snprintf
  12676. char *p = (char *) _snprintf;
  12677. #endif
  12678. ;
  12679. return 0;
  12680. }
  12681. _ACEOF
  12682. rm -f conftest.$ac_objext
  12683. if { (ac_try="$ac_compile"
  12684. case "(($ac_try" in
  12685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12686. *) ac_try_echo=$ac_try;;
  12687. esac
  12688. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12689. (eval "$ac_compile") 2>conftest.er1
  12690. ac_status=$?
  12691. grep -v '^ *+' conftest.er1 >conftest.err
  12692. rm -f conftest.er1
  12693. cat conftest.err >&5
  12694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12695. (exit $ac_status); } && {
  12696. test -z "$ac_cxx_werror_flag" ||
  12697. test ! -s conftest.err
  12698. } && test -s conftest.$ac_objext; then
  12699. ac_cv_have_decl__snprintf=yes
  12700. else
  12701. echo "$as_me: failed program was:" >&5
  12702. sed 's/^/| /' conftest.$ac_ext >&5
  12703. ac_cv_have_decl__snprintf=no
  12704. fi
  12705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12706. fi
  12707. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  12708. echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
  12709. if test $ac_cv_have_decl__snprintf = yes; then
  12710. gt_value=1
  12711. else
  12712. gt_value=0
  12713. fi
  12714. cat >>confdefs.h <<_ACEOF
  12715. #define HAVE_DECL__SNPRINTF $gt_value
  12716. _ACEOF
  12717. { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  12718. echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
  12719. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  12720. echo $ECHO_N "(cached) $ECHO_C" >&6
  12721. else
  12722. cat >conftest.$ac_ext <<_ACEOF
  12723. /* confdefs.h. */
  12724. _ACEOF
  12725. cat confdefs.h >>conftest.$ac_ext
  12726. cat >>conftest.$ac_ext <<_ACEOF
  12727. /* end confdefs.h. */
  12728. #include <stdio.h>
  12729. int
  12730. main ()
  12731. {
  12732. #ifndef _snwprintf
  12733. char *p = (char *) _snwprintf;
  12734. #endif
  12735. ;
  12736. return 0;
  12737. }
  12738. _ACEOF
  12739. rm -f conftest.$ac_objext
  12740. if { (ac_try="$ac_compile"
  12741. case "(($ac_try" in
  12742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12743. *) ac_try_echo=$ac_try;;
  12744. esac
  12745. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12746. (eval "$ac_compile") 2>conftest.er1
  12747. ac_status=$?
  12748. grep -v '^ *+' conftest.er1 >conftest.err
  12749. rm -f conftest.er1
  12750. cat conftest.err >&5
  12751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12752. (exit $ac_status); } && {
  12753. test -z "$ac_cxx_werror_flag" ||
  12754. test ! -s conftest.err
  12755. } && test -s conftest.$ac_objext; then
  12756. ac_cv_have_decl__snwprintf=yes
  12757. else
  12758. echo "$as_me: failed program was:" >&5
  12759. sed 's/^/| /' conftest.$ac_ext >&5
  12760. ac_cv_have_decl__snwprintf=no
  12761. fi
  12762. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12763. fi
  12764. { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  12765. echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
  12766. if test $ac_cv_have_decl__snwprintf = yes; then
  12767. gt_value=1
  12768. else
  12769. gt_value=0
  12770. fi
  12771. cat >>confdefs.h <<_ACEOF
  12772. #define HAVE_DECL__SNWPRINTF $gt_value
  12773. _ACEOF
  12774. { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  12775. echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
  12776. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  12777. echo $ECHO_N "(cached) $ECHO_C" >&6
  12778. else
  12779. cat >conftest.$ac_ext <<_ACEOF
  12780. /* confdefs.h. */
  12781. _ACEOF
  12782. cat confdefs.h >>conftest.$ac_ext
  12783. cat >>conftest.$ac_ext <<_ACEOF
  12784. /* end confdefs.h. */
  12785. #include <stdio.h>
  12786. int
  12787. main ()
  12788. {
  12789. #ifndef getc_unlocked
  12790. char *p = (char *) getc_unlocked;
  12791. #endif
  12792. ;
  12793. return 0;
  12794. }
  12795. _ACEOF
  12796. rm -f conftest.$ac_objext
  12797. if { (ac_try="$ac_compile"
  12798. case "(($ac_try" in
  12799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12800. *) ac_try_echo=$ac_try;;
  12801. esac
  12802. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12803. (eval "$ac_compile") 2>conftest.er1
  12804. ac_status=$?
  12805. grep -v '^ *+' conftest.er1 >conftest.err
  12806. rm -f conftest.er1
  12807. cat conftest.err >&5
  12808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12809. (exit $ac_status); } && {
  12810. test -z "$ac_cxx_werror_flag" ||
  12811. test ! -s conftest.err
  12812. } && test -s conftest.$ac_objext; then
  12813. ac_cv_have_decl_getc_unlocked=yes
  12814. else
  12815. echo "$as_me: failed program was:" >&5
  12816. sed 's/^/| /' conftest.$ac_ext >&5
  12817. ac_cv_have_decl_getc_unlocked=no
  12818. fi
  12819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12820. fi
  12821. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  12822. echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
  12823. if test $ac_cv_have_decl_getc_unlocked = yes; then
  12824. gt_value=1
  12825. else
  12826. gt_value=0
  12827. fi
  12828. cat >>confdefs.h <<_ACEOF
  12829. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  12830. _ACEOF
  12831. case $gt_cv_func_printf_posix in
  12832. *yes) HAVE_POSIX_PRINTF=1 ;;
  12833. *) HAVE_POSIX_PRINTF=0 ;;
  12834. esac
  12835. if test "$ac_cv_func_asprintf" = yes; then
  12836. HAVE_ASPRINTF=1
  12837. else
  12838. HAVE_ASPRINTF=0
  12839. fi
  12840. if test "$ac_cv_func_snprintf" = yes; then
  12841. HAVE_SNPRINTF=1
  12842. else
  12843. HAVE_SNPRINTF=0
  12844. fi
  12845. if test "$ac_cv_func_wprintf" = yes; then
  12846. HAVE_WPRINTF=1
  12847. else
  12848. HAVE_WPRINTF=0
  12849. fi
  12850. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  12851. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  12852. if test "${am_cv_langinfo_codeset+set}" = set; then
  12853. echo $ECHO_N "(cached) $ECHO_C" >&6
  12854. else
  12855. cat >conftest.$ac_ext <<_ACEOF
  12856. /* confdefs.h. */
  12857. _ACEOF
  12858. cat confdefs.h >>conftest.$ac_ext
  12859. cat >>conftest.$ac_ext <<_ACEOF
  12860. /* end confdefs.h. */
  12861. #include <langinfo.h>
  12862. int
  12863. main ()
  12864. {
  12865. char* cs = nl_langinfo(CODESET); return !cs;
  12866. ;
  12867. return 0;
  12868. }
  12869. _ACEOF
  12870. rm -f conftest.$ac_objext conftest$ac_exeext
  12871. if { (ac_try="$ac_link"
  12872. case "(($ac_try" in
  12873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12874. *) ac_try_echo=$ac_try;;
  12875. esac
  12876. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12877. (eval "$ac_link") 2>conftest.er1
  12878. ac_status=$?
  12879. grep -v '^ *+' conftest.er1 >conftest.err
  12880. rm -f conftest.er1
  12881. cat conftest.err >&5
  12882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12883. (exit $ac_status); } && {
  12884. test -z "$ac_cxx_werror_flag" ||
  12885. test ! -s conftest.err
  12886. } && test -s conftest$ac_exeext &&
  12887. $as_test_x conftest$ac_exeext; then
  12888. am_cv_langinfo_codeset=yes
  12889. else
  12890. echo "$as_me: failed program was:" >&5
  12891. sed 's/^/| /' conftest.$ac_ext >&5
  12892. am_cv_langinfo_codeset=no
  12893. fi
  12894. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12895. conftest$ac_exeext conftest.$ac_ext
  12896. fi
  12897. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  12898. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  12899. if test $am_cv_langinfo_codeset = yes; then
  12900. cat >>confdefs.h <<\_ACEOF
  12901. #define HAVE_LANGINFO_CODESET 1
  12902. _ACEOF
  12903. fi
  12904. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  12905. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  12906. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  12907. echo $ECHO_N "(cached) $ECHO_C" >&6
  12908. else
  12909. cat >conftest.$ac_ext <<_ACEOF
  12910. /* confdefs.h. */
  12911. _ACEOF
  12912. cat confdefs.h >>conftest.$ac_ext
  12913. cat >>conftest.$ac_ext <<_ACEOF
  12914. /* end confdefs.h. */
  12915. #include <locale.h>
  12916. int
  12917. main ()
  12918. {
  12919. return LC_MESSAGES
  12920. ;
  12921. return 0;
  12922. }
  12923. _ACEOF
  12924. rm -f conftest.$ac_objext conftest$ac_exeext
  12925. if { (ac_try="$ac_link"
  12926. case "(($ac_try" in
  12927. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12928. *) ac_try_echo=$ac_try;;
  12929. esac
  12930. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  12931. (eval "$ac_link") 2>conftest.er1
  12932. ac_status=$?
  12933. grep -v '^ *+' conftest.er1 >conftest.err
  12934. rm -f conftest.er1
  12935. cat conftest.err >&5
  12936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12937. (exit $ac_status); } && {
  12938. test -z "$ac_cxx_werror_flag" ||
  12939. test ! -s conftest.err
  12940. } && test -s conftest$ac_exeext &&
  12941. $as_test_x conftest$ac_exeext; then
  12942. gt_cv_val_LC_MESSAGES=yes
  12943. else
  12944. echo "$as_me: failed program was:" >&5
  12945. sed 's/^/| /' conftest.$ac_ext >&5
  12946. gt_cv_val_LC_MESSAGES=no
  12947. fi
  12948. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12949. conftest$ac_exeext conftest.$ac_ext
  12950. fi
  12951. { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  12952. echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
  12953. if test $gt_cv_val_LC_MESSAGES = yes; then
  12954. cat >>confdefs.h <<\_ACEOF
  12955. #define HAVE_LC_MESSAGES 1
  12956. _ACEOF
  12957. fi
  12958. if test "$enable_shared" = yes; then
  12959. case "$host_os" in
  12960. mingw* | cygwin*) is_woe32dll=yes ;;
  12961. *) is_woe32dll=no ;;
  12962. esac
  12963. else
  12964. is_woe32dll=no
  12965. fi
  12966. WOE32DLL=$is_woe32dll
  12967. case "$host_os" in
  12968. mingw* | cygwin*) is_woe32=yes ;;
  12969. *) is_woe32=no ;;
  12970. esac
  12971. WOE32=$is_woe32
  12972. if test $WOE32 = yes; then
  12973. if test -n "$ac_tool_prefix"; then
  12974. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  12975. set dummy ${ac_tool_prefix}windres; ac_word=$2
  12976. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  12977. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  12978. if test "${ac_cv_prog_WINDRES+set}" = set; then
  12979. echo $ECHO_N "(cached) $ECHO_C" >&6
  12980. else
  12981. if test -n "$WINDRES"; then
  12982. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  12983. else
  12984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12985. for as_dir in $PATH
  12986. do
  12987. IFS=$as_save_IFS
  12988. test -z "$as_dir" && as_dir=.
  12989. for ac_exec_ext in '' $ac_executable_extensions; do
  12990. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12991. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  12992. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12993. break 2
  12994. fi
  12995. done
  12996. done
  12997. IFS=$as_save_IFS
  12998. fi
  12999. fi
  13000. WINDRES=$ac_cv_prog_WINDRES
  13001. if test -n "$WINDRES"; then
  13002. { echo "$as_me:$LINENO: result: $WINDRES" >&5
  13003. echo "${ECHO_T}$WINDRES" >&6; }
  13004. else
  13005. { echo "$as_me:$LINENO: result: no" >&5
  13006. echo "${ECHO_T}no" >&6; }
  13007. fi
  13008. fi
  13009. if test -z "$ac_cv_prog_WINDRES"; then
  13010. ac_ct_WINDRES=$WINDRES
  13011. # Extract the first word of "windres", so it can be a program name with args.
  13012. set dummy windres; ac_word=$2
  13013. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  13014. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  13015. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  13016. echo $ECHO_N "(cached) $ECHO_C" >&6
  13017. else
  13018. if test -n "$ac_ct_WINDRES"; then
  13019. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  13020. else
  13021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13022. for as_dir in $PATH
  13023. do
  13024. IFS=$as_save_IFS
  13025. test -z "$as_dir" && as_dir=.
  13026. for ac_exec_ext in '' $ac_executable_extensions; do
  13027. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13028. ac_cv_prog_ac_ct_WINDRES="windres"
  13029. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13030. break 2
  13031. fi
  13032. done
  13033. done
  13034. IFS=$as_save_IFS
  13035. fi
  13036. fi
  13037. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  13038. if test -n "$ac_ct_WINDRES"; then
  13039. { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  13040. echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
  13041. else
  13042. { echo "$as_me:$LINENO: result: no" >&5
  13043. echo "${ECHO_T}no" >&6; }
  13044. fi
  13045. if test "x$ac_ct_WINDRES" = x; then
  13046. WINDRES=""
  13047. else
  13048. case $cross_compiling:$ac_tool_warned in
  13049. yes:)
  13050. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  13051. whose name does not start with the host triplet. If you think this
  13052. configuration is useful to you, please write to autoconf@gnu.org." >&5
  13053. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  13054. whose name does not start with the host triplet. If you think this
  13055. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  13056. ac_tool_warned=yes ;;
  13057. esac
  13058. WINDRES=$ac_ct_WINDRES
  13059. fi
  13060. else
  13061. WINDRES="$ac_cv_prog_WINDRES"
  13062. fi
  13063. fi
  13064. case "$host_os" in
  13065. hpux*) LTLIBC="" ;;
  13066. *) LTLIBC="-lc" ;;
  13067. esac
  13068. { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  13069. echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
  13070. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  13071. echo $ECHO_N "(cached) $ECHO_C" >&6
  13072. else
  13073. gt_save_LIBS="$LIBS"
  13074. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13075. cat >conftest.$ac_ext <<_ACEOF
  13076. /* confdefs.h. */
  13077. _ACEOF
  13078. cat confdefs.h >>conftest.$ac_ext
  13079. cat >>conftest.$ac_ext <<_ACEOF
  13080. /* end confdefs.h. */
  13081. #include <CoreFoundation/CFPreferences.h>
  13082. int
  13083. main ()
  13084. {
  13085. CFPreferencesCopyAppValue(NULL, NULL)
  13086. ;
  13087. return 0;
  13088. }
  13089. _ACEOF
  13090. rm -f conftest.$ac_objext conftest$ac_exeext
  13091. if { (ac_try="$ac_link"
  13092. case "(($ac_try" in
  13093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13094. *) ac_try_echo=$ac_try;;
  13095. esac
  13096. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13097. (eval "$ac_link") 2>conftest.er1
  13098. ac_status=$?
  13099. grep -v '^ *+' conftest.er1 >conftest.err
  13100. rm -f conftest.er1
  13101. cat conftest.err >&5
  13102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13103. (exit $ac_status); } && {
  13104. test -z "$ac_cxx_werror_flag" ||
  13105. test ! -s conftest.err
  13106. } && test -s conftest$ac_exeext &&
  13107. $as_test_x conftest$ac_exeext; then
  13108. gt_cv_func_CFPreferencesCopyAppValue=yes
  13109. else
  13110. echo "$as_me: failed program was:" >&5
  13111. sed 's/^/| /' conftest.$ac_ext >&5
  13112. gt_cv_func_CFPreferencesCopyAppValue=no
  13113. fi
  13114. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13115. conftest$ac_exeext conftest.$ac_ext
  13116. LIBS="$gt_save_LIBS"
  13117. fi
  13118. { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  13119. echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  13120. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  13121. cat >>confdefs.h <<\_ACEOF
  13122. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  13123. _ACEOF
  13124. fi
  13125. { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  13126. echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
  13127. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  13128. echo $ECHO_N "(cached) $ECHO_C" >&6
  13129. else
  13130. gt_save_LIBS="$LIBS"
  13131. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  13132. cat >conftest.$ac_ext <<_ACEOF
  13133. /* confdefs.h. */
  13134. _ACEOF
  13135. cat confdefs.h >>conftest.$ac_ext
  13136. cat >>conftest.$ac_ext <<_ACEOF
  13137. /* end confdefs.h. */
  13138. #include <CoreFoundation/CFLocale.h>
  13139. int
  13140. main ()
  13141. {
  13142. CFLocaleCopyCurrent();
  13143. ;
  13144. return 0;
  13145. }
  13146. _ACEOF
  13147. rm -f conftest.$ac_objext conftest$ac_exeext
  13148. if { (ac_try="$ac_link"
  13149. case "(($ac_try" in
  13150. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13151. *) ac_try_echo=$ac_try;;
  13152. esac
  13153. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13154. (eval "$ac_link") 2>conftest.er1
  13155. ac_status=$?
  13156. grep -v '^ *+' conftest.er1 >conftest.err
  13157. rm -f conftest.er1
  13158. cat conftest.err >&5
  13159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13160. (exit $ac_status); } && {
  13161. test -z "$ac_cxx_werror_flag" ||
  13162. test ! -s conftest.err
  13163. } && test -s conftest$ac_exeext &&
  13164. $as_test_x conftest$ac_exeext; then
  13165. gt_cv_func_CFLocaleCopyCurrent=yes
  13166. else
  13167. echo "$as_me: failed program was:" >&5
  13168. sed 's/^/| /' conftest.$ac_ext >&5
  13169. gt_cv_func_CFLocaleCopyCurrent=no
  13170. fi
  13171. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13172. conftest$ac_exeext conftest.$ac_ext
  13173. LIBS="$gt_save_LIBS"
  13174. fi
  13175. { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  13176. echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  13177. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  13178. cat >>confdefs.h <<\_ACEOF
  13179. #define HAVE_CFLOCALECOPYCURRENT 1
  13180. _ACEOF
  13181. fi
  13182. INTL_MACOSX_LIBS=
  13183. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  13184. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  13185. fi
  13186. BUILD_INCLUDED_LIBINTL=no
  13187. USE_INCLUDED_LIBINTL=no
  13188. LIBINTL=
  13189. LTLIBINTL=
  13190. POSUB=
  13191. case " $gt_needs " in
  13192. *" need-formatstring-macros "*) gt_api_version=3 ;;
  13193. *" need-ngettext "*) gt_api_version=2 ;;
  13194. *) gt_api_version=1 ;;
  13195. esac
  13196. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  13197. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  13198. if test "$USE_NLS" = "yes"; then
  13199. gt_use_preinstalled_gnugettext=no
  13200. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  13201. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  13202. # Check whether --with-included-gettext was given.
  13203. if test "${with_included_gettext+set}" = set; then
  13204. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  13205. else
  13206. nls_cv_force_use_gnu_gettext=no
  13207. fi
  13208. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  13209. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  13210. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  13211. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  13212. if test $gt_api_version -ge 3; then
  13213. gt_revision_test_code='
  13214. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  13215. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  13216. #endif
  13217. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  13218. '
  13219. else
  13220. gt_revision_test_code=
  13221. fi
  13222. if test $gt_api_version -ge 2; then
  13223. gt_expression_test_code=' + * ngettext ("", "", 0)'
  13224. else
  13225. gt_expression_test_code=
  13226. fi
  13227. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  13228. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  13229. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  13230. echo $ECHO_N "(cached) $ECHO_C" >&6
  13231. else
  13232. cat >conftest.$ac_ext <<_ACEOF
  13233. /* confdefs.h. */
  13234. _ACEOF
  13235. cat confdefs.h >>conftest.$ac_ext
  13236. cat >>conftest.$ac_ext <<_ACEOF
  13237. /* end confdefs.h. */
  13238. #include <libintl.h>
  13239. $gt_revision_test_code
  13240. extern int _nl_msg_cat_cntr;
  13241. extern int *_nl_domain_bindings;
  13242. int
  13243. main ()
  13244. {
  13245. bindtextdomain ("", "");
  13246. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  13247. ;
  13248. return 0;
  13249. }
  13250. _ACEOF
  13251. rm -f conftest.$ac_objext conftest$ac_exeext
  13252. if { (ac_try="$ac_link"
  13253. case "(($ac_try" in
  13254. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13255. *) ac_try_echo=$ac_try;;
  13256. esac
  13257. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13258. (eval "$ac_link") 2>conftest.er1
  13259. ac_status=$?
  13260. grep -v '^ *+' conftest.er1 >conftest.err
  13261. rm -f conftest.er1
  13262. cat conftest.err >&5
  13263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13264. (exit $ac_status); } && {
  13265. test -z "$ac_cxx_werror_flag" ||
  13266. test ! -s conftest.err
  13267. } && test -s conftest$ac_exeext &&
  13268. $as_test_x conftest$ac_exeext; then
  13269. eval "$gt_func_gnugettext_libc=yes"
  13270. else
  13271. echo "$as_me: failed program was:" >&5
  13272. sed 's/^/| /' conftest.$ac_ext >&5
  13273. eval "$gt_func_gnugettext_libc=no"
  13274. fi
  13275. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13276. conftest$ac_exeext conftest.$ac_ext
  13277. fi
  13278. ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'`
  13279. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13280. echo "${ECHO_T}$ac_res" >&6; }
  13281. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  13282. use_additional=yes
  13283. acl_save_prefix="$prefix"
  13284. prefix="$acl_final_prefix"
  13285. acl_save_exec_prefix="$exec_prefix"
  13286. exec_prefix="$acl_final_exec_prefix"
  13287. eval additional_includedir=\"$includedir\"
  13288. eval additional_libdir=\"$libdir\"
  13289. exec_prefix="$acl_save_exec_prefix"
  13290. prefix="$acl_save_prefix"
  13291. # Check whether --with-libintl-prefix was given.
  13292. if test "${with_libintl_prefix+set}" = set; then
  13293. withval=$with_libintl_prefix;
  13294. if test "X$withval" = "Xno"; then
  13295. use_additional=no
  13296. else
  13297. if test "X$withval" = "X"; then
  13298. acl_save_prefix="$prefix"
  13299. prefix="$acl_final_prefix"
  13300. acl_save_exec_prefix="$exec_prefix"
  13301. exec_prefix="$acl_final_exec_prefix"
  13302. eval additional_includedir=\"$includedir\"
  13303. eval additional_libdir=\"$libdir\"
  13304. exec_prefix="$acl_save_exec_prefix"
  13305. prefix="$acl_save_prefix"
  13306. else
  13307. additional_includedir="$withval/include"
  13308. additional_libdir="$withval/$acl_libdirstem"
  13309. fi
  13310. fi
  13311. fi
  13312. LIBINTL=
  13313. LTLIBINTL=
  13314. INCINTL=
  13315. LIBINTL_PREFIX=
  13316. rpathdirs=
  13317. ltrpathdirs=
  13318. names_already_handled=
  13319. names_next_round='intl '
  13320. while test -n "$names_next_round"; do
  13321. names_this_round="$names_next_round"
  13322. names_next_round=
  13323. for name in $names_this_round; do
  13324. already_handled=
  13325. for n in $names_already_handled; do
  13326. if test "$n" = "$name"; then
  13327. already_handled=yes
  13328. break
  13329. fi
  13330. done
  13331. if test -z "$already_handled"; then
  13332. names_already_handled="$names_already_handled $name"
  13333. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  13334. eval value=\"\$HAVE_LIB$uppername\"
  13335. if test -n "$value"; then
  13336. if test "$value" = yes; then
  13337. eval value=\"\$LIB$uppername\"
  13338. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  13339. eval value=\"\$LTLIB$uppername\"
  13340. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  13341. else
  13342. :
  13343. fi
  13344. else
  13345. found_dir=
  13346. found_la=
  13347. found_so=
  13348. found_a=
  13349. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  13350. if test -n "$acl_shlibext"; then
  13351. shrext=".$acl_shlibext" # typically: shrext=.so
  13352. else
  13353. shrext=
  13354. fi
  13355. if test $use_additional = yes; then
  13356. dir="$additional_libdir"
  13357. if test -n "$acl_shlibext"; then
  13358. if test -f "$dir/$libname$shrext"; then
  13359. found_dir="$dir"
  13360. found_so="$dir/$libname$shrext"
  13361. else
  13362. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13363. ver=`(cd "$dir" && \
  13364. for f in "$libname$shrext".*; do echo "$f"; done \
  13365. | sed -e "s,^$libname$shrext\\\\.,," \
  13366. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13367. | sed 1q ) 2>/dev/null`
  13368. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13369. found_dir="$dir"
  13370. found_so="$dir/$libname$shrext.$ver"
  13371. fi
  13372. else
  13373. eval library_names=\"$acl_library_names_spec\"
  13374. for f in $library_names; do
  13375. if test -f "$dir/$f"; then
  13376. found_dir="$dir"
  13377. found_so="$dir/$f"
  13378. break
  13379. fi
  13380. done
  13381. fi
  13382. fi
  13383. fi
  13384. if test "X$found_dir" = "X"; then
  13385. if test -f "$dir/$libname.$acl_libext"; then
  13386. found_dir="$dir"
  13387. found_a="$dir/$libname.$acl_libext"
  13388. fi
  13389. fi
  13390. if test "X$found_dir" != "X"; then
  13391. if test -f "$dir/$libname.la"; then
  13392. found_la="$dir/$libname.la"
  13393. fi
  13394. fi
  13395. fi
  13396. if test "X$found_dir" = "X"; then
  13397. for x in $LDFLAGS $LTLIBINTL; do
  13398. acl_save_prefix="$prefix"
  13399. prefix="$acl_final_prefix"
  13400. acl_save_exec_prefix="$exec_prefix"
  13401. exec_prefix="$acl_final_exec_prefix"
  13402. eval x=\"$x\"
  13403. exec_prefix="$acl_save_exec_prefix"
  13404. prefix="$acl_save_prefix"
  13405. case "$x" in
  13406. -L*)
  13407. dir=`echo "X$x" | sed -e 's/^X-L//'`
  13408. if test -n "$acl_shlibext"; then
  13409. if test -f "$dir/$libname$shrext"; then
  13410. found_dir="$dir"
  13411. found_so="$dir/$libname$shrext"
  13412. else
  13413. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13414. ver=`(cd "$dir" && \
  13415. for f in "$libname$shrext".*; do echo "$f"; done \
  13416. | sed -e "s,^$libname$shrext\\\\.,," \
  13417. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13418. | sed 1q ) 2>/dev/null`
  13419. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13420. found_dir="$dir"
  13421. found_so="$dir/$libname$shrext.$ver"
  13422. fi
  13423. else
  13424. eval library_names=\"$acl_library_names_spec\"
  13425. for f in $library_names; do
  13426. if test -f "$dir/$f"; then
  13427. found_dir="$dir"
  13428. found_so="$dir/$f"
  13429. break
  13430. fi
  13431. done
  13432. fi
  13433. fi
  13434. fi
  13435. if test "X$found_dir" = "X"; then
  13436. if test -f "$dir/$libname.$acl_libext"; then
  13437. found_dir="$dir"
  13438. found_a="$dir/$libname.$acl_libext"
  13439. fi
  13440. fi
  13441. if test "X$found_dir" != "X"; then
  13442. if test -f "$dir/$libname.la"; then
  13443. found_la="$dir/$libname.la"
  13444. fi
  13445. fi
  13446. ;;
  13447. esac
  13448. if test "X$found_dir" != "X"; then
  13449. break
  13450. fi
  13451. done
  13452. fi
  13453. if test "X$found_dir" != "X"; then
  13454. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  13455. if test "X$found_so" != "X"; then
  13456. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  13457. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13458. else
  13459. haveit=
  13460. for x in $ltrpathdirs; do
  13461. if test "X$x" = "X$found_dir"; then
  13462. haveit=yes
  13463. break
  13464. fi
  13465. done
  13466. if test -z "$haveit"; then
  13467. ltrpathdirs="$ltrpathdirs $found_dir"
  13468. fi
  13469. if test "$acl_hardcode_direct" = yes; then
  13470. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13471. else
  13472. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  13473. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13474. haveit=
  13475. for x in $rpathdirs; do
  13476. if test "X$x" = "X$found_dir"; then
  13477. haveit=yes
  13478. break
  13479. fi
  13480. done
  13481. if test -z "$haveit"; then
  13482. rpathdirs="$rpathdirs $found_dir"
  13483. fi
  13484. else
  13485. haveit=
  13486. for x in $LDFLAGS $LIBINTL; do
  13487. acl_save_prefix="$prefix"
  13488. prefix="$acl_final_prefix"
  13489. acl_save_exec_prefix="$exec_prefix"
  13490. exec_prefix="$acl_final_exec_prefix"
  13491. eval x=\"$x\"
  13492. exec_prefix="$acl_save_exec_prefix"
  13493. prefix="$acl_save_prefix"
  13494. if test "X$x" = "X-L$found_dir"; then
  13495. haveit=yes
  13496. break
  13497. fi
  13498. done
  13499. if test -z "$haveit"; then
  13500. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  13501. fi
  13502. if test "$acl_hardcode_minus_L" != no; then
  13503. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  13504. else
  13505. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  13506. fi
  13507. fi
  13508. fi
  13509. fi
  13510. else
  13511. if test "X$found_a" != "X"; then
  13512. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  13513. else
  13514. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  13515. fi
  13516. fi
  13517. additional_includedir=
  13518. case "$found_dir" in
  13519. */$acl_libdirstem | */$acl_libdirstem/)
  13520. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  13521. LIBINTL_PREFIX="$basedir"
  13522. additional_includedir="$basedir/include"
  13523. ;;
  13524. esac
  13525. if test "X$additional_includedir" != "X"; then
  13526. if test "X$additional_includedir" != "X/usr/include"; then
  13527. haveit=
  13528. if test "X$additional_includedir" = "X/usr/local/include"; then
  13529. if test -n "$GCC"; then
  13530. case $host_os in
  13531. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13532. esac
  13533. fi
  13534. fi
  13535. if test -z "$haveit"; then
  13536. for x in $CPPFLAGS $INCINTL; do
  13537. acl_save_prefix="$prefix"
  13538. prefix="$acl_final_prefix"
  13539. acl_save_exec_prefix="$exec_prefix"
  13540. exec_prefix="$acl_final_exec_prefix"
  13541. eval x=\"$x\"
  13542. exec_prefix="$acl_save_exec_prefix"
  13543. prefix="$acl_save_prefix"
  13544. if test "X$x" = "X-I$additional_includedir"; then
  13545. haveit=yes
  13546. break
  13547. fi
  13548. done
  13549. if test -z "$haveit"; then
  13550. if test -d "$additional_includedir"; then
  13551. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  13552. fi
  13553. fi
  13554. fi
  13555. fi
  13556. fi
  13557. if test -n "$found_la"; then
  13558. save_libdir="$libdir"
  13559. case "$found_la" in
  13560. */* | *\\*) . "$found_la" ;;
  13561. *) . "./$found_la" ;;
  13562. esac
  13563. libdir="$save_libdir"
  13564. for dep in $dependency_libs; do
  13565. case "$dep" in
  13566. -L*)
  13567. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13568. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  13569. haveit=
  13570. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  13571. if test -n "$GCC"; then
  13572. case $host_os in
  13573. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13574. esac
  13575. fi
  13576. fi
  13577. if test -z "$haveit"; then
  13578. haveit=
  13579. for x in $LDFLAGS $LIBINTL; do
  13580. acl_save_prefix="$prefix"
  13581. prefix="$acl_final_prefix"
  13582. acl_save_exec_prefix="$exec_prefix"
  13583. exec_prefix="$acl_final_exec_prefix"
  13584. eval x=\"$x\"
  13585. exec_prefix="$acl_save_exec_prefix"
  13586. prefix="$acl_save_prefix"
  13587. if test "X$x" = "X-L$additional_libdir"; then
  13588. haveit=yes
  13589. break
  13590. fi
  13591. done
  13592. if test -z "$haveit"; then
  13593. if test -d "$additional_libdir"; then
  13594. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  13595. fi
  13596. fi
  13597. haveit=
  13598. for x in $LDFLAGS $LTLIBINTL; do
  13599. acl_save_prefix="$prefix"
  13600. prefix="$acl_final_prefix"
  13601. acl_save_exec_prefix="$exec_prefix"
  13602. exec_prefix="$acl_final_exec_prefix"
  13603. eval x=\"$x\"
  13604. exec_prefix="$acl_save_exec_prefix"
  13605. prefix="$acl_save_prefix"
  13606. if test "X$x" = "X-L$additional_libdir"; then
  13607. haveit=yes
  13608. break
  13609. fi
  13610. done
  13611. if test -z "$haveit"; then
  13612. if test -d "$additional_libdir"; then
  13613. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  13614. fi
  13615. fi
  13616. fi
  13617. fi
  13618. ;;
  13619. -R*)
  13620. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13621. if test "$enable_rpath" != no; then
  13622. haveit=
  13623. for x in $rpathdirs; do
  13624. if test "X$x" = "X$dir"; then
  13625. haveit=yes
  13626. break
  13627. fi
  13628. done
  13629. if test -z "$haveit"; then
  13630. rpathdirs="$rpathdirs $dir"
  13631. fi
  13632. haveit=
  13633. for x in $ltrpathdirs; do
  13634. if test "X$x" = "X$dir"; then
  13635. haveit=yes
  13636. break
  13637. fi
  13638. done
  13639. if test -z "$haveit"; then
  13640. ltrpathdirs="$ltrpathdirs $dir"
  13641. fi
  13642. fi
  13643. ;;
  13644. -l*)
  13645. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13646. ;;
  13647. *.la)
  13648. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13649. ;;
  13650. *)
  13651. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  13652. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  13653. ;;
  13654. esac
  13655. done
  13656. fi
  13657. else
  13658. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  13659. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  13660. fi
  13661. fi
  13662. fi
  13663. done
  13664. done
  13665. if test "X$rpathdirs" != "X"; then
  13666. if test -n "$acl_hardcode_libdir_separator"; then
  13667. alldirs=
  13668. for found_dir in $rpathdirs; do
  13669. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  13670. done
  13671. acl_save_libdir="$libdir"
  13672. libdir="$alldirs"
  13673. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13674. libdir="$acl_save_libdir"
  13675. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  13676. else
  13677. for found_dir in $rpathdirs; do
  13678. acl_save_libdir="$libdir"
  13679. libdir="$found_dir"
  13680. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13681. libdir="$acl_save_libdir"
  13682. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  13683. done
  13684. fi
  13685. fi
  13686. if test "X$ltrpathdirs" != "X"; then
  13687. for found_dir in $ltrpathdirs; do
  13688. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  13689. done
  13690. fi
  13691. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  13692. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  13693. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  13694. echo $ECHO_N "(cached) $ECHO_C" >&6
  13695. else
  13696. gt_save_CPPFLAGS="$CPPFLAGS"
  13697. CPPFLAGS="$CPPFLAGS $INCINTL"
  13698. gt_save_LIBS="$LIBS"
  13699. LIBS="$LIBS $LIBINTL"
  13700. cat >conftest.$ac_ext <<_ACEOF
  13701. /* confdefs.h. */
  13702. _ACEOF
  13703. cat confdefs.h >>conftest.$ac_ext
  13704. cat >>conftest.$ac_ext <<_ACEOF
  13705. /* end confdefs.h. */
  13706. #include <libintl.h>
  13707. $gt_revision_test_code
  13708. extern int _nl_msg_cat_cntr;
  13709. extern
  13710. #ifdef __cplusplus
  13711. "C"
  13712. #endif
  13713. const char *_nl_expand_alias (const char *);
  13714. int
  13715. main ()
  13716. {
  13717. bindtextdomain ("", "");
  13718. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  13719. ;
  13720. return 0;
  13721. }
  13722. _ACEOF
  13723. rm -f conftest.$ac_objext conftest$ac_exeext
  13724. if { (ac_try="$ac_link"
  13725. case "(($ac_try" in
  13726. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13727. *) ac_try_echo=$ac_try;;
  13728. esac
  13729. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13730. (eval "$ac_link") 2>conftest.er1
  13731. ac_status=$?
  13732. grep -v '^ *+' conftest.er1 >conftest.err
  13733. rm -f conftest.er1
  13734. cat conftest.err >&5
  13735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13736. (exit $ac_status); } && {
  13737. test -z "$ac_cxx_werror_flag" ||
  13738. test ! -s conftest.err
  13739. } && test -s conftest$ac_exeext &&
  13740. $as_test_x conftest$ac_exeext; then
  13741. eval "$gt_func_gnugettext_libintl=yes"
  13742. else
  13743. echo "$as_me: failed program was:" >&5
  13744. sed 's/^/| /' conftest.$ac_ext >&5
  13745. eval "$gt_func_gnugettext_libintl=no"
  13746. fi
  13747. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13748. conftest$ac_exeext conftest.$ac_ext
  13749. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  13750. LIBS="$LIBS $LIBICONV"
  13751. cat >conftest.$ac_ext <<_ACEOF
  13752. /* confdefs.h. */
  13753. _ACEOF
  13754. cat confdefs.h >>conftest.$ac_ext
  13755. cat >>conftest.$ac_ext <<_ACEOF
  13756. /* end confdefs.h. */
  13757. #include <libintl.h>
  13758. $gt_revision_test_code
  13759. extern int _nl_msg_cat_cntr;
  13760. extern
  13761. #ifdef __cplusplus
  13762. "C"
  13763. #endif
  13764. const char *_nl_expand_alias (const char *);
  13765. int
  13766. main ()
  13767. {
  13768. bindtextdomain ("", "");
  13769. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  13770. ;
  13771. return 0;
  13772. }
  13773. _ACEOF
  13774. rm -f conftest.$ac_objext conftest$ac_exeext
  13775. if { (ac_try="$ac_link"
  13776. case "(($ac_try" in
  13777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13778. *) ac_try_echo=$ac_try;;
  13779. esac
  13780. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13781. (eval "$ac_link") 2>conftest.er1
  13782. ac_status=$?
  13783. grep -v '^ *+' conftest.er1 >conftest.err
  13784. rm -f conftest.er1
  13785. cat conftest.err >&5
  13786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13787. (exit $ac_status); } && {
  13788. test -z "$ac_cxx_werror_flag" ||
  13789. test ! -s conftest.err
  13790. } && test -s conftest$ac_exeext &&
  13791. $as_test_x conftest$ac_exeext; then
  13792. LIBINTL="$LIBINTL $LIBICONV"
  13793. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  13794. eval "$gt_func_gnugettext_libintl=yes"
  13795. else
  13796. echo "$as_me: failed program was:" >&5
  13797. sed 's/^/| /' conftest.$ac_ext >&5
  13798. fi
  13799. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13800. conftest$ac_exeext conftest.$ac_ext
  13801. fi
  13802. CPPFLAGS="$gt_save_CPPFLAGS"
  13803. LIBS="$gt_save_LIBS"
  13804. fi
  13805. ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'`
  13806. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13807. echo "${ECHO_T}$ac_res" >&6; }
  13808. fi
  13809. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  13810. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  13811. && test "$PACKAGE" != gettext-runtime \
  13812. && test "$PACKAGE" != gettext-tools; }; then
  13813. gt_use_preinstalled_gnugettext=yes
  13814. else
  13815. LIBINTL=
  13816. LTLIBINTL=
  13817. INCINTL=
  13818. fi
  13819. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  13820. nls_cv_use_gnu_gettext=yes
  13821. fi
  13822. fi
  13823. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  13824. BUILD_INCLUDED_LIBINTL=yes
  13825. USE_INCLUDED_LIBINTL=yes
  13826. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  13827. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  13828. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  13829. fi
  13830. CATOBJEXT=
  13831. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  13832. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  13833. CATOBJEXT=.gmo
  13834. fi
  13835. if test -n "$INTL_MACOSX_LIBS"; then
  13836. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  13837. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  13838. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  13839. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  13840. fi
  13841. fi
  13842. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  13843. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  13844. cat >>confdefs.h <<\_ACEOF
  13845. #define ENABLE_NLS 1
  13846. _ACEOF
  13847. else
  13848. USE_NLS=no
  13849. fi
  13850. fi
  13851. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  13852. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  13853. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  13854. echo "${ECHO_T}$USE_NLS" >&6; }
  13855. if test "$USE_NLS" = "yes"; then
  13856. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  13857. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  13858. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  13859. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  13860. gt_source="external libintl"
  13861. else
  13862. gt_source="libc"
  13863. fi
  13864. else
  13865. gt_source="included intl directory"
  13866. fi
  13867. { echo "$as_me:$LINENO: result: $gt_source" >&5
  13868. echo "${ECHO_T}$gt_source" >&6; }
  13869. fi
  13870. if test "$USE_NLS" = "yes"; then
  13871. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  13872. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  13873. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  13874. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  13875. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  13876. echo "${ECHO_T}$LIBINTL" >&6; }
  13877. for element in $INCINTL; do
  13878. haveit=
  13879. for x in $CPPFLAGS; do
  13880. acl_save_prefix="$prefix"
  13881. prefix="$acl_final_prefix"
  13882. acl_save_exec_prefix="$exec_prefix"
  13883. exec_prefix="$acl_final_exec_prefix"
  13884. eval x=\"$x\"
  13885. exec_prefix="$acl_save_exec_prefix"
  13886. prefix="$acl_save_prefix"
  13887. if test "X$x" = "X$element"; then
  13888. haveit=yes
  13889. break
  13890. fi
  13891. done
  13892. if test -z "$haveit"; then
  13893. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13894. fi
  13895. done
  13896. fi
  13897. cat >>confdefs.h <<\_ACEOF
  13898. #define HAVE_GETTEXT 1
  13899. _ACEOF
  13900. cat >>confdefs.h <<\_ACEOF
  13901. #define HAVE_DCGETTEXT 1
  13902. _ACEOF
  13903. fi
  13904. POSUB=po
  13905. fi
  13906. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  13907. BUILD_INCLUDED_LIBINTL=yes
  13908. fi
  13909. nls_cv_header_intl=
  13910. nls_cv_header_libgt=
  13911. DATADIRNAME=share
  13912. INSTOBJEXT=.mo
  13913. GENCAT=gencat
  13914. INTLOBJS=
  13915. if test "$USE_INCLUDED_LIBINTL" = yes; then
  13916. INTLOBJS="\$(GETTOBJS)"
  13917. fi
  13918. INTL_LIBTOOL_SUFFIX_PREFIX=
  13919. INTLLIBS="$LIBINTL"
  13920. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  13921. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  13922. if test "${ac_cv_lib_error_at_line+set}" = set; then
  13923. echo $ECHO_N "(cached) $ECHO_C" >&6
  13924. else
  13925. cat >conftest.$ac_ext <<_ACEOF
  13926. /* confdefs.h. */
  13927. _ACEOF
  13928. cat confdefs.h >>conftest.$ac_ext
  13929. cat >>conftest.$ac_ext <<_ACEOF
  13930. /* end confdefs.h. */
  13931. #include <error.h>
  13932. int
  13933. main ()
  13934. {
  13935. error_at_line (0, 0, "", 0, "an error occurred");
  13936. ;
  13937. return 0;
  13938. }
  13939. _ACEOF
  13940. rm -f conftest.$ac_objext conftest$ac_exeext
  13941. if { (ac_try="$ac_link"
  13942. case "(($ac_try" in
  13943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13944. *) ac_try_echo=$ac_try;;
  13945. esac
  13946. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  13947. (eval "$ac_link") 2>conftest.er1
  13948. ac_status=$?
  13949. grep -v '^ *+' conftest.er1 >conftest.err
  13950. rm -f conftest.er1
  13951. cat conftest.err >&5
  13952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13953. (exit $ac_status); } && {
  13954. test -z "$ac_cxx_werror_flag" ||
  13955. test ! -s conftest.err
  13956. } && test -s conftest$ac_exeext &&
  13957. $as_test_x conftest$ac_exeext; then
  13958. ac_cv_lib_error_at_line=yes
  13959. else
  13960. echo "$as_me: failed program was:" >&5
  13961. sed 's/^/| /' conftest.$ac_ext >&5
  13962. ac_cv_lib_error_at_line=no
  13963. fi
  13964. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13965. conftest$ac_exeext conftest.$ac_ext
  13966. fi
  13967. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  13968. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  13969. if test $ac_cv_lib_error_at_line = no; then
  13970. case " $LIBOBJS " in
  13971. *" error.$ac_objext "* ) ;;
  13972. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  13973. ;;
  13974. esac
  13975. fi
  13976. case "$target" in
  13977. *mingw*)
  13978. ;;
  13979. *)
  13980. for ac_header in stdlib.h
  13981. do
  13982. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13983. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13984. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  13985. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  13986. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13987. echo $ECHO_N "(cached) $ECHO_C" >&6
  13988. fi
  13989. ac_res=`eval echo '${'$as_ac_Header'}'`
  13990. { echo "$as_me:$LINENO: result: $ac_res" >&5
  13991. echo "${ECHO_T}$ac_res" >&6; }
  13992. else
  13993. # Is the header compilable?
  13994. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13995. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  13996. cat >conftest.$ac_ext <<_ACEOF
  13997. /* confdefs.h. */
  13998. _ACEOF
  13999. cat confdefs.h >>conftest.$ac_ext
  14000. cat >>conftest.$ac_ext <<_ACEOF
  14001. /* end confdefs.h. */
  14002. $ac_includes_default
  14003. #include <$ac_header>
  14004. _ACEOF
  14005. rm -f conftest.$ac_objext
  14006. if { (ac_try="$ac_compile"
  14007. case "(($ac_try" in
  14008. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14009. *) ac_try_echo=$ac_try;;
  14010. esac
  14011. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14012. (eval "$ac_compile") 2>conftest.er1
  14013. ac_status=$?
  14014. grep -v '^ *+' conftest.er1 >conftest.err
  14015. rm -f conftest.er1
  14016. cat conftest.err >&5
  14017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14018. (exit $ac_status); } && {
  14019. test -z "$ac_cxx_werror_flag" ||
  14020. test ! -s conftest.err
  14021. } && test -s conftest.$ac_objext; then
  14022. ac_header_compiler=yes
  14023. else
  14024. echo "$as_me: failed program was:" >&5
  14025. sed 's/^/| /' conftest.$ac_ext >&5
  14026. ac_header_compiler=no
  14027. fi
  14028. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14029. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14030. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14031. # Is the header present?
  14032. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14033. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14034. cat >conftest.$ac_ext <<_ACEOF
  14035. /* confdefs.h. */
  14036. _ACEOF
  14037. cat confdefs.h >>conftest.$ac_ext
  14038. cat >>conftest.$ac_ext <<_ACEOF
  14039. /* end confdefs.h. */
  14040. #include <$ac_header>
  14041. _ACEOF
  14042. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14043. case "(($ac_try" in
  14044. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14045. *) ac_try_echo=$ac_try;;
  14046. esac
  14047. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14048. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14049. ac_status=$?
  14050. grep -v '^ *+' conftest.er1 >conftest.err
  14051. rm -f conftest.er1
  14052. cat conftest.err >&5
  14053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14054. (exit $ac_status); } >/dev/null && {
  14055. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14056. test ! -s conftest.err
  14057. }; then
  14058. ac_header_preproc=yes
  14059. else
  14060. echo "$as_me: failed program was:" >&5
  14061. sed 's/^/| /' conftest.$ac_ext >&5
  14062. ac_header_preproc=no
  14063. fi
  14064. rm -f conftest.err conftest.$ac_ext
  14065. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14066. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14067. # So? What about this header?
  14068. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14069. yes:no: )
  14070. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14071. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14072. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14073. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14074. ac_header_preproc=yes
  14075. ;;
  14076. no:yes:* )
  14077. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14078. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14079. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14080. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14081. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14082. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14083. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14084. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14085. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14086. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14087. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14088. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14089. ( cat <<\_ASBOX
  14090. ## ----------------------------------------------- ##
  14091. ## Report this to t-tujikawa@users.sourceforge.net ##
  14092. ## ----------------------------------------------- ##
  14093. _ASBOX
  14094. ) | sed "s/^/$as_me: WARNING: /" >&2
  14095. ;;
  14096. esac
  14097. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14098. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14099. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14100. echo $ECHO_N "(cached) $ECHO_C" >&6
  14101. else
  14102. eval "$as_ac_Header=\$ac_header_preproc"
  14103. fi
  14104. ac_res=`eval echo '${'$as_ac_Header'}'`
  14105. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14106. echo "${ECHO_T}$ac_res" >&6; }
  14107. fi
  14108. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14109. cat >>confdefs.h <<_ACEOF
  14110. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14111. _ACEOF
  14112. fi
  14113. done
  14114. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  14115. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  14116. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  14117. echo $ECHO_N "(cached) $ECHO_C" >&6
  14118. else
  14119. if test "$cross_compiling" = yes; then
  14120. ac_cv_func_malloc_0_nonnull=no
  14121. else
  14122. cat >conftest.$ac_ext <<_ACEOF
  14123. /* confdefs.h. */
  14124. _ACEOF
  14125. cat confdefs.h >>conftest.$ac_ext
  14126. cat >>conftest.$ac_ext <<_ACEOF
  14127. /* end confdefs.h. */
  14128. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14129. # include <stdlib.h>
  14130. #else
  14131. char *malloc ();
  14132. #endif
  14133. int
  14134. main ()
  14135. {
  14136. return ! malloc (0);
  14137. ;
  14138. return 0;
  14139. }
  14140. _ACEOF
  14141. rm -f conftest$ac_exeext
  14142. if { (ac_try="$ac_link"
  14143. case "(($ac_try" in
  14144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14145. *) ac_try_echo=$ac_try;;
  14146. esac
  14147. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14148. (eval "$ac_link") 2>&5
  14149. ac_status=$?
  14150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14151. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14152. { (case "(($ac_try" in
  14153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14154. *) ac_try_echo=$ac_try;;
  14155. esac
  14156. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14157. (eval "$ac_try") 2>&5
  14158. ac_status=$?
  14159. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14160. (exit $ac_status); }; }; then
  14161. ac_cv_func_malloc_0_nonnull=yes
  14162. else
  14163. echo "$as_me: program exited with status $ac_status" >&5
  14164. echo "$as_me: failed program was:" >&5
  14165. sed 's/^/| /' conftest.$ac_ext >&5
  14166. ( exit $ac_status )
  14167. ac_cv_func_malloc_0_nonnull=no
  14168. fi
  14169. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14170. fi
  14171. fi
  14172. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  14173. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  14174. if test $ac_cv_func_malloc_0_nonnull = yes; then
  14175. cat >>confdefs.h <<\_ACEOF
  14176. #define HAVE_MALLOC 1
  14177. _ACEOF
  14178. else
  14179. cat >>confdefs.h <<\_ACEOF
  14180. #define HAVE_MALLOC 0
  14181. _ACEOF
  14182. case " $LIBOBJS " in
  14183. *" malloc.$ac_objext "* ) ;;
  14184. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  14185. ;;
  14186. esac
  14187. cat >>confdefs.h <<\_ACEOF
  14188. #define malloc rpl_malloc
  14189. _ACEOF
  14190. fi
  14191. for ac_header in stdlib.h
  14192. do
  14193. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14194. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14195. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14196. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14197. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14198. echo $ECHO_N "(cached) $ECHO_C" >&6
  14199. fi
  14200. ac_res=`eval echo '${'$as_ac_Header'}'`
  14201. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14202. echo "${ECHO_T}$ac_res" >&6; }
  14203. else
  14204. # Is the header compilable?
  14205. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14206. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14207. cat >conftest.$ac_ext <<_ACEOF
  14208. /* confdefs.h. */
  14209. _ACEOF
  14210. cat confdefs.h >>conftest.$ac_ext
  14211. cat >>conftest.$ac_ext <<_ACEOF
  14212. /* end confdefs.h. */
  14213. $ac_includes_default
  14214. #include <$ac_header>
  14215. _ACEOF
  14216. rm -f conftest.$ac_objext
  14217. if { (ac_try="$ac_compile"
  14218. case "(($ac_try" in
  14219. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14220. *) ac_try_echo=$ac_try;;
  14221. esac
  14222. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14223. (eval "$ac_compile") 2>conftest.er1
  14224. ac_status=$?
  14225. grep -v '^ *+' conftest.er1 >conftest.err
  14226. rm -f conftest.er1
  14227. cat conftest.err >&5
  14228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14229. (exit $ac_status); } && {
  14230. test -z "$ac_cxx_werror_flag" ||
  14231. test ! -s conftest.err
  14232. } && test -s conftest.$ac_objext; then
  14233. ac_header_compiler=yes
  14234. else
  14235. echo "$as_me: failed program was:" >&5
  14236. sed 's/^/| /' conftest.$ac_ext >&5
  14237. ac_header_compiler=no
  14238. fi
  14239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14240. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14241. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14242. # Is the header present?
  14243. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14244. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14245. cat >conftest.$ac_ext <<_ACEOF
  14246. /* confdefs.h. */
  14247. _ACEOF
  14248. cat confdefs.h >>conftest.$ac_ext
  14249. cat >>conftest.$ac_ext <<_ACEOF
  14250. /* end confdefs.h. */
  14251. #include <$ac_header>
  14252. _ACEOF
  14253. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14254. case "(($ac_try" in
  14255. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14256. *) ac_try_echo=$ac_try;;
  14257. esac
  14258. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14259. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14260. ac_status=$?
  14261. grep -v '^ *+' conftest.er1 >conftest.err
  14262. rm -f conftest.er1
  14263. cat conftest.err >&5
  14264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14265. (exit $ac_status); } >/dev/null && {
  14266. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14267. test ! -s conftest.err
  14268. }; then
  14269. ac_header_preproc=yes
  14270. else
  14271. echo "$as_me: failed program was:" >&5
  14272. sed 's/^/| /' conftest.$ac_ext >&5
  14273. ac_header_preproc=no
  14274. fi
  14275. rm -f conftest.err conftest.$ac_ext
  14276. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14277. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14278. # So? What about this header?
  14279. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14280. yes:no: )
  14281. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14282. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14283. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14284. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14285. ac_header_preproc=yes
  14286. ;;
  14287. no:yes:* )
  14288. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14289. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14290. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14291. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14292. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14293. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14294. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14295. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14296. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14297. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14298. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14299. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14300. ( cat <<\_ASBOX
  14301. ## ----------------------------------------------- ##
  14302. ## Report this to t-tujikawa@users.sourceforge.net ##
  14303. ## ----------------------------------------------- ##
  14304. _ASBOX
  14305. ) | sed "s/^/$as_me: WARNING: /" >&2
  14306. ;;
  14307. esac
  14308. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14309. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14310. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14311. echo $ECHO_N "(cached) $ECHO_C" >&6
  14312. else
  14313. eval "$as_ac_Header=\$ac_header_preproc"
  14314. fi
  14315. ac_res=`eval echo '${'$as_ac_Header'}'`
  14316. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14317. echo "${ECHO_T}$ac_res" >&6; }
  14318. fi
  14319. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14320. cat >>confdefs.h <<_ACEOF
  14321. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14322. _ACEOF
  14323. fi
  14324. done
  14325. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  14326. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  14327. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  14328. echo $ECHO_N "(cached) $ECHO_C" >&6
  14329. else
  14330. if test "$cross_compiling" = yes; then
  14331. ac_cv_func_realloc_0_nonnull=no
  14332. else
  14333. cat >conftest.$ac_ext <<_ACEOF
  14334. /* confdefs.h. */
  14335. _ACEOF
  14336. cat confdefs.h >>conftest.$ac_ext
  14337. cat >>conftest.$ac_ext <<_ACEOF
  14338. /* end confdefs.h. */
  14339. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  14340. # include <stdlib.h>
  14341. #else
  14342. char *realloc ();
  14343. #endif
  14344. int
  14345. main ()
  14346. {
  14347. return ! realloc (0, 0);
  14348. ;
  14349. return 0;
  14350. }
  14351. _ACEOF
  14352. rm -f conftest$ac_exeext
  14353. if { (ac_try="$ac_link"
  14354. case "(($ac_try" in
  14355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14356. *) ac_try_echo=$ac_try;;
  14357. esac
  14358. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14359. (eval "$ac_link") 2>&5
  14360. ac_status=$?
  14361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14362. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14363. { (case "(($ac_try" in
  14364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14365. *) ac_try_echo=$ac_try;;
  14366. esac
  14367. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14368. (eval "$ac_try") 2>&5
  14369. ac_status=$?
  14370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14371. (exit $ac_status); }; }; then
  14372. ac_cv_func_realloc_0_nonnull=yes
  14373. else
  14374. echo "$as_me: program exited with status $ac_status" >&5
  14375. echo "$as_me: failed program was:" >&5
  14376. sed 's/^/| /' conftest.$ac_ext >&5
  14377. ( exit $ac_status )
  14378. ac_cv_func_realloc_0_nonnull=no
  14379. fi
  14380. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14381. fi
  14382. fi
  14383. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  14384. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  14385. if test $ac_cv_func_realloc_0_nonnull = yes; then
  14386. cat >>confdefs.h <<\_ACEOF
  14387. #define HAVE_REALLOC 1
  14388. _ACEOF
  14389. else
  14390. cat >>confdefs.h <<\_ACEOF
  14391. #define HAVE_REALLOC 0
  14392. _ACEOF
  14393. case " $LIBOBJS " in
  14394. *" realloc.$ac_objext "* ) ;;
  14395. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  14396. ;;
  14397. esac
  14398. cat >>confdefs.h <<\_ACEOF
  14399. #define realloc rpl_realloc
  14400. _ACEOF
  14401. fi
  14402. ;;
  14403. esac
  14404. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  14405. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  14406. if test "${ac_cv_func_memcmp_working+set}" = set; then
  14407. echo $ECHO_N "(cached) $ECHO_C" >&6
  14408. else
  14409. if test "$cross_compiling" = yes; then
  14410. ac_cv_func_memcmp_working=no
  14411. else
  14412. cat >conftest.$ac_ext <<_ACEOF
  14413. /* confdefs.h. */
  14414. _ACEOF
  14415. cat confdefs.h >>conftest.$ac_ext
  14416. cat >>conftest.$ac_ext <<_ACEOF
  14417. /* end confdefs.h. */
  14418. $ac_includes_default
  14419. int
  14420. main ()
  14421. {
  14422. /* Some versions of memcmp are not 8-bit clean. */
  14423. char c0 = '\100', c1 = '\200', c2 = '\201';
  14424. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  14425. return 1;
  14426. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  14427. or more and with at least one buffer not starting on a 4-byte boundary.
  14428. William Lewis provided this test program. */
  14429. {
  14430. char foo[21];
  14431. char bar[21];
  14432. int i;
  14433. for (i = 0; i < 4; i++)
  14434. {
  14435. char *a = foo + i;
  14436. char *b = bar + i;
  14437. strcpy (a, "--------01111111");
  14438. strcpy (b, "--------10000000");
  14439. if (memcmp (a, b, 16) >= 0)
  14440. return 1;
  14441. }
  14442. return 0;
  14443. }
  14444. ;
  14445. return 0;
  14446. }
  14447. _ACEOF
  14448. rm -f conftest$ac_exeext
  14449. if { (ac_try="$ac_link"
  14450. case "(($ac_try" in
  14451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14452. *) ac_try_echo=$ac_try;;
  14453. esac
  14454. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14455. (eval "$ac_link") 2>&5
  14456. ac_status=$?
  14457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14458. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14459. { (case "(($ac_try" in
  14460. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14461. *) ac_try_echo=$ac_try;;
  14462. esac
  14463. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14464. (eval "$ac_try") 2>&5
  14465. ac_status=$?
  14466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14467. (exit $ac_status); }; }; then
  14468. ac_cv_func_memcmp_working=yes
  14469. else
  14470. echo "$as_me: program exited with status $ac_status" >&5
  14471. echo "$as_me: failed program was:" >&5
  14472. sed 's/^/| /' conftest.$ac_ext >&5
  14473. ( exit $ac_status )
  14474. ac_cv_func_memcmp_working=no
  14475. fi
  14476. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14477. fi
  14478. fi
  14479. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  14480. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  14481. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  14482. *" memcmp.$ac_objext "* ) ;;
  14483. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  14484. ;;
  14485. esac
  14486. for ac_header in stdlib.h unistd.h
  14487. do
  14488. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14489. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14490. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14491. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14492. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14493. echo $ECHO_N "(cached) $ECHO_C" >&6
  14494. fi
  14495. ac_res=`eval echo '${'$as_ac_Header'}'`
  14496. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14497. echo "${ECHO_T}$ac_res" >&6; }
  14498. else
  14499. # Is the header compilable?
  14500. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14501. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14502. cat >conftest.$ac_ext <<_ACEOF
  14503. /* confdefs.h. */
  14504. _ACEOF
  14505. cat confdefs.h >>conftest.$ac_ext
  14506. cat >>conftest.$ac_ext <<_ACEOF
  14507. /* end confdefs.h. */
  14508. $ac_includes_default
  14509. #include <$ac_header>
  14510. _ACEOF
  14511. rm -f conftest.$ac_objext
  14512. if { (ac_try="$ac_compile"
  14513. case "(($ac_try" in
  14514. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14515. *) ac_try_echo=$ac_try;;
  14516. esac
  14517. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14518. (eval "$ac_compile") 2>conftest.er1
  14519. ac_status=$?
  14520. grep -v '^ *+' conftest.er1 >conftest.err
  14521. rm -f conftest.er1
  14522. cat conftest.err >&5
  14523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14524. (exit $ac_status); } && {
  14525. test -z "$ac_cxx_werror_flag" ||
  14526. test ! -s conftest.err
  14527. } && test -s conftest.$ac_objext; then
  14528. ac_header_compiler=yes
  14529. else
  14530. echo "$as_me: failed program was:" >&5
  14531. sed 's/^/| /' conftest.$ac_ext >&5
  14532. ac_header_compiler=no
  14533. fi
  14534. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14535. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14536. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14537. # Is the header present?
  14538. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14539. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14540. cat >conftest.$ac_ext <<_ACEOF
  14541. /* confdefs.h. */
  14542. _ACEOF
  14543. cat confdefs.h >>conftest.$ac_ext
  14544. cat >>conftest.$ac_ext <<_ACEOF
  14545. /* end confdefs.h. */
  14546. #include <$ac_header>
  14547. _ACEOF
  14548. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14549. case "(($ac_try" in
  14550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14551. *) ac_try_echo=$ac_try;;
  14552. esac
  14553. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14554. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14555. ac_status=$?
  14556. grep -v '^ *+' conftest.er1 >conftest.err
  14557. rm -f conftest.er1
  14558. cat conftest.err >&5
  14559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14560. (exit $ac_status); } >/dev/null && {
  14561. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14562. test ! -s conftest.err
  14563. }; then
  14564. ac_header_preproc=yes
  14565. else
  14566. echo "$as_me: failed program was:" >&5
  14567. sed 's/^/| /' conftest.$ac_ext >&5
  14568. ac_header_preproc=no
  14569. fi
  14570. rm -f conftest.err conftest.$ac_ext
  14571. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14572. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14573. # So? What about this header?
  14574. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14575. yes:no: )
  14576. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14577. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14578. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14579. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14580. ac_header_preproc=yes
  14581. ;;
  14582. no:yes:* )
  14583. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14584. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14585. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14586. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14587. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14588. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14589. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14590. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14591. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14592. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14593. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14594. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14595. ( cat <<\_ASBOX
  14596. ## ----------------------------------------------- ##
  14597. ## Report this to t-tujikawa@users.sourceforge.net ##
  14598. ## ----------------------------------------------- ##
  14599. _ASBOX
  14600. ) | sed "s/^/$as_me: WARNING: /" >&2
  14601. ;;
  14602. esac
  14603. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14604. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14605. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14606. echo $ECHO_N "(cached) $ECHO_C" >&6
  14607. else
  14608. eval "$as_ac_Header=\$ac_header_preproc"
  14609. fi
  14610. ac_res=`eval echo '${'$as_ac_Header'}'`
  14611. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14612. echo "${ECHO_T}$ac_res" >&6; }
  14613. fi
  14614. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  14615. cat >>confdefs.h <<_ACEOF
  14616. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14617. _ACEOF
  14618. fi
  14619. done
  14620. for ac_func in getpagesize
  14621. do
  14622. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14623. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  14624. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  14625. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  14626. echo $ECHO_N "(cached) $ECHO_C" >&6
  14627. else
  14628. cat >conftest.$ac_ext <<_ACEOF
  14629. /* confdefs.h. */
  14630. _ACEOF
  14631. cat confdefs.h >>conftest.$ac_ext
  14632. cat >>conftest.$ac_ext <<_ACEOF
  14633. /* end confdefs.h. */
  14634. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  14635. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14636. #define $ac_func innocuous_$ac_func
  14637. /* System header to define __stub macros and hopefully few prototypes,
  14638. which can conflict with char $ac_func (); below.
  14639. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14640. <limits.h> exists even on freestanding compilers. */
  14641. #ifdef __STDC__
  14642. # include <limits.h>
  14643. #else
  14644. # include <assert.h>
  14645. #endif
  14646. #undef $ac_func
  14647. /* Override any GCC internal prototype to avoid an error.
  14648. Use char because int might match the return type of a GCC
  14649. builtin and then its argument prototype would still apply. */
  14650. #ifdef __cplusplus
  14651. extern "C"
  14652. #endif
  14653. char $ac_func ();
  14654. /* The GNU C library defines this for functions which it implements
  14655. to always fail with ENOSYS. Some functions are actually named
  14656. something starting with __ and the normal name is an alias. */
  14657. #if defined __stub_$ac_func || defined __stub___$ac_func
  14658. choke me
  14659. #endif
  14660. int
  14661. main ()
  14662. {
  14663. return $ac_func ();
  14664. ;
  14665. return 0;
  14666. }
  14667. _ACEOF
  14668. rm -f conftest.$ac_objext conftest$ac_exeext
  14669. if { (ac_try="$ac_link"
  14670. case "(($ac_try" in
  14671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14672. *) ac_try_echo=$ac_try;;
  14673. esac
  14674. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14675. (eval "$ac_link") 2>conftest.er1
  14676. ac_status=$?
  14677. grep -v '^ *+' conftest.er1 >conftest.err
  14678. rm -f conftest.er1
  14679. cat conftest.err >&5
  14680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14681. (exit $ac_status); } && {
  14682. test -z "$ac_cxx_werror_flag" ||
  14683. test ! -s conftest.err
  14684. } && test -s conftest$ac_exeext &&
  14685. $as_test_x conftest$ac_exeext; then
  14686. eval "$as_ac_var=yes"
  14687. else
  14688. echo "$as_me: failed program was:" >&5
  14689. sed 's/^/| /' conftest.$ac_ext >&5
  14690. eval "$as_ac_var=no"
  14691. fi
  14692. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14693. conftest$ac_exeext conftest.$ac_ext
  14694. fi
  14695. ac_res=`eval echo '${'$as_ac_var'}'`
  14696. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14697. echo "${ECHO_T}$ac_res" >&6; }
  14698. if test `eval echo '${'$as_ac_var'}'` = yes; then
  14699. cat >>confdefs.h <<_ACEOF
  14700. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14701. _ACEOF
  14702. fi
  14703. done
  14704. { echo "$as_me:$LINENO: checking for working mmap" >&5
  14705. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  14706. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  14707. echo $ECHO_N "(cached) $ECHO_C" >&6
  14708. else
  14709. if test "$cross_compiling" = yes; then
  14710. ac_cv_func_mmap_fixed_mapped=no
  14711. else
  14712. cat >conftest.$ac_ext <<_ACEOF
  14713. /* confdefs.h. */
  14714. _ACEOF
  14715. cat confdefs.h >>conftest.$ac_ext
  14716. cat >>conftest.$ac_ext <<_ACEOF
  14717. /* end confdefs.h. */
  14718. $ac_includes_default
  14719. /* malloc might have been renamed as rpl_malloc. */
  14720. #undef malloc
  14721. /* Thanks to Mike Haertel and Jim Avera for this test.
  14722. Here is a matrix of mmap possibilities:
  14723. mmap private not fixed
  14724. mmap private fixed at somewhere currently unmapped
  14725. mmap private fixed at somewhere already mapped
  14726. mmap shared not fixed
  14727. mmap shared fixed at somewhere currently unmapped
  14728. mmap shared fixed at somewhere already mapped
  14729. For private mappings, we should verify that changes cannot be read()
  14730. back from the file, nor mmap's back from the file at a different
  14731. address. (There have been systems where private was not correctly
  14732. implemented like the infamous i386 svr4.0, and systems where the
  14733. VM page cache was not coherent with the file system buffer cache
  14734. like early versions of FreeBSD and possibly contemporary NetBSD.)
  14735. For shared mappings, we should conversely verify that changes get
  14736. propagated back to all the places they're supposed to be.
  14737. Grep wants private fixed already mapped.
  14738. The main things grep needs to know about mmap are:
  14739. * does it exist and is it safe to write into the mmap'd area
  14740. * how to use it (BSD variants) */
  14741. #include <fcntl.h>
  14742. #include <sys/mman.h>
  14743. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  14744. char *malloc ();
  14745. #endif
  14746. /* This mess was copied from the GNU getpagesize.h. */
  14747. #ifndef HAVE_GETPAGESIZE
  14748. /* Assume that all systems that can run configure have sys/param.h. */
  14749. # ifndef HAVE_SYS_PARAM_H
  14750. # define HAVE_SYS_PARAM_H 1
  14751. # endif
  14752. # ifdef _SC_PAGESIZE
  14753. # define getpagesize() sysconf(_SC_PAGESIZE)
  14754. # else /* no _SC_PAGESIZE */
  14755. # ifdef HAVE_SYS_PARAM_H
  14756. # include <sys/param.h>
  14757. # ifdef EXEC_PAGESIZE
  14758. # define getpagesize() EXEC_PAGESIZE
  14759. # else /* no EXEC_PAGESIZE */
  14760. # ifdef NBPG
  14761. # define getpagesize() NBPG * CLSIZE
  14762. # ifndef CLSIZE
  14763. # define CLSIZE 1
  14764. # endif /* no CLSIZE */
  14765. # else /* no NBPG */
  14766. # ifdef NBPC
  14767. # define getpagesize() NBPC
  14768. # else /* no NBPC */
  14769. # ifdef PAGESIZE
  14770. # define getpagesize() PAGESIZE
  14771. # endif /* PAGESIZE */
  14772. # endif /* no NBPC */
  14773. # endif /* no NBPG */
  14774. # endif /* no EXEC_PAGESIZE */
  14775. # else /* no HAVE_SYS_PARAM_H */
  14776. # define getpagesize() 8192 /* punt totally */
  14777. # endif /* no HAVE_SYS_PARAM_H */
  14778. # endif /* no _SC_PAGESIZE */
  14779. #endif /* no HAVE_GETPAGESIZE */
  14780. int
  14781. main ()
  14782. {
  14783. char *data, *data2, *data3;
  14784. int i, pagesize;
  14785. int fd;
  14786. pagesize = getpagesize ();
  14787. /* First, make a file with some known garbage in it. */
  14788. data = (char *) malloc (pagesize);
  14789. if (!data)
  14790. return 1;
  14791. for (i = 0; i < pagesize; ++i)
  14792. *(data + i) = rand ();
  14793. umask (0);
  14794. fd = creat ("conftest.mmap", 0600);
  14795. if (fd < 0)
  14796. return 1;
  14797. if (write (fd, data, pagesize) != pagesize)
  14798. return 1;
  14799. close (fd);
  14800. /* Next, try to mmap the file at a fixed address which already has
  14801. something else allocated at it. If we can, also make sure that
  14802. we see the same garbage. */
  14803. fd = open ("conftest.mmap", O_RDWR);
  14804. if (fd < 0)
  14805. return 1;
  14806. data2 = (char *) malloc (2 * pagesize);
  14807. if (!data2)
  14808. return 1;
  14809. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  14810. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  14811. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  14812. return 1;
  14813. for (i = 0; i < pagesize; ++i)
  14814. if (*(data + i) != *(data2 + i))
  14815. return 1;
  14816. /* Finally, make sure that changes to the mapped area do not
  14817. percolate back to the file as seen by read(). (This is a bug on
  14818. some variants of i386 svr4.0.) */
  14819. for (i = 0; i < pagesize; ++i)
  14820. *(data2 + i) = *(data2 + i) + 1;
  14821. data3 = (char *) malloc (pagesize);
  14822. if (!data3)
  14823. return 1;
  14824. if (read (fd, data3, pagesize) != pagesize)
  14825. return 1;
  14826. for (i = 0; i < pagesize; ++i)
  14827. if (*(data + i) != *(data3 + i))
  14828. return 1;
  14829. close (fd);
  14830. return 0;
  14831. }
  14832. _ACEOF
  14833. rm -f conftest$ac_exeext
  14834. if { (ac_try="$ac_link"
  14835. case "(($ac_try" in
  14836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14837. *) ac_try_echo=$ac_try;;
  14838. esac
  14839. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14840. (eval "$ac_link") 2>&5
  14841. ac_status=$?
  14842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14843. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14844. { (case "(($ac_try" in
  14845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14846. *) ac_try_echo=$ac_try;;
  14847. esac
  14848. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14849. (eval "$ac_try") 2>&5
  14850. ac_status=$?
  14851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14852. (exit $ac_status); }; }; then
  14853. ac_cv_func_mmap_fixed_mapped=yes
  14854. else
  14855. echo "$as_me: program exited with status $ac_status" >&5
  14856. echo "$as_me: failed program was:" >&5
  14857. sed 's/^/| /' conftest.$ac_ext >&5
  14858. ( exit $ac_status )
  14859. ac_cv_func_mmap_fixed_mapped=no
  14860. fi
  14861. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14862. fi
  14863. fi
  14864. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  14865. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  14866. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  14867. cat >>confdefs.h <<\_ACEOF
  14868. #define HAVE_MMAP 1
  14869. _ACEOF
  14870. fi
  14871. rm -f conftest.mmap
  14872. for ac_header in sys/select.h sys/socket.h
  14873. do
  14874. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14875. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14876. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14877. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14878. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14879. echo $ECHO_N "(cached) $ECHO_C" >&6
  14880. fi
  14881. ac_res=`eval echo '${'$as_ac_Header'}'`
  14882. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14883. echo "${ECHO_T}$ac_res" >&6; }
  14884. else
  14885. # Is the header compilable?
  14886. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14887. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  14888. cat >conftest.$ac_ext <<_ACEOF
  14889. /* confdefs.h. */
  14890. _ACEOF
  14891. cat confdefs.h >>conftest.$ac_ext
  14892. cat >>conftest.$ac_ext <<_ACEOF
  14893. /* end confdefs.h. */
  14894. $ac_includes_default
  14895. #include <$ac_header>
  14896. _ACEOF
  14897. rm -f conftest.$ac_objext
  14898. if { (ac_try="$ac_compile"
  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_compile") 2>conftest.er1
  14905. ac_status=$?
  14906. grep -v '^ *+' conftest.er1 >conftest.err
  14907. rm -f conftest.er1
  14908. cat conftest.err >&5
  14909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14910. (exit $ac_status); } && {
  14911. test -z "$ac_cxx_werror_flag" ||
  14912. test ! -s conftest.err
  14913. } && test -s conftest.$ac_objext; then
  14914. ac_header_compiler=yes
  14915. else
  14916. echo "$as_me: failed program was:" >&5
  14917. sed 's/^/| /' conftest.$ac_ext >&5
  14918. ac_header_compiler=no
  14919. fi
  14920. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14921. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14922. echo "${ECHO_T}$ac_header_compiler" >&6; }
  14923. # Is the header present?
  14924. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14925. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  14926. cat >conftest.$ac_ext <<_ACEOF
  14927. /* confdefs.h. */
  14928. _ACEOF
  14929. cat confdefs.h >>conftest.$ac_ext
  14930. cat >>conftest.$ac_ext <<_ACEOF
  14931. /* end confdefs.h. */
  14932. #include <$ac_header>
  14933. _ACEOF
  14934. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14935. case "(($ac_try" in
  14936. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14937. *) ac_try_echo=$ac_try;;
  14938. esac
  14939. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  14940. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14941. ac_status=$?
  14942. grep -v '^ *+' conftest.er1 >conftest.err
  14943. rm -f conftest.er1
  14944. cat conftest.err >&5
  14945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14946. (exit $ac_status); } >/dev/null && {
  14947. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14948. test ! -s conftest.err
  14949. }; then
  14950. ac_header_preproc=yes
  14951. else
  14952. echo "$as_me: failed program was:" >&5
  14953. sed 's/^/| /' conftest.$ac_ext >&5
  14954. ac_header_preproc=no
  14955. fi
  14956. rm -f conftest.err conftest.$ac_ext
  14957. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14958. echo "${ECHO_T}$ac_header_preproc" >&6; }
  14959. # So? What about this header?
  14960. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14961. yes:no: )
  14962. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14963. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14964. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14965. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14966. ac_header_preproc=yes
  14967. ;;
  14968. no:yes:* )
  14969. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14970. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14971. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14972. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14973. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14974. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14975. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14976. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14977. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14978. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14979. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14980. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14981. ( cat <<\_ASBOX
  14982. ## ----------------------------------------------- ##
  14983. ## Report this to t-tujikawa@users.sourceforge.net ##
  14984. ## ----------------------------------------------- ##
  14985. _ASBOX
  14986. ) | sed "s/^/$as_me: WARNING: /" >&2
  14987. ;;
  14988. esac
  14989. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  14990. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  14991. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14992. echo $ECHO_N "(cached) $ECHO_C" >&6
  14993. else
  14994. eval "$as_ac_Header=\$ac_header_preproc"
  14995. fi
  14996. ac_res=`eval echo '${'$as_ac_Header'}'`
  14997. { echo "$as_me:$LINENO: result: $ac_res" >&5
  14998. echo "${ECHO_T}$ac_res" >&6; }
  14999. fi
  15000. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  15001. cat >>confdefs.h <<_ACEOF
  15002. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15003. _ACEOF
  15004. fi
  15005. done
  15006. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  15007. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  15008. if test "${ac_cv_func_select_args+set}" = set; then
  15009. echo $ECHO_N "(cached) $ECHO_C" >&6
  15010. else
  15011. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  15012. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  15013. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  15014. cat >conftest.$ac_ext <<_ACEOF
  15015. /* confdefs.h. */
  15016. _ACEOF
  15017. cat confdefs.h >>conftest.$ac_ext
  15018. cat >>conftest.$ac_ext <<_ACEOF
  15019. /* end confdefs.h. */
  15020. $ac_includes_default
  15021. #ifdef HAVE_SYS_SELECT_H
  15022. # include <sys/select.h>
  15023. #endif
  15024. #ifdef HAVE_SYS_SOCKET_H
  15025. # include <sys/socket.h>
  15026. #endif
  15027. int
  15028. main ()
  15029. {
  15030. extern int select ($ac_arg1,
  15031. $ac_arg234, $ac_arg234, $ac_arg234,
  15032. $ac_arg5);
  15033. ;
  15034. return 0;
  15035. }
  15036. _ACEOF
  15037. rm -f conftest.$ac_objext
  15038. if { (ac_try="$ac_compile"
  15039. case "(($ac_try" in
  15040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15041. *) ac_try_echo=$ac_try;;
  15042. esac
  15043. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15044. (eval "$ac_compile") 2>conftest.er1
  15045. ac_status=$?
  15046. grep -v '^ *+' conftest.er1 >conftest.err
  15047. rm -f conftest.er1
  15048. cat conftest.err >&5
  15049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15050. (exit $ac_status); } && {
  15051. test -z "$ac_cxx_werror_flag" ||
  15052. test ! -s conftest.err
  15053. } && test -s conftest.$ac_objext; then
  15054. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  15055. else
  15056. echo "$as_me: failed program was:" >&5
  15057. sed 's/^/| /' conftest.$ac_ext >&5
  15058. fi
  15059. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15060. done
  15061. done
  15062. done
  15063. # Provide a safe default value.
  15064. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  15065. fi
  15066. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  15067. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  15068. ac_save_IFS=$IFS; IFS=','
  15069. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  15070. IFS=$ac_save_IFS
  15071. shift
  15072. cat >>confdefs.h <<_ACEOF
  15073. #define SELECT_TYPE_ARG1 $1
  15074. _ACEOF
  15075. cat >>confdefs.h <<_ACEOF
  15076. #define SELECT_TYPE_ARG234 ($2)
  15077. _ACEOF
  15078. cat >>confdefs.h <<_ACEOF
  15079. #define SELECT_TYPE_ARG5 ($3)
  15080. _ACEOF
  15081. rm -f conftest*
  15082. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  15083. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  15084. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  15085. echo $ECHO_N "(cached) $ECHO_C" >&6
  15086. else
  15087. rm -f conftest.sym conftest.file
  15088. echo >conftest.file
  15089. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  15090. if test "$cross_compiling" = yes; then
  15091. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15092. else
  15093. cat >conftest.$ac_ext <<_ACEOF
  15094. /* confdefs.h. */
  15095. _ACEOF
  15096. cat confdefs.h >>conftest.$ac_ext
  15097. cat >>conftest.$ac_ext <<_ACEOF
  15098. /* end confdefs.h. */
  15099. $ac_includes_default
  15100. int
  15101. main ()
  15102. {
  15103. struct stat sbuf;
  15104. /* Linux will dereference the symlink and fail.
  15105. That is better in the sense that it means we will not
  15106. have to compile and use the lstat wrapper. */
  15107. return lstat ("conftest.sym/", &sbuf) == 0;
  15108. ;
  15109. return 0;
  15110. }
  15111. _ACEOF
  15112. rm -f conftest$ac_exeext
  15113. if { (ac_try="$ac_link"
  15114. case "(($ac_try" in
  15115. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15116. *) ac_try_echo=$ac_try;;
  15117. esac
  15118. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15119. (eval "$ac_link") 2>&5
  15120. ac_status=$?
  15121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15122. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15123. { (case "(($ac_try" in
  15124. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15125. *) ac_try_echo=$ac_try;;
  15126. esac
  15127. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15128. (eval "$ac_try") 2>&5
  15129. ac_status=$?
  15130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15131. (exit $ac_status); }; }; then
  15132. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  15133. else
  15134. echo "$as_me: program exited with status $ac_status" >&5
  15135. echo "$as_me: failed program was:" >&5
  15136. sed 's/^/| /' conftest.$ac_ext >&5
  15137. ( exit $ac_status )
  15138. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15139. fi
  15140. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15141. fi
  15142. else
  15143. # If the `ln -s' command failed, then we probably don't even
  15144. # have an lstat function.
  15145. ac_cv_func_lstat_dereferences_slashed_symlink=no
  15146. fi
  15147. rm -f conftest.sym conftest.file
  15148. fi
  15149. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  15150. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  15151. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  15152. cat >>confdefs.h <<_ACEOF
  15153. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  15154. _ACEOF
  15155. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  15156. case " $LIBOBJS " in
  15157. *" lstat.$ac_objext "* ) ;;
  15158. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  15159. ;;
  15160. esac
  15161. fi
  15162. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  15163. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  15164. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  15165. echo $ECHO_N "(cached) $ECHO_C" >&6
  15166. else
  15167. if test "$cross_compiling" = yes; then
  15168. ac_cv_func_stat_empty_string_bug=yes
  15169. else
  15170. cat >conftest.$ac_ext <<_ACEOF
  15171. /* confdefs.h. */
  15172. _ACEOF
  15173. cat confdefs.h >>conftest.$ac_ext
  15174. cat >>conftest.$ac_ext <<_ACEOF
  15175. /* end confdefs.h. */
  15176. $ac_includes_default
  15177. int
  15178. main ()
  15179. {
  15180. struct stat sbuf;
  15181. return stat ("", &sbuf) == 0;
  15182. ;
  15183. return 0;
  15184. }
  15185. _ACEOF
  15186. rm -f conftest$ac_exeext
  15187. if { (ac_try="$ac_link"
  15188. case "(($ac_try" in
  15189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15190. *) ac_try_echo=$ac_try;;
  15191. esac
  15192. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15193. (eval "$ac_link") 2>&5
  15194. ac_status=$?
  15195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15196. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15197. { (case "(($ac_try" in
  15198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15199. *) ac_try_echo=$ac_try;;
  15200. esac
  15201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15202. (eval "$ac_try") 2>&5
  15203. ac_status=$?
  15204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15205. (exit $ac_status); }; }; then
  15206. ac_cv_func_stat_empty_string_bug=no
  15207. else
  15208. echo "$as_me: program exited with status $ac_status" >&5
  15209. echo "$as_me: failed program was:" >&5
  15210. sed 's/^/| /' conftest.$ac_ext >&5
  15211. ( exit $ac_status )
  15212. ac_cv_func_stat_empty_string_bug=yes
  15213. fi
  15214. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15215. fi
  15216. fi
  15217. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  15218. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  15219. if test $ac_cv_func_stat_empty_string_bug = yes; then
  15220. case " $LIBOBJS " in
  15221. *" stat.$ac_objext "* ) ;;
  15222. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  15223. ;;
  15224. esac
  15225. cat >>confdefs.h <<_ACEOF
  15226. #define HAVE_STAT_EMPTY_STRING_BUG 1
  15227. _ACEOF
  15228. fi
  15229. for ac_func in vprintf
  15230. do
  15231. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15232. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15233. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15234. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15235. echo $ECHO_N "(cached) $ECHO_C" >&6
  15236. else
  15237. cat >conftest.$ac_ext <<_ACEOF
  15238. /* confdefs.h. */
  15239. _ACEOF
  15240. cat confdefs.h >>conftest.$ac_ext
  15241. cat >>conftest.$ac_ext <<_ACEOF
  15242. /* end confdefs.h. */
  15243. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15244. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15245. #define $ac_func innocuous_$ac_func
  15246. /* System header to define __stub macros and hopefully few prototypes,
  15247. which can conflict with char $ac_func (); below.
  15248. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15249. <limits.h> exists even on freestanding compilers. */
  15250. #ifdef __STDC__
  15251. # include <limits.h>
  15252. #else
  15253. # include <assert.h>
  15254. #endif
  15255. #undef $ac_func
  15256. /* Override any GCC internal prototype to avoid an error.
  15257. Use char because int might match the return type of a GCC
  15258. builtin and then its argument prototype would still apply. */
  15259. #ifdef __cplusplus
  15260. extern "C"
  15261. #endif
  15262. char $ac_func ();
  15263. /* The GNU C library defines this for functions which it implements
  15264. to always fail with ENOSYS. Some functions are actually named
  15265. something starting with __ and the normal name is an alias. */
  15266. #if defined __stub_$ac_func || defined __stub___$ac_func
  15267. choke me
  15268. #endif
  15269. int
  15270. main ()
  15271. {
  15272. return $ac_func ();
  15273. ;
  15274. return 0;
  15275. }
  15276. _ACEOF
  15277. rm -f conftest.$ac_objext conftest$ac_exeext
  15278. if { (ac_try="$ac_link"
  15279. case "(($ac_try" in
  15280. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15281. *) ac_try_echo=$ac_try;;
  15282. esac
  15283. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15284. (eval "$ac_link") 2>conftest.er1
  15285. ac_status=$?
  15286. grep -v '^ *+' conftest.er1 >conftest.err
  15287. rm -f conftest.er1
  15288. cat conftest.err >&5
  15289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15290. (exit $ac_status); } && {
  15291. test -z "$ac_cxx_werror_flag" ||
  15292. test ! -s conftest.err
  15293. } && test -s conftest$ac_exeext &&
  15294. $as_test_x conftest$ac_exeext; then
  15295. eval "$as_ac_var=yes"
  15296. else
  15297. echo "$as_me: failed program was:" >&5
  15298. sed 's/^/| /' conftest.$ac_ext >&5
  15299. eval "$as_ac_var=no"
  15300. fi
  15301. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15302. conftest$ac_exeext conftest.$ac_ext
  15303. fi
  15304. ac_res=`eval echo '${'$as_ac_var'}'`
  15305. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15306. echo "${ECHO_T}$ac_res" >&6; }
  15307. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15308. cat >>confdefs.h <<_ACEOF
  15309. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15310. _ACEOF
  15311. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  15312. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  15313. if test "${ac_cv_func__doprnt+set}" = set; then
  15314. echo $ECHO_N "(cached) $ECHO_C" >&6
  15315. else
  15316. cat >conftest.$ac_ext <<_ACEOF
  15317. /* confdefs.h. */
  15318. _ACEOF
  15319. cat confdefs.h >>conftest.$ac_ext
  15320. cat >>conftest.$ac_ext <<_ACEOF
  15321. /* end confdefs.h. */
  15322. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  15323. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15324. #define _doprnt innocuous__doprnt
  15325. /* System header to define __stub macros and hopefully few prototypes,
  15326. which can conflict with char _doprnt (); below.
  15327. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15328. <limits.h> exists even on freestanding compilers. */
  15329. #ifdef __STDC__
  15330. # include <limits.h>
  15331. #else
  15332. # include <assert.h>
  15333. #endif
  15334. #undef _doprnt
  15335. /* Override any GCC internal prototype to avoid an error.
  15336. Use char because int might match the return type of a GCC
  15337. builtin and then its argument prototype would still apply. */
  15338. #ifdef __cplusplus
  15339. extern "C"
  15340. #endif
  15341. char _doprnt ();
  15342. /* The GNU C library defines this for functions which it implements
  15343. to always fail with ENOSYS. Some functions are actually named
  15344. something starting with __ and the normal name is an alias. */
  15345. #if defined __stub__doprnt || defined __stub____doprnt
  15346. choke me
  15347. #endif
  15348. int
  15349. main ()
  15350. {
  15351. return _doprnt ();
  15352. ;
  15353. return 0;
  15354. }
  15355. _ACEOF
  15356. rm -f conftest.$ac_objext conftest$ac_exeext
  15357. if { (ac_try="$ac_link"
  15358. case "(($ac_try" in
  15359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15360. *) ac_try_echo=$ac_try;;
  15361. esac
  15362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15363. (eval "$ac_link") 2>conftest.er1
  15364. ac_status=$?
  15365. grep -v '^ *+' conftest.er1 >conftest.err
  15366. rm -f conftest.er1
  15367. cat conftest.err >&5
  15368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15369. (exit $ac_status); } && {
  15370. test -z "$ac_cxx_werror_flag" ||
  15371. test ! -s conftest.err
  15372. } && test -s conftest$ac_exeext &&
  15373. $as_test_x conftest$ac_exeext; then
  15374. ac_cv_func__doprnt=yes
  15375. else
  15376. echo "$as_me: failed program was:" >&5
  15377. sed 's/^/| /' conftest.$ac_ext >&5
  15378. ac_cv_func__doprnt=no
  15379. fi
  15380. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15381. conftest$ac_exeext conftest.$ac_ext
  15382. fi
  15383. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  15384. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  15385. if test $ac_cv_func__doprnt = yes; then
  15386. cat >>confdefs.h <<\_ACEOF
  15387. #define HAVE_DOPRNT 1
  15388. _ACEOF
  15389. fi
  15390. fi
  15391. done
  15392. 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
  15393. do
  15394. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15395. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15396. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15397. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15398. echo $ECHO_N "(cached) $ECHO_C" >&6
  15399. else
  15400. cat >conftest.$ac_ext <<_ACEOF
  15401. /* confdefs.h. */
  15402. _ACEOF
  15403. cat confdefs.h >>conftest.$ac_ext
  15404. cat >>conftest.$ac_ext <<_ACEOF
  15405. /* end confdefs.h. */
  15406. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15407. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15408. #define $ac_func innocuous_$ac_func
  15409. /* System header to define __stub macros and hopefully few prototypes,
  15410. which can conflict with char $ac_func (); below.
  15411. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15412. <limits.h> exists even on freestanding compilers. */
  15413. #ifdef __STDC__
  15414. # include <limits.h>
  15415. #else
  15416. # include <assert.h>
  15417. #endif
  15418. #undef $ac_func
  15419. /* Override any GCC internal prototype to avoid an error.
  15420. Use char because int might match the return type of a GCC
  15421. builtin and then its argument prototype would still apply. */
  15422. #ifdef __cplusplus
  15423. extern "C"
  15424. #endif
  15425. char $ac_func ();
  15426. /* The GNU C library defines this for functions which it implements
  15427. to always fail with ENOSYS. Some functions are actually named
  15428. something starting with __ and the normal name is an alias. */
  15429. #if defined __stub_$ac_func || defined __stub___$ac_func
  15430. choke me
  15431. #endif
  15432. int
  15433. main ()
  15434. {
  15435. return $ac_func ();
  15436. ;
  15437. return 0;
  15438. }
  15439. _ACEOF
  15440. rm -f conftest.$ac_objext conftest$ac_exeext
  15441. if { (ac_try="$ac_link"
  15442. case "(($ac_try" in
  15443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15444. *) ac_try_echo=$ac_try;;
  15445. esac
  15446. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15447. (eval "$ac_link") 2>conftest.er1
  15448. ac_status=$?
  15449. grep -v '^ *+' conftest.er1 >conftest.err
  15450. rm -f conftest.er1
  15451. cat conftest.err >&5
  15452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15453. (exit $ac_status); } && {
  15454. test -z "$ac_cxx_werror_flag" ||
  15455. test ! -s conftest.err
  15456. } && test -s conftest$ac_exeext &&
  15457. $as_test_x conftest$ac_exeext; then
  15458. eval "$as_ac_var=yes"
  15459. else
  15460. echo "$as_me: failed program was:" >&5
  15461. sed 's/^/| /' conftest.$ac_ext >&5
  15462. eval "$as_ac_var=no"
  15463. fi
  15464. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15465. conftest$ac_exeext conftest.$ac_ext
  15466. fi
  15467. ac_res=`eval echo '${'$as_ac_var'}'`
  15468. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15469. echo "${ECHO_T}$ac_res" >&6; }
  15470. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15471. cat >>confdefs.h <<_ACEOF
  15472. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15473. _ACEOF
  15474. fi
  15475. done
  15476. for ac_func in basename
  15477. do
  15478. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15479. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15480. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15481. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15482. echo $ECHO_N "(cached) $ECHO_C" >&6
  15483. else
  15484. cat >conftest.$ac_ext <<_ACEOF
  15485. /* confdefs.h. */
  15486. _ACEOF
  15487. cat confdefs.h >>conftest.$ac_ext
  15488. cat >>conftest.$ac_ext <<_ACEOF
  15489. /* end confdefs.h. */
  15490. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15491. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15492. #define $ac_func innocuous_$ac_func
  15493. /* System header to define __stub macros and hopefully few prototypes,
  15494. which can conflict with char $ac_func (); below.
  15495. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15496. <limits.h> exists even on freestanding compilers. */
  15497. #ifdef __STDC__
  15498. # include <limits.h>
  15499. #else
  15500. # include <assert.h>
  15501. #endif
  15502. #undef $ac_func
  15503. /* Override any GCC internal prototype to avoid an error.
  15504. Use char because int might match the return type of a GCC
  15505. builtin and then its argument prototype would still apply. */
  15506. #ifdef __cplusplus
  15507. extern "C"
  15508. #endif
  15509. char $ac_func ();
  15510. /* The GNU C library defines this for functions which it implements
  15511. to always fail with ENOSYS. Some functions are actually named
  15512. something starting with __ and the normal name is an alias. */
  15513. #if defined __stub_$ac_func || defined __stub___$ac_func
  15514. choke me
  15515. #endif
  15516. int
  15517. main ()
  15518. {
  15519. return $ac_func ();
  15520. ;
  15521. return 0;
  15522. }
  15523. _ACEOF
  15524. rm -f conftest.$ac_objext conftest$ac_exeext
  15525. if { (ac_try="$ac_link"
  15526. case "(($ac_try" in
  15527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15528. *) ac_try_echo=$ac_try;;
  15529. esac
  15530. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15531. (eval "$ac_link") 2>conftest.er1
  15532. ac_status=$?
  15533. grep -v '^ *+' conftest.er1 >conftest.err
  15534. rm -f conftest.er1
  15535. cat conftest.err >&5
  15536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15537. (exit $ac_status); } && {
  15538. test -z "$ac_cxx_werror_flag" ||
  15539. test ! -s conftest.err
  15540. } && test -s conftest$ac_exeext &&
  15541. $as_test_x conftest$ac_exeext; then
  15542. eval "$as_ac_var=yes"
  15543. else
  15544. echo "$as_me: failed program was:" >&5
  15545. sed 's/^/| /' conftest.$ac_ext >&5
  15546. eval "$as_ac_var=no"
  15547. fi
  15548. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15549. conftest$ac_exeext conftest.$ac_ext
  15550. fi
  15551. ac_res=`eval echo '${'$as_ac_var'}'`
  15552. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15553. echo "${ECHO_T}$ac_res" >&6; }
  15554. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15555. cat >>confdefs.h <<_ACEOF
  15556. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15557. _ACEOF
  15558. if true; then
  15559. HAVE_BASENAME_TRUE=
  15560. HAVE_BASENAME_FALSE='#'
  15561. else
  15562. HAVE_BASENAME_TRUE='#'
  15563. HAVE_BASENAME_FALSE=
  15564. fi
  15565. else
  15566. if false; then
  15567. HAVE_BASENAME_TRUE=
  15568. HAVE_BASENAME_FALSE='#'
  15569. else
  15570. HAVE_BASENAME_TRUE='#'
  15571. HAVE_BASENAME_FALSE=
  15572. fi
  15573. fi
  15574. done
  15575. for ac_func in gai_strerror
  15576. do
  15577. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15578. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15579. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15580. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15581. echo $ECHO_N "(cached) $ECHO_C" >&6
  15582. else
  15583. cat >conftest.$ac_ext <<_ACEOF
  15584. /* confdefs.h. */
  15585. _ACEOF
  15586. cat confdefs.h >>conftest.$ac_ext
  15587. cat >>conftest.$ac_ext <<_ACEOF
  15588. /* end confdefs.h. */
  15589. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15590. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15591. #define $ac_func innocuous_$ac_func
  15592. /* System header to define __stub macros and hopefully few prototypes,
  15593. which can conflict with char $ac_func (); below.
  15594. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15595. <limits.h> exists even on freestanding compilers. */
  15596. #ifdef __STDC__
  15597. # include <limits.h>
  15598. #else
  15599. # include <assert.h>
  15600. #endif
  15601. #undef $ac_func
  15602. /* Override any GCC internal prototype to avoid an error.
  15603. Use char because int might match the return type of a GCC
  15604. builtin and then its argument prototype would still apply. */
  15605. #ifdef __cplusplus
  15606. extern "C"
  15607. #endif
  15608. char $ac_func ();
  15609. /* The GNU C library defines this for functions which it implements
  15610. to always fail with ENOSYS. Some functions are actually named
  15611. something starting with __ and the normal name is an alias. */
  15612. #if defined __stub_$ac_func || defined __stub___$ac_func
  15613. choke me
  15614. #endif
  15615. int
  15616. main ()
  15617. {
  15618. return $ac_func ();
  15619. ;
  15620. return 0;
  15621. }
  15622. _ACEOF
  15623. rm -f conftest.$ac_objext conftest$ac_exeext
  15624. if { (ac_try="$ac_link"
  15625. case "(($ac_try" in
  15626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15627. *) ac_try_echo=$ac_try;;
  15628. esac
  15629. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15630. (eval "$ac_link") 2>conftest.er1
  15631. ac_status=$?
  15632. grep -v '^ *+' conftest.er1 >conftest.err
  15633. rm -f conftest.er1
  15634. cat conftest.err >&5
  15635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15636. (exit $ac_status); } && {
  15637. test -z "$ac_cxx_werror_flag" ||
  15638. test ! -s conftest.err
  15639. } && test -s conftest$ac_exeext &&
  15640. $as_test_x conftest$ac_exeext; then
  15641. eval "$as_ac_var=yes"
  15642. else
  15643. echo "$as_me: failed program was:" >&5
  15644. sed 's/^/| /' conftest.$ac_ext >&5
  15645. eval "$as_ac_var=no"
  15646. fi
  15647. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15648. conftest$ac_exeext conftest.$ac_ext
  15649. fi
  15650. ac_res=`eval echo '${'$as_ac_var'}'`
  15651. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15652. echo "${ECHO_T}$ac_res" >&6; }
  15653. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15654. cat >>confdefs.h <<_ACEOF
  15655. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15656. _ACEOF
  15657. if true; then
  15658. HAVE_GAI_STRERROR_TRUE=
  15659. HAVE_GAI_STRERROR_FALSE='#'
  15660. else
  15661. HAVE_GAI_STRERROR_TRUE='#'
  15662. HAVE_GAI_STRERROR_FALSE=
  15663. fi
  15664. else
  15665. if false; then
  15666. HAVE_GAI_STRERROR_TRUE=
  15667. HAVE_GAI_STRERROR_FALSE='#'
  15668. else
  15669. HAVE_GAI_STRERROR_TRUE='#'
  15670. HAVE_GAI_STRERROR_FALSE=
  15671. fi
  15672. fi
  15673. done
  15674. for ac_func in getaddrinfo
  15675. do
  15676. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15677. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15678. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15679. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15680. echo $ECHO_N "(cached) $ECHO_C" >&6
  15681. else
  15682. cat >conftest.$ac_ext <<_ACEOF
  15683. /* confdefs.h. */
  15684. _ACEOF
  15685. cat confdefs.h >>conftest.$ac_ext
  15686. cat >>conftest.$ac_ext <<_ACEOF
  15687. /* end confdefs.h. */
  15688. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15689. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15690. #define $ac_func innocuous_$ac_func
  15691. /* System header to define __stub macros and hopefully few prototypes,
  15692. which can conflict with char $ac_func (); below.
  15693. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15694. <limits.h> exists even on freestanding compilers. */
  15695. #ifdef __STDC__
  15696. # include <limits.h>
  15697. #else
  15698. # include <assert.h>
  15699. #endif
  15700. #undef $ac_func
  15701. /* Override any GCC internal prototype to avoid an error.
  15702. Use char because int might match the return type of a GCC
  15703. builtin and then its argument prototype would still apply. */
  15704. #ifdef __cplusplus
  15705. extern "C"
  15706. #endif
  15707. char $ac_func ();
  15708. /* The GNU C library defines this for functions which it implements
  15709. to always fail with ENOSYS. Some functions are actually named
  15710. something starting with __ and the normal name is an alias. */
  15711. #if defined __stub_$ac_func || defined __stub___$ac_func
  15712. choke me
  15713. #endif
  15714. int
  15715. main ()
  15716. {
  15717. return $ac_func ();
  15718. ;
  15719. return 0;
  15720. }
  15721. _ACEOF
  15722. rm -f conftest.$ac_objext conftest$ac_exeext
  15723. if { (ac_try="$ac_link"
  15724. case "(($ac_try" in
  15725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15726. *) ac_try_echo=$ac_try;;
  15727. esac
  15728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15729. (eval "$ac_link") 2>conftest.er1
  15730. ac_status=$?
  15731. grep -v '^ *+' conftest.er1 >conftest.err
  15732. rm -f conftest.er1
  15733. cat conftest.err >&5
  15734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15735. (exit $ac_status); } && {
  15736. test -z "$ac_cxx_werror_flag" ||
  15737. test ! -s conftest.err
  15738. } && test -s conftest$ac_exeext &&
  15739. $as_test_x conftest$ac_exeext; then
  15740. eval "$as_ac_var=yes"
  15741. else
  15742. echo "$as_me: failed program was:" >&5
  15743. sed 's/^/| /' conftest.$ac_ext >&5
  15744. eval "$as_ac_var=no"
  15745. fi
  15746. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15747. conftest$ac_exeext conftest.$ac_ext
  15748. fi
  15749. ac_res=`eval echo '${'$as_ac_var'}'`
  15750. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15751. echo "${ECHO_T}$ac_res" >&6; }
  15752. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15753. cat >>confdefs.h <<_ACEOF
  15754. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15755. _ACEOF
  15756. if true; then
  15757. HAVE_GETADDRINFO_TRUE=
  15758. HAVE_GETADDRINFO_FALSE='#'
  15759. else
  15760. HAVE_GETADDRINFO_TRUE='#'
  15761. HAVE_GETADDRINFO_FALSE=
  15762. fi
  15763. else
  15764. if false; then
  15765. HAVE_GETADDRINFO_TRUE=
  15766. HAVE_GETADDRINFO_FALSE='#'
  15767. else
  15768. HAVE_GETADDRINFO_TRUE='#'
  15769. HAVE_GETADDRINFO_FALSE=
  15770. fi
  15771. fi
  15772. done
  15773. for ac_func in gettimeofday
  15774. do
  15775. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15776. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15777. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15778. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15779. echo $ECHO_N "(cached) $ECHO_C" >&6
  15780. else
  15781. cat >conftest.$ac_ext <<_ACEOF
  15782. /* confdefs.h. */
  15783. _ACEOF
  15784. cat confdefs.h >>conftest.$ac_ext
  15785. cat >>conftest.$ac_ext <<_ACEOF
  15786. /* end confdefs.h. */
  15787. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15788. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15789. #define $ac_func innocuous_$ac_func
  15790. /* System header to define __stub macros and hopefully few prototypes,
  15791. which can conflict with char $ac_func (); below.
  15792. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15793. <limits.h> exists even on freestanding compilers. */
  15794. #ifdef __STDC__
  15795. # include <limits.h>
  15796. #else
  15797. # include <assert.h>
  15798. #endif
  15799. #undef $ac_func
  15800. /* Override any GCC internal prototype to avoid an error.
  15801. Use char because int might match the return type of a GCC
  15802. builtin and then its argument prototype would still apply. */
  15803. #ifdef __cplusplus
  15804. extern "C"
  15805. #endif
  15806. char $ac_func ();
  15807. /* The GNU C library defines this for functions which it implements
  15808. to always fail with ENOSYS. Some functions are actually named
  15809. something starting with __ and the normal name is an alias. */
  15810. #if defined __stub_$ac_func || defined __stub___$ac_func
  15811. choke me
  15812. #endif
  15813. int
  15814. main ()
  15815. {
  15816. return $ac_func ();
  15817. ;
  15818. return 0;
  15819. }
  15820. _ACEOF
  15821. rm -f conftest.$ac_objext conftest$ac_exeext
  15822. if { (ac_try="$ac_link"
  15823. case "(($ac_try" in
  15824. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15825. *) ac_try_echo=$ac_try;;
  15826. esac
  15827. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15828. (eval "$ac_link") 2>conftest.er1
  15829. ac_status=$?
  15830. grep -v '^ *+' conftest.er1 >conftest.err
  15831. rm -f conftest.er1
  15832. cat conftest.err >&5
  15833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15834. (exit $ac_status); } && {
  15835. test -z "$ac_cxx_werror_flag" ||
  15836. test ! -s conftest.err
  15837. } && test -s conftest$ac_exeext &&
  15838. $as_test_x conftest$ac_exeext; then
  15839. eval "$as_ac_var=yes"
  15840. else
  15841. echo "$as_me: failed program was:" >&5
  15842. sed 's/^/| /' conftest.$ac_ext >&5
  15843. eval "$as_ac_var=no"
  15844. fi
  15845. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15846. conftest$ac_exeext conftest.$ac_ext
  15847. fi
  15848. ac_res=`eval echo '${'$as_ac_var'}'`
  15849. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15850. echo "${ECHO_T}$ac_res" >&6; }
  15851. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15852. cat >>confdefs.h <<_ACEOF
  15853. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15854. _ACEOF
  15855. if true; then
  15856. HAVE_GETTIMEOFDAY_TRUE=
  15857. HAVE_GETTIMEOFDAY_FALSE='#'
  15858. else
  15859. HAVE_GETTIMEOFDAY_TRUE='#'
  15860. HAVE_GETTIMEOFDAY_FALSE=
  15861. fi
  15862. else
  15863. if false; then
  15864. HAVE_GETTIMEOFDAY_TRUE=
  15865. HAVE_GETTIMEOFDAY_FALSE='#'
  15866. else
  15867. HAVE_GETTIMEOFDAY_TRUE='#'
  15868. HAVE_GETTIMEOFDAY_FALSE=
  15869. fi
  15870. fi
  15871. done
  15872. for ac_func in inet_aton
  15873. do
  15874. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15875. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15876. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15877. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15878. echo $ECHO_N "(cached) $ECHO_C" >&6
  15879. else
  15880. cat >conftest.$ac_ext <<_ACEOF
  15881. /* confdefs.h. */
  15882. _ACEOF
  15883. cat confdefs.h >>conftest.$ac_ext
  15884. cat >>conftest.$ac_ext <<_ACEOF
  15885. /* end confdefs.h. */
  15886. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15887. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15888. #define $ac_func innocuous_$ac_func
  15889. /* System header to define __stub macros and hopefully few prototypes,
  15890. which can conflict with char $ac_func (); below.
  15891. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15892. <limits.h> exists even on freestanding compilers. */
  15893. #ifdef __STDC__
  15894. # include <limits.h>
  15895. #else
  15896. # include <assert.h>
  15897. #endif
  15898. #undef $ac_func
  15899. /* Override any GCC internal prototype to avoid an error.
  15900. Use char because int might match the return type of a GCC
  15901. builtin and then its argument prototype would still apply. */
  15902. #ifdef __cplusplus
  15903. extern "C"
  15904. #endif
  15905. char $ac_func ();
  15906. /* The GNU C library defines this for functions which it implements
  15907. to always fail with ENOSYS. Some functions are actually named
  15908. something starting with __ and the normal name is an alias. */
  15909. #if defined __stub_$ac_func || defined __stub___$ac_func
  15910. choke me
  15911. #endif
  15912. int
  15913. main ()
  15914. {
  15915. return $ac_func ();
  15916. ;
  15917. return 0;
  15918. }
  15919. _ACEOF
  15920. rm -f conftest.$ac_objext conftest$ac_exeext
  15921. if { (ac_try="$ac_link"
  15922. case "(($ac_try" in
  15923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15924. *) ac_try_echo=$ac_try;;
  15925. esac
  15926. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  15927. (eval "$ac_link") 2>conftest.er1
  15928. ac_status=$?
  15929. grep -v '^ *+' conftest.er1 >conftest.err
  15930. rm -f conftest.er1
  15931. cat conftest.err >&5
  15932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15933. (exit $ac_status); } && {
  15934. test -z "$ac_cxx_werror_flag" ||
  15935. test ! -s conftest.err
  15936. } && test -s conftest$ac_exeext &&
  15937. $as_test_x conftest$ac_exeext; then
  15938. eval "$as_ac_var=yes"
  15939. else
  15940. echo "$as_me: failed program was:" >&5
  15941. sed 's/^/| /' conftest.$ac_ext >&5
  15942. eval "$as_ac_var=no"
  15943. fi
  15944. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15945. conftest$ac_exeext conftest.$ac_ext
  15946. fi
  15947. ac_res=`eval echo '${'$as_ac_var'}'`
  15948. { echo "$as_me:$LINENO: result: $ac_res" >&5
  15949. echo "${ECHO_T}$ac_res" >&6; }
  15950. if test `eval echo '${'$as_ac_var'}'` = yes; then
  15951. cat >>confdefs.h <<_ACEOF
  15952. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15953. _ACEOF
  15954. if true; then
  15955. HAVE_INET_ATON_TRUE=
  15956. HAVE_INET_ATON_FALSE='#'
  15957. else
  15958. HAVE_INET_ATON_TRUE='#'
  15959. HAVE_INET_ATON_FALSE=
  15960. fi
  15961. else
  15962. if false; then
  15963. HAVE_INET_ATON_TRUE=
  15964. HAVE_INET_ATON_FALSE='#'
  15965. else
  15966. HAVE_INET_ATON_TRUE='#'
  15967. HAVE_INET_ATON_FALSE=
  15968. fi
  15969. fi
  15970. done
  15971. for ac_func in localtime_r
  15972. do
  15973. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15974. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  15975. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  15976. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15977. echo $ECHO_N "(cached) $ECHO_C" >&6
  15978. else
  15979. cat >conftest.$ac_ext <<_ACEOF
  15980. /* confdefs.h. */
  15981. _ACEOF
  15982. cat confdefs.h >>conftest.$ac_ext
  15983. cat >>conftest.$ac_ext <<_ACEOF
  15984. /* end confdefs.h. */
  15985. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15986. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15987. #define $ac_func innocuous_$ac_func
  15988. /* System header to define __stub macros and hopefully few prototypes,
  15989. which can conflict with char $ac_func (); below.
  15990. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15991. <limits.h> exists even on freestanding compilers. */
  15992. #ifdef __STDC__
  15993. # include <limits.h>
  15994. #else
  15995. # include <assert.h>
  15996. #endif
  15997. #undef $ac_func
  15998. /* Override any GCC internal prototype to avoid an error.
  15999. Use char because int might match the return type of a GCC
  16000. builtin and then its argument prototype would still apply. */
  16001. #ifdef __cplusplus
  16002. extern "C"
  16003. #endif
  16004. char $ac_func ();
  16005. /* The GNU C library defines this for functions which it implements
  16006. to always fail with ENOSYS. Some functions are actually named
  16007. something starting with __ and the normal name is an alias. */
  16008. #if defined __stub_$ac_func || defined __stub___$ac_func
  16009. choke me
  16010. #endif
  16011. int
  16012. main ()
  16013. {
  16014. return $ac_func ();
  16015. ;
  16016. return 0;
  16017. }
  16018. _ACEOF
  16019. rm -f conftest.$ac_objext conftest$ac_exeext
  16020. if { (ac_try="$ac_link"
  16021. case "(($ac_try" in
  16022. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16023. *) ac_try_echo=$ac_try;;
  16024. esac
  16025. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16026. (eval "$ac_link") 2>conftest.er1
  16027. ac_status=$?
  16028. grep -v '^ *+' conftest.er1 >conftest.err
  16029. rm -f conftest.er1
  16030. cat conftest.err >&5
  16031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16032. (exit $ac_status); } && {
  16033. test -z "$ac_cxx_werror_flag" ||
  16034. test ! -s conftest.err
  16035. } && test -s conftest$ac_exeext &&
  16036. $as_test_x conftest$ac_exeext; then
  16037. eval "$as_ac_var=yes"
  16038. else
  16039. echo "$as_me: failed program was:" >&5
  16040. sed 's/^/| /' conftest.$ac_ext >&5
  16041. eval "$as_ac_var=no"
  16042. fi
  16043. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16044. conftest$ac_exeext conftest.$ac_ext
  16045. fi
  16046. ac_res=`eval echo '${'$as_ac_var'}'`
  16047. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16048. echo "${ECHO_T}$ac_res" >&6; }
  16049. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16050. cat >>confdefs.h <<_ACEOF
  16051. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16052. _ACEOF
  16053. if true; then
  16054. HAVE_LOCALTIME_R_TRUE=
  16055. HAVE_LOCALTIME_R_FALSE='#'
  16056. else
  16057. HAVE_LOCALTIME_R_TRUE='#'
  16058. HAVE_LOCALTIME_R_FALSE=
  16059. fi
  16060. else
  16061. if false; then
  16062. HAVE_LOCALTIME_R_TRUE=
  16063. HAVE_LOCALTIME_R_FALSE='#'
  16064. else
  16065. HAVE_LOCALTIME_R_TRUE='#'
  16066. HAVE_LOCALTIME_R_FALSE=
  16067. fi
  16068. fi
  16069. done
  16070. for ac_func in strptime
  16071. do
  16072. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16073. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16074. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16075. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16076. echo $ECHO_N "(cached) $ECHO_C" >&6
  16077. else
  16078. cat >conftest.$ac_ext <<_ACEOF
  16079. /* confdefs.h. */
  16080. _ACEOF
  16081. cat confdefs.h >>conftest.$ac_ext
  16082. cat >>conftest.$ac_ext <<_ACEOF
  16083. /* end confdefs.h. */
  16084. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16085. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16086. #define $ac_func innocuous_$ac_func
  16087. /* System header to define __stub macros and hopefully few prototypes,
  16088. which can conflict with char $ac_func (); below.
  16089. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16090. <limits.h> exists even on freestanding compilers. */
  16091. #ifdef __STDC__
  16092. # include <limits.h>
  16093. #else
  16094. # include <assert.h>
  16095. #endif
  16096. #undef $ac_func
  16097. /* Override any GCC internal prototype to avoid an error.
  16098. Use char because int might match the return type of a GCC
  16099. builtin and then its argument prototype would still apply. */
  16100. #ifdef __cplusplus
  16101. extern "C"
  16102. #endif
  16103. char $ac_func ();
  16104. /* The GNU C library defines this for functions which it implements
  16105. to always fail with ENOSYS. Some functions are actually named
  16106. something starting with __ and the normal name is an alias. */
  16107. #if defined __stub_$ac_func || defined __stub___$ac_func
  16108. choke me
  16109. #endif
  16110. int
  16111. main ()
  16112. {
  16113. return $ac_func ();
  16114. ;
  16115. return 0;
  16116. }
  16117. _ACEOF
  16118. rm -f conftest.$ac_objext conftest$ac_exeext
  16119. if { (ac_try="$ac_link"
  16120. case "(($ac_try" in
  16121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16122. *) ac_try_echo=$ac_try;;
  16123. esac
  16124. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16125. (eval "$ac_link") 2>conftest.er1
  16126. ac_status=$?
  16127. grep -v '^ *+' conftest.er1 >conftest.err
  16128. rm -f conftest.er1
  16129. cat conftest.err >&5
  16130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16131. (exit $ac_status); } && {
  16132. test -z "$ac_cxx_werror_flag" ||
  16133. test ! -s conftest.err
  16134. } && test -s conftest$ac_exeext &&
  16135. $as_test_x conftest$ac_exeext; then
  16136. eval "$as_ac_var=yes"
  16137. else
  16138. echo "$as_me: failed program was:" >&5
  16139. sed 's/^/| /' conftest.$ac_ext >&5
  16140. eval "$as_ac_var=no"
  16141. fi
  16142. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16143. conftest$ac_exeext conftest.$ac_ext
  16144. fi
  16145. ac_res=`eval echo '${'$as_ac_var'}'`
  16146. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16147. echo "${ECHO_T}$ac_res" >&6; }
  16148. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16149. cat >>confdefs.h <<_ACEOF
  16150. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16151. _ACEOF
  16152. if true; then
  16153. HAVE_STRPTIME_TRUE=
  16154. HAVE_STRPTIME_FALSE='#'
  16155. else
  16156. HAVE_STRPTIME_TRUE='#'
  16157. HAVE_STRPTIME_FALSE=
  16158. fi
  16159. else
  16160. if false; then
  16161. HAVE_STRPTIME_TRUE=
  16162. HAVE_STRPTIME_FALSE='#'
  16163. else
  16164. HAVE_STRPTIME_TRUE='#'
  16165. HAVE_STRPTIME_FALSE=
  16166. fi
  16167. fi
  16168. done
  16169. for ac_func in timegm
  16170. do
  16171. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16172. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  16173. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  16174. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16175. echo $ECHO_N "(cached) $ECHO_C" >&6
  16176. else
  16177. cat >conftest.$ac_ext <<_ACEOF
  16178. /* confdefs.h. */
  16179. _ACEOF
  16180. cat confdefs.h >>conftest.$ac_ext
  16181. cat >>conftest.$ac_ext <<_ACEOF
  16182. /* end confdefs.h. */
  16183. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16184. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16185. #define $ac_func innocuous_$ac_func
  16186. /* System header to define __stub macros and hopefully few prototypes,
  16187. which can conflict with char $ac_func (); below.
  16188. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16189. <limits.h> exists even on freestanding compilers. */
  16190. #ifdef __STDC__
  16191. # include <limits.h>
  16192. #else
  16193. # include <assert.h>
  16194. #endif
  16195. #undef $ac_func
  16196. /* Override any GCC internal prototype to avoid an error.
  16197. Use char because int might match the return type of a GCC
  16198. builtin and then its argument prototype would still apply. */
  16199. #ifdef __cplusplus
  16200. extern "C"
  16201. #endif
  16202. char $ac_func ();
  16203. /* The GNU C library defines this for functions which it implements
  16204. to always fail with ENOSYS. Some functions are actually named
  16205. something starting with __ and the normal name is an alias. */
  16206. #if defined __stub_$ac_func || defined __stub___$ac_func
  16207. choke me
  16208. #endif
  16209. int
  16210. main ()
  16211. {
  16212. return $ac_func ();
  16213. ;
  16214. return 0;
  16215. }
  16216. _ACEOF
  16217. rm -f conftest.$ac_objext conftest$ac_exeext
  16218. if { (ac_try="$ac_link"
  16219. case "(($ac_try" in
  16220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16221. *) ac_try_echo=$ac_try;;
  16222. esac
  16223. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  16224. (eval "$ac_link") 2>conftest.er1
  16225. ac_status=$?
  16226. grep -v '^ *+' conftest.er1 >conftest.err
  16227. rm -f conftest.er1
  16228. cat conftest.err >&5
  16229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16230. (exit $ac_status); } && {
  16231. test -z "$ac_cxx_werror_flag" ||
  16232. test ! -s conftest.err
  16233. } && test -s conftest$ac_exeext &&
  16234. $as_test_x conftest$ac_exeext; then
  16235. eval "$as_ac_var=yes"
  16236. else
  16237. echo "$as_me: failed program was:" >&5
  16238. sed 's/^/| /' conftest.$ac_ext >&5
  16239. eval "$as_ac_var=no"
  16240. fi
  16241. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16242. conftest$ac_exeext conftest.$ac_ext
  16243. fi
  16244. ac_res=`eval echo '${'$as_ac_var'}'`
  16245. { echo "$as_me:$LINENO: result: $ac_res" >&5
  16246. echo "${ECHO_T}$ac_res" >&6; }
  16247. if test `eval echo '${'$as_ac_var'}'` = yes; then
  16248. cat >>confdefs.h <<_ACEOF
  16249. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16250. _ACEOF
  16251. if true; then
  16252. HAVE_TIMEGM_TRUE=
  16253. HAVE_TIMEGM_FALSE='#'
  16254. else
  16255. HAVE_TIMEGM_TRUE='#'
  16256. HAVE_TIMEGM_FALSE=
  16257. fi
  16258. else
  16259. if false; then
  16260. HAVE_TIMEGM_TRUE=
  16261. HAVE_TIMEGM_FALSE='#'
  16262. else
  16263. HAVE_TIMEGM_TRUE='#'
  16264. HAVE_TIMEGM_FALSE=
  16265. fi
  16266. fi
  16267. done
  16268. case "$target" in
  16269. *mingw*)
  16270. if true; then
  16271. HAVE_GETADDRINFO_TRUE=
  16272. HAVE_GETADDRINFO_FALSE='#'
  16273. else
  16274. HAVE_GETADDRINFO_TRUE='#'
  16275. HAVE_GETADDRINFO_FALSE=
  16276. fi
  16277. if false; then
  16278. HAVE_GAI_STRERROR_TRUE=
  16279. HAVE_GAI_STRERROR_FALSE='#'
  16280. else
  16281. HAVE_GAI_STRERROR_TRUE='#'
  16282. HAVE_GAI_STRERROR_FALSE=
  16283. fi
  16284. ;;
  16285. esac
  16286. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile doc/Makefile"
  16287. cat >confcache <<\_ACEOF
  16288. # This file is a shell script that caches the results of configure
  16289. # tests run on this system so they can be shared between configure
  16290. # scripts and configure runs, see configure's option --config-cache.
  16291. # It is not useful on other systems. If it contains results you don't
  16292. # want to keep, you may remove or edit it.
  16293. #
  16294. # config.status only pays attention to the cache file if you give it
  16295. # the --recheck option to rerun configure.
  16296. #
  16297. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  16298. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  16299. # following values.
  16300. _ACEOF
  16301. # The following way of writing the cache mishandles newlines in values,
  16302. # but we know of no workaround that is simple, portable, and efficient.
  16303. # So, we kill variables containing newlines.
  16304. # Ultrix sh set writes to stderr and can't be redirected directly,
  16305. # and sets the high bit in the cache file unless we assign to the vars.
  16306. (
  16307. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  16308. eval ac_val=\$$ac_var
  16309. case $ac_val in #(
  16310. *${as_nl}*)
  16311. case $ac_var in #(
  16312. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  16313. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  16314. esac
  16315. case $ac_var in #(
  16316. _ | IFS | as_nl) ;; #(
  16317. *) $as_unset $ac_var ;;
  16318. esac ;;
  16319. esac
  16320. done
  16321. (set) 2>&1 |
  16322. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  16323. *${as_nl}ac_space=\ *)
  16324. # `set' does not quote correctly, so add quotes (double-quote
  16325. # substitution turns \\\\ into \\, and sed turns \\ into \).
  16326. sed -n \
  16327. "s/'/'\\\\''/g;
  16328. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  16329. ;; #(
  16330. *)
  16331. # `set' quotes correctly as required by POSIX, so do not add quotes.
  16332. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  16333. ;;
  16334. esac |
  16335. sort
  16336. ) |
  16337. sed '
  16338. /^ac_cv_env_/b end
  16339. t clear
  16340. :clear
  16341. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  16342. t end
  16343. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  16344. :end' >>confcache
  16345. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  16346. if test -w "$cache_file"; then
  16347. test "x$cache_file" != "x/dev/null" &&
  16348. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  16349. echo "$as_me: updating cache $cache_file" >&6;}
  16350. cat confcache >$cache_file
  16351. else
  16352. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  16353. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  16354. fi
  16355. fi
  16356. rm -f confcache
  16357. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  16358. # Let make expand exec_prefix.
  16359. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  16360. DEFS=-DHAVE_CONFIG_H
  16361. ac_libobjs=
  16362. ac_ltlibobjs=
  16363. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  16364. # 1. Remove the extension, and $U if already installed.
  16365. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  16366. ac_i=`echo "$ac_i" | sed "$ac_script"`
  16367. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  16368. # will be set to the directory where LIBOBJS objects are built.
  16369. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  16370. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  16371. done
  16372. LIBOBJS=$ac_libobjs
  16373. LTLIBOBJS=$ac_ltlibobjs
  16374. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  16375. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  16376. Usually this means the macro was only invoked conditionally." >&5
  16377. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  16378. Usually this means the macro was only invoked conditionally." >&2;}
  16379. { (exit 1); exit 1; }; }
  16380. fi
  16381. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  16382. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  16383. Usually this means the macro was only invoked conditionally." >&5
  16384. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  16385. Usually this means the macro was only invoked conditionally." >&2;}
  16386. { (exit 1); exit 1; }; }
  16387. fi
  16388. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  16389. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  16390. Usually this means the macro was only invoked conditionally." >&5
  16391. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  16392. Usually this means the macro was only invoked conditionally." >&2;}
  16393. { (exit 1); exit 1; }; }
  16394. fi
  16395. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  16396. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  16397. Usually this means the macro was only invoked conditionally." >&5
  16398. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  16399. Usually this means the macro was only invoked conditionally." >&2;}
  16400. { (exit 1); exit 1; }; }
  16401. fi
  16402. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  16403. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  16404. Usually this means the macro was only invoked conditionally." >&5
  16405. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  16406. Usually this means the macro was only invoked conditionally." >&2;}
  16407. { (exit 1); exit 1; }; }
  16408. fi
  16409. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  16410. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  16411. Usually this means the macro was only invoked conditionally." >&5
  16412. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  16413. Usually this means the macro was only invoked conditionally." >&2;}
  16414. { (exit 1); exit 1; }; }
  16415. fi
  16416. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  16417. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  16418. Usually this means the macro was only invoked conditionally." >&5
  16419. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  16420. Usually this means the macro was only invoked conditionally." >&2;}
  16421. { (exit 1); exit 1; }; }
  16422. fi
  16423. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  16424. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  16425. Usually this means the macro was only invoked conditionally." >&5
  16426. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  16427. Usually this means the macro was only invoked conditionally." >&2;}
  16428. { (exit 1); exit 1; }; }
  16429. fi
  16430. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  16431. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  16432. Usually this means the macro was only invoked conditionally." >&5
  16433. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  16434. Usually this means the macro was only invoked conditionally." >&2;}
  16435. { (exit 1); exit 1; }; }
  16436. fi
  16437. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  16438. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  16439. Usually this means the macro was only invoked conditionally." >&5
  16440. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  16441. Usually this means the macro was only invoked conditionally." >&2;}
  16442. { (exit 1); exit 1; }; }
  16443. fi
  16444. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  16445. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  16446. Usually this means the macro was only invoked conditionally." >&5
  16447. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  16448. Usually this means the macro was only invoked conditionally." >&2;}
  16449. { (exit 1); exit 1; }; }
  16450. fi
  16451. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  16452. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  16453. Usually this means the macro was only invoked conditionally." >&5
  16454. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  16455. Usually this means the macro was only invoked conditionally." >&2;}
  16456. { (exit 1); exit 1; }; }
  16457. fi
  16458. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  16459. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  16460. Usually this means the macro was only invoked conditionally." >&5
  16461. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  16462. Usually this means the macro was only invoked conditionally." >&2;}
  16463. { (exit 1); exit 1; }; }
  16464. fi
  16465. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  16466. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16467. Usually this means the macro was only invoked conditionally." >&5
  16468. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16469. Usually this means the macro was only invoked conditionally." >&2;}
  16470. { (exit 1); exit 1; }; }
  16471. fi
  16472. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  16473. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16474. Usually this means the macro was only invoked conditionally." >&5
  16475. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16476. Usually this means the macro was only invoked conditionally." >&2;}
  16477. { (exit 1); exit 1; }; }
  16478. fi
  16479. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  16480. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16481. Usually this means the macro was only invoked conditionally." >&5
  16482. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16483. Usually this means the macro was only invoked conditionally." >&2;}
  16484. { (exit 1); exit 1; }; }
  16485. fi
  16486. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  16487. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16488. Usually this means the macro was only invoked conditionally." >&5
  16489. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16490. Usually this means the macro was only invoked conditionally." >&2;}
  16491. { (exit 1); exit 1; }; }
  16492. fi
  16493. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  16494. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  16495. Usually this means the macro was only invoked conditionally." >&5
  16496. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  16497. Usually this means the macro was only invoked conditionally." >&2;}
  16498. { (exit 1); exit 1; }; }
  16499. fi
  16500. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  16501. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  16502. Usually this means the macro was only invoked conditionally." >&5
  16503. echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  16504. Usually this means the macro was only invoked conditionally." >&2;}
  16505. { (exit 1); exit 1; }; }
  16506. fi
  16507. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  16508. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  16509. Usually this means the macro was only invoked conditionally." >&5
  16510. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  16511. Usually this means the macro was only invoked conditionally." >&2;}
  16512. { (exit 1); exit 1; }; }
  16513. fi
  16514. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  16515. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  16516. Usually this means the macro was only invoked conditionally." >&5
  16517. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  16518. Usually this means the macro was only invoked conditionally." >&2;}
  16519. { (exit 1); exit 1; }; }
  16520. fi
  16521. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  16522. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  16523. Usually this means the macro was only invoked conditionally." >&5
  16524. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  16525. Usually this means the macro was only invoked conditionally." >&2;}
  16526. { (exit 1); exit 1; }; }
  16527. fi
  16528. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  16529. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  16530. Usually this means the macro was only invoked conditionally." >&5
  16531. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  16532. Usually this means the macro was only invoked conditionally." >&2;}
  16533. { (exit 1); exit 1; }; }
  16534. fi
  16535. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  16536. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  16537. Usually this means the macro was only invoked conditionally." >&5
  16538. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  16539. Usually this means the macro was only invoked conditionally." >&2;}
  16540. { (exit 1); exit 1; }; }
  16541. fi
  16542. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  16543. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  16544. Usually this means the macro was only invoked conditionally." >&5
  16545. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  16546. Usually this means the macro was only invoked conditionally." >&2;}
  16547. { (exit 1); exit 1; }; }
  16548. fi
  16549. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  16550. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  16551. Usually this means the macro was only invoked conditionally." >&5
  16552. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  16553. Usually this means the macro was only invoked conditionally." >&2;}
  16554. { (exit 1); exit 1; }; }
  16555. fi
  16556. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  16557. { { echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  16558. Usually this means the macro was only invoked conditionally." >&5
  16559. echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  16560. Usually this means the macro was only invoked conditionally." >&2;}
  16561. { (exit 1); exit 1; }; }
  16562. fi
  16563. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  16564. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16565. Usually this means the macro was only invoked conditionally." >&5
  16566. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  16567. Usually this means the macro was only invoked conditionally." >&2;}
  16568. { (exit 1); exit 1; }; }
  16569. fi
  16570. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  16571. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16572. Usually this means the macro was only invoked conditionally." >&5
  16573. echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  16574. Usually this means the macro was only invoked conditionally." >&2;}
  16575. { (exit 1); exit 1; }; }
  16576. fi
  16577. : ${CONFIG_STATUS=./config.status}
  16578. ac_clean_files_save=$ac_clean_files
  16579. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  16580. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  16581. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  16582. cat >$CONFIG_STATUS <<_ACEOF
  16583. #! $SHELL
  16584. # Generated by $as_me.
  16585. # Run this file to recreate the current configuration.
  16586. # Compiler output produced by configure, useful for debugging
  16587. # configure, is in config.log if it exists.
  16588. debug=false
  16589. ac_cs_recheck=false
  16590. ac_cs_silent=false
  16591. SHELL=\${CONFIG_SHELL-$SHELL}
  16592. _ACEOF
  16593. cat >>$CONFIG_STATUS <<\_ACEOF
  16594. ## --------------------- ##
  16595. ## M4sh Initialization. ##
  16596. ## --------------------- ##
  16597. # Be more Bourne compatible
  16598. DUALCASE=1; export DUALCASE # for MKS sh
  16599. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16600. emulate sh
  16601. NULLCMD=:
  16602. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16603. # is contrary to our usage. Disable this feature.
  16604. alias -g '${1+"$@"}'='"$@"'
  16605. setopt NO_GLOB_SUBST
  16606. else
  16607. case `(set -o) 2>/dev/null` in
  16608. *posix*) set -o posix ;;
  16609. esac
  16610. fi
  16611. # PATH needs CR
  16612. # Avoid depending upon Character Ranges.
  16613. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16614. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16615. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  16616. as_cr_digits='0123456789'
  16617. as_cr_alnum=$as_cr_Letters$as_cr_digits
  16618. # The user is always right.
  16619. if test "${PATH_SEPARATOR+set}" != set; then
  16620. echo "#! /bin/sh" >conf$$.sh
  16621. echo "exit 0" >>conf$$.sh
  16622. chmod +x conf$$.sh
  16623. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  16624. PATH_SEPARATOR=';'
  16625. else
  16626. PATH_SEPARATOR=:
  16627. fi
  16628. rm -f conf$$.sh
  16629. fi
  16630. # Support unset when possible.
  16631. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  16632. as_unset=unset
  16633. else
  16634. as_unset=false
  16635. fi
  16636. # IFS
  16637. # We need space, tab and new line, in precisely that order. Quoting is
  16638. # there to prevent editors from complaining about space-tab.
  16639. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  16640. # splitting by setting IFS to empty value.)
  16641. as_nl='
  16642. '
  16643. IFS=" "" $as_nl"
  16644. # Find who we are. Look in the path if we contain no directory separator.
  16645. case $0 in
  16646. *[\\/]* ) as_myself=$0 ;;
  16647. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16648. for as_dir in $PATH
  16649. do
  16650. IFS=$as_save_IFS
  16651. test -z "$as_dir" && as_dir=.
  16652. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16653. done
  16654. IFS=$as_save_IFS
  16655. ;;
  16656. esac
  16657. # We did not find ourselves, most probably we were run as `sh COMMAND'
  16658. # in which case we are not to be found in the path.
  16659. if test "x$as_myself" = x; then
  16660. as_myself=$0
  16661. fi
  16662. if test ! -f "$as_myself"; then
  16663. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  16664. { (exit 1); exit 1; }
  16665. fi
  16666. # Work around bugs in pre-3.0 UWIN ksh.
  16667. for as_var in ENV MAIL MAILPATH
  16668. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  16669. done
  16670. PS1='$ '
  16671. PS2='> '
  16672. PS4='+ '
  16673. # NLS nuisances.
  16674. for as_var in \
  16675. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  16676. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  16677. LC_TELEPHONE LC_TIME
  16678. do
  16679. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  16680. eval $as_var=C; export $as_var
  16681. else
  16682. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  16683. fi
  16684. done
  16685. # Required to use basename.
  16686. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16687. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16688. as_expr=expr
  16689. else
  16690. as_expr=false
  16691. fi
  16692. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16693. as_basename=basename
  16694. else
  16695. as_basename=false
  16696. fi
  16697. # Name of the executable.
  16698. as_me=`$as_basename -- "$0" ||
  16699. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16700. X"$0" : 'X\(//\)$' \| \
  16701. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16702. echo X/"$0" |
  16703. sed '/^.*\/\([^/][^/]*\)\/*$/{
  16704. s//\1/
  16705. q
  16706. }
  16707. /^X\/\(\/\/\)$/{
  16708. s//\1/
  16709. q
  16710. }
  16711. /^X\/\(\/\).*/{
  16712. s//\1/
  16713. q
  16714. }
  16715. s/.*/./; q'`
  16716. # CDPATH.
  16717. $as_unset CDPATH
  16718. as_lineno_1=$LINENO
  16719. as_lineno_2=$LINENO
  16720. test "x$as_lineno_1" != "x$as_lineno_2" &&
  16721. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  16722. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  16723. # uniformly replaced by the line number. The first 'sed' inserts a
  16724. # line-number line after each line using $LINENO; the second 'sed'
  16725. # does the real work. The second script uses 'N' to pair each
  16726. # line-number line with the line containing $LINENO, and appends
  16727. # trailing '-' during substitution so that $LINENO is not a special
  16728. # case at line end.
  16729. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  16730. # scripts with optimization help from Paolo Bonzini. Blame Lee
  16731. # E. McMahon (1931-1989) for sed's syntax. :-)
  16732. sed -n '
  16733. p
  16734. /[$]LINENO/=
  16735. ' <$as_myself |
  16736. sed '
  16737. s/[$]LINENO.*/&-/
  16738. t lineno
  16739. b
  16740. :lineno
  16741. N
  16742. :loop
  16743. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  16744. t loop
  16745. s/-\n.*//
  16746. ' >$as_me.lineno &&
  16747. chmod +x "$as_me.lineno" ||
  16748. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  16749. { (exit 1); exit 1; }; }
  16750. # Don't try to exec as it changes $[0], causing all sort of problems
  16751. # (the dirname of $[0] is not the place where we might find the
  16752. # original and so on. Autoconf is especially sensitive to this).
  16753. . "./$as_me.lineno"
  16754. # Exit status is that of the last command.
  16755. exit
  16756. }
  16757. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16758. as_dirname=dirname
  16759. else
  16760. as_dirname=false
  16761. fi
  16762. ECHO_C= ECHO_N= ECHO_T=
  16763. case `echo -n x` in
  16764. -n*)
  16765. case `echo 'x\c'` in
  16766. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16767. *) ECHO_C='\c';;
  16768. esac;;
  16769. *)
  16770. ECHO_N='-n';;
  16771. esac
  16772. if expr a : '\(a\)' >/dev/null 2>&1 &&
  16773. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16774. as_expr=expr
  16775. else
  16776. as_expr=false
  16777. fi
  16778. rm -f conf$$ conf$$.exe conf$$.file
  16779. if test -d conf$$.dir; then
  16780. rm -f conf$$.dir/conf$$.file
  16781. else
  16782. rm -f conf$$.dir
  16783. mkdir conf$$.dir
  16784. fi
  16785. echo >conf$$.file
  16786. if ln -s conf$$.file conf$$ 2>/dev/null; then
  16787. as_ln_s='ln -s'
  16788. # ... but there are two gotchas:
  16789. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16790. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16791. # In both cases, we have to default to `cp -p'.
  16792. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16793. as_ln_s='cp -p'
  16794. elif ln conf$$.file conf$$ 2>/dev/null; then
  16795. as_ln_s=ln
  16796. else
  16797. as_ln_s='cp -p'
  16798. fi
  16799. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16800. rmdir conf$$.dir 2>/dev/null
  16801. if mkdir -p . 2>/dev/null; then
  16802. as_mkdir_p=:
  16803. else
  16804. test -d ./-p && rmdir ./-p
  16805. as_mkdir_p=false
  16806. fi
  16807. if test -x / >/dev/null 2>&1; then
  16808. as_test_x='test -x'
  16809. else
  16810. if ls -dL / >/dev/null 2>&1; then
  16811. as_ls_L_option=L
  16812. else
  16813. as_ls_L_option=
  16814. fi
  16815. as_test_x='
  16816. eval sh -c '\''
  16817. if test -d "$1"; then
  16818. test -d "$1/.";
  16819. else
  16820. case $1 in
  16821. -*)set "./$1";;
  16822. esac;
  16823. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  16824. ???[sx]*):;;*)false;;esac;fi
  16825. '\'' sh
  16826. '
  16827. fi
  16828. as_executable_p=$as_test_x
  16829. # Sed expression to map a string onto a valid CPP name.
  16830. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16831. # Sed expression to map a string onto a valid variable name.
  16832. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16833. exec 6>&1
  16834. # Save the log message, to keep $[0] and so on meaningful, and to
  16835. # report actual input values of CONFIG_FILES etc. instead of their
  16836. # values after options handling.
  16837. ac_log="
  16838. This file was extended by aria2c $as_me 0.12.0, which was
  16839. generated by GNU Autoconf 2.61. Invocation command line was
  16840. CONFIG_FILES = $CONFIG_FILES
  16841. CONFIG_HEADERS = $CONFIG_HEADERS
  16842. CONFIG_LINKS = $CONFIG_LINKS
  16843. CONFIG_COMMANDS = $CONFIG_COMMANDS
  16844. $ $0 $@
  16845. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  16846. "
  16847. _ACEOF
  16848. cat >>$CONFIG_STATUS <<_ACEOF
  16849. # Files that config.status was made for.
  16850. config_files="$ac_config_files"
  16851. config_headers="$ac_config_headers"
  16852. config_commands="$ac_config_commands"
  16853. _ACEOF
  16854. cat >>$CONFIG_STATUS <<\_ACEOF
  16855. ac_cs_usage="\
  16856. \`$as_me' instantiates files from templates according to the
  16857. current configuration.
  16858. Usage: $0 [OPTIONS] [FILE]...
  16859. -h, --help print this help, then exit
  16860. -V, --version print version number and configuration settings, then exit
  16861. -q, --quiet do not print progress messages
  16862. -d, --debug don't remove temporary files
  16863. --recheck update $as_me by reconfiguring in the same conditions
  16864. --file=FILE[:TEMPLATE]
  16865. instantiate the configuration file FILE
  16866. --header=FILE[:TEMPLATE]
  16867. instantiate the configuration header FILE
  16868. Configuration files:
  16869. $config_files
  16870. Configuration headers:
  16871. $config_headers
  16872. Configuration commands:
  16873. $config_commands
  16874. Report bugs to <bug-autoconf@gnu.org>."
  16875. _ACEOF
  16876. cat >>$CONFIG_STATUS <<_ACEOF
  16877. ac_cs_version="\\
  16878. aria2c config.status 0.12.0
  16879. configured by $0, generated by GNU Autoconf 2.61,
  16880. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  16881. Copyright (C) 2006 Free Software Foundation, Inc.
  16882. This config.status script is free software; the Free Software Foundation
  16883. gives unlimited permission to copy, distribute and modify it."
  16884. ac_pwd='$ac_pwd'
  16885. srcdir='$srcdir'
  16886. INSTALL='$INSTALL'
  16887. _ACEOF
  16888. cat >>$CONFIG_STATUS <<\_ACEOF
  16889. # If no file are specified by the user, then we need to provide default
  16890. # value. By we need to know if files were specified by the user.
  16891. ac_need_defaults=:
  16892. while test $# != 0
  16893. do
  16894. case $1 in
  16895. --*=*)
  16896. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  16897. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  16898. ac_shift=:
  16899. ;;
  16900. *)
  16901. ac_option=$1
  16902. ac_optarg=$2
  16903. ac_shift=shift
  16904. ;;
  16905. esac
  16906. case $ac_option in
  16907. # Handling of the options.
  16908. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  16909. ac_cs_recheck=: ;;
  16910. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  16911. echo "$ac_cs_version"; exit ;;
  16912. --debug | --debu | --deb | --de | --d | -d )
  16913. debug=: ;;
  16914. --file | --fil | --fi | --f )
  16915. $ac_shift
  16916. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  16917. ac_need_defaults=false;;
  16918. --header | --heade | --head | --hea )
  16919. $ac_shift
  16920. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  16921. ac_need_defaults=false;;
  16922. --he | --h)
  16923. # Conflict between --help and --header
  16924. { echo "$as_me: error: ambiguous option: $1
  16925. Try \`$0 --help' for more information." >&2
  16926. { (exit 1); exit 1; }; };;
  16927. --help | --hel | -h )
  16928. echo "$ac_cs_usage"; exit ;;
  16929. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16930. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  16931. ac_cs_silent=: ;;
  16932. # This is an error.
  16933. -*) { echo "$as_me: error: unrecognized option: $1
  16934. Try \`$0 --help' for more information." >&2
  16935. { (exit 1); exit 1; }; } ;;
  16936. *) ac_config_targets="$ac_config_targets $1"
  16937. ac_need_defaults=false ;;
  16938. esac
  16939. shift
  16940. done
  16941. ac_configure_extra_args=
  16942. if $ac_cs_silent; then
  16943. exec 6>/dev/null
  16944. ac_configure_extra_args="$ac_configure_extra_args --silent"
  16945. fi
  16946. _ACEOF
  16947. cat >>$CONFIG_STATUS <<_ACEOF
  16948. if \$ac_cs_recheck; then
  16949. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  16950. CONFIG_SHELL=$SHELL
  16951. export CONFIG_SHELL
  16952. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  16953. fi
  16954. _ACEOF
  16955. cat >>$CONFIG_STATUS <<\_ACEOF
  16956. exec 5>>config.log
  16957. {
  16958. echo
  16959. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  16960. ## Running $as_me. ##
  16961. _ASBOX
  16962. echo "$ac_log"
  16963. } >&5
  16964. _ACEOF
  16965. cat >>$CONFIG_STATUS <<_ACEOF
  16966. #
  16967. # INIT-COMMANDS
  16968. #
  16969. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  16970. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  16971. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  16972. # from automake < 1.5.
  16973. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  16974. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  16975. LINGUAS="${LINGUAS-%UNSET%}"
  16976. _ACEOF
  16977. cat >>$CONFIG_STATUS <<\_ACEOF
  16978. # Handling of arguments.
  16979. for ac_config_target in $ac_config_targets
  16980. do
  16981. case $ac_config_target in
  16982. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  16983. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16984. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  16985. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16986. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  16987. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  16988. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  16989. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  16990. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  16991. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  16992. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  16993. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  16994. { (exit 1); exit 1; }; };;
  16995. esac
  16996. done
  16997. # If the user did not use the arguments to specify the items to instantiate,
  16998. # then the envvar interface is used. Set only those that are not.
  16999. # We use the long form for the default assignment because of an extremely
  17000. # bizarre bug on SunOS 4.1.3.
  17001. if $ac_need_defaults; then
  17002. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  17003. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  17004. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  17005. fi
  17006. # Have a temporary directory for convenience. Make it in the build tree
  17007. # simply because there is no reason against having it here, and in addition,
  17008. # creating and moving files from /tmp can sometimes cause problems.
  17009. # Hook for its removal unless debugging.
  17010. # Note that there is a small window in which the directory will not be cleaned:
  17011. # after its creation but before its name has been assigned to `$tmp'.
  17012. $debug ||
  17013. {
  17014. tmp=
  17015. trap 'exit_status=$?
  17016. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  17017. ' 0
  17018. trap '{ (exit 1); exit 1; }' 1 2 13 15
  17019. }
  17020. # Create a (secure) tmp directory for tmp files.
  17021. {
  17022. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  17023. test -n "$tmp" && test -d "$tmp"
  17024. } ||
  17025. {
  17026. tmp=./conf$$-$RANDOM
  17027. (umask 077 && mkdir "$tmp")
  17028. } ||
  17029. {
  17030. echo "$me: cannot create a temporary directory in ." >&2
  17031. { (exit 1); exit 1; }
  17032. }
  17033. #
  17034. # Set up the sed scripts for CONFIG_FILES section.
  17035. #
  17036. # No need to generate the scripts if there are no CONFIG_FILES.
  17037. # This happens for instance when ./config.status config.h
  17038. if test -n "$CONFIG_FILES"; then
  17039. _ACEOF
  17040. ac_delim='%!_!# '
  17041. for ac_last_try in false false false false false :; do
  17042. cat >conf$$subs.sed <<_ACEOF
  17043. SHELL!$SHELL$ac_delim
  17044. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  17045. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  17046. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  17047. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  17048. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  17049. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  17050. exec_prefix!$exec_prefix$ac_delim
  17051. prefix!$prefix$ac_delim
  17052. program_transform_name!$program_transform_name$ac_delim
  17053. bindir!$bindir$ac_delim
  17054. sbindir!$sbindir$ac_delim
  17055. libexecdir!$libexecdir$ac_delim
  17056. datarootdir!$datarootdir$ac_delim
  17057. datadir!$datadir$ac_delim
  17058. sysconfdir!$sysconfdir$ac_delim
  17059. sharedstatedir!$sharedstatedir$ac_delim
  17060. localstatedir!$localstatedir$ac_delim
  17061. includedir!$includedir$ac_delim
  17062. oldincludedir!$oldincludedir$ac_delim
  17063. docdir!$docdir$ac_delim
  17064. infodir!$infodir$ac_delim
  17065. htmldir!$htmldir$ac_delim
  17066. dvidir!$dvidir$ac_delim
  17067. pdfdir!$pdfdir$ac_delim
  17068. psdir!$psdir$ac_delim
  17069. libdir!$libdir$ac_delim
  17070. localedir!$localedir$ac_delim
  17071. mandir!$mandir$ac_delim
  17072. DEFS!$DEFS$ac_delim
  17073. ECHO_C!$ECHO_C$ac_delim
  17074. ECHO_N!$ECHO_N$ac_delim
  17075. ECHO_T!$ECHO_T$ac_delim
  17076. LIBS!$LIBS$ac_delim
  17077. build_alias!$build_alias$ac_delim
  17078. host_alias!$host_alias$ac_delim
  17079. target_alias!$target_alias$ac_delim
  17080. build!$build$ac_delim
  17081. build_cpu!$build_cpu$ac_delim
  17082. build_vendor!$build_vendor$ac_delim
  17083. build_os!$build_os$ac_delim
  17084. host!$host$ac_delim
  17085. host_cpu!$host_cpu$ac_delim
  17086. host_vendor!$host_vendor$ac_delim
  17087. host_os!$host_os$ac_delim
  17088. target!$target$ac_delim
  17089. target_cpu!$target_cpu$ac_delim
  17090. target_vendor!$target_vendor$ac_delim
  17091. target_os!$target_os$ac_delim
  17092. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  17093. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  17094. INSTALL_DATA!$INSTALL_DATA$ac_delim
  17095. CYGPATH_W!$CYGPATH_W$ac_delim
  17096. PACKAGE!$PACKAGE$ac_delim
  17097. VERSION!$VERSION$ac_delim
  17098. ACLOCAL!$ACLOCAL$ac_delim
  17099. AUTOCONF!$AUTOCONF$ac_delim
  17100. AUTOMAKE!$AUTOMAKE$ac_delim
  17101. AUTOHEADER!$AUTOHEADER$ac_delim
  17102. MAKEINFO!$MAKEINFO$ac_delim
  17103. install_sh!$install_sh$ac_delim
  17104. STRIP!$STRIP$ac_delim
  17105. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  17106. mkdir_p!$mkdir_p$ac_delim
  17107. AWK!$AWK$ac_delim
  17108. SET_MAKE!$SET_MAKE$ac_delim
  17109. am__leading_dot!$am__leading_dot$ac_delim
  17110. AMTAR!$AMTAR$ac_delim
  17111. am__tar!$am__tar$ac_delim
  17112. am__untar!$am__untar$ac_delim
  17113. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  17114. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  17115. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  17116. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  17117. CXX!$CXX$ac_delim
  17118. CXXFLAGS!$CXXFLAGS$ac_delim
  17119. LDFLAGS!$LDFLAGS$ac_delim
  17120. CPPFLAGS!$CPPFLAGS$ac_delim
  17121. ac_ct_CXX!$ac_ct_CXX$ac_delim
  17122. EXEEXT!$EXEEXT$ac_delim
  17123. OBJEXT!$OBJEXT$ac_delim
  17124. DEPDIR!$DEPDIR$ac_delim
  17125. am__include!$am__include$ac_delim
  17126. am__quote!$am__quote$ac_delim
  17127. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  17128. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  17129. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  17130. CXXDEPMODE!$CXXDEPMODE$ac_delim
  17131. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  17132. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  17133. CC!$CC$ac_delim
  17134. CFLAGS!$CFLAGS$ac_delim
  17135. ac_ct_CC!$ac_ct_CC$ac_delim
  17136. CCDEPMODE!$CCDEPMODE$ac_delim
  17137. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  17138. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  17139. RANLIB!$RANLIB$ac_delim
  17140. _ACEOF
  17141. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  17142. break
  17143. elif $ac_last_try; then
  17144. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  17145. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  17146. { (exit 1); exit 1; }; }
  17147. else
  17148. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17149. fi
  17150. done
  17151. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  17152. if test -n "$ac_eof"; then
  17153. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  17154. ac_eof=`expr $ac_eof + 1`
  17155. fi
  17156. cat >>$CONFIG_STATUS <<_ACEOF
  17157. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  17158. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17159. _ACEOF
  17160. sed '
  17161. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  17162. s/^/s,@/; s/!/@,|#_!!_#|/
  17163. :n
  17164. t n
  17165. s/'"$ac_delim"'$/,g/; t
  17166. s/$/\\/; p
  17167. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  17168. ' >>$CONFIG_STATUS <conf$$subs.sed
  17169. rm -f conf$$subs.sed
  17170. cat >>$CONFIG_STATUS <<_ACEOF
  17171. CEOF$ac_eof
  17172. _ACEOF
  17173. ac_delim='%!_!# '
  17174. for ac_last_try in false false false false false :; do
  17175. cat >conf$$subs.sed <<_ACEOF
  17176. YACC!$YACC$ac_delim
  17177. YFLAGS!$YFLAGS$ac_delim
  17178. CXXCPP!$CXXCPP$ac_delim
  17179. GREP!$GREP$ac_delim
  17180. EGREP!$EGREP$ac_delim
  17181. XML2_CONFIG!$XML2_CONFIG$ac_delim
  17182. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  17183. XML_LIBS!$XML_LIBS$ac_delim
  17184. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  17185. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  17186. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  17187. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  17188. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  17189. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  17190. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  17191. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  17192. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  17193. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  17194. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  17195. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  17196. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  17197. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  17198. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  17199. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  17200. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  17201. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  17202. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  17203. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  17204. ALLOCA!$ALLOCA$ac_delim
  17205. USE_NLS!$USE_NLS$ac_delim
  17206. GETTEXT_MACRO_VERSION!$GETTEXT_MACRO_VERSION$ac_delim
  17207. MSGFMT!$MSGFMT$ac_delim
  17208. GMSGFMT!$GMSGFMT$ac_delim
  17209. MSGFMT_015!$MSGFMT_015$ac_delim
  17210. GMSGFMT_015!$GMSGFMT_015$ac_delim
  17211. XGETTEXT!$XGETTEXT$ac_delim
  17212. XGETTEXT_015!$XGETTEXT_015$ac_delim
  17213. MSGMERGE!$MSGMERGE$ac_delim
  17214. XGETTEXT_EXTRA_OPTIONS!$XGETTEXT_EXTRA_OPTIONS$ac_delim
  17215. GLIBC2!$GLIBC2$ac_delim
  17216. CFLAG_VISIBILITY!$CFLAG_VISIBILITY$ac_delim
  17217. HAVE_VISIBILITY!$HAVE_VISIBILITY$ac_delim
  17218. PRI_MACROS_BROKEN!$PRI_MACROS_BROKEN$ac_delim
  17219. LIBPTH!$LIBPTH$ac_delim
  17220. LTLIBPTH!$LTLIBPTH$ac_delim
  17221. LIBPTH_PREFIX!$LIBPTH_PREFIX$ac_delim
  17222. LIBTHREAD!$LIBTHREAD$ac_delim
  17223. LTLIBTHREAD!$LTLIBTHREAD$ac_delim
  17224. LIBMULTITHREAD!$LIBMULTITHREAD$ac_delim
  17225. LTLIBMULTITHREAD!$LTLIBMULTITHREAD$ac_delim
  17226. LIBICONV!$LIBICONV$ac_delim
  17227. LTLIBICONV!$LTLIBICONV$ac_delim
  17228. INTLBISON!$INTLBISON$ac_delim
  17229. GLIBC21!$GLIBC21$ac_delim
  17230. INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
  17231. HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
  17232. HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
  17233. HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
  17234. HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
  17235. WOE32DLL!$WOE32DLL$ac_delim
  17236. WOE32!$WOE32$ac_delim
  17237. WINDRES!$WINDRES$ac_delim
  17238. LTLIBC!$LTLIBC$ac_delim
  17239. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  17240. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  17241. CATOBJEXT!$CATOBJEXT$ac_delim
  17242. DATADIRNAME!$DATADIRNAME$ac_delim
  17243. INSTOBJEXT!$INSTOBJEXT$ac_delim
  17244. GENCAT!$GENCAT$ac_delim
  17245. INTLOBJS!$INTLOBJS$ac_delim
  17246. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  17247. INTLLIBS!$INTLLIBS$ac_delim
  17248. LIBINTL!$LIBINTL$ac_delim
  17249. LTLIBINTL!$LTLIBINTL$ac_delim
  17250. POSUB!$POSUB$ac_delim
  17251. LIBOBJS!$LIBOBJS$ac_delim
  17252. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  17253. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  17254. HAVE_GAI_STRERROR_TRUE!$HAVE_GAI_STRERROR_TRUE$ac_delim
  17255. HAVE_GAI_STRERROR_FALSE!$HAVE_GAI_STRERROR_FALSE$ac_delim
  17256. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  17257. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  17258. HAVE_GETTIMEOFDAY_TRUE!$HAVE_GETTIMEOFDAY_TRUE$ac_delim
  17259. HAVE_GETTIMEOFDAY_FALSE!$HAVE_GETTIMEOFDAY_FALSE$ac_delim
  17260. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  17261. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  17262. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  17263. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  17264. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  17265. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  17266. HAVE_TIMEGM_TRUE!$HAVE_TIMEGM_TRUE$ac_delim
  17267. HAVE_TIMEGM_FALSE!$HAVE_TIMEGM_FALSE$ac_delim
  17268. LTLIBOBJS!$LTLIBOBJS$ac_delim
  17269. _ACEOF
  17270. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
  17271. break
  17272. elif $ac_last_try; then
  17273. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  17274. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  17275. { (exit 1); exit 1; }; }
  17276. else
  17277. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  17278. fi
  17279. done
  17280. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  17281. if test -n "$ac_eof"; then
  17282. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  17283. ac_eof=`expr $ac_eof + 1`
  17284. fi
  17285. cat >>$CONFIG_STATUS <<_ACEOF
  17286. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  17287. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  17288. _ACEOF
  17289. sed '
  17290. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  17291. s/^/s,@/; s/!/@,|#_!!_#|/
  17292. :n
  17293. t n
  17294. s/'"$ac_delim"'$/,g/; t
  17295. s/$/\\/; p
  17296. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  17297. ' >>$CONFIG_STATUS <conf$$subs.sed
  17298. rm -f conf$$subs.sed
  17299. cat >>$CONFIG_STATUS <<_ACEOF
  17300. :end
  17301. s/|#_!!_#|//g
  17302. CEOF$ac_eof
  17303. _ACEOF
  17304. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  17305. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  17306. # trailing colons and then remove the whole line if VPATH becomes empty
  17307. # (actually we leave an empty line to preserve line numbers).
  17308. if test "x$srcdir" = x.; then
  17309. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  17310. s/:*\$(srcdir):*/:/
  17311. s/:*\${srcdir}:*/:/
  17312. s/:*@srcdir@:*/:/
  17313. s/^\([^=]*=[ ]*\):*/\1/
  17314. s/:*$//
  17315. s/^[^=]*=[ ]*$//
  17316. }'
  17317. fi
  17318. cat >>$CONFIG_STATUS <<\_ACEOF
  17319. fi # test -n "$CONFIG_FILES"
  17320. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  17321. do
  17322. case $ac_tag in
  17323. :[FHLC]) ac_mode=$ac_tag; continue;;
  17324. esac
  17325. case $ac_mode$ac_tag in
  17326. :[FHL]*:*);;
  17327. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  17328. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  17329. { (exit 1); exit 1; }; };;
  17330. :[FH]-) ac_tag=-:-;;
  17331. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  17332. esac
  17333. ac_save_IFS=$IFS
  17334. IFS=:
  17335. set x $ac_tag
  17336. IFS=$ac_save_IFS
  17337. shift
  17338. ac_file=$1
  17339. shift
  17340. case $ac_mode in
  17341. :L) ac_source=$1;;
  17342. :[FH])
  17343. ac_file_inputs=
  17344. for ac_f
  17345. do
  17346. case $ac_f in
  17347. -) ac_f="$tmp/stdin";;
  17348. *) # Look for the file first in the build tree, then in the source tree
  17349. # (if the path is not absolute). The absolute path cannot be DOS-style,
  17350. # because $ac_f cannot contain `:'.
  17351. test -f "$ac_f" ||
  17352. case $ac_f in
  17353. [\\/$]*) false;;
  17354. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  17355. esac ||
  17356. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  17357. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  17358. { (exit 1); exit 1; }; };;
  17359. esac
  17360. ac_file_inputs="$ac_file_inputs $ac_f"
  17361. done
  17362. # Let's still pretend it is `configure' which instantiates (i.e., don't
  17363. # use $as_me), people would be surprised to read:
  17364. # /* config.h. Generated by config.status. */
  17365. configure_input="Generated from "`IFS=:
  17366. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  17367. if test x"$ac_file" != x-; then
  17368. configure_input="$ac_file. $configure_input"
  17369. { echo "$as_me:$LINENO: creating $ac_file" >&5
  17370. echo "$as_me: creating $ac_file" >&6;}
  17371. fi
  17372. case $ac_tag in
  17373. *:-:* | *:-) cat >"$tmp/stdin";;
  17374. esac
  17375. ;;
  17376. esac
  17377. ac_dir=`$as_dirname -- "$ac_file" ||
  17378. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17379. X"$ac_file" : 'X\(//\)[^/]' \| \
  17380. X"$ac_file" : 'X\(//\)$' \| \
  17381. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  17382. echo X"$ac_file" |
  17383. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17384. s//\1/
  17385. q
  17386. }
  17387. /^X\(\/\/\)[^/].*/{
  17388. s//\1/
  17389. q
  17390. }
  17391. /^X\(\/\/\)$/{
  17392. s//\1/
  17393. q
  17394. }
  17395. /^X\(\/\).*/{
  17396. s//\1/
  17397. q
  17398. }
  17399. s/.*/./; q'`
  17400. { as_dir="$ac_dir"
  17401. case $as_dir in #(
  17402. -*) as_dir=./$as_dir;;
  17403. esac
  17404. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  17405. as_dirs=
  17406. while :; do
  17407. case $as_dir in #(
  17408. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  17409. *) as_qdir=$as_dir;;
  17410. esac
  17411. as_dirs="'$as_qdir' $as_dirs"
  17412. as_dir=`$as_dirname -- "$as_dir" ||
  17413. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17414. X"$as_dir" : 'X\(//\)[^/]' \| \
  17415. X"$as_dir" : 'X\(//\)$' \| \
  17416. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17417. echo X"$as_dir" |
  17418. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17419. s//\1/
  17420. q
  17421. }
  17422. /^X\(\/\/\)[^/].*/{
  17423. s//\1/
  17424. q
  17425. }
  17426. /^X\(\/\/\)$/{
  17427. s//\1/
  17428. q
  17429. }
  17430. /^X\(\/\).*/{
  17431. s//\1/
  17432. q
  17433. }
  17434. s/.*/./; q'`
  17435. test -d "$as_dir" && break
  17436. done
  17437. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17438. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  17439. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  17440. { (exit 1); exit 1; }; }; }
  17441. ac_builddir=.
  17442. case "$ac_dir" in
  17443. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17444. *)
  17445. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  17446. # A ".." for each directory in $ac_dir_suffix.
  17447. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  17448. case $ac_top_builddir_sub in
  17449. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17450. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17451. esac ;;
  17452. esac
  17453. ac_abs_top_builddir=$ac_pwd
  17454. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17455. # for backward compatibility:
  17456. ac_top_builddir=$ac_top_build_prefix
  17457. case $srcdir in
  17458. .) # We are building in place.
  17459. ac_srcdir=.
  17460. ac_top_srcdir=$ac_top_builddir_sub
  17461. ac_abs_top_srcdir=$ac_pwd ;;
  17462. [\\/]* | ?:[\\/]* ) # Absolute name.
  17463. ac_srcdir=$srcdir$ac_dir_suffix;
  17464. ac_top_srcdir=$srcdir
  17465. ac_abs_top_srcdir=$srcdir ;;
  17466. *) # Relative name.
  17467. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17468. ac_top_srcdir=$ac_top_build_prefix$srcdir
  17469. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17470. esac
  17471. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17472. case $ac_mode in
  17473. :F)
  17474. #
  17475. # CONFIG_FILE
  17476. #
  17477. case $INSTALL in
  17478. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  17479. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  17480. esac
  17481. _ACEOF
  17482. cat >>$CONFIG_STATUS <<\_ACEOF
  17483. # If the template does not know about datarootdir, expand it.
  17484. # FIXME: This hack should be removed a few years after 2.60.
  17485. ac_datarootdir_hack=; ac_datarootdir_seen=
  17486. case `sed -n '/datarootdir/ {
  17487. p
  17488. q
  17489. }
  17490. /@datadir@/p
  17491. /@docdir@/p
  17492. /@infodir@/p
  17493. /@localedir@/p
  17494. /@mandir@/p
  17495. ' $ac_file_inputs` in
  17496. *datarootdir*) ac_datarootdir_seen=yes;;
  17497. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  17498. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  17499. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  17500. _ACEOF
  17501. cat >>$CONFIG_STATUS <<_ACEOF
  17502. ac_datarootdir_hack='
  17503. s&@datadir@&$datadir&g
  17504. s&@docdir@&$docdir&g
  17505. s&@infodir@&$infodir&g
  17506. s&@localedir@&$localedir&g
  17507. s&@mandir@&$mandir&g
  17508. s&\\\${datarootdir}&$datarootdir&g' ;;
  17509. esac
  17510. _ACEOF
  17511. # Neutralize VPATH when `$srcdir' = `.'.
  17512. # Shell code in configure.ac might set extrasub.
  17513. # FIXME: do we really want to maintain this feature?
  17514. cat >>$CONFIG_STATUS <<_ACEOF
  17515. sed "$ac_vpsub
  17516. $extrasub
  17517. _ACEOF
  17518. cat >>$CONFIG_STATUS <<\_ACEOF
  17519. :t
  17520. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  17521. s&@configure_input@&$configure_input&;t t
  17522. s&@top_builddir@&$ac_top_builddir_sub&;t t
  17523. s&@srcdir@&$ac_srcdir&;t t
  17524. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  17525. s&@top_srcdir@&$ac_top_srcdir&;t t
  17526. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  17527. s&@builddir@&$ac_builddir&;t t
  17528. s&@abs_builddir@&$ac_abs_builddir&;t t
  17529. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  17530. s&@INSTALL@&$ac_INSTALL&;t t
  17531. $ac_datarootdir_hack
  17532. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  17533. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  17534. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  17535. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  17536. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17537. which seems to be undefined. Please make sure it is defined." >&5
  17538. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  17539. which seems to be undefined. Please make sure it is defined." >&2;}
  17540. rm -f "$tmp/stdin"
  17541. case $ac_file in
  17542. -) cat "$tmp/out"; rm -f "$tmp/out";;
  17543. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  17544. esac
  17545. ;;
  17546. :H)
  17547. #
  17548. # CONFIG_HEADER
  17549. #
  17550. _ACEOF
  17551. # Transform confdefs.h into a sed script `conftest.defines', that
  17552. # substitutes the proper values into config.h.in to produce config.h.
  17553. rm -f conftest.defines conftest.tail
  17554. # First, append a space to every undef/define line, to ease matching.
  17555. echo 's/$/ /' >conftest.defines
  17556. # Then, protect against being on the right side of a sed subst, or in
  17557. # an unquoted here document, in config.status. If some macros were
  17558. # called several times there might be several #defines for the same
  17559. # symbol, which is useless. But do not sort them, since the last
  17560. # AC_DEFINE must be honored.
  17561. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  17562. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  17563. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  17564. # PARAMS is the parameter list in the macro definition--in most cases, it's
  17565. # just an empty string.
  17566. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  17567. ac_dB='\\)[ (].*,\\1define\\2'
  17568. ac_dC=' '
  17569. ac_dD=' ,'
  17570. uniq confdefs.h |
  17571. sed -n '
  17572. t rset
  17573. :rset
  17574. s/^[ ]*#[ ]*define[ ][ ]*//
  17575. t ok
  17576. d
  17577. :ok
  17578. s/[\\&,]/\\&/g
  17579. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  17580. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  17581. ' >>conftest.defines
  17582. # Remove the space that was appended to ease matching.
  17583. # Then replace #undef with comments. This is necessary, for
  17584. # example, in the case of _POSIX_SOURCE, which is predefined and required
  17585. # on some systems where configure will not decide to define it.
  17586. # (The regexp can be short, since the line contains either #define or #undef.)
  17587. echo 's/ $//
  17588. s,^[ #]*u.*,/* & */,' >>conftest.defines
  17589. # Break up conftest.defines:
  17590. ac_max_sed_lines=50
  17591. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  17592. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  17593. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  17594. # et cetera.
  17595. ac_in='$ac_file_inputs'
  17596. ac_out='"$tmp/out1"'
  17597. ac_nxt='"$tmp/out2"'
  17598. while :
  17599. do
  17600. # Write a here document:
  17601. cat >>$CONFIG_STATUS <<_ACEOF
  17602. # First, check the format of the line:
  17603. cat >"\$tmp/defines.sed" <<\\CEOF
  17604. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  17605. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  17606. b
  17607. :def
  17608. _ACEOF
  17609. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  17610. echo 'CEOF
  17611. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  17612. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  17613. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  17614. grep . conftest.tail >/dev/null || break
  17615. rm -f conftest.defines
  17616. mv conftest.tail conftest.defines
  17617. done
  17618. rm -f conftest.defines conftest.tail
  17619. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  17620. cat >>$CONFIG_STATUS <<\_ACEOF
  17621. if test x"$ac_file" != x-; then
  17622. echo "/* $configure_input */" >"$tmp/config.h"
  17623. cat "$ac_result" >>"$tmp/config.h"
  17624. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  17625. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  17626. echo "$as_me: $ac_file is unchanged" >&6;}
  17627. else
  17628. rm -f $ac_file
  17629. mv "$tmp/config.h" $ac_file
  17630. fi
  17631. else
  17632. echo "/* $configure_input */"
  17633. cat "$ac_result"
  17634. fi
  17635. rm -f "$tmp/out12"
  17636. # Compute $ac_file's index in $config_headers.
  17637. _am_stamp_count=1
  17638. for _am_header in $config_headers :; do
  17639. case $_am_header in
  17640. $ac_file | $ac_file:* )
  17641. break ;;
  17642. * )
  17643. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  17644. esac
  17645. done
  17646. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  17647. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17648. X$ac_file : 'X\(//\)[^/]' \| \
  17649. X$ac_file : 'X\(//\)$' \| \
  17650. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  17651. echo X$ac_file |
  17652. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17653. s//\1/
  17654. q
  17655. }
  17656. /^X\(\/\/\)[^/].*/{
  17657. s//\1/
  17658. q
  17659. }
  17660. /^X\(\/\/\)$/{
  17661. s//\1/
  17662. q
  17663. }
  17664. /^X\(\/\).*/{
  17665. s//\1/
  17666. q
  17667. }
  17668. s/.*/./; q'`/stamp-h$_am_stamp_count
  17669. ;;
  17670. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  17671. echo "$as_me: executing $ac_file commands" >&6;}
  17672. ;;
  17673. esac
  17674. case $ac_file$ac_mode in
  17675. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  17676. # Strip MF so we end up with the name of the file.
  17677. mf=`echo "$mf" | sed -e 's/:.*$//'`
  17678. # Check whether this is an Automake generated Makefile or not.
  17679. # We used to match only the files named `Makefile.in', but
  17680. # some people rename them; so instead we look at the file content.
  17681. # Grep'ing the first line is not enough: some people post-process
  17682. # each Makefile.in and add a new line on top of each file to say so.
  17683. # So let's grep whole file.
  17684. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  17685. dirpart=`$as_dirname -- "$mf" ||
  17686. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17687. X"$mf" : 'X\(//\)[^/]' \| \
  17688. X"$mf" : 'X\(//\)$' \| \
  17689. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  17690. echo X"$mf" |
  17691. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17692. s//\1/
  17693. q
  17694. }
  17695. /^X\(\/\/\)[^/].*/{
  17696. s//\1/
  17697. q
  17698. }
  17699. /^X\(\/\/\)$/{
  17700. s//\1/
  17701. q
  17702. }
  17703. /^X\(\/\).*/{
  17704. s//\1/
  17705. q
  17706. }
  17707. s/.*/./; q'`
  17708. else
  17709. continue
  17710. fi
  17711. # Extract the definition of DEPDIR, am__include, and am__quote
  17712. # from the Makefile without running `make'.
  17713. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  17714. test -z "$DEPDIR" && continue
  17715. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  17716. test -z "am__include" && continue
  17717. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  17718. # When using ansi2knr, U may be empty or an underscore; expand it
  17719. U=`sed -n 's/^U = //p' < "$mf"`
  17720. # Find all dependency output files, they are included files with
  17721. # $(DEPDIR) in their names. We invoke sed twice because it is the
  17722. # simplest approach to changing $(DEPDIR) to its actual value in the
  17723. # expansion.
  17724. for file in `sed -n "
  17725. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  17726. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  17727. # Make sure the directory exists.
  17728. test -f "$dirpart/$file" && continue
  17729. fdir=`$as_dirname -- "$file" ||
  17730. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17731. X"$file" : 'X\(//\)[^/]' \| \
  17732. X"$file" : 'X\(//\)$' \| \
  17733. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  17734. echo X"$file" |
  17735. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17736. s//\1/
  17737. q
  17738. }
  17739. /^X\(\/\/\)[^/].*/{
  17740. s//\1/
  17741. q
  17742. }
  17743. /^X\(\/\/\)$/{
  17744. s//\1/
  17745. q
  17746. }
  17747. /^X\(\/\).*/{
  17748. s//\1/
  17749. q
  17750. }
  17751. s/.*/./; q'`
  17752. { as_dir=$dirpart/$fdir
  17753. case $as_dir in #(
  17754. -*) as_dir=./$as_dir;;
  17755. esac
  17756. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  17757. as_dirs=
  17758. while :; do
  17759. case $as_dir in #(
  17760. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  17761. *) as_qdir=$as_dir;;
  17762. esac
  17763. as_dirs="'$as_qdir' $as_dirs"
  17764. as_dir=`$as_dirname -- "$as_dir" ||
  17765. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17766. X"$as_dir" : 'X\(//\)[^/]' \| \
  17767. X"$as_dir" : 'X\(//\)$' \| \
  17768. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  17769. echo X"$as_dir" |
  17770. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17771. s//\1/
  17772. q
  17773. }
  17774. /^X\(\/\/\)[^/].*/{
  17775. s//\1/
  17776. q
  17777. }
  17778. /^X\(\/\/\)$/{
  17779. s//\1/
  17780. q
  17781. }
  17782. /^X\(\/\).*/{
  17783. s//\1/
  17784. q
  17785. }
  17786. s/.*/./; q'`
  17787. test -d "$as_dir" && break
  17788. done
  17789. test -z "$as_dirs" || eval "mkdir $as_dirs"
  17790. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  17791. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  17792. { (exit 1); exit 1; }; }; }
  17793. # echo "creating $dirpart/$file"
  17794. echo '# dummy' > "$dirpart/$file"
  17795. done
  17796. done
  17797. ;;
  17798. "po-directories":C)
  17799. for ac_file in $CONFIG_FILES; do
  17800. # Support "outfile[:infile[:infile...]]"
  17801. case "$ac_file" in
  17802. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  17803. esac
  17804. # PO directories have a Makefile.in generated from Makefile.in.in.
  17805. case "$ac_file" in */Makefile.in)
  17806. # Adjust a relative srcdir.
  17807. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  17808. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  17809. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  17810. # In autoconf-2.13 it is called $ac_given_srcdir.
  17811. # In autoconf-2.50 it is called $srcdir.
  17812. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  17813. case "$ac_given_srcdir" in
  17814. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  17815. /*) top_srcdir="$ac_given_srcdir" ;;
  17816. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  17817. esac
  17818. # Treat a directory as a PO directory if and only if it has a
  17819. # POTFILES.in file. This allows packages to have multiple PO
  17820. # directories under different names or in different locations.
  17821. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  17822. rm -f "$ac_dir/POTFILES"
  17823. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  17824. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  17825. POMAKEFILEDEPS="POTFILES.in"
  17826. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  17827. # on $ac_dir but don't depend on user-specified configuration
  17828. # parameters.
  17829. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  17830. # The LINGUAS file contains the set of available languages.
  17831. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  17832. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  17833. fi
  17834. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  17835. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  17836. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  17837. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  17838. else
  17839. # The set of available languages was given in configure.in.
  17840. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  17841. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  17842. fi
  17843. # Compute POFILES
  17844. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  17845. # Compute UPDATEPOFILES
  17846. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  17847. # Compute DUMMYPOFILES
  17848. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  17849. # Compute GMOFILES
  17850. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  17851. case "$ac_given_srcdir" in
  17852. .) srcdirpre= ;;
  17853. *) srcdirpre='$(srcdir)/' ;;
  17854. esac
  17855. POFILES=
  17856. UPDATEPOFILES=
  17857. DUMMYPOFILES=
  17858. GMOFILES=
  17859. for lang in $ALL_LINGUAS; do
  17860. POFILES="$POFILES $srcdirpre$lang.po"
  17861. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  17862. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  17863. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  17864. done
  17865. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  17866. # environment variable.
  17867. INST_LINGUAS=
  17868. if test -n "$ALL_LINGUAS"; then
  17869. for presentlang in $ALL_LINGUAS; do
  17870. useit=no
  17871. if test "%UNSET%" != "$LINGUAS"; then
  17872. desiredlanguages="$LINGUAS"
  17873. else
  17874. desiredlanguages="$ALL_LINGUAS"
  17875. fi
  17876. for desiredlang in $desiredlanguages; do
  17877. # Use the presentlang catalog if desiredlang is
  17878. # a. equal to presentlang, or
  17879. # b. a variant of presentlang (because in this case,
  17880. # presentlang can be used as a fallback for messages
  17881. # which are not translated in the desiredlang catalog).
  17882. case "$desiredlang" in
  17883. "$presentlang"*) useit=yes;;
  17884. esac
  17885. done
  17886. if test $useit = yes; then
  17887. INST_LINGUAS="$INST_LINGUAS $presentlang"
  17888. fi
  17889. done
  17890. fi
  17891. CATALOGS=
  17892. if test -n "$INST_LINGUAS"; then
  17893. for lang in $INST_LINGUAS; do
  17894. CATALOGS="$CATALOGS $lang.gmo"
  17895. done
  17896. fi
  17897. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  17898. 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"
  17899. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  17900. if test -f "$f"; then
  17901. case "$f" in
  17902. *.orig | *.bak | *~) ;;
  17903. *) cat "$f" >> "$ac_dir/Makefile" ;;
  17904. esac
  17905. fi
  17906. done
  17907. fi
  17908. ;;
  17909. esac
  17910. done ;;
  17911. esac
  17912. done # for ac_tag
  17913. { (exit 0); exit 0; }
  17914. _ACEOF
  17915. chmod +x $CONFIG_STATUS
  17916. ac_clean_files=$ac_clean_files_save
  17917. # configure is writing to config.log, and then calls config.status.
  17918. # config.status does its own redirection, appending to config.log.
  17919. # Unfortunately, on DOS this fails, as config.log is still kept open
  17920. # by configure, so config.status won't be able to write to it; its
  17921. # output is simply discarded. So we exec the FD to /dev/null,
  17922. # effectively closing config.log, so it can be properly (re)opened and
  17923. # appended to by config.status. When coming back to configure, we
  17924. # need to make the FD available again.
  17925. if test "$no_create" != yes; then
  17926. ac_cs_success=:
  17927. ac_config_status_args=
  17928. test "$silent" = yes &&
  17929. ac_config_status_args="$ac_config_status_args --quiet"
  17930. exec 5>/dev/null
  17931. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17932. exec 5>>config.log
  17933. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17934. # would make configure fail if this is the last instruction.
  17935. $ac_cs_success || { (exit 1); exit 1; }
  17936. fi
  17937. echo " "
  17938. echo "Build: $build"
  17939. echo "Target: $target"
  17940. echo "Install prefix: $prefix"
  17941. echo "CFLAGS: $CFLAGS"
  17942. echo "CPPFLAGS: $CPPFLAGS"
  17943. echo "LDFLAGS: $LDFLAGS"
  17944. echo "LIBS: $LIBS"
  17945. echo "GnuTLS: $have_libgnutls"
  17946. echo "OpenSSL: $have_openssl"
  17947. echo "LibXML2: $have_libxml2"
  17948. echo "LibAres: $have_libares"
  17949. echo "LibCares: $have_libcares"
  17950. echo "Bittorrent: $enable_bittorrent"
  17951. echo "Metalink: $enable_metalink"