configure 703 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for aria2 1.6.1.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 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.6.1'
  518. PACKAGE_STRING='aria2 1.6.1'
  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_DAEMON_FALSE
  561. HAVE_DAEMON_TRUE
  562. HAVE_TIMEGM_FALSE
  563. HAVE_TIMEGM_TRUE
  564. HAVE_STRPTIME_FALSE
  565. HAVE_STRPTIME_TRUE
  566. HAVE_LOCALTIME_R_FALSE
  567. HAVE_LOCALTIME_R_TRUE
  568. HAVE_INET_ATON_FALSE
  569. HAVE_INET_ATON_TRUE
  570. HAVE_GETTIMEOFDAY_FALSE
  571. HAVE_GETTIMEOFDAY_TRUE
  572. HAVE_GETADDRINFO_FALSE
  573. HAVE_GETADDRINFO_TRUE
  574. HAVE_GAI_STRERROR_FALSE
  575. HAVE_GAI_STRERROR_TRUE
  576. HAVE_BASENAME_FALSE
  577. HAVE_BASENAME_TRUE
  578. HAVE_ASCTIME_R_FALSE
  579. HAVE_ASCTIME_R_TRUE
  580. HAVE_POSIX_FALLOCATE_FALSE
  581. HAVE_POSIX_FALLOCATE_TRUE
  582. HAVE_EPOLL_FALSE
  583. HAVE_EPOLL_TRUE
  584. LIBOBJS
  585. POSUB
  586. LTLIBINTL
  587. LIBINTL
  588. INTLLIBS
  589. INTL_LIBTOOL_SUFFIX_PREFIX
  590. INTLOBJS
  591. GENCAT
  592. INSTOBJEXT
  593. DATADIRNAME
  594. CATOBJEXT
  595. USE_INCLUDED_LIBINTL
  596. BUILD_INCLUDED_LIBINTL
  597. LTLIBC
  598. WINDRES
  599. WOE32
  600. WOE32DLL
  601. HAVE_WPRINTF
  602. HAVE_SNPRINTF
  603. HAVE_ASPRINTF
  604. HAVE_POSIX_PRINTF
  605. INTL_MACOSX_LIBS
  606. GLIBC21
  607. INTLBISON
  608. LTLIBICONV
  609. LIBICONV
  610. LTLIBMULTITHREAD
  611. LIBMULTITHREAD
  612. LTLIBTHREAD
  613. LIBTHREAD
  614. LIBPTH_PREFIX
  615. LTLIBPTH
  616. LIBPTH
  617. PRI_MACROS_BROKEN
  618. HAVE_VISIBILITY
  619. CFLAG_VISIBILITY
  620. GLIBC2
  621. XGETTEXT_EXTRA_OPTIONS
  622. MSGMERGE
  623. XGETTEXT_015
  624. XGETTEXT
  625. GMSGFMT_015
  626. MSGFMT_015
  627. GMSGFMT
  628. MSGFMT
  629. GETTEXT_MACRO_VERSION
  630. USE_NLS
  631. ALLOCA
  632. HAVE_SQLITE3_FALSE
  633. HAVE_SQLITE3_TRUE
  634. HAVE_LIBZ_FALSE
  635. HAVE_LIBZ_TRUE
  636. ENABLE_ASYNC_DNS_FALSE
  637. ENABLE_ASYNC_DNS_TRUE
  638. HAVE_LIBEXPAT_FALSE
  639. HAVE_LIBEXPAT_TRUE
  640. HAVE_LIBXML2_FALSE
  641. HAVE_LIBXML2_TRUE
  642. ENABLE_XML_RPC_FALSE
  643. ENABLE_XML_RPC_TRUE
  644. ENABLE_METALINK_LIBEXPAT_FALSE
  645. ENABLE_METALINK_LIBEXPAT_TRUE
  646. ENABLE_METALINK_LIBXML2_FALSE
  647. ENABLE_METALINK_LIBXML2_TRUE
  648. ENABLE_METALINK_FALSE
  649. ENABLE_METALINK_TRUE
  650. ENABLE_BITTORRENT_FALSE
  651. ENABLE_BITTORRENT_TRUE
  652. ENABLE_MESSAGE_DIGEST_FALSE
  653. ENABLE_MESSAGE_DIGEST_TRUE
  654. HAVE_LIBSSL_FALSE
  655. HAVE_LIBSSL_TRUE
  656. HAVE_LIBGNUTLS_FALSE
  657. HAVE_LIBGNUTLS_TRUE
  658. ca_bundle
  659. ENABLE_SSL_FALSE
  660. ENABLE_SSL_TRUE
  661. LIBZ_CPPFLAGS
  662. LIBZ_LIBS
  663. LIBCARES_CPPFLAGS
  664. LIBCARES_LIBS
  665. OPENSSL_CFLAGS
  666. OPENSSL_LIBS
  667. LIBGCRYPT_LIBS
  668. LIBGCRYPT_CFLAGS
  669. LIBGCRYPT_CONFIG
  670. LIBGNUTLS_CONFIG
  671. LIBGNUTLS_LIBS
  672. LIBGNUTLS_CFLAGS
  673. SQLITE3_LIBS
  674. SQLITE3_CFLAGS
  675. PKG_CONFIG
  676. LIBEXPAT_CPPFLAGS
  677. LIBEXPAT_LIBS
  678. XML_LIBS
  679. XML_CPPFLAGS
  680. XML2_CONFIG
  681. EGREP
  682. GREP
  683. CXXCPP
  684. YFLAGS
  685. YACC
  686. RANLIB
  687. am__fastdepCC_FALSE
  688. am__fastdepCC_TRUE
  689. CCDEPMODE
  690. ac_ct_CC
  691. CFLAGS
  692. CC
  693. am__fastdepCXX_FALSE
  694. am__fastdepCXX_TRUE
  695. CXXDEPMODE
  696. AMDEPBACKSLASH
  697. AMDEP_FALSE
  698. AMDEP_TRUE
  699. am__quote
  700. am__include
  701. DEPDIR
  702. OBJEXT
  703. EXEEXT
  704. ac_ct_CXX
  705. CPPFLAGS
  706. LDFLAGS
  707. CXXFLAGS
  708. CXX
  709. WINSOCK_LIBS
  710. CPPUNIT_LIBS
  711. CPPUNIT_CFLAGS
  712. CPPUNIT_CONFIG
  713. am__untar
  714. am__tar
  715. AMTAR
  716. am__leading_dot
  717. SET_MAKE
  718. AWK
  719. mkdir_p
  720. MKDIR_P
  721. INSTALL_STRIP_PROGRAM
  722. STRIP
  723. install_sh
  724. MAKEINFO
  725. AUTOHEADER
  726. AUTOMAKE
  727. AUTOCONF
  728. ACLOCAL
  729. VERSION
  730. PACKAGE
  731. CYGPATH_W
  732. am__isrc
  733. INSTALL_DATA
  734. INSTALL_SCRIPT
  735. INSTALL_PROGRAM
  736. target_os
  737. target_vendor
  738. target_cpu
  739. target
  740. host_os
  741. host_vendor
  742. host_cpu
  743. host
  744. build_os
  745. build_vendor
  746. build_cpu
  747. build
  748. target_alias
  749. host_alias
  750. build_alias
  751. LIBS
  752. ECHO_T
  753. ECHO_N
  754. ECHO_C
  755. DEFS
  756. mandir
  757. localedir
  758. libdir
  759. psdir
  760. pdfdir
  761. dvidir
  762. htmldir
  763. infodir
  764. docdir
  765. oldincludedir
  766. includedir
  767. localstatedir
  768. sharedstatedir
  769. sysconfdir
  770. datadir
  771. datarootdir
  772. libexecdir
  773. sbindir
  774. bindir
  775. program_transform_name
  776. prefix
  777. exec_prefix
  778. PACKAGE_BUGREPORT
  779. PACKAGE_STRING
  780. PACKAGE_VERSION
  781. PACKAGE_TARNAME
  782. PACKAGE_NAME
  783. PATH_SEPARATOR
  784. SHELL'
  785. ac_subst_files=''
  786. ac_user_opts='
  787. enable_option_checking
  788. with_cppunit_prefix
  789. with_cppunit_exec_prefix
  790. with_gnutls
  791. with_openssl
  792. with_sqlite3
  793. with_libxml2
  794. with_libexpat
  795. with_libcares
  796. with_libz
  797. enable_bittorrent
  798. enable_metalink
  799. enable_epoll
  800. with_ca_bundle
  801. enable_dependency_tracking
  802. with_xml_prefix
  803. with_xml_exec_prefix
  804. enable_xmltest
  805. with_libexpat_prefix
  806. with_sqlite3_prefix
  807. with_libgnutls_prefix
  808. with_libgcrypt_prefix
  809. with_openssl_prefix
  810. with_libcares_prefix
  811. with_libz_prefix
  812. enable_largefile
  813. enable_nls
  814. enable_threads
  815. with_gnu_ld
  816. enable_rpath
  817. with_libpth_prefix
  818. with_libiconv_prefix
  819. with_included_gettext
  820. with_libintl_prefix
  821. '
  822. ac_precious_vars='build_alias
  823. host_alias
  824. target_alias
  825. CXX
  826. CXXFLAGS
  827. LDFLAGS
  828. LIBS
  829. CPPFLAGS
  830. CCC
  831. CC
  832. CFLAGS
  833. YACC
  834. YFLAGS
  835. CXXCPP
  836. PKG_CONFIG
  837. SQLITE3_CFLAGS
  838. SQLITE3_LIBS
  839. LIBGNUTLS_CFLAGS
  840. LIBGNUTLS_LIBS'
  841. # Initialize some variables set by options.
  842. ac_init_help=
  843. ac_init_version=false
  844. ac_unrecognized_opts=
  845. ac_unrecognized_sep=
  846. # The variables have the same names as the options, with
  847. # dashes changed to underlines.
  848. cache_file=/dev/null
  849. exec_prefix=NONE
  850. no_create=
  851. no_recursion=
  852. prefix=NONE
  853. program_prefix=NONE
  854. program_suffix=NONE
  855. program_transform_name=s,x,x,
  856. silent=
  857. site=
  858. srcdir=
  859. verbose=
  860. x_includes=NONE
  861. x_libraries=NONE
  862. # Installation directory options.
  863. # These are left unexpanded so users can "make install exec_prefix=/foo"
  864. # and all the variables that are supposed to be based on exec_prefix
  865. # by default will actually change.
  866. # Use braces instead of parens because sh, perl, etc. also accept them.
  867. # (The list follows the same order as the GNU Coding Standards.)
  868. bindir='${exec_prefix}/bin'
  869. sbindir='${exec_prefix}/sbin'
  870. libexecdir='${exec_prefix}/libexec'
  871. datarootdir='${prefix}/share'
  872. datadir='${datarootdir}'
  873. sysconfdir='${prefix}/etc'
  874. sharedstatedir='${prefix}/com'
  875. localstatedir='${prefix}/var'
  876. includedir='${prefix}/include'
  877. oldincludedir='/usr/include'
  878. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  879. infodir='${datarootdir}/info'
  880. htmldir='${docdir}'
  881. dvidir='${docdir}'
  882. pdfdir='${docdir}'
  883. psdir='${docdir}'
  884. libdir='${exec_prefix}/lib'
  885. localedir='${datarootdir}/locale'
  886. mandir='${datarootdir}/man'
  887. ac_prev=
  888. ac_dashdash=
  889. for ac_option
  890. do
  891. # If the previous option needs an argument, assign it.
  892. if test -n "$ac_prev"; then
  893. eval $ac_prev=\$ac_option
  894. ac_prev=
  895. continue
  896. fi
  897. case $ac_option in
  898. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  899. *) ac_optarg=yes ;;
  900. esac
  901. # Accept the important Cygnus configure options, so we can diagnose typos.
  902. case $ac_dashdash$ac_option in
  903. --)
  904. ac_dashdash=yes ;;
  905. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  906. ac_prev=bindir ;;
  907. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  908. bindir=$ac_optarg ;;
  909. -build | --build | --buil | --bui | --bu)
  910. ac_prev=build_alias ;;
  911. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  912. build_alias=$ac_optarg ;;
  913. -cache-file | --cache-file | --cache-fil | --cache-fi \
  914. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  915. ac_prev=cache_file ;;
  916. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  917. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  918. cache_file=$ac_optarg ;;
  919. --config-cache | -C)
  920. cache_file=config.cache ;;
  921. -datadir | --datadir | --datadi | --datad)
  922. ac_prev=datadir ;;
  923. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  924. datadir=$ac_optarg ;;
  925. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  926. | --dataroo | --dataro | --datar)
  927. ac_prev=datarootdir ;;
  928. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  929. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  930. datarootdir=$ac_optarg ;;
  931. -disable-* | --disable-*)
  932. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  933. # Reject names that are not valid shell variable names.
  934. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  935. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  936. { (exit 1); exit 1; }; }
  937. ac_useropt_orig=$ac_useropt
  938. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  939. case $ac_user_opts in
  940. *"
  941. "enable_$ac_useropt"
  942. "*) ;;
  943. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  944. ac_unrecognized_sep=', ';;
  945. esac
  946. eval enable_$ac_useropt=no ;;
  947. -docdir | --docdir | --docdi | --doc | --do)
  948. ac_prev=docdir ;;
  949. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  950. docdir=$ac_optarg ;;
  951. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  952. ac_prev=dvidir ;;
  953. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  954. dvidir=$ac_optarg ;;
  955. -enable-* | --enable-*)
  956. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  957. # Reject names that are not valid shell variable names.
  958. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  959. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  960. { (exit 1); exit 1; }; }
  961. ac_useropt_orig=$ac_useropt
  962. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  963. case $ac_user_opts in
  964. *"
  965. "enable_$ac_useropt"
  966. "*) ;;
  967. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  968. ac_unrecognized_sep=', ';;
  969. esac
  970. eval enable_$ac_useropt=\$ac_optarg ;;
  971. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  972. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  973. | --exec | --exe | --ex)
  974. ac_prev=exec_prefix ;;
  975. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  976. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  977. | --exec=* | --exe=* | --ex=*)
  978. exec_prefix=$ac_optarg ;;
  979. -gas | --gas | --ga | --g)
  980. # Obsolete; use --with-gas.
  981. with_gas=yes ;;
  982. -help | --help | --hel | --he | -h)
  983. ac_init_help=long ;;
  984. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  985. ac_init_help=recursive ;;
  986. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  987. ac_init_help=short ;;
  988. -host | --host | --hos | --ho)
  989. ac_prev=host_alias ;;
  990. -host=* | --host=* | --hos=* | --ho=*)
  991. host_alias=$ac_optarg ;;
  992. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  993. ac_prev=htmldir ;;
  994. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  995. | --ht=*)
  996. htmldir=$ac_optarg ;;
  997. -includedir | --includedir | --includedi | --included | --include \
  998. | --includ | --inclu | --incl | --inc)
  999. ac_prev=includedir ;;
  1000. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1001. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1002. includedir=$ac_optarg ;;
  1003. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1004. ac_prev=infodir ;;
  1005. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1006. infodir=$ac_optarg ;;
  1007. -libdir | --libdir | --libdi | --libd)
  1008. ac_prev=libdir ;;
  1009. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1010. libdir=$ac_optarg ;;
  1011. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1012. | --libexe | --libex | --libe)
  1013. ac_prev=libexecdir ;;
  1014. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1015. | --libexe=* | --libex=* | --libe=*)
  1016. libexecdir=$ac_optarg ;;
  1017. -localedir | --localedir | --localedi | --localed | --locale)
  1018. ac_prev=localedir ;;
  1019. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1020. localedir=$ac_optarg ;;
  1021. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1022. | --localstate | --localstat | --localsta | --localst | --locals)
  1023. ac_prev=localstatedir ;;
  1024. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1025. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1026. localstatedir=$ac_optarg ;;
  1027. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1028. ac_prev=mandir ;;
  1029. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1030. mandir=$ac_optarg ;;
  1031. -nfp | --nfp | --nf)
  1032. # Obsolete; use --without-fp.
  1033. with_fp=no ;;
  1034. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1035. | --no-cr | --no-c | -n)
  1036. no_create=yes ;;
  1037. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1038. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1039. no_recursion=yes ;;
  1040. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1041. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1042. | --oldin | --oldi | --old | --ol | --o)
  1043. ac_prev=oldincludedir ;;
  1044. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1045. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1046. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1047. oldincludedir=$ac_optarg ;;
  1048. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1049. ac_prev=prefix ;;
  1050. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1051. prefix=$ac_optarg ;;
  1052. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1053. | --program-pre | --program-pr | --program-p)
  1054. ac_prev=program_prefix ;;
  1055. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1056. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1057. program_prefix=$ac_optarg ;;
  1058. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1059. | --program-suf | --program-su | --program-s)
  1060. ac_prev=program_suffix ;;
  1061. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1062. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1063. program_suffix=$ac_optarg ;;
  1064. -program-transform-name | --program-transform-name \
  1065. | --program-transform-nam | --program-transform-na \
  1066. | --program-transform-n | --program-transform- \
  1067. | --program-transform | --program-transfor \
  1068. | --program-transfo | --program-transf \
  1069. | --program-trans | --program-tran \
  1070. | --progr-tra | --program-tr | --program-t)
  1071. ac_prev=program_transform_name ;;
  1072. -program-transform-name=* | --program-transform-name=* \
  1073. | --program-transform-nam=* | --program-transform-na=* \
  1074. | --program-transform-n=* | --program-transform-=* \
  1075. | --program-transform=* | --program-transfor=* \
  1076. | --program-transfo=* | --program-transf=* \
  1077. | --program-trans=* | --program-tran=* \
  1078. | --progr-tra=* | --program-tr=* | --program-t=*)
  1079. program_transform_name=$ac_optarg ;;
  1080. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1081. ac_prev=pdfdir ;;
  1082. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1083. pdfdir=$ac_optarg ;;
  1084. -psdir | --psdir | --psdi | --psd | --ps)
  1085. ac_prev=psdir ;;
  1086. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1087. psdir=$ac_optarg ;;
  1088. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1089. | -silent | --silent | --silen | --sile | --sil)
  1090. silent=yes ;;
  1091. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1092. ac_prev=sbindir ;;
  1093. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1094. | --sbi=* | --sb=*)
  1095. sbindir=$ac_optarg ;;
  1096. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1097. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1098. | --sharedst | --shareds | --shared | --share | --shar \
  1099. | --sha | --sh)
  1100. ac_prev=sharedstatedir ;;
  1101. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1102. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1103. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1104. | --sha=* | --sh=*)
  1105. sharedstatedir=$ac_optarg ;;
  1106. -site | --site | --sit)
  1107. ac_prev=site ;;
  1108. -site=* | --site=* | --sit=*)
  1109. site=$ac_optarg ;;
  1110. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1111. ac_prev=srcdir ;;
  1112. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1113. srcdir=$ac_optarg ;;
  1114. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1115. | --syscon | --sysco | --sysc | --sys | --sy)
  1116. ac_prev=sysconfdir ;;
  1117. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1118. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1119. sysconfdir=$ac_optarg ;;
  1120. -target | --target | --targe | --targ | --tar | --ta | --t)
  1121. ac_prev=target_alias ;;
  1122. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1123. target_alias=$ac_optarg ;;
  1124. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1125. verbose=yes ;;
  1126. -version | --version | --versio | --versi | --vers | -V)
  1127. ac_init_version=: ;;
  1128. -with-* | --with-*)
  1129. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1130. # Reject names that are not valid shell variable names.
  1131. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1132. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1133. { (exit 1); exit 1; }; }
  1134. ac_useropt_orig=$ac_useropt
  1135. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1136. case $ac_user_opts in
  1137. *"
  1138. "with_$ac_useropt"
  1139. "*) ;;
  1140. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1141. ac_unrecognized_sep=', ';;
  1142. esac
  1143. eval with_$ac_useropt=\$ac_optarg ;;
  1144. -without-* | --without-*)
  1145. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1146. # Reject names that are not valid shell variable names.
  1147. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1148. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1149. { (exit 1); exit 1; }; }
  1150. ac_useropt_orig=$ac_useropt
  1151. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1152. case $ac_user_opts in
  1153. *"
  1154. "with_$ac_useropt"
  1155. "*) ;;
  1156. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1157. ac_unrecognized_sep=', ';;
  1158. esac
  1159. eval with_$ac_useropt=no ;;
  1160. --x)
  1161. # Obsolete; use --with-x.
  1162. with_x=yes ;;
  1163. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1164. | --x-incl | --x-inc | --x-in | --x-i)
  1165. ac_prev=x_includes ;;
  1166. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1167. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1168. x_includes=$ac_optarg ;;
  1169. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1170. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1171. ac_prev=x_libraries ;;
  1172. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1173. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1174. x_libraries=$ac_optarg ;;
  1175. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1176. Try \`$0 --help' for more information." >&2
  1177. { (exit 1); exit 1; }; }
  1178. ;;
  1179. *=*)
  1180. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1181. # Reject names that are not valid shell variable names.
  1182. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1183. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1184. { (exit 1); exit 1; }; }
  1185. eval $ac_envvar=\$ac_optarg
  1186. export $ac_envvar ;;
  1187. *)
  1188. # FIXME: should be removed in autoconf 3.0.
  1189. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1190. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1191. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1192. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1193. ;;
  1194. esac
  1195. done
  1196. if test -n "$ac_prev"; then
  1197. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1198. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1199. { (exit 1); exit 1; }; }
  1200. fi
  1201. if test -n "$ac_unrecognized_opts"; then
  1202. case $enable_option_checking in
  1203. no) ;;
  1204. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1205. { (exit 1); exit 1; }; } ;;
  1206. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1207. esac
  1208. fi
  1209. # Check all directory arguments for consistency.
  1210. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1211. datadir sysconfdir sharedstatedir localstatedir includedir \
  1212. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1213. libdir localedir mandir
  1214. do
  1215. eval ac_val=\$$ac_var
  1216. # Remove trailing slashes.
  1217. case $ac_val in
  1218. */ )
  1219. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1220. eval $ac_var=\$ac_val;;
  1221. esac
  1222. # Be sure to have absolute directory names.
  1223. case $ac_val in
  1224. [\\/$]* | ?:[\\/]* ) continue;;
  1225. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1226. esac
  1227. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1228. { (exit 1); exit 1; }; }
  1229. done
  1230. # There might be people who depend on the old broken behavior: `$host'
  1231. # used to hold the argument of --host etc.
  1232. # FIXME: To remove some day.
  1233. build=$build_alias
  1234. host=$host_alias
  1235. target=$target_alias
  1236. # FIXME: To remove some day.
  1237. if test "x$host_alias" != x; then
  1238. if test "x$build_alias" = x; then
  1239. cross_compiling=maybe
  1240. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1241. If a cross compiler is detected then cross compile mode will be used." >&2
  1242. elif test "x$build_alias" != "x$host_alias"; then
  1243. cross_compiling=yes
  1244. fi
  1245. fi
  1246. ac_tool_prefix=
  1247. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1248. test "$silent" = yes && exec 6>/dev/null
  1249. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1250. ac_ls_di=`ls -di .` &&
  1251. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1252. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1253. { (exit 1); exit 1; }; }
  1254. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1255. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1256. { (exit 1); exit 1; }; }
  1257. # Find the source files, if location was not specified.
  1258. if test -z "$srcdir"; then
  1259. ac_srcdir_defaulted=yes
  1260. # Try the directory containing this script, then the parent directory.
  1261. ac_confdir=`$as_dirname -- "$as_myself" ||
  1262. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1263. X"$as_myself" : 'X\(//\)[^/]' \| \
  1264. X"$as_myself" : 'X\(//\)$' \| \
  1265. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1266. $as_echo X"$as_myself" |
  1267. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1268. s//\1/
  1269. q
  1270. }
  1271. /^X\(\/\/\)[^/].*/{
  1272. s//\1/
  1273. q
  1274. }
  1275. /^X\(\/\/\)$/{
  1276. s//\1/
  1277. q
  1278. }
  1279. /^X\(\/\).*/{
  1280. s//\1/
  1281. q
  1282. }
  1283. s/.*/./; q'`
  1284. srcdir=$ac_confdir
  1285. if test ! -r "$srcdir/$ac_unique_file"; then
  1286. srcdir=..
  1287. fi
  1288. else
  1289. ac_srcdir_defaulted=no
  1290. fi
  1291. if test ! -r "$srcdir/$ac_unique_file"; then
  1292. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1293. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1294. { (exit 1); exit 1; }; }
  1295. fi
  1296. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1297. ac_abs_confdir=`(
  1298. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1299. { (exit 1); exit 1; }; }
  1300. pwd)`
  1301. # When building in place, set srcdir=.
  1302. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1303. srcdir=.
  1304. fi
  1305. # Remove unnecessary trailing slashes from srcdir.
  1306. # Double slashes in file names in object file debugging info
  1307. # mess up M-x gdb in Emacs.
  1308. case $srcdir in
  1309. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1310. esac
  1311. for ac_var in $ac_precious_vars; do
  1312. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1313. eval ac_env_${ac_var}_value=\$${ac_var}
  1314. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1315. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1316. done
  1317. #
  1318. # Report the --help message.
  1319. #
  1320. if test "$ac_init_help" = "long"; then
  1321. # Omit some internal or obsolete options to make the list less imposing.
  1322. # This message is too long to be a string in the A/UX 3.1 sh.
  1323. cat <<_ACEOF
  1324. \`configure' configures aria2 1.6.1 to adapt to many kinds of systems.
  1325. Usage: $0 [OPTION]... [VAR=VALUE]...
  1326. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1327. VAR=VALUE. See below for descriptions of some of the useful variables.
  1328. Defaults for the options are specified in brackets.
  1329. Configuration:
  1330. -h, --help display this help and exit
  1331. --help=short display options specific to this package
  1332. --help=recursive display the short help of all the included packages
  1333. -V, --version display version information and exit
  1334. -q, --quiet, --silent do not print \`checking...' messages
  1335. --cache-file=FILE cache test results in FILE [disabled]
  1336. -C, --config-cache alias for \`--cache-file=config.cache'
  1337. -n, --no-create do not create output files
  1338. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1339. Installation directories:
  1340. --prefix=PREFIX install architecture-independent files in PREFIX
  1341. [$ac_default_prefix]
  1342. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1343. [PREFIX]
  1344. By default, \`make install' will install all the files in
  1345. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1346. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1347. for instance \`--prefix=\$HOME'.
  1348. For better control, use the options below.
  1349. Fine tuning of the installation directories:
  1350. --bindir=DIR user executables [EPREFIX/bin]
  1351. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1352. --libexecdir=DIR program executables [EPREFIX/libexec]
  1353. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1354. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1355. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1356. --libdir=DIR object code libraries [EPREFIX/lib]
  1357. --includedir=DIR C header files [PREFIX/include]
  1358. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1359. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1360. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1361. --infodir=DIR info documentation [DATAROOTDIR/info]
  1362. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1363. --mandir=DIR man documentation [DATAROOTDIR/man]
  1364. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2]
  1365. --htmldir=DIR html documentation [DOCDIR]
  1366. --dvidir=DIR dvi documentation [DOCDIR]
  1367. --pdfdir=DIR pdf documentation [DOCDIR]
  1368. --psdir=DIR ps documentation [DOCDIR]
  1369. _ACEOF
  1370. cat <<\_ACEOF
  1371. Program names:
  1372. --program-prefix=PREFIX prepend PREFIX to installed program names
  1373. --program-suffix=SUFFIX append SUFFIX to installed program names
  1374. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1375. System types:
  1376. --build=BUILD configure for building on BUILD [guessed]
  1377. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1378. --target=TARGET configure for building compilers for TARGET [HOST]
  1379. _ACEOF
  1380. fi
  1381. if test -n "$ac_init_help"; then
  1382. case $ac_init_help in
  1383. short | recursive ) echo "Configuration of aria2 1.6.1:";;
  1384. esac
  1385. cat <<\_ACEOF
  1386. Optional Features:
  1387. --disable-option-checking ignore unrecognized --enable/--with options
  1388. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1389. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1390. --enable-bittorrent enable bittorrent support.
  1391. --enable-metalink enable metalink support.
  1392. --enable-epoll enable epoll support.
  1393. --disable-dependency-tracking speeds up one-time build
  1394. --enable-dependency-tracking do not reject slow dependency extractors
  1395. --disable-xmltest Do not try to compile and run a test LIBXML program
  1396. --disable-largefile omit support for large files
  1397. --disable-nls do not use Native Language Support
  1398. --enable-threads={posix|solaris|pth|win32}
  1399. specify multithreading API
  1400. --disable-threads build without multithread safety
  1401. --disable-rpath do not hardcode runtime library paths
  1402. Optional Packages:
  1403. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1404. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1405. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1406. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1407. --with-gnutls use gnutls if it is installed.
  1408. --with-openssl use openssl if it is installed.
  1409. --with-sqlite3 use sqlite3 if it is installed.
  1410. --with-libxml2 use libxml2 if it is installed.
  1411. --with-libexpat use libexpat if it is installed.
  1412. --with-libcares use libcares if it is installed.
  1413. --with-libz use libz if it is installed.
  1414. --with-ca-bundle=FILE Use FILE as default CA bundle.
  1415. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1416. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1417. --with-libexpat-prefix=PREFIX Prefix where libexpat installed (optional)
  1418. --with-sqlite3-prefix=PREFIX Prefix where SQLite3 installed (optional)
  1419. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1420. --with-libgcrypt-prefix=PFX
  1421. prefix where LIBGCRYPT is installed (optional)
  1422. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1423. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1424. --with-libz-prefix=PREFIX Prefix where libz installed (optional)
  1425. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1426. --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
  1427. --without-libpth-prefix don't search for libpth in includedir and libdir
  1428. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1429. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1430. --with-included-gettext use the GNU gettext library included here
  1431. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1432. --without-libintl-prefix don't search for libintl in includedir and libdir
  1433. Some influential environment variables:
  1434. CXX C++ compiler command
  1435. CXXFLAGS C++ compiler flags
  1436. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1437. nonstandard directory <lib dir>
  1438. LIBS libraries to pass to the linker, e.g. -l<library>
  1439. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1440. you have headers in a nonstandard directory <include dir>
  1441. CC C compiler command
  1442. CFLAGS C compiler flags
  1443. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1444. the first program found out of: `bison -y', `byacc', `yacc'.
  1445. YFLAGS The list of arguments that will be passed by default to $YACC.
  1446. This script will default YFLAGS to the empty string to avoid a
  1447. default value of `-d' given by some make applications.
  1448. CXXCPP C++ preprocessor
  1449. PKG_CONFIG path to pkg-config utility
  1450. SQLITE3_CFLAGS
  1451. C compiler flags for SQLITE3, overriding pkg-config
  1452. SQLITE3_LIBS
  1453. linker flags for SQLITE3, overriding pkg-config
  1454. LIBGNUTLS_CFLAGS
  1455. C compiler flags for LIBGNUTLS, overriding pkg-config
  1456. LIBGNUTLS_LIBS
  1457. linker flags for LIBGNUTLS, overriding pkg-config
  1458. Use these variables to override the choices made by `configure' or to help
  1459. it to find libraries and programs with nonstandard names/locations.
  1460. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1461. _ACEOF
  1462. ac_status=$?
  1463. fi
  1464. if test "$ac_init_help" = "recursive"; then
  1465. # If there are subdirs, report their specific --help.
  1466. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1467. test -d "$ac_dir" ||
  1468. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1469. continue
  1470. ac_builddir=.
  1471. case "$ac_dir" in
  1472. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1473. *)
  1474. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1475. # A ".." for each directory in $ac_dir_suffix.
  1476. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1477. case $ac_top_builddir_sub in
  1478. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1479. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1480. esac ;;
  1481. esac
  1482. ac_abs_top_builddir=$ac_pwd
  1483. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1484. # for backward compatibility:
  1485. ac_top_builddir=$ac_top_build_prefix
  1486. case $srcdir in
  1487. .) # We are building in place.
  1488. ac_srcdir=.
  1489. ac_top_srcdir=$ac_top_builddir_sub
  1490. ac_abs_top_srcdir=$ac_pwd ;;
  1491. [\\/]* | ?:[\\/]* ) # Absolute name.
  1492. ac_srcdir=$srcdir$ac_dir_suffix;
  1493. ac_top_srcdir=$srcdir
  1494. ac_abs_top_srcdir=$srcdir ;;
  1495. *) # Relative name.
  1496. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1497. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1498. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1499. esac
  1500. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1501. cd "$ac_dir" || { ac_status=$?; continue; }
  1502. # Check for guested configure.
  1503. if test -f "$ac_srcdir/configure.gnu"; then
  1504. echo &&
  1505. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1506. elif test -f "$ac_srcdir/configure"; then
  1507. echo &&
  1508. $SHELL "$ac_srcdir/configure" --help=recursive
  1509. else
  1510. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1511. fi || ac_status=$?
  1512. cd "$ac_pwd" || { ac_status=$?; break; }
  1513. done
  1514. fi
  1515. test -n "$ac_init_help" && exit $ac_status
  1516. if $ac_init_version; then
  1517. cat <<\_ACEOF
  1518. aria2 configure 1.6.1
  1519. generated by GNU Autoconf 2.63
  1520. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1521. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1522. This configure script is free software; the Free Software Foundation
  1523. gives unlimited permission to copy, distribute and modify it.
  1524. _ACEOF
  1525. exit
  1526. fi
  1527. cat >config.log <<_ACEOF
  1528. This file contains any messages produced by compilers while
  1529. running configure, to aid debugging if configure makes a mistake.
  1530. It was created by aria2 $as_me 1.6.1, which was
  1531. generated by GNU Autoconf 2.63. Invocation command line was
  1532. $ $0 $@
  1533. _ACEOF
  1534. exec 5>>config.log
  1535. {
  1536. cat <<_ASUNAME
  1537. ## --------- ##
  1538. ## Platform. ##
  1539. ## --------- ##
  1540. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1541. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1542. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1543. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1544. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1545. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1546. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1547. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1548. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1549. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1550. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1551. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1552. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1553. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1554. _ASUNAME
  1555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1556. for as_dir in $PATH
  1557. do
  1558. IFS=$as_save_IFS
  1559. test -z "$as_dir" && as_dir=.
  1560. $as_echo "PATH: $as_dir"
  1561. done
  1562. IFS=$as_save_IFS
  1563. } >&5
  1564. cat >&5 <<_ACEOF
  1565. ## ----------- ##
  1566. ## Core tests. ##
  1567. ## ----------- ##
  1568. _ACEOF
  1569. # Keep a trace of the command line.
  1570. # Strip out --no-create and --no-recursion so they do not pile up.
  1571. # Strip out --silent because we don't want to record it for future runs.
  1572. # Also quote any args containing shell meta-characters.
  1573. # Make two passes to allow for proper duplicate-argument suppression.
  1574. ac_configure_args=
  1575. ac_configure_args0=
  1576. ac_configure_args1=
  1577. ac_must_keep_next=false
  1578. for ac_pass in 1 2
  1579. do
  1580. for ac_arg
  1581. do
  1582. case $ac_arg in
  1583. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1584. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1585. | -silent | --silent | --silen | --sile | --sil)
  1586. continue ;;
  1587. *\'*)
  1588. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1589. esac
  1590. case $ac_pass in
  1591. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1592. 2)
  1593. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1594. if test $ac_must_keep_next = true; then
  1595. ac_must_keep_next=false # Got value, back to normal.
  1596. else
  1597. case $ac_arg in
  1598. *=* | --config-cache | -C | -disable-* | --disable-* \
  1599. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1600. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1601. | -with-* | --with-* | -without-* | --without-* | --x)
  1602. case "$ac_configure_args0 " in
  1603. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1604. esac
  1605. ;;
  1606. -* ) ac_must_keep_next=true ;;
  1607. esac
  1608. fi
  1609. ac_configure_args="$ac_configure_args '$ac_arg'"
  1610. ;;
  1611. esac
  1612. done
  1613. done
  1614. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1615. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1616. # When interrupted or exit'd, cleanup temporary files, and complete
  1617. # config.log. We remove comments because anyway the quotes in there
  1618. # would cause problems or look ugly.
  1619. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1620. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1621. trap 'exit_status=$?
  1622. # Save into config.log some information that might help in debugging.
  1623. {
  1624. echo
  1625. cat <<\_ASBOX
  1626. ## ---------------- ##
  1627. ## Cache variables. ##
  1628. ## ---------------- ##
  1629. _ASBOX
  1630. echo
  1631. # The following way of writing the cache mishandles newlines in values,
  1632. (
  1633. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1634. eval ac_val=\$$ac_var
  1635. case $ac_val in #(
  1636. *${as_nl}*)
  1637. case $ac_var in #(
  1638. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1639. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1640. esac
  1641. case $ac_var in #(
  1642. _ | IFS | as_nl) ;; #(
  1643. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1644. *) $as_unset $ac_var ;;
  1645. esac ;;
  1646. esac
  1647. done
  1648. (set) 2>&1 |
  1649. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1650. *${as_nl}ac_space=\ *)
  1651. sed -n \
  1652. "s/'\''/'\''\\\\'\'''\''/g;
  1653. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1654. ;; #(
  1655. *)
  1656. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1657. ;;
  1658. esac |
  1659. sort
  1660. )
  1661. echo
  1662. cat <<\_ASBOX
  1663. ## ----------------- ##
  1664. ## Output variables. ##
  1665. ## ----------------- ##
  1666. _ASBOX
  1667. echo
  1668. for ac_var in $ac_subst_vars
  1669. do
  1670. eval ac_val=\$$ac_var
  1671. case $ac_val in
  1672. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1673. esac
  1674. $as_echo "$ac_var='\''$ac_val'\''"
  1675. done | sort
  1676. echo
  1677. if test -n "$ac_subst_files"; then
  1678. cat <<\_ASBOX
  1679. ## ------------------- ##
  1680. ## File substitutions. ##
  1681. ## ------------------- ##
  1682. _ASBOX
  1683. echo
  1684. for ac_var in $ac_subst_files
  1685. do
  1686. eval ac_val=\$$ac_var
  1687. case $ac_val in
  1688. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1689. esac
  1690. $as_echo "$ac_var='\''$ac_val'\''"
  1691. done | sort
  1692. echo
  1693. fi
  1694. if test -s confdefs.h; then
  1695. cat <<\_ASBOX
  1696. ## ----------- ##
  1697. ## confdefs.h. ##
  1698. ## ----------- ##
  1699. _ASBOX
  1700. echo
  1701. cat confdefs.h
  1702. echo
  1703. fi
  1704. test "$ac_signal" != 0 &&
  1705. $as_echo "$as_me: caught signal $ac_signal"
  1706. $as_echo "$as_me: exit $exit_status"
  1707. } >&5
  1708. rm -f core *.core core.conftest.* &&
  1709. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1710. exit $exit_status
  1711. ' 0
  1712. for ac_signal in 1 2 13 15; do
  1713. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1714. done
  1715. ac_signal=0
  1716. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1717. rm -f -r conftest* confdefs.h
  1718. # Predefined preprocessor variables.
  1719. cat >>confdefs.h <<_ACEOF
  1720. #define PACKAGE_NAME "$PACKAGE_NAME"
  1721. _ACEOF
  1722. cat >>confdefs.h <<_ACEOF
  1723. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1724. _ACEOF
  1725. cat >>confdefs.h <<_ACEOF
  1726. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1727. _ACEOF
  1728. cat >>confdefs.h <<_ACEOF
  1729. #define PACKAGE_STRING "$PACKAGE_STRING"
  1730. _ACEOF
  1731. cat >>confdefs.h <<_ACEOF
  1732. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1733. _ACEOF
  1734. # Let the site file select an alternate cache file if it wants to.
  1735. # Prefer an explicitly selected file to automatically selected ones.
  1736. ac_site_file1=NONE
  1737. ac_site_file2=NONE
  1738. if test -n "$CONFIG_SITE"; then
  1739. ac_site_file1=$CONFIG_SITE
  1740. elif test "x$prefix" != xNONE; then
  1741. ac_site_file1=$prefix/share/config.site
  1742. ac_site_file2=$prefix/etc/config.site
  1743. else
  1744. ac_site_file1=$ac_default_prefix/share/config.site
  1745. ac_site_file2=$ac_default_prefix/etc/config.site
  1746. fi
  1747. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1748. do
  1749. test "x$ac_site_file" = xNONE && continue
  1750. if test -r "$ac_site_file"; then
  1751. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1752. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1753. sed 's/^/| /' "$ac_site_file" >&5
  1754. . "$ac_site_file"
  1755. fi
  1756. done
  1757. if test -r "$cache_file"; then
  1758. # Some versions of bash will fail to source /dev/null (special
  1759. # files actually), so we avoid doing that.
  1760. if test -f "$cache_file"; then
  1761. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1762. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1763. case $cache_file in
  1764. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1765. *) . "./$cache_file";;
  1766. esac
  1767. fi
  1768. else
  1769. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1770. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1771. >$cache_file
  1772. fi
  1773. gt_needs="$gt_needs "
  1774. ac_header_list="$ac_header_list sys/time.h"
  1775. ac_header_list="$ac_header_list unistd.h"
  1776. ac_func_list="$ac_func_list alarm"
  1777. # Check that the precious variables saved in the cache have kept the same
  1778. # value.
  1779. ac_cache_corrupted=false
  1780. for ac_var in $ac_precious_vars; do
  1781. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1782. eval ac_new_set=\$ac_env_${ac_var}_set
  1783. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1784. eval ac_new_val=\$ac_env_${ac_var}_value
  1785. case $ac_old_set,$ac_new_set in
  1786. set,)
  1787. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1788. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1789. ac_cache_corrupted=: ;;
  1790. ,set)
  1791. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1792. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1793. ac_cache_corrupted=: ;;
  1794. ,);;
  1795. *)
  1796. if test "x$ac_old_val" != "x$ac_new_val"; then
  1797. # differences in whitespace do not lead to failure.
  1798. ac_old_val_w=`echo x $ac_old_val`
  1799. ac_new_val_w=`echo x $ac_new_val`
  1800. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1801. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1802. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1803. ac_cache_corrupted=:
  1804. else
  1805. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1806. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1807. eval $ac_var=\$ac_old_val
  1808. fi
  1809. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  1810. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1811. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  1812. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1813. fi;;
  1814. esac
  1815. # Pass precious variables to config.status.
  1816. if test "$ac_new_set" = set; then
  1817. case $ac_new_val in
  1818. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1819. *) ac_arg=$ac_var=$ac_new_val ;;
  1820. esac
  1821. case " $ac_configure_args " in
  1822. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1823. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1824. esac
  1825. fi
  1826. done
  1827. if $ac_cache_corrupted; then
  1828. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1829. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1830. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1831. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1832. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1833. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1834. { (exit 1); exit 1; }; }
  1835. fi
  1836. ac_ext=c
  1837. ac_cpp='$CPP $CPPFLAGS'
  1838. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1839. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1840. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1841. ac_aux_dir=
  1842. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1843. if test -f "$ac_dir/install-sh"; then
  1844. ac_aux_dir=$ac_dir
  1845. ac_install_sh="$ac_aux_dir/install-sh -c"
  1846. break
  1847. elif test -f "$ac_dir/install.sh"; then
  1848. ac_aux_dir=$ac_dir
  1849. ac_install_sh="$ac_aux_dir/install.sh -c"
  1850. break
  1851. elif test -f "$ac_dir/shtool"; then
  1852. ac_aux_dir=$ac_dir
  1853. ac_install_sh="$ac_aux_dir/shtool install -c"
  1854. break
  1855. fi
  1856. done
  1857. if test -z "$ac_aux_dir"; then
  1858. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1859. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1860. { (exit 1); exit 1; }; }
  1861. fi
  1862. # These three variables are undocumented and unsupported,
  1863. # and are intended to be withdrawn in a future Autoconf release.
  1864. # They can cause serious problems if a builder's source tree is in a directory
  1865. # whose full name contains unusual characters.
  1866. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1867. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1868. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1869. # Make sure we can run config.sub.
  1870. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1871. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1872. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1873. { (exit 1); exit 1; }; }
  1874. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  1875. $as_echo_n "checking build system type... " >&6; }
  1876. if test "${ac_cv_build+set}" = set; then
  1877. $as_echo_n "(cached) " >&6
  1878. else
  1879. ac_build_alias=$build_alias
  1880. test "x$ac_build_alias" = x &&
  1881. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1882. test "x$ac_build_alias" = x &&
  1883. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1884. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1885. { (exit 1); exit 1; }; }
  1886. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1887. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1888. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1889. { (exit 1); exit 1; }; }
  1890. fi
  1891. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1892. $as_echo "$ac_cv_build" >&6; }
  1893. case $ac_cv_build in
  1894. *-*-*) ;;
  1895. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1896. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  1897. { (exit 1); exit 1; }; };;
  1898. esac
  1899. build=$ac_cv_build
  1900. ac_save_IFS=$IFS; IFS='-'
  1901. set x $ac_cv_build
  1902. shift
  1903. build_cpu=$1
  1904. build_vendor=$2
  1905. shift; shift
  1906. # Remember, the first character of IFS is used to create $*,
  1907. # except with old shells:
  1908. build_os=$*
  1909. IFS=$ac_save_IFS
  1910. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1911. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  1912. $as_echo_n "checking host system type... " >&6; }
  1913. if test "${ac_cv_host+set}" = set; then
  1914. $as_echo_n "(cached) " >&6
  1915. else
  1916. if test "x$host_alias" = x; then
  1917. ac_cv_host=$ac_cv_build
  1918. else
  1919. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1920. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1921. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1922. { (exit 1); exit 1; }; }
  1923. fi
  1924. fi
  1925. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1926. $as_echo "$ac_cv_host" >&6; }
  1927. case $ac_cv_host in
  1928. *-*-*) ;;
  1929. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1930. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  1931. { (exit 1); exit 1; }; };;
  1932. esac
  1933. host=$ac_cv_host
  1934. ac_save_IFS=$IFS; IFS='-'
  1935. set x $ac_cv_host
  1936. shift
  1937. host_cpu=$1
  1938. host_vendor=$2
  1939. shift; shift
  1940. # Remember, the first character of IFS is used to create $*,
  1941. # except with old shells:
  1942. host_os=$*
  1943. IFS=$ac_save_IFS
  1944. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1945. { $as_echo "$as_me:$LINENO: checking target system type" >&5
  1946. $as_echo_n "checking target system type... " >&6; }
  1947. if test "${ac_cv_target+set}" = set; then
  1948. $as_echo_n "(cached) " >&6
  1949. else
  1950. if test "x$target_alias" = x; then
  1951. ac_cv_target=$ac_cv_host
  1952. else
  1953. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1954. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1955. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1956. { (exit 1); exit 1; }; }
  1957. fi
  1958. fi
  1959. { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1960. $as_echo "$ac_cv_target" >&6; }
  1961. case $ac_cv_target in
  1962. *-*-*) ;;
  1963. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1964. $as_echo "$as_me: error: invalid value of canonical target" >&2;}
  1965. { (exit 1); exit 1; }; };;
  1966. esac
  1967. target=$ac_cv_target
  1968. ac_save_IFS=$IFS; IFS='-'
  1969. set x $ac_cv_target
  1970. shift
  1971. target_cpu=$1
  1972. target_vendor=$2
  1973. shift; shift
  1974. # Remember, the first character of IFS is used to create $*,
  1975. # except with old shells:
  1976. target_os=$*
  1977. IFS=$ac_save_IFS
  1978. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1979. # The aliases save the names the user supplied, while $host etc.
  1980. # will get canonicalized.
  1981. test -n "$target_alias" &&
  1982. test "$program_prefix$program_suffix$program_transform_name" = \
  1983. NONENONEs,x,x, &&
  1984. program_prefix=${target_alias}-
  1985. am__api_version='1.10'
  1986. # Find a good install program. We prefer a C program (faster),
  1987. # so one script is as good as another. But avoid the broken or
  1988. # incompatible versions:
  1989. # SysV /etc/install, /usr/sbin/install
  1990. # SunOS /usr/etc/install
  1991. # IRIX /sbin/install
  1992. # AIX /bin/install
  1993. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1994. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1995. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1996. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1997. # OS/2's system install, which has a completely different semantic
  1998. # ./install, which can be erroneously created by make from ./install.sh.
  1999. # Reject install programs that cannot install multiple files.
  2000. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2001. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2002. if test -z "$INSTALL"; then
  2003. if test "${ac_cv_path_install+set}" = set; then
  2004. $as_echo_n "(cached) " >&6
  2005. else
  2006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2007. for as_dir in $PATH
  2008. do
  2009. IFS=$as_save_IFS
  2010. test -z "$as_dir" && as_dir=.
  2011. # Account for people who put trailing slashes in PATH elements.
  2012. case $as_dir/ in
  2013. ./ | .// | /cC/* | \
  2014. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2015. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2016. /usr/ucb/* ) ;;
  2017. *)
  2018. # OSF1 and SCO ODT 3.0 have their own names for install.
  2019. # Don't use installbsd from OSF since it installs stuff as root
  2020. # by default.
  2021. for ac_prog in ginstall scoinst install; do
  2022. for ac_exec_ext in '' $ac_executable_extensions; do
  2023. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2024. if test $ac_prog = install &&
  2025. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2026. # AIX install. It has an incompatible calling convention.
  2027. :
  2028. elif test $ac_prog = install &&
  2029. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2030. # program-specific install script used by HP pwplus--don't use.
  2031. :
  2032. else
  2033. rm -rf conftest.one conftest.two conftest.dir
  2034. echo one > conftest.one
  2035. echo two > conftest.two
  2036. mkdir conftest.dir
  2037. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2038. test -s conftest.one && test -s conftest.two &&
  2039. test -s conftest.dir/conftest.one &&
  2040. test -s conftest.dir/conftest.two
  2041. then
  2042. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2043. break 3
  2044. fi
  2045. fi
  2046. fi
  2047. done
  2048. done
  2049. ;;
  2050. esac
  2051. done
  2052. IFS=$as_save_IFS
  2053. rm -rf conftest.one conftest.two conftest.dir
  2054. fi
  2055. if test "${ac_cv_path_install+set}" = set; then
  2056. INSTALL=$ac_cv_path_install
  2057. else
  2058. # As a last resort, use the slow shell script. Don't cache a
  2059. # value for INSTALL within a source directory, because that will
  2060. # break other packages using the cache if that directory is
  2061. # removed, or if the value is a relative name.
  2062. INSTALL=$ac_install_sh
  2063. fi
  2064. fi
  2065. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2066. $as_echo "$INSTALL" >&6; }
  2067. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2068. # It thinks the first close brace ends the variable substitution.
  2069. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2070. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2071. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2072. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2073. $as_echo_n "checking whether build environment is sane... " >&6; }
  2074. # Just in case
  2075. sleep 1
  2076. echo timestamp > conftest.file
  2077. # Do `set' in a subshell so we don't clobber the current shell's
  2078. # arguments. Must try -L first in case configure is actually a
  2079. # symlink; some systems play weird games with the mod time of symlinks
  2080. # (eg FreeBSD returns the mod time of the symlink's containing
  2081. # directory).
  2082. if (
  2083. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  2084. if test "$*" = "X"; then
  2085. # -L didn't work.
  2086. set X `ls -t $srcdir/configure conftest.file`
  2087. fi
  2088. rm -f conftest.file
  2089. if test "$*" != "X $srcdir/configure conftest.file" \
  2090. && test "$*" != "X conftest.file $srcdir/configure"; then
  2091. # If neither matched, then we have a broken ls. This can happen
  2092. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2093. # broken ls alias from the environment. This has actually
  2094. # happened. Such a system could not be considered "sane".
  2095. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2096. alias in your environment" >&5
  2097. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2098. alias in your environment" >&2;}
  2099. { (exit 1); exit 1; }; }
  2100. fi
  2101. test "$2" = conftest.file
  2102. )
  2103. then
  2104. # Ok.
  2105. :
  2106. else
  2107. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2108. Check your system clock" >&5
  2109. $as_echo "$as_me: error: newly created file is older than distributed files!
  2110. Check your system clock" >&2;}
  2111. { (exit 1); exit 1; }; }
  2112. fi
  2113. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2114. $as_echo "yes" >&6; }
  2115. test "$program_prefix" != NONE &&
  2116. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2117. # Use a double $ so make ignores it.
  2118. test "$program_suffix" != NONE &&
  2119. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2120. # Double any \ or $.
  2121. # By default was `s,x,x', remove it if useless.
  2122. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2123. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2124. # expand $ac_aux_dir to an absolute path
  2125. am_aux_dir=`cd $ac_aux_dir && pwd`
  2126. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  2127. # Use eval to expand $SHELL
  2128. if eval "$MISSING --run true"; then
  2129. am_missing_run="$MISSING --run "
  2130. else
  2131. am_missing_run=
  2132. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2133. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2134. fi
  2135. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2136. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2137. if test -z "$MKDIR_P"; then
  2138. if test "${ac_cv_path_mkdir+set}" = set; then
  2139. $as_echo_n "(cached) " >&6
  2140. else
  2141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2142. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2143. do
  2144. IFS=$as_save_IFS
  2145. test -z "$as_dir" && as_dir=.
  2146. for ac_prog in mkdir gmkdir; do
  2147. for ac_exec_ext in '' $ac_executable_extensions; do
  2148. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2149. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2150. 'mkdir (GNU coreutils) '* | \
  2151. 'mkdir (coreutils) '* | \
  2152. 'mkdir (fileutils) '4.1*)
  2153. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2154. break 3;;
  2155. esac
  2156. done
  2157. done
  2158. done
  2159. IFS=$as_save_IFS
  2160. fi
  2161. if test "${ac_cv_path_mkdir+set}" = set; then
  2162. MKDIR_P="$ac_cv_path_mkdir -p"
  2163. else
  2164. # As a last resort, use the slow shell script. Don't cache a
  2165. # value for MKDIR_P within a source directory, because that will
  2166. # break other packages using the cache if that directory is
  2167. # removed, or if the value is a relative name.
  2168. test -d ./--version && rmdir ./--version
  2169. MKDIR_P="$ac_install_sh -d"
  2170. fi
  2171. fi
  2172. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2173. $as_echo "$MKDIR_P" >&6; }
  2174. mkdir_p="$MKDIR_P"
  2175. case $mkdir_p in
  2176. [\\/$]* | ?:[\\/]*) ;;
  2177. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2178. esac
  2179. for ac_prog in gawk mawk nawk awk
  2180. do
  2181. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2182. set dummy $ac_prog; ac_word=$2
  2183. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2184. $as_echo_n "checking for $ac_word... " >&6; }
  2185. if test "${ac_cv_prog_AWK+set}" = set; then
  2186. $as_echo_n "(cached) " >&6
  2187. else
  2188. if test -n "$AWK"; then
  2189. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2190. else
  2191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2192. for as_dir in $PATH
  2193. do
  2194. IFS=$as_save_IFS
  2195. test -z "$as_dir" && as_dir=.
  2196. for ac_exec_ext in '' $ac_executable_extensions; do
  2197. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2198. ac_cv_prog_AWK="$ac_prog"
  2199. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2200. break 2
  2201. fi
  2202. done
  2203. done
  2204. IFS=$as_save_IFS
  2205. fi
  2206. fi
  2207. AWK=$ac_cv_prog_AWK
  2208. if test -n "$AWK"; then
  2209. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2210. $as_echo "$AWK" >&6; }
  2211. else
  2212. { $as_echo "$as_me:$LINENO: result: no" >&5
  2213. $as_echo "no" >&6; }
  2214. fi
  2215. test -n "$AWK" && break
  2216. done
  2217. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2218. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2219. set x ${MAKE-make}
  2220. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2221. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2222. $as_echo_n "(cached) " >&6
  2223. else
  2224. cat >conftest.make <<\_ACEOF
  2225. SHELL = /bin/sh
  2226. all:
  2227. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2228. _ACEOF
  2229. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2230. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2231. *@@@%%%=?*=@@@%%%*)
  2232. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2233. *)
  2234. eval ac_cv_prog_make_${ac_make}_set=no;;
  2235. esac
  2236. rm -f conftest.make
  2237. fi
  2238. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2239. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2240. $as_echo "yes" >&6; }
  2241. SET_MAKE=
  2242. else
  2243. { $as_echo "$as_me:$LINENO: result: no" >&5
  2244. $as_echo "no" >&6; }
  2245. SET_MAKE="MAKE=${MAKE-make}"
  2246. fi
  2247. rm -rf .tst 2>/dev/null
  2248. mkdir .tst 2>/dev/null
  2249. if test -d .tst; then
  2250. am__leading_dot=.
  2251. else
  2252. am__leading_dot=_
  2253. fi
  2254. rmdir .tst 2>/dev/null
  2255. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2256. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2257. # is not polluted with repeated "-I."
  2258. am__isrc=' -I$(srcdir)'
  2259. # test to see if srcdir already configured
  2260. if test -f $srcdir/config.status; then
  2261. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2262. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2263. { (exit 1); exit 1; }; }
  2264. fi
  2265. fi
  2266. # test whether we have cygpath
  2267. if test -z "$CYGPATH_W"; then
  2268. if (cygpath --version) >/dev/null 2>/dev/null; then
  2269. CYGPATH_W='cygpath -w'
  2270. else
  2271. CYGPATH_W=echo
  2272. fi
  2273. fi
  2274. # Define the identity of the package.
  2275. PACKAGE='aria2'
  2276. VERSION='1.6.1'
  2277. cat >>confdefs.h <<_ACEOF
  2278. #define PACKAGE "$PACKAGE"
  2279. _ACEOF
  2280. cat >>confdefs.h <<_ACEOF
  2281. #define VERSION "$VERSION"
  2282. _ACEOF
  2283. # Some tools Automake needs.
  2284. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2285. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2286. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2287. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2288. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2289. install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
  2290. # Installed binaries are usually stripped using `strip' when the user
  2291. # run `make install-strip'. However `strip' might not be the right
  2292. # tool to use in cross-compilation environments, therefore Automake
  2293. # will honor the `STRIP' environment variable to overrule this program.
  2294. if test "$cross_compiling" != no; then
  2295. if test -n "$ac_tool_prefix"; then
  2296. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2297. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2298. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2299. $as_echo_n "checking for $ac_word... " >&6; }
  2300. if test "${ac_cv_prog_STRIP+set}" = set; then
  2301. $as_echo_n "(cached) " >&6
  2302. else
  2303. if test -n "$STRIP"; then
  2304. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2305. else
  2306. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2307. for as_dir in $PATH
  2308. do
  2309. IFS=$as_save_IFS
  2310. test -z "$as_dir" && as_dir=.
  2311. for ac_exec_ext in '' $ac_executable_extensions; do
  2312. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2313. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2314. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2315. break 2
  2316. fi
  2317. done
  2318. done
  2319. IFS=$as_save_IFS
  2320. fi
  2321. fi
  2322. STRIP=$ac_cv_prog_STRIP
  2323. if test -n "$STRIP"; then
  2324. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2325. $as_echo "$STRIP" >&6; }
  2326. else
  2327. { $as_echo "$as_me:$LINENO: result: no" >&5
  2328. $as_echo "no" >&6; }
  2329. fi
  2330. fi
  2331. if test -z "$ac_cv_prog_STRIP"; then
  2332. ac_ct_STRIP=$STRIP
  2333. # Extract the first word of "strip", so it can be a program name with args.
  2334. set dummy strip; ac_word=$2
  2335. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2336. $as_echo_n "checking for $ac_word... " >&6; }
  2337. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2338. $as_echo_n "(cached) " >&6
  2339. else
  2340. if test -n "$ac_ct_STRIP"; then
  2341. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2342. else
  2343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2344. for as_dir in $PATH
  2345. do
  2346. IFS=$as_save_IFS
  2347. test -z "$as_dir" && as_dir=.
  2348. for ac_exec_ext in '' $ac_executable_extensions; do
  2349. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2350. ac_cv_prog_ac_ct_STRIP="strip"
  2351. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2352. break 2
  2353. fi
  2354. done
  2355. done
  2356. IFS=$as_save_IFS
  2357. fi
  2358. fi
  2359. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2360. if test -n "$ac_ct_STRIP"; then
  2361. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2362. $as_echo "$ac_ct_STRIP" >&6; }
  2363. else
  2364. { $as_echo "$as_me:$LINENO: result: no" >&5
  2365. $as_echo "no" >&6; }
  2366. fi
  2367. if test "x$ac_ct_STRIP" = x; then
  2368. STRIP=":"
  2369. else
  2370. case $cross_compiling:$ac_tool_warned in
  2371. yes:)
  2372. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2373. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2374. ac_tool_warned=yes ;;
  2375. esac
  2376. STRIP=$ac_ct_STRIP
  2377. fi
  2378. else
  2379. STRIP="$ac_cv_prog_STRIP"
  2380. fi
  2381. fi
  2382. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2383. # We need awk for the "check" target. The system "awk" is bad on
  2384. # some platforms.
  2385. # Always define AMTAR for backward compatibility.
  2386. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2387. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2388. # Check whether --with-cppunit-prefix was given.
  2389. if test "${with_cppunit_prefix+set}" = set; then
  2390. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2391. else
  2392. cppunit_config_prefix=""
  2393. fi
  2394. # Check whether --with-cppunit-exec-prefix was given.
  2395. if test "${with_cppunit_exec_prefix+set}" = set; then
  2396. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2397. else
  2398. cppunit_config_exec_prefix=""
  2399. fi
  2400. if test x$cppunit_config_exec_prefix != x ; then
  2401. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2402. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2403. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2404. fi
  2405. fi
  2406. if test x$cppunit_config_prefix != x ; then
  2407. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2408. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2409. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2410. fi
  2411. fi
  2412. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2413. set dummy cppunit-config; ac_word=$2
  2414. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2415. $as_echo_n "checking for $ac_word... " >&6; }
  2416. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2417. $as_echo_n "(cached) " >&6
  2418. else
  2419. case $CPPUNIT_CONFIG in
  2420. [\\/]* | ?:[\\/]*)
  2421. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2422. ;;
  2423. *)
  2424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2425. for as_dir in $PATH
  2426. do
  2427. IFS=$as_save_IFS
  2428. test -z "$as_dir" && as_dir=.
  2429. for ac_exec_ext in '' $ac_executable_extensions; do
  2430. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2431. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2432. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2433. break 2
  2434. fi
  2435. done
  2436. done
  2437. IFS=$as_save_IFS
  2438. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2439. ;;
  2440. esac
  2441. fi
  2442. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2443. if test -n "$CPPUNIT_CONFIG"; then
  2444. { $as_echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2445. $as_echo "$CPPUNIT_CONFIG" >&6; }
  2446. else
  2447. { $as_echo "$as_me:$LINENO: result: no" >&5
  2448. $as_echo "no" >&6; }
  2449. fi
  2450. cppunit_version_min=1.10.2
  2451. { $as_echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2452. $as_echo_n "checking for Cppunit - version >= $cppunit_version_min... " >&6; }
  2453. no_cppunit=""
  2454. if test "$CPPUNIT_CONFIG" = "no" ; then
  2455. { $as_echo "$as_me:$LINENO: result: no" >&5
  2456. $as_echo "no" >&6; }
  2457. no_cppunit=yes
  2458. else
  2459. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2460. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2461. cppunit_version=`$CPPUNIT_CONFIG --version`
  2462. cppunit_major_version=`echo $cppunit_version | \
  2463. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2464. cppunit_minor_version=`echo $cppunit_version | \
  2465. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2466. cppunit_micro_version=`echo $cppunit_version | \
  2467. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2468. cppunit_major_min=`echo $cppunit_version_min | \
  2469. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2470. if test "x${cppunit_major_min}" = "x" ; then
  2471. cppunit_major_min=0
  2472. fi
  2473. cppunit_minor_min=`echo $cppunit_version_min | \
  2474. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2475. if test "x${cppunit_minor_min}" = "x" ; then
  2476. cppunit_minor_min=0
  2477. fi
  2478. cppunit_micro_min=`echo $cppunit_version_min | \
  2479. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2480. if test "x${cppunit_micro_min}" = "x" ; then
  2481. cppunit_micro_min=0
  2482. fi
  2483. cppunit_version_proper=`expr \
  2484. $cppunit_major_version \> $cppunit_major_min \| \
  2485. $cppunit_major_version \= $cppunit_major_min \& \
  2486. $cppunit_minor_version \> $cppunit_minor_min \| \
  2487. $cppunit_major_version \= $cppunit_major_min \& \
  2488. $cppunit_minor_version \= $cppunit_minor_min \& \
  2489. $cppunit_micro_version \>= $cppunit_micro_min `
  2490. if test "$cppunit_version_proper" = "1" ; then
  2491. { $as_echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2492. $as_echo "$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2493. else
  2494. { $as_echo "$as_me:$LINENO: result: no" >&5
  2495. $as_echo "no" >&6; }
  2496. no_cppunit=yes
  2497. fi
  2498. fi
  2499. if test "x$no_cppunit" = x ; then
  2500. :
  2501. else
  2502. CPPUNIT_CFLAGS=""
  2503. CPPUNIT_LIBS=""
  2504. :
  2505. fi
  2506. ac_config_headers="$ac_config_headers config.h"
  2507. case "$target" in
  2508. *mingw*|*cygwin*)
  2509. WINSOCK_LIBS="-lws2_32 -lpthread"
  2510. ;;
  2511. esac
  2512. cat >>confdefs.h <<_ACEOF
  2513. #define TARGET "$target"
  2514. _ACEOF
  2515. # Set localedir
  2516. localedir=${datadir}/locale
  2517. # Checks for arguments.
  2518. # Check whether --with-gnutls was given.
  2519. if test "${with_gnutls+set}" = set; then
  2520. withval=$with_gnutls; with_gnutls=$withval
  2521. else
  2522. with_gnutls=yes
  2523. fi
  2524. # Check whether --with-openssl was given.
  2525. if test "${with_openssl+set}" = set; then
  2526. withval=$with_openssl; with_openssl=$withval
  2527. else
  2528. with_openssl=yes
  2529. fi
  2530. # Check whether --with-sqlite3 was given.
  2531. if test "${with_sqlite3+set}" = set; then
  2532. withval=$with_sqlite3; with_sqlite3=$withval
  2533. else
  2534. with_sqlite3=yes
  2535. fi
  2536. # Check whether --with-libxml2 was given.
  2537. if test "${with_libxml2+set}" = set; then
  2538. withval=$with_libxml2; with_libxml2=$withval
  2539. else
  2540. with_libxml2=yes
  2541. fi
  2542. # Check whether --with-libexpat was given.
  2543. if test "${with_libexpat+set}" = set; then
  2544. withval=$with_libexpat; with_libexpat=$withval
  2545. else
  2546. with_libexpat=yes
  2547. fi
  2548. # Check whether --with-libcares was given.
  2549. if test "${with_libcares+set}" = set; then
  2550. withval=$with_libcares; with_libcares=$withval
  2551. else
  2552. with_libcares=yes
  2553. fi
  2554. # Check whether --with-libz was given.
  2555. if test "${with_libz+set}" = set; then
  2556. withval=$with_libz; with_libz=$withval
  2557. else
  2558. with_libz=yes
  2559. fi
  2560. # Check whether --enable-bittorrent was given.
  2561. if test "${enable_bittorrent+set}" = set; then
  2562. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2563. else
  2564. enable_bittorrent=yes
  2565. fi
  2566. # Check whether --enable-metalink was given.
  2567. if test "${enable_metalink+set}" = set; then
  2568. enableval=$enable_metalink; enable_metalink=$enableval
  2569. else
  2570. enable_metalink=yes
  2571. fi
  2572. # Check whether --enable-epoll was given.
  2573. if test "${enable_epoll+set}" = set; then
  2574. enableval=$enable_epoll; enable_epoll=$enableval
  2575. else
  2576. enable_epoll=yes
  2577. fi
  2578. # Check whether --with-ca-bundle was given.
  2579. if test "${with_ca_bundle+set}" = set; then
  2580. withval=$with_ca_bundle; ca_bundle=$withval
  2581. else
  2582. ca_bundle=""
  2583. fi
  2584. # Checks for programs.
  2585. ac_ext=cpp
  2586. ac_cpp='$CXXCPP $CPPFLAGS'
  2587. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2588. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2589. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2590. if test -z "$CXX"; then
  2591. if test -n "$CCC"; then
  2592. CXX=$CCC
  2593. else
  2594. if test -n "$ac_tool_prefix"; then
  2595. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2596. do
  2597. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2598. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2599. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2600. $as_echo_n "checking for $ac_word... " >&6; }
  2601. if test "${ac_cv_prog_CXX+set}" = set; then
  2602. $as_echo_n "(cached) " >&6
  2603. else
  2604. if test -n "$CXX"; then
  2605. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2606. else
  2607. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2608. for as_dir in $PATH
  2609. do
  2610. IFS=$as_save_IFS
  2611. test -z "$as_dir" && as_dir=.
  2612. for ac_exec_ext in '' $ac_executable_extensions; do
  2613. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2614. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2615. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2616. break 2
  2617. fi
  2618. done
  2619. done
  2620. IFS=$as_save_IFS
  2621. fi
  2622. fi
  2623. CXX=$ac_cv_prog_CXX
  2624. if test -n "$CXX"; then
  2625. { $as_echo "$as_me:$LINENO: result: $CXX" >&5
  2626. $as_echo "$CXX" >&6; }
  2627. else
  2628. { $as_echo "$as_me:$LINENO: result: no" >&5
  2629. $as_echo "no" >&6; }
  2630. fi
  2631. test -n "$CXX" && break
  2632. done
  2633. fi
  2634. if test -z "$CXX"; then
  2635. ac_ct_CXX=$CXX
  2636. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2637. do
  2638. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2639. set dummy $ac_prog; ac_word=$2
  2640. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2641. $as_echo_n "checking for $ac_word... " >&6; }
  2642. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2643. $as_echo_n "(cached) " >&6
  2644. else
  2645. if test -n "$ac_ct_CXX"; then
  2646. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2647. else
  2648. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2649. for as_dir in $PATH
  2650. do
  2651. IFS=$as_save_IFS
  2652. test -z "$as_dir" && as_dir=.
  2653. for ac_exec_ext in '' $ac_executable_extensions; do
  2654. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2655. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2656. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2657. break 2
  2658. fi
  2659. done
  2660. done
  2661. IFS=$as_save_IFS
  2662. fi
  2663. fi
  2664. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2665. if test -n "$ac_ct_CXX"; then
  2666. { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2667. $as_echo "$ac_ct_CXX" >&6; }
  2668. else
  2669. { $as_echo "$as_me:$LINENO: result: no" >&5
  2670. $as_echo "no" >&6; }
  2671. fi
  2672. test -n "$ac_ct_CXX" && break
  2673. done
  2674. if test "x$ac_ct_CXX" = x; then
  2675. CXX="g++"
  2676. else
  2677. case $cross_compiling:$ac_tool_warned in
  2678. yes:)
  2679. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2680. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2681. ac_tool_warned=yes ;;
  2682. esac
  2683. CXX=$ac_ct_CXX
  2684. fi
  2685. fi
  2686. fi
  2687. fi
  2688. # Provide some information about the compiler.
  2689. $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2690. set X $ac_compile
  2691. ac_compiler=$2
  2692. { (ac_try="$ac_compiler --version >&5"
  2693. case "(($ac_try" in
  2694. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2695. *) ac_try_echo=$ac_try;;
  2696. esac
  2697. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2698. $as_echo "$ac_try_echo") >&5
  2699. (eval "$ac_compiler --version >&5") 2>&5
  2700. ac_status=$?
  2701. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2702. (exit $ac_status); }
  2703. { (ac_try="$ac_compiler -v >&5"
  2704. case "(($ac_try" in
  2705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2706. *) ac_try_echo=$ac_try;;
  2707. esac
  2708. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2709. $as_echo "$ac_try_echo") >&5
  2710. (eval "$ac_compiler -v >&5") 2>&5
  2711. ac_status=$?
  2712. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2713. (exit $ac_status); }
  2714. { (ac_try="$ac_compiler -V >&5"
  2715. case "(($ac_try" in
  2716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2717. *) ac_try_echo=$ac_try;;
  2718. esac
  2719. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2720. $as_echo "$ac_try_echo") >&5
  2721. (eval "$ac_compiler -V >&5") 2>&5
  2722. ac_status=$?
  2723. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2724. (exit $ac_status); }
  2725. cat >conftest.$ac_ext <<_ACEOF
  2726. /* confdefs.h. */
  2727. _ACEOF
  2728. cat confdefs.h >>conftest.$ac_ext
  2729. cat >>conftest.$ac_ext <<_ACEOF
  2730. /* end confdefs.h. */
  2731. int
  2732. main ()
  2733. {
  2734. ;
  2735. return 0;
  2736. }
  2737. _ACEOF
  2738. ac_clean_files_save=$ac_clean_files
  2739. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2740. # Try to create an executable without -o first, disregard a.out.
  2741. # It will help us diagnose broken compilers, and finding out an intuition
  2742. # of exeext.
  2743. { $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2744. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2745. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2746. # The possible output files:
  2747. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2748. ac_rmfiles=
  2749. for ac_file in $ac_files
  2750. do
  2751. case $ac_file in
  2752. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2753. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2754. esac
  2755. done
  2756. rm -f $ac_rmfiles
  2757. if { (ac_try="$ac_link_default"
  2758. case "(($ac_try" in
  2759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2760. *) ac_try_echo=$ac_try;;
  2761. esac
  2762. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2763. $as_echo "$ac_try_echo") >&5
  2764. (eval "$ac_link_default") 2>&5
  2765. ac_status=$?
  2766. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2767. (exit $ac_status); }; then
  2768. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2769. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2770. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2771. # so that the user can short-circuit this test for compilers unknown to
  2772. # Autoconf.
  2773. for ac_file in $ac_files ''
  2774. do
  2775. test -f "$ac_file" || continue
  2776. case $ac_file in
  2777. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2778. ;;
  2779. [ab].out )
  2780. # We found the default executable, but exeext='' is most
  2781. # certainly right.
  2782. break;;
  2783. *.* )
  2784. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2785. then :; else
  2786. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2787. fi
  2788. # We set ac_cv_exeext here because the later test for it is not
  2789. # safe: cross compilers may not add the suffix if given an `-o'
  2790. # argument, so we may need to know it at that point already.
  2791. # Even if this section looks crufty: it has the advantage of
  2792. # actually working.
  2793. break;;
  2794. * )
  2795. break;;
  2796. esac
  2797. done
  2798. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2799. else
  2800. ac_file=''
  2801. fi
  2802. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2803. $as_echo "$ac_file" >&6; }
  2804. if test -z "$ac_file"; then
  2805. $as_echo "$as_me: failed program was:" >&5
  2806. sed 's/^/| /' conftest.$ac_ext >&5
  2807. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2808. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2809. { { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2810. See \`config.log' for more details." >&5
  2811. $as_echo "$as_me: error: C++ compiler cannot create executables
  2812. See \`config.log' for more details." >&2;}
  2813. { (exit 77); exit 77; }; }; }
  2814. fi
  2815. ac_exeext=$ac_cv_exeext
  2816. # Check that the compiler produces executables we can run. If not, either
  2817. # the compiler is broken, or we cross compile.
  2818. { $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2819. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2820. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2821. # If not cross compiling, check that we can run a simple program.
  2822. if test "$cross_compiling" != yes; then
  2823. if { ac_try='./$ac_file'
  2824. { (case "(($ac_try" in
  2825. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2826. *) ac_try_echo=$ac_try;;
  2827. esac
  2828. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2829. $as_echo "$ac_try_echo") >&5
  2830. (eval "$ac_try") 2>&5
  2831. ac_status=$?
  2832. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2833. (exit $ac_status); }; }; then
  2834. cross_compiling=no
  2835. else
  2836. if test "$cross_compiling" = maybe; then
  2837. cross_compiling=yes
  2838. else
  2839. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2840. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2841. { { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2842. If you meant to cross compile, use \`--host'.
  2843. See \`config.log' for more details." >&5
  2844. $as_echo "$as_me: error: cannot run C++ compiled programs.
  2845. If you meant to cross compile, use \`--host'.
  2846. See \`config.log' for more details." >&2;}
  2847. { (exit 1); exit 1; }; }; }
  2848. fi
  2849. fi
  2850. fi
  2851. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2852. $as_echo "yes" >&6; }
  2853. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2854. ac_clean_files=$ac_clean_files_save
  2855. # Check that the compiler produces executables we can run. If not, either
  2856. # the compiler is broken, or we cross compile.
  2857. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2858. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2859. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2860. $as_echo "$cross_compiling" >&6; }
  2861. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2862. $as_echo_n "checking for suffix of executables... " >&6; }
  2863. if { (ac_try="$ac_link"
  2864. case "(($ac_try" in
  2865. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2866. *) ac_try_echo=$ac_try;;
  2867. esac
  2868. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2869. $as_echo "$ac_try_echo") >&5
  2870. (eval "$ac_link") 2>&5
  2871. ac_status=$?
  2872. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2873. (exit $ac_status); }; then
  2874. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2875. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2876. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2877. # `rm'.
  2878. for ac_file in conftest.exe conftest conftest.*; do
  2879. test -f "$ac_file" || continue
  2880. case $ac_file in
  2881. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2882. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2883. break;;
  2884. * ) break;;
  2885. esac
  2886. done
  2887. else
  2888. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2889. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2890. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2891. See \`config.log' for more details." >&5
  2892. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2893. See \`config.log' for more details." >&2;}
  2894. { (exit 1); exit 1; }; }; }
  2895. fi
  2896. rm -f conftest$ac_cv_exeext
  2897. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2898. $as_echo "$ac_cv_exeext" >&6; }
  2899. rm -f conftest.$ac_ext
  2900. EXEEXT=$ac_cv_exeext
  2901. ac_exeext=$EXEEXT
  2902. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2903. $as_echo_n "checking for suffix of object files... " >&6; }
  2904. if test "${ac_cv_objext+set}" = set; then
  2905. $as_echo_n "(cached) " >&6
  2906. else
  2907. cat >conftest.$ac_ext <<_ACEOF
  2908. /* confdefs.h. */
  2909. _ACEOF
  2910. cat confdefs.h >>conftest.$ac_ext
  2911. cat >>conftest.$ac_ext <<_ACEOF
  2912. /* end confdefs.h. */
  2913. int
  2914. main ()
  2915. {
  2916. ;
  2917. return 0;
  2918. }
  2919. _ACEOF
  2920. rm -f conftest.o conftest.obj
  2921. if { (ac_try="$ac_compile"
  2922. case "(($ac_try" in
  2923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2924. *) ac_try_echo=$ac_try;;
  2925. esac
  2926. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2927. $as_echo "$ac_try_echo") >&5
  2928. (eval "$ac_compile") 2>&5
  2929. ac_status=$?
  2930. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2931. (exit $ac_status); }; then
  2932. for ac_file in conftest.o conftest.obj conftest.*; do
  2933. test -f "$ac_file" || continue;
  2934. case $ac_file in
  2935. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2936. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2937. break;;
  2938. esac
  2939. done
  2940. else
  2941. $as_echo "$as_me: failed program was:" >&5
  2942. sed 's/^/| /' conftest.$ac_ext >&5
  2943. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2944. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2945. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2946. See \`config.log' for more details." >&5
  2947. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2948. See \`config.log' for more details." >&2;}
  2949. { (exit 1); exit 1; }; }; }
  2950. fi
  2951. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2952. fi
  2953. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2954. $as_echo "$ac_cv_objext" >&6; }
  2955. OBJEXT=$ac_cv_objext
  2956. ac_objext=$OBJEXT
  2957. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2958. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  2959. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2960. $as_echo_n "(cached) " >&6
  2961. else
  2962. cat >conftest.$ac_ext <<_ACEOF
  2963. /* confdefs.h. */
  2964. _ACEOF
  2965. cat confdefs.h >>conftest.$ac_ext
  2966. cat >>conftest.$ac_ext <<_ACEOF
  2967. /* end confdefs.h. */
  2968. int
  2969. main ()
  2970. {
  2971. #ifndef __GNUC__
  2972. choke me
  2973. #endif
  2974. ;
  2975. return 0;
  2976. }
  2977. _ACEOF
  2978. rm -f conftest.$ac_objext
  2979. if { (ac_try="$ac_compile"
  2980. case "(($ac_try" in
  2981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2982. *) ac_try_echo=$ac_try;;
  2983. esac
  2984. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2985. $as_echo "$ac_try_echo") >&5
  2986. (eval "$ac_compile") 2>conftest.er1
  2987. ac_status=$?
  2988. grep -v '^ *+' conftest.er1 >conftest.err
  2989. rm -f conftest.er1
  2990. cat conftest.err >&5
  2991. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2992. (exit $ac_status); } && {
  2993. test -z "$ac_cxx_werror_flag" ||
  2994. test ! -s conftest.err
  2995. } && test -s conftest.$ac_objext; then
  2996. ac_compiler_gnu=yes
  2997. else
  2998. $as_echo "$as_me: failed program was:" >&5
  2999. sed 's/^/| /' conftest.$ac_ext >&5
  3000. ac_compiler_gnu=no
  3001. fi
  3002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3003. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3004. fi
  3005. { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3006. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3007. if test $ac_compiler_gnu = yes; then
  3008. GXX=yes
  3009. else
  3010. GXX=
  3011. fi
  3012. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3013. ac_save_CXXFLAGS=$CXXFLAGS
  3014. { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3015. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3016. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3017. $as_echo_n "(cached) " >&6
  3018. else
  3019. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3020. ac_cxx_werror_flag=yes
  3021. ac_cv_prog_cxx_g=no
  3022. CXXFLAGS="-g"
  3023. cat >conftest.$ac_ext <<_ACEOF
  3024. /* confdefs.h. */
  3025. _ACEOF
  3026. cat confdefs.h >>conftest.$ac_ext
  3027. cat >>conftest.$ac_ext <<_ACEOF
  3028. /* end confdefs.h. */
  3029. int
  3030. main ()
  3031. {
  3032. ;
  3033. return 0;
  3034. }
  3035. _ACEOF
  3036. rm -f conftest.$ac_objext
  3037. if { (ac_try="$ac_compile"
  3038. case "(($ac_try" in
  3039. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3040. *) ac_try_echo=$ac_try;;
  3041. esac
  3042. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3043. $as_echo "$ac_try_echo") >&5
  3044. (eval "$ac_compile") 2>conftest.er1
  3045. ac_status=$?
  3046. grep -v '^ *+' conftest.er1 >conftest.err
  3047. rm -f conftest.er1
  3048. cat conftest.err >&5
  3049. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3050. (exit $ac_status); } && {
  3051. test -z "$ac_cxx_werror_flag" ||
  3052. test ! -s conftest.err
  3053. } && test -s conftest.$ac_objext; then
  3054. ac_cv_prog_cxx_g=yes
  3055. else
  3056. $as_echo "$as_me: failed program was:" >&5
  3057. sed 's/^/| /' conftest.$ac_ext >&5
  3058. CXXFLAGS=""
  3059. cat >conftest.$ac_ext <<_ACEOF
  3060. /* confdefs.h. */
  3061. _ACEOF
  3062. cat confdefs.h >>conftest.$ac_ext
  3063. cat >>conftest.$ac_ext <<_ACEOF
  3064. /* end confdefs.h. */
  3065. int
  3066. main ()
  3067. {
  3068. ;
  3069. return 0;
  3070. }
  3071. _ACEOF
  3072. rm -f conftest.$ac_objext
  3073. if { (ac_try="$ac_compile"
  3074. case "(($ac_try" in
  3075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3076. *) ac_try_echo=$ac_try;;
  3077. esac
  3078. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3079. $as_echo "$ac_try_echo") >&5
  3080. (eval "$ac_compile") 2>conftest.er1
  3081. ac_status=$?
  3082. grep -v '^ *+' conftest.er1 >conftest.err
  3083. rm -f conftest.er1
  3084. cat conftest.err >&5
  3085. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3086. (exit $ac_status); } && {
  3087. test -z "$ac_cxx_werror_flag" ||
  3088. test ! -s conftest.err
  3089. } && test -s conftest.$ac_objext; then
  3090. :
  3091. else
  3092. $as_echo "$as_me: failed program was:" >&5
  3093. sed 's/^/| /' conftest.$ac_ext >&5
  3094. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3095. CXXFLAGS="-g"
  3096. cat >conftest.$ac_ext <<_ACEOF
  3097. /* confdefs.h. */
  3098. _ACEOF
  3099. cat confdefs.h >>conftest.$ac_ext
  3100. cat >>conftest.$ac_ext <<_ACEOF
  3101. /* end confdefs.h. */
  3102. int
  3103. main ()
  3104. {
  3105. ;
  3106. return 0;
  3107. }
  3108. _ACEOF
  3109. rm -f conftest.$ac_objext
  3110. if { (ac_try="$ac_compile"
  3111. case "(($ac_try" in
  3112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3113. *) ac_try_echo=$ac_try;;
  3114. esac
  3115. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3116. $as_echo "$ac_try_echo") >&5
  3117. (eval "$ac_compile") 2>conftest.er1
  3118. ac_status=$?
  3119. grep -v '^ *+' conftest.er1 >conftest.err
  3120. rm -f conftest.er1
  3121. cat conftest.err >&5
  3122. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3123. (exit $ac_status); } && {
  3124. test -z "$ac_cxx_werror_flag" ||
  3125. test ! -s conftest.err
  3126. } && test -s conftest.$ac_objext; then
  3127. ac_cv_prog_cxx_g=yes
  3128. else
  3129. $as_echo "$as_me: failed program was:" >&5
  3130. sed 's/^/| /' conftest.$ac_ext >&5
  3131. fi
  3132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3133. fi
  3134. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3135. fi
  3136. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3137. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3138. fi
  3139. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3140. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3141. if test "$ac_test_CXXFLAGS" = set; then
  3142. CXXFLAGS=$ac_save_CXXFLAGS
  3143. elif test $ac_cv_prog_cxx_g = yes; then
  3144. if test "$GXX" = yes; then
  3145. CXXFLAGS="-g -O2"
  3146. else
  3147. CXXFLAGS="-g"
  3148. fi
  3149. else
  3150. if test "$GXX" = yes; then
  3151. CXXFLAGS="-O2"
  3152. else
  3153. CXXFLAGS=
  3154. fi
  3155. fi
  3156. ac_ext=c
  3157. ac_cpp='$CPP $CPPFLAGS'
  3158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3161. DEPDIR="${am__leading_dot}deps"
  3162. ac_config_commands="$ac_config_commands depfiles"
  3163. am_make=${MAKE-make}
  3164. cat > confinc << 'END'
  3165. am__doit:
  3166. @echo done
  3167. .PHONY: am__doit
  3168. END
  3169. # If we don't find an include directive, just comment out the code.
  3170. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3171. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3172. am__include="#"
  3173. am__quote=
  3174. _am_result=none
  3175. # First try GNU make style include.
  3176. echo "include confinc" > confmf
  3177. # We grep out `Entering directory' and `Leaving directory'
  3178. # messages which can occur if `w' ends up in MAKEFLAGS.
  3179. # In particular we don't look at `^make:' because GNU make might
  3180. # be invoked under some other name (usually "gmake"), in which
  3181. # case it prints its new name instead of `make'.
  3182. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3183. am__include=include
  3184. am__quote=
  3185. _am_result=GNU
  3186. fi
  3187. # Now try BSD make style include.
  3188. if test "$am__include" = "#"; then
  3189. echo '.include "confinc"' > confmf
  3190. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3191. am__include=.include
  3192. am__quote="\""
  3193. _am_result=BSD
  3194. fi
  3195. fi
  3196. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3197. $as_echo "$_am_result" >&6; }
  3198. rm -f confinc confmf
  3199. # Check whether --enable-dependency-tracking was given.
  3200. if test "${enable_dependency_tracking+set}" = set; then
  3201. enableval=$enable_dependency_tracking;
  3202. fi
  3203. if test "x$enable_dependency_tracking" != xno; then
  3204. am_depcomp="$ac_aux_dir/depcomp"
  3205. AMDEPBACKSLASH='\'
  3206. fi
  3207. if test "x$enable_dependency_tracking" != xno; then
  3208. AMDEP_TRUE=
  3209. AMDEP_FALSE='#'
  3210. else
  3211. AMDEP_TRUE='#'
  3212. AMDEP_FALSE=
  3213. fi
  3214. depcc="$CXX" am_compiler_list=
  3215. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3216. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3217. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  3218. $as_echo_n "(cached) " >&6
  3219. else
  3220. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3221. # We make a subdir and do the tests there. Otherwise we can end up
  3222. # making bogus files that we don't know about and never remove. For
  3223. # instance it was reported that on HP-UX the gcc test will end up
  3224. # making a dummy file named `D' -- because `-MD' means `put the output
  3225. # in D'.
  3226. mkdir conftest.dir
  3227. # Copy depcomp to subdir because otherwise we won't find it if we're
  3228. # using a relative directory.
  3229. cp "$am_depcomp" conftest.dir
  3230. cd conftest.dir
  3231. # We will build objects and dependencies in a subdirectory because
  3232. # it helps to detect inapplicable dependency modes. For instance
  3233. # both Tru64's cc and ICC support -MD to output dependencies as a
  3234. # side effect of compilation, but ICC will put the dependencies in
  3235. # the current directory while Tru64 will put them in the object
  3236. # directory.
  3237. mkdir sub
  3238. am_cv_CXX_dependencies_compiler_type=none
  3239. if test "$am_compiler_list" = ""; then
  3240. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3241. fi
  3242. for depmode in $am_compiler_list; do
  3243. # Setup a source with many dependencies, because some compilers
  3244. # like to wrap large dependency lists on column 80 (with \), and
  3245. # we should not choose a depcomp mode which is confused by this.
  3246. #
  3247. # We need to recreate these files for each test, as the compiler may
  3248. # overwrite some of them when testing with obscure command lines.
  3249. # This happens at least with the AIX C compiler.
  3250. : > sub/conftest.c
  3251. for i in 1 2 3 4 5 6; do
  3252. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3253. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3254. # Solaris 8's {/usr,}/bin/sh.
  3255. touch sub/conftst$i.h
  3256. done
  3257. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3258. case $depmode in
  3259. nosideeffect)
  3260. # after this tag, mechanisms are not by side-effect, so they'll
  3261. # only be used when explicitly requested
  3262. if test "x$enable_dependency_tracking" = xyes; then
  3263. continue
  3264. else
  3265. break
  3266. fi
  3267. ;;
  3268. none) break ;;
  3269. esac
  3270. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3271. # mode. It turns out that the SunPro C++ compiler does not properly
  3272. # handle `-M -o', and we need to detect this.
  3273. if depmode=$depmode \
  3274. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3275. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3276. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3277. >/dev/null 2>conftest.err &&
  3278. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3279. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3280. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3281. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3282. # icc doesn't choke on unknown options, it will just issue warnings
  3283. # or remarks (even with -Werror). So we grep stderr for any message
  3284. # that says an option was ignored or not supported.
  3285. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3286. # icc: Command line warning: ignoring option '-M'; no argument required
  3287. # The diagnosis changed in icc 8.0:
  3288. # icc: Command line remark: option '-MP' not supported
  3289. if (grep 'ignoring option' conftest.err ||
  3290. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3291. am_cv_CXX_dependencies_compiler_type=$depmode
  3292. break
  3293. fi
  3294. fi
  3295. done
  3296. cd ..
  3297. rm -rf conftest.dir
  3298. else
  3299. am_cv_CXX_dependencies_compiler_type=none
  3300. fi
  3301. fi
  3302. { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3303. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3304. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3305. if
  3306. test "x$enable_dependency_tracking" != xno \
  3307. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3308. am__fastdepCXX_TRUE=
  3309. am__fastdepCXX_FALSE='#'
  3310. else
  3311. am__fastdepCXX_TRUE='#'
  3312. am__fastdepCXX_FALSE=
  3313. fi
  3314. ac_ext=c
  3315. ac_cpp='$CPP $CPPFLAGS'
  3316. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3317. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3318. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3319. if test -n "$ac_tool_prefix"; then
  3320. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3321. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3322. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3323. $as_echo_n "checking for $ac_word... " >&6; }
  3324. if test "${ac_cv_prog_CC+set}" = set; then
  3325. $as_echo_n "(cached) " >&6
  3326. else
  3327. if test -n "$CC"; then
  3328. ac_cv_prog_CC="$CC" # Let the user override the test.
  3329. else
  3330. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3331. for as_dir in $PATH
  3332. do
  3333. IFS=$as_save_IFS
  3334. test -z "$as_dir" && as_dir=.
  3335. for ac_exec_ext in '' $ac_executable_extensions; do
  3336. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3337. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3338. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3339. break 2
  3340. fi
  3341. done
  3342. done
  3343. IFS=$as_save_IFS
  3344. fi
  3345. fi
  3346. CC=$ac_cv_prog_CC
  3347. if test -n "$CC"; then
  3348. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3349. $as_echo "$CC" >&6; }
  3350. else
  3351. { $as_echo "$as_me:$LINENO: result: no" >&5
  3352. $as_echo "no" >&6; }
  3353. fi
  3354. fi
  3355. if test -z "$ac_cv_prog_CC"; then
  3356. ac_ct_CC=$CC
  3357. # Extract the first word of "gcc", so it can be a program name with args.
  3358. set dummy gcc; ac_word=$2
  3359. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3360. $as_echo_n "checking for $ac_word... " >&6; }
  3361. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3362. $as_echo_n "(cached) " >&6
  3363. else
  3364. if test -n "$ac_ct_CC"; then
  3365. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3366. else
  3367. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3368. for as_dir in $PATH
  3369. do
  3370. IFS=$as_save_IFS
  3371. test -z "$as_dir" && as_dir=.
  3372. for ac_exec_ext in '' $ac_executable_extensions; do
  3373. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3374. ac_cv_prog_ac_ct_CC="gcc"
  3375. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3376. break 2
  3377. fi
  3378. done
  3379. done
  3380. IFS=$as_save_IFS
  3381. fi
  3382. fi
  3383. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3384. if test -n "$ac_ct_CC"; then
  3385. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3386. $as_echo "$ac_ct_CC" >&6; }
  3387. else
  3388. { $as_echo "$as_me:$LINENO: result: no" >&5
  3389. $as_echo "no" >&6; }
  3390. fi
  3391. if test "x$ac_ct_CC" = x; then
  3392. CC=""
  3393. else
  3394. case $cross_compiling:$ac_tool_warned in
  3395. yes:)
  3396. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3397. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3398. ac_tool_warned=yes ;;
  3399. esac
  3400. CC=$ac_ct_CC
  3401. fi
  3402. else
  3403. CC="$ac_cv_prog_CC"
  3404. fi
  3405. if test -z "$CC"; then
  3406. if test -n "$ac_tool_prefix"; then
  3407. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3408. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3409. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3410. $as_echo_n "checking for $ac_word... " >&6; }
  3411. if test "${ac_cv_prog_CC+set}" = set; then
  3412. $as_echo_n "(cached) " >&6
  3413. else
  3414. if test -n "$CC"; then
  3415. ac_cv_prog_CC="$CC" # Let the user override the test.
  3416. else
  3417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3418. for as_dir in $PATH
  3419. do
  3420. IFS=$as_save_IFS
  3421. test -z "$as_dir" && as_dir=.
  3422. for ac_exec_ext in '' $ac_executable_extensions; do
  3423. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3424. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3425. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3426. break 2
  3427. fi
  3428. done
  3429. done
  3430. IFS=$as_save_IFS
  3431. fi
  3432. fi
  3433. CC=$ac_cv_prog_CC
  3434. if test -n "$CC"; then
  3435. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3436. $as_echo "$CC" >&6; }
  3437. else
  3438. { $as_echo "$as_me:$LINENO: result: no" >&5
  3439. $as_echo "no" >&6; }
  3440. fi
  3441. fi
  3442. fi
  3443. if test -z "$CC"; then
  3444. # Extract the first word of "cc", so it can be a program name with args.
  3445. set dummy cc; ac_word=$2
  3446. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3447. $as_echo_n "checking for $ac_word... " >&6; }
  3448. if test "${ac_cv_prog_CC+set}" = set; then
  3449. $as_echo_n "(cached) " >&6
  3450. else
  3451. if test -n "$CC"; then
  3452. ac_cv_prog_CC="$CC" # Let the user override the test.
  3453. else
  3454. ac_prog_rejected=no
  3455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3456. for as_dir in $PATH
  3457. do
  3458. IFS=$as_save_IFS
  3459. test -z "$as_dir" && as_dir=.
  3460. for ac_exec_ext in '' $ac_executable_extensions; do
  3461. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3462. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3463. ac_prog_rejected=yes
  3464. continue
  3465. fi
  3466. ac_cv_prog_CC="cc"
  3467. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3468. break 2
  3469. fi
  3470. done
  3471. done
  3472. IFS=$as_save_IFS
  3473. if test $ac_prog_rejected = yes; then
  3474. # We found a bogon in the path, so make sure we never use it.
  3475. set dummy $ac_cv_prog_CC
  3476. shift
  3477. if test $# != 0; then
  3478. # We chose a different compiler from the bogus one.
  3479. # However, it has the same basename, so the bogon will be chosen
  3480. # first if we set CC to just the basename; use the full file name.
  3481. shift
  3482. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3483. fi
  3484. fi
  3485. fi
  3486. fi
  3487. CC=$ac_cv_prog_CC
  3488. if test -n "$CC"; then
  3489. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3490. $as_echo "$CC" >&6; }
  3491. else
  3492. { $as_echo "$as_me:$LINENO: result: no" >&5
  3493. $as_echo "no" >&6; }
  3494. fi
  3495. fi
  3496. if test -z "$CC"; then
  3497. if test -n "$ac_tool_prefix"; then
  3498. for ac_prog in cl.exe
  3499. do
  3500. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3501. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3502. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3503. $as_echo_n "checking for $ac_word... " >&6; }
  3504. if test "${ac_cv_prog_CC+set}" = set; then
  3505. $as_echo_n "(cached) " >&6
  3506. else
  3507. if test -n "$CC"; then
  3508. ac_cv_prog_CC="$CC" # Let the user override the test.
  3509. else
  3510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3511. for as_dir in $PATH
  3512. do
  3513. IFS=$as_save_IFS
  3514. test -z "$as_dir" && as_dir=.
  3515. for ac_exec_ext in '' $ac_executable_extensions; do
  3516. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3517. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3518. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3519. break 2
  3520. fi
  3521. done
  3522. done
  3523. IFS=$as_save_IFS
  3524. fi
  3525. fi
  3526. CC=$ac_cv_prog_CC
  3527. if test -n "$CC"; then
  3528. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  3529. $as_echo "$CC" >&6; }
  3530. else
  3531. { $as_echo "$as_me:$LINENO: result: no" >&5
  3532. $as_echo "no" >&6; }
  3533. fi
  3534. test -n "$CC" && break
  3535. done
  3536. fi
  3537. if test -z "$CC"; then
  3538. ac_ct_CC=$CC
  3539. for ac_prog in cl.exe
  3540. do
  3541. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3542. set dummy $ac_prog; ac_word=$2
  3543. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  3544. $as_echo_n "checking for $ac_word... " >&6; }
  3545. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3546. $as_echo_n "(cached) " >&6
  3547. else
  3548. if test -n "$ac_ct_CC"; then
  3549. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3550. else
  3551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3552. for as_dir in $PATH
  3553. do
  3554. IFS=$as_save_IFS
  3555. test -z "$as_dir" && as_dir=.
  3556. for ac_exec_ext in '' $ac_executable_extensions; do
  3557. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3558. ac_cv_prog_ac_ct_CC="$ac_prog"
  3559. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3560. break 2
  3561. fi
  3562. done
  3563. done
  3564. IFS=$as_save_IFS
  3565. fi
  3566. fi
  3567. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3568. if test -n "$ac_ct_CC"; then
  3569. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3570. $as_echo "$ac_ct_CC" >&6; }
  3571. else
  3572. { $as_echo "$as_me:$LINENO: result: no" >&5
  3573. $as_echo "no" >&6; }
  3574. fi
  3575. test -n "$ac_ct_CC" && break
  3576. done
  3577. if test "x$ac_ct_CC" = x; then
  3578. CC=""
  3579. else
  3580. case $cross_compiling:$ac_tool_warned in
  3581. yes:)
  3582. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  3583. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3584. ac_tool_warned=yes ;;
  3585. esac
  3586. CC=$ac_ct_CC
  3587. fi
  3588. fi
  3589. fi
  3590. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3591. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3592. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3593. See \`config.log' for more details." >&5
  3594. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  3595. See \`config.log' for more details." >&2;}
  3596. { (exit 1); exit 1; }; }; }
  3597. # Provide some information about the compiler.
  3598. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  3599. set X $ac_compile
  3600. ac_compiler=$2
  3601. { (ac_try="$ac_compiler --version >&5"
  3602. case "(($ac_try" in
  3603. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3604. *) ac_try_echo=$ac_try;;
  3605. esac
  3606. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3607. $as_echo "$ac_try_echo") >&5
  3608. (eval "$ac_compiler --version >&5") 2>&5
  3609. ac_status=$?
  3610. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3611. (exit $ac_status); }
  3612. { (ac_try="$ac_compiler -v >&5"
  3613. case "(($ac_try" in
  3614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3615. *) ac_try_echo=$ac_try;;
  3616. esac
  3617. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3618. $as_echo "$ac_try_echo") >&5
  3619. (eval "$ac_compiler -v >&5") 2>&5
  3620. ac_status=$?
  3621. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3622. (exit $ac_status); }
  3623. { (ac_try="$ac_compiler -V >&5"
  3624. case "(($ac_try" in
  3625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3626. *) ac_try_echo=$ac_try;;
  3627. esac
  3628. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3629. $as_echo "$ac_try_echo") >&5
  3630. (eval "$ac_compiler -V >&5") 2>&5
  3631. ac_status=$?
  3632. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3633. (exit $ac_status); }
  3634. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3635. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3636. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3637. $as_echo_n "(cached) " >&6
  3638. else
  3639. cat >conftest.$ac_ext <<_ACEOF
  3640. /* confdefs.h. */
  3641. _ACEOF
  3642. cat confdefs.h >>conftest.$ac_ext
  3643. cat >>conftest.$ac_ext <<_ACEOF
  3644. /* end confdefs.h. */
  3645. int
  3646. main ()
  3647. {
  3648. #ifndef __GNUC__
  3649. choke me
  3650. #endif
  3651. ;
  3652. return 0;
  3653. }
  3654. _ACEOF
  3655. rm -f conftest.$ac_objext
  3656. if { (ac_try="$ac_compile"
  3657. case "(($ac_try" in
  3658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3659. *) ac_try_echo=$ac_try;;
  3660. esac
  3661. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3662. $as_echo "$ac_try_echo") >&5
  3663. (eval "$ac_compile") 2>conftest.er1
  3664. ac_status=$?
  3665. grep -v '^ *+' conftest.er1 >conftest.err
  3666. rm -f conftest.er1
  3667. cat conftest.err >&5
  3668. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3669. (exit $ac_status); } && {
  3670. test -z "$ac_c_werror_flag" ||
  3671. test ! -s conftest.err
  3672. } && test -s conftest.$ac_objext; then
  3673. ac_compiler_gnu=yes
  3674. else
  3675. $as_echo "$as_me: failed program was:" >&5
  3676. sed 's/^/| /' conftest.$ac_ext >&5
  3677. ac_compiler_gnu=no
  3678. fi
  3679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3680. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3681. fi
  3682. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3683. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3684. if test $ac_compiler_gnu = yes; then
  3685. GCC=yes
  3686. else
  3687. GCC=
  3688. fi
  3689. ac_test_CFLAGS=${CFLAGS+set}
  3690. ac_save_CFLAGS=$CFLAGS
  3691. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3692. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3693. if test "${ac_cv_prog_cc_g+set}" = set; then
  3694. $as_echo_n "(cached) " >&6
  3695. else
  3696. ac_save_c_werror_flag=$ac_c_werror_flag
  3697. ac_c_werror_flag=yes
  3698. ac_cv_prog_cc_g=no
  3699. CFLAGS="-g"
  3700. cat >conftest.$ac_ext <<_ACEOF
  3701. /* confdefs.h. */
  3702. _ACEOF
  3703. cat confdefs.h >>conftest.$ac_ext
  3704. cat >>conftest.$ac_ext <<_ACEOF
  3705. /* end confdefs.h. */
  3706. int
  3707. main ()
  3708. {
  3709. ;
  3710. return 0;
  3711. }
  3712. _ACEOF
  3713. rm -f conftest.$ac_objext
  3714. if { (ac_try="$ac_compile"
  3715. case "(($ac_try" in
  3716. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3717. *) ac_try_echo=$ac_try;;
  3718. esac
  3719. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3720. $as_echo "$ac_try_echo") >&5
  3721. (eval "$ac_compile") 2>conftest.er1
  3722. ac_status=$?
  3723. grep -v '^ *+' conftest.er1 >conftest.err
  3724. rm -f conftest.er1
  3725. cat conftest.err >&5
  3726. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3727. (exit $ac_status); } && {
  3728. test -z "$ac_c_werror_flag" ||
  3729. test ! -s conftest.err
  3730. } && test -s conftest.$ac_objext; then
  3731. ac_cv_prog_cc_g=yes
  3732. else
  3733. $as_echo "$as_me: failed program was:" >&5
  3734. sed 's/^/| /' conftest.$ac_ext >&5
  3735. CFLAGS=""
  3736. cat >conftest.$ac_ext <<_ACEOF
  3737. /* confdefs.h. */
  3738. _ACEOF
  3739. cat confdefs.h >>conftest.$ac_ext
  3740. cat >>conftest.$ac_ext <<_ACEOF
  3741. /* end confdefs.h. */
  3742. int
  3743. main ()
  3744. {
  3745. ;
  3746. return 0;
  3747. }
  3748. _ACEOF
  3749. rm -f conftest.$ac_objext
  3750. if { (ac_try="$ac_compile"
  3751. case "(($ac_try" in
  3752. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3753. *) ac_try_echo=$ac_try;;
  3754. esac
  3755. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3756. $as_echo "$ac_try_echo") >&5
  3757. (eval "$ac_compile") 2>conftest.er1
  3758. ac_status=$?
  3759. grep -v '^ *+' conftest.er1 >conftest.err
  3760. rm -f conftest.er1
  3761. cat conftest.err >&5
  3762. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3763. (exit $ac_status); } && {
  3764. test -z "$ac_c_werror_flag" ||
  3765. test ! -s conftest.err
  3766. } && test -s conftest.$ac_objext; then
  3767. :
  3768. else
  3769. $as_echo "$as_me: failed program was:" >&5
  3770. sed 's/^/| /' conftest.$ac_ext >&5
  3771. ac_c_werror_flag=$ac_save_c_werror_flag
  3772. CFLAGS="-g"
  3773. cat >conftest.$ac_ext <<_ACEOF
  3774. /* confdefs.h. */
  3775. _ACEOF
  3776. cat confdefs.h >>conftest.$ac_ext
  3777. cat >>conftest.$ac_ext <<_ACEOF
  3778. /* end confdefs.h. */
  3779. int
  3780. main ()
  3781. {
  3782. ;
  3783. return 0;
  3784. }
  3785. _ACEOF
  3786. rm -f conftest.$ac_objext
  3787. if { (ac_try="$ac_compile"
  3788. case "(($ac_try" in
  3789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3790. *) ac_try_echo=$ac_try;;
  3791. esac
  3792. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3793. $as_echo "$ac_try_echo") >&5
  3794. (eval "$ac_compile") 2>conftest.er1
  3795. ac_status=$?
  3796. grep -v '^ *+' conftest.er1 >conftest.err
  3797. rm -f conftest.er1
  3798. cat conftest.err >&5
  3799. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3800. (exit $ac_status); } && {
  3801. test -z "$ac_c_werror_flag" ||
  3802. test ! -s conftest.err
  3803. } && test -s conftest.$ac_objext; then
  3804. ac_cv_prog_cc_g=yes
  3805. else
  3806. $as_echo "$as_me: failed program was:" >&5
  3807. sed 's/^/| /' conftest.$ac_ext >&5
  3808. fi
  3809. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3810. fi
  3811. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3812. fi
  3813. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3814. ac_c_werror_flag=$ac_save_c_werror_flag
  3815. fi
  3816. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3817. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3818. if test "$ac_test_CFLAGS" = set; then
  3819. CFLAGS=$ac_save_CFLAGS
  3820. elif test $ac_cv_prog_cc_g = yes; then
  3821. if test "$GCC" = yes; then
  3822. CFLAGS="-g -O2"
  3823. else
  3824. CFLAGS="-g"
  3825. fi
  3826. else
  3827. if test "$GCC" = yes; then
  3828. CFLAGS="-O2"
  3829. else
  3830. CFLAGS=
  3831. fi
  3832. fi
  3833. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3834. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3835. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3836. $as_echo_n "(cached) " >&6
  3837. else
  3838. ac_cv_prog_cc_c89=no
  3839. ac_save_CC=$CC
  3840. cat >conftest.$ac_ext <<_ACEOF
  3841. /* confdefs.h. */
  3842. _ACEOF
  3843. cat confdefs.h >>conftest.$ac_ext
  3844. cat >>conftest.$ac_ext <<_ACEOF
  3845. /* end confdefs.h. */
  3846. #include <stdarg.h>
  3847. #include <stdio.h>
  3848. #include <sys/types.h>
  3849. #include <sys/stat.h>
  3850. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3851. struct buf { int x; };
  3852. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3853. static char *e (p, i)
  3854. char **p;
  3855. int i;
  3856. {
  3857. return p[i];
  3858. }
  3859. static char *f (char * (*g) (char **, int), char **p, ...)
  3860. {
  3861. char *s;
  3862. va_list v;
  3863. va_start (v,p);
  3864. s = g (p, va_arg (v,int));
  3865. va_end (v);
  3866. return s;
  3867. }
  3868. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3869. function prototypes and stuff, but not '\xHH' hex character constants.
  3870. These don't provoke an error unfortunately, instead are silently treated
  3871. as 'x'. The following induces an error, until -std is added to get
  3872. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3873. array size at least. It's necessary to write '\x00'==0 to get something
  3874. that's true only with -std. */
  3875. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3876. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3877. inside strings and character constants. */
  3878. #define FOO(x) 'x'
  3879. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3880. int test (int i, double x);
  3881. struct s1 {int (*f) (int a);};
  3882. struct s2 {int (*f) (double a);};
  3883. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3884. int argc;
  3885. char **argv;
  3886. int
  3887. main ()
  3888. {
  3889. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3890. ;
  3891. return 0;
  3892. }
  3893. _ACEOF
  3894. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3895. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3896. do
  3897. CC="$ac_save_CC $ac_arg"
  3898. rm -f conftest.$ac_objext
  3899. if { (ac_try="$ac_compile"
  3900. case "(($ac_try" in
  3901. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3902. *) ac_try_echo=$ac_try;;
  3903. esac
  3904. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3905. $as_echo "$ac_try_echo") >&5
  3906. (eval "$ac_compile") 2>conftest.er1
  3907. ac_status=$?
  3908. grep -v '^ *+' conftest.er1 >conftest.err
  3909. rm -f conftest.er1
  3910. cat conftest.err >&5
  3911. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3912. (exit $ac_status); } && {
  3913. test -z "$ac_c_werror_flag" ||
  3914. test ! -s conftest.err
  3915. } && test -s conftest.$ac_objext; then
  3916. ac_cv_prog_cc_c89=$ac_arg
  3917. else
  3918. $as_echo "$as_me: failed program was:" >&5
  3919. sed 's/^/| /' conftest.$ac_ext >&5
  3920. fi
  3921. rm -f core conftest.err conftest.$ac_objext
  3922. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3923. done
  3924. rm -f conftest.$ac_ext
  3925. CC=$ac_save_CC
  3926. fi
  3927. # AC_CACHE_VAL
  3928. case "x$ac_cv_prog_cc_c89" in
  3929. x)
  3930. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3931. $as_echo "none needed" >&6; } ;;
  3932. xno)
  3933. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3934. $as_echo "unsupported" >&6; } ;;
  3935. *)
  3936. CC="$CC $ac_cv_prog_cc_c89"
  3937. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3938. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3939. esac
  3940. ac_ext=c
  3941. ac_cpp='$CPP $CPPFLAGS'
  3942. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3943. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3944. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3945. depcc="$CC" am_compiler_list=
  3946. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3947. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3948. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3949. $as_echo_n "(cached) " >&6
  3950. else
  3951. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3952. # We make a subdir and do the tests there. Otherwise we can end up
  3953. # making bogus files that we don't know about and never remove. For
  3954. # instance it was reported that on HP-UX the gcc test will end up
  3955. # making a dummy file named `D' -- because `-MD' means `put the output
  3956. # in D'.
  3957. mkdir conftest.dir
  3958. # Copy depcomp to subdir because otherwise we won't find it if we're
  3959. # using a relative directory.
  3960. cp "$am_depcomp" conftest.dir
  3961. cd conftest.dir
  3962. # We will build objects and dependencies in a subdirectory because
  3963. # it helps to detect inapplicable dependency modes. For instance
  3964. # both Tru64's cc and ICC support -MD to output dependencies as a
  3965. # side effect of compilation, but ICC will put the dependencies in
  3966. # the current directory while Tru64 will put them in the object
  3967. # directory.
  3968. mkdir sub
  3969. am_cv_CC_dependencies_compiler_type=none
  3970. if test "$am_compiler_list" = ""; then
  3971. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3972. fi
  3973. for depmode in $am_compiler_list; do
  3974. # Setup a source with many dependencies, because some compilers
  3975. # like to wrap large dependency lists on column 80 (with \), and
  3976. # we should not choose a depcomp mode which is confused by this.
  3977. #
  3978. # We need to recreate these files for each test, as the compiler may
  3979. # overwrite some of them when testing with obscure command lines.
  3980. # This happens at least with the AIX C compiler.
  3981. : > sub/conftest.c
  3982. for i in 1 2 3 4 5 6; do
  3983. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3984. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3985. # Solaris 8's {/usr,}/bin/sh.
  3986. touch sub/conftst$i.h
  3987. done
  3988. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3989. case $depmode in
  3990. nosideeffect)
  3991. # after this tag, mechanisms are not by side-effect, so they'll
  3992. # only be used when explicitly requested
  3993. if test "x$enable_dependency_tracking" = xyes; then
  3994. continue
  3995. else
  3996. break
  3997. fi
  3998. ;;
  3999. none) break ;;
  4000. esac
  4001. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4002. # mode. It turns out that the SunPro C++ compiler does not properly
  4003. # handle `-M -o', and we need to detect this.
  4004. if depmode=$depmode \
  4005. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  4006. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4007. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  4008. >/dev/null 2>conftest.err &&
  4009. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4010. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4011. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  4012. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4013. # icc doesn't choke on unknown options, it will just issue warnings
  4014. # or remarks (even with -Werror). So we grep stderr for any message
  4015. # that says an option was ignored or not supported.
  4016. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4017. # icc: Command line warning: ignoring option '-M'; no argument required
  4018. # The diagnosis changed in icc 8.0:
  4019. # icc: Command line remark: option '-MP' not supported
  4020. if (grep 'ignoring option' conftest.err ||
  4021. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4022. am_cv_CC_dependencies_compiler_type=$depmode
  4023. break
  4024. fi
  4025. fi
  4026. done
  4027. cd ..
  4028. rm -rf conftest.dir
  4029. else
  4030. am_cv_CC_dependencies_compiler_type=none
  4031. fi
  4032. fi
  4033. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  4034. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4035. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4036. if
  4037. test "x$enable_dependency_tracking" != xno \
  4038. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4039. am__fastdepCC_TRUE=
  4040. am__fastdepCC_FALSE='#'
  4041. else
  4042. am__fastdepCC_TRUE='#'
  4043. am__fastdepCC_FALSE=
  4044. fi
  4045. # Find a good install program. We prefer a C program (faster),
  4046. # so one script is as good as another. But avoid the broken or
  4047. # incompatible versions:
  4048. # SysV /etc/install, /usr/sbin/install
  4049. # SunOS /usr/etc/install
  4050. # IRIX /sbin/install
  4051. # AIX /bin/install
  4052. # AmigaOS /C/install, which installs bootblocks on floppy discs
  4053. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4054. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4055. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4056. # OS/2's system install, which has a completely different semantic
  4057. # ./install, which can be erroneously created by make from ./install.sh.
  4058. # Reject install programs that cannot install multiple files.
  4059. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4060. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  4061. if test -z "$INSTALL"; then
  4062. if test "${ac_cv_path_install+set}" = set; then
  4063. $as_echo_n "(cached) " >&6
  4064. else
  4065. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4066. for as_dir in $PATH
  4067. do
  4068. IFS=$as_save_IFS
  4069. test -z "$as_dir" && as_dir=.
  4070. # Account for people who put trailing slashes in PATH elements.
  4071. case $as_dir/ in
  4072. ./ | .// | /cC/* | \
  4073. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4074. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  4075. /usr/ucb/* ) ;;
  4076. *)
  4077. # OSF1 and SCO ODT 3.0 have their own names for install.
  4078. # Don't use installbsd from OSF since it installs stuff as root
  4079. # by default.
  4080. for ac_prog in ginstall scoinst install; do
  4081. for ac_exec_ext in '' $ac_executable_extensions; do
  4082. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  4083. if test $ac_prog = install &&
  4084. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4085. # AIX install. It has an incompatible calling convention.
  4086. :
  4087. elif test $ac_prog = install &&
  4088. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4089. # program-specific install script used by HP pwplus--don't use.
  4090. :
  4091. else
  4092. rm -rf conftest.one conftest.two conftest.dir
  4093. echo one > conftest.one
  4094. echo two > conftest.two
  4095. mkdir conftest.dir
  4096. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  4097. test -s conftest.one && test -s conftest.two &&
  4098. test -s conftest.dir/conftest.one &&
  4099. test -s conftest.dir/conftest.two
  4100. then
  4101. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4102. break 3
  4103. fi
  4104. fi
  4105. fi
  4106. done
  4107. done
  4108. ;;
  4109. esac
  4110. done
  4111. IFS=$as_save_IFS
  4112. rm -rf conftest.one conftest.two conftest.dir
  4113. fi
  4114. if test "${ac_cv_path_install+set}" = set; then
  4115. INSTALL=$ac_cv_path_install
  4116. else
  4117. # As a last resort, use the slow shell script. Don't cache a
  4118. # value for INSTALL within a source directory, because that will
  4119. # break other packages using the cache if that directory is
  4120. # removed, or if the value is a relative name.
  4121. INSTALL=$ac_install_sh
  4122. fi
  4123. fi
  4124. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  4125. $as_echo "$INSTALL" >&6; }
  4126. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4127. # It thinks the first close brace ends the variable substitution.
  4128. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4129. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4130. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4131. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  4132. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  4133. if test -z "$MKDIR_P"; then
  4134. if test "${ac_cv_path_mkdir+set}" = set; then
  4135. $as_echo_n "(cached) " >&6
  4136. else
  4137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4138. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  4139. do
  4140. IFS=$as_save_IFS
  4141. test -z "$as_dir" && as_dir=.
  4142. for ac_prog in mkdir gmkdir; do
  4143. for ac_exec_ext in '' $ac_executable_extensions; do
  4144. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  4145. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  4146. 'mkdir (GNU coreutils) '* | \
  4147. 'mkdir (coreutils) '* | \
  4148. 'mkdir (fileutils) '4.1*)
  4149. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  4150. break 3;;
  4151. esac
  4152. done
  4153. done
  4154. done
  4155. IFS=$as_save_IFS
  4156. fi
  4157. if test "${ac_cv_path_mkdir+set}" = set; then
  4158. MKDIR_P="$ac_cv_path_mkdir -p"
  4159. else
  4160. # As a last resort, use the slow shell script. Don't cache a
  4161. # value for MKDIR_P within a source directory, because that will
  4162. # break other packages using the cache if that directory is
  4163. # removed, or if the value is a relative name.
  4164. test -d ./--version && rmdir ./--version
  4165. MKDIR_P="$ac_install_sh -d"
  4166. fi
  4167. fi
  4168. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  4169. $as_echo "$MKDIR_P" >&6; }
  4170. if test -n "$ac_tool_prefix"; then
  4171. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4172. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4173. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4174. $as_echo_n "checking for $ac_word... " >&6; }
  4175. if test "${ac_cv_prog_RANLIB+set}" = set; then
  4176. $as_echo_n "(cached) " >&6
  4177. else
  4178. if test -n "$RANLIB"; then
  4179. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4180. else
  4181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4182. for as_dir in $PATH
  4183. do
  4184. IFS=$as_save_IFS
  4185. test -z "$as_dir" && as_dir=.
  4186. for ac_exec_ext in '' $ac_executable_extensions; do
  4187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4188. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4189. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4190. break 2
  4191. fi
  4192. done
  4193. done
  4194. IFS=$as_save_IFS
  4195. fi
  4196. fi
  4197. RANLIB=$ac_cv_prog_RANLIB
  4198. if test -n "$RANLIB"; then
  4199. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  4200. $as_echo "$RANLIB" >&6; }
  4201. else
  4202. { $as_echo "$as_me:$LINENO: result: no" >&5
  4203. $as_echo "no" >&6; }
  4204. fi
  4205. fi
  4206. if test -z "$ac_cv_prog_RANLIB"; then
  4207. ac_ct_RANLIB=$RANLIB
  4208. # Extract the first word of "ranlib", so it can be a program name with args.
  4209. set dummy ranlib; ac_word=$2
  4210. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4211. $as_echo_n "checking for $ac_word... " >&6; }
  4212. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  4213. $as_echo_n "(cached) " >&6
  4214. else
  4215. if test -n "$ac_ct_RANLIB"; then
  4216. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4217. else
  4218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4219. for as_dir in $PATH
  4220. do
  4221. IFS=$as_save_IFS
  4222. test -z "$as_dir" && as_dir=.
  4223. for ac_exec_ext in '' $ac_executable_extensions; do
  4224. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4225. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4226. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4227. break 2
  4228. fi
  4229. done
  4230. done
  4231. IFS=$as_save_IFS
  4232. fi
  4233. fi
  4234. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4235. if test -n "$ac_ct_RANLIB"; then
  4236. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  4237. $as_echo "$ac_ct_RANLIB" >&6; }
  4238. else
  4239. { $as_echo "$as_me:$LINENO: result: no" >&5
  4240. $as_echo "no" >&6; }
  4241. fi
  4242. if test "x$ac_ct_RANLIB" = x; then
  4243. RANLIB=":"
  4244. else
  4245. case $cross_compiling:$ac_tool_warned in
  4246. yes:)
  4247. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4248. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4249. ac_tool_warned=yes ;;
  4250. esac
  4251. RANLIB=$ac_ct_RANLIB
  4252. fi
  4253. else
  4254. RANLIB="$ac_cv_prog_RANLIB"
  4255. fi
  4256. for ac_prog in 'bison -y' byacc
  4257. do
  4258. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4259. set dummy $ac_prog; ac_word=$2
  4260. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4261. $as_echo_n "checking for $ac_word... " >&6; }
  4262. if test "${ac_cv_prog_YACC+set}" = set; then
  4263. $as_echo_n "(cached) " >&6
  4264. else
  4265. if test -n "$YACC"; then
  4266. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  4267. else
  4268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4269. for as_dir in $PATH
  4270. do
  4271. IFS=$as_save_IFS
  4272. test -z "$as_dir" && as_dir=.
  4273. for ac_exec_ext in '' $ac_executable_extensions; do
  4274. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4275. ac_cv_prog_YACC="$ac_prog"
  4276. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4277. break 2
  4278. fi
  4279. done
  4280. done
  4281. IFS=$as_save_IFS
  4282. fi
  4283. fi
  4284. YACC=$ac_cv_prog_YACC
  4285. if test -n "$YACC"; then
  4286. { $as_echo "$as_me:$LINENO: result: $YACC" >&5
  4287. $as_echo "$YACC" >&6; }
  4288. else
  4289. { $as_echo "$as_me:$LINENO: result: no" >&5
  4290. $as_echo "no" >&6; }
  4291. fi
  4292. test -n "$YACC" && break
  4293. done
  4294. test -n "$YACC" || YACC="yacc"
  4295. # Setting language choice
  4296. ac_ext=cpp
  4297. ac_cpp='$CXXCPP $CPPFLAGS'
  4298. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4299. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4300. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4301. # Enable system extensions
  4302. ac_ext=cpp
  4303. ac_cpp='$CXXCPP $CPPFLAGS'
  4304. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4305. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4306. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4307. { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  4308. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4309. if test -z "$CXXCPP"; then
  4310. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  4311. $as_echo_n "(cached) " >&6
  4312. else
  4313. # Double quotes because CXXCPP needs to be expanded
  4314. for CXXCPP in "$CXX -E" "/lib/cpp"
  4315. do
  4316. ac_preproc_ok=false
  4317. for ac_cxx_preproc_warn_flag in '' yes
  4318. do
  4319. # Use a header file that comes with gcc, so configuring glibc
  4320. # with a fresh cross-compiler works.
  4321. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4322. # <limits.h> exists even on freestanding compilers.
  4323. # On the NeXT, cc -E runs the code through the compiler's parser,
  4324. # not just through cpp. "Syntax error" is here to catch this case.
  4325. cat >conftest.$ac_ext <<_ACEOF
  4326. /* confdefs.h. */
  4327. _ACEOF
  4328. cat confdefs.h >>conftest.$ac_ext
  4329. cat >>conftest.$ac_ext <<_ACEOF
  4330. /* end confdefs.h. */
  4331. #ifdef __STDC__
  4332. # include <limits.h>
  4333. #else
  4334. # include <assert.h>
  4335. #endif
  4336. Syntax error
  4337. _ACEOF
  4338. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4339. case "(($ac_try" in
  4340. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4341. *) ac_try_echo=$ac_try;;
  4342. esac
  4343. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4344. $as_echo "$ac_try_echo") >&5
  4345. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4346. ac_status=$?
  4347. grep -v '^ *+' conftest.er1 >conftest.err
  4348. rm -f conftest.er1
  4349. cat conftest.err >&5
  4350. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4351. (exit $ac_status); } >/dev/null && {
  4352. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4353. test ! -s conftest.err
  4354. }; then
  4355. :
  4356. else
  4357. $as_echo "$as_me: failed program was:" >&5
  4358. sed 's/^/| /' conftest.$ac_ext >&5
  4359. # Broken: fails on valid input.
  4360. continue
  4361. fi
  4362. rm -f conftest.err conftest.$ac_ext
  4363. # OK, works on sane cases. Now check whether nonexistent headers
  4364. # can be detected and how.
  4365. cat >conftest.$ac_ext <<_ACEOF
  4366. /* confdefs.h. */
  4367. _ACEOF
  4368. cat confdefs.h >>conftest.$ac_ext
  4369. cat >>conftest.$ac_ext <<_ACEOF
  4370. /* end confdefs.h. */
  4371. #include <ac_nonexistent.h>
  4372. _ACEOF
  4373. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4374. case "(($ac_try" in
  4375. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4376. *) ac_try_echo=$ac_try;;
  4377. esac
  4378. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4379. $as_echo "$ac_try_echo") >&5
  4380. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4381. ac_status=$?
  4382. grep -v '^ *+' conftest.er1 >conftest.err
  4383. rm -f conftest.er1
  4384. cat conftest.err >&5
  4385. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4386. (exit $ac_status); } >/dev/null && {
  4387. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4388. test ! -s conftest.err
  4389. }; then
  4390. # Broken: success on invalid input.
  4391. continue
  4392. else
  4393. $as_echo "$as_me: failed program was:" >&5
  4394. sed 's/^/| /' conftest.$ac_ext >&5
  4395. # Passes both tests.
  4396. ac_preproc_ok=:
  4397. break
  4398. fi
  4399. rm -f conftest.err conftest.$ac_ext
  4400. done
  4401. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4402. rm -f conftest.err conftest.$ac_ext
  4403. if $ac_preproc_ok; then
  4404. break
  4405. fi
  4406. done
  4407. ac_cv_prog_CXXCPP=$CXXCPP
  4408. fi
  4409. CXXCPP=$ac_cv_prog_CXXCPP
  4410. else
  4411. ac_cv_prog_CXXCPP=$CXXCPP
  4412. fi
  4413. { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
  4414. $as_echo "$CXXCPP" >&6; }
  4415. ac_preproc_ok=false
  4416. for ac_cxx_preproc_warn_flag in '' yes
  4417. do
  4418. # Use a header file that comes with gcc, so configuring glibc
  4419. # with a fresh cross-compiler works.
  4420. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4421. # <limits.h> exists even on freestanding compilers.
  4422. # On the NeXT, cc -E runs the code through the compiler's parser,
  4423. # not just through cpp. "Syntax error" is here to catch this case.
  4424. cat >conftest.$ac_ext <<_ACEOF
  4425. /* confdefs.h. */
  4426. _ACEOF
  4427. cat confdefs.h >>conftest.$ac_ext
  4428. cat >>conftest.$ac_ext <<_ACEOF
  4429. /* end confdefs.h. */
  4430. #ifdef __STDC__
  4431. # include <limits.h>
  4432. #else
  4433. # include <assert.h>
  4434. #endif
  4435. Syntax error
  4436. _ACEOF
  4437. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4438. case "(($ac_try" in
  4439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4440. *) ac_try_echo=$ac_try;;
  4441. esac
  4442. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4443. $as_echo "$ac_try_echo") >&5
  4444. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4445. ac_status=$?
  4446. grep -v '^ *+' conftest.er1 >conftest.err
  4447. rm -f conftest.er1
  4448. cat conftest.err >&5
  4449. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4450. (exit $ac_status); } >/dev/null && {
  4451. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4452. test ! -s conftest.err
  4453. }; then
  4454. :
  4455. else
  4456. $as_echo "$as_me: failed program was:" >&5
  4457. sed 's/^/| /' conftest.$ac_ext >&5
  4458. # Broken: fails on valid input.
  4459. continue
  4460. fi
  4461. rm -f conftest.err conftest.$ac_ext
  4462. # OK, works on sane cases. Now check whether nonexistent headers
  4463. # can be detected and how.
  4464. cat >conftest.$ac_ext <<_ACEOF
  4465. /* confdefs.h. */
  4466. _ACEOF
  4467. cat confdefs.h >>conftest.$ac_ext
  4468. cat >>conftest.$ac_ext <<_ACEOF
  4469. /* end confdefs.h. */
  4470. #include <ac_nonexistent.h>
  4471. _ACEOF
  4472. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4473. case "(($ac_try" in
  4474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4475. *) ac_try_echo=$ac_try;;
  4476. esac
  4477. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4478. $as_echo "$ac_try_echo") >&5
  4479. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4480. ac_status=$?
  4481. grep -v '^ *+' conftest.er1 >conftest.err
  4482. rm -f conftest.er1
  4483. cat conftest.err >&5
  4484. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4485. (exit $ac_status); } >/dev/null && {
  4486. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4487. test ! -s conftest.err
  4488. }; then
  4489. # Broken: success on invalid input.
  4490. continue
  4491. else
  4492. $as_echo "$as_me: failed program was:" >&5
  4493. sed 's/^/| /' conftest.$ac_ext >&5
  4494. # Passes both tests.
  4495. ac_preproc_ok=:
  4496. break
  4497. fi
  4498. rm -f conftest.err conftest.$ac_ext
  4499. done
  4500. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4501. rm -f conftest.err conftest.$ac_ext
  4502. if $ac_preproc_ok; then
  4503. :
  4504. else
  4505. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  4506. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4507. { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4508. See \`config.log' for more details." >&5
  4509. $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  4510. See \`config.log' for more details." >&2;}
  4511. { (exit 1); exit 1; }; }; }
  4512. fi
  4513. ac_ext=cpp
  4514. ac_cpp='$CXXCPP $CPPFLAGS'
  4515. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4516. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4517. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4518. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4519. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4520. if test "${ac_cv_path_GREP+set}" = set; then
  4521. $as_echo_n "(cached) " >&6
  4522. else
  4523. if test -z "$GREP"; then
  4524. ac_path_GREP_found=false
  4525. # Loop through the user's path and test for each of PROGNAME-LIST
  4526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4527. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4528. do
  4529. IFS=$as_save_IFS
  4530. test -z "$as_dir" && as_dir=.
  4531. for ac_prog in grep ggrep; do
  4532. for ac_exec_ext in '' $ac_executable_extensions; do
  4533. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4534. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4535. # Check for GNU ac_path_GREP and select it if it is found.
  4536. # Check for GNU $ac_path_GREP
  4537. case `"$ac_path_GREP" --version 2>&1` in
  4538. *GNU*)
  4539. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4540. *)
  4541. ac_count=0
  4542. $as_echo_n 0123456789 >"conftest.in"
  4543. while :
  4544. do
  4545. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4546. mv "conftest.tmp" "conftest.in"
  4547. cp "conftest.in" "conftest.nl"
  4548. $as_echo 'GREP' >> "conftest.nl"
  4549. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4550. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4551. ac_count=`expr $ac_count + 1`
  4552. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4553. # Best one so far, save it but keep looking for a better one
  4554. ac_cv_path_GREP="$ac_path_GREP"
  4555. ac_path_GREP_max=$ac_count
  4556. fi
  4557. # 10*(2^10) chars as input seems more than enough
  4558. test $ac_count -gt 10 && break
  4559. done
  4560. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4561. esac
  4562. $ac_path_GREP_found && break 3
  4563. done
  4564. done
  4565. done
  4566. IFS=$as_save_IFS
  4567. if test -z "$ac_cv_path_GREP"; then
  4568. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4569. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4570. { (exit 1); exit 1; }; }
  4571. fi
  4572. else
  4573. ac_cv_path_GREP=$GREP
  4574. fi
  4575. fi
  4576. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4577. $as_echo "$ac_cv_path_GREP" >&6; }
  4578. GREP="$ac_cv_path_GREP"
  4579. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4580. $as_echo_n "checking for egrep... " >&6; }
  4581. if test "${ac_cv_path_EGREP+set}" = set; then
  4582. $as_echo_n "(cached) " >&6
  4583. else
  4584. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4585. then ac_cv_path_EGREP="$GREP -E"
  4586. else
  4587. if test -z "$EGREP"; then
  4588. ac_path_EGREP_found=false
  4589. # Loop through the user's path and test for each of PROGNAME-LIST
  4590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4591. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4592. do
  4593. IFS=$as_save_IFS
  4594. test -z "$as_dir" && as_dir=.
  4595. for ac_prog in egrep; do
  4596. for ac_exec_ext in '' $ac_executable_extensions; do
  4597. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4598. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4599. # Check for GNU ac_path_EGREP and select it if it is found.
  4600. # Check for GNU $ac_path_EGREP
  4601. case `"$ac_path_EGREP" --version 2>&1` in
  4602. *GNU*)
  4603. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4604. *)
  4605. ac_count=0
  4606. $as_echo_n 0123456789 >"conftest.in"
  4607. while :
  4608. do
  4609. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4610. mv "conftest.tmp" "conftest.in"
  4611. cp "conftest.in" "conftest.nl"
  4612. $as_echo 'EGREP' >> "conftest.nl"
  4613. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4614. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4615. ac_count=`expr $ac_count + 1`
  4616. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4617. # Best one so far, save it but keep looking for a better one
  4618. ac_cv_path_EGREP="$ac_path_EGREP"
  4619. ac_path_EGREP_max=$ac_count
  4620. fi
  4621. # 10*(2^10) chars as input seems more than enough
  4622. test $ac_count -gt 10 && break
  4623. done
  4624. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4625. esac
  4626. $ac_path_EGREP_found && break 3
  4627. done
  4628. done
  4629. done
  4630. IFS=$as_save_IFS
  4631. if test -z "$ac_cv_path_EGREP"; then
  4632. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4633. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4634. { (exit 1); exit 1; }; }
  4635. fi
  4636. else
  4637. ac_cv_path_EGREP=$EGREP
  4638. fi
  4639. fi
  4640. fi
  4641. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4642. $as_echo "$ac_cv_path_EGREP" >&6; }
  4643. EGREP="$ac_cv_path_EGREP"
  4644. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4645. $as_echo_n "checking for ANSI C header files... " >&6; }
  4646. if test "${ac_cv_header_stdc+set}" = set; then
  4647. $as_echo_n "(cached) " >&6
  4648. else
  4649. cat >conftest.$ac_ext <<_ACEOF
  4650. /* confdefs.h. */
  4651. _ACEOF
  4652. cat confdefs.h >>conftest.$ac_ext
  4653. cat >>conftest.$ac_ext <<_ACEOF
  4654. /* end confdefs.h. */
  4655. #include <stdlib.h>
  4656. #include <stdarg.h>
  4657. #include <string.h>
  4658. #include <float.h>
  4659. int
  4660. main ()
  4661. {
  4662. ;
  4663. return 0;
  4664. }
  4665. _ACEOF
  4666. rm -f conftest.$ac_objext
  4667. if { (ac_try="$ac_compile"
  4668. case "(($ac_try" in
  4669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4670. *) ac_try_echo=$ac_try;;
  4671. esac
  4672. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4673. $as_echo "$ac_try_echo") >&5
  4674. (eval "$ac_compile") 2>conftest.er1
  4675. ac_status=$?
  4676. grep -v '^ *+' conftest.er1 >conftest.err
  4677. rm -f conftest.er1
  4678. cat conftest.err >&5
  4679. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4680. (exit $ac_status); } && {
  4681. test -z "$ac_cxx_werror_flag" ||
  4682. test ! -s conftest.err
  4683. } && test -s conftest.$ac_objext; then
  4684. ac_cv_header_stdc=yes
  4685. else
  4686. $as_echo "$as_me: failed program was:" >&5
  4687. sed 's/^/| /' conftest.$ac_ext >&5
  4688. ac_cv_header_stdc=no
  4689. fi
  4690. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4691. if test $ac_cv_header_stdc = yes; then
  4692. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4693. cat >conftest.$ac_ext <<_ACEOF
  4694. /* confdefs.h. */
  4695. _ACEOF
  4696. cat confdefs.h >>conftest.$ac_ext
  4697. cat >>conftest.$ac_ext <<_ACEOF
  4698. /* end confdefs.h. */
  4699. #include <string.h>
  4700. _ACEOF
  4701. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4702. $EGREP "memchr" >/dev/null 2>&1; then
  4703. :
  4704. else
  4705. ac_cv_header_stdc=no
  4706. fi
  4707. rm -f conftest*
  4708. fi
  4709. if test $ac_cv_header_stdc = yes; then
  4710. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4711. cat >conftest.$ac_ext <<_ACEOF
  4712. /* confdefs.h. */
  4713. _ACEOF
  4714. cat confdefs.h >>conftest.$ac_ext
  4715. cat >>conftest.$ac_ext <<_ACEOF
  4716. /* end confdefs.h. */
  4717. #include <stdlib.h>
  4718. _ACEOF
  4719. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4720. $EGREP "free" >/dev/null 2>&1; then
  4721. :
  4722. else
  4723. ac_cv_header_stdc=no
  4724. fi
  4725. rm -f conftest*
  4726. fi
  4727. if test $ac_cv_header_stdc = yes; then
  4728. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4729. if test "$cross_compiling" = yes; then
  4730. :
  4731. else
  4732. cat >conftest.$ac_ext <<_ACEOF
  4733. /* confdefs.h. */
  4734. _ACEOF
  4735. cat confdefs.h >>conftest.$ac_ext
  4736. cat >>conftest.$ac_ext <<_ACEOF
  4737. /* end confdefs.h. */
  4738. #include <ctype.h>
  4739. #include <stdlib.h>
  4740. #if ((' ' & 0x0FF) == 0x020)
  4741. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4742. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4743. #else
  4744. # define ISLOWER(c) \
  4745. (('a' <= (c) && (c) <= 'i') \
  4746. || ('j' <= (c) && (c) <= 'r') \
  4747. || ('s' <= (c) && (c) <= 'z'))
  4748. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4749. #endif
  4750. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4751. int
  4752. main ()
  4753. {
  4754. int i;
  4755. for (i = 0; i < 256; i++)
  4756. if (XOR (islower (i), ISLOWER (i))
  4757. || toupper (i) != TOUPPER (i))
  4758. return 2;
  4759. return 0;
  4760. }
  4761. _ACEOF
  4762. rm -f conftest$ac_exeext
  4763. if { (ac_try="$ac_link"
  4764. case "(($ac_try" in
  4765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4766. *) ac_try_echo=$ac_try;;
  4767. esac
  4768. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4769. $as_echo "$ac_try_echo") >&5
  4770. (eval "$ac_link") 2>&5
  4771. ac_status=$?
  4772. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4773. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4774. { (case "(($ac_try" in
  4775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4776. *) ac_try_echo=$ac_try;;
  4777. esac
  4778. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4779. $as_echo "$ac_try_echo") >&5
  4780. (eval "$ac_try") 2>&5
  4781. ac_status=$?
  4782. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4783. (exit $ac_status); }; }; then
  4784. :
  4785. else
  4786. $as_echo "$as_me: program exited with status $ac_status" >&5
  4787. $as_echo "$as_me: failed program was:" >&5
  4788. sed 's/^/| /' conftest.$ac_ext >&5
  4789. ( exit $ac_status )
  4790. ac_cv_header_stdc=no
  4791. fi
  4792. rm -rf conftest.dSYM
  4793. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4794. fi
  4795. fi
  4796. fi
  4797. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  4798. $as_echo "$ac_cv_header_stdc" >&6; }
  4799. if test $ac_cv_header_stdc = yes; then
  4800. cat >>confdefs.h <<\_ACEOF
  4801. #define STDC_HEADERS 1
  4802. _ACEOF
  4803. fi
  4804. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4805. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4806. inttypes.h stdint.h unistd.h
  4807. do
  4808. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4809. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  4810. $as_echo_n "checking for $ac_header... " >&6; }
  4811. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4812. $as_echo_n "(cached) " >&6
  4813. else
  4814. cat >conftest.$ac_ext <<_ACEOF
  4815. /* confdefs.h. */
  4816. _ACEOF
  4817. cat confdefs.h >>conftest.$ac_ext
  4818. cat >>conftest.$ac_ext <<_ACEOF
  4819. /* end confdefs.h. */
  4820. $ac_includes_default
  4821. #include <$ac_header>
  4822. _ACEOF
  4823. rm -f conftest.$ac_objext
  4824. if { (ac_try="$ac_compile"
  4825. case "(($ac_try" in
  4826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4827. *) ac_try_echo=$ac_try;;
  4828. esac
  4829. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4830. $as_echo "$ac_try_echo") >&5
  4831. (eval "$ac_compile") 2>conftest.er1
  4832. ac_status=$?
  4833. grep -v '^ *+' conftest.er1 >conftest.err
  4834. rm -f conftest.er1
  4835. cat conftest.err >&5
  4836. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4837. (exit $ac_status); } && {
  4838. test -z "$ac_cxx_werror_flag" ||
  4839. test ! -s conftest.err
  4840. } && test -s conftest.$ac_objext; then
  4841. eval "$as_ac_Header=yes"
  4842. else
  4843. $as_echo "$as_me: failed program was:" >&5
  4844. sed 's/^/| /' conftest.$ac_ext >&5
  4845. eval "$as_ac_Header=no"
  4846. fi
  4847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4848. fi
  4849. ac_res=`eval 'as_val=${'$as_ac_Header'}
  4850. $as_echo "$as_val"'`
  4851. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  4852. $as_echo "$ac_res" >&6; }
  4853. as_val=`eval 'as_val=${'$as_ac_Header'}
  4854. $as_echo "$as_val"'`
  4855. if test "x$as_val" = x""yes; then
  4856. cat >>confdefs.h <<_ACEOF
  4857. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4858. _ACEOF
  4859. fi
  4860. done
  4861. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4862. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4863. $as_echo_n "checking for minix/config.h... " >&6; }
  4864. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4865. $as_echo_n "(cached) " >&6
  4866. fi
  4867. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4868. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  4869. else
  4870. # Is the header compilable?
  4871. { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  4872. $as_echo_n "checking minix/config.h usability... " >&6; }
  4873. cat >conftest.$ac_ext <<_ACEOF
  4874. /* confdefs.h. */
  4875. _ACEOF
  4876. cat confdefs.h >>conftest.$ac_ext
  4877. cat >>conftest.$ac_ext <<_ACEOF
  4878. /* end confdefs.h. */
  4879. $ac_includes_default
  4880. #include <minix/config.h>
  4881. _ACEOF
  4882. rm -f conftest.$ac_objext
  4883. if { (ac_try="$ac_compile"
  4884. case "(($ac_try" in
  4885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4886. *) ac_try_echo=$ac_try;;
  4887. esac
  4888. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4889. $as_echo "$ac_try_echo") >&5
  4890. (eval "$ac_compile") 2>conftest.er1
  4891. ac_status=$?
  4892. grep -v '^ *+' conftest.er1 >conftest.err
  4893. rm -f conftest.er1
  4894. cat conftest.err >&5
  4895. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4896. (exit $ac_status); } && {
  4897. test -z "$ac_cxx_werror_flag" ||
  4898. test ! -s conftest.err
  4899. } && test -s conftest.$ac_objext; then
  4900. ac_header_compiler=yes
  4901. else
  4902. $as_echo "$as_me: failed program was:" >&5
  4903. sed 's/^/| /' conftest.$ac_ext >&5
  4904. ac_header_compiler=no
  4905. fi
  4906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4907. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4908. $as_echo "$ac_header_compiler" >&6; }
  4909. # Is the header present?
  4910. { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  4911. $as_echo_n "checking minix/config.h presence... " >&6; }
  4912. cat >conftest.$ac_ext <<_ACEOF
  4913. /* confdefs.h. */
  4914. _ACEOF
  4915. cat confdefs.h >>conftest.$ac_ext
  4916. cat >>conftest.$ac_ext <<_ACEOF
  4917. /* end confdefs.h. */
  4918. #include <minix/config.h>
  4919. _ACEOF
  4920. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4921. case "(($ac_try" in
  4922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4923. *) ac_try_echo=$ac_try;;
  4924. esac
  4925. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4926. $as_echo "$ac_try_echo") >&5
  4927. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4928. ac_status=$?
  4929. grep -v '^ *+' conftest.er1 >conftest.err
  4930. rm -f conftest.er1
  4931. cat conftest.err >&5
  4932. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4933. (exit $ac_status); } >/dev/null && {
  4934. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4935. test ! -s conftest.err
  4936. }; then
  4937. ac_header_preproc=yes
  4938. else
  4939. $as_echo "$as_me: failed program was:" >&5
  4940. sed 's/^/| /' conftest.$ac_ext >&5
  4941. ac_header_preproc=no
  4942. fi
  4943. rm -f conftest.err conftest.$ac_ext
  4944. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4945. $as_echo "$ac_header_preproc" >&6; }
  4946. # So? What about this header?
  4947. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4948. yes:no: )
  4949. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4950. $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4951. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  4952. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  4953. ac_header_preproc=yes
  4954. ;;
  4955. no:yes:* )
  4956. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  4957. $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  4958. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  4959. $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  4960. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  4961. $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  4962. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  4963. $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4964. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  4965. $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  4966. { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  4967. $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  4968. ( cat <<\_ASBOX
  4969. ## ----------------------------------------------- ##
  4970. ## Report this to t-tujikawa@users.sourceforge.net ##
  4971. ## ----------------------------------------------- ##
  4972. _ASBOX
  4973. ) | sed "s/^/$as_me: WARNING: /" >&2
  4974. ;;
  4975. esac
  4976. { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
  4977. $as_echo_n "checking for minix/config.h... " >&6; }
  4978. if test "${ac_cv_header_minix_config_h+set}" = set; then
  4979. $as_echo_n "(cached) " >&6
  4980. else
  4981. ac_cv_header_minix_config_h=$ac_header_preproc
  4982. fi
  4983. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  4984. $as_echo "$ac_cv_header_minix_config_h" >&6; }
  4985. fi
  4986. if test "x$ac_cv_header_minix_config_h" = x""yes; then
  4987. MINIX=yes
  4988. else
  4989. MINIX=
  4990. fi
  4991. if test "$MINIX" = yes; then
  4992. cat >>confdefs.h <<\_ACEOF
  4993. #define _POSIX_SOURCE 1
  4994. _ACEOF
  4995. cat >>confdefs.h <<\_ACEOF
  4996. #define _POSIX_1_SOURCE 2
  4997. _ACEOF
  4998. cat >>confdefs.h <<\_ACEOF
  4999. #define _MINIX 1
  5000. _ACEOF
  5001. fi
  5002. { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
  5003. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  5004. if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
  5005. $as_echo_n "(cached) " >&6
  5006. else
  5007. cat >conftest.$ac_ext <<_ACEOF
  5008. /* confdefs.h. */
  5009. _ACEOF
  5010. cat confdefs.h >>conftest.$ac_ext
  5011. cat >>conftest.$ac_ext <<_ACEOF
  5012. /* end confdefs.h. */
  5013. # define __EXTENSIONS__ 1
  5014. $ac_includes_default
  5015. int
  5016. main ()
  5017. {
  5018. ;
  5019. return 0;
  5020. }
  5021. _ACEOF
  5022. rm -f conftest.$ac_objext
  5023. if { (ac_try="$ac_compile"
  5024. case "(($ac_try" in
  5025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5026. *) ac_try_echo=$ac_try;;
  5027. esac
  5028. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5029. $as_echo "$ac_try_echo") >&5
  5030. (eval "$ac_compile") 2>conftest.er1
  5031. ac_status=$?
  5032. grep -v '^ *+' conftest.er1 >conftest.err
  5033. rm -f conftest.er1
  5034. cat conftest.err >&5
  5035. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5036. (exit $ac_status); } && {
  5037. test -z "$ac_cxx_werror_flag" ||
  5038. test ! -s conftest.err
  5039. } && test -s conftest.$ac_objext; then
  5040. ac_cv_safe_to_define___extensions__=yes
  5041. else
  5042. $as_echo "$as_me: failed program was:" >&5
  5043. sed 's/^/| /' conftest.$ac_ext >&5
  5044. ac_cv_safe_to_define___extensions__=no
  5045. fi
  5046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5047. fi
  5048. { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
  5049. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  5050. test $ac_cv_safe_to_define___extensions__ = yes &&
  5051. cat >>confdefs.h <<\_ACEOF
  5052. #define __EXTENSIONS__ 1
  5053. _ACEOF
  5054. cat >>confdefs.h <<\_ACEOF
  5055. #define _ALL_SOURCE 1
  5056. _ACEOF
  5057. cat >>confdefs.h <<\_ACEOF
  5058. #define _GNU_SOURCE 1
  5059. _ACEOF
  5060. cat >>confdefs.h <<\_ACEOF
  5061. #define _POSIX_PTHREAD_SEMANTICS 1
  5062. _ACEOF
  5063. cat >>confdefs.h <<\_ACEOF
  5064. #define _TANDEM_SOURCE 1
  5065. _ACEOF
  5066. # Checks for libraries.
  5067. if test "x$with_libxml2" = "xyes"; then
  5068. # Check whether --with-xml-prefix was given.
  5069. if test "${with_xml_prefix+set}" = set; then
  5070. withval=$with_xml_prefix; xml_config_prefix="$withval"
  5071. else
  5072. xml_config_prefix=""
  5073. fi
  5074. # Check whether --with-xml-exec-prefix was given.
  5075. if test "${with_xml_exec_prefix+set}" = set; then
  5076. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  5077. else
  5078. xml_config_exec_prefix=""
  5079. fi
  5080. # Check whether --enable-xmltest was given.
  5081. if test "${enable_xmltest+set}" = set; then
  5082. enableval=$enable_xmltest;
  5083. else
  5084. enable_xmltest=yes
  5085. fi
  5086. if test x$xml_config_exec_prefix != x ; then
  5087. xml_config_args="$xml_config_args"
  5088. if test x${XML2_CONFIG+set} != xset ; then
  5089. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  5090. fi
  5091. fi
  5092. if test x$xml_config_prefix != x ; then
  5093. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  5094. if test x${XML2_CONFIG+set} != xset ; then
  5095. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  5096. fi
  5097. fi
  5098. # Extract the first word of "xml2-config", so it can be a program name with args.
  5099. set dummy xml2-config; ac_word=$2
  5100. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5101. $as_echo_n "checking for $ac_word... " >&6; }
  5102. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  5103. $as_echo_n "(cached) " >&6
  5104. else
  5105. case $XML2_CONFIG in
  5106. [\\/]* | ?:[\\/]*)
  5107. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  5108. ;;
  5109. *)
  5110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5111. for as_dir in $PATH
  5112. do
  5113. IFS=$as_save_IFS
  5114. test -z "$as_dir" && as_dir=.
  5115. for ac_exec_ext in '' $ac_executable_extensions; do
  5116. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5117. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5118. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5119. break 2
  5120. fi
  5121. done
  5122. done
  5123. IFS=$as_save_IFS
  5124. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  5125. ;;
  5126. esac
  5127. fi
  5128. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  5129. if test -n "$XML2_CONFIG"; then
  5130. { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  5131. $as_echo "$XML2_CONFIG" >&6; }
  5132. else
  5133. { $as_echo "$as_me:$LINENO: result: no" >&5
  5134. $as_echo "no" >&6; }
  5135. fi
  5136. min_xml_version=2.6.24
  5137. { $as_echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  5138. $as_echo_n "checking for libxml - version >= $min_xml_version... " >&6; }
  5139. no_xml=""
  5140. if test "$XML2_CONFIG" = "no" ; then
  5141. no_xml=yes
  5142. else
  5143. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  5144. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  5145. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  5146. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  5147. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  5148. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  5149. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  5150. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  5151. if test "x$enable_xmltest" = "xyes" ; then
  5152. ac_save_CPPFLAGS="$CPPFLAGS"
  5153. ac_save_LIBS="$LIBS"
  5154. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5155. LIBS="$XML_LIBS $LIBS"
  5156. rm -f conf.xmltest
  5157. if test "$cross_compiling" = yes; then
  5158. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5159. else
  5160. cat >conftest.$ac_ext <<_ACEOF
  5161. /* confdefs.h. */
  5162. _ACEOF
  5163. cat confdefs.h >>conftest.$ac_ext
  5164. cat >>conftest.$ac_ext <<_ACEOF
  5165. /* end confdefs.h. */
  5166. #include <stdlib.h>
  5167. #include <stdio.h>
  5168. #include <string.h>
  5169. #include <libxml/xmlversion.h>
  5170. int
  5171. main()
  5172. {
  5173. int xml_major_version, xml_minor_version, xml_micro_version;
  5174. int major, minor, micro;
  5175. char *tmp_version;
  5176. system("touch conf.xmltest");
  5177. /* Capture xml2-config output via autoconf/configure variables */
  5178. /* HP/UX 9 (%@#!) writes to sscanf strings */
  5179. tmp_version = (char *)strdup("$min_xml_version");
  5180. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  5181. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  5182. exit(1);
  5183. }
  5184. free(tmp_version);
  5185. /* Capture the version information from the header files */
  5186. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  5187. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  5188. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  5189. exit(1);
  5190. }
  5191. free(tmp_version);
  5192. /* Compare xml2-config output to the libxml headers */
  5193. if ((xml_major_version != $xml_config_major_version) ||
  5194. (xml_minor_version != $xml_config_minor_version) ||
  5195. (xml_micro_version != $xml_config_micro_version))
  5196. {
  5197. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  5198. xml_major_version, xml_minor_version, xml_micro_version);
  5199. printf("*** xml2-config (version %d.%d.%d)\n",
  5200. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  5201. return 1;
  5202. }
  5203. /* Compare the headers to the library to make sure we match */
  5204. /* Less than ideal -- doesn't provide us with return value feedback,
  5205. * only exits if there's a serious mismatch between header and library.
  5206. */
  5207. LIBXML_TEST_VERSION;
  5208. /* Test that the library is greater than our minimum version */
  5209. if ((xml_major_version > major) ||
  5210. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  5211. ((xml_major_version == major) && (xml_minor_version == minor) &&
  5212. (xml_micro_version >= micro)))
  5213. {
  5214. return 0;
  5215. }
  5216. else
  5217. {
  5218. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  5219. xml_major_version, xml_minor_version, xml_micro_version);
  5220. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  5221. major, minor, micro);
  5222. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  5223. printf("***\n");
  5224. printf("*** If you have already installed a sufficiently new version, this error\n");
  5225. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  5226. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  5227. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  5228. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  5229. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  5230. printf("*** so that the correct libraries are found at run-time))\n");
  5231. }
  5232. return 1;
  5233. }
  5234. _ACEOF
  5235. rm -f conftest$ac_exeext
  5236. if { (ac_try="$ac_link"
  5237. case "(($ac_try" in
  5238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5239. *) ac_try_echo=$ac_try;;
  5240. esac
  5241. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5242. $as_echo "$ac_try_echo") >&5
  5243. (eval "$ac_link") 2>&5
  5244. ac_status=$?
  5245. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5246. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5247. { (case "(($ac_try" in
  5248. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5249. *) ac_try_echo=$ac_try;;
  5250. esac
  5251. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5252. $as_echo "$ac_try_echo") >&5
  5253. (eval "$ac_try") 2>&5
  5254. ac_status=$?
  5255. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5256. (exit $ac_status); }; }; then
  5257. :
  5258. else
  5259. $as_echo "$as_me: program exited with status $ac_status" >&5
  5260. $as_echo "$as_me: failed program was:" >&5
  5261. sed 's/^/| /' conftest.$ac_ext >&5
  5262. ( exit $ac_status )
  5263. no_xml=yes
  5264. fi
  5265. rm -rf conftest.dSYM
  5266. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5267. fi
  5268. CPPFLAGS="$ac_save_CPPFLAGS"
  5269. LIBS="$ac_save_LIBS"
  5270. fi
  5271. fi
  5272. if test "x$no_xml" = x ; then
  5273. { $as_echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  5274. $as_echo "yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  5275. have_libxml2=yes
  5276. else
  5277. { $as_echo "$as_me:$LINENO: result: no" >&5
  5278. $as_echo "no" >&6; }
  5279. if test "$XML2_CONFIG" = "no" ; then
  5280. echo "*** The xml2-config script installed by LIBXML could not be found"
  5281. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  5282. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  5283. echo "*** full path to xml2-config."
  5284. else
  5285. if test -f conf.xmltest ; then
  5286. :
  5287. else
  5288. echo "*** Could not run libxml test program, checking why..."
  5289. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  5290. LIBS="$LIBS $XML_LIBS"
  5291. cat >conftest.$ac_ext <<_ACEOF
  5292. /* confdefs.h. */
  5293. _ACEOF
  5294. cat confdefs.h >>conftest.$ac_ext
  5295. cat >>conftest.$ac_ext <<_ACEOF
  5296. /* end confdefs.h. */
  5297. #include <libxml/xmlversion.h>
  5298. #include <stdio.h>
  5299. int
  5300. main ()
  5301. {
  5302. LIBXML_TEST_VERSION; return 0;
  5303. ;
  5304. return 0;
  5305. }
  5306. _ACEOF
  5307. rm -f conftest.$ac_objext conftest$ac_exeext
  5308. if { (ac_try="$ac_link"
  5309. case "(($ac_try" in
  5310. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5311. *) ac_try_echo=$ac_try;;
  5312. esac
  5313. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5314. $as_echo "$ac_try_echo") >&5
  5315. (eval "$ac_link") 2>conftest.er1
  5316. ac_status=$?
  5317. grep -v '^ *+' conftest.er1 >conftest.err
  5318. rm -f conftest.er1
  5319. cat conftest.err >&5
  5320. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5321. (exit $ac_status); } && {
  5322. test -z "$ac_cxx_werror_flag" ||
  5323. test ! -s conftest.err
  5324. } && test -s conftest$ac_exeext && {
  5325. test "$cross_compiling" = yes ||
  5326. $as_test_x conftest$ac_exeext
  5327. }; then
  5328. echo "*** The test program compiled, but did not run. This usually means"
  5329. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  5330. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  5331. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  5332. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  5333. echo "*** is required on your system"
  5334. echo "***"
  5335. echo "*** If you have an old version installed, it is best to remove it, although"
  5336. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  5337. else
  5338. $as_echo "$as_me: failed program was:" >&5
  5339. sed 's/^/| /' conftest.$ac_ext >&5
  5340. echo "*** The test program failed to compile or link. See the file config.log for the"
  5341. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  5342. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  5343. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  5344. fi
  5345. rm -rf conftest.dSYM
  5346. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5347. conftest$ac_exeext conftest.$ac_ext
  5348. CPPFLAGS="$ac_save_CPPFLAGS"
  5349. LIBS="$ac_save_LIBS"
  5350. fi
  5351. fi
  5352. XML_CPPFLAGS=""
  5353. XML_LIBS=""
  5354. :
  5355. fi
  5356. rm -f conf.xmltest
  5357. if test "x$have_libxml2" = "xyes"; then
  5358. cat >>confdefs.h <<\_ACEOF
  5359. #define HAVE_LIBXML2 1
  5360. _ACEOF
  5361. fi
  5362. fi
  5363. if test "x$with_libexpat" = "xyes" && test "x$have_libxml2" != "xyes"; then
  5364. # Check whether --with-libexpat-prefix was given.
  5365. if test "${with_libexpat_prefix+set}" = set; then
  5366. withval=$with_libexpat_prefix; libexpat_prefix=$withval
  5367. else
  5368. libexpat_prefix=""
  5369. fi
  5370. if test "x$libexpat_prefix" = "x"; then
  5371. libexpat_prefix="/usr"
  5372. fi
  5373. libexpat_prefix_lib=$libexpat_prefix/lib
  5374. libexpat_prefix_include=$libexpat_prefix/include
  5375. LIBS_save=$LIBS
  5376. CPPFLAGS_save=$CPPFLAGS
  5377. LIBS="-L$libexpat_prefix_lib $LIBS"
  5378. CPPFLAGS="-I$libexpat_prefix_include $CPPFLAGS"
  5379. { $as_echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
  5380. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  5381. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
  5382. $as_echo_n "(cached) " >&6
  5383. else
  5384. ac_check_lib_save_LIBS=$LIBS
  5385. LIBS="-lexpat $LIBS"
  5386. cat >conftest.$ac_ext <<_ACEOF
  5387. /* confdefs.h. */
  5388. _ACEOF
  5389. cat confdefs.h >>conftest.$ac_ext
  5390. cat >>conftest.$ac_ext <<_ACEOF
  5391. /* end confdefs.h. */
  5392. /* Override any GCC internal prototype to avoid an error.
  5393. Use char because int might match the return type of a GCC
  5394. builtin and then its argument prototype would still apply. */
  5395. #ifdef __cplusplus
  5396. extern "C"
  5397. #endif
  5398. char XML_ParserCreate ();
  5399. int
  5400. main ()
  5401. {
  5402. return XML_ParserCreate ();
  5403. ;
  5404. return 0;
  5405. }
  5406. _ACEOF
  5407. rm -f conftest.$ac_objext conftest$ac_exeext
  5408. if { (ac_try="$ac_link"
  5409. case "(($ac_try" in
  5410. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5411. *) ac_try_echo=$ac_try;;
  5412. esac
  5413. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5414. $as_echo "$ac_try_echo") >&5
  5415. (eval "$ac_link") 2>conftest.er1
  5416. ac_status=$?
  5417. grep -v '^ *+' conftest.er1 >conftest.err
  5418. rm -f conftest.er1
  5419. cat conftest.err >&5
  5420. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5421. (exit $ac_status); } && {
  5422. test -z "$ac_cxx_werror_flag" ||
  5423. test ! -s conftest.err
  5424. } && test -s conftest$ac_exeext && {
  5425. test "$cross_compiling" = yes ||
  5426. $as_test_x conftest$ac_exeext
  5427. }; then
  5428. ac_cv_lib_expat_XML_ParserCreate=yes
  5429. else
  5430. $as_echo "$as_me: failed program was:" >&5
  5431. sed 's/^/| /' conftest.$ac_ext >&5
  5432. ac_cv_lib_expat_XML_ParserCreate=no
  5433. fi
  5434. rm -rf conftest.dSYM
  5435. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5436. conftest$ac_exeext conftest.$ac_ext
  5437. LIBS=$ac_check_lib_save_LIBS
  5438. fi
  5439. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  5440. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  5441. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then
  5442. have_libexpat=yes
  5443. fi
  5444. if test "x$have_libexpat" = "xyes"; then
  5445. cat >>confdefs.h <<\_ACEOF
  5446. #define HAVE_LIBEXPAT 1
  5447. _ACEOF
  5448. LIBEXPAT_LIBS="-L$libexpat_prefix_lib -lexpat"
  5449. LIBEXPAT_CPPFLAGS="-I$libexpat_prefix_include"
  5450. fi
  5451. LIBS=$LIBS_save
  5452. CPPFLAGS=$CPPFLAGS_save
  5453. fi
  5454. if test "x$with_sqlite3" = "xyes"; then
  5455. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  5456. if test -n "$ac_tool_prefix"; then
  5457. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  5458. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  5459. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5460. $as_echo_n "checking for $ac_word... " >&6; }
  5461. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  5462. $as_echo_n "(cached) " >&6
  5463. else
  5464. case $PKG_CONFIG in
  5465. [\\/]* | ?:[\\/]*)
  5466. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  5467. ;;
  5468. *)
  5469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5470. for as_dir in $PATH
  5471. do
  5472. IFS=$as_save_IFS
  5473. test -z "$as_dir" && as_dir=.
  5474. for ac_exec_ext in '' $ac_executable_extensions; do
  5475. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5476. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5477. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5478. break 2
  5479. fi
  5480. done
  5481. done
  5482. IFS=$as_save_IFS
  5483. ;;
  5484. esac
  5485. fi
  5486. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  5487. if test -n "$PKG_CONFIG"; then
  5488. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  5489. $as_echo "$PKG_CONFIG" >&6; }
  5490. else
  5491. { $as_echo "$as_me:$LINENO: result: no" >&5
  5492. $as_echo "no" >&6; }
  5493. fi
  5494. fi
  5495. if test -z "$ac_cv_path_PKG_CONFIG"; then
  5496. ac_pt_PKG_CONFIG=$PKG_CONFIG
  5497. # Extract the first word of "pkg-config", so it can be a program name with args.
  5498. set dummy pkg-config; ac_word=$2
  5499. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5500. $as_echo_n "checking for $ac_word... " >&6; }
  5501. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  5502. $as_echo_n "(cached) " >&6
  5503. else
  5504. case $ac_pt_PKG_CONFIG in
  5505. [\\/]* | ?:[\\/]*)
  5506. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  5507. ;;
  5508. *)
  5509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5510. for as_dir in $PATH
  5511. do
  5512. IFS=$as_save_IFS
  5513. test -z "$as_dir" && as_dir=.
  5514. for ac_exec_ext in '' $ac_executable_extensions; do
  5515. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5516. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5517. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5518. break 2
  5519. fi
  5520. done
  5521. done
  5522. IFS=$as_save_IFS
  5523. ;;
  5524. esac
  5525. fi
  5526. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  5527. if test -n "$ac_pt_PKG_CONFIG"; then
  5528. { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  5529. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  5530. else
  5531. { $as_echo "$as_me:$LINENO: result: no" >&5
  5532. $as_echo "no" >&6; }
  5533. fi
  5534. if test "x$ac_pt_PKG_CONFIG" = x; then
  5535. PKG_CONFIG=""
  5536. else
  5537. case $cross_compiling:$ac_tool_warned in
  5538. yes:)
  5539. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5540. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5541. ac_tool_warned=yes ;;
  5542. esac
  5543. PKG_CONFIG=$ac_pt_PKG_CONFIG
  5544. fi
  5545. else
  5546. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  5547. fi
  5548. fi
  5549. if test -n "$PKG_CONFIG"; then
  5550. _pkg_min_version=0.9.0
  5551. { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  5552. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  5553. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  5554. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5555. $as_echo "yes" >&6; }
  5556. else
  5557. { $as_echo "$as_me:$LINENO: result: no" >&5
  5558. $as_echo "no" >&6; }
  5559. PKG_CONFIG=""
  5560. fi
  5561. fi
  5562. # Check whether --with-sqlite3-prefix was given.
  5563. if test "${with_sqlite3_prefix+set}" = set; then
  5564. withval=$with_sqlite3_prefix; sqlite3_prefix=$withval
  5565. else
  5566. sqlite3_prefix=""
  5567. fi
  5568. if test "x$sqlite3_prefix" = "x"; then
  5569. sqlite3_prefix="/usr"
  5570. fi
  5571. LIBS_save=$LIBS
  5572. CPPFLAGS_save=$CPPFLAGS
  5573. pkg_failed=no
  5574. { $as_echo "$as_me:$LINENO: checking for SQLITE3" >&5
  5575. $as_echo_n "checking for SQLITE3... " >&6; }
  5576. if test -n "$PKG_CONFIG"; then
  5577. if test -n "$SQLITE3_CFLAGS"; then
  5578. pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
  5579. else
  5580. if test -n "$PKG_CONFIG" && \
  5581. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
  5582. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5583. ac_status=$?
  5584. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5585. (exit $ac_status); }; then
  5586. pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
  5587. else
  5588. pkg_failed=yes
  5589. fi
  5590. fi
  5591. else
  5592. pkg_failed=untried
  5593. fi
  5594. if test -n "$PKG_CONFIG"; then
  5595. if test -n "$SQLITE3_LIBS"; then
  5596. pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
  5597. else
  5598. if test -n "$PKG_CONFIG" && \
  5599. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
  5600. ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
  5601. ac_status=$?
  5602. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5603. (exit $ac_status); }; then
  5604. pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
  5605. else
  5606. pkg_failed=yes
  5607. fi
  5608. fi
  5609. else
  5610. pkg_failed=untried
  5611. fi
  5612. if test $pkg_failed = yes; then
  5613. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5614. _pkg_short_errors_supported=yes
  5615. else
  5616. _pkg_short_errors_supported=no
  5617. fi
  5618. if test $_pkg_short_errors_supported = yes; then
  5619. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
  5620. else
  5621. SQLITE3_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
  5622. fi
  5623. # Put the nasty error message in config.log where it belongs
  5624. echo "$SQLITE3_PKG_ERRORS" >&5
  5625. { $as_echo "$as_me:$LINENO: result: no" >&5
  5626. $as_echo "no" >&6; }
  5627. have_sqlite3=no
  5628. elif test $pkg_failed = untried; then
  5629. have_sqlite3=no
  5630. else
  5631. SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
  5632. SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
  5633. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5634. $as_echo "yes" >&6; }
  5635. have_sqlite3=yes
  5636. fi
  5637. if test "x$have_sqlite3" != "xyes"; then
  5638. { $as_echo "$as_me:$LINENO: WARNING: $SQLITE3_PKG_ERRORS" >&5
  5639. $as_echo "$as_me: WARNING: $SQLITE3_PKG_ERRORS" >&2;}
  5640. sqlite3_prefix_lib=$sqlite3_prefix/lib
  5641. sqlite3_prefix_include=$sqlite3_prefix/include
  5642. LIBS="-L$sqlite3_prefix_lib $LIBS"
  5643. CPPFLAGS="-I$sqlite3_prefix_include $CPPFLAGS"
  5644. { $as_echo "$as_me:$LINENO: checking for sqlite3_open in -lsqlite3" >&5
  5645. $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; }
  5646. if test "${ac_cv_lib_sqlite3_sqlite3_open+set}" = set; then
  5647. $as_echo_n "(cached) " >&6
  5648. else
  5649. ac_check_lib_save_LIBS=$LIBS
  5650. LIBS="-lsqlite3 $LIBS"
  5651. cat >conftest.$ac_ext <<_ACEOF
  5652. /* confdefs.h. */
  5653. _ACEOF
  5654. cat confdefs.h >>conftest.$ac_ext
  5655. cat >>conftest.$ac_ext <<_ACEOF
  5656. /* end confdefs.h. */
  5657. /* Override any GCC internal prototype to avoid an error.
  5658. Use char because int might match the return type of a GCC
  5659. builtin and then its argument prototype would still apply. */
  5660. #ifdef __cplusplus
  5661. extern "C"
  5662. #endif
  5663. char sqlite3_open ();
  5664. int
  5665. main ()
  5666. {
  5667. return sqlite3_open ();
  5668. ;
  5669. return 0;
  5670. }
  5671. _ACEOF
  5672. rm -f conftest.$ac_objext conftest$ac_exeext
  5673. if { (ac_try="$ac_link"
  5674. case "(($ac_try" in
  5675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5676. *) ac_try_echo=$ac_try;;
  5677. esac
  5678. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5679. $as_echo "$ac_try_echo") >&5
  5680. (eval "$ac_link") 2>conftest.er1
  5681. ac_status=$?
  5682. grep -v '^ *+' conftest.er1 >conftest.err
  5683. rm -f conftest.er1
  5684. cat conftest.err >&5
  5685. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5686. (exit $ac_status); } && {
  5687. test -z "$ac_cxx_werror_flag" ||
  5688. test ! -s conftest.err
  5689. } && test -s conftest$ac_exeext && {
  5690. test "$cross_compiling" = yes ||
  5691. $as_test_x conftest$ac_exeext
  5692. }; then
  5693. ac_cv_lib_sqlite3_sqlite3_open=yes
  5694. else
  5695. $as_echo "$as_me: failed program was:" >&5
  5696. sed 's/^/| /' conftest.$ac_ext >&5
  5697. ac_cv_lib_sqlite3_sqlite3_open=no
  5698. fi
  5699. rm -rf conftest.dSYM
  5700. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5701. conftest$ac_exeext conftest.$ac_ext
  5702. LIBS=$ac_check_lib_save_LIBS
  5703. fi
  5704. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5
  5705. $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; }
  5706. if test "x$ac_cv_lib_sqlite3_sqlite3_open" = x""yes; then
  5707. have_sqlite3=yes
  5708. fi
  5709. if test "x$have_sqlite3" = "xyes"; then
  5710. SQLITE3_LIBS="-L$sqlite3_prefix_lib -lsqlite3"
  5711. SQLITE3_CFLAGS="-I$sqlite3_prefix_include"
  5712. fi
  5713. fi
  5714. if test "x$have_sqlite3" = "xyes"; then
  5715. LIBS="$SQLITE3_LIBS $LIBS"
  5716. CPPFLAGS="$SQLITE3_CFLAGS $CPPFLAGS"
  5717. for ac_func in sqlite3_open_v2
  5718. do
  5719. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5720. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  5721. $as_echo_n "checking for $ac_func... " >&6; }
  5722. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5723. $as_echo_n "(cached) " >&6
  5724. else
  5725. cat >conftest.$ac_ext <<_ACEOF
  5726. /* confdefs.h. */
  5727. _ACEOF
  5728. cat confdefs.h >>conftest.$ac_ext
  5729. cat >>conftest.$ac_ext <<_ACEOF
  5730. /* end confdefs.h. */
  5731. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5732. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5733. #define $ac_func innocuous_$ac_func
  5734. /* System header to define __stub macros and hopefully few prototypes,
  5735. which can conflict with char $ac_func (); below.
  5736. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5737. <limits.h> exists even on freestanding compilers. */
  5738. #ifdef __STDC__
  5739. # include <limits.h>
  5740. #else
  5741. # include <assert.h>
  5742. #endif
  5743. #undef $ac_func
  5744. /* Override any GCC internal prototype to avoid an error.
  5745. Use char because int might match the return type of a GCC
  5746. builtin and then its argument prototype would still apply. */
  5747. #ifdef __cplusplus
  5748. extern "C"
  5749. #endif
  5750. char $ac_func ();
  5751. /* The GNU C library defines this for functions which it implements
  5752. to always fail with ENOSYS. Some functions are actually named
  5753. something starting with __ and the normal name is an alias. */
  5754. #if defined __stub_$ac_func || defined __stub___$ac_func
  5755. choke me
  5756. #endif
  5757. int
  5758. main ()
  5759. {
  5760. return $ac_func ();
  5761. ;
  5762. return 0;
  5763. }
  5764. _ACEOF
  5765. rm -f conftest.$ac_objext conftest$ac_exeext
  5766. if { (ac_try="$ac_link"
  5767. case "(($ac_try" in
  5768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5769. *) ac_try_echo=$ac_try;;
  5770. esac
  5771. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  5772. $as_echo "$ac_try_echo") >&5
  5773. (eval "$ac_link") 2>conftest.er1
  5774. ac_status=$?
  5775. grep -v '^ *+' conftest.er1 >conftest.err
  5776. rm -f conftest.er1
  5777. cat conftest.err >&5
  5778. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5779. (exit $ac_status); } && {
  5780. test -z "$ac_cxx_werror_flag" ||
  5781. test ! -s conftest.err
  5782. } && test -s conftest$ac_exeext && {
  5783. test "$cross_compiling" = yes ||
  5784. $as_test_x conftest$ac_exeext
  5785. }; then
  5786. eval "$as_ac_var=yes"
  5787. else
  5788. $as_echo "$as_me: failed program was:" >&5
  5789. sed 's/^/| /' conftest.$ac_ext >&5
  5790. eval "$as_ac_var=no"
  5791. fi
  5792. rm -rf conftest.dSYM
  5793. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5794. conftest$ac_exeext conftest.$ac_ext
  5795. fi
  5796. ac_res=`eval 'as_val=${'$as_ac_var'}
  5797. $as_echo "$as_val"'`
  5798. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  5799. $as_echo "$ac_res" >&6; }
  5800. as_val=`eval 'as_val=${'$as_ac_var'}
  5801. $as_echo "$as_val"'`
  5802. if test "x$as_val" = x""yes; then
  5803. cat >>confdefs.h <<_ACEOF
  5804. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5805. _ACEOF
  5806. fi
  5807. done
  5808. cat >>confdefs.h <<\_ACEOF
  5809. #define HAVE_SQLITE3 1
  5810. _ACEOF
  5811. fi
  5812. LIBS=$LIBS_save
  5813. CPPFLAGS=$CPPFLAGS_save
  5814. fi
  5815. if test "x$with_gnutls" = "xyes"; then
  5816. # gnutls >= 2.8 doesn't have libgnutls-config anymore.
  5817. # First check the presence of libgnutls using pkg-config.
  5818. pkg_failed=no
  5819. { $as_echo "$as_me:$LINENO: checking for LIBGNUTLS" >&5
  5820. $as_echo_n "checking for LIBGNUTLS... " >&6; }
  5821. if test -n "$PKG_CONFIG"; then
  5822. if test -n "$LIBGNUTLS_CFLAGS"; then
  5823. pkg_cv_LIBGNUTLS_CFLAGS="$LIBGNUTLS_CFLAGS"
  5824. else
  5825. if test -n "$PKG_CONFIG" && \
  5826. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\"") >&5
  5827. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5828. ac_status=$?
  5829. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5830. (exit $ac_status); }; then
  5831. pkg_cv_LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 1.2.9" 2>/dev/null`
  5832. else
  5833. pkg_failed=yes
  5834. fi
  5835. fi
  5836. else
  5837. pkg_failed=untried
  5838. fi
  5839. if test -n "$PKG_CONFIG"; then
  5840. if test -n "$LIBGNUTLS_LIBS"; then
  5841. pkg_cv_LIBGNUTLS_LIBS="$LIBGNUTLS_LIBS"
  5842. else
  5843. if test -n "$PKG_CONFIG" && \
  5844. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnutls >= 1.2.9\"") >&5
  5845. ($PKG_CONFIG --exists --print-errors "gnutls >= 1.2.9") 2>&5
  5846. ac_status=$?
  5847. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5848. (exit $ac_status); }; then
  5849. pkg_cv_LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 1.2.9" 2>/dev/null`
  5850. else
  5851. pkg_failed=yes
  5852. fi
  5853. fi
  5854. else
  5855. pkg_failed=untried
  5856. fi
  5857. if test $pkg_failed = yes; then
  5858. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  5859. _pkg_short_errors_supported=yes
  5860. else
  5861. _pkg_short_errors_supported=no
  5862. fi
  5863. if test $_pkg_short_errors_supported = yes; then
  5864. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5865. else
  5866. LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 1.2.9"`
  5867. fi
  5868. # Put the nasty error message in config.log where it belongs
  5869. echo "$LIBGNUTLS_PKG_ERRORS" >&5
  5870. { $as_echo "$as_me:$LINENO: result: no" >&5
  5871. $as_echo "no" >&6; }
  5872. have_libgnutls=no
  5873. elif test $pkg_failed = untried; then
  5874. have_libgnutls=no
  5875. else
  5876. LIBGNUTLS_CFLAGS=$pkg_cv_LIBGNUTLS_CFLAGS
  5877. LIBGNUTLS_LIBS=$pkg_cv_LIBGNUTLS_LIBS
  5878. { $as_echo "$as_me:$LINENO: result: yes" >&5
  5879. $as_echo "yes" >&6; }
  5880. have_libgnutls=yes
  5881. fi
  5882. # If no libgnutls found by pkg-config, fall back to old macro
  5883. if test "x$have_libgnutls" = "xno"; then
  5884. { $as_echo "$as_me:$LINENO: WARNING: $LIBGNUTLS_PKG_ERRORS" >&5
  5885. $as_echo "$as_me: WARNING: $LIBGNUTLS_PKG_ERRORS" >&2;}
  5886. # Check whether --with-libgnutls-prefix was given.
  5887. if test "${with_libgnutls_prefix+set}" = set; then
  5888. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  5889. else
  5890. libgnutls_config_prefix=""
  5891. fi
  5892. if test x$libgnutls_config_prefix != x ; then
  5893. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  5894. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  5895. fi
  5896. fi
  5897. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  5898. set dummy libgnutls-config; ac_word=$2
  5899. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5900. $as_echo_n "checking for $ac_word... " >&6; }
  5901. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  5902. $as_echo_n "(cached) " >&6
  5903. else
  5904. case $LIBGNUTLS_CONFIG in
  5905. [\\/]* | ?:[\\/]*)
  5906. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  5907. ;;
  5908. *)
  5909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5910. for as_dir in $PATH
  5911. do
  5912. IFS=$as_save_IFS
  5913. test -z "$as_dir" && as_dir=.
  5914. for ac_exec_ext in '' $ac_executable_extensions; do
  5915. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5916. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  5917. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5918. break 2
  5919. fi
  5920. done
  5921. done
  5922. IFS=$as_save_IFS
  5923. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  5924. ;;
  5925. esac
  5926. fi
  5927. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  5928. if test -n "$LIBGNUTLS_CONFIG"; then
  5929. { $as_echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  5930. $as_echo "$LIBGNUTLS_CONFIG" >&6; }
  5931. else
  5932. { $as_echo "$as_me:$LINENO: result: no" >&5
  5933. $as_echo "no" >&6; }
  5934. fi
  5935. min_libgnutls_version=1.2.9
  5936. { $as_echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  5937. $as_echo_n "checking for libgnutls - version >= $min_libgnutls_version... " >&6; }
  5938. no_libgnutls=""
  5939. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  5940. no_libgnutls=yes
  5941. else
  5942. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  5943. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  5944. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  5945. ac_save_CFLAGS="$CFLAGS"
  5946. ac_save_LIBS="$LIBS"
  5947. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  5948. LIBS="$LIBS $LIBGNUTLS_LIBS"
  5949. rm -f conf.libgnutlstest
  5950. if test "$cross_compiling" = yes; then
  5951. echo $ac_n "cross compiling; assumed OK... $ac_c"
  5952. else
  5953. cat >conftest.$ac_ext <<_ACEOF
  5954. /* confdefs.h. */
  5955. _ACEOF
  5956. cat confdefs.h >>conftest.$ac_ext
  5957. cat >>conftest.$ac_ext <<_ACEOF
  5958. /* end confdefs.h. */
  5959. #include <stdio.h>
  5960. #include <stdlib.h>
  5961. #include <string.h>
  5962. #include <gnutls/gnutls.h>
  5963. int
  5964. main ()
  5965. {
  5966. system ("touch conf.libgnutlstest");
  5967. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  5968. {
  5969. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  5970. "$libgnutls_config_version", gnutls_check_version(NULL) );
  5971. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  5972. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  5973. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  5974. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  5975. printf("*** required on your system.\n");
  5976. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  5977. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  5978. printf("*** before re-running configure\n");
  5979. }
  5980. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  5981. {
  5982. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  5983. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  5984. }
  5985. else
  5986. {
  5987. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  5988. {
  5989. return 0;
  5990. }
  5991. else
  5992. {
  5993. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  5994. gnutls_check_version(NULL) );
  5995. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  5996. "$min_libgnutls_version" );
  5997. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  5998. printf("*** \n");
  5999. printf("*** If you have already installed a sufficiently new version, this error\n");
  6000. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  6001. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  6002. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  6003. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  6004. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  6005. printf("*** so that the correct libraries are found at run-time))\n");
  6006. }
  6007. }
  6008. return 1;
  6009. }
  6010. _ACEOF
  6011. rm -f conftest$ac_exeext
  6012. if { (ac_try="$ac_link"
  6013. case "(($ac_try" in
  6014. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6015. *) ac_try_echo=$ac_try;;
  6016. esac
  6017. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6018. $as_echo "$ac_try_echo") >&5
  6019. (eval "$ac_link") 2>&5
  6020. ac_status=$?
  6021. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6022. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6023. { (case "(($ac_try" in
  6024. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6025. *) ac_try_echo=$ac_try;;
  6026. esac
  6027. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6028. $as_echo "$ac_try_echo") >&5
  6029. (eval "$ac_try") 2>&5
  6030. ac_status=$?
  6031. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6032. (exit $ac_status); }; }; then
  6033. :
  6034. else
  6035. $as_echo "$as_me: program exited with status $ac_status" >&5
  6036. $as_echo "$as_me: failed program was:" >&5
  6037. sed 's/^/| /' conftest.$ac_ext >&5
  6038. ( exit $ac_status )
  6039. no_libgnutls=yes
  6040. fi
  6041. rm -rf conftest.dSYM
  6042. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6043. fi
  6044. CFLAGS="$ac_save_CFLAGS"
  6045. LIBS="$ac_save_LIBS"
  6046. fi
  6047. if test "x$no_libgnutls" = x ; then
  6048. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6049. $as_echo "yes" >&6; }
  6050. have_libgnutls=yes
  6051. else
  6052. if test -f conf.libgnutlstest ; then
  6053. :
  6054. else
  6055. { $as_echo "$as_me:$LINENO: result: no" >&5
  6056. $as_echo "no" >&6; }
  6057. fi
  6058. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  6059. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  6060. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  6061. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  6062. echo "*** full path to libgnutls-config."
  6063. else
  6064. if test -f conf.libgnutlstest ; then
  6065. :
  6066. else
  6067. echo "*** Could not run libgnutls test program, checking why..."
  6068. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  6069. LIBS="$LIBS $LIBGNUTLS_LIBS"
  6070. cat >conftest.$ac_ext <<_ACEOF
  6071. /* confdefs.h. */
  6072. _ACEOF
  6073. cat confdefs.h >>conftest.$ac_ext
  6074. cat >>conftest.$ac_ext <<_ACEOF
  6075. /* end confdefs.h. */
  6076. #include <stdio.h>
  6077. #include <stdlib.h>
  6078. #include <string.h>
  6079. #include <gnutls/gnutls.h>
  6080. int
  6081. main ()
  6082. {
  6083. return !!gnutls_check_version(NULL);
  6084. ;
  6085. return 0;
  6086. }
  6087. _ACEOF
  6088. rm -f conftest.$ac_objext conftest$ac_exeext
  6089. if { (ac_try="$ac_link"
  6090. case "(($ac_try" in
  6091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6092. *) ac_try_echo=$ac_try;;
  6093. esac
  6094. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6095. $as_echo "$ac_try_echo") >&5
  6096. (eval "$ac_link") 2>conftest.er1
  6097. ac_status=$?
  6098. grep -v '^ *+' conftest.er1 >conftest.err
  6099. rm -f conftest.er1
  6100. cat conftest.err >&5
  6101. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6102. (exit $ac_status); } && {
  6103. test -z "$ac_cxx_werror_flag" ||
  6104. test ! -s conftest.err
  6105. } && test -s conftest$ac_exeext && {
  6106. test "$cross_compiling" = yes ||
  6107. $as_test_x conftest$ac_exeext
  6108. }; then
  6109. echo "*** The test program compiled, but did not run. This usually means"
  6110. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  6111. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  6112. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  6113. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  6114. echo "*** is required on your system"
  6115. echo "***"
  6116. echo "*** If you have an old version installed, it is best to remove it, although"
  6117. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  6118. echo "***"
  6119. else
  6120. $as_echo "$as_me: failed program was:" >&5
  6121. sed 's/^/| /' conftest.$ac_ext >&5
  6122. echo "*** The test program failed to compile or link. See the file config.log for the"
  6123. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  6124. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  6125. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  6126. fi
  6127. rm -rf conftest.dSYM
  6128. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6129. conftest$ac_exeext conftest.$ac_ext
  6130. CFLAGS="$ac_save_CFLAGS"
  6131. LIBS="$ac_save_LIBS"
  6132. fi
  6133. fi
  6134. LIBGNUTLS_CFLAGS=""
  6135. LIBGNUTLS_LIBS=""
  6136. :
  6137. fi
  6138. rm -f conf.libgnutlstest
  6139. fi
  6140. if test "x$have_libgnutls" = "xyes"; then
  6141. cat >>confdefs.h <<\_ACEOF
  6142. #define HAVE_LIBGNUTLS 1
  6143. _ACEOF
  6144. fi
  6145. fi
  6146. if test "x$have_libgnutls" = "xyes"; then
  6147. # Check whether --with-libgcrypt-prefix was given.
  6148. if test "${with_libgcrypt_prefix+set}" = set; then
  6149. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  6150. else
  6151. libgcrypt_config_prefix=""
  6152. fi
  6153. if test x$libgcrypt_config_prefix != x ; then
  6154. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  6155. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  6156. fi
  6157. fi
  6158. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  6159. set dummy libgcrypt-config; ac_word=$2
  6160. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6161. $as_echo_n "checking for $ac_word... " >&6; }
  6162. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  6163. $as_echo_n "(cached) " >&6
  6164. else
  6165. case $LIBGCRYPT_CONFIG in
  6166. [\\/]* | ?:[\\/]*)
  6167. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  6168. ;;
  6169. *)
  6170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6171. for as_dir in $PATH
  6172. do
  6173. IFS=$as_save_IFS
  6174. test -z "$as_dir" && as_dir=.
  6175. for ac_exec_ext in '' $ac_executable_extensions; do
  6176. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6177. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  6178. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6179. break 2
  6180. fi
  6181. done
  6182. done
  6183. IFS=$as_save_IFS
  6184. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  6185. ;;
  6186. esac
  6187. fi
  6188. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  6189. if test -n "$LIBGCRYPT_CONFIG"; then
  6190. { $as_echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  6191. $as_echo "$LIBGCRYPT_CONFIG" >&6; }
  6192. else
  6193. { $as_echo "$as_me:$LINENO: result: no" >&5
  6194. $as_echo "no" >&6; }
  6195. fi
  6196. tmp=1.2.2
  6197. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  6198. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  6199. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  6200. else
  6201. req_libgcrypt_api=0
  6202. min_libgcrypt_version="$tmp"
  6203. fi
  6204. { $as_echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  6205. $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
  6206. ok=no
  6207. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  6208. req_major=`echo $min_libgcrypt_version | \
  6209. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  6210. req_minor=`echo $min_libgcrypt_version | \
  6211. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  6212. req_micro=`echo $min_libgcrypt_version | \
  6213. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  6214. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  6215. major=`echo $libgcrypt_config_version | \
  6216. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  6217. minor=`echo $libgcrypt_config_version | \
  6218. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  6219. micro=`echo $libgcrypt_config_version | \
  6220. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  6221. if test "$major" -gt "$req_major"; then
  6222. ok=yes
  6223. else
  6224. if test "$major" -eq "$req_major"; then
  6225. if test "$minor" -gt "$req_minor"; then
  6226. ok=yes
  6227. else
  6228. if test "$minor" -eq "$req_minor"; then
  6229. if test "$micro" -ge "$req_micro"; then
  6230. ok=yes
  6231. fi
  6232. fi
  6233. fi
  6234. fi
  6235. fi
  6236. fi
  6237. if test $ok = yes; then
  6238. { $as_echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
  6239. $as_echo "yes ($libgcrypt_config_version)" >&6; }
  6240. else
  6241. { $as_echo "$as_me:$LINENO: result: no" >&5
  6242. $as_echo "no" >&6; }
  6243. fi
  6244. if test $ok = yes; then
  6245. # If we have a recent libgcrypt, we should also check that the
  6246. # API is compatible
  6247. if test "$req_libgcrypt_api" -gt 0 ; then
  6248. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  6249. if test "$tmp" -gt 0 ; then
  6250. { $as_echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  6251. $as_echo_n "checking LIBGCRYPT API version... " >&6; }
  6252. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  6253. { $as_echo "$as_me:$LINENO: result: okay" >&5
  6254. $as_echo "okay" >&6; }
  6255. else
  6256. ok=no
  6257. { $as_echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
  6258. $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
  6259. fi
  6260. fi
  6261. fi
  6262. fi
  6263. if test $ok = yes; then
  6264. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  6265. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  6266. have_libgcrypt=yes
  6267. else
  6268. LIBGCRYPT_CFLAGS=""
  6269. LIBGCRYPT_LIBS=""
  6270. :
  6271. fi
  6272. if test "x$have_libgcrypt" = "xyes"; then
  6273. cat >>confdefs.h <<\_ACEOF
  6274. #define HAVE_LIBGCRYPT 1
  6275. _ACEOF
  6276. fi
  6277. fi
  6278. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  6279. # Check whether --with-openssl-prefix was given.
  6280. if test "${with_openssl_prefix+set}" = set; then
  6281. withval=$with_openssl_prefix; openssl_prefix=$withval
  6282. else
  6283. openssl_prefix=""
  6284. fi
  6285. if test "x$openssl_prefix" = "x"; then
  6286. openssl_prefix="/usr/local"
  6287. fi
  6288. LIBS_save=$LIBS
  6289. CPPFLAGS_save=$CPPFLAGS
  6290. PKG_CONFIG="$openssl_prefix/bin/pkg-config"
  6291. if test -x $PKG_CONFIG; then
  6292. { $as_echo "$as_me:$LINENO: checking checking availability of openssl using pkg-config" >&5
  6293. $as_echo_n "checking checking availability of openssl using pkg-config... " >&6; }
  6294. $PKG_CONFIG --exists openssl
  6295. if test "$?" = "0"; then
  6296. # Use pkg-config to detect LIBS and CFLAGS
  6297. OPENSSL_LIBS=`$PKG_CONFIG --libs openssl`
  6298. OPENSSL_CFLAGS=`$PKG_CONFIG --cflags openssl`
  6299. LIBS="$OPENSSL_LIBS $LIBS"
  6300. CPPFLAGS="$OPENSSL_CFLAGS $CPPFLAGS"
  6301. have_openssl=yes
  6302. { $as_echo "$as_me:$LINENO: result: yes" >&5
  6303. $as_echo "yes" >&6; }
  6304. else
  6305. { $as_echo "$as_me:$LINENO: result: no" >&5
  6306. $as_echo "no" >&6; }
  6307. fi
  6308. fi
  6309. if test "x$have_openssl" != "xyes"; then
  6310. openssl_prefix_lib=$openssl_prefix/lib
  6311. openssl_prefix_include=$openssl_prefix/include
  6312. LIBS="-L$openssl_prefix_lib $LIBS"
  6313. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  6314. { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  6315. $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  6316. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  6317. $as_echo_n "(cached) " >&6
  6318. else
  6319. ac_check_lib_save_LIBS=$LIBS
  6320. LIBS="-lssl $LIBS"
  6321. cat >conftest.$ac_ext <<_ACEOF
  6322. /* confdefs.h. */
  6323. _ACEOF
  6324. cat confdefs.h >>conftest.$ac_ext
  6325. cat >>conftest.$ac_ext <<_ACEOF
  6326. /* end confdefs.h. */
  6327. /* Override any GCC internal prototype to avoid an error.
  6328. Use char because int might match the return type of a GCC
  6329. builtin and then its argument prototype would still apply. */
  6330. #ifdef __cplusplus
  6331. extern "C"
  6332. #endif
  6333. char SSL_library_init ();
  6334. int
  6335. main ()
  6336. {
  6337. return SSL_library_init ();
  6338. ;
  6339. return 0;
  6340. }
  6341. _ACEOF
  6342. rm -f conftest.$ac_objext conftest$ac_exeext
  6343. if { (ac_try="$ac_link"
  6344. case "(($ac_try" in
  6345. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6346. *) ac_try_echo=$ac_try;;
  6347. esac
  6348. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6349. $as_echo "$ac_try_echo") >&5
  6350. (eval "$ac_link") 2>conftest.er1
  6351. ac_status=$?
  6352. grep -v '^ *+' conftest.er1 >conftest.err
  6353. rm -f conftest.er1
  6354. cat conftest.err >&5
  6355. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6356. (exit $ac_status); } && {
  6357. test -z "$ac_cxx_werror_flag" ||
  6358. test ! -s conftest.err
  6359. } && test -s conftest$ac_exeext && {
  6360. test "$cross_compiling" = yes ||
  6361. $as_test_x conftest$ac_exeext
  6362. }; then
  6363. ac_cv_lib_ssl_SSL_library_init=yes
  6364. else
  6365. $as_echo "$as_me: failed program was:" >&5
  6366. sed 's/^/| /' conftest.$ac_ext >&5
  6367. ac_cv_lib_ssl_SSL_library_init=no
  6368. fi
  6369. rm -rf conftest.dSYM
  6370. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6371. conftest$ac_exeext conftest.$ac_ext
  6372. LIBS=$ac_check_lib_save_LIBS
  6373. fi
  6374. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  6375. $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  6376. if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
  6377. have_openssl=yes LIBS="-lssl $LIBS"
  6378. fi
  6379. if test "x$have_openssl" = "xyes"; then
  6380. have_openssl=no
  6381. { $as_echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  6382. $as_echo_n "checking for main in -lcrypto... " >&6; }
  6383. if test "${ac_cv_lib_crypto_main+set}" = set; then
  6384. $as_echo_n "(cached) " >&6
  6385. else
  6386. ac_check_lib_save_LIBS=$LIBS
  6387. LIBS="-lcrypto $LIBS"
  6388. cat >conftest.$ac_ext <<_ACEOF
  6389. /* confdefs.h. */
  6390. _ACEOF
  6391. cat confdefs.h >>conftest.$ac_ext
  6392. cat >>conftest.$ac_ext <<_ACEOF
  6393. /* end confdefs.h. */
  6394. int
  6395. main ()
  6396. {
  6397. return main ();
  6398. ;
  6399. return 0;
  6400. }
  6401. _ACEOF
  6402. rm -f conftest.$ac_objext conftest$ac_exeext
  6403. if { (ac_try="$ac_link"
  6404. case "(($ac_try" in
  6405. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6406. *) ac_try_echo=$ac_try;;
  6407. esac
  6408. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6409. $as_echo "$ac_try_echo") >&5
  6410. (eval "$ac_link") 2>conftest.er1
  6411. ac_status=$?
  6412. grep -v '^ *+' conftest.er1 >conftest.err
  6413. rm -f conftest.er1
  6414. cat conftest.err >&5
  6415. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6416. (exit $ac_status); } && {
  6417. test -z "$ac_cxx_werror_flag" ||
  6418. test ! -s conftest.err
  6419. } && test -s conftest$ac_exeext && {
  6420. test "$cross_compiling" = yes ||
  6421. $as_test_x conftest$ac_exeext
  6422. }; then
  6423. ac_cv_lib_crypto_main=yes
  6424. else
  6425. $as_echo "$as_me: failed program was:" >&5
  6426. sed 's/^/| /' conftest.$ac_ext >&5
  6427. ac_cv_lib_crypto_main=no
  6428. fi
  6429. rm -rf conftest.dSYM
  6430. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6431. conftest$ac_exeext conftest.$ac_ext
  6432. LIBS=$ac_check_lib_save_LIBS
  6433. fi
  6434. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  6435. $as_echo "$ac_cv_lib_crypto_main" >&6; }
  6436. if test "x$ac_cv_lib_crypto_main" = x""yes; then
  6437. have_openssl=yes; LIBS="-lcrypto $LIBS"
  6438. fi
  6439. if test "x$have_openssl" = "xyes"; then
  6440. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  6441. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  6442. fi
  6443. fi
  6444. fi
  6445. if test "x$have_openssl" = "xyes"; then
  6446. cat >>confdefs.h <<\_ACEOF
  6447. #define HAVE_LIBSSL 1
  6448. _ACEOF
  6449. # check whether EVP_DigestInit_ex exists. Old openssl doesn't have it.
  6450. for ac_func in EVP_DigestInit_ex
  6451. do
  6452. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6453. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  6454. $as_echo_n "checking for $ac_func... " >&6; }
  6455. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6456. $as_echo_n "(cached) " >&6
  6457. else
  6458. cat >conftest.$ac_ext <<_ACEOF
  6459. /* confdefs.h. */
  6460. _ACEOF
  6461. cat confdefs.h >>conftest.$ac_ext
  6462. cat >>conftest.$ac_ext <<_ACEOF
  6463. /* end confdefs.h. */
  6464. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6465. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6466. #define $ac_func innocuous_$ac_func
  6467. /* System header to define __stub macros and hopefully few prototypes,
  6468. which can conflict with char $ac_func (); below.
  6469. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6470. <limits.h> exists even on freestanding compilers. */
  6471. #ifdef __STDC__
  6472. # include <limits.h>
  6473. #else
  6474. # include <assert.h>
  6475. #endif
  6476. #undef $ac_func
  6477. /* Override any GCC internal prototype to avoid an error.
  6478. Use char because int might match the return type of a GCC
  6479. builtin and then its argument prototype would still apply. */
  6480. #ifdef __cplusplus
  6481. extern "C"
  6482. #endif
  6483. char $ac_func ();
  6484. /* The GNU C library defines this for functions which it implements
  6485. to always fail with ENOSYS. Some functions are actually named
  6486. something starting with __ and the normal name is an alias. */
  6487. #if defined __stub_$ac_func || defined __stub___$ac_func
  6488. choke me
  6489. #endif
  6490. int
  6491. main ()
  6492. {
  6493. return $ac_func ();
  6494. ;
  6495. return 0;
  6496. }
  6497. _ACEOF
  6498. rm -f conftest.$ac_objext conftest$ac_exeext
  6499. if { (ac_try="$ac_link"
  6500. case "(($ac_try" in
  6501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6502. *) ac_try_echo=$ac_try;;
  6503. esac
  6504. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6505. $as_echo "$ac_try_echo") >&5
  6506. (eval "$ac_link") 2>conftest.er1
  6507. ac_status=$?
  6508. grep -v '^ *+' conftest.er1 >conftest.err
  6509. rm -f conftest.er1
  6510. cat conftest.err >&5
  6511. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6512. (exit $ac_status); } && {
  6513. test -z "$ac_cxx_werror_flag" ||
  6514. test ! -s conftest.err
  6515. } && test -s conftest$ac_exeext && {
  6516. test "$cross_compiling" = yes ||
  6517. $as_test_x conftest$ac_exeext
  6518. }; then
  6519. eval "$as_ac_var=yes"
  6520. else
  6521. $as_echo "$as_me: failed program was:" >&5
  6522. sed 's/^/| /' conftest.$ac_ext >&5
  6523. eval "$as_ac_var=no"
  6524. fi
  6525. rm -rf conftest.dSYM
  6526. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6527. conftest$ac_exeext conftest.$ac_ext
  6528. fi
  6529. ac_res=`eval 'as_val=${'$as_ac_var'}
  6530. $as_echo "$as_val"'`
  6531. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6532. $as_echo "$ac_res" >&6; }
  6533. as_val=`eval 'as_val=${'$as_ac_var'}
  6534. $as_echo "$as_val"'`
  6535. if test "x$as_val" = x""yes; then
  6536. cat >>confdefs.h <<_ACEOF
  6537. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6538. _ACEOF
  6539. have_digestinit_ex=yes
  6540. fi
  6541. done
  6542. if test "x$have_digestinit_ex" = "x"; then
  6543. cat >>confdefs.h <<\_ACEOF
  6544. #define HAVE_OLD_LIBSSL 1
  6545. _ACEOF
  6546. fi
  6547. # search for sha256 support
  6548. for ac_func in EVP_sha256
  6549. do
  6550. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6551. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  6552. $as_echo_n "checking for $ac_func... " >&6; }
  6553. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  6554. $as_echo_n "(cached) " >&6
  6555. else
  6556. cat >conftest.$ac_ext <<_ACEOF
  6557. /* confdefs.h. */
  6558. _ACEOF
  6559. cat confdefs.h >>conftest.$ac_ext
  6560. cat >>conftest.$ac_ext <<_ACEOF
  6561. /* end confdefs.h. */
  6562. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6563. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6564. #define $ac_func innocuous_$ac_func
  6565. /* System header to define __stub macros and hopefully few prototypes,
  6566. which can conflict with char $ac_func (); below.
  6567. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6568. <limits.h> exists even on freestanding compilers. */
  6569. #ifdef __STDC__
  6570. # include <limits.h>
  6571. #else
  6572. # include <assert.h>
  6573. #endif
  6574. #undef $ac_func
  6575. /* Override any GCC internal prototype to avoid an error.
  6576. Use char because int might match the return type of a GCC
  6577. builtin and then its argument prototype would still apply. */
  6578. #ifdef __cplusplus
  6579. extern "C"
  6580. #endif
  6581. char $ac_func ();
  6582. /* The GNU C library defines this for functions which it implements
  6583. to always fail with ENOSYS. Some functions are actually named
  6584. something starting with __ and the normal name is an alias. */
  6585. #if defined __stub_$ac_func || defined __stub___$ac_func
  6586. choke me
  6587. #endif
  6588. int
  6589. main ()
  6590. {
  6591. return $ac_func ();
  6592. ;
  6593. return 0;
  6594. }
  6595. _ACEOF
  6596. rm -f conftest.$ac_objext conftest$ac_exeext
  6597. if { (ac_try="$ac_link"
  6598. case "(($ac_try" in
  6599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6600. *) ac_try_echo=$ac_try;;
  6601. esac
  6602. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6603. $as_echo "$ac_try_echo") >&5
  6604. (eval "$ac_link") 2>conftest.er1
  6605. ac_status=$?
  6606. grep -v '^ *+' conftest.er1 >conftest.err
  6607. rm -f conftest.er1
  6608. cat conftest.err >&5
  6609. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6610. (exit $ac_status); } && {
  6611. test -z "$ac_cxx_werror_flag" ||
  6612. test ! -s conftest.err
  6613. } && test -s conftest$ac_exeext && {
  6614. test "$cross_compiling" = yes ||
  6615. $as_test_x conftest$ac_exeext
  6616. }; then
  6617. eval "$as_ac_var=yes"
  6618. else
  6619. $as_echo "$as_me: failed program was:" >&5
  6620. sed 's/^/| /' conftest.$ac_ext >&5
  6621. eval "$as_ac_var=no"
  6622. fi
  6623. rm -rf conftest.dSYM
  6624. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6625. conftest$ac_exeext conftest.$ac_ext
  6626. fi
  6627. ac_res=`eval 'as_val=${'$as_ac_var'}
  6628. $as_echo "$as_val"'`
  6629. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  6630. $as_echo "$ac_res" >&6; }
  6631. as_val=`eval 'as_val=${'$as_ac_var'}
  6632. $as_echo "$as_val"'`
  6633. if test "x$as_val" = x""yes; then
  6634. cat >>confdefs.h <<_ACEOF
  6635. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6636. _ACEOF
  6637. fi
  6638. done
  6639. fi
  6640. LIBS=$LIBS_save
  6641. CPPFLAGS=$CPPFLAGS_save
  6642. fi
  6643. if test "x$with_libcares" = "xyes"; then
  6644. # Check whether --with-libcares-prefix was given.
  6645. if test "${with_libcares_prefix+set}" = set; then
  6646. withval=$with_libcares_prefix; libcares_prefix=$withval
  6647. else
  6648. libcares_prefix=""
  6649. fi
  6650. if test "x$libcares_prefix" = "x"; then
  6651. libcares_prefix="/usr"
  6652. fi
  6653. libcares_prefix_lib=$libcares_prefix/lib
  6654. libcares_prefix_include=$libcares_prefix/include
  6655. LIBS_save=$LIBS
  6656. CPPFLAGS_save=$CPPFLAGS
  6657. LIBS="-L$libcares_prefix_lib $LIBS"
  6658. CPPFLAGS="-I$libcares_prefix_include -Wall $CPPFLAGS"
  6659. { $as_echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6660. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6661. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6662. $as_echo_n "(cached) " >&6
  6663. else
  6664. ac_check_lib_save_LIBS=$LIBS
  6665. LIBS="-lcares $LIBS"
  6666. cat >conftest.$ac_ext <<_ACEOF
  6667. /* confdefs.h. */
  6668. _ACEOF
  6669. cat confdefs.h >>conftest.$ac_ext
  6670. cat >>conftest.$ac_ext <<_ACEOF
  6671. /* end confdefs.h. */
  6672. /* Override any GCC internal prototype to avoid an error.
  6673. Use char because int might match the return type of a GCC
  6674. builtin and then its argument prototype would still apply. */
  6675. #ifdef __cplusplus
  6676. extern "C"
  6677. #endif
  6678. char ares_init ();
  6679. int
  6680. main ()
  6681. {
  6682. return ares_init ();
  6683. ;
  6684. return 0;
  6685. }
  6686. _ACEOF
  6687. rm -f conftest.$ac_objext conftest$ac_exeext
  6688. if { (ac_try="$ac_link"
  6689. case "(($ac_try" in
  6690. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6691. *) ac_try_echo=$ac_try;;
  6692. esac
  6693. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6694. $as_echo "$ac_try_echo") >&5
  6695. (eval "$ac_link") 2>conftest.er1
  6696. ac_status=$?
  6697. grep -v '^ *+' conftest.er1 >conftest.err
  6698. rm -f conftest.er1
  6699. cat conftest.err >&5
  6700. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6701. (exit $ac_status); } && {
  6702. test -z "$ac_cxx_werror_flag" ||
  6703. test ! -s conftest.err
  6704. } && test -s conftest$ac_exeext && {
  6705. test "$cross_compiling" = yes ||
  6706. $as_test_x conftest$ac_exeext
  6707. }; then
  6708. ac_cv_lib_cares_ares_init=yes
  6709. else
  6710. $as_echo "$as_me: failed program was:" >&5
  6711. sed 's/^/| /' conftest.$ac_ext >&5
  6712. ac_cv_lib_cares_ares_init=no
  6713. fi
  6714. rm -rf conftest.dSYM
  6715. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6716. conftest$ac_exeext conftest.$ac_ext
  6717. LIBS=$ac_check_lib_save_LIBS
  6718. fi
  6719. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6720. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6721. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then
  6722. have_libcares=yes
  6723. fi
  6724. if test "x$have_libcares" != "xyes"; then
  6725. { $as_echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  6726. $as_echo_n "checking for ares_init in -lcares... " >&6; }
  6727. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  6728. $as_echo_n "(cached) " >&6
  6729. else
  6730. ac_check_lib_save_LIBS=$LIBS
  6731. LIBS="-lcares -lrt $LIBS"
  6732. cat >conftest.$ac_ext <<_ACEOF
  6733. /* confdefs.h. */
  6734. _ACEOF
  6735. cat confdefs.h >>conftest.$ac_ext
  6736. cat >>conftest.$ac_ext <<_ACEOF
  6737. /* end confdefs.h. */
  6738. /* Override any GCC internal prototype to avoid an error.
  6739. Use char because int might match the return type of a GCC
  6740. builtin and then its argument prototype would still apply. */
  6741. #ifdef __cplusplus
  6742. extern "C"
  6743. #endif
  6744. char ares_init ();
  6745. int
  6746. main ()
  6747. {
  6748. return ares_init ();
  6749. ;
  6750. return 0;
  6751. }
  6752. _ACEOF
  6753. rm -f conftest.$ac_objext conftest$ac_exeext
  6754. if { (ac_try="$ac_link"
  6755. case "(($ac_try" in
  6756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6757. *) ac_try_echo=$ac_try;;
  6758. esac
  6759. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6760. $as_echo "$ac_try_echo") >&5
  6761. (eval "$ac_link") 2>conftest.er1
  6762. ac_status=$?
  6763. grep -v '^ *+' conftest.er1 >conftest.err
  6764. rm -f conftest.er1
  6765. cat conftest.err >&5
  6766. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6767. (exit $ac_status); } && {
  6768. test -z "$ac_cxx_werror_flag" ||
  6769. test ! -s conftest.err
  6770. } && test -s conftest$ac_exeext && {
  6771. test "$cross_compiling" = yes ||
  6772. $as_test_x conftest$ac_exeext
  6773. }; then
  6774. ac_cv_lib_cares_ares_init=yes
  6775. else
  6776. $as_echo "$as_me: failed program was:" >&5
  6777. sed 's/^/| /' conftest.$ac_ext >&5
  6778. ac_cv_lib_cares_ares_init=no
  6779. fi
  6780. rm -rf conftest.dSYM
  6781. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6782. conftest$ac_exeext conftest.$ac_ext
  6783. LIBS=$ac_check_lib_save_LIBS
  6784. fi
  6785. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  6786. $as_echo "$ac_cv_lib_cares_ares_init" >&6; }
  6787. if test "x$ac_cv_lib_cares_ares_init" = x""yes; then
  6788. have_libcares=yes need_librt=yes
  6789. fi
  6790. fi
  6791. if test "x$have_libcares" = "xyes"; then
  6792. { $as_echo "$as_me:$LINENO: checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)" >&5
  6793. $as_echo_n "checking whether ares_host_callback accepts timeouts(c-ares >= 1.5)... " >&6; }
  6794. cat >conftest.$ac_ext <<_ACEOF
  6795. /* confdefs.h. */
  6796. _ACEOF
  6797. cat confdefs.h >>conftest.$ac_ext
  6798. cat >>conftest.$ac_ext <<_ACEOF
  6799. /* end confdefs.h. */
  6800. #include <ares.h>
  6801. void callback(void* arg, int status, int timeouts, struct hostent* host);
  6802. int
  6803. main ()
  6804. {
  6805. ares_channel channel;
  6806. ares_gethostbyname(channel, "foo", 0, callback, 0);
  6807. ;
  6808. return 0;
  6809. }
  6810. _ACEOF
  6811. rm -f conftest.$ac_objext
  6812. if { (ac_try="$ac_compile"
  6813. case "(($ac_try" in
  6814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6815. *) ac_try_echo=$ac_try;;
  6816. esac
  6817. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6818. $as_echo "$ac_try_echo") >&5
  6819. (eval "$ac_compile") 2>conftest.er1
  6820. ac_status=$?
  6821. grep -v '^ *+' conftest.er1 >conftest.err
  6822. rm -f conftest.er1
  6823. cat conftest.err >&5
  6824. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6825. (exit $ac_status); } && {
  6826. test -z "$ac_cxx_werror_flag" ||
  6827. test ! -s conftest.err
  6828. } && test -s conftest.$ac_objext; then
  6829. have_libcares1_5=yes
  6830. else
  6831. $as_echo "$as_me: failed program was:" >&5
  6832. sed 's/^/| /' conftest.$ac_ext >&5
  6833. have_libcares1_5=no
  6834. fi
  6835. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6836. { $as_echo "$as_me:$LINENO: result: $have_libcares1_5" >&5
  6837. $as_echo "$have_libcares1_5" >&6; }
  6838. if test "x$have_libcares1_5" = "xyes"; then
  6839. cat >>confdefs.h <<\_ACEOF
  6840. #define HAVE_LIBCARES1_5 1
  6841. _ACEOF
  6842. fi
  6843. cat >>confdefs.h <<\_ACEOF
  6844. #define HAVE_LIBCARES 1
  6845. _ACEOF
  6846. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  6847. if test "x$need_librt" = "xyes"; then
  6848. LIBCARES_LIBS="$LIBCARES_LIBS -lrt"
  6849. fi
  6850. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  6851. fi
  6852. LIBS=$LIBS_save
  6853. CPPFLAGS=$CPPFLAGS_save
  6854. fi
  6855. # Check availability of libz
  6856. if test "x$with_libz" = "xyes"; then
  6857. # Check whether --with-libz-prefix was given.
  6858. if test "${with_libz_prefix+set}" = set; then
  6859. withval=$with_libz_prefix; libz_prefix=$withval
  6860. else
  6861. libz_prefix=""
  6862. fi
  6863. if test "x$libz_prefix" = "x"; then
  6864. libz_prefix="/usr"
  6865. fi
  6866. libz_prefix_lib=$libz_prefix/lib
  6867. libz_prefix_include=$libz_prefix/include
  6868. LIBS_save=$LIBS
  6869. CPPFLAGS_save=$CPPFLAGS
  6870. LIBS="-L$libz_prefix_lib $LIBS"
  6871. CPPFLAGS="-I$libz_prefix_include $CPPFLAGS"
  6872. { $as_echo "$as_me:$LINENO: checking for zlibVersion in -lz" >&5
  6873. $as_echo_n "checking for zlibVersion in -lz... " >&6; }
  6874. if test "${ac_cv_lib_z_zlibVersion+set}" = set; then
  6875. $as_echo_n "(cached) " >&6
  6876. else
  6877. ac_check_lib_save_LIBS=$LIBS
  6878. LIBS="-lz $LIBS"
  6879. cat >conftest.$ac_ext <<_ACEOF
  6880. /* confdefs.h. */
  6881. _ACEOF
  6882. cat confdefs.h >>conftest.$ac_ext
  6883. cat >>conftest.$ac_ext <<_ACEOF
  6884. /* end confdefs.h. */
  6885. /* Override any GCC internal prototype to avoid an error.
  6886. Use char because int might match the return type of a GCC
  6887. builtin and then its argument prototype would still apply. */
  6888. #ifdef __cplusplus
  6889. extern "C"
  6890. #endif
  6891. char zlibVersion ();
  6892. int
  6893. main ()
  6894. {
  6895. return zlibVersion ();
  6896. ;
  6897. return 0;
  6898. }
  6899. _ACEOF
  6900. rm -f conftest.$ac_objext conftest$ac_exeext
  6901. if { (ac_try="$ac_link"
  6902. case "(($ac_try" in
  6903. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6904. *) ac_try_echo=$ac_try;;
  6905. esac
  6906. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6907. $as_echo "$ac_try_echo") >&5
  6908. (eval "$ac_link") 2>conftest.er1
  6909. ac_status=$?
  6910. grep -v '^ *+' conftest.er1 >conftest.err
  6911. rm -f conftest.er1
  6912. cat conftest.err >&5
  6913. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6914. (exit $ac_status); } && {
  6915. test -z "$ac_cxx_werror_flag" ||
  6916. test ! -s conftest.err
  6917. } && test -s conftest$ac_exeext && {
  6918. test "$cross_compiling" = yes ||
  6919. $as_test_x conftest$ac_exeext
  6920. }; then
  6921. ac_cv_lib_z_zlibVersion=yes
  6922. else
  6923. $as_echo "$as_me: failed program was:" >&5
  6924. sed 's/^/| /' conftest.$ac_ext >&5
  6925. ac_cv_lib_z_zlibVersion=no
  6926. fi
  6927. rm -rf conftest.dSYM
  6928. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6929. conftest$ac_exeext conftest.$ac_ext
  6930. LIBS=$ac_check_lib_save_LIBS
  6931. fi
  6932. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_zlibVersion" >&5
  6933. $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
  6934. if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then
  6935. have_libz=yes
  6936. fi
  6937. if test "x$have_libz" = "xyes"; then
  6938. cat >>confdefs.h <<\_ACEOF
  6939. #define HAVE_LIBZ 1
  6940. _ACEOF
  6941. LIBZ_LIBS="-L$libz_prefix_lib -lz"
  6942. LIBZ_CPPFLAGS="-I$libz_prefix_include"
  6943. fi
  6944. LIBS=$LIBS_save
  6945. CPPFLAGS=$CPPFLAGS_save
  6946. fi
  6947. # Define variables based on the result of the checks for libraries.
  6948. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  6949. cat >>confdefs.h <<\_ACEOF
  6950. #define ENABLE_SSL 1
  6951. _ACEOF
  6952. if true; then
  6953. ENABLE_SSL_TRUE=
  6954. ENABLE_SSL_FALSE='#'
  6955. else
  6956. ENABLE_SSL_TRUE='#'
  6957. ENABLE_SSL_FALSE=
  6958. fi
  6959. else
  6960. if false; then
  6961. ENABLE_SSL_TRUE=
  6962. ENABLE_SSL_FALSE='#'
  6963. else
  6964. ENABLE_SSL_TRUE='#'
  6965. ENABLE_SSL_FALSE=
  6966. fi
  6967. fi
  6968. if test "x$have_libgnutls" = "xyes" ; then
  6969. HAVE_LIBGNUTLS_TRUE=
  6970. HAVE_LIBGNUTLS_FALSE='#'
  6971. else
  6972. HAVE_LIBGNUTLS_TRUE='#'
  6973. HAVE_LIBGNUTLS_FALSE=
  6974. fi
  6975. if test "x$have_openssl" = "xyes" ; then
  6976. HAVE_LIBSSL_TRUE=
  6977. HAVE_LIBSSL_FALSE='#'
  6978. else
  6979. HAVE_LIBSSL_TRUE='#'
  6980. HAVE_LIBSSL_FALSE=
  6981. fi
  6982. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  6983. cat >>confdefs.h <<\_ACEOF
  6984. #define ENABLE_MESSAGE_DIGEST 1
  6985. _ACEOF
  6986. if true; then
  6987. ENABLE_MESSAGE_DIGEST_TRUE=
  6988. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6989. else
  6990. ENABLE_MESSAGE_DIGEST_TRUE='#'
  6991. ENABLE_MESSAGE_DIGEST_FALSE=
  6992. fi
  6993. enable_message_digest=yes
  6994. else
  6995. if false; then
  6996. ENABLE_MESSAGE_DIGEST_TRUE=
  6997. ENABLE_MESSAGE_DIGEST_FALSE='#'
  6998. else
  6999. ENABLE_MESSAGE_DIGEST_TRUE='#'
  7000. ENABLE_MESSAGE_DIGEST_FALSE=
  7001. fi
  7002. fi
  7003. if test "x$enable_bittorrent" = "xyes" &&
  7004. test "x$enable_message_digest" = "xyes"; then
  7005. cat >>confdefs.h <<\_ACEOF
  7006. #define ENABLE_BITTORRENT 1
  7007. _ACEOF
  7008. if true; then
  7009. ENABLE_BITTORRENT_TRUE=
  7010. ENABLE_BITTORRENT_FALSE='#'
  7011. else
  7012. ENABLE_BITTORRENT_TRUE='#'
  7013. ENABLE_BITTORRENT_FALSE=
  7014. fi
  7015. else
  7016. enable_bittorrent=no
  7017. if false; then
  7018. ENABLE_BITTORRENT_TRUE=
  7019. ENABLE_BITTORRENT_FALSE='#'
  7020. else
  7021. ENABLE_BITTORRENT_TRUE='#'
  7022. ENABLE_BITTORRENT_FALSE=
  7023. fi
  7024. fi
  7025. if (test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes") &&
  7026. test "x$enable_metalink" = "xyes"; then
  7027. cat >>confdefs.h <<\_ACEOF
  7028. #define ENABLE_METALINK 1
  7029. _ACEOF
  7030. if true; then
  7031. ENABLE_METALINK_TRUE=
  7032. ENABLE_METALINK_FALSE='#'
  7033. else
  7034. ENABLE_METALINK_TRUE='#'
  7035. ENABLE_METALINK_FALSE=
  7036. fi
  7037. else
  7038. enable_metalink=no
  7039. if false; then
  7040. ENABLE_METALINK_TRUE=
  7041. ENABLE_METALINK_FALSE='#'
  7042. else
  7043. ENABLE_METALINK_TRUE='#'
  7044. ENABLE_METALINK_FALSE=
  7045. fi
  7046. fi
  7047. if test "x$enable_metalink" = "xyes" && test "x$have_libxml2" = "xyes"; then
  7048. ENABLE_METALINK_LIBXML2_TRUE=
  7049. ENABLE_METALINK_LIBXML2_FALSE='#'
  7050. else
  7051. ENABLE_METALINK_LIBXML2_TRUE='#'
  7052. ENABLE_METALINK_LIBXML2_FALSE=
  7053. fi
  7054. if test "x$enable_metalink" = "xyes" && test "x$have_libexpat" = "xyes"; then
  7055. ENABLE_METALINK_LIBEXPAT_TRUE=
  7056. ENABLE_METALINK_LIBEXPAT_FALSE='#'
  7057. else
  7058. ENABLE_METALINK_LIBEXPAT_TRUE='#'
  7059. ENABLE_METALINK_LIBEXPAT_FALSE=
  7060. fi
  7061. if test "x$have_libxml2" = "xyes" || test "x$have_libexpat" = "xyes"; then
  7062. enable_xml_rpc=yes
  7063. fi
  7064. if test "x$enable_xml_rpc" = "xyes"; then
  7065. cat >>confdefs.h <<\_ACEOF
  7066. #define ENABLE_XML_RPC 1
  7067. _ACEOF
  7068. fi
  7069. if test "x$enable_xml_rpc" = "xyes"; then
  7070. ENABLE_XML_RPC_TRUE=
  7071. ENABLE_XML_RPC_FALSE='#'
  7072. else
  7073. ENABLE_XML_RPC_TRUE='#'
  7074. ENABLE_XML_RPC_FALSE=
  7075. fi
  7076. if test "x$have_libxml2" = "xyes"; then
  7077. HAVE_LIBXML2_TRUE=
  7078. HAVE_LIBXML2_FALSE='#'
  7079. else
  7080. HAVE_LIBXML2_TRUE='#'
  7081. HAVE_LIBXML2_FALSE=
  7082. fi
  7083. if test "x$have_libexpat" = "xyes"; then
  7084. HAVE_LIBEXPAT_TRUE=
  7085. HAVE_LIBEXPAT_FALSE='#'
  7086. else
  7087. HAVE_LIBEXPAT_TRUE='#'
  7088. HAVE_LIBEXPAT_FALSE=
  7089. fi
  7090. if test "x$have_libcares" = "xyes"; then
  7091. cat >>confdefs.h <<\_ACEOF
  7092. #define ENABLE_ASYNC_DNS 1
  7093. _ACEOF
  7094. if true; then
  7095. ENABLE_ASYNC_DNS_TRUE=
  7096. ENABLE_ASYNC_DNS_FALSE='#'
  7097. else
  7098. ENABLE_ASYNC_DNS_TRUE='#'
  7099. ENABLE_ASYNC_DNS_FALSE=
  7100. fi
  7101. else
  7102. if false; then
  7103. ENABLE_ASYNC_DNS_TRUE=
  7104. ENABLE_ASYNC_DNS_FALSE='#'
  7105. else
  7106. ENABLE_ASYNC_DNS_TRUE='#'
  7107. ENABLE_ASYNC_DNS_FALSE=
  7108. fi
  7109. fi
  7110. # Set conditional for libz
  7111. if test "x$have_libz" = "xyes"; then
  7112. HAVE_LIBZ_TRUE=
  7113. HAVE_LIBZ_FALSE='#'
  7114. else
  7115. HAVE_LIBZ_TRUE='#'
  7116. HAVE_LIBZ_FALSE=
  7117. fi
  7118. # Set conditional for sqlite3
  7119. if test "x$have_sqlite3" = "xyes"; then
  7120. HAVE_SQLITE3_TRUE=
  7121. HAVE_SQLITE3_FALSE='#'
  7122. else
  7123. HAVE_SQLITE3_TRUE='#'
  7124. HAVE_SQLITE3_FALSE=
  7125. fi
  7126. # Checks for header files.
  7127. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  7128. # for constant arguments. Useless!
  7129. { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
  7130. $as_echo_n "checking for working alloca.h... " >&6; }
  7131. if test "${ac_cv_working_alloca_h+set}" = set; then
  7132. $as_echo_n "(cached) " >&6
  7133. else
  7134. cat >conftest.$ac_ext <<_ACEOF
  7135. /* confdefs.h. */
  7136. _ACEOF
  7137. cat confdefs.h >>conftest.$ac_ext
  7138. cat >>conftest.$ac_ext <<_ACEOF
  7139. /* end confdefs.h. */
  7140. #include <alloca.h>
  7141. int
  7142. main ()
  7143. {
  7144. char *p = (char *) alloca (2 * sizeof (int));
  7145. if (p) return 0;
  7146. ;
  7147. return 0;
  7148. }
  7149. _ACEOF
  7150. rm -f conftest.$ac_objext conftest$ac_exeext
  7151. if { (ac_try="$ac_link"
  7152. case "(($ac_try" in
  7153. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7154. *) ac_try_echo=$ac_try;;
  7155. esac
  7156. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7157. $as_echo "$ac_try_echo") >&5
  7158. (eval "$ac_link") 2>conftest.er1
  7159. ac_status=$?
  7160. grep -v '^ *+' conftest.er1 >conftest.err
  7161. rm -f conftest.er1
  7162. cat conftest.err >&5
  7163. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7164. (exit $ac_status); } && {
  7165. test -z "$ac_cxx_werror_flag" ||
  7166. test ! -s conftest.err
  7167. } && test -s conftest$ac_exeext && {
  7168. test "$cross_compiling" = yes ||
  7169. $as_test_x conftest$ac_exeext
  7170. }; then
  7171. ac_cv_working_alloca_h=yes
  7172. else
  7173. $as_echo "$as_me: failed program was:" >&5
  7174. sed 's/^/| /' conftest.$ac_ext >&5
  7175. ac_cv_working_alloca_h=no
  7176. fi
  7177. rm -rf conftest.dSYM
  7178. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7179. conftest$ac_exeext conftest.$ac_ext
  7180. fi
  7181. { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  7182. $as_echo "$ac_cv_working_alloca_h" >&6; }
  7183. if test $ac_cv_working_alloca_h = yes; then
  7184. cat >>confdefs.h <<\_ACEOF
  7185. #define HAVE_ALLOCA_H 1
  7186. _ACEOF
  7187. fi
  7188. { $as_echo "$as_me:$LINENO: checking for alloca" >&5
  7189. $as_echo_n "checking for alloca... " >&6; }
  7190. if test "${ac_cv_func_alloca_works+set}" = set; then
  7191. $as_echo_n "(cached) " >&6
  7192. else
  7193. cat >conftest.$ac_ext <<_ACEOF
  7194. /* confdefs.h. */
  7195. _ACEOF
  7196. cat confdefs.h >>conftest.$ac_ext
  7197. cat >>conftest.$ac_ext <<_ACEOF
  7198. /* end confdefs.h. */
  7199. #ifdef __GNUC__
  7200. # define alloca __builtin_alloca
  7201. #else
  7202. # ifdef _MSC_VER
  7203. # include <malloc.h>
  7204. # define alloca _alloca
  7205. # else
  7206. # ifdef HAVE_ALLOCA_H
  7207. # include <alloca.h>
  7208. # else
  7209. # ifdef _AIX
  7210. #pragma alloca
  7211. # else
  7212. # ifndef alloca /* predefined by HP cc +Olibcalls */
  7213. char *alloca ();
  7214. # endif
  7215. # endif
  7216. # endif
  7217. # endif
  7218. #endif
  7219. int
  7220. main ()
  7221. {
  7222. char *p = (char *) alloca (1);
  7223. if (p) return 0;
  7224. ;
  7225. return 0;
  7226. }
  7227. _ACEOF
  7228. rm -f conftest.$ac_objext conftest$ac_exeext
  7229. if { (ac_try="$ac_link"
  7230. case "(($ac_try" in
  7231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7232. *) ac_try_echo=$ac_try;;
  7233. esac
  7234. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7235. $as_echo "$ac_try_echo") >&5
  7236. (eval "$ac_link") 2>conftest.er1
  7237. ac_status=$?
  7238. grep -v '^ *+' conftest.er1 >conftest.err
  7239. rm -f conftest.er1
  7240. cat conftest.err >&5
  7241. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7242. (exit $ac_status); } && {
  7243. test -z "$ac_cxx_werror_flag" ||
  7244. test ! -s conftest.err
  7245. } && test -s conftest$ac_exeext && {
  7246. test "$cross_compiling" = yes ||
  7247. $as_test_x conftest$ac_exeext
  7248. }; then
  7249. ac_cv_func_alloca_works=yes
  7250. else
  7251. $as_echo "$as_me: failed program was:" >&5
  7252. sed 's/^/| /' conftest.$ac_ext >&5
  7253. ac_cv_func_alloca_works=no
  7254. fi
  7255. rm -rf conftest.dSYM
  7256. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7257. conftest$ac_exeext conftest.$ac_ext
  7258. fi
  7259. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  7260. $as_echo "$ac_cv_func_alloca_works" >&6; }
  7261. if test $ac_cv_func_alloca_works = yes; then
  7262. cat >>confdefs.h <<\_ACEOF
  7263. #define HAVE_ALLOCA 1
  7264. _ACEOF
  7265. else
  7266. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  7267. # that cause trouble. Some versions do not even contain alloca or
  7268. # contain a buggy version. If you still want to use their alloca,
  7269. # use ar to extract alloca.o from them instead of compiling alloca.c.
  7270. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  7271. cat >>confdefs.h <<\_ACEOF
  7272. #define C_ALLOCA 1
  7273. _ACEOF
  7274. { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  7275. $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
  7276. if test "${ac_cv_os_cray+set}" = set; then
  7277. $as_echo_n "(cached) " >&6
  7278. else
  7279. cat >conftest.$ac_ext <<_ACEOF
  7280. /* confdefs.h. */
  7281. _ACEOF
  7282. cat confdefs.h >>conftest.$ac_ext
  7283. cat >>conftest.$ac_ext <<_ACEOF
  7284. /* end confdefs.h. */
  7285. #if defined CRAY && ! defined CRAY2
  7286. webecray
  7287. #else
  7288. wenotbecray
  7289. #endif
  7290. _ACEOF
  7291. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7292. $EGREP "webecray" >/dev/null 2>&1; then
  7293. ac_cv_os_cray=yes
  7294. else
  7295. ac_cv_os_cray=no
  7296. fi
  7297. rm -f conftest*
  7298. fi
  7299. { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  7300. $as_echo "$ac_cv_os_cray" >&6; }
  7301. if test $ac_cv_os_cray = yes; then
  7302. for ac_func in _getb67 GETB67 getb67; do
  7303. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7304. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  7305. $as_echo_n "checking for $ac_func... " >&6; }
  7306. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7307. $as_echo_n "(cached) " >&6
  7308. else
  7309. cat >conftest.$ac_ext <<_ACEOF
  7310. /* confdefs.h. */
  7311. _ACEOF
  7312. cat confdefs.h >>conftest.$ac_ext
  7313. cat >>conftest.$ac_ext <<_ACEOF
  7314. /* end confdefs.h. */
  7315. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7316. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7317. #define $ac_func innocuous_$ac_func
  7318. /* System header to define __stub macros and hopefully few prototypes,
  7319. which can conflict with char $ac_func (); below.
  7320. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7321. <limits.h> exists even on freestanding compilers. */
  7322. #ifdef __STDC__
  7323. # include <limits.h>
  7324. #else
  7325. # include <assert.h>
  7326. #endif
  7327. #undef $ac_func
  7328. /* Override any GCC internal prototype to avoid an error.
  7329. Use char because int might match the return type of a GCC
  7330. builtin and then its argument prototype would still apply. */
  7331. #ifdef __cplusplus
  7332. extern "C"
  7333. #endif
  7334. char $ac_func ();
  7335. /* The GNU C library defines this for functions which it implements
  7336. to always fail with ENOSYS. Some functions are actually named
  7337. something starting with __ and the normal name is an alias. */
  7338. #if defined __stub_$ac_func || defined __stub___$ac_func
  7339. choke me
  7340. #endif
  7341. int
  7342. main ()
  7343. {
  7344. return $ac_func ();
  7345. ;
  7346. return 0;
  7347. }
  7348. _ACEOF
  7349. rm -f conftest.$ac_objext conftest$ac_exeext
  7350. if { (ac_try="$ac_link"
  7351. case "(($ac_try" in
  7352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7353. *) ac_try_echo=$ac_try;;
  7354. esac
  7355. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7356. $as_echo "$ac_try_echo") >&5
  7357. (eval "$ac_link") 2>conftest.er1
  7358. ac_status=$?
  7359. grep -v '^ *+' conftest.er1 >conftest.err
  7360. rm -f conftest.er1
  7361. cat conftest.err >&5
  7362. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7363. (exit $ac_status); } && {
  7364. test -z "$ac_cxx_werror_flag" ||
  7365. test ! -s conftest.err
  7366. } && test -s conftest$ac_exeext && {
  7367. test "$cross_compiling" = yes ||
  7368. $as_test_x conftest$ac_exeext
  7369. }; then
  7370. eval "$as_ac_var=yes"
  7371. else
  7372. $as_echo "$as_me: failed program was:" >&5
  7373. sed 's/^/| /' conftest.$ac_ext >&5
  7374. eval "$as_ac_var=no"
  7375. fi
  7376. rm -rf conftest.dSYM
  7377. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7378. conftest$ac_exeext conftest.$ac_ext
  7379. fi
  7380. ac_res=`eval 'as_val=${'$as_ac_var'}
  7381. $as_echo "$as_val"'`
  7382. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7383. $as_echo "$ac_res" >&6; }
  7384. as_val=`eval 'as_val=${'$as_ac_var'}
  7385. $as_echo "$as_val"'`
  7386. if test "x$as_val" = x""yes; then
  7387. cat >>confdefs.h <<_ACEOF
  7388. #define CRAY_STACKSEG_END $ac_func
  7389. _ACEOF
  7390. break
  7391. fi
  7392. done
  7393. fi
  7394. { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  7395. $as_echo_n "checking stack direction for C alloca... " >&6; }
  7396. if test "${ac_cv_c_stack_direction+set}" = set; then
  7397. $as_echo_n "(cached) " >&6
  7398. else
  7399. if test "$cross_compiling" = yes; then
  7400. ac_cv_c_stack_direction=0
  7401. else
  7402. cat >conftest.$ac_ext <<_ACEOF
  7403. /* confdefs.h. */
  7404. _ACEOF
  7405. cat confdefs.h >>conftest.$ac_ext
  7406. cat >>conftest.$ac_ext <<_ACEOF
  7407. /* end confdefs.h. */
  7408. $ac_includes_default
  7409. int
  7410. find_stack_direction ()
  7411. {
  7412. static char *addr = 0;
  7413. auto char dummy;
  7414. if (addr == 0)
  7415. {
  7416. addr = &dummy;
  7417. return find_stack_direction ();
  7418. }
  7419. else
  7420. return (&dummy > addr) ? 1 : -1;
  7421. }
  7422. int
  7423. main ()
  7424. {
  7425. return find_stack_direction () < 0;
  7426. }
  7427. _ACEOF
  7428. rm -f conftest$ac_exeext
  7429. if { (ac_try="$ac_link"
  7430. case "(($ac_try" in
  7431. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7432. *) ac_try_echo=$ac_try;;
  7433. esac
  7434. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7435. $as_echo "$ac_try_echo") >&5
  7436. (eval "$ac_link") 2>&5
  7437. ac_status=$?
  7438. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7439. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7440. { (case "(($ac_try" in
  7441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7442. *) ac_try_echo=$ac_try;;
  7443. esac
  7444. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7445. $as_echo "$ac_try_echo") >&5
  7446. (eval "$ac_try") 2>&5
  7447. ac_status=$?
  7448. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7449. (exit $ac_status); }; }; then
  7450. ac_cv_c_stack_direction=1
  7451. else
  7452. $as_echo "$as_me: program exited with status $ac_status" >&5
  7453. $as_echo "$as_me: failed program was:" >&5
  7454. sed 's/^/| /' conftest.$ac_ext >&5
  7455. ( exit $ac_status )
  7456. ac_cv_c_stack_direction=-1
  7457. fi
  7458. rm -rf conftest.dSYM
  7459. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7460. fi
  7461. fi
  7462. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  7463. $as_echo "$ac_cv_c_stack_direction" >&6; }
  7464. cat >>confdefs.h <<_ACEOF
  7465. #define STACK_DIRECTION $ac_cv_c_stack_direction
  7466. _ACEOF
  7467. fi
  7468. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7469. $as_echo_n "checking for ANSI C header files... " >&6; }
  7470. if test "${ac_cv_header_stdc+set}" = set; then
  7471. $as_echo_n "(cached) " >&6
  7472. else
  7473. cat >conftest.$ac_ext <<_ACEOF
  7474. /* confdefs.h. */
  7475. _ACEOF
  7476. cat confdefs.h >>conftest.$ac_ext
  7477. cat >>conftest.$ac_ext <<_ACEOF
  7478. /* end confdefs.h. */
  7479. #include <stdlib.h>
  7480. #include <stdarg.h>
  7481. #include <string.h>
  7482. #include <float.h>
  7483. int
  7484. main ()
  7485. {
  7486. ;
  7487. return 0;
  7488. }
  7489. _ACEOF
  7490. rm -f conftest.$ac_objext
  7491. if { (ac_try="$ac_compile"
  7492. case "(($ac_try" in
  7493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7494. *) ac_try_echo=$ac_try;;
  7495. esac
  7496. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7497. $as_echo "$ac_try_echo") >&5
  7498. (eval "$ac_compile") 2>conftest.er1
  7499. ac_status=$?
  7500. grep -v '^ *+' conftest.er1 >conftest.err
  7501. rm -f conftest.er1
  7502. cat conftest.err >&5
  7503. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7504. (exit $ac_status); } && {
  7505. test -z "$ac_cxx_werror_flag" ||
  7506. test ! -s conftest.err
  7507. } && test -s conftest.$ac_objext; then
  7508. ac_cv_header_stdc=yes
  7509. else
  7510. $as_echo "$as_me: failed program was:" >&5
  7511. sed 's/^/| /' conftest.$ac_ext >&5
  7512. ac_cv_header_stdc=no
  7513. fi
  7514. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7515. if test $ac_cv_header_stdc = yes; then
  7516. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7517. cat >conftest.$ac_ext <<_ACEOF
  7518. /* confdefs.h. */
  7519. _ACEOF
  7520. cat confdefs.h >>conftest.$ac_ext
  7521. cat >>conftest.$ac_ext <<_ACEOF
  7522. /* end confdefs.h. */
  7523. #include <string.h>
  7524. _ACEOF
  7525. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7526. $EGREP "memchr" >/dev/null 2>&1; then
  7527. :
  7528. else
  7529. ac_cv_header_stdc=no
  7530. fi
  7531. rm -f conftest*
  7532. fi
  7533. if test $ac_cv_header_stdc = yes; then
  7534. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7535. cat >conftest.$ac_ext <<_ACEOF
  7536. /* confdefs.h. */
  7537. _ACEOF
  7538. cat confdefs.h >>conftest.$ac_ext
  7539. cat >>conftest.$ac_ext <<_ACEOF
  7540. /* end confdefs.h. */
  7541. #include <stdlib.h>
  7542. _ACEOF
  7543. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7544. $EGREP "free" >/dev/null 2>&1; then
  7545. :
  7546. else
  7547. ac_cv_header_stdc=no
  7548. fi
  7549. rm -f conftest*
  7550. fi
  7551. if test $ac_cv_header_stdc = yes; then
  7552. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7553. if test "$cross_compiling" = yes; then
  7554. :
  7555. else
  7556. cat >conftest.$ac_ext <<_ACEOF
  7557. /* confdefs.h. */
  7558. _ACEOF
  7559. cat confdefs.h >>conftest.$ac_ext
  7560. cat >>conftest.$ac_ext <<_ACEOF
  7561. /* end confdefs.h. */
  7562. #include <ctype.h>
  7563. #include <stdlib.h>
  7564. #if ((' ' & 0x0FF) == 0x020)
  7565. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7566. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7567. #else
  7568. # define ISLOWER(c) \
  7569. (('a' <= (c) && (c) <= 'i') \
  7570. || ('j' <= (c) && (c) <= 'r') \
  7571. || ('s' <= (c) && (c) <= 'z'))
  7572. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7573. #endif
  7574. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7575. int
  7576. main ()
  7577. {
  7578. int i;
  7579. for (i = 0; i < 256; i++)
  7580. if (XOR (islower (i), ISLOWER (i))
  7581. || toupper (i) != TOUPPER (i))
  7582. return 2;
  7583. return 0;
  7584. }
  7585. _ACEOF
  7586. rm -f conftest$ac_exeext
  7587. if { (ac_try="$ac_link"
  7588. case "(($ac_try" in
  7589. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7590. *) ac_try_echo=$ac_try;;
  7591. esac
  7592. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7593. $as_echo "$ac_try_echo") >&5
  7594. (eval "$ac_link") 2>&5
  7595. ac_status=$?
  7596. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7597. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7598. { (case "(($ac_try" in
  7599. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7600. *) ac_try_echo=$ac_try;;
  7601. esac
  7602. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7603. $as_echo "$ac_try_echo") >&5
  7604. (eval "$ac_try") 2>&5
  7605. ac_status=$?
  7606. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7607. (exit $ac_status); }; }; then
  7608. :
  7609. else
  7610. $as_echo "$as_me: program exited with status $ac_status" >&5
  7611. $as_echo "$as_me: failed program was:" >&5
  7612. sed 's/^/| /' conftest.$ac_ext >&5
  7613. ( exit $ac_status )
  7614. ac_cv_header_stdc=no
  7615. fi
  7616. rm -rf conftest.dSYM
  7617. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7618. fi
  7619. fi
  7620. fi
  7621. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7622. $as_echo "$ac_cv_header_stdc" >&6; }
  7623. if test $ac_cv_header_stdc = yes; then
  7624. cat >>confdefs.h <<\_ACEOF
  7625. #define STDC_HEADERS 1
  7626. _ACEOF
  7627. fi
  7628. case "$target" in
  7629. *mingw*)
  7630. for ac_header in winsock2.h \
  7631. ws2tcpip.h
  7632. do
  7633. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7634. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7635. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7636. $as_echo_n "checking for $ac_header... " >&6; }
  7637. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7638. $as_echo_n "(cached) " >&6
  7639. fi
  7640. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7641. $as_echo "$as_val"'`
  7642. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7643. $as_echo "$ac_res" >&6; }
  7644. else
  7645. # Is the header compilable?
  7646. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7647. $as_echo_n "checking $ac_header usability... " >&6; }
  7648. cat >conftest.$ac_ext <<_ACEOF
  7649. /* confdefs.h. */
  7650. _ACEOF
  7651. cat confdefs.h >>conftest.$ac_ext
  7652. cat >>conftest.$ac_ext <<_ACEOF
  7653. /* end confdefs.h. */
  7654. $ac_includes_default
  7655. #include <$ac_header>
  7656. _ACEOF
  7657. rm -f conftest.$ac_objext
  7658. if { (ac_try="$ac_compile"
  7659. case "(($ac_try" in
  7660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7661. *) ac_try_echo=$ac_try;;
  7662. esac
  7663. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7664. $as_echo "$ac_try_echo") >&5
  7665. (eval "$ac_compile") 2>conftest.er1
  7666. ac_status=$?
  7667. grep -v '^ *+' conftest.er1 >conftest.err
  7668. rm -f conftest.er1
  7669. cat conftest.err >&5
  7670. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7671. (exit $ac_status); } && {
  7672. test -z "$ac_cxx_werror_flag" ||
  7673. test ! -s conftest.err
  7674. } && test -s conftest.$ac_objext; then
  7675. ac_header_compiler=yes
  7676. else
  7677. $as_echo "$as_me: failed program was:" >&5
  7678. sed 's/^/| /' conftest.$ac_ext >&5
  7679. ac_header_compiler=no
  7680. fi
  7681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7682. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7683. $as_echo "$ac_header_compiler" >&6; }
  7684. # Is the header present?
  7685. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7686. $as_echo_n "checking $ac_header presence... " >&6; }
  7687. cat >conftest.$ac_ext <<_ACEOF
  7688. /* confdefs.h. */
  7689. _ACEOF
  7690. cat confdefs.h >>conftest.$ac_ext
  7691. cat >>conftest.$ac_ext <<_ACEOF
  7692. /* end confdefs.h. */
  7693. #include <$ac_header>
  7694. _ACEOF
  7695. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7696. case "(($ac_try" in
  7697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7698. *) ac_try_echo=$ac_try;;
  7699. esac
  7700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7701. $as_echo "$ac_try_echo") >&5
  7702. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7703. ac_status=$?
  7704. grep -v '^ *+' conftest.er1 >conftest.err
  7705. rm -f conftest.er1
  7706. cat conftest.err >&5
  7707. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7708. (exit $ac_status); } >/dev/null && {
  7709. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7710. test ! -s conftest.err
  7711. }; then
  7712. ac_header_preproc=yes
  7713. else
  7714. $as_echo "$as_me: failed program was:" >&5
  7715. sed 's/^/| /' conftest.$ac_ext >&5
  7716. ac_header_preproc=no
  7717. fi
  7718. rm -f conftest.err conftest.$ac_ext
  7719. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7720. $as_echo "$ac_header_preproc" >&6; }
  7721. # So? What about this header?
  7722. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7723. yes:no: )
  7724. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7725. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7726. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7727. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7728. ac_header_preproc=yes
  7729. ;;
  7730. no:yes:* )
  7731. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7732. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7733. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7734. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7735. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7736. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7737. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7738. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7739. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7740. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7741. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7742. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7743. ( cat <<\_ASBOX
  7744. ## ----------------------------------------------- ##
  7745. ## Report this to t-tujikawa@users.sourceforge.net ##
  7746. ## ----------------------------------------------- ##
  7747. _ASBOX
  7748. ) | sed "s/^/$as_me: WARNING: /" >&2
  7749. ;;
  7750. esac
  7751. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7752. $as_echo_n "checking for $ac_header... " >&6; }
  7753. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7754. $as_echo_n "(cached) " >&6
  7755. else
  7756. eval "$as_ac_Header=\$ac_header_preproc"
  7757. fi
  7758. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7759. $as_echo "$as_val"'`
  7760. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7761. $as_echo "$ac_res" >&6; }
  7762. fi
  7763. as_val=`eval 'as_val=${'$as_ac_Header'}
  7764. $as_echo "$as_val"'`
  7765. if test "x$as_val" = x""yes; then
  7766. cat >>confdefs.h <<_ACEOF
  7767. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7768. _ACEOF
  7769. fi
  7770. done
  7771. ;;
  7772. esac
  7773. for ac_header in argz.h \
  7774. arpa/inet.h \
  7775. fcntl.h \
  7776. float.h \
  7777. inttypes.h \
  7778. io.h \
  7779. langinfo.h \
  7780. libintl.h \
  7781. limits.h \
  7782. locale.h \
  7783. malloc.h \
  7784. netdb.h \
  7785. netinet/in.h \
  7786. stddef.h \
  7787. stdint.h \
  7788. stdio_ext.h \
  7789. stdlib.h \
  7790. string.h \
  7791. strings.h \
  7792. sys/ioctl.h \
  7793. sys/param.h \
  7794. sys/socket.h \
  7795. sys/time.h \
  7796. termios.h \
  7797. unistd.h \
  7798. wchar.h
  7799. do
  7800. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7801. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7802. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7803. $as_echo_n "checking for $ac_header... " >&6; }
  7804. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7805. $as_echo_n "(cached) " >&6
  7806. fi
  7807. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7808. $as_echo "$as_val"'`
  7809. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7810. $as_echo "$ac_res" >&6; }
  7811. else
  7812. # Is the header compilable?
  7813. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7814. $as_echo_n "checking $ac_header usability... " >&6; }
  7815. cat >conftest.$ac_ext <<_ACEOF
  7816. /* confdefs.h. */
  7817. _ACEOF
  7818. cat confdefs.h >>conftest.$ac_ext
  7819. cat >>conftest.$ac_ext <<_ACEOF
  7820. /* end confdefs.h. */
  7821. $ac_includes_default
  7822. #include <$ac_header>
  7823. _ACEOF
  7824. rm -f conftest.$ac_objext
  7825. if { (ac_try="$ac_compile"
  7826. case "(($ac_try" in
  7827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7828. *) ac_try_echo=$ac_try;;
  7829. esac
  7830. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7831. $as_echo "$ac_try_echo") >&5
  7832. (eval "$ac_compile") 2>conftest.er1
  7833. ac_status=$?
  7834. grep -v '^ *+' conftest.er1 >conftest.err
  7835. rm -f conftest.er1
  7836. cat conftest.err >&5
  7837. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7838. (exit $ac_status); } && {
  7839. test -z "$ac_cxx_werror_flag" ||
  7840. test ! -s conftest.err
  7841. } && test -s conftest.$ac_objext; then
  7842. ac_header_compiler=yes
  7843. else
  7844. $as_echo "$as_me: failed program was:" >&5
  7845. sed 's/^/| /' conftest.$ac_ext >&5
  7846. ac_header_compiler=no
  7847. fi
  7848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7849. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7850. $as_echo "$ac_header_compiler" >&6; }
  7851. # Is the header present?
  7852. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7853. $as_echo_n "checking $ac_header presence... " >&6; }
  7854. cat >conftest.$ac_ext <<_ACEOF
  7855. /* confdefs.h. */
  7856. _ACEOF
  7857. cat confdefs.h >>conftest.$ac_ext
  7858. cat >>conftest.$ac_ext <<_ACEOF
  7859. /* end confdefs.h. */
  7860. #include <$ac_header>
  7861. _ACEOF
  7862. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7863. case "(($ac_try" in
  7864. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7865. *) ac_try_echo=$ac_try;;
  7866. esac
  7867. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7868. $as_echo "$ac_try_echo") >&5
  7869. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7870. ac_status=$?
  7871. grep -v '^ *+' conftest.er1 >conftest.err
  7872. rm -f conftest.er1
  7873. cat conftest.err >&5
  7874. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7875. (exit $ac_status); } >/dev/null && {
  7876. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7877. test ! -s conftest.err
  7878. }; then
  7879. ac_header_preproc=yes
  7880. else
  7881. $as_echo "$as_me: failed program was:" >&5
  7882. sed 's/^/| /' conftest.$ac_ext >&5
  7883. ac_header_preproc=no
  7884. fi
  7885. rm -f conftest.err conftest.$ac_ext
  7886. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7887. $as_echo "$ac_header_preproc" >&6; }
  7888. # So? What about this header?
  7889. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7890. yes:no: )
  7891. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7892. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7893. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7894. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7895. ac_header_preproc=yes
  7896. ;;
  7897. no:yes:* )
  7898. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7899. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7900. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7901. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7902. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7903. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7904. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7905. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7906. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7907. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7908. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7909. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7910. ( cat <<\_ASBOX
  7911. ## ----------------------------------------------- ##
  7912. ## Report this to t-tujikawa@users.sourceforge.net ##
  7913. ## ----------------------------------------------- ##
  7914. _ASBOX
  7915. ) | sed "s/^/$as_me: WARNING: /" >&2
  7916. ;;
  7917. esac
  7918. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7919. $as_echo_n "checking for $ac_header... " >&6; }
  7920. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7921. $as_echo_n "(cached) " >&6
  7922. else
  7923. eval "$as_ac_Header=\$ac_header_preproc"
  7924. fi
  7925. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7926. $as_echo "$as_val"'`
  7927. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7928. $as_echo "$ac_res" >&6; }
  7929. fi
  7930. as_val=`eval 'as_val=${'$as_ac_Header'}
  7931. $as_echo "$as_val"'`
  7932. if test "x$as_val" = x""yes; then
  7933. cat >>confdefs.h <<_ACEOF
  7934. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7935. _ACEOF
  7936. fi
  7937. done
  7938. # Checks for typedefs, structures, and compiler characteristics.
  7939. { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  7940. $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
  7941. if test "${ac_cv_header_stdbool_h+set}" = set; then
  7942. $as_echo_n "(cached) " >&6
  7943. else
  7944. cat >conftest.$ac_ext <<_ACEOF
  7945. /* confdefs.h. */
  7946. _ACEOF
  7947. cat confdefs.h >>conftest.$ac_ext
  7948. cat >>conftest.$ac_ext <<_ACEOF
  7949. /* end confdefs.h. */
  7950. #include <stdbool.h>
  7951. #ifndef bool
  7952. "error: bool is not defined"
  7953. #endif
  7954. #ifndef false
  7955. "error: false is not defined"
  7956. #endif
  7957. #if false
  7958. "error: false is not 0"
  7959. #endif
  7960. #ifndef true
  7961. "error: true is not defined"
  7962. #endif
  7963. #if true != 1
  7964. "error: true is not 1"
  7965. #endif
  7966. #ifndef __bool_true_false_are_defined
  7967. "error: __bool_true_false_are_defined is not defined"
  7968. #endif
  7969. struct s { _Bool s: 1; _Bool t; } s;
  7970. char a[true == 1 ? 1 : -1];
  7971. char b[false == 0 ? 1 : -1];
  7972. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  7973. char d[(bool) 0.5 == true ? 1 : -1];
  7974. bool e = &s;
  7975. char f[(_Bool) 0.0 == false ? 1 : -1];
  7976. char g[true];
  7977. char h[sizeof (_Bool)];
  7978. char i[sizeof s.t];
  7979. enum { j = false, k = true, l = false * true, m = true * 256 };
  7980. /* The following fails for
  7981. HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
  7982. _Bool n[m];
  7983. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  7984. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  7985. # if defined __xlc__ || defined __GNUC__
  7986. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  7987. reported by James Lemley on 2005-10-05; see
  7988. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  7989. This test is not quite right, since xlc is allowed to
  7990. reject this program, as the initializer for xlcbug is
  7991. not one of the forms that C requires support for.
  7992. However, doing the test right would require a runtime
  7993. test, and that would make cross-compilation harder.
  7994. Let us hope that IBM fixes the xlc bug, and also adds
  7995. support for this kind of constant expression. In the
  7996. meantime, this test will reject xlc, which is OK, since
  7997. our stdbool.h substitute should suffice. We also test
  7998. this with GCC, where it should work, to detect more
  7999. quickly whether someone messes up the test in the
  8000. future. */
  8001. char digs[] = "0123456789";
  8002. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  8003. # endif
  8004. /* Catch a bug in an HP-UX C compiler. See
  8005. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  8006. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  8007. */
  8008. _Bool q = true;
  8009. _Bool *pq = &q;
  8010. int
  8011. main ()
  8012. {
  8013. *pq |= q;
  8014. *pq |= ! q;
  8015. /* Refer to every declared value, to avoid compiler optimizations. */
  8016. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  8017. + !m + !n + !o + !p + !q + !pq);
  8018. ;
  8019. return 0;
  8020. }
  8021. _ACEOF
  8022. rm -f conftest.$ac_objext
  8023. if { (ac_try="$ac_compile"
  8024. case "(($ac_try" in
  8025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8026. *) ac_try_echo=$ac_try;;
  8027. esac
  8028. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8029. $as_echo "$ac_try_echo") >&5
  8030. (eval "$ac_compile") 2>conftest.er1
  8031. ac_status=$?
  8032. grep -v '^ *+' conftest.er1 >conftest.err
  8033. rm -f conftest.er1
  8034. cat conftest.err >&5
  8035. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8036. (exit $ac_status); } && {
  8037. test -z "$ac_cxx_werror_flag" ||
  8038. test ! -s conftest.err
  8039. } && test -s conftest.$ac_objext; then
  8040. ac_cv_header_stdbool_h=yes
  8041. else
  8042. $as_echo "$as_me: failed program was:" >&5
  8043. sed 's/^/| /' conftest.$ac_ext >&5
  8044. ac_cv_header_stdbool_h=no
  8045. fi
  8046. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8047. fi
  8048. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  8049. $as_echo "$ac_cv_header_stdbool_h" >&6; }
  8050. { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
  8051. $as_echo_n "checking for _Bool... " >&6; }
  8052. if test "${ac_cv_type__Bool+set}" = set; then
  8053. $as_echo_n "(cached) " >&6
  8054. else
  8055. ac_cv_type__Bool=no
  8056. cat >conftest.$ac_ext <<_ACEOF
  8057. /* confdefs.h. */
  8058. _ACEOF
  8059. cat confdefs.h >>conftest.$ac_ext
  8060. cat >>conftest.$ac_ext <<_ACEOF
  8061. /* end confdefs.h. */
  8062. $ac_includes_default
  8063. int
  8064. main ()
  8065. {
  8066. if (sizeof (_Bool))
  8067. return 0;
  8068. ;
  8069. return 0;
  8070. }
  8071. _ACEOF
  8072. rm -f conftest.$ac_objext
  8073. if { (ac_try="$ac_compile"
  8074. case "(($ac_try" in
  8075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8076. *) ac_try_echo=$ac_try;;
  8077. esac
  8078. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8079. $as_echo "$ac_try_echo") >&5
  8080. (eval "$ac_compile") 2>conftest.er1
  8081. ac_status=$?
  8082. grep -v '^ *+' conftest.er1 >conftest.err
  8083. rm -f conftest.er1
  8084. cat conftest.err >&5
  8085. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8086. (exit $ac_status); } && {
  8087. test -z "$ac_cxx_werror_flag" ||
  8088. test ! -s conftest.err
  8089. } && test -s conftest.$ac_objext; then
  8090. cat >conftest.$ac_ext <<_ACEOF
  8091. /* confdefs.h. */
  8092. _ACEOF
  8093. cat confdefs.h >>conftest.$ac_ext
  8094. cat >>conftest.$ac_ext <<_ACEOF
  8095. /* end confdefs.h. */
  8096. $ac_includes_default
  8097. int
  8098. main ()
  8099. {
  8100. if (sizeof ((_Bool)))
  8101. return 0;
  8102. ;
  8103. return 0;
  8104. }
  8105. _ACEOF
  8106. rm -f conftest.$ac_objext
  8107. if { (ac_try="$ac_compile"
  8108. case "(($ac_try" in
  8109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8110. *) ac_try_echo=$ac_try;;
  8111. esac
  8112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8113. $as_echo "$ac_try_echo") >&5
  8114. (eval "$ac_compile") 2>conftest.er1
  8115. ac_status=$?
  8116. grep -v '^ *+' conftest.er1 >conftest.err
  8117. rm -f conftest.er1
  8118. cat conftest.err >&5
  8119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8120. (exit $ac_status); } && {
  8121. test -z "$ac_cxx_werror_flag" ||
  8122. test ! -s conftest.err
  8123. } && test -s conftest.$ac_objext; then
  8124. :
  8125. else
  8126. $as_echo "$as_me: failed program was:" >&5
  8127. sed 's/^/| /' conftest.$ac_ext >&5
  8128. ac_cv_type__Bool=yes
  8129. fi
  8130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8131. else
  8132. $as_echo "$as_me: failed program was:" >&5
  8133. sed 's/^/| /' conftest.$ac_ext >&5
  8134. fi
  8135. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8136. fi
  8137. { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  8138. $as_echo "$ac_cv_type__Bool" >&6; }
  8139. if test "x$ac_cv_type__Bool" = x""yes; then
  8140. cat >>confdefs.h <<_ACEOF
  8141. #define HAVE__BOOL 1
  8142. _ACEOF
  8143. fi
  8144. if test $ac_cv_header_stdbool_h = yes; then
  8145. cat >>confdefs.h <<\_ACEOF
  8146. #define HAVE_STDBOOL_H 1
  8147. _ACEOF
  8148. fi
  8149. { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  8150. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  8151. if test "${ac_cv_c_const+set}" = set; then
  8152. $as_echo_n "(cached) " >&6
  8153. else
  8154. cat >conftest.$ac_ext <<_ACEOF
  8155. /* confdefs.h. */
  8156. _ACEOF
  8157. cat confdefs.h >>conftest.$ac_ext
  8158. cat >>conftest.$ac_ext <<_ACEOF
  8159. /* end confdefs.h. */
  8160. int
  8161. main ()
  8162. {
  8163. /* FIXME: Include the comments suggested by Paul. */
  8164. #ifndef __cplusplus
  8165. /* Ultrix mips cc rejects this. */
  8166. typedef int charset[2];
  8167. const charset cs;
  8168. /* SunOS 4.1.1 cc rejects this. */
  8169. char const *const *pcpcc;
  8170. char **ppc;
  8171. /* NEC SVR4.0.2 mips cc rejects this. */
  8172. struct point {int x, y;};
  8173. static struct point const zero = {0,0};
  8174. /* AIX XL C 1.02.0.0 rejects this.
  8175. It does not let you subtract one const X* pointer from another in
  8176. an arm of an if-expression whose if-part is not a constant
  8177. expression */
  8178. const char *g = "string";
  8179. pcpcc = &g + (g ? g-g : 0);
  8180. /* HPUX 7.0 cc rejects these. */
  8181. ++pcpcc;
  8182. ppc = (char**) pcpcc;
  8183. pcpcc = (char const *const *) ppc;
  8184. { /* SCO 3.2v4 cc rejects this. */
  8185. char *t;
  8186. char const *s = 0 ? (char *) 0 : (char const *) 0;
  8187. *t++ = 0;
  8188. if (s) return 0;
  8189. }
  8190. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  8191. int x[] = {25, 17};
  8192. const int *foo = &x[0];
  8193. ++foo;
  8194. }
  8195. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  8196. typedef const int *iptr;
  8197. iptr p = 0;
  8198. ++p;
  8199. }
  8200. { /* AIX XL C 1.02.0.0 rejects this saying
  8201. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  8202. struct s { int j; const int *ap[3]; };
  8203. struct s *b; b->j = 5;
  8204. }
  8205. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  8206. const int foo = 10;
  8207. if (!foo) return 0;
  8208. }
  8209. return !cs[0] && !zero.x;
  8210. #endif
  8211. ;
  8212. return 0;
  8213. }
  8214. _ACEOF
  8215. rm -f conftest.$ac_objext
  8216. if { (ac_try="$ac_compile"
  8217. case "(($ac_try" in
  8218. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8219. *) ac_try_echo=$ac_try;;
  8220. esac
  8221. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8222. $as_echo "$ac_try_echo") >&5
  8223. (eval "$ac_compile") 2>conftest.er1
  8224. ac_status=$?
  8225. grep -v '^ *+' conftest.er1 >conftest.err
  8226. rm -f conftest.er1
  8227. cat conftest.err >&5
  8228. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8229. (exit $ac_status); } && {
  8230. test -z "$ac_cxx_werror_flag" ||
  8231. test ! -s conftest.err
  8232. } && test -s conftest.$ac_objext; then
  8233. ac_cv_c_const=yes
  8234. else
  8235. $as_echo "$as_me: failed program was:" >&5
  8236. sed 's/^/| /' conftest.$ac_ext >&5
  8237. ac_cv_c_const=no
  8238. fi
  8239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8240. fi
  8241. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  8242. $as_echo "$ac_cv_c_const" >&6; }
  8243. if test $ac_cv_c_const = no; then
  8244. cat >>confdefs.h <<\_ACEOF
  8245. #define const /**/
  8246. _ACEOF
  8247. fi
  8248. { $as_echo "$as_me:$LINENO: checking for inline" >&5
  8249. $as_echo_n "checking for inline... " >&6; }
  8250. if test "${ac_cv_c_inline+set}" = set; then
  8251. $as_echo_n "(cached) " >&6
  8252. else
  8253. ac_cv_c_inline=no
  8254. for ac_kw in inline __inline__ __inline; do
  8255. cat >conftest.$ac_ext <<_ACEOF
  8256. /* confdefs.h. */
  8257. _ACEOF
  8258. cat confdefs.h >>conftest.$ac_ext
  8259. cat >>conftest.$ac_ext <<_ACEOF
  8260. /* end confdefs.h. */
  8261. #ifndef __cplusplus
  8262. typedef int foo_t;
  8263. static $ac_kw foo_t static_foo () {return 0; }
  8264. $ac_kw foo_t foo () {return 0; }
  8265. #endif
  8266. _ACEOF
  8267. rm -f conftest.$ac_objext
  8268. if { (ac_try="$ac_compile"
  8269. case "(($ac_try" in
  8270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8271. *) ac_try_echo=$ac_try;;
  8272. esac
  8273. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8274. $as_echo "$ac_try_echo") >&5
  8275. (eval "$ac_compile") 2>conftest.er1
  8276. ac_status=$?
  8277. grep -v '^ *+' conftest.er1 >conftest.err
  8278. rm -f conftest.er1
  8279. cat conftest.err >&5
  8280. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8281. (exit $ac_status); } && {
  8282. test -z "$ac_cxx_werror_flag" ||
  8283. test ! -s conftest.err
  8284. } && test -s conftest.$ac_objext; then
  8285. ac_cv_c_inline=$ac_kw
  8286. else
  8287. $as_echo "$as_me: failed program was:" >&5
  8288. sed 's/^/| /' conftest.$ac_ext >&5
  8289. fi
  8290. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8291. test "$ac_cv_c_inline" != no && break
  8292. done
  8293. fi
  8294. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  8295. $as_echo "$ac_cv_c_inline" >&6; }
  8296. case $ac_cv_c_inline in
  8297. inline | yes) ;;
  8298. *)
  8299. case $ac_cv_c_inline in
  8300. no) ac_val=;;
  8301. *) ac_val=$ac_cv_c_inline;;
  8302. esac
  8303. cat >>confdefs.h <<_ACEOF
  8304. #ifndef __cplusplus
  8305. #define inline $ac_val
  8306. #endif
  8307. _ACEOF
  8308. ;;
  8309. esac
  8310. { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
  8311. $as_echo_n "checking for int16_t... " >&6; }
  8312. if test "${ac_cv_c_int16_t+set}" = set; then
  8313. $as_echo_n "(cached) " >&6
  8314. else
  8315. ac_cv_c_int16_t=no
  8316. for ac_type in 'int16_t' 'int' 'long int' \
  8317. 'long long int' 'short int' 'signed char'; do
  8318. cat >conftest.$ac_ext <<_ACEOF
  8319. /* confdefs.h. */
  8320. _ACEOF
  8321. cat confdefs.h >>conftest.$ac_ext
  8322. cat >>conftest.$ac_ext <<_ACEOF
  8323. /* end confdefs.h. */
  8324. $ac_includes_default
  8325. int
  8326. main ()
  8327. {
  8328. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
  8329. test_array [0] = 0
  8330. ;
  8331. return 0;
  8332. }
  8333. _ACEOF
  8334. rm -f conftest.$ac_objext
  8335. if { (ac_try="$ac_compile"
  8336. case "(($ac_try" in
  8337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8338. *) ac_try_echo=$ac_try;;
  8339. esac
  8340. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8341. $as_echo "$ac_try_echo") >&5
  8342. (eval "$ac_compile") 2>conftest.er1
  8343. ac_status=$?
  8344. grep -v '^ *+' conftest.er1 >conftest.err
  8345. rm -f conftest.er1
  8346. cat conftest.err >&5
  8347. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8348. (exit $ac_status); } && {
  8349. test -z "$ac_cxx_werror_flag" ||
  8350. test ! -s conftest.err
  8351. } && test -s conftest.$ac_objext; then
  8352. cat >conftest.$ac_ext <<_ACEOF
  8353. /* confdefs.h. */
  8354. _ACEOF
  8355. cat confdefs.h >>conftest.$ac_ext
  8356. cat >>conftest.$ac_ext <<_ACEOF
  8357. /* end confdefs.h. */
  8358. $ac_includes_default
  8359. int
  8360. main ()
  8361. {
  8362. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
  8363. < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
  8364. test_array [0] = 0
  8365. ;
  8366. return 0;
  8367. }
  8368. _ACEOF
  8369. rm -f conftest.$ac_objext
  8370. if { (ac_try="$ac_compile"
  8371. case "(($ac_try" in
  8372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8373. *) ac_try_echo=$ac_try;;
  8374. esac
  8375. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8376. $as_echo "$ac_try_echo") >&5
  8377. (eval "$ac_compile") 2>conftest.er1
  8378. ac_status=$?
  8379. grep -v '^ *+' conftest.er1 >conftest.err
  8380. rm -f conftest.er1
  8381. cat conftest.err >&5
  8382. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8383. (exit $ac_status); } && {
  8384. test -z "$ac_cxx_werror_flag" ||
  8385. test ! -s conftest.err
  8386. } && test -s conftest.$ac_objext; then
  8387. :
  8388. else
  8389. $as_echo "$as_me: failed program was:" >&5
  8390. sed 's/^/| /' conftest.$ac_ext >&5
  8391. case $ac_type in
  8392. int16_t) ac_cv_c_int16_t=yes ;;
  8393. *) ac_cv_c_int16_t=$ac_type ;;
  8394. esac
  8395. fi
  8396. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8397. else
  8398. $as_echo "$as_me: failed program was:" >&5
  8399. sed 's/^/| /' conftest.$ac_ext >&5
  8400. fi
  8401. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8402. test "$ac_cv_c_int16_t" != no && break
  8403. done
  8404. fi
  8405. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
  8406. $as_echo "$ac_cv_c_int16_t" >&6; }
  8407. case $ac_cv_c_int16_t in #(
  8408. no|yes) ;; #(
  8409. *)
  8410. cat >>confdefs.h <<_ACEOF
  8411. #define int16_t $ac_cv_c_int16_t
  8412. _ACEOF
  8413. ;;
  8414. esac
  8415. { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
  8416. $as_echo_n "checking for int32_t... " >&6; }
  8417. if test "${ac_cv_c_int32_t+set}" = set; then
  8418. $as_echo_n "(cached) " >&6
  8419. else
  8420. ac_cv_c_int32_t=no
  8421. for ac_type in 'int32_t' 'int' 'long int' \
  8422. 'long long int' 'short int' 'signed char'; do
  8423. cat >conftest.$ac_ext <<_ACEOF
  8424. /* confdefs.h. */
  8425. _ACEOF
  8426. cat confdefs.h >>conftest.$ac_ext
  8427. cat >>conftest.$ac_ext <<_ACEOF
  8428. /* end confdefs.h. */
  8429. $ac_includes_default
  8430. int
  8431. main ()
  8432. {
  8433. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
  8434. test_array [0] = 0
  8435. ;
  8436. return 0;
  8437. }
  8438. _ACEOF
  8439. rm -f conftest.$ac_objext
  8440. if { (ac_try="$ac_compile"
  8441. case "(($ac_try" in
  8442. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8443. *) ac_try_echo=$ac_try;;
  8444. esac
  8445. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8446. $as_echo "$ac_try_echo") >&5
  8447. (eval "$ac_compile") 2>conftest.er1
  8448. ac_status=$?
  8449. grep -v '^ *+' conftest.er1 >conftest.err
  8450. rm -f conftest.er1
  8451. cat conftest.err >&5
  8452. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8453. (exit $ac_status); } && {
  8454. test -z "$ac_cxx_werror_flag" ||
  8455. test ! -s conftest.err
  8456. } && test -s conftest.$ac_objext; then
  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. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
  8468. < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
  8469. test_array [0] = 0
  8470. ;
  8471. return 0;
  8472. }
  8473. _ACEOF
  8474. rm -f conftest.$ac_objext
  8475. if { (ac_try="$ac_compile"
  8476. case "(($ac_try" in
  8477. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8478. *) ac_try_echo=$ac_try;;
  8479. esac
  8480. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8481. $as_echo "$ac_try_echo") >&5
  8482. (eval "$ac_compile") 2>conftest.er1
  8483. ac_status=$?
  8484. grep -v '^ *+' conftest.er1 >conftest.err
  8485. rm -f conftest.er1
  8486. cat conftest.err >&5
  8487. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8488. (exit $ac_status); } && {
  8489. test -z "$ac_cxx_werror_flag" ||
  8490. test ! -s conftest.err
  8491. } && test -s conftest.$ac_objext; then
  8492. :
  8493. else
  8494. $as_echo "$as_me: failed program was:" >&5
  8495. sed 's/^/| /' conftest.$ac_ext >&5
  8496. case $ac_type in
  8497. int32_t) ac_cv_c_int32_t=yes ;;
  8498. *) ac_cv_c_int32_t=$ac_type ;;
  8499. esac
  8500. fi
  8501. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8502. else
  8503. $as_echo "$as_me: failed program was:" >&5
  8504. sed 's/^/| /' conftest.$ac_ext >&5
  8505. fi
  8506. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8507. test "$ac_cv_c_int32_t" != no && break
  8508. done
  8509. fi
  8510. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
  8511. $as_echo "$ac_cv_c_int32_t" >&6; }
  8512. case $ac_cv_c_int32_t in #(
  8513. no|yes) ;; #(
  8514. *)
  8515. cat >>confdefs.h <<_ACEOF
  8516. #define int32_t $ac_cv_c_int32_t
  8517. _ACEOF
  8518. ;;
  8519. esac
  8520. { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
  8521. $as_echo_n "checking for int64_t... " >&6; }
  8522. if test "${ac_cv_c_int64_t+set}" = set; then
  8523. $as_echo_n "(cached) " >&6
  8524. else
  8525. ac_cv_c_int64_t=no
  8526. for ac_type in 'int64_t' 'int' 'long int' \
  8527. 'long long int' 'short int' 'signed char'; do
  8528. cat >conftest.$ac_ext <<_ACEOF
  8529. /* confdefs.h. */
  8530. _ACEOF
  8531. cat confdefs.h >>conftest.$ac_ext
  8532. cat >>conftest.$ac_ext <<_ACEOF
  8533. /* end confdefs.h. */
  8534. $ac_includes_default
  8535. int
  8536. main ()
  8537. {
  8538. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1))];
  8539. test_array [0] = 0
  8540. ;
  8541. return 0;
  8542. }
  8543. _ACEOF
  8544. rm -f conftest.$ac_objext
  8545. if { (ac_try="$ac_compile"
  8546. case "(($ac_try" in
  8547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8548. *) ac_try_echo=$ac_try;;
  8549. esac
  8550. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8551. $as_echo "$ac_try_echo") >&5
  8552. (eval "$ac_compile") 2>conftest.er1
  8553. ac_status=$?
  8554. grep -v '^ *+' conftest.er1 >conftest.err
  8555. rm -f conftest.er1
  8556. cat conftest.err >&5
  8557. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8558. (exit $ac_status); } && {
  8559. test -z "$ac_cxx_werror_flag" ||
  8560. test ! -s conftest.err
  8561. } && test -s conftest.$ac_objext; then
  8562. cat >conftest.$ac_ext <<_ACEOF
  8563. /* confdefs.h. */
  8564. _ACEOF
  8565. cat confdefs.h >>conftest.$ac_ext
  8566. cat >>conftest.$ac_ext <<_ACEOF
  8567. /* end confdefs.h. */
  8568. $ac_includes_default
  8569. int
  8570. main ()
  8571. {
  8572. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 1)
  8573. < ($ac_type) (((($ac_type) 1 << (64 - 2)) - 1) * 2 + 2))];
  8574. test_array [0] = 0
  8575. ;
  8576. return 0;
  8577. }
  8578. _ACEOF
  8579. rm -f conftest.$ac_objext
  8580. if { (ac_try="$ac_compile"
  8581. case "(($ac_try" in
  8582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8583. *) ac_try_echo=$ac_try;;
  8584. esac
  8585. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8586. $as_echo "$ac_try_echo") >&5
  8587. (eval "$ac_compile") 2>conftest.er1
  8588. ac_status=$?
  8589. grep -v '^ *+' conftest.er1 >conftest.err
  8590. rm -f conftest.er1
  8591. cat conftest.err >&5
  8592. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8593. (exit $ac_status); } && {
  8594. test -z "$ac_cxx_werror_flag" ||
  8595. test ! -s conftest.err
  8596. } && test -s conftest.$ac_objext; then
  8597. :
  8598. else
  8599. $as_echo "$as_me: failed program was:" >&5
  8600. sed 's/^/| /' conftest.$ac_ext >&5
  8601. case $ac_type in
  8602. int64_t) ac_cv_c_int64_t=yes ;;
  8603. *) ac_cv_c_int64_t=$ac_type ;;
  8604. esac
  8605. fi
  8606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8607. else
  8608. $as_echo "$as_me: failed program was:" >&5
  8609. sed 's/^/| /' conftest.$ac_ext >&5
  8610. fi
  8611. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8612. test "$ac_cv_c_int64_t" != no && break
  8613. done
  8614. fi
  8615. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int64_t" >&5
  8616. $as_echo "$ac_cv_c_int64_t" >&6; }
  8617. case $ac_cv_c_int64_t in #(
  8618. no|yes) ;; #(
  8619. *)
  8620. cat >>confdefs.h <<_ACEOF
  8621. #define int64_t $ac_cv_c_int64_t
  8622. _ACEOF
  8623. ;;
  8624. esac
  8625. { $as_echo "$as_me:$LINENO: checking for int8_t" >&5
  8626. $as_echo_n "checking for int8_t... " >&6; }
  8627. if test "${ac_cv_c_int8_t+set}" = set; then
  8628. $as_echo_n "(cached) " >&6
  8629. else
  8630. ac_cv_c_int8_t=no
  8631. for ac_type in 'int8_t' 'int' 'long int' \
  8632. 'long long int' 'short int' 'signed char'; do
  8633. cat >conftest.$ac_ext <<_ACEOF
  8634. /* confdefs.h. */
  8635. _ACEOF
  8636. cat confdefs.h >>conftest.$ac_ext
  8637. cat >>conftest.$ac_ext <<_ACEOF
  8638. /* end confdefs.h. */
  8639. $ac_includes_default
  8640. int
  8641. main ()
  8642. {
  8643. static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
  8644. test_array [0] = 0
  8645. ;
  8646. return 0;
  8647. }
  8648. _ACEOF
  8649. rm -f conftest.$ac_objext
  8650. if { (ac_try="$ac_compile"
  8651. case "(($ac_try" in
  8652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8653. *) ac_try_echo=$ac_try;;
  8654. esac
  8655. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8656. $as_echo "$ac_try_echo") >&5
  8657. (eval "$ac_compile") 2>conftest.er1
  8658. ac_status=$?
  8659. grep -v '^ *+' conftest.er1 >conftest.err
  8660. rm -f conftest.er1
  8661. cat conftest.err >&5
  8662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8663. (exit $ac_status); } && {
  8664. test -z "$ac_cxx_werror_flag" ||
  8665. test ! -s conftest.err
  8666. } && test -s conftest.$ac_objext; then
  8667. cat >conftest.$ac_ext <<_ACEOF
  8668. /* confdefs.h. */
  8669. _ACEOF
  8670. cat confdefs.h >>conftest.$ac_ext
  8671. cat >>conftest.$ac_ext <<_ACEOF
  8672. /* end confdefs.h. */
  8673. $ac_includes_default
  8674. int
  8675. main ()
  8676. {
  8677. static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
  8678. < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
  8679. test_array [0] = 0
  8680. ;
  8681. return 0;
  8682. }
  8683. _ACEOF
  8684. rm -f conftest.$ac_objext
  8685. if { (ac_try="$ac_compile"
  8686. case "(($ac_try" in
  8687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8688. *) ac_try_echo=$ac_try;;
  8689. esac
  8690. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8691. $as_echo "$ac_try_echo") >&5
  8692. (eval "$ac_compile") 2>conftest.er1
  8693. ac_status=$?
  8694. grep -v '^ *+' conftest.er1 >conftest.err
  8695. rm -f conftest.er1
  8696. cat conftest.err >&5
  8697. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8698. (exit $ac_status); } && {
  8699. test -z "$ac_cxx_werror_flag" ||
  8700. test ! -s conftest.err
  8701. } && test -s conftest.$ac_objext; then
  8702. :
  8703. else
  8704. $as_echo "$as_me: failed program was:" >&5
  8705. sed 's/^/| /' conftest.$ac_ext >&5
  8706. case $ac_type in
  8707. int8_t) ac_cv_c_int8_t=yes ;;
  8708. *) ac_cv_c_int8_t=$ac_type ;;
  8709. esac
  8710. fi
  8711. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8712. else
  8713. $as_echo "$as_me: failed program was:" >&5
  8714. sed 's/^/| /' conftest.$ac_ext >&5
  8715. fi
  8716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8717. test "$ac_cv_c_int8_t" != no && break
  8718. done
  8719. fi
  8720. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
  8721. $as_echo "$ac_cv_c_int8_t" >&6; }
  8722. case $ac_cv_c_int8_t in #(
  8723. no|yes) ;; #(
  8724. *)
  8725. cat >>confdefs.h <<_ACEOF
  8726. #define int8_t $ac_cv_c_int8_t
  8727. _ACEOF
  8728. ;;
  8729. esac
  8730. { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
  8731. $as_echo_n "checking for mode_t... " >&6; }
  8732. if test "${ac_cv_type_mode_t+set}" = set; then
  8733. $as_echo_n "(cached) " >&6
  8734. else
  8735. ac_cv_type_mode_t=no
  8736. cat >conftest.$ac_ext <<_ACEOF
  8737. /* confdefs.h. */
  8738. _ACEOF
  8739. cat confdefs.h >>conftest.$ac_ext
  8740. cat >>conftest.$ac_ext <<_ACEOF
  8741. /* end confdefs.h. */
  8742. $ac_includes_default
  8743. int
  8744. main ()
  8745. {
  8746. if (sizeof (mode_t))
  8747. return 0;
  8748. ;
  8749. return 0;
  8750. }
  8751. _ACEOF
  8752. rm -f conftest.$ac_objext
  8753. if { (ac_try="$ac_compile"
  8754. case "(($ac_try" in
  8755. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8756. *) ac_try_echo=$ac_try;;
  8757. esac
  8758. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8759. $as_echo "$ac_try_echo") >&5
  8760. (eval "$ac_compile") 2>conftest.er1
  8761. ac_status=$?
  8762. grep -v '^ *+' conftest.er1 >conftest.err
  8763. rm -f conftest.er1
  8764. cat conftest.err >&5
  8765. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8766. (exit $ac_status); } && {
  8767. test -z "$ac_cxx_werror_flag" ||
  8768. test ! -s conftest.err
  8769. } && test -s conftest.$ac_objext; then
  8770. cat >conftest.$ac_ext <<_ACEOF
  8771. /* confdefs.h. */
  8772. _ACEOF
  8773. cat confdefs.h >>conftest.$ac_ext
  8774. cat >>conftest.$ac_ext <<_ACEOF
  8775. /* end confdefs.h. */
  8776. $ac_includes_default
  8777. int
  8778. main ()
  8779. {
  8780. if (sizeof ((mode_t)))
  8781. return 0;
  8782. ;
  8783. return 0;
  8784. }
  8785. _ACEOF
  8786. rm -f conftest.$ac_objext
  8787. if { (ac_try="$ac_compile"
  8788. case "(($ac_try" in
  8789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8790. *) ac_try_echo=$ac_try;;
  8791. esac
  8792. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8793. $as_echo "$ac_try_echo") >&5
  8794. (eval "$ac_compile") 2>conftest.er1
  8795. ac_status=$?
  8796. grep -v '^ *+' conftest.er1 >conftest.err
  8797. rm -f conftest.er1
  8798. cat conftest.err >&5
  8799. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8800. (exit $ac_status); } && {
  8801. test -z "$ac_cxx_werror_flag" ||
  8802. test ! -s conftest.err
  8803. } && test -s conftest.$ac_objext; then
  8804. :
  8805. else
  8806. $as_echo "$as_me: failed program was:" >&5
  8807. sed 's/^/| /' conftest.$ac_ext >&5
  8808. ac_cv_type_mode_t=yes
  8809. fi
  8810. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8811. else
  8812. $as_echo "$as_me: failed program was:" >&5
  8813. sed 's/^/| /' conftest.$ac_ext >&5
  8814. fi
  8815. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8816. fi
  8817. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  8818. $as_echo "$ac_cv_type_mode_t" >&6; }
  8819. if test "x$ac_cv_type_mode_t" = x""yes; then
  8820. :
  8821. else
  8822. cat >>confdefs.h <<_ACEOF
  8823. #define mode_t int
  8824. _ACEOF
  8825. fi
  8826. { $as_echo "$as_me:$LINENO: checking for off_t" >&5
  8827. $as_echo_n "checking for off_t... " >&6; }
  8828. if test "${ac_cv_type_off_t+set}" = set; then
  8829. $as_echo_n "(cached) " >&6
  8830. else
  8831. ac_cv_type_off_t=no
  8832. cat >conftest.$ac_ext <<_ACEOF
  8833. /* confdefs.h. */
  8834. _ACEOF
  8835. cat confdefs.h >>conftest.$ac_ext
  8836. cat >>conftest.$ac_ext <<_ACEOF
  8837. /* end confdefs.h. */
  8838. $ac_includes_default
  8839. int
  8840. main ()
  8841. {
  8842. if (sizeof (off_t))
  8843. return 0;
  8844. ;
  8845. return 0;
  8846. }
  8847. _ACEOF
  8848. rm -f conftest.$ac_objext
  8849. if { (ac_try="$ac_compile"
  8850. case "(($ac_try" in
  8851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8852. *) ac_try_echo=$ac_try;;
  8853. esac
  8854. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8855. $as_echo "$ac_try_echo") >&5
  8856. (eval "$ac_compile") 2>conftest.er1
  8857. ac_status=$?
  8858. grep -v '^ *+' conftest.er1 >conftest.err
  8859. rm -f conftest.er1
  8860. cat conftest.err >&5
  8861. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8862. (exit $ac_status); } && {
  8863. test -z "$ac_cxx_werror_flag" ||
  8864. test ! -s conftest.err
  8865. } && test -s conftest.$ac_objext; then
  8866. cat >conftest.$ac_ext <<_ACEOF
  8867. /* confdefs.h. */
  8868. _ACEOF
  8869. cat confdefs.h >>conftest.$ac_ext
  8870. cat >>conftest.$ac_ext <<_ACEOF
  8871. /* end confdefs.h. */
  8872. $ac_includes_default
  8873. int
  8874. main ()
  8875. {
  8876. if (sizeof ((off_t)))
  8877. return 0;
  8878. ;
  8879. return 0;
  8880. }
  8881. _ACEOF
  8882. rm -f conftest.$ac_objext
  8883. if { (ac_try="$ac_compile"
  8884. case "(($ac_try" in
  8885. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8886. *) ac_try_echo=$ac_try;;
  8887. esac
  8888. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8889. $as_echo "$ac_try_echo") >&5
  8890. (eval "$ac_compile") 2>conftest.er1
  8891. ac_status=$?
  8892. grep -v '^ *+' conftest.er1 >conftest.err
  8893. rm -f conftest.er1
  8894. cat conftest.err >&5
  8895. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8896. (exit $ac_status); } && {
  8897. test -z "$ac_cxx_werror_flag" ||
  8898. test ! -s conftest.err
  8899. } && test -s conftest.$ac_objext; then
  8900. :
  8901. else
  8902. $as_echo "$as_me: failed program was:" >&5
  8903. sed 's/^/| /' conftest.$ac_ext >&5
  8904. ac_cv_type_off_t=yes
  8905. fi
  8906. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8907. else
  8908. $as_echo "$as_me: failed program was:" >&5
  8909. sed 's/^/| /' conftest.$ac_ext >&5
  8910. fi
  8911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8912. fi
  8913. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  8914. $as_echo "$ac_cv_type_off_t" >&6; }
  8915. if test "x$ac_cv_type_off_t" = x""yes; then
  8916. :
  8917. else
  8918. cat >>confdefs.h <<_ACEOF
  8919. #define off_t long int
  8920. _ACEOF
  8921. fi
  8922. { $as_echo "$as_me:$LINENO: checking for size_t" >&5
  8923. $as_echo_n "checking for size_t... " >&6; }
  8924. if test "${ac_cv_type_size_t+set}" = set; then
  8925. $as_echo_n "(cached) " >&6
  8926. else
  8927. ac_cv_type_size_t=no
  8928. cat >conftest.$ac_ext <<_ACEOF
  8929. /* confdefs.h. */
  8930. _ACEOF
  8931. cat confdefs.h >>conftest.$ac_ext
  8932. cat >>conftest.$ac_ext <<_ACEOF
  8933. /* end confdefs.h. */
  8934. $ac_includes_default
  8935. int
  8936. main ()
  8937. {
  8938. if (sizeof (size_t))
  8939. return 0;
  8940. ;
  8941. return 0;
  8942. }
  8943. _ACEOF
  8944. rm -f conftest.$ac_objext
  8945. if { (ac_try="$ac_compile"
  8946. case "(($ac_try" in
  8947. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8948. *) ac_try_echo=$ac_try;;
  8949. esac
  8950. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8951. $as_echo "$ac_try_echo") >&5
  8952. (eval "$ac_compile") 2>conftest.er1
  8953. ac_status=$?
  8954. grep -v '^ *+' conftest.er1 >conftest.err
  8955. rm -f conftest.er1
  8956. cat conftest.err >&5
  8957. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8958. (exit $ac_status); } && {
  8959. test -z "$ac_cxx_werror_flag" ||
  8960. test ! -s conftest.err
  8961. } && test -s conftest.$ac_objext; then
  8962. cat >conftest.$ac_ext <<_ACEOF
  8963. /* confdefs.h. */
  8964. _ACEOF
  8965. cat confdefs.h >>conftest.$ac_ext
  8966. cat >>conftest.$ac_ext <<_ACEOF
  8967. /* end confdefs.h. */
  8968. $ac_includes_default
  8969. int
  8970. main ()
  8971. {
  8972. if (sizeof ((size_t)))
  8973. return 0;
  8974. ;
  8975. return 0;
  8976. }
  8977. _ACEOF
  8978. rm -f conftest.$ac_objext
  8979. if { (ac_try="$ac_compile"
  8980. case "(($ac_try" in
  8981. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8982. *) ac_try_echo=$ac_try;;
  8983. esac
  8984. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8985. $as_echo "$ac_try_echo") >&5
  8986. (eval "$ac_compile") 2>conftest.er1
  8987. ac_status=$?
  8988. grep -v '^ *+' conftest.er1 >conftest.err
  8989. rm -f conftest.er1
  8990. cat conftest.err >&5
  8991. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8992. (exit $ac_status); } && {
  8993. test -z "$ac_cxx_werror_flag" ||
  8994. test ! -s conftest.err
  8995. } && test -s conftest.$ac_objext; then
  8996. :
  8997. else
  8998. $as_echo "$as_me: failed program was:" >&5
  8999. sed 's/^/| /' conftest.$ac_ext >&5
  9000. ac_cv_type_size_t=yes
  9001. fi
  9002. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9003. else
  9004. $as_echo "$as_me: failed program was:" >&5
  9005. sed 's/^/| /' conftest.$ac_ext >&5
  9006. fi
  9007. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9008. fi
  9009. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  9010. $as_echo "$ac_cv_type_size_t" >&6; }
  9011. if test "x$ac_cv_type_size_t" = x""yes; then
  9012. :
  9013. else
  9014. cat >>confdefs.h <<_ACEOF
  9015. #define size_t unsigned int
  9016. _ACEOF
  9017. fi
  9018. { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
  9019. $as_echo_n "checking for ssize_t... " >&6; }
  9020. if test "${ac_cv_type_ssize_t+set}" = set; then
  9021. $as_echo_n "(cached) " >&6
  9022. else
  9023. ac_cv_type_ssize_t=no
  9024. cat >conftest.$ac_ext <<_ACEOF
  9025. /* confdefs.h. */
  9026. _ACEOF
  9027. cat confdefs.h >>conftest.$ac_ext
  9028. cat >>conftest.$ac_ext <<_ACEOF
  9029. /* end confdefs.h. */
  9030. $ac_includes_default
  9031. int
  9032. main ()
  9033. {
  9034. if (sizeof (ssize_t))
  9035. return 0;
  9036. ;
  9037. return 0;
  9038. }
  9039. _ACEOF
  9040. rm -f conftest.$ac_objext
  9041. if { (ac_try="$ac_compile"
  9042. case "(($ac_try" in
  9043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9044. *) ac_try_echo=$ac_try;;
  9045. esac
  9046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9047. $as_echo "$ac_try_echo") >&5
  9048. (eval "$ac_compile") 2>conftest.er1
  9049. ac_status=$?
  9050. grep -v '^ *+' conftest.er1 >conftest.err
  9051. rm -f conftest.er1
  9052. cat conftest.err >&5
  9053. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9054. (exit $ac_status); } && {
  9055. test -z "$ac_cxx_werror_flag" ||
  9056. test ! -s conftest.err
  9057. } && test -s conftest.$ac_objext; then
  9058. cat >conftest.$ac_ext <<_ACEOF
  9059. /* confdefs.h. */
  9060. _ACEOF
  9061. cat confdefs.h >>conftest.$ac_ext
  9062. cat >>conftest.$ac_ext <<_ACEOF
  9063. /* end confdefs.h. */
  9064. $ac_includes_default
  9065. int
  9066. main ()
  9067. {
  9068. if (sizeof ((ssize_t)))
  9069. return 0;
  9070. ;
  9071. return 0;
  9072. }
  9073. _ACEOF
  9074. rm -f conftest.$ac_objext
  9075. if { (ac_try="$ac_compile"
  9076. case "(($ac_try" in
  9077. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9078. *) ac_try_echo=$ac_try;;
  9079. esac
  9080. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9081. $as_echo "$ac_try_echo") >&5
  9082. (eval "$ac_compile") 2>conftest.er1
  9083. ac_status=$?
  9084. grep -v '^ *+' conftest.er1 >conftest.err
  9085. rm -f conftest.er1
  9086. cat conftest.err >&5
  9087. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9088. (exit $ac_status); } && {
  9089. test -z "$ac_cxx_werror_flag" ||
  9090. test ! -s conftest.err
  9091. } && test -s conftest.$ac_objext; then
  9092. :
  9093. else
  9094. $as_echo "$as_me: failed program was:" >&5
  9095. sed 's/^/| /' conftest.$ac_ext >&5
  9096. ac_cv_type_ssize_t=yes
  9097. fi
  9098. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9099. else
  9100. $as_echo "$as_me: failed program was:" >&5
  9101. sed 's/^/| /' conftest.$ac_ext >&5
  9102. fi
  9103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9104. fi
  9105. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  9106. $as_echo "$ac_cv_type_ssize_t" >&6; }
  9107. if test "x$ac_cv_type_ssize_t" = x""yes; then
  9108. :
  9109. else
  9110. cat >>confdefs.h <<_ACEOF
  9111. #define ssize_t int
  9112. _ACEOF
  9113. fi
  9114. { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  9115. $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  9116. if test "${ac_cv_header_time+set}" = set; then
  9117. $as_echo_n "(cached) " >&6
  9118. else
  9119. cat >conftest.$ac_ext <<_ACEOF
  9120. /* confdefs.h. */
  9121. _ACEOF
  9122. cat confdefs.h >>conftest.$ac_ext
  9123. cat >>conftest.$ac_ext <<_ACEOF
  9124. /* end confdefs.h. */
  9125. #include <sys/types.h>
  9126. #include <sys/time.h>
  9127. #include <time.h>
  9128. int
  9129. main ()
  9130. {
  9131. if ((struct tm *) 0)
  9132. return 0;
  9133. ;
  9134. return 0;
  9135. }
  9136. _ACEOF
  9137. rm -f conftest.$ac_objext
  9138. if { (ac_try="$ac_compile"
  9139. case "(($ac_try" in
  9140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9141. *) ac_try_echo=$ac_try;;
  9142. esac
  9143. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9144. $as_echo "$ac_try_echo") >&5
  9145. (eval "$ac_compile") 2>conftest.er1
  9146. ac_status=$?
  9147. grep -v '^ *+' conftest.er1 >conftest.err
  9148. rm -f conftest.er1
  9149. cat conftest.err >&5
  9150. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9151. (exit $ac_status); } && {
  9152. test -z "$ac_cxx_werror_flag" ||
  9153. test ! -s conftest.err
  9154. } && test -s conftest.$ac_objext; then
  9155. ac_cv_header_time=yes
  9156. else
  9157. $as_echo "$as_me: failed program was:" >&5
  9158. sed 's/^/| /' conftest.$ac_ext >&5
  9159. ac_cv_header_time=no
  9160. fi
  9161. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9162. fi
  9163. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  9164. $as_echo "$ac_cv_header_time" >&6; }
  9165. if test $ac_cv_header_time = yes; then
  9166. cat >>confdefs.h <<\_ACEOF
  9167. #define TIME_WITH_SYS_TIME 1
  9168. _ACEOF
  9169. fi
  9170. { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  9171. $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
  9172. if test "${ac_cv_struct_tm+set}" = set; then
  9173. $as_echo_n "(cached) " >&6
  9174. else
  9175. cat >conftest.$ac_ext <<_ACEOF
  9176. /* confdefs.h. */
  9177. _ACEOF
  9178. cat confdefs.h >>conftest.$ac_ext
  9179. cat >>conftest.$ac_ext <<_ACEOF
  9180. /* end confdefs.h. */
  9181. #include <sys/types.h>
  9182. #include <time.h>
  9183. int
  9184. main ()
  9185. {
  9186. struct tm tm;
  9187. int *p = &tm.tm_sec;
  9188. return !p;
  9189. ;
  9190. return 0;
  9191. }
  9192. _ACEOF
  9193. rm -f conftest.$ac_objext
  9194. if { (ac_try="$ac_compile"
  9195. case "(($ac_try" in
  9196. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9197. *) ac_try_echo=$ac_try;;
  9198. esac
  9199. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9200. $as_echo "$ac_try_echo") >&5
  9201. (eval "$ac_compile") 2>conftest.er1
  9202. ac_status=$?
  9203. grep -v '^ *+' conftest.er1 >conftest.err
  9204. rm -f conftest.er1
  9205. cat conftest.err >&5
  9206. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9207. (exit $ac_status); } && {
  9208. test -z "$ac_cxx_werror_flag" ||
  9209. test ! -s conftest.err
  9210. } && test -s conftest.$ac_objext; then
  9211. ac_cv_struct_tm=time.h
  9212. else
  9213. $as_echo "$as_me: failed program was:" >&5
  9214. sed 's/^/| /' conftest.$ac_ext >&5
  9215. ac_cv_struct_tm=sys/time.h
  9216. fi
  9217. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9218. fi
  9219. { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  9220. $as_echo "$ac_cv_struct_tm" >&6; }
  9221. if test $ac_cv_struct_tm = sys/time.h; then
  9222. cat >>confdefs.h <<\_ACEOF
  9223. #define TM_IN_SYS_TIME 1
  9224. _ACEOF
  9225. fi
  9226. { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
  9227. $as_echo_n "checking for uint16_t... " >&6; }
  9228. if test "${ac_cv_c_uint16_t+set}" = set; then
  9229. $as_echo_n "(cached) " >&6
  9230. else
  9231. ac_cv_c_uint16_t=no
  9232. for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
  9233. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9234. cat >conftest.$ac_ext <<_ACEOF
  9235. /* confdefs.h. */
  9236. _ACEOF
  9237. cat confdefs.h >>conftest.$ac_ext
  9238. cat >>conftest.$ac_ext <<_ACEOF
  9239. /* end confdefs.h. */
  9240. $ac_includes_default
  9241. int
  9242. main ()
  9243. {
  9244. static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
  9245. test_array [0] = 0
  9246. ;
  9247. return 0;
  9248. }
  9249. _ACEOF
  9250. rm -f conftest.$ac_objext
  9251. if { (ac_try="$ac_compile"
  9252. case "(($ac_try" in
  9253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9254. *) ac_try_echo=$ac_try;;
  9255. esac
  9256. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9257. $as_echo "$ac_try_echo") >&5
  9258. (eval "$ac_compile") 2>conftest.er1
  9259. ac_status=$?
  9260. grep -v '^ *+' conftest.er1 >conftest.err
  9261. rm -f conftest.er1
  9262. cat conftest.err >&5
  9263. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9264. (exit $ac_status); } && {
  9265. test -z "$ac_cxx_werror_flag" ||
  9266. test ! -s conftest.err
  9267. } && test -s conftest.$ac_objext; then
  9268. case $ac_type in
  9269. uint16_t) ac_cv_c_uint16_t=yes ;;
  9270. *) ac_cv_c_uint16_t=$ac_type ;;
  9271. esac
  9272. else
  9273. $as_echo "$as_me: failed program was:" >&5
  9274. sed 's/^/| /' conftest.$ac_ext >&5
  9275. fi
  9276. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9277. test "$ac_cv_c_uint16_t" != no && break
  9278. done
  9279. fi
  9280. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
  9281. $as_echo "$ac_cv_c_uint16_t" >&6; }
  9282. case $ac_cv_c_uint16_t in #(
  9283. no|yes) ;; #(
  9284. *)
  9285. cat >>confdefs.h <<_ACEOF
  9286. #define uint16_t $ac_cv_c_uint16_t
  9287. _ACEOF
  9288. ;;
  9289. esac
  9290. { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
  9291. $as_echo_n "checking for uint32_t... " >&6; }
  9292. if test "${ac_cv_c_uint32_t+set}" = set; then
  9293. $as_echo_n "(cached) " >&6
  9294. else
  9295. ac_cv_c_uint32_t=no
  9296. for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
  9297. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9298. cat >conftest.$ac_ext <<_ACEOF
  9299. /* confdefs.h. */
  9300. _ACEOF
  9301. cat confdefs.h >>conftest.$ac_ext
  9302. cat >>conftest.$ac_ext <<_ACEOF
  9303. /* end confdefs.h. */
  9304. $ac_includes_default
  9305. int
  9306. main ()
  9307. {
  9308. static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
  9309. test_array [0] = 0
  9310. ;
  9311. return 0;
  9312. }
  9313. _ACEOF
  9314. rm -f conftest.$ac_objext
  9315. if { (ac_try="$ac_compile"
  9316. case "(($ac_try" in
  9317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9318. *) ac_try_echo=$ac_try;;
  9319. esac
  9320. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9321. $as_echo "$ac_try_echo") >&5
  9322. (eval "$ac_compile") 2>conftest.er1
  9323. ac_status=$?
  9324. grep -v '^ *+' conftest.er1 >conftest.err
  9325. rm -f conftest.er1
  9326. cat conftest.err >&5
  9327. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9328. (exit $ac_status); } && {
  9329. test -z "$ac_cxx_werror_flag" ||
  9330. test ! -s conftest.err
  9331. } && test -s conftest.$ac_objext; then
  9332. case $ac_type in
  9333. uint32_t) ac_cv_c_uint32_t=yes ;;
  9334. *) ac_cv_c_uint32_t=$ac_type ;;
  9335. esac
  9336. else
  9337. $as_echo "$as_me: failed program was:" >&5
  9338. sed 's/^/| /' conftest.$ac_ext >&5
  9339. fi
  9340. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9341. test "$ac_cv_c_uint32_t" != no && break
  9342. done
  9343. fi
  9344. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
  9345. $as_echo "$ac_cv_c_uint32_t" >&6; }
  9346. case $ac_cv_c_uint32_t in #(
  9347. no|yes) ;; #(
  9348. *)
  9349. cat >>confdefs.h <<\_ACEOF
  9350. #define _UINT32_T 1
  9351. _ACEOF
  9352. cat >>confdefs.h <<_ACEOF
  9353. #define uint32_t $ac_cv_c_uint32_t
  9354. _ACEOF
  9355. ;;
  9356. esac
  9357. { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
  9358. $as_echo_n "checking for uint64_t... " >&6; }
  9359. if test "${ac_cv_c_uint64_t+set}" = set; then
  9360. $as_echo_n "(cached) " >&6
  9361. else
  9362. ac_cv_c_uint64_t=no
  9363. for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
  9364. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9365. cat >conftest.$ac_ext <<_ACEOF
  9366. /* confdefs.h. */
  9367. _ACEOF
  9368. cat confdefs.h >>conftest.$ac_ext
  9369. cat >>conftest.$ac_ext <<_ACEOF
  9370. /* end confdefs.h. */
  9371. $ac_includes_default
  9372. int
  9373. main ()
  9374. {
  9375. static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
  9376. test_array [0] = 0
  9377. ;
  9378. return 0;
  9379. }
  9380. _ACEOF
  9381. rm -f conftest.$ac_objext
  9382. if { (ac_try="$ac_compile"
  9383. case "(($ac_try" in
  9384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9385. *) ac_try_echo=$ac_try;;
  9386. esac
  9387. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9388. $as_echo "$ac_try_echo") >&5
  9389. (eval "$ac_compile") 2>conftest.er1
  9390. ac_status=$?
  9391. grep -v '^ *+' conftest.er1 >conftest.err
  9392. rm -f conftest.er1
  9393. cat conftest.err >&5
  9394. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9395. (exit $ac_status); } && {
  9396. test -z "$ac_cxx_werror_flag" ||
  9397. test ! -s conftest.err
  9398. } && test -s conftest.$ac_objext; then
  9399. case $ac_type in
  9400. uint64_t) ac_cv_c_uint64_t=yes ;;
  9401. *) ac_cv_c_uint64_t=$ac_type ;;
  9402. esac
  9403. else
  9404. $as_echo "$as_me: failed program was:" >&5
  9405. sed 's/^/| /' conftest.$ac_ext >&5
  9406. fi
  9407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9408. test "$ac_cv_c_uint64_t" != no && break
  9409. done
  9410. fi
  9411. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
  9412. $as_echo "$ac_cv_c_uint64_t" >&6; }
  9413. case $ac_cv_c_uint64_t in #(
  9414. no|yes) ;; #(
  9415. *)
  9416. cat >>confdefs.h <<\_ACEOF
  9417. #define _UINT64_T 1
  9418. _ACEOF
  9419. cat >>confdefs.h <<_ACEOF
  9420. #define uint64_t $ac_cv_c_uint64_t
  9421. _ACEOF
  9422. ;;
  9423. esac
  9424. { $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
  9425. $as_echo_n "checking for uint8_t... " >&6; }
  9426. if test "${ac_cv_c_uint8_t+set}" = set; then
  9427. $as_echo_n "(cached) " >&6
  9428. else
  9429. ac_cv_c_uint8_t=no
  9430. for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
  9431. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  9432. cat >conftest.$ac_ext <<_ACEOF
  9433. /* confdefs.h. */
  9434. _ACEOF
  9435. cat confdefs.h >>conftest.$ac_ext
  9436. cat >>conftest.$ac_ext <<_ACEOF
  9437. /* end confdefs.h. */
  9438. $ac_includes_default
  9439. int
  9440. main ()
  9441. {
  9442. static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
  9443. test_array [0] = 0
  9444. ;
  9445. return 0;
  9446. }
  9447. _ACEOF
  9448. rm -f conftest.$ac_objext
  9449. if { (ac_try="$ac_compile"
  9450. case "(($ac_try" in
  9451. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9452. *) ac_try_echo=$ac_try;;
  9453. esac
  9454. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9455. $as_echo "$ac_try_echo") >&5
  9456. (eval "$ac_compile") 2>conftest.er1
  9457. ac_status=$?
  9458. grep -v '^ *+' conftest.er1 >conftest.err
  9459. rm -f conftest.er1
  9460. cat conftest.err >&5
  9461. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9462. (exit $ac_status); } && {
  9463. test -z "$ac_cxx_werror_flag" ||
  9464. test ! -s conftest.err
  9465. } && test -s conftest.$ac_objext; then
  9466. case $ac_type in
  9467. uint8_t) ac_cv_c_uint8_t=yes ;;
  9468. *) ac_cv_c_uint8_t=$ac_type ;;
  9469. esac
  9470. else
  9471. $as_echo "$as_me: failed program was:" >&5
  9472. sed 's/^/| /' conftest.$ac_ext >&5
  9473. fi
  9474. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9475. test "$ac_cv_c_uint8_t" != no && break
  9476. done
  9477. fi
  9478. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
  9479. $as_echo "$ac_cv_c_uint8_t" >&6; }
  9480. case $ac_cv_c_uint8_t in #(
  9481. no|yes) ;; #(
  9482. *)
  9483. cat >>confdefs.h <<\_ACEOF
  9484. #define _UINT8_T 1
  9485. _ACEOF
  9486. cat >>confdefs.h <<_ACEOF
  9487. #define uint8_t $ac_cv_c_uint8_t
  9488. _ACEOF
  9489. ;;
  9490. esac
  9491. { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
  9492. $as_echo_n "checking for working volatile... " >&6; }
  9493. if test "${ac_cv_c_volatile+set}" = set; then
  9494. $as_echo_n "(cached) " >&6
  9495. else
  9496. cat >conftest.$ac_ext <<_ACEOF
  9497. /* confdefs.h. */
  9498. _ACEOF
  9499. cat confdefs.h >>conftest.$ac_ext
  9500. cat >>conftest.$ac_ext <<_ACEOF
  9501. /* end confdefs.h. */
  9502. int
  9503. main ()
  9504. {
  9505. volatile int x;
  9506. int * volatile y = (int *) 0;
  9507. return !x && !y;
  9508. ;
  9509. return 0;
  9510. }
  9511. _ACEOF
  9512. rm -f conftest.$ac_objext
  9513. if { (ac_try="$ac_compile"
  9514. case "(($ac_try" in
  9515. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9516. *) ac_try_echo=$ac_try;;
  9517. esac
  9518. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9519. $as_echo "$ac_try_echo") >&5
  9520. (eval "$ac_compile") 2>conftest.er1
  9521. ac_status=$?
  9522. grep -v '^ *+' conftest.er1 >conftest.err
  9523. rm -f conftest.er1
  9524. cat conftest.err >&5
  9525. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9526. (exit $ac_status); } && {
  9527. test -z "$ac_cxx_werror_flag" ||
  9528. test ! -s conftest.err
  9529. } && test -s conftest.$ac_objext; then
  9530. ac_cv_c_volatile=yes
  9531. else
  9532. $as_echo "$as_me: failed program was:" >&5
  9533. sed 's/^/| /' conftest.$ac_ext >&5
  9534. ac_cv_c_volatile=no
  9535. fi
  9536. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9537. fi
  9538. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  9539. $as_echo "$ac_cv_c_volatile" >&6; }
  9540. if test $ac_cv_c_volatile = no; then
  9541. cat >>confdefs.h <<\_ACEOF
  9542. #define volatile /**/
  9543. _ACEOF
  9544. fi
  9545. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  9546. $as_echo_n "checking for ptrdiff_t... " >&6; }
  9547. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  9548. $as_echo_n "(cached) " >&6
  9549. else
  9550. ac_cv_type_ptrdiff_t=no
  9551. cat >conftest.$ac_ext <<_ACEOF
  9552. /* confdefs.h. */
  9553. _ACEOF
  9554. cat confdefs.h >>conftest.$ac_ext
  9555. cat >>conftest.$ac_ext <<_ACEOF
  9556. /* end confdefs.h. */
  9557. $ac_includes_default
  9558. int
  9559. main ()
  9560. {
  9561. if (sizeof (ptrdiff_t))
  9562. return 0;
  9563. ;
  9564. return 0;
  9565. }
  9566. _ACEOF
  9567. rm -f conftest.$ac_objext
  9568. if { (ac_try="$ac_compile"
  9569. case "(($ac_try" in
  9570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9571. *) ac_try_echo=$ac_try;;
  9572. esac
  9573. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9574. $as_echo "$ac_try_echo") >&5
  9575. (eval "$ac_compile") 2>conftest.er1
  9576. ac_status=$?
  9577. grep -v '^ *+' conftest.er1 >conftest.err
  9578. rm -f conftest.er1
  9579. cat conftest.err >&5
  9580. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9581. (exit $ac_status); } && {
  9582. test -z "$ac_cxx_werror_flag" ||
  9583. test ! -s conftest.err
  9584. } && test -s conftest.$ac_objext; then
  9585. cat >conftest.$ac_ext <<_ACEOF
  9586. /* confdefs.h. */
  9587. _ACEOF
  9588. cat confdefs.h >>conftest.$ac_ext
  9589. cat >>conftest.$ac_ext <<_ACEOF
  9590. /* end confdefs.h. */
  9591. $ac_includes_default
  9592. int
  9593. main ()
  9594. {
  9595. if (sizeof ((ptrdiff_t)))
  9596. return 0;
  9597. ;
  9598. return 0;
  9599. }
  9600. _ACEOF
  9601. rm -f conftest.$ac_objext
  9602. if { (ac_try="$ac_compile"
  9603. case "(($ac_try" in
  9604. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9605. *) ac_try_echo=$ac_try;;
  9606. esac
  9607. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9608. $as_echo "$ac_try_echo") >&5
  9609. (eval "$ac_compile") 2>conftest.er1
  9610. ac_status=$?
  9611. grep -v '^ *+' conftest.er1 >conftest.err
  9612. rm -f conftest.er1
  9613. cat conftest.err >&5
  9614. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9615. (exit $ac_status); } && {
  9616. test -z "$ac_cxx_werror_flag" ||
  9617. test ! -s conftest.err
  9618. } && test -s conftest.$ac_objext; then
  9619. :
  9620. else
  9621. $as_echo "$as_me: failed program was:" >&5
  9622. sed 's/^/| /' conftest.$ac_ext >&5
  9623. ac_cv_type_ptrdiff_t=yes
  9624. fi
  9625. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9626. else
  9627. $as_echo "$as_me: failed program was:" >&5
  9628. sed 's/^/| /' conftest.$ac_ext >&5
  9629. fi
  9630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9631. fi
  9632. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  9633. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  9634. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  9635. cat >>confdefs.h <<_ACEOF
  9636. #define HAVE_PTRDIFF_T 1
  9637. _ACEOF
  9638. fi
  9639. { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  9640. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  9641. if test "${ac_cv_c_bigendian+set}" = set; then
  9642. $as_echo_n "(cached) " >&6
  9643. else
  9644. ac_cv_c_bigendian=unknown
  9645. # See if we're dealing with a universal compiler.
  9646. cat >conftest.$ac_ext <<_ACEOF
  9647. /* confdefs.h. */
  9648. _ACEOF
  9649. cat confdefs.h >>conftest.$ac_ext
  9650. cat >>conftest.$ac_ext <<_ACEOF
  9651. /* end confdefs.h. */
  9652. #ifndef __APPLE_CC__
  9653. not a universal capable compiler
  9654. #endif
  9655. typedef int dummy;
  9656. _ACEOF
  9657. rm -f conftest.$ac_objext
  9658. if { (ac_try="$ac_compile"
  9659. case "(($ac_try" in
  9660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9661. *) ac_try_echo=$ac_try;;
  9662. esac
  9663. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9664. $as_echo "$ac_try_echo") >&5
  9665. (eval "$ac_compile") 2>conftest.er1
  9666. ac_status=$?
  9667. grep -v '^ *+' conftest.er1 >conftest.err
  9668. rm -f conftest.er1
  9669. cat conftest.err >&5
  9670. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9671. (exit $ac_status); } && {
  9672. test -z "$ac_cxx_werror_flag" ||
  9673. test ! -s conftest.err
  9674. } && test -s conftest.$ac_objext; then
  9675. # Check for potential -arch flags. It is not universal unless
  9676. # there are some -arch flags. Note that *ppc* also matches
  9677. # ppc64. This check is also rather less than ideal.
  9678. case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
  9679. *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
  9680. esac
  9681. else
  9682. $as_echo "$as_me: failed program was:" >&5
  9683. sed 's/^/| /' conftest.$ac_ext >&5
  9684. fi
  9685. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9686. if test $ac_cv_c_bigendian = unknown; then
  9687. # See if sys/param.h defines the BYTE_ORDER macro.
  9688. cat >conftest.$ac_ext <<_ACEOF
  9689. /* confdefs.h. */
  9690. _ACEOF
  9691. cat confdefs.h >>conftest.$ac_ext
  9692. cat >>conftest.$ac_ext <<_ACEOF
  9693. /* end confdefs.h. */
  9694. #include <sys/types.h>
  9695. #include <sys/param.h>
  9696. int
  9697. main ()
  9698. {
  9699. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  9700. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  9701. && LITTLE_ENDIAN)
  9702. bogus endian macros
  9703. #endif
  9704. ;
  9705. return 0;
  9706. }
  9707. _ACEOF
  9708. rm -f conftest.$ac_objext
  9709. if { (ac_try="$ac_compile"
  9710. case "(($ac_try" in
  9711. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9712. *) ac_try_echo=$ac_try;;
  9713. esac
  9714. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9715. $as_echo "$ac_try_echo") >&5
  9716. (eval "$ac_compile") 2>conftest.er1
  9717. ac_status=$?
  9718. grep -v '^ *+' conftest.er1 >conftest.err
  9719. rm -f conftest.er1
  9720. cat conftest.err >&5
  9721. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9722. (exit $ac_status); } && {
  9723. test -z "$ac_cxx_werror_flag" ||
  9724. test ! -s conftest.err
  9725. } && test -s conftest.$ac_objext; then
  9726. # It does; now see whether it defined to BIG_ENDIAN or not.
  9727. cat >conftest.$ac_ext <<_ACEOF
  9728. /* confdefs.h. */
  9729. _ACEOF
  9730. cat confdefs.h >>conftest.$ac_ext
  9731. cat >>conftest.$ac_ext <<_ACEOF
  9732. /* end confdefs.h. */
  9733. #include <sys/types.h>
  9734. #include <sys/param.h>
  9735. int
  9736. main ()
  9737. {
  9738. #if BYTE_ORDER != BIG_ENDIAN
  9739. not big endian
  9740. #endif
  9741. ;
  9742. return 0;
  9743. }
  9744. _ACEOF
  9745. rm -f conftest.$ac_objext
  9746. if { (ac_try="$ac_compile"
  9747. case "(($ac_try" in
  9748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9749. *) ac_try_echo=$ac_try;;
  9750. esac
  9751. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9752. $as_echo "$ac_try_echo") >&5
  9753. (eval "$ac_compile") 2>conftest.er1
  9754. ac_status=$?
  9755. grep -v '^ *+' conftest.er1 >conftest.err
  9756. rm -f conftest.er1
  9757. cat conftest.err >&5
  9758. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9759. (exit $ac_status); } && {
  9760. test -z "$ac_cxx_werror_flag" ||
  9761. test ! -s conftest.err
  9762. } && test -s conftest.$ac_objext; then
  9763. ac_cv_c_bigendian=yes
  9764. else
  9765. $as_echo "$as_me: failed program was:" >&5
  9766. sed 's/^/| /' conftest.$ac_ext >&5
  9767. ac_cv_c_bigendian=no
  9768. fi
  9769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9770. else
  9771. $as_echo "$as_me: failed program was:" >&5
  9772. sed 's/^/| /' conftest.$ac_ext >&5
  9773. fi
  9774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9775. fi
  9776. if test $ac_cv_c_bigendian = unknown; then
  9777. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  9778. cat >conftest.$ac_ext <<_ACEOF
  9779. /* confdefs.h. */
  9780. _ACEOF
  9781. cat confdefs.h >>conftest.$ac_ext
  9782. cat >>conftest.$ac_ext <<_ACEOF
  9783. /* end confdefs.h. */
  9784. #include <limits.h>
  9785. int
  9786. main ()
  9787. {
  9788. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  9789. bogus endian macros
  9790. #endif
  9791. ;
  9792. return 0;
  9793. }
  9794. _ACEOF
  9795. rm -f conftest.$ac_objext
  9796. if { (ac_try="$ac_compile"
  9797. case "(($ac_try" in
  9798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9799. *) ac_try_echo=$ac_try;;
  9800. esac
  9801. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9802. $as_echo "$ac_try_echo") >&5
  9803. (eval "$ac_compile") 2>conftest.er1
  9804. ac_status=$?
  9805. grep -v '^ *+' conftest.er1 >conftest.err
  9806. rm -f conftest.er1
  9807. cat conftest.err >&5
  9808. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9809. (exit $ac_status); } && {
  9810. test -z "$ac_cxx_werror_flag" ||
  9811. test ! -s conftest.err
  9812. } && test -s conftest.$ac_objext; then
  9813. # It does; now see whether it defined to _BIG_ENDIAN or not.
  9814. cat >conftest.$ac_ext <<_ACEOF
  9815. /* confdefs.h. */
  9816. _ACEOF
  9817. cat confdefs.h >>conftest.$ac_ext
  9818. cat >>conftest.$ac_ext <<_ACEOF
  9819. /* end confdefs.h. */
  9820. #include <limits.h>
  9821. int
  9822. main ()
  9823. {
  9824. #ifndef _BIG_ENDIAN
  9825. not big endian
  9826. #endif
  9827. ;
  9828. return 0;
  9829. }
  9830. _ACEOF
  9831. rm -f conftest.$ac_objext
  9832. if { (ac_try="$ac_compile"
  9833. case "(($ac_try" in
  9834. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9835. *) ac_try_echo=$ac_try;;
  9836. esac
  9837. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9838. $as_echo "$ac_try_echo") >&5
  9839. (eval "$ac_compile") 2>conftest.er1
  9840. ac_status=$?
  9841. grep -v '^ *+' conftest.er1 >conftest.err
  9842. rm -f conftest.er1
  9843. cat conftest.err >&5
  9844. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9845. (exit $ac_status); } && {
  9846. test -z "$ac_cxx_werror_flag" ||
  9847. test ! -s conftest.err
  9848. } && test -s conftest.$ac_objext; then
  9849. ac_cv_c_bigendian=yes
  9850. else
  9851. $as_echo "$as_me: failed program was:" >&5
  9852. sed 's/^/| /' conftest.$ac_ext >&5
  9853. ac_cv_c_bigendian=no
  9854. fi
  9855. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9856. else
  9857. $as_echo "$as_me: failed program was:" >&5
  9858. sed 's/^/| /' conftest.$ac_ext >&5
  9859. fi
  9860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9861. fi
  9862. if test $ac_cv_c_bigendian = unknown; then
  9863. # Compile a test program.
  9864. if test "$cross_compiling" = yes; then
  9865. # Try to guess by grepping values from an object file.
  9866. cat >conftest.$ac_ext <<_ACEOF
  9867. /* confdefs.h. */
  9868. _ACEOF
  9869. cat confdefs.h >>conftest.$ac_ext
  9870. cat >>conftest.$ac_ext <<_ACEOF
  9871. /* end confdefs.h. */
  9872. short int ascii_mm[] =
  9873. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  9874. short int ascii_ii[] =
  9875. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  9876. int use_ascii (int i) {
  9877. return ascii_mm[i] + ascii_ii[i];
  9878. }
  9879. short int ebcdic_ii[] =
  9880. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  9881. short int ebcdic_mm[] =
  9882. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  9883. int use_ebcdic (int i) {
  9884. return ebcdic_mm[i] + ebcdic_ii[i];
  9885. }
  9886. extern int foo;
  9887. int
  9888. main ()
  9889. {
  9890. return use_ascii (foo) == use_ebcdic (foo);
  9891. ;
  9892. return 0;
  9893. }
  9894. _ACEOF
  9895. rm -f conftest.$ac_objext
  9896. if { (ac_try="$ac_compile"
  9897. case "(($ac_try" in
  9898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9899. *) ac_try_echo=$ac_try;;
  9900. esac
  9901. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9902. $as_echo "$ac_try_echo") >&5
  9903. (eval "$ac_compile") 2>conftest.er1
  9904. ac_status=$?
  9905. grep -v '^ *+' conftest.er1 >conftest.err
  9906. rm -f conftest.er1
  9907. cat conftest.err >&5
  9908. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9909. (exit $ac_status); } && {
  9910. test -z "$ac_cxx_werror_flag" ||
  9911. test ! -s conftest.err
  9912. } && test -s conftest.$ac_objext; then
  9913. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  9914. ac_cv_c_bigendian=yes
  9915. fi
  9916. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  9917. if test "$ac_cv_c_bigendian" = unknown; then
  9918. ac_cv_c_bigendian=no
  9919. else
  9920. # finding both strings is unlikely to happen, but who knows?
  9921. ac_cv_c_bigendian=unknown
  9922. fi
  9923. fi
  9924. else
  9925. $as_echo "$as_me: failed program was:" >&5
  9926. sed 's/^/| /' conftest.$ac_ext >&5
  9927. fi
  9928. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9929. else
  9930. cat >conftest.$ac_ext <<_ACEOF
  9931. /* confdefs.h. */
  9932. _ACEOF
  9933. cat confdefs.h >>conftest.$ac_ext
  9934. cat >>conftest.$ac_ext <<_ACEOF
  9935. /* end confdefs.h. */
  9936. $ac_includes_default
  9937. int
  9938. main ()
  9939. {
  9940. /* Are we little or big endian? From Harbison&Steele. */
  9941. union
  9942. {
  9943. long int l;
  9944. char c[sizeof (long int)];
  9945. } u;
  9946. u.l = 1;
  9947. return u.c[sizeof (long int) - 1] == 1;
  9948. ;
  9949. return 0;
  9950. }
  9951. _ACEOF
  9952. rm -f conftest$ac_exeext
  9953. if { (ac_try="$ac_link"
  9954. case "(($ac_try" in
  9955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9956. *) ac_try_echo=$ac_try;;
  9957. esac
  9958. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9959. $as_echo "$ac_try_echo") >&5
  9960. (eval "$ac_link") 2>&5
  9961. ac_status=$?
  9962. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9963. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9964. { (case "(($ac_try" in
  9965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9966. *) ac_try_echo=$ac_try;;
  9967. esac
  9968. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9969. $as_echo "$ac_try_echo") >&5
  9970. (eval "$ac_try") 2>&5
  9971. ac_status=$?
  9972. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9973. (exit $ac_status); }; }; then
  9974. ac_cv_c_bigendian=no
  9975. else
  9976. $as_echo "$as_me: program exited with status $ac_status" >&5
  9977. $as_echo "$as_me: failed program was:" >&5
  9978. sed 's/^/| /' conftest.$ac_ext >&5
  9979. ( exit $ac_status )
  9980. ac_cv_c_bigendian=yes
  9981. fi
  9982. rm -rf conftest.dSYM
  9983. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9984. fi
  9985. fi
  9986. fi
  9987. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  9988. $as_echo "$ac_cv_c_bigendian" >&6; }
  9989. case $ac_cv_c_bigendian in #(
  9990. yes)
  9991. cat >>confdefs.h <<\_ACEOF
  9992. #define WORDS_BIGENDIAN 1
  9993. _ACEOF
  9994. ;; #(
  9995. no)
  9996. ;; #(
  9997. universal)
  9998. cat >>confdefs.h <<\_ACEOF
  9999. #define AC_APPLE_UNIVERSAL_BUILD 1
  10000. _ACEOF
  10001. ;; #(
  10002. *)
  10003. { { $as_echo "$as_me:$LINENO: error: unknown endianness
  10004. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  10005. $as_echo "$as_me: error: unknown endianness
  10006. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  10007. { (exit 1); exit 1; }; } ;;
  10008. esac
  10009. # Check whether --enable-largefile was given.
  10010. if test "${enable_largefile+set}" = set; then
  10011. enableval=$enable_largefile;
  10012. fi
  10013. if test "$enable_largefile" != no; then
  10014. { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  10015. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  10016. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  10017. $as_echo_n "(cached) " >&6
  10018. else
  10019. ac_cv_sys_largefile_CC=no
  10020. if test "$GCC" != yes; then
  10021. ac_save_CC=$CC
  10022. while :; do
  10023. # IRIX 6.2 and later do not support large files by default,
  10024. # so use the C compiler's -n32 option if that helps.
  10025. cat >conftest.$ac_ext <<_ACEOF
  10026. /* confdefs.h. */
  10027. _ACEOF
  10028. cat confdefs.h >>conftest.$ac_ext
  10029. cat >>conftest.$ac_ext <<_ACEOF
  10030. /* end confdefs.h. */
  10031. #include <sys/types.h>
  10032. /* Check that off_t can represent 2**63 - 1 correctly.
  10033. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10034. since some C++ compilers masquerading as C compilers
  10035. incorrectly reject 9223372036854775807. */
  10036. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10037. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10038. && LARGE_OFF_T % 2147483647 == 1)
  10039. ? 1 : -1];
  10040. int
  10041. main ()
  10042. {
  10043. ;
  10044. return 0;
  10045. }
  10046. _ACEOF
  10047. rm -f conftest.$ac_objext
  10048. if { (ac_try="$ac_compile"
  10049. case "(($ac_try" in
  10050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10051. *) ac_try_echo=$ac_try;;
  10052. esac
  10053. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10054. $as_echo "$ac_try_echo") >&5
  10055. (eval "$ac_compile") 2>conftest.er1
  10056. ac_status=$?
  10057. grep -v '^ *+' conftest.er1 >conftest.err
  10058. rm -f conftest.er1
  10059. cat conftest.err >&5
  10060. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10061. (exit $ac_status); } && {
  10062. test -z "$ac_cxx_werror_flag" ||
  10063. test ! -s conftest.err
  10064. } && test -s conftest.$ac_objext; then
  10065. break
  10066. else
  10067. $as_echo "$as_me: failed program was:" >&5
  10068. sed 's/^/| /' conftest.$ac_ext >&5
  10069. fi
  10070. rm -f core conftest.err conftest.$ac_objext
  10071. CC="$CC -n32"
  10072. rm -f conftest.$ac_objext
  10073. if { (ac_try="$ac_compile"
  10074. case "(($ac_try" in
  10075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10076. *) ac_try_echo=$ac_try;;
  10077. esac
  10078. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10079. $as_echo "$ac_try_echo") >&5
  10080. (eval "$ac_compile") 2>conftest.er1
  10081. ac_status=$?
  10082. grep -v '^ *+' conftest.er1 >conftest.err
  10083. rm -f conftest.er1
  10084. cat conftest.err >&5
  10085. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10086. (exit $ac_status); } && {
  10087. test -z "$ac_cxx_werror_flag" ||
  10088. test ! -s conftest.err
  10089. } && test -s conftest.$ac_objext; then
  10090. ac_cv_sys_largefile_CC=' -n32'; break
  10091. else
  10092. $as_echo "$as_me: failed program was:" >&5
  10093. sed 's/^/| /' conftest.$ac_ext >&5
  10094. fi
  10095. rm -f core conftest.err conftest.$ac_objext
  10096. break
  10097. done
  10098. CC=$ac_save_CC
  10099. rm -f conftest.$ac_ext
  10100. fi
  10101. fi
  10102. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  10103. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  10104. if test "$ac_cv_sys_largefile_CC" != no; then
  10105. CC=$CC$ac_cv_sys_largefile_CC
  10106. fi
  10107. { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10108. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  10109. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  10110. $as_echo_n "(cached) " >&6
  10111. else
  10112. while :; do
  10113. cat >conftest.$ac_ext <<_ACEOF
  10114. /* confdefs.h. */
  10115. _ACEOF
  10116. cat confdefs.h >>conftest.$ac_ext
  10117. cat >>conftest.$ac_ext <<_ACEOF
  10118. /* end confdefs.h. */
  10119. #include <sys/types.h>
  10120. /* Check that off_t can represent 2**63 - 1 correctly.
  10121. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10122. since some C++ compilers masquerading as C compilers
  10123. incorrectly reject 9223372036854775807. */
  10124. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10125. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10126. && LARGE_OFF_T % 2147483647 == 1)
  10127. ? 1 : -1];
  10128. int
  10129. main ()
  10130. {
  10131. ;
  10132. return 0;
  10133. }
  10134. _ACEOF
  10135. rm -f conftest.$ac_objext
  10136. if { (ac_try="$ac_compile"
  10137. case "(($ac_try" in
  10138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10139. *) ac_try_echo=$ac_try;;
  10140. esac
  10141. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10142. $as_echo "$ac_try_echo") >&5
  10143. (eval "$ac_compile") 2>conftest.er1
  10144. ac_status=$?
  10145. grep -v '^ *+' conftest.er1 >conftest.err
  10146. rm -f conftest.er1
  10147. cat conftest.err >&5
  10148. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10149. (exit $ac_status); } && {
  10150. test -z "$ac_cxx_werror_flag" ||
  10151. test ! -s conftest.err
  10152. } && test -s conftest.$ac_objext; then
  10153. ac_cv_sys_file_offset_bits=no; break
  10154. else
  10155. $as_echo "$as_me: failed program was:" >&5
  10156. sed 's/^/| /' conftest.$ac_ext >&5
  10157. fi
  10158. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10159. cat >conftest.$ac_ext <<_ACEOF
  10160. /* confdefs.h. */
  10161. _ACEOF
  10162. cat confdefs.h >>conftest.$ac_ext
  10163. cat >>conftest.$ac_ext <<_ACEOF
  10164. /* end confdefs.h. */
  10165. #define _FILE_OFFSET_BITS 64
  10166. #include <sys/types.h>
  10167. /* Check that off_t can represent 2**63 - 1 correctly.
  10168. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10169. since some C++ compilers masquerading as C compilers
  10170. incorrectly reject 9223372036854775807. */
  10171. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10172. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10173. && LARGE_OFF_T % 2147483647 == 1)
  10174. ? 1 : -1];
  10175. int
  10176. main ()
  10177. {
  10178. ;
  10179. return 0;
  10180. }
  10181. _ACEOF
  10182. rm -f conftest.$ac_objext
  10183. if { (ac_try="$ac_compile"
  10184. case "(($ac_try" in
  10185. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10186. *) ac_try_echo=$ac_try;;
  10187. esac
  10188. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10189. $as_echo "$ac_try_echo") >&5
  10190. (eval "$ac_compile") 2>conftest.er1
  10191. ac_status=$?
  10192. grep -v '^ *+' conftest.er1 >conftest.err
  10193. rm -f conftest.er1
  10194. cat conftest.err >&5
  10195. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10196. (exit $ac_status); } && {
  10197. test -z "$ac_cxx_werror_flag" ||
  10198. test ! -s conftest.err
  10199. } && test -s conftest.$ac_objext; then
  10200. ac_cv_sys_file_offset_bits=64; break
  10201. else
  10202. $as_echo "$as_me: failed program was:" >&5
  10203. sed 's/^/| /' conftest.$ac_ext >&5
  10204. fi
  10205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10206. ac_cv_sys_file_offset_bits=unknown
  10207. break
  10208. done
  10209. fi
  10210. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  10211. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  10212. case $ac_cv_sys_file_offset_bits in #(
  10213. no | unknown) ;;
  10214. *)
  10215. cat >>confdefs.h <<_ACEOF
  10216. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10217. _ACEOF
  10218. ;;
  10219. esac
  10220. rm -rf conftest*
  10221. if test $ac_cv_sys_file_offset_bits = unknown; then
  10222. { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  10223. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  10224. if test "${ac_cv_sys_large_files+set}" = set; then
  10225. $as_echo_n "(cached) " >&6
  10226. else
  10227. while :; do
  10228. cat >conftest.$ac_ext <<_ACEOF
  10229. /* confdefs.h. */
  10230. _ACEOF
  10231. cat confdefs.h >>conftest.$ac_ext
  10232. cat >>conftest.$ac_ext <<_ACEOF
  10233. /* end confdefs.h. */
  10234. #include <sys/types.h>
  10235. /* Check that off_t can represent 2**63 - 1 correctly.
  10236. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10237. since some C++ compilers masquerading as C compilers
  10238. incorrectly reject 9223372036854775807. */
  10239. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10240. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10241. && LARGE_OFF_T % 2147483647 == 1)
  10242. ? 1 : -1];
  10243. int
  10244. main ()
  10245. {
  10246. ;
  10247. return 0;
  10248. }
  10249. _ACEOF
  10250. rm -f conftest.$ac_objext
  10251. if { (ac_try="$ac_compile"
  10252. case "(($ac_try" in
  10253. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10254. *) ac_try_echo=$ac_try;;
  10255. esac
  10256. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10257. $as_echo "$ac_try_echo") >&5
  10258. (eval "$ac_compile") 2>conftest.er1
  10259. ac_status=$?
  10260. grep -v '^ *+' conftest.er1 >conftest.err
  10261. rm -f conftest.er1
  10262. cat conftest.err >&5
  10263. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10264. (exit $ac_status); } && {
  10265. test -z "$ac_cxx_werror_flag" ||
  10266. test ! -s conftest.err
  10267. } && test -s conftest.$ac_objext; then
  10268. ac_cv_sys_large_files=no; break
  10269. else
  10270. $as_echo "$as_me: failed program was:" >&5
  10271. sed 's/^/| /' conftest.$ac_ext >&5
  10272. fi
  10273. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10274. cat >conftest.$ac_ext <<_ACEOF
  10275. /* confdefs.h. */
  10276. _ACEOF
  10277. cat confdefs.h >>conftest.$ac_ext
  10278. cat >>conftest.$ac_ext <<_ACEOF
  10279. /* end confdefs.h. */
  10280. #define _LARGE_FILES 1
  10281. #include <sys/types.h>
  10282. /* Check that off_t can represent 2**63 - 1 correctly.
  10283. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  10284. since some C++ compilers masquerading as C compilers
  10285. incorrectly reject 9223372036854775807. */
  10286. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  10287. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  10288. && LARGE_OFF_T % 2147483647 == 1)
  10289. ? 1 : -1];
  10290. int
  10291. main ()
  10292. {
  10293. ;
  10294. return 0;
  10295. }
  10296. _ACEOF
  10297. rm -f conftest.$ac_objext
  10298. if { (ac_try="$ac_compile"
  10299. case "(($ac_try" in
  10300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10301. *) ac_try_echo=$ac_try;;
  10302. esac
  10303. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10304. $as_echo "$ac_try_echo") >&5
  10305. (eval "$ac_compile") 2>conftest.er1
  10306. ac_status=$?
  10307. grep -v '^ *+' conftest.er1 >conftest.err
  10308. rm -f conftest.er1
  10309. cat conftest.err >&5
  10310. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10311. (exit $ac_status); } && {
  10312. test -z "$ac_cxx_werror_flag" ||
  10313. test ! -s conftest.err
  10314. } && test -s conftest.$ac_objext; then
  10315. ac_cv_sys_large_files=1; break
  10316. else
  10317. $as_echo "$as_me: failed program was:" >&5
  10318. sed 's/^/| /' conftest.$ac_ext >&5
  10319. fi
  10320. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10321. ac_cv_sys_large_files=unknown
  10322. break
  10323. done
  10324. fi
  10325. { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  10326. $as_echo "$ac_cv_sys_large_files" >&6; }
  10327. case $ac_cv_sys_large_files in #(
  10328. no | unknown) ;;
  10329. *)
  10330. cat >>confdefs.h <<_ACEOF
  10331. #define _LARGE_FILES $ac_cv_sys_large_files
  10332. _ACEOF
  10333. ;;
  10334. esac
  10335. rm -rf conftest*
  10336. fi
  10337. fi
  10338. # Checks for library functions.
  10339. { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  10340. $as_echo_n "checking whether NLS is requested... " >&6; }
  10341. # Check whether --enable-nls was given.
  10342. if test "${enable_nls+set}" = set; then
  10343. enableval=$enable_nls; USE_NLS=$enableval
  10344. else
  10345. USE_NLS=yes
  10346. fi
  10347. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  10348. $as_echo "$USE_NLS" >&6; }
  10349. GETTEXT_MACRO_VERSION=0.17
  10350. # Prepare PATH_SEPARATOR.
  10351. # The user is always right.
  10352. if test "${PATH_SEPARATOR+set}" != set; then
  10353. echo "#! /bin/sh" >conf$$.sh
  10354. echo "exit 0" >>conf$$.sh
  10355. chmod +x conf$$.sh
  10356. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10357. PATH_SEPARATOR=';'
  10358. else
  10359. PATH_SEPARATOR=:
  10360. fi
  10361. rm -f conf$$.sh
  10362. fi
  10363. # Find out how to test for executable files. Don't use a zero-byte file,
  10364. # as systems may use methods other than mode bits to determine executability.
  10365. cat >conf$$.file <<_ASEOF
  10366. #! /bin/sh
  10367. exit 0
  10368. _ASEOF
  10369. chmod +x conf$$.file
  10370. if test -x conf$$.file >/dev/null 2>&1; then
  10371. ac_executable_p="test -x"
  10372. else
  10373. ac_executable_p="test -f"
  10374. fi
  10375. rm -f conf$$.file
  10376. # Extract the first word of "msgfmt", so it can be a program name with args.
  10377. set dummy msgfmt; ac_word=$2
  10378. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10379. $as_echo_n "checking for $ac_word... " >&6; }
  10380. if test "${ac_cv_path_MSGFMT+set}" = set; then
  10381. $as_echo_n "(cached) " >&6
  10382. else
  10383. case "$MSGFMT" in
  10384. [\\/]* | ?:[\\/]*)
  10385. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  10386. ;;
  10387. *)
  10388. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10389. for ac_dir in $PATH; do
  10390. IFS="$ac_save_IFS"
  10391. test -z "$ac_dir" && ac_dir=.
  10392. for ac_exec_ext in '' $ac_executable_extensions; do
  10393. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10394. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10395. if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
  10396. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  10397. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  10398. break 2
  10399. fi
  10400. fi
  10401. done
  10402. done
  10403. IFS="$ac_save_IFS"
  10404. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  10405. ;;
  10406. esac
  10407. fi
  10408. MSGFMT="$ac_cv_path_MSGFMT"
  10409. if test "$MSGFMT" != ":"; then
  10410. { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
  10411. $as_echo "$MSGFMT" >&6; }
  10412. else
  10413. { $as_echo "$as_me:$LINENO: result: no" >&5
  10414. $as_echo "no" >&6; }
  10415. fi
  10416. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  10417. set dummy gmsgfmt; ac_word=$2
  10418. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10419. $as_echo_n "checking for $ac_word... " >&6; }
  10420. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  10421. $as_echo_n "(cached) " >&6
  10422. else
  10423. case $GMSGFMT in
  10424. [\\/]* | ?:[\\/]*)
  10425. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  10426. ;;
  10427. *)
  10428. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10429. for as_dir in $PATH
  10430. do
  10431. IFS=$as_save_IFS
  10432. test -z "$as_dir" && as_dir=.
  10433. for ac_exec_ext in '' $ac_executable_extensions; do
  10434. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10435. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  10436. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10437. break 2
  10438. fi
  10439. done
  10440. done
  10441. IFS=$as_save_IFS
  10442. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  10443. ;;
  10444. esac
  10445. fi
  10446. GMSGFMT=$ac_cv_path_GMSGFMT
  10447. if test -n "$GMSGFMT"; then
  10448. { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  10449. $as_echo "$GMSGFMT" >&6; }
  10450. else
  10451. { $as_echo "$as_me:$LINENO: result: no" >&5
  10452. $as_echo "no" >&6; }
  10453. fi
  10454. case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10455. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
  10456. *) MSGFMT_015=$MSGFMT ;;
  10457. esac
  10458. case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10459. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
  10460. *) GMSGFMT_015=$GMSGFMT ;;
  10461. esac
  10462. # Prepare PATH_SEPARATOR.
  10463. # The user is always right.
  10464. if test "${PATH_SEPARATOR+set}" != set; then
  10465. echo "#! /bin/sh" >conf$$.sh
  10466. echo "exit 0" >>conf$$.sh
  10467. chmod +x conf$$.sh
  10468. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10469. PATH_SEPARATOR=';'
  10470. else
  10471. PATH_SEPARATOR=:
  10472. fi
  10473. rm -f conf$$.sh
  10474. fi
  10475. # Find out how to test for executable files. Don't use a zero-byte file,
  10476. # as systems may use methods other than mode bits to determine executability.
  10477. cat >conf$$.file <<_ASEOF
  10478. #! /bin/sh
  10479. exit 0
  10480. _ASEOF
  10481. chmod +x conf$$.file
  10482. if test -x conf$$.file >/dev/null 2>&1; then
  10483. ac_executable_p="test -x"
  10484. else
  10485. ac_executable_p="test -f"
  10486. fi
  10487. rm -f conf$$.file
  10488. # Extract the first word of "xgettext", so it can be a program name with args.
  10489. set dummy xgettext; ac_word=$2
  10490. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10491. $as_echo_n "checking for $ac_word... " >&6; }
  10492. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  10493. $as_echo_n "(cached) " >&6
  10494. else
  10495. case "$XGETTEXT" in
  10496. [\\/]* | ?:[\\/]*)
  10497. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  10498. ;;
  10499. *)
  10500. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10501. for ac_dir in $PATH; do
  10502. IFS="$ac_save_IFS"
  10503. test -z "$ac_dir" && ac_dir=.
  10504. for ac_exec_ext in '' $ac_executable_extensions; do
  10505. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10506. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10507. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
  10508. (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
  10509. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  10510. break 2
  10511. fi
  10512. fi
  10513. done
  10514. done
  10515. IFS="$ac_save_IFS"
  10516. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  10517. ;;
  10518. esac
  10519. fi
  10520. XGETTEXT="$ac_cv_path_XGETTEXT"
  10521. if test "$XGETTEXT" != ":"; then
  10522. { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  10523. $as_echo "$XGETTEXT" >&6; }
  10524. else
  10525. { $as_echo "$as_me:$LINENO: result: no" >&5
  10526. $as_echo "no" >&6; }
  10527. fi
  10528. rm -f messages.po
  10529. case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
  10530. '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
  10531. *) XGETTEXT_015=$XGETTEXT ;;
  10532. esac
  10533. # Prepare PATH_SEPARATOR.
  10534. # The user is always right.
  10535. if test "${PATH_SEPARATOR+set}" != set; then
  10536. echo "#! /bin/sh" >conf$$.sh
  10537. echo "exit 0" >>conf$$.sh
  10538. chmod +x conf$$.sh
  10539. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10540. PATH_SEPARATOR=';'
  10541. else
  10542. PATH_SEPARATOR=:
  10543. fi
  10544. rm -f conf$$.sh
  10545. fi
  10546. # Find out how to test for executable files. Don't use a zero-byte file,
  10547. # as systems may use methods other than mode bits to determine executability.
  10548. cat >conf$$.file <<_ASEOF
  10549. #! /bin/sh
  10550. exit 0
  10551. _ASEOF
  10552. chmod +x conf$$.file
  10553. if test -x conf$$.file >/dev/null 2>&1; then
  10554. ac_executable_p="test -x"
  10555. else
  10556. ac_executable_p="test -f"
  10557. fi
  10558. rm -f conf$$.file
  10559. # Extract the first word of "msgmerge", so it can be a program name with args.
  10560. set dummy msgmerge; ac_word=$2
  10561. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  10562. $as_echo_n "checking for $ac_word... " >&6; }
  10563. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  10564. $as_echo_n "(cached) " >&6
  10565. else
  10566. case "$MSGMERGE" in
  10567. [\\/]* | ?:[\\/]*)
  10568. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  10569. ;;
  10570. *)
  10571. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  10572. for ac_dir in $PATH; do
  10573. IFS="$ac_save_IFS"
  10574. test -z "$ac_dir" && ac_dir=.
  10575. for ac_exec_ext in '' $ac_executable_extensions; do
  10576. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  10577. echo "$as_me: trying $ac_dir/$ac_word..." >&5
  10578. if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
  10579. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  10580. break 2
  10581. fi
  10582. fi
  10583. done
  10584. done
  10585. IFS="$ac_save_IFS"
  10586. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  10587. ;;
  10588. esac
  10589. fi
  10590. MSGMERGE="$ac_cv_path_MSGMERGE"
  10591. if test "$MSGMERGE" != ":"; then
  10592. { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  10593. $as_echo "$MSGMERGE" >&6; }
  10594. else
  10595. { $as_echo "$as_me:$LINENO: result: no" >&5
  10596. $as_echo "no" >&6; }
  10597. fi
  10598. test -n "$localedir" || localedir='${datadir}/locale'
  10599. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
  10600. ac_config_commands="$ac_config_commands po-directories"
  10601. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
  10602. $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
  10603. if test "${ac_cv_gnu_library_2+set}" = set; then
  10604. $as_echo_n "(cached) " >&6
  10605. else
  10606. cat >conftest.$ac_ext <<_ACEOF
  10607. /* confdefs.h. */
  10608. _ACEOF
  10609. cat confdefs.h >>conftest.$ac_ext
  10610. cat >>conftest.$ac_ext <<_ACEOF
  10611. /* end confdefs.h. */
  10612. #include <features.h>
  10613. #ifdef __GNU_LIBRARY__
  10614. #if (__GLIBC__ >= 2)
  10615. Lucky GNU user
  10616. #endif
  10617. #endif
  10618. _ACEOF
  10619. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  10620. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  10621. ac_cv_gnu_library_2=yes
  10622. else
  10623. ac_cv_gnu_library_2=no
  10624. fi
  10625. rm -f conftest*
  10626. fi
  10627. { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
  10628. $as_echo "$ac_cv_gnu_library_2" >&6; }
  10629. GLIBC2="$ac_cv_gnu_library_2"
  10630. CFLAG_VISIBILITY=
  10631. HAVE_VISIBILITY=0
  10632. if test -n "$GCC"; then
  10633. { $as_echo "$as_me:$LINENO: checking for simple visibility declarations" >&5
  10634. $as_echo_n "checking for simple visibility declarations... " >&6; }
  10635. if test "${gl_cv_cc_visibility+set}" = set; then
  10636. $as_echo_n "(cached) " >&6
  10637. else
  10638. gl_save_CFLAGS="$CFLAGS"
  10639. CFLAGS="$CFLAGS -fvisibility=hidden"
  10640. cat >conftest.$ac_ext <<_ACEOF
  10641. /* confdefs.h. */
  10642. _ACEOF
  10643. cat confdefs.h >>conftest.$ac_ext
  10644. cat >>conftest.$ac_ext <<_ACEOF
  10645. /* end confdefs.h. */
  10646. extern __attribute__((__visibility__("hidden"))) int hiddenvar;
  10647. extern __attribute__((__visibility__("default"))) int exportedvar;
  10648. extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
  10649. extern __attribute__((__visibility__("default"))) int exportedfunc (void);
  10650. int
  10651. main ()
  10652. {
  10653. ;
  10654. return 0;
  10655. }
  10656. _ACEOF
  10657. rm -f conftest.$ac_objext
  10658. if { (ac_try="$ac_compile"
  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_compile") 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_objext; then
  10675. gl_cv_cc_visibility=yes
  10676. else
  10677. $as_echo "$as_me: failed program was:" >&5
  10678. sed 's/^/| /' conftest.$ac_ext >&5
  10679. gl_cv_cc_visibility=no
  10680. fi
  10681. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10682. CFLAGS="$gl_save_CFLAGS"
  10683. fi
  10684. { $as_echo "$as_me:$LINENO: result: $gl_cv_cc_visibility" >&5
  10685. $as_echo "$gl_cv_cc_visibility" >&6; }
  10686. if test $gl_cv_cc_visibility = yes; then
  10687. CFLAG_VISIBILITY="-fvisibility=hidden"
  10688. HAVE_VISIBILITY=1
  10689. fi
  10690. fi
  10691. cat >>confdefs.h <<_ACEOF
  10692. #define HAVE_VISIBILITY $HAVE_VISIBILITY
  10693. _ACEOF
  10694. { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
  10695. $as_echo_n "checking for stdint.h... " >&6; }
  10696. if test "${gl_cv_header_stdint_h+set}" = set; then
  10697. $as_echo_n "(cached) " >&6
  10698. else
  10699. cat >conftest.$ac_ext <<_ACEOF
  10700. /* confdefs.h. */
  10701. _ACEOF
  10702. cat confdefs.h >>conftest.$ac_ext
  10703. cat >>conftest.$ac_ext <<_ACEOF
  10704. /* end confdefs.h. */
  10705. #include <sys/types.h>
  10706. #include <stdint.h>
  10707. int
  10708. main ()
  10709. {
  10710. uintmax_t i = (uintmax_t) -1; return !i;
  10711. ;
  10712. return 0;
  10713. }
  10714. _ACEOF
  10715. rm -f conftest.$ac_objext
  10716. if { (ac_try="$ac_compile"
  10717. case "(($ac_try" in
  10718. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10719. *) ac_try_echo=$ac_try;;
  10720. esac
  10721. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10722. $as_echo "$ac_try_echo") >&5
  10723. (eval "$ac_compile") 2>conftest.er1
  10724. ac_status=$?
  10725. grep -v '^ *+' conftest.er1 >conftest.err
  10726. rm -f conftest.er1
  10727. cat conftest.err >&5
  10728. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10729. (exit $ac_status); } && {
  10730. test -z "$ac_cxx_werror_flag" ||
  10731. test ! -s conftest.err
  10732. } && test -s conftest.$ac_objext; then
  10733. gl_cv_header_stdint_h=yes
  10734. else
  10735. $as_echo "$as_me: failed program was:" >&5
  10736. sed 's/^/| /' conftest.$ac_ext >&5
  10737. gl_cv_header_stdint_h=no
  10738. fi
  10739. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10740. fi
  10741. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
  10742. $as_echo "$gl_cv_header_stdint_h" >&6; }
  10743. if test $gl_cv_header_stdint_h = yes; then
  10744. cat >>confdefs.h <<_ACEOF
  10745. #define HAVE_STDINT_H_WITH_UINTMAX 1
  10746. _ACEOF
  10747. fi
  10748. for ac_header in stdlib.h unistd.h
  10749. do
  10750. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10751. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10752. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10753. $as_echo_n "checking for $ac_header... " >&6; }
  10754. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10755. $as_echo_n "(cached) " >&6
  10756. fi
  10757. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10758. $as_echo "$as_val"'`
  10759. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10760. $as_echo "$ac_res" >&6; }
  10761. else
  10762. # Is the header compilable?
  10763. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10764. $as_echo_n "checking $ac_header usability... " >&6; }
  10765. cat >conftest.$ac_ext <<_ACEOF
  10766. /* confdefs.h. */
  10767. _ACEOF
  10768. cat confdefs.h >>conftest.$ac_ext
  10769. cat >>conftest.$ac_ext <<_ACEOF
  10770. /* end confdefs.h. */
  10771. $ac_includes_default
  10772. #include <$ac_header>
  10773. _ACEOF
  10774. rm -f conftest.$ac_objext
  10775. if { (ac_try="$ac_compile"
  10776. case "(($ac_try" in
  10777. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10778. *) ac_try_echo=$ac_try;;
  10779. esac
  10780. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10781. $as_echo "$ac_try_echo") >&5
  10782. (eval "$ac_compile") 2>conftest.er1
  10783. ac_status=$?
  10784. grep -v '^ *+' conftest.er1 >conftest.err
  10785. rm -f conftest.er1
  10786. cat conftest.err >&5
  10787. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10788. (exit $ac_status); } && {
  10789. test -z "$ac_cxx_werror_flag" ||
  10790. test ! -s conftest.err
  10791. } && test -s conftest.$ac_objext; then
  10792. ac_header_compiler=yes
  10793. else
  10794. $as_echo "$as_me: failed program was:" >&5
  10795. sed 's/^/| /' conftest.$ac_ext >&5
  10796. ac_header_compiler=no
  10797. fi
  10798. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10799. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10800. $as_echo "$ac_header_compiler" >&6; }
  10801. # Is the header present?
  10802. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10803. $as_echo_n "checking $ac_header presence... " >&6; }
  10804. cat >conftest.$ac_ext <<_ACEOF
  10805. /* confdefs.h. */
  10806. _ACEOF
  10807. cat confdefs.h >>conftest.$ac_ext
  10808. cat >>conftest.$ac_ext <<_ACEOF
  10809. /* end confdefs.h. */
  10810. #include <$ac_header>
  10811. _ACEOF
  10812. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10813. case "(($ac_try" in
  10814. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10815. *) ac_try_echo=$ac_try;;
  10816. esac
  10817. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10818. $as_echo "$ac_try_echo") >&5
  10819. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10820. ac_status=$?
  10821. grep -v '^ *+' conftest.er1 >conftest.err
  10822. rm -f conftest.er1
  10823. cat conftest.err >&5
  10824. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10825. (exit $ac_status); } >/dev/null && {
  10826. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  10827. test ! -s conftest.err
  10828. }; then
  10829. ac_header_preproc=yes
  10830. else
  10831. $as_echo "$as_me: failed program was:" >&5
  10832. sed 's/^/| /' conftest.$ac_ext >&5
  10833. ac_header_preproc=no
  10834. fi
  10835. rm -f conftest.err conftest.$ac_ext
  10836. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10837. $as_echo "$ac_header_preproc" >&6; }
  10838. # So? What about this header?
  10839. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  10840. yes:no: )
  10841. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10842. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10843. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10844. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10845. ac_header_preproc=yes
  10846. ;;
  10847. no:yes:* )
  10848. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10849. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10850. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10851. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10852. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10853. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10854. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10855. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10856. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10857. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10858. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10859. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10860. ( cat <<\_ASBOX
  10861. ## ----------------------------------------------- ##
  10862. ## Report this to t-tujikawa@users.sourceforge.net ##
  10863. ## ----------------------------------------------- ##
  10864. _ASBOX
  10865. ) | sed "s/^/$as_me: WARNING: /" >&2
  10866. ;;
  10867. esac
  10868. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  10869. $as_echo_n "checking for $ac_header... " >&6; }
  10870. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10871. $as_echo_n "(cached) " >&6
  10872. else
  10873. eval "$as_ac_Header=\$ac_header_preproc"
  10874. fi
  10875. ac_res=`eval 'as_val=${'$as_ac_Header'}
  10876. $as_echo "$as_val"'`
  10877. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10878. $as_echo "$ac_res" >&6; }
  10879. fi
  10880. as_val=`eval 'as_val=${'$as_ac_Header'}
  10881. $as_echo "$as_val"'`
  10882. if test "x$as_val" = x""yes; then
  10883. cat >>confdefs.h <<_ACEOF
  10884. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10885. _ACEOF
  10886. fi
  10887. done
  10888. for ac_func in getpagesize
  10889. do
  10890. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10891. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  10892. $as_echo_n "checking for $ac_func... " >&6; }
  10893. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10894. $as_echo_n "(cached) " >&6
  10895. else
  10896. cat >conftest.$ac_ext <<_ACEOF
  10897. /* confdefs.h. */
  10898. _ACEOF
  10899. cat confdefs.h >>conftest.$ac_ext
  10900. cat >>conftest.$ac_ext <<_ACEOF
  10901. /* end confdefs.h. */
  10902. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10903. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10904. #define $ac_func innocuous_$ac_func
  10905. /* System header to define __stub macros and hopefully few prototypes,
  10906. which can conflict with char $ac_func (); below.
  10907. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10908. <limits.h> exists even on freestanding compilers. */
  10909. #ifdef __STDC__
  10910. # include <limits.h>
  10911. #else
  10912. # include <assert.h>
  10913. #endif
  10914. #undef $ac_func
  10915. /* Override any GCC internal prototype to avoid an error.
  10916. Use char because int might match the return type of a GCC
  10917. builtin and then its argument prototype would still apply. */
  10918. #ifdef __cplusplus
  10919. extern "C"
  10920. #endif
  10921. char $ac_func ();
  10922. /* The GNU C library defines this for functions which it implements
  10923. to always fail with ENOSYS. Some functions are actually named
  10924. something starting with __ and the normal name is an alias. */
  10925. #if defined __stub_$ac_func || defined __stub___$ac_func
  10926. choke me
  10927. #endif
  10928. int
  10929. main ()
  10930. {
  10931. return $ac_func ();
  10932. ;
  10933. return 0;
  10934. }
  10935. _ACEOF
  10936. rm -f conftest.$ac_objext conftest$ac_exeext
  10937. if { (ac_try="$ac_link"
  10938. case "(($ac_try" in
  10939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10940. *) ac_try_echo=$ac_try;;
  10941. esac
  10942. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10943. $as_echo "$ac_try_echo") >&5
  10944. (eval "$ac_link") 2>conftest.er1
  10945. ac_status=$?
  10946. grep -v '^ *+' conftest.er1 >conftest.err
  10947. rm -f conftest.er1
  10948. cat conftest.err >&5
  10949. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10950. (exit $ac_status); } && {
  10951. test -z "$ac_cxx_werror_flag" ||
  10952. test ! -s conftest.err
  10953. } && test -s conftest$ac_exeext && {
  10954. test "$cross_compiling" = yes ||
  10955. $as_test_x conftest$ac_exeext
  10956. }; then
  10957. eval "$as_ac_var=yes"
  10958. else
  10959. $as_echo "$as_me: failed program was:" >&5
  10960. sed 's/^/| /' conftest.$ac_ext >&5
  10961. eval "$as_ac_var=no"
  10962. fi
  10963. rm -rf conftest.dSYM
  10964. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10965. conftest$ac_exeext conftest.$ac_ext
  10966. fi
  10967. ac_res=`eval 'as_val=${'$as_ac_var'}
  10968. $as_echo "$as_val"'`
  10969. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  10970. $as_echo "$ac_res" >&6; }
  10971. as_val=`eval 'as_val=${'$as_ac_var'}
  10972. $as_echo "$as_val"'`
  10973. if test "x$as_val" = x""yes; then
  10974. cat >>confdefs.h <<_ACEOF
  10975. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10976. _ACEOF
  10977. fi
  10978. done
  10979. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  10980. $as_echo_n "checking for working mmap... " >&6; }
  10981. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10982. $as_echo_n "(cached) " >&6
  10983. else
  10984. if test "$cross_compiling" = yes; then
  10985. ac_cv_func_mmap_fixed_mapped=no
  10986. else
  10987. cat >conftest.$ac_ext <<_ACEOF
  10988. /* confdefs.h. */
  10989. _ACEOF
  10990. cat confdefs.h >>conftest.$ac_ext
  10991. cat >>conftest.$ac_ext <<_ACEOF
  10992. /* end confdefs.h. */
  10993. $ac_includes_default
  10994. /* malloc might have been renamed as rpl_malloc. */
  10995. #undef malloc
  10996. /* Thanks to Mike Haertel and Jim Avera for this test.
  10997. Here is a matrix of mmap possibilities:
  10998. mmap private not fixed
  10999. mmap private fixed at somewhere currently unmapped
  11000. mmap private fixed at somewhere already mapped
  11001. mmap shared not fixed
  11002. mmap shared fixed at somewhere currently unmapped
  11003. mmap shared fixed at somewhere already mapped
  11004. For private mappings, we should verify that changes cannot be read()
  11005. back from the file, nor mmap's back from the file at a different
  11006. address. (There have been systems where private was not correctly
  11007. implemented like the infamous i386 svr4.0, and systems where the
  11008. VM page cache was not coherent with the file system buffer cache
  11009. like early versions of FreeBSD and possibly contemporary NetBSD.)
  11010. For shared mappings, we should conversely verify that changes get
  11011. propagated back to all the places they're supposed to be.
  11012. Grep wants private fixed already mapped.
  11013. The main things grep needs to know about mmap are:
  11014. * does it exist and is it safe to write into the mmap'd area
  11015. * how to use it (BSD variants) */
  11016. #include <fcntl.h>
  11017. #include <sys/mman.h>
  11018. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  11019. char *malloc ();
  11020. #endif
  11021. /* This mess was copied from the GNU getpagesize.h. */
  11022. #ifndef HAVE_GETPAGESIZE
  11023. /* Assume that all systems that can run configure have sys/param.h. */
  11024. # ifndef HAVE_SYS_PARAM_H
  11025. # define HAVE_SYS_PARAM_H 1
  11026. # endif
  11027. # ifdef _SC_PAGESIZE
  11028. # define getpagesize() sysconf(_SC_PAGESIZE)
  11029. # else /* no _SC_PAGESIZE */
  11030. # ifdef HAVE_SYS_PARAM_H
  11031. # include <sys/param.h>
  11032. # ifdef EXEC_PAGESIZE
  11033. # define getpagesize() EXEC_PAGESIZE
  11034. # else /* no EXEC_PAGESIZE */
  11035. # ifdef NBPG
  11036. # define getpagesize() NBPG * CLSIZE
  11037. # ifndef CLSIZE
  11038. # define CLSIZE 1
  11039. # endif /* no CLSIZE */
  11040. # else /* no NBPG */
  11041. # ifdef NBPC
  11042. # define getpagesize() NBPC
  11043. # else /* no NBPC */
  11044. # ifdef PAGESIZE
  11045. # define getpagesize() PAGESIZE
  11046. # endif /* PAGESIZE */
  11047. # endif /* no NBPC */
  11048. # endif /* no NBPG */
  11049. # endif /* no EXEC_PAGESIZE */
  11050. # else /* no HAVE_SYS_PARAM_H */
  11051. # define getpagesize() 8192 /* punt totally */
  11052. # endif /* no HAVE_SYS_PARAM_H */
  11053. # endif /* no _SC_PAGESIZE */
  11054. #endif /* no HAVE_GETPAGESIZE */
  11055. int
  11056. main ()
  11057. {
  11058. char *data, *data2, *data3;
  11059. int i, pagesize;
  11060. int fd;
  11061. pagesize = getpagesize ();
  11062. /* First, make a file with some known garbage in it. */
  11063. data = (char *) malloc (pagesize);
  11064. if (!data)
  11065. return 1;
  11066. for (i = 0; i < pagesize; ++i)
  11067. *(data + i) = rand ();
  11068. umask (0);
  11069. fd = creat ("conftest.mmap", 0600);
  11070. if (fd < 0)
  11071. return 1;
  11072. if (write (fd, data, pagesize) != pagesize)
  11073. return 1;
  11074. close (fd);
  11075. /* Next, try to mmap the file at a fixed address which already has
  11076. something else allocated at it. If we can, also make sure that
  11077. we see the same garbage. */
  11078. fd = open ("conftest.mmap", O_RDWR);
  11079. if (fd < 0)
  11080. return 1;
  11081. data2 = (char *) malloc (2 * pagesize);
  11082. if (!data2)
  11083. return 1;
  11084. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  11085. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  11086. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  11087. return 1;
  11088. for (i = 0; i < pagesize; ++i)
  11089. if (*(data + i) != *(data2 + i))
  11090. return 1;
  11091. /* Finally, make sure that changes to the mapped area do not
  11092. percolate back to the file as seen by read(). (This is a bug on
  11093. some variants of i386 svr4.0.) */
  11094. for (i = 0; i < pagesize; ++i)
  11095. *(data2 + i) = *(data2 + i) + 1;
  11096. data3 = (char *) malloc (pagesize);
  11097. if (!data3)
  11098. return 1;
  11099. if (read (fd, data3, pagesize) != pagesize)
  11100. return 1;
  11101. for (i = 0; i < pagesize; ++i)
  11102. if (*(data + i) != *(data3 + i))
  11103. return 1;
  11104. close (fd);
  11105. return 0;
  11106. }
  11107. _ACEOF
  11108. rm -f conftest$ac_exeext
  11109. if { (ac_try="$ac_link"
  11110. case "(($ac_try" in
  11111. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11112. *) ac_try_echo=$ac_try;;
  11113. esac
  11114. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11115. $as_echo "$ac_try_echo") >&5
  11116. (eval "$ac_link") 2>&5
  11117. ac_status=$?
  11118. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11119. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11120. { (case "(($ac_try" in
  11121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11122. *) ac_try_echo=$ac_try;;
  11123. esac
  11124. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11125. $as_echo "$ac_try_echo") >&5
  11126. (eval "$ac_try") 2>&5
  11127. ac_status=$?
  11128. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11129. (exit $ac_status); }; }; then
  11130. ac_cv_func_mmap_fixed_mapped=yes
  11131. else
  11132. $as_echo "$as_me: program exited with status $ac_status" >&5
  11133. $as_echo "$as_me: failed program was:" >&5
  11134. sed 's/^/| /' conftest.$ac_ext >&5
  11135. ( exit $ac_status )
  11136. ac_cv_func_mmap_fixed_mapped=no
  11137. fi
  11138. rm -rf conftest.dSYM
  11139. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11140. fi
  11141. fi
  11142. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  11143. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  11144. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  11145. cat >>confdefs.h <<\_ACEOF
  11146. #define HAVE_MMAP 1
  11147. _ACEOF
  11148. fi
  11149. rm -f conftest.mmap
  11150. { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  11151. $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
  11152. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  11153. $as_echo_n "(cached) " >&6
  11154. else
  11155. gt_cv_int_divbyzero_sigfpe=
  11156. case "$host_os" in
  11157. macos* | darwin[6-9]* | darwin[1-9][0-9]*)
  11158. # On MacOS X 10.2 or newer, just assume the same as when cross-
  11159. # compiling. If we were to perform the real test, 1 Crash Report
  11160. # dialog window would pop up.
  11161. case "$host_cpu" in
  11162. i[34567]86 | x86_64)
  11163. gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
  11164. esac
  11165. ;;
  11166. esac
  11167. if test -z "$gt_cv_int_divbyzero_sigfpe"; then
  11168. if test "$cross_compiling" = yes; then
  11169. # Guess based on the CPU.
  11170. case "$host_cpu" in
  11171. alpha* | i[34567]86 | x86_64 | m68k | s390*)
  11172. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  11173. *)
  11174. gt_cv_int_divbyzero_sigfpe="guessing no";;
  11175. esac
  11176. else
  11177. cat >conftest.$ac_ext <<_ACEOF
  11178. /* confdefs.h. */
  11179. _ACEOF
  11180. cat confdefs.h >>conftest.$ac_ext
  11181. cat >>conftest.$ac_ext <<_ACEOF
  11182. /* end confdefs.h. */
  11183. #include <stdlib.h>
  11184. #include <signal.h>
  11185. static void
  11186. sigfpe_handler (int sig)
  11187. {
  11188. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  11189. exit (sig != SIGFPE);
  11190. }
  11191. int x = 1;
  11192. int y = 0;
  11193. int z;
  11194. int nan;
  11195. int main ()
  11196. {
  11197. signal (SIGFPE, sigfpe_handler);
  11198. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  11199. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  11200. signal (SIGTRAP, sigfpe_handler);
  11201. #endif
  11202. /* Linux/SPARC yields signal SIGILL. */
  11203. #if defined (__sparc__) && defined (__linux__)
  11204. signal (SIGILL, sigfpe_handler);
  11205. #endif
  11206. z = x / y;
  11207. nan = y / y;
  11208. exit (1);
  11209. }
  11210. _ACEOF
  11211. rm -f conftest$ac_exeext
  11212. if { (ac_try="$ac_link"
  11213. case "(($ac_try" in
  11214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11215. *) ac_try_echo=$ac_try;;
  11216. esac
  11217. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11218. $as_echo "$ac_try_echo") >&5
  11219. (eval "$ac_link") 2>&5
  11220. ac_status=$?
  11221. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11222. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  11223. { (case "(($ac_try" in
  11224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11225. *) ac_try_echo=$ac_try;;
  11226. esac
  11227. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11228. $as_echo "$ac_try_echo") >&5
  11229. (eval "$ac_try") 2>&5
  11230. ac_status=$?
  11231. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11232. (exit $ac_status); }; }; then
  11233. gt_cv_int_divbyzero_sigfpe=yes
  11234. else
  11235. $as_echo "$as_me: program exited with status $ac_status" >&5
  11236. $as_echo "$as_me: failed program was:" >&5
  11237. sed 's/^/| /' conftest.$ac_ext >&5
  11238. ( exit $ac_status )
  11239. gt_cv_int_divbyzero_sigfpe=no
  11240. fi
  11241. rm -rf conftest.dSYM
  11242. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  11243. fi
  11244. fi
  11245. fi
  11246. { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  11247. $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
  11248. case "$gt_cv_int_divbyzero_sigfpe" in
  11249. *yes) value=1;;
  11250. *) value=0;;
  11251. esac
  11252. cat >>confdefs.h <<_ACEOF
  11253. #define INTDIV0_RAISES_SIGFPE $value
  11254. _ACEOF
  11255. { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
  11256. $as_echo_n "checking for inttypes.h... " >&6; }
  11257. if test "${gl_cv_header_inttypes_h+set}" = set; then
  11258. $as_echo_n "(cached) " >&6
  11259. else
  11260. cat >conftest.$ac_ext <<_ACEOF
  11261. /* confdefs.h. */
  11262. _ACEOF
  11263. cat confdefs.h >>conftest.$ac_ext
  11264. cat >>conftest.$ac_ext <<_ACEOF
  11265. /* end confdefs.h. */
  11266. #include <sys/types.h>
  11267. #include <inttypes.h>
  11268. int
  11269. main ()
  11270. {
  11271. uintmax_t i = (uintmax_t) -1; return !i;
  11272. ;
  11273. return 0;
  11274. }
  11275. _ACEOF
  11276. rm -f conftest.$ac_objext
  11277. if { (ac_try="$ac_compile"
  11278. case "(($ac_try" in
  11279. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11280. *) ac_try_echo=$ac_try;;
  11281. esac
  11282. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11283. $as_echo "$ac_try_echo") >&5
  11284. (eval "$ac_compile") 2>conftest.er1
  11285. ac_status=$?
  11286. grep -v '^ *+' conftest.er1 >conftest.err
  11287. rm -f conftest.er1
  11288. cat conftest.err >&5
  11289. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11290. (exit $ac_status); } && {
  11291. test -z "$ac_cxx_werror_flag" ||
  11292. test ! -s conftest.err
  11293. } && test -s conftest.$ac_objext; then
  11294. gl_cv_header_inttypes_h=yes
  11295. else
  11296. $as_echo "$as_me: failed program was:" >&5
  11297. sed 's/^/| /' conftest.$ac_ext >&5
  11298. gl_cv_header_inttypes_h=no
  11299. fi
  11300. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11301. fi
  11302. { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
  11303. $as_echo "$gl_cv_header_inttypes_h" >&6; }
  11304. if test $gl_cv_header_inttypes_h = yes; then
  11305. cat >>confdefs.h <<_ACEOF
  11306. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  11307. _ACEOF
  11308. fi
  11309. { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
  11310. $as_echo_n "checking for unsigned long long int... " >&6; }
  11311. if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
  11312. $as_echo_n "(cached) " >&6
  11313. else
  11314. cat >conftest.$ac_ext <<_ACEOF
  11315. /* confdefs.h. */
  11316. _ACEOF
  11317. cat confdefs.h >>conftest.$ac_ext
  11318. cat >>conftest.$ac_ext <<_ACEOF
  11319. /* end confdefs.h. */
  11320. /* Test preprocessor. */
  11321. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11322. error in preprocessor;
  11323. #endif
  11324. #if ! (18446744073709551615ULL <= -1ull)
  11325. error in preprocessor;
  11326. #endif
  11327. /* Test literals. */
  11328. long long int ll = 9223372036854775807ll;
  11329. long long int nll = -9223372036854775807LL;
  11330. unsigned long long int ull = 18446744073709551615ULL;
  11331. /* Test constant expressions. */
  11332. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  11333. ? 1 : -1)];
  11334. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  11335. ? 1 : -1)];
  11336. int i = 63;
  11337. int
  11338. main ()
  11339. {
  11340. /* Test availability of runtime routines for shift and division. */
  11341. long long int llmax = 9223372036854775807ll;
  11342. unsigned long long int ullmax = 18446744073709551615ull;
  11343. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  11344. | (llmax / ll) | (llmax % ll)
  11345. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  11346. | (ullmax / ull) | (ullmax % ull));
  11347. ;
  11348. return 0;
  11349. }
  11350. _ACEOF
  11351. rm -f conftest.$ac_objext conftest$ac_exeext
  11352. if { (ac_try="$ac_link"
  11353. case "(($ac_try" in
  11354. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11355. *) ac_try_echo=$ac_try;;
  11356. esac
  11357. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11358. $as_echo "$ac_try_echo") >&5
  11359. (eval "$ac_link") 2>conftest.er1
  11360. ac_status=$?
  11361. grep -v '^ *+' conftest.er1 >conftest.err
  11362. rm -f conftest.er1
  11363. cat conftest.err >&5
  11364. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11365. (exit $ac_status); } && {
  11366. test -z "$ac_cxx_werror_flag" ||
  11367. test ! -s conftest.err
  11368. } && test -s conftest$ac_exeext && {
  11369. test "$cross_compiling" = yes ||
  11370. $as_test_x conftest$ac_exeext
  11371. }; then
  11372. ac_cv_type_unsigned_long_long_int=yes
  11373. else
  11374. $as_echo "$as_me: failed program was:" >&5
  11375. sed 's/^/| /' conftest.$ac_ext >&5
  11376. ac_cv_type_unsigned_long_long_int=no
  11377. fi
  11378. rm -rf conftest.dSYM
  11379. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11380. conftest$ac_exeext conftest.$ac_ext
  11381. fi
  11382. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
  11383. $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
  11384. if test $ac_cv_type_unsigned_long_long_int = yes; then
  11385. cat >>confdefs.h <<\_ACEOF
  11386. #define HAVE_UNSIGNED_LONG_LONG_INT 1
  11387. _ACEOF
  11388. fi
  11389. if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
  11390. test $ac_cv_type_unsigned_long_long_int = yes \
  11391. && ac_type='unsigned long long' \
  11392. || ac_type='unsigned long'
  11393. cat >>confdefs.h <<_ACEOF
  11394. #define uintmax_t $ac_type
  11395. _ACEOF
  11396. else
  11397. cat >>confdefs.h <<\_ACEOF
  11398. #define HAVE_UINTMAX_T 1
  11399. _ACEOF
  11400. fi
  11401. for ac_header in inttypes.h
  11402. do
  11403. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  11404. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11405. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11406. $as_echo_n "checking for $ac_header... " >&6; }
  11407. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11408. $as_echo_n "(cached) " >&6
  11409. fi
  11410. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11411. $as_echo "$as_val"'`
  11412. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11413. $as_echo "$ac_res" >&6; }
  11414. else
  11415. # Is the header compilable?
  11416. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  11417. $as_echo_n "checking $ac_header usability... " >&6; }
  11418. cat >conftest.$ac_ext <<_ACEOF
  11419. /* confdefs.h. */
  11420. _ACEOF
  11421. cat confdefs.h >>conftest.$ac_ext
  11422. cat >>conftest.$ac_ext <<_ACEOF
  11423. /* end confdefs.h. */
  11424. $ac_includes_default
  11425. #include <$ac_header>
  11426. _ACEOF
  11427. rm -f conftest.$ac_objext
  11428. if { (ac_try="$ac_compile"
  11429. case "(($ac_try" in
  11430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11431. *) ac_try_echo=$ac_try;;
  11432. esac
  11433. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11434. $as_echo "$ac_try_echo") >&5
  11435. (eval "$ac_compile") 2>conftest.er1
  11436. ac_status=$?
  11437. grep -v '^ *+' conftest.er1 >conftest.err
  11438. rm -f conftest.er1
  11439. cat conftest.err >&5
  11440. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11441. (exit $ac_status); } && {
  11442. test -z "$ac_cxx_werror_flag" ||
  11443. test ! -s conftest.err
  11444. } && test -s conftest.$ac_objext; then
  11445. ac_header_compiler=yes
  11446. else
  11447. $as_echo "$as_me: failed program was:" >&5
  11448. sed 's/^/| /' conftest.$ac_ext >&5
  11449. ac_header_compiler=no
  11450. fi
  11451. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11452. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11453. $as_echo "$ac_header_compiler" >&6; }
  11454. # Is the header present?
  11455. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  11456. $as_echo_n "checking $ac_header presence... " >&6; }
  11457. cat >conftest.$ac_ext <<_ACEOF
  11458. /* confdefs.h. */
  11459. _ACEOF
  11460. cat confdefs.h >>conftest.$ac_ext
  11461. cat >>conftest.$ac_ext <<_ACEOF
  11462. /* end confdefs.h. */
  11463. #include <$ac_header>
  11464. _ACEOF
  11465. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11466. case "(($ac_try" in
  11467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11468. *) ac_try_echo=$ac_try;;
  11469. esac
  11470. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11471. $as_echo "$ac_try_echo") >&5
  11472. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11473. ac_status=$?
  11474. grep -v '^ *+' conftest.er1 >conftest.err
  11475. rm -f conftest.er1
  11476. cat conftest.err >&5
  11477. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11478. (exit $ac_status); } >/dev/null && {
  11479. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11480. test ! -s conftest.err
  11481. }; then
  11482. ac_header_preproc=yes
  11483. else
  11484. $as_echo "$as_me: failed program was:" >&5
  11485. sed 's/^/| /' conftest.$ac_ext >&5
  11486. ac_header_preproc=no
  11487. fi
  11488. rm -f conftest.err conftest.$ac_ext
  11489. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11490. $as_echo "$ac_header_preproc" >&6; }
  11491. # So? What about this header?
  11492. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11493. yes:no: )
  11494. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  11495. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11496. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  11497. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  11498. ac_header_preproc=yes
  11499. ;;
  11500. no:yes:* )
  11501. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  11502. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  11503. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  11504. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  11505. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  11506. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  11507. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  11508. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  11509. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  11510. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  11511. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  11512. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  11513. ( cat <<\_ASBOX
  11514. ## ----------------------------------------------- ##
  11515. ## Report this to t-tujikawa@users.sourceforge.net ##
  11516. ## ----------------------------------------------- ##
  11517. _ASBOX
  11518. ) | sed "s/^/$as_me: WARNING: /" >&2
  11519. ;;
  11520. esac
  11521. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  11522. $as_echo_n "checking for $ac_header... " >&6; }
  11523. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  11524. $as_echo_n "(cached) " >&6
  11525. else
  11526. eval "$as_ac_Header=\$ac_header_preproc"
  11527. fi
  11528. ac_res=`eval 'as_val=${'$as_ac_Header'}
  11529. $as_echo "$as_val"'`
  11530. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  11531. $as_echo "$ac_res" >&6; }
  11532. fi
  11533. as_val=`eval 'as_val=${'$as_ac_Header'}
  11534. $as_echo "$as_val"'`
  11535. if test "x$as_val" = x""yes; then
  11536. cat >>confdefs.h <<_ACEOF
  11537. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  11538. _ACEOF
  11539. fi
  11540. done
  11541. if test $ac_cv_header_inttypes_h = yes; then
  11542. { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  11543. $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
  11544. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  11545. $as_echo_n "(cached) " >&6
  11546. else
  11547. cat >conftest.$ac_ext <<_ACEOF
  11548. /* confdefs.h. */
  11549. _ACEOF
  11550. cat confdefs.h >>conftest.$ac_ext
  11551. cat >>conftest.$ac_ext <<_ACEOF
  11552. /* end confdefs.h. */
  11553. #include <inttypes.h>
  11554. #ifdef PRId32
  11555. char *p = PRId32;
  11556. #endif
  11557. int
  11558. main ()
  11559. {
  11560. ;
  11561. return 0;
  11562. }
  11563. _ACEOF
  11564. rm -f conftest.$ac_objext
  11565. if { (ac_try="$ac_compile"
  11566. case "(($ac_try" in
  11567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11568. *) ac_try_echo=$ac_try;;
  11569. esac
  11570. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11571. $as_echo "$ac_try_echo") >&5
  11572. (eval "$ac_compile") 2>conftest.er1
  11573. ac_status=$?
  11574. grep -v '^ *+' conftest.er1 >conftest.err
  11575. rm -f conftest.er1
  11576. cat conftest.err >&5
  11577. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11578. (exit $ac_status); } && {
  11579. test -z "$ac_cxx_werror_flag" ||
  11580. test ! -s conftest.err
  11581. } && test -s conftest.$ac_objext; then
  11582. gt_cv_inttypes_pri_broken=no
  11583. else
  11584. $as_echo "$as_me: failed program was:" >&5
  11585. sed 's/^/| /' conftest.$ac_ext >&5
  11586. gt_cv_inttypes_pri_broken=yes
  11587. fi
  11588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11589. fi
  11590. { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  11591. $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
  11592. fi
  11593. if test "$gt_cv_inttypes_pri_broken" = yes; then
  11594. cat >>confdefs.h <<_ACEOF
  11595. #define PRI_MACROS_BROKEN 1
  11596. _ACEOF
  11597. PRI_MACROS_BROKEN=1
  11598. else
  11599. PRI_MACROS_BROKEN=0
  11600. fi
  11601. # Check whether --enable-threads was given.
  11602. if test "${enable_threads+set}" = set; then
  11603. enableval=$enable_threads; gl_use_threads=$enableval
  11604. else
  11605. case "$host_os" in
  11606. osf*) gl_use_threads=no ;;
  11607. *) gl_use_threads=yes ;;
  11608. esac
  11609. fi
  11610. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  11611. # For using <pthread.h>:
  11612. case "$host_os" in
  11613. osf*)
  11614. # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
  11615. # groks <pthread.h>. cc also understands the flag -pthread, but
  11616. # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
  11617. # 2. putting a flag into CPPFLAGS that has an effect on the linker
  11618. # causes the AC_TRY_LINK test below to succeed unexpectedly,
  11619. # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
  11620. CPPFLAGS="$CPPFLAGS -D_REENTRANT"
  11621. ;;
  11622. esac
  11623. # Some systems optimize for single-threaded programs by default, and
  11624. # need special flags to disable these optimizations. For example, the
  11625. # definition of 'errno' in <errno.h>.
  11626. case "$host_os" in
  11627. aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
  11628. solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
  11629. esac
  11630. fi
  11631. if test "X$prefix" = "XNONE"; then
  11632. acl_final_prefix="$ac_default_prefix"
  11633. else
  11634. acl_final_prefix="$prefix"
  11635. fi
  11636. if test "X$exec_prefix" = "XNONE"; then
  11637. acl_final_exec_prefix='${prefix}'
  11638. else
  11639. acl_final_exec_prefix="$exec_prefix"
  11640. fi
  11641. acl_save_prefix="$prefix"
  11642. prefix="$acl_final_prefix"
  11643. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  11644. prefix="$acl_save_prefix"
  11645. # Check whether --with-gnu-ld was given.
  11646. if test "${with_gnu_ld+set}" = set; then
  11647. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  11648. else
  11649. with_gnu_ld=no
  11650. fi
  11651. # Prepare PATH_SEPARATOR.
  11652. # The user is always right.
  11653. if test "${PATH_SEPARATOR+set}" != set; then
  11654. echo "#! /bin/sh" >conf$$.sh
  11655. echo "exit 0" >>conf$$.sh
  11656. chmod +x conf$$.sh
  11657. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11658. PATH_SEPARATOR=';'
  11659. else
  11660. PATH_SEPARATOR=:
  11661. fi
  11662. rm -f conf$$.sh
  11663. fi
  11664. ac_prog=ld
  11665. if test "$GCC" = yes; then
  11666. # Check if gcc -print-prog-name=ld gives a path.
  11667. { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  11668. $as_echo_n "checking for ld used by GCC... " >&6; }
  11669. case $host in
  11670. *-*-mingw*)
  11671. # gcc leaves a trailing carriage return which upsets mingw
  11672. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  11673. *)
  11674. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  11675. esac
  11676. case $ac_prog in
  11677. # Accept absolute paths.
  11678. [\\/]* | [A-Za-z]:[\\/]*)
  11679. re_direlt='/[^/][^/]*/\.\./'
  11680. # Canonicalize the path of ld
  11681. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  11682. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  11683. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  11684. done
  11685. test -z "$LD" && LD="$ac_prog"
  11686. ;;
  11687. "")
  11688. # If it fails, then pretend we aren't using GCC.
  11689. ac_prog=ld
  11690. ;;
  11691. *)
  11692. # If it is relative, then search for the first ld in PATH.
  11693. with_gnu_ld=unknown
  11694. ;;
  11695. esac
  11696. elif test "$with_gnu_ld" = yes; then
  11697. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  11698. $as_echo_n "checking for GNU ld... " >&6; }
  11699. else
  11700. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  11701. $as_echo_n "checking for non-GNU ld... " >&6; }
  11702. fi
  11703. if test "${acl_cv_path_LD+set}" = set; then
  11704. $as_echo_n "(cached) " >&6
  11705. else
  11706. if test -z "$LD"; then
  11707. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  11708. for ac_dir in $PATH; do
  11709. test -z "$ac_dir" && ac_dir=.
  11710. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  11711. acl_cv_path_LD="$ac_dir/$ac_prog"
  11712. # Check to see if the program is GNU ld. I'd rather use --version,
  11713. # but apparently some GNU ld's only accept -v.
  11714. # Break only if it was the GNU/non-GNU ld that we prefer.
  11715. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  11716. *GNU* | *'with BFD'*)
  11717. test "$with_gnu_ld" != no && break ;;
  11718. *)
  11719. test "$with_gnu_ld" != yes && break ;;
  11720. esac
  11721. fi
  11722. done
  11723. IFS="$ac_save_ifs"
  11724. else
  11725. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  11726. fi
  11727. fi
  11728. LD="$acl_cv_path_LD"
  11729. if test -n "$LD"; then
  11730. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  11731. $as_echo "$LD" >&6; }
  11732. else
  11733. { $as_echo "$as_me:$LINENO: result: no" >&5
  11734. $as_echo "no" >&6; }
  11735. fi
  11736. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  11737. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  11738. { (exit 1); exit 1; }; }
  11739. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  11740. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  11741. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  11742. $as_echo_n "(cached) " >&6
  11743. else
  11744. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  11745. case `$LD -v 2>&1 </dev/null` in
  11746. *GNU* | *'with BFD'*)
  11747. acl_cv_prog_gnu_ld=yes ;;
  11748. *)
  11749. acl_cv_prog_gnu_ld=no ;;
  11750. esac
  11751. fi
  11752. { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  11753. $as_echo "$acl_cv_prog_gnu_ld" >&6; }
  11754. with_gnu_ld=$acl_cv_prog_gnu_ld
  11755. { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  11756. $as_echo_n "checking for shared library run path origin... " >&6; }
  11757. if test "${acl_cv_rpath+set}" = set; then
  11758. $as_echo_n "(cached) " >&6
  11759. else
  11760. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  11761. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  11762. . ./conftest.sh
  11763. rm -f ./conftest.sh
  11764. acl_cv_rpath=done
  11765. fi
  11766. { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  11767. $as_echo "$acl_cv_rpath" >&6; }
  11768. wl="$acl_cv_wl"
  11769. acl_libext="$acl_cv_libext"
  11770. acl_shlibext="$acl_cv_shlibext"
  11771. acl_libname_spec="$acl_cv_libname_spec"
  11772. acl_library_names_spec="$acl_cv_library_names_spec"
  11773. acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  11774. acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  11775. acl_hardcode_direct="$acl_cv_hardcode_direct"
  11776. acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
  11777. # Check whether --enable-rpath was given.
  11778. if test "${enable_rpath+set}" = set; then
  11779. enableval=$enable_rpath; :
  11780. else
  11781. enable_rpath=yes
  11782. fi
  11783. acl_libdirstem=lib
  11784. searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
  11785. if test -n "$searchpath"; then
  11786. acl_save_IFS="${IFS= }"; IFS=":"
  11787. for searchdir in $searchpath; do
  11788. if test -d "$searchdir"; then
  11789. case "$searchdir" in
  11790. */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
  11791. *) searchdir=`cd "$searchdir" && pwd`
  11792. case "$searchdir" in
  11793. */lib64 ) acl_libdirstem=lib64 ;;
  11794. esac ;;
  11795. esac
  11796. fi
  11797. done
  11798. IFS="$acl_save_IFS"
  11799. fi
  11800. gl_threads_api=none
  11801. LIBTHREAD=
  11802. LTLIBTHREAD=
  11803. LIBMULTITHREAD=
  11804. LTLIBMULTITHREAD=
  11805. if test "$gl_use_threads" != no; then
  11806. { $as_echo "$as_me:$LINENO: checking whether imported symbols can be declared weak" >&5
  11807. $as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
  11808. gl_have_weak=no
  11809. cat >conftest.$ac_ext <<_ACEOF
  11810. /* confdefs.h. */
  11811. _ACEOF
  11812. cat confdefs.h >>conftest.$ac_ext
  11813. cat >>conftest.$ac_ext <<_ACEOF
  11814. /* end confdefs.h. */
  11815. extern void xyzzy ();
  11816. #pragma weak xyzzy
  11817. int
  11818. main ()
  11819. {
  11820. xyzzy();
  11821. ;
  11822. return 0;
  11823. }
  11824. _ACEOF
  11825. rm -f conftest.$ac_objext conftest$ac_exeext
  11826. if { (ac_try="$ac_link"
  11827. case "(($ac_try" in
  11828. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11829. *) ac_try_echo=$ac_try;;
  11830. esac
  11831. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11832. $as_echo "$ac_try_echo") >&5
  11833. (eval "$ac_link") 2>conftest.er1
  11834. ac_status=$?
  11835. grep -v '^ *+' conftest.er1 >conftest.err
  11836. rm -f conftest.er1
  11837. cat conftest.err >&5
  11838. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11839. (exit $ac_status); } && {
  11840. test -z "$ac_cxx_werror_flag" ||
  11841. test ! -s conftest.err
  11842. } && test -s conftest$ac_exeext && {
  11843. test "$cross_compiling" = yes ||
  11844. $as_test_x conftest$ac_exeext
  11845. }; then
  11846. gl_have_weak=yes
  11847. else
  11848. $as_echo "$as_me: failed program was:" >&5
  11849. sed 's/^/| /' conftest.$ac_ext >&5
  11850. fi
  11851. rm -rf conftest.dSYM
  11852. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11853. conftest$ac_exeext conftest.$ac_ext
  11854. { $as_echo "$as_me:$LINENO: result: $gl_have_weak" >&5
  11855. $as_echo "$gl_have_weak" >&6; }
  11856. if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
  11857. # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
  11858. # it groks <pthread.h>. It's added above, in gl_LOCK_EARLY_BODY.
  11859. if test "${ac_cv_header_pthread_h+set}" = set; then
  11860. { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
  11861. $as_echo_n "checking for pthread.h... " >&6; }
  11862. if test "${ac_cv_header_pthread_h+set}" = set; then
  11863. $as_echo_n "(cached) " >&6
  11864. fi
  11865. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11866. $as_echo "$ac_cv_header_pthread_h" >&6; }
  11867. else
  11868. # Is the header compilable?
  11869. { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
  11870. $as_echo_n "checking pthread.h usability... " >&6; }
  11871. cat >conftest.$ac_ext <<_ACEOF
  11872. /* confdefs.h. */
  11873. _ACEOF
  11874. cat confdefs.h >>conftest.$ac_ext
  11875. cat >>conftest.$ac_ext <<_ACEOF
  11876. /* end confdefs.h. */
  11877. $ac_includes_default
  11878. #include <pthread.h>
  11879. _ACEOF
  11880. rm -f conftest.$ac_objext
  11881. if { (ac_try="$ac_compile"
  11882. case "(($ac_try" in
  11883. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11884. *) ac_try_echo=$ac_try;;
  11885. esac
  11886. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11887. $as_echo "$ac_try_echo") >&5
  11888. (eval "$ac_compile") 2>conftest.er1
  11889. ac_status=$?
  11890. grep -v '^ *+' conftest.er1 >conftest.err
  11891. rm -f conftest.er1
  11892. cat conftest.err >&5
  11893. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11894. (exit $ac_status); } && {
  11895. test -z "$ac_cxx_werror_flag" ||
  11896. test ! -s conftest.err
  11897. } && test -s conftest.$ac_objext; then
  11898. ac_header_compiler=yes
  11899. else
  11900. $as_echo "$as_me: failed program was:" >&5
  11901. sed 's/^/| /' conftest.$ac_ext >&5
  11902. ac_header_compiler=no
  11903. fi
  11904. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11905. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  11906. $as_echo "$ac_header_compiler" >&6; }
  11907. # Is the header present?
  11908. { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
  11909. $as_echo_n "checking pthread.h presence... " >&6; }
  11910. cat >conftest.$ac_ext <<_ACEOF
  11911. /* confdefs.h. */
  11912. _ACEOF
  11913. cat confdefs.h >>conftest.$ac_ext
  11914. cat >>conftest.$ac_ext <<_ACEOF
  11915. /* end confdefs.h. */
  11916. #include <pthread.h>
  11917. _ACEOF
  11918. if { (ac_try="$ac_cpp conftest.$ac_ext"
  11919. case "(($ac_try" in
  11920. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11921. *) ac_try_echo=$ac_try;;
  11922. esac
  11923. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11924. $as_echo "$ac_try_echo") >&5
  11925. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  11926. ac_status=$?
  11927. grep -v '^ *+' conftest.er1 >conftest.err
  11928. rm -f conftest.er1
  11929. cat conftest.err >&5
  11930. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11931. (exit $ac_status); } >/dev/null && {
  11932. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  11933. test ! -s conftest.err
  11934. }; then
  11935. ac_header_preproc=yes
  11936. else
  11937. $as_echo "$as_me: failed program was:" >&5
  11938. sed 's/^/| /' conftest.$ac_ext >&5
  11939. ac_header_preproc=no
  11940. fi
  11941. rm -f conftest.err conftest.$ac_ext
  11942. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  11943. $as_echo "$ac_header_preproc" >&6; }
  11944. # So? What about this header?
  11945. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  11946. yes:no: )
  11947. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
  11948. $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  11949. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
  11950. $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
  11951. ac_header_preproc=yes
  11952. ;;
  11953. no:yes:* )
  11954. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
  11955. $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
  11956. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
  11957. $as_echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
  11958. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
  11959. $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
  11960. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
  11961. $as_echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
  11962. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
  11963. $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
  11964. { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
  11965. $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
  11966. ( cat <<\_ASBOX
  11967. ## ----------------------------------------------- ##
  11968. ## Report this to t-tujikawa@users.sourceforge.net ##
  11969. ## ----------------------------------------------- ##
  11970. _ASBOX
  11971. ) | sed "s/^/$as_me: WARNING: /" >&2
  11972. ;;
  11973. esac
  11974. { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
  11975. $as_echo_n "checking for pthread.h... " >&6; }
  11976. if test "${ac_cv_header_pthread_h+set}" = set; then
  11977. $as_echo_n "(cached) " >&6
  11978. else
  11979. ac_cv_header_pthread_h=$ac_header_preproc
  11980. fi
  11981. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
  11982. $as_echo "$ac_cv_header_pthread_h" >&6; }
  11983. fi
  11984. if test "x$ac_cv_header_pthread_h" = x""yes; then
  11985. gl_have_pthread_h=yes
  11986. else
  11987. gl_have_pthread_h=no
  11988. fi
  11989. if test "$gl_have_pthread_h" = yes; then
  11990. # Other possible tests:
  11991. # -lpthreads (FSU threads, PCthreads)
  11992. # -lgthreads
  11993. gl_have_pthread=
  11994. # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
  11995. # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
  11996. # the second one only in libpthread, and lock.c needs it.
  11997. cat >conftest.$ac_ext <<_ACEOF
  11998. /* confdefs.h. */
  11999. _ACEOF
  12000. cat confdefs.h >>conftest.$ac_ext
  12001. cat >>conftest.$ac_ext <<_ACEOF
  12002. /* end confdefs.h. */
  12003. #include <pthread.h>
  12004. int
  12005. main ()
  12006. {
  12007. pthread_mutex_lock((pthread_mutex_t*)0);
  12008. pthread_mutexattr_init((pthread_mutexattr_t*)0);
  12009. ;
  12010. return 0;
  12011. }
  12012. _ACEOF
  12013. rm -f conftest.$ac_objext conftest$ac_exeext
  12014. if { (ac_try="$ac_link"
  12015. case "(($ac_try" in
  12016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12017. *) ac_try_echo=$ac_try;;
  12018. esac
  12019. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12020. $as_echo "$ac_try_echo") >&5
  12021. (eval "$ac_link") 2>conftest.er1
  12022. ac_status=$?
  12023. grep -v '^ *+' conftest.er1 >conftest.err
  12024. rm -f conftest.er1
  12025. cat conftest.err >&5
  12026. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12027. (exit $ac_status); } && {
  12028. test -z "$ac_cxx_werror_flag" ||
  12029. test ! -s conftest.err
  12030. } && test -s conftest$ac_exeext && {
  12031. test "$cross_compiling" = yes ||
  12032. $as_test_x conftest$ac_exeext
  12033. }; then
  12034. gl_have_pthread=yes
  12035. else
  12036. $as_echo "$as_me: failed program was:" >&5
  12037. sed 's/^/| /' conftest.$ac_ext >&5
  12038. fi
  12039. rm -rf conftest.dSYM
  12040. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12041. conftest$ac_exeext conftest.$ac_ext
  12042. # Test for libpthread by looking for pthread_kill. (Not pthread_self,
  12043. # since it is defined as a macro on OSF/1.)
  12044. if test -n "$gl_have_pthread"; then
  12045. # The program links fine without libpthread. But it may actually
  12046. # need to link with libpthread in order to create multiple threads.
  12047. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  12048. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  12049. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  12050. $as_echo_n "(cached) " >&6
  12051. else
  12052. ac_check_lib_save_LIBS=$LIBS
  12053. LIBS="-lpthread $LIBS"
  12054. cat >conftest.$ac_ext <<_ACEOF
  12055. /* confdefs.h. */
  12056. _ACEOF
  12057. cat confdefs.h >>conftest.$ac_ext
  12058. cat >>conftest.$ac_ext <<_ACEOF
  12059. /* end confdefs.h. */
  12060. /* Override any GCC internal prototype to avoid an error.
  12061. Use char because int might match the return type of a GCC
  12062. builtin and then its argument prototype would still apply. */
  12063. #ifdef __cplusplus
  12064. extern "C"
  12065. #endif
  12066. char pthread_kill ();
  12067. int
  12068. main ()
  12069. {
  12070. return pthread_kill ();
  12071. ;
  12072. return 0;
  12073. }
  12074. _ACEOF
  12075. rm -f conftest.$ac_objext conftest$ac_exeext
  12076. if { (ac_try="$ac_link"
  12077. case "(($ac_try" in
  12078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12079. *) ac_try_echo=$ac_try;;
  12080. esac
  12081. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12082. $as_echo "$ac_try_echo") >&5
  12083. (eval "$ac_link") 2>conftest.er1
  12084. ac_status=$?
  12085. grep -v '^ *+' conftest.er1 >conftest.err
  12086. rm -f conftest.er1
  12087. cat conftest.err >&5
  12088. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12089. (exit $ac_status); } && {
  12090. test -z "$ac_cxx_werror_flag" ||
  12091. test ! -s conftest.err
  12092. } && test -s conftest$ac_exeext && {
  12093. test "$cross_compiling" = yes ||
  12094. $as_test_x conftest$ac_exeext
  12095. }; then
  12096. ac_cv_lib_pthread_pthread_kill=yes
  12097. else
  12098. $as_echo "$as_me: failed program was:" >&5
  12099. sed 's/^/| /' conftest.$ac_ext >&5
  12100. ac_cv_lib_pthread_pthread_kill=no
  12101. fi
  12102. rm -rf conftest.dSYM
  12103. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12104. conftest$ac_exeext conftest.$ac_ext
  12105. LIBS=$ac_check_lib_save_LIBS
  12106. fi
  12107. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  12108. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  12109. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
  12110. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  12111. # On Solaris and HP-UX, most pthread functions exist also in libc.
  12112. # Therefore pthread_in_use() needs to actually try to create a
  12113. # thread: pthread_create from libc will fail, whereas
  12114. # pthread_create will actually create a thread.
  12115. case "$host_os" in
  12116. solaris* | hpux*)
  12117. cat >>confdefs.h <<\_ACEOF
  12118. #define PTHREAD_IN_USE_DETECTION_HARD 1
  12119. _ACEOF
  12120. esac
  12121. fi
  12122. else
  12123. # Some library is needed. Try libpthread and libc_r.
  12124. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lpthread" >&5
  12125. $as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
  12126. if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then
  12127. $as_echo_n "(cached) " >&6
  12128. else
  12129. ac_check_lib_save_LIBS=$LIBS
  12130. LIBS="-lpthread $LIBS"
  12131. cat >conftest.$ac_ext <<_ACEOF
  12132. /* confdefs.h. */
  12133. _ACEOF
  12134. cat confdefs.h >>conftest.$ac_ext
  12135. cat >>conftest.$ac_ext <<_ACEOF
  12136. /* end confdefs.h. */
  12137. /* Override any GCC internal prototype to avoid an error.
  12138. Use char because int might match the return type of a GCC
  12139. builtin and then its argument prototype would still apply. */
  12140. #ifdef __cplusplus
  12141. extern "C"
  12142. #endif
  12143. char pthread_kill ();
  12144. int
  12145. main ()
  12146. {
  12147. return pthread_kill ();
  12148. ;
  12149. return 0;
  12150. }
  12151. _ACEOF
  12152. rm -f conftest.$ac_objext conftest$ac_exeext
  12153. if { (ac_try="$ac_link"
  12154. case "(($ac_try" in
  12155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12156. *) ac_try_echo=$ac_try;;
  12157. esac
  12158. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12159. $as_echo "$ac_try_echo") >&5
  12160. (eval "$ac_link") 2>conftest.er1
  12161. ac_status=$?
  12162. grep -v '^ *+' conftest.er1 >conftest.err
  12163. rm -f conftest.er1
  12164. cat conftest.err >&5
  12165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12166. (exit $ac_status); } && {
  12167. test -z "$ac_cxx_werror_flag" ||
  12168. test ! -s conftest.err
  12169. } && test -s conftest$ac_exeext && {
  12170. test "$cross_compiling" = yes ||
  12171. $as_test_x conftest$ac_exeext
  12172. }; then
  12173. ac_cv_lib_pthread_pthread_kill=yes
  12174. else
  12175. $as_echo "$as_me: failed program was:" >&5
  12176. sed 's/^/| /' conftest.$ac_ext >&5
  12177. ac_cv_lib_pthread_pthread_kill=no
  12178. fi
  12179. rm -rf conftest.dSYM
  12180. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12181. conftest$ac_exeext conftest.$ac_ext
  12182. LIBS=$ac_check_lib_save_LIBS
  12183. fi
  12184. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_kill" >&5
  12185. $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
  12186. if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then
  12187. gl_have_pthread=yes
  12188. LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
  12189. LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
  12190. fi
  12191. if test -z "$gl_have_pthread"; then
  12192. # For FreeBSD 4.
  12193. { $as_echo "$as_me:$LINENO: checking for pthread_kill in -lc_r" >&5
  12194. $as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
  12195. if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then
  12196. $as_echo_n "(cached) " >&6
  12197. else
  12198. ac_check_lib_save_LIBS=$LIBS
  12199. LIBS="-lc_r $LIBS"
  12200. cat >conftest.$ac_ext <<_ACEOF
  12201. /* confdefs.h. */
  12202. _ACEOF
  12203. cat confdefs.h >>conftest.$ac_ext
  12204. cat >>conftest.$ac_ext <<_ACEOF
  12205. /* end confdefs.h. */
  12206. /* Override any GCC internal prototype to avoid an error.
  12207. Use char because int might match the return type of a GCC
  12208. builtin and then its argument prototype would still apply. */
  12209. #ifdef __cplusplus
  12210. extern "C"
  12211. #endif
  12212. char pthread_kill ();
  12213. int
  12214. main ()
  12215. {
  12216. return pthread_kill ();
  12217. ;
  12218. return 0;
  12219. }
  12220. _ACEOF
  12221. rm -f conftest.$ac_objext conftest$ac_exeext
  12222. if { (ac_try="$ac_link"
  12223. case "(($ac_try" in
  12224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12225. *) ac_try_echo=$ac_try;;
  12226. esac
  12227. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12228. $as_echo "$ac_try_echo") >&5
  12229. (eval "$ac_link") 2>conftest.er1
  12230. ac_status=$?
  12231. grep -v '^ *+' conftest.er1 >conftest.err
  12232. rm -f conftest.er1
  12233. cat conftest.err >&5
  12234. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12235. (exit $ac_status); } && {
  12236. test -z "$ac_cxx_werror_flag" ||
  12237. test ! -s conftest.err
  12238. } && test -s conftest$ac_exeext && {
  12239. test "$cross_compiling" = yes ||
  12240. $as_test_x conftest$ac_exeext
  12241. }; then
  12242. ac_cv_lib_c_r_pthread_kill=yes
  12243. else
  12244. $as_echo "$as_me: failed program was:" >&5
  12245. sed 's/^/| /' conftest.$ac_ext >&5
  12246. ac_cv_lib_c_r_pthread_kill=no
  12247. fi
  12248. rm -rf conftest.dSYM
  12249. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12250. conftest$ac_exeext conftest.$ac_ext
  12251. LIBS=$ac_check_lib_save_LIBS
  12252. fi
  12253. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_kill" >&5
  12254. $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
  12255. if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then
  12256. gl_have_pthread=yes
  12257. LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
  12258. LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
  12259. fi
  12260. fi
  12261. fi
  12262. if test -n "$gl_have_pthread"; then
  12263. gl_threads_api=posix
  12264. cat >>confdefs.h <<\_ACEOF
  12265. #define USE_POSIX_THREADS 1
  12266. _ACEOF
  12267. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12268. if test $gl_have_weak = yes; then
  12269. cat >>confdefs.h <<\_ACEOF
  12270. #define USE_POSIX_THREADS_WEAK 1
  12271. _ACEOF
  12272. LIBTHREAD=
  12273. LTLIBTHREAD=
  12274. fi
  12275. fi
  12276. # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the
  12277. # pthread_rwlock_* functions.
  12278. { $as_echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
  12279. $as_echo_n "checking for pthread_rwlock_t... " >&6; }
  12280. if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
  12281. $as_echo_n "(cached) " >&6
  12282. else
  12283. ac_cv_type_pthread_rwlock_t=no
  12284. cat >conftest.$ac_ext <<_ACEOF
  12285. /* confdefs.h. */
  12286. _ACEOF
  12287. cat confdefs.h >>conftest.$ac_ext
  12288. cat >>conftest.$ac_ext <<_ACEOF
  12289. /* end confdefs.h. */
  12290. #include <pthread.h>
  12291. int
  12292. main ()
  12293. {
  12294. if (sizeof (pthread_rwlock_t))
  12295. return 0;
  12296. ;
  12297. return 0;
  12298. }
  12299. _ACEOF
  12300. rm -f conftest.$ac_objext
  12301. if { (ac_try="$ac_compile"
  12302. case "(($ac_try" in
  12303. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12304. *) ac_try_echo=$ac_try;;
  12305. esac
  12306. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12307. $as_echo "$ac_try_echo") >&5
  12308. (eval "$ac_compile") 2>conftest.er1
  12309. ac_status=$?
  12310. grep -v '^ *+' conftest.er1 >conftest.err
  12311. rm -f conftest.er1
  12312. cat conftest.err >&5
  12313. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12314. (exit $ac_status); } && {
  12315. test -z "$ac_cxx_werror_flag" ||
  12316. test ! -s conftest.err
  12317. } && test -s conftest.$ac_objext; then
  12318. cat >conftest.$ac_ext <<_ACEOF
  12319. /* confdefs.h. */
  12320. _ACEOF
  12321. cat confdefs.h >>conftest.$ac_ext
  12322. cat >>conftest.$ac_ext <<_ACEOF
  12323. /* end confdefs.h. */
  12324. #include <pthread.h>
  12325. int
  12326. main ()
  12327. {
  12328. if (sizeof ((pthread_rwlock_t)))
  12329. return 0;
  12330. ;
  12331. return 0;
  12332. }
  12333. _ACEOF
  12334. rm -f conftest.$ac_objext
  12335. if { (ac_try="$ac_compile"
  12336. case "(($ac_try" in
  12337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12338. *) ac_try_echo=$ac_try;;
  12339. esac
  12340. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12341. $as_echo "$ac_try_echo") >&5
  12342. (eval "$ac_compile") 2>conftest.er1
  12343. ac_status=$?
  12344. grep -v '^ *+' conftest.er1 >conftest.err
  12345. rm -f conftest.er1
  12346. cat conftest.err >&5
  12347. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12348. (exit $ac_status); } && {
  12349. test -z "$ac_cxx_werror_flag" ||
  12350. test ! -s conftest.err
  12351. } && test -s conftest.$ac_objext; then
  12352. :
  12353. else
  12354. $as_echo "$as_me: failed program was:" >&5
  12355. sed 's/^/| /' conftest.$ac_ext >&5
  12356. ac_cv_type_pthread_rwlock_t=yes
  12357. fi
  12358. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12359. else
  12360. $as_echo "$as_me: failed program was:" >&5
  12361. sed 's/^/| /' conftest.$ac_ext >&5
  12362. fi
  12363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12364. fi
  12365. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
  12366. $as_echo "$ac_cv_type_pthread_rwlock_t" >&6; }
  12367. if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then
  12368. cat >>confdefs.h <<\_ACEOF
  12369. #define HAVE_PTHREAD_RWLOCK 1
  12370. _ACEOF
  12371. fi
  12372. # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
  12373. cat >conftest.$ac_ext <<_ACEOF
  12374. /* confdefs.h. */
  12375. _ACEOF
  12376. cat confdefs.h >>conftest.$ac_ext
  12377. cat >>conftest.$ac_ext <<_ACEOF
  12378. /* end confdefs.h. */
  12379. #include <pthread.h>
  12380. int
  12381. main ()
  12382. {
  12383. #if __FreeBSD__ == 4
  12384. error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
  12385. #else
  12386. int x = (int)PTHREAD_MUTEX_RECURSIVE;
  12387. return !x;
  12388. #endif
  12389. ;
  12390. return 0;
  12391. }
  12392. _ACEOF
  12393. rm -f conftest.$ac_objext
  12394. if { (ac_try="$ac_compile"
  12395. case "(($ac_try" in
  12396. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12397. *) ac_try_echo=$ac_try;;
  12398. esac
  12399. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12400. $as_echo "$ac_try_echo") >&5
  12401. (eval "$ac_compile") 2>conftest.er1
  12402. ac_status=$?
  12403. grep -v '^ *+' conftest.er1 >conftest.err
  12404. rm -f conftest.er1
  12405. cat conftest.err >&5
  12406. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12407. (exit $ac_status); } && {
  12408. test -z "$ac_cxx_werror_flag" ||
  12409. test ! -s conftest.err
  12410. } && test -s conftest.$ac_objext; then
  12411. cat >>confdefs.h <<\_ACEOF
  12412. #define HAVE_PTHREAD_MUTEX_RECURSIVE 1
  12413. _ACEOF
  12414. else
  12415. $as_echo "$as_me: failed program was:" >&5
  12416. sed 's/^/| /' conftest.$ac_ext >&5
  12417. fi
  12418. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12419. fi
  12420. fi
  12421. fi
  12422. if test -z "$gl_have_pthread"; then
  12423. if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
  12424. gl_have_solaristhread=
  12425. gl_save_LIBS="$LIBS"
  12426. LIBS="$LIBS -lthread"
  12427. cat >conftest.$ac_ext <<_ACEOF
  12428. /* confdefs.h. */
  12429. _ACEOF
  12430. cat confdefs.h >>conftest.$ac_ext
  12431. cat >>conftest.$ac_ext <<_ACEOF
  12432. /* end confdefs.h. */
  12433. #include <thread.h>
  12434. #include <synch.h>
  12435. int
  12436. main ()
  12437. {
  12438. thr_self();
  12439. ;
  12440. return 0;
  12441. }
  12442. _ACEOF
  12443. rm -f conftest.$ac_objext conftest$ac_exeext
  12444. if { (ac_try="$ac_link"
  12445. case "(($ac_try" in
  12446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12447. *) ac_try_echo=$ac_try;;
  12448. esac
  12449. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12450. $as_echo "$ac_try_echo") >&5
  12451. (eval "$ac_link") 2>conftest.er1
  12452. ac_status=$?
  12453. grep -v '^ *+' conftest.er1 >conftest.err
  12454. rm -f conftest.er1
  12455. cat conftest.err >&5
  12456. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12457. (exit $ac_status); } && {
  12458. test -z "$ac_cxx_werror_flag" ||
  12459. test ! -s conftest.err
  12460. } && test -s conftest$ac_exeext && {
  12461. test "$cross_compiling" = yes ||
  12462. $as_test_x conftest$ac_exeext
  12463. }; then
  12464. gl_have_solaristhread=yes
  12465. else
  12466. $as_echo "$as_me: failed program was:" >&5
  12467. sed 's/^/| /' conftest.$ac_ext >&5
  12468. fi
  12469. rm -rf conftest.dSYM
  12470. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12471. conftest$ac_exeext conftest.$ac_ext
  12472. LIBS="$gl_save_LIBS"
  12473. if test -n "$gl_have_solaristhread"; then
  12474. gl_threads_api=solaris
  12475. LIBTHREAD=-lthread
  12476. LTLIBTHREAD=-lthread
  12477. LIBMULTITHREAD="$LIBTHREAD"
  12478. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12479. cat >>confdefs.h <<\_ACEOF
  12480. #define USE_SOLARIS_THREADS 1
  12481. _ACEOF
  12482. if test $gl_have_weak = yes; then
  12483. cat >>confdefs.h <<\_ACEOF
  12484. #define USE_SOLARIS_THREADS_WEAK 1
  12485. _ACEOF
  12486. LIBTHREAD=
  12487. LTLIBTHREAD=
  12488. fi
  12489. fi
  12490. fi
  12491. fi
  12492. if test "$gl_use_threads" = pth; then
  12493. gl_save_CPPFLAGS="$CPPFLAGS"
  12494. { $as_echo "$as_me:$LINENO: checking how to link with libpth" >&5
  12495. $as_echo_n "checking how to link with libpth... " >&6; }
  12496. if test "${ac_cv_libpth_libs+set}" = set; then
  12497. $as_echo_n "(cached) " >&6
  12498. else
  12499. use_additional=yes
  12500. acl_save_prefix="$prefix"
  12501. prefix="$acl_final_prefix"
  12502. acl_save_exec_prefix="$exec_prefix"
  12503. exec_prefix="$acl_final_exec_prefix"
  12504. eval additional_includedir=\"$includedir\"
  12505. eval additional_libdir=\"$libdir\"
  12506. exec_prefix="$acl_save_exec_prefix"
  12507. prefix="$acl_save_prefix"
  12508. # Check whether --with-libpth-prefix was given.
  12509. if test "${with_libpth_prefix+set}" = set; then
  12510. withval=$with_libpth_prefix;
  12511. if test "X$withval" = "Xno"; then
  12512. use_additional=no
  12513. else
  12514. if test "X$withval" = "X"; then
  12515. acl_save_prefix="$prefix"
  12516. prefix="$acl_final_prefix"
  12517. acl_save_exec_prefix="$exec_prefix"
  12518. exec_prefix="$acl_final_exec_prefix"
  12519. eval additional_includedir=\"$includedir\"
  12520. eval additional_libdir=\"$libdir\"
  12521. exec_prefix="$acl_save_exec_prefix"
  12522. prefix="$acl_save_prefix"
  12523. else
  12524. additional_includedir="$withval/include"
  12525. additional_libdir="$withval/$acl_libdirstem"
  12526. fi
  12527. fi
  12528. fi
  12529. LIBPTH=
  12530. LTLIBPTH=
  12531. INCPTH=
  12532. LIBPTH_PREFIX=
  12533. rpathdirs=
  12534. ltrpathdirs=
  12535. names_already_handled=
  12536. names_next_round='pth '
  12537. while test -n "$names_next_round"; do
  12538. names_this_round="$names_next_round"
  12539. names_next_round=
  12540. for name in $names_this_round; do
  12541. already_handled=
  12542. for n in $names_already_handled; do
  12543. if test "$n" = "$name"; then
  12544. already_handled=yes
  12545. break
  12546. fi
  12547. done
  12548. if test -z "$already_handled"; then
  12549. names_already_handled="$names_already_handled $name"
  12550. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  12551. eval value=\"\$HAVE_LIB$uppername\"
  12552. if test -n "$value"; then
  12553. if test "$value" = yes; then
  12554. eval value=\"\$LIB$uppername\"
  12555. test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
  12556. eval value=\"\$LTLIB$uppername\"
  12557. test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
  12558. else
  12559. :
  12560. fi
  12561. else
  12562. found_dir=
  12563. found_la=
  12564. found_so=
  12565. found_a=
  12566. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  12567. if test -n "$acl_shlibext"; then
  12568. shrext=".$acl_shlibext" # typically: shrext=.so
  12569. else
  12570. shrext=
  12571. fi
  12572. if test $use_additional = yes; then
  12573. dir="$additional_libdir"
  12574. if test -n "$acl_shlibext"; then
  12575. if test -f "$dir/$libname$shrext"; then
  12576. found_dir="$dir"
  12577. found_so="$dir/$libname$shrext"
  12578. else
  12579. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12580. ver=`(cd "$dir" && \
  12581. for f in "$libname$shrext".*; do echo "$f"; done \
  12582. | sed -e "s,^$libname$shrext\\\\.,," \
  12583. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12584. | sed 1q ) 2>/dev/null`
  12585. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12586. found_dir="$dir"
  12587. found_so="$dir/$libname$shrext.$ver"
  12588. fi
  12589. else
  12590. eval library_names=\"$acl_library_names_spec\"
  12591. for f in $library_names; do
  12592. if test -f "$dir/$f"; then
  12593. found_dir="$dir"
  12594. found_so="$dir/$f"
  12595. break
  12596. fi
  12597. done
  12598. fi
  12599. fi
  12600. fi
  12601. if test "X$found_dir" = "X"; then
  12602. if test -f "$dir/$libname.$acl_libext"; then
  12603. found_dir="$dir"
  12604. found_a="$dir/$libname.$acl_libext"
  12605. fi
  12606. fi
  12607. if test "X$found_dir" != "X"; then
  12608. if test -f "$dir/$libname.la"; then
  12609. found_la="$dir/$libname.la"
  12610. fi
  12611. fi
  12612. fi
  12613. if test "X$found_dir" = "X"; then
  12614. for x in $LDFLAGS $LTLIBPTH; do
  12615. acl_save_prefix="$prefix"
  12616. prefix="$acl_final_prefix"
  12617. acl_save_exec_prefix="$exec_prefix"
  12618. exec_prefix="$acl_final_exec_prefix"
  12619. eval x=\"$x\"
  12620. exec_prefix="$acl_save_exec_prefix"
  12621. prefix="$acl_save_prefix"
  12622. case "$x" in
  12623. -L*)
  12624. dir=`echo "X$x" | sed -e 's/^X-L//'`
  12625. if test -n "$acl_shlibext"; then
  12626. if test -f "$dir/$libname$shrext"; then
  12627. found_dir="$dir"
  12628. found_so="$dir/$libname$shrext"
  12629. else
  12630. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  12631. ver=`(cd "$dir" && \
  12632. for f in "$libname$shrext".*; do echo "$f"; done \
  12633. | sed -e "s,^$libname$shrext\\\\.,," \
  12634. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  12635. | sed 1q ) 2>/dev/null`
  12636. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  12637. found_dir="$dir"
  12638. found_so="$dir/$libname$shrext.$ver"
  12639. fi
  12640. else
  12641. eval library_names=\"$acl_library_names_spec\"
  12642. for f in $library_names; do
  12643. if test -f "$dir/$f"; then
  12644. found_dir="$dir"
  12645. found_so="$dir/$f"
  12646. break
  12647. fi
  12648. done
  12649. fi
  12650. fi
  12651. fi
  12652. if test "X$found_dir" = "X"; then
  12653. if test -f "$dir/$libname.$acl_libext"; then
  12654. found_dir="$dir"
  12655. found_a="$dir/$libname.$acl_libext"
  12656. fi
  12657. fi
  12658. if test "X$found_dir" != "X"; then
  12659. if test -f "$dir/$libname.la"; then
  12660. found_la="$dir/$libname.la"
  12661. fi
  12662. fi
  12663. ;;
  12664. esac
  12665. if test "X$found_dir" != "X"; then
  12666. break
  12667. fi
  12668. done
  12669. fi
  12670. if test "X$found_dir" != "X"; then
  12671. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
  12672. if test "X$found_so" != "X"; then
  12673. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  12674. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12675. else
  12676. haveit=
  12677. for x in $ltrpathdirs; do
  12678. if test "X$x" = "X$found_dir"; then
  12679. haveit=yes
  12680. break
  12681. fi
  12682. done
  12683. if test -z "$haveit"; then
  12684. ltrpathdirs="$ltrpathdirs $found_dir"
  12685. fi
  12686. if test "$acl_hardcode_direct" = yes; then
  12687. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12688. else
  12689. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  12690. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12691. haveit=
  12692. for x in $rpathdirs; do
  12693. if test "X$x" = "X$found_dir"; then
  12694. haveit=yes
  12695. break
  12696. fi
  12697. done
  12698. if test -z "$haveit"; then
  12699. rpathdirs="$rpathdirs $found_dir"
  12700. fi
  12701. else
  12702. haveit=
  12703. for x in $LDFLAGS $LIBPTH; do
  12704. acl_save_prefix="$prefix"
  12705. prefix="$acl_final_prefix"
  12706. acl_save_exec_prefix="$exec_prefix"
  12707. exec_prefix="$acl_final_exec_prefix"
  12708. eval x=\"$x\"
  12709. exec_prefix="$acl_save_exec_prefix"
  12710. prefix="$acl_save_prefix"
  12711. if test "X$x" = "X-L$found_dir"; then
  12712. haveit=yes
  12713. break
  12714. fi
  12715. done
  12716. if test -z "$haveit"; then
  12717. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
  12718. fi
  12719. if test "$acl_hardcode_minus_L" != no; then
  12720. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
  12721. else
  12722. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  12723. fi
  12724. fi
  12725. fi
  12726. fi
  12727. else
  12728. if test "X$found_a" != "X"; then
  12729. LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
  12730. else
  12731. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
  12732. fi
  12733. fi
  12734. additional_includedir=
  12735. case "$found_dir" in
  12736. */$acl_libdirstem | */$acl_libdirstem/)
  12737. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  12738. LIBPTH_PREFIX="$basedir"
  12739. additional_includedir="$basedir/include"
  12740. ;;
  12741. esac
  12742. if test "X$additional_includedir" != "X"; then
  12743. if test "X$additional_includedir" != "X/usr/include"; then
  12744. haveit=
  12745. if test "X$additional_includedir" = "X/usr/local/include"; then
  12746. if test -n "$GCC"; then
  12747. case $host_os in
  12748. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12749. esac
  12750. fi
  12751. fi
  12752. if test -z "$haveit"; then
  12753. for x in $CPPFLAGS $INCPTH; do
  12754. acl_save_prefix="$prefix"
  12755. prefix="$acl_final_prefix"
  12756. acl_save_exec_prefix="$exec_prefix"
  12757. exec_prefix="$acl_final_exec_prefix"
  12758. eval x=\"$x\"
  12759. exec_prefix="$acl_save_exec_prefix"
  12760. prefix="$acl_save_prefix"
  12761. if test "X$x" = "X-I$additional_includedir"; then
  12762. haveit=yes
  12763. break
  12764. fi
  12765. done
  12766. if test -z "$haveit"; then
  12767. if test -d "$additional_includedir"; then
  12768. INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
  12769. fi
  12770. fi
  12771. fi
  12772. fi
  12773. fi
  12774. if test -n "$found_la"; then
  12775. save_libdir="$libdir"
  12776. case "$found_la" in
  12777. */* | *\\*) . "$found_la" ;;
  12778. *) . "./$found_la" ;;
  12779. esac
  12780. libdir="$save_libdir"
  12781. for dep in $dependency_libs; do
  12782. case "$dep" in
  12783. -L*)
  12784. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  12785. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  12786. haveit=
  12787. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  12788. if test -n "$GCC"; then
  12789. case $host_os in
  12790. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  12791. esac
  12792. fi
  12793. fi
  12794. if test -z "$haveit"; then
  12795. haveit=
  12796. for x in $LDFLAGS $LIBPTH; do
  12797. acl_save_prefix="$prefix"
  12798. prefix="$acl_final_prefix"
  12799. acl_save_exec_prefix="$exec_prefix"
  12800. exec_prefix="$acl_final_exec_prefix"
  12801. eval x=\"$x\"
  12802. exec_prefix="$acl_save_exec_prefix"
  12803. prefix="$acl_save_prefix"
  12804. if test "X$x" = "X-L$additional_libdir"; then
  12805. haveit=yes
  12806. break
  12807. fi
  12808. done
  12809. if test -z "$haveit"; then
  12810. if test -d "$additional_libdir"; then
  12811. LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
  12812. fi
  12813. fi
  12814. haveit=
  12815. for x in $LDFLAGS $LTLIBPTH; do
  12816. acl_save_prefix="$prefix"
  12817. prefix="$acl_final_prefix"
  12818. acl_save_exec_prefix="$exec_prefix"
  12819. exec_prefix="$acl_final_exec_prefix"
  12820. eval x=\"$x\"
  12821. exec_prefix="$acl_save_exec_prefix"
  12822. prefix="$acl_save_prefix"
  12823. if test "X$x" = "X-L$additional_libdir"; then
  12824. haveit=yes
  12825. break
  12826. fi
  12827. done
  12828. if test -z "$haveit"; then
  12829. if test -d "$additional_libdir"; then
  12830. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
  12831. fi
  12832. fi
  12833. fi
  12834. fi
  12835. ;;
  12836. -R*)
  12837. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  12838. if test "$enable_rpath" != no; then
  12839. haveit=
  12840. for x in $rpathdirs; do
  12841. if test "X$x" = "X$dir"; then
  12842. haveit=yes
  12843. break
  12844. fi
  12845. done
  12846. if test -z "$haveit"; then
  12847. rpathdirs="$rpathdirs $dir"
  12848. fi
  12849. haveit=
  12850. for x in $ltrpathdirs; do
  12851. if test "X$x" = "X$dir"; then
  12852. haveit=yes
  12853. break
  12854. fi
  12855. done
  12856. if test -z "$haveit"; then
  12857. ltrpathdirs="$ltrpathdirs $dir"
  12858. fi
  12859. fi
  12860. ;;
  12861. -l*)
  12862. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  12863. ;;
  12864. *.la)
  12865. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  12866. ;;
  12867. *)
  12868. LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
  12869. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
  12870. ;;
  12871. esac
  12872. done
  12873. fi
  12874. else
  12875. LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
  12876. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
  12877. fi
  12878. fi
  12879. fi
  12880. done
  12881. done
  12882. if test "X$rpathdirs" != "X"; then
  12883. if test -n "$acl_hardcode_libdir_separator"; then
  12884. alldirs=
  12885. for found_dir in $rpathdirs; do
  12886. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  12887. done
  12888. acl_save_libdir="$libdir"
  12889. libdir="$alldirs"
  12890. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12891. libdir="$acl_save_libdir"
  12892. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  12893. else
  12894. for found_dir in $rpathdirs; do
  12895. acl_save_libdir="$libdir"
  12896. libdir="$found_dir"
  12897. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  12898. libdir="$acl_save_libdir"
  12899. LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
  12900. done
  12901. fi
  12902. fi
  12903. if test "X$ltrpathdirs" != "X"; then
  12904. for found_dir in $ltrpathdirs; do
  12905. LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
  12906. done
  12907. fi
  12908. ac_cv_libpth_libs="$LIBPTH"
  12909. ac_cv_libpth_ltlibs="$LTLIBPTH"
  12910. ac_cv_libpth_cppflags="$INCPTH"
  12911. ac_cv_libpth_prefix="$LIBPTH_PREFIX"
  12912. fi
  12913. { $as_echo "$as_me:$LINENO: result: $ac_cv_libpth_libs" >&5
  12914. $as_echo "$ac_cv_libpth_libs" >&6; }
  12915. LIBPTH="$ac_cv_libpth_libs"
  12916. LTLIBPTH="$ac_cv_libpth_ltlibs"
  12917. INCPTH="$ac_cv_libpth_cppflags"
  12918. LIBPTH_PREFIX="$ac_cv_libpth_prefix"
  12919. for element in $INCPTH; do
  12920. haveit=
  12921. for x in $CPPFLAGS; do
  12922. acl_save_prefix="$prefix"
  12923. prefix="$acl_final_prefix"
  12924. acl_save_exec_prefix="$exec_prefix"
  12925. exec_prefix="$acl_final_exec_prefix"
  12926. eval x=\"$x\"
  12927. exec_prefix="$acl_save_exec_prefix"
  12928. prefix="$acl_save_prefix"
  12929. if test "X$x" = "X$element"; then
  12930. haveit=yes
  12931. break
  12932. fi
  12933. done
  12934. if test -z "$haveit"; then
  12935. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  12936. fi
  12937. done
  12938. HAVE_LIBPTH=yes
  12939. gl_have_pth=
  12940. gl_save_LIBS="$LIBS"
  12941. LIBS="$LIBS -lpth"
  12942. cat >conftest.$ac_ext <<_ACEOF
  12943. /* confdefs.h. */
  12944. _ACEOF
  12945. cat confdefs.h >>conftest.$ac_ext
  12946. cat >>conftest.$ac_ext <<_ACEOF
  12947. /* end confdefs.h. */
  12948. #include <pth.h>
  12949. int
  12950. main ()
  12951. {
  12952. pth_self();
  12953. ;
  12954. return 0;
  12955. }
  12956. _ACEOF
  12957. rm -f conftest.$ac_objext conftest$ac_exeext
  12958. if { (ac_try="$ac_link"
  12959. case "(($ac_try" in
  12960. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12961. *) ac_try_echo=$ac_try;;
  12962. esac
  12963. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12964. $as_echo "$ac_try_echo") >&5
  12965. (eval "$ac_link") 2>conftest.er1
  12966. ac_status=$?
  12967. grep -v '^ *+' conftest.er1 >conftest.err
  12968. rm -f conftest.er1
  12969. cat conftest.err >&5
  12970. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12971. (exit $ac_status); } && {
  12972. test -z "$ac_cxx_werror_flag" ||
  12973. test ! -s conftest.err
  12974. } && test -s conftest$ac_exeext && {
  12975. test "$cross_compiling" = yes ||
  12976. $as_test_x conftest$ac_exeext
  12977. }; then
  12978. gl_have_pth=yes
  12979. else
  12980. $as_echo "$as_me: failed program was:" >&5
  12981. sed 's/^/| /' conftest.$ac_ext >&5
  12982. fi
  12983. rm -rf conftest.dSYM
  12984. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12985. conftest$ac_exeext conftest.$ac_ext
  12986. LIBS="$gl_save_LIBS"
  12987. if test -n "$gl_have_pth"; then
  12988. gl_threads_api=pth
  12989. LIBTHREAD="$LIBPTH"
  12990. LTLIBTHREAD="$LTLIBPTH"
  12991. LIBMULTITHREAD="$LIBTHREAD"
  12992. LTLIBMULTITHREAD="$LTLIBTHREAD"
  12993. cat >>confdefs.h <<\_ACEOF
  12994. #define USE_PTH_THREADS 1
  12995. _ACEOF
  12996. if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
  12997. if test $gl_have_weak = yes; then
  12998. cat >>confdefs.h <<\_ACEOF
  12999. #define USE_PTH_THREADS_WEAK 1
  13000. _ACEOF
  13001. LIBTHREAD=
  13002. LTLIBTHREAD=
  13003. fi
  13004. fi
  13005. else
  13006. CPPFLAGS="$gl_save_CPPFLAGS"
  13007. fi
  13008. fi
  13009. if test -z "$gl_have_pthread"; then
  13010. if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then
  13011. if { case "$host_os" in
  13012. mingw*) true;;
  13013. *) false;;
  13014. esac
  13015. }; then
  13016. gl_threads_api=win32
  13017. cat >>confdefs.h <<\_ACEOF
  13018. #define USE_WIN32_THREADS 1
  13019. _ACEOF
  13020. fi
  13021. fi
  13022. fi
  13023. fi
  13024. { $as_echo "$as_me:$LINENO: checking for multithread API to use" >&5
  13025. $as_echo_n "checking for multithread API to use... " >&6; }
  13026. { $as_echo "$as_me:$LINENO: result: $gl_threads_api" >&5
  13027. $as_echo "$gl_threads_api" >&6; }
  13028. use_additional=yes
  13029. acl_save_prefix="$prefix"
  13030. prefix="$acl_final_prefix"
  13031. acl_save_exec_prefix="$exec_prefix"
  13032. exec_prefix="$acl_final_exec_prefix"
  13033. eval additional_includedir=\"$includedir\"
  13034. eval additional_libdir=\"$libdir\"
  13035. exec_prefix="$acl_save_exec_prefix"
  13036. prefix="$acl_save_prefix"
  13037. # Check whether --with-libiconv-prefix was given.
  13038. if test "${with_libiconv_prefix+set}" = set; then
  13039. withval=$with_libiconv_prefix;
  13040. if test "X$withval" = "Xno"; then
  13041. use_additional=no
  13042. else
  13043. if test "X$withval" = "X"; then
  13044. acl_save_prefix="$prefix"
  13045. prefix="$acl_final_prefix"
  13046. acl_save_exec_prefix="$exec_prefix"
  13047. exec_prefix="$acl_final_exec_prefix"
  13048. eval additional_includedir=\"$includedir\"
  13049. eval additional_libdir=\"$libdir\"
  13050. exec_prefix="$acl_save_exec_prefix"
  13051. prefix="$acl_save_prefix"
  13052. else
  13053. additional_includedir="$withval/include"
  13054. additional_libdir="$withval/$acl_libdirstem"
  13055. fi
  13056. fi
  13057. fi
  13058. LIBICONV=
  13059. LTLIBICONV=
  13060. INCICONV=
  13061. LIBICONV_PREFIX=
  13062. rpathdirs=
  13063. ltrpathdirs=
  13064. names_already_handled=
  13065. names_next_round='iconv '
  13066. while test -n "$names_next_round"; do
  13067. names_this_round="$names_next_round"
  13068. names_next_round=
  13069. for name in $names_this_round; do
  13070. already_handled=
  13071. for n in $names_already_handled; do
  13072. if test "$n" = "$name"; then
  13073. already_handled=yes
  13074. break
  13075. fi
  13076. done
  13077. if test -z "$already_handled"; then
  13078. names_already_handled="$names_already_handled $name"
  13079. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  13080. eval value=\"\$HAVE_LIB$uppername\"
  13081. if test -n "$value"; then
  13082. if test "$value" = yes; then
  13083. eval value=\"\$LIB$uppername\"
  13084. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  13085. eval value=\"\$LTLIB$uppername\"
  13086. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  13087. else
  13088. :
  13089. fi
  13090. else
  13091. found_dir=
  13092. found_la=
  13093. found_so=
  13094. found_a=
  13095. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  13096. if test -n "$acl_shlibext"; then
  13097. shrext=".$acl_shlibext" # typically: shrext=.so
  13098. else
  13099. shrext=
  13100. fi
  13101. if test $use_additional = yes; then
  13102. dir="$additional_libdir"
  13103. if test -n "$acl_shlibext"; then
  13104. if test -f "$dir/$libname$shrext"; then
  13105. found_dir="$dir"
  13106. found_so="$dir/$libname$shrext"
  13107. else
  13108. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13109. ver=`(cd "$dir" && \
  13110. for f in "$libname$shrext".*; do echo "$f"; done \
  13111. | sed -e "s,^$libname$shrext\\\\.,," \
  13112. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13113. | sed 1q ) 2>/dev/null`
  13114. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13115. found_dir="$dir"
  13116. found_so="$dir/$libname$shrext.$ver"
  13117. fi
  13118. else
  13119. eval library_names=\"$acl_library_names_spec\"
  13120. for f in $library_names; do
  13121. if test -f "$dir/$f"; then
  13122. found_dir="$dir"
  13123. found_so="$dir/$f"
  13124. break
  13125. fi
  13126. done
  13127. fi
  13128. fi
  13129. fi
  13130. if test "X$found_dir" = "X"; then
  13131. if test -f "$dir/$libname.$acl_libext"; then
  13132. found_dir="$dir"
  13133. found_a="$dir/$libname.$acl_libext"
  13134. fi
  13135. fi
  13136. if test "X$found_dir" != "X"; then
  13137. if test -f "$dir/$libname.la"; then
  13138. found_la="$dir/$libname.la"
  13139. fi
  13140. fi
  13141. fi
  13142. if test "X$found_dir" = "X"; then
  13143. for x in $LDFLAGS $LTLIBICONV; do
  13144. acl_save_prefix="$prefix"
  13145. prefix="$acl_final_prefix"
  13146. acl_save_exec_prefix="$exec_prefix"
  13147. exec_prefix="$acl_final_exec_prefix"
  13148. eval x=\"$x\"
  13149. exec_prefix="$acl_save_exec_prefix"
  13150. prefix="$acl_save_prefix"
  13151. case "$x" in
  13152. -L*)
  13153. dir=`echo "X$x" | sed -e 's/^X-L//'`
  13154. if test -n "$acl_shlibext"; then
  13155. if test -f "$dir/$libname$shrext"; then
  13156. found_dir="$dir"
  13157. found_so="$dir/$libname$shrext"
  13158. else
  13159. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  13160. ver=`(cd "$dir" && \
  13161. for f in "$libname$shrext".*; do echo "$f"; done \
  13162. | sed -e "s,^$libname$shrext\\\\.,," \
  13163. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  13164. | sed 1q ) 2>/dev/null`
  13165. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  13166. found_dir="$dir"
  13167. found_so="$dir/$libname$shrext.$ver"
  13168. fi
  13169. else
  13170. eval library_names=\"$acl_library_names_spec\"
  13171. for f in $library_names; do
  13172. if test -f "$dir/$f"; then
  13173. found_dir="$dir"
  13174. found_so="$dir/$f"
  13175. break
  13176. fi
  13177. done
  13178. fi
  13179. fi
  13180. fi
  13181. if test "X$found_dir" = "X"; then
  13182. if test -f "$dir/$libname.$acl_libext"; then
  13183. found_dir="$dir"
  13184. found_a="$dir/$libname.$acl_libext"
  13185. fi
  13186. fi
  13187. if test "X$found_dir" != "X"; then
  13188. if test -f "$dir/$libname.la"; then
  13189. found_la="$dir/$libname.la"
  13190. fi
  13191. fi
  13192. ;;
  13193. esac
  13194. if test "X$found_dir" != "X"; then
  13195. break
  13196. fi
  13197. done
  13198. fi
  13199. if test "X$found_dir" != "X"; then
  13200. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  13201. if test "X$found_so" != "X"; then
  13202. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  13203. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13204. else
  13205. haveit=
  13206. for x in $ltrpathdirs; do
  13207. if test "X$x" = "X$found_dir"; then
  13208. haveit=yes
  13209. break
  13210. fi
  13211. done
  13212. if test -z "$haveit"; then
  13213. ltrpathdirs="$ltrpathdirs $found_dir"
  13214. fi
  13215. if test "$acl_hardcode_direct" = yes; then
  13216. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13217. else
  13218. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  13219. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13220. haveit=
  13221. for x in $rpathdirs; do
  13222. if test "X$x" = "X$found_dir"; then
  13223. haveit=yes
  13224. break
  13225. fi
  13226. done
  13227. if test -z "$haveit"; then
  13228. rpathdirs="$rpathdirs $found_dir"
  13229. fi
  13230. else
  13231. haveit=
  13232. for x in $LDFLAGS $LIBICONV; do
  13233. acl_save_prefix="$prefix"
  13234. prefix="$acl_final_prefix"
  13235. acl_save_exec_prefix="$exec_prefix"
  13236. exec_prefix="$acl_final_exec_prefix"
  13237. eval x=\"$x\"
  13238. exec_prefix="$acl_save_exec_prefix"
  13239. prefix="$acl_save_prefix"
  13240. if test "X$x" = "X-L$found_dir"; then
  13241. haveit=yes
  13242. break
  13243. fi
  13244. done
  13245. if test -z "$haveit"; then
  13246. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  13247. fi
  13248. if test "$acl_hardcode_minus_L" != no; then
  13249. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  13250. else
  13251. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13252. fi
  13253. fi
  13254. fi
  13255. fi
  13256. else
  13257. if test "X$found_a" != "X"; then
  13258. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  13259. else
  13260. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  13261. fi
  13262. fi
  13263. additional_includedir=
  13264. case "$found_dir" in
  13265. */$acl_libdirstem | */$acl_libdirstem/)
  13266. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  13267. LIBICONV_PREFIX="$basedir"
  13268. additional_includedir="$basedir/include"
  13269. ;;
  13270. esac
  13271. if test "X$additional_includedir" != "X"; then
  13272. if test "X$additional_includedir" != "X/usr/include"; then
  13273. haveit=
  13274. if test "X$additional_includedir" = "X/usr/local/include"; then
  13275. if test -n "$GCC"; then
  13276. case $host_os in
  13277. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13278. esac
  13279. fi
  13280. fi
  13281. if test -z "$haveit"; then
  13282. for x in $CPPFLAGS $INCICONV; do
  13283. acl_save_prefix="$prefix"
  13284. prefix="$acl_final_prefix"
  13285. acl_save_exec_prefix="$exec_prefix"
  13286. exec_prefix="$acl_final_exec_prefix"
  13287. eval x=\"$x\"
  13288. exec_prefix="$acl_save_exec_prefix"
  13289. prefix="$acl_save_prefix"
  13290. if test "X$x" = "X-I$additional_includedir"; then
  13291. haveit=yes
  13292. break
  13293. fi
  13294. done
  13295. if test -z "$haveit"; then
  13296. if test -d "$additional_includedir"; then
  13297. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  13298. fi
  13299. fi
  13300. fi
  13301. fi
  13302. fi
  13303. if test -n "$found_la"; then
  13304. save_libdir="$libdir"
  13305. case "$found_la" in
  13306. */* | *\\*) . "$found_la" ;;
  13307. *) . "./$found_la" ;;
  13308. esac
  13309. libdir="$save_libdir"
  13310. for dep in $dependency_libs; do
  13311. case "$dep" in
  13312. -L*)
  13313. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  13314. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  13315. haveit=
  13316. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  13317. if test -n "$GCC"; then
  13318. case $host_os in
  13319. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  13320. esac
  13321. fi
  13322. fi
  13323. if test -z "$haveit"; then
  13324. haveit=
  13325. for x in $LDFLAGS $LIBICONV; do
  13326. acl_save_prefix="$prefix"
  13327. prefix="$acl_final_prefix"
  13328. acl_save_exec_prefix="$exec_prefix"
  13329. exec_prefix="$acl_final_exec_prefix"
  13330. eval x=\"$x\"
  13331. exec_prefix="$acl_save_exec_prefix"
  13332. prefix="$acl_save_prefix"
  13333. if test "X$x" = "X-L$additional_libdir"; then
  13334. haveit=yes
  13335. break
  13336. fi
  13337. done
  13338. if test -z "$haveit"; then
  13339. if test -d "$additional_libdir"; then
  13340. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  13341. fi
  13342. fi
  13343. haveit=
  13344. for x in $LDFLAGS $LTLIBICONV; do
  13345. acl_save_prefix="$prefix"
  13346. prefix="$acl_final_prefix"
  13347. acl_save_exec_prefix="$exec_prefix"
  13348. exec_prefix="$acl_final_exec_prefix"
  13349. eval x=\"$x\"
  13350. exec_prefix="$acl_save_exec_prefix"
  13351. prefix="$acl_save_prefix"
  13352. if test "X$x" = "X-L$additional_libdir"; then
  13353. haveit=yes
  13354. break
  13355. fi
  13356. done
  13357. if test -z "$haveit"; then
  13358. if test -d "$additional_libdir"; then
  13359. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  13360. fi
  13361. fi
  13362. fi
  13363. fi
  13364. ;;
  13365. -R*)
  13366. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  13367. if test "$enable_rpath" != no; then
  13368. haveit=
  13369. for x in $rpathdirs; do
  13370. if test "X$x" = "X$dir"; then
  13371. haveit=yes
  13372. break
  13373. fi
  13374. done
  13375. if test -z "$haveit"; then
  13376. rpathdirs="$rpathdirs $dir"
  13377. fi
  13378. haveit=
  13379. for x in $ltrpathdirs; do
  13380. if test "X$x" = "X$dir"; then
  13381. haveit=yes
  13382. break
  13383. fi
  13384. done
  13385. if test -z "$haveit"; then
  13386. ltrpathdirs="$ltrpathdirs $dir"
  13387. fi
  13388. fi
  13389. ;;
  13390. -l*)
  13391. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  13392. ;;
  13393. *.la)
  13394. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  13395. ;;
  13396. *)
  13397. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  13398. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  13399. ;;
  13400. esac
  13401. done
  13402. fi
  13403. else
  13404. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  13405. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  13406. fi
  13407. fi
  13408. fi
  13409. done
  13410. done
  13411. if test "X$rpathdirs" != "X"; then
  13412. if test -n "$acl_hardcode_libdir_separator"; then
  13413. alldirs=
  13414. for found_dir in $rpathdirs; do
  13415. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  13416. done
  13417. acl_save_libdir="$libdir"
  13418. libdir="$alldirs"
  13419. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13420. libdir="$acl_save_libdir"
  13421. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13422. else
  13423. for found_dir in $rpathdirs; do
  13424. acl_save_libdir="$libdir"
  13425. libdir="$found_dir"
  13426. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  13427. libdir="$acl_save_libdir"
  13428. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  13429. done
  13430. fi
  13431. fi
  13432. if test "X$ltrpathdirs" != "X"; then
  13433. for found_dir in $ltrpathdirs; do
  13434. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  13435. done
  13436. fi
  13437. cat >conftest.$ac_ext <<_ACEOF
  13438. /* confdefs.h. */
  13439. _ACEOF
  13440. cat confdefs.h >>conftest.$ac_ext
  13441. cat >>conftest.$ac_ext <<_ACEOF
  13442. /* end confdefs.h. */
  13443. int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
  13444. int
  13445. main ()
  13446. {
  13447. ;
  13448. return 0;
  13449. }
  13450. _ACEOF
  13451. rm -f conftest.$ac_objext conftest$ac_exeext
  13452. if { (ac_try="$ac_link"
  13453. case "(($ac_try" in
  13454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13455. *) ac_try_echo=$ac_try;;
  13456. esac
  13457. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13458. $as_echo "$ac_try_echo") >&5
  13459. (eval "$ac_link") 2>conftest.er1
  13460. ac_status=$?
  13461. grep -v '^ *+' conftest.er1 >conftest.err
  13462. rm -f conftest.er1
  13463. cat conftest.err >&5
  13464. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13465. (exit $ac_status); } && {
  13466. test -z "$ac_cxx_werror_flag" ||
  13467. test ! -s conftest.err
  13468. } && test -s conftest$ac_exeext && {
  13469. test "$cross_compiling" = yes ||
  13470. $as_test_x conftest$ac_exeext
  13471. }; then
  13472. cat >>confdefs.h <<\_ACEOF
  13473. #define HAVE_BUILTIN_EXPECT 1
  13474. _ACEOF
  13475. else
  13476. $as_echo "$as_me: failed program was:" >&5
  13477. sed 's/^/| /' conftest.$ac_ext >&5
  13478. fi
  13479. rm -rf conftest.dSYM
  13480. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13481. conftest$ac_exeext conftest.$ac_ext
  13482. for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
  13483. do
  13484. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13485. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13486. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13487. $as_echo_n "checking for $ac_header... " >&6; }
  13488. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13489. $as_echo_n "(cached) " >&6
  13490. fi
  13491. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13492. $as_echo "$as_val"'`
  13493. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13494. $as_echo "$ac_res" >&6; }
  13495. else
  13496. # Is the header compilable?
  13497. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13498. $as_echo_n "checking $ac_header usability... " >&6; }
  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. $ac_includes_default
  13506. #include <$ac_header>
  13507. _ACEOF
  13508. rm -f conftest.$ac_objext
  13509. if { (ac_try="$ac_compile"
  13510. case "(($ac_try" in
  13511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13512. *) ac_try_echo=$ac_try;;
  13513. esac
  13514. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13515. $as_echo "$ac_try_echo") >&5
  13516. (eval "$ac_compile") 2>conftest.er1
  13517. ac_status=$?
  13518. grep -v '^ *+' conftest.er1 >conftest.err
  13519. rm -f conftest.er1
  13520. cat conftest.err >&5
  13521. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13522. (exit $ac_status); } && {
  13523. test -z "$ac_cxx_werror_flag" ||
  13524. test ! -s conftest.err
  13525. } && test -s conftest.$ac_objext; then
  13526. ac_header_compiler=yes
  13527. else
  13528. $as_echo "$as_me: failed program was:" >&5
  13529. sed 's/^/| /' conftest.$ac_ext >&5
  13530. ac_header_compiler=no
  13531. fi
  13532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13533. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13534. $as_echo "$ac_header_compiler" >&6; }
  13535. # Is the header present?
  13536. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13537. $as_echo_n "checking $ac_header presence... " >&6; }
  13538. cat >conftest.$ac_ext <<_ACEOF
  13539. /* confdefs.h. */
  13540. _ACEOF
  13541. cat confdefs.h >>conftest.$ac_ext
  13542. cat >>conftest.$ac_ext <<_ACEOF
  13543. /* end confdefs.h. */
  13544. #include <$ac_header>
  13545. _ACEOF
  13546. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13547. case "(($ac_try" in
  13548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13549. *) ac_try_echo=$ac_try;;
  13550. esac
  13551. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13552. $as_echo "$ac_try_echo") >&5
  13553. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13554. ac_status=$?
  13555. grep -v '^ *+' conftest.er1 >conftest.err
  13556. rm -f conftest.er1
  13557. cat conftest.err >&5
  13558. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13559. (exit $ac_status); } >/dev/null && {
  13560. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  13561. test ! -s conftest.err
  13562. }; then
  13563. ac_header_preproc=yes
  13564. else
  13565. $as_echo "$as_me: failed program was:" >&5
  13566. sed 's/^/| /' conftest.$ac_ext >&5
  13567. ac_header_preproc=no
  13568. fi
  13569. rm -f conftest.err conftest.$ac_ext
  13570. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13571. $as_echo "$ac_header_preproc" >&6; }
  13572. # So? What about this header?
  13573. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  13574. yes:no: )
  13575. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13576. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13577. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13578. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13579. ac_header_preproc=yes
  13580. ;;
  13581. no:yes:* )
  13582. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13583. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13584. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13585. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13586. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13587. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13588. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13589. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13590. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13591. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13592. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13593. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13594. ( cat <<\_ASBOX
  13595. ## ----------------------------------------------- ##
  13596. ## Report this to t-tujikawa@users.sourceforge.net ##
  13597. ## ----------------------------------------------- ##
  13598. _ASBOX
  13599. ) | sed "s/^/$as_me: WARNING: /" >&2
  13600. ;;
  13601. esac
  13602. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  13603. $as_echo_n "checking for $ac_header... " >&6; }
  13604. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  13605. $as_echo_n "(cached) " >&6
  13606. else
  13607. eval "$as_ac_Header=\$ac_header_preproc"
  13608. fi
  13609. ac_res=`eval 'as_val=${'$as_ac_Header'}
  13610. $as_echo "$as_val"'`
  13611. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13612. $as_echo "$ac_res" >&6; }
  13613. fi
  13614. as_val=`eval 'as_val=${'$as_ac_Header'}
  13615. $as_echo "$as_val"'`
  13616. if test "x$as_val" = x""yes; then
  13617. cat >>confdefs.h <<_ACEOF
  13618. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13619. _ACEOF
  13620. fi
  13621. done
  13622. for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
  13623. stpcpy strcasecmp strdup strtoul tsearch argz_count argz_stringify \
  13624. argz_next __fsetlocking
  13625. do
  13626. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13627. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  13628. $as_echo_n "checking for $ac_func... " >&6; }
  13629. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  13630. $as_echo_n "(cached) " >&6
  13631. else
  13632. cat >conftest.$ac_ext <<_ACEOF
  13633. /* confdefs.h. */
  13634. _ACEOF
  13635. cat confdefs.h >>conftest.$ac_ext
  13636. cat >>conftest.$ac_ext <<_ACEOF
  13637. /* end confdefs.h. */
  13638. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  13639. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13640. #define $ac_func innocuous_$ac_func
  13641. /* System header to define __stub macros and hopefully few prototypes,
  13642. which can conflict with char $ac_func (); below.
  13643. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13644. <limits.h> exists even on freestanding compilers. */
  13645. #ifdef __STDC__
  13646. # include <limits.h>
  13647. #else
  13648. # include <assert.h>
  13649. #endif
  13650. #undef $ac_func
  13651. /* Override any GCC internal prototype to avoid an error.
  13652. Use char because int might match the return type of a GCC
  13653. builtin and then its argument prototype would still apply. */
  13654. #ifdef __cplusplus
  13655. extern "C"
  13656. #endif
  13657. char $ac_func ();
  13658. /* The GNU C library defines this for functions which it implements
  13659. to always fail with ENOSYS. Some functions are actually named
  13660. something starting with __ and the normal name is an alias. */
  13661. #if defined __stub_$ac_func || defined __stub___$ac_func
  13662. choke me
  13663. #endif
  13664. int
  13665. main ()
  13666. {
  13667. return $ac_func ();
  13668. ;
  13669. return 0;
  13670. }
  13671. _ACEOF
  13672. rm -f conftest.$ac_objext conftest$ac_exeext
  13673. if { (ac_try="$ac_link"
  13674. case "(($ac_try" in
  13675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13676. *) ac_try_echo=$ac_try;;
  13677. esac
  13678. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13679. $as_echo "$ac_try_echo") >&5
  13680. (eval "$ac_link") 2>conftest.er1
  13681. ac_status=$?
  13682. grep -v '^ *+' conftest.er1 >conftest.err
  13683. rm -f conftest.er1
  13684. cat conftest.err >&5
  13685. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13686. (exit $ac_status); } && {
  13687. test -z "$ac_cxx_werror_flag" ||
  13688. test ! -s conftest.err
  13689. } && test -s conftest$ac_exeext && {
  13690. test "$cross_compiling" = yes ||
  13691. $as_test_x conftest$ac_exeext
  13692. }; then
  13693. eval "$as_ac_var=yes"
  13694. else
  13695. $as_echo "$as_me: failed program was:" >&5
  13696. sed 's/^/| /' conftest.$ac_ext >&5
  13697. eval "$as_ac_var=no"
  13698. fi
  13699. rm -rf conftest.dSYM
  13700. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13701. conftest$ac_exeext conftest.$ac_ext
  13702. fi
  13703. ac_res=`eval 'as_val=${'$as_ac_var'}
  13704. $as_echo "$as_val"'`
  13705. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  13706. $as_echo "$ac_res" >&6; }
  13707. as_val=`eval 'as_val=${'$as_ac_var'}
  13708. $as_echo "$as_val"'`
  13709. if test "x$as_val" = x""yes; then
  13710. cat >>confdefs.h <<_ACEOF
  13711. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13712. _ACEOF
  13713. fi
  13714. done
  13715. { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
  13716. $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
  13717. if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
  13718. $as_echo_n "(cached) " >&6
  13719. else
  13720. cat >conftest.$ac_ext <<_ACEOF
  13721. /* confdefs.h. */
  13722. _ACEOF
  13723. cat confdefs.h >>conftest.$ac_ext
  13724. cat >>conftest.$ac_ext <<_ACEOF
  13725. /* end confdefs.h. */
  13726. #include <stdio.h>
  13727. int
  13728. main ()
  13729. {
  13730. #ifndef feof_unlocked
  13731. char *p = (char *) feof_unlocked;
  13732. #endif
  13733. ;
  13734. return 0;
  13735. }
  13736. _ACEOF
  13737. rm -f conftest.$ac_objext
  13738. if { (ac_try="$ac_compile"
  13739. case "(($ac_try" in
  13740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13741. *) ac_try_echo=$ac_try;;
  13742. esac
  13743. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13744. $as_echo "$ac_try_echo") >&5
  13745. (eval "$ac_compile") 2>conftest.er1
  13746. ac_status=$?
  13747. grep -v '^ *+' conftest.er1 >conftest.err
  13748. rm -f conftest.er1
  13749. cat conftest.err >&5
  13750. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13751. (exit $ac_status); } && {
  13752. test -z "$ac_cxx_werror_flag" ||
  13753. test ! -s conftest.err
  13754. } && test -s conftest.$ac_objext; then
  13755. ac_cv_have_decl_feof_unlocked=yes
  13756. else
  13757. $as_echo "$as_me: failed program was:" >&5
  13758. sed 's/^/| /' conftest.$ac_ext >&5
  13759. ac_cv_have_decl_feof_unlocked=no
  13760. fi
  13761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13762. fi
  13763. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
  13764. $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
  13765. if test $ac_cv_have_decl_feof_unlocked = yes; then
  13766. gt_value=1
  13767. else
  13768. gt_value=0
  13769. fi
  13770. cat >>confdefs.h <<_ACEOF
  13771. #define HAVE_DECL_FEOF_UNLOCKED $gt_value
  13772. _ACEOF
  13773. { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
  13774. $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
  13775. if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
  13776. $as_echo_n "(cached) " >&6
  13777. else
  13778. cat >conftest.$ac_ext <<_ACEOF
  13779. /* confdefs.h. */
  13780. _ACEOF
  13781. cat confdefs.h >>conftest.$ac_ext
  13782. cat >>conftest.$ac_ext <<_ACEOF
  13783. /* end confdefs.h. */
  13784. #include <stdio.h>
  13785. int
  13786. main ()
  13787. {
  13788. #ifndef fgets_unlocked
  13789. char *p = (char *) fgets_unlocked;
  13790. #endif
  13791. ;
  13792. return 0;
  13793. }
  13794. _ACEOF
  13795. rm -f conftest.$ac_objext
  13796. if { (ac_try="$ac_compile"
  13797. case "(($ac_try" in
  13798. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13799. *) ac_try_echo=$ac_try;;
  13800. esac
  13801. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13802. $as_echo "$ac_try_echo") >&5
  13803. (eval "$ac_compile") 2>conftest.er1
  13804. ac_status=$?
  13805. grep -v '^ *+' conftest.er1 >conftest.err
  13806. rm -f conftest.er1
  13807. cat conftest.err >&5
  13808. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13809. (exit $ac_status); } && {
  13810. test -z "$ac_cxx_werror_flag" ||
  13811. test ! -s conftest.err
  13812. } && test -s conftest.$ac_objext; then
  13813. ac_cv_have_decl_fgets_unlocked=yes
  13814. else
  13815. $as_echo "$as_me: failed program was:" >&5
  13816. sed 's/^/| /' conftest.$ac_ext >&5
  13817. ac_cv_have_decl_fgets_unlocked=no
  13818. fi
  13819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13820. fi
  13821. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
  13822. $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
  13823. if test $ac_cv_have_decl_fgets_unlocked = yes; then
  13824. gt_value=1
  13825. else
  13826. gt_value=0
  13827. fi
  13828. cat >>confdefs.h <<_ACEOF
  13829. #define HAVE_DECL_FGETS_UNLOCKED $gt_value
  13830. _ACEOF
  13831. am_save_CPPFLAGS="$CPPFLAGS"
  13832. for element in $INCICONV; do
  13833. haveit=
  13834. for x in $CPPFLAGS; do
  13835. acl_save_prefix="$prefix"
  13836. prefix="$acl_final_prefix"
  13837. acl_save_exec_prefix="$exec_prefix"
  13838. exec_prefix="$acl_final_exec_prefix"
  13839. eval x=\"$x\"
  13840. exec_prefix="$acl_save_exec_prefix"
  13841. prefix="$acl_save_prefix"
  13842. if test "X$x" = "X$element"; then
  13843. haveit=yes
  13844. break
  13845. fi
  13846. done
  13847. if test -z "$haveit"; then
  13848. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  13849. fi
  13850. done
  13851. { $as_echo "$as_me:$LINENO: checking for iconv" >&5
  13852. $as_echo_n "checking for iconv... " >&6; }
  13853. if test "${am_cv_func_iconv+set}" = set; then
  13854. $as_echo_n "(cached) " >&6
  13855. else
  13856. am_cv_func_iconv="no, consider installing GNU libiconv"
  13857. am_cv_lib_iconv=no
  13858. cat >conftest.$ac_ext <<_ACEOF
  13859. /* confdefs.h. */
  13860. _ACEOF
  13861. cat confdefs.h >>conftest.$ac_ext
  13862. cat >>conftest.$ac_ext <<_ACEOF
  13863. /* end confdefs.h. */
  13864. #include <stdlib.h>
  13865. #include <iconv.h>
  13866. int
  13867. main ()
  13868. {
  13869. iconv_t cd = iconv_open("","");
  13870. iconv(cd,NULL,NULL,NULL,NULL);
  13871. iconv_close(cd);
  13872. ;
  13873. return 0;
  13874. }
  13875. _ACEOF
  13876. rm -f conftest.$ac_objext conftest$ac_exeext
  13877. if { (ac_try="$ac_link"
  13878. case "(($ac_try" in
  13879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13880. *) ac_try_echo=$ac_try;;
  13881. esac
  13882. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13883. $as_echo "$ac_try_echo") >&5
  13884. (eval "$ac_link") 2>conftest.er1
  13885. ac_status=$?
  13886. grep -v '^ *+' conftest.er1 >conftest.err
  13887. rm -f conftest.er1
  13888. cat conftest.err >&5
  13889. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13890. (exit $ac_status); } && {
  13891. test -z "$ac_cxx_werror_flag" ||
  13892. test ! -s conftest.err
  13893. } && test -s conftest$ac_exeext && {
  13894. test "$cross_compiling" = yes ||
  13895. $as_test_x conftest$ac_exeext
  13896. }; then
  13897. am_cv_func_iconv=yes
  13898. else
  13899. $as_echo "$as_me: failed program was:" >&5
  13900. sed 's/^/| /' conftest.$ac_ext >&5
  13901. fi
  13902. rm -rf conftest.dSYM
  13903. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13904. conftest$ac_exeext conftest.$ac_ext
  13905. if test "$am_cv_func_iconv" != yes; then
  13906. am_save_LIBS="$LIBS"
  13907. LIBS="$LIBS $LIBICONV"
  13908. cat >conftest.$ac_ext <<_ACEOF
  13909. /* confdefs.h. */
  13910. _ACEOF
  13911. cat confdefs.h >>conftest.$ac_ext
  13912. cat >>conftest.$ac_ext <<_ACEOF
  13913. /* end confdefs.h. */
  13914. #include <stdlib.h>
  13915. #include <iconv.h>
  13916. int
  13917. main ()
  13918. {
  13919. iconv_t cd = iconv_open("","");
  13920. iconv(cd,NULL,NULL,NULL,NULL);
  13921. iconv_close(cd);
  13922. ;
  13923. return 0;
  13924. }
  13925. _ACEOF
  13926. rm -f conftest.$ac_objext conftest$ac_exeext
  13927. if { (ac_try="$ac_link"
  13928. case "(($ac_try" in
  13929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13930. *) ac_try_echo=$ac_try;;
  13931. esac
  13932. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13933. $as_echo "$ac_try_echo") >&5
  13934. (eval "$ac_link") 2>conftest.er1
  13935. ac_status=$?
  13936. grep -v '^ *+' conftest.er1 >conftest.err
  13937. rm -f conftest.er1
  13938. cat conftest.err >&5
  13939. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13940. (exit $ac_status); } && {
  13941. test -z "$ac_cxx_werror_flag" ||
  13942. test ! -s conftest.err
  13943. } && test -s conftest$ac_exeext && {
  13944. test "$cross_compiling" = yes ||
  13945. $as_test_x conftest$ac_exeext
  13946. }; then
  13947. am_cv_lib_iconv=yes
  13948. am_cv_func_iconv=yes
  13949. else
  13950. $as_echo "$as_me: failed program was:" >&5
  13951. sed 's/^/| /' conftest.$ac_ext >&5
  13952. fi
  13953. rm -rf conftest.dSYM
  13954. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13955. conftest$ac_exeext conftest.$ac_ext
  13956. LIBS="$am_save_LIBS"
  13957. fi
  13958. fi
  13959. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  13960. $as_echo "$am_cv_func_iconv" >&6; }
  13961. if test "$am_cv_func_iconv" = yes; then
  13962. { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
  13963. $as_echo_n "checking for working iconv... " >&6; }
  13964. if test "${am_cv_func_iconv_works+set}" = set; then
  13965. $as_echo_n "(cached) " >&6
  13966. else
  13967. am_save_LIBS="$LIBS"
  13968. if test $am_cv_lib_iconv = yes; then
  13969. LIBS="$LIBS $LIBICONV"
  13970. fi
  13971. if test "$cross_compiling" = yes; then
  13972. case "$host_os" in
  13973. aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
  13974. *) am_cv_func_iconv_works="guessing yes" ;;
  13975. esac
  13976. else
  13977. cat >conftest.$ac_ext <<_ACEOF
  13978. /* confdefs.h. */
  13979. _ACEOF
  13980. cat confdefs.h >>conftest.$ac_ext
  13981. cat >>conftest.$ac_ext <<_ACEOF
  13982. /* end confdefs.h. */
  13983. #include <iconv.h>
  13984. #include <string.h>
  13985. int main ()
  13986. {
  13987. /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
  13988. returns. */
  13989. {
  13990. iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
  13991. if (cd_utf8_to_88591 != (iconv_t)(-1))
  13992. {
  13993. static const char input[] = "\342\202\254"; /* EURO SIGN */
  13994. char buf[10];
  13995. const char *inptr = input;
  13996. size_t inbytesleft = strlen (input);
  13997. char *outptr = buf;
  13998. size_t outbytesleft = sizeof (buf);
  13999. size_t res = iconv (cd_utf8_to_88591,
  14000. (char **) &inptr, &inbytesleft,
  14001. &outptr, &outbytesleft);
  14002. if (res == 0)
  14003. return 1;
  14004. }
  14005. }
  14006. #if 0 /* This bug could be worked around by the caller. */
  14007. /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
  14008. {
  14009. iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
  14010. if (cd_88591_to_utf8 != (iconv_t)(-1))
  14011. {
  14012. static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
  14013. char buf[50];
  14014. const char *inptr = input;
  14015. size_t inbytesleft = strlen (input);
  14016. char *outptr = buf;
  14017. size_t outbytesleft = sizeof (buf);
  14018. size_t res = iconv (cd_88591_to_utf8,
  14019. (char **) &inptr, &inbytesleft,
  14020. &outptr, &outbytesleft);
  14021. if ((int)res > 0)
  14022. return 1;
  14023. }
  14024. }
  14025. #endif
  14026. /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
  14027. provided. */
  14028. if (/* Try standardized names. */
  14029. iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
  14030. /* Try IRIX, OSF/1 names. */
  14031. && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
  14032. /* Try AIX names. */
  14033. && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
  14034. /* Try HP-UX names. */
  14035. && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
  14036. return 1;
  14037. return 0;
  14038. }
  14039. _ACEOF
  14040. rm -f conftest$ac_exeext
  14041. if { (ac_try="$ac_link"
  14042. case "(($ac_try" in
  14043. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14044. *) ac_try_echo=$ac_try;;
  14045. esac
  14046. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14047. $as_echo "$ac_try_echo") >&5
  14048. (eval "$ac_link") 2>&5
  14049. ac_status=$?
  14050. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14051. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14052. { (case "(($ac_try" in
  14053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14054. *) ac_try_echo=$ac_try;;
  14055. esac
  14056. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14057. $as_echo "$ac_try_echo") >&5
  14058. (eval "$ac_try") 2>&5
  14059. ac_status=$?
  14060. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14061. (exit $ac_status); }; }; then
  14062. am_cv_func_iconv_works=yes
  14063. else
  14064. $as_echo "$as_me: program exited with status $ac_status" >&5
  14065. $as_echo "$as_me: failed program was:" >&5
  14066. sed 's/^/| /' conftest.$ac_ext >&5
  14067. ( exit $ac_status )
  14068. am_cv_func_iconv_works=no
  14069. fi
  14070. rm -rf conftest.dSYM
  14071. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14072. fi
  14073. LIBS="$am_save_LIBS"
  14074. fi
  14075. { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
  14076. $as_echo "$am_cv_func_iconv_works" >&6; }
  14077. case "$am_cv_func_iconv_works" in
  14078. *no) am_func_iconv=no am_cv_lib_iconv=no ;;
  14079. *) am_func_iconv=yes ;;
  14080. esac
  14081. else
  14082. am_func_iconv=no am_cv_lib_iconv=no
  14083. fi
  14084. if test "$am_func_iconv" = yes; then
  14085. cat >>confdefs.h <<\_ACEOF
  14086. #define HAVE_ICONV 1
  14087. _ACEOF
  14088. fi
  14089. if test "$am_cv_lib_iconv" = yes; then
  14090. { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  14091. $as_echo_n "checking how to link with libiconv... " >&6; }
  14092. { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
  14093. $as_echo "$LIBICONV" >&6; }
  14094. else
  14095. CPPFLAGS="$am_save_CPPFLAGS"
  14096. LIBICONV=
  14097. LTLIBICONV=
  14098. fi
  14099. if test "$am_cv_func_iconv" = yes; then
  14100. { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
  14101. $as_echo_n "checking for iconv declaration... " >&6; }
  14102. if test "${am_cv_proto_iconv+set}" = set; then
  14103. $as_echo_n "(cached) " >&6
  14104. else
  14105. cat >conftest.$ac_ext <<_ACEOF
  14106. /* confdefs.h. */
  14107. _ACEOF
  14108. cat confdefs.h >>conftest.$ac_ext
  14109. cat >>conftest.$ac_ext <<_ACEOF
  14110. /* end confdefs.h. */
  14111. #include <stdlib.h>
  14112. #include <iconv.h>
  14113. extern
  14114. #ifdef __cplusplus
  14115. "C"
  14116. #endif
  14117. #if defined(__STDC__) || defined(__cplusplus)
  14118. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  14119. #else
  14120. size_t iconv();
  14121. #endif
  14122. int
  14123. main ()
  14124. {
  14125. ;
  14126. return 0;
  14127. }
  14128. _ACEOF
  14129. rm -f conftest.$ac_objext
  14130. if { (ac_try="$ac_compile"
  14131. case "(($ac_try" in
  14132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14133. *) ac_try_echo=$ac_try;;
  14134. esac
  14135. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14136. $as_echo "$ac_try_echo") >&5
  14137. (eval "$ac_compile") 2>conftest.er1
  14138. ac_status=$?
  14139. grep -v '^ *+' conftest.er1 >conftest.err
  14140. rm -f conftest.er1
  14141. cat conftest.err >&5
  14142. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14143. (exit $ac_status); } && {
  14144. test -z "$ac_cxx_werror_flag" ||
  14145. test ! -s conftest.err
  14146. } && test -s conftest.$ac_objext; then
  14147. am_cv_proto_iconv_arg1=""
  14148. else
  14149. $as_echo "$as_me: failed program was:" >&5
  14150. sed 's/^/| /' conftest.$ac_ext >&5
  14151. am_cv_proto_iconv_arg1="const"
  14152. fi
  14153. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14154. 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);"
  14155. fi
  14156. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  14157. { $as_echo "$as_me:$LINENO: result: ${ac_t:-
  14158. }$am_cv_proto_iconv" >&5
  14159. $as_echo "${ac_t:-
  14160. }$am_cv_proto_iconv" >&6; }
  14161. cat >>confdefs.h <<_ACEOF
  14162. #define ICONV_CONST $am_cv_proto_iconv_arg1
  14163. _ACEOF
  14164. fi
  14165. { $as_echo "$as_me:$LINENO: checking for NL_LOCALE_NAME macro" >&5
  14166. $as_echo_n "checking for NL_LOCALE_NAME macro... " >&6; }
  14167. if test "${gt_cv_nl_locale_name+set}" = set; then
  14168. $as_echo_n "(cached) " >&6
  14169. else
  14170. cat >conftest.$ac_ext <<_ACEOF
  14171. /* confdefs.h. */
  14172. _ACEOF
  14173. cat confdefs.h >>conftest.$ac_ext
  14174. cat >>conftest.$ac_ext <<_ACEOF
  14175. /* end confdefs.h. */
  14176. #include <langinfo.h>
  14177. #include <locale.h>
  14178. int
  14179. main ()
  14180. {
  14181. char* cs = nl_langinfo(_NL_LOCALE_NAME(LC_MESSAGES));
  14182. return !cs;
  14183. ;
  14184. return 0;
  14185. }
  14186. _ACEOF
  14187. rm -f conftest.$ac_objext conftest$ac_exeext
  14188. if { (ac_try="$ac_link"
  14189. case "(($ac_try" in
  14190. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14191. *) ac_try_echo=$ac_try;;
  14192. esac
  14193. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14194. $as_echo "$ac_try_echo") >&5
  14195. (eval "$ac_link") 2>conftest.er1
  14196. ac_status=$?
  14197. grep -v '^ *+' conftest.er1 >conftest.err
  14198. rm -f conftest.er1
  14199. cat conftest.err >&5
  14200. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14201. (exit $ac_status); } && {
  14202. test -z "$ac_cxx_werror_flag" ||
  14203. test ! -s conftest.err
  14204. } && test -s conftest$ac_exeext && {
  14205. test "$cross_compiling" = yes ||
  14206. $as_test_x conftest$ac_exeext
  14207. }; then
  14208. gt_cv_nl_locale_name=yes
  14209. else
  14210. $as_echo "$as_me: failed program was:" >&5
  14211. sed 's/^/| /' conftest.$ac_ext >&5
  14212. gt_cv_nl_locale_name=no
  14213. fi
  14214. rm -rf conftest.dSYM
  14215. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14216. conftest$ac_exeext conftest.$ac_ext
  14217. fi
  14218. { $as_echo "$as_me:$LINENO: result: $gt_cv_nl_locale_name" >&5
  14219. $as_echo "$gt_cv_nl_locale_name" >&6; }
  14220. if test $gt_cv_nl_locale_name = yes; then
  14221. cat >>confdefs.h <<\_ACEOF
  14222. #define HAVE_NL_LOCALE_NAME 1
  14223. _ACEOF
  14224. fi
  14225. for ac_prog in bison
  14226. do
  14227. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14228. set dummy $ac_prog; ac_word=$2
  14229. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  14230. $as_echo_n "checking for $ac_word... " >&6; }
  14231. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  14232. $as_echo_n "(cached) " >&6
  14233. else
  14234. if test -n "$INTLBISON"; then
  14235. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  14236. else
  14237. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14238. for as_dir in $PATH
  14239. do
  14240. IFS=$as_save_IFS
  14241. test -z "$as_dir" && as_dir=.
  14242. for ac_exec_ext in '' $ac_executable_extensions; do
  14243. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14244. ac_cv_prog_INTLBISON="$ac_prog"
  14245. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14246. break 2
  14247. fi
  14248. done
  14249. done
  14250. IFS=$as_save_IFS
  14251. fi
  14252. fi
  14253. INTLBISON=$ac_cv_prog_INTLBISON
  14254. if test -n "$INTLBISON"; then
  14255. { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
  14256. $as_echo "$INTLBISON" >&6; }
  14257. else
  14258. { $as_echo "$as_me:$LINENO: result: no" >&5
  14259. $as_echo "no" >&6; }
  14260. fi
  14261. test -n "$INTLBISON" && break
  14262. done
  14263. if test -z "$INTLBISON"; then
  14264. ac_verc_fail=yes
  14265. else
  14266. { $as_echo "$as_me:$LINENO: checking version of bison" >&5
  14267. $as_echo_n "checking version of bison... " >&6; }
  14268. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  14269. case $ac_prog_version in
  14270. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  14271. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  14272. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  14273. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  14274. esac
  14275. { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  14276. $as_echo "$ac_prog_version" >&6; }
  14277. fi
  14278. if test $ac_verc_fail = yes; then
  14279. INTLBISON=:
  14280. fi
  14281. { $as_echo "$as_me:$LINENO: checking for long long int" >&5
  14282. $as_echo_n "checking for long long int... " >&6; }
  14283. if test "${ac_cv_type_long_long_int+set}" = set; then
  14284. $as_echo_n "(cached) " >&6
  14285. else
  14286. cat >conftest.$ac_ext <<_ACEOF
  14287. /* confdefs.h. */
  14288. _ACEOF
  14289. cat confdefs.h >>conftest.$ac_ext
  14290. cat >>conftest.$ac_ext <<_ACEOF
  14291. /* end confdefs.h. */
  14292. /* Test preprocessor. */
  14293. #if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  14294. error in preprocessor;
  14295. #endif
  14296. #if ! (18446744073709551615ULL <= -1ull)
  14297. error in preprocessor;
  14298. #endif
  14299. /* Test literals. */
  14300. long long int ll = 9223372036854775807ll;
  14301. long long int nll = -9223372036854775807LL;
  14302. unsigned long long int ull = 18446744073709551615ULL;
  14303. /* Test constant expressions. */
  14304. typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
  14305. ? 1 : -1)];
  14306. typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
  14307. ? 1 : -1)];
  14308. int i = 63;
  14309. int
  14310. main ()
  14311. {
  14312. /* Test availability of runtime routines for shift and division. */
  14313. long long int llmax = 9223372036854775807ll;
  14314. unsigned long long int ullmax = 18446744073709551615ull;
  14315. return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
  14316. | (llmax / ll) | (llmax % ll)
  14317. | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
  14318. | (ullmax / ull) | (ullmax % ull));
  14319. ;
  14320. return 0;
  14321. }
  14322. _ACEOF
  14323. rm -f conftest.$ac_objext conftest$ac_exeext
  14324. if { (ac_try="$ac_link"
  14325. case "(($ac_try" in
  14326. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14327. *) ac_try_echo=$ac_try;;
  14328. esac
  14329. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14330. $as_echo "$ac_try_echo") >&5
  14331. (eval "$ac_link") 2>conftest.er1
  14332. ac_status=$?
  14333. grep -v '^ *+' conftest.er1 >conftest.err
  14334. rm -f conftest.er1
  14335. cat conftest.err >&5
  14336. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14337. (exit $ac_status); } && {
  14338. test -z "$ac_cxx_werror_flag" ||
  14339. test ! -s conftest.err
  14340. } && test -s conftest$ac_exeext && {
  14341. test "$cross_compiling" = yes ||
  14342. $as_test_x conftest$ac_exeext
  14343. }; then
  14344. if test "$cross_compiling" = yes; then
  14345. ac_cv_type_long_long_int=yes
  14346. else
  14347. cat >conftest.$ac_ext <<_ACEOF
  14348. /* confdefs.h. */
  14349. _ACEOF
  14350. cat confdefs.h >>conftest.$ac_ext
  14351. cat >>conftest.$ac_ext <<_ACEOF
  14352. /* end confdefs.h. */
  14353. #include <limits.h>
  14354. #ifndef LLONG_MAX
  14355. # define HALF \
  14356. (1LL << (sizeof (long long int) * CHAR_BIT - 2))
  14357. # define LLONG_MAX (HALF - 1 + HALF)
  14358. #endif
  14359. int
  14360. main ()
  14361. {
  14362. long long int n = 1;
  14363. int i;
  14364. for (i = 0; ; i++)
  14365. {
  14366. long long int m = n << i;
  14367. if (m >> i != n)
  14368. return 1;
  14369. if (LLONG_MAX / 2 < m)
  14370. break;
  14371. }
  14372. return 0;
  14373. ;
  14374. return 0;
  14375. }
  14376. _ACEOF
  14377. rm -f conftest$ac_exeext
  14378. if { (ac_try="$ac_link"
  14379. case "(($ac_try" in
  14380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14381. *) ac_try_echo=$ac_try;;
  14382. esac
  14383. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14384. $as_echo "$ac_try_echo") >&5
  14385. (eval "$ac_link") 2>&5
  14386. ac_status=$?
  14387. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14388. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14389. { (case "(($ac_try" in
  14390. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14391. *) ac_try_echo=$ac_try;;
  14392. esac
  14393. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14394. $as_echo "$ac_try_echo") >&5
  14395. (eval "$ac_try") 2>&5
  14396. ac_status=$?
  14397. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14398. (exit $ac_status); }; }; then
  14399. ac_cv_type_long_long_int=yes
  14400. else
  14401. $as_echo "$as_me: program exited with status $ac_status" >&5
  14402. $as_echo "$as_me: failed program was:" >&5
  14403. sed 's/^/| /' conftest.$ac_ext >&5
  14404. ( exit $ac_status )
  14405. ac_cv_type_long_long_int=no
  14406. fi
  14407. rm -rf conftest.dSYM
  14408. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14409. fi
  14410. else
  14411. $as_echo "$as_me: failed program was:" >&5
  14412. sed 's/^/| /' conftest.$ac_ext >&5
  14413. ac_cv_type_long_long_int=no
  14414. fi
  14415. rm -rf conftest.dSYM
  14416. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14417. conftest$ac_exeext conftest.$ac_ext
  14418. fi
  14419. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
  14420. $as_echo "$ac_cv_type_long_long_int" >&6; }
  14421. if test $ac_cv_type_long_long_int = yes; then
  14422. cat >>confdefs.h <<\_ACEOF
  14423. #define HAVE_LONG_LONG_INT 1
  14424. _ACEOF
  14425. fi
  14426. { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
  14427. $as_echo_n "checking for wchar_t... " >&6; }
  14428. if test "${gt_cv_c_wchar_t+set}" = set; then
  14429. $as_echo_n "(cached) " >&6
  14430. else
  14431. cat >conftest.$ac_ext <<_ACEOF
  14432. /* confdefs.h. */
  14433. _ACEOF
  14434. cat confdefs.h >>conftest.$ac_ext
  14435. cat >>conftest.$ac_ext <<_ACEOF
  14436. /* end confdefs.h. */
  14437. #include <stddef.h>
  14438. wchar_t foo = (wchar_t)'\0';
  14439. int
  14440. main ()
  14441. {
  14442. ;
  14443. return 0;
  14444. }
  14445. _ACEOF
  14446. rm -f conftest.$ac_objext
  14447. if { (ac_try="$ac_compile"
  14448. case "(($ac_try" in
  14449. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14450. *) ac_try_echo=$ac_try;;
  14451. esac
  14452. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14453. $as_echo "$ac_try_echo") >&5
  14454. (eval "$ac_compile") 2>conftest.er1
  14455. ac_status=$?
  14456. grep -v '^ *+' conftest.er1 >conftest.err
  14457. rm -f conftest.er1
  14458. cat conftest.err >&5
  14459. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14460. (exit $ac_status); } && {
  14461. test -z "$ac_cxx_werror_flag" ||
  14462. test ! -s conftest.err
  14463. } && test -s conftest.$ac_objext; then
  14464. gt_cv_c_wchar_t=yes
  14465. else
  14466. $as_echo "$as_me: failed program was:" >&5
  14467. sed 's/^/| /' conftest.$ac_ext >&5
  14468. gt_cv_c_wchar_t=no
  14469. fi
  14470. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14471. fi
  14472. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
  14473. $as_echo "$gt_cv_c_wchar_t" >&6; }
  14474. if test $gt_cv_c_wchar_t = yes; then
  14475. cat >>confdefs.h <<\_ACEOF
  14476. #define HAVE_WCHAR_T 1
  14477. _ACEOF
  14478. fi
  14479. { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
  14480. $as_echo_n "checking for wint_t... " >&6; }
  14481. if test "${gt_cv_c_wint_t+set}" = set; then
  14482. $as_echo_n "(cached) " >&6
  14483. else
  14484. cat >conftest.$ac_ext <<_ACEOF
  14485. /* confdefs.h. */
  14486. _ACEOF
  14487. cat confdefs.h >>conftest.$ac_ext
  14488. cat >>conftest.$ac_ext <<_ACEOF
  14489. /* end confdefs.h. */
  14490. /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
  14491. <wchar.h>.
  14492. BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
  14493. before <wchar.h>. */
  14494. #include <stddef.h>
  14495. #include <stdio.h>
  14496. #include <time.h>
  14497. #include <wchar.h>
  14498. wint_t foo = (wchar_t)'\0';
  14499. int
  14500. main ()
  14501. {
  14502. ;
  14503. return 0;
  14504. }
  14505. _ACEOF
  14506. rm -f conftest.$ac_objext
  14507. if { (ac_try="$ac_compile"
  14508. case "(($ac_try" in
  14509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14510. *) ac_try_echo=$ac_try;;
  14511. esac
  14512. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14513. $as_echo "$ac_try_echo") >&5
  14514. (eval "$ac_compile") 2>conftest.er1
  14515. ac_status=$?
  14516. grep -v '^ *+' conftest.er1 >conftest.err
  14517. rm -f conftest.er1
  14518. cat conftest.err >&5
  14519. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14520. (exit $ac_status); } && {
  14521. test -z "$ac_cxx_werror_flag" ||
  14522. test ! -s conftest.err
  14523. } && test -s conftest.$ac_objext; then
  14524. gt_cv_c_wint_t=yes
  14525. else
  14526. $as_echo "$as_me: failed program was:" >&5
  14527. sed 's/^/| /' conftest.$ac_ext >&5
  14528. gt_cv_c_wint_t=no
  14529. fi
  14530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14531. fi
  14532. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
  14533. $as_echo "$gt_cv_c_wint_t" >&6; }
  14534. if test $gt_cv_c_wint_t = yes; then
  14535. cat >>confdefs.h <<\_ACEOF
  14536. #define HAVE_WINT_T 1
  14537. _ACEOF
  14538. fi
  14539. { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
  14540. $as_echo_n "checking for intmax_t... " >&6; }
  14541. if test "${gt_cv_c_intmax_t+set}" = set; then
  14542. $as_echo_n "(cached) " >&6
  14543. else
  14544. cat >conftest.$ac_ext <<_ACEOF
  14545. /* confdefs.h. */
  14546. _ACEOF
  14547. cat confdefs.h >>conftest.$ac_ext
  14548. cat >>conftest.$ac_ext <<_ACEOF
  14549. /* end confdefs.h. */
  14550. #include <stddef.h>
  14551. #include <stdlib.h>
  14552. #if HAVE_STDINT_H_WITH_UINTMAX
  14553. #include <stdint.h>
  14554. #endif
  14555. #if HAVE_INTTYPES_H_WITH_UINTMAX
  14556. #include <inttypes.h>
  14557. #endif
  14558. int
  14559. main ()
  14560. {
  14561. intmax_t x = -1;
  14562. return !x;
  14563. ;
  14564. return 0;
  14565. }
  14566. _ACEOF
  14567. rm -f conftest.$ac_objext
  14568. if { (ac_try="$ac_compile"
  14569. case "(($ac_try" in
  14570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14571. *) ac_try_echo=$ac_try;;
  14572. esac
  14573. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14574. $as_echo "$ac_try_echo") >&5
  14575. (eval "$ac_compile") 2>conftest.er1
  14576. ac_status=$?
  14577. grep -v '^ *+' conftest.er1 >conftest.err
  14578. rm -f conftest.er1
  14579. cat conftest.err >&5
  14580. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14581. (exit $ac_status); } && {
  14582. test -z "$ac_cxx_werror_flag" ||
  14583. test ! -s conftest.err
  14584. } && test -s conftest.$ac_objext; then
  14585. gt_cv_c_intmax_t=yes
  14586. else
  14587. $as_echo "$as_me: failed program was:" >&5
  14588. sed 's/^/| /' conftest.$ac_ext >&5
  14589. gt_cv_c_intmax_t=no
  14590. fi
  14591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14592. fi
  14593. { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
  14594. $as_echo "$gt_cv_c_intmax_t" >&6; }
  14595. if test $gt_cv_c_intmax_t = yes; then
  14596. cat >>confdefs.h <<\_ACEOF
  14597. #define HAVE_INTMAX_T 1
  14598. _ACEOF
  14599. fi
  14600. { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
  14601. $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
  14602. if test "${gt_cv_func_printf_posix+set}" = set; then
  14603. $as_echo_n "(cached) " >&6
  14604. else
  14605. if test "$cross_compiling" = yes; then
  14606. cat >conftest.$ac_ext <<_ACEOF
  14607. /* confdefs.h. */
  14608. _ACEOF
  14609. cat confdefs.h >>conftest.$ac_ext
  14610. cat >>conftest.$ac_ext <<_ACEOF
  14611. /* end confdefs.h. */
  14612. #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
  14613. notposix
  14614. #endif
  14615. _ACEOF
  14616. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14617. $EGREP "notposix" >/dev/null 2>&1; then
  14618. gt_cv_func_printf_posix="guessing no"
  14619. else
  14620. gt_cv_func_printf_posix="guessing yes"
  14621. fi
  14622. rm -f conftest*
  14623. else
  14624. cat >conftest.$ac_ext <<_ACEOF
  14625. /* confdefs.h. */
  14626. _ACEOF
  14627. cat confdefs.h >>conftest.$ac_ext
  14628. cat >>conftest.$ac_ext <<_ACEOF
  14629. /* end confdefs.h. */
  14630. #include <stdio.h>
  14631. #include <string.h>
  14632. /* The string "%2$d %1$d", with dollar characters protected from the shell's
  14633. dollar expansion (possibly an autoconf bug). */
  14634. static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
  14635. static char buf[100];
  14636. int main ()
  14637. {
  14638. sprintf (buf, format, 33, 55);
  14639. return (strcmp (buf, "55 33") != 0);
  14640. }
  14641. _ACEOF
  14642. rm -f conftest$ac_exeext
  14643. if { (ac_try="$ac_link"
  14644. case "(($ac_try" in
  14645. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14646. *) ac_try_echo=$ac_try;;
  14647. esac
  14648. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14649. $as_echo "$ac_try_echo") >&5
  14650. (eval "$ac_link") 2>&5
  14651. ac_status=$?
  14652. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14653. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  14654. { (case "(($ac_try" in
  14655. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14656. *) ac_try_echo=$ac_try;;
  14657. esac
  14658. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14659. $as_echo "$ac_try_echo") >&5
  14660. (eval "$ac_try") 2>&5
  14661. ac_status=$?
  14662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14663. (exit $ac_status); }; }; then
  14664. gt_cv_func_printf_posix=yes
  14665. else
  14666. $as_echo "$as_me: program exited with status $ac_status" >&5
  14667. $as_echo "$as_me: failed program was:" >&5
  14668. sed 's/^/| /' conftest.$ac_ext >&5
  14669. ( exit $ac_status )
  14670. gt_cv_func_printf_posix=no
  14671. fi
  14672. rm -rf conftest.dSYM
  14673. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  14674. fi
  14675. fi
  14676. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
  14677. $as_echo "$gt_cv_func_printf_posix" >&6; }
  14678. case $gt_cv_func_printf_posix in
  14679. *yes)
  14680. cat >>confdefs.h <<\_ACEOF
  14681. #define HAVE_POSIX_PRINTF 1
  14682. _ACEOF
  14683. ;;
  14684. esac
  14685. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  14686. $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
  14687. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  14688. $as_echo_n "(cached) " >&6
  14689. else
  14690. cat >conftest.$ac_ext <<_ACEOF
  14691. /* confdefs.h. */
  14692. _ACEOF
  14693. cat confdefs.h >>conftest.$ac_ext
  14694. cat >>conftest.$ac_ext <<_ACEOF
  14695. /* end confdefs.h. */
  14696. #include <features.h>
  14697. #ifdef __GNU_LIBRARY__
  14698. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  14699. Lucky GNU user
  14700. #endif
  14701. #endif
  14702. _ACEOF
  14703. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14704. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  14705. ac_cv_gnu_library_2_1=yes
  14706. else
  14707. ac_cv_gnu_library_2_1=no
  14708. fi
  14709. rm -f conftest*
  14710. fi
  14711. { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  14712. $as_echo "$ac_cv_gnu_library_2_1" >&6; }
  14713. GLIBC21="$ac_cv_gnu_library_2_1"
  14714. for ac_header in stdint.h
  14715. do
  14716. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14717. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14718. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14719. $as_echo_n "checking for $ac_header... " >&6; }
  14720. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14721. $as_echo_n "(cached) " >&6
  14722. fi
  14723. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14724. $as_echo "$as_val"'`
  14725. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14726. $as_echo "$ac_res" >&6; }
  14727. else
  14728. # Is the header compilable?
  14729. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  14730. $as_echo_n "checking $ac_header usability... " >&6; }
  14731. cat >conftest.$ac_ext <<_ACEOF
  14732. /* confdefs.h. */
  14733. _ACEOF
  14734. cat confdefs.h >>conftest.$ac_ext
  14735. cat >>conftest.$ac_ext <<_ACEOF
  14736. /* end confdefs.h. */
  14737. $ac_includes_default
  14738. #include <$ac_header>
  14739. _ACEOF
  14740. rm -f conftest.$ac_objext
  14741. if { (ac_try="$ac_compile"
  14742. case "(($ac_try" in
  14743. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14744. *) ac_try_echo=$ac_try;;
  14745. esac
  14746. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14747. $as_echo "$ac_try_echo") >&5
  14748. (eval "$ac_compile") 2>conftest.er1
  14749. ac_status=$?
  14750. grep -v '^ *+' conftest.er1 >conftest.err
  14751. rm -f conftest.er1
  14752. cat conftest.err >&5
  14753. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14754. (exit $ac_status); } && {
  14755. test -z "$ac_cxx_werror_flag" ||
  14756. test ! -s conftest.err
  14757. } && test -s conftest.$ac_objext; then
  14758. ac_header_compiler=yes
  14759. else
  14760. $as_echo "$as_me: failed program was:" >&5
  14761. sed 's/^/| /' conftest.$ac_ext >&5
  14762. ac_header_compiler=no
  14763. fi
  14764. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14765. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14766. $as_echo "$ac_header_compiler" >&6; }
  14767. # Is the header present?
  14768. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  14769. $as_echo_n "checking $ac_header presence... " >&6; }
  14770. cat >conftest.$ac_ext <<_ACEOF
  14771. /* confdefs.h. */
  14772. _ACEOF
  14773. cat confdefs.h >>conftest.$ac_ext
  14774. cat >>conftest.$ac_ext <<_ACEOF
  14775. /* end confdefs.h. */
  14776. #include <$ac_header>
  14777. _ACEOF
  14778. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14779. case "(($ac_try" in
  14780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14781. *) ac_try_echo=$ac_try;;
  14782. esac
  14783. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14784. $as_echo "$ac_try_echo") >&5
  14785. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14786. ac_status=$?
  14787. grep -v '^ *+' conftest.er1 >conftest.err
  14788. rm -f conftest.er1
  14789. cat conftest.err >&5
  14790. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14791. (exit $ac_status); } >/dev/null && {
  14792. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  14793. test ! -s conftest.err
  14794. }; then
  14795. ac_header_preproc=yes
  14796. else
  14797. $as_echo "$as_me: failed program was:" >&5
  14798. sed 's/^/| /' conftest.$ac_ext >&5
  14799. ac_header_preproc=no
  14800. fi
  14801. rm -f conftest.err conftest.$ac_ext
  14802. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14803. $as_echo "$ac_header_preproc" >&6; }
  14804. # So? What about this header?
  14805. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  14806. yes:no: )
  14807. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  14808. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14809. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  14810. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  14811. ac_header_preproc=yes
  14812. ;;
  14813. no:yes:* )
  14814. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  14815. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  14816. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  14817. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  14818. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  14819. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  14820. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  14821. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  14822. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  14823. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  14824. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  14825. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  14826. ( cat <<\_ASBOX
  14827. ## ----------------------------------------------- ##
  14828. ## Report this to t-tujikawa@users.sourceforge.net ##
  14829. ## ----------------------------------------------- ##
  14830. _ASBOX
  14831. ) | sed "s/^/$as_me: WARNING: /" >&2
  14832. ;;
  14833. esac
  14834. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  14835. $as_echo_n "checking for $ac_header... " >&6; }
  14836. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  14837. $as_echo_n "(cached) " >&6
  14838. else
  14839. eval "$as_ac_Header=\$ac_header_preproc"
  14840. fi
  14841. ac_res=`eval 'as_val=${'$as_ac_Header'}
  14842. $as_echo "$as_val"'`
  14843. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  14844. $as_echo "$ac_res" >&6; }
  14845. fi
  14846. as_val=`eval 'as_val=${'$as_ac_Header'}
  14847. $as_echo "$as_val"'`
  14848. if test "x$as_val" = x""yes; then
  14849. cat >>confdefs.h <<_ACEOF
  14850. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14851. _ACEOF
  14852. fi
  14853. done
  14854. { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
  14855. $as_echo_n "checking for SIZE_MAX... " >&6; }
  14856. if test "${gl_cv_size_max+set}" = set; then
  14857. $as_echo_n "(cached) " >&6
  14858. else
  14859. gl_cv_size_max=
  14860. cat >conftest.$ac_ext <<_ACEOF
  14861. /* confdefs.h. */
  14862. _ACEOF
  14863. cat confdefs.h >>conftest.$ac_ext
  14864. cat >>conftest.$ac_ext <<_ACEOF
  14865. /* end confdefs.h. */
  14866. #include <limits.h>
  14867. #if HAVE_STDINT_H
  14868. #include <stdint.h>
  14869. #endif
  14870. #ifdef SIZE_MAX
  14871. Found it
  14872. #endif
  14873. _ACEOF
  14874. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14875. $EGREP "Found it" >/dev/null 2>&1; then
  14876. gl_cv_size_max=yes
  14877. fi
  14878. rm -f conftest*
  14879. if test -z "$gl_cv_size_max"; then
  14880. if test "$cross_compiling" = yes; then
  14881. # Depending upon the size, compute the lo and hi bounds.
  14882. cat >conftest.$ac_ext <<_ACEOF
  14883. /* confdefs.h. */
  14884. _ACEOF
  14885. cat confdefs.h >>conftest.$ac_ext
  14886. cat >>conftest.$ac_ext <<_ACEOF
  14887. /* end confdefs.h. */
  14888. #include <stddef.h>
  14889. #include <limits.h>
  14890. int
  14891. main ()
  14892. {
  14893. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
  14894. test_array [0] = 0
  14895. ;
  14896. return 0;
  14897. }
  14898. _ACEOF
  14899. rm -f conftest.$ac_objext
  14900. if { (ac_try="$ac_compile"
  14901. case "(($ac_try" in
  14902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14903. *) ac_try_echo=$ac_try;;
  14904. esac
  14905. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14906. $as_echo "$ac_try_echo") >&5
  14907. (eval "$ac_compile") 2>conftest.er1
  14908. ac_status=$?
  14909. grep -v '^ *+' conftest.er1 >conftest.err
  14910. rm -f conftest.er1
  14911. cat conftest.err >&5
  14912. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14913. (exit $ac_status); } && {
  14914. test -z "$ac_cxx_werror_flag" ||
  14915. test ! -s conftest.err
  14916. } && test -s conftest.$ac_objext; then
  14917. ac_lo=0 ac_mid=0
  14918. while :; do
  14919. cat >conftest.$ac_ext <<_ACEOF
  14920. /* confdefs.h. */
  14921. _ACEOF
  14922. cat confdefs.h >>conftest.$ac_ext
  14923. cat >>conftest.$ac_ext <<_ACEOF
  14924. /* end confdefs.h. */
  14925. #include <stddef.h>
  14926. #include <limits.h>
  14927. int
  14928. main ()
  14929. {
  14930. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  14931. test_array [0] = 0
  14932. ;
  14933. return 0;
  14934. }
  14935. _ACEOF
  14936. rm -f conftest.$ac_objext
  14937. if { (ac_try="$ac_compile"
  14938. case "(($ac_try" in
  14939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14940. *) ac_try_echo=$ac_try;;
  14941. esac
  14942. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14943. $as_echo "$ac_try_echo") >&5
  14944. (eval "$ac_compile") 2>conftest.er1
  14945. ac_status=$?
  14946. grep -v '^ *+' conftest.er1 >conftest.err
  14947. rm -f conftest.er1
  14948. cat conftest.err >&5
  14949. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14950. (exit $ac_status); } && {
  14951. test -z "$ac_cxx_werror_flag" ||
  14952. test ! -s conftest.err
  14953. } && test -s conftest.$ac_objext; then
  14954. ac_hi=$ac_mid; break
  14955. else
  14956. $as_echo "$as_me: failed program was:" >&5
  14957. sed 's/^/| /' conftest.$ac_ext >&5
  14958. ac_lo=`expr $ac_mid + 1`
  14959. if test $ac_lo -le $ac_mid; then
  14960. ac_lo= ac_hi=
  14961. break
  14962. fi
  14963. ac_mid=`expr 2 '*' $ac_mid + 1`
  14964. fi
  14965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14966. done
  14967. else
  14968. $as_echo "$as_me: failed program was:" >&5
  14969. sed 's/^/| /' conftest.$ac_ext >&5
  14970. cat >conftest.$ac_ext <<_ACEOF
  14971. /* confdefs.h. */
  14972. _ACEOF
  14973. cat confdefs.h >>conftest.$ac_ext
  14974. cat >>conftest.$ac_ext <<_ACEOF
  14975. /* end confdefs.h. */
  14976. #include <stddef.h>
  14977. #include <limits.h>
  14978. int
  14979. main ()
  14980. {
  14981. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
  14982. test_array [0] = 0
  14983. ;
  14984. return 0;
  14985. }
  14986. _ACEOF
  14987. rm -f conftest.$ac_objext
  14988. if { (ac_try="$ac_compile"
  14989. case "(($ac_try" in
  14990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14991. *) ac_try_echo=$ac_try;;
  14992. esac
  14993. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14994. $as_echo "$ac_try_echo") >&5
  14995. (eval "$ac_compile") 2>conftest.er1
  14996. ac_status=$?
  14997. grep -v '^ *+' conftest.er1 >conftest.err
  14998. rm -f conftest.er1
  14999. cat conftest.err >&5
  15000. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15001. (exit $ac_status); } && {
  15002. test -z "$ac_cxx_werror_flag" ||
  15003. test ! -s conftest.err
  15004. } && test -s conftest.$ac_objext; then
  15005. ac_hi=-1 ac_mid=-1
  15006. while :; do
  15007. cat >conftest.$ac_ext <<_ACEOF
  15008. /* confdefs.h. */
  15009. _ACEOF
  15010. cat confdefs.h >>conftest.$ac_ext
  15011. cat >>conftest.$ac_ext <<_ACEOF
  15012. /* end confdefs.h. */
  15013. #include <stddef.h>
  15014. #include <limits.h>
  15015. int
  15016. main ()
  15017. {
  15018. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
  15019. test_array [0] = 0
  15020. ;
  15021. return 0;
  15022. }
  15023. _ACEOF
  15024. rm -f conftest.$ac_objext
  15025. if { (ac_try="$ac_compile"
  15026. case "(($ac_try" in
  15027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15028. *) ac_try_echo=$ac_try;;
  15029. esac
  15030. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15031. $as_echo "$ac_try_echo") >&5
  15032. (eval "$ac_compile") 2>conftest.er1
  15033. ac_status=$?
  15034. grep -v '^ *+' conftest.er1 >conftest.err
  15035. rm -f conftest.er1
  15036. cat conftest.err >&5
  15037. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15038. (exit $ac_status); } && {
  15039. test -z "$ac_cxx_werror_flag" ||
  15040. test ! -s conftest.err
  15041. } && test -s conftest.$ac_objext; then
  15042. ac_lo=$ac_mid; break
  15043. else
  15044. $as_echo "$as_me: failed program was:" >&5
  15045. sed 's/^/| /' conftest.$ac_ext >&5
  15046. ac_hi=`expr '(' $ac_mid ')' - 1`
  15047. if test $ac_mid -le $ac_hi; then
  15048. ac_lo= ac_hi=
  15049. break
  15050. fi
  15051. ac_mid=`expr 2 '*' $ac_mid`
  15052. fi
  15053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15054. done
  15055. else
  15056. $as_echo "$as_me: failed program was:" >&5
  15057. sed 's/^/| /' conftest.$ac_ext >&5
  15058. ac_lo= ac_hi=
  15059. fi
  15060. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15061. fi
  15062. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15063. # Binary search between lo and hi bounds.
  15064. while test "x$ac_lo" != "x$ac_hi"; do
  15065. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15066. cat >conftest.$ac_ext <<_ACEOF
  15067. /* confdefs.h. */
  15068. _ACEOF
  15069. cat confdefs.h >>conftest.$ac_ext
  15070. cat >>conftest.$ac_ext <<_ACEOF
  15071. /* end confdefs.h. */
  15072. #include <stddef.h>
  15073. #include <limits.h>
  15074. int
  15075. main ()
  15076. {
  15077. static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
  15078. test_array [0] = 0
  15079. ;
  15080. return 0;
  15081. }
  15082. _ACEOF
  15083. rm -f conftest.$ac_objext
  15084. if { (ac_try="$ac_compile"
  15085. case "(($ac_try" in
  15086. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15087. *) ac_try_echo=$ac_try;;
  15088. esac
  15089. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15090. $as_echo "$ac_try_echo") >&5
  15091. (eval "$ac_compile") 2>conftest.er1
  15092. ac_status=$?
  15093. grep -v '^ *+' conftest.er1 >conftest.err
  15094. rm -f conftest.er1
  15095. cat conftest.err >&5
  15096. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15097. (exit $ac_status); } && {
  15098. test -z "$ac_cxx_werror_flag" ||
  15099. test ! -s conftest.err
  15100. } && test -s conftest.$ac_objext; then
  15101. ac_hi=$ac_mid
  15102. else
  15103. $as_echo "$as_me: failed program was:" >&5
  15104. sed 's/^/| /' conftest.$ac_ext >&5
  15105. ac_lo=`expr '(' $ac_mid ')' + 1`
  15106. fi
  15107. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15108. done
  15109. case $ac_lo in
  15110. ?*) size_t_bits_minus_1=$ac_lo;;
  15111. '') size_t_bits_minus_1= ;;
  15112. esac
  15113. else
  15114. cat >conftest.$ac_ext <<_ACEOF
  15115. /* confdefs.h. */
  15116. _ACEOF
  15117. cat confdefs.h >>conftest.$ac_ext
  15118. cat >>conftest.$ac_ext <<_ACEOF
  15119. /* end confdefs.h. */
  15120. #include <stddef.h>
  15121. #include <limits.h>
  15122. static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
  15123. static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
  15124. #include <stdio.h>
  15125. #include <stdlib.h>
  15126. int
  15127. main ()
  15128. {
  15129. FILE *f = fopen ("conftest.val", "w");
  15130. if (! f)
  15131. return 1;
  15132. if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
  15133. {
  15134. long int i = longval ();
  15135. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  15136. return 1;
  15137. fprintf (f, "%ld", i);
  15138. }
  15139. else
  15140. {
  15141. unsigned long int i = ulongval ();
  15142. if (i != (sizeof (size_t) * CHAR_BIT - 1))
  15143. return 1;
  15144. fprintf (f, "%lu", i);
  15145. }
  15146. /* Do not output a trailing newline, as this causes \r\n confusion
  15147. on some platforms. */
  15148. return ferror (f) || fclose (f) != 0;
  15149. ;
  15150. return 0;
  15151. }
  15152. _ACEOF
  15153. rm -f conftest$ac_exeext
  15154. if { (ac_try="$ac_link"
  15155. case "(($ac_try" in
  15156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15157. *) ac_try_echo=$ac_try;;
  15158. esac
  15159. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15160. $as_echo "$ac_try_echo") >&5
  15161. (eval "$ac_link") 2>&5
  15162. ac_status=$?
  15163. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15164. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15165. { (case "(($ac_try" in
  15166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15167. *) ac_try_echo=$ac_try;;
  15168. esac
  15169. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15170. $as_echo "$ac_try_echo") >&5
  15171. (eval "$ac_try") 2>&5
  15172. ac_status=$?
  15173. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15174. (exit $ac_status); }; }; then
  15175. size_t_bits_minus_1=`cat conftest.val`
  15176. else
  15177. $as_echo "$as_me: program exited with status $ac_status" >&5
  15178. $as_echo "$as_me: failed program was:" >&5
  15179. sed 's/^/| /' conftest.$ac_ext >&5
  15180. ( exit $ac_status )
  15181. size_t_bits_minus_1=
  15182. fi
  15183. rm -rf conftest.dSYM
  15184. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15185. fi
  15186. rm -f conftest.val
  15187. if test "$cross_compiling" = yes; then
  15188. # Depending upon the size, compute the lo and hi bounds.
  15189. cat >conftest.$ac_ext <<_ACEOF
  15190. /* confdefs.h. */
  15191. _ACEOF
  15192. cat confdefs.h >>conftest.$ac_ext
  15193. cat >>conftest.$ac_ext <<_ACEOF
  15194. /* end confdefs.h. */
  15195. #include <stddef.h>
  15196. int
  15197. main ()
  15198. {
  15199. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
  15200. test_array [0] = 0
  15201. ;
  15202. return 0;
  15203. }
  15204. _ACEOF
  15205. rm -f conftest.$ac_objext
  15206. if { (ac_try="$ac_compile"
  15207. case "(($ac_try" in
  15208. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15209. *) ac_try_echo=$ac_try;;
  15210. esac
  15211. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15212. $as_echo "$ac_try_echo") >&5
  15213. (eval "$ac_compile") 2>conftest.er1
  15214. ac_status=$?
  15215. grep -v '^ *+' conftest.er1 >conftest.err
  15216. rm -f conftest.er1
  15217. cat conftest.err >&5
  15218. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15219. (exit $ac_status); } && {
  15220. test -z "$ac_cxx_werror_flag" ||
  15221. test ! -s conftest.err
  15222. } && test -s conftest.$ac_objext; then
  15223. ac_lo=0 ac_mid=0
  15224. while :; do
  15225. cat >conftest.$ac_ext <<_ACEOF
  15226. /* confdefs.h. */
  15227. _ACEOF
  15228. cat confdefs.h >>conftest.$ac_ext
  15229. cat >>conftest.$ac_ext <<_ACEOF
  15230. /* end confdefs.h. */
  15231. #include <stddef.h>
  15232. int
  15233. main ()
  15234. {
  15235. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  15236. test_array [0] = 0
  15237. ;
  15238. return 0;
  15239. }
  15240. _ACEOF
  15241. rm -f conftest.$ac_objext
  15242. if { (ac_try="$ac_compile"
  15243. case "(($ac_try" in
  15244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15245. *) ac_try_echo=$ac_try;;
  15246. esac
  15247. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15248. $as_echo "$ac_try_echo") >&5
  15249. (eval "$ac_compile") 2>conftest.er1
  15250. ac_status=$?
  15251. grep -v '^ *+' conftest.er1 >conftest.err
  15252. rm -f conftest.er1
  15253. cat conftest.err >&5
  15254. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15255. (exit $ac_status); } && {
  15256. test -z "$ac_cxx_werror_flag" ||
  15257. test ! -s conftest.err
  15258. } && test -s conftest.$ac_objext; then
  15259. ac_hi=$ac_mid; break
  15260. else
  15261. $as_echo "$as_me: failed program was:" >&5
  15262. sed 's/^/| /' conftest.$ac_ext >&5
  15263. ac_lo=`expr $ac_mid + 1`
  15264. if test $ac_lo -le $ac_mid; then
  15265. ac_lo= ac_hi=
  15266. break
  15267. fi
  15268. ac_mid=`expr 2 '*' $ac_mid + 1`
  15269. fi
  15270. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15271. done
  15272. else
  15273. $as_echo "$as_me: failed program was:" >&5
  15274. sed 's/^/| /' conftest.$ac_ext >&5
  15275. cat >conftest.$ac_ext <<_ACEOF
  15276. /* confdefs.h. */
  15277. _ACEOF
  15278. cat confdefs.h >>conftest.$ac_ext
  15279. cat >>conftest.$ac_ext <<_ACEOF
  15280. /* end confdefs.h. */
  15281. #include <stddef.h>
  15282. int
  15283. main ()
  15284. {
  15285. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
  15286. test_array [0] = 0
  15287. ;
  15288. return 0;
  15289. }
  15290. _ACEOF
  15291. rm -f conftest.$ac_objext
  15292. if { (ac_try="$ac_compile"
  15293. case "(($ac_try" in
  15294. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15295. *) ac_try_echo=$ac_try;;
  15296. esac
  15297. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15298. $as_echo "$ac_try_echo") >&5
  15299. (eval "$ac_compile") 2>conftest.er1
  15300. ac_status=$?
  15301. grep -v '^ *+' conftest.er1 >conftest.err
  15302. rm -f conftest.er1
  15303. cat conftest.err >&5
  15304. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15305. (exit $ac_status); } && {
  15306. test -z "$ac_cxx_werror_flag" ||
  15307. test ! -s conftest.err
  15308. } && test -s conftest.$ac_objext; then
  15309. ac_hi=-1 ac_mid=-1
  15310. while :; do
  15311. cat >conftest.$ac_ext <<_ACEOF
  15312. /* confdefs.h. */
  15313. _ACEOF
  15314. cat confdefs.h >>conftest.$ac_ext
  15315. cat >>conftest.$ac_ext <<_ACEOF
  15316. /* end confdefs.h. */
  15317. #include <stddef.h>
  15318. int
  15319. main ()
  15320. {
  15321. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
  15322. test_array [0] = 0
  15323. ;
  15324. return 0;
  15325. }
  15326. _ACEOF
  15327. rm -f conftest.$ac_objext
  15328. if { (ac_try="$ac_compile"
  15329. case "(($ac_try" in
  15330. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15331. *) ac_try_echo=$ac_try;;
  15332. esac
  15333. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15334. $as_echo "$ac_try_echo") >&5
  15335. (eval "$ac_compile") 2>conftest.er1
  15336. ac_status=$?
  15337. grep -v '^ *+' conftest.er1 >conftest.err
  15338. rm -f conftest.er1
  15339. cat conftest.err >&5
  15340. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15341. (exit $ac_status); } && {
  15342. test -z "$ac_cxx_werror_flag" ||
  15343. test ! -s conftest.err
  15344. } && test -s conftest.$ac_objext; then
  15345. ac_lo=$ac_mid; break
  15346. else
  15347. $as_echo "$as_me: failed program was:" >&5
  15348. sed 's/^/| /' conftest.$ac_ext >&5
  15349. ac_hi=`expr '(' $ac_mid ')' - 1`
  15350. if test $ac_mid -le $ac_hi; then
  15351. ac_lo= ac_hi=
  15352. break
  15353. fi
  15354. ac_mid=`expr 2 '*' $ac_mid`
  15355. fi
  15356. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15357. done
  15358. else
  15359. $as_echo "$as_me: failed program was:" >&5
  15360. sed 's/^/| /' conftest.$ac_ext >&5
  15361. ac_lo= ac_hi=
  15362. fi
  15363. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15364. fi
  15365. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15366. # Binary search between lo and hi bounds.
  15367. while test "x$ac_lo" != "x$ac_hi"; do
  15368. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  15369. cat >conftest.$ac_ext <<_ACEOF
  15370. /* confdefs.h. */
  15371. _ACEOF
  15372. cat confdefs.h >>conftest.$ac_ext
  15373. cat >>conftest.$ac_ext <<_ACEOF
  15374. /* end confdefs.h. */
  15375. #include <stddef.h>
  15376. int
  15377. main ()
  15378. {
  15379. static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
  15380. test_array [0] = 0
  15381. ;
  15382. return 0;
  15383. }
  15384. _ACEOF
  15385. rm -f conftest.$ac_objext
  15386. if { (ac_try="$ac_compile"
  15387. case "(($ac_try" in
  15388. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15389. *) ac_try_echo=$ac_try;;
  15390. esac
  15391. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15392. $as_echo "$ac_try_echo") >&5
  15393. (eval "$ac_compile") 2>conftest.er1
  15394. ac_status=$?
  15395. grep -v '^ *+' conftest.er1 >conftest.err
  15396. rm -f conftest.er1
  15397. cat conftest.err >&5
  15398. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15399. (exit $ac_status); } && {
  15400. test -z "$ac_cxx_werror_flag" ||
  15401. test ! -s conftest.err
  15402. } && test -s conftest.$ac_objext; then
  15403. ac_hi=$ac_mid
  15404. else
  15405. $as_echo "$as_me: failed program was:" >&5
  15406. sed 's/^/| /' conftest.$ac_ext >&5
  15407. ac_lo=`expr '(' $ac_mid ')' + 1`
  15408. fi
  15409. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15410. done
  15411. case $ac_lo in
  15412. ?*) fits_in_uint=$ac_lo;;
  15413. '') fits_in_uint= ;;
  15414. esac
  15415. else
  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 <stddef.h>
  15423. static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
  15424. static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
  15425. #include <stdio.h>
  15426. #include <stdlib.h>
  15427. int
  15428. main ()
  15429. {
  15430. FILE *f = fopen ("conftest.val", "w");
  15431. if (! f)
  15432. return 1;
  15433. if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
  15434. {
  15435. long int i = longval ();
  15436. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  15437. return 1;
  15438. fprintf (f, "%ld", i);
  15439. }
  15440. else
  15441. {
  15442. unsigned long int i = ulongval ();
  15443. if (i != (sizeof (size_t) <= sizeof (unsigned int)))
  15444. return 1;
  15445. fprintf (f, "%lu", i);
  15446. }
  15447. /* Do not output a trailing newline, as this causes \r\n confusion
  15448. on some platforms. */
  15449. return ferror (f) || fclose (f) != 0;
  15450. ;
  15451. return 0;
  15452. }
  15453. _ACEOF
  15454. rm -f conftest$ac_exeext
  15455. if { (ac_try="$ac_link"
  15456. case "(($ac_try" in
  15457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15458. *) ac_try_echo=$ac_try;;
  15459. esac
  15460. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15461. $as_echo "$ac_try_echo") >&5
  15462. (eval "$ac_link") 2>&5
  15463. ac_status=$?
  15464. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15465. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  15466. { (case "(($ac_try" in
  15467. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15468. *) ac_try_echo=$ac_try;;
  15469. esac
  15470. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15471. $as_echo "$ac_try_echo") >&5
  15472. (eval "$ac_try") 2>&5
  15473. ac_status=$?
  15474. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15475. (exit $ac_status); }; }; then
  15476. fits_in_uint=`cat conftest.val`
  15477. else
  15478. $as_echo "$as_me: program exited with status $ac_status" >&5
  15479. $as_echo "$as_me: failed program was:" >&5
  15480. sed 's/^/| /' conftest.$ac_ext >&5
  15481. ( exit $ac_status )
  15482. fits_in_uint=
  15483. fi
  15484. rm -rf conftest.dSYM
  15485. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  15486. fi
  15487. rm -f conftest.val
  15488. if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
  15489. if test $fits_in_uint = 1; then
  15490. cat >conftest.$ac_ext <<_ACEOF
  15491. /* confdefs.h. */
  15492. _ACEOF
  15493. cat confdefs.h >>conftest.$ac_ext
  15494. cat >>conftest.$ac_ext <<_ACEOF
  15495. /* end confdefs.h. */
  15496. #include <stddef.h>
  15497. extern size_t foo;
  15498. extern unsigned long foo;
  15499. int
  15500. main ()
  15501. {
  15502. ;
  15503. return 0;
  15504. }
  15505. _ACEOF
  15506. rm -f conftest.$ac_objext
  15507. if { (ac_try="$ac_compile"
  15508. case "(($ac_try" in
  15509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15510. *) ac_try_echo=$ac_try;;
  15511. esac
  15512. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15513. $as_echo "$ac_try_echo") >&5
  15514. (eval "$ac_compile") 2>conftest.er1
  15515. ac_status=$?
  15516. grep -v '^ *+' conftest.er1 >conftest.err
  15517. rm -f conftest.er1
  15518. cat conftest.err >&5
  15519. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15520. (exit $ac_status); } && {
  15521. test -z "$ac_cxx_werror_flag" ||
  15522. test ! -s conftest.err
  15523. } && test -s conftest.$ac_objext; then
  15524. fits_in_uint=0
  15525. else
  15526. $as_echo "$as_me: failed program was:" >&5
  15527. sed 's/^/| /' conftest.$ac_ext >&5
  15528. fi
  15529. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15530. fi
  15531. if test $fits_in_uint = 1; then
  15532. gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
  15533. else
  15534. gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
  15535. fi
  15536. else
  15537. gl_cv_size_max='((size_t)~(size_t)0)'
  15538. fi
  15539. fi
  15540. fi
  15541. { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
  15542. $as_echo "$gl_cv_size_max" >&6; }
  15543. if test "$gl_cv_size_max" != yes; then
  15544. cat >>confdefs.h <<_ACEOF
  15545. #define SIZE_MAX $gl_cv_size_max
  15546. _ACEOF
  15547. fi
  15548. for ac_header in stdint.h
  15549. do
  15550. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15551. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15552. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15553. $as_echo_n "checking for $ac_header... " >&6; }
  15554. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15555. $as_echo_n "(cached) " >&6
  15556. fi
  15557. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15558. $as_echo "$as_val"'`
  15559. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15560. $as_echo "$ac_res" >&6; }
  15561. else
  15562. # Is the header compilable?
  15563. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15564. $as_echo_n "checking $ac_header usability... " >&6; }
  15565. cat >conftest.$ac_ext <<_ACEOF
  15566. /* confdefs.h. */
  15567. _ACEOF
  15568. cat confdefs.h >>conftest.$ac_ext
  15569. cat >>conftest.$ac_ext <<_ACEOF
  15570. /* end confdefs.h. */
  15571. $ac_includes_default
  15572. #include <$ac_header>
  15573. _ACEOF
  15574. rm -f conftest.$ac_objext
  15575. if { (ac_try="$ac_compile"
  15576. case "(($ac_try" in
  15577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15578. *) ac_try_echo=$ac_try;;
  15579. esac
  15580. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15581. $as_echo "$ac_try_echo") >&5
  15582. (eval "$ac_compile") 2>conftest.er1
  15583. ac_status=$?
  15584. grep -v '^ *+' conftest.er1 >conftest.err
  15585. rm -f conftest.er1
  15586. cat conftest.err >&5
  15587. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15588. (exit $ac_status); } && {
  15589. test -z "$ac_cxx_werror_flag" ||
  15590. test ! -s conftest.err
  15591. } && test -s conftest.$ac_objext; then
  15592. ac_header_compiler=yes
  15593. else
  15594. $as_echo "$as_me: failed program was:" >&5
  15595. sed 's/^/| /' conftest.$ac_ext >&5
  15596. ac_header_compiler=no
  15597. fi
  15598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15599. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15600. $as_echo "$ac_header_compiler" >&6; }
  15601. # Is the header present?
  15602. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15603. $as_echo_n "checking $ac_header presence... " >&6; }
  15604. cat >conftest.$ac_ext <<_ACEOF
  15605. /* confdefs.h. */
  15606. _ACEOF
  15607. cat confdefs.h >>conftest.$ac_ext
  15608. cat >>conftest.$ac_ext <<_ACEOF
  15609. /* end confdefs.h. */
  15610. #include <$ac_header>
  15611. _ACEOF
  15612. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15613. case "(($ac_try" in
  15614. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15615. *) ac_try_echo=$ac_try;;
  15616. esac
  15617. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15618. $as_echo "$ac_try_echo") >&5
  15619. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15620. ac_status=$?
  15621. grep -v '^ *+' conftest.er1 >conftest.err
  15622. rm -f conftest.er1
  15623. cat conftest.err >&5
  15624. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15625. (exit $ac_status); } >/dev/null && {
  15626. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15627. test ! -s conftest.err
  15628. }; then
  15629. ac_header_preproc=yes
  15630. else
  15631. $as_echo "$as_me: failed program was:" >&5
  15632. sed 's/^/| /' conftest.$ac_ext >&5
  15633. ac_header_preproc=no
  15634. fi
  15635. rm -f conftest.err conftest.$ac_ext
  15636. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15637. $as_echo "$ac_header_preproc" >&6; }
  15638. # So? What about this header?
  15639. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  15640. yes:no: )
  15641. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  15642. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15643. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  15644. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  15645. ac_header_preproc=yes
  15646. ;;
  15647. no:yes:* )
  15648. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  15649. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  15650. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  15651. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  15652. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  15653. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  15654. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  15655. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  15656. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  15657. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  15658. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  15659. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  15660. ( cat <<\_ASBOX
  15661. ## ----------------------------------------------- ##
  15662. ## Report this to t-tujikawa@users.sourceforge.net ##
  15663. ## ----------------------------------------------- ##
  15664. _ASBOX
  15665. ) | sed "s/^/$as_me: WARNING: /" >&2
  15666. ;;
  15667. esac
  15668. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15669. $as_echo_n "checking for $ac_header... " >&6; }
  15670. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15671. $as_echo_n "(cached) " >&6
  15672. else
  15673. eval "$as_ac_Header=\$ac_header_preproc"
  15674. fi
  15675. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15676. $as_echo "$as_val"'`
  15677. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15678. $as_echo "$ac_res" >&6; }
  15679. fi
  15680. as_val=`eval 'as_val=${'$as_ac_Header'}
  15681. $as_echo "$as_val"'`
  15682. if test "x$as_val" = x""yes; then
  15683. cat >>confdefs.h <<_ACEOF
  15684. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15685. _ACEOF
  15686. fi
  15687. done
  15688. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  15689. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  15690. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  15691. $as_echo_n "(cached) " >&6
  15692. else
  15693. gt_save_LIBS="$LIBS"
  15694. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15695. cat >conftest.$ac_ext <<_ACEOF
  15696. /* confdefs.h. */
  15697. _ACEOF
  15698. cat confdefs.h >>conftest.$ac_ext
  15699. cat >>conftest.$ac_ext <<_ACEOF
  15700. /* end confdefs.h. */
  15701. #include <CoreFoundation/CFPreferences.h>
  15702. int
  15703. main ()
  15704. {
  15705. CFPreferencesCopyAppValue(NULL, NULL)
  15706. ;
  15707. return 0;
  15708. }
  15709. _ACEOF
  15710. rm -f conftest.$ac_objext conftest$ac_exeext
  15711. if { (ac_try="$ac_link"
  15712. case "(($ac_try" in
  15713. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15714. *) ac_try_echo=$ac_try;;
  15715. esac
  15716. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15717. $as_echo "$ac_try_echo") >&5
  15718. (eval "$ac_link") 2>conftest.er1
  15719. ac_status=$?
  15720. grep -v '^ *+' conftest.er1 >conftest.err
  15721. rm -f conftest.er1
  15722. cat conftest.err >&5
  15723. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15724. (exit $ac_status); } && {
  15725. test -z "$ac_cxx_werror_flag" ||
  15726. test ! -s conftest.err
  15727. } && test -s conftest$ac_exeext && {
  15728. test "$cross_compiling" = yes ||
  15729. $as_test_x conftest$ac_exeext
  15730. }; then
  15731. gt_cv_func_CFPreferencesCopyAppValue=yes
  15732. else
  15733. $as_echo "$as_me: failed program was:" >&5
  15734. sed 's/^/| /' conftest.$ac_ext >&5
  15735. gt_cv_func_CFPreferencesCopyAppValue=no
  15736. fi
  15737. rm -rf conftest.dSYM
  15738. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15739. conftest$ac_exeext conftest.$ac_ext
  15740. LIBS="$gt_save_LIBS"
  15741. fi
  15742. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  15743. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  15744. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  15745. cat >>confdefs.h <<\_ACEOF
  15746. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  15747. _ACEOF
  15748. fi
  15749. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  15750. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  15751. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  15752. $as_echo_n "(cached) " >&6
  15753. else
  15754. gt_save_LIBS="$LIBS"
  15755. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  15756. cat >conftest.$ac_ext <<_ACEOF
  15757. /* confdefs.h. */
  15758. _ACEOF
  15759. cat confdefs.h >>conftest.$ac_ext
  15760. cat >>conftest.$ac_ext <<_ACEOF
  15761. /* end confdefs.h. */
  15762. #include <CoreFoundation/CFLocale.h>
  15763. int
  15764. main ()
  15765. {
  15766. CFLocaleCopyCurrent();
  15767. ;
  15768. return 0;
  15769. }
  15770. _ACEOF
  15771. rm -f conftest.$ac_objext conftest$ac_exeext
  15772. if { (ac_try="$ac_link"
  15773. case "(($ac_try" in
  15774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15775. *) ac_try_echo=$ac_try;;
  15776. esac
  15777. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15778. $as_echo "$ac_try_echo") >&5
  15779. (eval "$ac_link") 2>conftest.er1
  15780. ac_status=$?
  15781. grep -v '^ *+' conftest.er1 >conftest.err
  15782. rm -f conftest.er1
  15783. cat conftest.err >&5
  15784. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15785. (exit $ac_status); } && {
  15786. test -z "$ac_cxx_werror_flag" ||
  15787. test ! -s conftest.err
  15788. } && test -s conftest$ac_exeext && {
  15789. test "$cross_compiling" = yes ||
  15790. $as_test_x conftest$ac_exeext
  15791. }; then
  15792. gt_cv_func_CFLocaleCopyCurrent=yes
  15793. else
  15794. $as_echo "$as_me: failed program was:" >&5
  15795. sed 's/^/| /' conftest.$ac_ext >&5
  15796. gt_cv_func_CFLocaleCopyCurrent=no
  15797. fi
  15798. rm -rf conftest.dSYM
  15799. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15800. conftest$ac_exeext conftest.$ac_ext
  15801. LIBS="$gt_save_LIBS"
  15802. fi
  15803. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  15804. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  15805. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15806. cat >>confdefs.h <<\_ACEOF
  15807. #define HAVE_CFLOCALECOPYCURRENT 1
  15808. _ACEOF
  15809. fi
  15810. INTL_MACOSX_LIBS=
  15811. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  15812. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  15813. fi
  15814. { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
  15815. $as_echo_n "checking for ptrdiff_t... " >&6; }
  15816. if test "${ac_cv_type_ptrdiff_t+set}" = set; then
  15817. $as_echo_n "(cached) " >&6
  15818. else
  15819. ac_cv_type_ptrdiff_t=no
  15820. cat >conftest.$ac_ext <<_ACEOF
  15821. /* confdefs.h. */
  15822. _ACEOF
  15823. cat confdefs.h >>conftest.$ac_ext
  15824. cat >>conftest.$ac_ext <<_ACEOF
  15825. /* end confdefs.h. */
  15826. $ac_includes_default
  15827. int
  15828. main ()
  15829. {
  15830. if (sizeof (ptrdiff_t))
  15831. return 0;
  15832. ;
  15833. return 0;
  15834. }
  15835. _ACEOF
  15836. rm -f conftest.$ac_objext
  15837. if { (ac_try="$ac_compile"
  15838. case "(($ac_try" in
  15839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15840. *) ac_try_echo=$ac_try;;
  15841. esac
  15842. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15843. $as_echo "$ac_try_echo") >&5
  15844. (eval "$ac_compile") 2>conftest.er1
  15845. ac_status=$?
  15846. grep -v '^ *+' conftest.er1 >conftest.err
  15847. rm -f conftest.er1
  15848. cat conftest.err >&5
  15849. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15850. (exit $ac_status); } && {
  15851. test -z "$ac_cxx_werror_flag" ||
  15852. test ! -s conftest.err
  15853. } && test -s conftest.$ac_objext; then
  15854. cat >conftest.$ac_ext <<_ACEOF
  15855. /* confdefs.h. */
  15856. _ACEOF
  15857. cat confdefs.h >>conftest.$ac_ext
  15858. cat >>conftest.$ac_ext <<_ACEOF
  15859. /* end confdefs.h. */
  15860. $ac_includes_default
  15861. int
  15862. main ()
  15863. {
  15864. if (sizeof ((ptrdiff_t)))
  15865. return 0;
  15866. ;
  15867. return 0;
  15868. }
  15869. _ACEOF
  15870. rm -f conftest.$ac_objext
  15871. if { (ac_try="$ac_compile"
  15872. case "(($ac_try" in
  15873. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15874. *) ac_try_echo=$ac_try;;
  15875. esac
  15876. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15877. $as_echo "$ac_try_echo") >&5
  15878. (eval "$ac_compile") 2>conftest.er1
  15879. ac_status=$?
  15880. grep -v '^ *+' conftest.er1 >conftest.err
  15881. rm -f conftest.er1
  15882. cat conftest.err >&5
  15883. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15884. (exit $ac_status); } && {
  15885. test -z "$ac_cxx_werror_flag" ||
  15886. test ! -s conftest.err
  15887. } && test -s conftest.$ac_objext; then
  15888. :
  15889. else
  15890. $as_echo "$as_me: failed program was:" >&5
  15891. sed 's/^/| /' conftest.$ac_ext >&5
  15892. ac_cv_type_ptrdiff_t=yes
  15893. fi
  15894. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15895. else
  15896. $as_echo "$as_me: failed program was:" >&5
  15897. sed 's/^/| /' conftest.$ac_ext >&5
  15898. fi
  15899. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15900. fi
  15901. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
  15902. $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
  15903. if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
  15904. :
  15905. else
  15906. cat >>confdefs.h <<\_ACEOF
  15907. #define ptrdiff_t long
  15908. _ACEOF
  15909. fi
  15910. for ac_header in stddef.h stdlib.h string.h
  15911. do
  15912. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15913. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15914. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  15915. $as_echo_n "checking for $ac_header... " >&6; }
  15916. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  15917. $as_echo_n "(cached) " >&6
  15918. fi
  15919. ac_res=`eval 'as_val=${'$as_ac_Header'}
  15920. $as_echo "$as_val"'`
  15921. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  15922. $as_echo "$ac_res" >&6; }
  15923. else
  15924. # Is the header compilable?
  15925. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  15926. $as_echo_n "checking $ac_header usability... " >&6; }
  15927. cat >conftest.$ac_ext <<_ACEOF
  15928. /* confdefs.h. */
  15929. _ACEOF
  15930. cat confdefs.h >>conftest.$ac_ext
  15931. cat >>conftest.$ac_ext <<_ACEOF
  15932. /* end confdefs.h. */
  15933. $ac_includes_default
  15934. #include <$ac_header>
  15935. _ACEOF
  15936. rm -f conftest.$ac_objext
  15937. if { (ac_try="$ac_compile"
  15938. case "(($ac_try" in
  15939. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15940. *) ac_try_echo=$ac_try;;
  15941. esac
  15942. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15943. $as_echo "$ac_try_echo") >&5
  15944. (eval "$ac_compile") 2>conftest.er1
  15945. ac_status=$?
  15946. grep -v '^ *+' conftest.er1 >conftest.err
  15947. rm -f conftest.er1
  15948. cat conftest.err >&5
  15949. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15950. (exit $ac_status); } && {
  15951. test -z "$ac_cxx_werror_flag" ||
  15952. test ! -s conftest.err
  15953. } && test -s conftest.$ac_objext; then
  15954. ac_header_compiler=yes
  15955. else
  15956. $as_echo "$as_me: failed program was:" >&5
  15957. sed 's/^/| /' conftest.$ac_ext >&5
  15958. ac_header_compiler=no
  15959. fi
  15960. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15961. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15962. $as_echo "$ac_header_compiler" >&6; }
  15963. # Is the header present?
  15964. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  15965. $as_echo_n "checking $ac_header presence... " >&6; }
  15966. cat >conftest.$ac_ext <<_ACEOF
  15967. /* confdefs.h. */
  15968. _ACEOF
  15969. cat confdefs.h >>conftest.$ac_ext
  15970. cat >>conftest.$ac_ext <<_ACEOF
  15971. /* end confdefs.h. */
  15972. #include <$ac_header>
  15973. _ACEOF
  15974. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15975. case "(($ac_try" in
  15976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15977. *) ac_try_echo=$ac_try;;
  15978. esac
  15979. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15980. $as_echo "$ac_try_echo") >&5
  15981. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15982. ac_status=$?
  15983. grep -v '^ *+' conftest.er1 >conftest.err
  15984. rm -f conftest.er1
  15985. cat conftest.err >&5
  15986. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15987. (exit $ac_status); } >/dev/null && {
  15988. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  15989. test ! -s conftest.err
  15990. }; then
  15991. ac_header_preproc=yes
  15992. else
  15993. $as_echo "$as_me: failed program was:" >&5
  15994. sed 's/^/| /' conftest.$ac_ext >&5
  15995. ac_header_preproc=no
  15996. fi
  15997. rm -f conftest.err conftest.$ac_ext
  15998. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15999. $as_echo "$ac_header_preproc" >&6; }
  16000. # So? What about this header?
  16001. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  16002. yes:no: )
  16003. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  16004. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16005. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  16006. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  16007. ac_header_preproc=yes
  16008. ;;
  16009. no:yes:* )
  16010. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  16011. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  16012. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  16013. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  16014. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  16015. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  16016. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  16017. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  16018. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  16019. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  16020. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  16021. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  16022. ( cat <<\_ASBOX
  16023. ## ----------------------------------------------- ##
  16024. ## Report this to t-tujikawa@users.sourceforge.net ##
  16025. ## ----------------------------------------------- ##
  16026. _ASBOX
  16027. ) | sed "s/^/$as_me: WARNING: /" >&2
  16028. ;;
  16029. esac
  16030. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  16031. $as_echo_n "checking for $ac_header... " >&6; }
  16032. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  16033. $as_echo_n "(cached) " >&6
  16034. else
  16035. eval "$as_ac_Header=\$ac_header_preproc"
  16036. fi
  16037. ac_res=`eval 'as_val=${'$as_ac_Header'}
  16038. $as_echo "$as_val"'`
  16039. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16040. $as_echo "$ac_res" >&6; }
  16041. fi
  16042. as_val=`eval 'as_val=${'$as_ac_Header'}
  16043. $as_echo "$as_val"'`
  16044. if test "x$as_val" = x""yes; then
  16045. cat >>confdefs.h <<_ACEOF
  16046. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  16047. _ACEOF
  16048. fi
  16049. done
  16050. for ac_func in asprintf fwprintf putenv setenv setlocale snprintf wcslen
  16051. do
  16052. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  16053. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  16054. $as_echo_n "checking for $ac_func... " >&6; }
  16055. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  16056. $as_echo_n "(cached) " >&6
  16057. else
  16058. cat >conftest.$ac_ext <<_ACEOF
  16059. /* confdefs.h. */
  16060. _ACEOF
  16061. cat confdefs.h >>conftest.$ac_ext
  16062. cat >>conftest.$ac_ext <<_ACEOF
  16063. /* end confdefs.h. */
  16064. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  16065. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16066. #define $ac_func innocuous_$ac_func
  16067. /* System header to define __stub macros and hopefully few prototypes,
  16068. which can conflict with char $ac_func (); below.
  16069. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16070. <limits.h> exists even on freestanding compilers. */
  16071. #ifdef __STDC__
  16072. # include <limits.h>
  16073. #else
  16074. # include <assert.h>
  16075. #endif
  16076. #undef $ac_func
  16077. /* Override any GCC internal prototype to avoid an error.
  16078. Use char because int might match the return type of a GCC
  16079. builtin and then its argument prototype would still apply. */
  16080. #ifdef __cplusplus
  16081. extern "C"
  16082. #endif
  16083. char $ac_func ();
  16084. /* The GNU C library defines this for functions which it implements
  16085. to always fail with ENOSYS. Some functions are actually named
  16086. something starting with __ and the normal name is an alias. */
  16087. #if defined __stub_$ac_func || defined __stub___$ac_func
  16088. choke me
  16089. #endif
  16090. int
  16091. main ()
  16092. {
  16093. return $ac_func ();
  16094. ;
  16095. return 0;
  16096. }
  16097. _ACEOF
  16098. rm -f conftest.$ac_objext conftest$ac_exeext
  16099. if { (ac_try="$ac_link"
  16100. case "(($ac_try" in
  16101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16102. *) ac_try_echo=$ac_try;;
  16103. esac
  16104. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16105. $as_echo "$ac_try_echo") >&5
  16106. (eval "$ac_link") 2>conftest.er1
  16107. ac_status=$?
  16108. grep -v '^ *+' conftest.er1 >conftest.err
  16109. rm -f conftest.er1
  16110. cat conftest.err >&5
  16111. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16112. (exit $ac_status); } && {
  16113. test -z "$ac_cxx_werror_flag" ||
  16114. test ! -s conftest.err
  16115. } && test -s conftest$ac_exeext && {
  16116. test "$cross_compiling" = yes ||
  16117. $as_test_x conftest$ac_exeext
  16118. }; then
  16119. eval "$as_ac_var=yes"
  16120. else
  16121. $as_echo "$as_me: failed program was:" >&5
  16122. sed 's/^/| /' conftest.$ac_ext >&5
  16123. eval "$as_ac_var=no"
  16124. fi
  16125. rm -rf conftest.dSYM
  16126. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16127. conftest$ac_exeext conftest.$ac_ext
  16128. fi
  16129. ac_res=`eval 'as_val=${'$as_ac_var'}
  16130. $as_echo "$as_val"'`
  16131. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16132. $as_echo "$ac_res" >&6; }
  16133. as_val=`eval 'as_val=${'$as_ac_var'}
  16134. $as_echo "$as_val"'`
  16135. if test "x$as_val" = x""yes; then
  16136. cat >>confdefs.h <<_ACEOF
  16137. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  16138. _ACEOF
  16139. fi
  16140. done
  16141. { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
  16142. $as_echo_n "checking whether _snprintf is declared... " >&6; }
  16143. if test "${ac_cv_have_decl__snprintf+set}" = set; then
  16144. $as_echo_n "(cached) " >&6
  16145. else
  16146. cat >conftest.$ac_ext <<_ACEOF
  16147. /* confdefs.h. */
  16148. _ACEOF
  16149. cat confdefs.h >>conftest.$ac_ext
  16150. cat >>conftest.$ac_ext <<_ACEOF
  16151. /* end confdefs.h. */
  16152. #include <stdio.h>
  16153. int
  16154. main ()
  16155. {
  16156. #ifndef _snprintf
  16157. char *p = (char *) _snprintf;
  16158. #endif
  16159. ;
  16160. return 0;
  16161. }
  16162. _ACEOF
  16163. rm -f conftest.$ac_objext
  16164. if { (ac_try="$ac_compile"
  16165. case "(($ac_try" in
  16166. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16167. *) ac_try_echo=$ac_try;;
  16168. esac
  16169. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16170. $as_echo "$ac_try_echo") >&5
  16171. (eval "$ac_compile") 2>conftest.er1
  16172. ac_status=$?
  16173. grep -v '^ *+' conftest.er1 >conftest.err
  16174. rm -f conftest.er1
  16175. cat conftest.err >&5
  16176. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16177. (exit $ac_status); } && {
  16178. test -z "$ac_cxx_werror_flag" ||
  16179. test ! -s conftest.err
  16180. } && test -s conftest.$ac_objext; then
  16181. ac_cv_have_decl__snprintf=yes
  16182. else
  16183. $as_echo "$as_me: failed program was:" >&5
  16184. sed 's/^/| /' conftest.$ac_ext >&5
  16185. ac_cv_have_decl__snprintf=no
  16186. fi
  16187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16188. fi
  16189. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
  16190. $as_echo "$ac_cv_have_decl__snprintf" >&6; }
  16191. if test $ac_cv_have_decl__snprintf = yes; then
  16192. gt_value=1
  16193. else
  16194. gt_value=0
  16195. fi
  16196. cat >>confdefs.h <<_ACEOF
  16197. #define HAVE_DECL__SNPRINTF $gt_value
  16198. _ACEOF
  16199. { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
  16200. $as_echo_n "checking whether _snwprintf is declared... " >&6; }
  16201. if test "${ac_cv_have_decl__snwprintf+set}" = set; then
  16202. $as_echo_n "(cached) " >&6
  16203. else
  16204. cat >conftest.$ac_ext <<_ACEOF
  16205. /* confdefs.h. */
  16206. _ACEOF
  16207. cat confdefs.h >>conftest.$ac_ext
  16208. cat >>conftest.$ac_ext <<_ACEOF
  16209. /* end confdefs.h. */
  16210. #include <stdio.h>
  16211. int
  16212. main ()
  16213. {
  16214. #ifndef _snwprintf
  16215. char *p = (char *) _snwprintf;
  16216. #endif
  16217. ;
  16218. return 0;
  16219. }
  16220. _ACEOF
  16221. rm -f conftest.$ac_objext
  16222. if { (ac_try="$ac_compile"
  16223. case "(($ac_try" in
  16224. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16225. *) ac_try_echo=$ac_try;;
  16226. esac
  16227. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16228. $as_echo "$ac_try_echo") >&5
  16229. (eval "$ac_compile") 2>conftest.er1
  16230. ac_status=$?
  16231. grep -v '^ *+' conftest.er1 >conftest.err
  16232. rm -f conftest.er1
  16233. cat conftest.err >&5
  16234. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16235. (exit $ac_status); } && {
  16236. test -z "$ac_cxx_werror_flag" ||
  16237. test ! -s conftest.err
  16238. } && test -s conftest.$ac_objext; then
  16239. ac_cv_have_decl__snwprintf=yes
  16240. else
  16241. $as_echo "$as_me: failed program was:" >&5
  16242. sed 's/^/| /' conftest.$ac_ext >&5
  16243. ac_cv_have_decl__snwprintf=no
  16244. fi
  16245. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16246. fi
  16247. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
  16248. $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
  16249. if test $ac_cv_have_decl__snwprintf = yes; then
  16250. gt_value=1
  16251. else
  16252. gt_value=0
  16253. fi
  16254. cat >>confdefs.h <<_ACEOF
  16255. #define HAVE_DECL__SNWPRINTF $gt_value
  16256. _ACEOF
  16257. { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
  16258. $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
  16259. if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
  16260. $as_echo_n "(cached) " >&6
  16261. else
  16262. cat >conftest.$ac_ext <<_ACEOF
  16263. /* confdefs.h. */
  16264. _ACEOF
  16265. cat confdefs.h >>conftest.$ac_ext
  16266. cat >>conftest.$ac_ext <<_ACEOF
  16267. /* end confdefs.h. */
  16268. #include <stdio.h>
  16269. int
  16270. main ()
  16271. {
  16272. #ifndef getc_unlocked
  16273. char *p = (char *) getc_unlocked;
  16274. #endif
  16275. ;
  16276. return 0;
  16277. }
  16278. _ACEOF
  16279. rm -f conftest.$ac_objext
  16280. if { (ac_try="$ac_compile"
  16281. case "(($ac_try" in
  16282. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16283. *) ac_try_echo=$ac_try;;
  16284. esac
  16285. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16286. $as_echo "$ac_try_echo") >&5
  16287. (eval "$ac_compile") 2>conftest.er1
  16288. ac_status=$?
  16289. grep -v '^ *+' conftest.er1 >conftest.err
  16290. rm -f conftest.er1
  16291. cat conftest.err >&5
  16292. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16293. (exit $ac_status); } && {
  16294. test -z "$ac_cxx_werror_flag" ||
  16295. test ! -s conftest.err
  16296. } && test -s conftest.$ac_objext; then
  16297. ac_cv_have_decl_getc_unlocked=yes
  16298. else
  16299. $as_echo "$as_me: failed program was:" >&5
  16300. sed 's/^/| /' conftest.$ac_ext >&5
  16301. ac_cv_have_decl_getc_unlocked=no
  16302. fi
  16303. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16304. fi
  16305. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
  16306. $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
  16307. if test $ac_cv_have_decl_getc_unlocked = yes; then
  16308. gt_value=1
  16309. else
  16310. gt_value=0
  16311. fi
  16312. cat >>confdefs.h <<_ACEOF
  16313. #define HAVE_DECL_GETC_UNLOCKED $gt_value
  16314. _ACEOF
  16315. case $gt_cv_func_printf_posix in
  16316. *yes) HAVE_POSIX_PRINTF=1 ;;
  16317. *) HAVE_POSIX_PRINTF=0 ;;
  16318. esac
  16319. if test "$ac_cv_func_asprintf" = yes; then
  16320. HAVE_ASPRINTF=1
  16321. else
  16322. HAVE_ASPRINTF=0
  16323. fi
  16324. if test "$ac_cv_func_snprintf" = yes; then
  16325. HAVE_SNPRINTF=1
  16326. else
  16327. HAVE_SNPRINTF=0
  16328. fi
  16329. if test "$ac_cv_func_wprintf" = yes; then
  16330. HAVE_WPRINTF=1
  16331. else
  16332. HAVE_WPRINTF=0
  16333. fi
  16334. { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  16335. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  16336. if test "${am_cv_langinfo_codeset+set}" = set; then
  16337. $as_echo_n "(cached) " >&6
  16338. else
  16339. cat >conftest.$ac_ext <<_ACEOF
  16340. /* confdefs.h. */
  16341. _ACEOF
  16342. cat confdefs.h >>conftest.$ac_ext
  16343. cat >>conftest.$ac_ext <<_ACEOF
  16344. /* end confdefs.h. */
  16345. #include <langinfo.h>
  16346. int
  16347. main ()
  16348. {
  16349. char* cs = nl_langinfo(CODESET); return !cs;
  16350. ;
  16351. return 0;
  16352. }
  16353. _ACEOF
  16354. rm -f conftest.$ac_objext conftest$ac_exeext
  16355. if { (ac_try="$ac_link"
  16356. case "(($ac_try" in
  16357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16358. *) ac_try_echo=$ac_try;;
  16359. esac
  16360. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16361. $as_echo "$ac_try_echo") >&5
  16362. (eval "$ac_link") 2>conftest.er1
  16363. ac_status=$?
  16364. grep -v '^ *+' conftest.er1 >conftest.err
  16365. rm -f conftest.er1
  16366. cat conftest.err >&5
  16367. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16368. (exit $ac_status); } && {
  16369. test -z "$ac_cxx_werror_flag" ||
  16370. test ! -s conftest.err
  16371. } && test -s conftest$ac_exeext && {
  16372. test "$cross_compiling" = yes ||
  16373. $as_test_x conftest$ac_exeext
  16374. }; then
  16375. am_cv_langinfo_codeset=yes
  16376. else
  16377. $as_echo "$as_me: failed program was:" >&5
  16378. sed 's/^/| /' conftest.$ac_ext >&5
  16379. am_cv_langinfo_codeset=no
  16380. fi
  16381. rm -rf conftest.dSYM
  16382. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16383. conftest$ac_exeext conftest.$ac_ext
  16384. fi
  16385. { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  16386. $as_echo "$am_cv_langinfo_codeset" >&6; }
  16387. if test $am_cv_langinfo_codeset = yes; then
  16388. cat >>confdefs.h <<\_ACEOF
  16389. #define HAVE_LANGINFO_CODESET 1
  16390. _ACEOF
  16391. fi
  16392. { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  16393. $as_echo_n "checking for LC_MESSAGES... " >&6; }
  16394. if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
  16395. $as_echo_n "(cached) " >&6
  16396. else
  16397. cat >conftest.$ac_ext <<_ACEOF
  16398. /* confdefs.h. */
  16399. _ACEOF
  16400. cat confdefs.h >>conftest.$ac_ext
  16401. cat >>conftest.$ac_ext <<_ACEOF
  16402. /* end confdefs.h. */
  16403. #include <locale.h>
  16404. int
  16405. main ()
  16406. {
  16407. return LC_MESSAGES
  16408. ;
  16409. return 0;
  16410. }
  16411. _ACEOF
  16412. rm -f conftest.$ac_objext conftest$ac_exeext
  16413. if { (ac_try="$ac_link"
  16414. case "(($ac_try" in
  16415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16416. *) ac_try_echo=$ac_try;;
  16417. esac
  16418. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16419. $as_echo "$ac_try_echo") >&5
  16420. (eval "$ac_link") 2>conftest.er1
  16421. ac_status=$?
  16422. grep -v '^ *+' conftest.er1 >conftest.err
  16423. rm -f conftest.er1
  16424. cat conftest.err >&5
  16425. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16426. (exit $ac_status); } && {
  16427. test -z "$ac_cxx_werror_flag" ||
  16428. test ! -s conftest.err
  16429. } && test -s conftest$ac_exeext && {
  16430. test "$cross_compiling" = yes ||
  16431. $as_test_x conftest$ac_exeext
  16432. }; then
  16433. gt_cv_val_LC_MESSAGES=yes
  16434. else
  16435. $as_echo "$as_me: failed program was:" >&5
  16436. sed 's/^/| /' conftest.$ac_ext >&5
  16437. gt_cv_val_LC_MESSAGES=no
  16438. fi
  16439. rm -rf conftest.dSYM
  16440. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16441. conftest$ac_exeext conftest.$ac_ext
  16442. fi
  16443. { $as_echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
  16444. $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
  16445. if test $gt_cv_val_LC_MESSAGES = yes; then
  16446. cat >>confdefs.h <<\_ACEOF
  16447. #define HAVE_LC_MESSAGES 1
  16448. _ACEOF
  16449. fi
  16450. if test "$enable_shared" = yes; then
  16451. case "$host_os" in
  16452. mingw* | cygwin*) is_woe32dll=yes ;;
  16453. *) is_woe32dll=no ;;
  16454. esac
  16455. else
  16456. is_woe32dll=no
  16457. fi
  16458. WOE32DLL=$is_woe32dll
  16459. case "$host_os" in
  16460. mingw* | cygwin*) is_woe32=yes ;;
  16461. *) is_woe32=no ;;
  16462. esac
  16463. WOE32=$is_woe32
  16464. if test $WOE32 = yes; then
  16465. if test -n "$ac_tool_prefix"; then
  16466. # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
  16467. set dummy ${ac_tool_prefix}windres; ac_word=$2
  16468. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16469. $as_echo_n "checking for $ac_word... " >&6; }
  16470. if test "${ac_cv_prog_WINDRES+set}" = set; then
  16471. $as_echo_n "(cached) " >&6
  16472. else
  16473. if test -n "$WINDRES"; then
  16474. ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
  16475. else
  16476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16477. for as_dir in $PATH
  16478. do
  16479. IFS=$as_save_IFS
  16480. test -z "$as_dir" && as_dir=.
  16481. for ac_exec_ext in '' $ac_executable_extensions; do
  16482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16483. ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
  16484. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16485. break 2
  16486. fi
  16487. done
  16488. done
  16489. IFS=$as_save_IFS
  16490. fi
  16491. fi
  16492. WINDRES=$ac_cv_prog_WINDRES
  16493. if test -n "$WINDRES"; then
  16494. { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
  16495. $as_echo "$WINDRES" >&6; }
  16496. else
  16497. { $as_echo "$as_me:$LINENO: result: no" >&5
  16498. $as_echo "no" >&6; }
  16499. fi
  16500. fi
  16501. if test -z "$ac_cv_prog_WINDRES"; then
  16502. ac_ct_WINDRES=$WINDRES
  16503. # Extract the first word of "windres", so it can be a program name with args.
  16504. set dummy windres; ac_word=$2
  16505. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  16506. $as_echo_n "checking for $ac_word... " >&6; }
  16507. if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
  16508. $as_echo_n "(cached) " >&6
  16509. else
  16510. if test -n "$ac_ct_WINDRES"; then
  16511. ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
  16512. else
  16513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16514. for as_dir in $PATH
  16515. do
  16516. IFS=$as_save_IFS
  16517. test -z "$as_dir" && as_dir=.
  16518. for ac_exec_ext in '' $ac_executable_extensions; do
  16519. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16520. ac_cv_prog_ac_ct_WINDRES="windres"
  16521. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16522. break 2
  16523. fi
  16524. done
  16525. done
  16526. IFS=$as_save_IFS
  16527. fi
  16528. fi
  16529. ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
  16530. if test -n "$ac_ct_WINDRES"; then
  16531. { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
  16532. $as_echo "$ac_ct_WINDRES" >&6; }
  16533. else
  16534. { $as_echo "$as_me:$LINENO: result: no" >&5
  16535. $as_echo "no" >&6; }
  16536. fi
  16537. if test "x$ac_ct_WINDRES" = x; then
  16538. WINDRES=""
  16539. else
  16540. case $cross_compiling:$ac_tool_warned in
  16541. yes:)
  16542. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  16543. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  16544. ac_tool_warned=yes ;;
  16545. esac
  16546. WINDRES=$ac_ct_WINDRES
  16547. fi
  16548. else
  16549. WINDRES="$ac_cv_prog_WINDRES"
  16550. fi
  16551. fi
  16552. case "$host_os" in
  16553. hpux*) LTLIBC="" ;;
  16554. *) LTLIBC="-lc" ;;
  16555. esac
  16556. { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
  16557. $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
  16558. if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
  16559. $as_echo_n "(cached) " >&6
  16560. else
  16561. gt_save_LIBS="$LIBS"
  16562. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  16563. cat >conftest.$ac_ext <<_ACEOF
  16564. /* confdefs.h. */
  16565. _ACEOF
  16566. cat confdefs.h >>conftest.$ac_ext
  16567. cat >>conftest.$ac_ext <<_ACEOF
  16568. /* end confdefs.h. */
  16569. #include <CoreFoundation/CFPreferences.h>
  16570. int
  16571. main ()
  16572. {
  16573. CFPreferencesCopyAppValue(NULL, NULL)
  16574. ;
  16575. return 0;
  16576. }
  16577. _ACEOF
  16578. rm -f conftest.$ac_objext conftest$ac_exeext
  16579. if { (ac_try="$ac_link"
  16580. case "(($ac_try" in
  16581. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16582. *) ac_try_echo=$ac_try;;
  16583. esac
  16584. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16585. $as_echo "$ac_try_echo") >&5
  16586. (eval "$ac_link") 2>conftest.er1
  16587. ac_status=$?
  16588. grep -v '^ *+' conftest.er1 >conftest.err
  16589. rm -f conftest.er1
  16590. cat conftest.err >&5
  16591. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16592. (exit $ac_status); } && {
  16593. test -z "$ac_cxx_werror_flag" ||
  16594. test ! -s conftest.err
  16595. } && test -s conftest$ac_exeext && {
  16596. test "$cross_compiling" = yes ||
  16597. $as_test_x conftest$ac_exeext
  16598. }; then
  16599. gt_cv_func_CFPreferencesCopyAppValue=yes
  16600. else
  16601. $as_echo "$as_me: failed program was:" >&5
  16602. sed 's/^/| /' conftest.$ac_ext >&5
  16603. gt_cv_func_CFPreferencesCopyAppValue=no
  16604. fi
  16605. rm -rf conftest.dSYM
  16606. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16607. conftest$ac_exeext conftest.$ac_ext
  16608. LIBS="$gt_save_LIBS"
  16609. fi
  16610. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
  16611. $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
  16612. if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
  16613. cat >>confdefs.h <<\_ACEOF
  16614. #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
  16615. _ACEOF
  16616. fi
  16617. { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
  16618. $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
  16619. if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
  16620. $as_echo_n "(cached) " >&6
  16621. else
  16622. gt_save_LIBS="$LIBS"
  16623. LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
  16624. cat >conftest.$ac_ext <<_ACEOF
  16625. /* confdefs.h. */
  16626. _ACEOF
  16627. cat confdefs.h >>conftest.$ac_ext
  16628. cat >>conftest.$ac_ext <<_ACEOF
  16629. /* end confdefs.h. */
  16630. #include <CoreFoundation/CFLocale.h>
  16631. int
  16632. main ()
  16633. {
  16634. CFLocaleCopyCurrent();
  16635. ;
  16636. return 0;
  16637. }
  16638. _ACEOF
  16639. rm -f conftest.$ac_objext conftest$ac_exeext
  16640. if { (ac_try="$ac_link"
  16641. case "(($ac_try" in
  16642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16643. *) ac_try_echo=$ac_try;;
  16644. esac
  16645. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16646. $as_echo "$ac_try_echo") >&5
  16647. (eval "$ac_link") 2>conftest.er1
  16648. ac_status=$?
  16649. grep -v '^ *+' conftest.er1 >conftest.err
  16650. rm -f conftest.er1
  16651. cat conftest.err >&5
  16652. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16653. (exit $ac_status); } && {
  16654. test -z "$ac_cxx_werror_flag" ||
  16655. test ! -s conftest.err
  16656. } && test -s conftest$ac_exeext && {
  16657. test "$cross_compiling" = yes ||
  16658. $as_test_x conftest$ac_exeext
  16659. }; then
  16660. gt_cv_func_CFLocaleCopyCurrent=yes
  16661. else
  16662. $as_echo "$as_me: failed program was:" >&5
  16663. sed 's/^/| /' conftest.$ac_ext >&5
  16664. gt_cv_func_CFLocaleCopyCurrent=no
  16665. fi
  16666. rm -rf conftest.dSYM
  16667. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16668. conftest$ac_exeext conftest.$ac_ext
  16669. LIBS="$gt_save_LIBS"
  16670. fi
  16671. { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
  16672. $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
  16673. if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  16674. cat >>confdefs.h <<\_ACEOF
  16675. #define HAVE_CFLOCALECOPYCURRENT 1
  16676. _ACEOF
  16677. fi
  16678. INTL_MACOSX_LIBS=
  16679. if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
  16680. INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
  16681. fi
  16682. BUILD_INCLUDED_LIBINTL=no
  16683. USE_INCLUDED_LIBINTL=no
  16684. LIBINTL=
  16685. LTLIBINTL=
  16686. POSUB=
  16687. case " $gt_needs " in
  16688. *" need-formatstring-macros "*) gt_api_version=3 ;;
  16689. *" need-ngettext "*) gt_api_version=2 ;;
  16690. *) gt_api_version=1 ;;
  16691. esac
  16692. gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
  16693. gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
  16694. if test "$USE_NLS" = "yes"; then
  16695. gt_use_preinstalled_gnugettext=no
  16696. { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  16697. $as_echo_n "checking whether included gettext is requested... " >&6; }
  16698. # Check whether --with-included-gettext was given.
  16699. if test "${with_included_gettext+set}" = set; then
  16700. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  16701. else
  16702. nls_cv_force_use_gnu_gettext=no
  16703. fi
  16704. { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  16705. $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
  16706. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  16707. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  16708. if test $gt_api_version -ge 3; then
  16709. gt_revision_test_code='
  16710. #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
  16711. #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
  16712. #endif
  16713. typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
  16714. '
  16715. else
  16716. gt_revision_test_code=
  16717. fi
  16718. if test $gt_api_version -ge 2; then
  16719. gt_expression_test_code=' + * ngettext ("", "", 0)'
  16720. else
  16721. gt_expression_test_code=
  16722. fi
  16723. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  16724. $as_echo_n "checking for GNU gettext in libc... " >&6; }
  16725. if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
  16726. $as_echo_n "(cached) " >&6
  16727. else
  16728. cat >conftest.$ac_ext <<_ACEOF
  16729. /* confdefs.h. */
  16730. _ACEOF
  16731. cat confdefs.h >>conftest.$ac_ext
  16732. cat >>conftest.$ac_ext <<_ACEOF
  16733. /* end confdefs.h. */
  16734. #include <libintl.h>
  16735. $gt_revision_test_code
  16736. extern int _nl_msg_cat_cntr;
  16737. extern int *_nl_domain_bindings;
  16738. int
  16739. main ()
  16740. {
  16741. bindtextdomain ("", "");
  16742. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
  16743. ;
  16744. return 0;
  16745. }
  16746. _ACEOF
  16747. rm -f conftest.$ac_objext conftest$ac_exeext
  16748. if { (ac_try="$ac_link"
  16749. case "(($ac_try" in
  16750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16751. *) ac_try_echo=$ac_try;;
  16752. esac
  16753. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16754. $as_echo "$ac_try_echo") >&5
  16755. (eval "$ac_link") 2>conftest.er1
  16756. ac_status=$?
  16757. grep -v '^ *+' conftest.er1 >conftest.err
  16758. rm -f conftest.er1
  16759. cat conftest.err >&5
  16760. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16761. (exit $ac_status); } && {
  16762. test -z "$ac_cxx_werror_flag" ||
  16763. test ! -s conftest.err
  16764. } && test -s conftest$ac_exeext && {
  16765. test "$cross_compiling" = yes ||
  16766. $as_test_x conftest$ac_exeext
  16767. }; then
  16768. eval "$gt_func_gnugettext_libc=yes"
  16769. else
  16770. $as_echo "$as_me: failed program was:" >&5
  16771. sed 's/^/| /' conftest.$ac_ext >&5
  16772. eval "$gt_func_gnugettext_libc=no"
  16773. fi
  16774. rm -rf conftest.dSYM
  16775. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16776. conftest$ac_exeext conftest.$ac_ext
  16777. fi
  16778. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
  16779. $as_echo "$as_val"'`
  16780. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  16781. $as_echo "$ac_res" >&6; }
  16782. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
  16783. use_additional=yes
  16784. acl_save_prefix="$prefix"
  16785. prefix="$acl_final_prefix"
  16786. acl_save_exec_prefix="$exec_prefix"
  16787. exec_prefix="$acl_final_exec_prefix"
  16788. eval additional_includedir=\"$includedir\"
  16789. eval additional_libdir=\"$libdir\"
  16790. exec_prefix="$acl_save_exec_prefix"
  16791. prefix="$acl_save_prefix"
  16792. # Check whether --with-libintl-prefix was given.
  16793. if test "${with_libintl_prefix+set}" = set; then
  16794. withval=$with_libintl_prefix;
  16795. if test "X$withval" = "Xno"; then
  16796. use_additional=no
  16797. else
  16798. if test "X$withval" = "X"; then
  16799. acl_save_prefix="$prefix"
  16800. prefix="$acl_final_prefix"
  16801. acl_save_exec_prefix="$exec_prefix"
  16802. exec_prefix="$acl_final_exec_prefix"
  16803. eval additional_includedir=\"$includedir\"
  16804. eval additional_libdir=\"$libdir\"
  16805. exec_prefix="$acl_save_exec_prefix"
  16806. prefix="$acl_save_prefix"
  16807. else
  16808. additional_includedir="$withval/include"
  16809. additional_libdir="$withval/$acl_libdirstem"
  16810. fi
  16811. fi
  16812. fi
  16813. LIBINTL=
  16814. LTLIBINTL=
  16815. INCINTL=
  16816. LIBINTL_PREFIX=
  16817. rpathdirs=
  16818. ltrpathdirs=
  16819. names_already_handled=
  16820. names_next_round='intl '
  16821. while test -n "$names_next_round"; do
  16822. names_this_round="$names_next_round"
  16823. names_next_round=
  16824. for name in $names_this_round; do
  16825. already_handled=
  16826. for n in $names_already_handled; do
  16827. if test "$n" = "$name"; then
  16828. already_handled=yes
  16829. break
  16830. fi
  16831. done
  16832. if test -z "$already_handled"; then
  16833. names_already_handled="$names_already_handled $name"
  16834. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  16835. eval value=\"\$HAVE_LIB$uppername\"
  16836. if test -n "$value"; then
  16837. if test "$value" = yes; then
  16838. eval value=\"\$LIB$uppername\"
  16839. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  16840. eval value=\"\$LTLIB$uppername\"
  16841. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  16842. else
  16843. :
  16844. fi
  16845. else
  16846. found_dir=
  16847. found_la=
  16848. found_so=
  16849. found_a=
  16850. eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
  16851. if test -n "$acl_shlibext"; then
  16852. shrext=".$acl_shlibext" # typically: shrext=.so
  16853. else
  16854. shrext=
  16855. fi
  16856. if test $use_additional = yes; then
  16857. dir="$additional_libdir"
  16858. if test -n "$acl_shlibext"; then
  16859. if test -f "$dir/$libname$shrext"; then
  16860. found_dir="$dir"
  16861. found_so="$dir/$libname$shrext"
  16862. else
  16863. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16864. ver=`(cd "$dir" && \
  16865. for f in "$libname$shrext".*; do echo "$f"; done \
  16866. | sed -e "s,^$libname$shrext\\\\.,," \
  16867. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16868. | sed 1q ) 2>/dev/null`
  16869. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16870. found_dir="$dir"
  16871. found_so="$dir/$libname$shrext.$ver"
  16872. fi
  16873. else
  16874. eval library_names=\"$acl_library_names_spec\"
  16875. for f in $library_names; do
  16876. if test -f "$dir/$f"; then
  16877. found_dir="$dir"
  16878. found_so="$dir/$f"
  16879. break
  16880. fi
  16881. done
  16882. fi
  16883. fi
  16884. fi
  16885. if test "X$found_dir" = "X"; then
  16886. if test -f "$dir/$libname.$acl_libext"; then
  16887. found_dir="$dir"
  16888. found_a="$dir/$libname.$acl_libext"
  16889. fi
  16890. fi
  16891. if test "X$found_dir" != "X"; then
  16892. if test -f "$dir/$libname.la"; then
  16893. found_la="$dir/$libname.la"
  16894. fi
  16895. fi
  16896. fi
  16897. if test "X$found_dir" = "X"; then
  16898. for x in $LDFLAGS $LTLIBINTL; do
  16899. acl_save_prefix="$prefix"
  16900. prefix="$acl_final_prefix"
  16901. acl_save_exec_prefix="$exec_prefix"
  16902. exec_prefix="$acl_final_exec_prefix"
  16903. eval x=\"$x\"
  16904. exec_prefix="$acl_save_exec_prefix"
  16905. prefix="$acl_save_prefix"
  16906. case "$x" in
  16907. -L*)
  16908. dir=`echo "X$x" | sed -e 's/^X-L//'`
  16909. if test -n "$acl_shlibext"; then
  16910. if test -f "$dir/$libname$shrext"; then
  16911. found_dir="$dir"
  16912. found_so="$dir/$libname$shrext"
  16913. else
  16914. if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
  16915. ver=`(cd "$dir" && \
  16916. for f in "$libname$shrext".*; do echo "$f"; done \
  16917. | sed -e "s,^$libname$shrext\\\\.,," \
  16918. | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
  16919. | sed 1q ) 2>/dev/null`
  16920. if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
  16921. found_dir="$dir"
  16922. found_so="$dir/$libname$shrext.$ver"
  16923. fi
  16924. else
  16925. eval library_names=\"$acl_library_names_spec\"
  16926. for f in $library_names; do
  16927. if test -f "$dir/$f"; then
  16928. found_dir="$dir"
  16929. found_so="$dir/$f"
  16930. break
  16931. fi
  16932. done
  16933. fi
  16934. fi
  16935. fi
  16936. if test "X$found_dir" = "X"; then
  16937. if test -f "$dir/$libname.$acl_libext"; then
  16938. found_dir="$dir"
  16939. found_a="$dir/$libname.$acl_libext"
  16940. fi
  16941. fi
  16942. if test "X$found_dir" != "X"; then
  16943. if test -f "$dir/$libname.la"; then
  16944. found_la="$dir/$libname.la"
  16945. fi
  16946. fi
  16947. ;;
  16948. esac
  16949. if test "X$found_dir" != "X"; then
  16950. break
  16951. fi
  16952. done
  16953. fi
  16954. if test "X$found_dir" != "X"; then
  16955. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  16956. if test "X$found_so" != "X"; then
  16957. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
  16958. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16959. else
  16960. haveit=
  16961. for x in $ltrpathdirs; do
  16962. if test "X$x" = "X$found_dir"; then
  16963. haveit=yes
  16964. break
  16965. fi
  16966. done
  16967. if test -z "$haveit"; then
  16968. ltrpathdirs="$ltrpathdirs $found_dir"
  16969. fi
  16970. if test "$acl_hardcode_direct" = yes; then
  16971. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16972. else
  16973. if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
  16974. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  16975. haveit=
  16976. for x in $rpathdirs; do
  16977. if test "X$x" = "X$found_dir"; then
  16978. haveit=yes
  16979. break
  16980. fi
  16981. done
  16982. if test -z "$haveit"; then
  16983. rpathdirs="$rpathdirs $found_dir"
  16984. fi
  16985. else
  16986. haveit=
  16987. for x in $LDFLAGS $LIBINTL; do
  16988. acl_save_prefix="$prefix"
  16989. prefix="$acl_final_prefix"
  16990. acl_save_exec_prefix="$exec_prefix"
  16991. exec_prefix="$acl_final_exec_prefix"
  16992. eval x=\"$x\"
  16993. exec_prefix="$acl_save_exec_prefix"
  16994. prefix="$acl_save_prefix"
  16995. if test "X$x" = "X-L$found_dir"; then
  16996. haveit=yes
  16997. break
  16998. fi
  16999. done
  17000. if test -z "$haveit"; then
  17001. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  17002. fi
  17003. if test "$acl_hardcode_minus_L" != no; then
  17004. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  17005. else
  17006. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  17007. fi
  17008. fi
  17009. fi
  17010. fi
  17011. else
  17012. if test "X$found_a" != "X"; then
  17013. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  17014. else
  17015. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  17016. fi
  17017. fi
  17018. additional_includedir=
  17019. case "$found_dir" in
  17020. */$acl_libdirstem | */$acl_libdirstem/)
  17021. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
  17022. LIBINTL_PREFIX="$basedir"
  17023. additional_includedir="$basedir/include"
  17024. ;;
  17025. esac
  17026. if test "X$additional_includedir" != "X"; then
  17027. if test "X$additional_includedir" != "X/usr/include"; then
  17028. haveit=
  17029. if test "X$additional_includedir" = "X/usr/local/include"; then
  17030. if test -n "$GCC"; then
  17031. case $host_os in
  17032. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17033. esac
  17034. fi
  17035. fi
  17036. if test -z "$haveit"; then
  17037. for x in $CPPFLAGS $INCINTL; do
  17038. acl_save_prefix="$prefix"
  17039. prefix="$acl_final_prefix"
  17040. acl_save_exec_prefix="$exec_prefix"
  17041. exec_prefix="$acl_final_exec_prefix"
  17042. eval x=\"$x\"
  17043. exec_prefix="$acl_save_exec_prefix"
  17044. prefix="$acl_save_prefix"
  17045. if test "X$x" = "X-I$additional_includedir"; then
  17046. haveit=yes
  17047. break
  17048. fi
  17049. done
  17050. if test -z "$haveit"; then
  17051. if test -d "$additional_includedir"; then
  17052. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  17053. fi
  17054. fi
  17055. fi
  17056. fi
  17057. fi
  17058. if test -n "$found_la"; then
  17059. save_libdir="$libdir"
  17060. case "$found_la" in
  17061. */* | *\\*) . "$found_la" ;;
  17062. *) . "./$found_la" ;;
  17063. esac
  17064. libdir="$save_libdir"
  17065. for dep in $dependency_libs; do
  17066. case "$dep" in
  17067. -L*)
  17068. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  17069. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
  17070. haveit=
  17071. if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
  17072. if test -n "$GCC"; then
  17073. case $host_os in
  17074. linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  17075. esac
  17076. fi
  17077. fi
  17078. if test -z "$haveit"; then
  17079. haveit=
  17080. for x in $LDFLAGS $LIBINTL; do
  17081. acl_save_prefix="$prefix"
  17082. prefix="$acl_final_prefix"
  17083. acl_save_exec_prefix="$exec_prefix"
  17084. exec_prefix="$acl_final_exec_prefix"
  17085. eval x=\"$x\"
  17086. exec_prefix="$acl_save_exec_prefix"
  17087. prefix="$acl_save_prefix"
  17088. if test "X$x" = "X-L$additional_libdir"; then
  17089. haveit=yes
  17090. break
  17091. fi
  17092. done
  17093. if test -z "$haveit"; then
  17094. if test -d "$additional_libdir"; then
  17095. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  17096. fi
  17097. fi
  17098. haveit=
  17099. for x in $LDFLAGS $LTLIBINTL; do
  17100. acl_save_prefix="$prefix"
  17101. prefix="$acl_final_prefix"
  17102. acl_save_exec_prefix="$exec_prefix"
  17103. exec_prefix="$acl_final_exec_prefix"
  17104. eval x=\"$x\"
  17105. exec_prefix="$acl_save_exec_prefix"
  17106. prefix="$acl_save_prefix"
  17107. if test "X$x" = "X-L$additional_libdir"; then
  17108. haveit=yes
  17109. break
  17110. fi
  17111. done
  17112. if test -z "$haveit"; then
  17113. if test -d "$additional_libdir"; then
  17114. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  17115. fi
  17116. fi
  17117. fi
  17118. fi
  17119. ;;
  17120. -R*)
  17121. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  17122. if test "$enable_rpath" != no; then
  17123. haveit=
  17124. for x in $rpathdirs; do
  17125. if test "X$x" = "X$dir"; then
  17126. haveit=yes
  17127. break
  17128. fi
  17129. done
  17130. if test -z "$haveit"; then
  17131. rpathdirs="$rpathdirs $dir"
  17132. fi
  17133. haveit=
  17134. for x in $ltrpathdirs; do
  17135. if test "X$x" = "X$dir"; then
  17136. haveit=yes
  17137. break
  17138. fi
  17139. done
  17140. if test -z "$haveit"; then
  17141. ltrpathdirs="$ltrpathdirs $dir"
  17142. fi
  17143. fi
  17144. ;;
  17145. -l*)
  17146. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  17147. ;;
  17148. *.la)
  17149. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  17150. ;;
  17151. *)
  17152. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  17153. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  17154. ;;
  17155. esac
  17156. done
  17157. fi
  17158. else
  17159. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  17160. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  17161. fi
  17162. fi
  17163. fi
  17164. done
  17165. done
  17166. if test "X$rpathdirs" != "X"; then
  17167. if test -n "$acl_hardcode_libdir_separator"; then
  17168. alldirs=
  17169. for found_dir in $rpathdirs; do
  17170. alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
  17171. done
  17172. acl_save_libdir="$libdir"
  17173. libdir="$alldirs"
  17174. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17175. libdir="$acl_save_libdir"
  17176. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  17177. else
  17178. for found_dir in $rpathdirs; do
  17179. acl_save_libdir="$libdir"
  17180. libdir="$found_dir"
  17181. eval flag=\"$acl_hardcode_libdir_flag_spec\"
  17182. libdir="$acl_save_libdir"
  17183. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  17184. done
  17185. fi
  17186. fi
  17187. if test "X$ltrpathdirs" != "X"; then
  17188. for found_dir in $ltrpathdirs; do
  17189. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  17190. done
  17191. fi
  17192. { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  17193. $as_echo_n "checking for GNU gettext in libintl... " >&6; }
  17194. if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
  17195. $as_echo_n "(cached) " >&6
  17196. else
  17197. gt_save_CPPFLAGS="$CPPFLAGS"
  17198. CPPFLAGS="$CPPFLAGS $INCINTL"
  17199. gt_save_LIBS="$LIBS"
  17200. LIBS="$LIBS $LIBINTL"
  17201. cat >conftest.$ac_ext <<_ACEOF
  17202. /* confdefs.h. */
  17203. _ACEOF
  17204. cat confdefs.h >>conftest.$ac_ext
  17205. cat >>conftest.$ac_ext <<_ACEOF
  17206. /* end confdefs.h. */
  17207. #include <libintl.h>
  17208. $gt_revision_test_code
  17209. extern int _nl_msg_cat_cntr;
  17210. extern
  17211. #ifdef __cplusplus
  17212. "C"
  17213. #endif
  17214. const char *_nl_expand_alias (const char *);
  17215. int
  17216. main ()
  17217. {
  17218. bindtextdomain ("", "");
  17219. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  17220. ;
  17221. return 0;
  17222. }
  17223. _ACEOF
  17224. rm -f conftest.$ac_objext conftest$ac_exeext
  17225. if { (ac_try="$ac_link"
  17226. case "(($ac_try" in
  17227. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17228. *) ac_try_echo=$ac_try;;
  17229. esac
  17230. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17231. $as_echo "$ac_try_echo") >&5
  17232. (eval "$ac_link") 2>conftest.er1
  17233. ac_status=$?
  17234. grep -v '^ *+' conftest.er1 >conftest.err
  17235. rm -f conftest.er1
  17236. cat conftest.err >&5
  17237. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17238. (exit $ac_status); } && {
  17239. test -z "$ac_cxx_werror_flag" ||
  17240. test ! -s conftest.err
  17241. } && test -s conftest$ac_exeext && {
  17242. test "$cross_compiling" = yes ||
  17243. $as_test_x conftest$ac_exeext
  17244. }; then
  17245. eval "$gt_func_gnugettext_libintl=yes"
  17246. else
  17247. $as_echo "$as_me: failed program was:" >&5
  17248. sed 's/^/| /' conftest.$ac_ext >&5
  17249. eval "$gt_func_gnugettext_libintl=no"
  17250. fi
  17251. rm -rf conftest.dSYM
  17252. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17253. conftest$ac_exeext conftest.$ac_ext
  17254. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
  17255. LIBS="$LIBS $LIBICONV"
  17256. cat >conftest.$ac_ext <<_ACEOF
  17257. /* confdefs.h. */
  17258. _ACEOF
  17259. cat confdefs.h >>conftest.$ac_ext
  17260. cat >>conftest.$ac_ext <<_ACEOF
  17261. /* end confdefs.h. */
  17262. #include <libintl.h>
  17263. $gt_revision_test_code
  17264. extern int _nl_msg_cat_cntr;
  17265. extern
  17266. #ifdef __cplusplus
  17267. "C"
  17268. #endif
  17269. const char *_nl_expand_alias (const char *);
  17270. int
  17271. main ()
  17272. {
  17273. bindtextdomain ("", "");
  17274. return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
  17275. ;
  17276. return 0;
  17277. }
  17278. _ACEOF
  17279. rm -f conftest.$ac_objext conftest$ac_exeext
  17280. if { (ac_try="$ac_link"
  17281. case "(($ac_try" in
  17282. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17283. *) ac_try_echo=$ac_try;;
  17284. esac
  17285. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17286. $as_echo "$ac_try_echo") >&5
  17287. (eval "$ac_link") 2>conftest.er1
  17288. ac_status=$?
  17289. grep -v '^ *+' conftest.er1 >conftest.err
  17290. rm -f conftest.er1
  17291. cat conftest.err >&5
  17292. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17293. (exit $ac_status); } && {
  17294. test -z "$ac_cxx_werror_flag" ||
  17295. test ! -s conftest.err
  17296. } && test -s conftest$ac_exeext && {
  17297. test "$cross_compiling" = yes ||
  17298. $as_test_x conftest$ac_exeext
  17299. }; then
  17300. LIBINTL="$LIBINTL $LIBICONV"
  17301. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  17302. eval "$gt_func_gnugettext_libintl=yes"
  17303. else
  17304. $as_echo "$as_me: failed program was:" >&5
  17305. sed 's/^/| /' conftest.$ac_ext >&5
  17306. fi
  17307. rm -rf conftest.dSYM
  17308. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17309. conftest$ac_exeext conftest.$ac_ext
  17310. fi
  17311. CPPFLAGS="$gt_save_CPPFLAGS"
  17312. LIBS="$gt_save_LIBS"
  17313. fi
  17314. ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
  17315. $as_echo "$as_val"'`
  17316. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17317. $as_echo "$ac_res" >&6; }
  17318. fi
  17319. if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
  17320. || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
  17321. && test "$PACKAGE" != gettext-runtime \
  17322. && test "$PACKAGE" != gettext-tools; }; then
  17323. gt_use_preinstalled_gnugettext=yes
  17324. else
  17325. LIBINTL=
  17326. LTLIBINTL=
  17327. INCINTL=
  17328. fi
  17329. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  17330. nls_cv_use_gnu_gettext=yes
  17331. fi
  17332. fi
  17333. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  17334. BUILD_INCLUDED_LIBINTL=yes
  17335. USE_INCLUDED_LIBINTL=yes
  17336. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
  17337. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
  17338. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  17339. fi
  17340. CATOBJEXT=
  17341. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17342. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17343. CATOBJEXT=.gmo
  17344. fi
  17345. if test -n "$INTL_MACOSX_LIBS"; then
  17346. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17347. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17348. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
  17349. LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
  17350. fi
  17351. fi
  17352. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  17353. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  17354. cat >>confdefs.h <<\_ACEOF
  17355. #define ENABLE_NLS 1
  17356. _ACEOF
  17357. else
  17358. USE_NLS=no
  17359. fi
  17360. fi
  17361. { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
  17362. $as_echo_n "checking whether to use NLS... " >&6; }
  17363. { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
  17364. $as_echo "$USE_NLS" >&6; }
  17365. if test "$USE_NLS" = "yes"; then
  17366. { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  17367. $as_echo_n "checking where the gettext function comes from... " >&6; }
  17368. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17369. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  17370. gt_source="external libintl"
  17371. else
  17372. gt_source="libc"
  17373. fi
  17374. else
  17375. gt_source="included intl directory"
  17376. fi
  17377. { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
  17378. $as_echo "$gt_source" >&6; }
  17379. fi
  17380. if test "$USE_NLS" = "yes"; then
  17381. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  17382. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
  17383. { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
  17384. $as_echo_n "checking how to link with libintl... " >&6; }
  17385. { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
  17386. $as_echo "$LIBINTL" >&6; }
  17387. for element in $INCINTL; do
  17388. haveit=
  17389. for x in $CPPFLAGS; do
  17390. acl_save_prefix="$prefix"
  17391. prefix="$acl_final_prefix"
  17392. acl_save_exec_prefix="$exec_prefix"
  17393. exec_prefix="$acl_final_exec_prefix"
  17394. eval x=\"$x\"
  17395. exec_prefix="$acl_save_exec_prefix"
  17396. prefix="$acl_save_prefix"
  17397. if test "X$x" = "X$element"; then
  17398. haveit=yes
  17399. break
  17400. fi
  17401. done
  17402. if test -z "$haveit"; then
  17403. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  17404. fi
  17405. done
  17406. fi
  17407. cat >>confdefs.h <<\_ACEOF
  17408. #define HAVE_GETTEXT 1
  17409. _ACEOF
  17410. cat >>confdefs.h <<\_ACEOF
  17411. #define HAVE_DCGETTEXT 1
  17412. _ACEOF
  17413. fi
  17414. POSUB=po
  17415. fi
  17416. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  17417. BUILD_INCLUDED_LIBINTL=yes
  17418. fi
  17419. nls_cv_header_intl=
  17420. nls_cv_header_libgt=
  17421. DATADIRNAME=share
  17422. INSTOBJEXT=.mo
  17423. GENCAT=gencat
  17424. INTLOBJS=
  17425. if test "$USE_INCLUDED_LIBINTL" = yes; then
  17426. INTLOBJS="\$(GETTOBJS)"
  17427. fi
  17428. INTL_LIBTOOL_SUFFIX_PREFIX=
  17429. INTLLIBS="$LIBINTL"
  17430. { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
  17431. $as_echo_n "checking for error_at_line... " >&6; }
  17432. if test "${ac_cv_lib_error_at_line+set}" = set; then
  17433. $as_echo_n "(cached) " >&6
  17434. else
  17435. cat >conftest.$ac_ext <<_ACEOF
  17436. /* confdefs.h. */
  17437. _ACEOF
  17438. cat confdefs.h >>conftest.$ac_ext
  17439. cat >>conftest.$ac_ext <<_ACEOF
  17440. /* end confdefs.h. */
  17441. #include <error.h>
  17442. int
  17443. main ()
  17444. {
  17445. error_at_line (0, 0, "", 0, "an error occurred");
  17446. ;
  17447. return 0;
  17448. }
  17449. _ACEOF
  17450. rm -f conftest.$ac_objext conftest$ac_exeext
  17451. if { (ac_try="$ac_link"
  17452. case "(($ac_try" in
  17453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17454. *) ac_try_echo=$ac_try;;
  17455. esac
  17456. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17457. $as_echo "$ac_try_echo") >&5
  17458. (eval "$ac_link") 2>conftest.er1
  17459. ac_status=$?
  17460. grep -v '^ *+' conftest.er1 >conftest.err
  17461. rm -f conftest.er1
  17462. cat conftest.err >&5
  17463. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17464. (exit $ac_status); } && {
  17465. test -z "$ac_cxx_werror_flag" ||
  17466. test ! -s conftest.err
  17467. } && test -s conftest$ac_exeext && {
  17468. test "$cross_compiling" = yes ||
  17469. $as_test_x conftest$ac_exeext
  17470. }; then
  17471. ac_cv_lib_error_at_line=yes
  17472. else
  17473. $as_echo "$as_me: failed program was:" >&5
  17474. sed 's/^/| /' conftest.$ac_ext >&5
  17475. ac_cv_lib_error_at_line=no
  17476. fi
  17477. rm -rf conftest.dSYM
  17478. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17479. conftest$ac_exeext conftest.$ac_ext
  17480. fi
  17481. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  17482. $as_echo "$ac_cv_lib_error_at_line" >&6; }
  17483. if test $ac_cv_lib_error_at_line = no; then
  17484. case " $LIBOBJS " in
  17485. *" error.$ac_objext "* ) ;;
  17486. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  17487. ;;
  17488. esac
  17489. fi
  17490. if test $ac_cv_c_compiler_gnu = yes; then
  17491. { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  17492. $as_echo_n "checking whether $CC needs -traditional... " >&6; }
  17493. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  17494. $as_echo_n "(cached) " >&6
  17495. else
  17496. ac_pattern="Autoconf.*'x'"
  17497. cat >conftest.$ac_ext <<_ACEOF
  17498. /* confdefs.h. */
  17499. _ACEOF
  17500. cat confdefs.h >>conftest.$ac_ext
  17501. cat >>conftest.$ac_ext <<_ACEOF
  17502. /* end confdefs.h. */
  17503. #include <sgtty.h>
  17504. Autoconf TIOCGETP
  17505. _ACEOF
  17506. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17507. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  17508. ac_cv_prog_gcc_traditional=yes
  17509. else
  17510. ac_cv_prog_gcc_traditional=no
  17511. fi
  17512. rm -f conftest*
  17513. if test $ac_cv_prog_gcc_traditional = no; then
  17514. cat >conftest.$ac_ext <<_ACEOF
  17515. /* confdefs.h. */
  17516. _ACEOF
  17517. cat confdefs.h >>conftest.$ac_ext
  17518. cat >>conftest.$ac_ext <<_ACEOF
  17519. /* end confdefs.h. */
  17520. #include <termio.h>
  17521. Autoconf TCGETA
  17522. _ACEOF
  17523. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  17524. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  17525. ac_cv_prog_gcc_traditional=yes
  17526. fi
  17527. rm -f conftest*
  17528. fi
  17529. fi
  17530. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  17531. $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  17532. if test $ac_cv_prog_gcc_traditional = yes; then
  17533. CC="$CC -traditional"
  17534. fi
  17535. fi
  17536. { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
  17537. $as_echo_n "checking for working memcmp... " >&6; }
  17538. if test "${ac_cv_func_memcmp_working+set}" = set; then
  17539. $as_echo_n "(cached) " >&6
  17540. else
  17541. if test "$cross_compiling" = yes; then
  17542. ac_cv_func_memcmp_working=no
  17543. else
  17544. cat >conftest.$ac_ext <<_ACEOF
  17545. /* confdefs.h. */
  17546. _ACEOF
  17547. cat confdefs.h >>conftest.$ac_ext
  17548. cat >>conftest.$ac_ext <<_ACEOF
  17549. /* end confdefs.h. */
  17550. $ac_includes_default
  17551. int
  17552. main ()
  17553. {
  17554. /* Some versions of memcmp are not 8-bit clean. */
  17555. char c0 = '\100', c1 = '\200', c2 = '\201';
  17556. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  17557. return 1;
  17558. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  17559. or more and with at least one buffer not starting on a 4-byte boundary.
  17560. William Lewis provided this test program. */
  17561. {
  17562. char foo[21];
  17563. char bar[21];
  17564. int i;
  17565. for (i = 0; i < 4; i++)
  17566. {
  17567. char *a = foo + i;
  17568. char *b = bar + i;
  17569. strcpy (a, "--------01111111");
  17570. strcpy (b, "--------10000000");
  17571. if (memcmp (a, b, 16) >= 0)
  17572. return 1;
  17573. }
  17574. return 0;
  17575. }
  17576. ;
  17577. return 0;
  17578. }
  17579. _ACEOF
  17580. rm -f conftest$ac_exeext
  17581. if { (ac_try="$ac_link"
  17582. case "(($ac_try" in
  17583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17584. *) ac_try_echo=$ac_try;;
  17585. esac
  17586. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17587. $as_echo "$ac_try_echo") >&5
  17588. (eval "$ac_link") 2>&5
  17589. ac_status=$?
  17590. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17591. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  17592. { (case "(($ac_try" in
  17593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17594. *) ac_try_echo=$ac_try;;
  17595. esac
  17596. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17597. $as_echo "$ac_try_echo") >&5
  17598. (eval "$ac_try") 2>&5
  17599. ac_status=$?
  17600. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17601. (exit $ac_status); }; }; then
  17602. ac_cv_func_memcmp_working=yes
  17603. else
  17604. $as_echo "$as_me: program exited with status $ac_status" >&5
  17605. $as_echo "$as_me: failed program was:" >&5
  17606. sed 's/^/| /' conftest.$ac_ext >&5
  17607. ( exit $ac_status )
  17608. ac_cv_func_memcmp_working=no
  17609. fi
  17610. rm -rf conftest.dSYM
  17611. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  17612. fi
  17613. fi
  17614. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  17615. $as_echo "$ac_cv_func_memcmp_working" >&6; }
  17616. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  17617. *" memcmp.$ac_objext "* ) ;;
  17618. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  17619. ;;
  17620. esac
  17621. for ac_header in $ac_header_list
  17622. do
  17623. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  17624. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17625. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17626. $as_echo_n "checking for $ac_header... " >&6; }
  17627. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17628. $as_echo_n "(cached) " >&6
  17629. fi
  17630. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17631. $as_echo "$as_val"'`
  17632. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17633. $as_echo "$ac_res" >&6; }
  17634. else
  17635. # Is the header compilable?
  17636. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  17637. $as_echo_n "checking $ac_header usability... " >&6; }
  17638. cat >conftest.$ac_ext <<_ACEOF
  17639. /* confdefs.h. */
  17640. _ACEOF
  17641. cat confdefs.h >>conftest.$ac_ext
  17642. cat >>conftest.$ac_ext <<_ACEOF
  17643. /* end confdefs.h. */
  17644. $ac_includes_default
  17645. #include <$ac_header>
  17646. _ACEOF
  17647. rm -f conftest.$ac_objext
  17648. if { (ac_try="$ac_compile"
  17649. case "(($ac_try" in
  17650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17651. *) ac_try_echo=$ac_try;;
  17652. esac
  17653. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17654. $as_echo "$ac_try_echo") >&5
  17655. (eval "$ac_compile") 2>conftest.er1
  17656. ac_status=$?
  17657. grep -v '^ *+' conftest.er1 >conftest.err
  17658. rm -f conftest.er1
  17659. cat conftest.err >&5
  17660. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17661. (exit $ac_status); } && {
  17662. test -z "$ac_cxx_werror_flag" ||
  17663. test ! -s conftest.err
  17664. } && test -s conftest.$ac_objext; then
  17665. ac_header_compiler=yes
  17666. else
  17667. $as_echo "$as_me: failed program was:" >&5
  17668. sed 's/^/| /' conftest.$ac_ext >&5
  17669. ac_header_compiler=no
  17670. fi
  17671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17672. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17673. $as_echo "$ac_header_compiler" >&6; }
  17674. # Is the header present?
  17675. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  17676. $as_echo_n "checking $ac_header presence... " >&6; }
  17677. cat >conftest.$ac_ext <<_ACEOF
  17678. /* confdefs.h. */
  17679. _ACEOF
  17680. cat confdefs.h >>conftest.$ac_ext
  17681. cat >>conftest.$ac_ext <<_ACEOF
  17682. /* end confdefs.h. */
  17683. #include <$ac_header>
  17684. _ACEOF
  17685. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17686. case "(($ac_try" in
  17687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17688. *) ac_try_echo=$ac_try;;
  17689. esac
  17690. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17691. $as_echo "$ac_try_echo") >&5
  17692. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17693. ac_status=$?
  17694. grep -v '^ *+' conftest.er1 >conftest.err
  17695. rm -f conftest.er1
  17696. cat conftest.err >&5
  17697. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17698. (exit $ac_status); } >/dev/null && {
  17699. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  17700. test ! -s conftest.err
  17701. }; then
  17702. ac_header_preproc=yes
  17703. else
  17704. $as_echo "$as_me: failed program was:" >&5
  17705. sed 's/^/| /' conftest.$ac_ext >&5
  17706. ac_header_preproc=no
  17707. fi
  17708. rm -f conftest.err conftest.$ac_ext
  17709. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17710. $as_echo "$ac_header_preproc" >&6; }
  17711. # So? What about this header?
  17712. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  17713. yes:no: )
  17714. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  17715. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17716. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  17717. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  17718. ac_header_preproc=yes
  17719. ;;
  17720. no:yes:* )
  17721. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  17722. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  17723. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  17724. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  17725. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  17726. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  17727. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  17728. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  17729. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  17730. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  17731. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  17732. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  17733. ( cat <<\_ASBOX
  17734. ## ----------------------------------------------- ##
  17735. ## Report this to t-tujikawa@users.sourceforge.net ##
  17736. ## ----------------------------------------------- ##
  17737. _ASBOX
  17738. ) | sed "s/^/$as_me: WARNING: /" >&2
  17739. ;;
  17740. esac
  17741. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  17742. $as_echo_n "checking for $ac_header... " >&6; }
  17743. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  17744. $as_echo_n "(cached) " >&6
  17745. else
  17746. eval "$as_ac_Header=\$ac_header_preproc"
  17747. fi
  17748. ac_res=`eval 'as_val=${'$as_ac_Header'}
  17749. $as_echo "$as_val"'`
  17750. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17751. $as_echo "$ac_res" >&6; }
  17752. fi
  17753. as_val=`eval 'as_val=${'$as_ac_Header'}
  17754. $as_echo "$as_val"'`
  17755. if test "x$as_val" = x""yes; then
  17756. cat >>confdefs.h <<_ACEOF
  17757. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  17758. _ACEOF
  17759. fi
  17760. done
  17761. for ac_func in $ac_func_list
  17762. do
  17763. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17764. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  17765. $as_echo_n "checking for $ac_func... " >&6; }
  17766. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  17767. $as_echo_n "(cached) " >&6
  17768. else
  17769. cat >conftest.$ac_ext <<_ACEOF
  17770. /* confdefs.h. */
  17771. _ACEOF
  17772. cat confdefs.h >>conftest.$ac_ext
  17773. cat >>conftest.$ac_ext <<_ACEOF
  17774. /* end confdefs.h. */
  17775. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17776. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17777. #define $ac_func innocuous_$ac_func
  17778. /* System header to define __stub macros and hopefully few prototypes,
  17779. which can conflict with char $ac_func (); below.
  17780. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17781. <limits.h> exists even on freestanding compilers. */
  17782. #ifdef __STDC__
  17783. # include <limits.h>
  17784. #else
  17785. # include <assert.h>
  17786. #endif
  17787. #undef $ac_func
  17788. /* Override any GCC internal prototype to avoid an error.
  17789. Use char because int might match the return type of a GCC
  17790. builtin and then its argument prototype would still apply. */
  17791. #ifdef __cplusplus
  17792. extern "C"
  17793. #endif
  17794. char $ac_func ();
  17795. /* The GNU C library defines this for functions which it implements
  17796. to always fail with ENOSYS. Some functions are actually named
  17797. something starting with __ and the normal name is an alias. */
  17798. #if defined __stub_$ac_func || defined __stub___$ac_func
  17799. choke me
  17800. #endif
  17801. int
  17802. main ()
  17803. {
  17804. return $ac_func ();
  17805. ;
  17806. return 0;
  17807. }
  17808. _ACEOF
  17809. rm -f conftest.$ac_objext conftest$ac_exeext
  17810. if { (ac_try="$ac_link"
  17811. case "(($ac_try" in
  17812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17813. *) ac_try_echo=$ac_try;;
  17814. esac
  17815. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17816. $as_echo "$ac_try_echo") >&5
  17817. (eval "$ac_link") 2>conftest.er1
  17818. ac_status=$?
  17819. grep -v '^ *+' conftest.er1 >conftest.err
  17820. rm -f conftest.er1
  17821. cat conftest.err >&5
  17822. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17823. (exit $ac_status); } && {
  17824. test -z "$ac_cxx_werror_flag" ||
  17825. test ! -s conftest.err
  17826. } && test -s conftest$ac_exeext && {
  17827. test "$cross_compiling" = yes ||
  17828. $as_test_x conftest$ac_exeext
  17829. }; then
  17830. eval "$as_ac_var=yes"
  17831. else
  17832. $as_echo "$as_me: failed program was:" >&5
  17833. sed 's/^/| /' conftest.$ac_ext >&5
  17834. eval "$as_ac_var=no"
  17835. fi
  17836. rm -rf conftest.dSYM
  17837. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17838. conftest$ac_exeext conftest.$ac_ext
  17839. fi
  17840. ac_res=`eval 'as_val=${'$as_ac_var'}
  17841. $as_echo "$as_val"'`
  17842. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  17843. $as_echo "$ac_res" >&6; }
  17844. as_val=`eval 'as_val=${'$as_ac_var'}
  17845. $as_echo "$as_val"'`
  17846. if test "x$as_val" = x""yes; then
  17847. cat >>confdefs.h <<_ACEOF
  17848. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17849. _ACEOF
  17850. fi
  17851. done
  17852. { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
  17853. $as_echo_n "checking for working mktime... " >&6; }
  17854. if test "${ac_cv_func_working_mktime+set}" = set; then
  17855. $as_echo_n "(cached) " >&6
  17856. else
  17857. if test "$cross_compiling" = yes; then
  17858. ac_cv_func_working_mktime=no
  17859. else
  17860. cat >conftest.$ac_ext <<_ACEOF
  17861. /* confdefs.h. */
  17862. _ACEOF
  17863. cat confdefs.h >>conftest.$ac_ext
  17864. cat >>conftest.$ac_ext <<_ACEOF
  17865. /* end confdefs.h. */
  17866. /* Test program from Paul Eggert and Tony Leneis. */
  17867. #ifdef TIME_WITH_SYS_TIME
  17868. # include <sys/time.h>
  17869. # include <time.h>
  17870. #else
  17871. # ifdef HAVE_SYS_TIME_H
  17872. # include <sys/time.h>
  17873. # else
  17874. # include <time.h>
  17875. # endif
  17876. #endif
  17877. #include <limits.h>
  17878. #include <stdlib.h>
  17879. #ifdef HAVE_UNISTD_H
  17880. # include <unistd.h>
  17881. #endif
  17882. #ifndef HAVE_ALARM
  17883. # define alarm(X) /* empty */
  17884. #endif
  17885. /* Work around redefinition to rpl_putenv by other config tests. */
  17886. #undef putenv
  17887. static time_t time_t_max;
  17888. static time_t time_t_min;
  17889. /* Values we'll use to set the TZ environment variable. */
  17890. static char *tz_strings[] = {
  17891. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  17892. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  17893. };
  17894. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  17895. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  17896. Based on a problem report from Andreas Jaeger. */
  17897. static int
  17898. spring_forward_gap ()
  17899. {
  17900. /* glibc (up to about 1998-10-07) failed this test. */
  17901. struct tm tm;
  17902. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17903. instead of "TZ=America/Vancouver" in order to detect the bug even
  17904. on systems that don't support the Olson extension, or don't have the
  17905. full zoneinfo tables installed. */
  17906. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17907. tm.tm_year = 98;
  17908. tm.tm_mon = 3;
  17909. tm.tm_mday = 5;
  17910. tm.tm_hour = 2;
  17911. tm.tm_min = 0;
  17912. tm.tm_sec = 0;
  17913. tm.tm_isdst = -1;
  17914. return mktime (&tm) != (time_t) -1;
  17915. }
  17916. static int
  17917. mktime_test1 (now)
  17918. time_t now;
  17919. {
  17920. struct tm *lt;
  17921. return ! (lt = localtime (&now)) || mktime (lt) == now;
  17922. }
  17923. static int
  17924. mktime_test (now)
  17925. time_t now;
  17926. {
  17927. return (mktime_test1 (now)
  17928. && mktime_test1 ((time_t) (time_t_max - now))
  17929. && mktime_test1 ((time_t) (time_t_min + now)));
  17930. }
  17931. static int
  17932. irix_6_4_bug ()
  17933. {
  17934. /* Based on code from Ariel Faigon. */
  17935. struct tm tm;
  17936. tm.tm_year = 96;
  17937. tm.tm_mon = 3;
  17938. tm.tm_mday = 0;
  17939. tm.tm_hour = 0;
  17940. tm.tm_min = 0;
  17941. tm.tm_sec = 0;
  17942. tm.tm_isdst = -1;
  17943. mktime (&tm);
  17944. return tm.tm_mon == 2 && tm.tm_mday == 31;
  17945. }
  17946. static int
  17947. bigtime_test (j)
  17948. int j;
  17949. {
  17950. struct tm tm;
  17951. time_t now;
  17952. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  17953. now = mktime (&tm);
  17954. if (now != (time_t) -1)
  17955. {
  17956. struct tm *lt = localtime (&now);
  17957. if (! (lt
  17958. && lt->tm_year == tm.tm_year
  17959. && lt->tm_mon == tm.tm_mon
  17960. && lt->tm_mday == tm.tm_mday
  17961. && lt->tm_hour == tm.tm_hour
  17962. && lt->tm_min == tm.tm_min
  17963. && lt->tm_sec == tm.tm_sec
  17964. && lt->tm_yday == tm.tm_yday
  17965. && lt->tm_wday == tm.tm_wday
  17966. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  17967. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  17968. return 0;
  17969. }
  17970. return 1;
  17971. }
  17972. static int
  17973. year_2050_test ()
  17974. {
  17975. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  17976. ignoring leap seconds. */
  17977. unsigned long int answer = 2527315200UL;
  17978. struct tm tm;
  17979. time_t t;
  17980. tm.tm_year = 2050 - 1900;
  17981. tm.tm_mon = 2 - 1;
  17982. tm.tm_mday = 1;
  17983. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  17984. tm.tm_isdst = -1;
  17985. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  17986. instead of "TZ=America/Vancouver" in order to detect the bug even
  17987. on systems that don't support the Olson extension, or don't have the
  17988. full zoneinfo tables installed. */
  17989. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  17990. t = mktime (&tm);
  17991. /* Check that the result is either a failure, or close enough
  17992. to the correct answer that we can assume the discrepancy is
  17993. due to leap seconds. */
  17994. return (t == (time_t) -1
  17995. || (0 < t && answer - 120 <= t && t <= answer + 120));
  17996. }
  17997. int
  17998. main ()
  17999. {
  18000. time_t t, delta;
  18001. int i, j;
  18002. /* This test makes some buggy mktime implementations loop.
  18003. Give up after 60 seconds; a mktime slower than that
  18004. isn't worth using anyway. */
  18005. alarm (60);
  18006. for (;;)
  18007. {
  18008. t = (time_t_max << 1) + 1;
  18009. if (t <= time_t_max)
  18010. break;
  18011. time_t_max = t;
  18012. }
  18013. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  18014. delta = time_t_max / 997; /* a suitable prime number */
  18015. for (i = 0; i < N_STRINGS; i++)
  18016. {
  18017. if (tz_strings[i])
  18018. putenv (tz_strings[i]);
  18019. for (t = 0; t <= time_t_max - delta; t += delta)
  18020. if (! mktime_test (t))
  18021. return 1;
  18022. if (! (mktime_test ((time_t) 1)
  18023. && mktime_test ((time_t) (60 * 60))
  18024. && mktime_test ((time_t) (60 * 60 * 24))))
  18025. return 1;
  18026. for (j = 1; ; j <<= 1)
  18027. if (! bigtime_test (j))
  18028. return 1;
  18029. else if (INT_MAX / 2 < j)
  18030. break;
  18031. if (! bigtime_test (INT_MAX))
  18032. return 1;
  18033. }
  18034. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  18035. }
  18036. _ACEOF
  18037. rm -f conftest$ac_exeext
  18038. if { (ac_try="$ac_link"
  18039. case "(($ac_try" in
  18040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18041. *) ac_try_echo=$ac_try;;
  18042. esac
  18043. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18044. $as_echo "$ac_try_echo") >&5
  18045. (eval "$ac_link") 2>&5
  18046. ac_status=$?
  18047. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18048. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18049. { (case "(($ac_try" in
  18050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18051. *) ac_try_echo=$ac_try;;
  18052. esac
  18053. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18054. $as_echo "$ac_try_echo") >&5
  18055. (eval "$ac_try") 2>&5
  18056. ac_status=$?
  18057. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18058. (exit $ac_status); }; }; then
  18059. ac_cv_func_working_mktime=yes
  18060. else
  18061. $as_echo "$as_me: program exited with status $ac_status" >&5
  18062. $as_echo "$as_me: failed program was:" >&5
  18063. sed 's/^/| /' conftest.$ac_ext >&5
  18064. ( exit $ac_status )
  18065. ac_cv_func_working_mktime=no
  18066. fi
  18067. rm -rf conftest.dSYM
  18068. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18069. fi
  18070. fi
  18071. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  18072. $as_echo "$ac_cv_func_working_mktime" >&6; }
  18073. if test $ac_cv_func_working_mktime = no; then
  18074. case " $LIBOBJS " in
  18075. *" mktime.$ac_objext "* ) ;;
  18076. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  18077. ;;
  18078. esac
  18079. fi
  18080. for ac_header in stdlib.h unistd.h
  18081. do
  18082. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18083. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18084. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18085. $as_echo_n "checking for $ac_header... " >&6; }
  18086. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18087. $as_echo_n "(cached) " >&6
  18088. fi
  18089. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18090. $as_echo "$as_val"'`
  18091. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18092. $as_echo "$ac_res" >&6; }
  18093. else
  18094. # Is the header compilable?
  18095. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18096. $as_echo_n "checking $ac_header usability... " >&6; }
  18097. cat >conftest.$ac_ext <<_ACEOF
  18098. /* confdefs.h. */
  18099. _ACEOF
  18100. cat confdefs.h >>conftest.$ac_ext
  18101. cat >>conftest.$ac_ext <<_ACEOF
  18102. /* end confdefs.h. */
  18103. $ac_includes_default
  18104. #include <$ac_header>
  18105. _ACEOF
  18106. rm -f conftest.$ac_objext
  18107. if { (ac_try="$ac_compile"
  18108. case "(($ac_try" in
  18109. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18110. *) ac_try_echo=$ac_try;;
  18111. esac
  18112. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18113. $as_echo "$ac_try_echo") >&5
  18114. (eval "$ac_compile") 2>conftest.er1
  18115. ac_status=$?
  18116. grep -v '^ *+' conftest.er1 >conftest.err
  18117. rm -f conftest.er1
  18118. cat conftest.err >&5
  18119. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18120. (exit $ac_status); } && {
  18121. test -z "$ac_cxx_werror_flag" ||
  18122. test ! -s conftest.err
  18123. } && test -s conftest.$ac_objext; then
  18124. ac_header_compiler=yes
  18125. else
  18126. $as_echo "$as_me: failed program was:" >&5
  18127. sed 's/^/| /' conftest.$ac_ext >&5
  18128. ac_header_compiler=no
  18129. fi
  18130. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18131. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18132. $as_echo "$ac_header_compiler" >&6; }
  18133. # Is the header present?
  18134. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18135. $as_echo_n "checking $ac_header presence... " >&6; }
  18136. cat >conftest.$ac_ext <<_ACEOF
  18137. /* confdefs.h. */
  18138. _ACEOF
  18139. cat confdefs.h >>conftest.$ac_ext
  18140. cat >>conftest.$ac_ext <<_ACEOF
  18141. /* end confdefs.h. */
  18142. #include <$ac_header>
  18143. _ACEOF
  18144. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18145. case "(($ac_try" in
  18146. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18147. *) ac_try_echo=$ac_try;;
  18148. esac
  18149. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18150. $as_echo "$ac_try_echo") >&5
  18151. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18152. ac_status=$?
  18153. grep -v '^ *+' conftest.er1 >conftest.err
  18154. rm -f conftest.er1
  18155. cat conftest.err >&5
  18156. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18157. (exit $ac_status); } >/dev/null && {
  18158. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18159. test ! -s conftest.err
  18160. }; then
  18161. ac_header_preproc=yes
  18162. else
  18163. $as_echo "$as_me: failed program was:" >&5
  18164. sed 's/^/| /' conftest.$ac_ext >&5
  18165. ac_header_preproc=no
  18166. fi
  18167. rm -f conftest.err conftest.$ac_ext
  18168. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18169. $as_echo "$ac_header_preproc" >&6; }
  18170. # So? What about this header?
  18171. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  18172. yes:no: )
  18173. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18174. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18175. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18176. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18177. ac_header_preproc=yes
  18178. ;;
  18179. no:yes:* )
  18180. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18181. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18182. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18183. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18184. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18185. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18186. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18187. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18188. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18189. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18190. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18191. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18192. ( cat <<\_ASBOX
  18193. ## ----------------------------------------------- ##
  18194. ## Report this to t-tujikawa@users.sourceforge.net ##
  18195. ## ----------------------------------------------- ##
  18196. _ASBOX
  18197. ) | sed "s/^/$as_me: WARNING: /" >&2
  18198. ;;
  18199. esac
  18200. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18201. $as_echo_n "checking for $ac_header... " >&6; }
  18202. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18203. $as_echo_n "(cached) " >&6
  18204. else
  18205. eval "$as_ac_Header=\$ac_header_preproc"
  18206. fi
  18207. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18208. $as_echo "$as_val"'`
  18209. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18210. $as_echo "$ac_res" >&6; }
  18211. fi
  18212. as_val=`eval 'as_val=${'$as_ac_Header'}
  18213. $as_echo "$as_val"'`
  18214. if test "x$as_val" = x""yes; then
  18215. cat >>confdefs.h <<_ACEOF
  18216. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18217. _ACEOF
  18218. fi
  18219. done
  18220. for ac_func in getpagesize
  18221. do
  18222. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18223. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18224. $as_echo_n "checking for $ac_func... " >&6; }
  18225. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18226. $as_echo_n "(cached) " >&6
  18227. else
  18228. cat >conftest.$ac_ext <<_ACEOF
  18229. /* confdefs.h. */
  18230. _ACEOF
  18231. cat confdefs.h >>conftest.$ac_ext
  18232. cat >>conftest.$ac_ext <<_ACEOF
  18233. /* end confdefs.h. */
  18234. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18235. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18236. #define $ac_func innocuous_$ac_func
  18237. /* System header to define __stub macros and hopefully few prototypes,
  18238. which can conflict with char $ac_func (); below.
  18239. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18240. <limits.h> exists even on freestanding compilers. */
  18241. #ifdef __STDC__
  18242. # include <limits.h>
  18243. #else
  18244. # include <assert.h>
  18245. #endif
  18246. #undef $ac_func
  18247. /* Override any GCC internal prototype to avoid an error.
  18248. Use char because int might match the return type of a GCC
  18249. builtin and then its argument prototype would still apply. */
  18250. #ifdef __cplusplus
  18251. extern "C"
  18252. #endif
  18253. char $ac_func ();
  18254. /* The GNU C library defines this for functions which it implements
  18255. to always fail with ENOSYS. Some functions are actually named
  18256. something starting with __ and the normal name is an alias. */
  18257. #if defined __stub_$ac_func || defined __stub___$ac_func
  18258. choke me
  18259. #endif
  18260. int
  18261. main ()
  18262. {
  18263. return $ac_func ();
  18264. ;
  18265. return 0;
  18266. }
  18267. _ACEOF
  18268. rm -f conftest.$ac_objext conftest$ac_exeext
  18269. if { (ac_try="$ac_link"
  18270. case "(($ac_try" in
  18271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18272. *) ac_try_echo=$ac_try;;
  18273. esac
  18274. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18275. $as_echo "$ac_try_echo") >&5
  18276. (eval "$ac_link") 2>conftest.er1
  18277. ac_status=$?
  18278. grep -v '^ *+' conftest.er1 >conftest.err
  18279. rm -f conftest.er1
  18280. cat conftest.err >&5
  18281. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18282. (exit $ac_status); } && {
  18283. test -z "$ac_cxx_werror_flag" ||
  18284. test ! -s conftest.err
  18285. } && test -s conftest$ac_exeext && {
  18286. test "$cross_compiling" = yes ||
  18287. $as_test_x conftest$ac_exeext
  18288. }; then
  18289. eval "$as_ac_var=yes"
  18290. else
  18291. $as_echo "$as_me: failed program was:" >&5
  18292. sed 's/^/| /' conftest.$ac_ext >&5
  18293. eval "$as_ac_var=no"
  18294. fi
  18295. rm -rf conftest.dSYM
  18296. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18297. conftest$ac_exeext conftest.$ac_ext
  18298. fi
  18299. ac_res=`eval 'as_val=${'$as_ac_var'}
  18300. $as_echo "$as_val"'`
  18301. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18302. $as_echo "$ac_res" >&6; }
  18303. as_val=`eval 'as_val=${'$as_ac_var'}
  18304. $as_echo "$as_val"'`
  18305. if test "x$as_val" = x""yes; then
  18306. cat >>confdefs.h <<_ACEOF
  18307. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18308. _ACEOF
  18309. fi
  18310. done
  18311. { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
  18312. $as_echo_n "checking for working mmap... " >&6; }
  18313. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  18314. $as_echo_n "(cached) " >&6
  18315. else
  18316. if test "$cross_compiling" = yes; then
  18317. ac_cv_func_mmap_fixed_mapped=no
  18318. else
  18319. cat >conftest.$ac_ext <<_ACEOF
  18320. /* confdefs.h. */
  18321. _ACEOF
  18322. cat confdefs.h >>conftest.$ac_ext
  18323. cat >>conftest.$ac_ext <<_ACEOF
  18324. /* end confdefs.h. */
  18325. $ac_includes_default
  18326. /* malloc might have been renamed as rpl_malloc. */
  18327. #undef malloc
  18328. /* Thanks to Mike Haertel and Jim Avera for this test.
  18329. Here is a matrix of mmap possibilities:
  18330. mmap private not fixed
  18331. mmap private fixed at somewhere currently unmapped
  18332. mmap private fixed at somewhere already mapped
  18333. mmap shared not fixed
  18334. mmap shared fixed at somewhere currently unmapped
  18335. mmap shared fixed at somewhere already mapped
  18336. For private mappings, we should verify that changes cannot be read()
  18337. back from the file, nor mmap's back from the file at a different
  18338. address. (There have been systems where private was not correctly
  18339. implemented like the infamous i386 svr4.0, and systems where the
  18340. VM page cache was not coherent with the file system buffer cache
  18341. like early versions of FreeBSD and possibly contemporary NetBSD.)
  18342. For shared mappings, we should conversely verify that changes get
  18343. propagated back to all the places they're supposed to be.
  18344. Grep wants private fixed already mapped.
  18345. The main things grep needs to know about mmap are:
  18346. * does it exist and is it safe to write into the mmap'd area
  18347. * how to use it (BSD variants) */
  18348. #include <fcntl.h>
  18349. #include <sys/mman.h>
  18350. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  18351. char *malloc ();
  18352. #endif
  18353. /* This mess was copied from the GNU getpagesize.h. */
  18354. #ifndef HAVE_GETPAGESIZE
  18355. /* Assume that all systems that can run configure have sys/param.h. */
  18356. # ifndef HAVE_SYS_PARAM_H
  18357. # define HAVE_SYS_PARAM_H 1
  18358. # endif
  18359. # ifdef _SC_PAGESIZE
  18360. # define getpagesize() sysconf(_SC_PAGESIZE)
  18361. # else /* no _SC_PAGESIZE */
  18362. # ifdef HAVE_SYS_PARAM_H
  18363. # include <sys/param.h>
  18364. # ifdef EXEC_PAGESIZE
  18365. # define getpagesize() EXEC_PAGESIZE
  18366. # else /* no EXEC_PAGESIZE */
  18367. # ifdef NBPG
  18368. # define getpagesize() NBPG * CLSIZE
  18369. # ifndef CLSIZE
  18370. # define CLSIZE 1
  18371. # endif /* no CLSIZE */
  18372. # else /* no NBPG */
  18373. # ifdef NBPC
  18374. # define getpagesize() NBPC
  18375. # else /* no NBPC */
  18376. # ifdef PAGESIZE
  18377. # define getpagesize() PAGESIZE
  18378. # endif /* PAGESIZE */
  18379. # endif /* no NBPC */
  18380. # endif /* no NBPG */
  18381. # endif /* no EXEC_PAGESIZE */
  18382. # else /* no HAVE_SYS_PARAM_H */
  18383. # define getpagesize() 8192 /* punt totally */
  18384. # endif /* no HAVE_SYS_PARAM_H */
  18385. # endif /* no _SC_PAGESIZE */
  18386. #endif /* no HAVE_GETPAGESIZE */
  18387. int
  18388. main ()
  18389. {
  18390. char *data, *data2, *data3;
  18391. int i, pagesize;
  18392. int fd;
  18393. pagesize = getpagesize ();
  18394. /* First, make a file with some known garbage in it. */
  18395. data = (char *) malloc (pagesize);
  18396. if (!data)
  18397. return 1;
  18398. for (i = 0; i < pagesize; ++i)
  18399. *(data + i) = rand ();
  18400. umask (0);
  18401. fd = creat ("conftest.mmap", 0600);
  18402. if (fd < 0)
  18403. return 1;
  18404. if (write (fd, data, pagesize) != pagesize)
  18405. return 1;
  18406. close (fd);
  18407. /* Next, try to mmap the file at a fixed address which already has
  18408. something else allocated at it. If we can, also make sure that
  18409. we see the same garbage. */
  18410. fd = open ("conftest.mmap", O_RDWR);
  18411. if (fd < 0)
  18412. return 1;
  18413. data2 = (char *) malloc (2 * pagesize);
  18414. if (!data2)
  18415. return 1;
  18416. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  18417. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  18418. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  18419. return 1;
  18420. for (i = 0; i < pagesize; ++i)
  18421. if (*(data + i) != *(data2 + i))
  18422. return 1;
  18423. /* Finally, make sure that changes to the mapped area do not
  18424. percolate back to the file as seen by read(). (This is a bug on
  18425. some variants of i386 svr4.0.) */
  18426. for (i = 0; i < pagesize; ++i)
  18427. *(data2 + i) = *(data2 + i) + 1;
  18428. data3 = (char *) malloc (pagesize);
  18429. if (!data3)
  18430. return 1;
  18431. if (read (fd, data3, pagesize) != pagesize)
  18432. return 1;
  18433. for (i = 0; i < pagesize; ++i)
  18434. if (*(data + i) != *(data3 + i))
  18435. return 1;
  18436. close (fd);
  18437. return 0;
  18438. }
  18439. _ACEOF
  18440. rm -f conftest$ac_exeext
  18441. if { (ac_try="$ac_link"
  18442. case "(($ac_try" in
  18443. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18444. *) ac_try_echo=$ac_try;;
  18445. esac
  18446. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18447. $as_echo "$ac_try_echo") >&5
  18448. (eval "$ac_link") 2>&5
  18449. ac_status=$?
  18450. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18451. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18452. { (case "(($ac_try" in
  18453. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18454. *) ac_try_echo=$ac_try;;
  18455. esac
  18456. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18457. $as_echo "$ac_try_echo") >&5
  18458. (eval "$ac_try") 2>&5
  18459. ac_status=$?
  18460. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18461. (exit $ac_status); }; }; then
  18462. ac_cv_func_mmap_fixed_mapped=yes
  18463. else
  18464. $as_echo "$as_me: program exited with status $ac_status" >&5
  18465. $as_echo "$as_me: failed program was:" >&5
  18466. sed 's/^/| /' conftest.$ac_ext >&5
  18467. ( exit $ac_status )
  18468. ac_cv_func_mmap_fixed_mapped=no
  18469. fi
  18470. rm -rf conftest.dSYM
  18471. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18472. fi
  18473. fi
  18474. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  18475. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  18476. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  18477. cat >>confdefs.h <<\_ACEOF
  18478. #define HAVE_MMAP 1
  18479. _ACEOF
  18480. fi
  18481. rm -f conftest.mmap
  18482. for ac_header in sys/select.h sys/socket.h
  18483. do
  18484. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18485. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18486. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18487. $as_echo_n "checking for $ac_header... " >&6; }
  18488. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18489. $as_echo_n "(cached) " >&6
  18490. fi
  18491. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18492. $as_echo "$as_val"'`
  18493. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18494. $as_echo "$ac_res" >&6; }
  18495. else
  18496. # Is the header compilable?
  18497. { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18498. $as_echo_n "checking $ac_header usability... " >&6; }
  18499. cat >conftest.$ac_ext <<_ACEOF
  18500. /* confdefs.h. */
  18501. _ACEOF
  18502. cat confdefs.h >>conftest.$ac_ext
  18503. cat >>conftest.$ac_ext <<_ACEOF
  18504. /* end confdefs.h. */
  18505. $ac_includes_default
  18506. #include <$ac_header>
  18507. _ACEOF
  18508. rm -f conftest.$ac_objext
  18509. if { (ac_try="$ac_compile"
  18510. case "(($ac_try" in
  18511. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18512. *) ac_try_echo=$ac_try;;
  18513. esac
  18514. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18515. $as_echo "$ac_try_echo") >&5
  18516. (eval "$ac_compile") 2>conftest.er1
  18517. ac_status=$?
  18518. grep -v '^ *+' conftest.er1 >conftest.err
  18519. rm -f conftest.er1
  18520. cat conftest.err >&5
  18521. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18522. (exit $ac_status); } && {
  18523. test -z "$ac_cxx_werror_flag" ||
  18524. test ! -s conftest.err
  18525. } && test -s conftest.$ac_objext; then
  18526. ac_header_compiler=yes
  18527. else
  18528. $as_echo "$as_me: failed program was:" >&5
  18529. sed 's/^/| /' conftest.$ac_ext >&5
  18530. ac_header_compiler=no
  18531. fi
  18532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18533. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18534. $as_echo "$ac_header_compiler" >&6; }
  18535. # Is the header present?
  18536. { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18537. $as_echo_n "checking $ac_header presence... " >&6; }
  18538. cat >conftest.$ac_ext <<_ACEOF
  18539. /* confdefs.h. */
  18540. _ACEOF
  18541. cat confdefs.h >>conftest.$ac_ext
  18542. cat >>conftest.$ac_ext <<_ACEOF
  18543. /* end confdefs.h. */
  18544. #include <$ac_header>
  18545. _ACEOF
  18546. if { (ac_try="$ac_cpp conftest.$ac_ext"
  18547. case "(($ac_try" in
  18548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18549. *) ac_try_echo=$ac_try;;
  18550. esac
  18551. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18552. $as_echo "$ac_try_echo") >&5
  18553. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  18554. ac_status=$?
  18555. grep -v '^ *+' conftest.er1 >conftest.err
  18556. rm -f conftest.er1
  18557. cat conftest.err >&5
  18558. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18559. (exit $ac_status); } >/dev/null && {
  18560. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  18561. test ! -s conftest.err
  18562. }; then
  18563. ac_header_preproc=yes
  18564. else
  18565. $as_echo "$as_me: failed program was:" >&5
  18566. sed 's/^/| /' conftest.$ac_ext >&5
  18567. ac_header_preproc=no
  18568. fi
  18569. rm -f conftest.err conftest.$ac_ext
  18570. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18571. $as_echo "$ac_header_preproc" >&6; }
  18572. # So? What about this header?
  18573. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  18574. yes:no: )
  18575. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18576. $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18577. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18578. $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18579. ac_header_preproc=yes
  18580. ;;
  18581. no:yes:* )
  18582. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18583. $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18584. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18585. $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18586. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18587. $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18588. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18589. $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18590. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18591. $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18592. { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18593. $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18594. ( cat <<\_ASBOX
  18595. ## ----------------------------------------------- ##
  18596. ## Report this to t-tujikawa@users.sourceforge.net ##
  18597. ## ----------------------------------------------- ##
  18598. _ASBOX
  18599. ) | sed "s/^/$as_me: WARNING: /" >&2
  18600. ;;
  18601. esac
  18602. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  18603. $as_echo_n "checking for $ac_header... " >&6; }
  18604. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  18605. $as_echo_n "(cached) " >&6
  18606. else
  18607. eval "$as_ac_Header=\$ac_header_preproc"
  18608. fi
  18609. ac_res=`eval 'as_val=${'$as_ac_Header'}
  18610. $as_echo "$as_val"'`
  18611. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18612. $as_echo "$ac_res" >&6; }
  18613. fi
  18614. as_val=`eval 'as_val=${'$as_ac_Header'}
  18615. $as_echo "$as_val"'`
  18616. if test "x$as_val" = x""yes; then
  18617. cat >>confdefs.h <<_ACEOF
  18618. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18619. _ACEOF
  18620. fi
  18621. done
  18622. { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
  18623. $as_echo_n "checking types of arguments for select... " >&6; }
  18624. if test "${ac_cv_func_select_args+set}" = set; then
  18625. $as_echo_n "(cached) " >&6
  18626. else
  18627. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  18628. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  18629. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  18630. cat >conftest.$ac_ext <<_ACEOF
  18631. /* confdefs.h. */
  18632. _ACEOF
  18633. cat confdefs.h >>conftest.$ac_ext
  18634. cat >>conftest.$ac_ext <<_ACEOF
  18635. /* end confdefs.h. */
  18636. $ac_includes_default
  18637. #ifdef HAVE_SYS_SELECT_H
  18638. # include <sys/select.h>
  18639. #endif
  18640. #ifdef HAVE_SYS_SOCKET_H
  18641. # include <sys/socket.h>
  18642. #endif
  18643. int
  18644. main ()
  18645. {
  18646. extern int select ($ac_arg1,
  18647. $ac_arg234, $ac_arg234, $ac_arg234,
  18648. $ac_arg5);
  18649. ;
  18650. return 0;
  18651. }
  18652. _ACEOF
  18653. rm -f conftest.$ac_objext
  18654. if { (ac_try="$ac_compile"
  18655. case "(($ac_try" in
  18656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18657. *) ac_try_echo=$ac_try;;
  18658. esac
  18659. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18660. $as_echo "$ac_try_echo") >&5
  18661. (eval "$ac_compile") 2>conftest.er1
  18662. ac_status=$?
  18663. grep -v '^ *+' conftest.er1 >conftest.err
  18664. rm -f conftest.er1
  18665. cat conftest.err >&5
  18666. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18667. (exit $ac_status); } && {
  18668. test -z "$ac_cxx_werror_flag" ||
  18669. test ! -s conftest.err
  18670. } && test -s conftest.$ac_objext; then
  18671. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  18672. else
  18673. $as_echo "$as_me: failed program was:" >&5
  18674. sed 's/^/| /' conftest.$ac_ext >&5
  18675. fi
  18676. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18677. done
  18678. done
  18679. done
  18680. # Provide a safe default value.
  18681. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  18682. fi
  18683. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  18684. $as_echo "$ac_cv_func_select_args" >&6; }
  18685. ac_save_IFS=$IFS; IFS=','
  18686. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  18687. IFS=$ac_save_IFS
  18688. shift
  18689. cat >>confdefs.h <<_ACEOF
  18690. #define SELECT_TYPE_ARG1 $1
  18691. _ACEOF
  18692. cat >>confdefs.h <<_ACEOF
  18693. #define SELECT_TYPE_ARG234 ($2)
  18694. _ACEOF
  18695. cat >>confdefs.h <<_ACEOF
  18696. #define SELECT_TYPE_ARG5 ($3)
  18697. _ACEOF
  18698. rm -f conftest*
  18699. { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  18700. $as_echo_n "checking return type of signal handlers... " >&6; }
  18701. if test "${ac_cv_type_signal+set}" = set; then
  18702. $as_echo_n "(cached) " >&6
  18703. else
  18704. cat >conftest.$ac_ext <<_ACEOF
  18705. /* confdefs.h. */
  18706. _ACEOF
  18707. cat confdefs.h >>conftest.$ac_ext
  18708. cat >>conftest.$ac_ext <<_ACEOF
  18709. /* end confdefs.h. */
  18710. #include <sys/types.h>
  18711. #include <signal.h>
  18712. int
  18713. main ()
  18714. {
  18715. return *(signal (0, 0)) (0) == 1;
  18716. ;
  18717. return 0;
  18718. }
  18719. _ACEOF
  18720. rm -f conftest.$ac_objext
  18721. if { (ac_try="$ac_compile"
  18722. case "(($ac_try" in
  18723. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18724. *) ac_try_echo=$ac_try;;
  18725. esac
  18726. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18727. $as_echo "$ac_try_echo") >&5
  18728. (eval "$ac_compile") 2>conftest.er1
  18729. ac_status=$?
  18730. grep -v '^ *+' conftest.er1 >conftest.err
  18731. rm -f conftest.er1
  18732. cat conftest.err >&5
  18733. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18734. (exit $ac_status); } && {
  18735. test -z "$ac_cxx_werror_flag" ||
  18736. test ! -s conftest.err
  18737. } && test -s conftest.$ac_objext; then
  18738. ac_cv_type_signal=int
  18739. else
  18740. $as_echo "$as_me: failed program was:" >&5
  18741. sed 's/^/| /' conftest.$ac_ext >&5
  18742. ac_cv_type_signal=void
  18743. fi
  18744. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18745. fi
  18746. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  18747. $as_echo "$ac_cv_type_signal" >&6; }
  18748. cat >>confdefs.h <<_ACEOF
  18749. #define RETSIGTYPE $ac_cv_type_signal
  18750. _ACEOF
  18751. { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  18752. $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
  18753. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  18754. $as_echo_n "(cached) " >&6
  18755. else
  18756. rm -f conftest.sym conftest.file
  18757. echo >conftest.file
  18758. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  18759. if test "$cross_compiling" = yes; then
  18760. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18761. else
  18762. cat >conftest.$ac_ext <<_ACEOF
  18763. /* confdefs.h. */
  18764. _ACEOF
  18765. cat confdefs.h >>conftest.$ac_ext
  18766. cat >>conftest.$ac_ext <<_ACEOF
  18767. /* end confdefs.h. */
  18768. $ac_includes_default
  18769. int
  18770. main ()
  18771. {
  18772. struct stat sbuf;
  18773. /* Linux will dereference the symlink and fail.
  18774. That is better in the sense that it means we will not
  18775. have to compile and use the lstat wrapper. */
  18776. return lstat ("conftest.sym/", &sbuf) == 0;
  18777. ;
  18778. return 0;
  18779. }
  18780. _ACEOF
  18781. rm -f conftest$ac_exeext
  18782. if { (ac_try="$ac_link"
  18783. case "(($ac_try" in
  18784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18785. *) ac_try_echo=$ac_try;;
  18786. esac
  18787. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18788. $as_echo "$ac_try_echo") >&5
  18789. (eval "$ac_link") 2>&5
  18790. ac_status=$?
  18791. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18792. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18793. { (case "(($ac_try" in
  18794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18795. *) ac_try_echo=$ac_try;;
  18796. esac
  18797. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18798. $as_echo "$ac_try_echo") >&5
  18799. (eval "$ac_try") 2>&5
  18800. ac_status=$?
  18801. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18802. (exit $ac_status); }; }; then
  18803. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  18804. else
  18805. $as_echo "$as_me: program exited with status $ac_status" >&5
  18806. $as_echo "$as_me: failed program was:" >&5
  18807. sed 's/^/| /' conftest.$ac_ext >&5
  18808. ( exit $ac_status )
  18809. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18810. fi
  18811. rm -rf conftest.dSYM
  18812. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18813. fi
  18814. else
  18815. # If the `ln -s' command failed, then we probably don't even
  18816. # have an lstat function.
  18817. ac_cv_func_lstat_dereferences_slashed_symlink=no
  18818. fi
  18819. rm -f conftest.sym conftest.file
  18820. fi
  18821. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  18822. $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  18823. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  18824. cat >>confdefs.h <<_ACEOF
  18825. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  18826. _ACEOF
  18827. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  18828. case " $LIBOBJS " in
  18829. *" lstat.$ac_objext "* ) ;;
  18830. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  18831. ;;
  18832. esac
  18833. fi
  18834. { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  18835. $as_echo_n "checking whether stat accepts an empty string... " >&6; }
  18836. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  18837. $as_echo_n "(cached) " >&6
  18838. else
  18839. if test "$cross_compiling" = yes; then
  18840. ac_cv_func_stat_empty_string_bug=yes
  18841. else
  18842. cat >conftest.$ac_ext <<_ACEOF
  18843. /* confdefs.h. */
  18844. _ACEOF
  18845. cat confdefs.h >>conftest.$ac_ext
  18846. cat >>conftest.$ac_ext <<_ACEOF
  18847. /* end confdefs.h. */
  18848. $ac_includes_default
  18849. int
  18850. main ()
  18851. {
  18852. struct stat sbuf;
  18853. return stat ("", &sbuf) == 0;
  18854. ;
  18855. return 0;
  18856. }
  18857. _ACEOF
  18858. rm -f conftest$ac_exeext
  18859. if { (ac_try="$ac_link"
  18860. case "(($ac_try" in
  18861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18862. *) ac_try_echo=$ac_try;;
  18863. esac
  18864. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18865. $as_echo "$ac_try_echo") >&5
  18866. (eval "$ac_link") 2>&5
  18867. ac_status=$?
  18868. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18869. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  18870. { (case "(($ac_try" in
  18871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18872. *) ac_try_echo=$ac_try;;
  18873. esac
  18874. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18875. $as_echo "$ac_try_echo") >&5
  18876. (eval "$ac_try") 2>&5
  18877. ac_status=$?
  18878. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18879. (exit $ac_status); }; }; then
  18880. ac_cv_func_stat_empty_string_bug=no
  18881. else
  18882. $as_echo "$as_me: program exited with status $ac_status" >&5
  18883. $as_echo "$as_me: failed program was:" >&5
  18884. sed 's/^/| /' conftest.$ac_ext >&5
  18885. ( exit $ac_status )
  18886. ac_cv_func_stat_empty_string_bug=yes
  18887. fi
  18888. rm -rf conftest.dSYM
  18889. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  18890. fi
  18891. fi
  18892. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  18893. $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
  18894. if test $ac_cv_func_stat_empty_string_bug = yes; then
  18895. case " $LIBOBJS " in
  18896. *" stat.$ac_objext "* ) ;;
  18897. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  18898. ;;
  18899. esac
  18900. cat >>confdefs.h <<_ACEOF
  18901. #define HAVE_STAT_EMPTY_STRING_BUG 1
  18902. _ACEOF
  18903. fi
  18904. for ac_func in strftime
  18905. do
  18906. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  18907. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  18908. $as_echo_n "checking for $ac_func... " >&6; }
  18909. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  18910. $as_echo_n "(cached) " >&6
  18911. else
  18912. cat >conftest.$ac_ext <<_ACEOF
  18913. /* confdefs.h. */
  18914. _ACEOF
  18915. cat confdefs.h >>conftest.$ac_ext
  18916. cat >>conftest.$ac_ext <<_ACEOF
  18917. /* end confdefs.h. */
  18918. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  18919. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  18920. #define $ac_func innocuous_$ac_func
  18921. /* System header to define __stub macros and hopefully few prototypes,
  18922. which can conflict with char $ac_func (); below.
  18923. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  18924. <limits.h> exists even on freestanding compilers. */
  18925. #ifdef __STDC__
  18926. # include <limits.h>
  18927. #else
  18928. # include <assert.h>
  18929. #endif
  18930. #undef $ac_func
  18931. /* Override any GCC internal prototype to avoid an error.
  18932. Use char because int might match the return type of a GCC
  18933. builtin and then its argument prototype would still apply. */
  18934. #ifdef __cplusplus
  18935. extern "C"
  18936. #endif
  18937. char $ac_func ();
  18938. /* The GNU C library defines this for functions which it implements
  18939. to always fail with ENOSYS. Some functions are actually named
  18940. something starting with __ and the normal name is an alias. */
  18941. #if defined __stub_$ac_func || defined __stub___$ac_func
  18942. choke me
  18943. #endif
  18944. int
  18945. main ()
  18946. {
  18947. return $ac_func ();
  18948. ;
  18949. return 0;
  18950. }
  18951. _ACEOF
  18952. rm -f conftest.$ac_objext conftest$ac_exeext
  18953. if { (ac_try="$ac_link"
  18954. case "(($ac_try" in
  18955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18956. *) ac_try_echo=$ac_try;;
  18957. esac
  18958. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18959. $as_echo "$ac_try_echo") >&5
  18960. (eval "$ac_link") 2>conftest.er1
  18961. ac_status=$?
  18962. grep -v '^ *+' conftest.er1 >conftest.err
  18963. rm -f conftest.er1
  18964. cat conftest.err >&5
  18965. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18966. (exit $ac_status); } && {
  18967. test -z "$ac_cxx_werror_flag" ||
  18968. test ! -s conftest.err
  18969. } && test -s conftest$ac_exeext && {
  18970. test "$cross_compiling" = yes ||
  18971. $as_test_x conftest$ac_exeext
  18972. }; then
  18973. eval "$as_ac_var=yes"
  18974. else
  18975. $as_echo "$as_me: failed program was:" >&5
  18976. sed 's/^/| /' conftest.$ac_ext >&5
  18977. eval "$as_ac_var=no"
  18978. fi
  18979. rm -rf conftest.dSYM
  18980. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  18981. conftest$ac_exeext conftest.$ac_ext
  18982. fi
  18983. ac_res=`eval 'as_val=${'$as_ac_var'}
  18984. $as_echo "$as_val"'`
  18985. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  18986. $as_echo "$ac_res" >&6; }
  18987. as_val=`eval 'as_val=${'$as_ac_var'}
  18988. $as_echo "$as_val"'`
  18989. if test "x$as_val" = x""yes; then
  18990. cat >>confdefs.h <<_ACEOF
  18991. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  18992. _ACEOF
  18993. else
  18994. # strftime is in -lintl on SCO UNIX.
  18995. { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  18996. $as_echo_n "checking for strftime in -lintl... " >&6; }
  18997. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  18998. $as_echo_n "(cached) " >&6
  18999. else
  19000. ac_check_lib_save_LIBS=$LIBS
  19001. LIBS="-lintl $LIBS"
  19002. cat >conftest.$ac_ext <<_ACEOF
  19003. /* confdefs.h. */
  19004. _ACEOF
  19005. cat confdefs.h >>conftest.$ac_ext
  19006. cat >>conftest.$ac_ext <<_ACEOF
  19007. /* end confdefs.h. */
  19008. /* Override any GCC internal prototype to avoid an error.
  19009. Use char because int might match the return type of a GCC
  19010. builtin and then its argument prototype would still apply. */
  19011. #ifdef __cplusplus
  19012. extern "C"
  19013. #endif
  19014. char strftime ();
  19015. int
  19016. main ()
  19017. {
  19018. return strftime ();
  19019. ;
  19020. return 0;
  19021. }
  19022. _ACEOF
  19023. rm -f conftest.$ac_objext conftest$ac_exeext
  19024. if { (ac_try="$ac_link"
  19025. case "(($ac_try" in
  19026. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19027. *) ac_try_echo=$ac_try;;
  19028. esac
  19029. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19030. $as_echo "$ac_try_echo") >&5
  19031. (eval "$ac_link") 2>conftest.er1
  19032. ac_status=$?
  19033. grep -v '^ *+' conftest.er1 >conftest.err
  19034. rm -f conftest.er1
  19035. cat conftest.err >&5
  19036. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19037. (exit $ac_status); } && {
  19038. test -z "$ac_cxx_werror_flag" ||
  19039. test ! -s conftest.err
  19040. } && test -s conftest$ac_exeext && {
  19041. test "$cross_compiling" = yes ||
  19042. $as_test_x conftest$ac_exeext
  19043. }; then
  19044. ac_cv_lib_intl_strftime=yes
  19045. else
  19046. $as_echo "$as_me: failed program was:" >&5
  19047. sed 's/^/| /' conftest.$ac_ext >&5
  19048. ac_cv_lib_intl_strftime=no
  19049. fi
  19050. rm -rf conftest.dSYM
  19051. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19052. conftest$ac_exeext conftest.$ac_ext
  19053. LIBS=$ac_check_lib_save_LIBS
  19054. fi
  19055. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  19056. $as_echo "$ac_cv_lib_intl_strftime" >&6; }
  19057. if test "x$ac_cv_lib_intl_strftime" = x""yes; then
  19058. cat >>confdefs.h <<\_ACEOF
  19059. #define HAVE_STRFTIME 1
  19060. _ACEOF
  19061. LIBS="-lintl $LIBS"
  19062. fi
  19063. fi
  19064. done
  19065. for ac_func in vprintf
  19066. do
  19067. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19068. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19069. $as_echo_n "checking for $ac_func... " >&6; }
  19070. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19071. $as_echo_n "(cached) " >&6
  19072. else
  19073. cat >conftest.$ac_ext <<_ACEOF
  19074. /* confdefs.h. */
  19075. _ACEOF
  19076. cat confdefs.h >>conftest.$ac_ext
  19077. cat >>conftest.$ac_ext <<_ACEOF
  19078. /* end confdefs.h. */
  19079. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19080. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19081. #define $ac_func innocuous_$ac_func
  19082. /* System header to define __stub macros and hopefully few prototypes,
  19083. which can conflict with char $ac_func (); below.
  19084. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19085. <limits.h> exists even on freestanding compilers. */
  19086. #ifdef __STDC__
  19087. # include <limits.h>
  19088. #else
  19089. # include <assert.h>
  19090. #endif
  19091. #undef $ac_func
  19092. /* Override any GCC internal prototype to avoid an error.
  19093. Use char because int might match the return type of a GCC
  19094. builtin and then its argument prototype would still apply. */
  19095. #ifdef __cplusplus
  19096. extern "C"
  19097. #endif
  19098. char $ac_func ();
  19099. /* The GNU C library defines this for functions which it implements
  19100. to always fail with ENOSYS. Some functions are actually named
  19101. something starting with __ and the normal name is an alias. */
  19102. #if defined __stub_$ac_func || defined __stub___$ac_func
  19103. choke me
  19104. #endif
  19105. int
  19106. main ()
  19107. {
  19108. return $ac_func ();
  19109. ;
  19110. return 0;
  19111. }
  19112. _ACEOF
  19113. rm -f conftest.$ac_objext conftest$ac_exeext
  19114. if { (ac_try="$ac_link"
  19115. case "(($ac_try" in
  19116. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19117. *) ac_try_echo=$ac_try;;
  19118. esac
  19119. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19120. $as_echo "$ac_try_echo") >&5
  19121. (eval "$ac_link") 2>conftest.er1
  19122. ac_status=$?
  19123. grep -v '^ *+' conftest.er1 >conftest.err
  19124. rm -f conftest.er1
  19125. cat conftest.err >&5
  19126. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19127. (exit $ac_status); } && {
  19128. test -z "$ac_cxx_werror_flag" ||
  19129. test ! -s conftest.err
  19130. } && test -s conftest$ac_exeext && {
  19131. test "$cross_compiling" = yes ||
  19132. $as_test_x conftest$ac_exeext
  19133. }; then
  19134. eval "$as_ac_var=yes"
  19135. else
  19136. $as_echo "$as_me: failed program was:" >&5
  19137. sed 's/^/| /' conftest.$ac_ext >&5
  19138. eval "$as_ac_var=no"
  19139. fi
  19140. rm -rf conftest.dSYM
  19141. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19142. conftest$ac_exeext conftest.$ac_ext
  19143. fi
  19144. ac_res=`eval 'as_val=${'$as_ac_var'}
  19145. $as_echo "$as_val"'`
  19146. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19147. $as_echo "$ac_res" >&6; }
  19148. as_val=`eval 'as_val=${'$as_ac_var'}
  19149. $as_echo "$as_val"'`
  19150. if test "x$as_val" = x""yes; then
  19151. cat >>confdefs.h <<_ACEOF
  19152. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19153. _ACEOF
  19154. { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
  19155. $as_echo_n "checking for _doprnt... " >&6; }
  19156. if test "${ac_cv_func__doprnt+set}" = set; then
  19157. $as_echo_n "(cached) " >&6
  19158. else
  19159. cat >conftest.$ac_ext <<_ACEOF
  19160. /* confdefs.h. */
  19161. _ACEOF
  19162. cat confdefs.h >>conftest.$ac_ext
  19163. cat >>conftest.$ac_ext <<_ACEOF
  19164. /* end confdefs.h. */
  19165. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  19166. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19167. #define _doprnt innocuous__doprnt
  19168. /* System header to define __stub macros and hopefully few prototypes,
  19169. which can conflict with char _doprnt (); below.
  19170. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19171. <limits.h> exists even on freestanding compilers. */
  19172. #ifdef __STDC__
  19173. # include <limits.h>
  19174. #else
  19175. # include <assert.h>
  19176. #endif
  19177. #undef _doprnt
  19178. /* Override any GCC internal prototype to avoid an error.
  19179. Use char because int might match the return type of a GCC
  19180. builtin and then its argument prototype would still apply. */
  19181. #ifdef __cplusplus
  19182. extern "C"
  19183. #endif
  19184. char _doprnt ();
  19185. /* The GNU C library defines this for functions which it implements
  19186. to always fail with ENOSYS. Some functions are actually named
  19187. something starting with __ and the normal name is an alias. */
  19188. #if defined __stub__doprnt || defined __stub____doprnt
  19189. choke me
  19190. #endif
  19191. int
  19192. main ()
  19193. {
  19194. return _doprnt ();
  19195. ;
  19196. return 0;
  19197. }
  19198. _ACEOF
  19199. rm -f conftest.$ac_objext conftest$ac_exeext
  19200. if { (ac_try="$ac_link"
  19201. case "(($ac_try" in
  19202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19203. *) ac_try_echo=$ac_try;;
  19204. esac
  19205. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19206. $as_echo "$ac_try_echo") >&5
  19207. (eval "$ac_link") 2>conftest.er1
  19208. ac_status=$?
  19209. grep -v '^ *+' conftest.er1 >conftest.err
  19210. rm -f conftest.er1
  19211. cat conftest.err >&5
  19212. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19213. (exit $ac_status); } && {
  19214. test -z "$ac_cxx_werror_flag" ||
  19215. test ! -s conftest.err
  19216. } && test -s conftest$ac_exeext && {
  19217. test "$cross_compiling" = yes ||
  19218. $as_test_x conftest$ac_exeext
  19219. }; then
  19220. ac_cv_func__doprnt=yes
  19221. else
  19222. $as_echo "$as_me: failed program was:" >&5
  19223. sed 's/^/| /' conftest.$ac_ext >&5
  19224. ac_cv_func__doprnt=no
  19225. fi
  19226. rm -rf conftest.dSYM
  19227. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19228. conftest$ac_exeext conftest.$ac_ext
  19229. fi
  19230. { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  19231. $as_echo "$ac_cv_func__doprnt" >&6; }
  19232. if test "x$ac_cv_func__doprnt" = x""yes; then
  19233. cat >>confdefs.h <<\_ACEOF
  19234. #define HAVE_DOPRNT 1
  19235. _ACEOF
  19236. fi
  19237. fi
  19238. done
  19239. for ac_func in __argz_count \
  19240. __argz_next \
  19241. __argz_stringify \
  19242. atexit \
  19243. fork \
  19244. ftruncate \
  19245. getcwd \
  19246. gethostbyaddr \
  19247. gethostbyname \
  19248. getpagesize \
  19249. inet_ntoa \
  19250. memchr \
  19251. memmove \
  19252. mempcpy \
  19253. memset \
  19254. mkdir \
  19255. munmap \
  19256. nl_langinfo \
  19257. posix_memalign \
  19258. putenv \
  19259. rmdir \
  19260. select \
  19261. setlocale \
  19262. sleep \
  19263. socket \
  19264. stpcpy \
  19265. strcasecmp \
  19266. strchr \
  19267. strcspn \
  19268. strdup \
  19269. strerror \
  19270. strncasecmp \
  19271. strstr \
  19272. strtol \
  19273. strtoul \
  19274. strtoull \
  19275. tzset \
  19276. unsetenv \
  19277. usleep
  19278. do
  19279. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19280. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19281. $as_echo_n "checking for $ac_func... " >&6; }
  19282. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19283. $as_echo_n "(cached) " >&6
  19284. else
  19285. cat >conftest.$ac_ext <<_ACEOF
  19286. /* confdefs.h. */
  19287. _ACEOF
  19288. cat confdefs.h >>conftest.$ac_ext
  19289. cat >>conftest.$ac_ext <<_ACEOF
  19290. /* end confdefs.h. */
  19291. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19292. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19293. #define $ac_func innocuous_$ac_func
  19294. /* System header to define __stub macros and hopefully few prototypes,
  19295. which can conflict with char $ac_func (); below.
  19296. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19297. <limits.h> exists even on freestanding compilers. */
  19298. #ifdef __STDC__
  19299. # include <limits.h>
  19300. #else
  19301. # include <assert.h>
  19302. #endif
  19303. #undef $ac_func
  19304. /* Override any GCC internal prototype to avoid an error.
  19305. Use char because int might match the return type of a GCC
  19306. builtin and then its argument prototype would still apply. */
  19307. #ifdef __cplusplus
  19308. extern "C"
  19309. #endif
  19310. char $ac_func ();
  19311. /* The GNU C library defines this for functions which it implements
  19312. to always fail with ENOSYS. Some functions are actually named
  19313. something starting with __ and the normal name is an alias. */
  19314. #if defined __stub_$ac_func || defined __stub___$ac_func
  19315. choke me
  19316. #endif
  19317. int
  19318. main ()
  19319. {
  19320. return $ac_func ();
  19321. ;
  19322. return 0;
  19323. }
  19324. _ACEOF
  19325. rm -f conftest.$ac_objext conftest$ac_exeext
  19326. if { (ac_try="$ac_link"
  19327. case "(($ac_try" in
  19328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19329. *) ac_try_echo=$ac_try;;
  19330. esac
  19331. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19332. $as_echo "$ac_try_echo") >&5
  19333. (eval "$ac_link") 2>conftest.er1
  19334. ac_status=$?
  19335. grep -v '^ *+' conftest.er1 >conftest.err
  19336. rm -f conftest.er1
  19337. cat conftest.err >&5
  19338. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19339. (exit $ac_status); } && {
  19340. test -z "$ac_cxx_werror_flag" ||
  19341. test ! -s conftest.err
  19342. } && test -s conftest$ac_exeext && {
  19343. test "$cross_compiling" = yes ||
  19344. $as_test_x conftest$ac_exeext
  19345. }; then
  19346. eval "$as_ac_var=yes"
  19347. else
  19348. $as_echo "$as_me: failed program was:" >&5
  19349. sed 's/^/| /' conftest.$ac_ext >&5
  19350. eval "$as_ac_var=no"
  19351. fi
  19352. rm -rf conftest.dSYM
  19353. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19354. conftest$ac_exeext conftest.$ac_ext
  19355. fi
  19356. ac_res=`eval 'as_val=${'$as_ac_var'}
  19357. $as_echo "$as_val"'`
  19358. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19359. $as_echo "$ac_res" >&6; }
  19360. as_val=`eval 'as_val=${'$as_ac_var'}
  19361. $as_echo "$as_val"'`
  19362. if test "x$as_val" = x""yes; then
  19363. cat >>confdefs.h <<_ACEOF
  19364. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19365. _ACEOF
  19366. fi
  19367. done
  19368. if test "x$enable_epoll" = "xyes"; then
  19369. for ac_func in epoll_create
  19370. do
  19371. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19372. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19373. $as_echo_n "checking for $ac_func... " >&6; }
  19374. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19375. $as_echo_n "(cached) " >&6
  19376. else
  19377. cat >conftest.$ac_ext <<_ACEOF
  19378. /* confdefs.h. */
  19379. _ACEOF
  19380. cat confdefs.h >>conftest.$ac_ext
  19381. cat >>conftest.$ac_ext <<_ACEOF
  19382. /* end confdefs.h. */
  19383. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19384. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19385. #define $ac_func innocuous_$ac_func
  19386. /* System header to define __stub macros and hopefully few prototypes,
  19387. which can conflict with char $ac_func (); below.
  19388. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19389. <limits.h> exists even on freestanding compilers. */
  19390. #ifdef __STDC__
  19391. # include <limits.h>
  19392. #else
  19393. # include <assert.h>
  19394. #endif
  19395. #undef $ac_func
  19396. /* Override any GCC internal prototype to avoid an error.
  19397. Use char because int might match the return type of a GCC
  19398. builtin and then its argument prototype would still apply. */
  19399. #ifdef __cplusplus
  19400. extern "C"
  19401. #endif
  19402. char $ac_func ();
  19403. /* The GNU C library defines this for functions which it implements
  19404. to always fail with ENOSYS. Some functions are actually named
  19405. something starting with __ and the normal name is an alias. */
  19406. #if defined __stub_$ac_func || defined __stub___$ac_func
  19407. choke me
  19408. #endif
  19409. int
  19410. main ()
  19411. {
  19412. return $ac_func ();
  19413. ;
  19414. return 0;
  19415. }
  19416. _ACEOF
  19417. rm -f conftest.$ac_objext conftest$ac_exeext
  19418. if { (ac_try="$ac_link"
  19419. case "(($ac_try" in
  19420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19421. *) ac_try_echo=$ac_try;;
  19422. esac
  19423. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19424. $as_echo "$ac_try_echo") >&5
  19425. (eval "$ac_link") 2>conftest.er1
  19426. ac_status=$?
  19427. grep -v '^ *+' conftest.er1 >conftest.err
  19428. rm -f conftest.er1
  19429. cat conftest.err >&5
  19430. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19431. (exit $ac_status); } && {
  19432. test -z "$ac_cxx_werror_flag" ||
  19433. test ! -s conftest.err
  19434. } && test -s conftest$ac_exeext && {
  19435. test "$cross_compiling" = yes ||
  19436. $as_test_x conftest$ac_exeext
  19437. }; then
  19438. eval "$as_ac_var=yes"
  19439. else
  19440. $as_echo "$as_me: failed program was:" >&5
  19441. sed 's/^/| /' conftest.$ac_ext >&5
  19442. eval "$as_ac_var=no"
  19443. fi
  19444. rm -rf conftest.dSYM
  19445. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19446. conftest$ac_exeext conftest.$ac_ext
  19447. fi
  19448. ac_res=`eval 'as_val=${'$as_ac_var'}
  19449. $as_echo "$as_val"'`
  19450. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19451. $as_echo "$ac_res" >&6; }
  19452. as_val=`eval 'as_val=${'$as_ac_var'}
  19453. $as_echo "$as_val"'`
  19454. if test "x$as_val" = x""yes; then
  19455. cat >>confdefs.h <<_ACEOF
  19456. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19457. _ACEOF
  19458. have_epoll=yes
  19459. fi
  19460. done
  19461. if test "x$have_epoll" = "xyes"; then
  19462. cat >>confdefs.h <<\_ACEOF
  19463. #define HAVE_EPOLL 1
  19464. _ACEOF
  19465. fi
  19466. fi
  19467. if test "x$have_epoll" = "xyes"; then
  19468. HAVE_EPOLL_TRUE=
  19469. HAVE_EPOLL_FALSE='#'
  19470. else
  19471. HAVE_EPOLL_TRUE='#'
  19472. HAVE_EPOLL_FALSE=
  19473. fi
  19474. for ac_func in posix_fallocate
  19475. do
  19476. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19477. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19478. $as_echo_n "checking for $ac_func... " >&6; }
  19479. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19480. $as_echo_n "(cached) " >&6
  19481. else
  19482. cat >conftest.$ac_ext <<_ACEOF
  19483. /* confdefs.h. */
  19484. _ACEOF
  19485. cat confdefs.h >>conftest.$ac_ext
  19486. cat >>conftest.$ac_ext <<_ACEOF
  19487. /* end confdefs.h. */
  19488. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19489. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19490. #define $ac_func innocuous_$ac_func
  19491. /* System header to define __stub macros and hopefully few prototypes,
  19492. which can conflict with char $ac_func (); below.
  19493. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19494. <limits.h> exists even on freestanding compilers. */
  19495. #ifdef __STDC__
  19496. # include <limits.h>
  19497. #else
  19498. # include <assert.h>
  19499. #endif
  19500. #undef $ac_func
  19501. /* Override any GCC internal prototype to avoid an error.
  19502. Use char because int might match the return type of a GCC
  19503. builtin and then its argument prototype would still apply. */
  19504. #ifdef __cplusplus
  19505. extern "C"
  19506. #endif
  19507. char $ac_func ();
  19508. /* The GNU C library defines this for functions which it implements
  19509. to always fail with ENOSYS. Some functions are actually named
  19510. something starting with __ and the normal name is an alias. */
  19511. #if defined __stub_$ac_func || defined __stub___$ac_func
  19512. choke me
  19513. #endif
  19514. int
  19515. main ()
  19516. {
  19517. return $ac_func ();
  19518. ;
  19519. return 0;
  19520. }
  19521. _ACEOF
  19522. rm -f conftest.$ac_objext conftest$ac_exeext
  19523. if { (ac_try="$ac_link"
  19524. case "(($ac_try" in
  19525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19526. *) ac_try_echo=$ac_try;;
  19527. esac
  19528. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19529. $as_echo "$ac_try_echo") >&5
  19530. (eval "$ac_link") 2>conftest.er1
  19531. ac_status=$?
  19532. grep -v '^ *+' conftest.er1 >conftest.err
  19533. rm -f conftest.er1
  19534. cat conftest.err >&5
  19535. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19536. (exit $ac_status); } && {
  19537. test -z "$ac_cxx_werror_flag" ||
  19538. test ! -s conftest.err
  19539. } && test -s conftest$ac_exeext && {
  19540. test "$cross_compiling" = yes ||
  19541. $as_test_x conftest$ac_exeext
  19542. }; then
  19543. eval "$as_ac_var=yes"
  19544. else
  19545. $as_echo "$as_me: failed program was:" >&5
  19546. sed 's/^/| /' conftest.$ac_ext >&5
  19547. eval "$as_ac_var=no"
  19548. fi
  19549. rm -rf conftest.dSYM
  19550. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19551. conftest$ac_exeext conftest.$ac_ext
  19552. fi
  19553. ac_res=`eval 'as_val=${'$as_ac_var'}
  19554. $as_echo "$as_val"'`
  19555. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19556. $as_echo "$ac_res" >&6; }
  19557. as_val=`eval 'as_val=${'$as_ac_var'}
  19558. $as_echo "$as_val"'`
  19559. if test "x$as_val" = x""yes; then
  19560. cat >>confdefs.h <<_ACEOF
  19561. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19562. _ACEOF
  19563. have_posix_fallocate=yes
  19564. fi
  19565. done
  19566. if test "x$have_posix_fallocate" = "xyes"; then
  19567. HAVE_POSIX_FALLOCATE_TRUE=
  19568. HAVE_POSIX_FALLOCATE_FALSE='#'
  19569. else
  19570. HAVE_POSIX_FALLOCATE_TRUE='#'
  19571. HAVE_POSIX_FALLOCATE_FALSE=
  19572. fi
  19573. for ac_func in asctime_r
  19574. do
  19575. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19576. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19577. $as_echo_n "checking for $ac_func... " >&6; }
  19578. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19579. $as_echo_n "(cached) " >&6
  19580. else
  19581. cat >conftest.$ac_ext <<_ACEOF
  19582. /* confdefs.h. */
  19583. _ACEOF
  19584. cat confdefs.h >>conftest.$ac_ext
  19585. cat >>conftest.$ac_ext <<_ACEOF
  19586. /* end confdefs.h. */
  19587. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19588. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19589. #define $ac_func innocuous_$ac_func
  19590. /* System header to define __stub macros and hopefully few prototypes,
  19591. which can conflict with char $ac_func (); below.
  19592. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19593. <limits.h> exists even on freestanding compilers. */
  19594. #ifdef __STDC__
  19595. # include <limits.h>
  19596. #else
  19597. # include <assert.h>
  19598. #endif
  19599. #undef $ac_func
  19600. /* Override any GCC internal prototype to avoid an error.
  19601. Use char because int might match the return type of a GCC
  19602. builtin and then its argument prototype would still apply. */
  19603. #ifdef __cplusplus
  19604. extern "C"
  19605. #endif
  19606. char $ac_func ();
  19607. /* The GNU C library defines this for functions which it implements
  19608. to always fail with ENOSYS. Some functions are actually named
  19609. something starting with __ and the normal name is an alias. */
  19610. #if defined __stub_$ac_func || defined __stub___$ac_func
  19611. choke me
  19612. #endif
  19613. int
  19614. main ()
  19615. {
  19616. return $ac_func ();
  19617. ;
  19618. return 0;
  19619. }
  19620. _ACEOF
  19621. rm -f conftest.$ac_objext conftest$ac_exeext
  19622. if { (ac_try="$ac_link"
  19623. case "(($ac_try" in
  19624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19625. *) ac_try_echo=$ac_try;;
  19626. esac
  19627. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19628. $as_echo "$ac_try_echo") >&5
  19629. (eval "$ac_link") 2>conftest.er1
  19630. ac_status=$?
  19631. grep -v '^ *+' conftest.er1 >conftest.err
  19632. rm -f conftest.er1
  19633. cat conftest.err >&5
  19634. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19635. (exit $ac_status); } && {
  19636. test -z "$ac_cxx_werror_flag" ||
  19637. test ! -s conftest.err
  19638. } && test -s conftest$ac_exeext && {
  19639. test "$cross_compiling" = yes ||
  19640. $as_test_x conftest$ac_exeext
  19641. }; then
  19642. eval "$as_ac_var=yes"
  19643. else
  19644. $as_echo "$as_me: failed program was:" >&5
  19645. sed 's/^/| /' conftest.$ac_ext >&5
  19646. eval "$as_ac_var=no"
  19647. fi
  19648. rm -rf conftest.dSYM
  19649. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19650. conftest$ac_exeext conftest.$ac_ext
  19651. fi
  19652. ac_res=`eval 'as_val=${'$as_ac_var'}
  19653. $as_echo "$as_val"'`
  19654. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19655. $as_echo "$ac_res" >&6; }
  19656. as_val=`eval 'as_val=${'$as_ac_var'}
  19657. $as_echo "$as_val"'`
  19658. if test "x$as_val" = x""yes; then
  19659. cat >>confdefs.h <<_ACEOF
  19660. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19661. _ACEOF
  19662. if true; then
  19663. HAVE_ASCTIME_R_TRUE=
  19664. HAVE_ASCTIME_R_FALSE='#'
  19665. else
  19666. HAVE_ASCTIME_R_TRUE='#'
  19667. HAVE_ASCTIME_R_FALSE=
  19668. fi
  19669. else
  19670. if false; then
  19671. HAVE_ASCTIME_R_TRUE=
  19672. HAVE_ASCTIME_R_FALSE='#'
  19673. else
  19674. HAVE_ASCTIME_R_TRUE='#'
  19675. HAVE_ASCTIME_R_FALSE=
  19676. fi
  19677. fi
  19678. done
  19679. for ac_func in basename
  19680. do
  19681. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19682. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19683. $as_echo_n "checking for $ac_func... " >&6; }
  19684. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19685. $as_echo_n "(cached) " >&6
  19686. else
  19687. cat >conftest.$ac_ext <<_ACEOF
  19688. /* confdefs.h. */
  19689. _ACEOF
  19690. cat confdefs.h >>conftest.$ac_ext
  19691. cat >>conftest.$ac_ext <<_ACEOF
  19692. /* end confdefs.h. */
  19693. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19694. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19695. #define $ac_func innocuous_$ac_func
  19696. /* System header to define __stub macros and hopefully few prototypes,
  19697. which can conflict with char $ac_func (); below.
  19698. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19699. <limits.h> exists even on freestanding compilers. */
  19700. #ifdef __STDC__
  19701. # include <limits.h>
  19702. #else
  19703. # include <assert.h>
  19704. #endif
  19705. #undef $ac_func
  19706. /* Override any GCC internal prototype to avoid an error.
  19707. Use char because int might match the return type of a GCC
  19708. builtin and then its argument prototype would still apply. */
  19709. #ifdef __cplusplus
  19710. extern "C"
  19711. #endif
  19712. char $ac_func ();
  19713. /* The GNU C library defines this for functions which it implements
  19714. to always fail with ENOSYS. Some functions are actually named
  19715. something starting with __ and the normal name is an alias. */
  19716. #if defined __stub_$ac_func || defined __stub___$ac_func
  19717. choke me
  19718. #endif
  19719. int
  19720. main ()
  19721. {
  19722. return $ac_func ();
  19723. ;
  19724. return 0;
  19725. }
  19726. _ACEOF
  19727. rm -f conftest.$ac_objext conftest$ac_exeext
  19728. if { (ac_try="$ac_link"
  19729. case "(($ac_try" in
  19730. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19731. *) ac_try_echo=$ac_try;;
  19732. esac
  19733. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19734. $as_echo "$ac_try_echo") >&5
  19735. (eval "$ac_link") 2>conftest.er1
  19736. ac_status=$?
  19737. grep -v '^ *+' conftest.er1 >conftest.err
  19738. rm -f conftest.er1
  19739. cat conftest.err >&5
  19740. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19741. (exit $ac_status); } && {
  19742. test -z "$ac_cxx_werror_flag" ||
  19743. test ! -s conftest.err
  19744. } && test -s conftest$ac_exeext && {
  19745. test "$cross_compiling" = yes ||
  19746. $as_test_x conftest$ac_exeext
  19747. }; then
  19748. eval "$as_ac_var=yes"
  19749. else
  19750. $as_echo "$as_me: failed program was:" >&5
  19751. sed 's/^/| /' conftest.$ac_ext >&5
  19752. eval "$as_ac_var=no"
  19753. fi
  19754. rm -rf conftest.dSYM
  19755. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19756. conftest$ac_exeext conftest.$ac_ext
  19757. fi
  19758. ac_res=`eval 'as_val=${'$as_ac_var'}
  19759. $as_echo "$as_val"'`
  19760. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19761. $as_echo "$ac_res" >&6; }
  19762. as_val=`eval 'as_val=${'$as_ac_var'}
  19763. $as_echo "$as_val"'`
  19764. if test "x$as_val" = x""yes; then
  19765. cat >>confdefs.h <<_ACEOF
  19766. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19767. _ACEOF
  19768. if true; then
  19769. HAVE_BASENAME_TRUE=
  19770. HAVE_BASENAME_FALSE='#'
  19771. else
  19772. HAVE_BASENAME_TRUE='#'
  19773. HAVE_BASENAME_FALSE=
  19774. fi
  19775. else
  19776. if false; then
  19777. HAVE_BASENAME_TRUE=
  19778. HAVE_BASENAME_FALSE='#'
  19779. else
  19780. HAVE_BASENAME_TRUE='#'
  19781. HAVE_BASENAME_FALSE=
  19782. fi
  19783. fi
  19784. done
  19785. for ac_func in gai_strerror
  19786. do
  19787. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19788. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19789. $as_echo_n "checking for $ac_func... " >&6; }
  19790. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19791. $as_echo_n "(cached) " >&6
  19792. else
  19793. cat >conftest.$ac_ext <<_ACEOF
  19794. /* confdefs.h. */
  19795. _ACEOF
  19796. cat confdefs.h >>conftest.$ac_ext
  19797. cat >>conftest.$ac_ext <<_ACEOF
  19798. /* end confdefs.h. */
  19799. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19800. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19801. #define $ac_func innocuous_$ac_func
  19802. /* System header to define __stub macros and hopefully few prototypes,
  19803. which can conflict with char $ac_func (); below.
  19804. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19805. <limits.h> exists even on freestanding compilers. */
  19806. #ifdef __STDC__
  19807. # include <limits.h>
  19808. #else
  19809. # include <assert.h>
  19810. #endif
  19811. #undef $ac_func
  19812. /* Override any GCC internal prototype to avoid an error.
  19813. Use char because int might match the return type of a GCC
  19814. builtin and then its argument prototype would still apply. */
  19815. #ifdef __cplusplus
  19816. extern "C"
  19817. #endif
  19818. char $ac_func ();
  19819. /* The GNU C library defines this for functions which it implements
  19820. to always fail with ENOSYS. Some functions are actually named
  19821. something starting with __ and the normal name is an alias. */
  19822. #if defined __stub_$ac_func || defined __stub___$ac_func
  19823. choke me
  19824. #endif
  19825. int
  19826. main ()
  19827. {
  19828. return $ac_func ();
  19829. ;
  19830. return 0;
  19831. }
  19832. _ACEOF
  19833. rm -f conftest.$ac_objext conftest$ac_exeext
  19834. if { (ac_try="$ac_link"
  19835. case "(($ac_try" in
  19836. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19837. *) ac_try_echo=$ac_try;;
  19838. esac
  19839. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19840. $as_echo "$ac_try_echo") >&5
  19841. (eval "$ac_link") 2>conftest.er1
  19842. ac_status=$?
  19843. grep -v '^ *+' conftest.er1 >conftest.err
  19844. rm -f conftest.er1
  19845. cat conftest.err >&5
  19846. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19847. (exit $ac_status); } && {
  19848. test -z "$ac_cxx_werror_flag" ||
  19849. test ! -s conftest.err
  19850. } && test -s conftest$ac_exeext && {
  19851. test "$cross_compiling" = yes ||
  19852. $as_test_x conftest$ac_exeext
  19853. }; then
  19854. eval "$as_ac_var=yes"
  19855. else
  19856. $as_echo "$as_me: failed program was:" >&5
  19857. sed 's/^/| /' conftest.$ac_ext >&5
  19858. eval "$as_ac_var=no"
  19859. fi
  19860. rm -rf conftest.dSYM
  19861. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19862. conftest$ac_exeext conftest.$ac_ext
  19863. fi
  19864. ac_res=`eval 'as_val=${'$as_ac_var'}
  19865. $as_echo "$as_val"'`
  19866. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19867. $as_echo "$ac_res" >&6; }
  19868. as_val=`eval 'as_val=${'$as_ac_var'}
  19869. $as_echo "$as_val"'`
  19870. if test "x$as_val" = x""yes; then
  19871. cat >>confdefs.h <<_ACEOF
  19872. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19873. _ACEOF
  19874. if true; then
  19875. HAVE_GAI_STRERROR_TRUE=
  19876. HAVE_GAI_STRERROR_FALSE='#'
  19877. else
  19878. HAVE_GAI_STRERROR_TRUE='#'
  19879. HAVE_GAI_STRERROR_FALSE=
  19880. fi
  19881. else
  19882. if false; then
  19883. HAVE_GAI_STRERROR_TRUE=
  19884. HAVE_GAI_STRERROR_FALSE='#'
  19885. else
  19886. HAVE_GAI_STRERROR_TRUE='#'
  19887. HAVE_GAI_STRERROR_FALSE=
  19888. fi
  19889. fi
  19890. done
  19891. for ac_func in getaddrinfo
  19892. do
  19893. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  19894. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  19895. $as_echo_n "checking for $ac_func... " >&6; }
  19896. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  19897. $as_echo_n "(cached) " >&6
  19898. else
  19899. cat >conftest.$ac_ext <<_ACEOF
  19900. /* confdefs.h. */
  19901. _ACEOF
  19902. cat confdefs.h >>conftest.$ac_ext
  19903. cat >>conftest.$ac_ext <<_ACEOF
  19904. /* end confdefs.h. */
  19905. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  19906. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  19907. #define $ac_func innocuous_$ac_func
  19908. /* System header to define __stub macros and hopefully few prototypes,
  19909. which can conflict with char $ac_func (); below.
  19910. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  19911. <limits.h> exists even on freestanding compilers. */
  19912. #ifdef __STDC__
  19913. # include <limits.h>
  19914. #else
  19915. # include <assert.h>
  19916. #endif
  19917. #undef $ac_func
  19918. /* Override any GCC internal prototype to avoid an error.
  19919. Use char because int might match the return type of a GCC
  19920. builtin and then its argument prototype would still apply. */
  19921. #ifdef __cplusplus
  19922. extern "C"
  19923. #endif
  19924. char $ac_func ();
  19925. /* The GNU C library defines this for functions which it implements
  19926. to always fail with ENOSYS. Some functions are actually named
  19927. something starting with __ and the normal name is an alias. */
  19928. #if defined __stub_$ac_func || defined __stub___$ac_func
  19929. choke me
  19930. #endif
  19931. int
  19932. main ()
  19933. {
  19934. return $ac_func ();
  19935. ;
  19936. return 0;
  19937. }
  19938. _ACEOF
  19939. rm -f conftest.$ac_objext conftest$ac_exeext
  19940. if { (ac_try="$ac_link"
  19941. case "(($ac_try" in
  19942. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19943. *) ac_try_echo=$ac_try;;
  19944. esac
  19945. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  19946. $as_echo "$ac_try_echo") >&5
  19947. (eval "$ac_link") 2>conftest.er1
  19948. ac_status=$?
  19949. grep -v '^ *+' conftest.er1 >conftest.err
  19950. rm -f conftest.er1
  19951. cat conftest.err >&5
  19952. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19953. (exit $ac_status); } && {
  19954. test -z "$ac_cxx_werror_flag" ||
  19955. test ! -s conftest.err
  19956. } && test -s conftest$ac_exeext && {
  19957. test "$cross_compiling" = yes ||
  19958. $as_test_x conftest$ac_exeext
  19959. }; then
  19960. eval "$as_ac_var=yes"
  19961. else
  19962. $as_echo "$as_me: failed program was:" >&5
  19963. sed 's/^/| /' conftest.$ac_ext >&5
  19964. eval "$as_ac_var=no"
  19965. fi
  19966. rm -rf conftest.dSYM
  19967. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  19968. conftest$ac_exeext conftest.$ac_ext
  19969. fi
  19970. ac_res=`eval 'as_val=${'$as_ac_var'}
  19971. $as_echo "$as_val"'`
  19972. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  19973. $as_echo "$ac_res" >&6; }
  19974. as_val=`eval 'as_val=${'$as_ac_var'}
  19975. $as_echo "$as_val"'`
  19976. if test "x$as_val" = x""yes; then
  19977. cat >>confdefs.h <<_ACEOF
  19978. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  19979. _ACEOF
  19980. if true; then
  19981. HAVE_GETADDRINFO_TRUE=
  19982. HAVE_GETADDRINFO_FALSE='#'
  19983. else
  19984. HAVE_GETADDRINFO_TRUE='#'
  19985. HAVE_GETADDRINFO_FALSE=
  19986. fi
  19987. else
  19988. if false; then
  19989. HAVE_GETADDRINFO_TRUE=
  19990. HAVE_GETADDRINFO_FALSE='#'
  19991. else
  19992. HAVE_GETADDRINFO_TRUE='#'
  19993. HAVE_GETADDRINFO_FALSE=
  19994. fi
  19995. fi
  19996. done
  19997. for ac_func in gettimeofday
  19998. do
  19999. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20000. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20001. $as_echo_n "checking for $ac_func... " >&6; }
  20002. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20003. $as_echo_n "(cached) " >&6
  20004. else
  20005. cat >conftest.$ac_ext <<_ACEOF
  20006. /* confdefs.h. */
  20007. _ACEOF
  20008. cat confdefs.h >>conftest.$ac_ext
  20009. cat >>conftest.$ac_ext <<_ACEOF
  20010. /* end confdefs.h. */
  20011. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20012. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20013. #define $ac_func innocuous_$ac_func
  20014. /* System header to define __stub macros and hopefully few prototypes,
  20015. which can conflict with char $ac_func (); below.
  20016. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20017. <limits.h> exists even on freestanding compilers. */
  20018. #ifdef __STDC__
  20019. # include <limits.h>
  20020. #else
  20021. # include <assert.h>
  20022. #endif
  20023. #undef $ac_func
  20024. /* Override any GCC internal prototype to avoid an error.
  20025. Use char because int might match the return type of a GCC
  20026. builtin and then its argument prototype would still apply. */
  20027. #ifdef __cplusplus
  20028. extern "C"
  20029. #endif
  20030. char $ac_func ();
  20031. /* The GNU C library defines this for functions which it implements
  20032. to always fail with ENOSYS. Some functions are actually named
  20033. something starting with __ and the normal name is an alias. */
  20034. #if defined __stub_$ac_func || defined __stub___$ac_func
  20035. choke me
  20036. #endif
  20037. int
  20038. main ()
  20039. {
  20040. return $ac_func ();
  20041. ;
  20042. return 0;
  20043. }
  20044. _ACEOF
  20045. rm -f conftest.$ac_objext conftest$ac_exeext
  20046. if { (ac_try="$ac_link"
  20047. case "(($ac_try" in
  20048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20049. *) ac_try_echo=$ac_try;;
  20050. esac
  20051. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20052. $as_echo "$ac_try_echo") >&5
  20053. (eval "$ac_link") 2>conftest.er1
  20054. ac_status=$?
  20055. grep -v '^ *+' conftest.er1 >conftest.err
  20056. rm -f conftest.er1
  20057. cat conftest.err >&5
  20058. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20059. (exit $ac_status); } && {
  20060. test -z "$ac_cxx_werror_flag" ||
  20061. test ! -s conftest.err
  20062. } && test -s conftest$ac_exeext && {
  20063. test "$cross_compiling" = yes ||
  20064. $as_test_x conftest$ac_exeext
  20065. }; then
  20066. eval "$as_ac_var=yes"
  20067. else
  20068. $as_echo "$as_me: failed program was:" >&5
  20069. sed 's/^/| /' conftest.$ac_ext >&5
  20070. eval "$as_ac_var=no"
  20071. fi
  20072. rm -rf conftest.dSYM
  20073. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20074. conftest$ac_exeext conftest.$ac_ext
  20075. fi
  20076. ac_res=`eval 'as_val=${'$as_ac_var'}
  20077. $as_echo "$as_val"'`
  20078. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20079. $as_echo "$ac_res" >&6; }
  20080. as_val=`eval 'as_val=${'$as_ac_var'}
  20081. $as_echo "$as_val"'`
  20082. if test "x$as_val" = x""yes; then
  20083. cat >>confdefs.h <<_ACEOF
  20084. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20085. _ACEOF
  20086. if true; then
  20087. HAVE_GETTIMEOFDAY_TRUE=
  20088. HAVE_GETTIMEOFDAY_FALSE='#'
  20089. else
  20090. HAVE_GETTIMEOFDAY_TRUE='#'
  20091. HAVE_GETTIMEOFDAY_FALSE=
  20092. fi
  20093. else
  20094. if false; then
  20095. HAVE_GETTIMEOFDAY_TRUE=
  20096. HAVE_GETTIMEOFDAY_FALSE='#'
  20097. else
  20098. HAVE_GETTIMEOFDAY_TRUE='#'
  20099. HAVE_GETTIMEOFDAY_FALSE=
  20100. fi
  20101. fi
  20102. done
  20103. for ac_func in inet_aton
  20104. do
  20105. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20106. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20107. $as_echo_n "checking for $ac_func... " >&6; }
  20108. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20109. $as_echo_n "(cached) " >&6
  20110. else
  20111. cat >conftest.$ac_ext <<_ACEOF
  20112. /* confdefs.h. */
  20113. _ACEOF
  20114. cat confdefs.h >>conftest.$ac_ext
  20115. cat >>conftest.$ac_ext <<_ACEOF
  20116. /* end confdefs.h. */
  20117. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20118. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20119. #define $ac_func innocuous_$ac_func
  20120. /* System header to define __stub macros and hopefully few prototypes,
  20121. which can conflict with char $ac_func (); below.
  20122. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20123. <limits.h> exists even on freestanding compilers. */
  20124. #ifdef __STDC__
  20125. # include <limits.h>
  20126. #else
  20127. # include <assert.h>
  20128. #endif
  20129. #undef $ac_func
  20130. /* Override any GCC internal prototype to avoid an error.
  20131. Use char because int might match the return type of a GCC
  20132. builtin and then its argument prototype would still apply. */
  20133. #ifdef __cplusplus
  20134. extern "C"
  20135. #endif
  20136. char $ac_func ();
  20137. /* The GNU C library defines this for functions which it implements
  20138. to always fail with ENOSYS. Some functions are actually named
  20139. something starting with __ and the normal name is an alias. */
  20140. #if defined __stub_$ac_func || defined __stub___$ac_func
  20141. choke me
  20142. #endif
  20143. int
  20144. main ()
  20145. {
  20146. return $ac_func ();
  20147. ;
  20148. return 0;
  20149. }
  20150. _ACEOF
  20151. rm -f conftest.$ac_objext conftest$ac_exeext
  20152. if { (ac_try="$ac_link"
  20153. case "(($ac_try" in
  20154. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20155. *) ac_try_echo=$ac_try;;
  20156. esac
  20157. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20158. $as_echo "$ac_try_echo") >&5
  20159. (eval "$ac_link") 2>conftest.er1
  20160. ac_status=$?
  20161. grep -v '^ *+' conftest.er1 >conftest.err
  20162. rm -f conftest.er1
  20163. cat conftest.err >&5
  20164. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20165. (exit $ac_status); } && {
  20166. test -z "$ac_cxx_werror_flag" ||
  20167. test ! -s conftest.err
  20168. } && test -s conftest$ac_exeext && {
  20169. test "$cross_compiling" = yes ||
  20170. $as_test_x conftest$ac_exeext
  20171. }; then
  20172. eval "$as_ac_var=yes"
  20173. else
  20174. $as_echo "$as_me: failed program was:" >&5
  20175. sed 's/^/| /' conftest.$ac_ext >&5
  20176. eval "$as_ac_var=no"
  20177. fi
  20178. rm -rf conftest.dSYM
  20179. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20180. conftest$ac_exeext conftest.$ac_ext
  20181. fi
  20182. ac_res=`eval 'as_val=${'$as_ac_var'}
  20183. $as_echo "$as_val"'`
  20184. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20185. $as_echo "$ac_res" >&6; }
  20186. as_val=`eval 'as_val=${'$as_ac_var'}
  20187. $as_echo "$as_val"'`
  20188. if test "x$as_val" = x""yes; then
  20189. cat >>confdefs.h <<_ACEOF
  20190. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20191. _ACEOF
  20192. if true; then
  20193. HAVE_INET_ATON_TRUE=
  20194. HAVE_INET_ATON_FALSE='#'
  20195. else
  20196. HAVE_INET_ATON_TRUE='#'
  20197. HAVE_INET_ATON_FALSE=
  20198. fi
  20199. else
  20200. if false; then
  20201. HAVE_INET_ATON_TRUE=
  20202. HAVE_INET_ATON_FALSE='#'
  20203. else
  20204. HAVE_INET_ATON_TRUE='#'
  20205. HAVE_INET_ATON_FALSE=
  20206. fi
  20207. fi
  20208. done
  20209. for ac_func in localtime_r
  20210. do
  20211. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20212. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20213. $as_echo_n "checking for $ac_func... " >&6; }
  20214. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20215. $as_echo_n "(cached) " >&6
  20216. else
  20217. cat >conftest.$ac_ext <<_ACEOF
  20218. /* confdefs.h. */
  20219. _ACEOF
  20220. cat confdefs.h >>conftest.$ac_ext
  20221. cat >>conftest.$ac_ext <<_ACEOF
  20222. /* end confdefs.h. */
  20223. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20224. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20225. #define $ac_func innocuous_$ac_func
  20226. /* System header to define __stub macros and hopefully few prototypes,
  20227. which can conflict with char $ac_func (); below.
  20228. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20229. <limits.h> exists even on freestanding compilers. */
  20230. #ifdef __STDC__
  20231. # include <limits.h>
  20232. #else
  20233. # include <assert.h>
  20234. #endif
  20235. #undef $ac_func
  20236. /* Override any GCC internal prototype to avoid an error.
  20237. Use char because int might match the return type of a GCC
  20238. builtin and then its argument prototype would still apply. */
  20239. #ifdef __cplusplus
  20240. extern "C"
  20241. #endif
  20242. char $ac_func ();
  20243. /* The GNU C library defines this for functions which it implements
  20244. to always fail with ENOSYS. Some functions are actually named
  20245. something starting with __ and the normal name is an alias. */
  20246. #if defined __stub_$ac_func || defined __stub___$ac_func
  20247. choke me
  20248. #endif
  20249. int
  20250. main ()
  20251. {
  20252. return $ac_func ();
  20253. ;
  20254. return 0;
  20255. }
  20256. _ACEOF
  20257. rm -f conftest.$ac_objext conftest$ac_exeext
  20258. if { (ac_try="$ac_link"
  20259. case "(($ac_try" in
  20260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20261. *) ac_try_echo=$ac_try;;
  20262. esac
  20263. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20264. $as_echo "$ac_try_echo") >&5
  20265. (eval "$ac_link") 2>conftest.er1
  20266. ac_status=$?
  20267. grep -v '^ *+' conftest.er1 >conftest.err
  20268. rm -f conftest.er1
  20269. cat conftest.err >&5
  20270. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20271. (exit $ac_status); } && {
  20272. test -z "$ac_cxx_werror_flag" ||
  20273. test ! -s conftest.err
  20274. } && test -s conftest$ac_exeext && {
  20275. test "$cross_compiling" = yes ||
  20276. $as_test_x conftest$ac_exeext
  20277. }; then
  20278. eval "$as_ac_var=yes"
  20279. else
  20280. $as_echo "$as_me: failed program was:" >&5
  20281. sed 's/^/| /' conftest.$ac_ext >&5
  20282. eval "$as_ac_var=no"
  20283. fi
  20284. rm -rf conftest.dSYM
  20285. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20286. conftest$ac_exeext conftest.$ac_ext
  20287. fi
  20288. ac_res=`eval 'as_val=${'$as_ac_var'}
  20289. $as_echo "$as_val"'`
  20290. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20291. $as_echo "$ac_res" >&6; }
  20292. as_val=`eval 'as_val=${'$as_ac_var'}
  20293. $as_echo "$as_val"'`
  20294. if test "x$as_val" = x""yes; then
  20295. cat >>confdefs.h <<_ACEOF
  20296. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20297. _ACEOF
  20298. if true; then
  20299. HAVE_LOCALTIME_R_TRUE=
  20300. HAVE_LOCALTIME_R_FALSE='#'
  20301. else
  20302. HAVE_LOCALTIME_R_TRUE='#'
  20303. HAVE_LOCALTIME_R_FALSE=
  20304. fi
  20305. else
  20306. if false; then
  20307. HAVE_LOCALTIME_R_TRUE=
  20308. HAVE_LOCALTIME_R_FALSE='#'
  20309. else
  20310. HAVE_LOCALTIME_R_TRUE='#'
  20311. HAVE_LOCALTIME_R_FALSE=
  20312. fi
  20313. fi
  20314. done
  20315. for ac_func in strptime
  20316. do
  20317. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20318. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20319. $as_echo_n "checking for $ac_func... " >&6; }
  20320. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20321. $as_echo_n "(cached) " >&6
  20322. else
  20323. cat >conftest.$ac_ext <<_ACEOF
  20324. /* confdefs.h. */
  20325. _ACEOF
  20326. cat confdefs.h >>conftest.$ac_ext
  20327. cat >>conftest.$ac_ext <<_ACEOF
  20328. /* end confdefs.h. */
  20329. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20330. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20331. #define $ac_func innocuous_$ac_func
  20332. /* System header to define __stub macros and hopefully few prototypes,
  20333. which can conflict with char $ac_func (); below.
  20334. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20335. <limits.h> exists even on freestanding compilers. */
  20336. #ifdef __STDC__
  20337. # include <limits.h>
  20338. #else
  20339. # include <assert.h>
  20340. #endif
  20341. #undef $ac_func
  20342. /* Override any GCC internal prototype to avoid an error.
  20343. Use char because int might match the return type of a GCC
  20344. builtin and then its argument prototype would still apply. */
  20345. #ifdef __cplusplus
  20346. extern "C"
  20347. #endif
  20348. char $ac_func ();
  20349. /* The GNU C library defines this for functions which it implements
  20350. to always fail with ENOSYS. Some functions are actually named
  20351. something starting with __ and the normal name is an alias. */
  20352. #if defined __stub_$ac_func || defined __stub___$ac_func
  20353. choke me
  20354. #endif
  20355. int
  20356. main ()
  20357. {
  20358. return $ac_func ();
  20359. ;
  20360. return 0;
  20361. }
  20362. _ACEOF
  20363. rm -f conftest.$ac_objext conftest$ac_exeext
  20364. if { (ac_try="$ac_link"
  20365. case "(($ac_try" in
  20366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20367. *) ac_try_echo=$ac_try;;
  20368. esac
  20369. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20370. $as_echo "$ac_try_echo") >&5
  20371. (eval "$ac_link") 2>conftest.er1
  20372. ac_status=$?
  20373. grep -v '^ *+' conftest.er1 >conftest.err
  20374. rm -f conftest.er1
  20375. cat conftest.err >&5
  20376. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20377. (exit $ac_status); } && {
  20378. test -z "$ac_cxx_werror_flag" ||
  20379. test ! -s conftest.err
  20380. } && test -s conftest$ac_exeext && {
  20381. test "$cross_compiling" = yes ||
  20382. $as_test_x conftest$ac_exeext
  20383. }; then
  20384. eval "$as_ac_var=yes"
  20385. else
  20386. $as_echo "$as_me: failed program was:" >&5
  20387. sed 's/^/| /' conftest.$ac_ext >&5
  20388. eval "$as_ac_var=no"
  20389. fi
  20390. rm -rf conftest.dSYM
  20391. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20392. conftest$ac_exeext conftest.$ac_ext
  20393. fi
  20394. ac_res=`eval 'as_val=${'$as_ac_var'}
  20395. $as_echo "$as_val"'`
  20396. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20397. $as_echo "$ac_res" >&6; }
  20398. as_val=`eval 'as_val=${'$as_ac_var'}
  20399. $as_echo "$as_val"'`
  20400. if test "x$as_val" = x""yes; then
  20401. cat >>confdefs.h <<_ACEOF
  20402. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20403. _ACEOF
  20404. if true; then
  20405. HAVE_STRPTIME_TRUE=
  20406. HAVE_STRPTIME_FALSE='#'
  20407. else
  20408. HAVE_STRPTIME_TRUE='#'
  20409. HAVE_STRPTIME_FALSE=
  20410. fi
  20411. else
  20412. if false; then
  20413. HAVE_STRPTIME_TRUE=
  20414. HAVE_STRPTIME_FALSE='#'
  20415. else
  20416. HAVE_STRPTIME_TRUE='#'
  20417. HAVE_STRPTIME_FALSE=
  20418. fi
  20419. fi
  20420. done
  20421. for ac_func in timegm
  20422. do
  20423. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20424. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20425. $as_echo_n "checking for $ac_func... " >&6; }
  20426. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20427. $as_echo_n "(cached) " >&6
  20428. else
  20429. cat >conftest.$ac_ext <<_ACEOF
  20430. /* confdefs.h. */
  20431. _ACEOF
  20432. cat confdefs.h >>conftest.$ac_ext
  20433. cat >>conftest.$ac_ext <<_ACEOF
  20434. /* end confdefs.h. */
  20435. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20436. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20437. #define $ac_func innocuous_$ac_func
  20438. /* System header to define __stub macros and hopefully few prototypes,
  20439. which can conflict with char $ac_func (); below.
  20440. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20441. <limits.h> exists even on freestanding compilers. */
  20442. #ifdef __STDC__
  20443. # include <limits.h>
  20444. #else
  20445. # include <assert.h>
  20446. #endif
  20447. #undef $ac_func
  20448. /* Override any GCC internal prototype to avoid an error.
  20449. Use char because int might match the return type of a GCC
  20450. builtin and then its argument prototype would still apply. */
  20451. #ifdef __cplusplus
  20452. extern "C"
  20453. #endif
  20454. char $ac_func ();
  20455. /* The GNU C library defines this for functions which it implements
  20456. to always fail with ENOSYS. Some functions are actually named
  20457. something starting with __ and the normal name is an alias. */
  20458. #if defined __stub_$ac_func || defined __stub___$ac_func
  20459. choke me
  20460. #endif
  20461. int
  20462. main ()
  20463. {
  20464. return $ac_func ();
  20465. ;
  20466. return 0;
  20467. }
  20468. _ACEOF
  20469. rm -f conftest.$ac_objext conftest$ac_exeext
  20470. if { (ac_try="$ac_link"
  20471. case "(($ac_try" in
  20472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20473. *) ac_try_echo=$ac_try;;
  20474. esac
  20475. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20476. $as_echo "$ac_try_echo") >&5
  20477. (eval "$ac_link") 2>conftest.er1
  20478. ac_status=$?
  20479. grep -v '^ *+' conftest.er1 >conftest.err
  20480. rm -f conftest.er1
  20481. cat conftest.err >&5
  20482. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20483. (exit $ac_status); } && {
  20484. test -z "$ac_cxx_werror_flag" ||
  20485. test ! -s conftest.err
  20486. } && test -s conftest$ac_exeext && {
  20487. test "$cross_compiling" = yes ||
  20488. $as_test_x conftest$ac_exeext
  20489. }; then
  20490. eval "$as_ac_var=yes"
  20491. else
  20492. $as_echo "$as_me: failed program was:" >&5
  20493. sed 's/^/| /' conftest.$ac_ext >&5
  20494. eval "$as_ac_var=no"
  20495. fi
  20496. rm -rf conftest.dSYM
  20497. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20498. conftest$ac_exeext conftest.$ac_ext
  20499. fi
  20500. ac_res=`eval 'as_val=${'$as_ac_var'}
  20501. $as_echo "$as_val"'`
  20502. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20503. $as_echo "$ac_res" >&6; }
  20504. as_val=`eval 'as_val=${'$as_ac_var'}
  20505. $as_echo "$as_val"'`
  20506. if test "x$as_val" = x""yes; then
  20507. cat >>confdefs.h <<_ACEOF
  20508. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20509. _ACEOF
  20510. if true; then
  20511. HAVE_TIMEGM_TRUE=
  20512. HAVE_TIMEGM_FALSE='#'
  20513. else
  20514. HAVE_TIMEGM_TRUE='#'
  20515. HAVE_TIMEGM_FALSE=
  20516. fi
  20517. else
  20518. if false; then
  20519. HAVE_TIMEGM_TRUE=
  20520. HAVE_TIMEGM_FALSE='#'
  20521. else
  20522. HAVE_TIMEGM_TRUE='#'
  20523. HAVE_TIMEGM_FALSE=
  20524. fi
  20525. fi
  20526. done
  20527. for ac_func in daemon
  20528. do
  20529. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  20530. { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  20531. $as_echo_n "checking for $ac_func... " >&6; }
  20532. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  20533. $as_echo_n "(cached) " >&6
  20534. else
  20535. cat >conftest.$ac_ext <<_ACEOF
  20536. /* confdefs.h. */
  20537. _ACEOF
  20538. cat confdefs.h >>conftest.$ac_ext
  20539. cat >>conftest.$ac_ext <<_ACEOF
  20540. /* end confdefs.h. */
  20541. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  20542. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  20543. #define $ac_func innocuous_$ac_func
  20544. /* System header to define __stub macros and hopefully few prototypes,
  20545. which can conflict with char $ac_func (); below.
  20546. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20547. <limits.h> exists even on freestanding compilers. */
  20548. #ifdef __STDC__
  20549. # include <limits.h>
  20550. #else
  20551. # include <assert.h>
  20552. #endif
  20553. #undef $ac_func
  20554. /* Override any GCC internal prototype to avoid an error.
  20555. Use char because int might match the return type of a GCC
  20556. builtin and then its argument prototype would still apply. */
  20557. #ifdef __cplusplus
  20558. extern "C"
  20559. #endif
  20560. char $ac_func ();
  20561. /* The GNU C library defines this for functions which it implements
  20562. to always fail with ENOSYS. Some functions are actually named
  20563. something starting with __ and the normal name is an alias. */
  20564. #if defined __stub_$ac_func || defined __stub___$ac_func
  20565. choke me
  20566. #endif
  20567. int
  20568. main ()
  20569. {
  20570. return $ac_func ();
  20571. ;
  20572. return 0;
  20573. }
  20574. _ACEOF
  20575. rm -f conftest.$ac_objext conftest$ac_exeext
  20576. if { (ac_try="$ac_link"
  20577. case "(($ac_try" in
  20578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20579. *) ac_try_echo=$ac_try;;
  20580. esac
  20581. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20582. $as_echo "$ac_try_echo") >&5
  20583. (eval "$ac_link") 2>conftest.er1
  20584. ac_status=$?
  20585. grep -v '^ *+' conftest.er1 >conftest.err
  20586. rm -f conftest.er1
  20587. cat conftest.err >&5
  20588. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20589. (exit $ac_status); } && {
  20590. test -z "$ac_cxx_werror_flag" ||
  20591. test ! -s conftest.err
  20592. } && test -s conftest$ac_exeext && {
  20593. test "$cross_compiling" = yes ||
  20594. $as_test_x conftest$ac_exeext
  20595. }; then
  20596. eval "$as_ac_var=yes"
  20597. else
  20598. $as_echo "$as_me: failed program was:" >&5
  20599. sed 's/^/| /' conftest.$ac_ext >&5
  20600. eval "$as_ac_var=no"
  20601. fi
  20602. rm -rf conftest.dSYM
  20603. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  20604. conftest$ac_exeext conftest.$ac_ext
  20605. fi
  20606. ac_res=`eval 'as_val=${'$as_ac_var'}
  20607. $as_echo "$as_val"'`
  20608. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  20609. $as_echo "$ac_res" >&6; }
  20610. as_val=`eval 'as_val=${'$as_ac_var'}
  20611. $as_echo "$as_val"'`
  20612. if test "x$as_val" = x""yes; then
  20613. cat >>confdefs.h <<_ACEOF
  20614. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  20615. _ACEOF
  20616. have_daemon=yes
  20617. fi
  20618. done
  20619. if test "x$have_daemon" = "xyes"; then
  20620. HAVE_DAEMON_TRUE=
  20621. HAVE_DAEMON_FALSE='#'
  20622. else
  20623. HAVE_DAEMON_TRUE='#'
  20624. HAVE_DAEMON_FALSE=
  20625. fi
  20626. case "$target" in
  20627. *mingw*)
  20628. if true; then
  20629. HAVE_GETADDRINFO_TRUE=
  20630. HAVE_GETADDRINFO_FALSE='#'
  20631. else
  20632. HAVE_GETADDRINFO_TRUE='#'
  20633. HAVE_GETADDRINFO_FALSE=
  20634. fi
  20635. if false; then
  20636. HAVE_GAI_STRERROR_TRUE=
  20637. HAVE_GAI_STRERROR_FALSE='#'
  20638. else
  20639. HAVE_GAI_STRERROR_TRUE='#'
  20640. HAVE_GAI_STRERROR_FALSE=
  20641. fi
  20642. ;;
  20643. esac
  20644. { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in.sin_len" >&5
  20645. $as_echo_n "checking for struct sockaddr_in.sin_len... " >&6; }
  20646. if test "${ac_cv_member_struct_sockaddr_in_sin_len+set}" = set; then
  20647. $as_echo_n "(cached) " >&6
  20648. else
  20649. cat >conftest.$ac_ext <<_ACEOF
  20650. /* confdefs.h. */
  20651. _ACEOF
  20652. cat confdefs.h >>conftest.$ac_ext
  20653. cat >>conftest.$ac_ext <<_ACEOF
  20654. /* end confdefs.h. */
  20655. #include <netinet/in.h>
  20656. int
  20657. main ()
  20658. {
  20659. static struct sockaddr_in ac_aggr;
  20660. if (ac_aggr.sin_len)
  20661. return 0;
  20662. ;
  20663. return 0;
  20664. }
  20665. _ACEOF
  20666. rm -f conftest.$ac_objext
  20667. if { (ac_try="$ac_compile"
  20668. case "(($ac_try" in
  20669. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20670. *) ac_try_echo=$ac_try;;
  20671. esac
  20672. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20673. $as_echo "$ac_try_echo") >&5
  20674. (eval "$ac_compile") 2>conftest.er1
  20675. ac_status=$?
  20676. grep -v '^ *+' conftest.er1 >conftest.err
  20677. rm -f conftest.er1
  20678. cat conftest.err >&5
  20679. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20680. (exit $ac_status); } && {
  20681. test -z "$ac_cxx_werror_flag" ||
  20682. test ! -s conftest.err
  20683. } && test -s conftest.$ac_objext; then
  20684. ac_cv_member_struct_sockaddr_in_sin_len=yes
  20685. else
  20686. $as_echo "$as_me: failed program was:" >&5
  20687. sed 's/^/| /' conftest.$ac_ext >&5
  20688. cat >conftest.$ac_ext <<_ACEOF
  20689. /* confdefs.h. */
  20690. _ACEOF
  20691. cat confdefs.h >>conftest.$ac_ext
  20692. cat >>conftest.$ac_ext <<_ACEOF
  20693. /* end confdefs.h. */
  20694. #include <netinet/in.h>
  20695. int
  20696. main ()
  20697. {
  20698. static struct sockaddr_in ac_aggr;
  20699. if (sizeof ac_aggr.sin_len)
  20700. return 0;
  20701. ;
  20702. return 0;
  20703. }
  20704. _ACEOF
  20705. rm -f conftest.$ac_objext
  20706. if { (ac_try="$ac_compile"
  20707. case "(($ac_try" in
  20708. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20709. *) ac_try_echo=$ac_try;;
  20710. esac
  20711. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20712. $as_echo "$ac_try_echo") >&5
  20713. (eval "$ac_compile") 2>conftest.er1
  20714. ac_status=$?
  20715. grep -v '^ *+' conftest.er1 >conftest.err
  20716. rm -f conftest.er1
  20717. cat conftest.err >&5
  20718. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20719. (exit $ac_status); } && {
  20720. test -z "$ac_cxx_werror_flag" ||
  20721. test ! -s conftest.err
  20722. } && test -s conftest.$ac_objext; then
  20723. ac_cv_member_struct_sockaddr_in_sin_len=yes
  20724. else
  20725. $as_echo "$as_me: failed program was:" >&5
  20726. sed 's/^/| /' conftest.$ac_ext >&5
  20727. ac_cv_member_struct_sockaddr_in_sin_len=no
  20728. fi
  20729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20730. fi
  20731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20732. fi
  20733. { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_in_sin_len" >&5
  20734. $as_echo "$ac_cv_member_struct_sockaddr_in_sin_len" >&6; }
  20735. if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then
  20736. cat >>confdefs.h <<\_ACEOF
  20737. #define HAVE_SOCKADDR_IN_SIN_LEN 1
  20738. _ACEOF
  20739. fi
  20740. # Check struct option.name is assignable from const char*. struct
  20741. # option.name in opensolaris is of type char*. In Linux, it is const
  20742. # char*
  20743. { $as_echo "$as_me:$LINENO: checking whether struct option.name is assignable from const char*" >&5
  20744. $as_echo_n "checking whether struct option.name is assignable from const char*... " >&6; }
  20745. cat >conftest.$ac_ext <<_ACEOF
  20746. /* confdefs.h. */
  20747. _ACEOF
  20748. cat confdefs.h >>conftest.$ac_ext
  20749. cat >>conftest.$ac_ext <<_ACEOF
  20750. /* end confdefs.h. */
  20751. #include <unistd.h>
  20752. #include <getopt.h>
  20753. int
  20754. main ()
  20755. {
  20756. const char* s = "const char";
  20757. option op;
  20758. op.name = s;
  20759. ;
  20760. return 0;
  20761. }
  20762. _ACEOF
  20763. rm -f conftest.$ac_objext
  20764. if { (ac_try="$ac_compile"
  20765. case "(($ac_try" in
  20766. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  20767. *) ac_try_echo=$ac_try;;
  20768. esac
  20769. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  20770. $as_echo "$ac_try_echo") >&5
  20771. (eval "$ac_compile") 2>conftest.er1
  20772. ac_status=$?
  20773. grep -v '^ *+' conftest.er1 >conftest.err
  20774. rm -f conftest.er1
  20775. cat conftest.err >&5
  20776. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20777. (exit $ac_status); } && {
  20778. test -z "$ac_cxx_werror_flag" ||
  20779. test ! -s conftest.err
  20780. } && test -s conftest.$ac_objext; then
  20781. have_option_const_name=yes
  20782. else
  20783. $as_echo "$as_me: failed program was:" >&5
  20784. sed 's/^/| /' conftest.$ac_ext >&5
  20785. have_option_const_name=no
  20786. fi
  20787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20788. { $as_echo "$as_me:$LINENO: result: $have_option_const_name" >&5
  20789. $as_echo "$have_option_const_name" >&6; }
  20790. if test "x$have_option_const_name" = "xyes"; then
  20791. cat >>confdefs.h <<\_ACEOF
  20792. #define HAVE_OPTION_CONST_NAME 1
  20793. _ACEOF
  20794. fi
  20795. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile doc/Makefile"
  20796. cat >confcache <<\_ACEOF
  20797. # This file is a shell script that caches the results of configure
  20798. # tests run on this system so they can be shared between configure
  20799. # scripts and configure runs, see configure's option --config-cache.
  20800. # It is not useful on other systems. If it contains results you don't
  20801. # want to keep, you may remove or edit it.
  20802. #
  20803. # config.status only pays attention to the cache file if you give it
  20804. # the --recheck option to rerun configure.
  20805. #
  20806. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  20807. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  20808. # following values.
  20809. _ACEOF
  20810. # The following way of writing the cache mishandles newlines in values,
  20811. # but we know of no workaround that is simple, portable, and efficient.
  20812. # So, we kill variables containing newlines.
  20813. # Ultrix sh set writes to stderr and can't be redirected directly,
  20814. # and sets the high bit in the cache file unless we assign to the vars.
  20815. (
  20816. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  20817. eval ac_val=\$$ac_var
  20818. case $ac_val in #(
  20819. *${as_nl}*)
  20820. case $ac_var in #(
  20821. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  20822. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  20823. esac
  20824. case $ac_var in #(
  20825. _ | IFS | as_nl) ;; #(
  20826. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  20827. *) $as_unset $ac_var ;;
  20828. esac ;;
  20829. esac
  20830. done
  20831. (set) 2>&1 |
  20832. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  20833. *${as_nl}ac_space=\ *)
  20834. # `set' does not quote correctly, so add quotes (double-quote
  20835. # substitution turns \\\\ into \\, and sed turns \\ into \).
  20836. sed -n \
  20837. "s/'/'\\\\''/g;
  20838. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  20839. ;; #(
  20840. *)
  20841. # `set' quotes correctly as required by POSIX, so do not add quotes.
  20842. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  20843. ;;
  20844. esac |
  20845. sort
  20846. ) |
  20847. sed '
  20848. /^ac_cv_env_/b end
  20849. t clear
  20850. :clear
  20851. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  20852. t end
  20853. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  20854. :end' >>confcache
  20855. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  20856. if test -w "$cache_file"; then
  20857. test "x$cache_file" != "x/dev/null" &&
  20858. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  20859. $as_echo "$as_me: updating cache $cache_file" >&6;}
  20860. cat confcache >$cache_file
  20861. else
  20862. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  20863. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  20864. fi
  20865. fi
  20866. rm -f confcache
  20867. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  20868. # Let make expand exec_prefix.
  20869. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  20870. DEFS=-DHAVE_CONFIG_H
  20871. ac_libobjs=
  20872. ac_ltlibobjs=
  20873. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  20874. # 1. Remove the extension, and $U if already installed.
  20875. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  20876. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  20877. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  20878. # will be set to the directory where LIBOBJS objects are built.
  20879. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  20880. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  20881. done
  20882. LIBOBJS=$ac_libobjs
  20883. LTLIBOBJS=$ac_ltlibobjs
  20884. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  20885. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  20886. Usually this means the macro was only invoked conditionally." >&5
  20887. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  20888. Usually this means the macro was only invoked conditionally." >&2;}
  20889. { (exit 1); exit 1; }; }
  20890. fi
  20891. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  20892. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  20893. Usually this means the macro was only invoked conditionally." >&5
  20894. $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  20895. Usually this means the macro was only invoked conditionally." >&2;}
  20896. { (exit 1); exit 1; }; }
  20897. fi
  20898. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  20899. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  20900. Usually this means the macro was only invoked conditionally." >&5
  20901. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  20902. Usually this means the macro was only invoked conditionally." >&2;}
  20903. { (exit 1); exit 1; }; }
  20904. fi
  20905. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  20906. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  20907. Usually this means the macro was only invoked conditionally." >&5
  20908. $as_echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  20909. Usually this means the macro was only invoked conditionally." >&2;}
  20910. { (exit 1); exit 1; }; }
  20911. fi
  20912. if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
  20913. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_SSL\" was never defined.
  20914. Usually this means the macro was only invoked conditionally." >&5
  20915. $as_echo "$as_me: error: conditional \"ENABLE_SSL\" was never defined.
  20916. Usually this means the macro was only invoked conditionally." >&2;}
  20917. { (exit 1); exit 1; }; }
  20918. fi
  20919. if test -z "${HAVE_LIBGNUTLS_TRUE}" && test -z "${HAVE_LIBGNUTLS_FALSE}"; then
  20920. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  20921. Usually this means the macro was only invoked conditionally." >&5
  20922. $as_echo "$as_me: error: conditional \"HAVE_LIBGNUTLS\" was never defined.
  20923. Usually this means the macro was only invoked conditionally." >&2;}
  20924. { (exit 1); exit 1; }; }
  20925. fi
  20926. if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
  20927. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBSSL\" was never defined.
  20928. Usually this means the macro was only invoked conditionally." >&5
  20929. $as_echo "$as_me: error: conditional \"HAVE_LIBSSL\" was never defined.
  20930. Usually this means the macro was only invoked conditionally." >&2;}
  20931. { (exit 1); exit 1; }; }
  20932. fi
  20933. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  20934. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20935. Usually this means the macro was only invoked conditionally." >&5
  20936. $as_echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20937. Usually this means the macro was only invoked conditionally." >&2;}
  20938. { (exit 1); exit 1; }; }
  20939. fi
  20940. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  20941. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20942. Usually this means the macro was only invoked conditionally." >&5
  20943. $as_echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  20944. Usually this means the macro was only invoked conditionally." >&2;}
  20945. { (exit 1); exit 1; }; }
  20946. fi
  20947. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  20948. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20949. Usually this means the macro was only invoked conditionally." >&5
  20950. $as_echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20951. Usually this means the macro was only invoked conditionally." >&2;}
  20952. { (exit 1); exit 1; }; }
  20953. fi
  20954. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  20955. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20956. Usually this means the macro was only invoked conditionally." >&5
  20957. $as_echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  20958. Usually this means the macro was only invoked conditionally." >&2;}
  20959. { (exit 1); exit 1; }; }
  20960. fi
  20961. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  20962. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  20963. Usually this means the macro was only invoked conditionally." >&5
  20964. $as_echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  20965. Usually this means the macro was only invoked conditionally." >&2;}
  20966. { (exit 1); exit 1; }; }
  20967. fi
  20968. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  20969. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  20970. Usually this means the macro was only invoked conditionally." >&5
  20971. $as_echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  20972. Usually this means the macro was only invoked conditionally." >&2;}
  20973. { (exit 1); exit 1; }; }
  20974. fi
  20975. if test -z "${ENABLE_METALINK_LIBXML2_TRUE}" && test -z "${ENABLE_METALINK_LIBXML2_FALSE}"; then
  20976. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  20977. Usually this means the macro was only invoked conditionally." >&5
  20978. $as_echo "$as_me: error: conditional \"ENABLE_METALINK_LIBXML2\" was never defined.
  20979. Usually this means the macro was only invoked conditionally." >&2;}
  20980. { (exit 1); exit 1; }; }
  20981. fi
  20982. if test -z "${ENABLE_METALINK_LIBEXPAT_TRUE}" && test -z "${ENABLE_METALINK_LIBEXPAT_FALSE}"; then
  20983. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  20984. Usually this means the macro was only invoked conditionally." >&5
  20985. $as_echo "$as_me: error: conditional \"ENABLE_METALINK_LIBEXPAT\" was never defined.
  20986. Usually this means the macro was only invoked conditionally." >&2;}
  20987. { (exit 1); exit 1; }; }
  20988. fi
  20989. if test -z "${ENABLE_XML_RPC_TRUE}" && test -z "${ENABLE_XML_RPC_FALSE}"; then
  20990. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_XML_RPC\" was never defined.
  20991. Usually this means the macro was only invoked conditionally." >&5
  20992. $as_echo "$as_me: error: conditional \"ENABLE_XML_RPC\" was never defined.
  20993. Usually this means the macro was only invoked conditionally." >&2;}
  20994. { (exit 1); exit 1; }; }
  20995. fi
  20996. if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then
  20997. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBXML2\" was never defined.
  20998. Usually this means the macro was only invoked conditionally." >&5
  20999. $as_echo "$as_me: error: conditional \"HAVE_LIBXML2\" was never defined.
  21000. Usually this means the macro was only invoked conditionally." >&2;}
  21001. { (exit 1); exit 1; }; }
  21002. fi
  21003. if test -z "${HAVE_LIBEXPAT_TRUE}" && test -z "${HAVE_LIBEXPAT_FALSE}"; then
  21004. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBEXPAT\" was never defined.
  21005. Usually this means the macro was only invoked conditionally." >&5
  21006. $as_echo "$as_me: error: conditional \"HAVE_LIBEXPAT\" was never defined.
  21007. Usually this means the macro was only invoked conditionally." >&2;}
  21008. { (exit 1); exit 1; }; }
  21009. fi
  21010. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  21011. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  21012. Usually this means the macro was only invoked conditionally." >&5
  21013. $as_echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  21014. Usually this means the macro was only invoked conditionally." >&2;}
  21015. { (exit 1); exit 1; }; }
  21016. fi
  21017. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  21018. { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  21019. Usually this means the macro was only invoked conditionally." >&5
  21020. $as_echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  21021. Usually this means the macro was only invoked conditionally." >&2;}
  21022. { (exit 1); exit 1; }; }
  21023. fi
  21024. if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
  21025. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBZ\" was never defined.
  21026. Usually this means the macro was only invoked conditionally." >&5
  21027. $as_echo "$as_me: error: conditional \"HAVE_LIBZ\" was never defined.
  21028. Usually this means the macro was only invoked conditionally." >&2;}
  21029. { (exit 1); exit 1; }; }
  21030. fi
  21031. if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then
  21032. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SQLITE3\" was never defined.
  21033. Usually this means the macro was only invoked conditionally." >&5
  21034. $as_echo "$as_me: error: conditional \"HAVE_SQLITE3\" was never defined.
  21035. Usually this means the macro was only invoked conditionally." >&2;}
  21036. { (exit 1); exit 1; }; }
  21037. fi
  21038. if test -z "${HAVE_EPOLL_TRUE}" && test -z "${HAVE_EPOLL_FALSE}"; then
  21039. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_EPOLL\" was never defined.
  21040. Usually this means the macro was only invoked conditionally." >&5
  21041. $as_echo "$as_me: error: conditional \"HAVE_EPOLL\" was never defined.
  21042. Usually this means the macro was only invoked conditionally." >&2;}
  21043. { (exit 1); exit 1; }; }
  21044. fi
  21045. if test -z "${HAVE_POSIX_FALLOCATE_TRUE}" && test -z "${HAVE_POSIX_FALLOCATE_FALSE}"; then
  21046. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  21047. Usually this means the macro was only invoked conditionally." >&5
  21048. $as_echo "$as_me: error: conditional \"HAVE_POSIX_FALLOCATE\" was never defined.
  21049. Usually this means the macro was only invoked conditionally." >&2;}
  21050. { (exit 1); exit 1; }; }
  21051. fi
  21052. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  21053. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  21054. Usually this means the macro was only invoked conditionally." >&5
  21055. $as_echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  21056. Usually this means the macro was only invoked conditionally." >&2;}
  21057. { (exit 1); exit 1; }; }
  21058. fi
  21059. if test -z "${HAVE_ASCTIME_R_TRUE}" && test -z "${HAVE_ASCTIME_R_FALSE}"; then
  21060. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  21061. Usually this means the macro was only invoked conditionally." >&5
  21062. $as_echo "$as_me: error: conditional \"HAVE_ASCTIME_R\" was never defined.
  21063. Usually this means the macro was only invoked conditionally." >&2;}
  21064. { (exit 1); exit 1; }; }
  21065. fi
  21066. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  21067. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  21068. Usually this means the macro was only invoked conditionally." >&5
  21069. $as_echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  21070. Usually this means the macro was only invoked conditionally." >&2;}
  21071. { (exit 1); exit 1; }; }
  21072. fi
  21073. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  21074. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  21075. Usually this means the macro was only invoked conditionally." >&5
  21076. $as_echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  21077. Usually this means the macro was only invoked conditionally." >&2;}
  21078. { (exit 1); exit 1; }; }
  21079. fi
  21080. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  21081. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  21082. Usually this means the macro was only invoked conditionally." >&5
  21083. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  21084. Usually this means the macro was only invoked conditionally." >&2;}
  21085. { (exit 1); exit 1; }; }
  21086. fi
  21087. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  21088. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  21089. Usually this means the macro was only invoked conditionally." >&5
  21090. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  21091. Usually this means the macro was only invoked conditionally." >&2;}
  21092. { (exit 1); exit 1; }; }
  21093. fi
  21094. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  21095. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  21096. Usually this means the macro was only invoked conditionally." >&5
  21097. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  21098. Usually this means the macro was only invoked conditionally." >&2;}
  21099. { (exit 1); exit 1; }; }
  21100. fi
  21101. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  21102. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  21103. Usually this means the macro was only invoked conditionally." >&5
  21104. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  21105. Usually this means the macro was only invoked conditionally." >&2;}
  21106. { (exit 1); exit 1; }; }
  21107. fi
  21108. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  21109. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  21110. Usually this means the macro was only invoked conditionally." >&5
  21111. $as_echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  21112. Usually this means the macro was only invoked conditionally." >&2;}
  21113. { (exit 1); exit 1; }; }
  21114. fi
  21115. if test -z "${HAVE_GETTIMEOFDAY_TRUE}" && test -z "${HAVE_GETTIMEOFDAY_FALSE}"; then
  21116. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  21117. Usually this means the macro was only invoked conditionally." >&5
  21118. $as_echo "$as_me: error: conditional \"HAVE_GETTIMEOFDAY\" was never defined.
  21119. Usually this means the macro was only invoked conditionally." >&2;}
  21120. { (exit 1); exit 1; }; }
  21121. fi
  21122. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  21123. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  21124. Usually this means the macro was only invoked conditionally." >&5
  21125. $as_echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  21126. Usually this means the macro was only invoked conditionally." >&2;}
  21127. { (exit 1); exit 1; }; }
  21128. fi
  21129. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  21130. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  21131. Usually this means the macro was only invoked conditionally." >&5
  21132. $as_echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  21133. Usually this means the macro was only invoked conditionally." >&2;}
  21134. { (exit 1); exit 1; }; }
  21135. fi
  21136. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  21137. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  21138. Usually this means the macro was only invoked conditionally." >&5
  21139. $as_echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  21140. Usually this means the macro was only invoked conditionally." >&2;}
  21141. { (exit 1); exit 1; }; }
  21142. fi
  21143. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  21144. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  21145. Usually this means the macro was only invoked conditionally." >&5
  21146. $as_echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  21147. Usually this means the macro was only invoked conditionally." >&2;}
  21148. { (exit 1); exit 1; }; }
  21149. fi
  21150. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  21151. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  21152. Usually this means the macro was only invoked conditionally." >&5
  21153. $as_echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  21154. Usually this means the macro was only invoked conditionally." >&2;}
  21155. { (exit 1); exit 1; }; }
  21156. fi
  21157. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  21158. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  21159. Usually this means the macro was only invoked conditionally." >&5
  21160. $as_echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  21161. Usually this means the macro was only invoked conditionally." >&2;}
  21162. { (exit 1); exit 1; }; }
  21163. fi
  21164. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  21165. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  21166. Usually this means the macro was only invoked conditionally." >&5
  21167. $as_echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  21168. Usually this means the macro was only invoked conditionally." >&2;}
  21169. { (exit 1); exit 1; }; }
  21170. fi
  21171. if test -z "${HAVE_TIMEGM_TRUE}" && test -z "${HAVE_TIMEGM_FALSE}"; then
  21172. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TIMEGM\" was never defined.
  21173. Usually this means the macro was only invoked conditionally." >&5
  21174. $as_echo "$as_me: error: conditional \"HAVE_TIMEGM\" was never defined.
  21175. Usually this means the macro was only invoked conditionally." >&2;}
  21176. { (exit 1); exit 1; }; }
  21177. fi
  21178. if test -z "${HAVE_DAEMON_TRUE}" && test -z "${HAVE_DAEMON_FALSE}"; then
  21179. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DAEMON\" was never defined.
  21180. Usually this means the macro was only invoked conditionally." >&5
  21181. $as_echo "$as_me: error: conditional \"HAVE_DAEMON\" was never defined.
  21182. Usually this means the macro was only invoked conditionally." >&2;}
  21183. { (exit 1); exit 1; }; }
  21184. fi
  21185. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  21186. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  21187. Usually this means the macro was only invoked conditionally." >&5
  21188. $as_echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  21189. Usually this means the macro was only invoked conditionally." >&2;}
  21190. { (exit 1); exit 1; }; }
  21191. fi
  21192. if test -z "${HAVE_GAI_STRERROR_TRUE}" && test -z "${HAVE_GAI_STRERROR_FALSE}"; then
  21193. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  21194. Usually this means the macro was only invoked conditionally." >&5
  21195. $as_echo "$as_me: error: conditional \"HAVE_GAI_STRERROR\" was never defined.
  21196. Usually this means the macro was only invoked conditionally." >&2;}
  21197. { (exit 1); exit 1; }; }
  21198. fi
  21199. : ${CONFIG_STATUS=./config.status}
  21200. ac_write_fail=0
  21201. ac_clean_files_save=$ac_clean_files
  21202. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  21203. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  21204. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  21205. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21206. #! $SHELL
  21207. # Generated by $as_me.
  21208. # Run this file to recreate the current configuration.
  21209. # Compiler output produced by configure, useful for debugging
  21210. # configure, is in config.log if it exists.
  21211. debug=false
  21212. ac_cs_recheck=false
  21213. ac_cs_silent=false
  21214. SHELL=\${CONFIG_SHELL-$SHELL}
  21215. _ACEOF
  21216. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21217. ## --------------------- ##
  21218. ## M4sh Initialization. ##
  21219. ## --------------------- ##
  21220. # Be more Bourne compatible
  21221. DUALCASE=1; export DUALCASE # for MKS sh
  21222. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21223. emulate sh
  21224. NULLCMD=:
  21225. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21226. # is contrary to our usage. Disable this feature.
  21227. alias -g '${1+"$@"}'='"$@"'
  21228. setopt NO_GLOB_SUBST
  21229. else
  21230. case `(set -o) 2>/dev/null` in
  21231. *posix*) set -o posix ;;
  21232. esac
  21233. fi
  21234. # PATH needs CR
  21235. # Avoid depending upon Character Ranges.
  21236. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  21237. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  21238. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  21239. as_cr_digits='0123456789'
  21240. as_cr_alnum=$as_cr_Letters$as_cr_digits
  21241. as_nl='
  21242. '
  21243. export as_nl
  21244. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  21245. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  21246. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  21247. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  21248. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  21249. as_echo='printf %s\n'
  21250. as_echo_n='printf %s'
  21251. else
  21252. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  21253. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  21254. as_echo_n='/usr/ucb/echo -n'
  21255. else
  21256. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  21257. as_echo_n_body='eval
  21258. arg=$1;
  21259. case $arg in
  21260. *"$as_nl"*)
  21261. expr "X$arg" : "X\\(.*\\)$as_nl";
  21262. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  21263. esac;
  21264. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  21265. '
  21266. export as_echo_n_body
  21267. as_echo_n='sh -c $as_echo_n_body as_echo'
  21268. fi
  21269. export as_echo_body
  21270. as_echo='sh -c $as_echo_body as_echo'
  21271. fi
  21272. # The user is always right.
  21273. if test "${PATH_SEPARATOR+set}" != set; then
  21274. PATH_SEPARATOR=:
  21275. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  21276. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  21277. PATH_SEPARATOR=';'
  21278. }
  21279. fi
  21280. # Support unset when possible.
  21281. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21282. as_unset=unset
  21283. else
  21284. as_unset=false
  21285. fi
  21286. # IFS
  21287. # We need space, tab and new line, in precisely that order. Quoting is
  21288. # there to prevent editors from complaining about space-tab.
  21289. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  21290. # splitting by setting IFS to empty value.)
  21291. IFS=" "" $as_nl"
  21292. # Find who we are. Look in the path if we contain no directory separator.
  21293. case $0 in
  21294. *[\\/]* ) as_myself=$0 ;;
  21295. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21296. for as_dir in $PATH
  21297. do
  21298. IFS=$as_save_IFS
  21299. test -z "$as_dir" && as_dir=.
  21300. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  21301. done
  21302. IFS=$as_save_IFS
  21303. ;;
  21304. esac
  21305. # We did not find ourselves, most probably we were run as `sh COMMAND'
  21306. # in which case we are not to be found in the path.
  21307. if test "x$as_myself" = x; then
  21308. as_myself=$0
  21309. fi
  21310. if test ! -f "$as_myself"; then
  21311. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  21312. { (exit 1); exit 1; }
  21313. fi
  21314. # Work around bugs in pre-3.0 UWIN ksh.
  21315. for as_var in ENV MAIL MAILPATH
  21316. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  21317. done
  21318. PS1='$ '
  21319. PS2='> '
  21320. PS4='+ '
  21321. # NLS nuisances.
  21322. LC_ALL=C
  21323. export LC_ALL
  21324. LANGUAGE=C
  21325. export LANGUAGE
  21326. # Required to use basename.
  21327. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21328. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21329. as_expr=expr
  21330. else
  21331. as_expr=false
  21332. fi
  21333. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  21334. as_basename=basename
  21335. else
  21336. as_basename=false
  21337. fi
  21338. # Name of the executable.
  21339. as_me=`$as_basename -- "$0" ||
  21340. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  21341. X"$0" : 'X\(//\)$' \| \
  21342. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  21343. $as_echo X/"$0" |
  21344. sed '/^.*\/\([^/][^/]*\)\/*$/{
  21345. s//\1/
  21346. q
  21347. }
  21348. /^X\/\(\/\/\)$/{
  21349. s//\1/
  21350. q
  21351. }
  21352. /^X\/\(\/\).*/{
  21353. s//\1/
  21354. q
  21355. }
  21356. s/.*/./; q'`
  21357. # CDPATH.
  21358. $as_unset CDPATH
  21359. as_lineno_1=$LINENO
  21360. as_lineno_2=$LINENO
  21361. test "x$as_lineno_1" != "x$as_lineno_2" &&
  21362. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  21363. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  21364. # uniformly replaced by the line number. The first 'sed' inserts a
  21365. # line-number line after each line using $LINENO; the second 'sed'
  21366. # does the real work. The second script uses 'N' to pair each
  21367. # line-number line with the line containing $LINENO, and appends
  21368. # trailing '-' during substitution so that $LINENO is not a special
  21369. # case at line end.
  21370. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  21371. # scripts with optimization help from Paolo Bonzini. Blame Lee
  21372. # E. McMahon (1931-1989) for sed's syntax. :-)
  21373. sed -n '
  21374. p
  21375. /[$]LINENO/=
  21376. ' <$as_myself |
  21377. sed '
  21378. s/[$]LINENO.*/&-/
  21379. t lineno
  21380. b
  21381. :lineno
  21382. N
  21383. :loop
  21384. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  21385. t loop
  21386. s/-\n.*//
  21387. ' >$as_me.lineno &&
  21388. chmod +x "$as_me.lineno" ||
  21389. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  21390. { (exit 1); exit 1; }; }
  21391. # Don't try to exec as it changes $[0], causing all sort of problems
  21392. # (the dirname of $[0] is not the place where we might find the
  21393. # original and so on. Autoconf is especially sensitive to this).
  21394. . "./$as_me.lineno"
  21395. # Exit status is that of the last command.
  21396. exit
  21397. }
  21398. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  21399. as_dirname=dirname
  21400. else
  21401. as_dirname=false
  21402. fi
  21403. ECHO_C= ECHO_N= ECHO_T=
  21404. case `echo -n x` in
  21405. -n*)
  21406. case `echo 'x\c'` in
  21407. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  21408. *) ECHO_C='\c';;
  21409. esac;;
  21410. *)
  21411. ECHO_N='-n';;
  21412. esac
  21413. if expr a : '\(a\)' >/dev/null 2>&1 &&
  21414. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  21415. as_expr=expr
  21416. else
  21417. as_expr=false
  21418. fi
  21419. rm -f conf$$ conf$$.exe conf$$.file
  21420. if test -d conf$$.dir; then
  21421. rm -f conf$$.dir/conf$$.file
  21422. else
  21423. rm -f conf$$.dir
  21424. mkdir conf$$.dir 2>/dev/null
  21425. fi
  21426. if (echo >conf$$.file) 2>/dev/null; then
  21427. if ln -s conf$$.file conf$$ 2>/dev/null; then
  21428. as_ln_s='ln -s'
  21429. # ... but there are two gotchas:
  21430. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  21431. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  21432. # In both cases, we have to default to `cp -p'.
  21433. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  21434. as_ln_s='cp -p'
  21435. elif ln conf$$.file conf$$ 2>/dev/null; then
  21436. as_ln_s=ln
  21437. else
  21438. as_ln_s='cp -p'
  21439. fi
  21440. else
  21441. as_ln_s='cp -p'
  21442. fi
  21443. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  21444. rmdir conf$$.dir 2>/dev/null
  21445. if mkdir -p . 2>/dev/null; then
  21446. as_mkdir_p=:
  21447. else
  21448. test -d ./-p && rmdir ./-p
  21449. as_mkdir_p=false
  21450. fi
  21451. if test -x / >/dev/null 2>&1; then
  21452. as_test_x='test -x'
  21453. else
  21454. if ls -dL / >/dev/null 2>&1; then
  21455. as_ls_L_option=L
  21456. else
  21457. as_ls_L_option=
  21458. fi
  21459. as_test_x='
  21460. eval sh -c '\''
  21461. if test -d "$1"; then
  21462. test -d "$1/.";
  21463. else
  21464. case $1 in
  21465. -*)set "./$1";;
  21466. esac;
  21467. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  21468. ???[sx]*):;;*)false;;esac;fi
  21469. '\'' sh
  21470. '
  21471. fi
  21472. as_executable_p=$as_test_x
  21473. # Sed expression to map a string onto a valid CPP name.
  21474. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  21475. # Sed expression to map a string onto a valid variable name.
  21476. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  21477. exec 6>&1
  21478. # Save the log message, to keep $[0] and so on meaningful, and to
  21479. # report actual input values of CONFIG_FILES etc. instead of their
  21480. # values after options handling.
  21481. ac_log="
  21482. This file was extended by aria2 $as_me 1.6.1, which was
  21483. generated by GNU Autoconf 2.63. Invocation command line was
  21484. CONFIG_FILES = $CONFIG_FILES
  21485. CONFIG_HEADERS = $CONFIG_HEADERS
  21486. CONFIG_LINKS = $CONFIG_LINKS
  21487. CONFIG_COMMANDS = $CONFIG_COMMANDS
  21488. $ $0 $@
  21489. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  21490. "
  21491. _ACEOF
  21492. case $ac_config_files in *"
  21493. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  21494. esac
  21495. case $ac_config_headers in *"
  21496. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  21497. esac
  21498. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21499. # Files that config.status was made for.
  21500. config_files="$ac_config_files"
  21501. config_headers="$ac_config_headers"
  21502. config_commands="$ac_config_commands"
  21503. _ACEOF
  21504. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21505. ac_cs_usage="\
  21506. \`$as_me' instantiates files from templates according to the
  21507. current configuration.
  21508. Usage: $0 [OPTION]... [FILE]...
  21509. -h, --help print this help, then exit
  21510. -V, --version print version number and configuration settings, then exit
  21511. -q, --quiet, --silent
  21512. do not print progress messages
  21513. -d, --debug don't remove temporary files
  21514. --recheck update $as_me by reconfiguring in the same conditions
  21515. --file=FILE[:TEMPLATE]
  21516. instantiate the configuration file FILE
  21517. --header=FILE[:TEMPLATE]
  21518. instantiate the configuration header FILE
  21519. Configuration files:
  21520. $config_files
  21521. Configuration headers:
  21522. $config_headers
  21523. Configuration commands:
  21524. $config_commands
  21525. Report bugs to <bug-autoconf@gnu.org>."
  21526. _ACEOF
  21527. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21528. ac_cs_version="\\
  21529. aria2 config.status 1.6.1
  21530. configured by $0, generated by GNU Autoconf 2.63,
  21531. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  21532. Copyright (C) 2008 Free Software Foundation, Inc.
  21533. This config.status script is free software; the Free Software Foundation
  21534. gives unlimited permission to copy, distribute and modify it."
  21535. ac_pwd='$ac_pwd'
  21536. srcdir='$srcdir'
  21537. INSTALL='$INSTALL'
  21538. MKDIR_P='$MKDIR_P'
  21539. AWK='$AWK'
  21540. test -n "\$AWK" || AWK=awk
  21541. _ACEOF
  21542. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21543. # The default lists apply if the user does not specify any file.
  21544. ac_need_defaults=:
  21545. while test $# != 0
  21546. do
  21547. case $1 in
  21548. --*=*)
  21549. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  21550. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  21551. ac_shift=:
  21552. ;;
  21553. *)
  21554. ac_option=$1
  21555. ac_optarg=$2
  21556. ac_shift=shift
  21557. ;;
  21558. esac
  21559. case $ac_option in
  21560. # Handling of the options.
  21561. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21562. ac_cs_recheck=: ;;
  21563. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  21564. $as_echo "$ac_cs_version"; exit ;;
  21565. --debug | --debu | --deb | --de | --d | -d )
  21566. debug=: ;;
  21567. --file | --fil | --fi | --f )
  21568. $ac_shift
  21569. case $ac_optarg in
  21570. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21571. esac
  21572. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  21573. ac_need_defaults=false;;
  21574. --header | --heade | --head | --hea )
  21575. $ac_shift
  21576. case $ac_optarg in
  21577. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  21578. esac
  21579. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  21580. ac_need_defaults=false;;
  21581. --he | --h)
  21582. # Conflict between --help and --header
  21583. { $as_echo "$as_me: error: ambiguous option: $1
  21584. Try \`$0 --help' for more information." >&2
  21585. { (exit 1); exit 1; }; };;
  21586. --help | --hel | -h )
  21587. $as_echo "$ac_cs_usage"; exit ;;
  21588. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  21589. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  21590. ac_cs_silent=: ;;
  21591. # This is an error.
  21592. -*) { $as_echo "$as_me: error: unrecognized option: $1
  21593. Try \`$0 --help' for more information." >&2
  21594. { (exit 1); exit 1; }; } ;;
  21595. *) ac_config_targets="$ac_config_targets $1"
  21596. ac_need_defaults=false ;;
  21597. esac
  21598. shift
  21599. done
  21600. ac_configure_extra_args=
  21601. if $ac_cs_silent; then
  21602. exec 6>/dev/null
  21603. ac_configure_extra_args="$ac_configure_extra_args --silent"
  21604. fi
  21605. _ACEOF
  21606. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21607. if \$ac_cs_recheck; then
  21608. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  21609. shift
  21610. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  21611. CONFIG_SHELL='$SHELL'
  21612. export CONFIG_SHELL
  21613. exec "\$@"
  21614. fi
  21615. _ACEOF
  21616. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21617. exec 5>>config.log
  21618. {
  21619. echo
  21620. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  21621. ## Running $as_me. ##
  21622. _ASBOX
  21623. $as_echo "$ac_log"
  21624. } >&5
  21625. _ACEOF
  21626. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21627. #
  21628. # INIT-COMMANDS
  21629. #
  21630. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  21631. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  21632. # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
  21633. # from automake < 1.5.
  21634. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  21635. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  21636. LINGUAS="${LINGUAS-%UNSET%}"
  21637. _ACEOF
  21638. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21639. # Handling of arguments.
  21640. for ac_config_target in $ac_config_targets
  21641. do
  21642. case $ac_config_target in
  21643. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  21644. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  21645. "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
  21646. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  21647. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  21648. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  21649. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  21650. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  21651. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  21652. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  21653. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  21654. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  21655. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  21656. { (exit 1); exit 1; }; };;
  21657. esac
  21658. done
  21659. # If the user did not use the arguments to specify the items to instantiate,
  21660. # then the envvar interface is used. Set only those that are not.
  21661. # We use the long form for the default assignment because of an extremely
  21662. # bizarre bug on SunOS 4.1.3.
  21663. if $ac_need_defaults; then
  21664. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  21665. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  21666. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  21667. fi
  21668. # Have a temporary directory for convenience. Make it in the build tree
  21669. # simply because there is no reason against having it here, and in addition,
  21670. # creating and moving files from /tmp can sometimes cause problems.
  21671. # Hook for its removal unless debugging.
  21672. # Note that there is a small window in which the directory will not be cleaned:
  21673. # after its creation but before its name has been assigned to `$tmp'.
  21674. $debug ||
  21675. {
  21676. tmp=
  21677. trap 'exit_status=$?
  21678. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  21679. ' 0
  21680. trap '{ (exit 1); exit 1; }' 1 2 13 15
  21681. }
  21682. # Create a (secure) tmp directory for tmp files.
  21683. {
  21684. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  21685. test -n "$tmp" && test -d "$tmp"
  21686. } ||
  21687. {
  21688. tmp=./conf$$-$RANDOM
  21689. (umask 077 && mkdir "$tmp")
  21690. } ||
  21691. {
  21692. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  21693. { (exit 1); exit 1; }
  21694. }
  21695. # Set up the scripts for CONFIG_FILES section.
  21696. # No need to generate them if there are no CONFIG_FILES.
  21697. # This happens for instance with `./config.status config.h'.
  21698. if test -n "$CONFIG_FILES"; then
  21699. ac_cr=' '
  21700. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  21701. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  21702. ac_cs_awk_cr='\\r'
  21703. else
  21704. ac_cs_awk_cr=$ac_cr
  21705. fi
  21706. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  21707. _ACEOF
  21708. {
  21709. echo "cat >conf$$subs.awk <<_ACEOF" &&
  21710. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  21711. echo "_ACEOF"
  21712. } >conf$$subs.sh ||
  21713. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21714. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21715. { (exit 1); exit 1; }; }
  21716. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  21717. ac_delim='%!_!# '
  21718. for ac_last_try in false false false false false :; do
  21719. . ./conf$$subs.sh ||
  21720. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21721. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21722. { (exit 1); exit 1; }; }
  21723. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  21724. if test $ac_delim_n = $ac_delim_num; then
  21725. break
  21726. elif $ac_last_try; then
  21727. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  21728. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  21729. { (exit 1); exit 1; }; }
  21730. else
  21731. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21732. fi
  21733. done
  21734. rm -f conf$$subs.sh
  21735. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21736. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  21737. _ACEOF
  21738. sed -n '
  21739. h
  21740. s/^/S["/; s/!.*/"]=/
  21741. p
  21742. g
  21743. s/^[^!]*!//
  21744. :repl
  21745. t repl
  21746. s/'"$ac_delim"'$//
  21747. t delim
  21748. :nl
  21749. h
  21750. s/\(.\{148\}\).*/\1/
  21751. t more1
  21752. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  21753. p
  21754. n
  21755. b repl
  21756. :more1
  21757. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21758. p
  21759. g
  21760. s/.\{148\}//
  21761. t nl
  21762. :delim
  21763. h
  21764. s/\(.\{148\}\).*/\1/
  21765. t more2
  21766. s/["\\]/\\&/g; s/^/"/; s/$/"/
  21767. p
  21768. b
  21769. :more2
  21770. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  21771. p
  21772. g
  21773. s/.\{148\}//
  21774. t delim
  21775. ' <conf$$subs.awk | sed '
  21776. /^[^""]/{
  21777. N
  21778. s/\n//
  21779. }
  21780. ' >>$CONFIG_STATUS || ac_write_fail=1
  21781. rm -f conf$$subs.awk
  21782. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21783. _ACAWK
  21784. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  21785. for (key in S) S_is_set[key] = 1
  21786. FS = ""
  21787. }
  21788. {
  21789. line = $ 0
  21790. nfields = split(line, field, "@")
  21791. substed = 0
  21792. len = length(field[1])
  21793. for (i = 2; i < nfields; i++) {
  21794. key = field[i]
  21795. keylen = length(key)
  21796. if (S_is_set[key]) {
  21797. value = S[key]
  21798. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  21799. len += length(value) + length(field[++i])
  21800. substed = 1
  21801. } else
  21802. len += 1 + keylen
  21803. }
  21804. print line
  21805. }
  21806. _ACAWK
  21807. _ACEOF
  21808. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21809. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  21810. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  21811. else
  21812. cat
  21813. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  21814. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  21815. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  21816. { (exit 1); exit 1; }; }
  21817. _ACEOF
  21818. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  21819. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  21820. # trailing colons and then remove the whole line if VPATH becomes empty
  21821. # (actually we leave an empty line to preserve line numbers).
  21822. if test "x$srcdir" = x.; then
  21823. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  21824. s/:*\$(srcdir):*/:/
  21825. s/:*\${srcdir}:*/:/
  21826. s/:*@srcdir@:*/:/
  21827. s/^\([^=]*=[ ]*\):*/\1/
  21828. s/:*$//
  21829. s/^[^=]*=[ ]*$//
  21830. }'
  21831. fi
  21832. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21833. fi # test -n "$CONFIG_FILES"
  21834. # Set up the scripts for CONFIG_HEADERS section.
  21835. # No need to generate them if there are no CONFIG_HEADERS.
  21836. # This happens for instance with `./config.status Makefile'.
  21837. if test -n "$CONFIG_HEADERS"; then
  21838. cat >"$tmp/defines.awk" <<\_ACAWK ||
  21839. BEGIN {
  21840. _ACEOF
  21841. # Transform confdefs.h into an awk script `defines.awk', embedded as
  21842. # here-document in config.status, that substitutes the proper values into
  21843. # config.h.in to produce config.h.
  21844. # Create a delimiter string that does not exist in confdefs.h, to ease
  21845. # handling of long lines.
  21846. ac_delim='%!_!# '
  21847. for ac_last_try in false false :; do
  21848. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  21849. if test -z "$ac_t"; then
  21850. break
  21851. elif $ac_last_try; then
  21852. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  21853. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  21854. { (exit 1); exit 1; }; }
  21855. else
  21856. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  21857. fi
  21858. done
  21859. # For the awk script, D is an array of macro values keyed by name,
  21860. # likewise P contains macro parameters if any. Preserve backslash
  21861. # newline sequences.
  21862. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  21863. sed -n '
  21864. s/.\{148\}/&'"$ac_delim"'/g
  21865. t rset
  21866. :rset
  21867. s/^[ ]*#[ ]*define[ ][ ]*/ /
  21868. t def
  21869. d
  21870. :def
  21871. s/\\$//
  21872. t bsnl
  21873. s/["\\]/\\&/g
  21874. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21875. D["\1"]=" \3"/p
  21876. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  21877. d
  21878. :bsnl
  21879. s/["\\]/\\&/g
  21880. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  21881. D["\1"]=" \3\\\\\\n"\\/p
  21882. t cont
  21883. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  21884. t cont
  21885. d
  21886. :cont
  21887. n
  21888. s/.\{148\}/&'"$ac_delim"'/g
  21889. t clear
  21890. :clear
  21891. s/\\$//
  21892. t bsnlc
  21893. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  21894. d
  21895. :bsnlc
  21896. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  21897. b cont
  21898. ' <confdefs.h | sed '
  21899. s/'"$ac_delim"'/"\\\
  21900. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  21901. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  21902. for (key in D) D_is_set[key] = 1
  21903. FS = ""
  21904. }
  21905. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  21906. line = \$ 0
  21907. split(line, arg, " ")
  21908. if (arg[1] == "#") {
  21909. defundef = arg[2]
  21910. mac1 = arg[3]
  21911. } else {
  21912. defundef = substr(arg[1], 2)
  21913. mac1 = arg[2]
  21914. }
  21915. split(mac1, mac2, "(") #)
  21916. macro = mac2[1]
  21917. prefix = substr(line, 1, index(line, defundef) - 1)
  21918. if (D_is_set[macro]) {
  21919. # Preserve the white space surrounding the "#".
  21920. print prefix "define", macro P[macro] D[macro]
  21921. next
  21922. } else {
  21923. # Replace #undef with comments. This is necessary, for example,
  21924. # in the case of _POSIX_SOURCE, which is predefined and required
  21925. # on some systems where configure will not decide to define it.
  21926. if (defundef == "undef") {
  21927. print "/*", prefix defundef, macro, "*/"
  21928. next
  21929. }
  21930. }
  21931. }
  21932. { print }
  21933. _ACAWK
  21934. _ACEOF
  21935. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  21936. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  21937. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  21938. { (exit 1); exit 1; }; }
  21939. fi # test -n "$CONFIG_HEADERS"
  21940. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  21941. shift
  21942. for ac_tag
  21943. do
  21944. case $ac_tag in
  21945. :[FHLC]) ac_mode=$ac_tag; continue;;
  21946. esac
  21947. case $ac_mode$ac_tag in
  21948. :[FHL]*:*);;
  21949. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  21950. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  21951. { (exit 1); exit 1; }; };;
  21952. :[FH]-) ac_tag=-:-;;
  21953. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  21954. esac
  21955. ac_save_IFS=$IFS
  21956. IFS=:
  21957. set x $ac_tag
  21958. IFS=$ac_save_IFS
  21959. shift
  21960. ac_file=$1
  21961. shift
  21962. case $ac_mode in
  21963. :L) ac_source=$1;;
  21964. :[FH])
  21965. ac_file_inputs=
  21966. for ac_f
  21967. do
  21968. case $ac_f in
  21969. -) ac_f="$tmp/stdin";;
  21970. *) # Look for the file first in the build tree, then in the source tree
  21971. # (if the path is not absolute). The absolute path cannot be DOS-style,
  21972. # because $ac_f cannot contain `:'.
  21973. test -f "$ac_f" ||
  21974. case $ac_f in
  21975. [\\/$]*) false;;
  21976. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  21977. esac ||
  21978. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  21979. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  21980. { (exit 1); exit 1; }; };;
  21981. esac
  21982. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  21983. ac_file_inputs="$ac_file_inputs '$ac_f'"
  21984. done
  21985. # Let's still pretend it is `configure' which instantiates (i.e., don't
  21986. # use $as_me), people would be surprised to read:
  21987. # /* config.h. Generated by config.status. */
  21988. configure_input='Generated from '`
  21989. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  21990. `' by configure.'
  21991. if test x"$ac_file" != x-; then
  21992. configure_input="$ac_file. $configure_input"
  21993. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  21994. $as_echo "$as_me: creating $ac_file" >&6;}
  21995. fi
  21996. # Neutralize special characters interpreted by sed in replacement strings.
  21997. case $configure_input in #(
  21998. *\&* | *\|* | *\\* )
  21999. ac_sed_conf_input=`$as_echo "$configure_input" |
  22000. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  22001. *) ac_sed_conf_input=$configure_input;;
  22002. esac
  22003. case $ac_tag in
  22004. *:-:* | *:-) cat >"$tmp/stdin" \
  22005. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22006. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22007. { (exit 1); exit 1; }; } ;;
  22008. esac
  22009. ;;
  22010. esac
  22011. ac_dir=`$as_dirname -- "$ac_file" ||
  22012. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22013. X"$ac_file" : 'X\(//\)[^/]' \| \
  22014. X"$ac_file" : 'X\(//\)$' \| \
  22015. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  22016. $as_echo X"$ac_file" |
  22017. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22018. s//\1/
  22019. q
  22020. }
  22021. /^X\(\/\/\)[^/].*/{
  22022. s//\1/
  22023. q
  22024. }
  22025. /^X\(\/\/\)$/{
  22026. s//\1/
  22027. q
  22028. }
  22029. /^X\(\/\).*/{
  22030. s//\1/
  22031. q
  22032. }
  22033. s/.*/./; q'`
  22034. { as_dir="$ac_dir"
  22035. case $as_dir in #(
  22036. -*) as_dir=./$as_dir;;
  22037. esac
  22038. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22039. as_dirs=
  22040. while :; do
  22041. case $as_dir in #(
  22042. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22043. *) as_qdir=$as_dir;;
  22044. esac
  22045. as_dirs="'$as_qdir' $as_dirs"
  22046. as_dir=`$as_dirname -- "$as_dir" ||
  22047. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22048. X"$as_dir" : 'X\(//\)[^/]' \| \
  22049. X"$as_dir" : 'X\(//\)$' \| \
  22050. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22051. $as_echo X"$as_dir" |
  22052. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22053. s//\1/
  22054. q
  22055. }
  22056. /^X\(\/\/\)[^/].*/{
  22057. s//\1/
  22058. q
  22059. }
  22060. /^X\(\/\/\)$/{
  22061. s//\1/
  22062. q
  22063. }
  22064. /^X\(\/\).*/{
  22065. s//\1/
  22066. q
  22067. }
  22068. s/.*/./; q'`
  22069. test -d "$as_dir" && break
  22070. done
  22071. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22072. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22073. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22074. { (exit 1); exit 1; }; }; }
  22075. ac_builddir=.
  22076. case "$ac_dir" in
  22077. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22078. *)
  22079. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  22080. # A ".." for each directory in $ac_dir_suffix.
  22081. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  22082. case $ac_top_builddir_sub in
  22083. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  22084. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  22085. esac ;;
  22086. esac
  22087. ac_abs_top_builddir=$ac_pwd
  22088. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  22089. # for backward compatibility:
  22090. ac_top_builddir=$ac_top_build_prefix
  22091. case $srcdir in
  22092. .) # We are building in place.
  22093. ac_srcdir=.
  22094. ac_top_srcdir=$ac_top_builddir_sub
  22095. ac_abs_top_srcdir=$ac_pwd ;;
  22096. [\\/]* | ?:[\\/]* ) # Absolute name.
  22097. ac_srcdir=$srcdir$ac_dir_suffix;
  22098. ac_top_srcdir=$srcdir
  22099. ac_abs_top_srcdir=$srcdir ;;
  22100. *) # Relative name.
  22101. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  22102. ac_top_srcdir=$ac_top_build_prefix$srcdir
  22103. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  22104. esac
  22105. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  22106. case $ac_mode in
  22107. :F)
  22108. #
  22109. # CONFIG_FILE
  22110. #
  22111. case $INSTALL in
  22112. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  22113. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  22114. esac
  22115. ac_MKDIR_P=$MKDIR_P
  22116. case $MKDIR_P in
  22117. [\\/$]* | ?:[\\/]* ) ;;
  22118. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  22119. esac
  22120. _ACEOF
  22121. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22122. # If the template does not know about datarootdir, expand it.
  22123. # FIXME: This hack should be removed a few years after 2.60.
  22124. ac_datarootdir_hack=; ac_datarootdir_seen=
  22125. ac_sed_dataroot='
  22126. /datarootdir/ {
  22127. p
  22128. q
  22129. }
  22130. /@datadir@/p
  22131. /@docdir@/p
  22132. /@infodir@/p
  22133. /@localedir@/p
  22134. /@mandir@/p
  22135. '
  22136. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  22137. *datarootdir*) ac_datarootdir_seen=yes;;
  22138. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  22139. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  22140. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  22141. _ACEOF
  22142. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22143. ac_datarootdir_hack='
  22144. s&@datadir@&$datadir&g
  22145. s&@docdir@&$docdir&g
  22146. s&@infodir@&$infodir&g
  22147. s&@localedir@&$localedir&g
  22148. s&@mandir@&$mandir&g
  22149. s&\\\${datarootdir}&$datarootdir&g' ;;
  22150. esac
  22151. _ACEOF
  22152. # Neutralize VPATH when `$srcdir' = `.'.
  22153. # Shell code in configure.ac might set extrasub.
  22154. # FIXME: do we really want to maintain this feature?
  22155. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  22156. ac_sed_extra="$ac_vpsub
  22157. $extrasub
  22158. _ACEOF
  22159. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  22160. :t
  22161. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  22162. s|@configure_input@|$ac_sed_conf_input|;t t
  22163. s&@top_builddir@&$ac_top_builddir_sub&;t t
  22164. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  22165. s&@srcdir@&$ac_srcdir&;t t
  22166. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  22167. s&@top_srcdir@&$ac_top_srcdir&;t t
  22168. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  22169. s&@builddir@&$ac_builddir&;t t
  22170. s&@abs_builddir@&$ac_abs_builddir&;t t
  22171. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  22172. s&@INSTALL@&$ac_INSTALL&;t t
  22173. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  22174. $ac_datarootdir_hack
  22175. "
  22176. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  22177. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22178. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22179. { (exit 1); exit 1; }; }
  22180. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  22181. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  22182. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  22183. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22184. which seems to be undefined. Please make sure it is defined." >&5
  22185. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  22186. which seems to be undefined. Please make sure it is defined." >&2;}
  22187. rm -f "$tmp/stdin"
  22188. case $ac_file in
  22189. -) cat "$tmp/out" && rm -f "$tmp/out";;
  22190. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  22191. esac \
  22192. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22193. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22194. { (exit 1); exit 1; }; }
  22195. ;;
  22196. :H)
  22197. #
  22198. # CONFIG_HEADER
  22199. #
  22200. if test x"$ac_file" != x-; then
  22201. {
  22202. $as_echo "/* $configure_input */" \
  22203. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  22204. } >"$tmp/config.h" \
  22205. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22206. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22207. { (exit 1); exit 1; }; }
  22208. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  22209. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  22210. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  22211. else
  22212. rm -f "$ac_file"
  22213. mv "$tmp/config.h" "$ac_file" \
  22214. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  22215. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  22216. { (exit 1); exit 1; }; }
  22217. fi
  22218. else
  22219. $as_echo "/* $configure_input */" \
  22220. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  22221. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  22222. $as_echo "$as_me: error: could not create -" >&2;}
  22223. { (exit 1); exit 1; }; }
  22224. fi
  22225. # Compute "$ac_file"'s index in $config_headers.
  22226. _am_arg="$ac_file"
  22227. _am_stamp_count=1
  22228. for _am_header in $config_headers :; do
  22229. case $_am_header in
  22230. $_am_arg | $_am_arg:* )
  22231. break ;;
  22232. * )
  22233. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  22234. esac
  22235. done
  22236. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  22237. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22238. X"$_am_arg" : 'X\(//\)[^/]' \| \
  22239. X"$_am_arg" : 'X\(//\)$' \| \
  22240. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  22241. $as_echo X"$_am_arg" |
  22242. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22243. s//\1/
  22244. q
  22245. }
  22246. /^X\(\/\/\)[^/].*/{
  22247. s//\1/
  22248. q
  22249. }
  22250. /^X\(\/\/\)$/{
  22251. s//\1/
  22252. q
  22253. }
  22254. /^X\(\/\).*/{
  22255. s//\1/
  22256. q
  22257. }
  22258. s/.*/./; q'`/stamp-h$_am_stamp_count
  22259. ;;
  22260. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  22261. $as_echo "$as_me: executing $ac_file commands" >&6;}
  22262. ;;
  22263. esac
  22264. case $ac_file$ac_mode in
  22265. "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
  22266. # are listed without --file. Let's play safe and only enable the eval
  22267. # if we detect the quoting.
  22268. case $CONFIG_FILES in
  22269. *\'*) eval set x "$CONFIG_FILES" ;;
  22270. *) set x $CONFIG_FILES ;;
  22271. esac
  22272. shift
  22273. for mf
  22274. do
  22275. # Strip MF so we end up with the name of the file.
  22276. mf=`echo "$mf" | sed -e 's/:.*$//'`
  22277. # Check whether this is an Automake generated Makefile or not.
  22278. # We used to match only the files named `Makefile.in', but
  22279. # some people rename them; so instead we look at the file content.
  22280. # Grep'ing the first line is not enough: some people post-process
  22281. # each Makefile.in and add a new line on top of each file to say so.
  22282. # Grep'ing the whole file is not good either: AIX grep has a line
  22283. # limit of 2048, but all sed's we know have understand at least 4000.
  22284. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  22285. dirpart=`$as_dirname -- "$mf" ||
  22286. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22287. X"$mf" : 'X\(//\)[^/]' \| \
  22288. X"$mf" : 'X\(//\)$' \| \
  22289. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  22290. $as_echo X"$mf" |
  22291. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22292. s//\1/
  22293. q
  22294. }
  22295. /^X\(\/\/\)[^/].*/{
  22296. s//\1/
  22297. q
  22298. }
  22299. /^X\(\/\/\)$/{
  22300. s//\1/
  22301. q
  22302. }
  22303. /^X\(\/\).*/{
  22304. s//\1/
  22305. q
  22306. }
  22307. s/.*/./; q'`
  22308. else
  22309. continue
  22310. fi
  22311. # Extract the definition of DEPDIR, am__include, and am__quote
  22312. # from the Makefile without running `make'.
  22313. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  22314. test -z "$DEPDIR" && continue
  22315. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  22316. test -z "am__include" && continue
  22317. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  22318. # When using ansi2knr, U may be empty or an underscore; expand it
  22319. U=`sed -n 's/^U = //p' < "$mf"`
  22320. # Find all dependency output files, they are included files with
  22321. # $(DEPDIR) in their names. We invoke sed twice because it is the
  22322. # simplest approach to changing $(DEPDIR) to its actual value in the
  22323. # expansion.
  22324. for file in `sed -n "
  22325. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  22326. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  22327. # Make sure the directory exists.
  22328. test -f "$dirpart/$file" && continue
  22329. fdir=`$as_dirname -- "$file" ||
  22330. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22331. X"$file" : 'X\(//\)[^/]' \| \
  22332. X"$file" : 'X\(//\)$' \| \
  22333. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  22334. $as_echo X"$file" |
  22335. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22336. s//\1/
  22337. q
  22338. }
  22339. /^X\(\/\/\)[^/].*/{
  22340. s//\1/
  22341. q
  22342. }
  22343. /^X\(\/\/\)$/{
  22344. s//\1/
  22345. q
  22346. }
  22347. /^X\(\/\).*/{
  22348. s//\1/
  22349. q
  22350. }
  22351. s/.*/./; q'`
  22352. { as_dir=$dirpart/$fdir
  22353. case $as_dir in #(
  22354. -*) as_dir=./$as_dir;;
  22355. esac
  22356. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  22357. as_dirs=
  22358. while :; do
  22359. case $as_dir in #(
  22360. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  22361. *) as_qdir=$as_dir;;
  22362. esac
  22363. as_dirs="'$as_qdir' $as_dirs"
  22364. as_dir=`$as_dirname -- "$as_dir" ||
  22365. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  22366. X"$as_dir" : 'X\(//\)[^/]' \| \
  22367. X"$as_dir" : 'X\(//\)$' \| \
  22368. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  22369. $as_echo X"$as_dir" |
  22370. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  22371. s//\1/
  22372. q
  22373. }
  22374. /^X\(\/\/\)[^/].*/{
  22375. s//\1/
  22376. q
  22377. }
  22378. /^X\(\/\/\)$/{
  22379. s//\1/
  22380. q
  22381. }
  22382. /^X\(\/\).*/{
  22383. s//\1/
  22384. q
  22385. }
  22386. s/.*/./; q'`
  22387. test -d "$as_dir" && break
  22388. done
  22389. test -z "$as_dirs" || eval "mkdir $as_dirs"
  22390. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  22391. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  22392. { (exit 1); exit 1; }; }; }
  22393. # echo "creating $dirpart/$file"
  22394. echo '# dummy' > "$dirpart/$file"
  22395. done
  22396. done
  22397. ;;
  22398. "po-directories":C)
  22399. for ac_file in $CONFIG_FILES; do
  22400. # Support "outfile[:infile[:infile...]]"
  22401. case "$ac_file" in
  22402. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  22403. esac
  22404. # PO directories have a Makefile.in generated from Makefile.in.in.
  22405. case "$ac_file" in */Makefile.in)
  22406. # Adjust a relative srcdir.
  22407. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  22408. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  22409. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  22410. # In autoconf-2.13 it is called $ac_given_srcdir.
  22411. # In autoconf-2.50 it is called $srcdir.
  22412. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  22413. case "$ac_given_srcdir" in
  22414. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  22415. /*) top_srcdir="$ac_given_srcdir" ;;
  22416. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  22417. esac
  22418. # Treat a directory as a PO directory if and only if it has a
  22419. # POTFILES.in file. This allows packages to have multiple PO
  22420. # directories under different names or in different locations.
  22421. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  22422. rm -f "$ac_dir/POTFILES"
  22423. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  22424. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  22425. POMAKEFILEDEPS="POTFILES.in"
  22426. # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
  22427. # on $ac_dir but don't depend on user-specified configuration
  22428. # parameters.
  22429. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  22430. # The LINGUAS file contains the set of available languages.
  22431. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  22432. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  22433. fi
  22434. ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  22435. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  22436. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  22437. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  22438. else
  22439. # The set of available languages was given in configure.in.
  22440. # Hide the ALL_LINGUAS assigment from automake < 1.5.
  22441. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  22442. fi
  22443. # Compute POFILES
  22444. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
  22445. # Compute UPDATEPOFILES
  22446. # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
  22447. # Compute DUMMYPOFILES
  22448. # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
  22449. # Compute GMOFILES
  22450. # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
  22451. case "$ac_given_srcdir" in
  22452. .) srcdirpre= ;;
  22453. *) srcdirpre='$(srcdir)/' ;;
  22454. esac
  22455. POFILES=
  22456. UPDATEPOFILES=
  22457. DUMMYPOFILES=
  22458. GMOFILES=
  22459. for lang in $ALL_LINGUAS; do
  22460. POFILES="$POFILES $srcdirpre$lang.po"
  22461. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  22462. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  22463. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  22464. done
  22465. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  22466. # environment variable.
  22467. INST_LINGUAS=
  22468. if test -n "$ALL_LINGUAS"; then
  22469. for presentlang in $ALL_LINGUAS; do
  22470. useit=no
  22471. if test "%UNSET%" != "$LINGUAS"; then
  22472. desiredlanguages="$LINGUAS"
  22473. else
  22474. desiredlanguages="$ALL_LINGUAS"
  22475. fi
  22476. for desiredlang in $desiredlanguages; do
  22477. # Use the presentlang catalog if desiredlang is
  22478. # a. equal to presentlang, or
  22479. # b. a variant of presentlang (because in this case,
  22480. # presentlang can be used as a fallback for messages
  22481. # which are not translated in the desiredlang catalog).
  22482. case "$desiredlang" in
  22483. "$presentlang"*) useit=yes;;
  22484. esac
  22485. done
  22486. if test $useit = yes; then
  22487. INST_LINGUAS="$INST_LINGUAS $presentlang"
  22488. fi
  22489. done
  22490. fi
  22491. CATALOGS=
  22492. if test -n "$INST_LINGUAS"; then
  22493. for lang in $INST_LINGUAS; do
  22494. CATALOGS="$CATALOGS $lang.gmo"
  22495. done
  22496. fi
  22497. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  22498. 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"
  22499. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  22500. if test -f "$f"; then
  22501. case "$f" in
  22502. *.orig | *.bak | *~) ;;
  22503. *) cat "$f" >> "$ac_dir/Makefile" ;;
  22504. esac
  22505. fi
  22506. done
  22507. fi
  22508. ;;
  22509. esac
  22510. done ;;
  22511. esac
  22512. done # for ac_tag
  22513. { (exit 0); exit 0; }
  22514. _ACEOF
  22515. chmod +x $CONFIG_STATUS
  22516. ac_clean_files=$ac_clean_files_save
  22517. test $ac_write_fail = 0 ||
  22518. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  22519. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  22520. { (exit 1); exit 1; }; }
  22521. # configure is writing to config.log, and then calls config.status.
  22522. # config.status does its own redirection, appending to config.log.
  22523. # Unfortunately, on DOS this fails, as config.log is still kept open
  22524. # by configure, so config.status won't be able to write to it; its
  22525. # output is simply discarded. So we exec the FD to /dev/null,
  22526. # effectively closing config.log, so it can be properly (re)opened and
  22527. # appended to by config.status. When coming back to configure, we
  22528. # need to make the FD available again.
  22529. if test "$no_create" != yes; then
  22530. ac_cs_success=:
  22531. ac_config_status_args=
  22532. test "$silent" = yes &&
  22533. ac_config_status_args="$ac_config_status_args --quiet"
  22534. exec 5>/dev/null
  22535. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  22536. exec 5>>config.log
  22537. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  22538. # would make configure fail if this is the last instruction.
  22539. $ac_cs_success || { (exit 1); exit 1; }
  22540. fi
  22541. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  22542. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  22543. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  22544. fi
  22545. echo " "
  22546. echo "Build: $build"
  22547. echo "Target: $target"
  22548. echo "Install prefix: $prefix"
  22549. echo "CFLAGS: $CFLAGS"
  22550. echo "CPPFLAGS: $CPPFLAGS"
  22551. echo "LDFLAGS: $LDFLAGS"
  22552. echo "LIBS: $LIBS"
  22553. echo "SQLite3: $have_sqlite3"
  22554. echo "GnuTLS: $have_libgnutls"
  22555. echo "OpenSSL: $have_openssl"
  22556. echo "CA Bundle: $ca_bundle"
  22557. echo "LibXML2: $have_libxml2"
  22558. echo "LibExpat: $have_libexpat"
  22559. echo "LibCares: $have_libcares"
  22560. echo "Libz: $have_libz"
  22561. echo "Epoll: $have_epoll"
  22562. echo "Bittorrent: $enable_bittorrent"
  22563. echo "Metalink: $enable_metalink"
  22564. echo "XML-RPC: $enable_xml_rpc"