configure 688 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for aria2 1.3.3.
  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, 2007, 2008 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. # Pre-4.2 versions of Zsh do 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. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  43. as_echo='printf %s\n'
  44. as_echo_n='printf %s'
  45. else
  46. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  47. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  48. as_echo_n='/usr/ucb/echo -n'
  49. else
  50. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  51. as_echo_n_body='eval
  52. arg=$1;
  53. case $arg in
  54. *"$as_nl"*)
  55. expr "X$arg" : "X\\(.*\\)$as_nl";
  56. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  57. esac;
  58. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  59. '
  60. export as_echo_n_body
  61. as_echo_n='sh -c $as_echo_n_body as_echo'
  62. fi
  63. export as_echo_body
  64. as_echo='sh -c $as_echo_body as_echo'
  65. fi
  66. # The user is always right.
  67. if test "${PATH_SEPARATOR+set}" != set; then
  68. PATH_SEPARATOR=:
  69. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  70. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  71. PATH_SEPARATOR=';'
  72. }
  73. fi
  74. # Support unset when possible.
  75. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  76. as_unset=unset
  77. else
  78. as_unset=false
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. { (exit 1); exit 1; }
  107. fi
  108. # Work around bugs in pre-3.0 UWIN ksh.
  109. for as_var in ENV MAIL MAILPATH
  110. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # Required to use basename.
  121. if expr a : '\(a\)' >/dev/null 2>&1 &&
  122. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  123. as_expr=expr
  124. else
  125. as_expr=false
  126. fi
  127. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  128. as_basename=basename
  129. else
  130. as_basename=false
  131. fi
  132. # Name of the executable.
  133. as_me=`$as_basename -- "$0" ||
  134. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  135. X"$0" : 'X\(//\)$' \| \
  136. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  137. $as_echo X/"$0" |
  138. sed '/^.*\/\([^/][^/]*\)\/*$/{
  139. s//\1/
  140. q
  141. }
  142. /^X\/\(\/\/\)$/{
  143. s//\1/
  144. q
  145. }
  146. /^X\/\(\/\).*/{
  147. s//\1/
  148. q
  149. }
  150. s/.*/./; q'`
  151. # CDPATH.
  152. $as_unset CDPATH
  153. if test "x$CONFIG_SHELL" = x; then
  154. if (eval ":") 2>/dev/null; then
  155. as_have_required=yes
  156. else
  157. as_have_required=no
  158. fi
  159. if test $as_have_required = yes && (eval ":
  160. (as_func_return () {
  161. (exit \$1)
  162. }
  163. as_func_success () {
  164. as_func_return 0
  165. }
  166. as_func_failure () {
  167. as_func_return 1
  168. }
  169. as_func_ret_success () {
  170. return 0
  171. }
  172. as_func_ret_failure () {
  173. return 1
  174. }
  175. exitcode=0
  176. if as_func_success; then
  177. :
  178. else
  179. exitcode=1
  180. echo as_func_success failed.
  181. fi
  182. if as_func_failure; then
  183. exitcode=1
  184. echo as_func_failure succeeded.
  185. fi
  186. if as_func_ret_success; then
  187. :
  188. else
  189. exitcode=1
  190. echo as_func_ret_success failed.
  191. fi
  192. if as_func_ret_failure; then
  193. exitcode=1
  194. echo as_func_ret_failure succeeded.
  195. fi
  196. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  197. :
  198. else
  199. exitcode=1
  200. echo positional parameters were not saved.
  201. fi
  202. test \$exitcode = 0) || { (exit 1); exit 1; }
  203. (
  204. as_lineno_1=\$LINENO
  205. as_lineno_2=\$LINENO
  206. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  207. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  208. ") 2> /dev/null; then
  209. :
  210. else
  211. as_candidate_shells=
  212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  213. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  214. do
  215. IFS=$as_save_IFS
  216. test -z "$as_dir" && as_dir=.
  217. case $as_dir in
  218. /*)
  219. for as_base in sh bash ksh sh5; do
  220. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  221. done;;
  222. esac
  223. done
  224. IFS=$as_save_IFS
  225. for as_shell in $as_candidate_shells $SHELL; do
  226. # Try only shells that exist, to save several forks.
  227. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  228. { ("$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. # Pre-4.2 versions of Zsh do 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. _ASEOF
  243. }; then
  244. CONFIG_SHELL=$as_shell
  245. as_have_required=yes
  246. if { "$as_shell" 2> /dev/null <<\_ASEOF
  247. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  248. emulate sh
  249. NULLCMD=:
  250. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  251. # is contrary to our usage. Disable this feature.
  252. alias -g '${1+"$@"}'='"$@"'
  253. setopt NO_GLOB_SUBST
  254. else
  255. case `(set -o) 2>/dev/null` in
  256. *posix*) set -o posix ;;
  257. esac
  258. fi
  259. :
  260. (as_func_return () {
  261. (exit $1)
  262. }
  263. as_func_success () {
  264. as_func_return 0
  265. }
  266. as_func_failure () {
  267. as_func_return 1
  268. }
  269. as_func_ret_success () {
  270. return 0
  271. }
  272. as_func_ret_failure () {
  273. return 1
  274. }
  275. exitcode=0
  276. if as_func_success; then
  277. :
  278. else
  279. exitcode=1
  280. echo as_func_success failed.
  281. fi
  282. if as_func_failure; then
  283. exitcode=1
  284. echo as_func_failure succeeded.
  285. fi
  286. if as_func_ret_success; then
  287. :
  288. else
  289. exitcode=1
  290. echo as_func_ret_success failed.
  291. fi
  292. if as_func_ret_failure; then
  293. exitcode=1
  294. echo as_func_ret_failure succeeded.
  295. fi
  296. if ( set x; as_func_ret_success y && test x = "$1" ); then
  297. :
  298. else
  299. exitcode=1
  300. echo positional parameters were not saved.
  301. fi
  302. test $exitcode = 0) || { (exit 1); exit 1; }
  303. (
  304. as_lineno_1=$LINENO
  305. as_lineno_2=$LINENO
  306. test "x$as_lineno_1" != "x$as_lineno_2" &&
  307. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  308. _ASEOF
  309. }; then
  310. break
  311. fi
  312. fi
  313. done
  314. if test "x$CONFIG_SHELL" != x; then
  315. for as_var in BASH_ENV ENV
  316. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  317. done
  318. export CONFIG_SHELL
  319. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  320. fi
  321. if test $as_have_required = no; then
  322. echo This script requires a shell more modern than all the
  323. echo shells that I found on your system. Please install a
  324. echo modern shell, or manually run the script under such a
  325. echo shell if you do have one.
  326. { (exit 1); exit 1; }
  327. fi
  328. fi
  329. fi
  330. (eval "as_func_return () {
  331. (exit \$1)
  332. }
  333. as_func_success () {
  334. as_func_return 0
  335. }
  336. as_func_failure () {
  337. as_func_return 1
  338. }
  339. as_func_ret_success () {
  340. return 0
  341. }
  342. as_func_ret_failure () {
  343. return 1
  344. }
  345. exitcode=0
  346. if as_func_success; then
  347. :
  348. else
  349. exitcode=1
  350. echo as_func_success failed.
  351. fi
  352. if as_func_failure; then
  353. exitcode=1
  354. echo as_func_failure succeeded.
  355. fi
  356. if as_func_ret_success; then
  357. :
  358. else
  359. exitcode=1
  360. echo as_func_ret_success failed.
  361. fi
  362. if as_func_ret_failure; then
  363. exitcode=1
  364. echo as_func_ret_failure succeeded.
  365. fi
  366. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  367. :
  368. else
  369. exitcode=1
  370. echo positional parameters were not saved.
  371. fi
  372. test \$exitcode = 0") || {
  373. echo No shell found that supports shell functions.
  374. echo Please tell bug-autoconf@gnu.org about your system,
  375. echo including any error possibly output before this message.
  376. echo This can help us improve future autoconf versions.
  377. echo Configuration will now proceed without shell functions.
  378. }
  379. as_lineno_1=$LINENO
  380. as_lineno_2=$LINENO
  381. test "x$as_lineno_1" != "x$as_lineno_2" &&
  382. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  383. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  384. # uniformly replaced by the line number. The first 'sed' inserts a
  385. # line-number line after each line using $LINENO; the second 'sed'
  386. # does the real work. The second script uses 'N' to pair each
  387. # line-number line with the line containing $LINENO, and appends
  388. # trailing '-' during substitution so that $LINENO is not a special
  389. # case at line end.
  390. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  391. # scripts with optimization help from Paolo Bonzini. Blame Lee
  392. # E. McMahon (1931-1989) for sed's syntax. :-)
  393. sed -n '
  394. p
  395. /[$]LINENO/=
  396. ' <$as_myself |
  397. sed '
  398. s/[$]LINENO.*/&-/
  399. t lineno
  400. b
  401. :lineno
  402. N
  403. :loop
  404. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  405. t loop
  406. s/-\n.*//
  407. ' >$as_me.lineno &&
  408. chmod +x "$as_me.lineno" ||
  409. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  410. { (exit 1); exit 1; }; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  419. as_dirname=dirname
  420. else
  421. as_dirname=false
  422. fi
  423. ECHO_C= ECHO_N= ECHO_T=
  424. case `echo -n x` in
  425. -n*)
  426. case `echo 'x\c'` in
  427. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  428. *) ECHO_C='\c';;
  429. esac;;
  430. *)
  431. ECHO_N='-n';;
  432. esac
  433. if expr a : '\(a\)' >/dev/null 2>&1 &&
  434. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  435. as_expr=expr
  436. else
  437. as_expr=false
  438. fi
  439. rm -f conf$$ conf$$.exe conf$$.file
  440. if test -d conf$$.dir; then
  441. rm -f conf$$.dir/conf$$.file
  442. else
  443. rm -f conf$$.dir
  444. mkdir conf$$.dir 2>/dev/null
  445. fi
  446. if (echo >conf$$.file) 2>/dev/null; then
  447. if ln -s conf$$.file conf$$ 2>/dev/null; then
  448. as_ln_s='ln -s'
  449. # ... but there are two gotchas:
  450. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  451. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  452. # In both cases, we have to default to `cp -p'.
  453. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  454. as_ln_s='cp -p'
  455. elif ln conf$$.file conf$$ 2>/dev/null; then
  456. as_ln_s=ln
  457. else
  458. as_ln_s='cp -p'
  459. fi
  460. else
  461. as_ln_s='cp -p'
  462. fi
  463. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  464. rmdir conf$$.dir 2>/dev/null
  465. if mkdir -p . 2>/dev/null; then
  466. as_mkdir_p=:
  467. else
  468. test -d ./-p && rmdir ./-p
  469. as_mkdir_p=false
  470. fi
  471. if test -x / >/dev/null 2>&1; then
  472. as_test_x='test -x'
  473. else
  474. if ls -dL / >/dev/null 2>&1; then
  475. as_ls_L_option=L
  476. else
  477. as_ls_L_option=
  478. fi
  479. as_test_x='
  480. eval sh -c '\''
  481. if test -d "$1"; then
  482. test -d "$1/.";
  483. else
  484. case $1 in
  485. -*)set "./$1";;
  486. esac;
  487. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  488. ???[sx]*):;;*)false;;esac;fi
  489. '\'' sh
  490. '
  491. fi
  492. as_executable_p=$as_test_x
  493. # Sed expression to map a string onto a valid CPP name.
  494. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  495. # Sed expression to map a string onto a valid variable name.
  496. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  497. exec 7<&0 </dev/null 6>&1
  498. # Name of the host.
  499. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  500. # so uname gets run too.
  501. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  502. #
  503. # Initializations.
  504. #
  505. ac_default_prefix=/usr/local
  506. ac_clean_files=
  507. ac_config_libobj_dir=.
  508. LIBOBJS=
  509. cross_compiling=no
  510. subdirs=
  511. MFLAGS=
  512. MAKEFLAGS=
  513. SHELL=${CONFIG_SHELL-/bin/sh}
  514. # Identity of this package.
  515. PACKAGE_NAME='aria2'
  516. PACKAGE_TARNAME='aria2'
  517. PACKAGE_VERSION='1.3.3'
  518. PACKAGE_STRING='aria2 1.3.3'
  519. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  520. ac_unique_file="src/Socket.h"
  521. # Factoring default headers for most tests.
  522. ac_includes_default="\
  523. #include <stdio.h>
  524. #ifdef HAVE_SYS_TYPES_H
  525. # include <sys/types.h>
  526. #endif
  527. #ifdef HAVE_SYS_STAT_H
  528. # include <sys/stat.h>
  529. #endif
  530. #ifdef STDC_HEADERS
  531. # include <stdlib.h>
  532. # include <stddef.h>
  533. #else
  534. # ifdef HAVE_STDLIB_H
  535. # include <stdlib.h>
  536. # endif
  537. #endif
  538. #ifdef HAVE_STRING_H
  539. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  540. # include <memory.h>
  541. # endif
  542. # include <string.h>
  543. #endif
  544. #ifdef HAVE_STRINGS_H
  545. # include <strings.h>
  546. #endif
  547. #ifdef HAVE_INTTYPES_H
  548. # include <inttypes.h>
  549. #endif
  550. #ifdef HAVE_STDINT_H
  551. # include <stdint.h>
  552. #endif
  553. #ifdef HAVE_UNISTD_H
  554. # include <unistd.h>
  555. #endif"
  556. gt_needs=
  557. ac_header_list=
  558. ac_func_list=
  559. ac_subst_vars='LTLIBOBJS
  560. HAVE_TIMEGM_FALSE
  561. HAVE_TIMEGM_TRUE
  562. HAVE_STRPTIME_FALSE
  563. HAVE_STRPTIME_TRUE
  564. HAVE_LOCALTIME_R_FALSE
  565. HAVE_LOCALTIME_R_TRUE
  566. HAVE_INET_ATON_FALSE
  567. HAVE_INET_ATON_TRUE
  568. HAVE_GETTIMEOFDAY_FALSE
  569. HAVE_GETTIMEOFDAY_TRUE
  570. HAVE_GETADDRINFO_FALSE
  571. HAVE_GETADDRINFO_TRUE
  572. HAVE_GAI_STRERROR_FALSE
  573. HAVE_GAI_STRERROR_TRUE
  574. HAVE_BASENAME_FALSE
  575. HAVE_BASENAME_TRUE
  576. HAVE_ASCTIME_R_FALSE
  577. HAVE_ASCTIME_R_TRUE
  578. HAVE_POSIX_FALLOCATE_FALSE
  579. HAVE_POSIX_FALLOCATE_TRUE
  580. HAVE_EPOLL_FALSE
  581. HAVE_EPOLL_TRUE
  582. LIBOBJS
  583. POSUB
  584. LTLIBINTL
  585. LIBINTL
  586. INTLLIBS
  587. INTL_LIBTOOL_SUFFIX_PREFIX
  588. INTLOBJS
  589. GENCAT
  590. INSTOBJEXT
  591. DATADIRNAME
  592. CATOBJEXT
  593. USE_INCLUDED_LIBINTL
  594. BUILD_INCLUDED_LIBINTL
  595. LTLIBC
  596. WINDRES
  597. WOE32
  598. WOE32DLL
  599. HAVE_WPRINTF
  600. HAVE_SNPRINTF
  601. HAVE_ASPRINTF
  602. HAVE_POSIX_PRINTF
  603. INTL_MACOSX_LIBS
  604. GLIBC21
  605. INTLBISON
  606. LTLIBICONV
  607. LIBICONV
  608. LTLIBMULTITHREAD
  609. LIBMULTITHREAD
  610. LTLIBTHREAD
  611. LIBTHREAD
  612. LIBPTH_PREFIX
  613. LTLIBPTH
  614. LIBPTH
  615. PRI_MACROS_BROKEN
  616. HAVE_VISIBILITY
  617. CFLAG_VISIBILITY
  618. GLIBC2
  619. XGETTEXT_EXTRA_OPTIONS
  620. MSGMERGE
  621. XGETTEXT_015
  622. XGETTEXT
  623. GMSGFMT_015
  624. MSGFMT_015
  625. GMSGFMT
  626. MSGFMT
  627. GETTEXT_MACRO_VERSION
  628. USE_NLS
  629. ALLOCA
  630. HAVE_SQLITE3_FALSE
  631. HAVE_SQLITE3_TRUE
  632. HAVE_LIBZ_FALSE
  633. HAVE_LIBZ_TRUE
  634. ENABLE_ASYNC_DNS_FALSE
  635. ENABLE_ASYNC_DNS_TRUE
  636. ENABLE_LIBEXPAT_FALSE
  637. ENABLE_LIBEXPAT_TRUE
  638. ENABLE_LIBXML2_FALSE
  639. ENABLE_LIBXML2_TRUE
  640. ENABLE_METALINK_FALSE
  641. ENABLE_METALINK_TRUE
  642. ENABLE_BITTORRENT_FALSE
  643. ENABLE_BITTORRENT_TRUE
  644. ENABLE_MESSAGE_DIGEST_FALSE
  645. ENABLE_MESSAGE_DIGEST_TRUE
  646. HAVE_LIBSSL_FALSE
  647. HAVE_LIBSSL_TRUE
  648. HAVE_LIBGNUTLS_FALSE
  649. HAVE_LIBGNUTLS_TRUE
  650. ca_bundle
  651. ENABLE_SSL_FALSE
  652. ENABLE_SSL_TRUE
  653. LIBZ_CPPFLAGS
  654. LIBZ_LIBS
  655. LIBCARES_CPPFLAGS
  656. LIBCARES_LIBS
  657. OPENSSL_CFLAGS
  658. OPENSSL_LIBS
  659. LIBGCRYPT_LIBS
  660. LIBGCRYPT_CFLAGS
  661. LIBGCRYPT_CONFIG
  662. LIBGNUTLS_LIBS
  663. LIBGNUTLS_CFLAGS
  664. LIBGNUTLS_CONFIG
  665. SQLITE3_CPPFLAGS
  666. SQLITE3_LIBS
  667. LIBEXPAT_CPPFLAGS
  668. LIBEXPAT_LIBS
  669. XML_LIBS
  670. XML_CPPFLAGS
  671. XML2_CONFIG
  672. EGREP
  673. GREP
  674. CXXCPP
  675. YFLAGS
  676. YACC
  677. RANLIB
  678. am__fastdepCC_FALSE
  679. am__fastdepCC_TRUE
  680. CCDEPMODE
  681. ac_ct_CC
  682. CFLAGS
  683. CC
  684. am__fastdepCXX_FALSE
  685. am__fastdepCXX_TRUE
  686. CXXDEPMODE
  687. AMDEPBACKSLASH
  688. AMDEP_FALSE
  689. AMDEP_TRUE
  690. am__quote
  691. am__include
  692. DEPDIR
  693. OBJEXT
  694. EXEEXT
  695. ac_ct_CXX
  696. CPPFLAGS
  697. LDFLAGS
  698. CXXFLAGS
  699. CXX
  700. WINSOCK_LIBS
  701. CPPUNIT_LIBS
  702. CPPUNIT_CFLAGS
  703. CPPUNIT_CONFIG
  704. am__untar
  705. am__tar
  706. AMTAR
  707. am__leading_dot
  708. SET_MAKE
  709. AWK
  710. mkdir_p
  711. MKDIR_P
  712. INSTALL_STRIP_PROGRAM
  713. STRIP
  714. install_sh
  715. MAKEINFO
  716. AUTOHEADER
  717. AUTOMAKE
  718. AUTOCONF
  719. ACLOCAL
  720. VERSION
  721. PACKAGE
  722. CYGPATH_W
  723. am__isrc
  724. INSTALL_DATA
  725. INSTALL_SCRIPT
  726. INSTALL_PROGRAM
  727. target_os
  728. target_vendor
  729. target_cpu
  730. target
  731. host_os
  732. host_vendor
  733. host_cpu
  734. host
  735. build_os
  736. build_vendor
  737. build_cpu
  738. build
  739. target_alias
  740. host_alias
  741. build_alias
  742. LIBS
  743. ECHO_T
  744. ECHO_N
  745. ECHO_C
  746. DEFS
  747. mandir
  748. localedir
  749. libdir
  750. psdir
  751. pdfdir
  752. dvidir
  753. htmldir
  754. infodir
  755. docdir
  756. oldincludedir
  757. includedir
  758. localstatedir
  759. sharedstatedir
  760. sysconfdir
  761. datadir
  762. datarootdir
  763. libexecdir
  764. sbindir
  765. bindir
  766. program_transform_name
  767. prefix
  768. exec_prefix
  769. PACKAGE_BUGREPORT
  770. PACKAGE_STRING
  771. PACKAGE_VERSION
  772. PACKAGE_TARNAME
  773. PACKAGE_NAME
  774. PATH_SEPARATOR
  775. SHELL'
  776. ac_subst_files=''
  777. ac_user_opts='
  778. enable_option_checking
  779. with_cppunit_prefix
  780. with_cppunit_exec_prefix
  781. with_gnutls
  782. with_openssl
  783. with_sqlite3
  784. with_libxml2
  785. with_libexpat
  786. with_libcares
  787. with_libz
  788. enable_bittorrent
  789. enable_metalink
  790. enable_epoll
  791. with_ca_bundle
  792. enable_dependency_tracking
  793. with_xml_prefix
  794. with_xml_exec_prefix
  795. enable_xmltest
  796. with_libexpat_prefix
  797. with_sqlite3_prefix
  798. with_libgnutls_prefix
  799. with_libgcrypt_prefix
  800. with_openssl_prefix
  801. with_libcares_prefix
  802. with_libz_prefix
  803. enable_largefile
  804. enable_nls
  805. enable_threads
  806. with_gnu_ld
  807. enable_rpath
  808. with_libpth_prefix
  809. with_libiconv_prefix
  810. with_included_gettext
  811. with_libintl_prefix
  812. '
  813. ac_precious_vars='build_alias
  814. host_alias
  815. target_alias
  816. CXX
  817. CXXFLAGS
  818. LDFLAGS
  819. LIBS
  820. CPPFLAGS
  821. CCC
  822. CC
  823. CFLAGS
  824. YACC
  825. YFLAGS
  826. CXXCPP'
  827. # Initialize some variables set by options.
  828. ac_init_help=
  829. ac_init_version=false
  830. ac_unrecognized_opts=
  831. ac_unrecognized_sep=
  832. # The variables have the same names as the options, with
  833. # dashes changed to underlines.
  834. cache_file=/dev/null
  835. exec_prefix=NONE
  836. no_create=
  837. no_recursion=
  838. prefix=NONE
  839. program_prefix=NONE
  840. program_suffix=NONE
  841. program_transform_name=s,x,x,
  842. silent=
  843. site=
  844. srcdir=
  845. verbose=
  846. x_includes=NONE
  847. x_libraries=NONE
  848. # Installation directory options.
  849. # These are left unexpanded so users can "make install exec_prefix=/foo"
  850. # and all the variables that are supposed to be based on exec_prefix
  851. # by default will actually change.
  852. # Use braces instead of parens because sh, perl, etc. also accept them.
  853. # (The list follows the same order as the GNU Coding Standards.)
  854. bindir='${exec_prefix}/bin'
  855. sbindir='${exec_prefix}/sbin'
  856. libexecdir='${exec_prefix}/libexec'
  857. datarootdir='${prefix}/share'
  858. datadir='${datarootdir}'
  859. sysconfdir='${prefix}/etc'
  860. sharedstatedir='${prefix}/com'
  861. localstatedir='${prefix}/var'
  862. includedir='${prefix}/include'
  863. oldincludedir='/usr/include'
  864. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  865. infodir='${datarootdir}/info'
  866. htmldir='${docdir}'
  867. dvidir='${docdir}'
  868. pdfdir='${docdir}'
  869. psdir='${docdir}'
  870. libdir='${exec_prefix}/lib'
  871. localedir='${datarootdir}/locale'
  872. mandir='${datarootdir}/man'
  873. ac_prev=
  874. ac_dashdash=
  875. for ac_option
  876. do
  877. # If the previous option needs an argument, assign it.
  878. if test -n "$ac_prev"; then
  879. eval $ac_prev=\$ac_option
  880. ac_prev=
  881. continue
  882. fi
  883. case $ac_option in
  884. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  885. *) ac_optarg=yes ;;
  886. esac
  887. # Accept the important Cygnus configure options, so we can diagnose typos.
  888. case $ac_dashdash$ac_option in
  889. --)
  890. ac_dashdash=yes ;;
  891. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  892. ac_prev=bindir ;;
  893. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  894. bindir=$ac_optarg ;;
  895. -build | --build | --buil | --bui | --bu)
  896. ac_prev=build_alias ;;
  897. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  898. build_alias=$ac_optarg ;;
  899. -cache-file | --cache-file | --cache-fil | --cache-fi \
  900. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  901. ac_prev=cache_file ;;
  902. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  903. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  904. cache_file=$ac_optarg ;;
  905. --config-cache | -C)
  906. cache_file=config.cache ;;
  907. -datadir | --datadir | --datadi | --datad)
  908. ac_prev=datadir ;;
  909. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  910. datadir=$ac_optarg ;;
  911. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  912. | --dataroo | --dataro | --datar)
  913. ac_prev=datarootdir ;;
  914. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  915. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  916. datarootdir=$ac_optarg ;;
  917. -disable-* | --disable-*)
  918. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  919. # Reject names that are not valid shell variable names.
  920. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  921. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  922. { (exit 1); exit 1; }; }
  923. ac_useropt_orig=$ac_useropt
  924. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  925. case $ac_user_opts in
  926. *"
  927. "enable_$ac_useropt"
  928. "*) ;;
  929. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  930. ac_unrecognized_sep=', ';;
  931. esac
  932. eval enable_$ac_useropt=no ;;
  933. -docdir | --docdir | --docdi | --doc | --do)
  934. ac_prev=docdir ;;
  935. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  936. docdir=$ac_optarg ;;
  937. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  938. ac_prev=dvidir ;;
  939. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  940. dvidir=$ac_optarg ;;
  941. -enable-* | --enable-*)
  942. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  943. # Reject names that are not valid shell variable names.
  944. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  945. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  946. { (exit 1); exit 1; }; }
  947. ac_useropt_orig=$ac_useropt
  948. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  949. case $ac_user_opts in
  950. *"
  951. "enable_$ac_useropt"
  952. "*) ;;
  953. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  954. ac_unrecognized_sep=', ';;
  955. esac
  956. eval enable_$ac_useropt=\$ac_optarg ;;
  957. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  958. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  959. | --exec | --exe | --ex)
  960. ac_prev=exec_prefix ;;
  961. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  962. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  963. | --exec=* | --exe=* | --ex=*)
  964. exec_prefix=$ac_optarg ;;
  965. -gas | --gas | --ga | --g)
  966. # Obsolete; use --with-gas.
  967. with_gas=yes ;;
  968. -help | --help | --hel | --he | -h)
  969. ac_init_help=long ;;
  970. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  971. ac_init_help=recursive ;;
  972. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  973. ac_init_help=short ;;
  974. -host | --host | --hos | --ho)
  975. ac_prev=host_alias ;;
  976. -host=* | --host=* | --hos=* | --ho=*)
  977. host_alias=$ac_optarg ;;
  978. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  979. ac_prev=htmldir ;;
  980. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  981. | --ht=*)
  982. htmldir=$ac_optarg ;;
  983. -includedir | --includedir | --includedi | --included | --include \
  984. | --includ | --inclu | --incl | --inc)
  985. ac_prev=includedir ;;
  986. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  987. | --includ=* | --inclu=* | --incl=* | --inc=*)
  988. includedir=$ac_optarg ;;
  989. -infodir | --infodir | --infodi | --infod | --info | --inf)
  990. ac_prev=infodir ;;
  991. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  992. infodir=$ac_optarg ;;
  993. -libdir | --libdir | --libdi | --libd)
  994. ac_prev=libdir ;;
  995. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  996. libdir=$ac_optarg ;;
  997. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  998. | --libexe | --libex | --libe)
  999. ac_prev=libexecdir ;;
  1000. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1001. | --libexe=* | --libex=* | --libe=*)
  1002. libexecdir=$ac_optarg ;;
  1003. -localedir | --localedir | --localedi | --localed | --locale)
  1004. ac_prev=localedir ;;
  1005. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1006. localedir=$ac_optarg ;;
  1007. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1008. | --localstate | --localstat | --localsta | --localst | --locals)
  1009. ac_prev=localstatedir ;;
  1010. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1011. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1012. localstatedir=$ac_optarg ;;
  1013. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1014. ac_prev=mandir ;;
  1015. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1016. mandir=$ac_optarg ;;
  1017. -nfp | --nfp | --nf)
  1018. # Obsolete; use --without-fp.
  1019. with_fp=no ;;
  1020. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1021. | --no-cr | --no-c | -n)
  1022. no_create=yes ;;
  1023. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1024. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1025. no_recursion=yes ;;
  1026. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1027. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1028. | --oldin | --oldi | --old | --ol | --o)
  1029. ac_prev=oldincludedir ;;
  1030. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1031. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1032. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1033. oldincludedir=$ac_optarg ;;
  1034. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1035. ac_prev=prefix ;;
  1036. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1037. prefix=$ac_optarg ;;
  1038. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1039. | --program-pre | --program-pr | --program-p)
  1040. ac_prev=program_prefix ;;
  1041. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1042. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1043. program_prefix=$ac_optarg ;;
  1044. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1045. | --program-suf | --program-su | --program-s)
  1046. ac_prev=program_suffix ;;
  1047. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1048. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1049. program_suffix=$ac_optarg ;;
  1050. -program-transform-name | --program-transform-name \
  1051. | --program-transform-nam | --program-transform-na \
  1052. | --program-transform-n | --program-transform- \
  1053. | --program-transform | --program-transfor \
  1054. | --program-transfo | --program-transf \
  1055. | --program-trans | --program-tran \
  1056. | --progr-tra | --program-tr | --program-t)
  1057. ac_prev=program_transform_name ;;
  1058. -program-transform-name=* | --program-transform-name=* \
  1059. | --program-transform-nam=* | --program-transform-na=* \
  1060. | --program-transform-n=* | --program-transform-=* \
  1061. | --program-transform=* | --program-transfor=* \
  1062. | --program-transfo=* | --program-transf=* \
  1063. | --program-trans=* | --program-tran=* \
  1064. | --progr-tra=* | --program-tr=* | --program-t=*)
  1065. program_transform_name=$ac_optarg ;;
  1066. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1067. ac_prev=pdfdir ;;
  1068. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1069. pdfdir=$ac_optarg ;;
  1070. -psdir | --psdir | --psdi | --psd | --ps)
  1071. ac_prev=psdir ;;
  1072. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1073. psdir=$ac_optarg ;;
  1074. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1075. | -silent | --silent | --silen | --sile | --sil)
  1076. silent=yes ;;
  1077. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1078. ac_prev=sbindir ;;
  1079. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1080. | --sbi=* | --sb=*)
  1081. sbindir=$ac_optarg ;;
  1082. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1083. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1084. | --sharedst | --shareds | --shared | --share | --shar \
  1085. | --sha | --sh)
  1086. ac_prev=sharedstatedir ;;
  1087. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1088. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1089. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1090. | --sha=* | --sh=*)
  1091. sharedstatedir=$ac_optarg ;;
  1092. -site | --site | --sit)
  1093. ac_prev=site ;;
  1094. -site=* | --site=* | --sit=*)
  1095. site=$ac_optarg ;;
  1096. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1097. ac_prev=srcdir ;;
  1098. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1099. srcdir=$ac_optarg ;;
  1100. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1101. | --syscon | --sysco | --sysc | --sys | --sy)
  1102. ac_prev=sysconfdir ;;
  1103. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1104. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1105. sysconfdir=$ac_optarg ;;
  1106. -target | --target | --targe | --targ | --tar | --ta | --t)
  1107. ac_prev=target_alias ;;
  1108. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1109. target_alias=$ac_optarg ;;
  1110. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1111. verbose=yes ;;
  1112. -version | --version | --versio | --versi | --vers | -V)
  1113. ac_init_version=: ;;
  1114. -with-* | --with-*)
  1115. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1116. # Reject names that are not valid shell variable names.
  1117. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1118. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1119. { (exit 1); exit 1; }; }
  1120. ac_useropt_orig=$ac_useropt
  1121. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1122. case $ac_user_opts in
  1123. *"
  1124. "with_$ac_useropt"
  1125. "*) ;;
  1126. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1127. ac_unrecognized_sep=', ';;
  1128. esac
  1129. eval with_$ac_useropt=\$ac_optarg ;;
  1130. -without-* | --without-*)
  1131. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1132. # Reject names that are not valid shell variable names.
  1133. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1134. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1135. { (exit 1); exit 1; }; }
  1136. ac_useropt_orig=$ac_useropt
  1137. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1138. case $ac_user_opts in
  1139. *"
  1140. "with_$ac_useropt"
  1141. "*) ;;
  1142. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1143. ac_unrecognized_sep=', ';;
  1144. esac
  1145. eval with_$ac_useropt=no ;;
  1146. --x)
  1147. # Obsolete; use --with-x.
  1148. with_x=yes ;;
  1149. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1150. | --x-incl | --x-inc | --x-in | --x-i)
  1151. ac_prev=x_includes ;;
  1152. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1153. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1154. x_includes=$ac_optarg ;;
  1155. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1156. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1157. ac_prev=x_libraries ;;
  1158. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1159. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1160. x_libraries=$ac_optarg ;;
  1161. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1162. Try \`$0 --help' for more information." >&2
  1163. { (exit 1); exit 1; }; }
  1164. ;;
  1165. *=*)
  1166. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1167. # Reject names that are not valid shell variable names.
  1168. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1169. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1170. { (exit 1); exit 1; }; }
  1171. eval $ac_envvar=\$ac_optarg
  1172. export $ac_envvar ;;
  1173. *)
  1174. # FIXME: should be removed in autoconf 3.0.
  1175. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1176. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1177. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1178. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1179. ;;
  1180. esac
  1181. done
  1182. if test -n "$ac_prev"; then
  1183. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1184. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1185. { (exit 1); exit 1; }; }
  1186. fi
  1187. if test -n "$ac_unrecognized_opts"; then
  1188. case $enable_option_checking in
  1189. no) ;;
  1190. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1191. { (exit 1); exit 1; }; } ;;
  1192. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1193. esac
  1194. fi
  1195. # Check all directory arguments for consistency.
  1196. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1197. datadir sysconfdir sharedstatedir localstatedir includedir \
  1198. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1199. libdir localedir mandir
  1200. do
  1201. eval ac_val=\$$ac_var
  1202. # Remove trailing slashes.
  1203. case $ac_val in
  1204. */ )
  1205. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1206. eval $ac_var=\$ac_val;;
  1207. esac
  1208. # Be sure to have absolute directory names.
  1209. case $ac_val in
  1210. [\\/$]* | ?:[\\/]* ) continue;;
  1211. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1212. esac
  1213. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1214. { (exit 1); exit 1; }; }
  1215. done
  1216. # There might be people who depend on the old broken behavior: `$host'
  1217. # used to hold the argument of --host etc.
  1218. # FIXME: To remove some day.
  1219. build=$build_alias
  1220. host=$host_alias
  1221. target=$target_alias
  1222. # FIXME: To remove some day.
  1223. if test "x$host_alias" != x; then
  1224. if test "x$build_alias" = x; then
  1225. cross_compiling=maybe
  1226. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1227. If a cross compiler is detected then cross compile mode will be used." >&2
  1228. elif test "x$build_alias" != "x$host_alias"; then
  1229. cross_compiling=yes
  1230. fi
  1231. fi
  1232. ac_tool_prefix=
  1233. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1234. test "$silent" = yes && exec 6>/dev/null
  1235. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1236. ac_ls_di=`ls -di .` &&
  1237. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1238. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1239. { (exit 1); exit 1; }; }
  1240. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1241. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1242. { (exit 1); exit 1; }; }
  1243. # Find the source files, if location was not specified.
  1244. if test -z "$srcdir"; then
  1245. ac_srcdir_defaulted=yes
  1246. # Try the directory containing this script, then the parent directory.
  1247. ac_confdir=`$as_dirname -- "$as_myself" ||
  1248. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1249. X"$as_myself" : 'X\(//\)[^/]' \| \
  1250. X"$as_myself" : 'X\(//\)$' \| \
  1251. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1252. $as_echo X"$as_myself" |
  1253. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1254. s//\1/
  1255. q
  1256. }
  1257. /^X\(\/\/\)[^/].*/{
  1258. s//\1/
  1259. q
  1260. }
  1261. /^X\(\/\/\)$/{
  1262. s//\1/
  1263. q
  1264. }
  1265. /^X\(\/\).*/{
  1266. s//\1/
  1267. q
  1268. }
  1269. s/.*/./; q'`
  1270. srcdir=$ac_confdir
  1271. if test ! -r "$srcdir/$ac_unique_file"; then
  1272. srcdir=..
  1273. fi
  1274. else
  1275. ac_srcdir_defaulted=no
  1276. fi
  1277. if test ! -r "$srcdir/$ac_unique_file"; then
  1278. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1279. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1280. { (exit 1); exit 1; }; }
  1281. fi
  1282. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1283. ac_abs_confdir=`(
  1284. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1285. { (exit 1); exit 1; }; }
  1286. pwd)`
  1287. # When building in place, set srcdir=.
  1288. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1289. srcdir=.
  1290. fi
  1291. # Remove unnecessary trailing slashes from srcdir.
  1292. # Double slashes in file names in object file debugging info
  1293. # mess up M-x gdb in Emacs.
  1294. case $srcdir in
  1295. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1296. esac
  1297. for ac_var in $ac_precious_vars; do
  1298. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1299. eval ac_env_${ac_var}_value=\$${ac_var}
  1300. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1301. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1302. done
  1303. #
  1304. # Report the --help message.
  1305. #
  1306. if test "$ac_init_help" = "long"; then
  1307. # Omit some internal or obsolete options to make the list less imposing.
  1308. # This message is too long to be a string in the A/UX 3.1 sh.
  1309. cat <<_ACEOF
  1310. \`configure' configures aria2 1.3.3 to adapt to many kinds of systems.
  1311. Usage: $0 [OPTION]... [VAR=VALUE]...
  1312. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1313. VAR=VALUE. See below for descriptions of some of the useful variables.
  1314. Defaults for the options are specified in brackets.
  1315. Configuration:
  1316. -h, --help display this help and exit
  1317. --help=short display options specific to this package
  1318. --help=recursive display the short help of all the included packages
  1319. -V, --version display version information and exit
  1320. -q, --quiet, --silent do not print \`checking...' messages
  1321. --cache-file=FILE cache test results in FILE [disabled]
  1322. -C, --config-cache alias for \`--cache-file=config.cache'
  1323. -n, --no-create do not create output files
  1324. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1325. Installation directories:
  1326. --prefix=PREFIX install architecture-independent files in PREFIX
  1327. [$ac_default_prefix]
  1328. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1329. [PREFIX]
  1330. By default, \`make install' will install all the files in
  1331. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1332. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1333. for instance \`--prefix=\$HOME'.
  1334. For better control, use the options below.
  1335. Fine tuning of the installation directories:
  1336. --bindir=DIR user executables [EPREFIX/bin]
  1337. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1338. --libexecdir=DIR program executables [EPREFIX/libexec]
  1339. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1340. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1341. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1342. --libdir=DIR object code libraries [EPREFIX/lib]
  1343. --includedir=DIR C header files [PREFIX/include]
  1344. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1345. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1346. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1347. --infodir=DIR info documentation [DATAROOTDIR/info]
  1348. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1349. --mandir=DIR man documentation [DATAROOTDIR/man]
  1350. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1351. --htmldir=DIR html documentation [DOCDIR]
  1352. --dvidir=DIR dvi documentation [DOCDIR]
  1353. --pdfdir=DIR pdf documentation [DOCDIR]
  1354. --psdir=DIR ps documentation [DOCDIR]
  1355. _ACEOF
  1356. cat <<\_ACEOF
  1357. Program names:
  1358. --program-prefix=PREFIX prepend PREFIX to installed program names
  1359. --program-suffix=SUFFIX append SUFFIX to installed program names
  1360. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1361. System types:
  1362. --build=BUILD configure for building on BUILD [guessed]
  1363. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1364. --target=TARGET configure for building compilers for TARGET [HOST]
  1365. _ACEOF
  1366. fi
  1367. if test -n "$ac_init_help"; then
  1368. case $ac_init_help in
  1369. short | recursive ) echo "Configuration of aria2 1.3.3:";;
  1370. esac
  1371. cat <<\_ACEOF
  1372. Optional Features:
  1373. --disable-option-checking ignore unrecognized --enable/--with options
  1374. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1375. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1376. --enable-bittorrent enable bittorrent support.
  1377. --enable-metalink enable metalink support.
  1378. --enable-epoll enable epoll support.
  1379. --disable-dependency-tracking speeds up one-time build
  1380. --enable-dependency-tracking do not reject slow dependency extractors
  1381. --disable-xmltest Do not try to compile and run a test LIBXML program
  1382. --disable-largefile omit support for large files
  1383. --disable-nls do not use Native Language Support
  1384. --enable-threads={posix|solaris|pth|win32}
  1385. specify multithreading API
  1386. --disable-threads build without multithread safety
  1387. --disable-rpath do not hardcode runtime library paths
  1388. Optional Packages:
  1389. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1390. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1391. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1392. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1393. --with-gnutls use gnutls if it is installed.
  1394. --with-openssl use openssl if it is installed.
  1395. --with-sqlite3 use sqlite3 if it is installed.
  1396. --with-libxml2 use libxml2 if it is installed.
  1397. --with-libexpat use libexpat if it is installed.
  1398. --with-libcares use libcares if it is installed.
  1399. --with-libz use libz if it is installed.
  1400. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1401. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1402. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1403. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1404. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1405. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1406. --with-libgcrypt-prefix=PFX
  1407. prefix where LIBGCRYPT is installed (optional)
  1408. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1409. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1410. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1411. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1412. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1413. --without-libpth-prefix don't search for libpth in includedir and libdir
  1414. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1415. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1416. --with-included-gettext use the GNU gettext library included here
  1417. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1418. --without-libintl-prefix don't search for libintl in includedir and libdir
  1419. Some influential environment variables:
  1420. CXX C++ compiler command
  1421. CXXFLAGS C++ compiler flags
  1422. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1423. nonstandard directory <lib dir>
  1424. LIBS libraries to pass to the linker, e.g. -l<library>
  1425. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1426. you have headers in a nonstandard directory <include dir>
  1427. CC C compiler command
  1428. CFLAGS C compiler flags
  1429. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1430. the first program found out of: `bison -y', `byacc', `yacc'.
  1431. YFLAGS The list of arguments that will be passed by default to $YACC.
  1432. This script will default YFLAGS to the empty string to avoid a
  1433. default value of `-d' given by some make applications.
  1434. CXXCPP C++ preprocessor
  1435. Use these variables to override the choices made by `configure' or to help
  1436. it to find libraries and programs with nonstandard names/locations.
  1437. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1438. _ACEOF
  1439. ac_status=$?
  1440. fi
  1441. if test "$ac_init_help" = "recursive"; then
  1442. # If there are subdirs, report their specific --help.
  1443. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1444. test -d "$ac_dir" ||
  1445. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1446. continue
  1447. ac_builddir=.
  1448. case "$ac_dir" in
  1449. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1450. *)
  1451. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1452. # A ".." for each directory in $ac_dir_suffix.
  1453. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1454. case $ac_top_builddir_sub in
  1455. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1456. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1457. esac ;;
  1458. esac
  1459. ac_abs_top_builddir=$ac_pwd
  1460. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1461. # for backward compatibility:
  1462. ac_top_builddir=$ac_top_build_prefix
  1463. case $srcdir in
  1464. .) # We are building in place.
  1465. ac_srcdir=.
  1466. ac_top_srcdir=$ac_top_builddir_sub
  1467. ac_abs_top_srcdir=$ac_pwd ;;
  1468. [\\/]* | ?:[\\/]* ) # Absolute name.
  1469. ac_srcdir=$srcdir$ac_dir_suffix;
  1470. ac_top_srcdir=$srcdir
  1471. ac_abs_top_srcdir=$srcdir ;;
  1472. *) # Relative name.
  1473. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1474. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1475. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1476. esac
  1477. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1478. cd "$ac_dir" || { ac_status=$?; continue; }
  1479. # Check for guested configure.
  1480. if test -f "$ac_srcdir/configure.gnu"; then
  1481. echo &&
  1482. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1483. elif test -f "$ac_srcdir/configure"; then
  1484. echo &&
  1485. $SHELL "$ac_srcdir/configure" --help=recursive
  1486. else
  1487. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1488. fi || ac_status=$?
  1489. cd "$ac_pwd" || { ac_status=$?; break; }
  1490. done
  1491. fi
  1492. test -n "$ac_init_help" && exit $ac_status
  1493. if $ac_init_version; then
  1494. cat <<\_ACEOF
  1495. aria2 configure 1.3.3
  1496. generated by GNU Autoconf 2.63
  1497. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1498. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1499. This configure script is free software; the Free Software Foundation
  1500. gives unlimited permission to copy, distribute and modify it.
  1501. _ACEOF
  1502. exit
  1503. fi
  1504. cat >config.log <<_ACEOF
  1505. This file contains any messages produced by compilers while
  1506. running configure, to aid debugging if configure makes a mistake.
  1507. It was created by aria2 $as_me 1.3.3, which was
  1508. generated by GNU Autoconf 2.63. Invocation command line was
  1509. $ $0 $@
  1510. _ACEOF
  1511. exec 5>>config.log
  1512. {
  1513. cat <<_ASUNAME
  1514. ## --------- ##
  1515. ## Platform. ##
  1516. ## --------- ##
  1517. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1518. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1519. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1520. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1521. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1522. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1523. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1524. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1525. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1526. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1527. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1528. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1529. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1530. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1531. _ASUNAME
  1532. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1533. for as_dir in $PATH
  1534. do
  1535. IFS=$as_save_IFS
  1536. test -z "$as_dir" && as_dir=.
  1537. $as_echo "PATH: $as_dir"
  1538. done
  1539. IFS=$as_save_IFS
  1540. } >&5
  1541. cat >&5 <<_ACEOF
  1542. ## ----------- ##
  1543. ## Core tests. ##
  1544. ## ----------- ##
  1545. _ACEOF
  1546. # Keep a trace of the command line.
  1547. # Strip out --no-create and --no-recursion so they do not pile up.
  1548. # Strip out --silent because we don't want to record it for future runs.
  1549. # Also quote any args containing shell meta-characters.
  1550. # Make two passes to allow for proper duplicate-argument suppression.
  1551. ac_configure_args=
  1552. ac_configure_args0=
  1553. ac_configure_args1=
  1554. ac_must_keep_next=false
  1555. for ac_pass in 1 2
  1556. do
  1557. for ac_arg
  1558. do
  1559. case $ac_arg in
  1560. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1561. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1562. | -silent | --silent | --silen | --sile | --sil)
  1563. continue ;;
  1564. *\'*)
  1565. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1566. esac
  1567. case $ac_pass in
  1568. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1569. 2)
  1570. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1571. if test $ac_must_keep_next = true; then
  1572. ac_must_keep_next=false # Got value, back to normal.
  1573. else
  1574. case $ac_arg in
  1575. *=* | --config-cache | -C | -disable-* | --disable-* \
  1576. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1577. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1578. | -with-* | --with-* | -without-* | --without-* | --x)
  1579. case "$ac_configure_args0 " in
  1580. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1581. esac
  1582. ;;
  1583. -* ) ac_must_keep_next=true ;;
  1584. esac
  1585. fi
  1586. ac_configure_args="$ac_configure_args '$ac_arg'"
  1587. ;;
  1588. esac
  1589. done
  1590. done
  1591. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1592. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1593. # When interrupted or exit'd, cleanup temporary files, and complete
  1594. # config.log. We remove comments because anyway the quotes in there
  1595. # would cause problems or look ugly.
  1596. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1597. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1598. trap 'exit_status=$?
  1599. # Save into config.log some information that might help in debugging.
  1600. {
  1601. echo
  1602. cat <<\_ASBOX
  1603. ## ---------------- ##
  1604. ## Cache variables. ##
  1605. ## ---------------- ##
  1606. _ASBOX
  1607. echo
  1608. # The following way of writing the cache mishandles newlines in values,
  1609. (
  1610. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1611. eval ac_val=\$$ac_var
  1612. case $ac_val in #(
  1613. *${as_nl}*)
  1614. case $ac_var in #(
  1615. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1616. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1617. esac
  1618. case $ac_var in #(
  1619. _ | IFS | as_nl) ;; #(
  1620. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1621. *) $as_unset $ac_var ;;
  1622. esac ;;
  1623. esac
  1624. done
  1625. (set) 2>&1 |
  1626. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1627. *${as_nl}ac_space=\ *)
  1628. sed -n \
  1629. "s/'\''/'\''\\\\'\'''\''/g;
  1630. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1631. ;; #(
  1632. *)
  1633. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1634. ;;
  1635. esac |
  1636. sort
  1637. )
  1638. echo
  1639. cat <<\_ASBOX
  1640. ## ----------------- ##
  1641. ## Output variables. ##
  1642. ## ----------------- ##
  1643. _ASBOX
  1644. echo
  1645. for ac_var in $ac_subst_vars
  1646. do
  1647. eval ac_val=\$$ac_var
  1648. case $ac_val in
  1649. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1650. esac
  1651. $as_echo "$ac_var='\''$ac_val'\''"
  1652. done | sort
  1653. echo
  1654. if test -n "$ac_subst_files"; then
  1655. cat <<\_ASBOX
  1656. ## ------------------- ##
  1657. ## File substitutions. ##
  1658. ## ------------------- ##
  1659. _ASBOX
  1660. echo
  1661. for ac_var in $ac_subst_files
  1662. do
  1663. eval ac_val=\$$ac_var
  1664. case $ac_val in
  1665. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1666. esac
  1667. $as_echo "$ac_var='\''$ac_val'\''"
  1668. done | sort
  1669. echo
  1670. fi
  1671. if test -s confdefs.h; then
  1672. cat <<\_ASBOX
  1673. ## ----------- ##
  1674. ## confdefs.h. ##
  1675. ## ----------- ##
  1676. _ASBOX
  1677. echo
  1678. cat confdefs.h
  1679. echo
  1680. fi
  1681. test "$ac_signal" != 0 &&
  1682. $as_echo "$as_me: caught signal $ac_signal"
  1683. $as_echo "$as_me: exit $exit_status"
  1684. } >&5
  1685. rm -f core *.core core.conftest.* &&
  1686. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1687. exit $exit_status
  1688. ' 0
  1689. for ac_signal in 1 2 13 15; do
  1690. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1691. done
  1692. ac_signal=0
  1693. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1694. rm -f -r conftest* confdefs.h
  1695. # Predefined preprocessor variables.
  1696. cat >>confdefs.h <<_ACEOF
  1697. #define PACKAGE_NAME "$PACKAGE_NAME"
  1698. _ACEOF
  1699. cat >>confdefs.h <<_ACEOF
  1700. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1701. _ACEOF
  1702. cat >>confdefs.h <<_ACEOF
  1703. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1704. _ACEOF
  1705. cat >>confdefs.h <<_ACEOF
  1706. #define PACKAGE_STRING "$PACKAGE_STRING"
  1707. _ACEOF
  1708. cat >>confdefs.h <<_ACEOF
  1709. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1710. _ACEOF
  1711. # Let the site file select an alternate cache file if it wants to.
  1712. # Prefer an explicitly selected file to automatically selected ones.
  1713. ac_site_file1=NONE
  1714. ac_site_file2=NONE
  1715. if test -n "$CONFIG_SITE"; then
  1716. ac_site_file1=$CONFIG_SITE
  1717. elif test "x$prefix" != xNONE; then
  1718. ac_site_file1=$prefix/share/config.site
  1719. ac_site_file2=$prefix/etc/config.site
  1720. else
  1721. ac_site_file1=$ac_default_prefix/share/config.site
  1722. ac_site_file2=$ac_default_prefix/etc/config.site
  1723. fi
  1724. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1725. do
  1726. test "x$ac_site_file" = xNONE && continue
  1727. if test -r "$ac_site_file"; then
  1728. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1729. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1730. sed 's/^/| /' "$ac_site_file" >&5
  1731. . "$ac_site_file"
  1732. fi
  1733. done
  1734. if test -r "$cache_file"; then
  1735. # Some versions of bash will fail to source /dev/null (special
  1736. # files actually), so we avoid doing that.
  1737. if test -f "$cache_file"; then
  1738. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1739. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1740. case $cache_file in
  1741. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1742. *) . "./$cache_file";;
  1743. esac
  1744. fi
  1745. else
  1746. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1747. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1748. >$cache_file
  1749. fi
  1750. gt_needs="$gt_needs "
  1751. ac_header_list="$ac_header_list sys/time.h"
  1752. ac_header_list="$ac_header_list unistd.h"
  1753. ac_func_list="$ac_func_list alarm"
  1754. # Check that the precious variables saved in the cache have kept the same
  1755. # value.
  1756. ac_cache_corrupted=false
  1757. for ac_var in $ac_precious_vars; do
  1758. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1759. eval ac_new_set=\$ac_env_${ac_var}_set
  1760. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1761. eval ac_new_val=\$ac_env_${ac_var}_value
  1762. case $ac_old_set,$ac_new_set in
  1763. set,)
  1764. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1765. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1766. ac_cache_corrupted=: ;;
  1767. ,set)
  1768. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1769. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1770. ac_cache_corrupted=: ;;
  1771. ,);;
  1772. *)
  1773. if test "x$ac_old_val" != "x$ac_new_val"; then
  1774. # differences in whitespace do not lead to failure.
  1775. ac_old_val_w=`echo x $ac_old_val`
  1776. ac_new_val_w=`echo x $ac_new_val`
  1777. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1778. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1779. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1780. ac_cache_corrupted=:
  1781. else
  1782. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1783. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1784. eval $ac_var=\$ac_old_val
  1785. fi
  1786. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1787. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1788. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1789. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1790. fi;;
  1791. esac
  1792. # Pass precious variables to config.status.
  1793. if test "$ac_new_set" = set; then
  1794. case $ac_new_val in
  1795. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1796. *) ac_arg=$ac_var=$ac_new_val ;;
  1797. esac
  1798. case " $ac_configure_args " in
  1799. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1800. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1801. esac
  1802. fi
  1803. done
  1804. if $ac_cache_corrupted; then
  1805. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1806. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1807. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1808. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1809. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1810. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1811. { (exit 1); exit 1; }; }
  1812. fi
  1813. ac_ext=c
  1814. ac_cpp='$CPP $CPPFLAGS'
  1815. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1816. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1817. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1818. ac_aux_dir=
  1819. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1820. if test -f "$ac_dir/install-sh"; then
  1821. ac_aux_dir=$ac_dir
  1822. ac_install_sh="$ac_aux_dir/install-sh -c"
  1823. break
  1824. elif test -f "$ac_dir/install.sh"; then
  1825. ac_aux_dir=$ac_dir
  1826. ac_install_sh="$ac_aux_dir/install.sh -c"
  1827. break
  1828. elif test -f "$ac_dir/shtool"; then
  1829. ac_aux_dir=$ac_dir
  1830. ac_install_sh="$ac_aux_dir/shtool install -c"
  1831. break
  1832. fi
  1833. done
  1834. if test -z "$ac_aux_dir"; then
  1835. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1836. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1837. { (exit 1); exit 1; }; }
  1838. fi
  1839. # These three variables are undocumented and unsupported,
  1840. # and are intended to be withdrawn in a future Autoconf release.
  1841. # They can cause serious problems if a builder's source tree is in a directory
  1842. # whose full name contains unusual characters.
  1843. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1844. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1845. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1846. # Make sure we can run config.sub.
  1847. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1848. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1849. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1850. { (exit 1); exit 1; }; }
  1851. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  1852. $as_echo_n "checking build system type... " >&6; }
  1853. if test "${ac_cv_build+set}" = set; then
  1854. $as_echo_n "(cached) " >&6
  1855. else
  1856. ac_build_alias=$build_alias
  1857. test "x$ac_build_alias" = x &&
  1858. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1859. test "x$ac_build_alias" = x &&
  1860. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1861. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1862. { (exit 1); exit 1; }; }
  1863. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1864. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1865. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1866. { (exit 1); exit 1; }; }
  1867. fi
  1868. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1869. $as_echo "$ac_cv_build" >&6; }
  1870. case $ac_cv_build in
  1871. *-*-*) ;;
  1872. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1873. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  1874. { (exit 1); exit 1; }; };;
  1875. esac
  1876. build=$ac_cv_build
  1877. ac_save_IFS=$IFS; IFS='-'
  1878. set x $ac_cv_build
  1879. shift
  1880. build_cpu=$1
  1881. build_vendor=$2
  1882. shift; shift
  1883. # Remember, the first character of IFS is used to create $*,
  1884. # except with old shells:
  1885. build_os=$*
  1886. IFS=$ac_save_IFS
  1887. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1888. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  1889. $as_echo_n "checking host system type... " >&6; }
  1890. if test "${ac_cv_host+set}" = set; then
  1891. $as_echo_n "(cached) " >&6
  1892. else
  1893. if test "x$host_alias" = x; then
  1894. ac_cv_host=$ac_cv_build
  1895. else
  1896. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1897. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1898. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1899. { (exit 1); exit 1; }; }
  1900. fi
  1901. fi
  1902. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1903. $as_echo "$ac_cv_host" >&6; }
  1904. case $ac_cv_host in
  1905. *-*-*) ;;
  1906. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1907. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  1908. { (exit 1); exit 1; }; };;
  1909. esac
  1910. host=$ac_cv_host
  1911. ac_save_IFS=$IFS; IFS='-'
  1912. set x $ac_cv_host
  1913. shift
  1914. host_cpu=$1
  1915. host_vendor=$2
  1916. shift; shift
  1917. # Remember, the first character of IFS is used to create $*,
  1918. # except with old shells:
  1919. host_os=$*
  1920. IFS=$ac_save_IFS
  1921. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1922. { $as_echo "$as_me:$LINENO: checking target system type" >&5
  1923. $as_echo_n "checking target system type... " >&6; }
  1924. if test "${ac_cv_target+set}" = set; then
  1925. $as_echo_n "(cached) " >&6
  1926. else
  1927. if test "x$target_alias" = x; then
  1928. ac_cv_target=$ac_cv_host
  1929. else
  1930. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1931. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1932. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1933. { (exit 1); exit 1; }; }
  1934. fi
  1935. fi
  1936. { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1937. $as_echo "$ac_cv_target" >&6; }
  1938. case $ac_cv_target in
  1939. *-*-*) ;;
  1940. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1941. $as_echo "$as_me: error: invalid value of canonical target" >&2;}
  1942. { (exit 1); exit 1; }; };;
  1943. esac
  1944. target=$ac_cv_target
  1945. ac_save_IFS=$IFS; IFS='-'
  1946. set x $ac_cv_target
  1947. shift
  1948. target_cpu=$1
  1949. target_vendor=$2
  1950. shift; shift
  1951. # Remember, the first character of IFS is used to create $*,
  1952. # except with old shells:
  1953. target_os=$*
  1954. IFS=$ac_save_IFS
  1955. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1956. # The aliases save the names the user supplied, while $host etc.
  1957. # will get canonicalized.
  1958. test -n "$target_alias" &&
  1959. test "$program_prefix$program_suffix$program_transform_name" = \
  1960. NONENONEs,x,x, &&
  1961. program_prefix=${target_alias}-
  1962. am__api_version='1.10'
  1963. # Find a good install program. We prefer a C program (faster),
  1964. # so one script is as good as another. But avoid the broken or
  1965. # incompatible versions:
  1966. # SysV /etc/install, /usr/sbin/install
  1967. # SunOS /usr/etc/install
  1968. # IRIX /sbin/install
  1969. # AIX /bin/install
  1970. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1971. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1972. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1973. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1974. # OS/2's system install, which has a completely different semantic
  1975. # ./install, which can be erroneously created by make from ./install.sh.
  1976. # Reject install programs that cannot install multiple files.
  1977. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1978. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1979. if test -z "$INSTALL"; then
  1980. if test "${ac_cv_path_install+set}" = set; then
  1981. $as_echo_n "(cached) " >&6
  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. # Account for people who put trailing slashes in PATH elements.
  1989. case $as_dir/ in
  1990. ./ | .// | /cC/* | \
  1991. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1992. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1993. /usr/ucb/* ) ;;
  1994. *)
  1995. # OSF1 and SCO ODT 3.0 have their own names for install.
  1996. # Don't use installbsd from OSF since it installs stuff as root
  1997. # by default.
  1998. for ac_prog in ginstall scoinst install; do
  1999. for ac_exec_ext in '' $ac_executable_extensions; do
  2000. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2001. if test $ac_prog = install &&
  2002. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2003. # AIX install. It has an incompatible calling convention.
  2004. :
  2005. elif test $ac_prog = install &&
  2006. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2007. # program-specific install script used by HP pwplus--don't use.
  2008. :
  2009. else
  2010. rm -rf conftest.one conftest.two conftest.dir
  2011. echo one > conftest.one
  2012. echo two > conftest.two
  2013. mkdir conftest.dir
  2014. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2015. test -s conftest.one && test -s conftest.two &&
  2016. test -s conftest.dir/conftest.one &&
  2017. test -s conftest.dir/conftest.two
  2018. then
  2019. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2020. break 3
  2021. fi
  2022. fi
  2023. fi
  2024. done
  2025. done
  2026. ;;
  2027. esac
  2028. done
  2029. IFS=$as_save_IFS
  2030. rm -rf conftest.one conftest.two conftest.dir
  2031. fi
  2032. if test "${ac_cv_path_install+set}" = set; then
  2033. INSTALL=$ac_cv_path_install
  2034. else
  2035. # As a last resort, use the slow shell script. Don't cache a
  2036. # value for INSTALL within a source directory, because that will
  2037. # break other packages using the cache if that directory is
  2038. # removed, or if the value is a relative name.
  2039. INSTALL=$ac_install_sh
  2040. fi
  2041. fi
  2042. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2043. $as_echo "$INSTALL" >&6; }
  2044. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2045. # It thinks the first close brace ends the variable substitution.
  2046. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2047. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2048. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2049. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2050. $as_echo_n "checking whether build environment is sane... " >&6; }
  2051. # Just in case
  2052. sleep 1
  2053. echo timestamp > conftest.file
  2054. # Do `set' in a subshell so we don't clobber the current shell's
  2055. # arguments. Must try -L first in case configure is actually a
  2056. # symlink; some systems play weird games with the mod time of symlinks
  2057. # (eg FreeBSD returns the mod time of the symlink's containing
  2058. # directory).
  2059. if (
  2060. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2061. if test "$*" = "X"; then
  2062. # -L didn't work.
  2063. set X `ls -t $srcdir/configure conftest.file`
  2064. fi
  2065. rm -f conftest.file
  2066. if test "$*" != "X $srcdir/configure conftest.file" \
  2067. && test "$*" != "X conftest.file $srcdir/configure"; then
  2068. # If neither matched, then we have a broken ls. This can happen
  2069. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2070. # broken ls alias from the environment. This has actually
  2071. # happened. Such a system could not be considered "sane".
  2072. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2073. alias in your environment" >&5
  2074. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2075. alias in your environment" >&2;}
  2076. { (exit 1); exit 1; }; }
  2077. fi
  2078. test "$2" = conftest.file
  2079. )
  2080. then
  2081. # Ok.
  2082. :
  2083. else
  2084. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2085. Check your system clock" >&5
  2086. $as_echo "$as_me: error: newly created file is older than distributed files!
  2087. Check your system clock" >&2;}
  2088. { (exit 1); exit 1; }; }
  2089. fi
  2090. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2091. $as_echo "yes" >&6; }
  2092. test "$program_prefix" != NONE &&
  2093. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2094. # Use a double $ so make ignores it.
  2095. test "$program_suffix" != NONE &&
  2096. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2097. # Double any \ or $.
  2098. # By default was `s,x,x', remove it if useless.
  2099. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2100. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2101. # expand $ac_aux_dir to an absolute path
  2102. am_aux_dir=`cd $ac_aux_dir && pwd`
  2103. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2104. # Use eval to expand $SHELL
  2105. if eval "$MISSING --run true"; then
  2106. am_missing_run="$MISSING --run "
  2107. else
  2108. am_missing_run=
  2109. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2110. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2111. fi
  2112. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2113. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2114. if test -z "$MKDIR_P"; then
  2115. if test "${ac_cv_path_mkdir+set}" = set; then
  2116. $as_echo_n "(cached) " >&6
  2117. else
  2118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2119. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2120. do
  2121. IFS=$as_save_IFS
  2122. test -z "$as_dir" && as_dir=.
  2123. for ac_prog in mkdir gmkdir; do
  2124. for ac_exec_ext in '' $ac_executable_extensions; do
  2125. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2126. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2127. 'mkdir (GNU coreutils) '* | \
  2128. 'mkdir (coreutils) '* | \
  2129. 'mkdir (fileutils) '4.1*)
  2130. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2131. break 3;;
  2132. esac
  2133. done
  2134. done
  2135. done
  2136. IFS=$as_save_IFS
  2137. fi
  2138. if test "${ac_cv_path_mkdir+set}" = set; then
  2139. MKDIR_P="$ac_cv_path_mkdir -p"
  2140. else
  2141. # As a last resort, use the slow shell script. Don't cache a
  2142. # value for MKDIR_P within a source directory, because that will
  2143. # break other packages using the cache if that directory is
  2144. # removed, or if the value is a relative name.
  2145. test -d ./--version && rmdir ./--version
  2146. MKDIR_P="$ac_install_sh -d"
  2147. fi
  2148. fi
  2149. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2150. $as_echo "$MKDIR_P" >&6; }
  2151. mkdir_p="$MKDIR_P"
  2152. case $mkdir_p in
  2153. [\\/$]* | ?:[\\/]*) ;;
  2154. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2155. esac
  2156. for ac_prog in gawk mawk nawk awk
  2157. do
  2158. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2159. set dummy $ac_prog; ac_word=$2
  2160. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2161. $as_echo_n "checking for $ac_word... " >&6; }
  2162. if test "${ac_cv_prog_AWK+set}" = set; then
  2163. $as_echo_n "(cached) " >&6
  2164. else
  2165. if test -n "$AWK"; then
  2166. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2167. else
  2168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2169. for as_dir in $PATH
  2170. do
  2171. IFS=$as_save_IFS
  2172. test -z "$as_dir" && as_dir=.
  2173. for ac_exec_ext in '' $ac_executable_extensions; do
  2174. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2175. ac_cv_prog_AWK="$ac_prog"
  2176. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2177. break 2
  2178. fi
  2179. done
  2180. done
  2181. IFS=$as_save_IFS
  2182. fi
  2183. fi
  2184. AWK=$ac_cv_prog_AWK
  2185. if test -n "$AWK"; then
  2186. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2187. $as_echo "$AWK" >&6; }
  2188. else
  2189. { $as_echo "$as_me:$LINENO: result: no" >&5
  2190. $as_echo "no" >&6; }
  2191. fi
  2192. test -n "$AWK" && break
  2193. done
  2194. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2195. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2196. set x ${MAKE-make}
  2197. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2198. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2199. $as_echo_n "(cached) " >&6
  2200. else
  2201. cat >conftest.make <<\_ACEOF
  2202. SHELL = /bin/sh
  2203. all:
  2204. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2205. _ACEOF
  2206. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2207. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2208. *@@@%%%=?*=@@@%%%*)
  2209. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2210. *)
  2211. eval ac_cv_prog_make_${ac_make}_set=no;;
  2212. esac
  2213. rm -f conftest.make
  2214. fi
  2215. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2216. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2217. $as_echo "yes" >&6; }
  2218. SET_MAKE=
  2219. else
  2220. { $as_echo "$as_me:$LINENO: result: no" >&5
  2221. $as_echo "no" >&6; }
  2222. SET_MAKE="MAKE=${MAKE-make}"
  2223. fi
  2224. rm -rf .tst 2>/dev/null
  2225. mkdir .tst 2>/dev/null
  2226. if test -d .tst; then
  2227. am__leading_dot=.
  2228. else
  2229. am__leading_dot=_
  2230. fi
  2231. rmdir .tst 2>/dev/null
  2232. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2233. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2234. # is not polluted with repeated "-I."
  2235. am__isrc=' -I$(srcdir)'
  2236. # test to see if srcdir already configured
  2237. if test -f $srcdir/config.status; then
  2238. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2239. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2240. { (exit 1); exit 1; }; }
  2241. fi
  2242. fi
  2243. # test whether we have cygpath
  2244. if test -z "$CYGPATH_W"; then
  2245. if (cygpath --version) >/dev/null 2>/dev/null; then
  2246. CYGPATH_W='cygpath -w'
  2247. else
  2248. CYGPATH_W=echo
  2249. fi
  2250. fi
  2251. # Define the identity of the package.
  2252. PACKAGE='aria2'
  2253. VERSION='1.3.3'
  2254. cat >>confdefs.h <<_ACEOF
  2255. #define PACKAGE "$PACKAGE"
  2256. _ACEOF
  2257. cat >>confdefs.h <<_ACEOF
  2258. #define VERSION "$VERSION"
  2259. _ACEOF
  2260. # Some tools Automake needs.
  2261. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2262. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2263. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2264. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2265. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2266. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2267. # Installed binaries are usually stripped using `strip' when the user
  2268. # run `make install-strip'. However `strip' might not be the right
  2269. # tool to use in cross-compilation environments, therefore Automake
  2270. # will honor the `STRIP' environment variable to overrule this program.
  2271. if test "$cross_compiling" != no; then
  2272. if test -n "$ac_tool_prefix"; then
  2273. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2274. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2275. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2276. $as_echo_n "checking for $ac_word... " >&6; }
  2277. if test "${ac_cv_prog_STRIP+set}" = set; then
  2278. $as_echo_n "(cached) " >&6
  2279. else
  2280. if test -n "$STRIP"; then
  2281. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2282. else
  2283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2284. for as_dir in $PATH
  2285. do
  2286. IFS=$as_save_IFS
  2287. test -z "$as_dir" && as_dir=.
  2288. for ac_exec_ext in '' $ac_executable_extensions; do
  2289. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2290. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2291. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2292. break 2
  2293. fi
  2294. done
  2295. done
  2296. IFS=$as_save_IFS
  2297. fi
  2298. fi
  2299. STRIP=$ac_cv_prog_STRIP
  2300. if test -n "$STRIP"; then
  2301. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2302. $as_echo "$STRIP" >&6; }
  2303. else
  2304. { $as_echo "$as_me:$LINENO: result: no" >&5
  2305. $as_echo "no" >&6; }
  2306. fi
  2307. fi
  2308. if test -z "$ac_cv_prog_STRIP"; then
  2309. ac_ct_STRIP=$STRIP
  2310. # Extract the first word of "strip", so it can be a program name with args.
  2311. set dummy strip; ac_word=$2
  2312. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2313. $as_echo_n "checking for $ac_word... " >&6; }
  2314. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2315. $as_echo_n "(cached) " >&6
  2316. else
  2317. if test -n "$ac_ct_STRIP"; then
  2318. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2319. else
  2320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2321. for as_dir in $PATH
  2322. do
  2323. IFS=$as_save_IFS
  2324. test -z "$as_dir" && as_dir=.
  2325. for ac_exec_ext in '' $ac_executable_extensions; do
  2326. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2327. ac_cv_prog_ac_ct_STRIP="strip"
  2328. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2329. break 2
  2330. fi
  2331. done
  2332. done
  2333. IFS=$as_save_IFS
  2334. fi
  2335. fi
  2336. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2337. if test -n "$ac_ct_STRIP"; then
  2338. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2339. $as_echo "$ac_ct_STRIP" >&6; }
  2340. else
  2341. { $as_echo "$as_me:$LINENO: result: no" >&5
  2342. $as_echo "no" >&6; }
  2343. fi
  2344. if test "x$ac_ct_STRIP" = x; then
  2345. STRIP=":"
  2346. else
  2347. case $cross_compiling:$ac_tool_warned in
  2348. yes:)
  2349. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2350. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2351. ac_tool_warned=yes ;;
  2352. esac
  2353. STRIP=$ac_ct_STRIP
  2354. fi
  2355. else
  2356. STRIP="$ac_cv_prog_STRIP"
  2357. fi
  2358. fi
  2359. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2360. # We need awk for the "check" target. The system "awk" is bad on
  2361. # some platforms.
  2362. # Always define AMTAR for backward compatibility.
  2363. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2364. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2365. # Check whether --with-cppunit-prefix was given.
  2366. if test "${with_cppunit_prefix+set}" = set; then
  2367. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2368. else
  2369. cppunit_config_prefix=""
  2370. fi
  2371. # Check whether --with-cppunit-exec-prefix was given.
  2372. if test "${with_cppunit_exec_prefix+set}" = set; then
  2373. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2374. else
  2375. cppunit_config_exec_prefix=""
  2376. fi
  2377. if test x$cppunit_config_exec_prefix != x ; then
  2378. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2379. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2380. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2381. fi
  2382. fi
  2383. if test x$cppunit_config_prefix != x ; then
  2384. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2385. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2386. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2387. fi
  2388. fi
  2389. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2390. set dummy cppunit-config; ac_word=$2
  2391. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2392. $as_echo_n "checking for $ac_word... " >&6; }
  2393. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2394. $as_echo_n "(cached) " >&6
  2395. else
  2396. case $CPPUNIT_CONFIG in
  2397. [\\/]* | ?:[\\/]*)
  2398. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2399. ;;
  2400. *)
  2401. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2402. for as_dir in $PATH
  2403. do
  2404. IFS=$as_save_IFS
  2405. test -z "$as_dir" && as_dir=.
  2406. for ac_exec_ext in '' $ac_executable_extensions; do
  2407. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2408. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2409. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2410. break 2
  2411. fi
  2412. done
  2413. done
  2414. IFS=$as_save_IFS
  2415. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2416. ;;
  2417. esac
  2418. fi
  2419. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2420. if test -n "$CPPUNIT_CONFIG"; then
  2421. { $as_echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2422. $as_echo "$CPPUNIT_CONFIG" >&6; }
  2423. else
  2424. { $as_echo "$as_me:$LINENO: result: no" >&5
  2425. $as_echo "no" >&6; }
  2426. fi
  2427. cppunit_version_min=1.10.2
  2428. { $as_echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2429. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  2430. no_cppunit=""
  2431. if test "$CPPUNIT_CONFIG" = "no" ; then
  2432. { $as_echo "$as_me:$LINENO: result: no" >&5
  2433. $as_echo "no" >&6; }
  2434. no_cppunit=yes
  2435. else
  2436. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2437. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2438. cppunit_version=`$CPPUNIT_CONFIG --version`
  2439. cppunit_major_version=`echo $cppunit_version | \
  2440. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2441. cppunit_minor_version=`echo $cppunit_version | \
  2442. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2443. cppunit_micro_version=`echo $cppunit_version | \
  2444. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2445. cppunit_major_min=`echo $cppunit_version_min | \
  2446. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2447. if test "x${cppunit_major_min}" = "x" ; then
  2448. cppunit_major_min=0
  2449. fi
  2450. cppunit_minor_min=`echo $cppunit_version_min | \
  2451. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2452. if test "x${cppunit_minor_min}" = "x" ; then
  2453. cppunit_minor_min=0
  2454. fi
  2455. cppunit_micro_min=`echo $cppunit_version_min | \
  2456. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2457. if test "x${cppunit_micro_min}" = "x" ; then
  2458. cppunit_micro_min=0
  2459. fi
  2460. cppunit_version_proper=`expr \
  2461. $cppunit_major_version \> $cppunit_major_min \| \
  2462. $cppunit_major_version \= $cppunit_major_min \& \
  2463. $cppunit_minor_version \> $cppunit_minor_min \| \
  2464. $cppunit_major_version \= $cppunit_major_min \& \
  2465. $cppunit_minor_version \= $cppunit_minor_min \& \
  2466. $cppunit_micro_version \>= $cppunit_micro_min `
  2467. if test "$cppunit_version_proper" = "1" ; then
  2468. { $as_echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2469. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2470. else
  2471. { $as_echo "$as_me:$LINENO: result: no" >&5
  2472. $as_echo "no" >&6; }
  2473. no_cppunit=yes
  2474. fi
  2475. fi
  2476. if test "x$no_cppunit" = x ; then
  2477. :
  2478. else
  2479. CPPUNIT_CFLAGS=""
  2480. CPPUNIT_LIBS=""
  2481. :
  2482. fi
  2483. ac_config_headers="$ac_config_headers config.h"
  2484. case "$target" in
  2485. *mingw*|*cygwin*)
  2486. WINSOCK_LIBS="-lws2_32 -lpthread"
  2487. ;;
  2488. esac
  2489. cat >>confdefs.h <<_ACEOF
  2490. #define TARGET "$target"
  2491. _ACEOF
  2492. # Set localedir
  2493. localedir=${datadir}/locale
  2494. # Checks for arguments.
  2495. # Check whether --with-gnutls was given.
  2496. if test "${with_gnutls+set}" = set; then
  2497. withval=$with_gnutls; with_gnutls=$withval
  2498. else
  2499. with_gnutls=yes
  2500. fi
  2501. # Check whether --with-openssl was given.
  2502. if test "${with_openssl+set}" = set; then
  2503. withval=$with_openssl; with_openssl=$withval
  2504. else
  2505. with_openssl=yes
  2506. fi
  2507. # Check whether --with-sqlite3 was given.
  2508. if test "${with_sqlite3+set}" = set; then
  2509. withval=$with_sqlite3; with_sqlite3=$withval
  2510. else
  2511. with_sqlite3=yes
  2512. fi
  2513. # Check whether --with-libxml2 was given.
  2514. if test "${with_libxml2+set}" = set; then
  2515. withval=$with_libxml2; with_libxml2=$withval
  2516. else
  2517. with_libxml2=yes
  2518. fi
  2519. # Check whether --with-libexpat was given.
  2520. if test "${with_libexpat+set}" = set; then
  2521. withval=$with_libexpat; with_libexpat=$withval
  2522. else
  2523. with_libexpat=yes
  2524. fi
  2525. # Check whether --with-libcares was given.
  2526. if test "${with_libcares+set}" = set; then
  2527. withval=$with_libcares; with_libcares=$withval
  2528. else
  2529. with_libcares=yes
  2530. fi
  2531. # Check whether --with-libz was given.
  2532. if test "${with_libz+set}" = set; then
  2533. withval=$with_libz; with_libz=$withval
  2534. else
  2535. with_libz=yes
  2536. fi
  2537. # Check whether --enable-bittorrent was given.
  2538. if test "${enable_bittorrent+set}" = set; then
  2539. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2540. else
  2541. enable_bittorrent=yes
  2542. fi
  2543. # Check whether --enable-metalink was given.
  2544. if test "${enable_metalink+set}" = set; then
  2545. enableval=$enable_metalink; enable_metalink=$enableval
  2546. else
  2547. enable_metalink=yes
  2548. fi
  2549. # Check whether --enable-epoll was given.
  2550. if test "${enable_epoll+set}" = set; then
  2551. enableval=$enable_epoll; enable_epoll=$enableval
  2552. else
  2553. enable_epoll=yes
  2554. fi
  2555. # Check whether --with-ca-bundle was given.
  2556. if test "${with_ca_bundle+set}" = set; then
  2557. withval=$with_ca_bundle; ca_bundle=$withval
  2558. else
  2559. ca_bundle=""
  2560. fi
  2561. # Checks for programs.
  2562. ac_ext=cpp
  2563. ac_cpp='$CXXCPP $CPPFLAGS'
  2564. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2565. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2566. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2567. if test -z "$CXX"; then
  2568. if test -n "$CCC"; then
  2569. CXX=$CCC
  2570. else
  2571. if test -n "$ac_tool_prefix"; then
  2572. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2573. do
  2574. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2575. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2576. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2577. $as_echo_n "checking for $ac_word... " >&6; }
  2578. if test "${ac_cv_prog_CXX+set}" = set; then
  2579. $as_echo_n "(cached) " >&6
  2580. else
  2581. if test -n "$CXX"; then
  2582. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2583. else
  2584. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2585. for as_dir in $PATH
  2586. do
  2587. IFS=$as_save_IFS
  2588. test -z "$as_dir" && as_dir=.
  2589. for ac_exec_ext in '' $ac_executable_extensions; do
  2590. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2591. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2592. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2593. break 2
  2594. fi
  2595. done
  2596. done
  2597. IFS=$as_save_IFS
  2598. fi
  2599. fi
  2600. CXX=$ac_cv_prog_CXX
  2601. if test -n "$CXX"; then
  2602. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  2603. $as_echo "$CXX" >&6; }
  2604. else
  2605. { $as_echo "$as_me:$LINENO: result: no" >&5
  2606. $as_echo "no" >&6; }
  2607. fi
  2608. test -n "$CXX" && break
  2609. done
  2610. fi
  2611. if test -z "$CXX"; then
  2612. ac_ct_CXX=$CXX
  2613. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2614. do
  2615. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2616. set dummy $ac_prog; ac_word=$2
  2617. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2618. $as_echo_n "checking for $ac_word... " >&6; }
  2619. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2620. $as_echo_n "(cached) " >&6
  2621. else
  2622. if test -n "$ac_ct_CXX"; then
  2623. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2624. else
  2625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2626. for as_dir in $PATH
  2627. do
  2628. IFS=$as_save_IFS
  2629. test -z "$as_dir" && as_dir=.
  2630. for ac_exec_ext in '' $ac_executable_extensions; do
  2631. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2632. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2633. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2634. break 2
  2635. fi
  2636. done
  2637. done
  2638. IFS=$as_save_IFS
  2639. fi
  2640. fi
  2641. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2642. if test -n "$ac_ct_CXX"; then
  2643. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2644. $as_echo "$ac_ct_CXX" >&6; }
  2645. else
  2646. { $as_echo "$as_me:$LINENO: result: no" >&5
  2647. $as_echo "no" >&6; }
  2648. fi
  2649. test -n "$ac_ct_CXX" && break
  2650. done
  2651. if test "x$ac_ct_CXX" = x; then
  2652. CXX="g++"
  2653. else
  2654. case $cross_compiling:$ac_tool_warned in
  2655. yes:)
  2656. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2657. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2658. ac_tool_warned=yes ;;
  2659. esac
  2660. CXX=$ac_ct_CXX
  2661. fi
  2662. fi
  2663. fi
  2664. fi
  2665. # Provide some information about the compiler.
  2666. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2667. set X $ac_compile
  2668. ac_compiler=$2
  2669. { (ac_try="$ac_compiler --version >&5"
  2670. case "(($ac_try" in
  2671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2672. *) ac_try_echo=$ac_try;;
  2673. esac
  2674. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2675. $as_echo "$ac_try_echo") >&5
  2676. (eval "$ac_compiler --version >&5") 2>&5
  2677. ac_status=$?
  2678. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2679. (exit $ac_status); }
  2680. { (ac_try="$ac_compiler -v >&5"
  2681. case "(($ac_try" in
  2682. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2683. *) ac_try_echo=$ac_try;;
  2684. esac
  2685. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2686. $as_echo "$ac_try_echo") >&5
  2687. (eval "$ac_compiler -v >&5") 2>&5
  2688. ac_status=$?
  2689. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2690. (exit $ac_status); }
  2691. { (ac_try="$ac_compiler -V >&5"
  2692. case "(($ac_try" in
  2693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2694. *) ac_try_echo=$ac_try;;
  2695. esac
  2696. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2697. $as_echo "$ac_try_echo") >&5
  2698. (eval "$ac_compiler -V >&5") 2>&5
  2699. ac_status=$?
  2700. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2701. (exit $ac_status); }
  2702. cat >conftest.$ac_ext <<_ACEOF
  2703. /* confdefs.h. */
  2704. _ACEOF
  2705. cat confdefs.h >>conftest.$ac_ext
  2706. cat >>conftest.$ac_ext <<_ACEOF
  2707. /* end confdefs.h. */
  2708. int
  2709. main ()
  2710. {
  2711. ;
  2712. return 0;
  2713. }
  2714. _ACEOF
  2715. ac_clean_files_save=$ac_clean_files
  2716. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2717. # Try to create an executable without -o first, disregard a.out.
  2718. # It will help us diagnose broken compilers, and finding out an intuition
  2719. # of exeext.
  2720. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2721. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2722. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2723. # The possible output files:
  2724. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2725. ac_rmfiles=
  2726. for ac_file in $ac_files
  2727. do
  2728. case $ac_file in
  2729. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2730. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2731. esac
  2732. done
  2733. rm -f $ac_rmfiles
  2734. if { (ac_try="$ac_link_default"
  2735. case "(($ac_try" in
  2736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2737. *) ac_try_echo=$ac_try;;
  2738. esac
  2739. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2740. $as_echo "$ac_try_echo") >&5
  2741. (eval "$ac_link_default") 2>&5
  2742. ac_status=$?
  2743. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2744. (exit $ac_status); }; then
  2745. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2746. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2747. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2748. # so that the user can short-circuit this test for compilers unknown to
  2749. # Autoconf.
  2750. for ac_file in $ac_files ''
  2751. do
  2752. test -f "$ac_file" || continue
  2753. case $ac_file in
  2754. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2755. ;;
  2756. [ab].out )
  2757. # We found the default executable, but exeext='' is most
  2758. # certainly right.
  2759. break;;
  2760. *.* )
  2761. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2762. then :; else
  2763. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2764. fi
  2765. # We set ac_cv_exeext here because the later test for it is not
  2766. # safe: cross compilers may not add the suffix if given an `-o'
  2767. # argument, so we may need to know it at that point already.
  2768. # Even if this section looks crufty: it has the advantage of
  2769. # actually working.
  2770. break;;
  2771. * )
  2772. break;;
  2773. esac
  2774. done
  2775. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2776. else
  2777. ac_file=''
  2778. fi
  2779. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2780. $as_echo "$ac_file" >&6; }
  2781. if test -z "$ac_file"; then
  2782. $as_echo "$as_me: failed program was:" >&5
  2783. sed 's/^/| /' conftest.$ac_ext >&5
  2784. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2785. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2786. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2787. See \`config.log' for more details." >&5
  2788. $as_echo "$as_me: error: C++ compiler cannot create executables
  2789. See \`config.log' for more details." >&2;}
  2790. { (exit 77); exit 77; }; }; }
  2791. fi
  2792. ac_exeext=$ac_cv_exeext
  2793. # Check that the compiler produces executables we can run. If not, either
  2794. # the compiler is broken, or we cross compile.
  2795. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2796. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2797. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2798. # If not cross compiling, check that we can run a simple program.
  2799. if test "$cross_compiling" != yes; then
  2800. if { ac_try='./$ac_file'
  2801. { (case "(($ac_try" in
  2802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2803. *) ac_try_echo=$ac_try;;
  2804. esac
  2805. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2806. $as_echo "$ac_try_echo") >&5
  2807. (eval "$ac_try") 2>&5
  2808. ac_status=$?
  2809. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2810. (exit $ac_status); }; }; then
  2811. cross_compiling=no
  2812. else
  2813. if test "$cross_compiling" = maybe; then
  2814. cross_compiling=yes
  2815. else
  2816. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2817. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2818. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2819. If you meant to cross compile, use \`--host'.
  2820. See \`config.log' for more details." >&5
  2821. $as_echo "$as_me: error: cannot run C++ compiled programs.
  2822. If you meant to cross compile, use \`--host'.
  2823. See \`config.log' for more details." >&2;}
  2824. { (exit 1); exit 1; }; }; }
  2825. fi
  2826. fi
  2827. fi
  2828. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2829. $as_echo "yes" >&6; }
  2830. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2831. ac_clean_files=$ac_clean_files_save
  2832. # Check that the compiler produces executables we can run. If not, either
  2833. # the compiler is broken, or we cross compile.
  2834. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2835. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2836. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2837. $as_echo "$cross_compiling" >&6; }
  2838. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2839. $as_echo_n "checking for suffix of executables... " >&6; }
  2840. if { (ac_try="$ac_link"
  2841. case "(($ac_try" in
  2842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2843. *) ac_try_echo=$ac_try;;
  2844. esac
  2845. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2846. $as_echo "$ac_try_echo") >&5
  2847. (eval "$ac_link") 2>&5
  2848. ac_status=$?
  2849. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2850. (exit $ac_status); }; then
  2851. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2852. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2853. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2854. # `rm'.
  2855. for ac_file in conftest.exe conftest conftest.*; do
  2856. test -f "$ac_file" || continue
  2857. case $ac_file in
  2858. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2859. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2860. break;;
  2861. * ) break;;
  2862. esac
  2863. done
  2864. else
  2865. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2866. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2867. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2868. See \`config.log' for more details." >&5
  2869. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2870. See \`config.log' for more details." >&2;}
  2871. { (exit 1); exit 1; }; }; }
  2872. fi
  2873. rm -f conftest$ac_cv_exeext
  2874. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2875. $as_echo "$ac_cv_exeext" >&6; }
  2876. rm -f conftest.$ac_ext
  2877. EXEEXT=$ac_cv_exeext
  2878. ac_exeext=$EXEEXT
  2879. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2880. $as_echo_n "checking for suffix of object files... " >&6; }
  2881. if test "${ac_cv_objext+set}" = set; then
  2882. $as_echo_n "(cached) " >&6
  2883. else
  2884. cat >conftest.$ac_ext <<_ACEOF
  2885. /* confdefs.h. */
  2886. _ACEOF
  2887. cat confdefs.h >>conftest.$ac_ext
  2888. cat >>conftest.$ac_ext <<_ACEOF
  2889. /* end confdefs.h. */
  2890. int
  2891. main ()
  2892. {
  2893. ;
  2894. return 0;
  2895. }
  2896. _ACEOF
  2897. rm -f conftest.o conftest.obj
  2898. if { (ac_try="$ac_compile"
  2899. case "(($ac_try" in
  2900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2901. *) ac_try_echo=$ac_try;;
  2902. esac
  2903. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2904. $as_echo "$ac_try_echo") >&5
  2905. (eval "$ac_compile") 2>&5
  2906. ac_status=$?
  2907. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2908. (exit $ac_status); }; then
  2909. for ac_file in conftest.o conftest.obj conftest.*; do
  2910. test -f "$ac_file" || continue;
  2911. case $ac_file in
  2912. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2913. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2914. break;;
  2915. esac
  2916. done
  2917. else
  2918. $as_echo "$as_me: failed program was:" >&5
  2919. sed 's/^/| /' conftest.$ac_ext >&5
  2920. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2921. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2922. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2923. See \`config.log' for more details." >&5
  2924. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2925. See \`config.log' for more details." >&2;}
  2926. { (exit 1); exit 1; }; }; }
  2927. fi
  2928. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2929. fi
  2930. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2931. $as_echo "$ac_cv_objext" >&6; }
  2932. OBJEXT=$ac_cv_objext
  2933. ac_objext=$OBJEXT
  2934. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2935. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2936. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2937. $as_echo_n "(cached) " >&6
  2938. else
  2939. cat >conftest.$ac_ext <<_ACEOF
  2940. /* confdefs.h. */
  2941. _ACEOF
  2942. cat confdefs.h >>conftest.$ac_ext
  2943. cat >>conftest.$ac_ext <<_ACEOF
  2944. /* end confdefs.h. */
  2945. int
  2946. main ()
  2947. {
  2948. #ifndef __GNUC__
  2949. choke me
  2950. #endif
  2951. ;
  2952. return 0;
  2953. }
  2954. _ACEOF
  2955. rm -f conftest.$ac_objext
  2956. if { (ac_try="$ac_compile"
  2957. case "(($ac_try" in
  2958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2959. *) ac_try_echo=$ac_try;;
  2960. esac
  2961. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2962. $as_echo "$ac_try_echo") >&5
  2963. (eval "$ac_compile") 2>conftest.er1
  2964. ac_status=$?
  2965. grep -v '^ *+' conftest.er1 >conftest.err
  2966. rm -f conftest.er1
  2967. cat conftest.err >&5
  2968. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2969. (exit $ac_status); } && {
  2970. test -z "$ac_cxx_werror_flag" ||
  2971. test ! -s conftest.err
  2972. } && test -s conftest.$ac_objext; then
  2973. ac_compiler_gnu=yes
  2974. else
  2975. $as_echo "$as_me: failed program was:" >&5
  2976. sed 's/^/| /' conftest.$ac_ext >&5
  2977. ac_compiler_gnu=no
  2978. fi
  2979. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2980. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2981. fi
  2982. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2983. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  2984. if test $ac_compiler_gnu = yes; then
  2985. GXX=yes
  2986. else
  2987. GXX=
  2988. fi
  2989. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2990. ac_save_CXXFLAGS=$CXXFLAGS
  2991. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2992. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  2993. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2994. $as_echo_n "(cached) " >&6
  2995. else
  2996. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2997. ac_cxx_werror_flag=yes
  2998. ac_cv_prog_cxx_g=no
  2999. CXXFLAGS="-g"
  3000. cat >conftest.$ac_ext <<_ACEOF
  3001. /* confdefs.h. */
  3002. _ACEOF
  3003. cat confdefs.h >>conftest.$ac_ext
  3004. cat >>conftest.$ac_ext <<_ACEOF
  3005. /* end confdefs.h. */
  3006. int
  3007. main ()
  3008. {
  3009. ;
  3010. return 0;
  3011. }
  3012. _ACEOF
  3013. rm -f conftest.$ac_objext
  3014. if { (ac_try="$ac_compile"
  3015. case "(($ac_try" in
  3016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3017. *) ac_try_echo=$ac_try;;
  3018. esac
  3019. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3020. $as_echo "$ac_try_echo") >&5
  3021. (eval "$ac_compile") 2>conftest.er1
  3022. ac_status=$?
  3023. grep -v '^ *+' conftest.er1 >conftest.err
  3024. rm -f conftest.er1
  3025. cat conftest.err >&5
  3026. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3027. (exit $ac_status); } && {
  3028. test -z "$ac_cxx_werror_flag" ||
  3029. test ! -s conftest.err
  3030. } && test -s conftest.$ac_objext; then
  3031. ac_cv_prog_cxx_g=yes
  3032. else
  3033. $as_echo "$as_me: failed program was:" >&5
  3034. sed 's/^/| /' conftest.$ac_ext >&5
  3035. CXXFLAGS=""
  3036. cat >conftest.$ac_ext <<_ACEOF
  3037. /* confdefs.h. */
  3038. _ACEOF
  3039. cat confdefs.h >>conftest.$ac_ext
  3040. cat >>conftest.$ac_ext <<_ACEOF
  3041. /* end confdefs.h. */
  3042. int
  3043. main ()
  3044. {
  3045. ;
  3046. return 0;
  3047. }
  3048. _ACEOF
  3049. rm -f conftest.$ac_objext
  3050. if { (ac_try="$ac_compile"
  3051. case "(($ac_try" in
  3052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3053. *) ac_try_echo=$ac_try;;
  3054. esac
  3055. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3056. $as_echo "$ac_try_echo") >&5
  3057. (eval "$ac_compile") 2>conftest.er1
  3058. ac_status=$?
  3059. grep -v '^ *+' conftest.er1 >conftest.err
  3060. rm -f conftest.er1
  3061. cat conftest.err >&5
  3062. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3063. (exit $ac_status); } && {
  3064. test -z "$ac_cxx_werror_flag" ||
  3065. test ! -s conftest.err
  3066. } && test -s conftest.$ac_objext; then
  3067. :
  3068. else
  3069. $as_echo "$as_me: failed program was:" >&5
  3070. sed 's/^/| /' conftest.$ac_ext >&5
  3071. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3072. CXXFLAGS="-g"
  3073. cat >conftest.$ac_ext <<_ACEOF
  3074. /* confdefs.h. */
  3075. _ACEOF
  3076. cat confdefs.h >>conftest.$ac_ext
  3077. cat >>conftest.$ac_ext <<_ACEOF
  3078. /* end confdefs.h. */
  3079. int
  3080. main ()
  3081. {
  3082. ;
  3083. return 0;
  3084. }
  3085. _ACEOF
  3086. rm -f conftest.$ac_objext
  3087. if { (ac_try="$ac_compile"
  3088. case "(($ac_try" in
  3089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3090. *) ac_try_echo=$ac_try;;
  3091. esac
  3092. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3093. $as_echo "$ac_try_echo") >&5
  3094. (eval "$ac_compile") 2>conftest.er1
  3095. ac_status=$?
  3096. grep -v '^ *+' conftest.er1 >conftest.err
  3097. rm -f conftest.er1
  3098. cat conftest.err >&5
  3099. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3100. (exit $ac_status); } && {
  3101. test -z "$ac_cxx_werror_flag" ||
  3102. test ! -s conftest.err
  3103. } && test -s conftest.$ac_objext; then
  3104. ac_cv_prog_cxx_g=yes
  3105. else
  3106. $as_echo "$as_me: failed program was:" >&5
  3107. sed 's/^/| /' conftest.$ac_ext >&5
  3108. fi
  3109. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3110. fi
  3111. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3112. fi
  3113. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3114. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3115. fi
  3116. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3117. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3118. if test "$ac_test_CXXFLAGS" = set; then
  3119. CXXFLAGS=$ac_save_CXXFLAGS
  3120. elif test $ac_cv_prog_cxx_g = yes; then
  3121. if test "$GXX" = yes; then
  3122. CXXFLAGS="-g -O2"
  3123. else
  3124. CXXFLAGS="-g"
  3125. fi
  3126. else
  3127. if test "$GXX" = yes; then
  3128. CXXFLAGS="-O2"
  3129. else
  3130. CXXFLAGS=
  3131. fi
  3132. fi
  3133. ac_ext=c
  3134. ac_cpp='$CPP $CPPFLAGS'
  3135. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3136. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3137. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3138. DEPDIR="${am__leading_dot}deps"
  3139. ac_config_commands="$ac_config_commands depfiles"
  3140. am_make=${MAKE-make}
  3141. cat > confinc << 'END'
  3142. am__doit:
  3143. @echo done
  3144. .PHONY: am__doit
  3145. END
  3146. # If we don't find an include directive, just comment out the code.
  3147. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3148. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3149. am__include="#"
  3150. am__quote=
  3151. _am_result=none
  3152. # First try GNU make style include.
  3153. echo "include confinc" > confmf
  3154. # We grep out `Entering directory' and `Leaving directory'
  3155. # messages which can occur if `w' ends up in MAKEFLAGS.
  3156. # In particular we don't look at `^make:' because GNU make might
  3157. # be invoked under some other name (usually "gmake"), in which
  3158. # case it prints its new name instead of `make'.
  3159. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3160. am__include=include
  3161. am__quote=
  3162. _am_result=GNU
  3163. fi
  3164. # Now try BSD make style include.
  3165. if test "$am__include" = "#"; then
  3166. echo '.include "confinc"' > confmf
  3167. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3168. am__include=.include
  3169. am__quote="\""
  3170. _am_result=BSD
  3171. fi
  3172. fi
  3173. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3174. $as_echo "$_am_result" >&6; }
  3175. rm -f confinc confmf
  3176. # Check whether --enable-dependency-tracking was given.
  3177. if test "${enable_dependency_tracking+set}" = set; then
  3178. enableval=$enable_dependency_tracking;
  3179. fi
  3180. if test "x$enable_dependency_tracking" != xno; then
  3181. am_depcomp="$ac_aux_dir/depcomp"
  3182. AMDEPBACKSLASH='\'
  3183. fi
  3184. if test "x$enable_dependency_tracking" != xno; then
  3185. AMDEP_TRUE=
  3186. AMDEP_FALSE='#'
  3187. else
  3188. AMDEP_TRUE='#'
  3189. AMDEP_FALSE=
  3190. fi
  3191. depcc="$CXX" am_compiler_list=
  3192. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3193. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3194. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3195. $as_echo_n "(cached) " >&6
  3196. else
  3197. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3198. # We make a subdir and do the tests there. Otherwise we can end up
  3199. # making bogus files that we don't know about and never remove. For
  3200. # instance it was reported that on HP-UX the gcc test will end up
  3201. # making a dummy file named `D' -- because `-MD' means `put the output
  3202. # in D'.
  3203. mkdir conftest.dir
  3204. # Copy depcomp to subdir because otherwise we won't find it if we're
  3205. # using a relative directory.
  3206. cp "$am_depcomp" conftest.dir
  3207. cd conftest.dir
  3208. # We will build objects and dependencies in a subdirectory because
  3209. # it helps to detect inapplicable dependency modes. For instance
  3210. # both Tru64's cc and ICC support -MD to output dependencies as a
  3211. # side effect of compilation, but ICC will put the dependencies in
  3212. # the current directory while Tru64 will put them in the object
  3213. # directory.
  3214. mkdir sub
  3215. am_cv_CXX_dependencies_compiler_type=none
  3216. if test "$am_compiler_list" = ""; then
  3217. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3218. fi
  3219. for depmode in $am_compiler_list; do
  3220. # Setup a source with many dependencies, because some compilers
  3221. # like to wrap large dependency lists on column 80 (with \), and
  3222. # we should not choose a depcomp mode which is confused by this.
  3223. #
  3224. # We need to recreate these files for each test, as the compiler may
  3225. # overwrite some of them when testing with obscure command lines.
  3226. # This happens at least with the AIX C compiler.
  3227. : > sub/conftest.c
  3228. for i in 1 2 3 4 5 6; do
  3229. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3230. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3231. # Solaris 8's {/usr,}/bin/sh.
  3232. touch sub/conftst$i.h
  3233. done
  3234. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3235. case $depmode in
  3236. nosideeffect)
  3237. # after this tag, mechanisms are not by side-effect, so they'll
  3238. # only be used when explicitly requested
  3239. if test "x$enable_dependency_tracking" = xyes; then
  3240. continue
  3241. else
  3242. break
  3243. fi
  3244. ;;
  3245. none) break ;;
  3246. esac
  3247. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3248. # mode. It turns out that the SunPro C++ compiler does not properly
  3249. # handle `-M -o', and we need to detect this.
  3250. if depmode=$depmode \
  3251. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3252. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3253. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3254. >/dev/null 2>conftest.err &&
  3255. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3256. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3257. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3258. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3259. # icc doesn't choke on unknown options, it will just issue warnings
  3260. # or remarks (even with -Werror). So we grep stderr for any message
  3261. # that says an option was ignored or not supported.
  3262. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3263. # icc: Command line warning: ignoring option '-M'; no argument required
  3264. # The diagnosis changed in icc 8.0:
  3265. # icc: Command line remark: option '-MP' not supported
  3266. if (grep 'ignoring option' conftest.err ||
  3267. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3268. am_cv_CXX_dependencies_compiler_type=$depmode
  3269. break
  3270. fi
  3271. fi
  3272. done
  3273. cd ..
  3274. rm -rf conftest.dir
  3275. else
  3276. am_cv_CXX_dependencies_compiler_type=none
  3277. fi
  3278. fi
  3279. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3280. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3281. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3282. if
  3283. test "x$enable_dependency_tracking" != xno \
  3284. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3285. am__fastdepCXX_TRUE=
  3286. am__fastdepCXX_FALSE='#'
  3287. else
  3288. am__fastdepCXX_TRUE='#'
  3289. am__fastdepCXX_FALSE=
  3290. fi
  3291. ac_ext=c
  3292. ac_cpp='$CPP $CPPFLAGS'
  3293. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3294. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3295. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3296. if test -n "$ac_tool_prefix"; then
  3297. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3298. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3299. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3300. $as_echo_n "checking for $ac_word... " >&6; }
  3301. if test "${ac_cv_prog_CC+set}" = set; then
  3302. $as_echo_n "(cached) " >&6
  3303. else
  3304. if test -n "$CC"; then
  3305. ac_cv_prog_CC="$CC" # Let the user override the test.
  3306. else
  3307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3308. for as_dir in $PATH
  3309. do
  3310. IFS=$as_save_IFS
  3311. test -z "$as_dir" && as_dir=.
  3312. for ac_exec_ext in '' $ac_executable_extensions; do
  3313. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3314. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3315. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3316. break 2
  3317. fi
  3318. done
  3319. done
  3320. IFS=$as_save_IFS
  3321. fi
  3322. fi
  3323. CC=$ac_cv_prog_CC
  3324. if test -n "$CC"; then
  3325. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3326. $as_echo "$CC" >&6; }
  3327. else
  3328. { $as_echo "$as_me:$LINENO: result: no" >&5
  3329. $as_echo "no" >&6; }
  3330. fi
  3331. fi
  3332. if test -z "$ac_cv_prog_CC"; then
  3333. ac_ct_CC=$CC
  3334. # Extract the first word of "gcc", so it can be a program name with args.
  3335. set dummy gcc; ac_word=$2
  3336. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3337. $as_echo_n "checking for $ac_word... " >&6; }
  3338. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3339. $as_echo_n "(cached) " >&6
  3340. else
  3341. if test -n "$ac_ct_CC"; then
  3342. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3343. else
  3344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3345. for as_dir in $PATH
  3346. do
  3347. IFS=$as_save_IFS
  3348. test -z "$as_dir" && as_dir=.
  3349. for ac_exec_ext in '' $ac_executable_extensions; do
  3350. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3351. ac_cv_prog_ac_ct_CC="gcc"
  3352. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3353. break 2
  3354. fi
  3355. done
  3356. done
  3357. IFS=$as_save_IFS
  3358. fi
  3359. fi
  3360. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3361. if test -n "$ac_ct_CC"; then
  3362. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3363. $as_echo "$ac_ct_CC" >&6; }
  3364. else
  3365. { $as_echo "$as_me:$LINENO: result: no" >&5
  3366. $as_echo "no" >&6; }
  3367. fi
  3368. if test "x$ac_ct_CC" = x; then
  3369. CC=""
  3370. else
  3371. case $cross_compiling:$ac_tool_warned in
  3372. yes:)
  3373. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3374. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3375. ac_tool_warned=yes ;;
  3376. esac
  3377. CC=$ac_ct_CC
  3378. fi
  3379. else
  3380. CC="$ac_cv_prog_CC"
  3381. fi
  3382. if test -z "$CC"; then
  3383. if test -n "$ac_tool_prefix"; then
  3384. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3385. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3386. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3387. $as_echo_n "checking for $ac_word... " >&6; }
  3388. if test "${ac_cv_prog_CC+set}" = set; then
  3389. $as_echo_n "(cached) " >&6
  3390. else
  3391. if test -n "$CC"; then
  3392. ac_cv_prog_CC="$CC" # Let the user override the test.
  3393. else
  3394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3395. for as_dir in $PATH
  3396. do
  3397. IFS=$as_save_IFS
  3398. test -z "$as_dir" && as_dir=.
  3399. for ac_exec_ext in '' $ac_executable_extensions; do
  3400. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3401. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3402. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3403. break 2
  3404. fi
  3405. done
  3406. done
  3407. IFS=$as_save_IFS
  3408. fi
  3409. fi
  3410. CC=$ac_cv_prog_CC
  3411. if test -n "$CC"; then
  3412. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3413. $as_echo "$CC" >&6; }
  3414. else
  3415. { $as_echo "$as_me:$LINENO: result: no" >&5
  3416. $as_echo "no" >&6; }
  3417. fi
  3418. fi
  3419. fi
  3420. if test -z "$CC"; then
  3421. # Extract the first word of "cc", so it can be a program name with args.
  3422. set dummy cc; ac_word=$2
  3423. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3424. $as_echo_n "checking for $ac_word... " >&6; }
  3425. if test "${ac_cv_prog_CC+set}" = set; then
  3426. $as_echo_n "(cached) " >&6
  3427. else
  3428. if test -n "$CC"; then
  3429. ac_cv_prog_CC="$CC" # Let the user override the test.
  3430. else
  3431. ac_prog_rejected=no
  3432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3433. for as_dir in $PATH
  3434. do
  3435. IFS=$as_save_IFS
  3436. test -z "$as_dir" && as_dir=.
  3437. for ac_exec_ext in '' $ac_executable_extensions; do
  3438. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3439. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3440. ac_prog_rejected=yes
  3441. continue
  3442. fi
  3443. ac_cv_prog_CC="cc"
  3444. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3445. break 2
  3446. fi
  3447. done
  3448. done
  3449. IFS=$as_save_IFS
  3450. if test $ac_prog_rejected = yes; then
  3451. # We found a bogon in the path, so make sure we never use it.
  3452. set dummy $ac_cv_prog_CC
  3453. shift
  3454. if test $# != 0; then
  3455. # We chose a different compiler from the bogus one.
  3456. # However, it has the same basename, so the bogon will be chosen
  3457. # first if we set CC to just the basename; use the full file name.
  3458. shift
  3459. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3460. fi
  3461. fi
  3462. fi
  3463. fi
  3464. CC=$ac_cv_prog_CC
  3465. if test -n "$CC"; then
  3466. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3467. $as_echo "$CC" >&6; }
  3468. else
  3469. { $as_echo "$as_me:$LINENO: result: no" >&5
  3470. $as_echo "no" >&6; }
  3471. fi
  3472. fi
  3473. if test -z "$CC"; then
  3474. if test -n "$ac_tool_prefix"; then
  3475. for ac_prog in cl.exe
  3476. do
  3477. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3478. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3479. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3480. $as_echo_n "checking for $ac_word... " >&6; }
  3481. if test "${ac_cv_prog_CC+set}" = set; then
  3482. $as_echo_n "(cached) " >&6
  3483. else
  3484. if test -n "$CC"; then
  3485. ac_cv_prog_CC="$CC" # Let the user override the test.
  3486. else
  3487. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3488. for as_dir in $PATH
  3489. do
  3490. IFS=$as_save_IFS
  3491. test -z "$as_dir" && as_dir=.
  3492. for ac_exec_ext in '' $ac_executable_extensions; do
  3493. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3494. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3495. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3496. break 2
  3497. fi
  3498. done
  3499. done
  3500. IFS=$as_save_IFS
  3501. fi
  3502. fi
  3503. CC=$ac_cv_prog_CC
  3504. if test -n "$CC"; then
  3505. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3506. $as_echo "$CC" >&6; }
  3507. else
  3508. { $as_echo "$as_me:$LINENO: result: no" >&5
  3509. $as_echo "no" >&6; }
  3510. fi
  3511. test -n "$CC" && break
  3512. done
  3513. fi
  3514. if test -z "$CC"; then
  3515. ac_ct_CC=$CC
  3516. for ac_prog in cl.exe
  3517. do
  3518. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3519. set dummy $ac_prog; ac_word=$2
  3520. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3521. $as_echo_n "checking for $ac_word... " >&6; }
  3522. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3523. $as_echo_n "(cached) " >&6
  3524. else
  3525. if test -n "$ac_ct_CC"; then
  3526. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3527. else
  3528. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3529. for as_dir in $PATH
  3530. do
  3531. IFS=$as_save_IFS
  3532. test -z "$as_dir" && as_dir=.
  3533. for ac_exec_ext in '' $ac_executable_extensions; do
  3534. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3535. ac_cv_prog_ac_ct_CC="$ac_prog"
  3536. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3537. break 2
  3538. fi
  3539. done
  3540. done
  3541. IFS=$as_save_IFS
  3542. fi
  3543. fi
  3544. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3545. if test -n "$ac_ct_CC"; then
  3546. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3547. $as_echo "$ac_ct_CC" >&6; }
  3548. else
  3549. { $as_echo "$as_me:$LINENO: result: no" >&5
  3550. $as_echo "no" >&6; }
  3551. fi
  3552. test -n "$ac_ct_CC" && break
  3553. done
  3554. if test "x$ac_ct_CC" = x; then
  3555. CC=""
  3556. else
  3557. case $cross_compiling:$ac_tool_warned in
  3558. yes:)
  3559. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3560. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3561. ac_tool_warned=yes ;;
  3562. esac
  3563. CC=$ac_ct_CC
  3564. fi
  3565. fi
  3566. fi
  3567. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3568. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3569. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3570. See \`config.log' for more details." >&5
  3571. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3572. See \`config.log' for more details." >&2;}
  3573. { (exit 1); exit 1; }; }; }
  3574. # Provide some information about the compiler.
  3575. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3576. set X $ac_compile
  3577. ac_compiler=$2
  3578. { (ac_try="$ac_compiler --version >&5"
  3579. case "(($ac_try" in
  3580. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3581. *) ac_try_echo=$ac_try;;
  3582. esac
  3583. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3584. $as_echo "$ac_try_echo") >&5
  3585. (eval "$ac_compiler --version >&5") 2>&5
  3586. ac_status=$?
  3587. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3588. (exit $ac_status); }
  3589. { (ac_try="$ac_compiler -v >&5"
  3590. case "(($ac_try" in
  3591. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3592. *) ac_try_echo=$ac_try;;
  3593. esac
  3594. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3595. $as_echo "$ac_try_echo") >&5
  3596. (eval "$ac_compiler -v >&5") 2>&5
  3597. ac_status=$?
  3598. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3599. (exit $ac_status); }
  3600. { (ac_try="$ac_compiler -V >&5"
  3601. case "(($ac_try" in
  3602. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3603. *) ac_try_echo=$ac_try;;
  3604. esac
  3605. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3606. $as_echo "$ac_try_echo") >&5
  3607. (eval "$ac_compiler -V >&5") 2>&5
  3608. ac_status=$?
  3609. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3610. (exit $ac_status); }
  3611. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3612. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3613. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3614. $as_echo_n "(cached) " >&6
  3615. else
  3616. cat >conftest.$ac_ext <<_ACEOF
  3617. /* confdefs.h. */
  3618. _ACEOF
  3619. cat confdefs.h >>conftest.$ac_ext
  3620. cat >>conftest.$ac_ext <<_ACEOF
  3621. /* end confdefs.h. */
  3622. int
  3623. main ()
  3624. {
  3625. #ifndef __GNUC__
  3626. choke me
  3627. #endif
  3628. ;
  3629. return 0;
  3630. }
  3631. _ACEOF
  3632. rm -f conftest.$ac_objext
  3633. if { (ac_try="$ac_compile"
  3634. case "(($ac_try" in
  3635. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3636. *) ac_try_echo=$ac_try;;
  3637. esac
  3638. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3639. $as_echo "$ac_try_echo") >&5
  3640. (eval "$ac_compile") 2>conftest.er1
  3641. ac_status=$?
  3642. grep -v '^ *+' conftest.er1 >conftest.err
  3643. rm -f conftest.er1
  3644. cat conftest.err >&5
  3645. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3646. (exit $ac_status); } && {
  3647. test -z "$ac_c_werror_flag" ||
  3648. test ! -s conftest.err
  3649. } && test -s conftest.$ac_objext; then
  3650. ac_compiler_gnu=yes
  3651. else
  3652. $as_echo "$as_me: failed program was:" >&5
  3653. sed 's/^/| /' conftest.$ac_ext >&5
  3654. ac_compiler_gnu=no
  3655. fi
  3656. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3657. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3658. fi
  3659. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3660. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3661. if test $ac_compiler_gnu = yes; then
  3662. GCC=yes
  3663. else
  3664. GCC=
  3665. fi
  3666. ac_test_CFLAGS=${CFLAGS+set}
  3667. ac_save_CFLAGS=$CFLAGS
  3668. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3669. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3670. if test "${ac_cv_prog_cc_g+set}" = set; then
  3671. $as_echo_n "(cached) " >&6
  3672. else
  3673. ac_save_c_werror_flag=$ac_c_werror_flag
  3674. ac_c_werror_flag=yes
  3675. ac_cv_prog_cc_g=no
  3676. CFLAGS="-g"
  3677. cat >conftest.$ac_ext <<_ACEOF
  3678. /* confdefs.h. */
  3679. _ACEOF
  3680. cat confdefs.h >>conftest.$ac_ext
  3681. cat >>conftest.$ac_ext <<_ACEOF
  3682. /* end confdefs.h. */
  3683. int
  3684. main ()
  3685. {
  3686. ;
  3687. return 0;
  3688. }
  3689. _ACEOF
  3690. rm -f conftest.$ac_objext
  3691. if { (ac_try="$ac_compile"
  3692. case "(($ac_try" in
  3693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3694. *) ac_try_echo=$ac_try;;
  3695. esac
  3696. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3697. $as_echo "$ac_try_echo") >&5
  3698. (eval "$ac_compile") 2>conftest.er1
  3699. ac_status=$?
  3700. grep -v '^ *+' conftest.er1 >conftest.err
  3701. rm -f conftest.er1
  3702. cat conftest.err >&5
  3703. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3704. (exit $ac_status); } && {
  3705. test -z "$ac_c_werror_flag" ||
  3706. test ! -s conftest.err
  3707. } && test -s conftest.$ac_objext; then
  3708. ac_cv_prog_cc_g=yes
  3709. else
  3710. $as_echo "$as_me: failed program was:" >&5
  3711. sed 's/^/| /' conftest.$ac_ext >&5
  3712. CFLAGS=""
  3713. cat >conftest.$ac_ext <<_ACEOF
  3714. /* confdefs.h. */
  3715. _ACEOF
  3716. cat confdefs.h >>conftest.$ac_ext
  3717. cat >>conftest.$ac_ext <<_ACEOF
  3718. /* end confdefs.h. */
  3719. int
  3720. main ()
  3721. {
  3722. ;
  3723. return 0;
  3724. }
  3725. _ACEOF
  3726. rm -f conftest.$ac_objext
  3727. if { (ac_try="$ac_compile"
  3728. case "(($ac_try" in
  3729. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3730. *) ac_try_echo=$ac_try;;
  3731. esac
  3732. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3733. $as_echo "$ac_try_echo") >&5
  3734. (eval "$ac_compile") 2>conftest.er1
  3735. ac_status=$?
  3736. grep -v '^ *+' conftest.er1 >conftest.err
  3737. rm -f conftest.er1
  3738. cat conftest.err >&5
  3739. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3740. (exit $ac_status); } && {
  3741. test -z "$ac_c_werror_flag" ||
  3742. test ! -s conftest.err
  3743. } && test -s conftest.$ac_objext; then
  3744. :
  3745. else
  3746. $as_echo "$as_me: failed program was:" >&5
  3747. sed 's/^/| /' conftest.$ac_ext >&5
  3748. ac_c_werror_flag=$ac_save_c_werror_flag
  3749. CFLAGS="-g"
  3750. cat >conftest.$ac_ext <<_ACEOF
  3751. /* confdefs.h. */
  3752. _ACEOF
  3753. cat confdefs.h >>conftest.$ac_ext
  3754. cat >>conftest.$ac_ext <<_ACEOF
  3755. /* end confdefs.h. */
  3756. int
  3757. main ()
  3758. {
  3759. ;
  3760. return 0;
  3761. }
  3762. _ACEOF
  3763. rm -f conftest.$ac_objext
  3764. if { (ac_try="$ac_compile"
  3765. case "(($ac_try" in
  3766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3767. *) ac_try_echo=$ac_try;;
  3768. esac
  3769. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3770. $as_echo "$ac_try_echo") >&5
  3771. (eval "$ac_compile") 2>conftest.er1
  3772. ac_status=$?
  3773. grep -v '^ *+' conftest.er1 >conftest.err
  3774. rm -f conftest.er1
  3775. cat conftest.err >&5
  3776. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3777. (exit $ac_status); } && {
  3778. test -z "$ac_c_werror_flag" ||
  3779. test ! -s conftest.err
  3780. } && test -s conftest.$ac_objext; then
  3781. ac_cv_prog_cc_g=yes
  3782. else
  3783. $as_echo "$as_me: failed program was:" >&5
  3784. sed 's/^/| /' conftest.$ac_ext >&5
  3785. fi
  3786. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3787. fi
  3788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3789. fi
  3790. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3791. ac_c_werror_flag=$ac_save_c_werror_flag
  3792. fi
  3793. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3794. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3795. if test "$ac_test_CFLAGS" = set; then
  3796. CFLAGS=$ac_save_CFLAGS
  3797. elif test $ac_cv_prog_cc_g = yes; then
  3798. if test "$GCC" = yes; then
  3799. CFLAGS="-g -O2"
  3800. else
  3801. CFLAGS="-g"
  3802. fi
  3803. else
  3804. if test "$GCC" = yes; then
  3805. CFLAGS="-O2"
  3806. else
  3807. CFLAGS=
  3808. fi
  3809. fi
  3810. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3811. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3812. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3813. $as_echo_n "(cached) " >&6
  3814. else
  3815. ac_cv_prog_cc_c89=no
  3816. ac_save_CC=$CC
  3817. cat >conftest.$ac_ext <<_ACEOF
  3818. /* confdefs.h. */
  3819. _ACEOF
  3820. cat confdefs.h >>conftest.$ac_ext
  3821. cat >>conftest.$ac_ext <<_ACEOF
  3822. /* end confdefs.h. */
  3823. #include <stdarg.h>
  3824. #include <stdio.h>
  3825. #include <sys/types.h>
  3826. #include <sys/stat.h>
  3827. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3828. struct buf { int x; };
  3829. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3830. static char *e (p, i)
  3831. char **p;
  3832. int i;
  3833. {
  3834. return p[i];
  3835. }
  3836. static char *f (char * (*g) (char **, int), char **p, ...)
  3837. {
  3838. char *s;
  3839. va_list v;
  3840. va_start (v,p);
  3841. s = g (p, va_arg (v,int));
  3842. va_end (v);
  3843. return s;
  3844. }
  3845. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3846. function prototypes and stuff, but not '\xHH' hex character constants.
  3847. These don't provoke an error unfortunately, instead are silently treated
  3848. as 'x'. The following induces an error, until -std is added to get
  3849. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3850. array size at least. It's necessary to write '\x00'==0 to get something
  3851. that's true only with -std. */
  3852. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3853. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3854. inside strings and character constants. */
  3855. #define FOO(x) 'x'
  3856. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3857. int test (int i, double x);
  3858. struct s1 {int (*f) (int a);};
  3859. struct s2 {int (*f) (double a);};
  3860. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3861. int argc;
  3862. char **argv;
  3863. int
  3864. main ()
  3865. {
  3866. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3867. ;
  3868. return 0;
  3869. }
  3870. _ACEOF
  3871. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3872. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3873. do
  3874. CC="$ac_save_CC $ac_arg"
  3875. rm -f conftest.$ac_objext
  3876. if { (ac_try="$ac_compile"
  3877. case "(($ac_try" in
  3878. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3879. *) ac_try_echo=$ac_try;;
  3880. esac
  3881. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3882. $as_echo "$ac_try_echo") >&5
  3883. (eval "$ac_compile") 2>conftest.er1
  3884. ac_status=$?
  3885. grep -v '^ *+' conftest.er1 >conftest.err
  3886. rm -f conftest.er1
  3887. cat conftest.err >&5
  3888. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3889. (exit $ac_status); } && {
  3890. test -z "$ac_c_werror_flag" ||
  3891. test ! -s conftest.err
  3892. } && test -s conftest.$ac_objext; then
  3893. ac_cv_prog_cc_c89=$ac_arg
  3894. else
  3895. $as_echo "$as_me: failed program was:" >&5
  3896. sed 's/^/| /' conftest.$ac_ext >&5
  3897. fi
  3898. rm -f core conftest.err conftest.$ac_objext
  3899. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3900. done
  3901. rm -f conftest.$ac_ext
  3902. CC=$ac_save_CC
  3903. fi
  3904. # AC_CACHE_VAL
  3905. case "x$ac_cv_prog_cc_c89" in
  3906. x)
  3907. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3908. $as_echo "none needed" >&6; } ;;
  3909. xno)
  3910. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3911. $as_echo "unsupported" >&6; } ;;
  3912. *)
  3913. CC="$CC $ac_cv_prog_cc_c89"
  3914. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3915. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3916. esac
  3917. ac_ext=c
  3918. ac_cpp='$CPP $CPPFLAGS'
  3919. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3920. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3921. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3922. depcc="$CC" am_compiler_list=
  3923. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3924. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3925. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3926. $as_echo_n "(cached) " >&6
  3927. else
  3928. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3929. # We make a subdir and do the tests there. Otherwise we can end up
  3930. # making bogus files that we don't know about and never remove. For
  3931. # instance it was reported that on HP-UX the gcc test will end up
  3932. # making a dummy file named `D' -- because `-MD' means `put the output
  3933. # in D'.
  3934. mkdir conftest.dir
  3935. # Copy depcomp to subdir because otherwise we won't find it if we're
  3936. # using a relative directory.
  3937. cp "$am_depcomp" conftest.dir
  3938. cd conftest.dir
  3939. # We will build objects and dependencies in a subdirectory because
  3940. # it helps to detect inapplicable dependency modes. For instance
  3941. # both Tru64's cc and ICC support -MD to output dependencies as a
  3942. # side effect of compilation, but ICC will put the dependencies in
  3943. # the current directory while Tru64 will put them in the object
  3944. # directory.
  3945. mkdir sub
  3946. am_cv_CC_dependencies_compiler_type=none
  3947. if test "$am_compiler_list" = ""; then
  3948. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3949. fi
  3950. for depmode in $am_compiler_list; do
  3951. # Setup a source with many dependencies, because some compilers
  3952. # like to wrap large dependency lists on column 80 (with \), and
  3953. # we should not choose a depcomp mode which is confused by this.
  3954. #
  3955. # We need to recreate these files for each test, as the compiler may
  3956. # overwrite some of them when testing with obscure command lines.
  3957. # This happens at least with the AIX C compiler.
  3958. : > sub/conftest.c
  3959. for i in 1 2 3 4 5 6; do
  3960. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3961. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3962. # Solaris 8's {/usr,}/bin/sh.
  3963. touch sub/conftst$i.h
  3964. done
  3965. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3966. case $depmode in
  3967. nosideeffect)
  3968. # after this tag, mechanisms are not by side-effect, so they'll
  3969. # only be used when explicitly requested
  3970. if test "x$enable_dependency_tracking" = xyes; then
  3971. continue
  3972. else
  3973. break
  3974. fi
  3975. ;;
  3976. none) break ;;
  3977. esac
  3978. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3979. # mode. It turns out that the SunPro C++ compiler does not properly
  3980. # handle `-M -o', and we need to detect this.
  3981. if depmode=$depmode \
  3982. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3983. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3984. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3985. >/dev/null 2>conftest.err &&
  3986. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3987. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3988. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3989. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3990. # icc doesn't choke on unknown options, it will just issue warnings
  3991. # or remarks (even with -Werror). So we grep stderr for any message
  3992. # that says an option was ignored or not supported.
  3993. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3994. # icc: Command line warning: ignoring option '-M'; no argument required
  3995. # The diagnosis changed in icc 8.0:
  3996. # icc: Command line remark: option '-MP' not supported
  3997. if (grep 'ignoring option' conftest.err ||
  3998. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3999. am_cv_CC_dependencies_compiler_type=$depmode
  4000. break
  4001. fi
  4002. fi
  4003. done
  4004. cd ..
  4005. rm -rf conftest.dir
  4006. else
  4007. am_cv_CC_dependencies_compiler_type=none
  4008. fi
  4009. fi
  4010. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4011. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4012. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4013. if
  4014. test "x$enable_dependency_tracking" != xno \
  4015. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4016. am__fastdepCC_TRUE=
  4017. am__fastdepCC_FALSE='#'
  4018. else
  4019. am__fastdepCC_TRUE='#'
  4020. am__fastdepCC_FALSE=
  4021. fi
  4022. # Find a good install program. We prefer a C program (faster),
  4023. # so one script is as good as another. But avoid the broken or
  4024. # incompatible versions:
  4025. # SysV /etc/install, /usr/sbin/install
  4026. # SunOS /usr/etc/install
  4027. # IRIX /sbin/install
  4028. # AIX /bin/install
  4029. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4030. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4031. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4032. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4033. # OS/2's system install, which has a completely different semantic
  4034. # ./install, which can be erroneously created by make from ./install.sh.
  4035. # Reject install programs that cannot install multiple files.
  4036. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4037. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4038. if test -z "$INSTALL"; then
  4039. if test "${ac_cv_path_install+set}" = set; then
  4040. $as_echo_n "(cached) " >&6
  4041. else
  4042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4043. for as_dir in $PATH
  4044. do
  4045. IFS=$as_save_IFS
  4046. test -z "$as_dir" && as_dir=.
  4047. # Account for people who put trailing slashes in PATH elements.
  4048. case $as_dir/ in
  4049. ./ | .// | /cC/* | \
  4050. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4051. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  4052. /usr/ucb/* ) ;;
  4053. *)
  4054. # OSF1 and SCO ODT 3.0 have their own names for install.
  4055. # Don't use installbsd from OSF since it installs stuff as root
  4056. # by default.
  4057. for ac_prog in ginstall scoinst install; do
  4058. for ac_exec_ext in '' $ac_executable_extensions; do
  4059. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4060. if test $ac_prog = install &&
  4061. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4062. # AIX install. It has an incompatible calling convention.
  4063. :
  4064. elif test $ac_prog = install &&
  4065. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4066. # program-specific install script used by HP pwplus--don't use.
  4067. :
  4068. else
  4069. rm -rf conftest.one conftest.two conftest.dir
  4070. echo one > conftest.one
  4071. echo two > conftest.two
  4072. mkdir conftest.dir
  4073. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4074. test -s conftest.one && test -s conftest.two &&
  4075. test -s conftest.dir/conftest.one &&
  4076. test -s conftest.dir/conftest.two
  4077. then
  4078. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4079. break 3
  4080. fi
  4081. fi
  4082. fi
  4083. done
  4084. done
  4085. ;;
  4086. esac
  4087. done
  4088. IFS=$as_save_IFS
  4089. rm -rf conftest.one conftest.two conftest.dir
  4090. fi
  4091. if test "${ac_cv_path_install+set}" = set; then
  4092. INSTALL=$ac_cv_path_install
  4093. else
  4094. # As a last resort, use the slow shell script. Don't cache a
  4095. # value for INSTALL within a source directory, because that will
  4096. # break other packages using the cache if that directory is
  4097. # removed, or if the value is a relative name.
  4098. INSTALL=$ac_install_sh
  4099. fi
  4100. fi
  4101. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  4102. $as_echo "$INSTALL" >&6; }
  4103. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4104. # It thinks the first close brace ends the variable substitution.
  4105. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4106. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4107. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4108. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  4109. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  4110. if test -z "$MKDIR_P"; then
  4111. if test "${ac_cv_path_mkdir+set}" = set; then
  4112. $as_echo_n "(cached) " >&6
  4113. else
  4114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4115. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  4116. do
  4117. IFS=$as_save_IFS
  4118. test -z "$as_dir" && as_dir=.
  4119. for ac_prog in mkdir gmkdir; do
  4120. for ac_exec_ext in '' $ac_executable_extensions; do
  4121. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  4122. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  4123. 'mkdir (GNU coreutils) '* | \
  4124. 'mkdir (coreutils) '* | \
  4125. 'mkdir (fileutils) '4.1*)
  4126. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  4127. break 3;;
  4128. esac
  4129. done
  4130. done
  4131. done
  4132. IFS=$as_save_IFS
  4133. fi
  4134. if test "${ac_cv_path_mkdir+set}" = set; then
  4135. MKDIR_P="$ac_cv_path_mkdir -p"
  4136. else
  4137. # As a last resort, use the slow shell script. Don't cache a
  4138. # value for MKDIR_P within a source directory, because that will
  4139. # break other packages using the cache if that directory is
  4140. # removed, or if the value is a relative name.
  4141. test -d ./--version && rmdir ./--version
  4142. MKDIR_P="$ac_install_sh -d"
  4143. fi
  4144. fi
  4145. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  4146. $as_echo "$MKDIR_P" >&6; }
  4147. if test -n "$ac_tool_prefix"; then
  4148. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4149. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4150. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4151. $as_echo_n "checking for $ac_word... " >&6; }
  4152. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4153. $as_echo_n "(cached) " >&6
  4154. else
  4155. if test -n "$RANLIB"; then
  4156. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4157. else
  4158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4159. for as_dir in $PATH
  4160. do
  4161. IFS=$as_save_IFS
  4162. test -z "$as_dir" && as_dir=.
  4163. for ac_exec_ext in '' $ac_executable_extensions; do
  4164. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4165. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4166. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4167. break 2
  4168. fi
  4169. done
  4170. done
  4171. IFS=$as_save_IFS
  4172. fi
  4173. fi
  4174. RANLIB=$ac_cv_prog_RANLIB
  4175. if test -n "$RANLIB"; then
  4176. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4177. $as_echo "$RANLIB" >&6; }
  4178. else
  4179. { $as_echo "$as_me:$LINENO: result: no" >&5
  4180. $as_echo "no" >&6; }
  4181. fi
  4182. fi
  4183. if test -z "$ac_cv_prog_RANLIB"; then
  4184. ac_ct_RANLIB=$RANLIB
  4185. # Extract the first word of "ranlib", so it can be a program name with args.
  4186. set dummy ranlib; ac_word=$2
  4187. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4188. $as_echo_n "checking for $ac_word... " >&6; }
  4189. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4190. $as_echo_n "(cached) " >&6
  4191. else
  4192. if test -n "$ac_ct_RANLIB"; then
  4193. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4194. else
  4195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4196. for as_dir in $PATH
  4197. do
  4198. IFS=$as_save_IFS
  4199. test -z "$as_dir" && as_dir=.
  4200. for ac_exec_ext in '' $ac_executable_extensions; do
  4201. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4202. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4203. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4204. break 2
  4205. fi
  4206. done
  4207. done
  4208. IFS=$as_save_IFS
  4209. fi
  4210. fi
  4211. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4212. if test -n "$ac_ct_RANLIB"; then
  4213. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4214. $as_echo "$ac_ct_RANLIB" >&6; }
  4215. else
  4216. { $as_echo "$as_me:$LINENO: result: no" >&5
  4217. $as_echo "no" >&6; }
  4218. fi
  4219. if test "x$ac_ct_RANLIB" = x; then
  4220. RANLIB=":"
  4221. else
  4222. case $cross_compiling:$ac_tool_warned in
  4223. yes:)
  4224. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4225. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4226. ac_tool_warned=yes ;;
  4227. esac
  4228. RANLIB=$ac_ct_RANLIB
  4229. fi
  4230. else
  4231. RANLIB="$ac_cv_prog_RANLIB"
  4232. fi
  4233. for ac_prog in 'bison -y' byacc
  4234. do
  4235. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4236. set dummy $ac_prog; ac_word=$2
  4237. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4238. $as_echo_n "checking for $ac_word... " >&6; }
  4239. if test "${ac_cv_prog_YACC+set}" = set; then
  4240. $as_echo_n "(cached) " >&6
  4241. else
  4242. if test -n "$YACC"; then
  4243. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4244. else
  4245. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4246. for as_dir in $PATH
  4247. do
  4248. IFS=$as_save_IFS
  4249. test -z "$as_dir" && as_dir=.
  4250. for ac_exec_ext in '' $ac_executable_extensions; do
  4251. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4252. ac_cv_prog_YACC="$ac_prog"
  4253. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4254. break 2
  4255. fi
  4256. done
  4257. done
  4258. IFS=$as_save_IFS
  4259. fi
  4260. fi
  4261. YACC=$ac_cv_prog_YACC
  4262. if test -n "$YACC"; then
  4263. { $as_echo "$as_me:$LINENO: result: $YACC" >&5
  4264. $as_echo "$YACC" >&6; }
  4265. else
  4266. { $as_echo "$as_me:$LINENO: result: no" >&5
  4267. $as_echo "no" >&6; }
  4268. fi
  4269. test -n "$YACC" && break
  4270. done
  4271. test -n "$YACC" || YACC="yacc"
  4272. # Setting language choice
  4273. ac_ext=cpp
  4274. ac_cpp='$CXXCPP $CPPFLAGS'
  4275. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4276. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4277. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4278. # Enable system extensions
  4279. ac_ext=cpp
  4280. ac_cpp='$CXXCPP $CPPFLAGS'
  4281. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4282. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4283. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4284. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4285. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4286. if test -z "$CXXCPP"; then
  4287. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4288. $as_echo_n "(cached) " >&6
  4289. else
  4290. # Double quotes because CXXCPP needs to be expanded
  4291. for CXXCPP in "$CXX -E" "/lib/cpp"
  4292. do
  4293. ac_preproc_ok=false
  4294. for ac_cxx_preproc_warn_flag in '' yes
  4295. do
  4296. # Use a header file that comes with gcc, so configuring glibc
  4297. # with a fresh cross-compiler works.
  4298. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4299. # <limits.h> exists even on freestanding compilers.
  4300. # On the NeXT, cc -E runs the code through the compiler's parser,
  4301. # not just through cpp. "Syntax error" is here to catch this case.
  4302. cat >conftest.$ac_ext <<_ACEOF
  4303. /* confdefs.h. */
  4304. _ACEOF
  4305. cat confdefs.h >>conftest.$ac_ext
  4306. cat >>conftest.$ac_ext <<_ACEOF
  4307. /* end confdefs.h. */
  4308. #ifdef __STDC__
  4309. # include <limits.h>
  4310. #else
  4311. # include <assert.h>
  4312. #endif
  4313. Syntax error
  4314. _ACEOF
  4315. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4316. case "(($ac_try" in
  4317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4318. *) ac_try_echo=$ac_try;;
  4319. esac
  4320. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4321. $as_echo "$ac_try_echo") >&5
  4322. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4323. ac_status=$?
  4324. grep -v '^ *+' conftest.er1 >conftest.err
  4325. rm -f conftest.er1
  4326. cat conftest.err >&5
  4327. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4328. (exit $ac_status); } >/dev/null && {
  4329. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4330. test ! -s conftest.err
  4331. }; then
  4332. :
  4333. else
  4334. $as_echo "$as_me: failed program was:" >&5
  4335. sed 's/^/| /' conftest.$ac_ext >&5
  4336. # Broken: fails on valid input.
  4337. continue
  4338. fi
  4339. rm -f conftest.err conftest.$ac_ext
  4340. # OK, works on sane cases. Now check whether nonexistent headers
  4341. # can be detected and how.
  4342. cat >conftest.$ac_ext <<_ACEOF
  4343. /* confdefs.h. */
  4344. _ACEOF
  4345. cat confdefs.h >>conftest.$ac_ext
  4346. cat >>conftest.$ac_ext <<_ACEOF
  4347. /* end confdefs.h. */
  4348. #include <ac_nonexistent.h>
  4349. _ACEOF
  4350. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4351. case "(($ac_try" in
  4352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4353. *) ac_try_echo=$ac_try;;
  4354. esac
  4355. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4356. $as_echo "$ac_try_echo") >&5
  4357. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4358. ac_status=$?
  4359. grep -v '^ *+' conftest.er1 >conftest.err
  4360. rm -f conftest.er1
  4361. cat conftest.err >&5
  4362. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4363. (exit $ac_status); } >/dev/null && {
  4364. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4365. test ! -s conftest.err
  4366. }; then
  4367. # Broken: success on invalid input.
  4368. continue
  4369. else
  4370. $as_echo "$as_me: failed program was:" >&5
  4371. sed 's/^/| /' conftest.$ac_ext >&5
  4372. # Passes both tests.
  4373. ac_preproc_ok=:
  4374. break
  4375. fi
  4376. rm -f conftest.err conftest.$ac_ext
  4377. done
  4378. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4379. rm -f conftest.err conftest.$ac_ext
  4380. if $ac_preproc_ok; then
  4381. break
  4382. fi
  4383. done
  4384. ac_cv_prog_CXXCPP=$CXXCPP
  4385. fi
  4386. CXXCPP=$ac_cv_prog_CXXCPP
  4387. else
  4388. ac_cv_prog_CXXCPP=$CXXCPP
  4389. fi
  4390. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4391. $as_echo "$CXXCPP" >&6; }
  4392. ac_preproc_ok=false
  4393. for ac_cxx_preproc_warn_flag in '' yes
  4394. do
  4395. # Use a header file that comes with gcc, so configuring glibc
  4396. # with a fresh cross-compiler works.
  4397. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4398. # <limits.h> exists even on freestanding compilers.
  4399. # On the NeXT, cc -E runs the code through the compiler's parser,
  4400. # not just through cpp. "Syntax error" is here to catch this case.
  4401. cat >conftest.$ac_ext <<_ACEOF
  4402. /* confdefs.h. */
  4403. _ACEOF
  4404. cat confdefs.h >>conftest.$ac_ext
  4405. cat >>conftest.$ac_ext <<_ACEOF
  4406. /* end confdefs.h. */
  4407. #ifdef __STDC__
  4408. # include <limits.h>
  4409. #else
  4410. # include <assert.h>
  4411. #endif
  4412. Syntax error
  4413. _ACEOF
  4414. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4415. case "(($ac_try" in
  4416. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4417. *) ac_try_echo=$ac_try;;
  4418. esac
  4419. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4420. $as_echo "$ac_try_echo") >&5
  4421. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4422. ac_status=$?
  4423. grep -v '^ *+' conftest.er1 >conftest.err
  4424. rm -f conftest.er1
  4425. cat conftest.err >&5
  4426. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4427. (exit $ac_status); } >/dev/null && {
  4428. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4429. test ! -s conftest.err
  4430. }; then
  4431. :
  4432. else
  4433. $as_echo "$as_me: failed program was:" >&5
  4434. sed 's/^/| /' conftest.$ac_ext >&5
  4435. # Broken: fails on valid input.
  4436. continue
  4437. fi
  4438. rm -f conftest.err conftest.$ac_ext
  4439. # OK, works on sane cases. Now check whether nonexistent headers
  4440. # can be detected and how.
  4441. cat >conftest.$ac_ext <<_ACEOF
  4442. /* confdefs.h. */
  4443. _ACEOF
  4444. cat confdefs.h >>conftest.$ac_ext
  4445. cat >>conftest.$ac_ext <<_ACEOF
  4446. /* end confdefs.h. */
  4447. #include <ac_nonexistent.h>
  4448. _ACEOF
  4449. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4450. case "(($ac_try" in
  4451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4452. *) ac_try_echo=$ac_try;;
  4453. esac
  4454. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4455. $as_echo "$ac_try_echo") >&5
  4456. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4457. ac_status=$?
  4458. grep -v '^ *+' conftest.er1 >conftest.err
  4459. rm -f conftest.er1
  4460. cat conftest.err >&5
  4461. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4462. (exit $ac_status); } >/dev/null && {
  4463. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4464. test ! -s conftest.err
  4465. }; then
  4466. # Broken: success on invalid input.
  4467. continue
  4468. else
  4469. $as_echo "$as_me: failed program was:" >&5
  4470. sed 's/^/| /' conftest.$ac_ext >&5
  4471. # Passes both tests.
  4472. ac_preproc_ok=:
  4473. break
  4474. fi
  4475. rm -f conftest.err conftest.$ac_ext
  4476. done
  4477. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4478. rm -f conftest.err conftest.$ac_ext
  4479. if $ac_preproc_ok; then
  4480. :
  4481. else
  4482. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  4483. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4484. { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4485. See \`config.log' for more details." >&5
  4486. $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4487. See \`config.log' for more details." >&2;}
  4488. { (exit 1); exit 1; }; }; }
  4489. fi
  4490. ac_ext=cpp
  4491. ac_cpp='$CXXCPP $CPPFLAGS'
  4492. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4493. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4494. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4495. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4496. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4497. if test "${ac_cv_path_GREP+set}" = set; then
  4498. $as_echo_n "(cached) " >&6
  4499. else
  4500. if test -z "$GREP"; then
  4501. ac_path_GREP_found=false
  4502. # Loop through the user's path and test for each of PROGNAME-LIST
  4503. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4504. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4505. do
  4506. IFS=$as_save_IFS
  4507. test -z "$as_dir" && as_dir=.
  4508. for ac_prog in grep ggrep; do
  4509. for ac_exec_ext in '' $ac_executable_extensions; do
  4510. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4511. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4512. # Check for GNU ac_path_GREP and select it if it is found.
  4513. # Check for GNU $ac_path_GREP
  4514. case `"$ac_path_GREP" --version 2>&1` in
  4515. *GNU*)
  4516. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4517. *)
  4518. ac_count=0
  4519. $as_echo_n 0123456789 >"conftest.in"
  4520. while :
  4521. do
  4522. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4523. mv "conftest.tmp" "conftest.in"
  4524. cp "conftest.in" "conftest.nl"
  4525. $as_echo 'GREP' >> "conftest.nl"
  4526. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4527. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4528. ac_count=`expr $ac_count + 1`
  4529. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4530. # Best one so far, save it but keep looking for a better one
  4531. ac_cv_path_GREP="$ac_path_GREP"
  4532. ac_path_GREP_max=$ac_count
  4533. fi
  4534. # 10*(2^10) chars as input seems more than enough
  4535. test $ac_count -gt 10 && break
  4536. done
  4537. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4538. esac
  4539. $ac_path_GREP_found && break 3
  4540. done
  4541. done
  4542. done
  4543. IFS=$as_save_IFS
  4544. if test -z "$ac_cv_path_GREP"; then
  4545. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4546. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4547. { (exit 1); exit 1; }; }
  4548. fi
  4549. else
  4550. ac_cv_path_GREP=$GREP
  4551. fi
  4552. fi
  4553. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4554. $as_echo "$ac_cv_path_GREP" >&6; }
  4555. GREP="$ac_cv_path_GREP"
  4556. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4557. $as_echo_n "checking for egrep... " >&6; }
  4558. if test "${ac_cv_path_EGREP+set}" = set; then
  4559. $as_echo_n "(cached) " >&6
  4560. else
  4561. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4562. then ac_cv_path_EGREP="$GREP -E"
  4563. else
  4564. if test -z "$EGREP"; then
  4565. ac_path_EGREP_found=false
  4566. # Loop through the user's path and test for each of PROGNAME-LIST
  4567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4568. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4569. do
  4570. IFS=$as_save_IFS
  4571. test -z "$as_dir" && as_dir=.
  4572. for ac_prog in egrep; do
  4573. for ac_exec_ext in '' $ac_executable_extensions; do
  4574. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4575. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4576. # Check for GNU ac_path_EGREP and select it if it is found.
  4577. # Check for GNU $ac_path_EGREP
  4578. case `"$ac_path_EGREP" --version 2>&1` in
  4579. *GNU*)
  4580. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4581. *)
  4582. ac_count=0
  4583. $as_echo_n 0123456789 >"conftest.in"
  4584. while :
  4585. do
  4586. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4587. mv "conftest.tmp" "conftest.in"
  4588. cp "conftest.in" "conftest.nl"
  4589. $as_echo 'EGREP' >> "conftest.nl"
  4590. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4591. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4592. ac_count=`expr $ac_count + 1`
  4593. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4594. # Best one so far, save it but keep looking for a better one
  4595. ac_cv_path_EGREP="$ac_path_EGREP"
  4596. ac_path_EGREP_max=$ac_count
  4597. fi
  4598. # 10*(2^10) chars as input seems more than enough
  4599. test $ac_count -gt 10 && break
  4600. done
  4601. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4602. esac
  4603. $ac_path_EGREP_found && break 3
  4604. done
  4605. done
  4606. done
  4607. IFS=$as_save_IFS
  4608. if test -z "$ac_cv_path_EGREP"; then
  4609. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4610. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4611. { (exit 1); exit 1; }; }
  4612. fi
  4613. else
  4614. ac_cv_path_EGREP=$EGREP
  4615. fi
  4616. fi
  4617. fi
  4618. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4619. $as_echo "$ac_cv_path_EGREP" >&6; }
  4620. EGREP="$ac_cv_path_EGREP"
  4621. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4622. $as_echo_n "checking for ANSI C header files... " >&6; }
  4623. if test "${ac_cv_header_stdc+set}" = set; then
  4624. $as_echo_n "(cached) " >&6
  4625. else
  4626. cat >conftest.$ac_ext <<_ACEOF
  4627. /* confdefs.h. */
  4628. _ACEOF
  4629. cat confdefs.h >>conftest.$ac_ext
  4630. cat >>conftest.$ac_ext <<_ACEOF
  4631. /* end confdefs.h. */
  4632. #include <stdlib.h>
  4633. #include <stdarg.h>
  4634. #include <string.h>
  4635. #include <float.h>
  4636. int
  4637. main ()
  4638. {
  4639. ;
  4640. return 0;
  4641. }
  4642. _ACEOF
  4643. rm -f conftest.$ac_objext
  4644. if { (ac_try="$ac_compile"
  4645. case "(($ac_try" in
  4646. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4647. *) ac_try_echo=$ac_try;;
  4648. esac
  4649. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4650. $as_echo "$ac_try_echo") >&5
  4651. (eval "$ac_compile") 2>conftest.er1
  4652. ac_status=$?
  4653. grep -v '^ *+' conftest.er1 >conftest.err
  4654. rm -f conftest.er1
  4655. cat conftest.err >&5
  4656. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4657. (exit $ac_status); } && {
  4658. test -z "$ac_cxx_werror_flag" ||
  4659. test ! -s conftest.err
  4660. } && test -s conftest.$ac_objext; then
  4661. ac_cv_header_stdc=yes
  4662. else
  4663. $as_echo "$as_me: failed program was:" >&5
  4664. sed 's/^/| /' conftest.$ac_ext >&5
  4665. ac_cv_header_stdc=no
  4666. fi
  4667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4668. if test $ac_cv_header_stdc = yes; then
  4669. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4670. cat >conftest.$ac_ext <<_ACEOF
  4671. /* confdefs.h. */
  4672. _ACEOF
  4673. cat confdefs.h >>conftest.$ac_ext
  4674. cat >>conftest.$ac_ext <<_ACEOF
  4675. /* end confdefs.h. */
  4676. #include <string.h>
  4677. _ACEOF
  4678. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4679. $EGREP "memchr" >/dev/null 2>&1; then
  4680. :
  4681. else
  4682. ac_cv_header_stdc=no
  4683. fi
  4684. rm -f conftest*
  4685. fi
  4686. if test $ac_cv_header_stdc = yes; then
  4687. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4688. cat >conftest.$ac_ext <<_ACEOF
  4689. /* confdefs.h. */
  4690. _ACEOF
  4691. cat confdefs.h >>conftest.$ac_ext
  4692. cat >>conftest.$ac_ext <<_ACEOF
  4693. /* end confdefs.h. */
  4694. #include <stdlib.h>
  4695. _ACEOF
  4696. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4697. $EGREP "free" >/dev/null 2>&1; then
  4698. :
  4699. else
  4700. ac_cv_header_stdc=no
  4701. fi
  4702. rm -f conftest*
  4703. fi
  4704. if test $ac_cv_header_stdc = yes; then
  4705. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4706. if test "$cross_compiling" = yes; then
  4707. :
  4708. else
  4709. cat >conftest.$ac_ext <<_ACEOF
  4710. /* confdefs.h. */
  4711. _ACEOF
  4712. cat confdefs.h >>conftest.$ac_ext
  4713. cat >>conftest.$ac_ext <<_ACEOF
  4714. /* end confdefs.h. */
  4715. #include <ctype.h>
  4716. #include <stdlib.h>
  4717. #if ((' ' & 0x0FF) == 0x020)
  4718. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4719. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4720. #else
  4721. # define ISLOWER(c) \
  4722. (('a' <= (c) && (c) <= 'i') \
  4723. || ('j' <= (c) && (c) <= 'r') \
  4724. || ('s' <= (c) && (c) <= 'z'))
  4725. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4726. #endif
  4727. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4728. int
  4729. main ()
  4730. {
  4731. int i;
  4732. for (i = 0; i < 256; i++)
  4733. if (XOR (islower (i), ISLOWER (i))
  4734. || toupper (i) != TOUPPER (i))
  4735. return 2;
  4736. return 0;
  4737. }
  4738. _ACEOF
  4739. rm -f conftest$ac_exeext
  4740. if { (ac_try="$ac_link"
  4741. case "(($ac_try" in
  4742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4743. *) ac_try_echo=$ac_try;;
  4744. esac
  4745. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4746. $as_echo "$ac_try_echo") >&5
  4747. (eval "$ac_link") 2>&5
  4748. ac_status=$?
  4749. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4750. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4751. { (case "(($ac_try" in
  4752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4753. *) ac_try_echo=$ac_try;;
  4754. esac
  4755. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4756. $as_echo "$ac_try_echo") >&5
  4757. (eval "$ac_try") 2>&5
  4758. ac_status=$?
  4759. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4760. (exit $ac_status); }; }; then
  4761. :
  4762. else
  4763. $as_echo "$as_me: program exited with status $ac_status" >&5
  4764. $as_echo "$as_me: failed program was:" >&5
  4765. sed 's/^/| /' conftest.$ac_ext >&5
  4766. ( exit $ac_status )
  4767. ac_cv_header_stdc=no
  4768. fi
  4769. rm -rf conftest.dSYM
  4770. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4771. fi
  4772. fi
  4773. fi
  4774. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4775. $as_echo "$ac_cv_header_stdc" >&6; }
  4776. if test $ac_cv_header_stdc = yes; then
  4777. cat >>confdefs.h <<\_ACEOF
  4778. #define STDC_HEADERS 1
  4779. _ACEOF
  4780. fi
  4781. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4782. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4783. inttypes.h stdint.h unistd.h
  4784. do
  4785. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4786. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4787. $as_echo_n "checking for $ac_header... " >&6; }
  4788. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4789. $as_echo_n "(cached) " >&6
  4790. else
  4791. cat >conftest.$ac_ext <<_ACEOF
  4792. /* confdefs.h. */
  4793. _ACEOF
  4794. cat confdefs.h >>conftest.$ac_ext
  4795. cat >>conftest.$ac_ext <<_ACEOF
  4796. /* end confdefs.h. */
  4797. $ac_includes_default
  4798. #include <$ac_header>
  4799. _ACEOF
  4800. rm -f conftest.$ac_objext
  4801. if { (ac_try="$ac_compile"
  4802. case "(($ac_try" in
  4803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4804. *) ac_try_echo=$ac_try;;
  4805. esac
  4806. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4807. $as_echo "$ac_try_echo") >&5
  4808. (eval "$ac_compile") 2>conftest.er1
  4809. ac_status=$?
  4810. grep -v '^ *+' conftest.er1 >conftest.err
  4811. rm -f conftest.er1
  4812. cat conftest.err >&5
  4813. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4814. (exit $ac_status); } && {
  4815. test -z "$ac_cxx_werror_flag" ||
  4816. test ! -s conftest.err
  4817. } && test -s conftest.$ac_objext; then
  4818. eval "$as_ac_Header=yes"
  4819. else
  4820. $as_echo "$as_me: failed program was:" >&5
  4821. sed 's/^/| /' conftest.$ac_ext >&5
  4822. eval "$as_ac_Header=no"
  4823. fi
  4824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4825. fi
  4826. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4827. $as_echo "$as_val"'`
  4828. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4829. $as_echo "$ac_res" >&6; }
  4830. as_val=`eval 'as_val=${'$as_ac_Header'}
  4831. $as_echo "$as_val"'`
  4832. if test "x$as_val" = x""yes; then
  4833. cat >>confdefs.h <<_ACEOF
  4834. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4835. _ACEOF
  4836. fi
  4837. done
  4838. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4839. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4840. $as_echo_n "checking for minix/config.h... " >&6; }
  4841. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4842. $as_echo_n "(cached) " >&6
  4843. fi
  4844. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4845. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  4846. else
  4847. # Is the header compilable?
  4848. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4849. $as_echo_n "checking minix/config.h usability... " >&6; }
  4850. cat >conftest.$ac_ext <<_ACEOF
  4851. /* confdefs.h. */
  4852. _ACEOF
  4853. cat confdefs.h >>conftest.$ac_ext
  4854. cat >>conftest.$ac_ext <<_ACEOF
  4855. /* end confdefs.h. */
  4856. $ac_includes_default
  4857. #include <minix/config.h>
  4858. _ACEOF
  4859. rm -f conftest.$ac_objext
  4860. if { (ac_try="$ac_compile"
  4861. case "(($ac_try" in
  4862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4863. *) ac_try_echo=$ac_try;;
  4864. esac
  4865. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4866. $as_echo "$ac_try_echo") >&5
  4867. (eval "$ac_compile") 2>conftest.er1
  4868. ac_status=$?
  4869. grep -v '^ *+' conftest.er1 >conftest.err
  4870. rm -f conftest.er1
  4871. cat conftest.err >&5
  4872. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4873. (exit $ac_status); } && {
  4874. test -z "$ac_cxx_werror_flag" ||
  4875. test ! -s conftest.err
  4876. } && test -s conftest.$ac_objext; then
  4877. ac_header_compiler=yes
  4878. else
  4879. $as_echo "$as_me: failed program was:" >&5
  4880. sed 's/^/| /' conftest.$ac_ext >&5
  4881. ac_header_compiler=no
  4882. fi
  4883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4884. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4885. $as_echo "$ac_header_compiler" >&6; }
  4886. # Is the header present?
  4887. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4888. $as_echo_n "checking minix/config.h presence... " >&6; }
  4889. cat >conftest.$ac_ext <<_ACEOF
  4890. /* confdefs.h. */
  4891. _ACEOF
  4892. cat confdefs.h >>conftest.$ac_ext
  4893. cat >>conftest.$ac_ext <<_ACEOF
  4894. /* end confdefs.h. */
  4895. #include <minix/config.h>
  4896. _ACEOF
  4897. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4898. case "(($ac_try" in
  4899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4900. *) ac_try_echo=$ac_try;;
  4901. esac
  4902. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4903. $as_echo "$ac_try_echo") >&5
  4904. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4905. ac_status=$?
  4906. grep -v '^ *+' conftest.er1 >conftest.err
  4907. rm -f conftest.er1
  4908. cat conftest.err >&5
  4909. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4910. (exit $ac_status); } >/dev/null && {
  4911. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4912. test ! -s conftest.err
  4913. }; then
  4914. ac_header_preproc=yes
  4915. else
  4916. $as_echo "$as_me: failed program was:" >&5
  4917. sed 's/^/| /' conftest.$ac_ext >&5
  4918. ac_header_preproc=no
  4919. fi
  4920. rm -f conftest.err conftest.$ac_ext
  4921. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4922. $as_echo "$ac_header_preproc" >&6; }
  4923. # So? What about this header?
  4924. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4925. yes:no: )
  4926. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4927. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4928. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4929. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4930. ac_header_preproc=yes
  4931. ;;
  4932. no:yes:* )
  4933. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4934. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4935. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4936. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4937. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4938. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4939. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4940. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4941. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4942. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4943. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4944. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4945. ( cat <<\_ASBOX
  4946. ## ----------------------------------------------- ##
  4947. ## Report this to t-tujikawa@users.sourceforge.net ##
  4948. ## ----------------------------------------------- ##
  4949. _ASBOX
  4950. ) | sed "s/^/$as_me: WARNING: /" >&2
  4951. ;;
  4952. esac
  4953. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4954. $as_echo_n "checking for minix/config.h... " >&6; }
  4955. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4956. $as_echo_n "(cached) " >&6
  4957. else
  4958. ac_cv_header_minix_config_h=$ac_header_preproc
  4959. fi
  4960. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4961. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  4962. fi
  4963. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  4964. MINIX=yes
  4965. else
  4966. MINIX=
  4967. fi
  4968. if test "$MINIX" = yes; then
  4969. cat >>confdefs.h <<\_ACEOF
  4970. #define _POSIX_SOURCE 1
  4971. _ACEOF
  4972. cat >>confdefs.h <<\_ACEOF
  4973. #define _POSIX_1_SOURCE 2
  4974. _ACEOF
  4975. cat >>confdefs.h <<\_ACEOF
  4976. #define _MINIX 1
  4977. _ACEOF
  4978. fi
  4979. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  4980. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4981. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  4982. $as_echo_n "(cached) " >&6
  4983. else
  4984. cat >conftest.$ac_ext <<_ACEOF
  4985. /* confdefs.h. */
  4986. _ACEOF
  4987. cat confdefs.h >>conftest.$ac_ext
  4988. cat >>conftest.$ac_ext <<_ACEOF
  4989. /* end confdefs.h. */
  4990. # define __EXTENSIONS__ 1
  4991. $ac_includes_default
  4992. int
  4993. main ()
  4994. {
  4995. ;
  4996. return 0;
  4997. }
  4998. _ACEOF
  4999. rm -f conftest.$ac_objext
  5000. if { (ac_try="$ac_compile"
  5001. case "(($ac_try" in
  5002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5003. *) ac_try_echo=$ac_try;;
  5004. esac
  5005. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5006. $as_echo "$ac_try_echo") >&5
  5007. (eval "$ac_compile") 2>conftest.er1
  5008. ac_status=$?
  5009. grep -v '^ *+' conftest.er1 >conftest.err
  5010. rm -f conftest.er1
  5011. cat conftest.err >&5
  5012. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5013. (exit $ac_status); } && {
  5014. test -z "$ac_cxx_werror_flag" ||
  5015. test ! -s conftest.err
  5016. } && test -s conftest.$ac_objext; then
  5017. ac_cv_safe_to_define___extensions__=yes
  5018. else
  5019. $as_echo "$as_me: failed program was:" >&5
  5020. sed 's/^/| /' conftest.$ac_ext >&5
  5021. ac_cv_safe_to_define___extensions__=no
  5022. fi
  5023. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5024. fi
  5025. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  5026. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5027. test $ac_cv_safe_to_define___extensions__ = yes &&
  5028. cat >>confdefs.h <<\_ACEOF
  5029. #define __EXTENSIONS__ 1
  5030. _ACEOF
  5031. cat >>confdefs.h <<\_ACEOF
  5032. #define _ALL_SOURCE 1
  5033. _ACEOF
  5034. cat >>confdefs.h <<\_ACEOF
  5035. #define _GNU_SOURCE 1
  5036. _ACEOF
  5037. cat >>confdefs.h <<\_ACEOF
  5038. #define _POSIX_PTHREAD_SEMANTICS 1
  5039. _ACEOF
  5040. cat >>confdefs.h <<\_ACEOF
  5041. #define _TANDEM_SOURCE 1
  5042. _ACEOF
  5043. # Checks for libraries.
  5044. if test "x$with_libxml2" = "xyes"; then
  5045. # Check whether --with-xml-prefix was given.
  5046. if test "${with_xml_prefix+set}" = set; then
  5047. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5048. else
  5049. xml_config_prefix=""
  5050. fi
  5051. # Check whether --with-xml-exec-prefix was given.
  5052. if test "${with_xml_exec_prefix+set}" = set; then
  5053. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5054. else
  5055. xml_config_exec_prefix=""
  5056. fi
  5057. # Check whether --enable-xmltest was given.
  5058. if test "${enable_xmltest+set}" = set; then
  5059. enableval=$enable_xmltest;
  5060. else
  5061. enable_xmltest=yes
  5062. fi
  5063. if test x$xml_config_exec_prefix != x ; then
  5064. xml_config_args="$xml_config_args"
  5065. if test x${XML2_CONFIG+set} != xset ; then
  5066. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5067. fi
  5068. fi
  5069. if test x$xml_config_prefix != x ; then
  5070. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5071. if test x${XML2_CONFIG+set} != xset ; then
  5072. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5073. fi
  5074. fi
  5075. # Extract the first word of "xml2-config", so it can be a program name with args.
  5076. set dummy xml2-config; ac_word=$2
  5077. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5078. $as_echo_n "checking for $ac_word... " >&6; }
  5079. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  5080. $as_echo_n "(cached) " >&6
  5081. else
  5082. case $XML2_CONFIG in
  5083. [\\/]* | ?:[\\/]*)
  5084. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5085. ;;
  5086. *)
  5087. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5088. for as_dir in $PATH
  5089. do
  5090. IFS=$as_save_IFS
  5091. test -z "$as_dir" && as_dir=.
  5092. for ac_exec_ext in '' $ac_executable_extensions; do
  5093. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5094. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5095. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5096. break 2
  5097. fi
  5098. done
  5099. done
  5100. IFS=$as_save_IFS
  5101. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5102. ;;
  5103. esac
  5104. fi
  5105. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5106. if test -n "$XML2_CONFIG"; then
  5107. { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  5108. $as_echo "$XML2_CONFIG" >&6; }
  5109. else
  5110. { $as_echo "$as_me:$LINENO: result: no" >&5
  5111. $as_echo "no" >&6; }
  5112. fi
  5113. min_xml_version=2.6.24
  5114. { $as_echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  5115. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5116. no_xml=""
  5117. if test "$XML2_CONFIG" = "no" ; then
  5118. no_xml=yes
  5119. else
  5120. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5121. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5122. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5123. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5124. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5125. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5126. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5127. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5128. if test "x$enable_xmltest" = "xyes" ; then
  5129. ac_save_CPPFLAGS="$CPPFLAGS"
  5130. ac_save_LIBS="$LIBS"
  5131. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5132. LIBS="$XML_LIBS $LIBS"
  5133. rm -f conf.xmltest
  5134. if test "$cross_compiling" = yes; then
  5135. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5136. else
  5137. cat >conftest.$ac_ext <<_ACEOF
  5138. /* confdefs.h. */
  5139. _ACEOF
  5140. cat confdefs.h >>conftest.$ac_ext
  5141. cat >>conftest.$ac_ext <<_ACEOF
  5142. /* end confdefs.h. */
  5143. #include <stdlib.h>
  5144. #include <stdio.h>
  5145. #include <string.h>
  5146. #include <libxml/xmlversion.h>
  5147. int
  5148. main()
  5149. {
  5150. int xml_major_version, xml_minor_version, xml_micro_version;
  5151. int major, minor, micro;
  5152. char *tmp_version;
  5153. system("touch conf.xmltest");
  5154. /* Capture xml2-config output via autoconf/configure variables */
  5155. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5156. tmp_version = (char *)strdup("$min_xml_version");
  5157. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5158. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5159. exit(1);
  5160. }
  5161. free(tmp_version);
  5162. /* Capture the version information from the header files */
  5163. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5164. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5165. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5166. exit(1);
  5167. }
  5168. free(tmp_version);
  5169. /* Compare xml2-config output to the libxml headers */
  5170. if ((xml_major_version != $xml_config_major_version) ||
  5171. (xml_minor_version != $xml_config_minor_version) ||
  5172. (xml_micro_version != $xml_config_micro_version))
  5173. {
  5174. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5175. xml_major_version, xml_minor_version, xml_micro_version);
  5176. printf("*** xml2-config (version %d.%d.%d)\n",
  5177. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5178. return 1;
  5179. }
  5180. /* Compare the headers to the library to make sure we match */
  5181. /* Less than ideal -- doesn't provide us with return value feedback,
  5182. * only exits if there's a serious mismatch between header and library.
  5183. */
  5184. LIBXML_TEST_VERSION;
  5185. /* Test that the library is greater than our minimum version */
  5186. if ((xml_major_version > major) ||
  5187. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5188. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5189. (xml_micro_version >= micro)))
  5190. {
  5191. return 0;
  5192. }
  5193. else
  5194. {
  5195. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5196. xml_major_version, xml_minor_version, xml_micro_version);
  5197. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5198. major, minor, micro);
  5199. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5200. printf("***\n");
  5201. printf("*** If you have already installed a sufficiently new version, this error\n");
  5202. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5203. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5204. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5205. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5206. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5207. printf("*** so that the correct libraries are found at run-time))\n");
  5208. }
  5209. return 1;
  5210. }
  5211. _ACEOF
  5212. rm -f conftest$ac_exeext
  5213. if { (ac_try="$ac_link"
  5214. case "(($ac_try" in
  5215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5216. *) ac_try_echo=$ac_try;;
  5217. esac
  5218. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5219. $as_echo "$ac_try_echo") >&5
  5220. (eval "$ac_link") 2>&5
  5221. ac_status=$?
  5222. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5223. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5224. { (case "(($ac_try" in
  5225. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5226. *) ac_try_echo=$ac_try;;
  5227. esac
  5228. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5229. $as_echo "$ac_try_echo") >&5
  5230. (eval "$ac_try") 2>&5
  5231. ac_status=$?
  5232. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5233. (exit $ac_status); }; }; then
  5234. :
  5235. else
  5236. $as_echo "$as_me: program exited with status $ac_status" >&5
  5237. $as_echo "$as_me: failed program was:" >&5
  5238. sed 's/^/| /' conftest.$ac_ext >&5
  5239. ( exit $ac_status )
  5240. no_xml=yes
  5241. fi
  5242. rm -rf conftest.dSYM
  5243. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5244. fi
  5245. CPPFLAGS="$ac_save_CPPFLAGS"
  5246. LIBS="$ac_save_LIBS"
  5247. fi
  5248. fi
  5249. if test "x$no_xml" = x ; then
  5250. { $as_echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5251. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5252. have_libxml2=yes
  5253. else
  5254. { $as_echo "$as_me:$LINENO: result: no" >&5
  5255. $as_echo "no" >&6; }
  5256. if test "$XML2_CONFIG" = "no" ; then
  5257. echo "*** The xml2-config script installed by LIBXML could not be found"
  5258. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5259. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5260. echo "*** full path to xml2-config."
  5261. else
  5262. if test -f conf.xmltest ; then
  5263. :
  5264. else
  5265. echo "*** Could not run libxml test program, checking why..."
  5266. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5267. LIBS="$LIBS $XML_LIBS"
  5268. cat >conftest.$ac_ext <<_ACEOF
  5269. /* confdefs.h. */
  5270. _ACEOF
  5271. cat confdefs.h >>conftest.$ac_ext
  5272. cat >>conftest.$ac_ext <<_ACEOF
  5273. /* end confdefs.h. */
  5274. #include <libxml/xmlversion.h>
  5275. #include <stdio.h>
  5276. int
  5277. main ()
  5278. {
  5279. LIBXML_TEST_VERSION; return 0;
  5280. ;
  5281. return 0;
  5282. }
  5283. _ACEOF
  5284. rm -f conftest.$ac_objext conftest$ac_exeext
  5285. if { (ac_try="$ac_link"
  5286. case "(($ac_try" in
  5287. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5288. *) ac_try_echo=$ac_try;;
  5289. esac
  5290. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5291. $as_echo "$ac_try_echo") >&5
  5292. (eval "$ac_link") 2>conftest.er1
  5293. ac_status=$?
  5294. grep -v '^ *+' conftest.er1 >conftest.err
  5295. rm -f conftest.er1
  5296. cat conftest.err >&5
  5297. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5298. (exit $ac_status); } && {
  5299. test -z "$ac_cxx_werror_flag" ||
  5300. test ! -s conftest.err
  5301. } && test -s conftest$ac_exeext && {
  5302. test "$cross_compiling" = yes ||
  5303. $as_test_x conftest$ac_exeext
  5304. }; then
  5305. echo "*** The test program compiled, but did not run. This usually means"
  5306. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5307. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5308. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5309. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5310. echo "*** is required on your system"
  5311. echo "***"
  5312. echo "*** If you have an old version installed, it is best to remove it, although"
  5313. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5314. else
  5315. $as_echo "$as_me: failed program was:" >&5
  5316. sed 's/^/| /' conftest.$ac_ext >&5
  5317. echo "*** The test program failed to compile or link. See the file config.log for the"
  5318. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5319. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5320. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5321. fi
  5322. rm -rf conftest.dSYM
  5323. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5324. conftest$ac_exeext conftest.$ac_ext
  5325. CPPFLAGS="$ac_save_CPPFLAGS"
  5326. LIBS="$ac_save_LIBS"
  5327. fi
  5328. fi
  5329. XML_CPPFLAGS=""
  5330. XML_LIBS=""
  5331. :
  5332. fi
  5333. rm -f conf.xmltest
  5334. if test "x$have_libxml2" = "xyes"; then
  5335. cat >>confdefs.h <<\_ACEOF
  5336. #define HAVE_LIBXML2 1
  5337. _ACEOF
  5338. fi
  5339. fi
  5340. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5341. # Check whether --with-libexpat-prefix was given.
  5342. if test "${with_libexpat_prefix+set}" = set; then
  5343. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5344. else
  5345. libexpat_prefix=""
  5346. fi
  5347. if test "x$libexpat_prefix" = "x"; then
  5348. libexpat_prefix="/usr"
  5349. fi
  5350. libexpat_prefix_lib=$libexpat_prefix/lib
  5351. libexpat_prefix_include=$libexpat_prefix/include
  5352. LIBS_save=$LIBS
  5353. CPPFLAGS_save=$CPPFLAGS
  5354. LIBS="-L$libexpat_prefix_lib $LIBS"
  5355. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5356. { $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5357. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5358. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5359. $as_echo_n "(cached) " >&6
  5360. else
  5361. ac_check_lib_save_LIBS=$LIBS
  5362. LIBS="-lexpat $LIBS"
  5363. cat >conftest.$ac_ext <<_ACEOF
  5364. /* confdefs.h. */
  5365. _ACEOF
  5366. cat confdefs.h >>conftest.$ac_ext
  5367. cat >>conftest.$ac_ext <<_ACEOF
  5368. /* end confdefs.h. */
  5369. /* Override any GCC internal prototype to avoid an error.
  5370. Use char because int might match the return type of a GCC
  5371. builtin and then its argument prototype would still apply. */
  5372. #ifdef __cplusplus
  5373. extern "C"
  5374. #endif
  5375. char XML_ParserCreate ();
  5376. int
  5377. main ()
  5378. {
  5379. return XML_ParserCreate ();
  5380. ;
  5381. return 0;
  5382. }
  5383. _ACEOF
  5384. rm -f conftest.$ac_objext conftest$ac_exeext
  5385. if { (ac_try="$ac_link"
  5386. case "(($ac_try" in
  5387. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5388. *) ac_try_echo=$ac_try;;
  5389. esac
  5390. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5391. $as_echo "$ac_try_echo") >&5
  5392. (eval "$ac_link") 2>conftest.er1
  5393. ac_status=$?
  5394. grep -v '^ *+' conftest.er1 >conftest.err
  5395. rm -f conftest.er1
  5396. cat conftest.err >&5
  5397. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5398. (exit $ac_status); } && {
  5399. test -z "$ac_cxx_werror_flag" ||
  5400. test ! -s conftest.err
  5401. } && test -s conftest$ac_exeext && {
  5402. test "$cross_compiling" = yes ||
  5403. $as_test_x conftest$ac_exeext
  5404. }; then
  5405. ac_cv_lib_expat_XML_ParserCreate=yes
  5406. else
  5407. $as_echo "$as_me: failed program was:" >&5
  5408. sed 's/^/| /' conftest.$ac_ext >&5
  5409. ac_cv_lib_expat_XML_ParserCreate=no
  5410. fi
  5411. rm -rf conftest.dSYM
  5412. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5413. conftest$ac_exeext conftest.$ac_ext
  5414. LIBS=$ac_check_lib_save_LIBS
  5415. fi
  5416. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5417. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5418. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then
  5419. have_libexpat=yes
  5420. fi
  5421. if test "x$have_libexpat" = "xyes"; then
  5422. cat >>confdefs.h <<\_ACEOF
  5423. #define HAVE_LIBEXPAT 1
  5424. _ACEOF
  5425. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5426. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5427. fi
  5428. LIBS=$LIBS_save
  5429. CPPFLAGS=$CPPFLAGS_save
  5430. fi
  5431. if test "x$with_sqlite3" = "xyes"; then
  5432. # Check whether --with-sqlite3-prefix was given.
  5433. if test "${with_sqlite3_prefix+set}" = set; then
  5434. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5435. else
  5436. sqlite3_prefix=""
  5437. fi
  5438. if test "x$sqlite3_prefix" = "x"; then
  5439. sqlite3_prefix="/usr"
  5440. fi
  5441. LIBS_save=$LIBS
  5442. CPPFLAGS_save=$CPPFLAGS
  5443. PKG_CONFIG="$sqlite3_prefix/bin/pkg-config"
  5444. if test -x $PKG_CONFIG; then
  5445. { $as_echo "$as_me:$LINENO: checking checking availability of sqlite3 using pkg-config" >&5
  5446. $as_echo_n "checking checking availability of sqlite3 using pkg-config... " >&6; }
  5447. $PKG_CONFIG --exists sqlite3
  5448. if test "$?" = "0"; then
  5449. # Use pkg-config to detect LIBS and CFLAGS
  5450. SQLITE3_LIBS=`$PKG_CONFIG --libs sqlite3`
  5451. SQLITE3_CFLAGS=`$PKG_CONFIG --cflags sqlite3`
  5452. LIBS="$SQLITE3_LIBS $LIBS"
  5453. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5454. have_sqlite3=yes
  5455. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5456. $as_echo "yes" >&6; }
  5457. else
  5458. { $as_echo "$as_me:$LINENO: result: no" >&5
  5459. $as_echo "no" >&6; }
  5460. fi
  5461. fi
  5462. if test "x$have_sqlite3" != "xyes"; then
  5463. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5464. sqlite3_prefix_include=$sqlite3_prefix/include
  5465. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5466. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5467. { $as_echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
  5468. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5469. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
  5470. $as_echo_n "(cached) " >&6
  5471. else
  5472. ac_check_lib_save_LIBS=$LIBS
  5473. LIBS="-lsqlite3 $LIBS"
  5474. cat >conftest.$ac_ext <<_ACEOF
  5475. /* confdefs.h. */
  5476. _ACEOF
  5477. cat confdefs.h >>conftest.$ac_ext
  5478. cat >>conftest.$ac_ext <<_ACEOF
  5479. /* end confdefs.h. */
  5480. /* Override any GCC internal prototype to avoid an error.
  5481. Use char because int might match the return type of a GCC
  5482. builtin and then its argument prototype would still apply. */
  5483. #ifdef __cplusplus
  5484. extern "C"
  5485. #endif
  5486. char sqlite3_open ();
  5487. int
  5488. main ()
  5489. {
  5490. return sqlite3_open ();
  5491. ;
  5492. return 0;
  5493. }
  5494. _ACEOF
  5495. rm -f conftest.$ac_objext conftest$ac_exeext
  5496. if { (ac_try="$ac_link"
  5497. case "(($ac_try" in
  5498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5499. *) ac_try_echo=$ac_try;;
  5500. esac
  5501. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5502. $as_echo "$ac_try_echo") >&5
  5503. (eval "$ac_link") 2>conftest.er1
  5504. ac_status=$?
  5505. grep -v '^ *+' conftest.er1 >conftest.err
  5506. rm -f conftest.er1
  5507. cat conftest.err >&5
  5508. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5509. (exit $ac_status); } && {
  5510. test -z "$ac_cxx_werror_flag" ||
  5511. test ! -s conftest.err
  5512. } && test -s conftest$ac_exeext && {
  5513. test "$cross_compiling" = yes ||
  5514. $as_test_x conftest$ac_exeext
  5515. }; then
  5516. ac_cv_lib_sqlite3_sqlite3_open=yes
  5517. else
  5518. $as_echo "$as_me: failed program was:" >&5
  5519. sed 's/^/| /' conftest.$ac_ext >&5
  5520. ac_cv_lib_sqlite3_sqlite3_open=no
  5521. fi
  5522. rm -rf conftest.dSYM
  5523. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5524. conftest$ac_exeext conftest.$ac_ext
  5525. LIBS=$ac_check_lib_save_LIBS
  5526. fi
  5527. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5528. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5529. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then
  5530. have_sqlite3=yes
  5531. fi
  5532. if test "x$have_sqlite3" = "xyes"; then
  5533. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5534. SQLITE3_CPPFLAGS="-I$sqlite3_prefix_include"
  5535. fi
  5536. fi
  5537. if test "x$have_sqlite3" = "xyes"; then
  5538. for ac_func in sqlite3_open_v2
  5539. do
  5540. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5541. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  5542. $as_echo_n "checking for $ac_func... " >&6; }
  5543. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5544. $as_echo_n "(cached) " >&6
  5545. else
  5546. cat >conftest.$ac_ext <<_ACEOF
  5547. /* confdefs.h. */
  5548. _ACEOF
  5549. cat confdefs.h >>conftest.$ac_ext
  5550. cat >>conftest.$ac_ext <<_ACEOF
  5551. /* end confdefs.h. */
  5552. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5553. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5554. #define $ac_func innocuous_$ac_func
  5555. /* System header to define __stub macros and hopefully few prototypes,
  5556. which can conflict with char $ac_func (); below.
  5557. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5558. <limits.h> exists even on freestanding compilers. */
  5559. #ifdef __STDC__
  5560. # include <limits.h>
  5561. #else
  5562. # include <assert.h>
  5563. #endif
  5564. #undef $ac_func
  5565. /* Override any GCC internal prototype to avoid an error.
  5566. Use char because int might match the return type of a GCC
  5567. builtin and then its argument prototype would still apply. */
  5568. #ifdef __cplusplus
  5569. extern "C"
  5570. #endif
  5571. char $ac_func ();
  5572. /* The GNU C library defines this for functions which it implements
  5573. to always fail with ENOSYS. Some functions are actually named
  5574. something starting with __ and the normal name is an alias. */
  5575. #if defined __stub_$ac_func || defined __stub___$ac_func
  5576. choke me
  5577. #endif
  5578. int
  5579. main ()
  5580. {
  5581. return $ac_func ();
  5582. ;
  5583. return 0;
  5584. }
  5585. _ACEOF
  5586. rm -f conftest.$ac_objext conftest$ac_exeext
  5587. if { (ac_try="$ac_link"
  5588. case "(($ac_try" in
  5589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5590. *) ac_try_echo=$ac_try;;
  5591. esac
  5592. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5593. $as_echo "$ac_try_echo") >&5
  5594. (eval "$ac_link") 2>conftest.er1
  5595. ac_status=$?
  5596. grep -v '^ *+' conftest.er1 >conftest.err
  5597. rm -f conftest.er1
  5598. cat conftest.err >&5
  5599. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5600. (exit $ac_status); } && {
  5601. test -z "$ac_cxx_werror_flag" ||
  5602. test ! -s conftest.err
  5603. } && test -s conftest$ac_exeext && {
  5604. test "$cross_compiling" = yes ||
  5605. $as_test_x conftest$ac_exeext
  5606. }; then
  5607. eval "$as_ac_var=yes"
  5608. else
  5609. $as_echo "$as_me: failed program was:" >&5
  5610. sed 's/^/| /' conftest.$ac_ext >&5
  5611. eval "$as_ac_var=no"
  5612. fi
  5613. rm -rf conftest.dSYM
  5614. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5615. conftest$ac_exeext conftest.$ac_ext
  5616. fi
  5617. ac_res=`eval 'as_val=${'$as_ac_var'}
  5618. $as_echo "$as_val"'`
  5619. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5620. $as_echo "$ac_res" >&6; }
  5621. as_val=`eval 'as_val=${'$as_ac_var'}
  5622. $as_echo "$as_val"'`
  5623. if test "x$as_val" = x""yes; then
  5624. cat >>confdefs.h <<_ACEOF
  5625. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5626. _ACEOF
  5627. fi
  5628. done
  5629. cat >>confdefs.h <<\_ACEOF
  5630. #define HAVE_SQLITE3 1
  5631. _ACEOF
  5632. fi
  5633. LIBS=$LIBS_save
  5634. CPPFLAGS=$CPPFLAGS_save
  5635. fi
  5636. if test "x$with_gnutls" = "xyes"; then
  5637. # Check whether --with-libgnutls-prefix was given.
  5638. if test "${with_libgnutls_prefix+set}" = set; then
  5639. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5640. else
  5641. libgnutls_config_prefix=""
  5642. fi
  5643. if test x$libgnutls_config_prefix != x ; then
  5644. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5645. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5646. fi
  5647. fi
  5648. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5649. set dummy libgnutls-config; ac_word=$2
  5650. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5651. $as_echo_n "checking for $ac_word... " >&6; }
  5652. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5653. $as_echo_n "(cached) " >&6
  5654. else
  5655. case $LIBGNUTLS_CONFIG in
  5656. [\\/]* | ?:[\\/]*)
  5657. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5658. ;;
  5659. *)
  5660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5661. for as_dir in $PATH
  5662. do
  5663. IFS=$as_save_IFS
  5664. test -z "$as_dir" && as_dir=.
  5665. for ac_exec_ext in '' $ac_executable_extensions; do
  5666. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5667. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5668. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5669. break 2
  5670. fi
  5671. done
  5672. done
  5673. IFS=$as_save_IFS
  5674. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5675. ;;
  5676. esac
  5677. fi
  5678. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5679. if test -n "$LIBGNUTLS_CONFIG"; then
  5680. { $as_echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5681. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5682. else
  5683. { $as_echo "$as_me:$LINENO: result: no" >&5
  5684. $as_echo "no" >&6; }
  5685. fi
  5686. min_libgnutls_version=1.2.9
  5687. { $as_echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5688. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5689. no_libgnutls=""
  5690. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5691. no_libgnutls=yes
  5692. else
  5693. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5694. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5695. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5696. ac_save_CFLAGS="$CFLAGS"
  5697. ac_save_LIBS="$LIBS"
  5698. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5699. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5700. rm -f conf.libgnutlstest
  5701. if test "$cross_compiling" = yes; then
  5702. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5703. else
  5704. cat >conftest.$ac_ext <<_ACEOF
  5705. /* confdefs.h. */
  5706. _ACEOF
  5707. cat confdefs.h >>conftest.$ac_ext
  5708. cat >>conftest.$ac_ext <<_ACEOF
  5709. /* end confdefs.h. */
  5710. #include <stdio.h>
  5711. #include <stdlib.h>
  5712. #include <string.h>
  5713. #include <gnutls/gnutls.h>
  5714. int
  5715. main ()
  5716. {
  5717. system ("touch conf.libgnutlstest");
  5718. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5719. {
  5720. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5721. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5722. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5723. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5724. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5725. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5726. printf("*** required on your system.\n");
  5727. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5728. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5729. printf("*** before re-running configure\n");
  5730. }
  5731. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5732. {
  5733. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5734. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5735. }
  5736. else
  5737. {
  5738. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5739. {
  5740. return 0;
  5741. }
  5742. else
  5743. {
  5744. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5745. gnutls_check_version(NULL) );
  5746. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5747. "$min_libgnutls_version" );
  5748. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5749. printf("*** \n");
  5750. printf("*** If you have already installed a sufficiently new version, this error\n");
  5751. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  5752. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5753. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  5754. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  5755. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5756. printf("*** so that the correct libraries are found at run-time))\n");
  5757. }
  5758. }
  5759. return 1;
  5760. }
  5761. _ACEOF
  5762. rm -f conftest$ac_exeext
  5763. if { (ac_try="$ac_link"
  5764. case "(($ac_try" in
  5765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5766. *) ac_try_echo=$ac_try;;
  5767. esac
  5768. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5769. $as_echo "$ac_try_echo") >&5
  5770. (eval "$ac_link") 2>&5
  5771. ac_status=$?
  5772. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5773. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5774. { (case "(($ac_try" in
  5775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5776. *) ac_try_echo=$ac_try;;
  5777. esac
  5778. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5779. $as_echo "$ac_try_echo") >&5
  5780. (eval "$ac_try") 2>&5
  5781. ac_status=$?
  5782. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5783. (exit $ac_status); }; }; then
  5784. :
  5785. else
  5786. $as_echo "$as_me: program exited with status $ac_status" >&5
  5787. $as_echo "$as_me: failed program was:" >&5
  5788. sed 's/^/| /' conftest.$ac_ext >&5
  5789. ( exit $ac_status )
  5790. no_libgnutls=yes
  5791. fi
  5792. rm -rf conftest.dSYM
  5793. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5794. fi
  5795. CFLAGS="$ac_save_CFLAGS"
  5796. LIBS="$ac_save_LIBS"
  5797. fi
  5798. if test "x$no_libgnutls" = x ; then
  5799. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5800. $as_echo "yes" >&6; }
  5801. have_libgnutls=yes
  5802. else
  5803. if test -f conf.libgnutlstest ; then
  5804. :
  5805. else
  5806. { $as_echo "$as_me:$LINENO: result: no" >&5
  5807. $as_echo "no" >&6; }
  5808. fi
  5809. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5810. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  5811. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  5812. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  5813. echo "*** full path to libgnutls-config."
  5814. else
  5815. if test -f conf.libgnutlstest ; then
  5816. :
  5817. else
  5818. echo "*** Could not run libgnutls test program, checking why..."
  5819. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5820. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5821. cat >conftest.$ac_ext <<_ACEOF
  5822. /* confdefs.h. */
  5823. _ACEOF
  5824. cat confdefs.h >>conftest.$ac_ext
  5825. cat >>conftest.$ac_ext <<_ACEOF
  5826. /* end confdefs.h. */
  5827. #include <stdio.h>
  5828. #include <stdlib.h>
  5829. #include <string.h>
  5830. #include <gnutls/gnutls.h>
  5831. int
  5832. main ()
  5833. {
  5834. return !!gnutls_check_version(NULL);
  5835. ;
  5836. return 0;
  5837. }
  5838. _ACEOF
  5839. rm -f conftest.$ac_objext conftest$ac_exeext
  5840. if { (ac_try="$ac_link"
  5841. case "(($ac_try" in
  5842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5843. *) ac_try_echo=$ac_try;;
  5844. esac
  5845. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5846. $as_echo "$ac_try_echo") >&5
  5847. (eval "$ac_link") 2>conftest.er1
  5848. ac_status=$?
  5849. grep -v '^ *+' conftest.er1 >conftest.err
  5850. rm -f conftest.er1
  5851. cat conftest.err >&5
  5852. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5853. (exit $ac_status); } && {
  5854. test -z "$ac_cxx_werror_flag" ||
  5855. test ! -s conftest.err
  5856. } && test -s conftest$ac_exeext && {
  5857. test "$cross_compiling" = yes ||
  5858. $as_test_x conftest$ac_exeext
  5859. }; then
  5860. echo "*** The test program compiled, but did not run. This usually means"
  5861. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  5862. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  5863. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5864. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5865. echo "*** is required on your system"
  5866. echo "***"
  5867. echo "*** If you have an old version installed, it is best to remove it, although"
  5868. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5869. echo "***"
  5870. else
  5871. $as_echo "$as_me: failed program was:" >&5
  5872. sed 's/^/| /' conftest.$ac_ext >&5
  5873. echo "*** The test program failed to compile or link. See the file config.log for the"
  5874. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  5875. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  5876. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  5877. fi
  5878. rm -rf conftest.dSYM
  5879. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5880. conftest$ac_exeext conftest.$ac_ext
  5881. CFLAGS="$ac_save_CFLAGS"
  5882. LIBS="$ac_save_LIBS"
  5883. fi
  5884. fi
  5885. LIBGNUTLS_CFLAGS=""
  5886. LIBGNUTLS_LIBS=""
  5887. :
  5888. fi
  5889. rm -f conf.libgnutlstest
  5890. if test "x$have_libgnutls" = "xyes"; then
  5891. cat >>confdefs.h <<\_ACEOF
  5892. #define HAVE_LIBGNUTLS 1
  5893. _ACEOF
  5894. fi
  5895. fi
  5896. if test "x$have_libgnutls" = "xyes"; then
  5897. # Check whether --with-libgcrypt-prefix was given.
  5898. if test "${with_libgcrypt_prefix+set}" = set; then
  5899. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  5900. else
  5901. libgcrypt_config_prefix=""
  5902. fi
  5903. if test x$libgcrypt_config_prefix != x ; then
  5904. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  5905. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  5906. fi
  5907. fi
  5908. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  5909. set dummy libgcrypt-config; ac_word=$2
  5910. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5911. $as_echo_n "checking for $ac_word... " >&6; }
  5912. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  5913. $as_echo_n "(cached) " >&6
  5914. else
  5915. case $LIBGCRYPT_CONFIG in
  5916. [\\/]* | ?:[\\/]*)
  5917. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  5918. ;;
  5919. *)
  5920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5921. for as_dir in $PATH
  5922. do
  5923. IFS=$as_save_IFS
  5924. test -z "$as_dir" && as_dir=.
  5925. for ac_exec_ext in '' $ac_executable_extensions; do
  5926. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5927. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5928. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5929. break 2
  5930. fi
  5931. done
  5932. done
  5933. IFS=$as_save_IFS
  5934. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  5935. ;;
  5936. esac
  5937. fi
  5938. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  5939. if test -n "$LIBGCRYPT_CONFIG"; then
  5940. { $as_echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  5941. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  5942. else
  5943. { $as_echo "$as_me:$LINENO: result: no" >&5
  5944. $as_echo "no" >&6; }
  5945. fi
  5946. tmp=1.2.2
  5947. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  5948. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  5949. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  5950. else
  5951. req_libgcrypt_api=0
  5952. min_libgcrypt_version="$tmp"
  5953. fi
  5954. { $as_echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  5955. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  5956. ok=no
  5957. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  5958. req_major=`echo $min_libgcrypt_version | \
  5959. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  5960. req_minor=`echo $min_libgcrypt_version | \
  5961. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  5962. req_micro=`echo $min_libgcrypt_version | \
  5963. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  5964. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  5965. major=`echo $libgcrypt_config_version | \
  5966. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  5967. minor=`echo $libgcrypt_config_version | \
  5968. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  5969. micro=`echo $libgcrypt_config_version | \
  5970. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  5971. if test "$major" -gt "$req_major"; then
  5972. ok=yes
  5973. else
  5974. if test "$major" -eq "$req_major"; then
  5975. if test "$minor" -gt "$req_minor"; then
  5976. ok=yes
  5977. else
  5978. if test "$minor" -eq "$req_minor"; then
  5979. if test "$micro" -ge "$req_micro"; then
  5980. ok=yes
  5981. fi
  5982. fi
  5983. fi
  5984. fi
  5985. fi
  5986. fi
  5987. if test $ok = yes; then
  5988. { $as_echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  5989. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  5990. else
  5991. { $as_echo "$as_me:$LINENO: result: no" >&5
  5992. $as_echo "no" >&6; }
  5993. fi
  5994. if test $ok = yes; then
  5995. # If we have a recent libgcrypt, we should also check that the
  5996. # API is compatible
  5997. if test "$req_libgcrypt_api" -gt 0 ; then
  5998. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  5999. if test "$tmp" -gt 0 ; then
  6000. { $as_echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  6001. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6002. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6003. { $as_echo "$as_me:$LINENO: result: okay" >&5
  6004. $as_echo "okay" >&6; }
  6005. else
  6006. ok=no
  6007. { $as_echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6008. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6009. fi
  6010. fi
  6011. fi
  6012. fi
  6013. if test $ok = yes; then
  6014. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6015. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6016. have_libgcrypt=yes
  6017. else
  6018. LIBGCRYPT_CFLAGS=""
  6019. LIBGCRYPT_LIBS=""
  6020. :
  6021. fi
  6022. if test "x$have_libgcrypt" = "xyes"; then
  6023. cat >>confdefs.h <<\_ACEOF
  6024. #define HAVE_LIBGCRYPT 1
  6025. _ACEOF
  6026. fi
  6027. fi
  6028. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6029. # Check whether --with-openssl-prefix was given.
  6030. if test "${with_openssl_prefix+set}" = set; then
  6031. withval=$with_openssl_prefix; openssl_prefix=$withval
  6032. else
  6033. openssl_prefix=""
  6034. fi
  6035. if test "x$openssl_prefix" = "x"; then
  6036. openssl_prefix="/usr/local"
  6037. fi
  6038. LIBS_save=$LIBS
  6039. CPPFLAGS_save=$CPPFLAGS
  6040. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6041. if test -x $PKG_CONFIG; then
  6042. { $as_echo "$as_me:$LINENO: checking checking availability of openssl using pkg-config" >&5
  6043. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6044. $PKG_CONFIG --exists openssl
  6045. if test "$?" = "0"; then
  6046. # Use pkg-config to detect LIBS and CFLAGS
  6047. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6048. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6049. LIBS="$OPENSSL_LIBS $LIBS"
  6050. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6051. have_openssl=yes
  6052. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6053. $as_echo "yes" >&6; }
  6054. else
  6055. { $as_echo "$as_me:$LINENO: result: no" >&5
  6056. $as_echo "no" >&6; }
  6057. fi
  6058. fi
  6059. if test "x$have_openssl" != "xyes"; then
  6060. openssl_prefix_lib=$openssl_prefix/lib
  6061. openssl_prefix_include=$openssl_prefix/include
  6062. LIBS="-L$openssl_prefix_lib $LIBS"
  6063. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6064. { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  6065. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6066. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  6067. $as_echo_n "(cached) " >&6
  6068. else
  6069. ac_check_lib_save_LIBS=$LIBS
  6070. LIBS="-lssl $LIBS"
  6071. cat >conftest.$ac_ext <<_ACEOF
  6072. /* confdefs.h. */
  6073. _ACEOF
  6074. cat confdefs.h >>conftest.$ac_ext
  6075. cat >>conftest.$ac_ext <<_ACEOF
  6076. /* end confdefs.h. */
  6077. /* Override any GCC internal prototype to avoid an error.
  6078. Use char because int might match the return type of a GCC
  6079. builtin and then its argument prototype would still apply. */
  6080. #ifdef __cplusplus
  6081. extern "C"
  6082. #endif
  6083. char SSL_library_init ();
  6084. int
  6085. main ()
  6086. {
  6087. return SSL_library_init ();
  6088. ;
  6089. return 0;
  6090. }
  6091. _ACEOF
  6092. rm -f conftest.$ac_objext conftest$ac_exeext
  6093. if { (ac_try="$ac_link"
  6094. case "(($ac_try" in
  6095. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6096. *) ac_try_echo=$ac_try;;
  6097. esac
  6098. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6099. $as_echo "$ac_try_echo") >&5
  6100. (eval "$ac_link") 2>conftest.er1
  6101. ac_status=$?
  6102. grep -v '^ *+' conftest.er1 >conftest.err
  6103. rm -f conftest.er1
  6104. cat conftest.err >&5
  6105. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6106. (exit $ac_status); } && {
  6107. test -z "$ac_cxx_werror_flag" ||
  6108. test ! -s conftest.err
  6109. } && test -s conftest$ac_exeext && {
  6110. test "$cross_compiling" = yes ||
  6111. $as_test_x conftest$ac_exeext
  6112. }; then
  6113. ac_cv_lib_ssl_SSL_library_init=yes
  6114. else
  6115. $as_echo "$as_me: failed program was:" >&5
  6116. sed 's/^/| /' conftest.$ac_ext >&5
  6117. ac_cv_lib_ssl_SSL_library_init=no
  6118. fi
  6119. rm -rf conftest.dSYM
  6120. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6121. conftest$ac_exeext conftest.$ac_ext
  6122. LIBS=$ac_check_lib_save_LIBS
  6123. fi
  6124. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6125. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6126. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
  6127. have_openssl=yes LIBS="-lssl $LIBS"
  6128. fi
  6129. if test "x$have_openssl" = "xyes"; then
  6130. have_openssl=no
  6131. { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  6132. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6133. if test "${ac_cv_lib_crypto_main+set}" = set; then
  6134. $as_echo_n "(cached) " >&6
  6135. else
  6136. ac_check_lib_save_LIBS=$LIBS
  6137. LIBS="-lcrypto $LIBS"
  6138. cat >conftest.$ac_ext <<_ACEOF
  6139. /* confdefs.h. */
  6140. _ACEOF
  6141. cat confdefs.h >>conftest.$ac_ext
  6142. cat >>conftest.$ac_ext <<_ACEOF
  6143. /* end confdefs.h. */
  6144. int
  6145. main ()
  6146. {
  6147. return main ();
  6148. ;
  6149. return 0;
  6150. }
  6151. _ACEOF
  6152. rm -f conftest.$ac_objext conftest$ac_exeext
  6153. if { (ac_try="$ac_link"
  6154. case "(($ac_try" in
  6155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6156. *) ac_try_echo=$ac_try;;
  6157. esac
  6158. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6159. $as_echo "$ac_try_echo") >&5
  6160. (eval "$ac_link") 2>conftest.er1
  6161. ac_status=$?
  6162. grep -v '^ *+' conftest.er1 >conftest.err
  6163. rm -f conftest.er1
  6164. cat conftest.err >&5
  6165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6166. (exit $ac_status); } && {
  6167. test -z "$ac_cxx_werror_flag" ||
  6168. test ! -s conftest.err
  6169. } && test -s conftest$ac_exeext && {
  6170. test "$cross_compiling" = yes ||
  6171. $as_test_x conftest$ac_exeext
  6172. }; then
  6173. ac_cv_lib_crypto_main=yes
  6174. else
  6175. $as_echo "$as_me: failed program was:" >&5
  6176. sed 's/^/| /' conftest.$ac_ext >&5
  6177. ac_cv_lib_crypto_main=no
  6178. fi
  6179. rm -rf conftest.dSYM
  6180. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6181. conftest$ac_exeext conftest.$ac_ext
  6182. LIBS=$ac_check_lib_save_LIBS
  6183. fi
  6184. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  6185. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6186. if test "x$ac_cv_lib_crypto_main" = x""yes; then
  6187. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6188. fi
  6189. if test "x$have_openssl" = "xyes"; then
  6190. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6191. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6192. fi
  6193. fi
  6194. fi
  6195. if test "x$have_openssl" = "xyes"; then
  6196. cat >>confdefs.h <<\_ACEOF
  6197. #define HAVE_LIBSSL 1
  6198. _ACEOF
  6199. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6200. for ac_func in EVP_DigestInit_ex
  6201. do
  6202. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6203. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  6204. $as_echo_n "checking for $ac_func... " >&6; }
  6205. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6206. $as_echo_n "(cached) " >&6
  6207. else
  6208. cat >conftest.$ac_ext <<_ACEOF
  6209. /* confdefs.h. */
  6210. _ACEOF
  6211. cat confdefs.h >>conftest.$ac_ext
  6212. cat >>conftest.$ac_ext <<_ACEOF
  6213. /* end confdefs.h. */
  6214. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6215. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6216. #define $ac_func innocuous_$ac_func
  6217. /* System header to define __stub macros and hopefully few prototypes,
  6218. which can conflict with char $ac_func (); below.
  6219. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6220. <limits.h> exists even on freestanding compilers. */
  6221. #ifdef __STDC__
  6222. # include <limits.h>
  6223. #else
  6224. # include <assert.h>
  6225. #endif
  6226. #undef $ac_func
  6227. /* Override any GCC internal prototype to avoid an error.
  6228. Use char because int might match the return type of a GCC
  6229. builtin and then its argument prototype would still apply. */
  6230. #ifdef __cplusplus
  6231. extern "C"
  6232. #endif
  6233. char $ac_func ();
  6234. /* The GNU C library defines this for functions which it implements
  6235. to always fail with ENOSYS. Some functions are actually named
  6236. something starting with __ and the normal name is an alias. */
  6237. #if defined __stub_$ac_func || defined __stub___$ac_func
  6238. choke me
  6239. #endif
  6240. int
  6241. main ()
  6242. {
  6243. return $ac_func ();
  6244. ;
  6245. return 0;
  6246. }
  6247. _ACEOF
  6248. rm -f conftest.$ac_objext conftest$ac_exeext
  6249. if { (ac_try="$ac_link"
  6250. case "(($ac_try" in
  6251. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6252. *) ac_try_echo=$ac_try;;
  6253. esac
  6254. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6255. $as_echo "$ac_try_echo") >&5
  6256. (eval "$ac_link") 2>conftest.er1
  6257. ac_status=$?
  6258. grep -v '^ *+' conftest.er1 >conftest.err
  6259. rm -f conftest.er1
  6260. cat conftest.err >&5
  6261. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6262. (exit $ac_status); } && {
  6263. test -z "$ac_cxx_werror_flag" ||
  6264. test ! -s conftest.err
  6265. } && test -s conftest$ac_exeext && {
  6266. test "$cross_compiling" = yes ||
  6267. $as_test_x conftest$ac_exeext
  6268. }; then
  6269. eval "$as_ac_var=yes"
  6270. else
  6271. $as_echo "$as_me: failed program was:" >&5
  6272. sed 's/^/| /' conftest.$ac_ext >&5
  6273. eval "$as_ac_var=no"
  6274. fi
  6275. rm -rf conftest.dSYM
  6276. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6277. conftest$ac_exeext conftest.$ac_ext
  6278. fi
  6279. ac_res=`eval 'as_val=${'$as_ac_var'}
  6280. $as_echo "$as_val"'`
  6281. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6282. $as_echo "$ac_res" >&6; }
  6283. as_val=`eval 'as_val=${'$as_ac_var'}
  6284. $as_echo "$as_val"'`
  6285. if test "x$as_val" = x""yes; then
  6286. cat >>confdefs.h <<_ACEOF
  6287. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6288. _ACEOF
  6289. have_digestinit_ex=yes
  6290. fi
  6291. done
  6292. if test "x$have_digestinit_ex" = "x"; then
  6293. cat >>confdefs.h <<\_ACEOF
  6294. #define HAVE_OLD_LIBSSL 1
  6295. _ACEOF
  6296. fi
  6297. # search for sha256 support
  6298. for ac_func in EVP_sha256
  6299. do
  6300. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6301. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  6302. $as_echo_n "checking for $ac_func... " >&6; }
  6303. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6304. $as_echo_n "(cached) " >&6
  6305. else
  6306. cat >conftest.$ac_ext <<_ACEOF
  6307. /* confdefs.h. */
  6308. _ACEOF
  6309. cat confdefs.h >>conftest.$ac_ext
  6310. cat >>conftest.$ac_ext <<_ACEOF
  6311. /* end confdefs.h. */
  6312. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6313. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6314. #define $ac_func innocuous_$ac_func
  6315. /* System header to define __stub macros and hopefully few prototypes,
  6316. which can conflict with char $ac_func (); below.
  6317. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6318. <limits.h> exists even on freestanding compilers. */
  6319. #ifdef __STDC__
  6320. # include <limits.h>
  6321. #else
  6322. # include <assert.h>
  6323. #endif
  6324. #undef $ac_func
  6325. /* Override any GCC internal prototype to avoid an error.
  6326. Use char because int might match the return type of a GCC
  6327. builtin and then its argument prototype would still apply. */
  6328. #ifdef __cplusplus
  6329. extern "C"
  6330. #endif
  6331. char $ac_func ();
  6332. /* The GNU C library defines this for functions which it implements
  6333. to always fail with ENOSYS. Some functions are actually named
  6334. something starting with __ and the normal name is an alias. */
  6335. #if defined __stub_$ac_func || defined __stub___$ac_func
  6336. choke me
  6337. #endif
  6338. int
  6339. main ()
  6340. {
  6341. return $ac_func ();
  6342. ;
  6343. return 0;
  6344. }
  6345. _ACEOF
  6346. rm -f conftest.$ac_objext conftest$ac_exeext
  6347. if { (ac_try="$ac_link"
  6348. case "(($ac_try" in
  6349. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6350. *) ac_try_echo=$ac_try;;
  6351. esac
  6352. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6353. $as_echo "$ac_try_echo") >&5
  6354. (eval "$ac_link") 2>conftest.er1
  6355. ac_status=$?
  6356. grep -v '^ *+' conftest.er1 >conftest.err
  6357. rm -f conftest.er1
  6358. cat conftest.err >&5
  6359. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6360. (exit $ac_status); } && {
  6361. test -z "$ac_cxx_werror_flag" ||
  6362. test ! -s conftest.err
  6363. } && test -s conftest$ac_exeext && {
  6364. test "$cross_compiling" = yes ||
  6365. $as_test_x conftest$ac_exeext
  6366. }; then
  6367. eval "$as_ac_var=yes"
  6368. else
  6369. $as_echo "$as_me: failed program was:" >&5
  6370. sed 's/^/| /' conftest.$ac_ext >&5
  6371. eval "$as_ac_var=no"
  6372. fi
  6373. rm -rf conftest.dSYM
  6374. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6375. conftest$ac_exeext conftest.$ac_ext
  6376. fi
  6377. ac_res=`eval 'as_val=${'$as_ac_var'}
  6378. $as_echo "$as_val"'`
  6379. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6380. $as_echo "$ac_res" >&6; }
  6381. as_val=`eval 'as_val=${'$as_ac_var'}
  6382. $as_echo "$as_val"'`
  6383. if test "x$as_val" = x""yes; then
  6384. cat >>confdefs.h <<_ACEOF
  6385. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6386. _ACEOF
  6387. fi
  6388. done
  6389. fi
  6390. LIBS=$LIBS_save
  6391. CPPFLAGS=$CPPFLAGS_save
  6392. fi
  6393. if test "x$with_libcares" = "xyes"; then
  6394. # Check whether --with-libcares-prefix was given.
  6395. if test "${with_libcares_prefix+set}" = set; then
  6396. withval=$with_libcares_prefix; libcares_prefix=$withval
  6397. else
  6398. libcares_prefix=""
  6399. fi
  6400. if test "x$libcares_prefix" = "x"; then
  6401. libcares_prefix="/usr"
  6402. fi
  6403. libcares_prefix_lib=$libcares_prefix/lib
  6404. libcares_prefix_include=$libcares_prefix/include
  6405. LIBS_save=$LIBS
  6406. CPPFLAGS_save=$CPPFLAGS
  6407. LIBS="-L$libcares_prefix_lib $LIBS"
  6408. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6409. { $as_echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6410. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6411. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6412. $as_echo_n "(cached) " >&6
  6413. else
  6414. ac_check_lib_save_LIBS=$LIBS
  6415. LIBS="-lcares $LIBS"
  6416. cat >conftest.$ac_ext <<_ACEOF
  6417. /* confdefs.h. */
  6418. _ACEOF
  6419. cat confdefs.h >>conftest.$ac_ext
  6420. cat >>conftest.$ac_ext <<_ACEOF
  6421. /* end confdefs.h. */
  6422. /* Override any GCC internal prototype to avoid an error.
  6423. Use char because int might match the return type of a GCC
  6424. builtin and then its argument prototype would still apply. */
  6425. #ifdef __cplusplus
  6426. extern "C"
  6427. #endif
  6428. char ares_init ();
  6429. int
  6430. main ()
  6431. {
  6432. return ares_init ();
  6433. ;
  6434. return 0;
  6435. }
  6436. _ACEOF
  6437. rm -f conftest.$ac_objext conftest$ac_exeext
  6438. if { (ac_try="$ac_link"
  6439. case "(($ac_try" in
  6440. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6441. *) ac_try_echo=$ac_try;;
  6442. esac
  6443. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6444. $as_echo "$ac_try_echo") >&5
  6445. (eval "$ac_link") 2>conftest.er1
  6446. ac_status=$?
  6447. grep -v '^ *+' conftest.er1 >conftest.err
  6448. rm -f conftest.er1
  6449. cat conftest.err >&5
  6450. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6451. (exit $ac_status); } && {
  6452. test -z "$ac_cxx_werror_flag" ||
  6453. test ! -s conftest.err
  6454. } && test -s conftest$ac_exeext && {
  6455. test "$cross_compiling" = yes ||
  6456. $as_test_x conftest$ac_exeext
  6457. }; then
  6458. ac_cv_lib_cares_ares_init=yes
  6459. else
  6460. $as_echo "$as_me: failed program was:" >&5
  6461. sed 's/^/| /' conftest.$ac_ext >&5
  6462. ac_cv_lib_cares_ares_init=no
  6463. fi
  6464. rm -rf conftest.dSYM
  6465. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6466. conftest$ac_exeext conftest.$ac_ext
  6467. LIBS=$ac_check_lib_save_LIBS
  6468. fi
  6469. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6470. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6471. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then
  6472. have_libcares=yes
  6473. fi
  6474. if test "x$have_libcares" != "xyes"; then
  6475. { $as_echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6476. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6477. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6478. $as_echo_n "(cached) " >&6
  6479. else
  6480. ac_check_lib_save_LIBS=$LIBS
  6481. LIBS="-lcares -lrt $LIBS"
  6482. cat >conftest.$ac_ext <<_ACEOF
  6483. /* confdefs.h. */
  6484. _ACEOF
  6485. cat confdefs.h >>conftest.$ac_ext
  6486. cat >>conftest.$ac_ext <<_ACEOF
  6487. /* end confdefs.h. */
  6488. /* Override any GCC internal prototype to avoid an error.
  6489. Use char because int might match the return type of a GCC
  6490. builtin and then its argument prototype would still apply. */
  6491. #ifdef __cplusplus
  6492. extern "C"
  6493. #endif
  6494. char ares_init ();
  6495. int
  6496. main ()
  6497. {
  6498. return ares_init ();
  6499. ;
  6500. return 0;
  6501. }
  6502. _ACEOF
  6503. rm -f conftest.$ac_objext conftest$ac_exeext
  6504. if { (ac_try="$ac_link"
  6505. case "(($ac_try" in
  6506. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6507. *) ac_try_echo=$ac_try;;
  6508. esac
  6509. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6510. $as_echo "$ac_try_echo") >&5
  6511. (eval "$ac_link") 2>conftest.er1
  6512. ac_status=$?
  6513. grep -v '^ *+' conftest.er1 >conftest.err
  6514. rm -f conftest.er1
  6515. cat conftest.err >&5
  6516. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6517. (exit $ac_status); } && {
  6518. test -z "$ac_cxx_werror_flag" ||
  6519. test ! -s conftest.err
  6520. } && test -s conftest$ac_exeext && {
  6521. test "$cross_compiling" = yes ||
  6522. $as_test_x conftest$ac_exeext
  6523. }; then
  6524. ac_cv_lib_cares_ares_init=yes
  6525. else
  6526. $as_echo "$as_me: failed program was:" >&5
  6527. sed 's/^/| /' conftest.$ac_ext >&5
  6528. ac_cv_lib_cares_ares_init=no
  6529. fi
  6530. rm -rf conftest.dSYM
  6531. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6532. conftest$ac_exeext conftest.$ac_ext
  6533. LIBS=$ac_check_lib_save_LIBS
  6534. fi
  6535. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6536. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6537. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then
  6538. have_libcares=yes need_librt=yes
  6539. fi
  6540. fi
  6541. if test "x$have_libcares" = "xyes"; then
  6542. { $as_echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6543. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6544. cat >conftest.$ac_ext <<_ACEOF
  6545. /* confdefs.h. */
  6546. _ACEOF
  6547. cat confdefs.h >>conftest.$ac_ext
  6548. cat >>conftest.$ac_ext <<_ACEOF
  6549. /* end confdefs.h. */
  6550. #include <ares.h>
  6551. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6552. int
  6553. main ()
  6554. {
  6555. ares_channel channel;
  6556. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6557. ;
  6558. return 0;
  6559. }
  6560. _ACEOF
  6561. rm -f conftest.$ac_objext
  6562. if { (ac_try="$ac_compile"
  6563. case "(($ac_try" in
  6564. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6565. *) ac_try_echo=$ac_try;;
  6566. esac
  6567. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6568. $as_echo "$ac_try_echo") >&5
  6569. (eval "$ac_compile") 2>conftest.er1
  6570. ac_status=$?
  6571. grep -v '^ *+' conftest.er1 >conftest.err
  6572. rm -f conftest.er1
  6573. cat conftest.err >&5
  6574. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6575. (exit $ac_status); } && {
  6576. test -z "$ac_cxx_werror_flag" ||
  6577. test ! -s conftest.err
  6578. } && test -s conftest.$ac_objext; then
  6579. have_libcares1_5=yes
  6580. else
  6581. $as_echo "$as_me: failed program was:" >&5
  6582. sed 's/^/| /' conftest.$ac_ext >&5
  6583. have_libcares1_5=no
  6584. fi
  6585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6586. { $as_echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6587. $as_echo "$have_libcares1_5" >&6; }
  6588. if test "x$have_libcares1_5" = "xyes"; then
  6589. cat >>confdefs.h <<\_ACEOF
  6590. #define HAVE_LIBCARES1_5 1
  6591. _ACEOF
  6592. fi
  6593. cat >>confdefs.h <<\_ACEOF
  6594. #define HAVE_LIBCARES 1
  6595. _ACEOF
  6596. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6597. if test "x$need_librt" = "xyes"; then
  6598. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6599. fi
  6600. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6601. fi
  6602. LIBS=$LIBS_save
  6603. CPPFLAGS=$CPPFLAGS_save
  6604. fi
  6605. # Check availability of libz
  6606. if test "x$with_libz" = "xyes"; then
  6607. # Check whether --with-libz-prefix was given.
  6608. if test "${with_libz_prefix+set}" = set; then
  6609. withval=$with_libz_prefix; libz_prefix=$withval
  6610. else
  6611. libz_prefix=""
  6612. fi
  6613. if test "x$libz_prefix" = "x"; then
  6614. libz_prefix="/usr"
  6615. fi
  6616. libz_prefix_lib=$libz_prefix/lib
  6617. libz_prefix_include=$libz_prefix/include
  6618. LIBS_save=$LIBS
  6619. CPPFLAGS_save=$CPPFLAGS
  6620. LIBS="-L$libz_prefix_lib $LIBS"
  6621. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6622. { $as_echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6623. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6624. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6625. $as_echo_n "(cached) " >&6
  6626. else
  6627. ac_check_lib_save_LIBS=$LIBS
  6628. LIBS="-lz $LIBS"
  6629. cat >conftest.$ac_ext <<_ACEOF
  6630. /* confdefs.h. */
  6631. _ACEOF
  6632. cat confdefs.h >>conftest.$ac_ext
  6633. cat >>conftest.$ac_ext <<_ACEOF
  6634. /* end confdefs.h. */
  6635. /* Override any GCC internal prototype to avoid an error.
  6636. Use char because int might match the return type of a GCC
  6637. builtin and then its argument prototype would still apply. */
  6638. #ifdef __cplusplus
  6639. extern "C"
  6640. #endif
  6641. char zlibVersion ();
  6642. int
  6643. main ()
  6644. {
  6645. return zlibVersion ();
  6646. ;
  6647. return 0;
  6648. }
  6649. _ACEOF
  6650. rm -f conftest.$ac_objext conftest$ac_exeext
  6651. if { (ac_try="$ac_link"
  6652. case "(($ac_try" in
  6653. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6654. *) ac_try_echo=$ac_try;;
  6655. esac
  6656. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6657. $as_echo "$ac_try_echo") >&5
  6658. (eval "$ac_link") 2>conftest.er1
  6659. ac_status=$?
  6660. grep -v '^ *+' conftest.er1 >conftest.err
  6661. rm -f conftest.er1
  6662. cat conftest.err >&5
  6663. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6664. (exit $ac_status); } && {
  6665. test -z "$ac_cxx_werror_flag" ||
  6666. test ! -s conftest.err
  6667. } && test -s conftest$ac_exeext && {
  6668. test "$cross_compiling" = yes ||
  6669. $as_test_x conftest$ac_exeext
  6670. }; then
  6671. ac_cv_lib_z_zlibVersion=yes
  6672. else
  6673. $as_echo "$as_me: failed program was:" >&5
  6674. sed 's/^/| /' conftest.$ac_ext >&5
  6675. ac_cv_lib_z_zlibVersion=no
  6676. fi
  6677. rm -rf conftest.dSYM
  6678. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6679. conftest$ac_exeext conftest.$ac_ext
  6680. LIBS=$ac_check_lib_save_LIBS
  6681. fi
  6682. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6683. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6684. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then
  6685. have_libz=yes
  6686. fi
  6687. if test "x$have_libz" = "xyes"; then
  6688. cat >>confdefs.h <<\_ACEOF
  6689. #define HAVE_LIBZ 1
  6690. _ACEOF
  6691. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6692. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6693. fi
  6694. LIBS=$LIBS_save
  6695. CPPFLAGS=$CPPFLAGS_save
  6696. fi
  6697. # Define variables based on the result of the checks for libraries.
  6698. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6699. cat >>confdefs.h <<\_ACEOF
  6700. #define ENABLE_SSL 1
  6701. _ACEOF
  6702. if true; then
  6703. ENABLE_SSL_TRUE=
  6704. ENABLE_SSL_FALSE='#'
  6705. else
  6706. ENABLE_SSL_TRUE='#'
  6707. ENABLE_SSL_FALSE=
  6708. fi
  6709. else
  6710. if false; then
  6711. ENABLE_SSL_TRUE=
  6712. ENABLE_SSL_FALSE='#'
  6713. else
  6714. ENABLE_SSL_TRUE='#'
  6715. ENABLE_SSL_FALSE=
  6716. fi
  6717. fi
  6718. if test "x$have_libgnutls" = "xyes" ; then
  6719. HAVE_LIBGNUTLS_TRUE=
  6720. HAVE_LIBGNUTLS_FALSE='#'
  6721. else
  6722. HAVE_LIBGNUTLS_TRUE='#'
  6723. HAVE_LIBGNUTLS_FALSE=
  6724. fi
  6725. if test "x$have_openssl" = "xyes" ; then
  6726. HAVE_LIBSSL_TRUE=
  6727. HAVE_LIBSSL_FALSE='#'
  6728. else
  6729. HAVE_LIBSSL_TRUE='#'
  6730. HAVE_LIBSSL_FALSE=
  6731. fi
  6732. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6733. cat >>confdefs.h <<\_ACEOF
  6734. #define ENABLE_MESSAGE_DIGEST 1
  6735. _ACEOF
  6736. if true; then
  6737. ENABLE_MESSAGE_DIGEST_TRUE=
  6738. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6739. else
  6740. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6741. ENABLE_MESSAGE_DIGEST_FALSE=
  6742. fi
  6743. enable_message_digest=yes
  6744. else
  6745. if false; then
  6746. ENABLE_MESSAGE_DIGEST_TRUE=
  6747. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6748. else
  6749. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6750. ENABLE_MESSAGE_DIGEST_FALSE=
  6751. fi
  6752. fi
  6753. if test "x$enable_bittorrent" = "xyes" &&
  6754. test "x$enable_message_digest" = "xyes"; then
  6755. cat >>confdefs.h <<\_ACEOF
  6756. #define ENABLE_BITTORRENT 1
  6757. _ACEOF
  6758. if true; then
  6759. ENABLE_BITTORRENT_TRUE=
  6760. ENABLE_BITTORRENT_FALSE='#'
  6761. else
  6762. ENABLE_BITTORRENT_TRUE='#'
  6763. ENABLE_BITTORRENT_FALSE=
  6764. fi
  6765. else
  6766. enable_bittorrent=no
  6767. if false; then
  6768. ENABLE_BITTORRENT_TRUE=
  6769. ENABLE_BITTORRENT_FALSE='#'
  6770. else
  6771. ENABLE_BITTORRENT_TRUE='#'
  6772. ENABLE_BITTORRENT_FALSE=
  6773. fi
  6774. fi
  6775. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  6776. test "x$enable_metalink" = "xyes"; then
  6777. cat >>confdefs.h <<\_ACEOF
  6778. #define ENABLE_METALINK 1
  6779. _ACEOF
  6780. if true; then
  6781. ENABLE_METALINK_TRUE=
  6782. ENABLE_METALINK_FALSE='#'
  6783. else
  6784. ENABLE_METALINK_TRUE='#'
  6785. ENABLE_METALINK_FALSE=
  6786. fi
  6787. else
  6788. enable_metalink=no
  6789. if false; then
  6790. ENABLE_METALINK_TRUE=
  6791. ENABLE_METALINK_FALSE='#'
  6792. else
  6793. ENABLE_METALINK_TRUE='#'
  6794. ENABLE_METALINK_FALSE=
  6795. fi
  6796. fi
  6797. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  6798. ENABLE_LIBXML2_TRUE=
  6799. ENABLE_LIBXML2_FALSE='#'
  6800. else
  6801. ENABLE_LIBXML2_TRUE='#'
  6802. ENABLE_LIBXML2_FALSE=
  6803. fi
  6804. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  6805. ENABLE_LIBEXPAT_TRUE=
  6806. ENABLE_LIBEXPAT_FALSE='#'
  6807. else
  6808. ENABLE_LIBEXPAT_TRUE='#'
  6809. ENABLE_LIBEXPAT_FALSE=
  6810. fi
  6811. if test "x$have_libcares" = "xyes"; then
  6812. cat >>confdefs.h <<\_ACEOF
  6813. #define ENABLE_ASYNC_DNS 1
  6814. _ACEOF
  6815. if true; then
  6816. ENABLE_ASYNC_DNS_TRUE=
  6817. ENABLE_ASYNC_DNS_FALSE='#'
  6818. else
  6819. ENABLE_ASYNC_DNS_TRUE='#'
  6820. ENABLE_ASYNC_DNS_FALSE=
  6821. fi
  6822. else
  6823. if false; then
  6824. ENABLE_ASYNC_DNS_TRUE=
  6825. ENABLE_ASYNC_DNS_FALSE='#'
  6826. else
  6827. ENABLE_ASYNC_DNS_TRUE='#'
  6828. ENABLE_ASYNC_DNS_FALSE=
  6829. fi
  6830. fi
  6831. # Set conditional for libz
  6832. if test "x$have_libz" = "xyes"; then
  6833. HAVE_LIBZ_TRUE=
  6834. HAVE_LIBZ_FALSE='#'
  6835. else
  6836. HAVE_LIBZ_TRUE='#'
  6837. HAVE_LIBZ_FALSE=
  6838. fi
  6839. # Set conditional for sqlite3
  6840. if test "x$have_sqlite3" = "xyes"; then
  6841. HAVE_SQLITE3_TRUE=
  6842. HAVE_SQLITE3_FALSE='#'
  6843. else
  6844. HAVE_SQLITE3_TRUE='#'
  6845. HAVE_SQLITE3_FALSE=
  6846. fi
  6847. # Checks for header files.
  6848. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  6849. # for constant arguments. Useless!
  6850. { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
  6851. $as_echo_n "checking for working alloca.h... " >&6; }
  6852. if test "${ac_cv_working_alloca_h+set}" = set; then
  6853. $as_echo_n "(cached) " >&6
  6854. else
  6855. cat >conftest.$ac_ext <<_ACEOF
  6856. /* confdefs.h. */
  6857. _ACEOF
  6858. cat confdefs.h >>conftest.$ac_ext
  6859. cat >>conftest.$ac_ext <<_ACEOF
  6860. /* end confdefs.h. */
  6861. #include <alloca.h>
  6862. int
  6863. main ()
  6864. {
  6865. char *p = (char *) alloca (2 * sizeof (int));
  6866. if (p) return 0;
  6867. ;
  6868. return 0;
  6869. }
  6870. _ACEOF
  6871. rm -f conftest.$ac_objext conftest$ac_exeext
  6872. if { (ac_try="$ac_link"
  6873. case "(($ac_try" in
  6874. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6875. *) ac_try_echo=$ac_try;;
  6876. esac
  6877. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6878. $as_echo "$ac_try_echo") >&5
  6879. (eval "$ac_link") 2>conftest.er1
  6880. ac_status=$?
  6881. grep -v '^ *+' conftest.er1 >conftest.err
  6882. rm -f conftest.er1
  6883. cat conftest.err >&5
  6884. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6885. (exit $ac_status); } && {
  6886. test -z "$ac_cxx_werror_flag" ||
  6887. test ! -s conftest.err
  6888. } && test -s conftest$ac_exeext && {
  6889. test "$cross_compiling" = yes ||
  6890. $as_test_x conftest$ac_exeext
  6891. }; then
  6892. ac_cv_working_alloca_h=yes
  6893. else
  6894. $as_echo "$as_me: failed program was:" >&5
  6895. sed 's/^/| /' conftest.$ac_ext >&5
  6896. ac_cv_working_alloca_h=no
  6897. fi
  6898. rm -rf conftest.dSYM
  6899. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6900. conftest$ac_exeext conftest.$ac_ext
  6901. fi
  6902. { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  6903. $as_echo "$ac_cv_working_alloca_h" >&6; }
  6904. if test $ac_cv_working_alloca_h = yes; then
  6905. cat >>confdefs.h <<\_ACEOF
  6906. #define HAVE_ALLOCA_H 1
  6907. _ACEOF
  6908. fi
  6909. { $as_echo "$as_me:$LINENO: checking for alloca" >&5
  6910. $as_echo_n "checking for alloca... " >&6; }
  6911. if test "${ac_cv_func_alloca_works+set}" = set; then
  6912. $as_echo_n "(cached) " >&6
  6913. else
  6914. cat >conftest.$ac_ext <<_ACEOF
  6915. /* confdefs.h. */
  6916. _ACEOF
  6917. cat confdefs.h >>conftest.$ac_ext
  6918. cat >>conftest.$ac_ext <<_ACEOF
  6919. /* end confdefs.h. */
  6920. #ifdef __GNUC__
  6921. # define alloca __builtin_alloca
  6922. #else
  6923. # ifdef _MSC_VER
  6924. # include <malloc.h>
  6925. # define alloca _alloca
  6926. # else
  6927. # ifdef HAVE_ALLOCA_H
  6928. # include <alloca.h>
  6929. # else
  6930. # ifdef _AIX
  6931. #pragma alloca
  6932. # else
  6933. # ifndef alloca /* predefined by HP cc +Olibcalls */
  6934. char *alloca ();
  6935. # endif
  6936. # endif
  6937. # endif
  6938. # endif
  6939. #endif
  6940. int
  6941. main ()
  6942. {
  6943. char *p = (char *) alloca (1);
  6944. if (p) return 0;
  6945. ;
  6946. return 0;
  6947. }
  6948. _ACEOF
  6949. rm -f conftest.$ac_objext conftest$ac_exeext
  6950. if { (ac_try="$ac_link"
  6951. case "(($ac_try" in
  6952. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6953. *) ac_try_echo=$ac_try;;
  6954. esac
  6955. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6956. $as_echo "$ac_try_echo") >&5
  6957. (eval "$ac_link") 2>conftest.er1
  6958. ac_status=$?
  6959. grep -v '^ *+' conftest.er1 >conftest.err
  6960. rm -f conftest.er1
  6961. cat conftest.err >&5
  6962. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6963. (exit $ac_status); } && {
  6964. test -z "$ac_cxx_werror_flag" ||
  6965. test ! -s conftest.err
  6966. } && test -s conftest$ac_exeext && {
  6967. test "$cross_compiling" = yes ||
  6968. $as_test_x conftest$ac_exeext
  6969. }; then
  6970. ac_cv_func_alloca_works=yes
  6971. else
  6972. $as_echo "$as_me: failed program was:" >&5
  6973. sed 's/^/| /' conftest.$ac_ext >&5
  6974. ac_cv_func_alloca_works=no
  6975. fi
  6976. rm -rf conftest.dSYM
  6977. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6978. conftest$ac_exeext conftest.$ac_ext
  6979. fi
  6980. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  6981. $as_echo "$ac_cv_func_alloca_works" >&6; }
  6982. if test $ac_cv_func_alloca_works = yes; then
  6983. cat >>confdefs.h <<\_ACEOF
  6984. #define HAVE_ALLOCA 1
  6985. _ACEOF
  6986. else
  6987. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  6988. # that cause trouble. Some versions do not even contain alloca or
  6989. # contain a buggy version. If you still want to use their alloca,
  6990. # use ar to extract alloca.o from them instead of compiling alloca.c.
  6991. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  6992. cat >>confdefs.h <<\_ACEOF
  6993. #define C_ALLOCA 1
  6994. _ACEOF
  6995. { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  6996. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  6997. if test "${ac_cv_os_cray+set}" = set; then
  6998. $as_echo_n "(cached) " >&6
  6999. else
  7000. cat >conftest.$ac_ext <<_ACEOF
  7001. /* confdefs.h. */
  7002. _ACEOF
  7003. cat confdefs.h >>conftest.$ac_ext
  7004. cat >>conftest.$ac_ext <<_ACEOF
  7005. /* end confdefs.h. */
  7006. #if defined CRAY && ! defined CRAY2
  7007. webecray
  7008. #else
  7009. wenotbecray
  7010. #endif
  7011. _ACEOF
  7012. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7013. $EGREP "webecray" >/dev/null 2>&1; then
  7014. ac_cv_os_cray=yes
  7015. else
  7016. ac_cv_os_cray=no
  7017. fi
  7018. rm -f conftest*
  7019. fi
  7020. { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  7021. $as_echo "$ac_cv_os_cray" >&6; }
  7022. if test $ac_cv_os_cray = yes; then
  7023. for ac_func in _getb67 GETB67 getb67; do
  7024. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7025. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  7026. $as_echo_n "checking for $ac_func... " >&6; }
  7027. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7028. $as_echo_n "(cached) " >&6
  7029. else
  7030. cat >conftest.$ac_ext <<_ACEOF
  7031. /* confdefs.h. */
  7032. _ACEOF
  7033. cat confdefs.h >>conftest.$ac_ext
  7034. cat >>conftest.$ac_ext <<_ACEOF
  7035. /* end confdefs.h. */
  7036. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7037. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7038. #define $ac_func innocuous_$ac_func
  7039. /* System header to define __stub macros and hopefully few prototypes,
  7040. which can conflict with char $ac_func (); below.
  7041. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7042. <limits.h> exists even on freestanding compilers. */
  7043. #ifdef __STDC__
  7044. # include <limits.h>
  7045. #else
  7046. # include <assert.h>
  7047. #endif
  7048. #undef $ac_func
  7049. /* Override any GCC internal prototype to avoid an error.
  7050. Use char because int might match the return type of a GCC
  7051. builtin and then its argument prototype would still apply. */
  7052. #ifdef __cplusplus
  7053. extern "C"
  7054. #endif
  7055. char $ac_func ();
  7056. /* The GNU C library defines this for functions which it implements
  7057. to always fail with ENOSYS. Some functions are actually named
  7058. something starting with __ and the normal name is an alias. */
  7059. #if defined __stub_$ac_func || defined __stub___$ac_func
  7060. choke me
  7061. #endif
  7062. int
  7063. main ()
  7064. {
  7065. return $ac_func ();
  7066. ;
  7067. return 0;
  7068. }
  7069. _ACEOF
  7070. rm -f conftest.$ac_objext conftest$ac_exeext
  7071. if { (ac_try="$ac_link"
  7072. case "(($ac_try" in
  7073. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7074. *) ac_try_echo=$ac_try;;
  7075. esac
  7076. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7077. $as_echo "$ac_try_echo") >&5
  7078. (eval "$ac_link") 2>conftest.er1
  7079. ac_status=$?
  7080. grep -v '^ *+' conftest.er1 >conftest.err
  7081. rm -f conftest.er1
  7082. cat conftest.err >&5
  7083. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7084. (exit $ac_status); } && {
  7085. test -z "$ac_cxx_werror_flag" ||
  7086. test ! -s conftest.err
  7087. } && test -s conftest$ac_exeext && {
  7088. test "$cross_compiling" = yes ||
  7089. $as_test_x conftest$ac_exeext
  7090. }; then
  7091. eval "$as_ac_var=yes"
  7092. else
  7093. $as_echo "$as_me: failed program was:" >&5
  7094. sed 's/^/| /' conftest.$ac_ext >&5
  7095. eval "$as_ac_var=no"
  7096. fi
  7097. rm -rf conftest.dSYM
  7098. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7099. conftest$ac_exeext conftest.$ac_ext
  7100. fi
  7101. ac_res=`eval 'as_val=${'$as_ac_var'}
  7102. $as_echo "$as_val"'`
  7103. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7104. $as_echo "$ac_res" >&6; }
  7105. as_val=`eval 'as_val=${'$as_ac_var'}
  7106. $as_echo "$as_val"'`
  7107. if test "x$as_val" = x""yes; then
  7108. cat >>confdefs.h <<_ACEOF
  7109. #define CRAY_STACKSEG_END $ac_func
  7110. _ACEOF
  7111. break
  7112. fi
  7113. done
  7114. fi
  7115. { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  7116. $as_echo_n "checking stack direction for C alloca... " >&6; }
  7117. if test "${ac_cv_c_stack_direction+set}" = set; then
  7118. $as_echo_n "(cached) " >&6
  7119. else
  7120. if test "$cross_compiling" = yes; then
  7121. ac_cv_c_stack_direction=0
  7122. else
  7123. cat >conftest.$ac_ext <<_ACEOF
  7124. /* confdefs.h. */
  7125. _ACEOF
  7126. cat confdefs.h >>conftest.$ac_ext
  7127. cat >>conftest.$ac_ext <<_ACEOF
  7128. /* end confdefs.h. */
  7129. $ac_includes_default
  7130. int
  7131. find_stack_direction ()
  7132. {
  7133. static char *addr = 0;
  7134. auto char dummy;
  7135. if (addr == 0)
  7136. {
  7137. addr = &dummy;
  7138. return find_stack_direction ();
  7139. }
  7140. else
  7141. return (&dummy > addr) ? 1 : -1;
  7142. }
  7143. int
  7144. main ()
  7145. {
  7146. return find_stack_direction () < 0;
  7147. }
  7148. _ACEOF
  7149. rm -f conftest$ac_exeext
  7150. if { (ac_try="$ac_link"
  7151. case "(($ac_try" in
  7152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7153. *) ac_try_echo=$ac_try;;
  7154. esac
  7155. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7156. $as_echo "$ac_try_echo") >&5
  7157. (eval "$ac_link") 2>&5
  7158. ac_status=$?
  7159. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7160. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7161. { (case "(($ac_try" in
  7162. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7163. *) ac_try_echo=$ac_try;;
  7164. esac
  7165. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7166. $as_echo "$ac_try_echo") >&5
  7167. (eval "$ac_try") 2>&5
  7168. ac_status=$?
  7169. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7170. (exit $ac_status); }; }; then
  7171. ac_cv_c_stack_direction=1
  7172. else
  7173. $as_echo "$as_me: program exited with status $ac_status" >&5
  7174. $as_echo "$as_me: failed program was:" >&5
  7175. sed 's/^/| /' conftest.$ac_ext >&5
  7176. ( exit $ac_status )
  7177. ac_cv_c_stack_direction=-1
  7178. fi
  7179. rm -rf conftest.dSYM
  7180. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7181. fi
  7182. fi
  7183. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  7184. $as_echo "$ac_cv_c_stack_direction" >&6; }
  7185. cat >>confdefs.h <<_ACEOF
  7186. #define STACK_DIRECTION $ac_cv_c_stack_direction
  7187. _ACEOF
  7188. fi
  7189. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7190. $as_echo_n "checking for ANSI C header files... " >&6; }
  7191. if test "${ac_cv_header_stdc+set}" = set; then
  7192. $as_echo_n "(cached) " >&6
  7193. else
  7194. cat >conftest.$ac_ext <<_ACEOF
  7195. /* confdefs.h. */
  7196. _ACEOF
  7197. cat confdefs.h >>conftest.$ac_ext
  7198. cat >>conftest.$ac_ext <<_ACEOF
  7199. /* end confdefs.h. */
  7200. #include <stdlib.h>
  7201. #include <stdarg.h>
  7202. #include <string.h>
  7203. #include <float.h>
  7204. int
  7205. main ()
  7206. {
  7207. ;
  7208. return 0;
  7209. }
  7210. _ACEOF
  7211. rm -f conftest.$ac_objext
  7212. if { (ac_try="$ac_compile"
  7213. case "(($ac_try" in
  7214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7215. *) ac_try_echo=$ac_try;;
  7216. esac
  7217. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7218. $as_echo "$ac_try_echo") >&5
  7219. (eval "$ac_compile") 2>conftest.er1
  7220. ac_status=$?
  7221. grep -v '^ *+' conftest.er1 >conftest.err
  7222. rm -f conftest.er1
  7223. cat conftest.err >&5
  7224. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7225. (exit $ac_status); } && {
  7226. test -z "$ac_cxx_werror_flag" ||
  7227. test ! -s conftest.err
  7228. } && test -s conftest.$ac_objext; then
  7229. ac_cv_header_stdc=yes
  7230. else
  7231. $as_echo "$as_me: failed program was:" >&5
  7232. sed 's/^/| /' conftest.$ac_ext >&5
  7233. ac_cv_header_stdc=no
  7234. fi
  7235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7236. if test $ac_cv_header_stdc = yes; then
  7237. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7238. cat >conftest.$ac_ext <<_ACEOF
  7239. /* confdefs.h. */
  7240. _ACEOF
  7241. cat confdefs.h >>conftest.$ac_ext
  7242. cat >>conftest.$ac_ext <<_ACEOF
  7243. /* end confdefs.h. */
  7244. #include <string.h>
  7245. _ACEOF
  7246. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7247. $EGREP "memchr" >/dev/null 2>&1; then
  7248. :
  7249. else
  7250. ac_cv_header_stdc=no
  7251. fi
  7252. rm -f conftest*
  7253. fi
  7254. if test $ac_cv_header_stdc = yes; then
  7255. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7256. cat >conftest.$ac_ext <<_ACEOF
  7257. /* confdefs.h. */
  7258. _ACEOF
  7259. cat confdefs.h >>conftest.$ac_ext
  7260. cat >>conftest.$ac_ext <<_ACEOF
  7261. /* end confdefs.h. */
  7262. #include <stdlib.h>
  7263. _ACEOF
  7264. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7265. $EGREP "free" >/dev/null 2>&1; then
  7266. :
  7267. else
  7268. ac_cv_header_stdc=no
  7269. fi
  7270. rm -f conftest*
  7271. fi
  7272. if test $ac_cv_header_stdc = yes; then
  7273. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7274. if test "$cross_compiling" = yes; then
  7275. :
  7276. else
  7277. cat >conftest.$ac_ext <<_ACEOF
  7278. /* confdefs.h. */
  7279. _ACEOF
  7280. cat confdefs.h >>conftest.$ac_ext
  7281. cat >>conftest.$ac_ext <<_ACEOF
  7282. /* end confdefs.h. */
  7283. #include <ctype.h>
  7284. #include <stdlib.h>
  7285. #if ((' ' & 0x0FF) == 0x020)
  7286. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7287. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7288. #else
  7289. # define ISLOWER(c) \
  7290. (('a' <= (c) && (c) <= 'i') \
  7291. || ('j' <= (c) && (c) <= 'r') \
  7292. || ('s' <= (c) && (c) <= 'z'))
  7293. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7294. #endif
  7295. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7296. int
  7297. main ()
  7298. {
  7299. int i;
  7300. for (i = 0; i < 256; i++)
  7301. if (XOR (islower (i), ISLOWER (i))
  7302. || toupper (i) != TOUPPER (i))
  7303. return 2;
  7304. return 0;
  7305. }
  7306. _ACEOF
  7307. rm -f conftest$ac_exeext
  7308. if { (ac_try="$ac_link"
  7309. case "(($ac_try" in
  7310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7311. *) ac_try_echo=$ac_try;;
  7312. esac
  7313. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7314. $as_echo "$ac_try_echo") >&5
  7315. (eval "$ac_link") 2>&5
  7316. ac_status=$?
  7317. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7318. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7319. { (case "(($ac_try" in
  7320. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7321. *) ac_try_echo=$ac_try;;
  7322. esac
  7323. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7324. $as_echo "$ac_try_echo") >&5
  7325. (eval "$ac_try") 2>&5
  7326. ac_status=$?
  7327. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7328. (exit $ac_status); }; }; then
  7329. :
  7330. else
  7331. $as_echo "$as_me: program exited with status $ac_status" >&5
  7332. $as_echo "$as_me: failed program was:" >&5
  7333. sed 's/^/| /' conftest.$ac_ext >&5
  7334. ( exit $ac_status )
  7335. ac_cv_header_stdc=no
  7336. fi
  7337. rm -rf conftest.dSYM
  7338. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7339. fi
  7340. fi
  7341. fi
  7342. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7343. $as_echo "$ac_cv_header_stdc" >&6; }
  7344. if test $ac_cv_header_stdc = yes; then
  7345. cat >>confdefs.h <<\_ACEOF
  7346. #define STDC_HEADERS 1
  7347. _ACEOF
  7348. fi
  7349. case "$target" in
  7350. *mingw*)
  7351. for ac_header in winsock2.h \
  7352. ws2tcpip.h
  7353. do
  7354. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7355. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7356. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7357. $as_echo_n "checking for $ac_header... " >&6; }
  7358. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7359. $as_echo_n "(cached) " >&6
  7360. fi
  7361. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7362. $as_echo "$as_val"'`
  7363. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7364. $as_echo "$ac_res" >&6; }
  7365. else
  7366. # Is the header compilable?
  7367. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7368. $as_echo_n "checking $ac_header usability... " >&6; }
  7369. cat >conftest.$ac_ext <<_ACEOF
  7370. /* confdefs.h. */
  7371. _ACEOF
  7372. cat confdefs.h >>conftest.$ac_ext
  7373. cat >>conftest.$ac_ext <<_ACEOF
  7374. /* end confdefs.h. */
  7375. $ac_includes_default
  7376. #include <$ac_header>
  7377. _ACEOF
  7378. rm -f conftest.$ac_objext
  7379. if { (ac_try="$ac_compile"
  7380. case "(($ac_try" in
  7381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7382. *) ac_try_echo=$ac_try;;
  7383. esac
  7384. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7385. $as_echo "$ac_try_echo") >&5
  7386. (eval "$ac_compile") 2>conftest.er1
  7387. ac_status=$?
  7388. grep -v '^ *+' conftest.er1 >conftest.err
  7389. rm -f conftest.er1
  7390. cat conftest.err >&5
  7391. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7392. (exit $ac_status); } && {
  7393. test -z "$ac_cxx_werror_flag" ||
  7394. test ! -s conftest.err
  7395. } && test -s conftest.$ac_objext; then
  7396. ac_header_compiler=yes
  7397. else
  7398. $as_echo "$as_me: failed program was:" >&5
  7399. sed 's/^/| /' conftest.$ac_ext >&5
  7400. ac_header_compiler=no
  7401. fi
  7402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7403. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7404. $as_echo "$ac_header_compiler" >&6; }
  7405. # Is the header present?
  7406. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7407. $as_echo_n "checking $ac_header presence... " >&6; }
  7408. cat >conftest.$ac_ext <<_ACEOF
  7409. /* confdefs.h. */
  7410. _ACEOF
  7411. cat confdefs.h >>conftest.$ac_ext
  7412. cat >>conftest.$ac_ext <<_ACEOF
  7413. /* end confdefs.h. */
  7414. #include <$ac_header>
  7415. _ACEOF
  7416. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7417. case "(($ac_try" in
  7418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7419. *) ac_try_echo=$ac_try;;
  7420. esac
  7421. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7422. $as_echo "$ac_try_echo") >&5
  7423. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7424. ac_status=$?
  7425. grep -v '^ *+' conftest.er1 >conftest.err
  7426. rm -f conftest.er1
  7427. cat conftest.err >&5
  7428. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7429. (exit $ac_status); } >/dev/null && {
  7430. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7431. test ! -s conftest.err
  7432. }; then
  7433. ac_header_preproc=yes
  7434. else
  7435. $as_echo "$as_me: failed program was:" >&5
  7436. sed 's/^/| /' conftest.$ac_ext >&5
  7437. ac_header_preproc=no
  7438. fi
  7439. rm -f conftest.err conftest.$ac_ext
  7440. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7441. $as_echo "$ac_header_preproc" >&6; }
  7442. # So? What about this header?
  7443. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7444. yes:no: )
  7445. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7446. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7447. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7448. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7449. ac_header_preproc=yes
  7450. ;;
  7451. no:yes:* )
  7452. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7453. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7454. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7455. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7456. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7457. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7458. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7459. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7460. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7461. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7462. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7463. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7464. ( cat <<\_ASBOX
  7465. ## ----------------------------------------------- ##
  7466. ## Report this to t-tujikawa@users.sourceforge.net ##
  7467. ## ----------------------------------------------- ##
  7468. _ASBOX
  7469. ) | sed "s/^/$as_me: WARNING: /" >&2
  7470. ;;
  7471. esac
  7472. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7473. $as_echo_n "checking for $ac_header... " >&6; }
  7474. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7475. $as_echo_n "(cached) " >&6
  7476. else
  7477. eval "$as_ac_Header=\$ac_header_preproc"
  7478. fi
  7479. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7480. $as_echo "$as_val"'`
  7481. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7482. $as_echo "$ac_res" >&6; }
  7483. fi
  7484. as_val=`eval 'as_val=${'$as_ac_Header'}
  7485. $as_echo "$as_val"'`
  7486. if test "x$as_val" = x""yes; then
  7487. cat >>confdefs.h <<_ACEOF
  7488. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7489. _ACEOF
  7490. fi
  7491. done
  7492. ;;
  7493. esac
  7494. for ac_header in argz.h \
  7495. arpa/inet.h \
  7496. fcntl.h \
  7497. float.h \
  7498. inttypes.h \
  7499. io.h \
  7500. langinfo.h \
  7501. libintl.h \
  7502. limits.h \
  7503. locale.h \
  7504. malloc.h \
  7505. netdb.h \
  7506. netinet/in.h \
  7507. stddef.h \
  7508. stdint.h \
  7509. stdio_ext.h \
  7510. stdlib.h \
  7511. string.h \
  7512. strings.h \
  7513. sys/ioctl.h \
  7514. sys/param.h \
  7515. sys/socket.h \
  7516. sys/time.h \
  7517. termios.h \
  7518. unistd.h \
  7519. wchar.h
  7520. do
  7521. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7522. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7523. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7524. $as_echo_n "checking for $ac_header... " >&6; }
  7525. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7526. $as_echo_n "(cached) " >&6
  7527. fi
  7528. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7529. $as_echo "$as_val"'`
  7530. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7531. $as_echo "$ac_res" >&6; }
  7532. else
  7533. # Is the header compilable?
  7534. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7535. $as_echo_n "checking $ac_header usability... " >&6; }
  7536. cat >conftest.$ac_ext <<_ACEOF
  7537. /* confdefs.h. */
  7538. _ACEOF
  7539. cat confdefs.h >>conftest.$ac_ext
  7540. cat >>conftest.$ac_ext <<_ACEOF
  7541. /* end confdefs.h. */
  7542. $ac_includes_default
  7543. #include <$ac_header>
  7544. _ACEOF
  7545. rm -f conftest.$ac_objext
  7546. if { (ac_try="$ac_compile"
  7547. case "(($ac_try" in
  7548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7549. *) ac_try_echo=$ac_try;;
  7550. esac
  7551. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7552. $as_echo "$ac_try_echo") >&5
  7553. (eval "$ac_compile") 2>conftest.er1
  7554. ac_status=$?
  7555. grep -v '^ *+' conftest.er1 >conftest.err
  7556. rm -f conftest.er1
  7557. cat conftest.err >&5
  7558. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7559. (exit $ac_status); } && {
  7560. test -z "$ac_cxx_werror_flag" ||
  7561. test ! -s conftest.err
  7562. } && test -s conftest.$ac_objext; then
  7563. ac_header_compiler=yes
  7564. else
  7565. $as_echo "$as_me: failed program was:" >&5
  7566. sed 's/^/| /' conftest.$ac_ext >&5
  7567. ac_header_compiler=no
  7568. fi
  7569. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7570. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7571. $as_echo "$ac_header_compiler" >&6; }
  7572. # Is the header present?
  7573. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7574. $as_echo_n "checking $ac_header presence... " >&6; }
  7575. cat >conftest.$ac_ext <<_ACEOF
  7576. /* confdefs.h. */
  7577. _ACEOF
  7578. cat confdefs.h >>conftest.$ac_ext
  7579. cat >>conftest.$ac_ext <<_ACEOF
  7580. /* end confdefs.h. */
  7581. #include <$ac_header>
  7582. _ACEOF
  7583. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7584. case "(($ac_try" in
  7585. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7586. *) ac_try_echo=$ac_try;;
  7587. esac
  7588. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7589. $as_echo "$ac_try_echo") >&5
  7590. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7591. ac_status=$?
  7592. grep -v '^ *+' conftest.er1 >conftest.err
  7593. rm -f conftest.er1
  7594. cat conftest.err >&5
  7595. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7596. (exit $ac_status); } >/dev/null && {
  7597. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7598. test ! -s conftest.err
  7599. }; then
  7600. ac_header_preproc=yes
  7601. else
  7602. $as_echo "$as_me: failed program was:" >&5
  7603. sed 's/^/| /' conftest.$ac_ext >&5
  7604. ac_header_preproc=no
  7605. fi
  7606. rm -f conftest.err conftest.$ac_ext
  7607. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7608. $as_echo "$ac_header_preproc" >&6; }
  7609. # So? What about this header?
  7610. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7611. yes:no: )
  7612. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7613. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7614. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7615. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7616. ac_header_preproc=yes
  7617. ;;
  7618. no:yes:* )
  7619. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7620. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7621. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7622. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7623. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7624. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7625. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7626. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7627. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7628. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7629. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7630. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7631. ( cat <<\_ASBOX
  7632. ## ----------------------------------------------- ##
  7633. ## Report this to t-tujikawa@users.sourceforge.net ##
  7634. ## ----------------------------------------------- ##
  7635. _ASBOX
  7636. ) | sed "s/^/$as_me: WARNING: /" >&2
  7637. ;;
  7638. esac
  7639. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7640. $as_echo_n "checking for $ac_header... " >&6; }
  7641. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7642. $as_echo_n "(cached) " >&6
  7643. else
  7644. eval "$as_ac_Header=\$ac_header_preproc"
  7645. fi
  7646. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7647. $as_echo "$as_val"'`
  7648. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7649. $as_echo "$ac_res" >&6; }
  7650. fi
  7651. as_val=`eval 'as_val=${'$as_ac_Header'}
  7652. $as_echo "$as_val"'`
  7653. if test "x$as_val" = x""yes; then
  7654. cat >>confdefs.h <<_ACEOF
  7655. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7656. _ACEOF
  7657. fi
  7658. done
  7659. # Checks for typedefs, structures, and compiler characteristics.
  7660. { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7661. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7662. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7663. $as_echo_n "(cached) " >&6
  7664. else
  7665. cat >conftest.$ac_ext <<_ACEOF
  7666. /* confdefs.h. */
  7667. _ACEOF
  7668. cat confdefs.h >>conftest.$ac_ext
  7669. cat >>conftest.$ac_ext <<_ACEOF
  7670. /* end confdefs.h. */
  7671. #include <stdbool.h>
  7672. #ifndef bool
  7673. "error: bool is not defined"
  7674. #endif
  7675. #ifndef false
  7676. "error: false is not defined"
  7677. #endif
  7678. #if false
  7679. "error: false is not 0"
  7680. #endif
  7681. #ifndef true
  7682. "error: true is not defined"
  7683. #endif
  7684. #if true != 1
  7685. "error: true is not 1"
  7686. #endif
  7687. #ifndef __bool_true_false_are_defined
  7688. "error: __bool_true_false_are_defined is not defined"
  7689. #endif
  7690. struct s { _Bool s: 1; _Bool t; } s;
  7691. char a[true == 1 ? 1 : -1];
  7692. char b[false == 0 ? 1 : -1];
  7693. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7694. char d[(bool) 0.5 == true ? 1 : -1];
  7695. bool e = &s;
  7696. char f[(_Bool) 0.0 == false ? 1 : -1];
  7697. char g[true];
  7698. char h[sizeof (_Bool)];
  7699. char i[sizeof s.t];
  7700. enum { j = false, k = true, l = false * true, m = true * 256 };
  7701. /* The following fails for
  7702. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7703. _Bool n[m];
  7704. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7705. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7706. # if defined __xlc__ || defined __GNUC__
  7707. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7708. reported by James Lemley on 2005-10-05; see
  7709. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7710. This test is not quite right, since xlc is allowed to
  7711. reject this program, as the initializer for xlcbug is
  7712. not one of the forms that C requires support for.
  7713. However, doing the test right would require a runtime
  7714. test, and that would make cross-compilation harder.
  7715. Let us hope that IBM fixes the xlc bug, and also adds
  7716. support for this kind of constant expression. In the
  7717. meantime, this test will reject xlc, which is OK, since
  7718. our stdbool.h substitute should suffice. We also test
  7719. this with GCC, where it should work, to detect more
  7720. quickly whether someone messes up the test in the
  7721. future. */
  7722. char digs[] = "0123456789";
  7723. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  7724. # endif
  7725. /* Catch a bug in an HP-UX C compiler. See
  7726. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  7727. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  7728. */
  7729. _Bool q = true;
  7730. _Bool *pq = &q;
  7731. int
  7732. main ()
  7733. {
  7734. *pq |= q;
  7735. *pq |= ! q;
  7736. /* Refer to every declared value, to avoid compiler optimizations. */
  7737. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  7738. + !m + !n + !o + !p + !q + !pq);
  7739. ;
  7740. return 0;
  7741. }
  7742. _ACEOF
  7743. rm -f conftest.$ac_objext
  7744. if { (ac_try="$ac_compile"
  7745. case "(($ac_try" in
  7746. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7747. *) ac_try_echo=$ac_try;;
  7748. esac
  7749. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7750. $as_echo "$ac_try_echo") >&5
  7751. (eval "$ac_compile") 2>conftest.er1
  7752. ac_status=$?
  7753. grep -v '^ *+' conftest.er1 >conftest.err
  7754. rm -f conftest.er1
  7755. cat conftest.err >&5
  7756. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7757. (exit $ac_status); } && {
  7758. test -z "$ac_cxx_werror_flag" ||
  7759. test ! -s conftest.err
  7760. } && test -s conftest.$ac_objext; then
  7761. ac_cv_header_stdbool_h=yes
  7762. else
  7763. $as_echo "$as_me: failed program was:" >&5
  7764. sed 's/^/| /' conftest.$ac_ext >&5
  7765. ac_cv_header_stdbool_h=no
  7766. fi
  7767. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7768. fi
  7769. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  7770. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  7771. { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
  7772. $as_echo_n "checking for _Bool... " >&6; }
  7773. if test "${ac_cv_type__Bool+set}" = set; then
  7774. $as_echo_n "(cached) " >&6
  7775. else
  7776. ac_cv_type__Bool=no
  7777. cat >conftest.$ac_ext <<_ACEOF
  7778. /* confdefs.h. */
  7779. _ACEOF
  7780. cat confdefs.h >>conftest.$ac_ext
  7781. cat >>conftest.$ac_ext <<_ACEOF
  7782. /* end confdefs.h. */
  7783. $ac_includes_default
  7784. int
  7785. main ()
  7786. {
  7787. if (sizeof (_Bool))
  7788. return 0;
  7789. ;
  7790. return 0;
  7791. }
  7792. _ACEOF
  7793. rm -f conftest.$ac_objext
  7794. if { (ac_try="$ac_compile"
  7795. case "(($ac_try" in
  7796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7797. *) ac_try_echo=$ac_try;;
  7798. esac
  7799. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7800. $as_echo "$ac_try_echo") >&5
  7801. (eval "$ac_compile") 2>conftest.er1
  7802. ac_status=$?
  7803. grep -v '^ *+' conftest.er1 >conftest.err
  7804. rm -f conftest.er1
  7805. cat conftest.err >&5
  7806. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7807. (exit $ac_status); } && {
  7808. test -z "$ac_cxx_werror_flag" ||
  7809. test ! -s conftest.err
  7810. } && test -s conftest.$ac_objext; then
  7811. cat >conftest.$ac_ext <<_ACEOF
  7812. /* confdefs.h. */
  7813. _ACEOF
  7814. cat confdefs.h >>conftest.$ac_ext
  7815. cat >>conftest.$ac_ext <<_ACEOF
  7816. /* end confdefs.h. */
  7817. $ac_includes_default
  7818. int
  7819. main ()
  7820. {
  7821. if (sizeof ((_Bool)))
  7822. return 0;
  7823. ;
  7824. return 0;
  7825. }
  7826. _ACEOF
  7827. rm -f conftest.$ac_objext
  7828. if { (ac_try="$ac_compile"
  7829. case "(($ac_try" in
  7830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7831. *) ac_try_echo=$ac_try;;
  7832. esac
  7833. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7834. $as_echo "$ac_try_echo") >&5
  7835. (eval "$ac_compile") 2>conftest.er1
  7836. ac_status=$?
  7837. grep -v '^ *+' conftest.er1 >conftest.err
  7838. rm -f conftest.er1
  7839. cat conftest.err >&5
  7840. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7841. (exit $ac_status); } && {
  7842. test -z "$ac_cxx_werror_flag" ||
  7843. test ! -s conftest.err
  7844. } && test -s conftest.$ac_objext; then
  7845. :
  7846. else
  7847. $as_echo "$as_me: failed program was:" >&5
  7848. sed 's/^/| /' conftest.$ac_ext >&5
  7849. ac_cv_type__Bool=yes
  7850. fi
  7851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7852. else
  7853. $as_echo "$as_me: failed program was:" >&5
  7854. sed 's/^/| /' conftest.$ac_ext >&5
  7855. fi
  7856. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7857. fi
  7858. { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  7859. $as_echo "$ac_cv_type__Bool" >&6; }
  7860. if test "x$ac_cv_type__Bool" = x""yes; then
  7861. cat >>confdefs.h <<_ACEOF
  7862. #define HAVE__BOOL 1
  7863. _ACEOF
  7864. fi
  7865. if test $ac_cv_header_stdbool_h = yes; then
  7866. cat >>confdefs.h <<\_ACEOF
  7867. #define HAVE_STDBOOL_H 1
  7868. _ACEOF
  7869. fi
  7870. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  7871. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  7872. if test "${ac_cv_c_const+set}" = set; then
  7873. $as_echo_n "(cached) " >&6
  7874. else
  7875. cat >conftest.$ac_ext <<_ACEOF
  7876. /* confdefs.h. */
  7877. _ACEOF
  7878. cat confdefs.h >>conftest.$ac_ext
  7879. cat >>conftest.$ac_ext <<_ACEOF
  7880. /* end confdefs.h. */
  7881. int
  7882. main ()
  7883. {
  7884. /* FIXME: Include the comments suggested by Paul. */
  7885. #ifndef __cplusplus
  7886. /* Ultrix mips cc rejects this. */
  7887. typedef int charset[2];
  7888. const charset cs;
  7889. /* SunOS 4.1.1 cc rejects this. */
  7890. char const *const *pcpcc;
  7891. char **ppc;
  7892. /* NEC SVR4.0.2 mips cc rejects this. */
  7893. struct point {int x, y;};
  7894. static struct point const zero = {0,0};
  7895. /* AIX XL C 1.02.0.0 rejects this.
  7896. It does not let you subtract one const X* pointer from another in
  7897. an arm of an if-expression whose if-part is not a constant
  7898. expression */
  7899. const char *g = "string";
  7900. pcpcc = &g + (g ? g-g : 0);
  7901. /* HPUX 7.0 cc rejects these. */
  7902. ++pcpcc;
  7903. ppc = (char**) pcpcc;
  7904. pcpcc = (char const *const *) ppc;
  7905. { /* SCO 3.2v4 cc rejects this. */
  7906. char *t;
  7907. char const *s = 0 ? (char *) 0 : (char const *) 0;
  7908. *t++ = 0;
  7909. if (s) return 0;
  7910. }
  7911. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  7912. int x[] = {25, 17};
  7913. const int *foo = &x[0];
  7914. ++foo;
  7915. }
  7916. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  7917. typedef const int *iptr;
  7918. iptr p = 0;
  7919. ++p;
  7920. }
  7921. { /* AIX XL C 1.02.0.0 rejects this saying
  7922. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  7923. struct s { int j; const int *ap[3]; };
  7924. struct s *b; b->j = 5;
  7925. }
  7926. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  7927. const int foo = 10;
  7928. if (!foo) return 0;
  7929. }
  7930. return !cs[0] && !zero.x;
  7931. #endif
  7932. ;
  7933. return 0;
  7934. }
  7935. _ACEOF
  7936. rm -f conftest.$ac_objext
  7937. if { (ac_try="$ac_compile"
  7938. case "(($ac_try" in
  7939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7940. *) ac_try_echo=$ac_try;;
  7941. esac
  7942. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7943. $as_echo "$ac_try_echo") >&5
  7944. (eval "$ac_compile") 2>conftest.er1
  7945. ac_status=$?
  7946. grep -v '^ *+' conftest.er1 >conftest.err
  7947. rm -f conftest.er1
  7948. cat conftest.err >&5
  7949. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7950. (exit $ac_status); } && {
  7951. test -z "$ac_cxx_werror_flag" ||
  7952. test ! -s conftest.err
  7953. } && test -s conftest.$ac_objext; then
  7954. ac_cv_c_const=yes
  7955. else
  7956. $as_echo "$as_me: failed program was:" >&5
  7957. sed 's/^/| /' conftest.$ac_ext >&5
  7958. ac_cv_c_const=no
  7959. fi
  7960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7961. fi
  7962. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  7963. $as_echo "$ac_cv_c_const" >&6; }
  7964. if test $ac_cv_c_const = no; then
  7965. cat >>confdefs.h <<\_ACEOF
  7966. #define const /**/
  7967. _ACEOF
  7968. fi
  7969. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  7970. $as_echo_n "checking for inline... " >&6; }
  7971. if test "${ac_cv_c_inline+set}" = set; then
  7972. $as_echo_n "(cached) " >&6
  7973. else
  7974. ac_cv_c_inline=no
  7975. for ac_kw in inline __inline__ __inline; do
  7976. cat >conftest.$ac_ext <<_ACEOF
  7977. /* confdefs.h. */
  7978. _ACEOF
  7979. cat confdefs.h >>conftest.$ac_ext
  7980. cat >>conftest.$ac_ext <<_ACEOF
  7981. /* end confdefs.h. */
  7982. #ifndef __cplusplus
  7983. typedef int foo_t;
  7984. static $ac_kw foo_t static_foo () {return 0; }
  7985. $ac_kw foo_t foo () {return 0; }
  7986. #endif
  7987. _ACEOF
  7988. rm -f conftest.$ac_objext
  7989. if { (ac_try="$ac_compile"
  7990. case "(($ac_try" in
  7991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7992. *) ac_try_echo=$ac_try;;
  7993. esac
  7994. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7995. $as_echo "$ac_try_echo") >&5
  7996. (eval "$ac_compile") 2>conftest.er1
  7997. ac_status=$?
  7998. grep -v '^ *+' conftest.er1 >conftest.err
  7999. rm -f conftest.er1
  8000. cat conftest.err >&5
  8001. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8002. (exit $ac_status); } && {
  8003. test -z "$ac_cxx_werror_flag" ||
  8004. test ! -s conftest.err
  8005. } && test -s conftest.$ac_objext; then
  8006. ac_cv_c_inline=$ac_kw
  8007. else
  8008. $as_echo "$as_me: failed program was:" >&5
  8009. sed 's/^/| /' conftest.$ac_ext >&5
  8010. fi
  8011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8012. test "$ac_cv_c_inline" != no && break
  8013. done
  8014. fi
  8015. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  8016. $as_echo "$ac_cv_c_inline" >&6; }
  8017. case $ac_cv_c_inline in
  8018. inline | yes) ;;
  8019. *)
  8020. case $ac_cv_c_inline in
  8021. no) ac_val=;;
  8022. *) ac_val=$ac_cv_c_inline;;
  8023. esac
  8024. cat >>confdefs.h <<_ACEOF
  8025. #ifndef __cplusplus
  8026. #define inline $ac_val
  8027. #endif
  8028. _ACEOF
  8029. ;;
  8030. esac
  8031. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  8032. $as_echo_n "checking for int16_t... " >&6; }
  8033. if test "${ac_cv_c_int16_t+set}" = set; then
  8034. $as_echo_n "(cached) " >&6
  8035. else
  8036. ac_cv_c_int16_t=no
  8037. for ac_type in 'int16_t' 'int' 'long int' \
  8038. 'long long int' 'short int' 'signed char'; do
  8039. cat >conftest.$ac_ext <<_ACEOF
  8040. /* confdefs.h. */
  8041. _ACEOF
  8042. cat confdefs.h >>conftest.$ac_ext
  8043. cat >>conftest.$ac_ext <<_ACEOF
  8044. /* end confdefs.h. */
  8045. $ac_includes_default
  8046. int
  8047. main ()
  8048. {
  8049. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  8050. test_array [0] = 0
  8051. ;
  8052. return 0;
  8053. }
  8054. _ACEOF
  8055. rm -f conftest.$ac_objext
  8056. if { (ac_try="$ac_compile"
  8057. case "(($ac_try" in
  8058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8059. *) ac_try_echo=$ac_try;;
  8060. esac
  8061. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8062. $as_echo "$ac_try_echo") >&5
  8063. (eval "$ac_compile") 2>conftest.er1
  8064. ac_status=$?
  8065. grep -v '^ *+' conftest.er1 >conftest.err
  8066. rm -f conftest.er1
  8067. cat conftest.err >&5
  8068. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8069. (exit $ac_status); } && {
  8070. test -z "$ac_cxx_werror_flag" ||
  8071. test ! -s conftest.err
  8072. } && test -s conftest.$ac_objext; then
  8073. cat >conftest.$ac_ext <<_ACEOF
  8074. /* confdefs.h. */
  8075. _ACEOF
  8076. cat confdefs.h >>conftest.$ac_ext
  8077. cat >>conftest.$ac_ext <<_ACEOF
  8078. /* end confdefs.h. */
  8079. $ac_includes_default
  8080. int
  8081. main ()
  8082. {
  8083. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  8084. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  8085. test_array [0] = 0
  8086. ;
  8087. return 0;
  8088. }
  8089. _ACEOF
  8090. rm -f conftest.$ac_objext
  8091. if { (ac_try="$ac_compile"
  8092. case "(($ac_try" in
  8093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8094. *) ac_try_echo=$ac_try;;
  8095. esac
  8096. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8097. $as_echo "$ac_try_echo") >&5
  8098. (eval "$ac_compile") 2>conftest.er1
  8099. ac_status=$?
  8100. grep -v '^ *+' conftest.er1 >conftest.err
  8101. rm -f conftest.er1
  8102. cat conftest.err >&5
  8103. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8104. (exit $ac_status); } && {
  8105. test -z "$ac_cxx_werror_flag" ||
  8106. test ! -s conftest.err
  8107. } && test -s conftest.$ac_objext; then
  8108. :
  8109. else
  8110. $as_echo "$as_me: failed program was:" >&5
  8111. sed 's/^/| /' conftest.$ac_ext >&5
  8112. case $ac_type in
  8113. int16_t) ac_cv_c_int16_t=yes ;;
  8114. *) ac_cv_c_int16_t=$ac_type ;;
  8115. esac
  8116. fi
  8117. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8118. else
  8119. $as_echo "$as_me: failed program was:" >&5
  8120. sed 's/^/| /' conftest.$ac_ext >&5
  8121. fi
  8122. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8123. test "$ac_cv_c_int16_t" != no && break
  8124. done
  8125. fi
  8126. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  8127. $as_echo "$ac_cv_c_int16_t" >&6; }
  8128. case $ac_cv_c_int16_t in #(
  8129. no|yes) ;; #(
  8130. *)
  8131. cat >>confdefs.h <<_ACEOF
  8132. #define int16_t $ac_cv_c_int16_t
  8133. _ACEOF
  8134. ;;
  8135. esac
  8136. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  8137. $as_echo_n "checking for int32_t... " >&6; }
  8138. if test "${ac_cv_c_int32_t+set}" = set; then
  8139. $as_echo_n "(cached) " >&6
  8140. else
  8141. ac_cv_c_int32_t=no
  8142. for ac_type in 'int32_t' 'int' 'long int' \
  8143. 'long long int' 'short int' 'signed char'; do
  8144. cat >conftest.$ac_ext <<_ACEOF
  8145. /* confdefs.h. */
  8146. _ACEOF
  8147. cat confdefs.h >>conftest.$ac_ext
  8148. cat >>conftest.$ac_ext <<_ACEOF
  8149. /* end confdefs.h. */
  8150. $ac_includes_default
  8151. int
  8152. main ()
  8153. {
  8154. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  8155. test_array [0] = 0
  8156. ;
  8157. return 0;
  8158. }
  8159. _ACEOF
  8160. rm -f conftest.$ac_objext
  8161. if { (ac_try="$ac_compile"
  8162. case "(($ac_try" in
  8163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8164. *) ac_try_echo=$ac_try;;
  8165. esac
  8166. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8167. $as_echo "$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. $as_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. cat >conftest.$ac_ext <<_ACEOF
  8179. /* confdefs.h. */
  8180. _ACEOF
  8181. cat confdefs.h >>conftest.$ac_ext
  8182. cat >>conftest.$ac_ext <<_ACEOF
  8183. /* end confdefs.h. */
  8184. $ac_includes_default
  8185. int
  8186. main ()
  8187. {
  8188. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  8189. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  8190. test_array [0] = 0
  8191. ;
  8192. return 0;
  8193. }
  8194. _ACEOF
  8195. rm -f conftest.$ac_objext
  8196. if { (ac_try="$ac_compile"
  8197. case "(($ac_try" in
  8198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8199. *) ac_try_echo=$ac_try;;
  8200. esac
  8201. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8202. $as_echo "$ac_try_echo") >&5
  8203. (eval "$ac_compile") 2>conftest.er1
  8204. ac_status=$?
  8205. grep -v '^ *+' conftest.er1 >conftest.err
  8206. rm -f conftest.er1
  8207. cat conftest.err >&5
  8208. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8209. (exit $ac_status); } && {
  8210. test -z "$ac_cxx_werror_flag" ||
  8211. test ! -s conftest.err
  8212. } && test -s conftest.$ac_objext; then
  8213. :
  8214. else
  8215. $as_echo "$as_me: failed program was:" >&5
  8216. sed 's/^/| /' conftest.$ac_ext >&5
  8217. case $ac_type in
  8218. int32_t) ac_cv_c_int32_t=yes ;;
  8219. *) ac_cv_c_int32_t=$ac_type ;;
  8220. esac
  8221. fi
  8222. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8223. else
  8224. $as_echo "$as_me: failed program was:" >&5
  8225. sed 's/^/| /' conftest.$ac_ext >&5
  8226. fi
  8227. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8228. test "$ac_cv_c_int32_t" != no && break
  8229. done
  8230. fi
  8231. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  8232. $as_echo "$ac_cv_c_int32_t" >&6; }
  8233. case $ac_cv_c_int32_t in #(
  8234. no|yes) ;; #(
  8235. *)
  8236. cat >>confdefs.h <<_ACEOF
  8237. #define int32_t $ac_cv_c_int32_t
  8238. _ACEOF
  8239. ;;
  8240. esac
  8241. { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
  8242. $as_echo_n "checking for int64_t... " >&6; }
  8243. if test "${ac_cv_c_int64_t+set}" = set; then
  8244. $as_echo_n "(cached) " >&6
  8245. else
  8246. ac_cv_c_int64_t=no
  8247. for ac_type in 'int64_t' 'int' 'long int' \
  8248. 'long long int' 'short int' 'signed char'; do
  8249. cat >conftest.$ac_ext <<_ACEOF
  8250. /* confdefs.h. */
  8251. _ACEOF
  8252. cat confdefs.h >>conftest.$ac_ext
  8253. cat >>conftest.$ac_ext <<_ACEOF
  8254. /* end confdefs.h. */
  8255. $ac_includes_default
  8256. int
  8257. main ()
  8258. {
  8259. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  8260. test_array [0] = 0
  8261. ;
  8262. return 0;
  8263. }
  8264. _ACEOF
  8265. rm -f conftest.$ac_objext
  8266. if { (ac_try="$ac_compile"
  8267. case "(($ac_try" in
  8268. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8269. *) ac_try_echo=$ac_try;;
  8270. esac
  8271. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8272. $as_echo "$ac_try_echo") >&5
  8273. (eval "$ac_compile") 2>conftest.er1
  8274. ac_status=$?
  8275. grep -v '^ *+' conftest.er1 >conftest.err
  8276. rm -f conftest.er1
  8277. cat conftest.err >&5
  8278. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8279. (exit $ac_status); } && {
  8280. test -z "$ac_cxx_werror_flag" ||
  8281. test ! -s conftest.err
  8282. } && test -s conftest.$ac_objext; then
  8283. cat >conftest.$ac_ext <<_ACEOF
  8284. /* confdefs.h. */
  8285. _ACEOF
  8286. cat confdefs.h >>conftest.$ac_ext
  8287. cat >>conftest.$ac_ext <<_ACEOF
  8288. /* end confdefs.h. */
  8289. $ac_includes_default
  8290. int
  8291. main ()
  8292. {
  8293. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  8294. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  8295. test_array [0] = 0
  8296. ;
  8297. return 0;
  8298. }
  8299. _ACEOF
  8300. rm -f conftest.$ac_objext
  8301. if { (ac_try="$ac_compile"
  8302. case "(($ac_try" in
  8303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8304. *) ac_try_echo=$ac_try;;
  8305. esac
  8306. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8307. $as_echo "$ac_try_echo") >&5
  8308. (eval "$ac_compile") 2>conftest.er1
  8309. ac_status=$?
  8310. grep -v '^ *+' conftest.er1 >conftest.err
  8311. rm -f conftest.er1
  8312. cat conftest.err >&5
  8313. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8314. (exit $ac_status); } && {
  8315. test -z "$ac_cxx_werror_flag" ||
  8316. test ! -s conftest.err
  8317. } && test -s conftest.$ac_objext; then
  8318. :
  8319. else
  8320. $as_echo "$as_me: failed program was:" >&5
  8321. sed 's/^/| /' conftest.$ac_ext >&5
  8322. case $ac_type in
  8323. int64_t) ac_cv_c_int64_t=yes ;;
  8324. *) ac_cv_c_int64_t=$ac_type ;;
  8325. esac
  8326. fi
  8327. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8328. else
  8329. $as_echo "$as_me: failed program was:" >&5
  8330. sed 's/^/| /' conftest.$ac_ext >&5
  8331. fi
  8332. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8333. test "$ac_cv_c_int64_t" != no && break
  8334. done
  8335. fi
  8336. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  8337. $as_echo "$ac_cv_c_int64_t" >&6; }
  8338. case $ac_cv_c_int64_t in #(
  8339. no|yes) ;; #(
  8340. *)
  8341. cat >>confdefs.h <<_ACEOF
  8342. #define int64_t $ac_cv_c_int64_t
  8343. _ACEOF
  8344. ;;
  8345. esac
  8346. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  8347. $as_echo_n "checking for int8_t... " >&6; }
  8348. if test "${ac_cv_c_int8_t+set}" = set; then
  8349. $as_echo_n "(cached) " >&6
  8350. else
  8351. ac_cv_c_int8_t=no
  8352. for ac_type in 'int8_t' 'int' 'long int' \
  8353. 'long long int' 'short int' 'signed char'; do
  8354. cat >conftest.$ac_ext <<_ACEOF
  8355. /* confdefs.h. */
  8356. _ACEOF
  8357. cat confdefs.h >>conftest.$ac_ext
  8358. cat >>conftest.$ac_ext <<_ACEOF
  8359. /* end confdefs.h. */
  8360. $ac_includes_default
  8361. int
  8362. main ()
  8363. {
  8364. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  8365. test_array [0] = 0
  8366. ;
  8367. return 0;
  8368. }
  8369. _ACEOF
  8370. rm -f conftest.$ac_objext
  8371. if { (ac_try="$ac_compile"
  8372. case "(($ac_try" in
  8373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8374. *) ac_try_echo=$ac_try;;
  8375. esac
  8376. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8377. $as_echo "$ac_try_echo") >&5
  8378. (eval "$ac_compile") 2>conftest.er1
  8379. ac_status=$?
  8380. grep -v '^ *+' conftest.er1 >conftest.err
  8381. rm -f conftest.er1
  8382. cat conftest.err >&5
  8383. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8384. (exit $ac_status); } && {
  8385. test -z "$ac_cxx_werror_flag" ||
  8386. test ! -s conftest.err
  8387. } && test -s conftest.$ac_objext; then
  8388. cat >conftest.$ac_ext <<_ACEOF
  8389. /* confdefs.h. */
  8390. _ACEOF
  8391. cat confdefs.h >>conftest.$ac_ext
  8392. cat >>conftest.$ac_ext <<_ACEOF
  8393. /* end confdefs.h. */
  8394. $ac_includes_default
  8395. int
  8396. main ()
  8397. {
  8398. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  8399. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  8400. test_array [0] = 0
  8401. ;
  8402. return 0;
  8403. }
  8404. _ACEOF
  8405. rm -f conftest.$ac_objext
  8406. if { (ac_try="$ac_compile"
  8407. case "(($ac_try" in
  8408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8409. *) ac_try_echo=$ac_try;;
  8410. esac
  8411. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8412. $as_echo "$ac_try_echo") >&5
  8413. (eval "$ac_compile") 2>conftest.er1
  8414. ac_status=$?
  8415. grep -v '^ *+' conftest.er1 >conftest.err
  8416. rm -f conftest.er1
  8417. cat conftest.err >&5
  8418. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8419. (exit $ac_status); } && {
  8420. test -z "$ac_cxx_werror_flag" ||
  8421. test ! -s conftest.err
  8422. } && test -s conftest.$ac_objext; then
  8423. :
  8424. else
  8425. $as_echo "$as_me: failed program was:" >&5
  8426. sed 's/^/| /' conftest.$ac_ext >&5
  8427. case $ac_type in
  8428. int8_t) ac_cv_c_int8_t=yes ;;
  8429. *) ac_cv_c_int8_t=$ac_type ;;
  8430. esac
  8431. fi
  8432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8433. else
  8434. $as_echo "$as_me: failed program was:" >&5
  8435. sed 's/^/| /' conftest.$ac_ext >&5
  8436. fi
  8437. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8438. test "$ac_cv_c_int8_t" != no && break
  8439. done
  8440. fi
  8441. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  8442. $as_echo "$ac_cv_c_int8_t" >&6; }
  8443. case $ac_cv_c_int8_t in #(
  8444. no|yes) ;; #(
  8445. *)
  8446. cat >>confdefs.h <<_ACEOF
  8447. #define int8_t $ac_cv_c_int8_t
  8448. _ACEOF
  8449. ;;
  8450. esac
  8451. { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
  8452. $as_echo_n "checking for mode_t... " >&6; }
  8453. if test "${ac_cv_type_mode_t+set}" = set; then
  8454. $as_echo_n "(cached) " >&6
  8455. else
  8456. ac_cv_type_mode_t=no
  8457. cat >conftest.$ac_ext <<_ACEOF
  8458. /* confdefs.h. */
  8459. _ACEOF
  8460. cat confdefs.h >>conftest.$ac_ext
  8461. cat >>conftest.$ac_ext <<_ACEOF
  8462. /* end confdefs.h. */
  8463. $ac_includes_default
  8464. int
  8465. main ()
  8466. {
  8467. if (sizeof (mode_t))
  8468. return 0;
  8469. ;
  8470. return 0;
  8471. }
  8472. _ACEOF
  8473. rm -f conftest.$ac_objext
  8474. if { (ac_try="$ac_compile"
  8475. case "(($ac_try" in
  8476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8477. *) ac_try_echo=$ac_try;;
  8478. esac
  8479. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8480. $as_echo "$ac_try_echo") >&5
  8481. (eval "$ac_compile") 2>conftest.er1
  8482. ac_status=$?
  8483. grep -v '^ *+' conftest.er1 >conftest.err
  8484. rm -f conftest.er1
  8485. cat conftest.err >&5
  8486. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8487. (exit $ac_status); } && {
  8488. test -z "$ac_cxx_werror_flag" ||
  8489. test ! -s conftest.err
  8490. } && test -s conftest.$ac_objext; then
  8491. cat >conftest.$ac_ext <<_ACEOF
  8492. /* confdefs.h. */
  8493. _ACEOF
  8494. cat confdefs.h >>conftest.$ac_ext
  8495. cat >>conftest.$ac_ext <<_ACEOF
  8496. /* end confdefs.h. */
  8497. $ac_includes_default
  8498. int
  8499. main ()
  8500. {
  8501. if (sizeof ((mode_t)))
  8502. return 0;
  8503. ;
  8504. return 0;
  8505. }
  8506. _ACEOF
  8507. rm -f conftest.$ac_objext
  8508. if { (ac_try="$ac_compile"
  8509. case "(($ac_try" in
  8510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8511. *) ac_try_echo=$ac_try;;
  8512. esac
  8513. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8514. $as_echo "$ac_try_echo") >&5
  8515. (eval "$ac_compile") 2>conftest.er1
  8516. ac_status=$?
  8517. grep -v '^ *+' conftest.er1 >conftest.err
  8518. rm -f conftest.er1
  8519. cat conftest.err >&5
  8520. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8521. (exit $ac_status); } && {
  8522. test -z "$ac_cxx_werror_flag" ||
  8523. test ! -s conftest.err
  8524. } && test -s conftest.$ac_objext; then
  8525. :
  8526. else
  8527. $as_echo "$as_me: failed program was:" >&5
  8528. sed 's/^/| /' conftest.$ac_ext >&5
  8529. ac_cv_type_mode_t=yes
  8530. fi
  8531. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8532. else
  8533. $as_echo "$as_me: failed program was:" >&5
  8534. sed 's/^/| /' conftest.$ac_ext >&5
  8535. fi
  8536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8537. fi
  8538. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8539. $as_echo "$ac_cv_type_mode_t" >&6; }
  8540. if test "x$ac_cv_type_mode_t" = x""yes; then
  8541. :
  8542. else
  8543. cat >>confdefs.h <<_ACEOF
  8544. #define mode_t int
  8545. _ACEOF
  8546. fi
  8547. { $as_echo "$as_me:$LINENO: checking for off_t" >&5
  8548. $as_echo_n "checking for off_t... " >&6; }
  8549. if test "${ac_cv_type_off_t+set}" = set; then
  8550. $as_echo_n "(cached) " >&6
  8551. else
  8552. ac_cv_type_off_t=no
  8553. cat >conftest.$ac_ext <<_ACEOF
  8554. /* confdefs.h. */
  8555. _ACEOF
  8556. cat confdefs.h >>conftest.$ac_ext
  8557. cat >>conftest.$ac_ext <<_ACEOF
  8558. /* end confdefs.h. */
  8559. $ac_includes_default
  8560. int
  8561. main ()
  8562. {
  8563. if (sizeof (off_t))
  8564. return 0;
  8565. ;
  8566. return 0;
  8567. }
  8568. _ACEOF
  8569. rm -f conftest.$ac_objext
  8570. if { (ac_try="$ac_compile"
  8571. case "(($ac_try" in
  8572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8573. *) ac_try_echo=$ac_try;;
  8574. esac
  8575. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8576. $as_echo "$ac_try_echo") >&5
  8577. (eval "$ac_compile") 2>conftest.er1
  8578. ac_status=$?
  8579. grep -v '^ *+' conftest.er1 >conftest.err
  8580. rm -f conftest.er1
  8581. cat conftest.err >&5
  8582. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8583. (exit $ac_status); } && {
  8584. test -z "$ac_cxx_werror_flag" ||
  8585. test ! -s conftest.err
  8586. } && test -s conftest.$ac_objext; then
  8587. cat >conftest.$ac_ext <<_ACEOF
  8588. /* confdefs.h. */
  8589. _ACEOF
  8590. cat confdefs.h >>conftest.$ac_ext
  8591. cat >>conftest.$ac_ext <<_ACEOF
  8592. /* end confdefs.h. */
  8593. $ac_includes_default
  8594. int
  8595. main ()
  8596. {
  8597. if (sizeof ((off_t)))
  8598. return 0;
  8599. ;
  8600. return 0;
  8601. }
  8602. _ACEOF
  8603. rm -f conftest.$ac_objext
  8604. if { (ac_try="$ac_compile"
  8605. case "(($ac_try" in
  8606. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8607. *) ac_try_echo=$ac_try;;
  8608. esac
  8609. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8610. $as_echo "$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. $as_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. :
  8622. else
  8623. $as_echo "$as_me: failed program was:" >&5
  8624. sed 's/^/| /' conftest.$ac_ext >&5
  8625. ac_cv_type_off_t=yes
  8626. fi
  8627. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8628. else
  8629. $as_echo "$as_me: failed program was:" >&5
  8630. sed 's/^/| /' conftest.$ac_ext >&5
  8631. fi
  8632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8633. fi
  8634. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8635. $as_echo "$ac_cv_type_off_t" >&6; }
  8636. if test "x$ac_cv_type_off_t" = x""yes; then
  8637. :
  8638. else
  8639. cat >>confdefs.h <<_ACEOF
  8640. #define off_t long int
  8641. _ACEOF
  8642. fi
  8643. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  8644. $as_echo_n "checking for size_t... " >&6; }
  8645. if test "${ac_cv_type_size_t+set}" = set; then
  8646. $as_echo_n "(cached) " >&6
  8647. else
  8648. ac_cv_type_size_t=no
  8649. cat >conftest.$ac_ext <<_ACEOF
  8650. /* confdefs.h. */
  8651. _ACEOF
  8652. cat confdefs.h >>conftest.$ac_ext
  8653. cat >>conftest.$ac_ext <<_ACEOF
  8654. /* end confdefs.h. */
  8655. $ac_includes_default
  8656. int
  8657. main ()
  8658. {
  8659. if (sizeof (size_t))
  8660. return 0;
  8661. ;
  8662. return 0;
  8663. }
  8664. _ACEOF
  8665. rm -f conftest.$ac_objext
  8666. if { (ac_try="$ac_compile"
  8667. case "(($ac_try" in
  8668. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8669. *) ac_try_echo=$ac_try;;
  8670. esac
  8671. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8672. $as_echo "$ac_try_echo") >&5
  8673. (eval "$ac_compile") 2>conftest.er1
  8674. ac_status=$?
  8675. grep -v '^ *+' conftest.er1 >conftest.err
  8676. rm -f conftest.er1
  8677. cat conftest.err >&5
  8678. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8679. (exit $ac_status); } && {
  8680. test -z "$ac_cxx_werror_flag" ||
  8681. test ! -s conftest.err
  8682. } && test -s conftest.$ac_objext; then
  8683. cat >conftest.$ac_ext <<_ACEOF
  8684. /* confdefs.h. */
  8685. _ACEOF
  8686. cat confdefs.h >>conftest.$ac_ext
  8687. cat >>conftest.$ac_ext <<_ACEOF
  8688. /* end confdefs.h. */
  8689. $ac_includes_default
  8690. int
  8691. main ()
  8692. {
  8693. if (sizeof ((size_t)))
  8694. return 0;
  8695. ;
  8696. return 0;
  8697. }
  8698. _ACEOF
  8699. rm -f conftest.$ac_objext
  8700. if { (ac_try="$ac_compile"
  8701. case "(($ac_try" in
  8702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8703. *) ac_try_echo=$ac_try;;
  8704. esac
  8705. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8706. $as_echo "$ac_try_echo") >&5
  8707. (eval "$ac_compile") 2>conftest.er1
  8708. ac_status=$?
  8709. grep -v '^ *+' conftest.er1 >conftest.err
  8710. rm -f conftest.er1
  8711. cat conftest.err >&5
  8712. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8713. (exit $ac_status); } && {
  8714. test -z "$ac_cxx_werror_flag" ||
  8715. test ! -s conftest.err
  8716. } && test -s conftest.$ac_objext; then
  8717. :
  8718. else
  8719. $as_echo "$as_me: failed program was:" >&5
  8720. sed 's/^/| /' conftest.$ac_ext >&5
  8721. ac_cv_type_size_t=yes
  8722. fi
  8723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8724. else
  8725. $as_echo "$as_me: failed program was:" >&5
  8726. sed 's/^/| /' conftest.$ac_ext >&5
  8727. fi
  8728. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8729. fi
  8730. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  8731. $as_echo "$ac_cv_type_size_t" >&6; }
  8732. if test "x$ac_cv_type_size_t" = x""yes; then
  8733. :
  8734. else
  8735. cat >>confdefs.h <<_ACEOF
  8736. #define size_t unsigned int
  8737. _ACEOF
  8738. fi
  8739. { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
  8740. $as_echo_n "checking for ssize_t... " >&6; }
  8741. if test "${ac_cv_type_ssize_t+set}" = set; then
  8742. $as_echo_n "(cached) " >&6
  8743. else
  8744. ac_cv_type_ssize_t=no
  8745. cat >conftest.$ac_ext <<_ACEOF
  8746. /* confdefs.h. */
  8747. _ACEOF
  8748. cat confdefs.h >>conftest.$ac_ext
  8749. cat >>conftest.$ac_ext <<_ACEOF
  8750. /* end confdefs.h. */
  8751. $ac_includes_default
  8752. int
  8753. main ()
  8754. {
  8755. if (sizeof (ssize_t))
  8756. return 0;
  8757. ;
  8758. return 0;
  8759. }
  8760. _ACEOF
  8761. rm -f conftest.$ac_objext
  8762. if { (ac_try="$ac_compile"
  8763. case "(($ac_try" in
  8764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8765. *) ac_try_echo=$ac_try;;
  8766. esac
  8767. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8768. $as_echo "$ac_try_echo") >&5
  8769. (eval "$ac_compile") 2>conftest.er1
  8770. ac_status=$?
  8771. grep -v '^ *+' conftest.er1 >conftest.err
  8772. rm -f conftest.er1
  8773. cat conftest.err >&5
  8774. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8775. (exit $ac_status); } && {
  8776. test -z "$ac_cxx_werror_flag" ||
  8777. test ! -s conftest.err
  8778. } && test -s conftest.$ac_objext; then
  8779. cat >conftest.$ac_ext <<_ACEOF
  8780. /* confdefs.h. */
  8781. _ACEOF
  8782. cat confdefs.h >>conftest.$ac_ext
  8783. cat >>conftest.$ac_ext <<_ACEOF
  8784. /* end confdefs.h. */
  8785. $ac_includes_default
  8786. int
  8787. main ()
  8788. {
  8789. if (sizeof ((ssize_t)))
  8790. return 0;
  8791. ;
  8792. return 0;
  8793. }
  8794. _ACEOF
  8795. rm -f conftest.$ac_objext
  8796. if { (ac_try="$ac_compile"
  8797. case "(($ac_try" in
  8798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8799. *) ac_try_echo=$ac_try;;
  8800. esac
  8801. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8802. $as_echo "$ac_try_echo") >&5
  8803. (eval "$ac_compile") 2>conftest.er1
  8804. ac_status=$?
  8805. grep -v '^ *+' conftest.er1 >conftest.err
  8806. rm -f conftest.er1
  8807. cat conftest.err >&5
  8808. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8809. (exit $ac_status); } && {
  8810. test -z "$ac_cxx_werror_flag" ||
  8811. test ! -s conftest.err
  8812. } && test -s conftest.$ac_objext; then
  8813. :
  8814. else
  8815. $as_echo "$as_me: failed program was:" >&5
  8816. sed 's/^/| /' conftest.$ac_ext >&5
  8817. ac_cv_type_ssize_t=yes
  8818. fi
  8819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8820. else
  8821. $as_echo "$as_me: failed program was:" >&5
  8822. sed 's/^/| /' conftest.$ac_ext >&5
  8823. fi
  8824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8825. fi
  8826. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  8827. $as_echo "$ac_cv_type_ssize_t" >&6; }
  8828. if test "x$ac_cv_type_ssize_t" = x""yes; then
  8829. :
  8830. else
  8831. cat >>confdefs.h <<_ACEOF
  8832. #define ssize_t int
  8833. _ACEOF
  8834. fi
  8835. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  8836. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  8837. if test "${ac_cv_header_time+set}" = set; then
  8838. $as_echo_n "(cached) " >&6
  8839. else
  8840. cat >conftest.$ac_ext <<_ACEOF
  8841. /* confdefs.h. */
  8842. _ACEOF
  8843. cat confdefs.h >>conftest.$ac_ext
  8844. cat >>conftest.$ac_ext <<_ACEOF
  8845. /* end confdefs.h. */
  8846. #include <sys/types.h>
  8847. #include <sys/time.h>
  8848. #include <time.h>
  8849. int
  8850. main ()
  8851. {
  8852. if ((struct tm *) 0)
  8853. return 0;
  8854. ;
  8855. return 0;
  8856. }
  8857. _ACEOF
  8858. rm -f conftest.$ac_objext
  8859. if { (ac_try="$ac_compile"
  8860. case "(($ac_try" in
  8861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8862. *) ac_try_echo=$ac_try;;
  8863. esac
  8864. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8865. $as_echo "$ac_try_echo") >&5
  8866. (eval "$ac_compile") 2>conftest.er1
  8867. ac_status=$?
  8868. grep -v '^ *+' conftest.er1 >conftest.err
  8869. rm -f conftest.er1
  8870. cat conftest.err >&5
  8871. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8872. (exit $ac_status); } && {
  8873. test -z "$ac_cxx_werror_flag" ||
  8874. test ! -s conftest.err
  8875. } && test -s conftest.$ac_objext; then
  8876. ac_cv_header_time=yes
  8877. else
  8878. $as_echo "$as_me: failed program was:" >&5
  8879. sed 's/^/| /' conftest.$ac_ext >&5
  8880. ac_cv_header_time=no
  8881. fi
  8882. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8883. fi
  8884. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  8885. $as_echo "$ac_cv_header_time" >&6; }
  8886. if test $ac_cv_header_time = yes; then
  8887. cat >>confdefs.h <<\_ACEOF
  8888. #define TIME_WITH_SYS_TIME 1
  8889. _ACEOF
  8890. fi
  8891. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8892. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  8893. if test "${ac_cv_struct_tm+set}" = set; then
  8894. $as_echo_n "(cached) " >&6
  8895. else
  8896. cat >conftest.$ac_ext <<_ACEOF
  8897. /* confdefs.h. */
  8898. _ACEOF
  8899. cat confdefs.h >>conftest.$ac_ext
  8900. cat >>conftest.$ac_ext <<_ACEOF
  8901. /* end confdefs.h. */
  8902. #include <sys/types.h>
  8903. #include <time.h>
  8904. int
  8905. main ()
  8906. {
  8907. struct tm tm;
  8908. int *p = &tm.tm_sec;
  8909. return !p;
  8910. ;
  8911. return 0;
  8912. }
  8913. _ACEOF
  8914. rm -f conftest.$ac_objext
  8915. if { (ac_try="$ac_compile"
  8916. case "(($ac_try" in
  8917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8918. *) ac_try_echo=$ac_try;;
  8919. esac
  8920. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8921. $as_echo "$ac_try_echo") >&5
  8922. (eval "$ac_compile") 2>conftest.er1
  8923. ac_status=$?
  8924. grep -v '^ *+' conftest.er1 >conftest.err
  8925. rm -f conftest.er1
  8926. cat conftest.err >&5
  8927. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8928. (exit $ac_status); } && {
  8929. test -z "$ac_cxx_werror_flag" ||
  8930. test ! -s conftest.err
  8931. } && test -s conftest.$ac_objext; then
  8932. ac_cv_struct_tm=time.h
  8933. else
  8934. $as_echo "$as_me: failed program was:" >&5
  8935. sed 's/^/| /' conftest.$ac_ext >&5
  8936. ac_cv_struct_tm=sys/time.h
  8937. fi
  8938. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8939. fi
  8940. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8941. $as_echo "$ac_cv_struct_tm" >&6; }
  8942. if test $ac_cv_struct_tm = sys/time.h; then
  8943. cat >>confdefs.h <<\_ACEOF
  8944. #define TM_IN_SYS_TIME 1
  8945. _ACEOF
  8946. fi
  8947. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  8948. $as_echo_n "checking for uint16_t... " >&6; }
  8949. if test "${ac_cv_c_uint16_t+set}" = set; then
  8950. $as_echo_n "(cached) " >&6
  8951. else
  8952. ac_cv_c_uint16_t=no
  8953. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  8954. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  8955. cat >conftest.$ac_ext <<_ACEOF
  8956. /* confdefs.h. */
  8957. _ACEOF
  8958. cat confdefs.h >>conftest.$ac_ext
  8959. cat >>conftest.$ac_ext <<_ACEOF
  8960. /* end confdefs.h. */
  8961. $ac_includes_default
  8962. int
  8963. main ()
  8964. {
  8965. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  8966. test_array [0] = 0
  8967. ;
  8968. return 0;
  8969. }
  8970. _ACEOF
  8971. rm -f conftest.$ac_objext
  8972. if { (ac_try="$ac_compile"
  8973. case "(($ac_try" in
  8974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8975. *) ac_try_echo=$ac_try;;
  8976. esac
  8977. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8978. $as_echo "$ac_try_echo") >&5
  8979. (eval "$ac_compile") 2>conftest.er1
  8980. ac_status=$?
  8981. grep -v '^ *+' conftest.er1 >conftest.err
  8982. rm -f conftest.er1
  8983. cat conftest.err >&5
  8984. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8985. (exit $ac_status); } && {
  8986. test -z "$ac_cxx_werror_flag" ||
  8987. test ! -s conftest.err
  8988. } && test -s conftest.$ac_objext; then
  8989. case $ac_type in
  8990. uint16_t) ac_cv_c_uint16_t=yes ;;
  8991. *) ac_cv_c_uint16_t=$ac_type ;;
  8992. esac
  8993. else
  8994. $as_echo "$as_me: failed program was:" >&5
  8995. sed 's/^/| /' conftest.$ac_ext >&5
  8996. fi
  8997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8998. test "$ac_cv_c_uint16_t" != no && break
  8999. done
  9000. fi
  9001. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  9002. $as_echo "$ac_cv_c_uint16_t" >&6; }
  9003. case $ac_cv_c_uint16_t in #(
  9004. no|yes) ;; #(
  9005. *)
  9006. cat >>confdefs.h <<_ACEOF
  9007. #define uint16_t $ac_cv_c_uint16_t
  9008. _ACEOF
  9009. ;;
  9010. esac
  9011. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  9012. $as_echo_n "checking for uint32_t... " >&6; }
  9013. if test "${ac_cv_c_uint32_t+set}" = set; then
  9014. $as_echo_n "(cached) " >&6
  9015. else
  9016. ac_cv_c_uint32_t=no
  9017. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  9018. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9019. cat >conftest.$ac_ext <<_ACEOF
  9020. /* confdefs.h. */
  9021. _ACEOF
  9022. cat confdefs.h >>conftest.$ac_ext
  9023. cat >>conftest.$ac_ext <<_ACEOF
  9024. /* end confdefs.h. */
  9025. $ac_includes_default
  9026. int
  9027. main ()
  9028. {
  9029. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  9030. test_array [0] = 0
  9031. ;
  9032. return 0;
  9033. }
  9034. _ACEOF
  9035. rm -f conftest.$ac_objext
  9036. if { (ac_try="$ac_compile"
  9037. case "(($ac_try" in
  9038. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9039. *) ac_try_echo=$ac_try;;
  9040. esac
  9041. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9042. $as_echo "$ac_try_echo") >&5
  9043. (eval "$ac_compile") 2>conftest.er1
  9044. ac_status=$?
  9045. grep -v '^ *+' conftest.er1 >conftest.err
  9046. rm -f conftest.er1
  9047. cat conftest.err >&5
  9048. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9049. (exit $ac_status); } && {
  9050. test -z "$ac_cxx_werror_flag" ||
  9051. test ! -s conftest.err
  9052. } && test -s conftest.$ac_objext; then
  9053. case $ac_type in
  9054. uint32_t) ac_cv_c_uint32_t=yes ;;
  9055. *) ac_cv_c_uint32_t=$ac_type ;;
  9056. esac
  9057. else
  9058. $as_echo "$as_me: failed program was:" >&5
  9059. sed 's/^/| /' conftest.$ac_ext >&5
  9060. fi
  9061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9062. test "$ac_cv_c_uint32_t" != no && break
  9063. done
  9064. fi
  9065. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  9066. $as_echo "$ac_cv_c_uint32_t" >&6; }
  9067. case $ac_cv_c_uint32_t in #(
  9068. no|yes) ;; #(
  9069. *)
  9070. cat >>confdefs.h <<\_ACEOF
  9071. #define _UINT32_T 1
  9072. _ACEOF
  9073. cat >>confdefs.h <<_ACEOF
  9074. #define uint32_t $ac_cv_c_uint32_t
  9075. _ACEOF
  9076. ;;
  9077. esac
  9078. { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
  9079. $as_echo_n "checking for uint64_t... " >&6; }
  9080. if test "${ac_cv_c_uint64_t+set}" = set; then
  9081. $as_echo_n "(cached) " >&6
  9082. else
  9083. ac_cv_c_uint64_t=no
  9084. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  9085. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9086. cat >conftest.$ac_ext <<_ACEOF
  9087. /* confdefs.h. */
  9088. _ACEOF
  9089. cat confdefs.h >>conftest.$ac_ext
  9090. cat >>conftest.$ac_ext <<_ACEOF
  9091. /* end confdefs.h. */
  9092. $ac_includes_default
  9093. int
  9094. main ()
  9095. {
  9096. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  9097. test_array [0] = 0
  9098. ;
  9099. return 0;
  9100. }
  9101. _ACEOF
  9102. rm -f conftest.$ac_objext
  9103. if { (ac_try="$ac_compile"
  9104. case "(($ac_try" in
  9105. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9106. *) ac_try_echo=$ac_try;;
  9107. esac
  9108. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9109. $as_echo "$ac_try_echo") >&5
  9110. (eval "$ac_compile") 2>conftest.er1
  9111. ac_status=$?
  9112. grep -v '^ *+' conftest.er1 >conftest.err
  9113. rm -f conftest.er1
  9114. cat conftest.err >&5
  9115. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9116. (exit $ac_status); } && {
  9117. test -z "$ac_cxx_werror_flag" ||
  9118. test ! -s conftest.err
  9119. } && test -s conftest.$ac_objext; then
  9120. case $ac_type in
  9121. uint64_t) ac_cv_c_uint64_t=yes ;;
  9122. *) ac_cv_c_uint64_t=$ac_type ;;
  9123. esac
  9124. else
  9125. $as_echo "$as_me: failed program was:" >&5
  9126. sed 's/^/| /' conftest.$ac_ext >&5
  9127. fi
  9128. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9129. test "$ac_cv_c_uint64_t" != no && break
  9130. done
  9131. fi
  9132. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  9133. $as_echo "$ac_cv_c_uint64_t" >&6; }
  9134. case $ac_cv_c_uint64_t in #(
  9135. no|yes) ;; #(
  9136. *)
  9137. cat >>confdefs.h <<\_ACEOF
  9138. #define _UINT64_T 1
  9139. _ACEOF
  9140. cat >>confdefs.h <<_ACEOF
  9141. #define uint64_t $ac_cv_c_uint64_t
  9142. _ACEOF
  9143. ;;
  9144. esac
  9145. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  9146. $as_echo_n "checking for uint8_t... " >&6; }
  9147. if test "${ac_cv_c_uint8_t+set}" = set; then
  9148. $as_echo_n "(cached) " >&6
  9149. else
  9150. ac_cv_c_uint8_t=no
  9151. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  9152. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9153. cat >conftest.$ac_ext <<_ACEOF
  9154. /* confdefs.h. */
  9155. _ACEOF
  9156. cat confdefs.h >>conftest.$ac_ext
  9157. cat >>conftest.$ac_ext <<_ACEOF
  9158. /* end confdefs.h. */
  9159. $ac_includes_default
  9160. int
  9161. main ()
  9162. {
  9163. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  9164. test_array [0] = 0
  9165. ;
  9166. return 0;
  9167. }
  9168. _ACEOF
  9169. rm -f conftest.$ac_objext
  9170. if { (ac_try="$ac_compile"
  9171. case "(($ac_try" in
  9172. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9173. *) ac_try_echo=$ac_try;;
  9174. esac
  9175. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9176. $as_echo "$ac_try_echo") >&5
  9177. (eval "$ac_compile") 2>conftest.er1
  9178. ac_status=$?
  9179. grep -v '^ *+' conftest.er1 >conftest.err
  9180. rm -f conftest.er1
  9181. cat conftest.err >&5
  9182. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9183. (exit $ac_status); } && {
  9184. test -z "$ac_cxx_werror_flag" ||
  9185. test ! -s conftest.err
  9186. } && test -s conftest.$ac_objext; then
  9187. case $ac_type in
  9188. uint8_t) ac_cv_c_uint8_t=yes ;;
  9189. *) ac_cv_c_uint8_t=$ac_type ;;
  9190. esac
  9191. else
  9192. $as_echo "$as_me: failed program was:" >&5
  9193. sed 's/^/| /' conftest.$ac_ext >&5
  9194. fi
  9195. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9196. test "$ac_cv_c_uint8_t" != no && break
  9197. done
  9198. fi
  9199. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  9200. $as_echo "$ac_cv_c_uint8_t" >&6; }
  9201. case $ac_cv_c_uint8_t in #(
  9202. no|yes) ;; #(
  9203. *)
  9204. cat >>confdefs.h <<\_ACEOF
  9205. #define _UINT8_T 1
  9206. _ACEOF
  9207. cat >>confdefs.h <<_ACEOF
  9208. #define uint8_t $ac_cv_c_uint8_t
  9209. _ACEOF
  9210. ;;
  9211. esac
  9212. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  9213. $as_echo_n "checking for working volatile... " >&6; }
  9214. if test "${ac_cv_c_volatile+set}" = set; then
  9215. $as_echo_n "(cached) " >&6
  9216. else
  9217. cat >conftest.$ac_ext <<_ACEOF
  9218. /* confdefs.h. */
  9219. _ACEOF
  9220. cat confdefs.h >>conftest.$ac_ext
  9221. cat >>conftest.$ac_ext <<_ACEOF
  9222. /* end confdefs.h. */
  9223. int
  9224. main ()
  9225. {
  9226. volatile int x;
  9227. int * volatile y = (int *) 0;
  9228. return !x && !y;
  9229. ;
  9230. return 0;
  9231. }
  9232. _ACEOF
  9233. rm -f conftest.$ac_objext
  9234. if { (ac_try="$ac_compile"
  9235. case "(($ac_try" in
  9236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9237. *) ac_try_echo=$ac_try;;
  9238. esac
  9239. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9240. $as_echo "$ac_try_echo") >&5
  9241. (eval "$ac_compile") 2>conftest.er1
  9242. ac_status=$?
  9243. grep -v '^ *+' conftest.er1 >conftest.err
  9244. rm -f conftest.er1
  9245. cat conftest.err >&5
  9246. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9247. (exit $ac_status); } && {
  9248. test -z "$ac_cxx_werror_flag" ||
  9249. test ! -s conftest.err
  9250. } && test -s conftest.$ac_objext; then
  9251. ac_cv_c_volatile=yes
  9252. else
  9253. $as_echo "$as_me: failed program was:" >&5
  9254. sed 's/^/| /' conftest.$ac_ext >&5
  9255. ac_cv_c_volatile=no
  9256. fi
  9257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9258. fi
  9259. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  9260. $as_echo "$ac_cv_c_volatile" >&6; }
  9261. if test $ac_cv_c_volatile = no; then
  9262. cat >>confdefs.h <<\_ACEOF
  9263. #define volatile /**/
  9264. _ACEOF
  9265. fi
  9266. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  9267. $as_echo_n "checking for ptrdiff_t... " >&6; }
  9268. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  9269. $as_echo_n "(cached) " >&6
  9270. else
  9271. ac_cv_type_ptrdiff_t=no
  9272. cat >conftest.$ac_ext <<_ACEOF
  9273. /* confdefs.h. */
  9274. _ACEOF
  9275. cat confdefs.h >>conftest.$ac_ext
  9276. cat >>conftest.$ac_ext <<_ACEOF
  9277. /* end confdefs.h. */
  9278. $ac_includes_default
  9279. int
  9280. main ()
  9281. {
  9282. if (sizeof (ptrdiff_t))
  9283. return 0;
  9284. ;
  9285. return 0;
  9286. }
  9287. _ACEOF
  9288. rm -f conftest.$ac_objext
  9289. if { (ac_try="$ac_compile"
  9290. case "(($ac_try" in
  9291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9292. *) ac_try_echo=$ac_try;;
  9293. esac
  9294. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9295. $as_echo "$ac_try_echo") >&5
  9296. (eval "$ac_compile") 2>conftest.er1
  9297. ac_status=$?
  9298. grep -v '^ *+' conftest.er1 >conftest.err
  9299. rm -f conftest.er1
  9300. cat conftest.err >&5
  9301. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9302. (exit $ac_status); } && {
  9303. test -z "$ac_cxx_werror_flag" ||
  9304. test ! -s conftest.err
  9305. } && test -s conftest.$ac_objext; then
  9306. cat >conftest.$ac_ext <<_ACEOF
  9307. /* confdefs.h. */
  9308. _ACEOF
  9309. cat confdefs.h >>conftest.$ac_ext
  9310. cat >>conftest.$ac_ext <<_ACEOF
  9311. /* end confdefs.h. */
  9312. $ac_includes_default
  9313. int
  9314. main ()
  9315. {
  9316. if (sizeof ((ptrdiff_t)))
  9317. return 0;
  9318. ;
  9319. return 0;
  9320. }
  9321. _ACEOF
  9322. rm -f conftest.$ac_objext
  9323. if { (ac_try="$ac_compile"
  9324. case "(($ac_try" in
  9325. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9326. *) ac_try_echo=$ac_try;;
  9327. esac
  9328. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9329. $as_echo "$ac_try_echo") >&5
  9330. (eval "$ac_compile") 2>conftest.er1
  9331. ac_status=$?
  9332. grep -v '^ *+' conftest.er1 >conftest.err
  9333. rm -f conftest.er1
  9334. cat conftest.err >&5
  9335. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9336. (exit $ac_status); } && {
  9337. test -z "$ac_cxx_werror_flag" ||
  9338. test ! -s conftest.err
  9339. } && test -s conftest.$ac_objext; then
  9340. :
  9341. else
  9342. $as_echo "$as_me: failed program was:" >&5
  9343. sed 's/^/| /' conftest.$ac_ext >&5
  9344. ac_cv_type_ptrdiff_t=yes
  9345. fi
  9346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9347. else
  9348. $as_echo "$as_me: failed program was:" >&5
  9349. sed 's/^/| /' conftest.$ac_ext >&5
  9350. fi
  9351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9352. fi
  9353. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  9354. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  9355. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  9356. cat >>confdefs.h <<_ACEOF
  9357. #define HAVE_PTRDIFF_T 1
  9358. _ACEOF
  9359. fi
  9360. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  9361. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  9362. if test "${ac_cv_c_bigendian+set}" = set; then
  9363. $as_echo_n "(cached) " >&6
  9364. else
  9365. ac_cv_c_bigendian=unknown
  9366. # See if we're dealing with a universal compiler.
  9367. cat >conftest.$ac_ext <<_ACEOF
  9368. /* confdefs.h. */
  9369. _ACEOF
  9370. cat confdefs.h >>conftest.$ac_ext
  9371. cat >>conftest.$ac_ext <<_ACEOF
  9372. /* end confdefs.h. */
  9373. #ifndef __APPLE_CC__
  9374. not a universal capable compiler
  9375. #endif
  9376. typedef int dummy;
  9377. _ACEOF
  9378. rm -f conftest.$ac_objext
  9379. if { (ac_try="$ac_compile"
  9380. case "(($ac_try" in
  9381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9382. *) ac_try_echo=$ac_try;;
  9383. esac
  9384. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9385. $as_echo "$ac_try_echo") >&5
  9386. (eval "$ac_compile") 2>conftest.er1
  9387. ac_status=$?
  9388. grep -v '^ *+' conftest.er1 >conftest.err
  9389. rm -f conftest.er1
  9390. cat conftest.err >&5
  9391. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9392. (exit $ac_status); } && {
  9393. test -z "$ac_cxx_werror_flag" ||
  9394. test ! -s conftest.err
  9395. } && test -s conftest.$ac_objext; then
  9396. # Check for potential -arch flags. It is not universal unless
  9397. # there are some -arch flags. Note that *ppc* also matches
  9398. # ppc64. This check is also rather less than ideal.
  9399. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  9400. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  9401. esac
  9402. else
  9403. $as_echo "$as_me: failed program was:" >&5
  9404. sed 's/^/| /' conftest.$ac_ext >&5
  9405. fi
  9406. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9407. if test $ac_cv_c_bigendian = unknown; then
  9408. # See if sys/param.h defines the BYTE_ORDER macro.
  9409. cat >conftest.$ac_ext <<_ACEOF
  9410. /* confdefs.h. */
  9411. _ACEOF
  9412. cat confdefs.h >>conftest.$ac_ext
  9413. cat >>conftest.$ac_ext <<_ACEOF
  9414. /* end confdefs.h. */
  9415. #include <sys/types.h>
  9416. #include <sys/param.h>
  9417. int
  9418. main ()
  9419. {
  9420. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  9421. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  9422. && LITTLE_ENDIAN)
  9423. bogus endian macros
  9424. #endif
  9425. ;
  9426. return 0;
  9427. }
  9428. _ACEOF
  9429. rm -f conftest.$ac_objext
  9430. if { (ac_try="$ac_compile"
  9431. case "(($ac_try" in
  9432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9433. *) ac_try_echo=$ac_try;;
  9434. esac
  9435. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9436. $as_echo "$ac_try_echo") >&5
  9437. (eval "$ac_compile") 2>conftest.er1
  9438. ac_status=$?
  9439. grep -v '^ *+' conftest.er1 >conftest.err
  9440. rm -f conftest.er1
  9441. cat conftest.err >&5
  9442. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9443. (exit $ac_status); } && {
  9444. test -z "$ac_cxx_werror_flag" ||
  9445. test ! -s conftest.err
  9446. } && test -s conftest.$ac_objext; then
  9447. # It does; now see whether it defined to BIG_ENDIAN or not.
  9448. cat >conftest.$ac_ext <<_ACEOF
  9449. /* confdefs.h. */
  9450. _ACEOF
  9451. cat confdefs.h >>conftest.$ac_ext
  9452. cat >>conftest.$ac_ext <<_ACEOF
  9453. /* end confdefs.h. */
  9454. #include <sys/types.h>
  9455. #include <sys/param.h>
  9456. int
  9457. main ()
  9458. {
  9459. #if BYTE_ORDER != BIG_ENDIAN
  9460. not big endian
  9461. #endif
  9462. ;
  9463. return 0;
  9464. }
  9465. _ACEOF
  9466. rm -f conftest.$ac_objext
  9467. if { (ac_try="$ac_compile"
  9468. case "(($ac_try" in
  9469. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9470. *) ac_try_echo=$ac_try;;
  9471. esac
  9472. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9473. $as_echo "$ac_try_echo") >&5
  9474. (eval "$ac_compile") 2>conftest.er1
  9475. ac_status=$?
  9476. grep -v '^ *+' conftest.er1 >conftest.err
  9477. rm -f conftest.er1
  9478. cat conftest.err >&5
  9479. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9480. (exit $ac_status); } && {
  9481. test -z "$ac_cxx_werror_flag" ||
  9482. test ! -s conftest.err
  9483. } && test -s conftest.$ac_objext; then
  9484. ac_cv_c_bigendian=yes
  9485. else
  9486. $as_echo "$as_me: failed program was:" >&5
  9487. sed 's/^/| /' conftest.$ac_ext >&5
  9488. ac_cv_c_bigendian=no
  9489. fi
  9490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9491. else
  9492. $as_echo "$as_me: failed program was:" >&5
  9493. sed 's/^/| /' conftest.$ac_ext >&5
  9494. fi
  9495. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9496. fi
  9497. if test $ac_cv_c_bigendian = unknown; then
  9498. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  9499. cat >conftest.$ac_ext <<_ACEOF
  9500. /* confdefs.h. */
  9501. _ACEOF
  9502. cat confdefs.h >>conftest.$ac_ext
  9503. cat >>conftest.$ac_ext <<_ACEOF
  9504. /* end confdefs.h. */
  9505. #include <limits.h>
  9506. int
  9507. main ()
  9508. {
  9509. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  9510. bogus endian macros
  9511. #endif
  9512. ;
  9513. return 0;
  9514. }
  9515. _ACEOF
  9516. rm -f conftest.$ac_objext
  9517. if { (ac_try="$ac_compile"
  9518. case "(($ac_try" in
  9519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9520. *) ac_try_echo=$ac_try;;
  9521. esac
  9522. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9523. $as_echo "$ac_try_echo") >&5
  9524. (eval "$ac_compile") 2>conftest.er1
  9525. ac_status=$?
  9526. grep -v '^ *+' conftest.er1 >conftest.err
  9527. rm -f conftest.er1
  9528. cat conftest.err >&5
  9529. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9530. (exit $ac_status); } && {
  9531. test -z "$ac_cxx_werror_flag" ||
  9532. test ! -s conftest.err
  9533. } && test -s conftest.$ac_objext; then
  9534. # It does; now see whether it defined to _BIG_ENDIAN or not.
  9535. cat >conftest.$ac_ext <<_ACEOF
  9536. /* confdefs.h. */
  9537. _ACEOF
  9538. cat confdefs.h >>conftest.$ac_ext
  9539. cat >>conftest.$ac_ext <<_ACEOF
  9540. /* end confdefs.h. */
  9541. #include <limits.h>
  9542. int
  9543. main ()
  9544. {
  9545. #ifndef _BIG_ENDIAN
  9546. not big endian
  9547. #endif
  9548. ;
  9549. return 0;
  9550. }
  9551. _ACEOF
  9552. rm -f conftest.$ac_objext
  9553. if { (ac_try="$ac_compile"
  9554. case "(($ac_try" in
  9555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9556. *) ac_try_echo=$ac_try;;
  9557. esac
  9558. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9559. $as_echo "$ac_try_echo") >&5
  9560. (eval "$ac_compile") 2>conftest.er1
  9561. ac_status=$?
  9562. grep -v '^ *+' conftest.er1 >conftest.err
  9563. rm -f conftest.er1
  9564. cat conftest.err >&5
  9565. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9566. (exit $ac_status); } && {
  9567. test -z "$ac_cxx_werror_flag" ||
  9568. test ! -s conftest.err
  9569. } && test -s conftest.$ac_objext; then
  9570. ac_cv_c_bigendian=yes
  9571. else
  9572. $as_echo "$as_me: failed program was:" >&5
  9573. sed 's/^/| /' conftest.$ac_ext >&5
  9574. ac_cv_c_bigendian=no
  9575. fi
  9576. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9577. else
  9578. $as_echo "$as_me: failed program was:" >&5
  9579. sed 's/^/| /' conftest.$ac_ext >&5
  9580. fi
  9581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9582. fi
  9583. if test $ac_cv_c_bigendian = unknown; then
  9584. # Compile a test program.
  9585. if test "$cross_compiling" = yes; then
  9586. # Try to guess by grepping values from an object file.
  9587. cat >conftest.$ac_ext <<_ACEOF
  9588. /* confdefs.h. */
  9589. _ACEOF
  9590. cat confdefs.h >>conftest.$ac_ext
  9591. cat >>conftest.$ac_ext <<_ACEOF
  9592. /* end confdefs.h. */
  9593. short int ascii_mm[] =
  9594. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  9595. short int ascii_ii[] =
  9596. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  9597. int use_ascii (int i) {
  9598. return ascii_mm[i] + ascii_ii[i];
  9599. }
  9600. short int ebcdic_ii[] =
  9601. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  9602. short int ebcdic_mm[] =
  9603. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  9604. int use_ebcdic (int i) {
  9605. return ebcdic_mm[i] + ebcdic_ii[i];
  9606. }
  9607. extern int foo;
  9608. int
  9609. main ()
  9610. {
  9611. return use_ascii (foo) == use_ebcdic (foo);
  9612. ;
  9613. return 0;
  9614. }
  9615. _ACEOF
  9616. rm -f conftest.$ac_objext
  9617. if { (ac_try="$ac_compile"
  9618. case "(($ac_try" in
  9619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9620. *) ac_try_echo=$ac_try;;
  9621. esac
  9622. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9623. $as_echo "$ac_try_echo") >&5
  9624. (eval "$ac_compile") 2>conftest.er1
  9625. ac_status=$?
  9626. grep -v '^ *+' conftest.er1 >conftest.err
  9627. rm -f conftest.er1
  9628. cat conftest.err >&5
  9629. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9630. (exit $ac_status); } && {
  9631. test -z "$ac_cxx_werror_flag" ||
  9632. test ! -s conftest.err
  9633. } && test -s conftest.$ac_objext; then
  9634. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  9635. ac_cv_c_bigendian=yes
  9636. fi
  9637. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  9638. if test "$ac_cv_c_bigendian" = unknown; then
  9639. ac_cv_c_bigendian=no
  9640. else
  9641. # finding both strings is unlikely to happen, but who knows?
  9642. ac_cv_c_bigendian=unknown
  9643. fi
  9644. fi
  9645. else
  9646. $as_echo "$as_me: failed program was:" >&5
  9647. sed 's/^/| /' conftest.$ac_ext >&5
  9648. fi
  9649. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9650. else
  9651. cat >conftest.$ac_ext <<_ACEOF
  9652. /* confdefs.h. */
  9653. _ACEOF
  9654. cat confdefs.h >>conftest.$ac_ext
  9655. cat >>conftest.$ac_ext <<_ACEOF
  9656. /* end confdefs.h. */
  9657. $ac_includes_default
  9658. int
  9659. main ()
  9660. {
  9661. /* Are we little or big endian? From Harbison&Steele. */
  9662. union
  9663. {
  9664. long int l;
  9665. char c[sizeof (long int)];
  9666. } u;
  9667. u.l = 1;
  9668. return u.c[sizeof (long int) - 1] == 1;
  9669. ;
  9670. return 0;
  9671. }
  9672. _ACEOF
  9673. rm -f conftest$ac_exeext
  9674. if { (ac_try="$ac_link"
  9675. case "(($ac_try" in
  9676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9677. *) ac_try_echo=$ac_try;;
  9678. esac
  9679. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9680. $as_echo "$ac_try_echo") >&5
  9681. (eval "$ac_link") 2>&5
  9682. ac_status=$?
  9683. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9684. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9685. { (case "(($ac_try" in
  9686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9687. *) ac_try_echo=$ac_try;;
  9688. esac
  9689. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9690. $as_echo "$ac_try_echo") >&5
  9691. (eval "$ac_try") 2>&5
  9692. ac_status=$?
  9693. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9694. (exit $ac_status); }; }; then
  9695. ac_cv_c_bigendian=no
  9696. else
  9697. $as_echo "$as_me: program exited with status $ac_status" >&5
  9698. $as_echo "$as_me: failed program was:" >&5
  9699. sed 's/^/| /' conftest.$ac_ext >&5
  9700. ( exit $ac_status )
  9701. ac_cv_c_bigendian=yes
  9702. fi
  9703. rm -rf conftest.dSYM
  9704. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9705. fi
  9706. fi
  9707. fi
  9708. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  9709. $as_echo "$ac_cv_c_bigendian" >&6; }
  9710. case $ac_cv_c_bigendian in #(
  9711. yes)
  9712. cat >>confdefs.h <<\_ACEOF
  9713. #define WORDS_BIGENDIAN 1
  9714. _ACEOF
  9715. ;; #(
  9716. no)
  9717. ;; #(
  9718. universal)
  9719. cat >>confdefs.h <<\_ACEOF
  9720. #define AC_APPLE_UNIVERSAL_BUILD 1
  9721. _ACEOF
  9722. ;; #(
  9723. *)
  9724. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  9725. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  9726. $as_echo "$as_me: error: unknown endianness
  9727. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  9728. { (exit 1); exit 1; }; } ;;
  9729. esac
  9730. # Check whether --enable-largefile was given.
  9731. if test "${enable_largefile+set}" = set; then
  9732. enableval=$enable_largefile;
  9733. fi
  9734. if test "$enable_largefile" != no; then
  9735. { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  9736. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  9737. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  9738. $as_echo_n "(cached) " >&6
  9739. else
  9740. ac_cv_sys_largefile_CC=no
  9741. if test "$GCC" != yes; then
  9742. ac_save_CC=$CC
  9743. while :; do
  9744. # IRIX 6.2 and later do not support large files by default,
  9745. # so use the C compiler's -n32 option if that helps.
  9746. cat >conftest.$ac_ext <<_ACEOF
  9747. /* confdefs.h. */
  9748. _ACEOF
  9749. cat confdefs.h >>conftest.$ac_ext
  9750. cat >>conftest.$ac_ext <<_ACEOF
  9751. /* end confdefs.h. */
  9752. #include <sys/types.h>
  9753. /* Check that off_t can represent 2**63 - 1 correctly.
  9754. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9755. since some C++ compilers masquerading as C compilers
  9756. incorrectly reject 9223372036854775807. */
  9757. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9758. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9759. && LARGE_OFF_T % 2147483647 == 1)
  9760. ? 1 : -1];
  9761. int
  9762. main ()
  9763. {
  9764. ;
  9765. return 0;
  9766. }
  9767. _ACEOF
  9768. rm -f conftest.$ac_objext
  9769. if { (ac_try="$ac_compile"
  9770. case "(($ac_try" in
  9771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9772. *) ac_try_echo=$ac_try;;
  9773. esac
  9774. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9775. $as_echo "$ac_try_echo") >&5
  9776. (eval "$ac_compile") 2>conftest.er1
  9777. ac_status=$?
  9778. grep -v '^ *+' conftest.er1 >conftest.err
  9779. rm -f conftest.er1
  9780. cat conftest.err >&5
  9781. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9782. (exit $ac_status); } && {
  9783. test -z "$ac_cxx_werror_flag" ||
  9784. test ! -s conftest.err
  9785. } && test -s conftest.$ac_objext; then
  9786. break
  9787. else
  9788. $as_echo "$as_me: failed program was:" >&5
  9789. sed 's/^/| /' conftest.$ac_ext >&5
  9790. fi
  9791. rm -f core conftest.err conftest.$ac_objext
  9792. CC="$CC -n32"
  9793. rm -f conftest.$ac_objext
  9794. if { (ac_try="$ac_compile"
  9795. case "(($ac_try" in
  9796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9797. *) ac_try_echo=$ac_try;;
  9798. esac
  9799. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9800. $as_echo "$ac_try_echo") >&5
  9801. (eval "$ac_compile") 2>conftest.er1
  9802. ac_status=$?
  9803. grep -v '^ *+' conftest.er1 >conftest.err
  9804. rm -f conftest.er1
  9805. cat conftest.err >&5
  9806. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9807. (exit $ac_status); } && {
  9808. test -z "$ac_cxx_werror_flag" ||
  9809. test ! -s conftest.err
  9810. } && test -s conftest.$ac_objext; then
  9811. ac_cv_sys_largefile_CC=' -n32'; break
  9812. else
  9813. $as_echo "$as_me: failed program was:" >&5
  9814. sed 's/^/| /' conftest.$ac_ext >&5
  9815. fi
  9816. rm -f core conftest.err conftest.$ac_objext
  9817. break
  9818. done
  9819. CC=$ac_save_CC
  9820. rm -f conftest.$ac_ext
  9821. fi
  9822. fi
  9823. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  9824. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  9825. if test "$ac_cv_sys_largefile_CC" != no; then
  9826. CC=$CC$ac_cv_sys_largefile_CC
  9827. fi
  9828. { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  9829. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  9830. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  9831. $as_echo_n "(cached) " >&6
  9832. else
  9833. while :; do
  9834. cat >conftest.$ac_ext <<_ACEOF
  9835. /* confdefs.h. */
  9836. _ACEOF
  9837. cat confdefs.h >>conftest.$ac_ext
  9838. cat >>conftest.$ac_ext <<_ACEOF
  9839. /* end confdefs.h. */
  9840. #include <sys/types.h>
  9841. /* Check that off_t can represent 2**63 - 1 correctly.
  9842. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9843. since some C++ compilers masquerading as C compilers
  9844. incorrectly reject 9223372036854775807. */
  9845. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9846. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9847. && LARGE_OFF_T % 2147483647 == 1)
  9848. ? 1 : -1];
  9849. int
  9850. main ()
  9851. {
  9852. ;
  9853. return 0;
  9854. }
  9855. _ACEOF
  9856. rm -f conftest.$ac_objext
  9857. if { (ac_try="$ac_compile"
  9858. case "(($ac_try" in
  9859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9860. *) ac_try_echo=$ac_try;;
  9861. esac
  9862. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9863. $as_echo "$ac_try_echo") >&5
  9864. (eval "$ac_compile") 2>conftest.er1
  9865. ac_status=$?
  9866. grep -v '^ *+' conftest.er1 >conftest.err
  9867. rm -f conftest.er1
  9868. cat conftest.err >&5
  9869. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9870. (exit $ac_status); } && {
  9871. test -z "$ac_cxx_werror_flag" ||
  9872. test ! -s conftest.err
  9873. } && test -s conftest.$ac_objext; then
  9874. ac_cv_sys_file_offset_bits=no; break
  9875. else
  9876. $as_echo "$as_me: failed program was:" >&5
  9877. sed 's/^/| /' conftest.$ac_ext >&5
  9878. fi
  9879. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9880. cat >conftest.$ac_ext <<_ACEOF
  9881. /* confdefs.h. */
  9882. _ACEOF
  9883. cat confdefs.h >>conftest.$ac_ext
  9884. cat >>conftest.$ac_ext <<_ACEOF
  9885. /* end confdefs.h. */
  9886. #define _FILE_OFFSET_BITS 64
  9887. #include <sys/types.h>
  9888. /* Check that off_t can represent 2**63 - 1 correctly.
  9889. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9890. since some C++ compilers masquerading as C compilers
  9891. incorrectly reject 9223372036854775807. */
  9892. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9893. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9894. && LARGE_OFF_T % 2147483647 == 1)
  9895. ? 1 : -1];
  9896. int
  9897. main ()
  9898. {
  9899. ;
  9900. return 0;
  9901. }
  9902. _ACEOF
  9903. rm -f conftest.$ac_objext
  9904. if { (ac_try="$ac_compile"
  9905. case "(($ac_try" in
  9906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9907. *) ac_try_echo=$ac_try;;
  9908. esac
  9909. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9910. $as_echo "$ac_try_echo") >&5
  9911. (eval "$ac_compile") 2>conftest.er1
  9912. ac_status=$?
  9913. grep -v '^ *+' conftest.er1 >conftest.err
  9914. rm -f conftest.er1
  9915. cat conftest.err >&5
  9916. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9917. (exit $ac_status); } && {
  9918. test -z "$ac_cxx_werror_flag" ||
  9919. test ! -s conftest.err
  9920. } && test -s conftest.$ac_objext; then
  9921. ac_cv_sys_file_offset_bits=64; break
  9922. else
  9923. $as_echo "$as_me: failed program was:" >&5
  9924. sed 's/^/| /' conftest.$ac_ext >&5
  9925. fi
  9926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9927. ac_cv_sys_file_offset_bits=unknown
  9928. break
  9929. done
  9930. fi
  9931. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  9932. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  9933. case $ac_cv_sys_file_offset_bits in #(
  9934. no | unknown) ;;
  9935. *)
  9936. cat >>confdefs.h <<_ACEOF
  9937. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  9938. _ACEOF
  9939. ;;
  9940. esac
  9941. rm -rf conftest*
  9942. if test $ac_cv_sys_file_offset_bits = unknown; then
  9943. { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  9944. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  9945. if test "${ac_cv_sys_large_files+set}" = set; then
  9946. $as_echo_n "(cached) " >&6
  9947. else
  9948. while :; do
  9949. cat >conftest.$ac_ext <<_ACEOF
  9950. /* confdefs.h. */
  9951. _ACEOF
  9952. cat confdefs.h >>conftest.$ac_ext
  9953. cat >>conftest.$ac_ext <<_ACEOF
  9954. /* end confdefs.h. */
  9955. #include <sys/types.h>
  9956. /* Check that off_t can represent 2**63 - 1 correctly.
  9957. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  9958. since some C++ compilers masquerading as C compilers
  9959. incorrectly reject 9223372036854775807. */
  9960. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  9961. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  9962. && LARGE_OFF_T % 2147483647 == 1)
  9963. ? 1 : -1];
  9964. int
  9965. main ()
  9966. {
  9967. ;
  9968. return 0;
  9969. }
  9970. _ACEOF
  9971. rm -f conftest.$ac_objext
  9972. if { (ac_try="$ac_compile"
  9973. case "(($ac_try" in
  9974. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9975. *) ac_try_echo=$ac_try;;
  9976. esac
  9977. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9978. $as_echo "$ac_try_echo") >&5
  9979. (eval "$ac_compile") 2>conftest.er1
  9980. ac_status=$?
  9981. grep -v '^ *+' conftest.er1 >conftest.err
  9982. rm -f conftest.er1
  9983. cat conftest.err >&5
  9984. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9985. (exit $ac_status); } && {
  9986. test -z "$ac_cxx_werror_flag" ||
  9987. test ! -s conftest.err
  9988. } && test -s conftest.$ac_objext; then
  9989. ac_cv_sys_large_files=no; break
  9990. else
  9991. $as_echo "$as_me: failed program was:" >&5
  9992. sed 's/^/| /' conftest.$ac_ext >&5
  9993. fi
  9994. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9995. cat >conftest.$ac_ext <<_ACEOF
  9996. /* confdefs.h. */
  9997. _ACEOF
  9998. cat confdefs.h >>conftest.$ac_ext
  9999. cat >>conftest.$ac_ext <<_ACEOF
  10000. /* end confdefs.h. */
  10001. #define _LARGE_FILES 1
  10002. #include <sys/types.h>
  10003. /* Check that off_t can represent 2**63 - 1 correctly.
  10004. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10005. since some C++ compilers masquerading as C compilers
  10006. incorrectly reject 9223372036854775807. */
  10007. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10008. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10009. && LARGE_OFF_T % 2147483647 == 1)
  10010. ? 1 : -1];
  10011. int
  10012. main ()
  10013. {
  10014. ;
  10015. return 0;
  10016. }
  10017. _ACEOF
  10018. rm -f conftest.$ac_objext
  10019. if { (ac_try="$ac_compile"
  10020. case "(($ac_try" in
  10021. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10022. *) ac_try_echo=$ac_try;;
  10023. esac
  10024. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10025. $as_echo "$ac_try_echo") >&5
  10026. (eval "$ac_compile") 2>conftest.er1
  10027. ac_status=$?
  10028. grep -v '^ *+' conftest.er1 >conftest.err
  10029. rm -f conftest.er1
  10030. cat conftest.err >&5
  10031. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10032. (exit $ac_status); } && {
  10033. test -z "$ac_cxx_werror_flag" ||
  10034. test ! -s conftest.err
  10035. } && test -s conftest.$ac_objext; then
  10036. ac_cv_sys_large_files=1; break
  10037. else
  10038. $as_echo "$as_me: failed program was:" >&5
  10039. sed 's/^/| /' conftest.$ac_ext >&5
  10040. fi
  10041. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10042. ac_cv_sys_large_files=unknown
  10043. break
  10044. done
  10045. fi
  10046. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  10047. $as_echo "$ac_cv_sys_large_files" >&6; }
  10048. case $ac_cv_sys_large_files in #(
  10049. no | unknown) ;;
  10050. *)
  10051. cat >>confdefs.h <<_ACEOF
  10052. #define _LARGE_FILES $ac_cv_sys_large_files
  10053. _ACEOF
  10054. ;;
  10055. esac
  10056. rm -rf conftest*
  10057. fi
  10058. fi
  10059. # Checks for library functions.
  10060. { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  10061. $as_echo_n "checking whether NLS is requested... " >&6; }
  10062. # Check whether --enable-nls was given.
  10063. if test "${enable_nls+set}" = set; then
  10064. enableval=$enable_nls; USE_NLS=$enableval
  10065. else
  10066. USE_NLS=yes
  10067. fi
  10068. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  10069. $as_echo "$USE_NLS" >&6; }
  10070. GETTEXT_MACRO_VERSION=0.17
  10071. # Prepare PATH_SEPARATOR.
  10072. # The user is always right.
  10073. if test "${PATH_SEPARATOR+set}" != set; then
  10074. echo "#! /bin/sh" >conf$$.sh
  10075. echo "exit 0" >>conf$$.sh
  10076. chmod +x conf$$.sh
  10077. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10078. PATH_SEPARATOR=';'
  10079. else
  10080. PATH_SEPARATOR=:
  10081. fi
  10082. rm -f conf$$.sh
  10083. fi
  10084. # Find out how to test for executable files. Don't use a zero-byte file,
  10085. # as systems may use methods other than mode bits to determine executability.
  10086. cat >conf$$.file <<_ASEOF
  10087. #! /bin/sh
  10088. exit 0
  10089. _ASEOF
  10090. chmod +x conf$$.file
  10091. if test -x conf$$.file >/dev/null 2>&1; then
  10092. ac_executable_p="test -x"
  10093. else
  10094. ac_executable_p="test -f"
  10095. fi
  10096. rm -f conf$$.file
  10097. # Extract the first word of "msgfmt", so it can be a program name with args.
  10098. set dummy msgfmt; ac_word=$2
  10099. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10100. $as_echo_n "checking for $ac_word... " >&6; }
  10101. if test "${ac_cv_path_MSGFMT+set}" = set; then
  10102. $as_echo_n "(cached) " >&6
  10103. else
  10104. case "$MSGFMT" in
  10105. [\\/]* | ?:[\\/]*)
  10106. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  10107. ;;
  10108. *)
  10109. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10110. for ac_dir in $PATH; do
  10111. IFS="$ac_save_IFS"
  10112. test -z "$ac_dir" && ac_dir=.
  10113. for ac_exec_ext in '' $ac_executable_extensions; do
  10114. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10115. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10116. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  10117. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10118. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  10119. break 2
  10120. fi
  10121. fi
  10122. done
  10123. done
  10124. IFS="$ac_save_IFS"
  10125. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  10126. ;;
  10127. esac
  10128. fi
  10129. MSGFMT="$ac_cv_path_MSGFMT"
  10130. if test "$MSGFMT" != ":"; then
  10131. { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
  10132. $as_echo "$MSGFMT" >&6; }
  10133. else
  10134. { $as_echo "$as_me:$LINENO: result: no" >&5
  10135. $as_echo "no" >&6; }
  10136. fi
  10137. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  10138. set dummy gmsgfmt; ac_word=$2
  10139. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10140. $as_echo_n "checking for $ac_word... " >&6; }
  10141. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  10142. $as_echo_n "(cached) " >&6
  10143. else
  10144. case $GMSGFMT in
  10145. [\\/]* | ?:[\\/]*)
  10146. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  10147. ;;
  10148. *)
  10149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10150. for as_dir in $PATH
  10151. do
  10152. IFS=$as_save_IFS
  10153. test -z "$as_dir" && as_dir=.
  10154. for ac_exec_ext in '' $ac_executable_extensions; do
  10155. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10156. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  10157. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10158. break 2
  10159. fi
  10160. done
  10161. done
  10162. IFS=$as_save_IFS
  10163. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  10164. ;;
  10165. esac
  10166. fi
  10167. GMSGFMT=$ac_cv_path_GMSGFMT
  10168. if test -n "$GMSGFMT"; then
  10169. { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  10170. $as_echo "$GMSGFMT" >&6; }
  10171. else
  10172. { $as_echo "$as_me:$LINENO: result: no" >&5
  10173. $as_echo "no" >&6; }
  10174. fi
  10175. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10176. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  10177. *) MSGFMT_015=$MSGFMT ;;
  10178. esac
  10179. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10180. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  10181. *) GMSGFMT_015=$GMSGFMT ;;
  10182. esac
  10183. # Prepare PATH_SEPARATOR.
  10184. # The user is always right.
  10185. if test "${PATH_SEPARATOR+set}" != set; then
  10186. echo "#! /bin/sh" >conf$$.sh
  10187. echo "exit 0" >>conf$$.sh
  10188. chmod +x conf$$.sh
  10189. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10190. PATH_SEPARATOR=';'
  10191. else
  10192. PATH_SEPARATOR=:
  10193. fi
  10194. rm -f conf$$.sh
  10195. fi
  10196. # Find out how to test for executable files. Don't use a zero-byte file,
  10197. # as systems may use methods other than mode bits to determine executability.
  10198. cat >conf$$.file <<_ASEOF
  10199. #! /bin/sh
  10200. exit 0
  10201. _ASEOF
  10202. chmod +x conf$$.file
  10203. if test -x conf$$.file >/dev/null 2>&1; then
  10204. ac_executable_p="test -x"
  10205. else
  10206. ac_executable_p="test -f"
  10207. fi
  10208. rm -f conf$$.file
  10209. # Extract the first word of "xgettext", so it can be a program name with args.
  10210. set dummy xgettext; ac_word=$2
  10211. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10212. $as_echo_n "checking for $ac_word... " >&6; }
  10213. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  10214. $as_echo_n "(cached) " >&6
  10215. else
  10216. case "$XGETTEXT" in
  10217. [\\/]* | ?:[\\/]*)
  10218. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  10219. ;;
  10220. *)
  10221. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10222. for ac_dir in $PATH; do
  10223. IFS="$ac_save_IFS"
  10224. test -z "$ac_dir" && ac_dir=.
  10225. for ac_exec_ext in '' $ac_executable_extensions; do
  10226. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10227. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10228. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  10229. (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
  10230. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  10231. break 2
  10232. fi
  10233. fi
  10234. done
  10235. done
  10236. IFS="$ac_save_IFS"
  10237. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  10238. ;;
  10239. esac
  10240. fi
  10241. XGETTEXT="$ac_cv_path_XGETTEXT"
  10242. if test "$XGETTEXT" != ":"; then
  10243. { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  10244. $as_echo "$XGETTEXT" >&6; }
  10245. else
  10246. { $as_echo "$as_me:$LINENO: result: no" >&5
  10247. $as_echo "no" >&6; }
  10248. fi
  10249. rm -f messages.po
  10250. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10251. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  10252. *) XGETTEXT_015=$XGETTEXT ;;
  10253. esac
  10254. # Prepare PATH_SEPARATOR.
  10255. # The user is always right.
  10256. if test "${PATH_SEPARATOR+set}" != set; then
  10257. echo "#! /bin/sh" >conf$$.sh
  10258. echo "exit 0" >>conf$$.sh
  10259. chmod +x conf$$.sh
  10260. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10261. PATH_SEPARATOR=';'
  10262. else
  10263. PATH_SEPARATOR=:
  10264. fi
  10265. rm -f conf$$.sh
  10266. fi
  10267. # Find out how to test for executable files. Don't use a zero-byte file,
  10268. # as systems may use methods other than mode bits to determine executability.
  10269. cat >conf$$.file <<_ASEOF
  10270. #! /bin/sh
  10271. exit 0
  10272. _ASEOF
  10273. chmod +x conf$$.file
  10274. if test -x conf$$.file >/dev/null 2>&1; then
  10275. ac_executable_p="test -x"
  10276. else
  10277. ac_executable_p="test -f"
  10278. fi
  10279. rm -f conf$$.file
  10280. # Extract the first word of "msgmerge", so it can be a program name with args.
  10281. set dummy msgmerge; ac_word=$2
  10282. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10283. $as_echo_n "checking for $ac_word... " >&6; }
  10284. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  10285. $as_echo_n "(cached) " >&6
  10286. else
  10287. case "$MSGMERGE" in
  10288. [\\/]* | ?:[\\/]*)
  10289. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  10290. ;;
  10291. *)
  10292. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10293. for ac_dir in $PATH; do
  10294. IFS="$ac_save_IFS"
  10295. test -z "$ac_dir" && ac_dir=.
  10296. for ac_exec_ext in '' $ac_executable_extensions; do
  10297. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10298. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10299. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  10300. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  10301. break 2
  10302. fi
  10303. fi
  10304. done
  10305. done
  10306. IFS="$ac_save_IFS"
  10307. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  10308. ;;
  10309. esac
  10310. fi
  10311. MSGMERGE="$ac_cv_path_MSGMERGE"
  10312. if test "$MSGMERGE" != ":"; then
  10313. { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  10314. $as_echo "$MSGMERGE" >&6; }
  10315. else
  10316. { $as_echo "$as_me:$LINENO: result: no" >&5
  10317. $as_echo "no" >&6; }
  10318. fi
  10319. test -n "$localedir" || localedir='${datadir}/locale'
  10320. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  10321. ac_config_commands="$ac_config_commands po-directories"
  10322. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  10323. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  10324. if test "${ac_cv_gnu_library_2+set}" = set; then
  10325. $as_echo_n "(cached) " >&6
  10326. else
  10327. cat >conftest.$ac_ext <<_ACEOF
  10328. /* confdefs.h. */
  10329. _ACEOF
  10330. cat confdefs.h >>conftest.$ac_ext
  10331. cat >>conftest.$ac_ext <<_ACEOF
  10332. /* end confdefs.h. */
  10333. #include <features.h>
  10334. #ifdef __GNU_LIBRARY__
  10335. #if (__GLIBC__ >= 2)
  10336. Lucky GNU user
  10337. #endif
  10338. #endif
  10339. _ACEOF
  10340. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10341. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  10342. ac_cv_gnu_library_2=yes
  10343. else
  10344. ac_cv_gnu_library_2=no
  10345. fi
  10346. rm -f conftest*
  10347. fi
  10348. { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  10349. $as_echo "$ac_cv_gnu_library_2" >&6; }
  10350. GLIBC2="$ac_cv_gnu_library_2"
  10351. CFLAG_VISIBILITY=
  10352. HAVE_VISIBILITY=0
  10353. if test -n "$GCC"; then
  10354. { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  10355. $as_echo_n "checking for simple visibility declarations... " >&6; }
  10356. if test "${gl_cv_cc_visibility+set}" = set; then
  10357. $as_echo_n "(cached) " >&6
  10358. else
  10359. gl_save_CFLAGS="$CFLAGS"
  10360. CFLAGS="$CFLAGS -fvisibility=hidden"
  10361. cat >conftest.$ac_ext <<_ACEOF
  10362. /* confdefs.h. */
  10363. _ACEOF
  10364. cat confdefs.h >>conftest.$ac_ext
  10365. cat >>conftest.$ac_ext <<_ACEOF
  10366. /* end confdefs.h. */
  10367. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  10368. extern __attribute__((__visibility__("default"))) int exportedvar;
  10369. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  10370. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  10371. int
  10372. main ()
  10373. {
  10374. ;
  10375. return 0;
  10376. }
  10377. _ACEOF
  10378. rm -f conftest.$ac_objext
  10379. if { (ac_try="$ac_compile"
  10380. case "(($ac_try" in
  10381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10382. *) ac_try_echo=$ac_try;;
  10383. esac
  10384. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10385. $as_echo "$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. $as_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. gl_cv_cc_visibility=yes
  10397. else
  10398. $as_echo "$as_me: failed program was:" >&5
  10399. sed 's/^/| /' conftest.$ac_ext >&5
  10400. gl_cv_cc_visibility=no
  10401. fi
  10402. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10403. CFLAGS="$gl_save_CFLAGS"
  10404. fi
  10405. { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  10406. $as_echo "$gl_cv_cc_visibility" >&6; }
  10407. if test $gl_cv_cc_visibility = yes; then
  10408. CFLAG_VISIBILITY="-fvisibility=hidden"
  10409. HAVE_VISIBILITY=1
  10410. fi
  10411. fi
  10412. cat >>confdefs.h <<_ACEOF
  10413. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  10414. _ACEOF
  10415. { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
  10416. $as_echo_n "checking for stdint.h... " >&6; }
  10417. if test "${gl_cv_header_stdint_h+set}" = set; then
  10418. $as_echo_n "(cached) " >&6
  10419. else
  10420. cat >conftest.$ac_ext <<_ACEOF
  10421. /* confdefs.h. */
  10422. _ACEOF
  10423. cat confdefs.h >>conftest.$ac_ext
  10424. cat >>conftest.$ac_ext <<_ACEOF
  10425. /* end confdefs.h. */
  10426. #include <sys/types.h>
  10427. #include <stdint.h>
  10428. int
  10429. main ()
  10430. {
  10431. uintmax_t i = (uintmax_t) -1; return !i;
  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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10443. $as_echo "$ac_try_echo") >&5
  10444. (eval "$ac_compile") 2>conftest.er1
  10445. ac_status=$?
  10446. grep -v '^ *+' conftest.er1 >conftest.err
  10447. rm -f conftest.er1
  10448. cat conftest.err >&5
  10449. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10450. (exit $ac_status); } && {
  10451. test -z "$ac_cxx_werror_flag" ||
  10452. test ! -s conftest.err
  10453. } && test -s conftest.$ac_objext; then
  10454. gl_cv_header_stdint_h=yes
  10455. else
  10456. $as_echo "$as_me: failed program was:" >&5
  10457. sed 's/^/| /' conftest.$ac_ext >&5
  10458. gl_cv_header_stdint_h=no
  10459. fi
  10460. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10461. fi
  10462. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  10463. $as_echo "$gl_cv_header_stdint_h" >&6; }
  10464. if test $gl_cv_header_stdint_h = yes; then
  10465. cat >>confdefs.h <<_ACEOF
  10466. #define HAVE_STDINT_H_WITH_UINTMAX 1
  10467. _ACEOF
  10468. fi
  10469. for ac_header in stdlib.h unistd.h
  10470. do
  10471. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10472. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10473. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10474. $as_echo_n "checking for $ac_header... " >&6; }
  10475. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10476. $as_echo_n "(cached) " >&6
  10477. fi
  10478. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10479. $as_echo "$as_val"'`
  10480. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10481. $as_echo "$ac_res" >&6; }
  10482. else
  10483. # Is the header compilable?
  10484. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10485. $as_echo_n "checking $ac_header usability... " >&6; }
  10486. cat >conftest.$ac_ext <<_ACEOF
  10487. /* confdefs.h. */
  10488. _ACEOF
  10489. cat confdefs.h >>conftest.$ac_ext
  10490. cat >>conftest.$ac_ext <<_ACEOF
  10491. /* end confdefs.h. */
  10492. $ac_includes_default
  10493. #include <$ac_header>
  10494. _ACEOF
  10495. rm -f conftest.$ac_objext
  10496. if { (ac_try="$ac_compile"
  10497. case "(($ac_try" in
  10498. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10499. *) ac_try_echo=$ac_try;;
  10500. esac
  10501. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10502. $as_echo "$ac_try_echo") >&5
  10503. (eval "$ac_compile") 2>conftest.er1
  10504. ac_status=$?
  10505. grep -v '^ *+' conftest.er1 >conftest.err
  10506. rm -f conftest.er1
  10507. cat conftest.err >&5
  10508. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10509. (exit $ac_status); } && {
  10510. test -z "$ac_cxx_werror_flag" ||
  10511. test ! -s conftest.err
  10512. } && test -s conftest.$ac_objext; then
  10513. ac_header_compiler=yes
  10514. else
  10515. $as_echo "$as_me: failed program was:" >&5
  10516. sed 's/^/| /' conftest.$ac_ext >&5
  10517. ac_header_compiler=no
  10518. fi
  10519. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10520. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10521. $as_echo "$ac_header_compiler" >&6; }
  10522. # Is the header present?
  10523. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10524. $as_echo_n "checking $ac_header presence... " >&6; }
  10525. cat >conftest.$ac_ext <<_ACEOF
  10526. /* confdefs.h. */
  10527. _ACEOF
  10528. cat confdefs.h >>conftest.$ac_ext
  10529. cat >>conftest.$ac_ext <<_ACEOF
  10530. /* end confdefs.h. */
  10531. #include <$ac_header>
  10532. _ACEOF
  10533. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10534. case "(($ac_try" in
  10535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10536. *) ac_try_echo=$ac_try;;
  10537. esac
  10538. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10539. $as_echo "$ac_try_echo") >&5
  10540. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10541. ac_status=$?
  10542. grep -v '^ *+' conftest.er1 >conftest.err
  10543. rm -f conftest.er1
  10544. cat conftest.err >&5
  10545. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10546. (exit $ac_status); } >/dev/null && {
  10547. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10548. test ! -s conftest.err
  10549. }; then
  10550. ac_header_preproc=yes
  10551. else
  10552. $as_echo "$as_me: failed program was:" >&5
  10553. sed 's/^/| /' conftest.$ac_ext >&5
  10554. ac_header_preproc=no
  10555. fi
  10556. rm -f conftest.err conftest.$ac_ext
  10557. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10558. $as_echo "$ac_header_preproc" >&6; }
  10559. # So? What about this header?
  10560. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10561. yes:no: )
  10562. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10563. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10564. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10565. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10566. ac_header_preproc=yes
  10567. ;;
  10568. no:yes:* )
  10569. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10570. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10571. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10572. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10573. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10574. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10575. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10576. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10577. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10578. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10579. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10580. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10581. ( cat <<\_ASBOX
  10582. ## ----------------------------------------------- ##
  10583. ## Report this to t-tujikawa@users.sourceforge.net ##
  10584. ## ----------------------------------------------- ##
  10585. _ASBOX
  10586. ) | sed "s/^/$as_me: WARNING: /" >&2
  10587. ;;
  10588. esac
  10589. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10590. $as_echo_n "checking for $ac_header... " >&6; }
  10591. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10592. $as_echo_n "(cached) " >&6
  10593. else
  10594. eval "$as_ac_Header=\$ac_header_preproc"
  10595. fi
  10596. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10597. $as_echo "$as_val"'`
  10598. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10599. $as_echo "$ac_res" >&6; }
  10600. fi
  10601. as_val=`eval 'as_val=${'$as_ac_Header'}
  10602. $as_echo "$as_val"'`
  10603. if test "x$as_val" = x""yes; then
  10604. cat >>confdefs.h <<_ACEOF
  10605. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10606. _ACEOF
  10607. fi
  10608. done
  10609. for ac_func in getpagesize
  10610. do
  10611. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10612. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10613. $as_echo_n "checking for $ac_func... " >&6; }
  10614. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10615. $as_echo_n "(cached) " >&6
  10616. else
  10617. cat >conftest.$ac_ext <<_ACEOF
  10618. /* confdefs.h. */
  10619. _ACEOF
  10620. cat confdefs.h >>conftest.$ac_ext
  10621. cat >>conftest.$ac_ext <<_ACEOF
  10622. /* end confdefs.h. */
  10623. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10624. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10625. #define $ac_func innocuous_$ac_func
  10626. /* System header to define __stub macros and hopefully few prototypes,
  10627. which can conflict with char $ac_func (); below.
  10628. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10629. <limits.h> exists even on freestanding compilers. */
  10630. #ifdef __STDC__
  10631. # include <limits.h>
  10632. #else
  10633. # include <assert.h>
  10634. #endif
  10635. #undef $ac_func
  10636. /* Override any GCC internal prototype to avoid an error.
  10637. Use char because int might match the return type of a GCC
  10638. builtin and then its argument prototype would still apply. */
  10639. #ifdef __cplusplus
  10640. extern "C"
  10641. #endif
  10642. char $ac_func ();
  10643. /* The GNU C library defines this for functions which it implements
  10644. to always fail with ENOSYS. Some functions are actually named
  10645. something starting with __ and the normal name is an alias. */
  10646. #if defined __stub_$ac_func || defined __stub___$ac_func
  10647. choke me
  10648. #endif
  10649. int
  10650. main ()
  10651. {
  10652. return $ac_func ();
  10653. ;
  10654. return 0;
  10655. }
  10656. _ACEOF
  10657. rm -f conftest.$ac_objext conftest$ac_exeext
  10658. if { (ac_try="$ac_link"
  10659. case "(($ac_try" in
  10660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10661. *) ac_try_echo=$ac_try;;
  10662. esac
  10663. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10664. $as_echo "$ac_try_echo") >&5
  10665. (eval "$ac_link") 2>conftest.er1
  10666. ac_status=$?
  10667. grep -v '^ *+' conftest.er1 >conftest.err
  10668. rm -f conftest.er1
  10669. cat conftest.err >&5
  10670. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10671. (exit $ac_status); } && {
  10672. test -z "$ac_cxx_werror_flag" ||
  10673. test ! -s conftest.err
  10674. } && test -s conftest$ac_exeext && {
  10675. test "$cross_compiling" = yes ||
  10676. $as_test_x conftest$ac_exeext
  10677. }; then
  10678. eval "$as_ac_var=yes"
  10679. else
  10680. $as_echo "$as_me: failed program was:" >&5
  10681. sed 's/^/| /' conftest.$ac_ext >&5
  10682. eval "$as_ac_var=no"
  10683. fi
  10684. rm -rf conftest.dSYM
  10685. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10686. conftest$ac_exeext conftest.$ac_ext
  10687. fi
  10688. ac_res=`eval 'as_val=${'$as_ac_var'}
  10689. $as_echo "$as_val"'`
  10690. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10691. $as_echo "$ac_res" >&6; }
  10692. as_val=`eval 'as_val=${'$as_ac_var'}
  10693. $as_echo "$as_val"'`
  10694. if test "x$as_val" = x""yes; then
  10695. cat >>confdefs.h <<_ACEOF
  10696. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10697. _ACEOF
  10698. fi
  10699. done
  10700. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  10701. $as_echo_n "checking for working mmap... " >&6; }
  10702. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10703. $as_echo_n "(cached) " >&6
  10704. else
  10705. if test "$cross_compiling" = yes; then
  10706. ac_cv_func_mmap_fixed_mapped=no
  10707. else
  10708. cat >conftest.$ac_ext <<_ACEOF
  10709. /* confdefs.h. */
  10710. _ACEOF
  10711. cat confdefs.h >>conftest.$ac_ext
  10712. cat >>conftest.$ac_ext <<_ACEOF
  10713. /* end confdefs.h. */
  10714. $ac_includes_default
  10715. /* malloc might have been renamed as rpl_malloc. */
  10716. #undef malloc
  10717. /* Thanks to Mike Haertel and Jim Avera for this test.
  10718. Here is a matrix of mmap possibilities:
  10719. mmap private not fixed
  10720. mmap private fixed at somewhere currently unmapped
  10721. mmap private fixed at somewhere already mapped
  10722. mmap shared not fixed
  10723. mmap shared fixed at somewhere currently unmapped
  10724. mmap shared fixed at somewhere already mapped
  10725. For private mappings, we should verify that changes cannot be read()
  10726. back from the file, nor mmap's back from the file at a different
  10727. address. (There have been systems where private was not correctly
  10728. implemented like the infamous i386 svr4.0, and systems where the
  10729. VM page cache was not coherent with the file system buffer cache
  10730. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10731. For shared mappings, we should conversely verify that changes get
  10732. propagated back to all the places they're supposed to be.
  10733. Grep wants private fixed already mapped.
  10734. The main things grep needs to know about mmap are:
  10735. * does it exist and is it safe to write into the mmap'd area
  10736. * how to use it (BSD variants) */
  10737. #include <fcntl.h>
  10738. #include <sys/mman.h>
  10739. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10740. char *malloc ();
  10741. #endif
  10742. /* This mess was copied from the GNU getpagesize.h. */
  10743. #ifndef HAVE_GETPAGESIZE
  10744. /* Assume that all systems that can run configure have sys/param.h. */
  10745. # ifndef HAVE_SYS_PARAM_H
  10746. # define HAVE_SYS_PARAM_H 1
  10747. # endif
  10748. # ifdef _SC_PAGESIZE
  10749. # define getpagesize() sysconf(_SC_PAGESIZE)
  10750. # else /* no _SC_PAGESIZE */
  10751. # ifdef HAVE_SYS_PARAM_H
  10752. # include <sys/param.h>
  10753. # ifdef EXEC_PAGESIZE
  10754. # define getpagesize() EXEC_PAGESIZE
  10755. # else /* no EXEC_PAGESIZE */
  10756. # ifdef NBPG
  10757. # define getpagesize() NBPG * CLSIZE
  10758. # ifndef CLSIZE
  10759. # define CLSIZE 1
  10760. # endif /* no CLSIZE */
  10761. # else /* no NBPG */
  10762. # ifdef NBPC
  10763. # define getpagesize() NBPC
  10764. # else /* no NBPC */
  10765. # ifdef PAGESIZE
  10766. # define getpagesize() PAGESIZE
  10767. # endif /* PAGESIZE */
  10768. # endif /* no NBPC */
  10769. # endif /* no NBPG */
  10770. # endif /* no EXEC_PAGESIZE */
  10771. # else /* no HAVE_SYS_PARAM_H */
  10772. # define getpagesize() 8192 /* punt totally */
  10773. # endif /* no HAVE_SYS_PARAM_H */
  10774. # endif /* no _SC_PAGESIZE */
  10775. #endif /* no HAVE_GETPAGESIZE */
  10776. int
  10777. main ()
  10778. {
  10779. char *data, *data2, *data3;
  10780. int i, pagesize;
  10781. int fd;
  10782. pagesize = getpagesize ();
  10783. /* First, make a file with some known garbage in it. */
  10784. data = (char *) malloc (pagesize);
  10785. if (!data)
  10786. return 1;
  10787. for (i = 0; i < pagesize; ++i)
  10788. *(data + i) = rand ();
  10789. umask (0);
  10790. fd = creat ("conftest.mmap", 0600);
  10791. if (fd < 0)
  10792. return 1;
  10793. if (write (fd, data, pagesize) != pagesize)
  10794. return 1;
  10795. close (fd);
  10796. /* Next, try to mmap the file at a fixed address which already has
  10797. something else allocated at it. If we can, also make sure that
  10798. we see the same garbage. */
  10799. fd = open ("conftest.mmap", O_RDWR);
  10800. if (fd < 0)
  10801. return 1;
  10802. data2 = (char *) malloc (2 * pagesize);
  10803. if (!data2)
  10804. return 1;
  10805. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10806. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10807. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10808. return 1;
  10809. for (i = 0; i < pagesize; ++i)
  10810. if (*(data + i) != *(data2 + i))
  10811. return 1;
  10812. /* Finally, make sure that changes to the mapped area do not
  10813. percolate back to the file as seen by read(). (This is a bug on
  10814. some variants of i386 svr4.0.) */
  10815. for (i = 0; i < pagesize; ++i)
  10816. *(data2 + i) = *(data2 + i) + 1;
  10817. data3 = (char *) malloc (pagesize);
  10818. if (!data3)
  10819. return 1;
  10820. if (read (fd, data3, pagesize) != pagesize)
  10821. return 1;
  10822. for (i = 0; i < pagesize; ++i)
  10823. if (*(data + i) != *(data3 + i))
  10824. return 1;
  10825. close (fd);
  10826. return 0;
  10827. }
  10828. _ACEOF
  10829. rm -f conftest$ac_exeext
  10830. if { (ac_try="$ac_link"
  10831. case "(($ac_try" in
  10832. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10833. *) ac_try_echo=$ac_try;;
  10834. esac
  10835. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10836. $as_echo "$ac_try_echo") >&5
  10837. (eval "$ac_link") 2>&5
  10838. ac_status=$?
  10839. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10840. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10841. { (case "(($ac_try" in
  10842. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10843. *) ac_try_echo=$ac_try;;
  10844. esac
  10845. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10846. $as_echo "$ac_try_echo") >&5
  10847. (eval "$ac_try") 2>&5
  10848. ac_status=$?
  10849. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10850. (exit $ac_status); }; }; then
  10851. ac_cv_func_mmap_fixed_mapped=yes
  10852. else
  10853. $as_echo "$as_me: program exited with status $ac_status" >&5
  10854. $as_echo "$as_me: failed program was:" >&5
  10855. sed 's/^/| /' conftest.$ac_ext >&5
  10856. ( exit $ac_status )
  10857. ac_cv_func_mmap_fixed_mapped=no
  10858. fi
  10859. rm -rf conftest.dSYM
  10860. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10861. fi
  10862. fi
  10863. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10864. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  10865. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10866. cat >>confdefs.h <<\_ACEOF
  10867. #define HAVE_MMAP 1
  10868. _ACEOF
  10869. fi
  10870. rm -f conftest.mmap
  10871. { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  10872. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  10873. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  10874. $as_echo_n "(cached) " >&6
  10875. else
  10876. gt_cv_int_divbyzero_sigfpe=
  10877. case "$host_os" in
  10878. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  10879. # On MacOS X 10.2 or newer, just assume the same as when cross-
  10880. # compiling. If we were to perform the real test, 1 Crash Report
  10881. # dialog window would pop up.
  10882. case "$host_cpu" in
  10883. i[34567]86 | x86_64)
  10884. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  10885. esac
  10886. ;;
  10887. esac
  10888. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  10889. if test "$cross_compiling" = yes; then
  10890. # Guess based on the CPU.
  10891. case "$host_cpu" in
  10892. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  10893. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  10894. *)
  10895. gt_cv_int_divbyzero_sigfpe="guessing no";;
  10896. esac
  10897. else
  10898. cat >conftest.$ac_ext <<_ACEOF
  10899. /* confdefs.h. */
  10900. _ACEOF
  10901. cat confdefs.h >>conftest.$ac_ext
  10902. cat >>conftest.$ac_ext <<_ACEOF
  10903. /* end confdefs.h. */
  10904. #include <stdlib.h>
  10905. #include <signal.h>
  10906. static void
  10907. sigfpe_handler (int sig)
  10908. {
  10909. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  10910. exit (sig != SIGFPE);
  10911. }
  10912. int x = 1;
  10913. int y = 0;
  10914. int z;
  10915. int nan;
  10916. int main ()
  10917. {
  10918. signal (SIGFPE, sigfpe_handler);
  10919. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  10920. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  10921. signal (SIGTRAP, sigfpe_handler);
  10922. #endif
  10923. /* Linux/SPARC yields signal SIGILL. */
  10924. #if defined (__sparc__) && defined (__linux__)
  10925. signal (SIGILL, sigfpe_handler);
  10926. #endif
  10927. z = x / y;
  10928. nan = y / y;
  10929. exit (1);
  10930. }
  10931. _ACEOF
  10932. rm -f conftest$ac_exeext
  10933. if { (ac_try="$ac_link"
  10934. case "(($ac_try" in
  10935. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10936. *) ac_try_echo=$ac_try;;
  10937. esac
  10938. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10939. $as_echo "$ac_try_echo") >&5
  10940. (eval "$ac_link") 2>&5
  10941. ac_status=$?
  10942. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10943. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10944. { (case "(($ac_try" in
  10945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10946. *) ac_try_echo=$ac_try;;
  10947. esac
  10948. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10949. $as_echo "$ac_try_echo") >&5
  10950. (eval "$ac_try") 2>&5
  10951. ac_status=$?
  10952. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10953. (exit $ac_status); }; }; then
  10954. gt_cv_int_divbyzero_sigfpe=yes
  10955. else
  10956. $as_echo "$as_me: program exited with status $ac_status" >&5
  10957. $as_echo "$as_me: failed program was:" >&5
  10958. sed 's/^/| /' conftest.$ac_ext >&5
  10959. ( exit $ac_status )
  10960. gt_cv_int_divbyzero_sigfpe=no
  10961. fi
  10962. rm -rf conftest.dSYM
  10963. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10964. fi
  10965. fi
  10966. fi
  10967. { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  10968. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  10969. case "$gt_cv_int_divbyzero_sigfpe" in
  10970. *yes) value=1;;
  10971. *) value=0;;
  10972. esac
  10973. cat >>confdefs.h <<_ACEOF
  10974. #define INTDIV0_RAISES_SIGFPE $value
  10975. _ACEOF
  10976. { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
  10977. $as_echo_n "checking for inttypes.h... " >&6; }
  10978. if test "${gl_cv_header_inttypes_h+set}" = set; then
  10979. $as_echo_n "(cached) " >&6
  10980. else
  10981. cat >conftest.$ac_ext <<_ACEOF
  10982. /* confdefs.h. */
  10983. _ACEOF
  10984. cat confdefs.h >>conftest.$ac_ext
  10985. cat >>conftest.$ac_ext <<_ACEOF
  10986. /* end confdefs.h. */
  10987. #include <sys/types.h>
  10988. #include <inttypes.h>
  10989. int
  10990. main ()
  10991. {
  10992. uintmax_t i = (uintmax_t) -1; return !i;
  10993. ;
  10994. return 0;
  10995. }
  10996. _ACEOF
  10997. rm -f conftest.$ac_objext
  10998. if { (ac_try="$ac_compile"
  10999. case "(($ac_try" in
  11000. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11001. *) ac_try_echo=$ac_try;;
  11002. esac
  11003. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11004. $as_echo "$ac_try_echo") >&5
  11005. (eval "$ac_compile") 2>conftest.er1
  11006. ac_status=$?
  11007. grep -v '^ *+' conftest.er1 >conftest.err
  11008. rm -f conftest.er1
  11009. cat conftest.err >&5
  11010. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11011. (exit $ac_status); } && {
  11012. test -z "$ac_cxx_werror_flag" ||
  11013. test ! -s conftest.err
  11014. } && test -s conftest.$ac_objext; then
  11015. gl_cv_header_inttypes_h=yes
  11016. else
  11017. $as_echo "$as_me: failed program was:" >&5
  11018. sed 's/^/| /' conftest.$ac_ext >&5
  11019. gl_cv_header_inttypes_h=no
  11020. fi
  11021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11022. fi
  11023. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  11024. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  11025. if test $gl_cv_header_inttypes_h = yes; then
  11026. cat >>confdefs.h <<_ACEOF
  11027. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  11028. _ACEOF
  11029. fi
  11030. { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  11031. $as_echo_n "checking for unsigned long long int... " >&6; }
  11032. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  11033. $as_echo_n "(cached) " >&6
  11034. else
  11035. cat >conftest.$ac_ext <<_ACEOF
  11036. /* confdefs.h. */
  11037. _ACEOF
  11038. cat confdefs.h >>conftest.$ac_ext
  11039. cat >>conftest.$ac_ext <<_ACEOF
  11040. /* end confdefs.h. */
  11041. /* Test preprocessor. */
  11042. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11043. error in preprocessor;
  11044. #endif
  11045. #if ! (18446744073709551615ULL <= -1ull)
  11046. error in preprocessor;
  11047. #endif
  11048. /* Test literals. */
  11049. long long int ll = 9223372036854775807ll;
  11050. long long int nll = -9223372036854775807LL;
  11051. unsigned long long int ull = 18446744073709551615ULL;
  11052. /* Test constant expressions. */
  11053. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11054. ? 1 : -1)];
  11055. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  11056. ? 1 : -1)];
  11057. int i = 63;
  11058. int
  11059. main ()
  11060. {
  11061. /* Test availability of runtime routines for shift and division. */
  11062. long long int llmax = 9223372036854775807ll;
  11063. unsigned long long int ullmax = 18446744073709551615ull;
  11064. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  11065. | (llmax / ll) | (llmax % ll)
  11066. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  11067. | (ullmax / ull) | (ullmax % ull));
  11068. ;
  11069. return 0;
  11070. }
  11071. _ACEOF
  11072. rm -f conftest.$ac_objext conftest$ac_exeext
  11073. if { (ac_try="$ac_link"
  11074. case "(($ac_try" in
  11075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11076. *) ac_try_echo=$ac_try;;
  11077. esac
  11078. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11079. $as_echo "$ac_try_echo") >&5
  11080. (eval "$ac_link") 2>conftest.er1
  11081. ac_status=$?
  11082. grep -v '^ *+' conftest.er1 >conftest.err
  11083. rm -f conftest.er1
  11084. cat conftest.err >&5
  11085. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11086. (exit $ac_status); } && {
  11087. test -z "$ac_cxx_werror_flag" ||
  11088. test ! -s conftest.err
  11089. } && test -s conftest$ac_exeext && {
  11090. test "$cross_compiling" = yes ||
  11091. $as_test_x conftest$ac_exeext
  11092. }; then
  11093. ac_cv_type_unsigned_long_long_int=yes
  11094. else
  11095. $as_echo "$as_me: failed program was:" >&5
  11096. sed 's/^/| /' conftest.$ac_ext >&5
  11097. ac_cv_type_unsigned_long_long_int=no
  11098. fi
  11099. rm -rf conftest.dSYM
  11100. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11101. conftest$ac_exeext conftest.$ac_ext
  11102. fi
  11103. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  11104. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  11105. if test $ac_cv_type_unsigned_long_long_int = yes; then
  11106. cat >>confdefs.h <<\_ACEOF
  11107. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  11108. _ACEOF
  11109. fi
  11110. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  11111. test $ac_cv_type_unsigned_long_long_int = yes \
  11112. && ac_type='unsigned long long' \
  11113. || ac_type='unsigned long'
  11114. cat >>confdefs.h <<_ACEOF
  11115. #define uintmax_t $ac_type
  11116. _ACEOF
  11117. else
  11118. cat >>confdefs.h <<\_ACEOF
  11119. #define HAVE_UINTMAX_T 1
  11120. _ACEOF
  11121. fi
  11122. for ac_header in inttypes.h
  11123. do
  11124. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11125. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11126. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11127. $as_echo_n "checking for $ac_header... " >&6; }
  11128. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11129. $as_echo_n "(cached) " >&6
  11130. fi
  11131. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11132. $as_echo "$as_val"'`
  11133. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11134. $as_echo "$ac_res" >&6; }
  11135. else
  11136. # Is the header compilable?
  11137. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11138. $as_echo_n "checking $ac_header usability... " >&6; }
  11139. cat >conftest.$ac_ext <<_ACEOF
  11140. /* confdefs.h. */
  11141. _ACEOF
  11142. cat confdefs.h >>conftest.$ac_ext
  11143. cat >>conftest.$ac_ext <<_ACEOF
  11144. /* end confdefs.h. */
  11145. $ac_includes_default
  11146. #include <$ac_header>
  11147. _ACEOF
  11148. rm -f conftest.$ac_objext
  11149. if { (ac_try="$ac_compile"
  11150. case "(($ac_try" in
  11151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11152. *) ac_try_echo=$ac_try;;
  11153. esac
  11154. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11155. $as_echo "$ac_try_echo") >&5
  11156. (eval "$ac_compile") 2>conftest.er1
  11157. ac_status=$?
  11158. grep -v '^ *+' conftest.er1 >conftest.err
  11159. rm -f conftest.er1
  11160. cat conftest.err >&5
  11161. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11162. (exit $ac_status); } && {
  11163. test -z "$ac_cxx_werror_flag" ||
  11164. test ! -s conftest.err
  11165. } && test -s conftest.$ac_objext; then
  11166. ac_header_compiler=yes
  11167. else
  11168. $as_echo "$as_me: failed program was:" >&5
  11169. sed 's/^/| /' conftest.$ac_ext >&5
  11170. ac_header_compiler=no
  11171. fi
  11172. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11173. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11174. $as_echo "$ac_header_compiler" >&6; }
  11175. # Is the header present?
  11176. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11177. $as_echo_n "checking $ac_header presence... " >&6; }
  11178. cat >conftest.$ac_ext <<_ACEOF
  11179. /* confdefs.h. */
  11180. _ACEOF
  11181. cat confdefs.h >>conftest.$ac_ext
  11182. cat >>conftest.$ac_ext <<_ACEOF
  11183. /* end confdefs.h. */
  11184. #include <$ac_header>
  11185. _ACEOF
  11186. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11187. case "(($ac_try" in
  11188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11189. *) ac_try_echo=$ac_try;;
  11190. esac
  11191. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11192. $as_echo "$ac_try_echo") >&5
  11193. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11194. ac_status=$?
  11195. grep -v '^ *+' conftest.er1 >conftest.err
  11196. rm -f conftest.er1
  11197. cat conftest.err >&5
  11198. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11199. (exit $ac_status); } >/dev/null && {
  11200. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11201. test ! -s conftest.err
  11202. }; then
  11203. ac_header_preproc=yes
  11204. else
  11205. $as_echo "$as_me: failed program was:" >&5
  11206. sed 's/^/| /' conftest.$ac_ext >&5
  11207. ac_header_preproc=no
  11208. fi
  11209. rm -f conftest.err conftest.$ac_ext
  11210. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11211. $as_echo "$ac_header_preproc" >&6; }
  11212. # So? What about this header?
  11213. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11214. yes:no: )
  11215. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11216. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11217. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11218. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11219. ac_header_preproc=yes
  11220. ;;
  11221. no:yes:* )
  11222. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11223. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11224. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11225. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11226. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11227. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11228. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11229. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11230. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11231. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11232. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11233. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11234. ( cat <<\_ASBOX
  11235. ## ----------------------------------------------- ##
  11236. ## Report this to t-tujikawa@users.sourceforge.net ##
  11237. ## ----------------------------------------------- ##
  11238. _ASBOX
  11239. ) | sed "s/^/$as_me: WARNING: /" >&2
  11240. ;;
  11241. esac
  11242. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11243. $as_echo_n "checking for $ac_header... " >&6; }
  11244. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11245. $as_echo_n "(cached) " >&6
  11246. else
  11247. eval "$as_ac_Header=\$ac_header_preproc"
  11248. fi
  11249. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11250. $as_echo "$as_val"'`
  11251. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11252. $as_echo "$ac_res" >&6; }
  11253. fi
  11254. as_val=`eval 'as_val=${'$as_ac_Header'}
  11255. $as_echo "$as_val"'`
  11256. if test "x$as_val" = x""yes; then
  11257. cat >>confdefs.h <<_ACEOF
  11258. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11259. _ACEOF
  11260. fi
  11261. done
  11262. if test $ac_cv_header_inttypes_h = yes; then
  11263. { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  11264. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  11265. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  11266. $as_echo_n "(cached) " >&6
  11267. else
  11268. cat >conftest.$ac_ext <<_ACEOF
  11269. /* confdefs.h. */
  11270. _ACEOF
  11271. cat confdefs.h >>conftest.$ac_ext
  11272. cat >>conftest.$ac_ext <<_ACEOF
  11273. /* end confdefs.h. */
  11274. #include <inttypes.h>
  11275. #ifdef PRId32
  11276. char *p = PRId32;
  11277. #endif
  11278. int
  11279. main ()
  11280. {
  11281. ;
  11282. return 0;
  11283. }
  11284. _ACEOF
  11285. rm -f conftest.$ac_objext
  11286. if { (ac_try="$ac_compile"
  11287. case "(($ac_try" in
  11288. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11289. *) ac_try_echo=$ac_try;;
  11290. esac
  11291. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11292. $as_echo "$ac_try_echo") >&5
  11293. (eval "$ac_compile") 2>conftest.er1
  11294. ac_status=$?
  11295. grep -v '^ *+' conftest.er1 >conftest.err
  11296. rm -f conftest.er1
  11297. cat conftest.err >&5
  11298. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11299. (exit $ac_status); } && {
  11300. test -z "$ac_cxx_werror_flag" ||
  11301. test ! -s conftest.err
  11302. } && test -s conftest.$ac_objext; then
  11303. gt_cv_inttypes_pri_broken=no
  11304. else
  11305. $as_echo "$as_me: failed program was:" >&5
  11306. sed 's/^/| /' conftest.$ac_ext >&5
  11307. gt_cv_inttypes_pri_broken=yes
  11308. fi
  11309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11310. fi
  11311. { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  11312. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  11313. fi
  11314. if test "$gt_cv_inttypes_pri_broken" = yes; then
  11315. cat >>confdefs.h <<_ACEOF
  11316. #define PRI_MACROS_BROKEN 1
  11317. _ACEOF
  11318. PRI_MACROS_BROKEN=1
  11319. else
  11320. PRI_MACROS_BROKEN=0
  11321. fi
  11322. # Check whether --enable-threads was given.
  11323. if test "${enable_threads+set}" = set; then
  11324. enableval=$enable_threads; gl_use_threads=$enableval
  11325. else
  11326. case "$host_os" in
  11327. osf*) gl_use_threads=no ;;
  11328. *) gl_use_threads=yes ;;
  11329. esac
  11330. fi
  11331. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  11332. # For using <pthread.h>:
  11333. case "$host_os" in
  11334. osf*)
  11335. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  11336. # groks <pthread.h>. cc also understands the flag -pthread, but
  11337. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  11338. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  11339. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  11340. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  11341. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  11342. ;;
  11343. esac
  11344. # Some systems optimize for single-threaded programs by default, and
  11345. # need special flags to disable these optimizations. For example, the
  11346. # definition of 'errno' in <errno.h>.
  11347. case "$host_os" in
  11348. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  11349. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  11350. esac
  11351. fi
  11352. if test "X$prefix" = "XNONE"; then
  11353. acl_final_prefix="$ac_default_prefix"
  11354. else
  11355. acl_final_prefix="$prefix"
  11356. fi
  11357. if test "X$exec_prefix" = "XNONE"; then
  11358. acl_final_exec_prefix='${prefix}'
  11359. else
  11360. acl_final_exec_prefix="$exec_prefix"
  11361. fi
  11362. acl_save_prefix="$prefix"
  11363. prefix="$acl_final_prefix"
  11364. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  11365. prefix="$acl_save_prefix"
  11366. # Check whether --with-gnu-ld was given.
  11367. if test "${with_gnu_ld+set}" = set; then
  11368. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11369. else
  11370. with_gnu_ld=no
  11371. fi
  11372. # Prepare PATH_SEPARATOR.
  11373. # The user is always right.
  11374. if test "${PATH_SEPARATOR+set}" != set; then
  11375. echo "#! /bin/sh" >conf$$.sh
  11376. echo "exit 0" >>conf$$.sh
  11377. chmod +x conf$$.sh
  11378. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11379. PATH_SEPARATOR=';'
  11380. else
  11381. PATH_SEPARATOR=:
  11382. fi
  11383. rm -f conf$$.sh
  11384. fi
  11385. ac_prog=ld
  11386. if test "$GCC" = yes; then
  11387. # Check if gcc -print-prog-name=ld gives a path.
  11388. { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  11389. $as_echo_n "checking for ld used by GCC... " >&6; }
  11390. case $host in
  11391. *-*-mingw*)
  11392. # gcc leaves a trailing carriage return which upsets mingw
  11393. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11394. *)
  11395. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11396. esac
  11397. case $ac_prog in
  11398. # Accept absolute paths.
  11399. [\\/]* | [A-Za-z]:[\\/]*)
  11400. re_direlt='/[^/][^/]*/\.\./'
  11401. # Canonicalize the path of ld
  11402. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  11403. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11404. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  11405. done
  11406. test -z "$LD" && LD="$ac_prog"
  11407. ;;
  11408. "")
  11409. # If it fails, then pretend we aren't using GCC.
  11410. ac_prog=ld
  11411. ;;
  11412. *)
  11413. # If it is relative, then search for the first ld in PATH.
  11414. with_gnu_ld=unknown
  11415. ;;
  11416. esac
  11417. elif test "$with_gnu_ld" = yes; then
  11418. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  11419. $as_echo_n "checking for GNU ld... " >&6; }
  11420. else
  11421. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11422. $as_echo_n "checking for non-GNU ld... " >&6; }
  11423. fi
  11424. if test "${acl_cv_path_LD+set}" = set; then
  11425. $as_echo_n "(cached) " >&6
  11426. else
  11427. if test -z "$LD"; then
  11428. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  11429. for ac_dir in $PATH; do
  11430. test -z "$ac_dir" && ac_dir=.
  11431. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11432. acl_cv_path_LD="$ac_dir/$ac_prog"
  11433. # Check to see if the program is GNU ld. I'd rather use --version,
  11434. # but apparently some GNU ld's only accept -v.
  11435. # Break only if it was the GNU/non-GNU ld that we prefer.
  11436. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  11437. *GNU* | *'with BFD'*)
  11438. test "$with_gnu_ld" != no && break ;;
  11439. *)
  11440. test "$with_gnu_ld" != yes && break ;;
  11441. esac
  11442. fi
  11443. done
  11444. IFS="$ac_save_ifs"
  11445. else
  11446. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  11447. fi
  11448. fi
  11449. LD="$acl_cv_path_LD"
  11450. if test -n "$LD"; then
  11451. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  11452. $as_echo "$LD" >&6; }
  11453. else
  11454. { $as_echo "$as_me:$LINENO: result: no" >&5
  11455. $as_echo "no" >&6; }
  11456. fi
  11457. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11458. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11459. { (exit 1); exit 1; }; }
  11460. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11461. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11462. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  11463. $as_echo_n "(cached) " >&6
  11464. else
  11465. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  11466. case `$LD -v 2>&1 </dev/null` in
  11467. *GNU* | *'with BFD'*)
  11468. acl_cv_prog_gnu_ld=yes ;;
  11469. *)
  11470. acl_cv_prog_gnu_ld=no ;;
  11471. esac
  11472. fi
  11473. { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  11474. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  11475. with_gnu_ld=$acl_cv_prog_gnu_ld
  11476. { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  11477. $as_echo_n "checking for shared library run path origin... " >&6; }
  11478. if test "${acl_cv_rpath+set}" = set; then
  11479. $as_echo_n "(cached) " >&6
  11480. else
  11481. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  11482. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  11483. . ./conftest.sh
  11484. rm -f ./conftest.sh
  11485. acl_cv_rpath=done
  11486. fi
  11487. { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  11488. $as_echo "$acl_cv_rpath" >&6; }
  11489. wl="$acl_cv_wl"
  11490. acl_libext="$acl_cv_libext"
  11491. acl_shlibext="$acl_cv_shlibext"
  11492. acl_libname_spec="$acl_cv_libname_spec"
  11493. acl_library_names_spec="$acl_cv_library_names_spec"
  11494. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  11495. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  11496. acl_hardcode_direct="$acl_cv_hardcode_direct"
  11497. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  11498. # Check whether --enable-rpath was given.
  11499. if test "${enable_rpath+set}" = set; then
  11500. enableval=$enable_rpath; :
  11501. else
  11502. enable_rpath=yes
  11503. fi
  11504. acl_libdirstem=lib
  11505. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  11506. if test -n "$searchpath"; then
  11507. acl_save_IFS="${IFS= }"; IFS=":"
  11508. for searchdir in $searchpath; do
  11509. if test -d "$searchdir"; then
  11510. case "$searchdir" in
  11511. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  11512. *) searchdir=`cd "$searchdir" && pwd`
  11513. case "$searchdir" in
  11514. */lib64 ) acl_libdirstem=lib64 ;;
  11515. esac ;;
  11516. esac
  11517. fi
  11518. done
  11519. IFS="$acl_save_IFS"
  11520. fi
  11521. gl_threads_api=none
  11522. LIBTHREAD=
  11523. LTLIBTHREAD=
  11524. LIBMULTITHREAD=
  11525. LTLIBMULTITHREAD=
  11526. if test "$gl_use_threads" != no; then
  11527. { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  11528. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  11529. gl_have_weak=no
  11530. cat >conftest.$ac_ext <<_ACEOF
  11531. /* confdefs.h. */
  11532. _ACEOF
  11533. cat confdefs.h >>conftest.$ac_ext
  11534. cat >>conftest.$ac_ext <<_ACEOF
  11535. /* end confdefs.h. */
  11536. extern void xyzzy ();
  11537. #pragma weak xyzzy
  11538. int
  11539. main ()
  11540. {
  11541. xyzzy();
  11542. ;
  11543. return 0;
  11544. }
  11545. _ACEOF
  11546. rm -f conftest.$ac_objext conftest$ac_exeext
  11547. if { (ac_try="$ac_link"
  11548. case "(($ac_try" in
  11549. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11550. *) ac_try_echo=$ac_try;;
  11551. esac
  11552. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11553. $as_echo "$ac_try_echo") >&5
  11554. (eval "$ac_link") 2>conftest.er1
  11555. ac_status=$?
  11556. grep -v '^ *+' conftest.er1 >conftest.err
  11557. rm -f conftest.er1
  11558. cat conftest.err >&5
  11559. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11560. (exit $ac_status); } && {
  11561. test -z "$ac_cxx_werror_flag" ||
  11562. test ! -s conftest.err
  11563. } && test -s conftest$ac_exeext && {
  11564. test "$cross_compiling" = yes ||
  11565. $as_test_x conftest$ac_exeext
  11566. }; then
  11567. gl_have_weak=yes
  11568. else
  11569. $as_echo "$as_me: failed program was:" >&5
  11570. sed 's/^/| /' conftest.$ac_ext >&5
  11571. fi
  11572. rm -rf conftest.dSYM
  11573. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11574. conftest$ac_exeext conftest.$ac_ext
  11575. { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  11576. $as_echo "$gl_have_weak" >&6; }
  11577. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  11578. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  11579. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  11580. if test "${ac_cv_header_pthread_h+set}" = set; then
  11581. { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
  11582. $as_echo_n "checking for pthread.h... " >&6; }
  11583. if test "${ac_cv_header_pthread_h+set}" = set; then
  11584. $as_echo_n "(cached) " >&6
  11585. fi
  11586. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11587. $as_echo "$ac_cv_header_pthread_h" >&6; }
  11588. else
  11589. # Is the header compilable?
  11590. { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
  11591. $as_echo_n "checking pthread.h usability... " >&6; }
  11592. cat >conftest.$ac_ext <<_ACEOF
  11593. /* confdefs.h. */
  11594. _ACEOF
  11595. cat confdefs.h >>conftest.$ac_ext
  11596. cat >>conftest.$ac_ext <<_ACEOF
  11597. /* end confdefs.h. */
  11598. $ac_includes_default
  11599. #include <pthread.h>
  11600. _ACEOF
  11601. rm -f conftest.$ac_objext
  11602. if { (ac_try="$ac_compile"
  11603. case "(($ac_try" in
  11604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11605. *) ac_try_echo=$ac_try;;
  11606. esac
  11607. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11608. $as_echo "$ac_try_echo") >&5
  11609. (eval "$ac_compile") 2>conftest.er1
  11610. ac_status=$?
  11611. grep -v '^ *+' conftest.er1 >conftest.err
  11612. rm -f conftest.er1
  11613. cat conftest.err >&5
  11614. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11615. (exit $ac_status); } && {
  11616. test -z "$ac_cxx_werror_flag" ||
  11617. test ! -s conftest.err
  11618. } && test -s conftest.$ac_objext; then
  11619. ac_header_compiler=yes
  11620. else
  11621. $as_echo "$as_me: failed program was:" >&5
  11622. sed 's/^/| /' conftest.$ac_ext >&5
  11623. ac_header_compiler=no
  11624. fi
  11625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11626. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11627. $as_echo "$ac_header_compiler" >&6; }
  11628. # Is the header present?
  11629. { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
  11630. $as_echo_n "checking pthread.h presence... " >&6; }
  11631. cat >conftest.$ac_ext <<_ACEOF
  11632. /* confdefs.h. */
  11633. _ACEOF
  11634. cat confdefs.h >>conftest.$ac_ext
  11635. cat >>conftest.$ac_ext <<_ACEOF
  11636. /* end confdefs.h. */
  11637. #include <pthread.h>
  11638. _ACEOF
  11639. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11640. case "(($ac_try" in
  11641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11642. *) ac_try_echo=$ac_try;;
  11643. esac
  11644. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11645. $as_echo "$ac_try_echo") >&5
  11646. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11647. ac_status=$?
  11648. grep -v '^ *+' conftest.er1 >conftest.err
  11649. rm -f conftest.er1
  11650. cat conftest.err >&5
  11651. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11652. (exit $ac_status); } >/dev/null && {
  11653. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11654. test ! -s conftest.err
  11655. }; then
  11656. ac_header_preproc=yes
  11657. else
  11658. $as_echo "$as_me: failed program was:" >&5
  11659. sed 's/^/| /' conftest.$ac_ext >&5
  11660. ac_header_preproc=no
  11661. fi
  11662. rm -f conftest.err conftest.$ac_ext
  11663. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11664. $as_echo "$ac_header_preproc" >&6; }
  11665. # So? What about this header?
  11666. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11667. yes:no: )
  11668. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11669. $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11670. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  11671. $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  11672. ac_header_preproc=yes
  11673. ;;
  11674. no:yes:* )
  11675. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  11676. $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  11677. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  11678. $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  11679. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  11680. $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  11681. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  11682. $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11683. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  11684. $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  11685. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  11686. $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  11687. ( cat <<\_ASBOX
  11688. ## ----------------------------------------------- ##
  11689. ## Report this to t-tujikawa@users.sourceforge.net ##
  11690. ## ----------------------------------------------- ##
  11691. _ASBOX
  11692. ) | sed "s/^/$as_me: WARNING: /" >&2
  11693. ;;
  11694. esac
  11695. { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
  11696. $as_echo_n "checking for pthread.h... " >&6; }
  11697. if test "${ac_cv_header_pthread_h+set}" = set; then
  11698. $as_echo_n "(cached) " >&6
  11699. else
  11700. ac_cv_header_pthread_h=$ac_header_preproc
  11701. fi
  11702. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11703. $as_echo "$ac_cv_header_pthread_h" >&6; }
  11704. fi
  11705. if test "x$ac_cv_header_pthread_h" = x""yes; then
  11706. gl_have_pthread_h=yes
  11707. else
  11708. gl_have_pthread_h=no
  11709. fi
  11710. if test "$gl_have_pthread_h" = yes; then
  11711. # Other possible tests:
  11712. # -lpthreads (FSU threads, PCthreads)
  11713. # -lgthreads
  11714. gl_have_pthread=
  11715. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  11716. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  11717. # the second one only in libpthread, and lock.c needs it.
  11718. cat >conftest.$ac_ext <<_ACEOF
  11719. /* confdefs.h. */
  11720. _ACEOF
  11721. cat confdefs.h >>conftest.$ac_ext
  11722. cat >>conftest.$ac_ext <<_ACEOF
  11723. /* end confdefs.h. */
  11724. #include <pthread.h>
  11725. int
  11726. main ()
  11727. {
  11728. pthread_mutex_lock((pthread_mutex_t*)0);
  11729. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  11730. ;
  11731. return 0;
  11732. }
  11733. _ACEOF
  11734. rm -f conftest.$ac_objext conftest$ac_exeext
  11735. if { (ac_try="$ac_link"
  11736. case "(($ac_try" in
  11737. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11738. *) ac_try_echo=$ac_try;;
  11739. esac
  11740. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11741. $as_echo "$ac_try_echo") >&5
  11742. (eval "$ac_link") 2>conftest.er1
  11743. ac_status=$?
  11744. grep -v '^ *+' conftest.er1 >conftest.err
  11745. rm -f conftest.er1
  11746. cat conftest.err >&5
  11747. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11748. (exit $ac_status); } && {
  11749. test -z "$ac_cxx_werror_flag" ||
  11750. test ! -s conftest.err
  11751. } && test -s conftest$ac_exeext && {
  11752. test "$cross_compiling" = yes ||
  11753. $as_test_x conftest$ac_exeext
  11754. }; then
  11755. gl_have_pthread=yes
  11756. else
  11757. $as_echo "$as_me: failed program was:" >&5
  11758. sed 's/^/| /' conftest.$ac_ext >&5
  11759. fi
  11760. rm -rf conftest.dSYM
  11761. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11762. conftest$ac_exeext conftest.$ac_ext
  11763. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  11764. # since it is defined as a macro on OSF/1.)
  11765. if test -n "$gl_have_pthread"; then
  11766. # The program links fine without libpthread. But it may actually
  11767. # need to link with libpthread in order to create multiple threads.
  11768. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11769. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  11770. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11771. $as_echo_n "(cached) " >&6
  11772. else
  11773. ac_check_lib_save_LIBS=$LIBS
  11774. LIBS="-lpthread $LIBS"
  11775. cat >conftest.$ac_ext <<_ACEOF
  11776. /* confdefs.h. */
  11777. _ACEOF
  11778. cat confdefs.h >>conftest.$ac_ext
  11779. cat >>conftest.$ac_ext <<_ACEOF
  11780. /* end confdefs.h. */
  11781. /* Override any GCC internal prototype to avoid an error.
  11782. Use char because int might match the return type of a GCC
  11783. builtin and then its argument prototype would still apply. */
  11784. #ifdef __cplusplus
  11785. extern "C"
  11786. #endif
  11787. char pthread_kill ();
  11788. int
  11789. main ()
  11790. {
  11791. return pthread_kill ();
  11792. ;
  11793. return 0;
  11794. }
  11795. _ACEOF
  11796. rm -f conftest.$ac_objext conftest$ac_exeext
  11797. if { (ac_try="$ac_link"
  11798. case "(($ac_try" in
  11799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11800. *) ac_try_echo=$ac_try;;
  11801. esac
  11802. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11803. $as_echo "$ac_try_echo") >&5
  11804. (eval "$ac_link") 2>conftest.er1
  11805. ac_status=$?
  11806. grep -v '^ *+' conftest.er1 >conftest.err
  11807. rm -f conftest.er1
  11808. cat conftest.err >&5
  11809. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11810. (exit $ac_status); } && {
  11811. test -z "$ac_cxx_werror_flag" ||
  11812. test ! -s conftest.err
  11813. } && test -s conftest$ac_exeext && {
  11814. test "$cross_compiling" = yes ||
  11815. $as_test_x conftest$ac_exeext
  11816. }; then
  11817. ac_cv_lib_pthread_pthread_kill=yes
  11818. else
  11819. $as_echo "$as_me: failed program was:" >&5
  11820. sed 's/^/| /' conftest.$ac_ext >&5
  11821. ac_cv_lib_pthread_pthread_kill=no
  11822. fi
  11823. rm -rf conftest.dSYM
  11824. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11825. conftest$ac_exeext conftest.$ac_ext
  11826. LIBS=$ac_check_lib_save_LIBS
  11827. fi
  11828. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11829. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  11830. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
  11831. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11832. # On Solaris and HP-UX, most pthread functions exist also in libc.
  11833. # Therefore pthread_in_use() needs to actually try to create a
  11834. # thread: pthread_create from libc will fail, whereas
  11835. # pthread_create will actually create a thread.
  11836. case "$host_os" in
  11837. solaris* | hpux*)
  11838. cat >>confdefs.h <<\_ACEOF
  11839. #define PTHREAD_IN_USE_DETECTION_HARD 1
  11840. _ACEOF
  11841. esac
  11842. fi
  11843. else
  11844. # Some library is needed. Try libpthread and libc_r.
  11845. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  11846. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  11847. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  11848. $as_echo_n "(cached) " >&6
  11849. else
  11850. ac_check_lib_save_LIBS=$LIBS
  11851. LIBS="-lpthread $LIBS"
  11852. cat >conftest.$ac_ext <<_ACEOF
  11853. /* confdefs.h. */
  11854. _ACEOF
  11855. cat confdefs.h >>conftest.$ac_ext
  11856. cat >>conftest.$ac_ext <<_ACEOF
  11857. /* end confdefs.h. */
  11858. /* Override any GCC internal prototype to avoid an error.
  11859. Use char because int might match the return type of a GCC
  11860. builtin and then its argument prototype would still apply. */
  11861. #ifdef __cplusplus
  11862. extern "C"
  11863. #endif
  11864. char pthread_kill ();
  11865. int
  11866. main ()
  11867. {
  11868. return pthread_kill ();
  11869. ;
  11870. return 0;
  11871. }
  11872. _ACEOF
  11873. rm -f conftest.$ac_objext conftest$ac_exeext
  11874. if { (ac_try="$ac_link"
  11875. case "(($ac_try" in
  11876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11877. *) ac_try_echo=$ac_try;;
  11878. esac
  11879. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11880. $as_echo "$ac_try_echo") >&5
  11881. (eval "$ac_link") 2>conftest.er1
  11882. ac_status=$?
  11883. grep -v '^ *+' conftest.er1 >conftest.err
  11884. rm -f conftest.er1
  11885. cat conftest.err >&5
  11886. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11887. (exit $ac_status); } && {
  11888. test -z "$ac_cxx_werror_flag" ||
  11889. test ! -s conftest.err
  11890. } && test -s conftest$ac_exeext && {
  11891. test "$cross_compiling" = yes ||
  11892. $as_test_x conftest$ac_exeext
  11893. }; then
  11894. ac_cv_lib_pthread_pthread_kill=yes
  11895. else
  11896. $as_echo "$as_me: failed program was:" >&5
  11897. sed 's/^/| /' conftest.$ac_ext >&5
  11898. ac_cv_lib_pthread_pthread_kill=no
  11899. fi
  11900. rm -rf conftest.dSYM
  11901. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11902. conftest$ac_exeext conftest.$ac_ext
  11903. LIBS=$ac_check_lib_save_LIBS
  11904. fi
  11905. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  11906. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  11907. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
  11908. gl_have_pthread=yes
  11909. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  11910. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  11911. fi
  11912. if test -z "$gl_have_pthread"; then
  11913. # For FreeBSD 4.
  11914. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  11915. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  11916. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  11917. $as_echo_n "(cached) " >&6
  11918. else
  11919. ac_check_lib_save_LIBS=$LIBS
  11920. LIBS="-lc_r $LIBS"
  11921. cat >conftest.$ac_ext <<_ACEOF
  11922. /* confdefs.h. */
  11923. _ACEOF
  11924. cat confdefs.h >>conftest.$ac_ext
  11925. cat >>conftest.$ac_ext <<_ACEOF
  11926. /* end confdefs.h. */
  11927. /* Override any GCC internal prototype to avoid an error.
  11928. Use char because int might match the return type of a GCC
  11929. builtin and then its argument prototype would still apply. */
  11930. #ifdef __cplusplus
  11931. extern "C"
  11932. #endif
  11933. char pthread_kill ();
  11934. int
  11935. main ()
  11936. {
  11937. return pthread_kill ();
  11938. ;
  11939. return 0;
  11940. }
  11941. _ACEOF
  11942. rm -f conftest.$ac_objext conftest$ac_exeext
  11943. if { (ac_try="$ac_link"
  11944. case "(($ac_try" in
  11945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11946. *) ac_try_echo=$ac_try;;
  11947. esac
  11948. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11949. $as_echo "$ac_try_echo") >&5
  11950. (eval "$ac_link") 2>conftest.er1
  11951. ac_status=$?
  11952. grep -v '^ *+' conftest.er1 >conftest.err
  11953. rm -f conftest.er1
  11954. cat conftest.err >&5
  11955. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11956. (exit $ac_status); } && {
  11957. test -z "$ac_cxx_werror_flag" ||
  11958. test ! -s conftest.err
  11959. } && test -s conftest$ac_exeext && {
  11960. test "$cross_compiling" = yes ||
  11961. $as_test_x conftest$ac_exeext
  11962. }; then
  11963. ac_cv_lib_c_r_pthread_kill=yes
  11964. else
  11965. $as_echo "$as_me: failed program was:" >&5
  11966. sed 's/^/| /' conftest.$ac_ext >&5
  11967. ac_cv_lib_c_r_pthread_kill=no
  11968. fi
  11969. rm -rf conftest.dSYM
  11970. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11971. conftest$ac_exeext conftest.$ac_ext
  11972. LIBS=$ac_check_lib_save_LIBS
  11973. fi
  11974. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  11975. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  11976. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
  11977. gl_have_pthread=yes
  11978. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  11979. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  11980. fi
  11981. fi
  11982. fi
  11983. if test -n "$gl_have_pthread"; then
  11984. gl_threads_api=posix
  11985. cat >>confdefs.h <<\_ACEOF
  11986. #define USE_POSIX_THREADS 1
  11987. _ACEOF
  11988. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  11989. if test $gl_have_weak = yes; then
  11990. cat >>confdefs.h <<\_ACEOF
  11991. #define USE_POSIX_THREADS_WEAK 1
  11992. _ACEOF
  11993. LIBTHREAD=
  11994. LTLIBTHREAD=
  11995. fi
  11996. fi
  11997. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  11998. # pthread_rwlock_* functions.
  11999. { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  12000. $as_echo_n "checking for pthread_rwlock_t... " >&6; }
  12001. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  12002. $as_echo_n "(cached) " >&6
  12003. else
  12004. ac_cv_type_pthread_rwlock_t=no
  12005. cat >conftest.$ac_ext <<_ACEOF
  12006. /* confdefs.h. */
  12007. _ACEOF
  12008. cat confdefs.h >>conftest.$ac_ext
  12009. cat >>conftest.$ac_ext <<_ACEOF
  12010. /* end confdefs.h. */
  12011. #include <pthread.h>
  12012. int
  12013. main ()
  12014. {
  12015. if (sizeof (pthread_rwlock_t))
  12016. return 0;
  12017. ;
  12018. return 0;
  12019. }
  12020. _ACEOF
  12021. rm -f conftest.$ac_objext
  12022. if { (ac_try="$ac_compile"
  12023. case "(($ac_try" in
  12024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12025. *) ac_try_echo=$ac_try;;
  12026. esac
  12027. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12028. $as_echo "$ac_try_echo") >&5
  12029. (eval "$ac_compile") 2>conftest.er1
  12030. ac_status=$?
  12031. grep -v '^ *+' conftest.er1 >conftest.err
  12032. rm -f conftest.er1
  12033. cat conftest.err >&5
  12034. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12035. (exit $ac_status); } && {
  12036. test -z "$ac_cxx_werror_flag" ||
  12037. test ! -s conftest.err
  12038. } && test -s conftest.$ac_objext; then
  12039. cat >conftest.$ac_ext <<_ACEOF
  12040. /* confdefs.h. */
  12041. _ACEOF
  12042. cat confdefs.h >>conftest.$ac_ext
  12043. cat >>conftest.$ac_ext <<_ACEOF
  12044. /* end confdefs.h. */
  12045. #include <pthread.h>
  12046. int
  12047. main ()
  12048. {
  12049. if (sizeof ((pthread_rwlock_t)))
  12050. return 0;
  12051. ;
  12052. return 0;
  12053. }
  12054. _ACEOF
  12055. rm -f conftest.$ac_objext
  12056. if { (ac_try="$ac_compile"
  12057. case "(($ac_try" in
  12058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12059. *) ac_try_echo=$ac_try;;
  12060. esac
  12061. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12062. $as_echo "$ac_try_echo") >&5
  12063. (eval "$ac_compile") 2>conftest.er1
  12064. ac_status=$?
  12065. grep -v '^ *+' conftest.er1 >conftest.err
  12066. rm -f conftest.er1
  12067. cat conftest.err >&5
  12068. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12069. (exit $ac_status); } && {
  12070. test -z "$ac_cxx_werror_flag" ||
  12071. test ! -s conftest.err
  12072. } && test -s conftest.$ac_objext; then
  12073. :
  12074. else
  12075. $as_echo "$as_me: failed program was:" >&5
  12076. sed 's/^/| /' conftest.$ac_ext >&5
  12077. ac_cv_type_pthread_rwlock_t=yes
  12078. fi
  12079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12080. else
  12081. $as_echo "$as_me: failed program was:" >&5
  12082. sed 's/^/| /' conftest.$ac_ext >&5
  12083. fi
  12084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12085. fi
  12086. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  12087. $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
  12088. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
  12089. cat >>confdefs.h <<\_ACEOF
  12090. #define HAVE_PTHREAD_RWLOCK 1
  12091. _ACEOF
  12092. fi
  12093. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  12094. cat >conftest.$ac_ext <<_ACEOF
  12095. /* confdefs.h. */
  12096. _ACEOF
  12097. cat confdefs.h >>conftest.$ac_ext
  12098. cat >>conftest.$ac_ext <<_ACEOF
  12099. /* end confdefs.h. */
  12100. #include <pthread.h>
  12101. int
  12102. main ()
  12103. {
  12104. #if __FreeBSD__ == 4
  12105. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  12106. #else
  12107. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  12108. return !x;
  12109. #endif
  12110. ;
  12111. return 0;
  12112. }
  12113. _ACEOF
  12114. rm -f conftest.$ac_objext
  12115. if { (ac_try="$ac_compile"
  12116. case "(($ac_try" in
  12117. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12118. *) ac_try_echo=$ac_try;;
  12119. esac
  12120. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12121. $as_echo "$ac_try_echo") >&5
  12122. (eval "$ac_compile") 2>conftest.er1
  12123. ac_status=$?
  12124. grep -v '^ *+' conftest.er1 >conftest.err
  12125. rm -f conftest.er1
  12126. cat conftest.err >&5
  12127. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12128. (exit $ac_status); } && {
  12129. test -z "$ac_cxx_werror_flag" ||
  12130. test ! -s conftest.err
  12131. } && test -s conftest.$ac_objext; then
  12132. cat >>confdefs.h <<\_ACEOF
  12133. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  12134. _ACEOF
  12135. else
  12136. $as_echo "$as_me: failed program was:" >&5
  12137. sed 's/^/| /' conftest.$ac_ext >&5
  12138. fi
  12139. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12140. fi
  12141. fi
  12142. fi
  12143. if test -z "$gl_have_pthread"; then
  12144. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  12145. gl_have_solaristhread=
  12146. gl_save_LIBS="$LIBS"
  12147. LIBS="$LIBS -lthread"
  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. #include <thread.h>
  12155. #include <synch.h>
  12156. int
  12157. main ()
  12158. {
  12159. thr_self();
  12160. ;
  12161. return 0;
  12162. }
  12163. _ACEOF
  12164. rm -f conftest.$ac_objext conftest$ac_exeext
  12165. if { (ac_try="$ac_link"
  12166. case "(($ac_try" in
  12167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12168. *) ac_try_echo=$ac_try;;
  12169. esac
  12170. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12171. $as_echo "$ac_try_echo") >&5
  12172. (eval "$ac_link") 2>conftest.er1
  12173. ac_status=$?
  12174. grep -v '^ *+' conftest.er1 >conftest.err
  12175. rm -f conftest.er1
  12176. cat conftest.err >&5
  12177. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12178. (exit $ac_status); } && {
  12179. test -z "$ac_cxx_werror_flag" ||
  12180. test ! -s conftest.err
  12181. } && test -s conftest$ac_exeext && {
  12182. test "$cross_compiling" = yes ||
  12183. $as_test_x conftest$ac_exeext
  12184. }; then
  12185. gl_have_solaristhread=yes
  12186. else
  12187. $as_echo "$as_me: failed program was:" >&5
  12188. sed 's/^/| /' conftest.$ac_ext >&5
  12189. fi
  12190. rm -rf conftest.dSYM
  12191. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12192. conftest$ac_exeext conftest.$ac_ext
  12193. LIBS="$gl_save_LIBS"
  12194. if test -n "$gl_have_solaristhread"; then
  12195. gl_threads_api=solaris
  12196. LIBTHREAD=-lthread
  12197. LTLIBTHREAD=-lthread
  12198. LIBMULTITHREAD="$LIBTHREAD"
  12199. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12200. cat >>confdefs.h <<\_ACEOF
  12201. #define USE_SOLARIS_THREADS 1
  12202. _ACEOF
  12203. if test $gl_have_weak = yes; then
  12204. cat >>confdefs.h <<\_ACEOF
  12205. #define USE_SOLARIS_THREADS_WEAK 1
  12206. _ACEOF
  12207. LIBTHREAD=
  12208. LTLIBTHREAD=
  12209. fi
  12210. fi
  12211. fi
  12212. fi
  12213. if test "$gl_use_threads" = pth; then
  12214. gl_save_CPPFLAGS="$CPPFLAGS"
  12215. { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
  12216. $as_echo_n "checking how to link with libpth... " >&6; }
  12217. if test "${ac_cv_libpth_libs+set}" = set; then
  12218. $as_echo_n "(cached) " >&6
  12219. else
  12220. use_additional=yes
  12221. acl_save_prefix="$prefix"
  12222. prefix="$acl_final_prefix"
  12223. acl_save_exec_prefix="$exec_prefix"
  12224. exec_prefix="$acl_final_exec_prefix"
  12225. eval additional_includedir=\"$includedir\"
  12226. eval additional_libdir=\"$libdir\"
  12227. exec_prefix="$acl_save_exec_prefix"
  12228. prefix="$acl_save_prefix"
  12229. # Check whether --with-libpth-prefix was given.
  12230. if test "${with_libpth_prefix+set}" = set; then
  12231. withval=$with_libpth_prefix;
  12232. if test "X$withval" = "Xno"; then
  12233. use_additional=no
  12234. else
  12235. if test "X$withval" = "X"; then
  12236. acl_save_prefix="$prefix"
  12237. prefix="$acl_final_prefix"
  12238. acl_save_exec_prefix="$exec_prefix"
  12239. exec_prefix="$acl_final_exec_prefix"
  12240. eval additional_includedir=\"$includedir\"
  12241. eval additional_libdir=\"$libdir\"
  12242. exec_prefix="$acl_save_exec_prefix"
  12243. prefix="$acl_save_prefix"
  12244. else
  12245. additional_includedir="$withval/include"
  12246. additional_libdir="$withval/$acl_libdirstem"
  12247. fi
  12248. fi
  12249. fi
  12250. LIBPTH=
  12251. LTLIBPTH=
  12252. INCPTH=
  12253. LIBPTH_PREFIX=
  12254. rpathdirs=
  12255. ltrpathdirs=
  12256. names_already_handled=
  12257. names_next_round='pth '
  12258. while test -n "$names_next_round"; do
  12259. names_this_round="$names_next_round"
  12260. names_next_round=
  12261. for name in $names_this_round; do
  12262. already_handled=
  12263. for n in $names_already_handled; do
  12264. if test "$n" = "$name"; then
  12265. already_handled=yes
  12266. break
  12267. fi
  12268. done
  12269. if test -z "$already_handled"; then
  12270. names_already_handled="$names_already_handled $name"
  12271. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12272. eval value=\"\$HAVE_LIB$uppername\"
  12273. if test -n "$value"; then
  12274. if test "$value" = yes; then
  12275. eval value=\"\$LIB$uppername\"
  12276. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  12277. eval value=\"\$LTLIB$uppername\"
  12278. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  12279. else
  12280. :
  12281. fi
  12282. else
  12283. found_dir=
  12284. found_la=
  12285. found_so=
  12286. found_a=
  12287. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12288. if test -n "$acl_shlibext"; then
  12289. shrext=".$acl_shlibext" # typically: shrext=.so
  12290. else
  12291. shrext=
  12292. fi
  12293. if test $use_additional = yes; then
  12294. dir="$additional_libdir"
  12295. if test -n "$acl_shlibext"; then
  12296. if test -f "$dir/$libname$shrext"; then
  12297. found_dir="$dir"
  12298. found_so="$dir/$libname$shrext"
  12299. else
  12300. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12301. ver=`(cd "$dir" && \
  12302. for f in "$libname$shrext".*; do echo "$f"; done \
  12303. | sed -e "s,^$libname$shrext\\\\.,," \
  12304. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12305. | sed 1q ) 2>/dev/null`
  12306. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12307. found_dir="$dir"
  12308. found_so="$dir/$libname$shrext.$ver"
  12309. fi
  12310. else
  12311. eval library_names=\"$acl_library_names_spec\"
  12312. for f in $library_names; do
  12313. if test -f "$dir/$f"; then
  12314. found_dir="$dir"
  12315. found_so="$dir/$f"
  12316. break
  12317. fi
  12318. done
  12319. fi
  12320. fi
  12321. fi
  12322. if test "X$found_dir" = "X"; then
  12323. if test -f "$dir/$libname.$acl_libext"; then
  12324. found_dir="$dir"
  12325. found_a="$dir/$libname.$acl_libext"
  12326. fi
  12327. fi
  12328. if test "X$found_dir" != "X"; then
  12329. if test -f "$dir/$libname.la"; then
  12330. found_la="$dir/$libname.la"
  12331. fi
  12332. fi
  12333. fi
  12334. if test "X$found_dir" = "X"; then
  12335. for x in $LDFLAGS $LTLIBPTH; do
  12336. acl_save_prefix="$prefix"
  12337. prefix="$acl_final_prefix"
  12338. acl_save_exec_prefix="$exec_prefix"
  12339. exec_prefix="$acl_final_exec_prefix"
  12340. eval x=\"$x\"
  12341. exec_prefix="$acl_save_exec_prefix"
  12342. prefix="$acl_save_prefix"
  12343. case "$x" in
  12344. -L*)
  12345. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12346. if test -n "$acl_shlibext"; then
  12347. if test -f "$dir/$libname$shrext"; then
  12348. found_dir="$dir"
  12349. found_so="$dir/$libname$shrext"
  12350. else
  12351. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12352. ver=`(cd "$dir" && \
  12353. for f in "$libname$shrext".*; do echo "$f"; done \
  12354. | sed -e "s,^$libname$shrext\\\\.,," \
  12355. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12356. | sed 1q ) 2>/dev/null`
  12357. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12358. found_dir="$dir"
  12359. found_so="$dir/$libname$shrext.$ver"
  12360. fi
  12361. else
  12362. eval library_names=\"$acl_library_names_spec\"
  12363. for f in $library_names; do
  12364. if test -f "$dir/$f"; then
  12365. found_dir="$dir"
  12366. found_so="$dir/$f"
  12367. break
  12368. fi
  12369. done
  12370. fi
  12371. fi
  12372. fi
  12373. if test "X$found_dir" = "X"; then
  12374. if test -f "$dir/$libname.$acl_libext"; then
  12375. found_dir="$dir"
  12376. found_a="$dir/$libname.$acl_libext"
  12377. fi
  12378. fi
  12379. if test "X$found_dir" != "X"; then
  12380. if test -f "$dir/$libname.la"; then
  12381. found_la="$dir/$libname.la"
  12382. fi
  12383. fi
  12384. ;;
  12385. esac
  12386. if test "X$found_dir" != "X"; then
  12387. break
  12388. fi
  12389. done
  12390. fi
  12391. if test "X$found_dir" != "X"; then
  12392. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  12393. if test "X$found_so" != "X"; then
  12394. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12395. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12396. else
  12397. haveit=
  12398. for x in $ltrpathdirs; do
  12399. if test "X$x" = "X$found_dir"; then
  12400. haveit=yes
  12401. break
  12402. fi
  12403. done
  12404. if test -z "$haveit"; then
  12405. ltrpathdirs="$ltrpathdirs $found_dir"
  12406. fi
  12407. if test "$acl_hardcode_direct" = yes; then
  12408. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12409. else
  12410. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12411. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12412. haveit=
  12413. for x in $rpathdirs; do
  12414. if test "X$x" = "X$found_dir"; then
  12415. haveit=yes
  12416. break
  12417. fi
  12418. done
  12419. if test -z "$haveit"; then
  12420. rpathdirs="$rpathdirs $found_dir"
  12421. fi
  12422. else
  12423. haveit=
  12424. for x in $LDFLAGS $LIBPTH; do
  12425. acl_save_prefix="$prefix"
  12426. prefix="$acl_final_prefix"
  12427. acl_save_exec_prefix="$exec_prefix"
  12428. exec_prefix="$acl_final_exec_prefix"
  12429. eval x=\"$x\"
  12430. exec_prefix="$acl_save_exec_prefix"
  12431. prefix="$acl_save_prefix"
  12432. if test "X$x" = "X-L$found_dir"; then
  12433. haveit=yes
  12434. break
  12435. fi
  12436. done
  12437. if test -z "$haveit"; then
  12438. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  12439. fi
  12440. if test "$acl_hardcode_minus_L" != no; then
  12441. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12442. else
  12443. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  12444. fi
  12445. fi
  12446. fi
  12447. fi
  12448. else
  12449. if test "X$found_a" != "X"; then
  12450. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  12451. else
  12452. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  12453. fi
  12454. fi
  12455. additional_includedir=
  12456. case "$found_dir" in
  12457. */$acl_libdirstem | */$acl_libdirstem/)
  12458. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12459. LIBPTH_PREFIX="$basedir"
  12460. additional_includedir="$basedir/include"
  12461. ;;
  12462. esac
  12463. if test "X$additional_includedir" != "X"; then
  12464. if test "X$additional_includedir" != "X/usr/include"; then
  12465. haveit=
  12466. if test "X$additional_includedir" = "X/usr/local/include"; then
  12467. if test -n "$GCC"; then
  12468. case $host_os in
  12469. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12470. esac
  12471. fi
  12472. fi
  12473. if test -z "$haveit"; then
  12474. for x in $CPPFLAGS $INCPTH; do
  12475. acl_save_prefix="$prefix"
  12476. prefix="$acl_final_prefix"
  12477. acl_save_exec_prefix="$exec_prefix"
  12478. exec_prefix="$acl_final_exec_prefix"
  12479. eval x=\"$x\"
  12480. exec_prefix="$acl_save_exec_prefix"
  12481. prefix="$acl_save_prefix"
  12482. if test "X$x" = "X-I$additional_includedir"; then
  12483. haveit=yes
  12484. break
  12485. fi
  12486. done
  12487. if test -z "$haveit"; then
  12488. if test -d "$additional_includedir"; then
  12489. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  12490. fi
  12491. fi
  12492. fi
  12493. fi
  12494. fi
  12495. if test -n "$found_la"; then
  12496. save_libdir="$libdir"
  12497. case "$found_la" in
  12498. */* | *\\*) . "$found_la" ;;
  12499. *) . "./$found_la" ;;
  12500. esac
  12501. libdir="$save_libdir"
  12502. for dep in $dependency_libs; do
  12503. case "$dep" in
  12504. -L*)
  12505. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12506. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12507. haveit=
  12508. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12509. if test -n "$GCC"; then
  12510. case $host_os in
  12511. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12512. esac
  12513. fi
  12514. fi
  12515. if test -z "$haveit"; then
  12516. haveit=
  12517. for x in $LDFLAGS $LIBPTH; do
  12518. acl_save_prefix="$prefix"
  12519. prefix="$acl_final_prefix"
  12520. acl_save_exec_prefix="$exec_prefix"
  12521. exec_prefix="$acl_final_exec_prefix"
  12522. eval x=\"$x\"
  12523. exec_prefix="$acl_save_exec_prefix"
  12524. prefix="$acl_save_prefix"
  12525. if test "X$x" = "X-L$additional_libdir"; then
  12526. haveit=yes
  12527. break
  12528. fi
  12529. done
  12530. if test -z "$haveit"; then
  12531. if test -d "$additional_libdir"; then
  12532. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  12533. fi
  12534. fi
  12535. haveit=
  12536. for x in $LDFLAGS $LTLIBPTH; do
  12537. acl_save_prefix="$prefix"
  12538. prefix="$acl_final_prefix"
  12539. acl_save_exec_prefix="$exec_prefix"
  12540. exec_prefix="$acl_final_exec_prefix"
  12541. eval x=\"$x\"
  12542. exec_prefix="$acl_save_exec_prefix"
  12543. prefix="$acl_save_prefix"
  12544. if test "X$x" = "X-L$additional_libdir"; then
  12545. haveit=yes
  12546. break
  12547. fi
  12548. done
  12549. if test -z "$haveit"; then
  12550. if test -d "$additional_libdir"; then
  12551. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  12552. fi
  12553. fi
  12554. fi
  12555. fi
  12556. ;;
  12557. -R*)
  12558. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12559. if test "$enable_rpath" != no; then
  12560. haveit=
  12561. for x in $rpathdirs; do
  12562. if test "X$x" = "X$dir"; then
  12563. haveit=yes
  12564. break
  12565. fi
  12566. done
  12567. if test -z "$haveit"; then
  12568. rpathdirs="$rpathdirs $dir"
  12569. fi
  12570. haveit=
  12571. for x in $ltrpathdirs; do
  12572. if test "X$x" = "X$dir"; then
  12573. haveit=yes
  12574. break
  12575. fi
  12576. done
  12577. if test -z "$haveit"; then
  12578. ltrpathdirs="$ltrpathdirs $dir"
  12579. fi
  12580. fi
  12581. ;;
  12582. -l*)
  12583. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12584. ;;
  12585. *.la)
  12586. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12587. ;;
  12588. *)
  12589. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  12590. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  12591. ;;
  12592. esac
  12593. done
  12594. fi
  12595. else
  12596. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  12597. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  12598. fi
  12599. fi
  12600. fi
  12601. done
  12602. done
  12603. if test "X$rpathdirs" != "X"; then
  12604. if test -n "$acl_hardcode_libdir_separator"; then
  12605. alldirs=
  12606. for found_dir in $rpathdirs; do
  12607. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12608. done
  12609. acl_save_libdir="$libdir"
  12610. libdir="$alldirs"
  12611. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12612. libdir="$acl_save_libdir"
  12613. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  12614. else
  12615. for found_dir in $rpathdirs; do
  12616. acl_save_libdir="$libdir"
  12617. libdir="$found_dir"
  12618. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12619. libdir="$acl_save_libdir"
  12620. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  12621. done
  12622. fi
  12623. fi
  12624. if test "X$ltrpathdirs" != "X"; then
  12625. for found_dir in $ltrpathdirs; do
  12626. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  12627. done
  12628. fi
  12629. ac_cv_libpth_libs="$LIBPTH"
  12630. ac_cv_libpth_ltlibs="$LTLIBPTH"
  12631. ac_cv_libpth_cppflags="$INCPTH"
  12632. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  12633. fi
  12634. { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  12635. $as_echo "$ac_cv_libpth_libs" >&6; }
  12636. LIBPTH="$ac_cv_libpth_libs"
  12637. LTLIBPTH="$ac_cv_libpth_ltlibs"
  12638. INCPTH="$ac_cv_libpth_cppflags"
  12639. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  12640. for element in $INCPTH; do
  12641. haveit=
  12642. for x in $CPPFLAGS; do
  12643. acl_save_prefix="$prefix"
  12644. prefix="$acl_final_prefix"
  12645. acl_save_exec_prefix="$exec_prefix"
  12646. exec_prefix="$acl_final_exec_prefix"
  12647. eval x=\"$x\"
  12648. exec_prefix="$acl_save_exec_prefix"
  12649. prefix="$acl_save_prefix"
  12650. if test "X$x" = "X$element"; then
  12651. haveit=yes
  12652. break
  12653. fi
  12654. done
  12655. if test -z "$haveit"; then
  12656. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12657. fi
  12658. done
  12659. HAVE_LIBPTH=yes
  12660. gl_have_pth=
  12661. gl_save_LIBS="$LIBS"
  12662. LIBS="$LIBS -lpth"
  12663. cat >conftest.$ac_ext <<_ACEOF
  12664. /* confdefs.h. */
  12665. _ACEOF
  12666. cat confdefs.h >>conftest.$ac_ext
  12667. cat >>conftest.$ac_ext <<_ACEOF
  12668. /* end confdefs.h. */
  12669. #include <pth.h>
  12670. int
  12671. main ()
  12672. {
  12673. pth_self();
  12674. ;
  12675. return 0;
  12676. }
  12677. _ACEOF
  12678. rm -f conftest.$ac_objext conftest$ac_exeext
  12679. if { (ac_try="$ac_link"
  12680. case "(($ac_try" in
  12681. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12682. *) ac_try_echo=$ac_try;;
  12683. esac
  12684. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12685. $as_echo "$ac_try_echo") >&5
  12686. (eval "$ac_link") 2>conftest.er1
  12687. ac_status=$?
  12688. grep -v '^ *+' conftest.er1 >conftest.err
  12689. rm -f conftest.er1
  12690. cat conftest.err >&5
  12691. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12692. (exit $ac_status); } && {
  12693. test -z "$ac_cxx_werror_flag" ||
  12694. test ! -s conftest.err
  12695. } && test -s conftest$ac_exeext && {
  12696. test "$cross_compiling" = yes ||
  12697. $as_test_x conftest$ac_exeext
  12698. }; then
  12699. gl_have_pth=yes
  12700. else
  12701. $as_echo "$as_me: failed program was:" >&5
  12702. sed 's/^/| /' conftest.$ac_ext >&5
  12703. fi
  12704. rm -rf conftest.dSYM
  12705. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12706. conftest$ac_exeext conftest.$ac_ext
  12707. LIBS="$gl_save_LIBS"
  12708. if test -n "$gl_have_pth"; then
  12709. gl_threads_api=pth
  12710. LIBTHREAD="$LIBPTH"
  12711. LTLIBTHREAD="$LTLIBPTH"
  12712. LIBMULTITHREAD="$LIBTHREAD"
  12713. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12714. cat >>confdefs.h <<\_ACEOF
  12715. #define USE_PTH_THREADS 1
  12716. _ACEOF
  12717. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12718. if test $gl_have_weak = yes; then
  12719. cat >>confdefs.h <<\_ACEOF
  12720. #define USE_PTH_THREADS_WEAK 1
  12721. _ACEOF
  12722. LIBTHREAD=
  12723. LTLIBTHREAD=
  12724. fi
  12725. fi
  12726. else
  12727. CPPFLAGS="$gl_save_CPPFLAGS"
  12728. fi
  12729. fi
  12730. if test -z "$gl_have_pthread"; then
  12731. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  12732. if { case "$host_os" in
  12733. mingw*) true;;
  12734. *) false;;
  12735. esac
  12736. }; then
  12737. gl_threads_api=win32
  12738. cat >>confdefs.h <<\_ACEOF
  12739. #define USE_WIN32_THREADS 1
  12740. _ACEOF
  12741. fi
  12742. fi
  12743. fi
  12744. fi
  12745. { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
  12746. $as_echo_n "checking for multithread API to use... " >&6; }
  12747. { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  12748. $as_echo "$gl_threads_api" >&6; }
  12749. use_additional=yes
  12750. acl_save_prefix="$prefix"
  12751. prefix="$acl_final_prefix"
  12752. acl_save_exec_prefix="$exec_prefix"
  12753. exec_prefix="$acl_final_exec_prefix"
  12754. eval additional_includedir=\"$includedir\"
  12755. eval additional_libdir=\"$libdir\"
  12756. exec_prefix="$acl_save_exec_prefix"
  12757. prefix="$acl_save_prefix"
  12758. # Check whether --with-libiconv-prefix was given.
  12759. if test "${with_libiconv_prefix+set}" = set; then
  12760. withval=$with_libiconv_prefix;
  12761. if test "X$withval" = "Xno"; then
  12762. use_additional=no
  12763. else
  12764. if test "X$withval" = "X"; then
  12765. acl_save_prefix="$prefix"
  12766. prefix="$acl_final_prefix"
  12767. acl_save_exec_prefix="$exec_prefix"
  12768. exec_prefix="$acl_final_exec_prefix"
  12769. eval additional_includedir=\"$includedir\"
  12770. eval additional_libdir=\"$libdir\"
  12771. exec_prefix="$acl_save_exec_prefix"
  12772. prefix="$acl_save_prefix"
  12773. else
  12774. additional_includedir="$withval/include"
  12775. additional_libdir="$withval/$acl_libdirstem"
  12776. fi
  12777. fi
  12778. fi
  12779. LIBICONV=
  12780. LTLIBICONV=
  12781. INCICONV=
  12782. LIBICONV_PREFIX=
  12783. rpathdirs=
  12784. ltrpathdirs=
  12785. names_already_handled=
  12786. names_next_round='iconv '
  12787. while test -n "$names_next_round"; do
  12788. names_this_round="$names_next_round"
  12789. names_next_round=
  12790. for name in $names_this_round; do
  12791. already_handled=
  12792. for n in $names_already_handled; do
  12793. if test "$n" = "$name"; then
  12794. already_handled=yes
  12795. break
  12796. fi
  12797. done
  12798. if test -z "$already_handled"; then
  12799. names_already_handled="$names_already_handled $name"
  12800. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12801. eval value=\"\$HAVE_LIB$uppername\"
  12802. if test -n "$value"; then
  12803. if test "$value" = yes; then
  12804. eval value=\"\$LIB$uppername\"
  12805. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  12806. eval value=\"\$LTLIB$uppername\"
  12807. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  12808. else
  12809. :
  12810. fi
  12811. else
  12812. found_dir=
  12813. found_la=
  12814. found_so=
  12815. found_a=
  12816. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12817. if test -n "$acl_shlibext"; then
  12818. shrext=".$acl_shlibext" # typically: shrext=.so
  12819. else
  12820. shrext=
  12821. fi
  12822. if test $use_additional = yes; then
  12823. dir="$additional_libdir"
  12824. if test -n "$acl_shlibext"; then
  12825. if test -f "$dir/$libname$shrext"; then
  12826. found_dir="$dir"
  12827. found_so="$dir/$libname$shrext"
  12828. else
  12829. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12830. ver=`(cd "$dir" && \
  12831. for f in "$libname$shrext".*; do echo "$f"; done \
  12832. | sed -e "s,^$libname$shrext\\\\.,," \
  12833. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12834. | sed 1q ) 2>/dev/null`
  12835. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12836. found_dir="$dir"
  12837. found_so="$dir/$libname$shrext.$ver"
  12838. fi
  12839. else
  12840. eval library_names=\"$acl_library_names_spec\"
  12841. for f in $library_names; do
  12842. if test -f "$dir/$f"; then
  12843. found_dir="$dir"
  12844. found_so="$dir/$f"
  12845. break
  12846. fi
  12847. done
  12848. fi
  12849. fi
  12850. fi
  12851. if test "X$found_dir" = "X"; then
  12852. if test -f "$dir/$libname.$acl_libext"; then
  12853. found_dir="$dir"
  12854. found_a="$dir/$libname.$acl_libext"
  12855. fi
  12856. fi
  12857. if test "X$found_dir" != "X"; then
  12858. if test -f "$dir/$libname.la"; then
  12859. found_la="$dir/$libname.la"
  12860. fi
  12861. fi
  12862. fi
  12863. if test "X$found_dir" = "X"; then
  12864. for x in $LDFLAGS $LTLIBICONV; do
  12865. acl_save_prefix="$prefix"
  12866. prefix="$acl_final_prefix"
  12867. acl_save_exec_prefix="$exec_prefix"
  12868. exec_prefix="$acl_final_exec_prefix"
  12869. eval x=\"$x\"
  12870. exec_prefix="$acl_save_exec_prefix"
  12871. prefix="$acl_save_prefix"
  12872. case "$x" in
  12873. -L*)
  12874. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12875. if test -n "$acl_shlibext"; then
  12876. if test -f "$dir/$libname$shrext"; then
  12877. found_dir="$dir"
  12878. found_so="$dir/$libname$shrext"
  12879. else
  12880. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12881. ver=`(cd "$dir" && \
  12882. for f in "$libname$shrext".*; do echo "$f"; done \
  12883. | sed -e "s,^$libname$shrext\\\\.,," \
  12884. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12885. | sed 1q ) 2>/dev/null`
  12886. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12887. found_dir="$dir"
  12888. found_so="$dir/$libname$shrext.$ver"
  12889. fi
  12890. else
  12891. eval library_names=\"$acl_library_names_spec\"
  12892. for f in $library_names; do
  12893. if test -f "$dir/$f"; then
  12894. found_dir="$dir"
  12895. found_so="$dir/$f"
  12896. break
  12897. fi
  12898. done
  12899. fi
  12900. fi
  12901. fi
  12902. if test "X$found_dir" = "X"; then
  12903. if test -f "$dir/$libname.$acl_libext"; then
  12904. found_dir="$dir"
  12905. found_a="$dir/$libname.$acl_libext"
  12906. fi
  12907. fi
  12908. if test "X$found_dir" != "X"; then
  12909. if test -f "$dir/$libname.la"; then
  12910. found_la="$dir/$libname.la"
  12911. fi
  12912. fi
  12913. ;;
  12914. esac
  12915. if test "X$found_dir" != "X"; then
  12916. break
  12917. fi
  12918. done
  12919. fi
  12920. if test "X$found_dir" != "X"; then
  12921. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  12922. if test "X$found_so" != "X"; then
  12923. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12924. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12925. else
  12926. haveit=
  12927. for x in $ltrpathdirs; do
  12928. if test "X$x" = "X$found_dir"; then
  12929. haveit=yes
  12930. break
  12931. fi
  12932. done
  12933. if test -z "$haveit"; then
  12934. ltrpathdirs="$ltrpathdirs $found_dir"
  12935. fi
  12936. if test "$acl_hardcode_direct" = yes; then
  12937. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12938. else
  12939. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12940. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12941. haveit=
  12942. for x in $rpathdirs; do
  12943. if test "X$x" = "X$found_dir"; then
  12944. haveit=yes
  12945. break
  12946. fi
  12947. done
  12948. if test -z "$haveit"; then
  12949. rpathdirs="$rpathdirs $found_dir"
  12950. fi
  12951. else
  12952. haveit=
  12953. for x in $LDFLAGS $LIBICONV; do
  12954. acl_save_prefix="$prefix"
  12955. prefix="$acl_final_prefix"
  12956. acl_save_exec_prefix="$exec_prefix"
  12957. exec_prefix="$acl_final_exec_prefix"
  12958. eval x=\"$x\"
  12959. exec_prefix="$acl_save_exec_prefix"
  12960. prefix="$acl_save_prefix"
  12961. if test "X$x" = "X-L$found_dir"; then
  12962. haveit=yes
  12963. break
  12964. fi
  12965. done
  12966. if test -z "$haveit"; then
  12967. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  12968. fi
  12969. if test "$acl_hardcode_minus_L" != no; then
  12970. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  12971. else
  12972. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  12973. fi
  12974. fi
  12975. fi
  12976. fi
  12977. else
  12978. if test "X$found_a" != "X"; then
  12979. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  12980. else
  12981. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  12982. fi
  12983. fi
  12984. additional_includedir=
  12985. case "$found_dir" in
  12986. */$acl_libdirstem | */$acl_libdirstem/)
  12987. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12988. LIBICONV_PREFIX="$basedir"
  12989. additional_includedir="$basedir/include"
  12990. ;;
  12991. esac
  12992. if test "X$additional_includedir" != "X"; then
  12993. if test "X$additional_includedir" != "X/usr/include"; then
  12994. haveit=
  12995. if test "X$additional_includedir" = "X/usr/local/include"; then
  12996. if test -n "$GCC"; then
  12997. case $host_os in
  12998. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12999. esac
  13000. fi
  13001. fi
  13002. if test -z "$haveit"; then
  13003. for x in $CPPFLAGS $INCICONV; do
  13004. acl_save_prefix="$prefix"
  13005. prefix="$acl_final_prefix"
  13006. acl_save_exec_prefix="$exec_prefix"
  13007. exec_prefix="$acl_final_exec_prefix"
  13008. eval x=\"$x\"
  13009. exec_prefix="$acl_save_exec_prefix"
  13010. prefix="$acl_save_prefix"
  13011. if test "X$x" = "X-I$additional_includedir"; then
  13012. haveit=yes
  13013. break
  13014. fi
  13015. done
  13016. if test -z "$haveit"; then
  13017. if test -d "$additional_includedir"; then
  13018. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  13019. fi
  13020. fi
  13021. fi
  13022. fi
  13023. fi
  13024. if test -n "$found_la"; then
  13025. save_libdir="$libdir"
  13026. case "$found_la" in
  13027. */* | *\\*) . "$found_la" ;;
  13028. *) . "./$found_la" ;;
  13029. esac
  13030. libdir="$save_libdir"
  13031. for dep in $dependency_libs; do
  13032. case "$dep" in
  13033. -L*)
  13034. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13035. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  13036. haveit=
  13037. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  13038. if test -n "$GCC"; then
  13039. case $host_os in
  13040. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13041. esac
  13042. fi
  13043. fi
  13044. if test -z "$haveit"; then
  13045. haveit=
  13046. for x in $LDFLAGS $LIBICONV; do
  13047. acl_save_prefix="$prefix"
  13048. prefix="$acl_final_prefix"
  13049. acl_save_exec_prefix="$exec_prefix"
  13050. exec_prefix="$acl_final_exec_prefix"
  13051. eval x=\"$x\"
  13052. exec_prefix="$acl_save_exec_prefix"
  13053. prefix="$acl_save_prefix"
  13054. if test "X$x" = "X-L$additional_libdir"; then
  13055. haveit=yes
  13056. break
  13057. fi
  13058. done
  13059. if test -z "$haveit"; then
  13060. if test -d "$additional_libdir"; then
  13061. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  13062. fi
  13063. fi
  13064. haveit=
  13065. for x in $LDFLAGS $LTLIBICONV; do
  13066. acl_save_prefix="$prefix"
  13067. prefix="$acl_final_prefix"
  13068. acl_save_exec_prefix="$exec_prefix"
  13069. exec_prefix="$acl_final_exec_prefix"
  13070. eval x=\"$x\"
  13071. exec_prefix="$acl_save_exec_prefix"
  13072. prefix="$acl_save_prefix"
  13073. if test "X$x" = "X-L$additional_libdir"; then
  13074. haveit=yes
  13075. break
  13076. fi
  13077. done
  13078. if test -z "$haveit"; then
  13079. if test -d "$additional_libdir"; then
  13080. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  13081. fi
  13082. fi
  13083. fi
  13084. fi
  13085. ;;
  13086. -R*)
  13087. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13088. if test "$enable_rpath" != no; then
  13089. haveit=
  13090. for x in $rpathdirs; do
  13091. if test "X$x" = "X$dir"; then
  13092. haveit=yes
  13093. break
  13094. fi
  13095. done
  13096. if test -z "$haveit"; then
  13097. rpathdirs="$rpathdirs $dir"
  13098. fi
  13099. haveit=
  13100. for x in $ltrpathdirs; do
  13101. if test "X$x" = "X$dir"; then
  13102. haveit=yes
  13103. break
  13104. fi
  13105. done
  13106. if test -z "$haveit"; then
  13107. ltrpathdirs="$ltrpathdirs $dir"
  13108. fi
  13109. fi
  13110. ;;
  13111. -l*)
  13112. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13113. ;;
  13114. *.la)
  13115. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13116. ;;
  13117. *)
  13118. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  13119. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  13120. ;;
  13121. esac
  13122. done
  13123. fi
  13124. else
  13125. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13126. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  13127. fi
  13128. fi
  13129. fi
  13130. done
  13131. done
  13132. if test "X$rpathdirs" != "X"; then
  13133. if test -n "$acl_hardcode_libdir_separator"; then
  13134. alldirs=
  13135. for found_dir in $rpathdirs; do
  13136. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  13137. done
  13138. acl_save_libdir="$libdir"
  13139. libdir="$alldirs"
  13140. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13141. libdir="$acl_save_libdir"
  13142. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13143. else
  13144. for found_dir in $rpathdirs; do
  13145. acl_save_libdir="$libdir"
  13146. libdir="$found_dir"
  13147. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13148. libdir="$acl_save_libdir"
  13149. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13150. done
  13151. fi
  13152. fi
  13153. if test "X$ltrpathdirs" != "X"; then
  13154. for found_dir in $ltrpathdirs; do
  13155. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  13156. done
  13157. fi
  13158. cat >conftest.$ac_ext <<_ACEOF
  13159. /* confdefs.h. */
  13160. _ACEOF
  13161. cat confdefs.h >>conftest.$ac_ext
  13162. cat >>conftest.$ac_ext <<_ACEOF
  13163. /* end confdefs.h. */
  13164. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  13165. int
  13166. main ()
  13167. {
  13168. ;
  13169. return 0;
  13170. }
  13171. _ACEOF
  13172. rm -f conftest.$ac_objext conftest$ac_exeext
  13173. if { (ac_try="$ac_link"
  13174. case "(($ac_try" in
  13175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13176. *) ac_try_echo=$ac_try;;
  13177. esac
  13178. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13179. $as_echo "$ac_try_echo") >&5
  13180. (eval "$ac_link") 2>conftest.er1
  13181. ac_status=$?
  13182. grep -v '^ *+' conftest.er1 >conftest.err
  13183. rm -f conftest.er1
  13184. cat conftest.err >&5
  13185. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13186. (exit $ac_status); } && {
  13187. test -z "$ac_cxx_werror_flag" ||
  13188. test ! -s conftest.err
  13189. } && test -s conftest$ac_exeext && {
  13190. test "$cross_compiling" = yes ||
  13191. $as_test_x conftest$ac_exeext
  13192. }; then
  13193. cat >>confdefs.h <<\_ACEOF
  13194. #define HAVE_BUILTIN_EXPECT 1
  13195. _ACEOF
  13196. else
  13197. $as_echo "$as_me: failed program was:" >&5
  13198. sed 's/^/| /' conftest.$ac_ext >&5
  13199. fi
  13200. rm -rf conftest.dSYM
  13201. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13202. conftest$ac_exeext conftest.$ac_ext
  13203. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  13204. do
  13205. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13206. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13207. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13208. $as_echo_n "checking for $ac_header... " >&6; }
  13209. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13210. $as_echo_n "(cached) " >&6
  13211. fi
  13212. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13213. $as_echo "$as_val"'`
  13214. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13215. $as_echo "$ac_res" >&6; }
  13216. else
  13217. # Is the header compilable?
  13218. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13219. $as_echo_n "checking $ac_header usability... " >&6; }
  13220. cat >conftest.$ac_ext <<_ACEOF
  13221. /* confdefs.h. */
  13222. _ACEOF
  13223. cat confdefs.h >>conftest.$ac_ext
  13224. cat >>conftest.$ac_ext <<_ACEOF
  13225. /* end confdefs.h. */
  13226. $ac_includes_default
  13227. #include <$ac_header>
  13228. _ACEOF
  13229. rm -f conftest.$ac_objext
  13230. if { (ac_try="$ac_compile"
  13231. case "(($ac_try" in
  13232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13233. *) ac_try_echo=$ac_try;;
  13234. esac
  13235. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13236. $as_echo "$ac_try_echo") >&5
  13237. (eval "$ac_compile") 2>conftest.er1
  13238. ac_status=$?
  13239. grep -v '^ *+' conftest.er1 >conftest.err
  13240. rm -f conftest.er1
  13241. cat conftest.err >&5
  13242. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13243. (exit $ac_status); } && {
  13244. test -z "$ac_cxx_werror_flag" ||
  13245. test ! -s conftest.err
  13246. } && test -s conftest.$ac_objext; then
  13247. ac_header_compiler=yes
  13248. else
  13249. $as_echo "$as_me: failed program was:" >&5
  13250. sed 's/^/| /' conftest.$ac_ext >&5
  13251. ac_header_compiler=no
  13252. fi
  13253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13254. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13255. $as_echo "$ac_header_compiler" >&6; }
  13256. # Is the header present?
  13257. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13258. $as_echo_n "checking $ac_header presence... " >&6; }
  13259. cat >conftest.$ac_ext <<_ACEOF
  13260. /* confdefs.h. */
  13261. _ACEOF
  13262. cat confdefs.h >>conftest.$ac_ext
  13263. cat >>conftest.$ac_ext <<_ACEOF
  13264. /* end confdefs.h. */
  13265. #include <$ac_header>
  13266. _ACEOF
  13267. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13268. case "(($ac_try" in
  13269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13270. *) ac_try_echo=$ac_try;;
  13271. esac
  13272. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13273. $as_echo "$ac_try_echo") >&5
  13274. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13275. ac_status=$?
  13276. grep -v '^ *+' conftest.er1 >conftest.err
  13277. rm -f conftest.er1
  13278. cat conftest.err >&5
  13279. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13280. (exit $ac_status); } >/dev/null && {
  13281. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13282. test ! -s conftest.err
  13283. }; then
  13284. ac_header_preproc=yes
  13285. else
  13286. $as_echo "$as_me: failed program was:" >&5
  13287. sed 's/^/| /' conftest.$ac_ext >&5
  13288. ac_header_preproc=no
  13289. fi
  13290. rm -f conftest.err conftest.$ac_ext
  13291. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13292. $as_echo "$ac_header_preproc" >&6; }
  13293. # So? What about this header?
  13294. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13295. yes:no: )
  13296. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13297. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13298. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13299. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13300. ac_header_preproc=yes
  13301. ;;
  13302. no:yes:* )
  13303. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13304. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13305. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13306. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13307. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13308. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13309. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13310. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13311. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13312. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13313. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13314. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13315. ( cat <<\_ASBOX
  13316. ## ----------------------------------------------- ##
  13317. ## Report this to t-tujikawa@users.sourceforge.net ##
  13318. ## ----------------------------------------------- ##
  13319. _ASBOX
  13320. ) | sed "s/^/$as_me: WARNING: /" >&2
  13321. ;;
  13322. esac
  13323. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13324. $as_echo_n "checking for $ac_header... " >&6; }
  13325. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13326. $as_echo_n "(cached) " >&6
  13327. else
  13328. eval "$as_ac_Header=\$ac_header_preproc"
  13329. fi
  13330. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13331. $as_echo "$as_val"'`
  13332. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13333. $as_echo "$ac_res" >&6; }
  13334. fi
  13335. as_val=`eval 'as_val=${'$as_ac_Header'}
  13336. $as_echo "$as_val"'`
  13337. if test "x$as_val" = x""yes; then
  13338. cat >>confdefs.h <<_ACEOF
  13339. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13340. _ACEOF
  13341. fi
  13342. done
  13343. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  13344. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  13345. argz_next __fsetlocking
  13346. do
  13347. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13348. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  13349. $as_echo_n "checking for $ac_func... " >&6; }
  13350. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  13351. $as_echo_n "(cached) " >&6
  13352. else
  13353. cat >conftest.$ac_ext <<_ACEOF
  13354. /* confdefs.h. */
  13355. _ACEOF
  13356. cat confdefs.h >>conftest.$ac_ext
  13357. cat >>conftest.$ac_ext <<_ACEOF
  13358. /* end confdefs.h. */
  13359. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13360. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13361. #define $ac_func innocuous_$ac_func
  13362. /* System header to define __stub macros and hopefully few prototypes,
  13363. which can conflict with char $ac_func (); below.
  13364. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13365. <limits.h> exists even on freestanding compilers. */
  13366. #ifdef __STDC__
  13367. # include <limits.h>
  13368. #else
  13369. # include <assert.h>
  13370. #endif
  13371. #undef $ac_func
  13372. /* Override any GCC internal prototype to avoid an error.
  13373. Use char because int might match the return type of a GCC
  13374. builtin and then its argument prototype would still apply. */
  13375. #ifdef __cplusplus
  13376. extern "C"
  13377. #endif
  13378. char $ac_func ();
  13379. /* The GNU C library defines this for functions which it implements
  13380. to always fail with ENOSYS. Some functions are actually named
  13381. something starting with __ and the normal name is an alias. */
  13382. #if defined __stub_$ac_func || defined __stub___$ac_func
  13383. choke me
  13384. #endif
  13385. int
  13386. main ()
  13387. {
  13388. return $ac_func ();
  13389. ;
  13390. return 0;
  13391. }
  13392. _ACEOF
  13393. rm -f conftest.$ac_objext conftest$ac_exeext
  13394. if { (ac_try="$ac_link"
  13395. case "(($ac_try" in
  13396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13397. *) ac_try_echo=$ac_try;;
  13398. esac
  13399. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13400. $as_echo "$ac_try_echo") >&5
  13401. (eval "$ac_link") 2>conftest.er1
  13402. ac_status=$?
  13403. grep -v '^ *+' conftest.er1 >conftest.err
  13404. rm -f conftest.er1
  13405. cat conftest.err >&5
  13406. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13407. (exit $ac_status); } && {
  13408. test -z "$ac_cxx_werror_flag" ||
  13409. test ! -s conftest.err
  13410. } && test -s conftest$ac_exeext && {
  13411. test "$cross_compiling" = yes ||
  13412. $as_test_x conftest$ac_exeext
  13413. }; then
  13414. eval "$as_ac_var=yes"
  13415. else
  13416. $as_echo "$as_me: failed program was:" >&5
  13417. sed 's/^/| /' conftest.$ac_ext >&5
  13418. eval "$as_ac_var=no"
  13419. fi
  13420. rm -rf conftest.dSYM
  13421. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13422. conftest$ac_exeext conftest.$ac_ext
  13423. fi
  13424. ac_res=`eval 'as_val=${'$as_ac_var'}
  13425. $as_echo "$as_val"'`
  13426. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13427. $as_echo "$ac_res" >&6; }
  13428. as_val=`eval 'as_val=${'$as_ac_var'}
  13429. $as_echo "$as_val"'`
  13430. if test "x$as_val" = x""yes; then
  13431. cat >>confdefs.h <<_ACEOF
  13432. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13433. _ACEOF
  13434. fi
  13435. done
  13436. { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  13437. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  13438. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  13439. $as_echo_n "(cached) " >&6
  13440. else
  13441. cat >conftest.$ac_ext <<_ACEOF
  13442. /* confdefs.h. */
  13443. _ACEOF
  13444. cat confdefs.h >>conftest.$ac_ext
  13445. cat >>conftest.$ac_ext <<_ACEOF
  13446. /* end confdefs.h. */
  13447. #include <stdio.h>
  13448. int
  13449. main ()
  13450. {
  13451. #ifndef feof_unlocked
  13452. char *p = (char *) feof_unlocked;
  13453. #endif
  13454. ;
  13455. return 0;
  13456. }
  13457. _ACEOF
  13458. rm -f conftest.$ac_objext
  13459. if { (ac_try="$ac_compile"
  13460. case "(($ac_try" in
  13461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13462. *) ac_try_echo=$ac_try;;
  13463. esac
  13464. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13465. $as_echo "$ac_try_echo") >&5
  13466. (eval "$ac_compile") 2>conftest.er1
  13467. ac_status=$?
  13468. grep -v '^ *+' conftest.er1 >conftest.err
  13469. rm -f conftest.er1
  13470. cat conftest.err >&5
  13471. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13472. (exit $ac_status); } && {
  13473. test -z "$ac_cxx_werror_flag" ||
  13474. test ! -s conftest.err
  13475. } && test -s conftest.$ac_objext; then
  13476. ac_cv_have_decl_feof_unlocked=yes
  13477. else
  13478. $as_echo "$as_me: failed program was:" >&5
  13479. sed 's/^/| /' conftest.$ac_ext >&5
  13480. ac_cv_have_decl_feof_unlocked=no
  13481. fi
  13482. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13483. fi
  13484. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  13485. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  13486. if test $ac_cv_have_decl_feof_unlocked = yes; then
  13487. gt_value=1
  13488. else
  13489. gt_value=0
  13490. fi
  13491. cat >>confdefs.h <<_ACEOF
  13492. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  13493. _ACEOF
  13494. { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  13495. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  13496. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  13497. $as_echo_n "(cached) " >&6
  13498. else
  13499. cat >conftest.$ac_ext <<_ACEOF
  13500. /* confdefs.h. */
  13501. _ACEOF
  13502. cat confdefs.h >>conftest.$ac_ext
  13503. cat >>conftest.$ac_ext <<_ACEOF
  13504. /* end confdefs.h. */
  13505. #include <stdio.h>
  13506. int
  13507. main ()
  13508. {
  13509. #ifndef fgets_unlocked
  13510. char *p = (char *) fgets_unlocked;
  13511. #endif
  13512. ;
  13513. return 0;
  13514. }
  13515. _ACEOF
  13516. rm -f conftest.$ac_objext
  13517. if { (ac_try="$ac_compile"
  13518. case "(($ac_try" in
  13519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13520. *) ac_try_echo=$ac_try;;
  13521. esac
  13522. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13523. $as_echo "$ac_try_echo") >&5
  13524. (eval "$ac_compile") 2>conftest.er1
  13525. ac_status=$?
  13526. grep -v '^ *+' conftest.er1 >conftest.err
  13527. rm -f conftest.er1
  13528. cat conftest.err >&5
  13529. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13530. (exit $ac_status); } && {
  13531. test -z "$ac_cxx_werror_flag" ||
  13532. test ! -s conftest.err
  13533. } && test -s conftest.$ac_objext; then
  13534. ac_cv_have_decl_fgets_unlocked=yes
  13535. else
  13536. $as_echo "$as_me: failed program was:" >&5
  13537. sed 's/^/| /' conftest.$ac_ext >&5
  13538. ac_cv_have_decl_fgets_unlocked=no
  13539. fi
  13540. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13541. fi
  13542. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  13543. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  13544. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  13545. gt_value=1
  13546. else
  13547. gt_value=0
  13548. fi
  13549. cat >>confdefs.h <<_ACEOF
  13550. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  13551. _ACEOF
  13552. am_save_CPPFLAGS="$CPPFLAGS"
  13553. for element in $INCICONV; do
  13554. haveit=
  13555. for x in $CPPFLAGS; do
  13556. acl_save_prefix="$prefix"
  13557. prefix="$acl_final_prefix"
  13558. acl_save_exec_prefix="$exec_prefix"
  13559. exec_prefix="$acl_final_exec_prefix"
  13560. eval x=\"$x\"
  13561. exec_prefix="$acl_save_exec_prefix"
  13562. prefix="$acl_save_prefix"
  13563. if test "X$x" = "X$element"; then
  13564. haveit=yes
  13565. break
  13566. fi
  13567. done
  13568. if test -z "$haveit"; then
  13569. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13570. fi
  13571. done
  13572. { $as_echo "$as_me:$LINENO: checking for iconv" >&5
  13573. $as_echo_n "checking for iconv... " >&6; }
  13574. if test "${am_cv_func_iconv+set}" = set; then
  13575. $as_echo_n "(cached) " >&6
  13576. else
  13577. am_cv_func_iconv="no, consider installing GNU libiconv"
  13578. am_cv_lib_iconv=no
  13579. cat >conftest.$ac_ext <<_ACEOF
  13580. /* confdefs.h. */
  13581. _ACEOF
  13582. cat confdefs.h >>conftest.$ac_ext
  13583. cat >>conftest.$ac_ext <<_ACEOF
  13584. /* end confdefs.h. */
  13585. #include <stdlib.h>
  13586. #include <iconv.h>
  13587. int
  13588. main ()
  13589. {
  13590. iconv_t cd = iconv_open("","");
  13591. iconv(cd,NULL,NULL,NULL,NULL);
  13592. iconv_close(cd);
  13593. ;
  13594. return 0;
  13595. }
  13596. _ACEOF
  13597. rm -f conftest.$ac_objext conftest$ac_exeext
  13598. if { (ac_try="$ac_link"
  13599. case "(($ac_try" in
  13600. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13601. *) ac_try_echo=$ac_try;;
  13602. esac
  13603. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13604. $as_echo "$ac_try_echo") >&5
  13605. (eval "$ac_link") 2>conftest.er1
  13606. ac_status=$?
  13607. grep -v '^ *+' conftest.er1 >conftest.err
  13608. rm -f conftest.er1
  13609. cat conftest.err >&5
  13610. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13611. (exit $ac_status); } && {
  13612. test -z "$ac_cxx_werror_flag" ||
  13613. test ! -s conftest.err
  13614. } && test -s conftest$ac_exeext && {
  13615. test "$cross_compiling" = yes ||
  13616. $as_test_x conftest$ac_exeext
  13617. }; then
  13618. am_cv_func_iconv=yes
  13619. else
  13620. $as_echo "$as_me: failed program was:" >&5
  13621. sed 's/^/| /' conftest.$ac_ext >&5
  13622. fi
  13623. rm -rf conftest.dSYM
  13624. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13625. conftest$ac_exeext conftest.$ac_ext
  13626. if test "$am_cv_func_iconv" != yes; then
  13627. am_save_LIBS="$LIBS"
  13628. LIBS="$LIBS $LIBICONV"
  13629. cat >conftest.$ac_ext <<_ACEOF
  13630. /* confdefs.h. */
  13631. _ACEOF
  13632. cat confdefs.h >>conftest.$ac_ext
  13633. cat >>conftest.$ac_ext <<_ACEOF
  13634. /* end confdefs.h. */
  13635. #include <stdlib.h>
  13636. #include <iconv.h>
  13637. int
  13638. main ()
  13639. {
  13640. iconv_t cd = iconv_open("","");
  13641. iconv(cd,NULL,NULL,NULL,NULL);
  13642. iconv_close(cd);
  13643. ;
  13644. return 0;
  13645. }
  13646. _ACEOF
  13647. rm -f conftest.$ac_objext conftest$ac_exeext
  13648. if { (ac_try="$ac_link"
  13649. case "(($ac_try" in
  13650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13651. *) ac_try_echo=$ac_try;;
  13652. esac
  13653. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13654. $as_echo "$ac_try_echo") >&5
  13655. (eval "$ac_link") 2>conftest.er1
  13656. ac_status=$?
  13657. grep -v '^ *+' conftest.er1 >conftest.err
  13658. rm -f conftest.er1
  13659. cat conftest.err >&5
  13660. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13661. (exit $ac_status); } && {
  13662. test -z "$ac_cxx_werror_flag" ||
  13663. test ! -s conftest.err
  13664. } && test -s conftest$ac_exeext && {
  13665. test "$cross_compiling" = yes ||
  13666. $as_test_x conftest$ac_exeext
  13667. }; then
  13668. am_cv_lib_iconv=yes
  13669. am_cv_func_iconv=yes
  13670. else
  13671. $as_echo "$as_me: failed program was:" >&5
  13672. sed 's/^/| /' conftest.$ac_ext >&5
  13673. fi
  13674. rm -rf conftest.dSYM
  13675. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13676. conftest$ac_exeext conftest.$ac_ext
  13677. LIBS="$am_save_LIBS"
  13678. fi
  13679. fi
  13680. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  13681. $as_echo "$am_cv_func_iconv" >&6; }
  13682. if test "$am_cv_func_iconv" = yes; then
  13683. { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
  13684. $as_echo_n "checking for working iconv... " >&6; }
  13685. if test "${am_cv_func_iconv_works+set}" = set; then
  13686. $as_echo_n "(cached) " >&6
  13687. else
  13688. am_save_LIBS="$LIBS"
  13689. if test $am_cv_lib_iconv = yes; then
  13690. LIBS="$LIBS $LIBICONV"
  13691. fi
  13692. if test "$cross_compiling" = yes; then
  13693. case "$host_os" in
  13694. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  13695. *) am_cv_func_iconv_works="guessing yes" ;;
  13696. esac
  13697. else
  13698. cat >conftest.$ac_ext <<_ACEOF
  13699. /* confdefs.h. */
  13700. _ACEOF
  13701. cat confdefs.h >>conftest.$ac_ext
  13702. cat >>conftest.$ac_ext <<_ACEOF
  13703. /* end confdefs.h. */
  13704. #include <iconv.h>
  13705. #include <string.h>
  13706. int main ()
  13707. {
  13708. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  13709. returns. */
  13710. {
  13711. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  13712. if (cd_utf8_to_88591 != (iconv_t)(-1))
  13713. {
  13714. static const char input[] = "\342\202\254"; /* EURO SIGN */
  13715. char buf[10];
  13716. const char *inptr = input;
  13717. size_t inbytesleft = strlen (input);
  13718. char *outptr = buf;
  13719. size_t outbytesleft = sizeof (buf);
  13720. size_t res = iconv (cd_utf8_to_88591,
  13721. (char **) &inptr, &inbytesleft,
  13722. &outptr, &outbytesleft);
  13723. if (res == 0)
  13724. return 1;
  13725. }
  13726. }
  13727. #if 0 /* This bug could be worked around by the caller. */
  13728. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  13729. {
  13730. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  13731. if (cd_88591_to_utf8 != (iconv_t)(-1))
  13732. {
  13733. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  13734. char buf[50];
  13735. const char *inptr = input;
  13736. size_t inbytesleft = strlen (input);
  13737. char *outptr = buf;
  13738. size_t outbytesleft = sizeof (buf);
  13739. size_t res = iconv (cd_88591_to_utf8,
  13740. (char **) &inptr, &inbytesleft,
  13741. &outptr, &outbytesleft);
  13742. if ((int)res > 0)
  13743. return 1;
  13744. }
  13745. }
  13746. #endif
  13747. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  13748. provided. */
  13749. if (/* Try standardized names. */
  13750. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  13751. /* Try IRIX, OSF/1 names. */
  13752. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  13753. /* Try AIX names. */
  13754. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  13755. /* Try HP-UX names. */
  13756. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  13757. return 1;
  13758. return 0;
  13759. }
  13760. _ACEOF
  13761. rm -f conftest$ac_exeext
  13762. if { (ac_try="$ac_link"
  13763. case "(($ac_try" in
  13764. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13765. *) ac_try_echo=$ac_try;;
  13766. esac
  13767. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13768. $as_echo "$ac_try_echo") >&5
  13769. (eval "$ac_link") 2>&5
  13770. ac_status=$?
  13771. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13772. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13773. { (case "(($ac_try" in
  13774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13775. *) ac_try_echo=$ac_try;;
  13776. esac
  13777. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13778. $as_echo "$ac_try_echo") >&5
  13779. (eval "$ac_try") 2>&5
  13780. ac_status=$?
  13781. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13782. (exit $ac_status); }; }; then
  13783. am_cv_func_iconv_works=yes
  13784. else
  13785. $as_echo "$as_me: program exited with status $ac_status" >&5
  13786. $as_echo "$as_me: failed program was:" >&5
  13787. sed 's/^/| /' conftest.$ac_ext >&5
  13788. ( exit $ac_status )
  13789. am_cv_func_iconv_works=no
  13790. fi
  13791. rm -rf conftest.dSYM
  13792. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13793. fi
  13794. LIBS="$am_save_LIBS"
  13795. fi
  13796. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  13797. $as_echo "$am_cv_func_iconv_works" >&6; }
  13798. case "$am_cv_func_iconv_works" in
  13799. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  13800. *) am_func_iconv=yes ;;
  13801. esac
  13802. else
  13803. am_func_iconv=no am_cv_lib_iconv=no
  13804. fi
  13805. if test "$am_func_iconv" = yes; then
  13806. cat >>confdefs.h <<\_ACEOF
  13807. #define HAVE_ICONV 1
  13808. _ACEOF
  13809. fi
  13810. if test "$am_cv_lib_iconv" = yes; then
  13811. { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  13812. $as_echo_n "checking how to link with libiconv... " >&6; }
  13813. { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
  13814. $as_echo "$LIBICONV" >&6; }
  13815. else
  13816. CPPFLAGS="$am_save_CPPFLAGS"
  13817. LIBICONV=
  13818. LTLIBICONV=
  13819. fi
  13820. if test "$am_cv_func_iconv" = yes; then
  13821. { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
  13822. $as_echo_n "checking for iconv declaration... " >&6; }
  13823. if test "${am_cv_proto_iconv+set}" = set; then
  13824. $as_echo_n "(cached) " >&6
  13825. else
  13826. cat >conftest.$ac_ext <<_ACEOF
  13827. /* confdefs.h. */
  13828. _ACEOF
  13829. cat confdefs.h >>conftest.$ac_ext
  13830. cat >>conftest.$ac_ext <<_ACEOF
  13831. /* end confdefs.h. */
  13832. #include <stdlib.h>
  13833. #include <iconv.h>
  13834. extern
  13835. #ifdef __cplusplus
  13836. "C"
  13837. #endif
  13838. #if defined(__STDC__) || defined(__cplusplus)
  13839. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  13840. #else
  13841. size_t iconv();
  13842. #endif
  13843. int
  13844. main ()
  13845. {
  13846. ;
  13847. return 0;
  13848. }
  13849. _ACEOF
  13850. rm -f conftest.$ac_objext
  13851. if { (ac_try="$ac_compile"
  13852. case "(($ac_try" in
  13853. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13854. *) ac_try_echo=$ac_try;;
  13855. esac
  13856. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13857. $as_echo "$ac_try_echo") >&5
  13858. (eval "$ac_compile") 2>conftest.er1
  13859. ac_status=$?
  13860. grep -v '^ *+' conftest.er1 >conftest.err
  13861. rm -f conftest.er1
  13862. cat conftest.err >&5
  13863. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13864. (exit $ac_status); } && {
  13865. test -z "$ac_cxx_werror_flag" ||
  13866. test ! -s conftest.err
  13867. } && test -s conftest.$ac_objext; then
  13868. am_cv_proto_iconv_arg1=""
  13869. else
  13870. $as_echo "$as_me: failed program was:" >&5
  13871. sed 's/^/| /' conftest.$ac_ext >&5
  13872. am_cv_proto_iconv_arg1="const"
  13873. fi
  13874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13875. 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);"
  13876. fi
  13877. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  13878. { $as_echo "$as_me:$LINENO: result: ${ac_t:-
  13879. }$am_cv_proto_iconv" >&5
  13880. $as_echo "${ac_t:-
  13881. }$am_cv_proto_iconv" >&6; }
  13882. cat >>confdefs.h <<_ACEOF
  13883. #define ICONV_CONST $am_cv_proto_iconv_arg1
  13884. _ACEOF
  13885. fi
  13886. { $as_echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  13887. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  13888. if test "${gt_cv_nl_locale_name+set}" = set; then
  13889. $as_echo_n "(cached) " >&6
  13890. else
  13891. cat >conftest.$ac_ext <<_ACEOF
  13892. /* confdefs.h. */
  13893. _ACEOF
  13894. cat confdefs.h >>conftest.$ac_ext
  13895. cat >>conftest.$ac_ext <<_ACEOF
  13896. /* end confdefs.h. */
  13897. #include <langinfo.h>
  13898. #include <locale.h>
  13899. int
  13900. main ()
  13901. {
  13902. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  13903. return !cs;
  13904. ;
  13905. return 0;
  13906. }
  13907. _ACEOF
  13908. rm -f conftest.$ac_objext conftest$ac_exeext
  13909. if { (ac_try="$ac_link"
  13910. case "(($ac_try" in
  13911. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13912. *) ac_try_echo=$ac_try;;
  13913. esac
  13914. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13915. $as_echo "$ac_try_echo") >&5
  13916. (eval "$ac_link") 2>conftest.er1
  13917. ac_status=$?
  13918. grep -v '^ *+' conftest.er1 >conftest.err
  13919. rm -f conftest.er1
  13920. cat conftest.err >&5
  13921. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13922. (exit $ac_status); } && {
  13923. test -z "$ac_cxx_werror_flag" ||
  13924. test ! -s conftest.err
  13925. } && test -s conftest$ac_exeext && {
  13926. test "$cross_compiling" = yes ||
  13927. $as_test_x conftest$ac_exeext
  13928. }; then
  13929. gt_cv_nl_locale_name=yes
  13930. else
  13931. $as_echo "$as_me: failed program was:" >&5
  13932. sed 's/^/| /' conftest.$ac_ext >&5
  13933. gt_cv_nl_locale_name=no
  13934. fi
  13935. rm -rf conftest.dSYM
  13936. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13937. conftest$ac_exeext conftest.$ac_ext
  13938. fi
  13939. { $as_echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  13940. $as_echo "$gt_cv_nl_locale_name" >&6; }
  13941. if test $gt_cv_nl_locale_name = yes; then
  13942. cat >>confdefs.h <<\_ACEOF
  13943. #define HAVE_NL_LOCALE_NAME 1
  13944. _ACEOF
  13945. fi
  13946. for ac_prog in bison
  13947. do
  13948. # Extract the first word of "$ac_prog", so it can be a program name with args.
  13949. set dummy $ac_prog; ac_word=$2
  13950. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  13951. $as_echo_n "checking for $ac_word... " >&6; }
  13952. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  13953. $as_echo_n "(cached) " >&6
  13954. else
  13955. if test -n "$INTLBISON"; then
  13956. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  13957. else
  13958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13959. for as_dir in $PATH
  13960. do
  13961. IFS=$as_save_IFS
  13962. test -z "$as_dir" && as_dir=.
  13963. for ac_exec_ext in '' $ac_executable_extensions; do
  13964. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13965. ac_cv_prog_INTLBISON="$ac_prog"
  13966. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13967. break 2
  13968. fi
  13969. done
  13970. done
  13971. IFS=$as_save_IFS
  13972. fi
  13973. fi
  13974. INTLBISON=$ac_cv_prog_INTLBISON
  13975. if test -n "$INTLBISON"; then
  13976. { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
  13977. $as_echo "$INTLBISON" >&6; }
  13978. else
  13979. { $as_echo "$as_me:$LINENO: result: no" >&5
  13980. $as_echo "no" >&6; }
  13981. fi
  13982. test -n "$INTLBISON" && break
  13983. done
  13984. if test -z "$INTLBISON"; then
  13985. ac_verc_fail=yes
  13986. else
  13987. { $as_echo "$as_me:$LINENO: checking version of bison" >&5
  13988. $as_echo_n "checking version of bison... " >&6; }
  13989. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  13990. case $ac_prog_version in
  13991. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  13992. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  13993. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  13994. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  13995. esac
  13996. { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  13997. $as_echo "$ac_prog_version" >&6; }
  13998. fi
  13999. if test $ac_verc_fail = yes; then
  14000. INTLBISON=:
  14001. fi
  14002. { $as_echo "$as_me:$LINENO: checking for long long int" >&5
  14003. $as_echo_n "checking for long long int... " >&6; }
  14004. if test "${ac_cv_type_long_long_int+set}" = set; then
  14005. $as_echo_n "(cached) " >&6
  14006. else
  14007. cat >conftest.$ac_ext <<_ACEOF
  14008. /* confdefs.h. */
  14009. _ACEOF
  14010. cat confdefs.h >>conftest.$ac_ext
  14011. cat >>conftest.$ac_ext <<_ACEOF
  14012. /* end confdefs.h. */
  14013. /* Test preprocessor. */
  14014. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  14015. error in preprocessor;
  14016. #endif
  14017. #if ! (18446744073709551615ULL <= -1ull)
  14018. error in preprocessor;
  14019. #endif
  14020. /* Test literals. */
  14021. long long int ll = 9223372036854775807ll;
  14022. long long int nll = -9223372036854775807LL;
  14023. unsigned long long int ull = 18446744073709551615ULL;
  14024. /* Test constant expressions. */
  14025. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  14026. ? 1 : -1)];
  14027. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  14028. ? 1 : -1)];
  14029. int i = 63;
  14030. int
  14031. main ()
  14032. {
  14033. /* Test availability of runtime routines for shift and division. */
  14034. long long int llmax = 9223372036854775807ll;
  14035. unsigned long long int ullmax = 18446744073709551615ull;
  14036. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  14037. | (llmax / ll) | (llmax % ll)
  14038. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  14039. | (ullmax / ull) | (ullmax % ull));
  14040. ;
  14041. return 0;
  14042. }
  14043. _ACEOF
  14044. rm -f conftest.$ac_objext conftest$ac_exeext
  14045. if { (ac_try="$ac_link"
  14046. case "(($ac_try" in
  14047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14048. *) ac_try_echo=$ac_try;;
  14049. esac
  14050. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14051. $as_echo "$ac_try_echo") >&5
  14052. (eval "$ac_link") 2>conftest.er1
  14053. ac_status=$?
  14054. grep -v '^ *+' conftest.er1 >conftest.err
  14055. rm -f conftest.er1
  14056. cat conftest.err >&5
  14057. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14058. (exit $ac_status); } && {
  14059. test -z "$ac_cxx_werror_flag" ||
  14060. test ! -s conftest.err
  14061. } && test -s conftest$ac_exeext && {
  14062. test "$cross_compiling" = yes ||
  14063. $as_test_x conftest$ac_exeext
  14064. }; then
  14065. if test "$cross_compiling" = yes; then
  14066. ac_cv_type_long_long_int=yes
  14067. else
  14068. cat >conftest.$ac_ext <<_ACEOF
  14069. /* confdefs.h. */
  14070. _ACEOF
  14071. cat confdefs.h >>conftest.$ac_ext
  14072. cat >>conftest.$ac_ext <<_ACEOF
  14073. /* end confdefs.h. */
  14074. #include <limits.h>
  14075. #ifndef LLONG_MAX
  14076. # define HALF \
  14077. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  14078. # define LLONG_MAX (HALF - 1 + HALF)
  14079. #endif
  14080. int
  14081. main ()
  14082. {
  14083. long long int n = 1;
  14084. int i;
  14085. for (i = 0; ; i++)
  14086. {
  14087. long long int m = n << i;
  14088. if (m >> i != n)
  14089. return 1;
  14090. if (LLONG_MAX / 2 < m)
  14091. break;
  14092. }
  14093. return 0;
  14094. ;
  14095. return 0;
  14096. }
  14097. _ACEOF
  14098. rm -f conftest$ac_exeext
  14099. if { (ac_try="$ac_link"
  14100. case "(($ac_try" in
  14101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14102. *) ac_try_echo=$ac_try;;
  14103. esac
  14104. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14105. $as_echo "$ac_try_echo") >&5
  14106. (eval "$ac_link") 2>&5
  14107. ac_status=$?
  14108. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14109. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14110. { (case "(($ac_try" in
  14111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14112. *) ac_try_echo=$ac_try;;
  14113. esac
  14114. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14115. $as_echo "$ac_try_echo") >&5
  14116. (eval "$ac_try") 2>&5
  14117. ac_status=$?
  14118. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14119. (exit $ac_status); }; }; then
  14120. ac_cv_type_long_long_int=yes
  14121. else
  14122. $as_echo "$as_me: program exited with status $ac_status" >&5
  14123. $as_echo "$as_me: failed program was:" >&5
  14124. sed 's/^/| /' conftest.$ac_ext >&5
  14125. ( exit $ac_status )
  14126. ac_cv_type_long_long_int=no
  14127. fi
  14128. rm -rf conftest.dSYM
  14129. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14130. fi
  14131. else
  14132. $as_echo "$as_me: failed program was:" >&5
  14133. sed 's/^/| /' conftest.$ac_ext >&5
  14134. ac_cv_type_long_long_int=no
  14135. fi
  14136. rm -rf conftest.dSYM
  14137. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14138. conftest$ac_exeext conftest.$ac_ext
  14139. fi
  14140. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  14141. $as_echo "$ac_cv_type_long_long_int" >&6; }
  14142. if test $ac_cv_type_long_long_int = yes; then
  14143. cat >>confdefs.h <<\_ACEOF
  14144. #define HAVE_LONG_LONG_INT 1
  14145. _ACEOF
  14146. fi
  14147. { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
  14148. $as_echo_n "checking for wchar_t... " >&6; }
  14149. if test "${gt_cv_c_wchar_t+set}" = set; then
  14150. $as_echo_n "(cached) " >&6
  14151. else
  14152. cat >conftest.$ac_ext <<_ACEOF
  14153. /* confdefs.h. */
  14154. _ACEOF
  14155. cat confdefs.h >>conftest.$ac_ext
  14156. cat >>conftest.$ac_ext <<_ACEOF
  14157. /* end confdefs.h. */
  14158. #include <stddef.h>
  14159. wchar_t foo = (wchar_t)'\0';
  14160. int
  14161. main ()
  14162. {
  14163. ;
  14164. return 0;
  14165. }
  14166. _ACEOF
  14167. rm -f conftest.$ac_objext
  14168. if { (ac_try="$ac_compile"
  14169. case "(($ac_try" in
  14170. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14171. *) ac_try_echo=$ac_try;;
  14172. esac
  14173. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14174. $as_echo "$ac_try_echo") >&5
  14175. (eval "$ac_compile") 2>conftest.er1
  14176. ac_status=$?
  14177. grep -v '^ *+' conftest.er1 >conftest.err
  14178. rm -f conftest.er1
  14179. cat conftest.err >&5
  14180. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14181. (exit $ac_status); } && {
  14182. test -z "$ac_cxx_werror_flag" ||
  14183. test ! -s conftest.err
  14184. } && test -s conftest.$ac_objext; then
  14185. gt_cv_c_wchar_t=yes
  14186. else
  14187. $as_echo "$as_me: failed program was:" >&5
  14188. sed 's/^/| /' conftest.$ac_ext >&5
  14189. gt_cv_c_wchar_t=no
  14190. fi
  14191. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14192. fi
  14193. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  14194. $as_echo "$gt_cv_c_wchar_t" >&6; }
  14195. if test $gt_cv_c_wchar_t = yes; then
  14196. cat >>confdefs.h <<\_ACEOF
  14197. #define HAVE_WCHAR_T 1
  14198. _ACEOF
  14199. fi
  14200. { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
  14201. $as_echo_n "checking for wint_t... " >&6; }
  14202. if test "${gt_cv_c_wint_t+set}" = set; then
  14203. $as_echo_n "(cached) " >&6
  14204. else
  14205. cat >conftest.$ac_ext <<_ACEOF
  14206. /* confdefs.h. */
  14207. _ACEOF
  14208. cat confdefs.h >>conftest.$ac_ext
  14209. cat >>conftest.$ac_ext <<_ACEOF
  14210. /* end confdefs.h. */
  14211. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  14212. <wchar.h>.
  14213. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  14214. before <wchar.h>. */
  14215. #include <stddef.h>
  14216. #include <stdio.h>
  14217. #include <time.h>
  14218. #include <wchar.h>
  14219. wint_t foo = (wchar_t)'\0';
  14220. int
  14221. main ()
  14222. {
  14223. ;
  14224. return 0;
  14225. }
  14226. _ACEOF
  14227. rm -f conftest.$ac_objext
  14228. if { (ac_try="$ac_compile"
  14229. case "(($ac_try" in
  14230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14231. *) ac_try_echo=$ac_try;;
  14232. esac
  14233. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14234. $as_echo "$ac_try_echo") >&5
  14235. (eval "$ac_compile") 2>conftest.er1
  14236. ac_status=$?
  14237. grep -v '^ *+' conftest.er1 >conftest.err
  14238. rm -f conftest.er1
  14239. cat conftest.err >&5
  14240. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14241. (exit $ac_status); } && {
  14242. test -z "$ac_cxx_werror_flag" ||
  14243. test ! -s conftest.err
  14244. } && test -s conftest.$ac_objext; then
  14245. gt_cv_c_wint_t=yes
  14246. else
  14247. $as_echo "$as_me: failed program was:" >&5
  14248. sed 's/^/| /' conftest.$ac_ext >&5
  14249. gt_cv_c_wint_t=no
  14250. fi
  14251. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14252. fi
  14253. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  14254. $as_echo "$gt_cv_c_wint_t" >&6; }
  14255. if test $gt_cv_c_wint_t = yes; then
  14256. cat >>confdefs.h <<\_ACEOF
  14257. #define HAVE_WINT_T 1
  14258. _ACEOF
  14259. fi
  14260. { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
  14261. $as_echo_n "checking for intmax_t... " >&6; }
  14262. if test "${gt_cv_c_intmax_t+set}" = set; then
  14263. $as_echo_n "(cached) " >&6
  14264. else
  14265. cat >conftest.$ac_ext <<_ACEOF
  14266. /* confdefs.h. */
  14267. _ACEOF
  14268. cat confdefs.h >>conftest.$ac_ext
  14269. cat >>conftest.$ac_ext <<_ACEOF
  14270. /* end confdefs.h. */
  14271. #include <stddef.h>
  14272. #include <stdlib.h>
  14273. #if HAVE_STDINT_H_WITH_UINTMAX
  14274. #include <stdint.h>
  14275. #endif
  14276. #if HAVE_INTTYPES_H_WITH_UINTMAX
  14277. #include <inttypes.h>
  14278. #endif
  14279. int
  14280. main ()
  14281. {
  14282. intmax_t x = -1;
  14283. return !x;
  14284. ;
  14285. return 0;
  14286. }
  14287. _ACEOF
  14288. rm -f conftest.$ac_objext
  14289. if { (ac_try="$ac_compile"
  14290. case "(($ac_try" in
  14291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14292. *) ac_try_echo=$ac_try;;
  14293. esac
  14294. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14295. $as_echo "$ac_try_echo") >&5
  14296. (eval "$ac_compile") 2>conftest.er1
  14297. ac_status=$?
  14298. grep -v '^ *+' conftest.er1 >conftest.err
  14299. rm -f conftest.er1
  14300. cat conftest.err >&5
  14301. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14302. (exit $ac_status); } && {
  14303. test -z "$ac_cxx_werror_flag" ||
  14304. test ! -s conftest.err
  14305. } && test -s conftest.$ac_objext; then
  14306. gt_cv_c_intmax_t=yes
  14307. else
  14308. $as_echo "$as_me: failed program was:" >&5
  14309. sed 's/^/| /' conftest.$ac_ext >&5
  14310. gt_cv_c_intmax_t=no
  14311. fi
  14312. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14313. fi
  14314. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  14315. $as_echo "$gt_cv_c_intmax_t" >&6; }
  14316. if test $gt_cv_c_intmax_t = yes; then
  14317. cat >>confdefs.h <<\_ACEOF
  14318. #define HAVE_INTMAX_T 1
  14319. _ACEOF
  14320. fi
  14321. { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  14322. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  14323. if test "${gt_cv_func_printf_posix+set}" = set; then
  14324. $as_echo_n "(cached) " >&6
  14325. else
  14326. if test "$cross_compiling" = yes; then
  14327. cat >conftest.$ac_ext <<_ACEOF
  14328. /* confdefs.h. */
  14329. _ACEOF
  14330. cat confdefs.h >>conftest.$ac_ext
  14331. cat >>conftest.$ac_ext <<_ACEOF
  14332. /* end confdefs.h. */
  14333. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  14334. notposix
  14335. #endif
  14336. _ACEOF
  14337. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14338. $EGREP "notposix" >/dev/null 2>&1; then
  14339. gt_cv_func_printf_posix="guessing no"
  14340. else
  14341. gt_cv_func_printf_posix="guessing yes"
  14342. fi
  14343. rm -f conftest*
  14344. else
  14345. cat >conftest.$ac_ext <<_ACEOF
  14346. /* confdefs.h. */
  14347. _ACEOF
  14348. cat confdefs.h >>conftest.$ac_ext
  14349. cat >>conftest.$ac_ext <<_ACEOF
  14350. /* end confdefs.h. */
  14351. #include <stdio.h>
  14352. #include <string.h>
  14353. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  14354. dollar expansion (possibly an autoconf bug). */
  14355. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  14356. static char buf[100];
  14357. int main ()
  14358. {
  14359. sprintf (buf, format, 33, 55);
  14360. return (strcmp (buf, "55 33") != 0);
  14361. }
  14362. _ACEOF
  14363. rm -f conftest$ac_exeext
  14364. if { (ac_try="$ac_link"
  14365. case "(($ac_try" in
  14366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14367. *) ac_try_echo=$ac_try;;
  14368. esac
  14369. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14370. $as_echo "$ac_try_echo") >&5
  14371. (eval "$ac_link") 2>&5
  14372. ac_status=$?
  14373. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14374. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14375. { (case "(($ac_try" in
  14376. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14377. *) ac_try_echo=$ac_try;;
  14378. esac
  14379. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14380. $as_echo "$ac_try_echo") >&5
  14381. (eval "$ac_try") 2>&5
  14382. ac_status=$?
  14383. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14384. (exit $ac_status); }; }; then
  14385. gt_cv_func_printf_posix=yes
  14386. else
  14387. $as_echo "$as_me: program exited with status $ac_status" >&5
  14388. $as_echo "$as_me: failed program was:" >&5
  14389. sed 's/^/| /' conftest.$ac_ext >&5
  14390. ( exit $ac_status )
  14391. gt_cv_func_printf_posix=no
  14392. fi
  14393. rm -rf conftest.dSYM
  14394. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14395. fi
  14396. fi
  14397. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  14398. $as_echo "$gt_cv_func_printf_posix" >&6; }
  14399. case $gt_cv_func_printf_posix in
  14400. *yes)
  14401. cat >>confdefs.h <<\_ACEOF
  14402. #define HAVE_POSIX_PRINTF 1
  14403. _ACEOF
  14404. ;;
  14405. esac
  14406. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  14407. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  14408. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  14409. $as_echo_n "(cached) " >&6
  14410. else
  14411. cat >conftest.$ac_ext <<_ACEOF
  14412. /* confdefs.h. */
  14413. _ACEOF
  14414. cat confdefs.h >>conftest.$ac_ext
  14415. cat >>conftest.$ac_ext <<_ACEOF
  14416. /* end confdefs.h. */
  14417. #include <features.h>
  14418. #ifdef __GNU_LIBRARY__
  14419. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  14420. Lucky GNU user
  14421. #endif
  14422. #endif
  14423. _ACEOF
  14424. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14425. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  14426. ac_cv_gnu_library_2_1=yes
  14427. else
  14428. ac_cv_gnu_library_2_1=no
  14429. fi
  14430. rm -f conftest*
  14431. fi
  14432. { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  14433. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  14434. GLIBC21="$ac_cv_gnu_library_2_1"
  14435. for ac_header in stdint.h
  14436. do
  14437. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14438. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14439. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14440. $as_echo_n "checking for $ac_header... " >&6; }
  14441. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14442. $as_echo_n "(cached) " >&6
  14443. fi
  14444. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14445. $as_echo "$as_val"'`
  14446. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14447. $as_echo "$ac_res" >&6; }
  14448. else
  14449. # Is the header compilable?
  14450. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14451. $as_echo_n "checking $ac_header usability... " >&6; }
  14452. cat >conftest.$ac_ext <<_ACEOF
  14453. /* confdefs.h. */
  14454. _ACEOF
  14455. cat confdefs.h >>conftest.$ac_ext
  14456. cat >>conftest.$ac_ext <<_ACEOF
  14457. /* end confdefs.h. */
  14458. $ac_includes_default
  14459. #include <$ac_header>
  14460. _ACEOF
  14461. rm -f conftest.$ac_objext
  14462. if { (ac_try="$ac_compile"
  14463. case "(($ac_try" in
  14464. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14465. *) ac_try_echo=$ac_try;;
  14466. esac
  14467. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14468. $as_echo "$ac_try_echo") >&5
  14469. (eval "$ac_compile") 2>conftest.er1
  14470. ac_status=$?
  14471. grep -v '^ *+' conftest.er1 >conftest.err
  14472. rm -f conftest.er1
  14473. cat conftest.err >&5
  14474. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14475. (exit $ac_status); } && {
  14476. test -z "$ac_cxx_werror_flag" ||
  14477. test ! -s conftest.err
  14478. } && test -s conftest.$ac_objext; then
  14479. ac_header_compiler=yes
  14480. else
  14481. $as_echo "$as_me: failed program was:" >&5
  14482. sed 's/^/| /' conftest.$ac_ext >&5
  14483. ac_header_compiler=no
  14484. fi
  14485. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14486. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14487. $as_echo "$ac_header_compiler" >&6; }
  14488. # Is the header present?
  14489. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14490. $as_echo_n "checking $ac_header presence... " >&6; }
  14491. cat >conftest.$ac_ext <<_ACEOF
  14492. /* confdefs.h. */
  14493. _ACEOF
  14494. cat confdefs.h >>conftest.$ac_ext
  14495. cat >>conftest.$ac_ext <<_ACEOF
  14496. /* end confdefs.h. */
  14497. #include <$ac_header>
  14498. _ACEOF
  14499. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14500. case "(($ac_try" in
  14501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14502. *) ac_try_echo=$ac_try;;
  14503. esac
  14504. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14505. $as_echo "$ac_try_echo") >&5
  14506. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14507. ac_status=$?
  14508. grep -v '^ *+' conftest.er1 >conftest.err
  14509. rm -f conftest.er1
  14510. cat conftest.err >&5
  14511. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14512. (exit $ac_status); } >/dev/null && {
  14513. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14514. test ! -s conftest.err
  14515. }; then
  14516. ac_header_preproc=yes
  14517. else
  14518. $as_echo "$as_me: failed program was:" >&5
  14519. sed 's/^/| /' conftest.$ac_ext >&5
  14520. ac_header_preproc=no
  14521. fi
  14522. rm -f conftest.err conftest.$ac_ext
  14523. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14524. $as_echo "$ac_header_preproc" >&6; }
  14525. # So? What about this header?
  14526. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14527. yes:no: )
  14528. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14529. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14530. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14531. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14532. ac_header_preproc=yes
  14533. ;;
  14534. no:yes:* )
  14535. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14536. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14537. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14538. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14539. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14540. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14541. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14542. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14543. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14544. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14545. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14546. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14547. ( cat <<\_ASBOX
  14548. ## ----------------------------------------------- ##
  14549. ## Report this to t-tujikawa@users.sourceforge.net ##
  14550. ## ----------------------------------------------- ##
  14551. _ASBOX
  14552. ) | sed "s/^/$as_me: WARNING: /" >&2
  14553. ;;
  14554. esac
  14555. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14556. $as_echo_n "checking for $ac_header... " >&6; }
  14557. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14558. $as_echo_n "(cached) " >&6
  14559. else
  14560. eval "$as_ac_Header=\$ac_header_preproc"
  14561. fi
  14562. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14563. $as_echo "$as_val"'`
  14564. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14565. $as_echo "$ac_res" >&6; }
  14566. fi
  14567. as_val=`eval 'as_val=${'$as_ac_Header'}
  14568. $as_echo "$as_val"'`
  14569. if test "x$as_val" = x""yes; then
  14570. cat >>confdefs.h <<_ACEOF
  14571. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14572. _ACEOF
  14573. fi
  14574. done
  14575. { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  14576. $as_echo_n "checking for SIZE_MAX... " >&6; }
  14577. if test "${gl_cv_size_max+set}" = set; then
  14578. $as_echo_n "(cached) " >&6
  14579. else
  14580. gl_cv_size_max=
  14581. cat >conftest.$ac_ext <<_ACEOF
  14582. /* confdefs.h. */
  14583. _ACEOF
  14584. cat confdefs.h >>conftest.$ac_ext
  14585. cat >>conftest.$ac_ext <<_ACEOF
  14586. /* end confdefs.h. */
  14587. #include <limits.h>
  14588. #if HAVE_STDINT_H
  14589. #include <stdint.h>
  14590. #endif
  14591. #ifdef SIZE_MAX
  14592. Found it
  14593. #endif
  14594. _ACEOF
  14595. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14596. $EGREP "Found it" >/dev/null 2>&1; then
  14597. gl_cv_size_max=yes
  14598. fi
  14599. rm -f conftest*
  14600. if test -z "$gl_cv_size_max"; then
  14601. if test "$cross_compiling" = yes; then
  14602. # Depending upon the size, compute the lo and hi bounds.
  14603. cat >conftest.$ac_ext <<_ACEOF
  14604. /* confdefs.h. */
  14605. _ACEOF
  14606. cat confdefs.h >>conftest.$ac_ext
  14607. cat >>conftest.$ac_ext <<_ACEOF
  14608. /* end confdefs.h. */
  14609. #include <stddef.h>
  14610. #include <limits.h>
  14611. int
  14612. main ()
  14613. {
  14614. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  14615. test_array [0] = 0
  14616. ;
  14617. return 0;
  14618. }
  14619. _ACEOF
  14620. rm -f conftest.$ac_objext
  14621. if { (ac_try="$ac_compile"
  14622. case "(($ac_try" in
  14623. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14624. *) ac_try_echo=$ac_try;;
  14625. esac
  14626. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14627. $as_echo "$ac_try_echo") >&5
  14628. (eval "$ac_compile") 2>conftest.er1
  14629. ac_status=$?
  14630. grep -v '^ *+' conftest.er1 >conftest.err
  14631. rm -f conftest.er1
  14632. cat conftest.err >&5
  14633. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14634. (exit $ac_status); } && {
  14635. test -z "$ac_cxx_werror_flag" ||
  14636. test ! -s conftest.err
  14637. } && test -s conftest.$ac_objext; then
  14638. ac_lo=0 ac_mid=0
  14639. while :; do
  14640. cat >conftest.$ac_ext <<_ACEOF
  14641. /* confdefs.h. */
  14642. _ACEOF
  14643. cat confdefs.h >>conftest.$ac_ext
  14644. cat >>conftest.$ac_ext <<_ACEOF
  14645. /* end confdefs.h. */
  14646. #include <stddef.h>
  14647. #include <limits.h>
  14648. int
  14649. main ()
  14650. {
  14651. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  14652. test_array [0] = 0
  14653. ;
  14654. return 0;
  14655. }
  14656. _ACEOF
  14657. rm -f conftest.$ac_objext
  14658. if { (ac_try="$ac_compile"
  14659. case "(($ac_try" in
  14660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14661. *) ac_try_echo=$ac_try;;
  14662. esac
  14663. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14664. $as_echo "$ac_try_echo") >&5
  14665. (eval "$ac_compile") 2>conftest.er1
  14666. ac_status=$?
  14667. grep -v '^ *+' conftest.er1 >conftest.err
  14668. rm -f conftest.er1
  14669. cat conftest.err >&5
  14670. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14671. (exit $ac_status); } && {
  14672. test -z "$ac_cxx_werror_flag" ||
  14673. test ! -s conftest.err
  14674. } && test -s conftest.$ac_objext; then
  14675. ac_hi=$ac_mid; break
  14676. else
  14677. $as_echo "$as_me: failed program was:" >&5
  14678. sed 's/^/| /' conftest.$ac_ext >&5
  14679. ac_lo=`expr $ac_mid + 1`
  14680. if test $ac_lo -le $ac_mid; then
  14681. ac_lo= ac_hi=
  14682. break
  14683. fi
  14684. ac_mid=`expr 2 '*' $ac_mid + 1`
  14685. fi
  14686. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14687. done
  14688. else
  14689. $as_echo "$as_me: failed program was:" >&5
  14690. sed 's/^/| /' conftest.$ac_ext >&5
  14691. cat >conftest.$ac_ext <<_ACEOF
  14692. /* confdefs.h. */
  14693. _ACEOF
  14694. cat confdefs.h >>conftest.$ac_ext
  14695. cat >>conftest.$ac_ext <<_ACEOF
  14696. /* end confdefs.h. */
  14697. #include <stddef.h>
  14698. #include <limits.h>
  14699. int
  14700. main ()
  14701. {
  14702. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  14703. test_array [0] = 0
  14704. ;
  14705. return 0;
  14706. }
  14707. _ACEOF
  14708. rm -f conftest.$ac_objext
  14709. if { (ac_try="$ac_compile"
  14710. case "(($ac_try" in
  14711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14712. *) ac_try_echo=$ac_try;;
  14713. esac
  14714. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14715. $as_echo "$ac_try_echo") >&5
  14716. (eval "$ac_compile") 2>conftest.er1
  14717. ac_status=$?
  14718. grep -v '^ *+' conftest.er1 >conftest.err
  14719. rm -f conftest.er1
  14720. cat conftest.err >&5
  14721. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14722. (exit $ac_status); } && {
  14723. test -z "$ac_cxx_werror_flag" ||
  14724. test ! -s conftest.err
  14725. } && test -s conftest.$ac_objext; then
  14726. ac_hi=-1 ac_mid=-1
  14727. while :; do
  14728. cat >conftest.$ac_ext <<_ACEOF
  14729. /* confdefs.h. */
  14730. _ACEOF
  14731. cat confdefs.h >>conftest.$ac_ext
  14732. cat >>conftest.$ac_ext <<_ACEOF
  14733. /* end confdefs.h. */
  14734. #include <stddef.h>
  14735. #include <limits.h>
  14736. int
  14737. main ()
  14738. {
  14739. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  14740. test_array [0] = 0
  14741. ;
  14742. return 0;
  14743. }
  14744. _ACEOF
  14745. rm -f conftest.$ac_objext
  14746. if { (ac_try="$ac_compile"
  14747. case "(($ac_try" in
  14748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14749. *) ac_try_echo=$ac_try;;
  14750. esac
  14751. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14752. $as_echo "$ac_try_echo") >&5
  14753. (eval "$ac_compile") 2>conftest.er1
  14754. ac_status=$?
  14755. grep -v '^ *+' conftest.er1 >conftest.err
  14756. rm -f conftest.er1
  14757. cat conftest.err >&5
  14758. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14759. (exit $ac_status); } && {
  14760. test -z "$ac_cxx_werror_flag" ||
  14761. test ! -s conftest.err
  14762. } && test -s conftest.$ac_objext; then
  14763. ac_lo=$ac_mid; break
  14764. else
  14765. $as_echo "$as_me: failed program was:" >&5
  14766. sed 's/^/| /' conftest.$ac_ext >&5
  14767. ac_hi=`expr '(' $ac_mid ')' - 1`
  14768. if test $ac_mid -le $ac_hi; then
  14769. ac_lo= ac_hi=
  14770. break
  14771. fi
  14772. ac_mid=`expr 2 '*' $ac_mid`
  14773. fi
  14774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14775. done
  14776. else
  14777. $as_echo "$as_me: failed program was:" >&5
  14778. sed 's/^/| /' conftest.$ac_ext >&5
  14779. ac_lo= ac_hi=
  14780. fi
  14781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14782. fi
  14783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14784. # Binary search between lo and hi bounds.
  14785. while test "x$ac_lo" != "x$ac_hi"; do
  14786. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  14787. cat >conftest.$ac_ext <<_ACEOF
  14788. /* confdefs.h. */
  14789. _ACEOF
  14790. cat confdefs.h >>conftest.$ac_ext
  14791. cat >>conftest.$ac_ext <<_ACEOF
  14792. /* end confdefs.h. */
  14793. #include <stddef.h>
  14794. #include <limits.h>
  14795. int
  14796. main ()
  14797. {
  14798. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  14799. test_array [0] = 0
  14800. ;
  14801. return 0;
  14802. }
  14803. _ACEOF
  14804. rm -f conftest.$ac_objext
  14805. if { (ac_try="$ac_compile"
  14806. case "(($ac_try" in
  14807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14808. *) ac_try_echo=$ac_try;;
  14809. esac
  14810. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14811. $as_echo "$ac_try_echo") >&5
  14812. (eval "$ac_compile") 2>conftest.er1
  14813. ac_status=$?
  14814. grep -v '^ *+' conftest.er1 >conftest.err
  14815. rm -f conftest.er1
  14816. cat conftest.err >&5
  14817. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14818. (exit $ac_status); } && {
  14819. test -z "$ac_cxx_werror_flag" ||
  14820. test ! -s conftest.err
  14821. } && test -s conftest.$ac_objext; then
  14822. ac_hi=$ac_mid
  14823. else
  14824. $as_echo "$as_me: failed program was:" >&5
  14825. sed 's/^/| /' conftest.$ac_ext >&5
  14826. ac_lo=`expr '(' $ac_mid ')' + 1`
  14827. fi
  14828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14829. done
  14830. case $ac_lo in
  14831. ?*) size_t_bits_minus_1=$ac_lo;;
  14832. '') size_t_bits_minus_1= ;;
  14833. esac
  14834. else
  14835. cat >conftest.$ac_ext <<_ACEOF
  14836. /* confdefs.h. */
  14837. _ACEOF
  14838. cat confdefs.h >>conftest.$ac_ext
  14839. cat >>conftest.$ac_ext <<_ACEOF
  14840. /* end confdefs.h. */
  14841. #include <stddef.h>
  14842. #include <limits.h>
  14843. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14844. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  14845. #include <stdio.h>
  14846. #include <stdlib.h>
  14847. int
  14848. main ()
  14849. {
  14850. FILE *f = fopen ("conftest.val", "w");
  14851. if (! f)
  14852. return 1;
  14853. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  14854. {
  14855. long int i = longval ();
  14856. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14857. return 1;
  14858. fprintf (f, "%ld", i);
  14859. }
  14860. else
  14861. {
  14862. unsigned long int i = ulongval ();
  14863. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  14864. return 1;
  14865. fprintf (f, "%lu", i);
  14866. }
  14867. /* Do not output a trailing newline, as this causes \r\n confusion
  14868. on some platforms. */
  14869. return ferror (f) || fclose (f) != 0;
  14870. ;
  14871. return 0;
  14872. }
  14873. _ACEOF
  14874. rm -f conftest$ac_exeext
  14875. if { (ac_try="$ac_link"
  14876. case "(($ac_try" in
  14877. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14878. *) ac_try_echo=$ac_try;;
  14879. esac
  14880. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14881. $as_echo "$ac_try_echo") >&5
  14882. (eval "$ac_link") 2>&5
  14883. ac_status=$?
  14884. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14885. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14886. { (case "(($ac_try" in
  14887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14888. *) ac_try_echo=$ac_try;;
  14889. esac
  14890. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14891. $as_echo "$ac_try_echo") >&5
  14892. (eval "$ac_try") 2>&5
  14893. ac_status=$?
  14894. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14895. (exit $ac_status); }; }; then
  14896. size_t_bits_minus_1=`cat conftest.val`
  14897. else
  14898. $as_echo "$as_me: program exited with status $ac_status" >&5
  14899. $as_echo "$as_me: failed program was:" >&5
  14900. sed 's/^/| /' conftest.$ac_ext >&5
  14901. ( exit $ac_status )
  14902. size_t_bits_minus_1=
  14903. fi
  14904. rm -rf conftest.dSYM
  14905. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14906. fi
  14907. rm -f conftest.val
  14908. if test "$cross_compiling" = yes; then
  14909. # Depending upon the size, compute the lo and hi bounds.
  14910. cat >conftest.$ac_ext <<_ACEOF
  14911. /* confdefs.h. */
  14912. _ACEOF
  14913. cat confdefs.h >>conftest.$ac_ext
  14914. cat >>conftest.$ac_ext <<_ACEOF
  14915. /* end confdefs.h. */
  14916. #include <stddef.h>
  14917. int
  14918. main ()
  14919. {
  14920. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  14921. test_array [0] = 0
  14922. ;
  14923. return 0;
  14924. }
  14925. _ACEOF
  14926. rm -f conftest.$ac_objext
  14927. if { (ac_try="$ac_compile"
  14928. case "(($ac_try" in
  14929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14930. *) ac_try_echo=$ac_try;;
  14931. esac
  14932. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14933. $as_echo "$ac_try_echo") >&5
  14934. (eval "$ac_compile") 2>conftest.er1
  14935. ac_status=$?
  14936. grep -v '^ *+' conftest.er1 >conftest.err
  14937. rm -f conftest.er1
  14938. cat conftest.err >&5
  14939. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14940. (exit $ac_status); } && {
  14941. test -z "$ac_cxx_werror_flag" ||
  14942. test ! -s conftest.err
  14943. } && test -s conftest.$ac_objext; then
  14944. ac_lo=0 ac_mid=0
  14945. while :; do
  14946. cat >conftest.$ac_ext <<_ACEOF
  14947. /* confdefs.h. */
  14948. _ACEOF
  14949. cat confdefs.h >>conftest.$ac_ext
  14950. cat >>conftest.$ac_ext <<_ACEOF
  14951. /* end confdefs.h. */
  14952. #include <stddef.h>
  14953. int
  14954. main ()
  14955. {
  14956. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  14957. test_array [0] = 0
  14958. ;
  14959. return 0;
  14960. }
  14961. _ACEOF
  14962. rm -f conftest.$ac_objext
  14963. if { (ac_try="$ac_compile"
  14964. case "(($ac_try" in
  14965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14966. *) ac_try_echo=$ac_try;;
  14967. esac
  14968. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14969. $as_echo "$ac_try_echo") >&5
  14970. (eval "$ac_compile") 2>conftest.er1
  14971. ac_status=$?
  14972. grep -v '^ *+' conftest.er1 >conftest.err
  14973. rm -f conftest.er1
  14974. cat conftest.err >&5
  14975. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14976. (exit $ac_status); } && {
  14977. test -z "$ac_cxx_werror_flag" ||
  14978. test ! -s conftest.err
  14979. } && test -s conftest.$ac_objext; then
  14980. ac_hi=$ac_mid; break
  14981. else
  14982. $as_echo "$as_me: failed program was:" >&5
  14983. sed 's/^/| /' conftest.$ac_ext >&5
  14984. ac_lo=`expr $ac_mid + 1`
  14985. if test $ac_lo -le $ac_mid; then
  14986. ac_lo= ac_hi=
  14987. break
  14988. fi
  14989. ac_mid=`expr 2 '*' $ac_mid + 1`
  14990. fi
  14991. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14992. done
  14993. else
  14994. $as_echo "$as_me: failed program was:" >&5
  14995. sed 's/^/| /' conftest.$ac_ext >&5
  14996. cat >conftest.$ac_ext <<_ACEOF
  14997. /* confdefs.h. */
  14998. _ACEOF
  14999. cat confdefs.h >>conftest.$ac_ext
  15000. cat >>conftest.$ac_ext <<_ACEOF
  15001. /* end confdefs.h. */
  15002. #include <stddef.h>
  15003. int
  15004. main ()
  15005. {
  15006. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  15007. test_array [0] = 0
  15008. ;
  15009. return 0;
  15010. }
  15011. _ACEOF
  15012. rm -f conftest.$ac_objext
  15013. if { (ac_try="$ac_compile"
  15014. case "(($ac_try" in
  15015. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15016. *) ac_try_echo=$ac_try;;
  15017. esac
  15018. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15019. $as_echo "$ac_try_echo") >&5
  15020. (eval "$ac_compile") 2>conftest.er1
  15021. ac_status=$?
  15022. grep -v '^ *+' conftest.er1 >conftest.err
  15023. rm -f conftest.er1
  15024. cat conftest.err >&5
  15025. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15026. (exit $ac_status); } && {
  15027. test -z "$ac_cxx_werror_flag" ||
  15028. test ! -s conftest.err
  15029. } && test -s conftest.$ac_objext; then
  15030. ac_hi=-1 ac_mid=-1
  15031. while :; do
  15032. cat >conftest.$ac_ext <<_ACEOF
  15033. /* confdefs.h. */
  15034. _ACEOF
  15035. cat confdefs.h >>conftest.$ac_ext
  15036. cat >>conftest.$ac_ext <<_ACEOF
  15037. /* end confdefs.h. */
  15038. #include <stddef.h>
  15039. int
  15040. main ()
  15041. {
  15042. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  15043. test_array [0] = 0
  15044. ;
  15045. return 0;
  15046. }
  15047. _ACEOF
  15048. rm -f conftest.$ac_objext
  15049. if { (ac_try="$ac_compile"
  15050. case "(($ac_try" in
  15051. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15052. *) ac_try_echo=$ac_try;;
  15053. esac
  15054. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15055. $as_echo "$ac_try_echo") >&5
  15056. (eval "$ac_compile") 2>conftest.er1
  15057. ac_status=$?
  15058. grep -v '^ *+' conftest.er1 >conftest.err
  15059. rm -f conftest.er1
  15060. cat conftest.err >&5
  15061. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15062. (exit $ac_status); } && {
  15063. test -z "$ac_cxx_werror_flag" ||
  15064. test ! -s conftest.err
  15065. } && test -s conftest.$ac_objext; then
  15066. ac_lo=$ac_mid; break
  15067. else
  15068. $as_echo "$as_me: failed program was:" >&5
  15069. sed 's/^/| /' conftest.$ac_ext >&5
  15070. ac_hi=`expr '(' $ac_mid ')' - 1`
  15071. if test $ac_mid -le $ac_hi; then
  15072. ac_lo= ac_hi=
  15073. break
  15074. fi
  15075. ac_mid=`expr 2 '*' $ac_mid`
  15076. fi
  15077. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15078. done
  15079. else
  15080. $as_echo "$as_me: failed program was:" >&5
  15081. sed 's/^/| /' conftest.$ac_ext >&5
  15082. ac_lo= ac_hi=
  15083. fi
  15084. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15085. fi
  15086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15087. # Binary search between lo and hi bounds.
  15088. while test "x$ac_lo" != "x$ac_hi"; do
  15089. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15090. cat >conftest.$ac_ext <<_ACEOF
  15091. /* confdefs.h. */
  15092. _ACEOF
  15093. cat confdefs.h >>conftest.$ac_ext
  15094. cat >>conftest.$ac_ext <<_ACEOF
  15095. /* end confdefs.h. */
  15096. #include <stddef.h>
  15097. int
  15098. main ()
  15099. {
  15100. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  15101. test_array [0] = 0
  15102. ;
  15103. return 0;
  15104. }
  15105. _ACEOF
  15106. rm -f conftest.$ac_objext
  15107. if { (ac_try="$ac_compile"
  15108. case "(($ac_try" in
  15109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15110. *) ac_try_echo=$ac_try;;
  15111. esac
  15112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15113. $as_echo "$ac_try_echo") >&5
  15114. (eval "$ac_compile") 2>conftest.er1
  15115. ac_status=$?
  15116. grep -v '^ *+' conftest.er1 >conftest.err
  15117. rm -f conftest.er1
  15118. cat conftest.err >&5
  15119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15120. (exit $ac_status); } && {
  15121. test -z "$ac_cxx_werror_flag" ||
  15122. test ! -s conftest.err
  15123. } && test -s conftest.$ac_objext; then
  15124. ac_hi=$ac_mid
  15125. else
  15126. $as_echo "$as_me: failed program was:" >&5
  15127. sed 's/^/| /' conftest.$ac_ext >&5
  15128. ac_lo=`expr '(' $ac_mid ')' + 1`
  15129. fi
  15130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15131. done
  15132. case $ac_lo in
  15133. ?*) fits_in_uint=$ac_lo;;
  15134. '') fits_in_uint= ;;
  15135. esac
  15136. else
  15137. cat >conftest.$ac_ext <<_ACEOF
  15138. /* confdefs.h. */
  15139. _ACEOF
  15140. cat confdefs.h >>conftest.$ac_ext
  15141. cat >>conftest.$ac_ext <<_ACEOF
  15142. /* end confdefs.h. */
  15143. #include <stddef.h>
  15144. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  15145. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  15146. #include <stdio.h>
  15147. #include <stdlib.h>
  15148. int
  15149. main ()
  15150. {
  15151. FILE *f = fopen ("conftest.val", "w");
  15152. if (! f)
  15153. return 1;
  15154. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  15155. {
  15156. long int i = longval ();
  15157. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  15158. return 1;
  15159. fprintf (f, "%ld", i);
  15160. }
  15161. else
  15162. {
  15163. unsigned long int i = ulongval ();
  15164. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  15165. return 1;
  15166. fprintf (f, "%lu", i);
  15167. }
  15168. /* Do not output a trailing newline, as this causes \r\n confusion
  15169. on some platforms. */
  15170. return ferror (f) || fclose (f) != 0;
  15171. ;
  15172. return 0;
  15173. }
  15174. _ACEOF
  15175. rm -f conftest$ac_exeext
  15176. if { (ac_try="$ac_link"
  15177. case "(($ac_try" in
  15178. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15179. *) ac_try_echo=$ac_try;;
  15180. esac
  15181. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15182. $as_echo "$ac_try_echo") >&5
  15183. (eval "$ac_link") 2>&5
  15184. ac_status=$?
  15185. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15186. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15187. { (case "(($ac_try" in
  15188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15189. *) ac_try_echo=$ac_try;;
  15190. esac
  15191. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15192. $as_echo "$ac_try_echo") >&5
  15193. (eval "$ac_try") 2>&5
  15194. ac_status=$?
  15195. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15196. (exit $ac_status); }; }; then
  15197. fits_in_uint=`cat conftest.val`
  15198. else
  15199. $as_echo "$as_me: program exited with status $ac_status" >&5
  15200. $as_echo "$as_me: failed program was:" >&5
  15201. sed 's/^/| /' conftest.$ac_ext >&5
  15202. ( exit $ac_status )
  15203. fits_in_uint=
  15204. fi
  15205. rm -rf conftest.dSYM
  15206. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15207. fi
  15208. rm -f conftest.val
  15209. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  15210. if test $fits_in_uint = 1; then
  15211. cat >conftest.$ac_ext <<_ACEOF
  15212. /* confdefs.h. */
  15213. _ACEOF
  15214. cat confdefs.h >>conftest.$ac_ext
  15215. cat >>conftest.$ac_ext <<_ACEOF
  15216. /* end confdefs.h. */
  15217. #include <stddef.h>
  15218. extern size_t foo;
  15219. extern unsigned long foo;
  15220. int
  15221. main ()
  15222. {
  15223. ;
  15224. return 0;
  15225. }
  15226. _ACEOF
  15227. rm -f conftest.$ac_objext
  15228. if { (ac_try="$ac_compile"
  15229. case "(($ac_try" in
  15230. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15231. *) ac_try_echo=$ac_try;;
  15232. esac
  15233. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15234. $as_echo "$ac_try_echo") >&5
  15235. (eval "$ac_compile") 2>conftest.er1
  15236. ac_status=$?
  15237. grep -v '^ *+' conftest.er1 >conftest.err
  15238. rm -f conftest.er1
  15239. cat conftest.err >&5
  15240. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15241. (exit $ac_status); } && {
  15242. test -z "$ac_cxx_werror_flag" ||
  15243. test ! -s conftest.err
  15244. } && test -s conftest.$ac_objext; then
  15245. fits_in_uint=0
  15246. else
  15247. $as_echo "$as_me: failed program was:" >&5
  15248. sed 's/^/| /' conftest.$ac_ext >&5
  15249. fi
  15250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15251. fi
  15252. if test $fits_in_uint = 1; then
  15253. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  15254. else
  15255. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  15256. fi
  15257. else
  15258. gl_cv_size_max='((size_t)~(size_t)0)'
  15259. fi
  15260. fi
  15261. fi
  15262. { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  15263. $as_echo "$gl_cv_size_max" >&6; }
  15264. if test "$gl_cv_size_max" != yes; then
  15265. cat >>confdefs.h <<_ACEOF
  15266. #define SIZE_MAX $gl_cv_size_max
  15267. _ACEOF
  15268. fi
  15269. for ac_header in stdint.h
  15270. do
  15271. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15272. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15273. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15274. $as_echo_n "checking for $ac_header... " >&6; }
  15275. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15276. $as_echo_n "(cached) " >&6
  15277. fi
  15278. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15279. $as_echo "$as_val"'`
  15280. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15281. $as_echo "$ac_res" >&6; }
  15282. else
  15283. # Is the header compilable?
  15284. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15285. $as_echo_n "checking $ac_header usability... " >&6; }
  15286. cat >conftest.$ac_ext <<_ACEOF
  15287. /* confdefs.h. */
  15288. _ACEOF
  15289. cat confdefs.h >>conftest.$ac_ext
  15290. cat >>conftest.$ac_ext <<_ACEOF
  15291. /* end confdefs.h. */
  15292. $ac_includes_default
  15293. #include <$ac_header>
  15294. _ACEOF
  15295. rm -f conftest.$ac_objext
  15296. if { (ac_try="$ac_compile"
  15297. case "(($ac_try" in
  15298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15299. *) ac_try_echo=$ac_try;;
  15300. esac
  15301. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15302. $as_echo "$ac_try_echo") >&5
  15303. (eval "$ac_compile") 2>conftest.er1
  15304. ac_status=$?
  15305. grep -v '^ *+' conftest.er1 >conftest.err
  15306. rm -f conftest.er1
  15307. cat conftest.err >&5
  15308. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15309. (exit $ac_status); } && {
  15310. test -z "$ac_cxx_werror_flag" ||
  15311. test ! -s conftest.err
  15312. } && test -s conftest.$ac_objext; then
  15313. ac_header_compiler=yes
  15314. else
  15315. $as_echo "$as_me: failed program was:" >&5
  15316. sed 's/^/| /' conftest.$ac_ext >&5
  15317. ac_header_compiler=no
  15318. fi
  15319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15320. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15321. $as_echo "$ac_header_compiler" >&6; }
  15322. # Is the header present?
  15323. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15324. $as_echo_n "checking $ac_header presence... " >&6; }
  15325. cat >conftest.$ac_ext <<_ACEOF
  15326. /* confdefs.h. */
  15327. _ACEOF
  15328. cat confdefs.h >>conftest.$ac_ext
  15329. cat >>conftest.$ac_ext <<_ACEOF
  15330. /* end confdefs.h. */
  15331. #include <$ac_header>
  15332. _ACEOF
  15333. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15334. case "(($ac_try" in
  15335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15336. *) ac_try_echo=$ac_try;;
  15337. esac
  15338. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15339. $as_echo "$ac_try_echo") >&5
  15340. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15341. ac_status=$?
  15342. grep -v '^ *+' conftest.er1 >conftest.err
  15343. rm -f conftest.er1
  15344. cat conftest.err >&5
  15345. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15346. (exit $ac_status); } >/dev/null && {
  15347. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15348. test ! -s conftest.err
  15349. }; then
  15350. ac_header_preproc=yes
  15351. else
  15352. $as_echo "$as_me: failed program was:" >&5
  15353. sed 's/^/| /' conftest.$ac_ext >&5
  15354. ac_header_preproc=no
  15355. fi
  15356. rm -f conftest.err conftest.$ac_ext
  15357. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15358. $as_echo "$ac_header_preproc" >&6; }
  15359. # So? What about this header?
  15360. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15361. yes:no: )
  15362. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15363. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15364. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15365. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15366. ac_header_preproc=yes
  15367. ;;
  15368. no:yes:* )
  15369. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15370. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15371. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15372. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15373. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15374. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15375. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15376. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15377. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15378. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15379. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15380. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15381. ( cat <<\_ASBOX
  15382. ## ----------------------------------------------- ##
  15383. ## Report this to t-tujikawa@users.sourceforge.net ##
  15384. ## ----------------------------------------------- ##
  15385. _ASBOX
  15386. ) | sed "s/^/$as_me: WARNING: /" >&2
  15387. ;;
  15388. esac
  15389. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15390. $as_echo_n "checking for $ac_header... " >&6; }
  15391. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15392. $as_echo_n "(cached) " >&6
  15393. else
  15394. eval "$as_ac_Header=\$ac_header_preproc"
  15395. fi
  15396. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15397. $as_echo "$as_val"'`
  15398. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15399. $as_echo "$ac_res" >&6; }
  15400. fi
  15401. as_val=`eval 'as_val=${'$as_ac_Header'}
  15402. $as_echo "$as_val"'`
  15403. if test "x$as_val" = x""yes; then
  15404. cat >>confdefs.h <<_ACEOF
  15405. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15406. _ACEOF
  15407. fi
  15408. done
  15409. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15410. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  15411. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15412. $as_echo_n "(cached) " >&6
  15413. else
  15414. gt_save_LIBS="$LIBS"
  15415. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15416. cat >conftest.$ac_ext <<_ACEOF
  15417. /* confdefs.h. */
  15418. _ACEOF
  15419. cat confdefs.h >>conftest.$ac_ext
  15420. cat >>conftest.$ac_ext <<_ACEOF
  15421. /* end confdefs.h. */
  15422. #include <CoreFoundation/CFPreferences.h>
  15423. int
  15424. main ()
  15425. {
  15426. CFPreferencesCopyAppValue(NULL, NULL)
  15427. ;
  15428. return 0;
  15429. }
  15430. _ACEOF
  15431. rm -f conftest.$ac_objext conftest$ac_exeext
  15432. if { (ac_try="$ac_link"
  15433. case "(($ac_try" in
  15434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15435. *) ac_try_echo=$ac_try;;
  15436. esac
  15437. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15438. $as_echo "$ac_try_echo") >&5
  15439. (eval "$ac_link") 2>conftest.er1
  15440. ac_status=$?
  15441. grep -v '^ *+' conftest.er1 >conftest.err
  15442. rm -f conftest.er1
  15443. cat conftest.err >&5
  15444. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15445. (exit $ac_status); } && {
  15446. test -z "$ac_cxx_werror_flag" ||
  15447. test ! -s conftest.err
  15448. } && test -s conftest$ac_exeext && {
  15449. test "$cross_compiling" = yes ||
  15450. $as_test_x conftest$ac_exeext
  15451. }; then
  15452. gt_cv_func_CFPreferencesCopyAppValue=yes
  15453. else
  15454. $as_echo "$as_me: failed program was:" >&5
  15455. sed 's/^/| /' conftest.$ac_ext >&5
  15456. gt_cv_func_CFPreferencesCopyAppValue=no
  15457. fi
  15458. rm -rf conftest.dSYM
  15459. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15460. conftest$ac_exeext conftest.$ac_ext
  15461. LIBS="$gt_save_LIBS"
  15462. fi
  15463. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15464. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15465. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15466. cat >>confdefs.h <<\_ACEOF
  15467. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15468. _ACEOF
  15469. fi
  15470. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15471. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  15472. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15473. $as_echo_n "(cached) " >&6
  15474. else
  15475. gt_save_LIBS="$LIBS"
  15476. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15477. cat >conftest.$ac_ext <<_ACEOF
  15478. /* confdefs.h. */
  15479. _ACEOF
  15480. cat confdefs.h >>conftest.$ac_ext
  15481. cat >>conftest.$ac_ext <<_ACEOF
  15482. /* end confdefs.h. */
  15483. #include <CoreFoundation/CFLocale.h>
  15484. int
  15485. main ()
  15486. {
  15487. CFLocaleCopyCurrent();
  15488. ;
  15489. return 0;
  15490. }
  15491. _ACEOF
  15492. rm -f conftest.$ac_objext conftest$ac_exeext
  15493. if { (ac_try="$ac_link"
  15494. case "(($ac_try" in
  15495. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15496. *) ac_try_echo=$ac_try;;
  15497. esac
  15498. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15499. $as_echo "$ac_try_echo") >&5
  15500. (eval "$ac_link") 2>conftest.er1
  15501. ac_status=$?
  15502. grep -v '^ *+' conftest.er1 >conftest.err
  15503. rm -f conftest.er1
  15504. cat conftest.err >&5
  15505. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15506. (exit $ac_status); } && {
  15507. test -z "$ac_cxx_werror_flag" ||
  15508. test ! -s conftest.err
  15509. } && test -s conftest$ac_exeext && {
  15510. test "$cross_compiling" = yes ||
  15511. $as_test_x conftest$ac_exeext
  15512. }; then
  15513. gt_cv_func_CFLocaleCopyCurrent=yes
  15514. else
  15515. $as_echo "$as_me: failed program was:" >&5
  15516. sed 's/^/| /' conftest.$ac_ext >&5
  15517. gt_cv_func_CFLocaleCopyCurrent=no
  15518. fi
  15519. rm -rf conftest.dSYM
  15520. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15521. conftest$ac_exeext conftest.$ac_ext
  15522. LIBS="$gt_save_LIBS"
  15523. fi
  15524. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15525. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15526. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15527. cat >>confdefs.h <<\_ACEOF
  15528. #define HAVE_CFLOCALECOPYCURRENT 1
  15529. _ACEOF
  15530. fi
  15531. INTL_MACOSX_LIBS=
  15532. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15533. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15534. fi
  15535. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  15536. $as_echo_n "checking for ptrdiff_t... " >&6; }
  15537. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  15538. $as_echo_n "(cached) " >&6
  15539. else
  15540. ac_cv_type_ptrdiff_t=no
  15541. cat >conftest.$ac_ext <<_ACEOF
  15542. /* confdefs.h. */
  15543. _ACEOF
  15544. cat confdefs.h >>conftest.$ac_ext
  15545. cat >>conftest.$ac_ext <<_ACEOF
  15546. /* end confdefs.h. */
  15547. $ac_includes_default
  15548. int
  15549. main ()
  15550. {
  15551. if (sizeof (ptrdiff_t))
  15552. return 0;
  15553. ;
  15554. return 0;
  15555. }
  15556. _ACEOF
  15557. rm -f conftest.$ac_objext
  15558. if { (ac_try="$ac_compile"
  15559. case "(($ac_try" in
  15560. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15561. *) ac_try_echo=$ac_try;;
  15562. esac
  15563. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15564. $as_echo "$ac_try_echo") >&5
  15565. (eval "$ac_compile") 2>conftest.er1
  15566. ac_status=$?
  15567. grep -v '^ *+' conftest.er1 >conftest.err
  15568. rm -f conftest.er1
  15569. cat conftest.err >&5
  15570. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15571. (exit $ac_status); } && {
  15572. test -z "$ac_cxx_werror_flag" ||
  15573. test ! -s conftest.err
  15574. } && test -s conftest.$ac_objext; then
  15575. cat >conftest.$ac_ext <<_ACEOF
  15576. /* confdefs.h. */
  15577. _ACEOF
  15578. cat confdefs.h >>conftest.$ac_ext
  15579. cat >>conftest.$ac_ext <<_ACEOF
  15580. /* end confdefs.h. */
  15581. $ac_includes_default
  15582. int
  15583. main ()
  15584. {
  15585. if (sizeof ((ptrdiff_t)))
  15586. return 0;
  15587. ;
  15588. return 0;
  15589. }
  15590. _ACEOF
  15591. rm -f conftest.$ac_objext
  15592. if { (ac_try="$ac_compile"
  15593. case "(($ac_try" in
  15594. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15595. *) ac_try_echo=$ac_try;;
  15596. esac
  15597. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15598. $as_echo "$ac_try_echo") >&5
  15599. (eval "$ac_compile") 2>conftest.er1
  15600. ac_status=$?
  15601. grep -v '^ *+' conftest.er1 >conftest.err
  15602. rm -f conftest.er1
  15603. cat conftest.err >&5
  15604. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15605. (exit $ac_status); } && {
  15606. test -z "$ac_cxx_werror_flag" ||
  15607. test ! -s conftest.err
  15608. } && test -s conftest.$ac_objext; then
  15609. :
  15610. else
  15611. $as_echo "$as_me: failed program was:" >&5
  15612. sed 's/^/| /' conftest.$ac_ext >&5
  15613. ac_cv_type_ptrdiff_t=yes
  15614. fi
  15615. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15616. else
  15617. $as_echo "$as_me: failed program was:" >&5
  15618. sed 's/^/| /' conftest.$ac_ext >&5
  15619. fi
  15620. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15621. fi
  15622. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  15623. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  15624. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  15625. :
  15626. else
  15627. cat >>confdefs.h <<\_ACEOF
  15628. #define ptrdiff_t long
  15629. _ACEOF
  15630. fi
  15631. for ac_header in stddef.h stdlib.h string.h
  15632. do
  15633. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15634. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15635. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15636. $as_echo_n "checking for $ac_header... " >&6; }
  15637. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15638. $as_echo_n "(cached) " >&6
  15639. fi
  15640. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15641. $as_echo "$as_val"'`
  15642. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15643. $as_echo "$ac_res" >&6; }
  15644. else
  15645. # Is the header compilable?
  15646. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15647. $as_echo_n "checking $ac_header usability... " >&6; }
  15648. cat >conftest.$ac_ext <<_ACEOF
  15649. /* confdefs.h. */
  15650. _ACEOF
  15651. cat confdefs.h >>conftest.$ac_ext
  15652. cat >>conftest.$ac_ext <<_ACEOF
  15653. /* end confdefs.h. */
  15654. $ac_includes_default
  15655. #include <$ac_header>
  15656. _ACEOF
  15657. rm -f conftest.$ac_objext
  15658. if { (ac_try="$ac_compile"
  15659. case "(($ac_try" in
  15660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15661. *) ac_try_echo=$ac_try;;
  15662. esac
  15663. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15664. $as_echo "$ac_try_echo") >&5
  15665. (eval "$ac_compile") 2>conftest.er1
  15666. ac_status=$?
  15667. grep -v '^ *+' conftest.er1 >conftest.err
  15668. rm -f conftest.er1
  15669. cat conftest.err >&5
  15670. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15671. (exit $ac_status); } && {
  15672. test -z "$ac_cxx_werror_flag" ||
  15673. test ! -s conftest.err
  15674. } && test -s conftest.$ac_objext; then
  15675. ac_header_compiler=yes
  15676. else
  15677. $as_echo "$as_me: failed program was:" >&5
  15678. sed 's/^/| /' conftest.$ac_ext >&5
  15679. ac_header_compiler=no
  15680. fi
  15681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15682. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15683. $as_echo "$ac_header_compiler" >&6; }
  15684. # Is the header present?
  15685. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15686. $as_echo_n "checking $ac_header presence... " >&6; }
  15687. cat >conftest.$ac_ext <<_ACEOF
  15688. /* confdefs.h. */
  15689. _ACEOF
  15690. cat confdefs.h >>conftest.$ac_ext
  15691. cat >>conftest.$ac_ext <<_ACEOF
  15692. /* end confdefs.h. */
  15693. #include <$ac_header>
  15694. _ACEOF
  15695. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15696. case "(($ac_try" in
  15697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15698. *) ac_try_echo=$ac_try;;
  15699. esac
  15700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15701. $as_echo "$ac_try_echo") >&5
  15702. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15703. ac_status=$?
  15704. grep -v '^ *+' conftest.er1 >conftest.err
  15705. rm -f conftest.er1
  15706. cat conftest.err >&5
  15707. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15708. (exit $ac_status); } >/dev/null && {
  15709. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15710. test ! -s conftest.err
  15711. }; then
  15712. ac_header_preproc=yes
  15713. else
  15714. $as_echo "$as_me: failed program was:" >&5
  15715. sed 's/^/| /' conftest.$ac_ext >&5
  15716. ac_header_preproc=no
  15717. fi
  15718. rm -f conftest.err conftest.$ac_ext
  15719. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15720. $as_echo "$ac_header_preproc" >&6; }
  15721. # So? What about this header?
  15722. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15723. yes:no: )
  15724. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15725. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15726. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15727. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15728. ac_header_preproc=yes
  15729. ;;
  15730. no:yes:* )
  15731. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15732. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15733. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15734. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15735. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15736. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15737. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15738. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15739. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15740. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15741. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15742. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15743. ( cat <<\_ASBOX
  15744. ## ----------------------------------------------- ##
  15745. ## Report this to t-tujikawa@users.sourceforge.net ##
  15746. ## ----------------------------------------------- ##
  15747. _ASBOX
  15748. ) | sed "s/^/$as_me: WARNING: /" >&2
  15749. ;;
  15750. esac
  15751. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15752. $as_echo_n "checking for $ac_header... " >&6; }
  15753. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15754. $as_echo_n "(cached) " >&6
  15755. else
  15756. eval "$as_ac_Header=\$ac_header_preproc"
  15757. fi
  15758. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15759. $as_echo "$as_val"'`
  15760. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15761. $as_echo "$ac_res" >&6; }
  15762. fi
  15763. as_val=`eval 'as_val=${'$as_ac_Header'}
  15764. $as_echo "$as_val"'`
  15765. if test "x$as_val" = x""yes; then
  15766. cat >>confdefs.h <<_ACEOF
  15767. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15768. _ACEOF
  15769. fi
  15770. done
  15771. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  15772. do
  15773. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15774. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  15775. $as_echo_n "checking for $ac_func... " >&6; }
  15776. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  15777. $as_echo_n "(cached) " >&6
  15778. else
  15779. cat >conftest.$ac_ext <<_ACEOF
  15780. /* confdefs.h. */
  15781. _ACEOF
  15782. cat confdefs.h >>conftest.$ac_ext
  15783. cat >>conftest.$ac_ext <<_ACEOF
  15784. /* end confdefs.h. */
  15785. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  15786. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15787. #define $ac_func innocuous_$ac_func
  15788. /* System header to define __stub macros and hopefully few prototypes,
  15789. which can conflict with char $ac_func (); below.
  15790. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15791. <limits.h> exists even on freestanding compilers. */
  15792. #ifdef __STDC__
  15793. # include <limits.h>
  15794. #else
  15795. # include <assert.h>
  15796. #endif
  15797. #undef $ac_func
  15798. /* Override any GCC internal prototype to avoid an error.
  15799. Use char because int might match the return type of a GCC
  15800. builtin and then its argument prototype would still apply. */
  15801. #ifdef __cplusplus
  15802. extern "C"
  15803. #endif
  15804. char $ac_func ();
  15805. /* The GNU C library defines this for functions which it implements
  15806. to always fail with ENOSYS. Some functions are actually named
  15807. something starting with __ and the normal name is an alias. */
  15808. #if defined __stub_$ac_func || defined __stub___$ac_func
  15809. choke me
  15810. #endif
  15811. int
  15812. main ()
  15813. {
  15814. return $ac_func ();
  15815. ;
  15816. return 0;
  15817. }
  15818. _ACEOF
  15819. rm -f conftest.$ac_objext conftest$ac_exeext
  15820. if { (ac_try="$ac_link"
  15821. case "(($ac_try" in
  15822. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15823. *) ac_try_echo=$ac_try;;
  15824. esac
  15825. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15826. $as_echo "$ac_try_echo") >&5
  15827. (eval "$ac_link") 2>conftest.er1
  15828. ac_status=$?
  15829. grep -v '^ *+' conftest.er1 >conftest.err
  15830. rm -f conftest.er1
  15831. cat conftest.err >&5
  15832. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15833. (exit $ac_status); } && {
  15834. test -z "$ac_cxx_werror_flag" ||
  15835. test ! -s conftest.err
  15836. } && test -s conftest$ac_exeext && {
  15837. test "$cross_compiling" = yes ||
  15838. $as_test_x conftest$ac_exeext
  15839. }; then
  15840. eval "$as_ac_var=yes"
  15841. else
  15842. $as_echo "$as_me: failed program was:" >&5
  15843. sed 's/^/| /' conftest.$ac_ext >&5
  15844. eval "$as_ac_var=no"
  15845. fi
  15846. rm -rf conftest.dSYM
  15847. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15848. conftest$ac_exeext conftest.$ac_ext
  15849. fi
  15850. ac_res=`eval 'as_val=${'$as_ac_var'}
  15851. $as_echo "$as_val"'`
  15852. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15853. $as_echo "$ac_res" >&6; }
  15854. as_val=`eval 'as_val=${'$as_ac_var'}
  15855. $as_echo "$as_val"'`
  15856. if test "x$as_val" = x""yes; then
  15857. cat >>confdefs.h <<_ACEOF
  15858. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15859. _ACEOF
  15860. fi
  15861. done
  15862. { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  15863. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  15864. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  15865. $as_echo_n "(cached) " >&6
  15866. else
  15867. cat >conftest.$ac_ext <<_ACEOF
  15868. /* confdefs.h. */
  15869. _ACEOF
  15870. cat confdefs.h >>conftest.$ac_ext
  15871. cat >>conftest.$ac_ext <<_ACEOF
  15872. /* end confdefs.h. */
  15873. #include <stdio.h>
  15874. int
  15875. main ()
  15876. {
  15877. #ifndef _snprintf
  15878. char *p = (char *) _snprintf;
  15879. #endif
  15880. ;
  15881. return 0;
  15882. }
  15883. _ACEOF
  15884. rm -f conftest.$ac_objext
  15885. if { (ac_try="$ac_compile"
  15886. case "(($ac_try" in
  15887. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15888. *) ac_try_echo=$ac_try;;
  15889. esac
  15890. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15891. $as_echo "$ac_try_echo") >&5
  15892. (eval "$ac_compile") 2>conftest.er1
  15893. ac_status=$?
  15894. grep -v '^ *+' conftest.er1 >conftest.err
  15895. rm -f conftest.er1
  15896. cat conftest.err >&5
  15897. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15898. (exit $ac_status); } && {
  15899. test -z "$ac_cxx_werror_flag" ||
  15900. test ! -s conftest.err
  15901. } && test -s conftest.$ac_objext; then
  15902. ac_cv_have_decl__snprintf=yes
  15903. else
  15904. $as_echo "$as_me: failed program was:" >&5
  15905. sed 's/^/| /' conftest.$ac_ext >&5
  15906. ac_cv_have_decl__snprintf=no
  15907. fi
  15908. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15909. fi
  15910. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  15911. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  15912. if test $ac_cv_have_decl__snprintf = yes; then
  15913. gt_value=1
  15914. else
  15915. gt_value=0
  15916. fi
  15917. cat >>confdefs.h <<_ACEOF
  15918. #define HAVE_DECL__SNPRINTF $gt_value
  15919. _ACEOF
  15920. { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  15921. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  15922. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  15923. $as_echo_n "(cached) " >&6
  15924. else
  15925. cat >conftest.$ac_ext <<_ACEOF
  15926. /* confdefs.h. */
  15927. _ACEOF
  15928. cat confdefs.h >>conftest.$ac_ext
  15929. cat >>conftest.$ac_ext <<_ACEOF
  15930. /* end confdefs.h. */
  15931. #include <stdio.h>
  15932. int
  15933. main ()
  15934. {
  15935. #ifndef _snwprintf
  15936. char *p = (char *) _snwprintf;
  15937. #endif
  15938. ;
  15939. return 0;
  15940. }
  15941. _ACEOF
  15942. rm -f conftest.$ac_objext
  15943. if { (ac_try="$ac_compile"
  15944. case "(($ac_try" in
  15945. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15946. *) ac_try_echo=$ac_try;;
  15947. esac
  15948. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15949. $as_echo "$ac_try_echo") >&5
  15950. (eval "$ac_compile") 2>conftest.er1
  15951. ac_status=$?
  15952. grep -v '^ *+' conftest.er1 >conftest.err
  15953. rm -f conftest.er1
  15954. cat conftest.err >&5
  15955. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15956. (exit $ac_status); } && {
  15957. test -z "$ac_cxx_werror_flag" ||
  15958. test ! -s conftest.err
  15959. } && test -s conftest.$ac_objext; then
  15960. ac_cv_have_decl__snwprintf=yes
  15961. else
  15962. $as_echo "$as_me: failed program was:" >&5
  15963. sed 's/^/| /' conftest.$ac_ext >&5
  15964. ac_cv_have_decl__snwprintf=no
  15965. fi
  15966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15967. fi
  15968. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  15969. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  15970. if test $ac_cv_have_decl__snwprintf = yes; then
  15971. gt_value=1
  15972. else
  15973. gt_value=0
  15974. fi
  15975. cat >>confdefs.h <<_ACEOF
  15976. #define HAVE_DECL__SNWPRINTF $gt_value
  15977. _ACEOF
  15978. { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  15979. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  15980. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  15981. $as_echo_n "(cached) " >&6
  15982. else
  15983. cat >conftest.$ac_ext <<_ACEOF
  15984. /* confdefs.h. */
  15985. _ACEOF
  15986. cat confdefs.h >>conftest.$ac_ext
  15987. cat >>conftest.$ac_ext <<_ACEOF
  15988. /* end confdefs.h. */
  15989. #include <stdio.h>
  15990. int
  15991. main ()
  15992. {
  15993. #ifndef getc_unlocked
  15994. char *p = (char *) getc_unlocked;
  15995. #endif
  15996. ;
  15997. return 0;
  15998. }
  15999. _ACEOF
  16000. rm -f conftest.$ac_objext
  16001. if { (ac_try="$ac_compile"
  16002. case "(($ac_try" in
  16003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16004. *) ac_try_echo=$ac_try;;
  16005. esac
  16006. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16007. $as_echo "$ac_try_echo") >&5
  16008. (eval "$ac_compile") 2>conftest.er1
  16009. ac_status=$?
  16010. grep -v '^ *+' conftest.er1 >conftest.err
  16011. rm -f conftest.er1
  16012. cat conftest.err >&5
  16013. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16014. (exit $ac_status); } && {
  16015. test -z "$ac_cxx_werror_flag" ||
  16016. test ! -s conftest.err
  16017. } && test -s conftest.$ac_objext; then
  16018. ac_cv_have_decl_getc_unlocked=yes
  16019. else
  16020. $as_echo "$as_me: failed program was:" >&5
  16021. sed 's/^/| /' conftest.$ac_ext >&5
  16022. ac_cv_have_decl_getc_unlocked=no
  16023. fi
  16024. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16025. fi
  16026. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  16027. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  16028. if test $ac_cv_have_decl_getc_unlocked = yes; then
  16029. gt_value=1
  16030. else
  16031. gt_value=0
  16032. fi
  16033. cat >>confdefs.h <<_ACEOF
  16034. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  16035. _ACEOF
  16036. case $gt_cv_func_printf_posix in
  16037. *yes) HAVE_POSIX_PRINTF=1 ;;
  16038. *) HAVE_POSIX_PRINTF=0 ;;
  16039. esac
  16040. if test "$ac_cv_func_asprintf" = yes; then
  16041. HAVE_ASPRINTF=1
  16042. else
  16043. HAVE_ASPRINTF=0
  16044. fi
  16045. if test "$ac_cv_func_snprintf" = yes; then
  16046. HAVE_SNPRINTF=1
  16047. else
  16048. HAVE_SNPRINTF=0
  16049. fi
  16050. if test "$ac_cv_func_wprintf" = yes; then
  16051. HAVE_WPRINTF=1
  16052. else
  16053. HAVE_WPRINTF=0
  16054. fi
  16055. { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  16056. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  16057. if test "${am_cv_langinfo_codeset+set}" = set; then
  16058. $as_echo_n "(cached) " >&6
  16059. else
  16060. cat >conftest.$ac_ext <<_ACEOF
  16061. /* confdefs.h. */
  16062. _ACEOF
  16063. cat confdefs.h >>conftest.$ac_ext
  16064. cat >>conftest.$ac_ext <<_ACEOF
  16065. /* end confdefs.h. */
  16066. #include <langinfo.h>
  16067. int
  16068. main ()
  16069. {
  16070. char* cs = nl_langinfo(CODESET); return !cs;
  16071. ;
  16072. return 0;
  16073. }
  16074. _ACEOF
  16075. rm -f conftest.$ac_objext conftest$ac_exeext
  16076. if { (ac_try="$ac_link"
  16077. case "(($ac_try" in
  16078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16079. *) ac_try_echo=$ac_try;;
  16080. esac
  16081. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16082. $as_echo "$ac_try_echo") >&5
  16083. (eval "$ac_link") 2>conftest.er1
  16084. ac_status=$?
  16085. grep -v '^ *+' conftest.er1 >conftest.err
  16086. rm -f conftest.er1
  16087. cat conftest.err >&5
  16088. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16089. (exit $ac_status); } && {
  16090. test -z "$ac_cxx_werror_flag" ||
  16091. test ! -s conftest.err
  16092. } && test -s conftest$ac_exeext && {
  16093. test "$cross_compiling" = yes ||
  16094. $as_test_x conftest$ac_exeext
  16095. }; then
  16096. am_cv_langinfo_codeset=yes
  16097. else
  16098. $as_echo "$as_me: failed program was:" >&5
  16099. sed 's/^/| /' conftest.$ac_ext >&5
  16100. am_cv_langinfo_codeset=no
  16101. fi
  16102. rm -rf conftest.dSYM
  16103. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16104. conftest$ac_exeext conftest.$ac_ext
  16105. fi
  16106. { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  16107. $as_echo "$am_cv_langinfo_codeset" >&6; }
  16108. if test $am_cv_langinfo_codeset = yes; then
  16109. cat >>confdefs.h <<\_ACEOF
  16110. #define HAVE_LANGINFO_CODESET 1
  16111. _ACEOF
  16112. fi
  16113. { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  16114. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  16115. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  16116. $as_echo_n "(cached) " >&6
  16117. else
  16118. cat >conftest.$ac_ext <<_ACEOF
  16119. /* confdefs.h. */
  16120. _ACEOF
  16121. cat confdefs.h >>conftest.$ac_ext
  16122. cat >>conftest.$ac_ext <<_ACEOF
  16123. /* end confdefs.h. */
  16124. #include <locale.h>
  16125. int
  16126. main ()
  16127. {
  16128. return LC_MESSAGES
  16129. ;
  16130. return 0;
  16131. }
  16132. _ACEOF
  16133. rm -f conftest.$ac_objext conftest$ac_exeext
  16134. if { (ac_try="$ac_link"
  16135. case "(($ac_try" in
  16136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16137. *) ac_try_echo=$ac_try;;
  16138. esac
  16139. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16140. $as_echo "$ac_try_echo") >&5
  16141. (eval "$ac_link") 2>conftest.er1
  16142. ac_status=$?
  16143. grep -v '^ *+' conftest.er1 >conftest.err
  16144. rm -f conftest.er1
  16145. cat conftest.err >&5
  16146. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16147. (exit $ac_status); } && {
  16148. test -z "$ac_cxx_werror_flag" ||
  16149. test ! -s conftest.err
  16150. } && test -s conftest$ac_exeext && {
  16151. test "$cross_compiling" = yes ||
  16152. $as_test_x conftest$ac_exeext
  16153. }; then
  16154. gt_cv_val_LC_MESSAGES=yes
  16155. else
  16156. $as_echo "$as_me: failed program was:" >&5
  16157. sed 's/^/| /' conftest.$ac_ext >&5
  16158. gt_cv_val_LC_MESSAGES=no
  16159. fi
  16160. rm -rf conftest.dSYM
  16161. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16162. conftest$ac_exeext conftest.$ac_ext
  16163. fi
  16164. { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  16165. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  16166. if test $gt_cv_val_LC_MESSAGES = yes; then
  16167. cat >>confdefs.h <<\_ACEOF
  16168. #define HAVE_LC_MESSAGES 1
  16169. _ACEOF
  16170. fi
  16171. if test "$enable_shared" = yes; then
  16172. case "$host_os" in
  16173. mingw* | cygwin*) is_woe32dll=yes ;;
  16174. *) is_woe32dll=no ;;
  16175. esac
  16176. else
  16177. is_woe32dll=no
  16178. fi
  16179. WOE32DLL=$is_woe32dll
  16180. case "$host_os" in
  16181. mingw* | cygwin*) is_woe32=yes ;;
  16182. *) is_woe32=no ;;
  16183. esac
  16184. WOE32=$is_woe32
  16185. if test $WOE32 = yes; then
  16186. if test -n "$ac_tool_prefix"; then
  16187. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  16188. set dummy ${ac_tool_prefix}windres; ac_word=$2
  16189. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16190. $as_echo_n "checking for $ac_word... " >&6; }
  16191. if test "${ac_cv_prog_WINDRES+set}" = set; then
  16192. $as_echo_n "(cached) " >&6
  16193. else
  16194. if test -n "$WINDRES"; then
  16195. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  16196. else
  16197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16198. for as_dir in $PATH
  16199. do
  16200. IFS=$as_save_IFS
  16201. test -z "$as_dir" && as_dir=.
  16202. for ac_exec_ext in '' $ac_executable_extensions; do
  16203. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16204. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  16205. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16206. break 2
  16207. fi
  16208. done
  16209. done
  16210. IFS=$as_save_IFS
  16211. fi
  16212. fi
  16213. WINDRES=$ac_cv_prog_WINDRES
  16214. if test -n "$WINDRES"; then
  16215. { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
  16216. $as_echo "$WINDRES" >&6; }
  16217. else
  16218. { $as_echo "$as_me:$LINENO: result: no" >&5
  16219. $as_echo "no" >&6; }
  16220. fi
  16221. fi
  16222. if test -z "$ac_cv_prog_WINDRES"; then
  16223. ac_ct_WINDRES=$WINDRES
  16224. # Extract the first word of "windres", so it can be a program name with args.
  16225. set dummy windres; ac_word=$2
  16226. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16227. $as_echo_n "checking for $ac_word... " >&6; }
  16228. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  16229. $as_echo_n "(cached) " >&6
  16230. else
  16231. if test -n "$ac_ct_WINDRES"; then
  16232. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  16233. else
  16234. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16235. for as_dir in $PATH
  16236. do
  16237. IFS=$as_save_IFS
  16238. test -z "$as_dir" && as_dir=.
  16239. for ac_exec_ext in '' $ac_executable_extensions; do
  16240. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16241. ac_cv_prog_ac_ct_WINDRES="windres"
  16242. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16243. break 2
  16244. fi
  16245. done
  16246. done
  16247. IFS=$as_save_IFS
  16248. fi
  16249. fi
  16250. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  16251. if test -n "$ac_ct_WINDRES"; then
  16252. { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  16253. $as_echo "$ac_ct_WINDRES" >&6; }
  16254. else
  16255. { $as_echo "$as_me:$LINENO: result: no" >&5
  16256. $as_echo "no" >&6; }
  16257. fi
  16258. if test "x$ac_ct_WINDRES" = x; then
  16259. WINDRES=""
  16260. else
  16261. case $cross_compiling:$ac_tool_warned in
  16262. yes:)
  16263. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  16264. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16265. ac_tool_warned=yes ;;
  16266. esac
  16267. WINDRES=$ac_ct_WINDRES
  16268. fi
  16269. else
  16270. WINDRES="$ac_cv_prog_WINDRES"
  16271. fi
  16272. fi
  16273. case "$host_os" in
  16274. hpux*) LTLIBC="" ;;
  16275. *) LTLIBC="-lc" ;;
  16276. esac
  16277. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  16278. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  16279. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  16280. $as_echo_n "(cached) " >&6
  16281. else
  16282. gt_save_LIBS="$LIBS"
  16283. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  16284. cat >conftest.$ac_ext <<_ACEOF
  16285. /* confdefs.h. */
  16286. _ACEOF
  16287. cat confdefs.h >>conftest.$ac_ext
  16288. cat >>conftest.$ac_ext <<_ACEOF
  16289. /* end confdefs.h. */
  16290. #include <CoreFoundation/CFPreferences.h>
  16291. int
  16292. main ()
  16293. {
  16294. CFPreferencesCopyAppValue(NULL, NULL)
  16295. ;
  16296. return 0;
  16297. }
  16298. _ACEOF
  16299. rm -f conftest.$ac_objext conftest$ac_exeext
  16300. if { (ac_try="$ac_link"
  16301. case "(($ac_try" in
  16302. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16303. *) ac_try_echo=$ac_try;;
  16304. esac
  16305. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16306. $as_echo "$ac_try_echo") >&5
  16307. (eval "$ac_link") 2>conftest.er1
  16308. ac_status=$?
  16309. grep -v '^ *+' conftest.er1 >conftest.err
  16310. rm -f conftest.er1
  16311. cat conftest.err >&5
  16312. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16313. (exit $ac_status); } && {
  16314. test -z "$ac_cxx_werror_flag" ||
  16315. test ! -s conftest.err
  16316. } && test -s conftest$ac_exeext && {
  16317. test "$cross_compiling" = yes ||
  16318. $as_test_x conftest$ac_exeext
  16319. }; then
  16320. gt_cv_func_CFPreferencesCopyAppValue=yes
  16321. else
  16322. $as_echo "$as_me: failed program was:" >&5
  16323. sed 's/^/| /' conftest.$ac_ext >&5
  16324. gt_cv_func_CFPreferencesCopyAppValue=no
  16325. fi
  16326. rm -rf conftest.dSYM
  16327. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16328. conftest$ac_exeext conftest.$ac_ext
  16329. LIBS="$gt_save_LIBS"
  16330. fi
  16331. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  16332. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  16333. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  16334. cat >>confdefs.h <<\_ACEOF
  16335. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  16336. _ACEOF
  16337. fi
  16338. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  16339. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  16340. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  16341. $as_echo_n "(cached) " >&6
  16342. else
  16343. gt_save_LIBS="$LIBS"
  16344. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  16345. cat >conftest.$ac_ext <<_ACEOF
  16346. /* confdefs.h. */
  16347. _ACEOF
  16348. cat confdefs.h >>conftest.$ac_ext
  16349. cat >>conftest.$ac_ext <<_ACEOF
  16350. /* end confdefs.h. */
  16351. #include <CoreFoundation/CFLocale.h>
  16352. int
  16353. main ()
  16354. {
  16355. CFLocaleCopyCurrent();
  16356. ;
  16357. return 0;
  16358. }
  16359. _ACEOF
  16360. rm -f conftest.$ac_objext conftest$ac_exeext
  16361. if { (ac_try="$ac_link"
  16362. case "(($ac_try" in
  16363. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16364. *) ac_try_echo=$ac_try;;
  16365. esac
  16366. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16367. $as_echo "$ac_try_echo") >&5
  16368. (eval "$ac_link") 2>conftest.er1
  16369. ac_status=$?
  16370. grep -v '^ *+' conftest.er1 >conftest.err
  16371. rm -f conftest.er1
  16372. cat conftest.err >&5
  16373. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16374. (exit $ac_status); } && {
  16375. test -z "$ac_cxx_werror_flag" ||
  16376. test ! -s conftest.err
  16377. } && test -s conftest$ac_exeext && {
  16378. test "$cross_compiling" = yes ||
  16379. $as_test_x conftest$ac_exeext
  16380. }; then
  16381. gt_cv_func_CFLocaleCopyCurrent=yes
  16382. else
  16383. $as_echo "$as_me: failed program was:" >&5
  16384. sed 's/^/| /' conftest.$ac_ext >&5
  16385. gt_cv_func_CFLocaleCopyCurrent=no
  16386. fi
  16387. rm -rf conftest.dSYM
  16388. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16389. conftest$ac_exeext conftest.$ac_ext
  16390. LIBS="$gt_save_LIBS"
  16391. fi
  16392. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  16393. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  16394. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  16395. cat >>confdefs.h <<\_ACEOF
  16396. #define HAVE_CFLOCALECOPYCURRENT 1
  16397. _ACEOF
  16398. fi
  16399. INTL_MACOSX_LIBS=
  16400. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  16401. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  16402. fi
  16403. BUILD_INCLUDED_LIBINTL=no
  16404. USE_INCLUDED_LIBINTL=no
  16405. LIBINTL=
  16406. LTLIBINTL=
  16407. POSUB=
  16408. case " $gt_needs " in
  16409. *" need-formatstring-macros "*) gt_api_version=3 ;;
  16410. *" need-ngettext "*) gt_api_version=2 ;;
  16411. *) gt_api_version=1 ;;
  16412. esac
  16413. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  16414. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  16415. if test "$USE_NLS" = "yes"; then
  16416. gt_use_preinstalled_gnugettext=no
  16417. { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  16418. $as_echo_n "checking whether included gettext is requested... " >&6; }
  16419. # Check whether --with-included-gettext was given.
  16420. if test "${with_included_gettext+set}" = set; then
  16421. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  16422. else
  16423. nls_cv_force_use_gnu_gettext=no
  16424. fi
  16425. { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  16426. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  16427. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  16428. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  16429. if test $gt_api_version -ge 3; then
  16430. gt_revision_test_code='
  16431. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  16432. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  16433. #endif
  16434. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  16435. '
  16436. else
  16437. gt_revision_test_code=
  16438. fi
  16439. if test $gt_api_version -ge 2; then
  16440. gt_expression_test_code=' + * ngettext ("", "", 0)'
  16441. else
  16442. gt_expression_test_code=
  16443. fi
  16444. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  16445. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  16446. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  16447. $as_echo_n "(cached) " >&6
  16448. else
  16449. cat >conftest.$ac_ext <<_ACEOF
  16450. /* confdefs.h. */
  16451. _ACEOF
  16452. cat confdefs.h >>conftest.$ac_ext
  16453. cat >>conftest.$ac_ext <<_ACEOF
  16454. /* end confdefs.h. */
  16455. #include <libintl.h>
  16456. $gt_revision_test_code
  16457. extern int _nl_msg_cat_cntr;
  16458. extern int *_nl_domain_bindings;
  16459. int
  16460. main ()
  16461. {
  16462. bindtextdomain ("", "");
  16463. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  16464. ;
  16465. return 0;
  16466. }
  16467. _ACEOF
  16468. rm -f conftest.$ac_objext conftest$ac_exeext
  16469. if { (ac_try="$ac_link"
  16470. case "(($ac_try" in
  16471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16472. *) ac_try_echo=$ac_try;;
  16473. esac
  16474. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16475. $as_echo "$ac_try_echo") >&5
  16476. (eval "$ac_link") 2>conftest.er1
  16477. ac_status=$?
  16478. grep -v '^ *+' conftest.er1 >conftest.err
  16479. rm -f conftest.er1
  16480. cat conftest.err >&5
  16481. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16482. (exit $ac_status); } && {
  16483. test -z "$ac_cxx_werror_flag" ||
  16484. test ! -s conftest.err
  16485. } && test -s conftest$ac_exeext && {
  16486. test "$cross_compiling" = yes ||
  16487. $as_test_x conftest$ac_exeext
  16488. }; then
  16489. eval "$gt_func_gnugettext_libc=yes"
  16490. else
  16491. $as_echo "$as_me: failed program was:" >&5
  16492. sed 's/^/| /' conftest.$ac_ext >&5
  16493. eval "$gt_func_gnugettext_libc=no"
  16494. fi
  16495. rm -rf conftest.dSYM
  16496. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16497. conftest$ac_exeext conftest.$ac_ext
  16498. fi
  16499. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
  16500. $as_echo "$as_val"'`
  16501. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16502. $as_echo "$ac_res" >&6; }
  16503. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  16504. use_additional=yes
  16505. acl_save_prefix="$prefix"
  16506. prefix="$acl_final_prefix"
  16507. acl_save_exec_prefix="$exec_prefix"
  16508. exec_prefix="$acl_final_exec_prefix"
  16509. eval additional_includedir=\"$includedir\"
  16510. eval additional_libdir=\"$libdir\"
  16511. exec_prefix="$acl_save_exec_prefix"
  16512. prefix="$acl_save_prefix"
  16513. # Check whether --with-libintl-prefix was given.
  16514. if test "${with_libintl_prefix+set}" = set; then
  16515. withval=$with_libintl_prefix;
  16516. if test "X$withval" = "Xno"; then
  16517. use_additional=no
  16518. else
  16519. if test "X$withval" = "X"; then
  16520. acl_save_prefix="$prefix"
  16521. prefix="$acl_final_prefix"
  16522. acl_save_exec_prefix="$exec_prefix"
  16523. exec_prefix="$acl_final_exec_prefix"
  16524. eval additional_includedir=\"$includedir\"
  16525. eval additional_libdir=\"$libdir\"
  16526. exec_prefix="$acl_save_exec_prefix"
  16527. prefix="$acl_save_prefix"
  16528. else
  16529. additional_includedir="$withval/include"
  16530. additional_libdir="$withval/$acl_libdirstem"
  16531. fi
  16532. fi
  16533. fi
  16534. LIBINTL=
  16535. LTLIBINTL=
  16536. INCINTL=
  16537. LIBINTL_PREFIX=
  16538. rpathdirs=
  16539. ltrpathdirs=
  16540. names_already_handled=
  16541. names_next_round='intl '
  16542. while test -n "$names_next_round"; do
  16543. names_this_round="$names_next_round"
  16544. names_next_round=
  16545. for name in $names_this_round; do
  16546. already_handled=
  16547. for n in $names_already_handled; do
  16548. if test "$n" = "$name"; then
  16549. already_handled=yes
  16550. break
  16551. fi
  16552. done
  16553. if test -z "$already_handled"; then
  16554. names_already_handled="$names_already_handled $name"
  16555. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  16556. eval value=\"\$HAVE_LIB$uppername\"
  16557. if test -n "$value"; then
  16558. if test "$value" = yes; then
  16559. eval value=\"\$LIB$uppername\"
  16560. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  16561. eval value=\"\$LTLIB$uppername\"
  16562. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  16563. else
  16564. :
  16565. fi
  16566. else
  16567. found_dir=
  16568. found_la=
  16569. found_so=
  16570. found_a=
  16571. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  16572. if test -n "$acl_shlibext"; then
  16573. shrext=".$acl_shlibext" # typically: shrext=.so
  16574. else
  16575. shrext=
  16576. fi
  16577. if test $use_additional = yes; then
  16578. dir="$additional_libdir"
  16579. if test -n "$acl_shlibext"; then
  16580. if test -f "$dir/$libname$shrext"; then
  16581. found_dir="$dir"
  16582. found_so="$dir/$libname$shrext"
  16583. else
  16584. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16585. ver=`(cd "$dir" && \
  16586. for f in "$libname$shrext".*; do echo "$f"; done \
  16587. | sed -e "s,^$libname$shrext\\\\.,," \
  16588. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16589. | sed 1q ) 2>/dev/null`
  16590. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16591. found_dir="$dir"
  16592. found_so="$dir/$libname$shrext.$ver"
  16593. fi
  16594. else
  16595. eval library_names=\"$acl_library_names_spec\"
  16596. for f in $library_names; do
  16597. if test -f "$dir/$f"; then
  16598. found_dir="$dir"
  16599. found_so="$dir/$f"
  16600. break
  16601. fi
  16602. done
  16603. fi
  16604. fi
  16605. fi
  16606. if test "X$found_dir" = "X"; then
  16607. if test -f "$dir/$libname.$acl_libext"; then
  16608. found_dir="$dir"
  16609. found_a="$dir/$libname.$acl_libext"
  16610. fi
  16611. fi
  16612. if test "X$found_dir" != "X"; then
  16613. if test -f "$dir/$libname.la"; then
  16614. found_la="$dir/$libname.la"
  16615. fi
  16616. fi
  16617. fi
  16618. if test "X$found_dir" = "X"; then
  16619. for x in $LDFLAGS $LTLIBINTL; do
  16620. acl_save_prefix="$prefix"
  16621. prefix="$acl_final_prefix"
  16622. acl_save_exec_prefix="$exec_prefix"
  16623. exec_prefix="$acl_final_exec_prefix"
  16624. eval x=\"$x\"
  16625. exec_prefix="$acl_save_exec_prefix"
  16626. prefix="$acl_save_prefix"
  16627. case "$x" in
  16628. -L*)
  16629. dir=`echo "X$x" | sed -e 's/^X-L//'`
  16630. if test -n "$acl_shlibext"; then
  16631. if test -f "$dir/$libname$shrext"; then
  16632. found_dir="$dir"
  16633. found_so="$dir/$libname$shrext"
  16634. else
  16635. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16636. ver=`(cd "$dir" && \
  16637. for f in "$libname$shrext".*; do echo "$f"; done \
  16638. | sed -e "s,^$libname$shrext\\\\.,," \
  16639. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16640. | sed 1q ) 2>/dev/null`
  16641. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16642. found_dir="$dir"
  16643. found_so="$dir/$libname$shrext.$ver"
  16644. fi
  16645. else
  16646. eval library_names=\"$acl_library_names_spec\"
  16647. for f in $library_names; do
  16648. if test -f "$dir/$f"; then
  16649. found_dir="$dir"
  16650. found_so="$dir/$f"
  16651. break
  16652. fi
  16653. done
  16654. fi
  16655. fi
  16656. fi
  16657. if test "X$found_dir" = "X"; then
  16658. if test -f "$dir/$libname.$acl_libext"; then
  16659. found_dir="$dir"
  16660. found_a="$dir/$libname.$acl_libext"
  16661. fi
  16662. fi
  16663. if test "X$found_dir" != "X"; then
  16664. if test -f "$dir/$libname.la"; then
  16665. found_la="$dir/$libname.la"
  16666. fi
  16667. fi
  16668. ;;
  16669. esac
  16670. if test "X$found_dir" != "X"; then
  16671. break
  16672. fi
  16673. done
  16674. fi
  16675. if test "X$found_dir" != "X"; then
  16676. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  16677. if test "X$found_so" != "X"; then
  16678. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  16679. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16680. else
  16681. haveit=
  16682. for x in $ltrpathdirs; do
  16683. if test "X$x" = "X$found_dir"; then
  16684. haveit=yes
  16685. break
  16686. fi
  16687. done
  16688. if test -z "$haveit"; then
  16689. ltrpathdirs="$ltrpathdirs $found_dir"
  16690. fi
  16691. if test "$acl_hardcode_direct" = yes; then
  16692. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16693. else
  16694. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  16695. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16696. haveit=
  16697. for x in $rpathdirs; do
  16698. if test "X$x" = "X$found_dir"; then
  16699. haveit=yes
  16700. break
  16701. fi
  16702. done
  16703. if test -z "$haveit"; then
  16704. rpathdirs="$rpathdirs $found_dir"
  16705. fi
  16706. else
  16707. haveit=
  16708. for x in $LDFLAGS $LIBINTL; do
  16709. acl_save_prefix="$prefix"
  16710. prefix="$acl_final_prefix"
  16711. acl_save_exec_prefix="$exec_prefix"
  16712. exec_prefix="$acl_final_exec_prefix"
  16713. eval x=\"$x\"
  16714. exec_prefix="$acl_save_exec_prefix"
  16715. prefix="$acl_save_prefix"
  16716. if test "X$x" = "X-L$found_dir"; then
  16717. haveit=yes
  16718. break
  16719. fi
  16720. done
  16721. if test -z "$haveit"; then
  16722. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  16723. fi
  16724. if test "$acl_hardcode_minus_L" != no; then
  16725. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16726. else
  16727. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  16728. fi
  16729. fi
  16730. fi
  16731. fi
  16732. else
  16733. if test "X$found_a" != "X"; then
  16734. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  16735. else
  16736. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  16737. fi
  16738. fi
  16739. additional_includedir=
  16740. case "$found_dir" in
  16741. */$acl_libdirstem | */$acl_libdirstem/)
  16742. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  16743. LIBINTL_PREFIX="$basedir"
  16744. additional_includedir="$basedir/include"
  16745. ;;
  16746. esac
  16747. if test "X$additional_includedir" != "X"; then
  16748. if test "X$additional_includedir" != "X/usr/include"; then
  16749. haveit=
  16750. if test "X$additional_includedir" = "X/usr/local/include"; then
  16751. if test -n "$GCC"; then
  16752. case $host_os in
  16753. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  16754. esac
  16755. fi
  16756. fi
  16757. if test -z "$haveit"; then
  16758. for x in $CPPFLAGS $INCINTL; do
  16759. acl_save_prefix="$prefix"
  16760. prefix="$acl_final_prefix"
  16761. acl_save_exec_prefix="$exec_prefix"
  16762. exec_prefix="$acl_final_exec_prefix"
  16763. eval x=\"$x\"
  16764. exec_prefix="$acl_save_exec_prefix"
  16765. prefix="$acl_save_prefix"
  16766. if test "X$x" = "X-I$additional_includedir"; then
  16767. haveit=yes
  16768. break
  16769. fi
  16770. done
  16771. if test -z "$haveit"; then
  16772. if test -d "$additional_includedir"; then
  16773. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  16774. fi
  16775. fi
  16776. fi
  16777. fi
  16778. fi
  16779. if test -n "$found_la"; then
  16780. save_libdir="$libdir"
  16781. case "$found_la" in
  16782. */* | *\\*) . "$found_la" ;;
  16783. *) . "./$found_la" ;;
  16784. esac
  16785. libdir="$save_libdir"
  16786. for dep in $dependency_libs; do
  16787. case "$dep" in
  16788. -L*)
  16789. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  16790. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  16791. haveit=
  16792. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  16793. if test -n "$GCC"; then
  16794. case $host_os in
  16795. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  16796. esac
  16797. fi
  16798. fi
  16799. if test -z "$haveit"; then
  16800. haveit=
  16801. for x in $LDFLAGS $LIBINTL; do
  16802. acl_save_prefix="$prefix"
  16803. prefix="$acl_final_prefix"
  16804. acl_save_exec_prefix="$exec_prefix"
  16805. exec_prefix="$acl_final_exec_prefix"
  16806. eval x=\"$x\"
  16807. exec_prefix="$acl_save_exec_prefix"
  16808. prefix="$acl_save_prefix"
  16809. if test "X$x" = "X-L$additional_libdir"; then
  16810. haveit=yes
  16811. break
  16812. fi
  16813. done
  16814. if test -z "$haveit"; then
  16815. if test -d "$additional_libdir"; then
  16816. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  16817. fi
  16818. fi
  16819. haveit=
  16820. for x in $LDFLAGS $LTLIBINTL; do
  16821. acl_save_prefix="$prefix"
  16822. prefix="$acl_final_prefix"
  16823. acl_save_exec_prefix="$exec_prefix"
  16824. exec_prefix="$acl_final_exec_prefix"
  16825. eval x=\"$x\"
  16826. exec_prefix="$acl_save_exec_prefix"
  16827. prefix="$acl_save_prefix"
  16828. if test "X$x" = "X-L$additional_libdir"; then
  16829. haveit=yes
  16830. break
  16831. fi
  16832. done
  16833. if test -z "$haveit"; then
  16834. if test -d "$additional_libdir"; then
  16835. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  16836. fi
  16837. fi
  16838. fi
  16839. fi
  16840. ;;
  16841. -R*)
  16842. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  16843. if test "$enable_rpath" != no; then
  16844. haveit=
  16845. for x in $rpathdirs; do
  16846. if test "X$x" = "X$dir"; then
  16847. haveit=yes
  16848. break
  16849. fi
  16850. done
  16851. if test -z "$haveit"; then
  16852. rpathdirs="$rpathdirs $dir"
  16853. fi
  16854. haveit=
  16855. for x in $ltrpathdirs; do
  16856. if test "X$x" = "X$dir"; then
  16857. haveit=yes
  16858. break
  16859. fi
  16860. done
  16861. if test -z "$haveit"; then
  16862. ltrpathdirs="$ltrpathdirs $dir"
  16863. fi
  16864. fi
  16865. ;;
  16866. -l*)
  16867. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  16868. ;;
  16869. *.la)
  16870. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  16871. ;;
  16872. *)
  16873. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  16874. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  16875. ;;
  16876. esac
  16877. done
  16878. fi
  16879. else
  16880. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  16881. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  16882. fi
  16883. fi
  16884. fi
  16885. done
  16886. done
  16887. if test "X$rpathdirs" != "X"; then
  16888. if test -n "$acl_hardcode_libdir_separator"; then
  16889. alldirs=
  16890. for found_dir in $rpathdirs; do
  16891. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  16892. done
  16893. acl_save_libdir="$libdir"
  16894. libdir="$alldirs"
  16895. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16896. libdir="$acl_save_libdir"
  16897. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  16898. else
  16899. for found_dir in $rpathdirs; do
  16900. acl_save_libdir="$libdir"
  16901. libdir="$found_dir"
  16902. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  16903. libdir="$acl_save_libdir"
  16904. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  16905. done
  16906. fi
  16907. fi
  16908. if test "X$ltrpathdirs" != "X"; then
  16909. for found_dir in $ltrpathdirs; do
  16910. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  16911. done
  16912. fi
  16913. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  16914. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  16915. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  16916. $as_echo_n "(cached) " >&6
  16917. else
  16918. gt_save_CPPFLAGS="$CPPFLAGS"
  16919. CPPFLAGS="$CPPFLAGS $INCINTL"
  16920. gt_save_LIBS="$LIBS"
  16921. LIBS="$LIBS $LIBINTL"
  16922. cat >conftest.$ac_ext <<_ACEOF
  16923. /* confdefs.h. */
  16924. _ACEOF
  16925. cat confdefs.h >>conftest.$ac_ext
  16926. cat >>conftest.$ac_ext <<_ACEOF
  16927. /* end confdefs.h. */
  16928. #include <libintl.h>
  16929. $gt_revision_test_code
  16930. extern int _nl_msg_cat_cntr;
  16931. extern
  16932. #ifdef __cplusplus
  16933. "C"
  16934. #endif
  16935. const char *_nl_expand_alias (const char *);
  16936. int
  16937. main ()
  16938. {
  16939. bindtextdomain ("", "");
  16940. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16941. ;
  16942. return 0;
  16943. }
  16944. _ACEOF
  16945. rm -f conftest.$ac_objext conftest$ac_exeext
  16946. if { (ac_try="$ac_link"
  16947. case "(($ac_try" in
  16948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16949. *) ac_try_echo=$ac_try;;
  16950. esac
  16951. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16952. $as_echo "$ac_try_echo") >&5
  16953. (eval "$ac_link") 2>conftest.er1
  16954. ac_status=$?
  16955. grep -v '^ *+' conftest.er1 >conftest.err
  16956. rm -f conftest.er1
  16957. cat conftest.err >&5
  16958. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16959. (exit $ac_status); } && {
  16960. test -z "$ac_cxx_werror_flag" ||
  16961. test ! -s conftest.err
  16962. } && test -s conftest$ac_exeext && {
  16963. test "$cross_compiling" = yes ||
  16964. $as_test_x conftest$ac_exeext
  16965. }; then
  16966. eval "$gt_func_gnugettext_libintl=yes"
  16967. else
  16968. $as_echo "$as_me: failed program was:" >&5
  16969. sed 's/^/| /' conftest.$ac_ext >&5
  16970. eval "$gt_func_gnugettext_libintl=no"
  16971. fi
  16972. rm -rf conftest.dSYM
  16973. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16974. conftest$ac_exeext conftest.$ac_ext
  16975. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  16976. LIBS="$LIBS $LIBICONV"
  16977. cat >conftest.$ac_ext <<_ACEOF
  16978. /* confdefs.h. */
  16979. _ACEOF
  16980. cat confdefs.h >>conftest.$ac_ext
  16981. cat >>conftest.$ac_ext <<_ACEOF
  16982. /* end confdefs.h. */
  16983. #include <libintl.h>
  16984. $gt_revision_test_code
  16985. extern int _nl_msg_cat_cntr;
  16986. extern
  16987. #ifdef __cplusplus
  16988. "C"
  16989. #endif
  16990. const char *_nl_expand_alias (const char *);
  16991. int
  16992. main ()
  16993. {
  16994. bindtextdomain ("", "");
  16995. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  16996. ;
  16997. return 0;
  16998. }
  16999. _ACEOF
  17000. rm -f conftest.$ac_objext conftest$ac_exeext
  17001. if { (ac_try="$ac_link"
  17002. case "(($ac_try" in
  17003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17004. *) ac_try_echo=$ac_try;;
  17005. esac
  17006. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17007. $as_echo "$ac_try_echo") >&5
  17008. (eval "$ac_link") 2>conftest.er1
  17009. ac_status=$?
  17010. grep -v '^ *+' conftest.er1 >conftest.err
  17011. rm -f conftest.er1
  17012. cat conftest.err >&5
  17013. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17014. (exit $ac_status); } && {
  17015. test -z "$ac_cxx_werror_flag" ||
  17016. test ! -s conftest.err
  17017. } && test -s conftest$ac_exeext && {
  17018. test "$cross_compiling" = yes ||
  17019. $as_test_x conftest$ac_exeext
  17020. }; then
  17021. LIBINTL="$LIBINTL $LIBICONV"
  17022. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  17023. eval "$gt_func_gnugettext_libintl=yes"
  17024. else
  17025. $as_echo "$as_me: failed program was:" >&5
  17026. sed 's/^/| /' conftest.$ac_ext >&5
  17027. fi
  17028. rm -rf conftest.dSYM
  17029. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17030. conftest$ac_exeext conftest.$ac_ext
  17031. fi
  17032. CPPFLAGS="$gt_save_CPPFLAGS"
  17033. LIBS="$gt_save_LIBS"
  17034. fi
  17035. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
  17036. $as_echo "$as_val"'`
  17037. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17038. $as_echo "$ac_res" >&6; }
  17039. fi
  17040. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  17041. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  17042. && test "$PACKAGE" != gettext-runtime \
  17043. && test "$PACKAGE" != gettext-tools; }; then
  17044. gt_use_preinstalled_gnugettext=yes
  17045. else
  17046. LIBINTL=
  17047. LTLIBINTL=
  17048. INCINTL=
  17049. fi
  17050. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  17051. nls_cv_use_gnu_gettext=yes
  17052. fi
  17053. fi
  17054. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  17055. BUILD_INCLUDED_LIBINTL=yes
  17056. USE_INCLUDED_LIBINTL=yes
  17057. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  17058. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  17059. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  17060. fi
  17061. CATOBJEXT=
  17062. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17063. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17064. CATOBJEXT=.gmo
  17065. fi
  17066. if test -n "$INTL_MACOSX_LIBS"; then
  17067. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17068. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17069. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  17070. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  17071. fi
  17072. fi
  17073. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17074. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17075. cat >>confdefs.h <<\_ACEOF
  17076. #define ENABLE_NLS 1
  17077. _ACEOF
  17078. else
  17079. USE_NLS=no
  17080. fi
  17081. fi
  17082. { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
  17083. $as_echo_n "checking whether to use NLS... " >&6; }
  17084. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  17085. $as_echo "$USE_NLS" >&6; }
  17086. if test "$USE_NLS" = "yes"; then
  17087. { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  17088. $as_echo_n "checking where the gettext function comes from... " >&6; }
  17089. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17090. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  17091. gt_source="external libintl"
  17092. else
  17093. gt_source="libc"
  17094. fi
  17095. else
  17096. gt_source="included intl directory"
  17097. fi
  17098. { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
  17099. $as_echo "$gt_source" >&6; }
  17100. fi
  17101. if test "$USE_NLS" = "yes"; then
  17102. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17103. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  17104. { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
  17105. $as_echo_n "checking how to link with libintl... " >&6; }
  17106. { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
  17107. $as_echo "$LIBINTL" >&6; }
  17108. for element in $INCINTL; do
  17109. haveit=
  17110. for x in $CPPFLAGS; do
  17111. acl_save_prefix="$prefix"
  17112. prefix="$acl_final_prefix"
  17113. acl_save_exec_prefix="$exec_prefix"
  17114. exec_prefix="$acl_final_exec_prefix"
  17115. eval x=\"$x\"
  17116. exec_prefix="$acl_save_exec_prefix"
  17117. prefix="$acl_save_prefix"
  17118. if test "X$x" = "X$element"; then
  17119. haveit=yes
  17120. break
  17121. fi
  17122. done
  17123. if test -z "$haveit"; then
  17124. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  17125. fi
  17126. done
  17127. fi
  17128. cat >>confdefs.h <<\_ACEOF
  17129. #define HAVE_GETTEXT 1
  17130. _ACEOF
  17131. cat >>confdefs.h <<\_ACEOF
  17132. #define HAVE_DCGETTEXT 1
  17133. _ACEOF
  17134. fi
  17135. POSUB=po
  17136. fi
  17137. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  17138. BUILD_INCLUDED_LIBINTL=yes
  17139. fi
  17140. nls_cv_header_intl=
  17141. nls_cv_header_libgt=
  17142. DATADIRNAME=share
  17143. INSTOBJEXT=.mo
  17144. GENCAT=gencat
  17145. INTLOBJS=
  17146. if test "$USE_INCLUDED_LIBINTL" = yes; then
  17147. INTLOBJS="\$(GETTOBJS)"
  17148. fi
  17149. INTL_LIBTOOL_SUFFIX_PREFIX=
  17150. INTLLIBS="$LIBINTL"
  17151. { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
  17152. $as_echo_n "checking for error_at_line... " >&6; }
  17153. if test "${ac_cv_lib_error_at_line+set}" = set; then
  17154. $as_echo_n "(cached) " >&6
  17155. else
  17156. cat >conftest.$ac_ext <<_ACEOF
  17157. /* confdefs.h. */
  17158. _ACEOF
  17159. cat confdefs.h >>conftest.$ac_ext
  17160. cat >>conftest.$ac_ext <<_ACEOF
  17161. /* end confdefs.h. */
  17162. #include <error.h>
  17163. int
  17164. main ()
  17165. {
  17166. error_at_line (0, 0, "", 0, "an error occurred");
  17167. ;
  17168. return 0;
  17169. }
  17170. _ACEOF
  17171. rm -f conftest.$ac_objext conftest$ac_exeext
  17172. if { (ac_try="$ac_link"
  17173. case "(($ac_try" in
  17174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17175. *) ac_try_echo=$ac_try;;
  17176. esac
  17177. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17178. $as_echo "$ac_try_echo") >&5
  17179. (eval "$ac_link") 2>conftest.er1
  17180. ac_status=$?
  17181. grep -v '^ *+' conftest.er1 >conftest.err
  17182. rm -f conftest.er1
  17183. cat conftest.err >&5
  17184. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17185. (exit $ac_status); } && {
  17186. test -z "$ac_cxx_werror_flag" ||
  17187. test ! -s conftest.err
  17188. } && test -s conftest$ac_exeext && {
  17189. test "$cross_compiling" = yes ||
  17190. $as_test_x conftest$ac_exeext
  17191. }; then
  17192. ac_cv_lib_error_at_line=yes
  17193. else
  17194. $as_echo "$as_me: failed program was:" >&5
  17195. sed 's/^/| /' conftest.$ac_ext >&5
  17196. ac_cv_lib_error_at_line=no
  17197. fi
  17198. rm -rf conftest.dSYM
  17199. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17200. conftest$ac_exeext conftest.$ac_ext
  17201. fi
  17202. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  17203. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  17204. if test $ac_cv_lib_error_at_line = no; then
  17205. case " $LIBOBJS " in
  17206. *" error.$ac_objext "* ) ;;
  17207. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  17208. ;;
  17209. esac
  17210. fi
  17211. if test $ac_cv_c_compiler_gnu = yes; then
  17212. { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  17213. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  17214. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  17215. $as_echo_n "(cached) " >&6
  17216. else
  17217. ac_pattern="Autoconf.*'x'"
  17218. cat >conftest.$ac_ext <<_ACEOF
  17219. /* confdefs.h. */
  17220. _ACEOF
  17221. cat confdefs.h >>conftest.$ac_ext
  17222. cat >>conftest.$ac_ext <<_ACEOF
  17223. /* end confdefs.h. */
  17224. #include <sgtty.h>
  17225. Autoconf TIOCGETP
  17226. _ACEOF
  17227. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17228. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  17229. ac_cv_prog_gcc_traditional=yes
  17230. else
  17231. ac_cv_prog_gcc_traditional=no
  17232. fi
  17233. rm -f conftest*
  17234. if test $ac_cv_prog_gcc_traditional = no; then
  17235. cat >conftest.$ac_ext <<_ACEOF
  17236. /* confdefs.h. */
  17237. _ACEOF
  17238. cat confdefs.h >>conftest.$ac_ext
  17239. cat >>conftest.$ac_ext <<_ACEOF
  17240. /* end confdefs.h. */
  17241. #include <termio.h>
  17242. Autoconf TCGETA
  17243. _ACEOF
  17244. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17245. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  17246. ac_cv_prog_gcc_traditional=yes
  17247. fi
  17248. rm -f conftest*
  17249. fi
  17250. fi
  17251. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  17252. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  17253. if test $ac_cv_prog_gcc_traditional = yes; then
  17254. CC="$CC -traditional"
  17255. fi
  17256. fi
  17257. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  17258. $as_echo_n "checking for working memcmp... " >&6; }
  17259. if test "${ac_cv_func_memcmp_working+set}" = set; then
  17260. $as_echo_n "(cached) " >&6
  17261. else
  17262. if test "$cross_compiling" = yes; then
  17263. ac_cv_func_memcmp_working=no
  17264. else
  17265. cat >conftest.$ac_ext <<_ACEOF
  17266. /* confdefs.h. */
  17267. _ACEOF
  17268. cat confdefs.h >>conftest.$ac_ext
  17269. cat >>conftest.$ac_ext <<_ACEOF
  17270. /* end confdefs.h. */
  17271. $ac_includes_default
  17272. int
  17273. main ()
  17274. {
  17275. /* Some versions of memcmp are not 8-bit clean. */
  17276. char c0 = '\100', c1 = '\200', c2 = '\201';
  17277. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  17278. return 1;
  17279. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  17280. or more and with at least one buffer not starting on a 4-byte boundary.
  17281. William Lewis provided this test program. */
  17282. {
  17283. char foo[21];
  17284. char bar[21];
  17285. int i;
  17286. for (i = 0; i < 4; i++)
  17287. {
  17288. char *a = foo + i;
  17289. char *b = bar + i;
  17290. strcpy (a, "--------01111111");
  17291. strcpy (b, "--------10000000");
  17292. if (memcmp (a, b, 16) >= 0)
  17293. return 1;
  17294. }
  17295. return 0;
  17296. }
  17297. ;
  17298. return 0;
  17299. }
  17300. _ACEOF
  17301. rm -f conftest$ac_exeext
  17302. if { (ac_try="$ac_link"
  17303. case "(($ac_try" in
  17304. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17305. *) ac_try_echo=$ac_try;;
  17306. esac
  17307. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17308. $as_echo "$ac_try_echo") >&5
  17309. (eval "$ac_link") 2>&5
  17310. ac_status=$?
  17311. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17312. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17313. { (case "(($ac_try" in
  17314. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17315. *) ac_try_echo=$ac_try;;
  17316. esac
  17317. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17318. $as_echo "$ac_try_echo") >&5
  17319. (eval "$ac_try") 2>&5
  17320. ac_status=$?
  17321. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17322. (exit $ac_status); }; }; then
  17323. ac_cv_func_memcmp_working=yes
  17324. else
  17325. $as_echo "$as_me: program exited with status $ac_status" >&5
  17326. $as_echo "$as_me: failed program was:" >&5
  17327. sed 's/^/| /' conftest.$ac_ext >&5
  17328. ( exit $ac_status )
  17329. ac_cv_func_memcmp_working=no
  17330. fi
  17331. rm -rf conftest.dSYM
  17332. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17333. fi
  17334. fi
  17335. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  17336. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  17337. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  17338. *" memcmp.$ac_objext "* ) ;;
  17339. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  17340. ;;
  17341. esac
  17342. for ac_header in $ac_header_list
  17343. do
  17344. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17345. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17346. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17347. $as_echo_n "checking for $ac_header... " >&6; }
  17348. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17349. $as_echo_n "(cached) " >&6
  17350. fi
  17351. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17352. $as_echo "$as_val"'`
  17353. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17354. $as_echo "$ac_res" >&6; }
  17355. else
  17356. # Is the header compilable?
  17357. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17358. $as_echo_n "checking $ac_header usability... " >&6; }
  17359. cat >conftest.$ac_ext <<_ACEOF
  17360. /* confdefs.h. */
  17361. _ACEOF
  17362. cat confdefs.h >>conftest.$ac_ext
  17363. cat >>conftest.$ac_ext <<_ACEOF
  17364. /* end confdefs.h. */
  17365. $ac_includes_default
  17366. #include <$ac_header>
  17367. _ACEOF
  17368. rm -f conftest.$ac_objext
  17369. if { (ac_try="$ac_compile"
  17370. case "(($ac_try" in
  17371. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17372. *) ac_try_echo=$ac_try;;
  17373. esac
  17374. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17375. $as_echo "$ac_try_echo") >&5
  17376. (eval "$ac_compile") 2>conftest.er1
  17377. ac_status=$?
  17378. grep -v '^ *+' conftest.er1 >conftest.err
  17379. rm -f conftest.er1
  17380. cat conftest.err >&5
  17381. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17382. (exit $ac_status); } && {
  17383. test -z "$ac_cxx_werror_flag" ||
  17384. test ! -s conftest.err
  17385. } && test -s conftest.$ac_objext; then
  17386. ac_header_compiler=yes
  17387. else
  17388. $as_echo "$as_me: failed program was:" >&5
  17389. sed 's/^/| /' conftest.$ac_ext >&5
  17390. ac_header_compiler=no
  17391. fi
  17392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17393. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17394. $as_echo "$ac_header_compiler" >&6; }
  17395. # Is the header present?
  17396. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17397. $as_echo_n "checking $ac_header presence... " >&6; }
  17398. cat >conftest.$ac_ext <<_ACEOF
  17399. /* confdefs.h. */
  17400. _ACEOF
  17401. cat confdefs.h >>conftest.$ac_ext
  17402. cat >>conftest.$ac_ext <<_ACEOF
  17403. /* end confdefs.h. */
  17404. #include <$ac_header>
  17405. _ACEOF
  17406. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17407. case "(($ac_try" in
  17408. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17409. *) ac_try_echo=$ac_try;;
  17410. esac
  17411. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17412. $as_echo "$ac_try_echo") >&5
  17413. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17414. ac_status=$?
  17415. grep -v '^ *+' conftest.er1 >conftest.err
  17416. rm -f conftest.er1
  17417. cat conftest.err >&5
  17418. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17419. (exit $ac_status); } >/dev/null && {
  17420. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17421. test ! -s conftest.err
  17422. }; then
  17423. ac_header_preproc=yes
  17424. else
  17425. $as_echo "$as_me: failed program was:" >&5
  17426. sed 's/^/| /' conftest.$ac_ext >&5
  17427. ac_header_preproc=no
  17428. fi
  17429. rm -f conftest.err conftest.$ac_ext
  17430. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17431. $as_echo "$ac_header_preproc" >&6; }
  17432. # So? What about this header?
  17433. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17434. yes:no: )
  17435. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17436. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17437. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17438. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17439. ac_header_preproc=yes
  17440. ;;
  17441. no:yes:* )
  17442. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17443. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17444. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17445. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17446. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17447. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17448. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17449. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17450. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17451. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17452. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17453. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17454. ( cat <<\_ASBOX
  17455. ## ----------------------------------------------- ##
  17456. ## Report this to t-tujikawa@users.sourceforge.net ##
  17457. ## ----------------------------------------------- ##
  17458. _ASBOX
  17459. ) | sed "s/^/$as_me: WARNING: /" >&2
  17460. ;;
  17461. esac
  17462. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17463. $as_echo_n "checking for $ac_header... " >&6; }
  17464. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17465. $as_echo_n "(cached) " >&6
  17466. else
  17467. eval "$as_ac_Header=\$ac_header_preproc"
  17468. fi
  17469. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17470. $as_echo "$as_val"'`
  17471. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17472. $as_echo "$ac_res" >&6; }
  17473. fi
  17474. as_val=`eval 'as_val=${'$as_ac_Header'}
  17475. $as_echo "$as_val"'`
  17476. if test "x$as_val" = x""yes; then
  17477. cat >>confdefs.h <<_ACEOF
  17478. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17479. _ACEOF
  17480. fi
  17481. done
  17482. for ac_func in $ac_func_list
  17483. do
  17484. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17485. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17486. $as_echo_n "checking for $ac_func... " >&6; }
  17487. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17488. $as_echo_n "(cached) " >&6
  17489. else
  17490. cat >conftest.$ac_ext <<_ACEOF
  17491. /* confdefs.h. */
  17492. _ACEOF
  17493. cat confdefs.h >>conftest.$ac_ext
  17494. cat >>conftest.$ac_ext <<_ACEOF
  17495. /* end confdefs.h. */
  17496. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17497. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17498. #define $ac_func innocuous_$ac_func
  17499. /* System header to define __stub macros and hopefully few prototypes,
  17500. which can conflict with char $ac_func (); below.
  17501. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17502. <limits.h> exists even on freestanding compilers. */
  17503. #ifdef __STDC__
  17504. # include <limits.h>
  17505. #else
  17506. # include <assert.h>
  17507. #endif
  17508. #undef $ac_func
  17509. /* Override any GCC internal prototype to avoid an error.
  17510. Use char because int might match the return type of a GCC
  17511. builtin and then its argument prototype would still apply. */
  17512. #ifdef __cplusplus
  17513. extern "C"
  17514. #endif
  17515. char $ac_func ();
  17516. /* The GNU C library defines this for functions which it implements
  17517. to always fail with ENOSYS. Some functions are actually named
  17518. something starting with __ and the normal name is an alias. */
  17519. #if defined __stub_$ac_func || defined __stub___$ac_func
  17520. choke me
  17521. #endif
  17522. int
  17523. main ()
  17524. {
  17525. return $ac_func ();
  17526. ;
  17527. return 0;
  17528. }
  17529. _ACEOF
  17530. rm -f conftest.$ac_objext conftest$ac_exeext
  17531. if { (ac_try="$ac_link"
  17532. case "(($ac_try" in
  17533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17534. *) ac_try_echo=$ac_try;;
  17535. esac
  17536. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17537. $as_echo "$ac_try_echo") >&5
  17538. (eval "$ac_link") 2>conftest.er1
  17539. ac_status=$?
  17540. grep -v '^ *+' conftest.er1 >conftest.err
  17541. rm -f conftest.er1
  17542. cat conftest.err >&5
  17543. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17544. (exit $ac_status); } && {
  17545. test -z "$ac_cxx_werror_flag" ||
  17546. test ! -s conftest.err
  17547. } && test -s conftest$ac_exeext && {
  17548. test "$cross_compiling" = yes ||
  17549. $as_test_x conftest$ac_exeext
  17550. }; then
  17551. eval "$as_ac_var=yes"
  17552. else
  17553. $as_echo "$as_me: failed program was:" >&5
  17554. sed 's/^/| /' conftest.$ac_ext >&5
  17555. eval "$as_ac_var=no"
  17556. fi
  17557. rm -rf conftest.dSYM
  17558. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17559. conftest$ac_exeext conftest.$ac_ext
  17560. fi
  17561. ac_res=`eval 'as_val=${'$as_ac_var'}
  17562. $as_echo "$as_val"'`
  17563. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17564. $as_echo "$ac_res" >&6; }
  17565. as_val=`eval 'as_val=${'$as_ac_var'}
  17566. $as_echo "$as_val"'`
  17567. if test "x$as_val" = x""yes; then
  17568. cat >>confdefs.h <<_ACEOF
  17569. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17570. _ACEOF
  17571. fi
  17572. done
  17573. { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
  17574. $as_echo_n "checking for working mktime... " >&6; }
  17575. if test "${ac_cv_func_working_mktime+set}" = set; then
  17576. $as_echo_n "(cached) " >&6
  17577. else
  17578. if test "$cross_compiling" = yes; then
  17579. ac_cv_func_working_mktime=no
  17580. else
  17581. cat >conftest.$ac_ext <<_ACEOF
  17582. /* confdefs.h. */
  17583. _ACEOF
  17584. cat confdefs.h >>conftest.$ac_ext
  17585. cat >>conftest.$ac_ext <<_ACEOF
  17586. /* end confdefs.h. */
  17587. /* Test program from Paul Eggert and Tony Leneis. */
  17588. #ifdef TIME_WITH_SYS_TIME
  17589. # include <sys/time.h>
  17590. # include <time.h>
  17591. #else
  17592. # ifdef HAVE_SYS_TIME_H
  17593. # include <sys/time.h>
  17594. # else
  17595. # include <time.h>
  17596. # endif
  17597. #endif
  17598. #include <limits.h>
  17599. #include <stdlib.h>
  17600. #ifdef HAVE_UNISTD_H
  17601. # include <unistd.h>
  17602. #endif
  17603. #ifndef HAVE_ALARM
  17604. # define alarm(X) /* empty */
  17605. #endif
  17606. /* Work around redefinition to rpl_putenv by other config tests. */
  17607. #undef putenv
  17608. static time_t time_t_max;
  17609. static time_t time_t_min;
  17610. /* Values we'll use to set the TZ environment variable. */
  17611. static char *tz_strings[] = {
  17612. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17613. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17614. };
  17615. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17616. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17617. Based on a problem report from Andreas Jaeger. */
  17618. static int
  17619. spring_forward_gap ()
  17620. {
  17621. /* glibc (up to about 1998-10-07) failed this test. */
  17622. struct tm tm;
  17623. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17624. instead of "TZ=America/Vancouver" in order to detect the bug even
  17625. on systems that don't support the Olson extension, or don't have the
  17626. full zoneinfo tables installed. */
  17627. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17628. tm.tm_year = 98;
  17629. tm.tm_mon = 3;
  17630. tm.tm_mday = 5;
  17631. tm.tm_hour = 2;
  17632. tm.tm_min = 0;
  17633. tm.tm_sec = 0;
  17634. tm.tm_isdst = -1;
  17635. return mktime (&tm) != (time_t) -1;
  17636. }
  17637. static int
  17638. mktime_test1 (now)
  17639. time_t now;
  17640. {
  17641. struct tm *lt;
  17642. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17643. }
  17644. static int
  17645. mktime_test (now)
  17646. time_t now;
  17647. {
  17648. return (mktime_test1 (now)
  17649. && mktime_test1 ((time_t) (time_t_max - now))
  17650. && mktime_test1 ((time_t) (time_t_min + now)));
  17651. }
  17652. static int
  17653. irix_6_4_bug ()
  17654. {
  17655. /* Based on code from Ariel Faigon. */
  17656. struct tm tm;
  17657. tm.tm_year = 96;
  17658. tm.tm_mon = 3;
  17659. tm.tm_mday = 0;
  17660. tm.tm_hour = 0;
  17661. tm.tm_min = 0;
  17662. tm.tm_sec = 0;
  17663. tm.tm_isdst = -1;
  17664. mktime (&tm);
  17665. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17666. }
  17667. static int
  17668. bigtime_test (j)
  17669. int j;
  17670. {
  17671. struct tm tm;
  17672. time_t now;
  17673. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17674. now = mktime (&tm);
  17675. if (now != (time_t) -1)
  17676. {
  17677. struct tm *lt = localtime (&now);
  17678. if (! (lt
  17679. && lt->tm_year == tm.tm_year
  17680. && lt->tm_mon == tm.tm_mon
  17681. && lt->tm_mday == tm.tm_mday
  17682. && lt->tm_hour == tm.tm_hour
  17683. && lt->tm_min == tm.tm_min
  17684. && lt->tm_sec == tm.tm_sec
  17685. && lt->tm_yday == tm.tm_yday
  17686. && lt->tm_wday == tm.tm_wday
  17687. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17688. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17689. return 0;
  17690. }
  17691. return 1;
  17692. }
  17693. static int
  17694. year_2050_test ()
  17695. {
  17696. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17697. ignoring leap seconds. */
  17698. unsigned long int answer = 2527315200UL;
  17699. struct tm tm;
  17700. time_t t;
  17701. tm.tm_year = 2050 - 1900;
  17702. tm.tm_mon = 2 - 1;
  17703. tm.tm_mday = 1;
  17704. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17705. tm.tm_isdst = -1;
  17706. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17707. instead of "TZ=America/Vancouver" in order to detect the bug even
  17708. on systems that don't support the Olson extension, or don't have the
  17709. full zoneinfo tables installed. */
  17710. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17711. t = mktime (&tm);
  17712. /* Check that the result is either a failure, or close enough
  17713. to the correct answer that we can assume the discrepancy is
  17714. due to leap seconds. */
  17715. return (t == (time_t) -1
  17716. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17717. }
  17718. int
  17719. main ()
  17720. {
  17721. time_t t, delta;
  17722. int i, j;
  17723. /* This test makes some buggy mktime implementations loop.
  17724. Give up after 60 seconds; a mktime slower than that
  17725. isn't worth using anyway. */
  17726. alarm (60);
  17727. for (;;)
  17728. {
  17729. t = (time_t_max << 1) + 1;
  17730. if (t <= time_t_max)
  17731. break;
  17732. time_t_max = t;
  17733. }
  17734. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  17735. delta = time_t_max / 997; /* a suitable prime number */
  17736. for (i = 0; i < N_STRINGS; i++)
  17737. {
  17738. if (tz_strings[i])
  17739. putenv (tz_strings[i]);
  17740. for (t = 0; t <= time_t_max - delta; t += delta)
  17741. if (! mktime_test (t))
  17742. return 1;
  17743. if (! (mktime_test ((time_t) 1)
  17744. && mktime_test ((time_t) (60 * 60))
  17745. && mktime_test ((time_t) (60 * 60 * 24))))
  17746. return 1;
  17747. for (j = 1; ; j <<= 1)
  17748. if (! bigtime_test (j))
  17749. return 1;
  17750. else if (INT_MAX / 2 < j)
  17751. break;
  17752. if (! bigtime_test (INT_MAX))
  17753. return 1;
  17754. }
  17755. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  17756. }
  17757. _ACEOF
  17758. rm -f conftest$ac_exeext
  17759. if { (ac_try="$ac_link"
  17760. case "(($ac_try" in
  17761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17762. *) ac_try_echo=$ac_try;;
  17763. esac
  17764. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17765. $as_echo "$ac_try_echo") >&5
  17766. (eval "$ac_link") 2>&5
  17767. ac_status=$?
  17768. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17769. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17770. { (case "(($ac_try" in
  17771. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17772. *) ac_try_echo=$ac_try;;
  17773. esac
  17774. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17775. $as_echo "$ac_try_echo") >&5
  17776. (eval "$ac_try") 2>&5
  17777. ac_status=$?
  17778. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17779. (exit $ac_status); }; }; then
  17780. ac_cv_func_working_mktime=yes
  17781. else
  17782. $as_echo "$as_me: program exited with status $ac_status" >&5
  17783. $as_echo "$as_me: failed program was:" >&5
  17784. sed 's/^/| /' conftest.$ac_ext >&5
  17785. ( exit $ac_status )
  17786. ac_cv_func_working_mktime=no
  17787. fi
  17788. rm -rf conftest.dSYM
  17789. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17790. fi
  17791. fi
  17792. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  17793. $as_echo "$ac_cv_func_working_mktime" >&6; }
  17794. if test $ac_cv_func_working_mktime = no; then
  17795. case " $LIBOBJS " in
  17796. *" mktime.$ac_objext "* ) ;;
  17797. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  17798. ;;
  17799. esac
  17800. fi
  17801. for ac_header in stdlib.h unistd.h
  17802. do
  17803. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17804. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17805. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17806. $as_echo_n "checking for $ac_header... " >&6; }
  17807. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17808. $as_echo_n "(cached) " >&6
  17809. fi
  17810. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17811. $as_echo "$as_val"'`
  17812. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17813. $as_echo "$ac_res" >&6; }
  17814. else
  17815. # Is the header compilable?
  17816. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17817. $as_echo_n "checking $ac_header usability... " >&6; }
  17818. cat >conftest.$ac_ext <<_ACEOF
  17819. /* confdefs.h. */
  17820. _ACEOF
  17821. cat confdefs.h >>conftest.$ac_ext
  17822. cat >>conftest.$ac_ext <<_ACEOF
  17823. /* end confdefs.h. */
  17824. $ac_includes_default
  17825. #include <$ac_header>
  17826. _ACEOF
  17827. rm -f conftest.$ac_objext
  17828. if { (ac_try="$ac_compile"
  17829. case "(($ac_try" in
  17830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17831. *) ac_try_echo=$ac_try;;
  17832. esac
  17833. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17834. $as_echo "$ac_try_echo") >&5
  17835. (eval "$ac_compile") 2>conftest.er1
  17836. ac_status=$?
  17837. grep -v '^ *+' conftest.er1 >conftest.err
  17838. rm -f conftest.er1
  17839. cat conftest.err >&5
  17840. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17841. (exit $ac_status); } && {
  17842. test -z "$ac_cxx_werror_flag" ||
  17843. test ! -s conftest.err
  17844. } && test -s conftest.$ac_objext; then
  17845. ac_header_compiler=yes
  17846. else
  17847. $as_echo "$as_me: failed program was:" >&5
  17848. sed 's/^/| /' conftest.$ac_ext >&5
  17849. ac_header_compiler=no
  17850. fi
  17851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17852. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17853. $as_echo "$ac_header_compiler" >&6; }
  17854. # Is the header present?
  17855. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17856. $as_echo_n "checking $ac_header presence... " >&6; }
  17857. cat >conftest.$ac_ext <<_ACEOF
  17858. /* confdefs.h. */
  17859. _ACEOF
  17860. cat confdefs.h >>conftest.$ac_ext
  17861. cat >>conftest.$ac_ext <<_ACEOF
  17862. /* end confdefs.h. */
  17863. #include <$ac_header>
  17864. _ACEOF
  17865. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17866. case "(($ac_try" in
  17867. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17868. *) ac_try_echo=$ac_try;;
  17869. esac
  17870. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17871. $as_echo "$ac_try_echo") >&5
  17872. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17873. ac_status=$?
  17874. grep -v '^ *+' conftest.er1 >conftest.err
  17875. rm -f conftest.er1
  17876. cat conftest.err >&5
  17877. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17878. (exit $ac_status); } >/dev/null && {
  17879. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17880. test ! -s conftest.err
  17881. }; then
  17882. ac_header_preproc=yes
  17883. else
  17884. $as_echo "$as_me: failed program was:" >&5
  17885. sed 's/^/| /' conftest.$ac_ext >&5
  17886. ac_header_preproc=no
  17887. fi
  17888. rm -f conftest.err conftest.$ac_ext
  17889. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17890. $as_echo "$ac_header_preproc" >&6; }
  17891. # So? What about this header?
  17892. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17893. yes:no: )
  17894. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17895. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17896. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17897. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17898. ac_header_preproc=yes
  17899. ;;
  17900. no:yes:* )
  17901. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17902. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17903. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17904. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17905. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17906. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17907. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17908. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17909. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17910. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17911. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17912. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17913. ( cat <<\_ASBOX
  17914. ## ----------------------------------------------- ##
  17915. ## Report this to t-tujikawa@users.sourceforge.net ##
  17916. ## ----------------------------------------------- ##
  17917. _ASBOX
  17918. ) | sed "s/^/$as_me: WARNING: /" >&2
  17919. ;;
  17920. esac
  17921. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17922. $as_echo_n "checking for $ac_header... " >&6; }
  17923. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17924. $as_echo_n "(cached) " >&6
  17925. else
  17926. eval "$as_ac_Header=\$ac_header_preproc"
  17927. fi
  17928. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17929. $as_echo "$as_val"'`
  17930. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17931. $as_echo "$ac_res" >&6; }
  17932. fi
  17933. as_val=`eval 'as_val=${'$as_ac_Header'}
  17934. $as_echo "$as_val"'`
  17935. if test "x$as_val" = x""yes; then
  17936. cat >>confdefs.h <<_ACEOF
  17937. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17938. _ACEOF
  17939. fi
  17940. done
  17941. for ac_func in getpagesize
  17942. do
  17943. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17944. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17945. $as_echo_n "checking for $ac_func... " >&6; }
  17946. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17947. $as_echo_n "(cached) " >&6
  17948. else
  17949. cat >conftest.$ac_ext <<_ACEOF
  17950. /* confdefs.h. */
  17951. _ACEOF
  17952. cat confdefs.h >>conftest.$ac_ext
  17953. cat >>conftest.$ac_ext <<_ACEOF
  17954. /* end confdefs.h. */
  17955. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17956. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17957. #define $ac_func innocuous_$ac_func
  17958. /* System header to define __stub macros and hopefully few prototypes,
  17959. which can conflict with char $ac_func (); below.
  17960. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17961. <limits.h> exists even on freestanding compilers. */
  17962. #ifdef __STDC__
  17963. # include <limits.h>
  17964. #else
  17965. # include <assert.h>
  17966. #endif
  17967. #undef $ac_func
  17968. /* Override any GCC internal prototype to avoid an error.
  17969. Use char because int might match the return type of a GCC
  17970. builtin and then its argument prototype would still apply. */
  17971. #ifdef __cplusplus
  17972. extern "C"
  17973. #endif
  17974. char $ac_func ();
  17975. /* The GNU C library defines this for functions which it implements
  17976. to always fail with ENOSYS. Some functions are actually named
  17977. something starting with __ and the normal name is an alias. */
  17978. #if defined __stub_$ac_func || defined __stub___$ac_func
  17979. choke me
  17980. #endif
  17981. int
  17982. main ()
  17983. {
  17984. return $ac_func ();
  17985. ;
  17986. return 0;
  17987. }
  17988. _ACEOF
  17989. rm -f conftest.$ac_objext conftest$ac_exeext
  17990. if { (ac_try="$ac_link"
  17991. case "(($ac_try" in
  17992. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17993. *) ac_try_echo=$ac_try;;
  17994. esac
  17995. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17996. $as_echo "$ac_try_echo") >&5
  17997. (eval "$ac_link") 2>conftest.er1
  17998. ac_status=$?
  17999. grep -v '^ *+' conftest.er1 >conftest.err
  18000. rm -f conftest.er1
  18001. cat conftest.err >&5
  18002. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18003. (exit $ac_status); } && {
  18004. test -z "$ac_cxx_werror_flag" ||
  18005. test ! -s conftest.err
  18006. } && test -s conftest$ac_exeext && {
  18007. test "$cross_compiling" = yes ||
  18008. $as_test_x conftest$ac_exeext
  18009. }; then
  18010. eval "$as_ac_var=yes"
  18011. else
  18012. $as_echo "$as_me: failed program was:" >&5
  18013. sed 's/^/| /' conftest.$ac_ext >&5
  18014. eval "$as_ac_var=no"
  18015. fi
  18016. rm -rf conftest.dSYM
  18017. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18018. conftest$ac_exeext conftest.$ac_ext
  18019. fi
  18020. ac_res=`eval 'as_val=${'$as_ac_var'}
  18021. $as_echo "$as_val"'`
  18022. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18023. $as_echo "$ac_res" >&6; }
  18024. as_val=`eval 'as_val=${'$as_ac_var'}
  18025. $as_echo "$as_val"'`
  18026. if test "x$as_val" = x""yes; then
  18027. cat >>confdefs.h <<_ACEOF
  18028. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18029. _ACEOF
  18030. fi
  18031. done
  18032. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  18033. $as_echo_n "checking for working mmap... " >&6; }
  18034. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  18035. $as_echo_n "(cached) " >&6
  18036. else
  18037. if test "$cross_compiling" = yes; then
  18038. ac_cv_func_mmap_fixed_mapped=no
  18039. else
  18040. cat >conftest.$ac_ext <<_ACEOF
  18041. /* confdefs.h. */
  18042. _ACEOF
  18043. cat confdefs.h >>conftest.$ac_ext
  18044. cat >>conftest.$ac_ext <<_ACEOF
  18045. /* end confdefs.h. */
  18046. $ac_includes_default
  18047. /* malloc might have been renamed as rpl_malloc. */
  18048. #undef malloc
  18049. /* Thanks to Mike Haertel and Jim Avera for this test.
  18050. Here is a matrix of mmap possibilities:
  18051. mmap private not fixed
  18052. mmap private fixed at somewhere currently unmapped
  18053. mmap private fixed at somewhere already mapped
  18054. mmap shared not fixed
  18055. mmap shared fixed at somewhere currently unmapped
  18056. mmap shared fixed at somewhere already mapped
  18057. For private mappings, we should verify that changes cannot be read()
  18058. back from the file, nor mmap's back from the file at a different
  18059. address. (There have been systems where private was not correctly
  18060. implemented like the infamous i386 svr4.0, and systems where the
  18061. VM page cache was not coherent with the file system buffer cache
  18062. like early versions of FreeBSD and possibly contemporary NetBSD.)
  18063. For shared mappings, we should conversely verify that changes get
  18064. propagated back to all the places they're supposed to be.
  18065. Grep wants private fixed already mapped.
  18066. The main things grep needs to know about mmap are:
  18067. * does it exist and is it safe to write into the mmap'd area
  18068. * how to use it (BSD variants) */
  18069. #include <fcntl.h>
  18070. #include <sys/mman.h>
  18071. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  18072. char *malloc ();
  18073. #endif
  18074. /* This mess was copied from the GNU getpagesize.h. */
  18075. #ifndef HAVE_GETPAGESIZE
  18076. /* Assume that all systems that can run configure have sys/param.h. */
  18077. # ifndef HAVE_SYS_PARAM_H
  18078. # define HAVE_SYS_PARAM_H 1
  18079. # endif
  18080. # ifdef _SC_PAGESIZE
  18081. # define getpagesize() sysconf(_SC_PAGESIZE)
  18082. # else /* no _SC_PAGESIZE */
  18083. # ifdef HAVE_SYS_PARAM_H
  18084. # include <sys/param.h>
  18085. # ifdef EXEC_PAGESIZE
  18086. # define getpagesize() EXEC_PAGESIZE
  18087. # else /* no EXEC_PAGESIZE */
  18088. # ifdef NBPG
  18089. # define getpagesize() NBPG * CLSIZE
  18090. # ifndef CLSIZE
  18091. # define CLSIZE 1
  18092. # endif /* no CLSIZE */
  18093. # else /* no NBPG */
  18094. # ifdef NBPC
  18095. # define getpagesize() NBPC
  18096. # else /* no NBPC */
  18097. # ifdef PAGESIZE
  18098. # define getpagesize() PAGESIZE
  18099. # endif /* PAGESIZE */
  18100. # endif /* no NBPC */
  18101. # endif /* no NBPG */
  18102. # endif /* no EXEC_PAGESIZE */
  18103. # else /* no HAVE_SYS_PARAM_H */
  18104. # define getpagesize() 8192 /* punt totally */
  18105. # endif /* no HAVE_SYS_PARAM_H */
  18106. # endif /* no _SC_PAGESIZE */
  18107. #endif /* no HAVE_GETPAGESIZE */
  18108. int
  18109. main ()
  18110. {
  18111. char *data, *data2, *data3;
  18112. int i, pagesize;
  18113. int fd;
  18114. pagesize = getpagesize ();
  18115. /* First, make a file with some known garbage in it. */
  18116. data = (char *) malloc (pagesize);
  18117. if (!data)
  18118. return 1;
  18119. for (i = 0; i < pagesize; ++i)
  18120. *(data + i) = rand ();
  18121. umask (0);
  18122. fd = creat ("conftest.mmap", 0600);
  18123. if (fd < 0)
  18124. return 1;
  18125. if (write (fd, data, pagesize) != pagesize)
  18126. return 1;
  18127. close (fd);
  18128. /* Next, try to mmap the file at a fixed address which already has
  18129. something else allocated at it. If we can, also make sure that
  18130. we see the same garbage. */
  18131. fd = open ("conftest.mmap", O_RDWR);
  18132. if (fd < 0)
  18133. return 1;
  18134. data2 = (char *) malloc (2 * pagesize);
  18135. if (!data2)
  18136. return 1;
  18137. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  18138. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  18139. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  18140. return 1;
  18141. for (i = 0; i < pagesize; ++i)
  18142. if (*(data + i) != *(data2 + i))
  18143. return 1;
  18144. /* Finally, make sure that changes to the mapped area do not
  18145. percolate back to the file as seen by read(). (This is a bug on
  18146. some variants of i386 svr4.0.) */
  18147. for (i = 0; i < pagesize; ++i)
  18148. *(data2 + i) = *(data2 + i) + 1;
  18149. data3 = (char *) malloc (pagesize);
  18150. if (!data3)
  18151. return 1;
  18152. if (read (fd, data3, pagesize) != pagesize)
  18153. return 1;
  18154. for (i = 0; i < pagesize; ++i)
  18155. if (*(data + i) != *(data3 + i))
  18156. return 1;
  18157. close (fd);
  18158. return 0;
  18159. }
  18160. _ACEOF
  18161. rm -f conftest$ac_exeext
  18162. if { (ac_try="$ac_link"
  18163. case "(($ac_try" in
  18164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18165. *) ac_try_echo=$ac_try;;
  18166. esac
  18167. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18168. $as_echo "$ac_try_echo") >&5
  18169. (eval "$ac_link") 2>&5
  18170. ac_status=$?
  18171. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18172. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18173. { (case "(($ac_try" in
  18174. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18175. *) ac_try_echo=$ac_try;;
  18176. esac
  18177. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18178. $as_echo "$ac_try_echo") >&5
  18179. (eval "$ac_try") 2>&5
  18180. ac_status=$?
  18181. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18182. (exit $ac_status); }; }; then
  18183. ac_cv_func_mmap_fixed_mapped=yes
  18184. else
  18185. $as_echo "$as_me: program exited with status $ac_status" >&5
  18186. $as_echo "$as_me: failed program was:" >&5
  18187. sed 's/^/| /' conftest.$ac_ext >&5
  18188. ( exit $ac_status )
  18189. ac_cv_func_mmap_fixed_mapped=no
  18190. fi
  18191. rm -rf conftest.dSYM
  18192. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18193. fi
  18194. fi
  18195. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  18196. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  18197. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  18198. cat >>confdefs.h <<\_ACEOF
  18199. #define HAVE_MMAP 1
  18200. _ACEOF
  18201. fi
  18202. rm -f conftest.mmap
  18203. for ac_header in sys/select.h sys/socket.h
  18204. do
  18205. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18206. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18207. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18208. $as_echo_n "checking for $ac_header... " >&6; }
  18209. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18210. $as_echo_n "(cached) " >&6
  18211. fi
  18212. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18213. $as_echo "$as_val"'`
  18214. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18215. $as_echo "$ac_res" >&6; }
  18216. else
  18217. # Is the header compilable?
  18218. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18219. $as_echo_n "checking $ac_header usability... " >&6; }
  18220. cat >conftest.$ac_ext <<_ACEOF
  18221. /* confdefs.h. */
  18222. _ACEOF
  18223. cat confdefs.h >>conftest.$ac_ext
  18224. cat >>conftest.$ac_ext <<_ACEOF
  18225. /* end confdefs.h. */
  18226. $ac_includes_default
  18227. #include <$ac_header>
  18228. _ACEOF
  18229. rm -f conftest.$ac_objext
  18230. if { (ac_try="$ac_compile"
  18231. case "(($ac_try" in
  18232. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18233. *) ac_try_echo=$ac_try;;
  18234. esac
  18235. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18236. $as_echo "$ac_try_echo") >&5
  18237. (eval "$ac_compile") 2>conftest.er1
  18238. ac_status=$?
  18239. grep -v '^ *+' conftest.er1 >conftest.err
  18240. rm -f conftest.er1
  18241. cat conftest.err >&5
  18242. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18243. (exit $ac_status); } && {
  18244. test -z "$ac_cxx_werror_flag" ||
  18245. test ! -s conftest.err
  18246. } && test -s conftest.$ac_objext; then
  18247. ac_header_compiler=yes
  18248. else
  18249. $as_echo "$as_me: failed program was:" >&5
  18250. sed 's/^/| /' conftest.$ac_ext >&5
  18251. ac_header_compiler=no
  18252. fi
  18253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18254. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18255. $as_echo "$ac_header_compiler" >&6; }
  18256. # Is the header present?
  18257. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18258. $as_echo_n "checking $ac_header presence... " >&6; }
  18259. cat >conftest.$ac_ext <<_ACEOF
  18260. /* confdefs.h. */
  18261. _ACEOF
  18262. cat confdefs.h >>conftest.$ac_ext
  18263. cat >>conftest.$ac_ext <<_ACEOF
  18264. /* end confdefs.h. */
  18265. #include <$ac_header>
  18266. _ACEOF
  18267. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18268. case "(($ac_try" in
  18269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18270. *) ac_try_echo=$ac_try;;
  18271. esac
  18272. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18273. $as_echo "$ac_try_echo") >&5
  18274. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18275. ac_status=$?
  18276. grep -v '^ *+' conftest.er1 >conftest.err
  18277. rm -f conftest.er1
  18278. cat conftest.err >&5
  18279. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18280. (exit $ac_status); } >/dev/null && {
  18281. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18282. test ! -s conftest.err
  18283. }; then
  18284. ac_header_preproc=yes
  18285. else
  18286. $as_echo "$as_me: failed program was:" >&5
  18287. sed 's/^/| /' conftest.$ac_ext >&5
  18288. ac_header_preproc=no
  18289. fi
  18290. rm -f conftest.err conftest.$ac_ext
  18291. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18292. $as_echo "$ac_header_preproc" >&6; }
  18293. # So? What about this header?
  18294. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  18295. yes:no: )
  18296. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18297. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18298. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18299. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18300. ac_header_preproc=yes
  18301. ;;
  18302. no:yes:* )
  18303. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18304. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18305. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18306. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18307. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18308. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18309. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18310. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18311. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18312. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18313. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18314. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18315. ( cat <<\_ASBOX
  18316. ## ----------------------------------------------- ##
  18317. ## Report this to t-tujikawa@users.sourceforge.net ##
  18318. ## ----------------------------------------------- ##
  18319. _ASBOX
  18320. ) | sed "s/^/$as_me: WARNING: /" >&2
  18321. ;;
  18322. esac
  18323. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18324. $as_echo_n "checking for $ac_header... " >&6; }
  18325. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18326. $as_echo_n "(cached) " >&6
  18327. else
  18328. eval "$as_ac_Header=\$ac_header_preproc"
  18329. fi
  18330. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18331. $as_echo "$as_val"'`
  18332. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18333. $as_echo "$ac_res" >&6; }
  18334. fi
  18335. as_val=`eval 'as_val=${'$as_ac_Header'}
  18336. $as_echo "$as_val"'`
  18337. if test "x$as_val" = x""yes; then
  18338. cat >>confdefs.h <<_ACEOF
  18339. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18340. _ACEOF
  18341. fi
  18342. done
  18343. { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
  18344. $as_echo_n "checking types of arguments for select... " >&6; }
  18345. if test "${ac_cv_func_select_args+set}" = set; then
  18346. $as_echo_n "(cached) " >&6
  18347. else
  18348. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  18349. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  18350. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  18351. cat >conftest.$ac_ext <<_ACEOF
  18352. /* confdefs.h. */
  18353. _ACEOF
  18354. cat confdefs.h >>conftest.$ac_ext
  18355. cat >>conftest.$ac_ext <<_ACEOF
  18356. /* end confdefs.h. */
  18357. $ac_includes_default
  18358. #ifdef HAVE_SYS_SELECT_H
  18359. # include <sys/select.h>
  18360. #endif
  18361. #ifdef HAVE_SYS_SOCKET_H
  18362. # include <sys/socket.h>
  18363. #endif
  18364. int
  18365. main ()
  18366. {
  18367. extern int select ($ac_arg1,
  18368. $ac_arg234, $ac_arg234, $ac_arg234,
  18369. $ac_arg5);
  18370. ;
  18371. return 0;
  18372. }
  18373. _ACEOF
  18374. rm -f conftest.$ac_objext
  18375. if { (ac_try="$ac_compile"
  18376. case "(($ac_try" in
  18377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18378. *) ac_try_echo=$ac_try;;
  18379. esac
  18380. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18381. $as_echo "$ac_try_echo") >&5
  18382. (eval "$ac_compile") 2>conftest.er1
  18383. ac_status=$?
  18384. grep -v '^ *+' conftest.er1 >conftest.err
  18385. rm -f conftest.er1
  18386. cat conftest.err >&5
  18387. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18388. (exit $ac_status); } && {
  18389. test -z "$ac_cxx_werror_flag" ||
  18390. test ! -s conftest.err
  18391. } && test -s conftest.$ac_objext; then
  18392. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  18393. else
  18394. $as_echo "$as_me: failed program was:" >&5
  18395. sed 's/^/| /' conftest.$ac_ext >&5
  18396. fi
  18397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18398. done
  18399. done
  18400. done
  18401. # Provide a safe default value.
  18402. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  18403. fi
  18404. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  18405. $as_echo "$ac_cv_func_select_args" >&6; }
  18406. ac_save_IFS=$IFS; IFS=','
  18407. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  18408. IFS=$ac_save_IFS
  18409. shift
  18410. cat >>confdefs.h <<_ACEOF
  18411. #define SELECT_TYPE_ARG1 $1
  18412. _ACEOF
  18413. cat >>confdefs.h <<_ACEOF
  18414. #define SELECT_TYPE_ARG234 ($2)
  18415. _ACEOF
  18416. cat >>confdefs.h <<_ACEOF
  18417. #define SELECT_TYPE_ARG5 ($3)
  18418. _ACEOF
  18419. rm -f conftest*
  18420. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  18421. $as_echo_n "checking return type of signal handlers... " >&6; }
  18422. if test "${ac_cv_type_signal+set}" = set; then
  18423. $as_echo_n "(cached) " >&6
  18424. else
  18425. cat >conftest.$ac_ext <<_ACEOF
  18426. /* confdefs.h. */
  18427. _ACEOF
  18428. cat confdefs.h >>conftest.$ac_ext
  18429. cat >>conftest.$ac_ext <<_ACEOF
  18430. /* end confdefs.h. */
  18431. #include <sys/types.h>
  18432. #include <signal.h>
  18433. int
  18434. main ()
  18435. {
  18436. return *(signal (0, 0)) (0) == 1;
  18437. ;
  18438. return 0;
  18439. }
  18440. _ACEOF
  18441. rm -f conftest.$ac_objext
  18442. if { (ac_try="$ac_compile"
  18443. case "(($ac_try" in
  18444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18445. *) ac_try_echo=$ac_try;;
  18446. esac
  18447. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18448. $as_echo "$ac_try_echo") >&5
  18449. (eval "$ac_compile") 2>conftest.er1
  18450. ac_status=$?
  18451. grep -v '^ *+' conftest.er1 >conftest.err
  18452. rm -f conftest.er1
  18453. cat conftest.err >&5
  18454. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18455. (exit $ac_status); } && {
  18456. test -z "$ac_cxx_werror_flag" ||
  18457. test ! -s conftest.err
  18458. } && test -s conftest.$ac_objext; then
  18459. ac_cv_type_signal=int
  18460. else
  18461. $as_echo "$as_me: failed program was:" >&5
  18462. sed 's/^/| /' conftest.$ac_ext >&5
  18463. ac_cv_type_signal=void
  18464. fi
  18465. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18466. fi
  18467. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  18468. $as_echo "$ac_cv_type_signal" >&6; }
  18469. cat >>confdefs.h <<_ACEOF
  18470. #define RETSIGTYPE $ac_cv_type_signal
  18471. _ACEOF
  18472. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18473. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  18474. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18475. $as_echo_n "(cached) " >&6
  18476. else
  18477. rm -f conftest.sym conftest.file
  18478. echo >conftest.file
  18479. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18480. if test "$cross_compiling" = yes; then
  18481. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18482. else
  18483. cat >conftest.$ac_ext <<_ACEOF
  18484. /* confdefs.h. */
  18485. _ACEOF
  18486. cat confdefs.h >>conftest.$ac_ext
  18487. cat >>conftest.$ac_ext <<_ACEOF
  18488. /* end confdefs.h. */
  18489. $ac_includes_default
  18490. int
  18491. main ()
  18492. {
  18493. struct stat sbuf;
  18494. /* Linux will dereference the symlink and fail.
  18495. That is better in the sense that it means we will not
  18496. have to compile and use the lstat wrapper. */
  18497. return lstat ("conftest.sym/", &sbuf) == 0;
  18498. ;
  18499. return 0;
  18500. }
  18501. _ACEOF
  18502. rm -f conftest$ac_exeext
  18503. if { (ac_try="$ac_link"
  18504. case "(($ac_try" in
  18505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18506. *) ac_try_echo=$ac_try;;
  18507. esac
  18508. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18509. $as_echo "$ac_try_echo") >&5
  18510. (eval "$ac_link") 2>&5
  18511. ac_status=$?
  18512. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18513. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18514. { (case "(($ac_try" in
  18515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18516. *) ac_try_echo=$ac_try;;
  18517. esac
  18518. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18519. $as_echo "$ac_try_echo") >&5
  18520. (eval "$ac_try") 2>&5
  18521. ac_status=$?
  18522. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18523. (exit $ac_status); }; }; then
  18524. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18525. else
  18526. $as_echo "$as_me: program exited with status $ac_status" >&5
  18527. $as_echo "$as_me: failed program was:" >&5
  18528. sed 's/^/| /' conftest.$ac_ext >&5
  18529. ( exit $ac_status )
  18530. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18531. fi
  18532. rm -rf conftest.dSYM
  18533. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18534. fi
  18535. else
  18536. # If the `ln -s' command failed, then we probably don't even
  18537. # have an lstat function.
  18538. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18539. fi
  18540. rm -f conftest.sym conftest.file
  18541. fi
  18542. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18543. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  18544. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18545. cat >>confdefs.h <<_ACEOF
  18546. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18547. _ACEOF
  18548. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18549. case " $LIBOBJS " in
  18550. *" lstat.$ac_objext "* ) ;;
  18551. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  18552. ;;
  18553. esac
  18554. fi
  18555. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  18556. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  18557. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  18558. $as_echo_n "(cached) " >&6
  18559. else
  18560. if test "$cross_compiling" = yes; then
  18561. ac_cv_func_stat_empty_string_bug=yes
  18562. else
  18563. cat >conftest.$ac_ext <<_ACEOF
  18564. /* confdefs.h. */
  18565. _ACEOF
  18566. cat confdefs.h >>conftest.$ac_ext
  18567. cat >>conftest.$ac_ext <<_ACEOF
  18568. /* end confdefs.h. */
  18569. $ac_includes_default
  18570. int
  18571. main ()
  18572. {
  18573. struct stat sbuf;
  18574. return stat ("", &sbuf) == 0;
  18575. ;
  18576. return 0;
  18577. }
  18578. _ACEOF
  18579. rm -f conftest$ac_exeext
  18580. if { (ac_try="$ac_link"
  18581. case "(($ac_try" in
  18582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18583. *) ac_try_echo=$ac_try;;
  18584. esac
  18585. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18586. $as_echo "$ac_try_echo") >&5
  18587. (eval "$ac_link") 2>&5
  18588. ac_status=$?
  18589. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18590. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18591. { (case "(($ac_try" in
  18592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18593. *) ac_try_echo=$ac_try;;
  18594. esac
  18595. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18596. $as_echo "$ac_try_echo") >&5
  18597. (eval "$ac_try") 2>&5
  18598. ac_status=$?
  18599. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18600. (exit $ac_status); }; }; then
  18601. ac_cv_func_stat_empty_string_bug=no
  18602. else
  18603. $as_echo "$as_me: program exited with status $ac_status" >&5
  18604. $as_echo "$as_me: failed program was:" >&5
  18605. sed 's/^/| /' conftest.$ac_ext >&5
  18606. ( exit $ac_status )
  18607. ac_cv_func_stat_empty_string_bug=yes
  18608. fi
  18609. rm -rf conftest.dSYM
  18610. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18611. fi
  18612. fi
  18613. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  18614. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  18615. if test $ac_cv_func_stat_empty_string_bug = yes; then
  18616. case " $LIBOBJS " in
  18617. *" stat.$ac_objext "* ) ;;
  18618. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  18619. ;;
  18620. esac
  18621. cat >>confdefs.h <<_ACEOF
  18622. #define HAVE_STAT_EMPTY_STRING_BUG 1
  18623. _ACEOF
  18624. fi
  18625. for ac_func in strftime
  18626. do
  18627. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18628. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18629. $as_echo_n "checking for $ac_func... " >&6; }
  18630. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18631. $as_echo_n "(cached) " >&6
  18632. else
  18633. cat >conftest.$ac_ext <<_ACEOF
  18634. /* confdefs.h. */
  18635. _ACEOF
  18636. cat confdefs.h >>conftest.$ac_ext
  18637. cat >>conftest.$ac_ext <<_ACEOF
  18638. /* end confdefs.h. */
  18639. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18640. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18641. #define $ac_func innocuous_$ac_func
  18642. /* System header to define __stub macros and hopefully few prototypes,
  18643. which can conflict with char $ac_func (); below.
  18644. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18645. <limits.h> exists even on freestanding compilers. */
  18646. #ifdef __STDC__
  18647. # include <limits.h>
  18648. #else
  18649. # include <assert.h>
  18650. #endif
  18651. #undef $ac_func
  18652. /* Override any GCC internal prototype to avoid an error.
  18653. Use char because int might match the return type of a GCC
  18654. builtin and then its argument prototype would still apply. */
  18655. #ifdef __cplusplus
  18656. extern "C"
  18657. #endif
  18658. char $ac_func ();
  18659. /* The GNU C library defines this for functions which it implements
  18660. to always fail with ENOSYS. Some functions are actually named
  18661. something starting with __ and the normal name is an alias. */
  18662. #if defined __stub_$ac_func || defined __stub___$ac_func
  18663. choke me
  18664. #endif
  18665. int
  18666. main ()
  18667. {
  18668. return $ac_func ();
  18669. ;
  18670. return 0;
  18671. }
  18672. _ACEOF
  18673. rm -f conftest.$ac_objext conftest$ac_exeext
  18674. if { (ac_try="$ac_link"
  18675. case "(($ac_try" in
  18676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18677. *) ac_try_echo=$ac_try;;
  18678. esac
  18679. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18680. $as_echo "$ac_try_echo") >&5
  18681. (eval "$ac_link") 2>conftest.er1
  18682. ac_status=$?
  18683. grep -v '^ *+' conftest.er1 >conftest.err
  18684. rm -f conftest.er1
  18685. cat conftest.err >&5
  18686. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18687. (exit $ac_status); } && {
  18688. test -z "$ac_cxx_werror_flag" ||
  18689. test ! -s conftest.err
  18690. } && test -s conftest$ac_exeext && {
  18691. test "$cross_compiling" = yes ||
  18692. $as_test_x conftest$ac_exeext
  18693. }; then
  18694. eval "$as_ac_var=yes"
  18695. else
  18696. $as_echo "$as_me: failed program was:" >&5
  18697. sed 's/^/| /' conftest.$ac_ext >&5
  18698. eval "$as_ac_var=no"
  18699. fi
  18700. rm -rf conftest.dSYM
  18701. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18702. conftest$ac_exeext conftest.$ac_ext
  18703. fi
  18704. ac_res=`eval 'as_val=${'$as_ac_var'}
  18705. $as_echo "$as_val"'`
  18706. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18707. $as_echo "$ac_res" >&6; }
  18708. as_val=`eval 'as_val=${'$as_ac_var'}
  18709. $as_echo "$as_val"'`
  18710. if test "x$as_val" = x""yes; then
  18711. cat >>confdefs.h <<_ACEOF
  18712. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18713. _ACEOF
  18714. else
  18715. # strftime is in -lintl on SCO UNIX.
  18716. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18717. $as_echo_n "checking for strftime in -lintl... " >&6; }
  18718. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18719. $as_echo_n "(cached) " >&6
  18720. else
  18721. ac_check_lib_save_LIBS=$LIBS
  18722. LIBS="-lintl $LIBS"
  18723. cat >conftest.$ac_ext <<_ACEOF
  18724. /* confdefs.h. */
  18725. _ACEOF
  18726. cat confdefs.h >>conftest.$ac_ext
  18727. cat >>conftest.$ac_ext <<_ACEOF
  18728. /* end confdefs.h. */
  18729. /* Override any GCC internal prototype to avoid an error.
  18730. Use char because int might match the return type of a GCC
  18731. builtin and then its argument prototype would still apply. */
  18732. #ifdef __cplusplus
  18733. extern "C"
  18734. #endif
  18735. char strftime ();
  18736. int
  18737. main ()
  18738. {
  18739. return strftime ();
  18740. ;
  18741. return 0;
  18742. }
  18743. _ACEOF
  18744. rm -f conftest.$ac_objext conftest$ac_exeext
  18745. if { (ac_try="$ac_link"
  18746. case "(($ac_try" in
  18747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18748. *) ac_try_echo=$ac_try;;
  18749. esac
  18750. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18751. $as_echo "$ac_try_echo") >&5
  18752. (eval "$ac_link") 2>conftest.er1
  18753. ac_status=$?
  18754. grep -v '^ *+' conftest.er1 >conftest.err
  18755. rm -f conftest.er1
  18756. cat conftest.err >&5
  18757. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18758. (exit $ac_status); } && {
  18759. test -z "$ac_cxx_werror_flag" ||
  18760. test ! -s conftest.err
  18761. } && test -s conftest$ac_exeext && {
  18762. test "$cross_compiling" = yes ||
  18763. $as_test_x conftest$ac_exeext
  18764. }; then
  18765. ac_cv_lib_intl_strftime=yes
  18766. else
  18767. $as_echo "$as_me: failed program was:" >&5
  18768. sed 's/^/| /' conftest.$ac_ext >&5
  18769. ac_cv_lib_intl_strftime=no
  18770. fi
  18771. rm -rf conftest.dSYM
  18772. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18773. conftest$ac_exeext conftest.$ac_ext
  18774. LIBS=$ac_check_lib_save_LIBS
  18775. fi
  18776. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  18777. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  18778. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  18779. cat >>confdefs.h <<\_ACEOF
  18780. #define HAVE_STRFTIME 1
  18781. _ACEOF
  18782. LIBS="-lintl $LIBS"
  18783. fi
  18784. fi
  18785. done
  18786. for ac_func in vprintf
  18787. do
  18788. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18789. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18790. $as_echo_n "checking for $ac_func... " >&6; }
  18791. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18792. $as_echo_n "(cached) " >&6
  18793. else
  18794. cat >conftest.$ac_ext <<_ACEOF
  18795. /* confdefs.h. */
  18796. _ACEOF
  18797. cat confdefs.h >>conftest.$ac_ext
  18798. cat >>conftest.$ac_ext <<_ACEOF
  18799. /* end confdefs.h. */
  18800. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18801. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18802. #define $ac_func innocuous_$ac_func
  18803. /* System header to define __stub macros and hopefully few prototypes,
  18804. which can conflict with char $ac_func (); below.
  18805. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18806. <limits.h> exists even on freestanding compilers. */
  18807. #ifdef __STDC__
  18808. # include <limits.h>
  18809. #else
  18810. # include <assert.h>
  18811. #endif
  18812. #undef $ac_func
  18813. /* Override any GCC internal prototype to avoid an error.
  18814. Use char because int might match the return type of a GCC
  18815. builtin and then its argument prototype would still apply. */
  18816. #ifdef __cplusplus
  18817. extern "C"
  18818. #endif
  18819. char $ac_func ();
  18820. /* The GNU C library defines this for functions which it implements
  18821. to always fail with ENOSYS. Some functions are actually named
  18822. something starting with __ and the normal name is an alias. */
  18823. #if defined __stub_$ac_func || defined __stub___$ac_func
  18824. choke me
  18825. #endif
  18826. int
  18827. main ()
  18828. {
  18829. return $ac_func ();
  18830. ;
  18831. return 0;
  18832. }
  18833. _ACEOF
  18834. rm -f conftest.$ac_objext conftest$ac_exeext
  18835. if { (ac_try="$ac_link"
  18836. case "(($ac_try" in
  18837. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18838. *) ac_try_echo=$ac_try;;
  18839. esac
  18840. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18841. $as_echo "$ac_try_echo") >&5
  18842. (eval "$ac_link") 2>conftest.er1
  18843. ac_status=$?
  18844. grep -v '^ *+' conftest.er1 >conftest.err
  18845. rm -f conftest.er1
  18846. cat conftest.err >&5
  18847. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18848. (exit $ac_status); } && {
  18849. test -z "$ac_cxx_werror_flag" ||
  18850. test ! -s conftest.err
  18851. } && test -s conftest$ac_exeext && {
  18852. test "$cross_compiling" = yes ||
  18853. $as_test_x conftest$ac_exeext
  18854. }; then
  18855. eval "$as_ac_var=yes"
  18856. else
  18857. $as_echo "$as_me: failed program was:" >&5
  18858. sed 's/^/| /' conftest.$ac_ext >&5
  18859. eval "$as_ac_var=no"
  18860. fi
  18861. rm -rf conftest.dSYM
  18862. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18863. conftest$ac_exeext conftest.$ac_ext
  18864. fi
  18865. ac_res=`eval 'as_val=${'$as_ac_var'}
  18866. $as_echo "$as_val"'`
  18867. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18868. $as_echo "$ac_res" >&6; }
  18869. as_val=`eval 'as_val=${'$as_ac_var'}
  18870. $as_echo "$as_val"'`
  18871. if test "x$as_val" = x""yes; then
  18872. cat >>confdefs.h <<_ACEOF
  18873. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18874. _ACEOF
  18875. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  18876. $as_echo_n "checking for _doprnt... " >&6; }
  18877. if test "${ac_cv_func__doprnt+set}" = set; then
  18878. $as_echo_n "(cached) " >&6
  18879. else
  18880. cat >conftest.$ac_ext <<_ACEOF
  18881. /* confdefs.h. */
  18882. _ACEOF
  18883. cat confdefs.h >>conftest.$ac_ext
  18884. cat >>conftest.$ac_ext <<_ACEOF
  18885. /* end confdefs.h. */
  18886. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  18887. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18888. #define _doprnt innocuous__doprnt
  18889. /* System header to define __stub macros and hopefully few prototypes,
  18890. which can conflict with char _doprnt (); below.
  18891. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18892. <limits.h> exists even on freestanding compilers. */
  18893. #ifdef __STDC__
  18894. # include <limits.h>
  18895. #else
  18896. # include <assert.h>
  18897. #endif
  18898. #undef _doprnt
  18899. /* Override any GCC internal prototype to avoid an error.
  18900. Use char because int might match the return type of a GCC
  18901. builtin and then its argument prototype would still apply. */
  18902. #ifdef __cplusplus
  18903. extern "C"
  18904. #endif
  18905. char _doprnt ();
  18906. /* The GNU C library defines this for functions which it implements
  18907. to always fail with ENOSYS. Some functions are actually named
  18908. something starting with __ and the normal name is an alias. */
  18909. #if defined __stub__doprnt || defined __stub____doprnt
  18910. choke me
  18911. #endif
  18912. int
  18913. main ()
  18914. {
  18915. return _doprnt ();
  18916. ;
  18917. return 0;
  18918. }
  18919. _ACEOF
  18920. rm -f conftest.$ac_objext conftest$ac_exeext
  18921. if { (ac_try="$ac_link"
  18922. case "(($ac_try" in
  18923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18924. *) ac_try_echo=$ac_try;;
  18925. esac
  18926. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18927. $as_echo "$ac_try_echo") >&5
  18928. (eval "$ac_link") 2>conftest.er1
  18929. ac_status=$?
  18930. grep -v '^ *+' conftest.er1 >conftest.err
  18931. rm -f conftest.er1
  18932. cat conftest.err >&5
  18933. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18934. (exit $ac_status); } && {
  18935. test -z "$ac_cxx_werror_flag" ||
  18936. test ! -s conftest.err
  18937. } && test -s conftest$ac_exeext && {
  18938. test "$cross_compiling" = yes ||
  18939. $as_test_x conftest$ac_exeext
  18940. }; then
  18941. ac_cv_func__doprnt=yes
  18942. else
  18943. $as_echo "$as_me: failed program was:" >&5
  18944. sed 's/^/| /' conftest.$ac_ext >&5
  18945. ac_cv_func__doprnt=no
  18946. fi
  18947. rm -rf conftest.dSYM
  18948. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18949. conftest$ac_exeext conftest.$ac_ext
  18950. fi
  18951. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  18952. $as_echo "$ac_cv_func__doprnt" >&6; }
  18953. if test "x$ac_cv_func__doprnt" = x""yes; then
  18954. cat >>confdefs.h <<\_ACEOF
  18955. #define HAVE_DOPRNT 1
  18956. _ACEOF
  18957. fi
  18958. fi
  18959. done
  18960. for ac_func in __argz_count \
  18961. __argz_next \
  18962. __argz_stringify \
  18963. atexit \
  18964. daemon \
  18965. ftruncate \
  18966. getcwd \
  18967. gethostbyaddr \
  18968. gethostbyname \
  18969. getpagesize \
  18970. inet_ntoa \
  18971. memchr \
  18972. memmove \
  18973. mempcpy \
  18974. memset \
  18975. mkdir \
  18976. munmap \
  18977. nl_langinfo \
  18978. posix_memalign \
  18979. putenv \
  18980. rmdir \
  18981. select \
  18982. setlocale \
  18983. sleep \
  18984. socket \
  18985. stpcpy \
  18986. strcasecmp \
  18987. strchr \
  18988. strcspn \
  18989. strdup \
  18990. strerror \
  18991. strncasecmp \
  18992. strstr \
  18993. strtol \
  18994. strtoul \
  18995. strtoull \
  18996. tzset \
  18997. unsetenv \
  18998. usleep
  18999. do
  19000. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19001. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19002. $as_echo_n "checking for $ac_func... " >&6; }
  19003. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19004. $as_echo_n "(cached) " >&6
  19005. else
  19006. cat >conftest.$ac_ext <<_ACEOF
  19007. /* confdefs.h. */
  19008. _ACEOF
  19009. cat confdefs.h >>conftest.$ac_ext
  19010. cat >>conftest.$ac_ext <<_ACEOF
  19011. /* end confdefs.h. */
  19012. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19013. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19014. #define $ac_func innocuous_$ac_func
  19015. /* System header to define __stub macros and hopefully few prototypes,
  19016. which can conflict with char $ac_func (); below.
  19017. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19018. <limits.h> exists even on freestanding compilers. */
  19019. #ifdef __STDC__
  19020. # include <limits.h>
  19021. #else
  19022. # include <assert.h>
  19023. #endif
  19024. #undef $ac_func
  19025. /* Override any GCC internal prototype to avoid an error.
  19026. Use char because int might match the return type of a GCC
  19027. builtin and then its argument prototype would still apply. */
  19028. #ifdef __cplusplus
  19029. extern "C"
  19030. #endif
  19031. char $ac_func ();
  19032. /* The GNU C library defines this for functions which it implements
  19033. to always fail with ENOSYS. Some functions are actually named
  19034. something starting with __ and the normal name is an alias. */
  19035. #if defined __stub_$ac_func || defined __stub___$ac_func
  19036. choke me
  19037. #endif
  19038. int
  19039. main ()
  19040. {
  19041. return $ac_func ();
  19042. ;
  19043. return 0;
  19044. }
  19045. _ACEOF
  19046. rm -f conftest.$ac_objext conftest$ac_exeext
  19047. if { (ac_try="$ac_link"
  19048. case "(($ac_try" in
  19049. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19050. *) ac_try_echo=$ac_try;;
  19051. esac
  19052. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19053. $as_echo "$ac_try_echo") >&5
  19054. (eval "$ac_link") 2>conftest.er1
  19055. ac_status=$?
  19056. grep -v '^ *+' conftest.er1 >conftest.err
  19057. rm -f conftest.er1
  19058. cat conftest.err >&5
  19059. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19060. (exit $ac_status); } && {
  19061. test -z "$ac_cxx_werror_flag" ||
  19062. test ! -s conftest.err
  19063. } && test -s conftest$ac_exeext && {
  19064. test "$cross_compiling" = yes ||
  19065. $as_test_x conftest$ac_exeext
  19066. }; then
  19067. eval "$as_ac_var=yes"
  19068. else
  19069. $as_echo "$as_me: failed program was:" >&5
  19070. sed 's/^/| /' conftest.$ac_ext >&5
  19071. eval "$as_ac_var=no"
  19072. fi
  19073. rm -rf conftest.dSYM
  19074. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19075. conftest$ac_exeext conftest.$ac_ext
  19076. fi
  19077. ac_res=`eval 'as_val=${'$as_ac_var'}
  19078. $as_echo "$as_val"'`
  19079. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19080. $as_echo "$ac_res" >&6; }
  19081. as_val=`eval 'as_val=${'$as_ac_var'}
  19082. $as_echo "$as_val"'`
  19083. if test "x$as_val" = x""yes; then
  19084. cat >>confdefs.h <<_ACEOF
  19085. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19086. _ACEOF
  19087. fi
  19088. done
  19089. if test "x$enable_epoll" = "xyes"; then
  19090. for ac_func in epoll_create
  19091. do
  19092. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19093. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19094. $as_echo_n "checking for $ac_func... " >&6; }
  19095. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19096. $as_echo_n "(cached) " >&6
  19097. else
  19098. cat >conftest.$ac_ext <<_ACEOF
  19099. /* confdefs.h. */
  19100. _ACEOF
  19101. cat confdefs.h >>conftest.$ac_ext
  19102. cat >>conftest.$ac_ext <<_ACEOF
  19103. /* end confdefs.h. */
  19104. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19105. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19106. #define $ac_func innocuous_$ac_func
  19107. /* System header to define __stub macros and hopefully few prototypes,
  19108. which can conflict with char $ac_func (); below.
  19109. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19110. <limits.h> exists even on freestanding compilers. */
  19111. #ifdef __STDC__
  19112. # include <limits.h>
  19113. #else
  19114. # include <assert.h>
  19115. #endif
  19116. #undef $ac_func
  19117. /* Override any GCC internal prototype to avoid an error.
  19118. Use char because int might match the return type of a GCC
  19119. builtin and then its argument prototype would still apply. */
  19120. #ifdef __cplusplus
  19121. extern "C"
  19122. #endif
  19123. char $ac_func ();
  19124. /* The GNU C library defines this for functions which it implements
  19125. to always fail with ENOSYS. Some functions are actually named
  19126. something starting with __ and the normal name is an alias. */
  19127. #if defined __stub_$ac_func || defined __stub___$ac_func
  19128. choke me
  19129. #endif
  19130. int
  19131. main ()
  19132. {
  19133. return $ac_func ();
  19134. ;
  19135. return 0;
  19136. }
  19137. _ACEOF
  19138. rm -f conftest.$ac_objext conftest$ac_exeext
  19139. if { (ac_try="$ac_link"
  19140. case "(($ac_try" in
  19141. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19142. *) ac_try_echo=$ac_try;;
  19143. esac
  19144. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19145. $as_echo "$ac_try_echo") >&5
  19146. (eval "$ac_link") 2>conftest.er1
  19147. ac_status=$?
  19148. grep -v '^ *+' conftest.er1 >conftest.err
  19149. rm -f conftest.er1
  19150. cat conftest.err >&5
  19151. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19152. (exit $ac_status); } && {
  19153. test -z "$ac_cxx_werror_flag" ||
  19154. test ! -s conftest.err
  19155. } && test -s conftest$ac_exeext && {
  19156. test "$cross_compiling" = yes ||
  19157. $as_test_x conftest$ac_exeext
  19158. }; then
  19159. eval "$as_ac_var=yes"
  19160. else
  19161. $as_echo "$as_me: failed program was:" >&5
  19162. sed 's/^/| /' conftest.$ac_ext >&5
  19163. eval "$as_ac_var=no"
  19164. fi
  19165. rm -rf conftest.dSYM
  19166. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19167. conftest$ac_exeext conftest.$ac_ext
  19168. fi
  19169. ac_res=`eval 'as_val=${'$as_ac_var'}
  19170. $as_echo "$as_val"'`
  19171. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19172. $as_echo "$ac_res" >&6; }
  19173. as_val=`eval 'as_val=${'$as_ac_var'}
  19174. $as_echo "$as_val"'`
  19175. if test "x$as_val" = x""yes; then
  19176. cat >>confdefs.h <<_ACEOF
  19177. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19178. _ACEOF
  19179. have_epoll=yes
  19180. fi
  19181. done
  19182. if test "x$have_epoll" = "xyes"; then
  19183. cat >>confdefs.h <<\_ACEOF
  19184. #define HAVE_EPOLL 1
  19185. _ACEOF
  19186. fi
  19187. fi
  19188. if test "x$have_epoll" = "xyes"; then
  19189. HAVE_EPOLL_TRUE=
  19190. HAVE_EPOLL_FALSE='#'
  19191. else
  19192. HAVE_EPOLL_TRUE='#'
  19193. HAVE_EPOLL_FALSE=
  19194. fi
  19195. for ac_func in posix_fallocate
  19196. do
  19197. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19198. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19199. $as_echo_n "checking for $ac_func... " >&6; }
  19200. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19201. $as_echo_n "(cached) " >&6
  19202. else
  19203. cat >conftest.$ac_ext <<_ACEOF
  19204. /* confdefs.h. */
  19205. _ACEOF
  19206. cat confdefs.h >>conftest.$ac_ext
  19207. cat >>conftest.$ac_ext <<_ACEOF
  19208. /* end confdefs.h. */
  19209. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19210. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19211. #define $ac_func innocuous_$ac_func
  19212. /* System header to define __stub macros and hopefully few prototypes,
  19213. which can conflict with char $ac_func (); below.
  19214. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19215. <limits.h> exists even on freestanding compilers. */
  19216. #ifdef __STDC__
  19217. # include <limits.h>
  19218. #else
  19219. # include <assert.h>
  19220. #endif
  19221. #undef $ac_func
  19222. /* Override any GCC internal prototype to avoid an error.
  19223. Use char because int might match the return type of a GCC
  19224. builtin and then its argument prototype would still apply. */
  19225. #ifdef __cplusplus
  19226. extern "C"
  19227. #endif
  19228. char $ac_func ();
  19229. /* The GNU C library defines this for functions which it implements
  19230. to always fail with ENOSYS. Some functions are actually named
  19231. something starting with __ and the normal name is an alias. */
  19232. #if defined __stub_$ac_func || defined __stub___$ac_func
  19233. choke me
  19234. #endif
  19235. int
  19236. main ()
  19237. {
  19238. return $ac_func ();
  19239. ;
  19240. return 0;
  19241. }
  19242. _ACEOF
  19243. rm -f conftest.$ac_objext conftest$ac_exeext
  19244. if { (ac_try="$ac_link"
  19245. case "(($ac_try" in
  19246. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19247. *) ac_try_echo=$ac_try;;
  19248. esac
  19249. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19250. $as_echo "$ac_try_echo") >&5
  19251. (eval "$ac_link") 2>conftest.er1
  19252. ac_status=$?
  19253. grep -v '^ *+' conftest.er1 >conftest.err
  19254. rm -f conftest.er1
  19255. cat conftest.err >&5
  19256. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19257. (exit $ac_status); } && {
  19258. test -z "$ac_cxx_werror_flag" ||
  19259. test ! -s conftest.err
  19260. } && test -s conftest$ac_exeext && {
  19261. test "$cross_compiling" = yes ||
  19262. $as_test_x conftest$ac_exeext
  19263. }; then
  19264. eval "$as_ac_var=yes"
  19265. else
  19266. $as_echo "$as_me: failed program was:" >&5
  19267. sed 's/^/| /' conftest.$ac_ext >&5
  19268. eval "$as_ac_var=no"
  19269. fi
  19270. rm -rf conftest.dSYM
  19271. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19272. conftest$ac_exeext conftest.$ac_ext
  19273. fi
  19274. ac_res=`eval 'as_val=${'$as_ac_var'}
  19275. $as_echo "$as_val"'`
  19276. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19277. $as_echo "$ac_res" >&6; }
  19278. as_val=`eval 'as_val=${'$as_ac_var'}
  19279. $as_echo "$as_val"'`
  19280. if test "x$as_val" = x""yes; then
  19281. cat >>confdefs.h <<_ACEOF
  19282. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19283. _ACEOF
  19284. have_posix_fallocate=yes
  19285. fi
  19286. done
  19287. if test "x$have_posix_fallocate" = "xyes"; then
  19288. HAVE_POSIX_FALLOCATE_TRUE=
  19289. HAVE_POSIX_FALLOCATE_FALSE='#'
  19290. else
  19291. HAVE_POSIX_FALLOCATE_TRUE='#'
  19292. HAVE_POSIX_FALLOCATE_FALSE=
  19293. fi
  19294. for ac_func in asctime_r
  19295. do
  19296. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19297. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19298. $as_echo_n "checking for $ac_func... " >&6; }
  19299. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19300. $as_echo_n "(cached) " >&6
  19301. else
  19302. cat >conftest.$ac_ext <<_ACEOF
  19303. /* confdefs.h. */
  19304. _ACEOF
  19305. cat confdefs.h >>conftest.$ac_ext
  19306. cat >>conftest.$ac_ext <<_ACEOF
  19307. /* end confdefs.h. */
  19308. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19309. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19310. #define $ac_func innocuous_$ac_func
  19311. /* System header to define __stub macros and hopefully few prototypes,
  19312. which can conflict with char $ac_func (); below.
  19313. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19314. <limits.h> exists even on freestanding compilers. */
  19315. #ifdef __STDC__
  19316. # include <limits.h>
  19317. #else
  19318. # include <assert.h>
  19319. #endif
  19320. #undef $ac_func
  19321. /* Override any GCC internal prototype to avoid an error.
  19322. Use char because int might match the return type of a GCC
  19323. builtin and then its argument prototype would still apply. */
  19324. #ifdef __cplusplus
  19325. extern "C"
  19326. #endif
  19327. char $ac_func ();
  19328. /* The GNU C library defines this for functions which it implements
  19329. to always fail with ENOSYS. Some functions are actually named
  19330. something starting with __ and the normal name is an alias. */
  19331. #if defined __stub_$ac_func || defined __stub___$ac_func
  19332. choke me
  19333. #endif
  19334. int
  19335. main ()
  19336. {
  19337. return $ac_func ();
  19338. ;
  19339. return 0;
  19340. }
  19341. _ACEOF
  19342. rm -f conftest.$ac_objext conftest$ac_exeext
  19343. if { (ac_try="$ac_link"
  19344. case "(($ac_try" in
  19345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19346. *) ac_try_echo=$ac_try;;
  19347. esac
  19348. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19349. $as_echo "$ac_try_echo") >&5
  19350. (eval "$ac_link") 2>conftest.er1
  19351. ac_status=$?
  19352. grep -v '^ *+' conftest.er1 >conftest.err
  19353. rm -f conftest.er1
  19354. cat conftest.err >&5
  19355. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19356. (exit $ac_status); } && {
  19357. test -z "$ac_cxx_werror_flag" ||
  19358. test ! -s conftest.err
  19359. } && test -s conftest$ac_exeext && {
  19360. test "$cross_compiling" = yes ||
  19361. $as_test_x conftest$ac_exeext
  19362. }; then
  19363. eval "$as_ac_var=yes"
  19364. else
  19365. $as_echo "$as_me: failed program was:" >&5
  19366. sed 's/^/| /' conftest.$ac_ext >&5
  19367. eval "$as_ac_var=no"
  19368. fi
  19369. rm -rf conftest.dSYM
  19370. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19371. conftest$ac_exeext conftest.$ac_ext
  19372. fi
  19373. ac_res=`eval 'as_val=${'$as_ac_var'}
  19374. $as_echo "$as_val"'`
  19375. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19376. $as_echo "$ac_res" >&6; }
  19377. as_val=`eval 'as_val=${'$as_ac_var'}
  19378. $as_echo "$as_val"'`
  19379. if test "x$as_val" = x""yes; then
  19380. cat >>confdefs.h <<_ACEOF
  19381. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19382. _ACEOF
  19383. if true; then
  19384. HAVE_ASCTIME_R_TRUE=
  19385. HAVE_ASCTIME_R_FALSE='#'
  19386. else
  19387. HAVE_ASCTIME_R_TRUE='#'
  19388. HAVE_ASCTIME_R_FALSE=
  19389. fi
  19390. else
  19391. if false; then
  19392. HAVE_ASCTIME_R_TRUE=
  19393. HAVE_ASCTIME_R_FALSE='#'
  19394. else
  19395. HAVE_ASCTIME_R_TRUE='#'
  19396. HAVE_ASCTIME_R_FALSE=
  19397. fi
  19398. fi
  19399. done
  19400. for ac_func in basename
  19401. do
  19402. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19403. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19404. $as_echo_n "checking for $ac_func... " >&6; }
  19405. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19406. $as_echo_n "(cached) " >&6
  19407. else
  19408. cat >conftest.$ac_ext <<_ACEOF
  19409. /* confdefs.h. */
  19410. _ACEOF
  19411. cat confdefs.h >>conftest.$ac_ext
  19412. cat >>conftest.$ac_ext <<_ACEOF
  19413. /* end confdefs.h. */
  19414. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19415. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19416. #define $ac_func innocuous_$ac_func
  19417. /* System header to define __stub macros and hopefully few prototypes,
  19418. which can conflict with char $ac_func (); below.
  19419. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19420. <limits.h> exists even on freestanding compilers. */
  19421. #ifdef __STDC__
  19422. # include <limits.h>
  19423. #else
  19424. # include <assert.h>
  19425. #endif
  19426. #undef $ac_func
  19427. /* Override any GCC internal prototype to avoid an error.
  19428. Use char because int might match the return type of a GCC
  19429. builtin and then its argument prototype would still apply. */
  19430. #ifdef __cplusplus
  19431. extern "C"
  19432. #endif
  19433. char $ac_func ();
  19434. /* The GNU C library defines this for functions which it implements
  19435. to always fail with ENOSYS. Some functions are actually named
  19436. something starting with __ and the normal name is an alias. */
  19437. #if defined __stub_$ac_func || defined __stub___$ac_func
  19438. choke me
  19439. #endif
  19440. int
  19441. main ()
  19442. {
  19443. return $ac_func ();
  19444. ;
  19445. return 0;
  19446. }
  19447. _ACEOF
  19448. rm -f conftest.$ac_objext conftest$ac_exeext
  19449. if { (ac_try="$ac_link"
  19450. case "(($ac_try" in
  19451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19452. *) ac_try_echo=$ac_try;;
  19453. esac
  19454. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19455. $as_echo "$ac_try_echo") >&5
  19456. (eval "$ac_link") 2>conftest.er1
  19457. ac_status=$?
  19458. grep -v '^ *+' conftest.er1 >conftest.err
  19459. rm -f conftest.er1
  19460. cat conftest.err >&5
  19461. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19462. (exit $ac_status); } && {
  19463. test -z "$ac_cxx_werror_flag" ||
  19464. test ! -s conftest.err
  19465. } && test -s conftest$ac_exeext && {
  19466. test "$cross_compiling" = yes ||
  19467. $as_test_x conftest$ac_exeext
  19468. }; then
  19469. eval "$as_ac_var=yes"
  19470. else
  19471. $as_echo "$as_me: failed program was:" >&5
  19472. sed 's/^/| /' conftest.$ac_ext >&5
  19473. eval "$as_ac_var=no"
  19474. fi
  19475. rm -rf conftest.dSYM
  19476. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19477. conftest$ac_exeext conftest.$ac_ext
  19478. fi
  19479. ac_res=`eval 'as_val=${'$as_ac_var'}
  19480. $as_echo "$as_val"'`
  19481. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19482. $as_echo "$ac_res" >&6; }
  19483. as_val=`eval 'as_val=${'$as_ac_var'}
  19484. $as_echo "$as_val"'`
  19485. if test "x$as_val" = x""yes; then
  19486. cat >>confdefs.h <<_ACEOF
  19487. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19488. _ACEOF
  19489. if true; then
  19490. HAVE_BASENAME_TRUE=
  19491. HAVE_BASENAME_FALSE='#'
  19492. else
  19493. HAVE_BASENAME_TRUE='#'
  19494. HAVE_BASENAME_FALSE=
  19495. fi
  19496. else
  19497. if false; then
  19498. HAVE_BASENAME_TRUE=
  19499. HAVE_BASENAME_FALSE='#'
  19500. else
  19501. HAVE_BASENAME_TRUE='#'
  19502. HAVE_BASENAME_FALSE=
  19503. fi
  19504. fi
  19505. done
  19506. for ac_func in gai_strerror
  19507. do
  19508. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19509. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19510. $as_echo_n "checking for $ac_func... " >&6; }
  19511. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19512. $as_echo_n "(cached) " >&6
  19513. else
  19514. cat >conftest.$ac_ext <<_ACEOF
  19515. /* confdefs.h. */
  19516. _ACEOF
  19517. cat confdefs.h >>conftest.$ac_ext
  19518. cat >>conftest.$ac_ext <<_ACEOF
  19519. /* end confdefs.h. */
  19520. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19521. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19522. #define $ac_func innocuous_$ac_func
  19523. /* System header to define __stub macros and hopefully few prototypes,
  19524. which can conflict with char $ac_func (); below.
  19525. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19526. <limits.h> exists even on freestanding compilers. */
  19527. #ifdef __STDC__
  19528. # include <limits.h>
  19529. #else
  19530. # include <assert.h>
  19531. #endif
  19532. #undef $ac_func
  19533. /* Override any GCC internal prototype to avoid an error.
  19534. Use char because int might match the return type of a GCC
  19535. builtin and then its argument prototype would still apply. */
  19536. #ifdef __cplusplus
  19537. extern "C"
  19538. #endif
  19539. char $ac_func ();
  19540. /* The GNU C library defines this for functions which it implements
  19541. to always fail with ENOSYS. Some functions are actually named
  19542. something starting with __ and the normal name is an alias. */
  19543. #if defined __stub_$ac_func || defined __stub___$ac_func
  19544. choke me
  19545. #endif
  19546. int
  19547. main ()
  19548. {
  19549. return $ac_func ();
  19550. ;
  19551. return 0;
  19552. }
  19553. _ACEOF
  19554. rm -f conftest.$ac_objext conftest$ac_exeext
  19555. if { (ac_try="$ac_link"
  19556. case "(($ac_try" in
  19557. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19558. *) ac_try_echo=$ac_try;;
  19559. esac
  19560. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19561. $as_echo "$ac_try_echo") >&5
  19562. (eval "$ac_link") 2>conftest.er1
  19563. ac_status=$?
  19564. grep -v '^ *+' conftest.er1 >conftest.err
  19565. rm -f conftest.er1
  19566. cat conftest.err >&5
  19567. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19568. (exit $ac_status); } && {
  19569. test -z "$ac_cxx_werror_flag" ||
  19570. test ! -s conftest.err
  19571. } && test -s conftest$ac_exeext && {
  19572. test "$cross_compiling" = yes ||
  19573. $as_test_x conftest$ac_exeext
  19574. }; then
  19575. eval "$as_ac_var=yes"
  19576. else
  19577. $as_echo "$as_me: failed program was:" >&5
  19578. sed 's/^/| /' conftest.$ac_ext >&5
  19579. eval "$as_ac_var=no"
  19580. fi
  19581. rm -rf conftest.dSYM
  19582. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19583. conftest$ac_exeext conftest.$ac_ext
  19584. fi
  19585. ac_res=`eval 'as_val=${'$as_ac_var'}
  19586. $as_echo "$as_val"'`
  19587. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19588. $as_echo "$ac_res" >&6; }
  19589. as_val=`eval 'as_val=${'$as_ac_var'}
  19590. $as_echo "$as_val"'`
  19591. if test "x$as_val" = x""yes; then
  19592. cat >>confdefs.h <<_ACEOF
  19593. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19594. _ACEOF
  19595. if true; then
  19596. HAVE_GAI_STRERROR_TRUE=
  19597. HAVE_GAI_STRERROR_FALSE='#'
  19598. else
  19599. HAVE_GAI_STRERROR_TRUE='#'
  19600. HAVE_GAI_STRERROR_FALSE=
  19601. fi
  19602. else
  19603. if false; then
  19604. HAVE_GAI_STRERROR_TRUE=
  19605. HAVE_GAI_STRERROR_FALSE='#'
  19606. else
  19607. HAVE_GAI_STRERROR_TRUE='#'
  19608. HAVE_GAI_STRERROR_FALSE=
  19609. fi
  19610. fi
  19611. done
  19612. for ac_func in getaddrinfo
  19613. do
  19614. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19615. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19616. $as_echo_n "checking for $ac_func... " >&6; }
  19617. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19618. $as_echo_n "(cached) " >&6
  19619. else
  19620. cat >conftest.$ac_ext <<_ACEOF
  19621. /* confdefs.h. */
  19622. _ACEOF
  19623. cat confdefs.h >>conftest.$ac_ext
  19624. cat >>conftest.$ac_ext <<_ACEOF
  19625. /* end confdefs.h. */
  19626. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19627. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19628. #define $ac_func innocuous_$ac_func
  19629. /* System header to define __stub macros and hopefully few prototypes,
  19630. which can conflict with char $ac_func (); below.
  19631. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19632. <limits.h> exists even on freestanding compilers. */
  19633. #ifdef __STDC__
  19634. # include <limits.h>
  19635. #else
  19636. # include <assert.h>
  19637. #endif
  19638. #undef $ac_func
  19639. /* Override any GCC internal prototype to avoid an error.
  19640. Use char because int might match the return type of a GCC
  19641. builtin and then its argument prototype would still apply. */
  19642. #ifdef __cplusplus
  19643. extern "C"
  19644. #endif
  19645. char $ac_func ();
  19646. /* The GNU C library defines this for functions which it implements
  19647. to always fail with ENOSYS. Some functions are actually named
  19648. something starting with __ and the normal name is an alias. */
  19649. #if defined __stub_$ac_func || defined __stub___$ac_func
  19650. choke me
  19651. #endif
  19652. int
  19653. main ()
  19654. {
  19655. return $ac_func ();
  19656. ;
  19657. return 0;
  19658. }
  19659. _ACEOF
  19660. rm -f conftest.$ac_objext conftest$ac_exeext
  19661. if { (ac_try="$ac_link"
  19662. case "(($ac_try" in
  19663. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19664. *) ac_try_echo=$ac_try;;
  19665. esac
  19666. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19667. $as_echo "$ac_try_echo") >&5
  19668. (eval "$ac_link") 2>conftest.er1
  19669. ac_status=$?
  19670. grep -v '^ *+' conftest.er1 >conftest.err
  19671. rm -f conftest.er1
  19672. cat conftest.err >&5
  19673. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19674. (exit $ac_status); } && {
  19675. test -z "$ac_cxx_werror_flag" ||
  19676. test ! -s conftest.err
  19677. } && test -s conftest$ac_exeext && {
  19678. test "$cross_compiling" = yes ||
  19679. $as_test_x conftest$ac_exeext
  19680. }; then
  19681. eval "$as_ac_var=yes"
  19682. else
  19683. $as_echo "$as_me: failed program was:" >&5
  19684. sed 's/^/| /' conftest.$ac_ext >&5
  19685. eval "$as_ac_var=no"
  19686. fi
  19687. rm -rf conftest.dSYM
  19688. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19689. conftest$ac_exeext conftest.$ac_ext
  19690. fi
  19691. ac_res=`eval 'as_val=${'$as_ac_var'}
  19692. $as_echo "$as_val"'`
  19693. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19694. $as_echo "$ac_res" >&6; }
  19695. as_val=`eval 'as_val=${'$as_ac_var'}
  19696. $as_echo "$as_val"'`
  19697. if test "x$as_val" = x""yes; then
  19698. cat >>confdefs.h <<_ACEOF
  19699. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19700. _ACEOF
  19701. if true; then
  19702. HAVE_GETADDRINFO_TRUE=
  19703. HAVE_GETADDRINFO_FALSE='#'
  19704. else
  19705. HAVE_GETADDRINFO_TRUE='#'
  19706. HAVE_GETADDRINFO_FALSE=
  19707. fi
  19708. else
  19709. if false; then
  19710. HAVE_GETADDRINFO_TRUE=
  19711. HAVE_GETADDRINFO_FALSE='#'
  19712. else
  19713. HAVE_GETADDRINFO_TRUE='#'
  19714. HAVE_GETADDRINFO_FALSE=
  19715. fi
  19716. fi
  19717. done
  19718. for ac_func in gettimeofday
  19719. do
  19720. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19721. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19722. $as_echo_n "checking for $ac_func... " >&6; }
  19723. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19724. $as_echo_n "(cached) " >&6
  19725. else
  19726. cat >conftest.$ac_ext <<_ACEOF
  19727. /* confdefs.h. */
  19728. _ACEOF
  19729. cat confdefs.h >>conftest.$ac_ext
  19730. cat >>conftest.$ac_ext <<_ACEOF
  19731. /* end confdefs.h. */
  19732. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19733. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19734. #define $ac_func innocuous_$ac_func
  19735. /* System header to define __stub macros and hopefully few prototypes,
  19736. which can conflict with char $ac_func (); below.
  19737. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19738. <limits.h> exists even on freestanding compilers. */
  19739. #ifdef __STDC__
  19740. # include <limits.h>
  19741. #else
  19742. # include <assert.h>
  19743. #endif
  19744. #undef $ac_func
  19745. /* Override any GCC internal prototype to avoid an error.
  19746. Use char because int might match the return type of a GCC
  19747. builtin and then its argument prototype would still apply. */
  19748. #ifdef __cplusplus
  19749. extern "C"
  19750. #endif
  19751. char $ac_func ();
  19752. /* The GNU C library defines this for functions which it implements
  19753. to always fail with ENOSYS. Some functions are actually named
  19754. something starting with __ and the normal name is an alias. */
  19755. #if defined __stub_$ac_func || defined __stub___$ac_func
  19756. choke me
  19757. #endif
  19758. int
  19759. main ()
  19760. {
  19761. return $ac_func ();
  19762. ;
  19763. return 0;
  19764. }
  19765. _ACEOF
  19766. rm -f conftest.$ac_objext conftest$ac_exeext
  19767. if { (ac_try="$ac_link"
  19768. case "(($ac_try" in
  19769. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19770. *) ac_try_echo=$ac_try;;
  19771. esac
  19772. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19773. $as_echo "$ac_try_echo") >&5
  19774. (eval "$ac_link") 2>conftest.er1
  19775. ac_status=$?
  19776. grep -v '^ *+' conftest.er1 >conftest.err
  19777. rm -f conftest.er1
  19778. cat conftest.err >&5
  19779. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19780. (exit $ac_status); } && {
  19781. test -z "$ac_cxx_werror_flag" ||
  19782. test ! -s conftest.err
  19783. } && test -s conftest$ac_exeext && {
  19784. test "$cross_compiling" = yes ||
  19785. $as_test_x conftest$ac_exeext
  19786. }; then
  19787. eval "$as_ac_var=yes"
  19788. else
  19789. $as_echo "$as_me: failed program was:" >&5
  19790. sed 's/^/| /' conftest.$ac_ext >&5
  19791. eval "$as_ac_var=no"
  19792. fi
  19793. rm -rf conftest.dSYM
  19794. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19795. conftest$ac_exeext conftest.$ac_ext
  19796. fi
  19797. ac_res=`eval 'as_val=${'$as_ac_var'}
  19798. $as_echo "$as_val"'`
  19799. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19800. $as_echo "$ac_res" >&6; }
  19801. as_val=`eval 'as_val=${'$as_ac_var'}
  19802. $as_echo "$as_val"'`
  19803. if test "x$as_val" = x""yes; then
  19804. cat >>confdefs.h <<_ACEOF
  19805. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19806. _ACEOF
  19807. if true; then
  19808. HAVE_GETTIMEOFDAY_TRUE=
  19809. HAVE_GETTIMEOFDAY_FALSE='#'
  19810. else
  19811. HAVE_GETTIMEOFDAY_TRUE='#'
  19812. HAVE_GETTIMEOFDAY_FALSE=
  19813. fi
  19814. else
  19815. if false; then
  19816. HAVE_GETTIMEOFDAY_TRUE=
  19817. HAVE_GETTIMEOFDAY_FALSE='#'
  19818. else
  19819. HAVE_GETTIMEOFDAY_TRUE='#'
  19820. HAVE_GETTIMEOFDAY_FALSE=
  19821. fi
  19822. fi
  19823. done
  19824. for ac_func in inet_aton
  19825. do
  19826. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19827. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19828. $as_echo_n "checking for $ac_func... " >&6; }
  19829. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19830. $as_echo_n "(cached) " >&6
  19831. else
  19832. cat >conftest.$ac_ext <<_ACEOF
  19833. /* confdefs.h. */
  19834. _ACEOF
  19835. cat confdefs.h >>conftest.$ac_ext
  19836. cat >>conftest.$ac_ext <<_ACEOF
  19837. /* end confdefs.h. */
  19838. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19839. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19840. #define $ac_func innocuous_$ac_func
  19841. /* System header to define __stub macros and hopefully few prototypes,
  19842. which can conflict with char $ac_func (); below.
  19843. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19844. <limits.h> exists even on freestanding compilers. */
  19845. #ifdef __STDC__
  19846. # include <limits.h>
  19847. #else
  19848. # include <assert.h>
  19849. #endif
  19850. #undef $ac_func
  19851. /* Override any GCC internal prototype to avoid an error.
  19852. Use char because int might match the return type of a GCC
  19853. builtin and then its argument prototype would still apply. */
  19854. #ifdef __cplusplus
  19855. extern "C"
  19856. #endif
  19857. char $ac_func ();
  19858. /* The GNU C library defines this for functions which it implements
  19859. to always fail with ENOSYS. Some functions are actually named
  19860. something starting with __ and the normal name is an alias. */
  19861. #if defined __stub_$ac_func || defined __stub___$ac_func
  19862. choke me
  19863. #endif
  19864. int
  19865. main ()
  19866. {
  19867. return $ac_func ();
  19868. ;
  19869. return 0;
  19870. }
  19871. _ACEOF
  19872. rm -f conftest.$ac_objext conftest$ac_exeext
  19873. if { (ac_try="$ac_link"
  19874. case "(($ac_try" in
  19875. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19876. *) ac_try_echo=$ac_try;;
  19877. esac
  19878. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19879. $as_echo "$ac_try_echo") >&5
  19880. (eval "$ac_link") 2>conftest.er1
  19881. ac_status=$?
  19882. grep -v '^ *+' conftest.er1 >conftest.err
  19883. rm -f conftest.er1
  19884. cat conftest.err >&5
  19885. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19886. (exit $ac_status); } && {
  19887. test -z "$ac_cxx_werror_flag" ||
  19888. test ! -s conftest.err
  19889. } && test -s conftest$ac_exeext && {
  19890. test "$cross_compiling" = yes ||
  19891. $as_test_x conftest$ac_exeext
  19892. }; then
  19893. eval "$as_ac_var=yes"
  19894. else
  19895. $as_echo "$as_me: failed program was:" >&5
  19896. sed 's/^/| /' conftest.$ac_ext >&5
  19897. eval "$as_ac_var=no"
  19898. fi
  19899. rm -rf conftest.dSYM
  19900. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19901. conftest$ac_exeext conftest.$ac_ext
  19902. fi
  19903. ac_res=`eval 'as_val=${'$as_ac_var'}
  19904. $as_echo "$as_val"'`
  19905. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19906. $as_echo "$ac_res" >&6; }
  19907. as_val=`eval 'as_val=${'$as_ac_var'}
  19908. $as_echo "$as_val"'`
  19909. if test "x$as_val" = x""yes; then
  19910. cat >>confdefs.h <<_ACEOF
  19911. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19912. _ACEOF
  19913. if true; then
  19914. HAVE_INET_ATON_TRUE=
  19915. HAVE_INET_ATON_FALSE='#'
  19916. else
  19917. HAVE_INET_ATON_TRUE='#'
  19918. HAVE_INET_ATON_FALSE=
  19919. fi
  19920. else
  19921. if false; then
  19922. HAVE_INET_ATON_TRUE=
  19923. HAVE_INET_ATON_FALSE='#'
  19924. else
  19925. HAVE_INET_ATON_TRUE='#'
  19926. HAVE_INET_ATON_FALSE=
  19927. fi
  19928. fi
  19929. done
  19930. for ac_func in localtime_r
  19931. do
  19932. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19933. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19934. $as_echo_n "checking for $ac_func... " >&6; }
  19935. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19936. $as_echo_n "(cached) " >&6
  19937. else
  19938. cat >conftest.$ac_ext <<_ACEOF
  19939. /* confdefs.h. */
  19940. _ACEOF
  19941. cat confdefs.h >>conftest.$ac_ext
  19942. cat >>conftest.$ac_ext <<_ACEOF
  19943. /* end confdefs.h. */
  19944. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19945. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19946. #define $ac_func innocuous_$ac_func
  19947. /* System header to define __stub macros and hopefully few prototypes,
  19948. which can conflict with char $ac_func (); below.
  19949. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19950. <limits.h> exists even on freestanding compilers. */
  19951. #ifdef __STDC__
  19952. # include <limits.h>
  19953. #else
  19954. # include <assert.h>
  19955. #endif
  19956. #undef $ac_func
  19957. /* Override any GCC internal prototype to avoid an error.
  19958. Use char because int might match the return type of a GCC
  19959. builtin and then its argument prototype would still apply. */
  19960. #ifdef __cplusplus
  19961. extern "C"
  19962. #endif
  19963. char $ac_func ();
  19964. /* The GNU C library defines this for functions which it implements
  19965. to always fail with ENOSYS. Some functions are actually named
  19966. something starting with __ and the normal name is an alias. */
  19967. #if defined __stub_$ac_func || defined __stub___$ac_func
  19968. choke me
  19969. #endif
  19970. int
  19971. main ()
  19972. {
  19973. return $ac_func ();
  19974. ;
  19975. return 0;
  19976. }
  19977. _ACEOF
  19978. rm -f conftest.$ac_objext conftest$ac_exeext
  19979. if { (ac_try="$ac_link"
  19980. case "(($ac_try" in
  19981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19982. *) ac_try_echo=$ac_try;;
  19983. esac
  19984. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19985. $as_echo "$ac_try_echo") >&5
  19986. (eval "$ac_link") 2>conftest.er1
  19987. ac_status=$?
  19988. grep -v '^ *+' conftest.er1 >conftest.err
  19989. rm -f conftest.er1
  19990. cat conftest.err >&5
  19991. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19992. (exit $ac_status); } && {
  19993. test -z "$ac_cxx_werror_flag" ||
  19994. test ! -s conftest.err
  19995. } && test -s conftest$ac_exeext && {
  19996. test "$cross_compiling" = yes ||
  19997. $as_test_x conftest$ac_exeext
  19998. }; then
  19999. eval "$as_ac_var=yes"
  20000. else
  20001. $as_echo "$as_me: failed program was:" >&5
  20002. sed 's/^/| /' conftest.$ac_ext >&5
  20003. eval "$as_ac_var=no"
  20004. fi
  20005. rm -rf conftest.dSYM
  20006. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20007. conftest$ac_exeext conftest.$ac_ext
  20008. fi
  20009. ac_res=`eval 'as_val=${'$as_ac_var'}
  20010. $as_echo "$as_val"'`
  20011. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20012. $as_echo "$ac_res" >&6; }
  20013. as_val=`eval 'as_val=${'$as_ac_var'}
  20014. $as_echo "$as_val"'`
  20015. if test "x$as_val" = x""yes; then
  20016. cat >>confdefs.h <<_ACEOF
  20017. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20018. _ACEOF
  20019. if true; then
  20020. HAVE_LOCALTIME_R_TRUE=
  20021. HAVE_LOCALTIME_R_FALSE='#'
  20022. else
  20023. HAVE_LOCALTIME_R_TRUE='#'
  20024. HAVE_LOCALTIME_R_FALSE=
  20025. fi
  20026. else
  20027. if false; then
  20028. HAVE_LOCALTIME_R_TRUE=
  20029. HAVE_LOCALTIME_R_FALSE='#'
  20030. else
  20031. HAVE_LOCALTIME_R_TRUE='#'
  20032. HAVE_LOCALTIME_R_FALSE=
  20033. fi
  20034. fi
  20035. done
  20036. for ac_func in strptime
  20037. do
  20038. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20039. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20040. $as_echo_n "checking for $ac_func... " >&6; }
  20041. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20042. $as_echo_n "(cached) " >&6
  20043. else
  20044. cat >conftest.$ac_ext <<_ACEOF
  20045. /* confdefs.h. */
  20046. _ACEOF
  20047. cat confdefs.h >>conftest.$ac_ext
  20048. cat >>conftest.$ac_ext <<_ACEOF
  20049. /* end confdefs.h. */
  20050. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20051. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20052. #define $ac_func innocuous_$ac_func
  20053. /* System header to define __stub macros and hopefully few prototypes,
  20054. which can conflict with char $ac_func (); below.
  20055. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20056. <limits.h> exists even on freestanding compilers. */
  20057. #ifdef __STDC__
  20058. # include <limits.h>
  20059. #else
  20060. # include <assert.h>
  20061. #endif
  20062. #undef $ac_func
  20063. /* Override any GCC internal prototype to avoid an error.
  20064. Use char because int might match the return type of a GCC
  20065. builtin and then its argument prototype would still apply. */
  20066. #ifdef __cplusplus
  20067. extern "C"
  20068. #endif
  20069. char $ac_func ();
  20070. /* The GNU C library defines this for functions which it implements
  20071. to always fail with ENOSYS. Some functions are actually named
  20072. something starting with __ and the normal name is an alias. */
  20073. #if defined __stub_$ac_func || defined __stub___$ac_func
  20074. choke me
  20075. #endif
  20076. int
  20077. main ()
  20078. {
  20079. return $ac_func ();
  20080. ;
  20081. return 0;
  20082. }
  20083. _ACEOF
  20084. rm -f conftest.$ac_objext conftest$ac_exeext
  20085. if { (ac_try="$ac_link"
  20086. case "(($ac_try" in
  20087. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20088. *) ac_try_echo=$ac_try;;
  20089. esac
  20090. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20091. $as_echo "$ac_try_echo") >&5
  20092. (eval "$ac_link") 2>conftest.er1
  20093. ac_status=$?
  20094. grep -v '^ *+' conftest.er1 >conftest.err
  20095. rm -f conftest.er1
  20096. cat conftest.err >&5
  20097. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20098. (exit $ac_status); } && {
  20099. test -z "$ac_cxx_werror_flag" ||
  20100. test ! -s conftest.err
  20101. } && test -s conftest$ac_exeext && {
  20102. test "$cross_compiling" = yes ||
  20103. $as_test_x conftest$ac_exeext
  20104. }; then
  20105. eval "$as_ac_var=yes"
  20106. else
  20107. $as_echo "$as_me: failed program was:" >&5
  20108. sed 's/^/| /' conftest.$ac_ext >&5
  20109. eval "$as_ac_var=no"
  20110. fi
  20111. rm -rf conftest.dSYM
  20112. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20113. conftest$ac_exeext conftest.$ac_ext
  20114. fi
  20115. ac_res=`eval 'as_val=${'$as_ac_var'}
  20116. $as_echo "$as_val"'`
  20117. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20118. $as_echo "$ac_res" >&6; }
  20119. as_val=`eval 'as_val=${'$as_ac_var'}
  20120. $as_echo "$as_val"'`
  20121. if test "x$as_val" = x""yes; then
  20122. cat >>confdefs.h <<_ACEOF
  20123. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20124. _ACEOF
  20125. if true; then
  20126. HAVE_STRPTIME_TRUE=
  20127. HAVE_STRPTIME_FALSE='#'
  20128. else
  20129. HAVE_STRPTIME_TRUE='#'
  20130. HAVE_STRPTIME_FALSE=
  20131. fi
  20132. else
  20133. if false; then
  20134. HAVE_STRPTIME_TRUE=
  20135. HAVE_STRPTIME_FALSE='#'
  20136. else
  20137. HAVE_STRPTIME_TRUE='#'
  20138. HAVE_STRPTIME_FALSE=
  20139. fi
  20140. fi
  20141. done
  20142. for ac_func in timegm
  20143. do
  20144. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20145. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20146. $as_echo_n "checking for $ac_func... " >&6; }
  20147. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20148. $as_echo_n "(cached) " >&6
  20149. else
  20150. cat >conftest.$ac_ext <<_ACEOF
  20151. /* confdefs.h. */
  20152. _ACEOF
  20153. cat confdefs.h >>conftest.$ac_ext
  20154. cat >>conftest.$ac_ext <<_ACEOF
  20155. /* end confdefs.h. */
  20156. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20157. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20158. #define $ac_func innocuous_$ac_func
  20159. /* System header to define __stub macros and hopefully few prototypes,
  20160. which can conflict with char $ac_func (); below.
  20161. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20162. <limits.h> exists even on freestanding compilers. */
  20163. #ifdef __STDC__
  20164. # include <limits.h>
  20165. #else
  20166. # include <assert.h>
  20167. #endif
  20168. #undef $ac_func
  20169. /* Override any GCC internal prototype to avoid an error.
  20170. Use char because int might match the return type of a GCC
  20171. builtin and then its argument prototype would still apply. */
  20172. #ifdef __cplusplus
  20173. extern "C"
  20174. #endif
  20175. char $ac_func ();
  20176. /* The GNU C library defines this for functions which it implements
  20177. to always fail with ENOSYS. Some functions are actually named
  20178. something starting with __ and the normal name is an alias. */
  20179. #if defined __stub_$ac_func || defined __stub___$ac_func
  20180. choke me
  20181. #endif
  20182. int
  20183. main ()
  20184. {
  20185. return $ac_func ();
  20186. ;
  20187. return 0;
  20188. }
  20189. _ACEOF
  20190. rm -f conftest.$ac_objext conftest$ac_exeext
  20191. if { (ac_try="$ac_link"
  20192. case "(($ac_try" in
  20193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20194. *) ac_try_echo=$ac_try;;
  20195. esac
  20196. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20197. $as_echo "$ac_try_echo") >&5
  20198. (eval "$ac_link") 2>conftest.er1
  20199. ac_status=$?
  20200. grep -v '^ *+' conftest.er1 >conftest.err
  20201. rm -f conftest.er1
  20202. cat conftest.err >&5
  20203. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20204. (exit $ac_status); } && {
  20205. test -z "$ac_cxx_werror_flag" ||
  20206. test ! -s conftest.err
  20207. } && test -s conftest$ac_exeext && {
  20208. test "$cross_compiling" = yes ||
  20209. $as_test_x conftest$ac_exeext
  20210. }; then
  20211. eval "$as_ac_var=yes"
  20212. else
  20213. $as_echo "$as_me: failed program was:" >&5
  20214. sed 's/^/| /' conftest.$ac_ext >&5
  20215. eval "$as_ac_var=no"
  20216. fi
  20217. rm -rf conftest.dSYM
  20218. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20219. conftest$ac_exeext conftest.$ac_ext
  20220. fi
  20221. ac_res=`eval 'as_val=${'$as_ac_var'}
  20222. $as_echo "$as_val"'`
  20223. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20224. $as_echo "$ac_res" >&6; }
  20225. as_val=`eval 'as_val=${'$as_ac_var'}
  20226. $as_echo "$as_val"'`
  20227. if test "x$as_val" = x""yes; then
  20228. cat >>confdefs.h <<_ACEOF
  20229. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20230. _ACEOF
  20231. if true; then
  20232. HAVE_TIMEGM_TRUE=
  20233. HAVE_TIMEGM_FALSE='#'
  20234. else
  20235. HAVE_TIMEGM_TRUE='#'
  20236. HAVE_TIMEGM_FALSE=
  20237. fi
  20238. else
  20239. if false; then
  20240. HAVE_TIMEGM_TRUE=
  20241. HAVE_TIMEGM_FALSE='#'
  20242. else
  20243. HAVE_TIMEGM_TRUE='#'
  20244. HAVE_TIMEGM_FALSE=
  20245. fi
  20246. fi
  20247. done
  20248. case "$target" in
  20249. *mingw*)
  20250. if true; then
  20251. HAVE_GETADDRINFO_TRUE=
  20252. HAVE_GETADDRINFO_FALSE='#'
  20253. else
  20254. HAVE_GETADDRINFO_TRUE='#'
  20255. HAVE_GETADDRINFO_FALSE=
  20256. fi
  20257. if false; then
  20258. HAVE_GAI_STRERROR_TRUE=
  20259. HAVE_GAI_STRERROR_FALSE='#'
  20260. else
  20261. HAVE_GAI_STRERROR_TRUE='#'
  20262. HAVE_GAI_STRERROR_FALSE=
  20263. fi
  20264. ;;
  20265. esac
  20266. { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
  20267. $as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; }
  20268. if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
  20269. $as_echo_n "(cached) " >&6
  20270. else
  20271. cat >conftest.$ac_ext <<_ACEOF
  20272. /* confdefs.h. */
  20273. _ACEOF
  20274. cat confdefs.h >>conftest.$ac_ext
  20275. cat >>conftest.$ac_ext <<_ACEOF
  20276. /* end confdefs.h. */
  20277. #include <netinet/in.h>
  20278. int
  20279. main ()
  20280. {
  20281. static struct sockaddr_in ac_aggr;
  20282. if (ac_aggr.sin_len)
  20283. return 0;
  20284. ;
  20285. return 0;
  20286. }
  20287. _ACEOF
  20288. rm -f conftest.$ac_objext
  20289. if { (ac_try="$ac_compile"
  20290. case "(($ac_try" in
  20291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20292. *) ac_try_echo=$ac_try;;
  20293. esac
  20294. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20295. $as_echo "$ac_try_echo") >&5
  20296. (eval "$ac_compile") 2>conftest.er1
  20297. ac_status=$?
  20298. grep -v '^ *+' conftest.er1 >conftest.err
  20299. rm -f conftest.er1
  20300. cat conftest.err >&5
  20301. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20302. (exit $ac_status); } && {
  20303. test -z "$ac_cxx_werror_flag" ||
  20304. test ! -s conftest.err
  20305. } && test -s conftest.$ac_objext; then
  20306. ac_cv_member_struct_sockaddr_in_sin_len=yes
  20307. else
  20308. $as_echo "$as_me: failed program was:" >&5
  20309. sed 's/^/| /' conftest.$ac_ext >&5
  20310. cat >conftest.$ac_ext <<_ACEOF
  20311. /* confdefs.h. */
  20312. _ACEOF
  20313. cat confdefs.h >>conftest.$ac_ext
  20314. cat >>conftest.$ac_ext <<_ACEOF
  20315. /* end confdefs.h. */
  20316. #include <netinet/in.h>
  20317. int
  20318. main ()
  20319. {
  20320. static struct sockaddr_in ac_aggr;
  20321. if (sizeof ac_aggr.sin_len)
  20322. return 0;
  20323. ;
  20324. return 0;
  20325. }
  20326. _ACEOF
  20327. rm -f conftest.$ac_objext
  20328. if { (ac_try="$ac_compile"
  20329. case "(($ac_try" in
  20330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20331. *) ac_try_echo=$ac_try;;
  20332. esac
  20333. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20334. $as_echo "$ac_try_echo") >&5
  20335. (eval "$ac_compile") 2>conftest.er1
  20336. ac_status=$?
  20337. grep -v '^ *+' conftest.er1 >conftest.err
  20338. rm -f conftest.er1
  20339. cat conftest.err >&5
  20340. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20341. (exit $ac_status); } && {
  20342. test -z "$ac_cxx_werror_flag" ||
  20343. test ! -s conftest.err
  20344. } && test -s conftest.$ac_objext; then
  20345. ac_cv_member_struct_sockaddr_in_sin_len=yes
  20346. else
  20347. $as_echo "$as_me: failed program was:" >&5
  20348. sed 's/^/| /' conftest.$ac_ext >&5
  20349. ac_cv_member_struct_sockaddr_in_sin_len=no
  20350. fi
  20351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20352. fi
  20353. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20354. fi
  20355. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
  20356. $as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
  20357. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then
  20358. cat >>confdefs.h <<\_ACEOF
  20359. #define HAVE_SOCKADDR_IN_SIN_LEN 1
  20360. _ACEOF
  20361. fi
  20362. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  20363. cat >confcache <<\_ACEOF
  20364. # This file is a shell script that caches the results of configure
  20365. # tests run on this system so they can be shared between configure
  20366. # scripts and configure runs, see configure's option --config-cache.
  20367. # It is not useful on other systems. If it contains results you don't
  20368. # want to keep, you may remove or edit it.
  20369. #
  20370. # config.status only pays attention to the cache file if you give it
  20371. # the --recheck option to rerun configure.
  20372. #
  20373. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20374. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20375. # following values.
  20376. _ACEOF
  20377. # The following way of writing the cache mishandles newlines in values,
  20378. # but we know of no workaround that is simple, portable, and efficient.
  20379. # So, we kill variables containing newlines.
  20380. # Ultrix sh set writes to stderr and can't be redirected directly,
  20381. # and sets the high bit in the cache file unless we assign to the vars.
  20382. (
  20383. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20384. eval ac_val=\$$ac_var
  20385. case $ac_val in #(
  20386. *${as_nl}*)
  20387. case $ac_var in #(
  20388. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  20389. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20390. esac
  20391. case $ac_var in #(
  20392. _ | IFS | as_nl) ;; #(
  20393. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20394. *) $as_unset $ac_var ;;
  20395. esac ;;
  20396. esac
  20397. done
  20398. (set) 2>&1 |
  20399. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20400. *${as_nl}ac_space=\ *)
  20401. # `set' does not quote correctly, so add quotes (double-quote
  20402. # substitution turns \\\\ into \\, and sed turns \\ into \).
  20403. sed -n \
  20404. "s/'/'\\\\''/g;
  20405. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20406. ;; #(
  20407. *)
  20408. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20409. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20410. ;;
  20411. esac |
  20412. sort
  20413. ) |
  20414. sed '
  20415. /^ac_cv_env_/b end
  20416. t clear
  20417. :clear
  20418. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20419. t end
  20420. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20421. :end' >>confcache
  20422. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20423. if test -w "$cache_file"; then
  20424. test "x$cache_file" != "x/dev/null" &&
  20425. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  20426. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20427. cat confcache >$cache_file
  20428. else
  20429. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  20430. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20431. fi
  20432. fi
  20433. rm -f confcache
  20434. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20435. # Let make expand exec_prefix.
  20436. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20437. DEFS=-DHAVE_CONFIG_H
  20438. ac_libobjs=
  20439. ac_ltlibobjs=
  20440. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20441. # 1. Remove the extension, and $U if already installed.
  20442. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20443. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20444. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20445. # will be set to the directory where LIBOBJS objects are built.
  20446. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20447. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  20448. done
  20449. LIBOBJS=$ac_libobjs
  20450. LTLIBOBJS=$ac_ltlibobjs
  20451. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20452. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  20453. Usually this means the macro was only invoked conditionally." >&5
  20454. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  20455. Usually this means the macro was only invoked conditionally." >&2;}
  20456. { (exit 1); exit 1; }; }
  20457. fi
  20458. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20459. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  20460. Usually this means the macro was only invoked conditionally." >&5
  20461. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  20462. Usually this means the macro was only invoked conditionally." >&2;}
  20463. { (exit 1); exit 1; }; }
  20464. fi
  20465. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20466. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  20467. Usually this means the macro was only invoked conditionally." >&5
  20468. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  20469. Usually this means the macro was only invoked conditionally." >&2;}
  20470. { (exit 1); exit 1; }; }
  20471. fi
  20472. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  20473. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  20474. Usually this means the macro was only invoked conditionally." >&5
  20475. $as_echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  20476. Usually this means the macro was only invoked conditionally." >&2;}
  20477. { (exit 1); exit 1; }; }
  20478. fi
  20479. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  20480. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  20481. Usually this means the macro was only invoked conditionally." >&5
  20482. $as_echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  20483. Usually this means the macro was only invoked conditionally." >&2;}
  20484. { (exit 1); exit 1; }; }
  20485. fi
  20486. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  20487. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  20488. Usually this means the macro was only invoked conditionally." >&5
  20489. $as_echo "$as_me: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  20490. Usually this means the macro was only invoked conditionally." >&2;}
  20491. { (exit 1); exit 1; }; }
  20492. fi
  20493. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  20494. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSSL\" was never defined.
  20495. Usually this means the macro was only invoked conditionally." >&5
  20496. $as_echo "$as_me: error: conditional \"HAVE_LIBSSL\" was never defined.
  20497. Usually this means the macro was only invoked conditionally." >&2;}
  20498. { (exit 1); exit 1; }; }
  20499. fi
  20500. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  20501. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20502. Usually this means the macro was only invoked conditionally." >&5
  20503. $as_echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20504. Usually this means the macro was only invoked conditionally." >&2;}
  20505. { (exit 1); exit 1; }; }
  20506. fi
  20507. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  20508. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20509. Usually this means the macro was only invoked conditionally." >&5
  20510. $as_echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20511. Usually this means the macro was only invoked conditionally." >&2;}
  20512. { (exit 1); exit 1; }; }
  20513. fi
  20514. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  20515. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20516. Usually this means the macro was only invoked conditionally." >&5
  20517. $as_echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20518. Usually this means the macro was only invoked conditionally." >&2;}
  20519. { (exit 1); exit 1; }; }
  20520. fi
  20521. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  20522. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20523. Usually this means the macro was only invoked conditionally." >&5
  20524. $as_echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20525. Usually this means the macro was only invoked conditionally." >&2;}
  20526. { (exit 1); exit 1; }; }
  20527. fi
  20528. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  20529. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  20530. Usually this means the macro was only invoked conditionally." >&5
  20531. $as_echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  20532. Usually this means the macro was only invoked conditionally." >&2;}
  20533. { (exit 1); exit 1; }; }
  20534. fi
  20535. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  20536. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  20537. Usually this means the macro was only invoked conditionally." >&5
  20538. $as_echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  20539. Usually this means the macro was only invoked conditionally." >&2;}
  20540. { (exit 1); exit 1; }; }
  20541. fi
  20542. if test -z "${ENABLE_LIBXML2_TRUE}" && test -z "${ENABLE_LIBXML2_FALSE}"; then
  20543. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBXML2\" was never defined.
  20544. Usually this means the macro was only invoked conditionally." >&5
  20545. $as_echo "$as_me: error: conditional \"ENABLE_LIBXML2\" was never defined.
  20546. Usually this means the macro was only invoked conditionally." >&2;}
  20547. { (exit 1); exit 1; }; }
  20548. fi
  20549. if test -z "${ENABLE_LIBEXPAT_TRUE}" && test -z "${ENABLE_LIBEXPAT_FALSE}"; then
  20550. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  20551. Usually this means the macro was only invoked conditionally." >&5
  20552. $as_echo "$as_me: error: conditional \"ENABLE_LIBEXPAT\" was never defined.
  20553. Usually this means the macro was only invoked conditionally." >&2;}
  20554. { (exit 1); exit 1; }; }
  20555. fi
  20556. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  20557. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20558. Usually this means the macro was only invoked conditionally." >&5
  20559. $as_echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20560. Usually this means the macro was only invoked conditionally." >&2;}
  20561. { (exit 1); exit 1; }; }
  20562. fi
  20563. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  20564. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20565. Usually this means the macro was only invoked conditionally." >&5
  20566. $as_echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  20567. Usually this means the macro was only invoked conditionally." >&2;}
  20568. { (exit 1); exit 1; }; }
  20569. fi
  20570. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  20571. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  20572. Usually this means the macro was only invoked conditionally." >&5
  20573. $as_echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  20574. Usually this means the macro was only invoked conditionally." >&2;}
  20575. { (exit 1); exit 1; }; }
  20576. fi
  20577. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  20578. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  20579. Usually this means the macro was only invoked conditionally." >&5
  20580. $as_echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  20581. Usually this means the macro was only invoked conditionally." >&2;}
  20582. { (exit 1); exit 1; }; }
  20583. fi
  20584. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  20585. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_EPOLL\" was never defined.
  20586. Usually this means the macro was only invoked conditionally." >&5
  20587. $as_echo "$as_me: error: conditional \"HAVE_EPOLL\" was never defined.
  20588. Usually this means the macro was only invoked conditionally." >&2;}
  20589. { (exit 1); exit 1; }; }
  20590. fi
  20591. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  20592. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  20593. Usually this means the macro was only invoked conditionally." >&5
  20594. $as_echo "$as_me: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  20595. Usually this means the macro was only invoked conditionally." >&2;}
  20596. { (exit 1); exit 1; }; }
  20597. fi
  20598. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  20599. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20600. Usually this means the macro was only invoked conditionally." >&5
  20601. $as_echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20602. Usually this means the macro was only invoked conditionally." >&2;}
  20603. { (exit 1); exit 1; }; }
  20604. fi
  20605. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  20606. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20607. Usually this means the macro was only invoked conditionally." >&5
  20608. $as_echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  20609. Usually this means the macro was only invoked conditionally." >&2;}
  20610. { (exit 1); exit 1; }; }
  20611. fi
  20612. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  20613. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  20614. Usually this means the macro was only invoked conditionally." >&5
  20615. $as_echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  20616. Usually this means the macro was only invoked conditionally." >&2;}
  20617. { (exit 1); exit 1; }; }
  20618. fi
  20619. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  20620. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  20621. Usually this means the macro was only invoked conditionally." >&5
  20622. $as_echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  20623. Usually this means the macro was only invoked conditionally." >&2;}
  20624. { (exit 1); exit 1; }; }
  20625. fi
  20626. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20627. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20628. Usually this means the macro was only invoked conditionally." >&5
  20629. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20630. Usually this means the macro was only invoked conditionally." >&2;}
  20631. { (exit 1); exit 1; }; }
  20632. fi
  20633. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20634. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20635. Usually this means the macro was only invoked conditionally." >&5
  20636. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20637. Usually this means the macro was only invoked conditionally." >&2;}
  20638. { (exit 1); exit 1; }; }
  20639. fi
  20640. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  20641. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20642. Usually this means the macro was only invoked conditionally." >&5
  20643. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20644. Usually this means the macro was only invoked conditionally." >&2;}
  20645. { (exit 1); exit 1; }; }
  20646. fi
  20647. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  20648. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20649. Usually this means the macro was only invoked conditionally." >&5
  20650. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20651. Usually this means the macro was only invoked conditionally." >&2;}
  20652. { (exit 1); exit 1; }; }
  20653. fi
  20654. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  20655. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20656. Usually this means the macro was only invoked conditionally." >&5
  20657. $as_echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20658. Usually this means the macro was only invoked conditionally." >&2;}
  20659. { (exit 1); exit 1; }; }
  20660. fi
  20661. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  20662. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20663. Usually this means the macro was only invoked conditionally." >&5
  20664. $as_echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  20665. Usually this means the macro was only invoked conditionally." >&2;}
  20666. { (exit 1); exit 1; }; }
  20667. fi
  20668. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  20669. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  20670. Usually this means the macro was only invoked conditionally." >&5
  20671. $as_echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  20672. Usually this means the macro was only invoked conditionally." >&2;}
  20673. { (exit 1); exit 1; }; }
  20674. fi
  20675. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  20676. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  20677. Usually this means the macro was only invoked conditionally." >&5
  20678. $as_echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  20679. Usually this means the macro was only invoked conditionally." >&2;}
  20680. { (exit 1); exit 1; }; }
  20681. fi
  20682. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  20683. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20684. Usually this means the macro was only invoked conditionally." >&5
  20685. $as_echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20686. Usually this means the macro was only invoked conditionally." >&2;}
  20687. { (exit 1); exit 1; }; }
  20688. fi
  20689. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  20690. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20691. Usually this means the macro was only invoked conditionally." >&5
  20692. $as_echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  20693. Usually this means the macro was only invoked conditionally." >&2;}
  20694. { (exit 1); exit 1; }; }
  20695. fi
  20696. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  20697. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  20698. Usually this means the macro was only invoked conditionally." >&5
  20699. $as_echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  20700. Usually this means the macro was only invoked conditionally." >&2;}
  20701. { (exit 1); exit 1; }; }
  20702. fi
  20703. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  20704. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  20705. Usually this means the macro was only invoked conditionally." >&5
  20706. $as_echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  20707. Usually this means the macro was only invoked conditionally." >&2;}
  20708. { (exit 1); exit 1; }; }
  20709. fi
  20710. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  20711. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  20712. Usually this means the macro was only invoked conditionally." >&5
  20713. $as_echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  20714. Usually this means the macro was only invoked conditionally." >&2;}
  20715. { (exit 1); exit 1; }; }
  20716. fi
  20717. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  20718. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  20719. Usually this means the macro was only invoked conditionally." >&5
  20720. $as_echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  20721. Usually this means the macro was only invoked conditionally." >&2;}
  20722. { (exit 1); exit 1; }; }
  20723. fi
  20724. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  20725. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20726. Usually this means the macro was only invoked conditionally." >&5
  20727. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  20728. Usually this means the macro was only invoked conditionally." >&2;}
  20729. { (exit 1); exit 1; }; }
  20730. fi
  20731. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  20732. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20733. Usually this means the macro was only invoked conditionally." >&5
  20734. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  20735. Usually this means the macro was only invoked conditionally." >&2;}
  20736. { (exit 1); exit 1; }; }
  20737. fi
  20738. : ${CONFIG_STATUS=./config.status}
  20739. ac_write_fail=0
  20740. ac_clean_files_save=$ac_clean_files
  20741. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  20742. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  20743. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  20744. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  20745. #! $SHELL
  20746. # Generated by $as_me.
  20747. # Run this file to recreate the current configuration.
  20748. # Compiler output produced by configure, useful for debugging
  20749. # configure, is in config.log if it exists.
  20750. debug=false
  20751. ac_cs_recheck=false
  20752. ac_cs_silent=false
  20753. SHELL=\${CONFIG_SHELL-$SHELL}
  20754. _ACEOF
  20755. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  20756. ## --------------------- ##
  20757. ## M4sh Initialization. ##
  20758. ## --------------------- ##
  20759. # Be more Bourne compatible
  20760. DUALCASE=1; export DUALCASE # for MKS sh
  20761. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  20762. emulate sh
  20763. NULLCMD=:
  20764. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20765. # is contrary to our usage. Disable this feature.
  20766. alias -g '${1+"$@"}'='"$@"'
  20767. setopt NO_GLOB_SUBST
  20768. else
  20769. case `(set -o) 2>/dev/null` in
  20770. *posix*) set -o posix ;;
  20771. esac
  20772. fi
  20773. # PATH needs CR
  20774. # Avoid depending upon Character Ranges.
  20775. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  20776. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  20777. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  20778. as_cr_digits='0123456789'
  20779. as_cr_alnum=$as_cr_Letters$as_cr_digits
  20780. as_nl='
  20781. '
  20782. export as_nl
  20783. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  20784. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  20785. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  20786. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  20787. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  20788. as_echo='printf %s\n'
  20789. as_echo_n='printf %s'
  20790. else
  20791. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  20792. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  20793. as_echo_n='/usr/ucb/echo -n'
  20794. else
  20795. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  20796. as_echo_n_body='eval
  20797. arg=$1;
  20798. case $arg in
  20799. *"$as_nl"*)
  20800. expr "X$arg" : "X\\(.*\\)$as_nl";
  20801. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  20802. esac;
  20803. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  20804. '
  20805. export as_echo_n_body
  20806. as_echo_n='sh -c $as_echo_n_body as_echo'
  20807. fi
  20808. export as_echo_body
  20809. as_echo='sh -c $as_echo_body as_echo'
  20810. fi
  20811. # The user is always right.
  20812. if test "${PATH_SEPARATOR+set}" != set; then
  20813. PATH_SEPARATOR=:
  20814. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  20815. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  20816. PATH_SEPARATOR=';'
  20817. }
  20818. fi
  20819. # Support unset when possible.
  20820. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  20821. as_unset=unset
  20822. else
  20823. as_unset=false
  20824. fi
  20825. # IFS
  20826. # We need space, tab and new line, in precisely that order. Quoting is
  20827. # there to prevent editors from complaining about space-tab.
  20828. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  20829. # splitting by setting IFS to empty value.)
  20830. IFS=" "" $as_nl"
  20831. # Find who we are. Look in the path if we contain no directory separator.
  20832. case $0 in
  20833. *[\\/]* ) as_myself=$0 ;;
  20834. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20835. for as_dir in $PATH
  20836. do
  20837. IFS=$as_save_IFS
  20838. test -z "$as_dir" && as_dir=.
  20839. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  20840. done
  20841. IFS=$as_save_IFS
  20842. ;;
  20843. esac
  20844. # We did not find ourselves, most probably we were run as `sh COMMAND'
  20845. # in which case we are not to be found in the path.
  20846. if test "x$as_myself" = x; then
  20847. as_myself=$0
  20848. fi
  20849. if test ! -f "$as_myself"; then
  20850. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  20851. { (exit 1); exit 1; }
  20852. fi
  20853. # Work around bugs in pre-3.0 UWIN ksh.
  20854. for as_var in ENV MAIL MAILPATH
  20855. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  20856. done
  20857. PS1='$ '
  20858. PS2='> '
  20859. PS4='+ '
  20860. # NLS nuisances.
  20861. LC_ALL=C
  20862. export LC_ALL
  20863. LANGUAGE=C
  20864. export LANGUAGE
  20865. # Required to use basename.
  20866. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20867. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20868. as_expr=expr
  20869. else
  20870. as_expr=false
  20871. fi
  20872. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  20873. as_basename=basename
  20874. else
  20875. as_basename=false
  20876. fi
  20877. # Name of the executable.
  20878. as_me=`$as_basename -- "$0" ||
  20879. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  20880. X"$0" : 'X\(//\)$' \| \
  20881. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  20882. $as_echo X/"$0" |
  20883. sed '/^.*\/\([^/][^/]*\)\/*$/{
  20884. s//\1/
  20885. q
  20886. }
  20887. /^X\/\(\/\/\)$/{
  20888. s//\1/
  20889. q
  20890. }
  20891. /^X\/\(\/\).*/{
  20892. s//\1/
  20893. q
  20894. }
  20895. s/.*/./; q'`
  20896. # CDPATH.
  20897. $as_unset CDPATH
  20898. as_lineno_1=$LINENO
  20899. as_lineno_2=$LINENO
  20900. test "x$as_lineno_1" != "x$as_lineno_2" &&
  20901. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  20902. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  20903. # uniformly replaced by the line number. The first 'sed' inserts a
  20904. # line-number line after each line using $LINENO; the second 'sed'
  20905. # does the real work. The second script uses 'N' to pair each
  20906. # line-number line with the line containing $LINENO, and appends
  20907. # trailing '-' during substitution so that $LINENO is not a special
  20908. # case at line end.
  20909. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  20910. # scripts with optimization help from Paolo Bonzini. Blame Lee
  20911. # E. McMahon (1931-1989) for sed's syntax. :-)
  20912. sed -n '
  20913. p
  20914. /[$]LINENO/=
  20915. ' <$as_myself |
  20916. sed '
  20917. s/[$]LINENO.*/&-/
  20918. t lineno
  20919. b
  20920. :lineno
  20921. N
  20922. :loop
  20923. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  20924. t loop
  20925. s/-\n.*//
  20926. ' >$as_me.lineno &&
  20927. chmod +x "$as_me.lineno" ||
  20928. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  20929. { (exit 1); exit 1; }; }
  20930. # Don't try to exec as it changes $[0], causing all sort of problems
  20931. # (the dirname of $[0] is not the place where we might find the
  20932. # original and so on. Autoconf is especially sensitive to this).
  20933. . "./$as_me.lineno"
  20934. # Exit status is that of the last command.
  20935. exit
  20936. }
  20937. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  20938. as_dirname=dirname
  20939. else
  20940. as_dirname=false
  20941. fi
  20942. ECHO_C= ECHO_N= ECHO_T=
  20943. case `echo -n x` in
  20944. -n*)
  20945. case `echo 'x\c'` in
  20946. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  20947. *) ECHO_C='\c';;
  20948. esac;;
  20949. *)
  20950. ECHO_N='-n';;
  20951. esac
  20952. if expr a : '\(a\)' >/dev/null 2>&1 &&
  20953. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  20954. as_expr=expr
  20955. else
  20956. as_expr=false
  20957. fi
  20958. rm -f conf$$ conf$$.exe conf$$.file
  20959. if test -d conf$$.dir; then
  20960. rm -f conf$$.dir/conf$$.file
  20961. else
  20962. rm -f conf$$.dir
  20963. mkdir conf$$.dir 2>/dev/null
  20964. fi
  20965. if (echo >conf$$.file) 2>/dev/null; then
  20966. if ln -s conf$$.file conf$$ 2>/dev/null; then
  20967. as_ln_s='ln -s'
  20968. # ... but there are two gotchas:
  20969. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  20970. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  20971. # In both cases, we have to default to `cp -p'.
  20972. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  20973. as_ln_s='cp -p'
  20974. elif ln conf$$.file conf$$ 2>/dev/null; then
  20975. as_ln_s=ln
  20976. else
  20977. as_ln_s='cp -p'
  20978. fi
  20979. else
  20980. as_ln_s='cp -p'
  20981. fi
  20982. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  20983. rmdir conf$$.dir 2>/dev/null
  20984. if mkdir -p . 2>/dev/null; then
  20985. as_mkdir_p=:
  20986. else
  20987. test -d ./-p && rmdir ./-p
  20988. as_mkdir_p=false
  20989. fi
  20990. if test -x / >/dev/null 2>&1; then
  20991. as_test_x='test -x'
  20992. else
  20993. if ls -dL / >/dev/null 2>&1; then
  20994. as_ls_L_option=L
  20995. else
  20996. as_ls_L_option=
  20997. fi
  20998. as_test_x='
  20999. eval sh -c '\''
  21000. if test -d "$1"; then
  21001. test -d "$1/.";
  21002. else
  21003. case $1 in
  21004. -*)set "./$1";;
  21005. esac;
  21006. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  21007. ???[sx]*):;;*)false;;esac;fi
  21008. '\'' sh
  21009. '
  21010. fi
  21011. as_executable_p=$as_test_x
  21012. # Sed expression to map a string onto a valid CPP name.
  21013. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21014. # Sed expression to map a string onto a valid variable name.
  21015. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21016. exec 6>&1
  21017. # Save the log message, to keep $[0] and so on meaningful, and to
  21018. # report actual input values of CONFIG_FILES etc. instead of their
  21019. # values after options handling.
  21020. ac_log="
  21021. This file was extended by aria2 $as_me 1.3.3, which was
  21022. generated by GNU Autoconf 2.63. Invocation command line was
  21023. CONFIG_FILES = $CONFIG_FILES
  21024. CONFIG_HEADERS = $CONFIG_HEADERS
  21025. CONFIG_LINKS = $CONFIG_LINKS
  21026. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21027. $ $0 $@
  21028. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21029. "
  21030. _ACEOF
  21031. case $ac_config_files in *"
  21032. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21033. esac
  21034. case $ac_config_headers in *"
  21035. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21036. esac
  21037. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21038. # Files that config.status was made for.
  21039. config_files="$ac_config_files"
  21040. config_headers="$ac_config_headers"
  21041. config_commands="$ac_config_commands"
  21042. _ACEOF
  21043. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21044. ac_cs_usage="\
  21045. \`$as_me' instantiates files from templates according to the
  21046. current configuration.
  21047. Usage: $0 [OPTION]... [FILE]...
  21048. -h, --help print this help, then exit
  21049. -V, --version print version number and configuration settings, then exit
  21050. -q, --quiet, --silent
  21051. do not print progress messages
  21052. -d, --debug don't remove temporary files
  21053. --recheck update $as_me by reconfiguring in the same conditions
  21054. --file=FILE[:TEMPLATE]
  21055. instantiate the configuration file FILE
  21056. --header=FILE[:TEMPLATE]
  21057. instantiate the configuration header FILE
  21058. Configuration files:
  21059. $config_files
  21060. Configuration headers:
  21061. $config_headers
  21062. Configuration commands:
  21063. $config_commands
  21064. Report bugs to <bug-autoconf@gnu.org>."
  21065. _ACEOF
  21066. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21067. ac_cs_version="\\
  21068. aria2 config.status 1.3.3
  21069. configured by $0, generated by GNU Autoconf 2.63,
  21070. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  21071. Copyright (C) 2008 Free Software Foundation, Inc.
  21072. This config.status script is free software; the Free Software Foundation
  21073. gives unlimited permission to copy, distribute and modify it."
  21074. ac_pwd='$ac_pwd'
  21075. srcdir='$srcdir'
  21076. INSTALL='$INSTALL'
  21077. MKDIR_P='$MKDIR_P'
  21078. AWK='$AWK'
  21079. test -n "\$AWK" || AWK=awk
  21080. _ACEOF
  21081. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21082. # The default lists apply if the user does not specify any file.
  21083. ac_need_defaults=:
  21084. while test $# != 0
  21085. do
  21086. case $1 in
  21087. --*=*)
  21088. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21089. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21090. ac_shift=:
  21091. ;;
  21092. *)
  21093. ac_option=$1
  21094. ac_optarg=$2
  21095. ac_shift=shift
  21096. ;;
  21097. esac
  21098. case $ac_option in
  21099. # Handling of the options.
  21100. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21101. ac_cs_recheck=: ;;
  21102. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21103. $as_echo "$ac_cs_version"; exit ;;
  21104. --debug | --debu | --deb | --de | --d | -d )
  21105. debug=: ;;
  21106. --file | --fil | --fi | --f )
  21107. $ac_shift
  21108. case $ac_optarg in
  21109. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21110. esac
  21111. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  21112. ac_need_defaults=false;;
  21113. --header | --heade | --head | --hea )
  21114. $ac_shift
  21115. case $ac_optarg in
  21116. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21117. esac
  21118. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  21119. ac_need_defaults=false;;
  21120. --he | --h)
  21121. # Conflict between --help and --header
  21122. { $as_echo "$as_me: error: ambiguous option: $1
  21123. Try \`$0 --help' for more information." >&2
  21124. { (exit 1); exit 1; }; };;
  21125. --help | --hel | -h )
  21126. $as_echo "$ac_cs_usage"; exit ;;
  21127. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21128. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21129. ac_cs_silent=: ;;
  21130. # This is an error.
  21131. -*) { $as_echo "$as_me: error: unrecognized option: $1
  21132. Try \`$0 --help' for more information." >&2
  21133. { (exit 1); exit 1; }; } ;;
  21134. *) ac_config_targets="$ac_config_targets $1"
  21135. ac_need_defaults=false ;;
  21136. esac
  21137. shift
  21138. done
  21139. ac_configure_extra_args=
  21140. if $ac_cs_silent; then
  21141. exec 6>/dev/null
  21142. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21143. fi
  21144. _ACEOF
  21145. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21146. if \$ac_cs_recheck; then
  21147. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21148. shift
  21149. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21150. CONFIG_SHELL='$SHELL'
  21151. export CONFIG_SHELL
  21152. exec "\$@"
  21153. fi
  21154. _ACEOF
  21155. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21156. exec 5>>config.log
  21157. {
  21158. echo
  21159. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21160. ## Running $as_me. ##
  21161. _ASBOX
  21162. $as_echo "$ac_log"
  21163. } >&5
  21164. _ACEOF
  21165. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21166. #
  21167. # INIT-COMMANDS
  21168. #
  21169. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  21170. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  21171. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  21172. # from automake < 1.5.
  21173. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  21174. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  21175. LINGUAS="${LINGUAS-%UNSET%}"
  21176. _ACEOF
  21177. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21178. # Handling of arguments.
  21179. for ac_config_target in $ac_config_targets
  21180. do
  21181. case $ac_config_target in
  21182. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  21183. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21184. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  21185. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21186. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21187. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  21188. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  21189. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  21190. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  21191. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  21192. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  21193. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  21194. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  21195. { (exit 1); exit 1; }; };;
  21196. esac
  21197. done
  21198. # If the user did not use the arguments to specify the items to instantiate,
  21199. # then the envvar interface is used. Set only those that are not.
  21200. # We use the long form for the default assignment because of an extremely
  21201. # bizarre bug on SunOS 4.1.3.
  21202. if $ac_need_defaults; then
  21203. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21204. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21205. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21206. fi
  21207. # Have a temporary directory for convenience. Make it in the build tree
  21208. # simply because there is no reason against having it here, and in addition,
  21209. # creating and moving files from /tmp can sometimes cause problems.
  21210. # Hook for its removal unless debugging.
  21211. # Note that there is a small window in which the directory will not be cleaned:
  21212. # after its creation but before its name has been assigned to `$tmp'.
  21213. $debug ||
  21214. {
  21215. tmp=
  21216. trap 'exit_status=$?
  21217. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  21218. ' 0
  21219. trap '{ (exit 1); exit 1; }' 1 2 13 15
  21220. }
  21221. # Create a (secure) tmp directory for tmp files.
  21222. {
  21223. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21224. test -n "$tmp" && test -d "$tmp"
  21225. } ||
  21226. {
  21227. tmp=./conf$$-$RANDOM
  21228. (umask 077 && mkdir "$tmp")
  21229. } ||
  21230. {
  21231. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  21232. { (exit 1); exit 1; }
  21233. }
  21234. # Set up the scripts for CONFIG_FILES section.
  21235. # No need to generate them if there are no CONFIG_FILES.
  21236. # This happens for instance with `./config.status config.h'.
  21237. if test -n "$CONFIG_FILES"; then
  21238. ac_cr=' '
  21239. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21240. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21241. ac_cs_awk_cr='\\r'
  21242. else
  21243. ac_cs_awk_cr=$ac_cr
  21244. fi
  21245. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  21246. _ACEOF
  21247. {
  21248. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21249. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21250. echo "_ACEOF"
  21251. } >conf$$subs.sh ||
  21252. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21253. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21254. { (exit 1); exit 1; }; }
  21255. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  21256. ac_delim='%!_!# '
  21257. for ac_last_try in false false false false false :; do
  21258. . ./conf$$subs.sh ||
  21259. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21260. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21261. { (exit 1); exit 1; }; }
  21262. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21263. if test $ac_delim_n = $ac_delim_num; then
  21264. break
  21265. elif $ac_last_try; then
  21266. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21267. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21268. { (exit 1); exit 1; }; }
  21269. else
  21270. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21271. fi
  21272. done
  21273. rm -f conf$$subs.sh
  21274. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21275. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  21276. _ACEOF
  21277. sed -n '
  21278. h
  21279. s/^/S["/; s/!.*/"]=/
  21280. p
  21281. g
  21282. s/^[^!]*!//
  21283. :repl
  21284. t repl
  21285. s/'"$ac_delim"'$//
  21286. t delim
  21287. :nl
  21288. h
  21289. s/\(.\{148\}\).*/\1/
  21290. t more1
  21291. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21292. p
  21293. n
  21294. b repl
  21295. :more1
  21296. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21297. p
  21298. g
  21299. s/.\{148\}//
  21300. t nl
  21301. :delim
  21302. h
  21303. s/\(.\{148\}\).*/\1/
  21304. t more2
  21305. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21306. p
  21307. b
  21308. :more2
  21309. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21310. p
  21311. g
  21312. s/.\{148\}//
  21313. t delim
  21314. ' <conf$$subs.awk | sed '
  21315. /^[^""]/{
  21316. N
  21317. s/\n//
  21318. }
  21319. ' >>$CONFIG_STATUS || ac_write_fail=1
  21320. rm -f conf$$subs.awk
  21321. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21322. _ACAWK
  21323. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  21324. for (key in S) S_is_set[key] = 1
  21325. FS = ""
  21326. }
  21327. {
  21328. line = $ 0
  21329. nfields = split(line, field, "@")
  21330. substed = 0
  21331. len = length(field[1])
  21332. for (i = 2; i < nfields; i++) {
  21333. key = field[i]
  21334. keylen = length(key)
  21335. if (S_is_set[key]) {
  21336. value = S[key]
  21337. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21338. len += length(value) + length(field[++i])
  21339. substed = 1
  21340. } else
  21341. len += 1 + keylen
  21342. }
  21343. print line
  21344. }
  21345. _ACAWK
  21346. _ACEOF
  21347. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21348. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21349. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21350. else
  21351. cat
  21352. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  21353. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  21354. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  21355. { (exit 1); exit 1; }; }
  21356. _ACEOF
  21357. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  21358. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  21359. # trailing colons and then remove the whole line if VPATH becomes empty
  21360. # (actually we leave an empty line to preserve line numbers).
  21361. if test "x$srcdir" = x.; then
  21362. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  21363. s/:*\$(srcdir):*/:/
  21364. s/:*\${srcdir}:*/:/
  21365. s/:*@srcdir@:*/:/
  21366. s/^\([^=]*=[ ]*\):*/\1/
  21367. s/:*$//
  21368. s/^[^=]*=[ ]*$//
  21369. }'
  21370. fi
  21371. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21372. fi # test -n "$CONFIG_FILES"
  21373. # Set up the scripts for CONFIG_HEADERS section.
  21374. # No need to generate them if there are no CONFIG_HEADERS.
  21375. # This happens for instance with `./config.status Makefile'.
  21376. if test -n "$CONFIG_HEADERS"; then
  21377. cat >"$tmp/defines.awk" <<\_ACAWK ||
  21378. BEGIN {
  21379. _ACEOF
  21380. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21381. # here-document in config.status, that substitutes the proper values into
  21382. # config.h.in to produce config.h.
  21383. # Create a delimiter string that does not exist in confdefs.h, to ease
  21384. # handling of long lines.
  21385. ac_delim='%!_!# '
  21386. for ac_last_try in false false :; do
  21387. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  21388. if test -z "$ac_t"; then
  21389. break
  21390. elif $ac_last_try; then
  21391. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  21392. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  21393. { (exit 1); exit 1; }; }
  21394. else
  21395. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21396. fi
  21397. done
  21398. # For the awk script, D is an array of macro values keyed by name,
  21399. # likewise P contains macro parameters if any. Preserve backslash
  21400. # newline sequences.
  21401. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21402. sed -n '
  21403. s/.\{148\}/&'"$ac_delim"'/g
  21404. t rset
  21405. :rset
  21406. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21407. t def
  21408. d
  21409. :def
  21410. s/\\$//
  21411. t bsnl
  21412. s/["\\]/\\&/g
  21413. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21414. D["\1"]=" \3"/p
  21415. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21416. d
  21417. :bsnl
  21418. s/["\\]/\\&/g
  21419. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21420. D["\1"]=" \3\\\\\\n"\\/p
  21421. t cont
  21422. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21423. t cont
  21424. d
  21425. :cont
  21426. n
  21427. s/.\{148\}/&'"$ac_delim"'/g
  21428. t clear
  21429. :clear
  21430. s/\\$//
  21431. t bsnlc
  21432. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21433. d
  21434. :bsnlc
  21435. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21436. b cont
  21437. ' <confdefs.h | sed '
  21438. s/'"$ac_delim"'/"\\\
  21439. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21440. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21441. for (key in D) D_is_set[key] = 1
  21442. FS = ""
  21443. }
  21444. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21445. line = \$ 0
  21446. split(line, arg, " ")
  21447. if (arg[1] == "#") {
  21448. defundef = arg[2]
  21449. mac1 = arg[3]
  21450. } else {
  21451. defundef = substr(arg[1], 2)
  21452. mac1 = arg[2]
  21453. }
  21454. split(mac1, mac2, "(") #)
  21455. macro = mac2[1]
  21456. prefix = substr(line, 1, index(line, defundef) - 1)
  21457. if (D_is_set[macro]) {
  21458. # Preserve the white space surrounding the "#".
  21459. print prefix "define", macro P[macro] D[macro]
  21460. next
  21461. } else {
  21462. # Replace #undef with comments. This is necessary, for example,
  21463. # in the case of _POSIX_SOURCE, which is predefined and required
  21464. # on some systems where configure will not decide to define it.
  21465. if (defundef == "undef") {
  21466. print "/*", prefix defundef, macro, "*/"
  21467. next
  21468. }
  21469. }
  21470. }
  21471. { print }
  21472. _ACAWK
  21473. _ACEOF
  21474. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21475. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  21476. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  21477. { (exit 1); exit 1; }; }
  21478. fi # test -n "$CONFIG_HEADERS"
  21479. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21480. shift
  21481. for ac_tag
  21482. do
  21483. case $ac_tag in
  21484. :[FHLC]) ac_mode=$ac_tag; continue;;
  21485. esac
  21486. case $ac_mode$ac_tag in
  21487. :[FHL]*:*);;
  21488. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  21489. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  21490. { (exit 1); exit 1; }; };;
  21491. :[FH]-) ac_tag=-:-;;
  21492. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21493. esac
  21494. ac_save_IFS=$IFS
  21495. IFS=:
  21496. set x $ac_tag
  21497. IFS=$ac_save_IFS
  21498. shift
  21499. ac_file=$1
  21500. shift
  21501. case $ac_mode in
  21502. :L) ac_source=$1;;
  21503. :[FH])
  21504. ac_file_inputs=
  21505. for ac_f
  21506. do
  21507. case $ac_f in
  21508. -) ac_f="$tmp/stdin";;
  21509. *) # Look for the file first in the build tree, then in the source tree
  21510. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21511. # because $ac_f cannot contain `:'.
  21512. test -f "$ac_f" ||
  21513. case $ac_f in
  21514. [\\/$]*) false;;
  21515. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21516. esac ||
  21517. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  21518. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  21519. { (exit 1); exit 1; }; };;
  21520. esac
  21521. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21522. ac_file_inputs="$ac_file_inputs '$ac_f'"
  21523. done
  21524. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21525. # use $as_me), people would be surprised to read:
  21526. # /* config.h. Generated by config.status. */
  21527. configure_input='Generated from '`
  21528. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21529. `' by configure.'
  21530. if test x"$ac_file" != x-; then
  21531. configure_input="$ac_file. $configure_input"
  21532. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  21533. $as_echo "$as_me: creating $ac_file" >&6;}
  21534. fi
  21535. # Neutralize special characters interpreted by sed in replacement strings.
  21536. case $configure_input in #(
  21537. *\&* | *\|* | *\\* )
  21538. ac_sed_conf_input=`$as_echo "$configure_input" |
  21539. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  21540. *) ac_sed_conf_input=$configure_input;;
  21541. esac
  21542. case $ac_tag in
  21543. *:-:* | *:-) cat >"$tmp/stdin" \
  21544. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21545. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21546. { (exit 1); exit 1; }; } ;;
  21547. esac
  21548. ;;
  21549. esac
  21550. ac_dir=`$as_dirname -- "$ac_file" ||
  21551. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21552. X"$ac_file" : 'X\(//\)[^/]' \| \
  21553. X"$ac_file" : 'X\(//\)$' \| \
  21554. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  21555. $as_echo X"$ac_file" |
  21556. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21557. s//\1/
  21558. q
  21559. }
  21560. /^X\(\/\/\)[^/].*/{
  21561. s//\1/
  21562. q
  21563. }
  21564. /^X\(\/\/\)$/{
  21565. s//\1/
  21566. q
  21567. }
  21568. /^X\(\/\).*/{
  21569. s//\1/
  21570. q
  21571. }
  21572. s/.*/./; q'`
  21573. { as_dir="$ac_dir"
  21574. case $as_dir in #(
  21575. -*) as_dir=./$as_dir;;
  21576. esac
  21577. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21578. as_dirs=
  21579. while :; do
  21580. case $as_dir in #(
  21581. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21582. *) as_qdir=$as_dir;;
  21583. esac
  21584. as_dirs="'$as_qdir' $as_dirs"
  21585. as_dir=`$as_dirname -- "$as_dir" ||
  21586. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21587. X"$as_dir" : 'X\(//\)[^/]' \| \
  21588. X"$as_dir" : 'X\(//\)$' \| \
  21589. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21590. $as_echo X"$as_dir" |
  21591. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21592. s//\1/
  21593. q
  21594. }
  21595. /^X\(\/\/\)[^/].*/{
  21596. s//\1/
  21597. q
  21598. }
  21599. /^X\(\/\/\)$/{
  21600. s//\1/
  21601. q
  21602. }
  21603. /^X\(\/\).*/{
  21604. s//\1/
  21605. q
  21606. }
  21607. s/.*/./; q'`
  21608. test -d "$as_dir" && break
  21609. done
  21610. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21611. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21612. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21613. { (exit 1); exit 1; }; }; }
  21614. ac_builddir=.
  21615. case "$ac_dir" in
  21616. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21617. *)
  21618. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  21619. # A ".." for each directory in $ac_dir_suffix.
  21620. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  21621. case $ac_top_builddir_sub in
  21622. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  21623. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  21624. esac ;;
  21625. esac
  21626. ac_abs_top_builddir=$ac_pwd
  21627. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  21628. # for backward compatibility:
  21629. ac_top_builddir=$ac_top_build_prefix
  21630. case $srcdir in
  21631. .) # We are building in place.
  21632. ac_srcdir=.
  21633. ac_top_srcdir=$ac_top_builddir_sub
  21634. ac_abs_top_srcdir=$ac_pwd ;;
  21635. [\\/]* | ?:[\\/]* ) # Absolute name.
  21636. ac_srcdir=$srcdir$ac_dir_suffix;
  21637. ac_top_srcdir=$srcdir
  21638. ac_abs_top_srcdir=$srcdir ;;
  21639. *) # Relative name.
  21640. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  21641. ac_top_srcdir=$ac_top_build_prefix$srcdir
  21642. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  21643. esac
  21644. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  21645. case $ac_mode in
  21646. :F)
  21647. #
  21648. # CONFIG_FILE
  21649. #
  21650. case $INSTALL in
  21651. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  21652. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  21653. esac
  21654. ac_MKDIR_P=$MKDIR_P
  21655. case $MKDIR_P in
  21656. [\\/$]* | ?:[\\/]* ) ;;
  21657. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  21658. esac
  21659. _ACEOF
  21660. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21661. # If the template does not know about datarootdir, expand it.
  21662. # FIXME: This hack should be removed a few years after 2.60.
  21663. ac_datarootdir_hack=; ac_datarootdir_seen=
  21664. ac_sed_dataroot='
  21665. /datarootdir/ {
  21666. p
  21667. q
  21668. }
  21669. /@datadir@/p
  21670. /@docdir@/p
  21671. /@infodir@/p
  21672. /@localedir@/p
  21673. /@mandir@/p
  21674. '
  21675. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  21676. *datarootdir*) ac_datarootdir_seen=yes;;
  21677. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  21678. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  21679. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  21680. _ACEOF
  21681. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21682. ac_datarootdir_hack='
  21683. s&@datadir@&$datadir&g
  21684. s&@docdir@&$docdir&g
  21685. s&@infodir@&$infodir&g
  21686. s&@localedir@&$localedir&g
  21687. s&@mandir@&$mandir&g
  21688. s&\\\${datarootdir}&$datarootdir&g' ;;
  21689. esac
  21690. _ACEOF
  21691. # Neutralize VPATH when `$srcdir' = `.'.
  21692. # Shell code in configure.ac might set extrasub.
  21693. # FIXME: do we really want to maintain this feature?
  21694. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21695. ac_sed_extra="$ac_vpsub
  21696. $extrasub
  21697. _ACEOF
  21698. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21699. :t
  21700. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  21701. s|@configure_input@|$ac_sed_conf_input|;t t
  21702. s&@top_builddir@&$ac_top_builddir_sub&;t t
  21703. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  21704. s&@srcdir@&$ac_srcdir&;t t
  21705. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  21706. s&@top_srcdir@&$ac_top_srcdir&;t t
  21707. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  21708. s&@builddir@&$ac_builddir&;t t
  21709. s&@abs_builddir@&$ac_abs_builddir&;t t
  21710. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  21711. s&@INSTALL@&$ac_INSTALL&;t t
  21712. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  21713. $ac_datarootdir_hack
  21714. "
  21715. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  21716. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21717. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21718. { (exit 1); exit 1; }; }
  21719. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  21720. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  21721. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  21722. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21723. which seems to be undefined. Please make sure it is defined." >&5
  21724. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  21725. which seems to be undefined. Please make sure it is defined." >&2;}
  21726. rm -f "$tmp/stdin"
  21727. case $ac_file in
  21728. -) cat "$tmp/out" && rm -f "$tmp/out";;
  21729. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  21730. esac \
  21731. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21732. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21733. { (exit 1); exit 1; }; }
  21734. ;;
  21735. :H)
  21736. #
  21737. # CONFIG_HEADER
  21738. #
  21739. if test x"$ac_file" != x-; then
  21740. {
  21741. $as_echo "/* $configure_input */" \
  21742. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  21743. } >"$tmp/config.h" \
  21744. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21745. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21746. { (exit 1); exit 1; }; }
  21747. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  21748. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  21749. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  21750. else
  21751. rm -f "$ac_file"
  21752. mv "$tmp/config.h" "$ac_file" \
  21753. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  21754. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  21755. { (exit 1); exit 1; }; }
  21756. fi
  21757. else
  21758. $as_echo "/* $configure_input */" \
  21759. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  21760. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  21761. $as_echo "$as_me: error: could not create -" >&2;}
  21762. { (exit 1); exit 1; }; }
  21763. fi
  21764. # Compute "$ac_file"'s index in $config_headers.
  21765. _am_arg="$ac_file"
  21766. _am_stamp_count=1
  21767. for _am_header in $config_headers :; do
  21768. case $_am_header in
  21769. $_am_arg | $_am_arg:* )
  21770. break ;;
  21771. * )
  21772. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  21773. esac
  21774. done
  21775. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  21776. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21777. X"$_am_arg" : 'X\(//\)[^/]' \| \
  21778. X"$_am_arg" : 'X\(//\)$' \| \
  21779. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  21780. $as_echo X"$_am_arg" |
  21781. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21782. s//\1/
  21783. q
  21784. }
  21785. /^X\(\/\/\)[^/].*/{
  21786. s//\1/
  21787. q
  21788. }
  21789. /^X\(\/\/\)$/{
  21790. s//\1/
  21791. q
  21792. }
  21793. /^X\(\/\).*/{
  21794. s//\1/
  21795. q
  21796. }
  21797. s/.*/./; q'`/stamp-h$_am_stamp_count
  21798. ;;
  21799. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  21800. $as_echo "$as_me: executing $ac_file commands" >&6;}
  21801. ;;
  21802. esac
  21803. case $ac_file$ac_mode in
  21804. "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
  21805. # are listed without --file. Let's play safe and only enable the eval
  21806. # if we detect the quoting.
  21807. case $CONFIG_FILES in
  21808. *\'*) eval set x "$CONFIG_FILES" ;;
  21809. *) set x $CONFIG_FILES ;;
  21810. esac
  21811. shift
  21812. for mf
  21813. do
  21814. # Strip MF so we end up with the name of the file.
  21815. mf=`echo "$mf" | sed -e 's/:.*$//'`
  21816. # Check whether this is an Automake generated Makefile or not.
  21817. # We used to match only the files named `Makefile.in', but
  21818. # some people rename them; so instead we look at the file content.
  21819. # Grep'ing the first line is not enough: some people post-process
  21820. # each Makefile.in and add a new line on top of each file to say so.
  21821. # Grep'ing the whole file is not good either: AIX grep has a line
  21822. # limit of 2048, but all sed's we know have understand at least 4000.
  21823. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  21824. dirpart=`$as_dirname -- "$mf" ||
  21825. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21826. X"$mf" : 'X\(//\)[^/]' \| \
  21827. X"$mf" : 'X\(//\)$' \| \
  21828. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  21829. $as_echo X"$mf" |
  21830. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21831. s//\1/
  21832. q
  21833. }
  21834. /^X\(\/\/\)[^/].*/{
  21835. s//\1/
  21836. q
  21837. }
  21838. /^X\(\/\/\)$/{
  21839. s//\1/
  21840. q
  21841. }
  21842. /^X\(\/\).*/{
  21843. s//\1/
  21844. q
  21845. }
  21846. s/.*/./; q'`
  21847. else
  21848. continue
  21849. fi
  21850. # Extract the definition of DEPDIR, am__include, and am__quote
  21851. # from the Makefile without running `make'.
  21852. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  21853. test -z "$DEPDIR" && continue
  21854. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  21855. test -z "am__include" && continue
  21856. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  21857. # When using ansi2knr, U may be empty or an underscore; expand it
  21858. U=`sed -n 's/^U = //p' < "$mf"`
  21859. # Find all dependency output files, they are included files with
  21860. # $(DEPDIR) in their names. We invoke sed twice because it is the
  21861. # simplest approach to changing $(DEPDIR) to its actual value in the
  21862. # expansion.
  21863. for file in `sed -n "
  21864. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  21865. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  21866. # Make sure the directory exists.
  21867. test -f "$dirpart/$file" && continue
  21868. fdir=`$as_dirname -- "$file" ||
  21869. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21870. X"$file" : 'X\(//\)[^/]' \| \
  21871. X"$file" : 'X\(//\)$' \| \
  21872. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  21873. $as_echo X"$file" |
  21874. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21875. s//\1/
  21876. q
  21877. }
  21878. /^X\(\/\/\)[^/].*/{
  21879. s//\1/
  21880. q
  21881. }
  21882. /^X\(\/\/\)$/{
  21883. s//\1/
  21884. q
  21885. }
  21886. /^X\(\/\).*/{
  21887. s//\1/
  21888. q
  21889. }
  21890. s/.*/./; q'`
  21891. { as_dir=$dirpart/$fdir
  21892. case $as_dir in #(
  21893. -*) as_dir=./$as_dir;;
  21894. esac
  21895. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  21896. as_dirs=
  21897. while :; do
  21898. case $as_dir in #(
  21899. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  21900. *) as_qdir=$as_dir;;
  21901. esac
  21902. as_dirs="'$as_qdir' $as_dirs"
  21903. as_dir=`$as_dirname -- "$as_dir" ||
  21904. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  21905. X"$as_dir" : 'X\(//\)[^/]' \| \
  21906. X"$as_dir" : 'X\(//\)$' \| \
  21907. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  21908. $as_echo X"$as_dir" |
  21909. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  21910. s//\1/
  21911. q
  21912. }
  21913. /^X\(\/\/\)[^/].*/{
  21914. s//\1/
  21915. q
  21916. }
  21917. /^X\(\/\/\)$/{
  21918. s//\1/
  21919. q
  21920. }
  21921. /^X\(\/\).*/{
  21922. s//\1/
  21923. q
  21924. }
  21925. s/.*/./; q'`
  21926. test -d "$as_dir" && break
  21927. done
  21928. test -z "$as_dirs" || eval "mkdir $as_dirs"
  21929. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  21930. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  21931. { (exit 1); exit 1; }; }; }
  21932. # echo "creating $dirpart/$file"
  21933. echo '# dummy' > "$dirpart/$file"
  21934. done
  21935. done
  21936. ;;
  21937. "po-directories":C)
  21938. for ac_file in $CONFIG_FILES; do
  21939. # Support "outfile[:infile[:infile...]]"
  21940. case "$ac_file" in
  21941. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  21942. esac
  21943. # PO directories have a Makefile.in generated from Makefile.in.in.
  21944. case "$ac_file" in */Makefile.in)
  21945. # Adjust a relative srcdir.
  21946. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  21947. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  21948. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  21949. # In autoconf-2.13 it is called $ac_given_srcdir.
  21950. # In autoconf-2.50 it is called $srcdir.
  21951. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  21952. case "$ac_given_srcdir" in
  21953. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  21954. /*) top_srcdir="$ac_given_srcdir" ;;
  21955. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  21956. esac
  21957. # Treat a directory as a PO directory if and only if it has a
  21958. # POTFILES.in file. This allows packages to have multiple PO
  21959. # directories under different names or in different locations.
  21960. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  21961. rm -f "$ac_dir/POTFILES"
  21962. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  21963. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  21964. POMAKEFILEDEPS="POTFILES.in"
  21965. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  21966. # on $ac_dir but don't depend on user-specified configuration
  21967. # parameters.
  21968. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  21969. # The LINGUAS file contains the set of available languages.
  21970. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  21971. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  21972. fi
  21973. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  21974. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21975. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  21976. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  21977. else
  21978. # The set of available languages was given in configure.in.
  21979. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  21980. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  21981. fi
  21982. # Compute POFILES
  21983. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  21984. # Compute UPDATEPOFILES
  21985. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  21986. # Compute DUMMYPOFILES
  21987. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  21988. # Compute GMOFILES
  21989. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  21990. case "$ac_given_srcdir" in
  21991. .) srcdirpre= ;;
  21992. *) srcdirpre='$(srcdir)/' ;;
  21993. esac
  21994. POFILES=
  21995. UPDATEPOFILES=
  21996. DUMMYPOFILES=
  21997. GMOFILES=
  21998. for lang in $ALL_LINGUAS; do
  21999. POFILES="$POFILES $srcdirpre$lang.po"
  22000. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  22001. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  22002. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  22003. done
  22004. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  22005. # environment variable.
  22006. INST_LINGUAS=
  22007. if test -n "$ALL_LINGUAS"; then
  22008. for presentlang in $ALL_LINGUAS; do
  22009. useit=no
  22010. if test "%UNSET%" != "$LINGUAS"; then
  22011. desiredlanguages="$LINGUAS"
  22012. else
  22013. desiredlanguages="$ALL_LINGUAS"
  22014. fi
  22015. for desiredlang in $desiredlanguages; do
  22016. # Use the presentlang catalog if desiredlang is
  22017. # a. equal to presentlang, or
  22018. # b. a variant of presentlang (because in this case,
  22019. # presentlang can be used as a fallback for messages
  22020. # which are not translated in the desiredlang catalog).
  22021. case "$desiredlang" in
  22022. "$presentlang"*) useit=yes;;
  22023. esac
  22024. done
  22025. if test $useit = yes; then
  22026. INST_LINGUAS="$INST_LINGUAS $presentlang"
  22027. fi
  22028. done
  22029. fi
  22030. CATALOGS=
  22031. if test -n "$INST_LINGUAS"; then
  22032. for lang in $INST_LINGUAS; do
  22033. CATALOGS="$CATALOGS $lang.gmo"
  22034. done
  22035. fi
  22036. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  22037. 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"
  22038. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  22039. if test -f "$f"; then
  22040. case "$f" in
  22041. *.orig | *.bak | *~) ;;
  22042. *) cat "$f" >> "$ac_dir/Makefile" ;;
  22043. esac
  22044. fi
  22045. done
  22046. fi
  22047. ;;
  22048. esac
  22049. done ;;
  22050. esac
  22051. done # for ac_tag
  22052. { (exit 0); exit 0; }
  22053. _ACEOF
  22054. chmod +x $CONFIG_STATUS
  22055. ac_clean_files=$ac_clean_files_save
  22056. test $ac_write_fail = 0 ||
  22057. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  22058. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  22059. { (exit 1); exit 1; }; }
  22060. # configure is writing to config.log, and then calls config.status.
  22061. # config.status does its own redirection, appending to config.log.
  22062. # Unfortunately, on DOS this fails, as config.log is still kept open
  22063. # by configure, so config.status won't be able to write to it; its
  22064. # output is simply discarded. So we exec the FD to /dev/null,
  22065. # effectively closing config.log, so it can be properly (re)opened and
  22066. # appended to by config.status. When coming back to configure, we
  22067. # need to make the FD available again.
  22068. if test "$no_create" != yes; then
  22069. ac_cs_success=:
  22070. ac_config_status_args=
  22071. test "$silent" = yes &&
  22072. ac_config_status_args="$ac_config_status_args --quiet"
  22073. exec 5>/dev/null
  22074. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22075. exec 5>>config.log
  22076. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22077. # would make configure fail if this is the last instruction.
  22078. $ac_cs_success || { (exit 1); exit 1; }
  22079. fi
  22080. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22081. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22082. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22083. fi
  22084. echo " "
  22085. echo "Build: $build"
  22086. echo "Target: $target"
  22087. echo "Install prefix: $prefix"
  22088. echo "CFLAGS: $CFLAGS"
  22089. echo "CPPFLAGS: $CPPFLAGS"
  22090. echo "LDFLAGS: $LDFLAGS"
  22091. echo "LIBS: $LIBS"
  22092. echo "SQLite3: $have_sqlite3"
  22093. echo "GnuTLS: $have_libgnutls"
  22094. echo "OpenSSL: $have_openssl"
  22095. echo "CA Bundle: $ca_bundle"
  22096. echo "LibXML2: $have_libxml2"
  22097. echo "LibExpat: $have_libexpat"
  22098. echo "LibCares: $have_libcares"
  22099. echo "Libz: $have_libz"
  22100. echo "Epoll: $have_epoll"
  22101. echo "Bittorrent: $enable_bittorrent"
  22102. echo "Metalink: $enable_metalink"